From 4364c7be3b3f013d6a05b75b45c599af5e5997d1 Mon Sep 17 00:00:00 2001 From: Jacob <42719082+ThatGuyJacobee@users.noreply.github.com> Date: Thu, 24 Feb 2022 00:44:42 +0000 Subject: [PATCH] Fixed Animation Freeze + Video Screens + Fixed the npwd script to latest version which fixes animation glitches. + Updated hypnonema to latest version. --- .../Hypnonema/client/Hypnonema.Client.net.dll | Bin 75776 -> 72192 bytes .../Hypnonema/client/Hypnonema.Shared.dll | Bin 12800 -> 12800 bytes resources/Hypnonema/client/html/1-es2015.js | 1 - resources/Hypnonema/client/html/1-es5.js | 1 - resources/Hypnonema/client/html/1.js | 2 +- resources/Hypnonema/client/html/2-es2015.js | 1 - resources/Hypnonema/client/html/2-es5.js | 1 - .../client/html/3rdpartylicenses.txt | 371 -- resources/Hypnonema/client/html/6.js | 2 +- resources/Hypnonema/client/html/7-es2015.js | 1 - resources/Hypnonema/client/html/7-es5.js | 1 - resources/Hypnonema/client/html/7.js | 2 +- resources/Hypnonema/client/html/8-es2015.js | 1 - resources/Hypnonema/client/html/8-es5.js | 1 - resources/Hypnonema/client/html/assets/bg.png | Bin 28316 -> 0 bytes resources/Hypnonema/client/html/favicon.ico | Bin 948 -> 0 bytes .../Hypnonema/client/html/main-es2015.js | 1 - resources/Hypnonema/client/html/main-es5.js | 1 - resources/Hypnonema/client/html/main.js | 2 +- .../Hypnonema/client/html/polyfills-es2015.js | 1 - .../Hypnonema/client/html/polyfills-es5.js | 1 - .../Hypnonema/client/html/runtime-es2015.js | 1 - .../Hypnonema/client/html/runtime-es5.js | 1 - resources/Hypnonema/client/html/styles.css | 2 +- resources/Hypnonema/fxmanifest.lua | 12 +- resources/Hypnonema/permissions.cfg | 20 + .../Hypnonema/server/Hypnonema.Server.net.dll | Bin 25088 -> 47616 bytes .../Hypnonema/server/Hypnonema.Shared.dll | Bin 12800 -> 12800 bytes resources/Hypnonema/server/Octokit.dll | Bin 0 -> 1004544 bytes .../stream/hypnonema_texture_renderer01.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer02.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer03.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer04.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer05.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer06.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer07.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer08.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer09.gfx | Bin 1752 -> 1836 bytes .../stream/hypnonema_texture_renderer10.gfx | Bin 1752 -> 1836 bytes resources/Hypnonema/wwwroot/index.html | 24 +- resources/[EGRP-Phone]/npwd/LICENSE | 105 +- resources/[EGRP-Phone]/npwd/README.md | 6 +- resources/[EGRP-Phone]/npwd/config.json | 16 +- resources/[EGRP-Phone]/npwd/fxmanifest.lua | 3 + resources/[EGRP-Phone]/npwd/import.sql | 7 + .../client/252c54e8f1cf29a15d2a.client.js | 1 - .../client/ab2ffd8084774be0d436.client.js | 1 + .../server/64f46e8d83c34072db25.server.js | 25 + .../server/64f46e8d83c34072db25.server.js.map | 1 + .../server/a4ab251d875f056f2460.server.js | 25 - .../server/a4ab251d875f056f2460.server.js.map | 1 - .../npwd/resources/html/asset-manifest.json | 134 +- .../npwd/resources/html/index.html | 2 +- ...e1cd1f.chunk.js => 1104.44f78f48.chunk.js} | 4 +- ...hunk.js.map => 1104.44f78f48.chunk.js.map} | 2 +- ...1f4288.chunk.js => 1187.0c47dc44.chunk.js} | 4 +- ...hunk.js.map => 1187.0c47dc44.chunk.js.map} | 2 +- ...233fab.chunk.js => 1264.cda3f0b2.chunk.js} | 4 +- ...hunk.js.map => 1264.cda3f0b2.chunk.js.map} | 2 +- ...1ef39e.chunk.js => 1740.ae115105.chunk.js} | 4 +- ...hunk.js.map => 1740.ae115105.chunk.js.map} | 2 +- ...73ba5b.chunk.js => 1864.e453093d.chunk.js} | 4 +- ...hunk.js.map => 1864.e453093d.chunk.js.map} | 2 +- ...458e78.chunk.js => 2038.45d82eb7.chunk.js} | 4 +- ...hunk.js.map => 2038.45d82eb7.chunk.js.map} | 2 +- ...c77e65.chunk.js => 2798.647d86bd.chunk.js} | 4 +- ...hunk.js.map => 2798.647d86bd.chunk.js.map} | 2 +- ...b7c0c1.chunk.js => 4273.c1337d5d.chunk.js} | 4 +- ...hunk.js.map => 4273.c1337d5d.chunk.js.map} | 2 +- ...0746c0b.chunk.js => 461.0fbd7224.chunk.js} | 4 +- ...chunk.js.map => 461.0fbd7224.chunk.js.map} | 2 +- ...52560e.chunk.js => 4738.a9100487.chunk.js} | 4 +- ...hunk.js.map => 4738.a9100487.chunk.js.map} | 2 +- ...070e0e.chunk.js => 5019.392cfd0b.chunk.js} | 4 +- ...hunk.js.map => 5019.392cfd0b.chunk.js.map} | 2 +- ...f59f8e.chunk.js => 5154.20ccace4.chunk.js} | 4 +- ...hunk.js.map => 5154.20ccace4.chunk.js.map} | 2 +- ...497184.chunk.js => 5370.18a7faf0.chunk.js} | 4 +- ...hunk.js.map => 5370.18a7faf0.chunk.js.map} | 2 +- ...cf9da9.chunk.js => 5647.94ba8391.chunk.js} | 4 +- ...hunk.js.map => 5647.94ba8391.chunk.js.map} | 2 +- ...bad4dd.chunk.js => 5874.930fcd3a.chunk.js} | 4 +- ...hunk.js.map => 5874.930fcd3a.chunk.js.map} | 2 +- ...d4060f.chunk.js => 6466.5e437501.chunk.js} | 4 +- ...hunk.js.map => 6466.5e437501.chunk.js.map} | 2 +- ...987a382.chunk.js => 687.d92ace5a.chunk.js} | 4 +- ...chunk.js.map => 687.d92ace5a.chunk.js.map} | 2 +- ...c03daf.chunk.js => 7051.ff755156.chunk.js} | 4 +- ...hunk.js.map => 7051.ff755156.chunk.js.map} | 2 +- ...8f8c13.chunk.js => 7522.0b9eefe8.chunk.js} | 4 +- ...hunk.js.map => 7522.0b9eefe8.chunk.js.map} | 2 +- ...b181a5.chunk.js => 7546.b18b1ff1.chunk.js} | 4 +- ...hunk.js.map => 7546.b18b1ff1.chunk.js.map} | 2 +- ...aff788.chunk.js => 7796.d06baa1a.chunk.js} | 4 +- ...hunk.js.map => 7796.d06baa1a.chunk.js.map} | 2 +- ...74746f.chunk.js => 7797.c9293d06.chunk.js} | 4 +- ...hunk.js.map => 7797.c9293d06.chunk.js.map} | 2 +- ...357ad8.chunk.js => 7871.885b2520.chunk.js} | 4 +- ...hunk.js.map => 7871.885b2520.chunk.js.map} | 2 +- ...bc07dd.chunk.js => 8037.a10870ef.chunk.js} | 4 +- ...hunk.js.map => 8037.a10870ef.chunk.js.map} | 2 +- ...6ee0ce.chunk.js => 8535.e96d1705.chunk.js} | 4 +- ...hunk.js.map => 8535.e96d1705.chunk.js.map} | 2 +- ...960f3c.chunk.js => 8667.ec6d0419.chunk.js} | 4 +- ...hunk.js.map => 8667.ec6d0419.chunk.js.map} | 2 +- ...c594ced.chunk.js => 872.3ebf4ebb.chunk.js} | 4 +- ...chunk.js.map => 872.3ebf4ebb.chunk.js.map} | 2 +- ...0fe1f6.chunk.js => 9005.db99157e.chunk.js} | 4 +- ...hunk.js.map => 9005.db99157e.chunk.js.map} | 2 +- ...4b1bde.chunk.js => 9058.b4991e7e.chunk.js} | 4 +- ...hunk.js.map => 9058.b4991e7e.chunk.js.map} | 2 +- ...6d474c.chunk.js => 9255.cf330298.chunk.js} | 4 +- ...hunk.js.map => 9255.cf330298.chunk.js.map} | 2 +- ...5bb6df.chunk.js => 9268.f4645a8b.chunk.js} | 4 +- ...hunk.js.map => 9268.f4645a8b.chunk.js.map} | 2 +- ...9a7916.chunk.js => 9854.7b6092aa.chunk.js} | 4 +- ...hunk.js.map => 9854.7b6092aa.chunk.js.map} | 2 +- .../resources/html/static/js/main.23e596c0.js | 3 + ...CENSE.txt => main.23e596c0.js.LICENSE.txt} | 4 +- .../html/static/js/main.23e596c0.js.map | 1 + .../resources/html/static/js/main.9dbca9f3.js | 3 - .../html/static/js/main.9dbca9f3.js.map | 1 - resources/[EGRP-Phone]/npwd/sv_npwd.log | 4087 ----------------- server.cfg | 4 + 124 files changed, 282 insertions(+), 4791 deletions(-) delete mode 100644 resources/Hypnonema/client/html/1-es2015.js delete mode 100644 resources/Hypnonema/client/html/1-es5.js delete mode 100644 resources/Hypnonema/client/html/2-es2015.js delete mode 100644 resources/Hypnonema/client/html/2-es5.js delete mode 100644 resources/Hypnonema/client/html/3rdpartylicenses.txt delete mode 100644 resources/Hypnonema/client/html/7-es2015.js delete mode 100644 resources/Hypnonema/client/html/7-es5.js delete mode 100644 resources/Hypnonema/client/html/8-es2015.js delete mode 100644 resources/Hypnonema/client/html/8-es5.js delete mode 100644 resources/Hypnonema/client/html/assets/bg.png delete mode 100644 resources/Hypnonema/client/html/favicon.ico delete mode 100644 resources/Hypnonema/client/html/main-es2015.js delete mode 100644 resources/Hypnonema/client/html/main-es5.js delete mode 100644 resources/Hypnonema/client/html/polyfills-es2015.js delete mode 100644 resources/Hypnonema/client/html/polyfills-es5.js delete mode 100644 resources/Hypnonema/client/html/runtime-es2015.js delete mode 100644 resources/Hypnonema/client/html/runtime-es5.js create mode 100644 resources/Hypnonema/permissions.cfg create mode 100644 resources/Hypnonema/server/Octokit.dll delete mode 100644 resources/[EGRP-Phone]/npwd/resources/dist/client/252c54e8f1cf29a15d2a.client.js create mode 100644 resources/[EGRP-Phone]/npwd/resources/dist/client/ab2ffd8084774be0d436.client.js create mode 100644 resources/[EGRP-Phone]/npwd/resources/dist/server/64f46e8d83c34072db25.server.js create mode 100644 resources/[EGRP-Phone]/npwd/resources/dist/server/64f46e8d83c34072db25.server.js.map delete mode 100644 resources/[EGRP-Phone]/npwd/resources/dist/server/a4ab251d875f056f2460.server.js delete mode 100644 resources/[EGRP-Phone]/npwd/resources/dist/server/a4ab251d875f056f2460.server.js.map rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1104.a3e1cd1f.chunk.js => 1104.44f78f48.chunk.js} (96%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1104.a3e1cd1f.chunk.js.map => 1104.44f78f48.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1187.3f1f4288.chunk.js => 1187.0c47dc44.chunk.js} (95%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1187.3f1f4288.chunk.js.map => 1187.0c47dc44.chunk.js.map} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1264.3e233fab.chunk.js => 1264.cda3f0b2.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1264.3e233fab.chunk.js.map => 1264.cda3f0b2.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1740.f61ef39e.chunk.js => 1740.ae115105.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1740.f61ef39e.chunk.js.map => 1740.ae115105.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1864.e773ba5b.chunk.js => 1864.e453093d.chunk.js} (80%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{1864.e773ba5b.chunk.js.map => 1864.e453093d.chunk.js.map} (92%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{2038.df458e78.chunk.js => 2038.45d82eb7.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{2038.df458e78.chunk.js.map => 2038.45d82eb7.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{2798.01c77e65.chunk.js => 2798.647d86bd.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{2798.01c77e65.chunk.js.map => 2798.647d86bd.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{4273.45b7c0c1.chunk.js => 4273.c1337d5d.chunk.js} (92%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{4273.45b7c0c1.chunk.js.map => 4273.c1337d5d.chunk.js.map} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{461.a0746c0b.chunk.js => 461.0fbd7224.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{461.a0746c0b.chunk.js.map => 461.0fbd7224.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{4738.ab52560e.chunk.js => 4738.a9100487.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{4738.ab52560e.chunk.js.map => 4738.a9100487.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5019.20070e0e.chunk.js => 5019.392cfd0b.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5019.20070e0e.chunk.js.map => 5019.392cfd0b.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5154.11f59f8e.chunk.js => 5154.20ccace4.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5154.11f59f8e.chunk.js.map => 5154.20ccace4.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5647.cc497184.chunk.js => 5370.18a7faf0.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5370.13cf9da9.chunk.js.map => 5370.18a7faf0.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5370.13cf9da9.chunk.js => 5647.94ba8391.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5647.cc497184.chunk.js.map => 5647.94ba8391.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5874.3abad4dd.chunk.js => 5874.930fcd3a.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{5874.3abad4dd.chunk.js.map => 5874.930fcd3a.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{6466.54d4060f.chunk.js => 6466.5e437501.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{6466.54d4060f.chunk.js.map => 6466.5e437501.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{687.6987a382.chunk.js => 687.d92ace5a.chunk.js} (92%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{687.6987a382.chunk.js.map => 687.d92ace5a.chunk.js.map} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7051.97c03daf.chunk.js => 7051.ff755156.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7051.97c03daf.chunk.js.map => 7051.ff755156.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7522.bb8f8c13.chunk.js => 7522.0b9eefe8.chunk.js} (75%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7522.bb8f8c13.chunk.js.map => 7522.0b9eefe8.chunk.js.map} (94%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7546.d9b181a5.chunk.js => 7546.b18b1ff1.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7546.d9b181a5.chunk.js.map => 7546.b18b1ff1.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7796.5eaff788.chunk.js => 7796.d06baa1a.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7796.5eaff788.chunk.js.map => 7796.d06baa1a.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7797.5274746f.chunk.js => 7797.c9293d06.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7797.5274746f.chunk.js.map => 7797.c9293d06.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7871.c0357ad8.chunk.js => 7871.885b2520.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{7871.c0357ad8.chunk.js.map => 7871.885b2520.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{8037.52bc07dd.chunk.js => 8037.a10870ef.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{8037.52bc07dd.chunk.js.map => 8037.a10870ef.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{8535.766ee0ce.chunk.js => 8535.e96d1705.chunk.js} (80%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{8535.766ee0ce.chunk.js.map => 8535.e96d1705.chunk.js.map} (94%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{8667.bb960f3c.chunk.js => 8667.ec6d0419.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{8667.bb960f3c.chunk.js.map => 8667.ec6d0419.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{872.5c594ced.chunk.js => 872.3ebf4ebb.chunk.js} (97%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{872.5c594ced.chunk.js.map => 872.3ebf4ebb.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9005.840fe1f6.chunk.js => 9005.db99157e.chunk.js} (96%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9005.840fe1f6.chunk.js.map => 9005.db99157e.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9058.c94b1bde.chunk.js => 9058.b4991e7e.chunk.js} (75%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9058.c94b1bde.chunk.js.map => 9058.b4991e7e.chunk.js.map} (94%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9255.c76d474c.chunk.js => 9255.cf330298.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9255.c76d474c.chunk.js.map => 9255.cf330298.chunk.js.map} (99%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9268.6d5bb6df.chunk.js => 9268.f4645a8b.chunk.js} (96%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9268.6d5bb6df.chunk.js.map => 9268.f4645a8b.chunk.js.map} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9854.e09a7916.chunk.js => 9854.7b6092aa.chunk.js} (98%) rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{9854.e09a7916.chunk.js.map => 9854.7b6092aa.chunk.js.map} (99%) create mode 100644 resources/[EGRP-Phone]/npwd/resources/html/static/js/main.23e596c0.js rename resources/[EGRP-Phone]/npwd/resources/html/static/js/{main.9dbca9f3.js.LICENSE.txt => main.23e596c0.js.LICENSE.txt} (95%) create mode 100644 resources/[EGRP-Phone]/npwd/resources/html/static/js/main.23e596c0.js.map delete mode 100644 resources/[EGRP-Phone]/npwd/resources/html/static/js/main.9dbca9f3.js delete mode 100644 resources/[EGRP-Phone]/npwd/resources/html/static/js/main.9dbca9f3.js.map diff --git a/resources/Hypnonema/client/Hypnonema.Client.net.dll b/resources/Hypnonema/client/Hypnonema.Client.net.dll index 3d53bd43f1f503b8c8b054b83bd6c6eacf5fe07b..a9ed3deb2c6fc03bdeddf9044574afae1367970b 100644 GIT binary patch literal 72192 zcmeFa31C!JvOiq+-0s_*?j&SSNCF9vgi8p>zKM`PM3%4!Q9&IcKok_xm<}q2#vq7_ zIKqf1GcbaRj)IOlj{A(@iu=AJ;*9$?Ix^#q->>SNUJ@3adGCGi{ogZs>zt}Or%s)! zI?Fxx_GSF>tH~xJ53V16Ai5JN|5XY+G-v@kwdn3tx-IF+PIp>0Pj;%EGdEnkpfPkx zW8M7XS#=E!p{C-Q^~H?~8;a*P6jx82QanF2yS`^iN}$Auo^&M9>=lZxzw7%)qOE;K zor{C27g3g_6^k;8CDQ^b5$9E$?J$l1W`GMi|JgL-yjV{vg#?hMGsRInMu`(RS836` zY?y=mE$CxW?Ll}yiCj!HI-y|Cruws*fd3*B`hzEZH~okf19?Wz#&F{-5JWfVD2~fP zn($W{>vRI~AX(Nyk(aiuB6@HOQEN#DsdNBxN7bB96evep!0EBdEkvs92$Pj3B2=Qx zUN%*sKH5pQ7ovj&0p;}U=Tsc#cHn{{#Ss|l2tq}!TO@R@?}+SBF|y@3<++{hwkN7Wk9x z(iMfvhr}X9Q22#y(G4l)B-p}lY*FYS7IchoL8qCa*g|6AjN-k^?CMs1mIBh}a`E{P z$n=WOBj{Uh%;#M0$NCoYrOP@a%Aug7h^Ih#W2_I%hEJKRyb)naf2N^rNBWaw`cvan z9A)~$m7HdV+P8<9m}e=Dv?RVo|GTr?W)|xR3{@a2{Wo?Shm`+{GuAxu>sHnf@%u*r zx1mRdDIISj)B`*W7#=SxA=4+e+XCCQkJ*l;{+R7}yl^u=78j*?x@*Z9s`T_A%(RL@ zbX;-1&A93bq3nypOo}B#@ZOyMD&`X|2A^;#_=F3oR8K?-iEmCv-~8g6WaFFJPQ`TN z8?Nj$Gt|C0%J_z*Inr{d7+K6;+Hfr1X=W(CfzSFNubR0zM_{NgvWY(9xrqOY&;H`0 zjjenp&F=3rZu@T{@N|r>NFERs zKAW@cIqMEU5yd0dQEHz94>;k0Ai0A8%JY|CW%3|=T1?7|i>JIZmMqEeJQScw;u-8E zdgQgg_yk@ga*JC)`)z5SPSdQ$-@uB|*~HGfc&aQVjrV}cOGRl9r>yaLM#6*9?o}?P zp+I?NFArgTqX7J%+{2Lx*g?nV_(DUG_qdpS1EFC6tdLe1`gmy+>R=?Khi6#i1RPJ~ z7f{-Ehohtx6Ks4DZP{)mD9Jv*&o2UpPoVP2=F5_ATong z1p5r6b_DT>)Dx+bG&=%g17EC*xfW4(o+A$3pK1t>_vc7pT*pgLlTx@pC!7AvhVUQh z$tkg(#HG$`{0QAvt4@OP-3!IzE^LKXxQ|}C5-Fl7-4i+r)E>FHE~3~`%^WD9xyXi! zAhq0+6B^B$@;V=I8o!22cMS3s^`2be^svgGLH{jxEU4}{0KaUJMEA0kQX^w?5!fFNSYm~mvpfv zy9)M)HyCp#qImfkInp;zw1LL+(b`oZL~@|aqwV1#^qzOZ>F&`WH(rbqIgR%Ky4Zkp z4>%Yu7`;w-GPv#(fE*XQUGbSB)-OFlzj;Q#`9{Cfw0@fGdbECwY5l06mlfTGlVU?U zyM4;V=nd>Dx1bbyM1DUnH$<4-vF7VxDH#wjZZttMAQVLjk^!MON{|c)m_v0H$$$W_ zXo6%wfX6jKG9Z*h36cS!G)j;R2xU=%WH41>3|s}BGuW;W<1{`Ei^7yJpc6g@{R{O( zPP1OsEO=!<);pSod1OD<7n+5MD1oJ#vDNm3jzt53?kP^_IAnsp5b6h<5H=ox9v|%v zI2Dc~q+QBA9yA1kw)I)mehp7UJWf3H4u&)TDW0aB3aea2JAqJe!e}@UJ`sRt97i>p zULc5^FlM4a7~@YS81PItpiLrgq|`J0fTTnoMjGmUulook9iG<%;TbFwQwDfGTMUY( z5_uTX;2oxU7z0kYj_b|jdYE&;J5uu|FfXnr0vWvNnuqvK9N!n4rn5Vj&lL(@3~UqUUF%PWop*)re2m4t0-@xy?R_TX2vzIB|JA|X<4(ONo0|caki0hmX@K( zuA^lz=3)Yq`NgJc$jF9_@IqM=?8p-Eb&!|J&LADj*%`bDU`7nMm?ydieVCYa5g$+I zfifNcSZ5XWg}fZC(+JjSspz00%OtfU=SrF#X_0iXX1mxC%DUzy*j46AyYVs@+D!r@ z;JBwkR7H^|dh6J@6+Eo>jdySwoo$tie2{H>@V@?#*jHbV16ZSzC&3zFECPX2UkD3DpwtO9AW2s4Fm%Kp3LV@+9H_j8 z!z7f?Hd@LyI-oh71Rq5%L4TcQhT2)mV?rbzMd!9LY>!x(R$-*vN_L~j(!PXBv9-ED z+kOFh5LqKO_C$UqX?A3_q>DA#O@=wKRx{>eG?{p3-(v<(51(gzzZU$M?^m=@k$n%T zFbdn`KNOo74L=^6UP1`V-YLPh0lRTHJnN=#d?*(q)`41>3l8iS55}QQy&wl`czXDJ z)6dHi`*}gze)@c#5G>`O?tieK*wX!YKW)O&#C!7e@P$Udb&2||Y@;709A5}-#wHTZ z^R$YWax=Gj2@57+SAwxMCTcI(E;f$@eL6IA!-I~}HIyB9ON1C-y7Wi}Ns#eS@XS|ECxz>03JxcyH|`^v@iulG_$35@;3JqlLJ z_#OqmOx%ZHS&Z*(&S+h4j_`~gSXrGgKp>3eG{9kHwgCHe97Z*){W>0J?bq=*Yrl>& z3wsL8?y=o1ZmCBuq z3Uc2XpFLXL>)no{11z#mk1U>@EkTM~Z(5mPC)6hGO0GpTP((h~IAe^*uHdgS$JFH70p!fz!;b zG>$>mg#rN=I~`{?`4As`kHdG736^=Rn2?*BxzwK99jkBBuSbQP95(|R>hqSN=m+NIbQeZ-upBkM!3J2x zZD&~S#Yh{!kD3IB8R-rtz{YGq_m|w>B>-{`^%LZD;96|j|Dc@yKQ70Xdx#(D*SNNF zwBMymGWY+4K22#WqpfYC0ndAE>^lj|Rl2gn*nGhZOR$^qxNF#u*aQU1V#8zqDB+Uu zBlPmgegIig9&f5A)tl<1`rNDGKAbxCVSyNXjw;>f`#n-QtPEjI)U!1fuk{C{Ufznz z-4Cm}q>_t{a_DPb7-)~@t6Z6FlD8u*aTP4koTrcTjP3AK- zwj*OPJK8i>n*cVr8EqY)UuYl}a`Ao%^-b1MtNRzuM$eL>v4#a9rrS+MH^j2|_(rXp zCcEvmZj8lr^AOf3`BUta5s?Ala&}W?WRS_O8yOjFvc*-AA)JjqYVOa7$3;9i%IhK= z96ac8(R-v`cblY+ix$oHhmT<~s_q6MjJKXig+0rpgDHP zNo4t2vHXdw03)MJEuNS{!9;d4BiAYy{zKy$BF-FJBQEA2JbYmKwBx6qP=0pf7K|!e zj;2SGQ9m2sxjR_6$9;$spsE> z-1{ifwmy3dv_tyr@Tk2dQ?A_mQ6p!c&BG2$hxUbJKsX{wkPHaJq6Eo+Fg!|-3<#A` zf@B($dmrRi;IQLCr0#ljtSmNkFi!{R z1udKtfaixlfYS!Jn4AMVrvyZ1jz|+9DC&*khheU>`(ZjED+)c=o*)C?RKo7@u zuR^N16*!~EY>lO_{D#}d9#Hl>mFPGBB^Jd1l6nZyKt-u? zpN6It9W+t7&vO6V=LNn97{aO&C_i2^c)kgQFdzav)yO*Ip{cqF!sZ!MbHEN^_5s8o z34}2L1>EOYm>t602r}jvz*}O>7c}!$A^$<(Z87FcV4@$6?6svIT3f5UAo}d_c?>|D zMcP-D<~0`iIN#oLRcU_X;hcB>2vM^8*WGIz4r-w}n?#jd6wOQZ%AEo#raC5ub$cSJ%@TlC#7*6zz z&=^K_OwR8>cKA;2{9RmdG?!>*m=n4i1cY*%`T8wXICzX5yJQsVmi9<43%`Mar7et_ z@h}mxdg=A+9&QW%khK+VKx#)|H>92j9D>vvflH8PN8mlAi*<1~U$1M7@uUR}c|GC% zXm7|?&D_-xW;HykNySbE69Yf2;gJDsJFp%f>;_|B4p#kwR!?mBzChtgZ9!K)jw5Q& z!tBrv)KaQ>EF|Yni*SPYP{jSgPLS7Q=?|<3JyisTL~2K1Kct=rm`J^mdnL_|z$3sH z>*8*K?hj+8KP-DVWMk99vhPRhk?m5)jsOvvPzh;v1l?m3YJpf~0_8oG`w432oQeekd2UJaC_J7E^E(5Q0bxRvAQ=$g1zkciAWVu9 zBm)9>lNTQDC#T#Y)}O~oeat2wp;exPSra^!+swnmeIJNh2_4=At zyq(PZOcVabiTi~>sfeXB;C?E&NS&4=f5ju8o>RG9VliB}hhW zp$H>~`sXEi9l_n*%1T-(#5(Mzs|$4#~4pU(iM&gzE85L z46?C*)6c`v31S7^ecYAsvnU-@jemk|eeQQ$Wq^M2nH9tML9ZRd_}QP~jn&UH&2C64 z&s6eWf!&#RxF_gsQdBBG8ZM#(lG+hiRqPLYA@xR} zEz;}=0s!e^UEJ-c{lJ*^Lu`H=4B4ugbq~G39hLd9EFRLwNXAFvG8LiK!^Tc8i|-4S`Ir9_3#@wjhtDJ`=-WFL-l?jFz}liPE`ShoV9 zzX0$SS=z=9NB&~-;qk1x$1OnXN`*QjiJSb0fE~qe@(ghkWkU}P|a3gpr|aZtiEFzp!9aY?Sje}Ly1@> z*2paM7EVo9Jk1p$Ov2*7S+1=5|RZ)HRIq#uN7*k^a@03XsZEH8dSC(50-B5dr7ZE7(t_oo} z!WmG!VLq2WO1y_PJNk_H5IU6Rx*v*y9(kGAD5#MH1+fSO!kB<%-@|Pnz~xV?+qR*D zsT*%im*^xN^5DJ=9b&M5htLYQH#^#1^cB#5w@;;cypq8qUU|#YbXX$^9sZO%jD<^& z9WO14wlD5!tHi(G-?%zj1}0~?*t;dj7GZDzi?BVGMfHikM)_Z2kJ9$Mh6j42V&|O- zWwfetB_G+u-f2F+=bk@yuVUt4VE!+d?#zAa)RaEB!b5ru) zVbjul-YK!ky{jfBm|SBCCf~~@{|B3#;{p3#`P1XEZ3q6l?VZpmtqQhq>=W-6?xOVb zAU=upD|(~&KhP(o1$=M7E^}644;>pN8cT55m+Z2y*kv-OVa-VJS=$c&zu>cko@;eW zwO^erYzHyMLHxQW+V>9sbH`dj?+)bG(n7vLVYmBMVL6PsU1JGu|AyWEt+-wMo@6EZ zy{!TMxA;B5Ji1G`)!{Mk+rq{Yiyb63aCatus^kCG*eLD5cTpTVem>EPg^tD&Lg#x9 z9o!AZ*3}-ZVyCTv{x8K&f(>=IyXyGzZ()mySq~Clc;jBjS5eac(Euy$$VVU?e@T1} z5Q{&JCBz?&BLZO@n#AI7a@2ORuiMXnKL?;MH8B7a46RM$>L5+xA8Qnd?e`B--p>t> z+PNt3bBrD+MoWv5T!p|y3!iK2r^;l@@fSoEC+f4JJ1l#f@-lr0WaJ+9k2_~&u`zhhh{Mu_%l4?Xx(w{W~j(Ck0>&AsKD zvGL#T=kfpl;`lEuN_Fw-5U=~~R-KtJKWHpre!x5GfiON}7hCu7x}f~&XQD-I1K{WR z;s4P5kQheV@jdk<(rya}l|)u_5{dr)YM5&N1ztO{Jt2G$GU1n2{7xFbV{-)F8N$0^ z<8hK6!Rump*Gxt5q8L&;^0K6!$Saa&NAO}9zl)}e@pp3goj}ISZ%_)bS6K_0!{j|K z91eT%f)Ji+ixyfc*SSIu?6A}0Z;=9z%4=af`vSc$XCKDDiu{ct5QkO!NyU9G;*v_&m^kzQhk?9SPliJcbyO_XdGwVz6=|?;TM_l~Wp!uNNtQ zWDdkA{S70$tJ({W*ga7-GZnu!=VV_tmKRH9n<@~3x7h-_b5qzX+yPxX$;HcT##nKx z+Yv9+R$fJxD5nq?Dv&|KL~Amhvw-739($xn)aO^?lAf zj;m6XDQ#g6e{!ySs4MUYw&fmja(hnd-l&=x3E_iXflRNjnf;jV(Y^nwgR5sKuNnI7>8k#95}rY5a(5>Fzuy=deso;$LQn zGE>3YrLsiL?t#XE2qpPt0!D?8{VYm|xzc?Jj*gR~j;=zu@iOyAT<7B&3ZtTjvA4qm7mtR-InLj|52>QTQ+;-C?1#KA%&7(>5; zOcf5n50NuKQOz1QAs=BuKKV$5{;@MYGs@h3&H{ED2BH3jO|rkj`^Kk`XUB0cR3Kx*ik0B7!rTcbVH+l41zU7~INg`MG#XZ150dZ{Tf(Yh z6y`P7Nw?V(XSWj=FXqL8(=!scQ25vsP zc|UH{tyEQrZs3pohw)D^2Nff4{Kq{u{$v06XexqWg!tzyu<+HZV=zE@;xoUZI~&ya zuarW#jd4PKpr;tNFEYlkT$>Gxfe7m@0_5@9pAGvJR8Y;#V8e2{FMCp#dNbevdVIQ^HG#13^^HTq=ZD_YicF{es=ShruB5GkqC8cQ7(gjR&Sy z%@>KVY^@qzjUB+M{X$e@28PdKPWNS>*Ge^?JA_3#=}x9M-K*O(3LY-Hh*}sufzT0c zaLiNCHO?R22CoDj{tdKF9<&bKG)1dG4ULEw6?~-N2kLhC9tgO2(^E;56`N|#0V~Azk4`m+Wt(uL&EKTKdffs(Y>z18x#kkI7skU=*^QhFT7>II z#~y#KI30V9vsz6qDM>xNZ`_26(P9{)z9jvrtR(rBkF9poNf-n$qxBE2J%v4?tI8B&nxDv$hM8g4>8B>$n$HqwJ2s7DB10ooceS8ZP zC+jUxY)yaRFR?ukYtv>A6tg=9KpVR^MqRQ3tk7ua*2?(2-nWNetHt(MP1yD;k-+v> z5TYpeaEwb#_Ys&lauFD+S;GsFkFZds&8+GBoF%P%5yAR`Dh!8AgdoiKT)jD_P230k zl?-vgaB%_af?4HaPV{%Y@O!91Jo2#vz=&f;idxJ`f)BVB5s(-V|viMjKa5M|WF+&P%l zdr6*5tXeL%w6bU!Te46d%|pqUFUK<^F~ldz(RNt7?ZZ#j1& zJyPOrHCR};D&@Bop;C0|K)XskB)KfFQdoOo&NYC%N)6#58BxtlWixY{u%+Zm@hzol z{uS`(?;QN`&svy|@@RfAdYd9GN=vX+4IHyOi)|Gr``q!Mn)?(VUHa?T7-jWrcLH;x z6JTtNt_834+!$kF+CCTy%S;>Agm#vTA%*ce3DC@@JeT4DA%8m;b16nJkLO<_!Tx%WdmsNi+6f(vT0G|PdR3r@9&=nCV-5=&Ot~H~17q%R4(2;iPc<_GV~&%3+3>mE zw{tDXnF2ZZ3NL?b+EaYHec(|uOqO+N2fo~ZqNXAEawz+9vT9~3`;yayAtTM`ArtkG z$Pq=OTP(SejFV$~EB&3BRC;Px%tze6g#DB)?>`+ScH0OR>~WHo-DT( zovg_A$u|o+gH9n>+j(Oza`E3r>%yVydAEB5Kr+52wiPBHn9;Uk_oGbNV_0q{&Gz}- zyHMKaZUH==Td6!jn(5yDKm~+VjF~fGnqt2u+=p_1;MYx@$k$5PuSc-Ck5O#qOKIg59r1 z5^QC0wY$XUVhA{)#{qWdCbK?VTFHk~{0ZvBsZr-gecz#b?7sM_);idP+gBPRI$W!D z_#Nxe*f$9`X~)7hDNC*ap+`y1GccPapJ;j}9YaEYtm!zEaHj&aa49L;JPoMil0wHL z8^RqKR*&wdErC}(JxYtxo;l%Ql1^kvTujO~W2YOC9QF_=v8d@R3OfvU24}FpHMaQ^ zY|}T8?hV(0p1ivX<)7IoMVk^^^?yJD1e{Y?YjKSn*b8^Sk;_Cp@ z{q9Ui(9>OWs2z4wpUxMB&mJ6np%-tIk=7%R5Lh+zL> zEbx3Zw3zqK@wGJ;w0bh)!U)=Joam3dAZUm2WV9aDR5LRWx11!zE!Q$}>x+MCCOQHS z!$?HDIu-kk#NGW4I<{aSiGNW@G-(z8ak2@xXuNH^J7yEi0Y;q%5u*vU{ z;0uYO97ns>{grsMb2+sb+geXzw8yEs@o3w*rLkD&DhczPkFaH@8fp7xu+a9cNHEVm z3Y~oN%X(k)7?ApOY8;99*NA)tL4QmQ+g>LtS#IBR_;dwxrYD5M0^DBn??jy>)%*vL zRP$|s@f*;boY3o<`$w+u8h0%ycW0j5Oz&=dPb{}Dz8v1n+(ZfPUr|!u9r`o;`tDF~ z30QrV?vLEgss1K`U-21b_uX?;GgA@Si#biWHRMVVBe#Ya1t~t=<=mV z!bK==P~?;HJ8s)3HIUd*2~@qiQLcQeI3ff)!xu?Hg^jYvE8}R zapIAG24}qZifeqtgPWNSFx2o56t_Mlja%1vJ_oO6M z6u`ZAvy|q01l|i6eiH2_?;h6p5%kphBy3f6yx?Bc;b}%R$r9DIBI%AcuiT67$2C@t z#`R;bP;t3F+q@GEC)m$N-=iZF#D4dIg?;6z%AF6zbMU8{cd(ufK-~~PP>; zUBH9~k?VdszP<;f^;xc-j#wt{C?4Wu@pixroaI*WbcBr%49E-|=W>!T9dRvloGZGh zW^UMRL?acRtl;i`s+k+s-*7osBf;Gr<=|IZ%o4?Pi%D)6_4G~qeoUX+1SV`_?iqb_ z?*r7)*oyVVM^1GC-h;Ow7AK0W9tJC*5B0D=v_Y58g(dqNX9f66`R4%2m-18mjjy(* zU|LkoJ5e78|Ed|&2ZG`;z%V@FL>@=3`^@5Rpi$hY5|`%wiBHJ6b&ks?IMtsoKwOSs zv+hAf)yxczOHLE)%JmSJyggCP+*0U6v{|vnAYTC~D_*HuH61(j)tgY=w3FC0?(w;4 zo;{>p+~Xgp-ROxgx65ZNa(pY|vZU9#Be=20!G&?xeq5h>7JDPQSMs5=ID{gc%1|-# z#&3_H1>0Q|^_xw5z?&p~!;s@S;%U~wsc4Xy_&6Y;vr#%_znS$6)%*-|^~u+>$g1Y& z0QrS>b1cZSs~ijJ*_9jM+4Xr&^%o5=yN+c0%uvlt<=K_fgfl^|1TlOj$omYe2-pES z@mW=biZINoVjj7tij)1?F1*L!udAnarXbsbXVGhJjjg9op_x{8!FG*~7Q4Iv7VPp8 z64+&wulXe8RP)OMv7UND%}_417=WMF;9Mj6w1#V9gulv(erkphUd{cTq?(zE;mygu z?A6ifk*h!m&O8ET=5dWkk?M($YvR<_>oh($8huvtB4owZ=@C=L;vf;-#$Ph7Gy3)H z)w6G}zP$%C#Y^)52VnqrSweIT(vt4TPibnL+i*&lOYA%w(t@BJGliZwPyf4bU5+|t z47x+RfWKb^-iUdjnOqou7%A3q({B$Zr2_fJ>dPOI=hn}{H69oGP1k^skAj_$N00d% zk(7=U|Fi8S<$N|S>T&xFCZ3ixou}a^x-&x{Nb3VhD^468K zqxVagzPSAtMGmbO=xu*JxM$=s9M^tSfkQL%nftnM`$|4vV0)pwSoD0EL-)03_?x`% z%N;r)kL8p5DZcUfTJAdJKSWy&&2GQ0BtXmargsj|AM@~`3wk~K(+;V0Q@6}qhn~&l z{LXUDzpc3LJB8&aGuzAgot|+p+M~J5{UL`by`(S0Z7%aidt6cmebjYml0%ORcV!Oi zaD~nAsA4XEO()J@EO1U2&ad};+98Ls@}3MhbS)$}baf_|ybbvry1V1(vK(5{jk&)N zIcM0+{iO8M4*9gS^yp%T?h>s+#hJMoRDm)Xbd>b{^2~N!9U55Du4^iN-61nKl~#K* zbDyTZrMOX`fsh}xMv3L03$o0YJl(rF^sVB)Ovq=-C~50vXb69a1^PLhe^Fp}ALknd z{uwZX2KX7~5W^-|FN1ujn?YSrH-l~zxJc@rCp}$Jz!D;z7`CJ{EJFEIdK30frN#dD z@*PU)$n@D+41W*H1ZaNAVSwj!ISeJ!yK$M0BCS?hzasOuu*pQBoFC|4kV6^vlYxAC zqTA8M`Lv_U9Yy){Yrs^xtbqM^2XsiKMOoZpw*bSG?hI$7v#qAWR!`HP0Xx#)I_>O~ zLGQtL9qG%Got+%YhHf0w$-^1f5iY*h&=707Dyr(dx#$!yU2sXjXn8W|F z3V5jq*YWrltlDG6PNRD;6^=)_PLPyFcXj&^pGD5Yx0)^RiaURZv(!R-HHfi)c4Dk6 z&5)9NN!$LfVYJ?Cmn8 zD}UK*m9%i2e@fRHV3!HjAXs1e4dkTJ3At0cj)x{!icG5F^oG>)c6p*;JnoC$72a52C*oh8{9dq2Ixz28O0l@_zwFG|RLZoty$$JqgVx7W zuJArme=D0uzn~JqHhDD0-(gCl)4Uq15Uj+}STDgIGFU&s3VfP3NU)g(8!FgM2CEdT z%&$vU3+5$_jTUT{(WOSPf7+TiNw5r~ORZoV3^rA;IYyTgEgK%gBoDv;0{`GAV_5uv zokTMQ8;=OtNYiPyU}cz4$K%T-CkwU;k+l)u)tY13oziGf67%NLsls~*aki08qxphi zGY#J96cP*{R|c<^nPcxbdxurz7!96D35N(A&qYN17f;b0LZ&!c9+ zhDyB^6cMZ^u#I?neU4yrgm($zk^A=#X?-;<6YOo_t)=q>8!9p{qw@uuEWCAep2HNmc@%XB@l z=Z$o^V4n%^W?C=U%QnlrgMK5}_ZZn zS6iKEN%A=AM88a)2smEyF9$jQa**krg>s^BgUK&~@{Q033T1&%J_!1(DJ?Zcn>^D^TWjU5EUu?XCp;vfZ_S_a-j`+@8vmvFX1D+?dSy-w9=5yE~E3Ok;RK z8q-e=ZU?+a>L$wRp8hE4TH2q}UPk`ilue%AbVcb~=>zCAK#RWa`Yv?%N7_fo+a3P~ zn33{Dx`&SG@=xSfrhWlfkh;lZQB4}>`-5xIXUPl$?Y;pVDBRztaDIy9pF}GbDdamr z=J%k#oW?zBNK-ht>?82F6qS)qzt8YxbfSJ;@x^gkU6uuST^Y;S(Cr&&wH9(ZQD!<* z8d3_teLb0BqWp{6ahYOh0-vTbcM~YOr!2oCD(A)O~ED)!oBR5pzD&+GUuZV(=EDLt;!fc&->P7Sb=GyG7WfvmE-Lh9 zvgFOkYi=UEqnx#hme=?csV z77g*71N#s2@`&JQiAz2eCAGyKF5vQ4yBzaT|F$hjWgSsh`!umUM?zetwsRPgFD*X{ zaIx`GBy)5zCV5)n?^?1Jx2ls2_GRf)&~d89@{TUyRda!04^vgy`I$ET$zX40yk&W4 zufdiVtj0@XGdmIfR`@-+Yn6viHCS@sDUS!cBjJfm4_zRbmWe&C!C0n`k~?$BhlyqS z=xo7O_>%)`m53*##$(s4;QG>CRBzoUqEG3D0@(mI+dn0SDN}>S(5%1okB8bb@8I7u{HFs)}YJz+3zA%#jx;(Dgg-GZ&~=LgrS6uRGFd$XVN zq|jpqd!fUs%oKXgVD|^s0DDbiXfNo)PPJ6aR)Erz$QV_{Y| zy36pkbSwjQzu{dOT(8RMF~hqhn2i&p=MC?Q++bFBdfo7@%FP7!w&69E_s*)Ij}0$U zemJmy7+!TCnAL;6H@ss5nZO*JGjM!P%L!)nq*TF{`e)~40?ReLorR;a4x=K&d$w>Q zF#Z>Vxn5GysH|Sp%kT<{CITC5cumE@tlm^*c#+~vU^RlhYpupzSszNS5Gmw?&2X~7 zn@ITY^W14!eW*sTrIcM#m(`b68|?g!Y4~pI9)sQ1@h-bR6(7d+meRJ|Z!-tb@)(94 zGHo~5it>gm9JTb)C0CSxn>mE8G1#0y8V#l2#jtNPkD#Hwb;+{4g;~R?#bBYFG^(O| zW7xNuBd8dPbL+1aew$fMb7I)atWk80!B!N1n>m{NeNF4dX?T8ioWXh&t;`xnC&sXE zGsn{dg6UB;kzNr@N7h90^kXS2{8ho#Srcif!KMJ4M5i09A0q2$S|r#~|B;BSqv>43 zMS7VsHSK}V+aD#oEl?JRjp=3SP2)2%%%YQkmo<56V?`6%Q3Itws#ypj(1zShk z^Z$``DqW*_{u=|Ydm89Y!@I2DGOK}T2-jOjy-O~$LNwZ7Cl_C4Euhr~yCC;6>vVd- zV0GX%QsLoTPxm2AC4#M^kMKF$FpW*%Eu_hU>A8F%SHj=JDP=ehjbYwVU7Q5$CXCxS z?}GBQ1nl%2oaSjE^sskVp_3iQF2H%snK9nyxxwr>b`wspnrU84v&`&fdS0-l{%&q@ z_PMl6^XS#|e044r^Q|Y=>7*RSW(&50#+NhpJHeLHi#esJ_p#<-b?OCd>JeN|kE07| zxnL{&6`AYRg|yyaWf|n)bi`moGo0)TX`5iWy_NKtU^;eJ(&%9Jf z?Dxy)5reVcFQXR>#(uwy{$eop`#SoY!PxKX==*3%`2BJURC0UoTI~1BsnB5T_uo)A z!Isl;C8M){LsJA>N=IZm*&C=yFplK$*&Au6VA_A1X|Lw_e^c<5wVA#XY`OoM0*f}2 zw~Fw$!v6r~rK>2-U=v~8t0+&f<^Gdk-K(gR;f=_8%etDn8QzpE3uj$@4DT$|yM~4s z-ub9^4UIIs^D#4Qp>c+HDQ1Q(RBL$b*=y-U!^=RuYpGr^ZR_i3xh{#=b?7?!O0YH5 zuER0e*HQlw(g*bYgzW2ShG4qyH_|H2!^;or)s3`Pu;u-Tdhk@KrG!!O@b{&{}_8vFx|g9=`+FB z`LD`2C;LwFAF1nY?7SSA0q!z(w_f|%+>S|r5WrB_buxo$}`w<%o-0-sliGS zXAeac?+-!hId2yjoA;=v4(eR`Yphw8y-j2BXo-4 zab!J03k;7VYbTv$cpOiiqCAEgbNM?G^HOBt=L zTbbveUT49ybswc(hIe7t_3BX?B-nDSB)6m99KqOs_hvs%%XCTqO=$fYy2xPnc1Q!Z z)?mDfK1&-6#;fSF^gF@UQU5LvWj{yX3Z`3skvwCxX1C+tT7HoR7>sA47pdA{JQKZ0 zlMTi*(MvSLU_2AOL}7!C#!UM%t%}yeyz~lfFc{BEuh4db@w~K)o)S#Q=Pr6%FdZSg zC~Yij#_{=F_AWdP*LtRRc^TMp!E_(qq+N#BrOUh7Z_fz0>lPl7F{4+{%{y(k#Z-hWW<)0-MY3zyg*Qh*;qVlC!+A5orQOR0O| zYrc#!^L<7|6T}jz*E#3!RG~4{`^4Ex8wAts zeM#E{T@UXUP2rMU?>2v)^|@ed zmsL3(t?x93de`I>TkqF$NnNk2^_5^;?^AzQE9F?`alPAfdRloJL%nBmdRbkLi`N@u z^%IQiRU{3v=1+~*dpoDnI!j}yN4X=ctEa{5jk9hOjO#Tdjk7XNh}O%=t+fg@hI;*S zkF`!YFdniYXN9N7>z!#W7mVxeOFGl4sEgKH zk$bK+NMoq?yWHj012g0GR$DI!#`S6ftF6tmqxBxl-C%9g80x*B`&;X{ljHTaT5|;B zdcO^9wT_@(3Y0cIc>Q&_3Z5?)MyxvZ$QZTN!H?Y$>ZeFxrP2Nk^Y>lB_Q{F4q z#D;ji_pBL$alHw__pA*IqV*j5r*(~B%jgknUEV*f+Y)$RS@*_xoASQ0(oW}kZ&^jy zU3_D0H`vCUzQCRmjAH_4f7VNaEkoILdEZ*^C)E4i`m9k);d4EwA=IIh_~ zD?_kl^jq4Rx6djOOt=1n^<7h3$`4jRZXtB*q%s6sh9@nz=8>upOxLs2y=TPhS?URc zagUU$Srq3fb-Z9&rmbcQwhV6*-I`~sg$X>5iWpuIcpi0yV7fi8dhqPHOs{%QFfG$j zuL-scPoQqibJQmZJfHf9;SGmOpUP_1Qdm#Fni`4A^sAEv(=wA(gJ8?>MDNzTB(>a> zzSsOFOBok)LMfvFJ1Z1jq}n~p23)xp=K|O z^DJm=|>%*$4*R>bRNs|^NYUXFU={5UU1?J^ki za@AKC#Cf^Oe_>o^p1OHuoR_Dz8;t9EnQ3WC+O_CG zlvng|5zCp5+(ery-Tcnuznr7OtM(J6MPqq z2VMRS&~5sI#8sSPN#rOwk+!J;Wjv-#NhV7;7)*>zjxozvCNcINLkxK6p03RO4iTmB z9Zi{Ovx>3AiBZd{8=CMtFiX1L!NlAqk)6#5uxF9Xf zgC}xnXh$UdofduaXBz&9IR(_)WwS^O-C~*ec(Xnma8Sp-y=Lfj;4l*-52+Opd zXZW)n7R@bY$dS);UA)Y_Hd7uD*p{y76Hk<@Xs_fCT*jv5-qs~;x=1L8D(|5qoCDSJ zP_@v1ysnpaA3}nc-uaj0IMmN~aDB8ihwyK09>9j$R@x4_Us^XU(?`ueQ8J#U{@e2X z^vJ)|il3hP54M#=!)3&A{OAbLe%BsMw3zOfZV}IOrPfdNZ=wx#A9cF{LQtFN{a0HL z$Q!-;kAfw3y;Ud{Ef0_*q@?TE6x3NSFWY=8g7u)O2b1_61iHAu642OF%o6| zyZI!Xa|igW8&?LdOsd575Pq-m5Z?ZO2yc5oM7g-~aJ9!(fU5_dvmA!2H?F?8`r#Ug zYY48PxT%rk+??TIttflTw`#J#WfCB4X*LHlIZ9Xi_!scUj-PTZh&c!&u}nc zHe_;sjKHG>P7_!saIV191ug~5$1f9D+8Tk^0~XUQlD`YE3{L^1E$ir#3aXM*k}8W& zIo8WN9D@~ev*aDlEP01>y_7Gcd)$-pUUpU40{knooG+1lA-$Q=f;_|Z@($4sb${2( zVGDlqb12^VoQPjZ@SC4C^5$m^@tdDD#BYAqikw=JQ!5f?%e$bniQfgCP5dtCY~pu8 z=Sj(VQgWV@d=y&svYr*)76T4Pel6a4S&sZv`wcBlq5xwl$%*2CTIM9H^{7NPD&Nc%vo?)tQ~mVVXkEx=tJ z-a)O;%RjQxtzKE5TS@lCUB0o>?ZyIIO@o9~K$bAgdJAvSBw2Gai_{0|x~y($gS67# zzQG+1%7XNx)HOocMk7nkRku-5x3%g*c{}8Dcx1imW@i*^RQF1m2Lb<}o{;Q)=b?sb!)Bl`A>OHwC>J%-E*}4YS%YC z?4!>;JEZ(HoAumbZR_%b=L1!clGrARn^9(4`E`Ip+?DnR>fNMm$iLr(VUO}#04L?$ z4!9%fA;7-{xXfJlN#rjLJP$aaBtn=L6Lx>wLfqGFJiKoxTRp%325bQNc#%Hneq#eJ|itjFc}kwmT1soCihDgCge% za6fTg01Wze0pb~x=@>pQ^Ll}F~HkFC7GTAxR8B!6supT7b5 zJ?|7D^2$o&B{!IZ-IHL8gyze*@;g>nrjxB0gT=lZ~=H~{g;4qlr5codNi{;L70PT-Y6A0w(j=7S zp!_zlN+@fEat$bZ1KWghn@}DEWkT=?ptq%9oSM4a z7o2Ndg1DV#ofUit`Io?*CMBmy$!St@ku?NyzR0>7Pf2&#Our8>WWCMrh^)7^mUc?nY(I^Xo9%UYn&^?9deGBLFpKiaSSKxR7M(X+{G|C=y0|=) zQm8eN@`X~qP|DX@SCp?+{X9Is4Hd1bMXPGj>O%YT@|4sI?X#fy2WozYVX4>K&vYA^ zTI0DtcNSn@cO2Dv*he2=q%2N7QRpWM9jimPHL0^TR~^~m%G75uQY>l`9hyXkCedNJ zbz1RSwLvu8AlwbY-5}g~qE(Y<)g)RyO2=as-2t!lZucl<6c1_lH6*9eHj(fseO)-d z-8PZ4P2_A7IS&f=L7_h=^aq8$OIrUwOra-E^Vb^*Yr-iRJ^CS7jP)qX{p$G zl>k=Lc)-#4)j}$M9~{AXM=d>-mVx)`o|ZG4)ao>eabzNlUUd{sRI_=dm~ zo9XHHYpB)DX8K^E907`-#!LQa$uE@rA}M(>N@ma&fqxYEq`*%EW_y@>q`-*4KMC}D znSPAG8wI8~Oj#)K9f7~_J(JdnE~0HkUGcV8Lw-+uQ{kxgJ+aT61Xw^Jz%FzaV0StX z5WhVGJe)QIj-!G{7p6JQDw=aYOzLx)iWZD6@ppB9x^< zStgWCLfI^otA(;%C_9AmfKc9&{9o~o(jSZdiuZvU@-2(?FSb~IC&^bzzDn{lBwr`_ z7RfJ_{C3Ij5lD*b77N@YaJ#@g0?B4>mCe1V6Szqzneh5LhR$Mc`6_n*?qaxLx25fo}=4ydpOVu4)*Rtl^VI8xvYfpr3B32YI#RNyj!n*?qac(uUo0v`~#N8n!tQWCdr3oI7c zMc_z*bpmGzY)RTmoeP#qewn~cpqyN=S@Jss?g3?M!CR8I0xY?cz{$ z7J=I{IKL-jE1gnEnb5qj81R$AO2Cp1+cSkLkg~SY{0^0XzwfXqi|N}1?h#1%ASzlH zSSfIZz!rg<1a8;)T&XLN@}!o)N`W&3wg}uLaJ#@g0;#=}7q~|tV!U*i0eE=F7Qjn7zFqh@bfyj>LEt8V+Xe0sNF9YMuu|X*fh__z3EVDlkIoly z`8@)uSn3L_EZ$15cBIZ*DZ8k+3)3qF&Jft5^A%g^*rH7pGS~HBxLsgnPtLaptUQeK z)JrG=xAzuGABL3zTLf+wNPUGautnf@fz(gv0$T*)rhwi|n?ft-2D%p~6|d5#6tp^9 zr&y~j?Ch-muZicvIyVHD8~6rC!COU#u-f)ted4cohZloOmCde^vC(k z0G!W^KpJg%J-hnCiXWb9jG02p!vYGNq z2c|q6cm%Ll!4rVL?EEa?g&ki4yuIUYz&{4x2fQhlDHoJ~40vjQ^QY%9+*SBb!2U%H zFDPcpRH>CHVPCf&K-Y2}FH3FDTD1qfCC~wIa5m?AxSardWpZ1U8D+@#%wedxmlbjT zOrd)O{;r@Llt)CjnIhr1ET(Ld{N*A)NAiU(%RIceC%EAvhD$OTUYpSmuuMvBaJlXU z(t0{HG8JNq{Mc0tL^f0A?aC6uh4f*dCaoe8ho*-*W*AK~sp30z_2_phBc{ zK)wu6Axesn9|)+h@8mBJ32v1#GFt~c_tu%okZiq#kSdj6^boeZex6zF2n z96*KNvJXc7R6vDY-Qmd315`90y5Lv1fC_uZ;m9urRQRev72qmpq3{O!k$@Y~vcelk zV^HQwK*euoBY!QR!aLUd&4%9rD!LxuOR_LSOhkSwzIS5LHb6YN#SYV=n*bI43Hxn} z{tT$_+wbE5x6?FGb^t26AG=UIR|HfzDf$KS4*}xIDt^6h;ceaN$nS)2EqYWu{4{J} z;eFUypg#*6So9pAqUT`)3%?jY1^E|Y0}Jo4&PD!B*g(KZXV%KZXV&KbD3d zKbD3fKaPeWKaMJqub~mh*HAU`_yPv<<7qVVL(u+7`0mcd_+9p9eB=Kyd=2AE`UW=b zVGXh-TAQrbtlnylI$Nz$SE;S)KJ~DALcM@H;=ikJR2O@^y}*9T-e(W<)OcoluJGLC zdD!#3=TpxRZ`k{5Z=O@^banbV$2q4vzjyxVJmI|KC||B`pl`VE7~jdh6~0@1kNckY zz3KbN_k~aS+xc_--TVXn!~M1XS^m@f4gT}}m;0~uU*-R^|7rir{@46p`-4fDNjXV_ zlEx)XNjf&EIq8z5%aeYcbbr#zNpB|oB`GD)CD1+4GjJmQ(aPq)lECi+j|83$JQr|+ zMZvDY@?c%?%Ahy7L-MfXImxFdZ%p2j{Ce_VllLV%DR-v4oU$ina_WNAb5k!%^|VWA zcSE~BwDYv^lMy^Djr}ci`HhSC-(&3#!#fOZY5J=y@lu@o7B$x?(7+P3f{-X_rB zVd9kko^N+_F{g>`?rL|j(7Hpr3S2#K^~7};u3or$Wtkz%>xpAY6lS z4Z(FduA#V&z%>lla9ox63RD%PBR0|zlj)d2(-Dv9h(mnY2iItfpE0<`;u?o_y#`}w zJhad{j_$-e2M-FdQv(DLI#PbRO>lj-nI zc(@JvJ;EPES8{Raex>62L#R~DGSuK$9XwoMC>@UHdi;$CcIoR6lLMb20wXRMJk*2o!am4n zCb4skkym5n)fjm-MqZ7PR|9!GKx$};#K8n3cY={S!N{Fpp`IC(NNk;x8BY%>SKgr0SWaLjW@+TSjlZ^aHke@8_ zzn1u&Y}%P@+L>(HnQYpbY}%P@+L>(HnQYpbY}%P@+L>(HnQYpbOkd+S_e7KF3K=t!b~;v{!4|t3`XMXt$Qe$hc^s)iRxa zZ_*!3YFnCKrB?gTr|s58yi2RB9%>^Ui!0ZDoch~%T40|~%k6#CL!D1oBmIN@S9%%g zJN75k&+{zZ>j_#Pc)p_#Jj%-VZlsC0PQZ1Fx0|)ttE_kIjdTIl@K>rnxK6_LD_oD^a*`_5C|oOXJ%_7fpi(v9x*u15uu`27 z+(;{f1JyIQx+jlUGm{6ZvvJ*+JXd{$D>da3Rf%gRu7xR=t1T%5)d#q~#Fd*mP~DRH zq}q)ur`=ywb-Pd0DY!0bH&ET%4(5Xad-tLV^-X7n8c!Qv-!vyQdj<$qvzq3H8aQ`G z-MoeMIt3g$v0>7@x<$igPoLf&*sxjCr&rGnF92!eyt;6>f3N8Wpbj`7wSV6OmF?Y6 zsDr0Z?<2V>iyCIlX$&>YJ-dENQ(aU2u$fU#+qV1Znr$@d-Ty$X^gkfA-+%*^?Kkj1 z)ZT**MD2e-YQMo;R$Fdn-K^7&Y?xg?n>!-Z$@Srd^QB+9P~F0C6gyDoQRt}prmDtM z#?>!6mVILcO|Cy>Zn&wwal*p6BkShP<8}<^n1;rK@+LM+sjrU~oY+uZKd-*2e#)%I z`uc{Lf=AAt+th|Mr75%^#+QK5y&1NEJ5}4eHw~?BtUHs#1o<}6g|8!+=<02vOH!^h zv0>EQ#&A>ZTquvaeR@L{qHGYvAc1gB7V4y}qo?<8LKjz2=IH$30<~+vOuv6wX zaTdWi>ohJ58Azf%qA?>w^XAo?{!vvJ;mbwz$QrS5?!4LcjVOQQ8TAcKqw5-G&(rAX z3+v|1ZCb?I)HMo;YgL_Dht{}!RF9^RU^Q?xsCsO2!aW~2efpV=bqm;LeeeU-#(E5w zDYNS4)t?+{oIkl9K?lj=l0I!s(I?h{K1QgdkTa&Csc#>ug}`uB)R@`B`olLg6e4Tq zB6Kx2d*R#>jiEEcXhRctR)`_&HB{NpJ-uceh}s)eaavnVV~X~nX#7vAo7;%uW2)zh z)$1A;0UH@=n632OK5PeTth3-Kh-zinUo$NJLW^hHvZ zp(FR$xwGp-JhkYU?bn}bnO8S&*1~xRY^*v>bq%xX*=KEq$7CDPlA!*8g!;#Z=JBkH z+Mrg=I(^~X#`@}b1Pi_Od@&%Z@c^x`B&a;GAz^|JWG$<--kd`G0mmN&CgAdqQP)%oJQJ*+7 za3z^HTAN~Un|23B+a0Xil>~Lihh{IFS3iu78cE~pXV0zE?(0)cx{bbgz8fb4tC}>1 zCN_+Qr;iy!Q|5%uL{dwq)Hh8R?WRh0atP}_=4Xvf3WeutY(Xp+t1zuq1&u{3OrvN8 zO_vsqZ&g8K(F(^C)>$mhvMgZ!uA5!gR7dl}vqFvY=FWtXXVH{JSaIj~tX|YmH-Byn zjjsUVo=4R;)Hi}p+4TQ4clEJtUDy3S>VqGmXp^*>xTYOC zO&SNbIa!t*+pQBTl0Veewqnsv(z=x>@>$|ckqkc^DP1rUXnxN`lunyRO6_|_te&^ozK|U(>hW#+t&;23ODI;-Bk1eE!nNSz3FRIZeg$4 zD7S#1p)~koS6M>>+5g%aUJ-q!%57N}R%*36lIOST*!%5`LT+gt z`>504=)4i~fw&!=<$^EL1k-KnUUH#%xm|5xzat~t4O=gik}8x+5La4E+Ik{GH)=QS zzCu`9JwURzU#T_=*X>JHV}-aB^ye3<5PDb$F93q9U1<7CG*@5@mP=Tu&!21K`cX5F zkC&I1&z9{9N;Hpr1$uD4f`*ZHvfo#%3GXX3+p8D=ULP$gEH8_-glWCfsQAj-J-K47 zQfv5XA=^z~wnv5@zp=dhB+M?%y%|yuAA;5S%~G%sc3!n~p-mi>4iVIPH$0z>okpn z>%{UMTy+j_axYZO&K#i9_(_3sS*<}9Uc{zx)5fBJhZJbDWLK^SOV1aY>%r2e%ca(U zVpt;D$qFF%^vU)x;&laDa-jqYy)_i5(ke(#ZLndFGZ$#x9d))%a8h&!a^G+2Ay zF0ZW*Xm!pujxhbNU^6b4KP|3U<(%Z=}2iBP>a$wSPCvVYSGuF zrz?G3`U|B?UqQ)O_=01hs?B{>b`sq5=Cq3k^5MBFvm=>YQx}35F6+5k$yQ64^b2;g zSyUP)Gn+-7 zH|F6&^=9pctvSNIL9;Y7nw({i`a_3-V z2=UwuBmtq8GzoXoEmH;>%xpU*x!cTdwFn-#A$G;B_I5tQahhtnA2G;WK(h^M^7WRe zTINcYdAp&2__B3zQ(Z*f)+m6!Y)$++7tq@$b*HkmyS3T|@xiou>)oAH*^DMhJBP)R zaa4;i#c+?RM)GF0NWR5FS6^sh79jtQEF|_6toin9EH1MO)J<`%rM=#>rKL$S@W6Pd zdb)wo7R-8CFRQ#Rh*uAFO&A(8t7KKjZ{Lcn1j33fL8aK z>anw7f0>UTUKLdK)pE1k1MVy((N-R4KuEnRy;RROpwDVHF3y5W znExiC9Kp(kD&x0ePQf_thg!0+kP$gvv>O}c=3op6hF&kP8FS9-fcq478%9$gk%di3 zHNAR=y2S>lD7Vy;%-YS2>hsul|v{cNLA*z(F8JhCrVeHCVNlJZu0waf^(*Nlr& zRlS8t?8Ub#~{aLan=!ka6D|a)UMaDr!>!& ztKxD?|MVDSB}&4mg#0>!WhHEGj*c)R%9&|mO}>V}Rs***Hn9Hq%T|m{LtI-FUQ+@X zT?GY?2-BKgy3#L=7wK0L>&z{-@pYllS{DFuPt@~tQhebLZIR!xuo1l9#948G-PYhT!d7m!=yb%8 z3hx0qkrYY8CX=h4FiHAu7nw=2ZSBeQ zhulHEbm3?jpDuL`&Os{Ftu$*@50&?JRy4OHqe*xlrty;BNyWYxutXZq(oV6)R92SY*74&UMiuzJ}wbdxd z9WqCTFWcA6ol4ogdB2T&0im(hB+4$dL&9_hrVWKpXJGXB)7X*ix-{>jOg&v_RI&E1 z*VJOIuCSTZ4XcqLM&3*2TIJxuaeNQ>Sx}4dIo)K>B55RMpO&1DPd^gNW>MPWcbarT5_Ja18GB6K3EvRno8#bH?q?I;b+kin$n*%Tu zedsz_NIJG7!q8W=-MuPU@?t^4Shw9-g9Br zz*{2;ZkZBG|RAd?k6>kg%HO5I(?<6u*cOcFtnDcz20pvhXHrmy4QF}j*;Q8+1 zieL!ij7~#muvB|a)imiT8wnWDhYl4r6_vbMVh}7uBOzhNuLd7C5%2`@xYye*pRE z0%C4`D>*lIso`WHT+o_uF33-l>hGrCC)Dx@)b%zUNCc^>nv6LeW*#6LSRl?hBL$mD zqy&87?O&bF!#~EB*ptCTL7D3!N`_9=-4q!;2i@6HZHB6KvVik!DB(th6^+~cN|S3c z*hd>JMO6Zd=v@kPzy-bhdA~wtw6{bSp&vpPkN`6zSZlY`1q|gPg2JlBFECSgc<%Zp z13gdL2-B4$C1wUC zB`|R5)rL8F!8E9+8_eVleDcs*j@jRHqRu<>)l&=?t+7Qh5|ssS&6!b0Qz-4k@c=@* zQh`gjQ3nwIKJr;SQl@0V`>97>k03IIHM2kLSGn zRB^2AlYM!Vum_fs-!gi1Mvqz4wm}K6*YVvzJzQV3%ppfuj^%meITEk-Byy8@&gKZdCzZ9k2)Ht!$g8Wq z9@WStJQbr3uLs7%anwK~$5sV)jz`bDN(Z4;w2mGqb!v=KrDsiz>p3@LjZ!|ycZC$C z>4s8|w2{Yw7t|msj&Gfs2L_I&1**woHNg>5EC#7nSL(eL(6w%We z83nPZ-K6R{^uSpqMyFT)u9Jtukxw;t22UbfR+sQmj|_rv=8BR~2R3jac@xx53enRMIDYc_l z8>s!g`2l0x`{bQ+dnZ2YN_Wg1CHyB8YBy8FQ6^w zmXb}m(HcZ+v>PbjLdk=8G4g}_xw~i24uIzf;Nbw)(W_iFSA1M&Z|td!p18{V>+iEz zJhW z>L|_L$LqzHMknmTaPDXSJ~ev%2R&Jng6JygkR%4Wa(NC2%GWn)A3mgYPRC?-{ha0!-V~ z9oEu+LB>7{+Bhys=Td-9$mI_5ZP`$VpUD{WR;Y?{-l>h${wAQvt#yotnyRc`5R9%) zi8{NDl9gIUZ*E;u&&^4c;e0vw3b$kqB}=ksIm0Q4z5T_cN4m<3@ud0 zx7I9!DD-L8;v!~+|b=QN91<=pBWtLo0Q*8^7PnO;r7 zohu9KZ0uZFP^$ZP*1fic{93}y`;Ixt`zoH8CN1DST<(7Pq7HH7nfOR2<&DxzO`^4l zmVR0X&YsS3QJ->7oxRpb_3WVa(<{Zj>xlib?MbX}S{&;6LAr^2)VeG<3i3QJ^l<;s z`+xr^2oscBK3hF6tLi~z?HNS5wuscT>lkSZyl(=U&yTk-$7N8oh8_+dp2J{q?7Q_U*=BtA9|# zS<8w*5#k+$mX%C0o8VVS@~7ncsgZ2RN+d>6oa(%+FTWR_NOit%r4B_VQjt(vrLCdS zw8F=Vg)OHDFx^jEX*@HGSKUi0oDC6JnHu&QNvqMYV89nBNrck)DdM3-s%t0qW`I5} zm4a3$M<-G{fi=R8m>3S@D>jkZHAFhnAy5&Dv(hOry@euS0}%qiMC$%w4WAxDi=hNt zctxhoP%P|1h0;Ty--;!>WsuOeQd?w9=Kd%cqw~Uyy^*~M!V&qX0_XN-M#7=gbKt8= zJqPxsy3ZwI`0bePbNs(SSd8{LP?zd_nQ#h|FoNHKPb9{`w}(Ti&KFXhmqx-?vhyb+ z&{&5XZkLJf z%SdCkGYP@{4Z-~t!TAjmi}6{Ry_un~mB7=kiJ_R47zaU*4q==`o(L1k=TjRIHN+u& zJ|uWv7YwhDg+l=QmX$i4I-Q(Iy*PwiH|r z2J=>UBH8&K355_dmDWsuOB4PI3CHYqzMDEtuKal@bvm?brxn^qk$=VF1%>-mXgCHW zr17_L1!F;$bnrvz?1va^D1l-J-`fDLB zjDlkE6RG_7)M?CHT+;su0!ZtBrA|Xe;^Y{nF?IUBFz1G=x%U!*kZ$l_e5ZxqgMhs8 zUo-}37ibE@erABA^CnhQ-OYe@6k%nGhR^^a(wQjNnKU283}vuN!o$F$z^Z*Jff4*8 zWQ2TTNoX_?1FK9a`U5XbCPX?MXnm#RSZw+wG=;>5qB0R++>gM0VB3cm4h&&gC7^NG zop7=HH7rkbt*at($z;GZNOLHWwDACT(hjR(wo8c8iGxCj9xq`mQ%LlWI9J_a@*Uqy zM0K$@C587(`hH1gBu)I_Z5%v{$Kw!=h^U1KQjin86DpBFc|0D$ zA4VF%8r3VDt0ojBSTvp;0wLx<)^@7+N76;Fh)Xmw&NJ8Wv9=JoJbgyu;>IO&dbCADJ4w=w~^iBPf&_14|($o{RJ$UUq} zMeuL!m`JsH@>~MG23$v8bL~m_T$y9mCaj3rh>~yVJrq8KsxZmoNfM zSsfQ{;zo!v5PrSoqTT|Amf)AoOIF&$p^U(owUZ8k!<%NSq;zC5qJ|$GLV~zLdX1%r zu;hQi-5$eWAOJE^jOOq#Q-l>>qTk_AdKi4@bVi&_H$5E5jz|m6X!pnnn@F2sgMTEH z9sz4RpMz<^jXgb-9!`%$v!l9IhP&g;s5FyyBc|PGC_S1+yI%_X+oeZi*|2Gu0p;Bj zVck^Pj+(YGMZ%cY&ac8Q@%jY5@K`qDw9atGPDM;}X&*N2VGKp?L;GKg_P0+*;@PN+ zA;UdvHtL`d91(*f8cIiZ1IKT~f;iIA@odb)k^xVoiVJZcI>9$)@WGUeKLC8c zJH8#hbbM!aya!_@1(Z*X`%wzcxWPFdN{{ac&Obm90rj&xdQl7RL?jC8`UY!dInz~;PjpB0IPP>}3=<6t-fD9|j* z!o4OtUvkwHl!(T{ZS@tmShP66(rO&rs}DTJo!84JJFjD<)8Ogc3hl;5i;-%3r^oEU zxBvj9Lu*eGH1d!zl)j$kkRPIvDCm)palv{3_i2>DXkx#q({V!q%*oCh*>EhvMyVBD zyTTnvC-bRA;4rPJtJ!+RZM~B0yamRkx>OhJAa6kOE=b-1c~byy-%oBnl!Cvq9%2Q1O1V^lB==`JYfQ6{hF|#4w-gysP`{ zysJCqEgLkGP^}y$50e2951jkhPtk zLJj)h>56g#(Ll5dA`zkSyrI#d?0%u_Jc#%p1>qUaegIngsk2C0evYWj>9M*81 zJE_hc!xto9b(nR>Vb&dwS$C4%hvHmtojZoJ*s^GIMZm12jep%AIV2r`EvU;VEh{iQ z(8RRT!rnb3#FkPpAvCeB@cM{dNp>fb(&uZ2O884Il`lC|zT{E)QnEW8`O_D!UEMwX z_REpUuUz`4KmNn7z887ziRE8RelK=1!59r=f(67LY?U~Iz`_Z9Cgqd$vIi0WJdXE) z9aA$B=b1s|!Bz*(BUIIU>xHki_HJ+FB(Q`q&fNf|=i_eAi-UTzK|=}s9|aYwh|HEi z!xYG!21VC}wkecPOC+ZNn4?HfNwjGiw}XaxpO3F1Rl{$EloyWuvWzF%zQ`5Og{yUVN!(C}SK76Wbw{g0saww}G3cyXxJdUSUPpv-o zSYf6(bL_~8qto`}@e>nPKD2Y`M!615I1H~3Dj;T(v_qo^Sfn1p=KwxgeAXkd;W~c> zjW;UBT!MM}zHd5-+hLT@$rVUCZsP)iX5xxPk<+Q+Q93{PdKZWn@yUlqRU|YTLvhI|UfGG_9xE0`}&GNAT`uW=)dzd zetm^sUnfo9i~-hcEQwKB17 z#(F42?={4)AvkmvBsrDEeqp7uC`+x6z@AU7>v&Q`ytLHDgbs1^ar%S7Qis`NFy^W5 z7`xe##m>#W$HZiCCq%+15p*O832=zm!3CEhaMdlm?G@gRuqnk+N5Ys2XR*^^hT>Uj zf9~RFtSy+^yRr-n$?SXGON=qDkxFzRq3HpHi1ZFagOiW3T33xpl}-zr4(*V5g+ZR! zr^Zb{M#h?m?X-sBH6aA}CjO2**4_F9A6b*Ht)o3)?Yr9Poy~ z%lF<4#6-evj~ah4Y4V3%zb|b{j`%#ganR=3%0^D%t9fPVksV;4KYyRWbE3~{OJYL& zaOu(A2J%$EM@z#;>xE5+_ZaBe0Up@|JhFcHbY!n-ab}?Zbszk%V4HOG0n=(>8*ghj zysbg)(y{%f<%Mm1t3B|o2DeR*eaN(a>U}(^z3`;AYoCrkY%pATU%%-A_)Xj6NRK~a zusnMgFKIu#r1!& zBEUw(c?;}5ynFmGd8iJ2>!#I(UB)UMr<$ zEH!zT*1qS7_|_%7eomdV)XZI4^*>N4O{bNbv()2(rb}|fj%VI{$LS9ae18|-)1~I| z67qY+F(*&l_zrE8kZFwk2}_;4S0tB$Z?jS-EH!=a?Kw8~jQ2yTSxbHN-dp+~F%=Bk zF_B&1LCBo%82i-x!R=lSHkgXL;V`cu!9b2Fb<9#n0^`^QgY)7;91S^dskwV?hO>+fo|y{3aNo(*ORH+>{Or`sF=aYkaXRI|KK;rMK6(D5-+k=8 zANb(<50-#C;j{OkWfjo}$(NrV;M}5Ad$= z3ACL{toTN9uj9xeHpbJ){5y~L?pt{4Io>!S*vO?i z_`?yc;mlAAFu}4cen}*Ye^a3A2x4qXeNt$znd{J;78 EZ>8ZZEC2ui literal 75776 zcmbS!31HR5@&A1Hz4v`b4)Su6gYXha@+B9i2nd=0f+!wHJV4Y0h>9W)UV?&;hlwB_ z#jD<;78HwGkE&?BYNJx?f!2dsv525(!K(GDM{Du_nc00u5~%$C(eLcc?C$LB%q z?I%{5AXkjFLW~AlZ z(43Y93&QQ8*{z|-;sv333qli*ogO+jJh!zzBO@@-h(7LcqPeRSb*`uX#9RA<%0p>t z2vNDE6^mzt1nB^mh;fz7wwcF2oC`kxxTyK!L{A!o1(2nYP@GP1k_^V0E!xF~+20Rz zTe!cx1L22=jz}q2-`={U9rWcP=#M<Mm(NmG;3dRnbDCKsC}LPES-$F;eAM>|2+ zV!+~nvg=3KwS%1!E+|rLf#H5&)D}3U!sq(7$PV`hTAg2AQ2l18fsOyoNU<1+Tk*0SF;XYnhhOb-e7J7IxOsaMK)Bb$k)vWvZ-Pb21M~{26gVr+?uq# z`HY9lA>xjT0^P~9Y^!3Chs!aDmt$O)a|W=Yun2-((h5$KmSHw5Biy)M5OS~!qPeGC zxUemfy4!_o+fjz8cA4?atDW8K!qxX-7pb>zyByZdE?oaW?7{*M*e;bQTsPoi-C_%`u|H(zr7pX)EjI14;rU&3Kx7mP1SYfM_p=`RyL=3=lDmr|Y>7gCw-m=qGf zFM^M}VmH6B+g!W$bmMofY)2VtyG=H8152}`48?AkOX`5DD2ulRhUZRovr&)dp@-2H zA_Vi$m+(0^A8GXA)-9c9>k{IN7!TJApnSiBu&*nRwQb9R*B{>R^foiBae z&1ceVZ=Z47`|z1G+I##-oBJMrZk0OzxU~cEB{zQ{zGQuV&X*M!f2`mEk3TGE;`2i| zO|C`EhL43CUyCrxv9G}1x97fs3)@kK-Pa+Rk{2t0_(wEGJFNGWTC1y?Nj~#1IUvgnP%CNgH zxwb8mQ+?@bKI5ov{gR5keaW@=v#>?FIDAj$nkb3)$@hVqpjC1`1u?q`4 zV7oM;FvrVyPLp`5>qz)pF_PAPj5u4G3U zYCFaEBrL_2mc&ljU)HhQD2ufP?tf46d3nhr-K;6%ds~y+*vIY|Q&eZujTbvBaD<35D4glTCVrNvD|fNRwitCgrA@^k|bF!zs_(ijXBg ziOnU;h9g-t9LbV-Bg2warYFXdRi+(d$tu$uW63Jh7h}mP(;pMbJU+gMRLrFCd%pJj zA-ln`NACbMJ5p}RjxrSQkNzWPm9ik|m@QBOVD!D5rDK3KvZD+o21Z}SS^6b_m9(P_ zW&2ZmzH=;a6=kJuf#KtT;M;V5jm_OJ#LHOKBJIXM8 zBJ&HJlZ4NmwxbNgCj-dx#y0p1RO6q}1FwHOt6NM;r$Z>)edc4M?;|Fqv%U9R(oxxS z8QIC+hG(S6PIfjtGliY(YxtBDcCxGCSt;yfPs67&8{vca@yf9vRtCIhrMYQge}7`r z&Rsl^0m6MgkO9I*__+bX8$Gtl&u#Q7igZxqxU=0Ai%Jlns~N=K$QUdyrk#0xTR3SxY7 zNagsleHDukE5)lB#0xU63npfT(@>gch0{&iY|<8!&Nk^BPTx!nc&>&4&$Te%xe^a} zuEYbLEAfDrN~HIC8<1kv!`Lo^7I@D*O`m)I)l(8Pcql9c8G8bb%Sttfn1hC_`GmwencJ8XEFXsO%Si z&+0Z7S=Dd|p!-;4P4_Vto0;8vEQ*G`$D%0Mdn}56G8U_O47n{Ltd1B%r5;*Xk{Cj) z*?|lpR`o!J5bJ&*Lx?+bAVY|IcR)jk`}?y)C=thVQJUkpmDA)7jM<1&;p#YSgg>#m zAP&oQ9HyRkb8$P$u=^g2>)Rqbbq{t>%@b+eqCzV6jtZ{5pFNn@PTiYw{R8nG3;a3X zB`k9W3bSR-H0fC;ooCXsIej=Wvbi`c#-%Z`xiF7xF3cla3d^Q*KahZ+9 zQ;%d8Vn-QjJDzSvGE22Z6FrhAn~}`T*inXhBo8(tnVYqv4E0DZFe91Ou%irRB&VJ; zErnkE6S~;>a&$NEh&mzE={{yzr+tiBQKt8p6G5FfKzKj&lK1G1h6GCo=H0~w#(lb;=*I=D_OqbD}}IP{^dzJj)MP^|;!2X5|v zG3L&5krtx=ZS#>6uw5}Q0`4?r@3j{IYYPK7n8RwIl(Ps#g{)E@S)bBhuYwdO!e!b3 zeBpM$yO^1_y>De?J4|XvS)#L;!EdpWY$q?bZDj#aADTFw`l5Y{bqRq}1YNReZyw7~ zu53$VUPnQNz;;*VcCxE=T_5EXlZ)$O)EvfLD#w>ILBME;GXwzx6N)Y&2pHqz3_-w{ z5N8Nds)t(j17XpMk0AOI2xg9dGjS0FUN203ZW)s>@CkoV-MVgt#4spj1UzT5l zoIAoR04v?quE^V5!h=d_uE?%9p6-f##kdWAhAR^A89c}Bij*+H6>>bTh{FUonPa!D zgvbhi_+n1%@G4G%p714{dc&6r=?=r3VB29BI8fmW{{l&lclkt^A?OXS29;1WG7+*9 ziq^MXfy@prDE)TRI13%ej|ycWjQDlO9e3i9s0kA~*O z?7MrgztZd*dawujrOBImu#ea5>wB;-((D_1us3SjSW*K;gLj3{UN5oIS z<=hNdYhiFciKg=%L}nm>k(waVq+A4_BTR0#a@L?wU0Uj3@X45PMTR7cxf}#hpw7{JI+_9zTuHe<1YV#~h^G z)e#;A@%hKT!$ExSZim*)D?yK&K17Feyh3mbJ=j3DMt)!elWnu}?I zxeLG*b;9?65x$qX-a0#X6zoTBztM%R=0Y~Nd!J^kPcZJ+jK>p<2Q*`Ig7Khc>_{*$ zyK~FmBp3)LX81DVtvsw5`3c4&nlUiJ*a$}WQRaH<2DLq=vxjlEo7McCW=u*j9tWew z$_+n(G(EyoV%)tx86!XMV~>1;+)vD;N6zA=WZkNc@MIYm|1;6U>tP z=Rl`~$8(@m!rM8}D&gsz%oH!@^hxn>PL?Z@@NN!9VZyUH*(ouZlcUFoH~b_!)Qk+j z9w)xk0fGfuhD6XGmO+5ESpq!h3rqM1b5i2lS684zCg|3Yf>l2?Kq`E7uH2fVb@T@V zI_QIGVTtu%dRRg{m=Tu94rYcWpo4wF634-;u!L_g7?!9FW``5Onv)yhWj7uh!Q2Ck zJ-wI1x`I8Z^At=G!;~)bHKt#gr!mj-JgwPI2ExWr&hJsY`nCLg=NTZ8*AP{0e*l)U zGVEsqBkROe%mR*XSJp&KtgEayX`E7jeK;Zi_&BT(X_o;Ouuk2Ur`bP4R75@Zk<2sr5f6pYm z_8x{dYP7Ch>`R0ZbWt&ck?4pp5*-m{tfS6$vb0Z`a-L(KF7Lkf>Rm)dovN&MT(Xlm z06QNC?f(yU*6#zgVxL}nclgZ}>0nFoN|C1ZvAtm*l-Xa1!RBsihCS*a)9nON5w8N- zNNVdNm$R&^uzb7hwm+iBZ7%>+wEYP%{33w!5(9*Mpt7borF7fN%*Ti@nFR$B`|?f% zyHmZkJtPNWzY`m)7>2*t94iUiT(g}VD5B%yXZ8!cQU5>KQIF@rS`Qh|7^P@e#V|-k zkEgXBn(gF54`{`d9?uf1Kcf@xpZ^a!rH;vm+48)Q#^1|$Om-b`tR!}{9*#p?3S0(L zyWHVdkR-ReUY#kMU+jMUOeSgux>4y&$$WG${5K@UZqFLKVMK`Cy0qOi+sV^*V@liY z(B($}ud}L^vze6{pP*gNtIUYMUh_CT7H#p5k|mM9L%CG}e}-~1XKe$2c@p%72{Duv zG}IV7j?wsy*(pr8`J0s+=V3=9smA$+6~DPm%J~Zde7jdUebM|jIYUrr)92%>b3}Om zXAyh?$L-5mf*@e9Cc+Q|3~q%>N;61VKPeyx7_6l*1ObC}6^0;akH=%4MKlyPR?2xD z$~ij#0(P$R8Z@j8DhC75h5?AemFySi&)|nq5-&6ioi_l|&?ByVaPRVV_)Qe3E!2XP zgP|;HKvBn5SDTyBQ}=ee&I;$CSZ$giNwHt8Kr+~n;XcEn_(&Ojd@Sz1x$Ss-|rrA!uj&G)Pd=E47aig6F zleo$i9>7#Q3m42&vMN%uaG+*aPcpUKo=kVRwp-!q)WS7PAYOcQC_-U4bWR2WPFMem zPTSFU1a1X%>HhP9qdOnFk$1sM^VWL3ZGQt+om>5D0Fo3>jVLV+YyE!U~nTm z#!if92m;1QafTpZoE&Ee0vqwzLhR899$QgXIy@Oh44}`SLO~uXyO5>~E#>?jjM0~) zlFn1kM_@=K{{IaI({2OWO}Z;(M40^Xoc|uo9_F!uFlWWQ@v*^#vYj6}5rxdycvF{4 zj14Xq=CR=%1z<#v1sa~lv?Bv!nBgA*R&tI%C}j*_nU^tuNkGN`CJdy@G}|fAV}Pl| z7?6hJV}Oa|7?7;^7|>bqF(6s-F(6sp#(*vy9|KZY#=x(Y^SM|;!%w(5%`$<@d3-QFbRyEFoyRAFCNBo~-f*X*~7X zg*Y&a@0}0UvGE~l#$H1m-Zx=(N9u}Us+SnSV$Lz5vmMmt{S#9huQ-TiTc95_ipQd8 z82%U;ftn0Ej4_9)Ni?&=yFt|bV|&1^wQXT-GjR)rvfx8Xr@{)pLag6Ipc{=&iCv6$ z(GQ_6dTr5qX|_|O^#>QKbua(qaIf5|tMLkSi3ll#BL&MK(r^(O* z??j3BMNFZh$973wF*pgdJBBeXdSMbqx=a`2sA79D)kCkbtk)$*FF3N7UYG7eudcXW zF8L-gj%8eCWWfKuWL(};hS%#3KPy7`d=)<9H7D5i3nK%O&`ZYZ9x@P$5b`JsVHvOu zzlR0et}rq%o_oo-vWJXXM8zYJ5SB?IVdn$k@)h z7=P|$J2RDH=ONIok#)P)==K@%6JzYU9!hb?!kgm#`X%a)M_pGK8U(_ai~3t}w(0!k;t1B${CSlNqn1Fuq_0##y2SR@FfGjTFXL%yI@{@|?ZlMxFI3}o!cB*xul$pk z1fflAP6PKXR%E<$O4DJM1J(E-P)20}7n+TgJ=X1IzOPKlh2G$&E$g~T2Oe!X{dtVigU2Lx1E0@n}7Gs z;oYb6AEEjxCzzo4i+c@U&~eM<9(VQG%874z#d7~eox}>Rjky;rY#$?&po~6as)M}h z<5lEja9nOr8&-mVBTN*V-M!dpDzbo!wULF;#J7-S$tB%O9;qU$q@+p|nyn)I&gv@X z6Y^8qu(p}nD0{V(#f6uoz+1Wtgne`H&7lh^|ES1%t`fcoaVz^+gT4dp4T>2V=(1!1 zL3IH^b%Eu{0)pxSf^va2ydOi%%48`)btyr$n2uxtL3IH^MT`wGZFrqd_W1$nvoFDd zxnJ(y=b0+9iwp4-QgZTJzhQXc6?TnN}?hd$}(Ht@(n4_Gb zjHjUvU;OB~2j_R8{g0<=TadqB?3xdILcAOyy80W+pf-F#uym#Rx?jY6y z=LPuSrT3TGx3l0^{?W}i87NTXWC9jAeE?luQcPCe_i~fK+`nyMu5;t&5(JC|afTpZgyRfBz*rb(2m;2UI75)- zD$0t6G1~<29;^vWM)65urgD0`WW0fhhmG9S02}d7ssy|Rh&aqgf!Ye?9Eu**;@+Yd zLnJ9@Je$Co2pGmx$Fgi{7D?<^sgV}>3PCO3VXAfINK;nwewzz(p8Jl9zL}oYM`1d= zqoOd=Hds-dRh;S8tZ*^+rocH24OSni+OUoUVvEsdJszs-m$$J2`mriS%iGyHrK-cE zQ7$MUEQqXq$3oXhdhNsF5{P|+BD{CSiiXq`!|H_89mAr8)D!z&(!3ZJO3=%6ai_mt z3z>34+_vn?4~6W>kll7OwB>#IkH}ZfF`%$nyah>H845cg)W+)^^S$A6a4NlFi5|Yf zg1FLmScZ{rjK0GXU$c+UdgCM^5Zf#IxME~!eKA0wUtSDL0_&->oieQ_Qx4v+0@bUQ zV-9xjwSUFR;N&RKRt3<(Ml6V%P2Oj!kLhDM*ka*M=O91_uUzOQ$GlhWj!c0rDtbQZ zVONgJdUy*9;79?#@x2thHk?_=WEO~B0J3I5zJpy)AUqfVH=TH*2-J;L`4s`V0Hb`d zD2ge44F;1KMt;rqn2IttT`l8eZ(b!Vqw-7@2*FGkkaks+8{xStQ0vZ3+df2YhJ-O8 z25MJn95YfNZF@n6>c3aFC{6i!8VzjE?auW&m?pWi+7Dj(&BIhs2y&!W(BapPze({P{?@uv+4J~j=#`N?;KBeg%D!kCO<`GDV43@ZpyR}9MrQg;li0@Az~ zRw<;*bTPiW#d}t!%$~Iv-%Sv^{CyODxeyJ*b1RUf*`u!nzik#gp6*l8PVi#O0aWxN zK)FTamBZl-xkY5y7%{j*<`44!a+}Dv*FKelW(+!+yiJtv41_A-v0(B=Po6LXb%%;$ zSqByL#IT0KvmJoh9_3W9XQ!(ub8|du8K-;mFe;11wOk2eFx>H;T9{+AXGD+)2--Xg z1-9pOXY>4=^j9W5^%4~te{r)ep0qf>81o+HfBxME*yv(p!A6%NNwaI`C>6Z~sDmi0 ziCqRvMHz-M=Lc$IUO6E*ENpq~Fs4AcWXFp^psrE6%pz6L9lM-UeIEqlzX}rH`xShk zqMVU~EKc|4O^f%M>t(y0NsyG`PuFdQf5L{t$A?pa$b3wny6v_jK>v?#Fxx{gDr_d2 zS= zV&B!shJCL>l4c+7LjSS&5WS#snK=`?3aOF!3hm0~t6 zaj!jx1NMDHvK)oPu93zV)_LChhLwmipgBKfzo%_1T;*1QnjFY{2O>y6HEyy_va?&x+;oZ<34<>1xZ7H{o;@m`! z!^t?~p=IK%0282Sf}wRCgc(&Zv<9&%D1~lu29GXIQ{qf?@kpE@3K6K@rSM=4)xzmiaox;wsARhNr?X z20c27Vr`6bj|D1c;N2W7w&TIEy*|gwF)cR9)d7{OJC-Zf)&>fCb^JRAP&PiFG?t)O z_{qd`D&qPaJoUiM*ti1fr_3!bdIEXJNbKK$Ea-m|63i_pdA+HZqK<>sk+%`u`EsLJ zE;gmiqr5)KG^*D}7KOOEnG=1r0PAB7Y`*c+#wSnbdJ*V$Hh|;#^J>7pQNWhhfrj3pj~&uGA%SBr5a#`Z8>U*&Orh zttbQ=tVLqRKlVnn1QB+>#3%yJ?ZD-jNiaF;@6H$@%h!OYs4J*k&aLdV&*m|F0vfOA z;2ftGT@RlGI<_7pHmK7^T?x4=%4GOtWMt?-@u!R*4&;=1npIOlJ9ZbR`dS16xsC%l z1Ny5dXK)~MnlgU49whNRo#P35a?D7Usk)-hRaxW3V#z^iwAqcRXUy!Me)?&9Ups$r zj^^@4U3C2bx!Y8(^g~70K{md`I1gezsKjD)2WSV;Ruj7un2ItSjcpZ$F3ssSNbw6r z@j=RSgYKI*_G_-C`-T^s!Q3~z8lrEUfg!Vu)09Cfee>!;s#^=sU@LDxF|zyC&#GCj zmNDVX1c<;1jlb7Sq_Q$p2sY7e!Pu0qAw1QXTTKV^_m0xS6 zTgN6OFebt_&4*2cTBp7FGZ22}Xjsba&0~(YfPW>`ja4zg<6gAL)dm&Q1Oq9nVz1o9 zJTMg+Ld&!8+>Hk>p8R_O^27YsKw~J;ToC!1Eie+fBsN1~pTjU)l zV+PWB%=`uk=8dCO^j=`HB{91K6}=A}Ul=<-ZD?MjQg+iU0Bh9!oal=+Sfhr(`P-+d zD08tuagySAt^y&vo5qgI&2|zgQXTg}8aP9yizK`Ieqr&7#D41@2utakhkgs&Oq0Gn zfGqS4o#nojskYM~IQB5e)TLX#0K^^v7ejmQs3&0>3YF@REr;@mz$pM?k283+2fjBf6WKirJ+7}Z))QG7Q~10z$W0p{{FAh{oyX@H5yaU!1uwY5Ob|JdoN=tC$K zzgv=e?Oo@jBj{!OEZxu5hL+xA7mdAFV0$sUx>v5x!LBJ#-8e$W{BSs63m&|eBw`+< ztchoU*N!Iy+Qc?yFZh2hOW^guL%&D<@#25ji~avN61mDY69U_HU`=YWaQ&FTU^eWK!fhR7SOYRo?h#D5APt@RZ37j z0kKJ;xiuaUn(iC@Em~DR9b*VBjzD)9AfKtfZ3SWhH-4YAYwTq2lE=IDY3=%Fhfdg`GUS2Z_rztp`xrfZcR!EX^kXy zPD_a$){|pL^o_?36Ol_1JMnnXqEc=)#-~70I5)-(X??p*fxU9$Qy|6T0hJ<+h3m4%DA>YIUTO?&Za1qb;(TpHV;KX4*< zu(GiYLU7h>KUPJVi)|1mDH9u4F~w-$Rz!194ot z2wOYTk1k}PAI~8{KaPxSgd5Dx4x6QbH;Qc!R&t>GI{x6==-2a{EPED^`-QPrvwf_J zG8g^gB&A==(aWc{ zw%5VHxA(s@Fi`yjMIxFxg)>m)zRG{AIDa^nbEZ#XJ?;MQEI{XElWO4qMV5h%#CCumT#?J&l zJRjxdt@vE7c&NM;Yklq5Tim3!6kaAqaon7tqRizt2~PLsorcLn&bh=+wzGic;Z1@U zYk7+mVY%WQEer3hVHDDfb+25Xvk;kBYAN+y^(mO?B|IVU%{=@Xn#b>G>cTvK?Li*m z1n+4W-zEM=%}kbNk7%5H#;_vg|K_*$A4^ zY>EpN-$Ubw;UpzuxJn{oq>bHhSlw0eS0-lhdM8=&^^S@7W>wmh#;{pUzS}0*$#>fl zgb#jWYRQ`T(v?XMJe}CPvcCHpe_N5K$6tJCCXT`0MOL?CFj*fEMs%{+_ixCDeYYcl zea~-O!2yPY*!RGQab<0AbE^c$tSeC2>yELYxZU`V-QuGN z=kB$y?&jHaA9k((h8#>ZoFCm?7DeRb)P+U&S{FO19rp3=PT|6+_l@jt@!AE<5)=>$C*bBN&{lSJi^4*L{r z8h!%Q=hm3i!dK_Z9Iy>b(=k~*j1QxxH24TaEEGpDf$_7^vwAunaU z^in<6%bDWG&yf|dN24}juNB3fz#WdDC*d~fPLjrU7ClYUi$Oc*0bo)~VV~cl7*4pl zRa=^R^$01L2jZE*M!B50Bim_uw1~dQ|jFl;qFM zSU3eO1e*Ny&-{EoFE@EyT)N2%ZyQFbU11n-in-$ivE8{)ED-)@PcFm+!ic)=WuZWT z?@M*(qH=&Q3flbsmfE0XV3>iOhWX0RZ@pqLF;vj+bfWwE8(@;{b?_p?3u`vaY!bHDlC#@m2LRX-O-U{`~^*L7}vpVjtO!T527UWZb5b#2M_Vx|hbvc-}Q@-E2`12(~ z=11i1#bsHn-(LDJ>dX>90^@JoXQzJS#vGUWjoZR^SWG2^qz!X?Acj@iU9%`BNw+&8Gwn|*fy!e^#-rR8VyY~nc<%acjkc%{t zw!Ktd5v9dkQB1e!cYc{LX0J@Ib1j<)y2QVMKm9zF8XN9~8ZPHLE>PcgJ51Msm-giM zfTA{>kMQ*v*$3T?^i;8<2Zb;maFE3Nph@27ayCNL2Uk=r7=~)?u&~zi2WSrs8C8-rRVcauo=<2|_B(%fCpG>ZvbgNv>XY;_v?W<{kg$ zZ$p+@XK=4``jO);IGTUb@tilJen|cBA;X7`W{!vE1KvFazn72R6v( zn7Q>9Jd^OC-?R=-HJ(z?=rQFWosATB=f9aE_r+Hr9fAiIlKM8%N<0VSfhqCxHm=(6 zk4?V9F9+CknZSn&{xF~q1qU*}t?$56o30l4uL8#ZBKTth7Zx(d5!fiOO87eq-h{OE z0>}5AR0PQdEdNiHCzROaf_$4^5O_*o#;fv}U+Fo+Z&QK5%Sulu3DBFKL-GT3nsW$# z+tYHL;m@X_1@)CEpU>sf`?5^Gt51bZT^=sKHJ{5LKIo8qo4yvA&*yQO>&h9Hy1pEc zPhFKK`2+M--$U}VDXU){>b4cLgfk)ErY}VDktk`?iZX`t1$rSrn`)%>lTq>!I&J{l z=M1T}Td_W~3K@>dVNJd&WgYHJW4yV9@dYlW%+`N|UJ?}R4Vv}Ryk zMK(1H{0CqWJuvWEl>e;!yM9IV0$_lyEMi+-3Yh_VCWqmK0K;2?tnE==mUaj94AAW; zX;YSH-Z)@=MSzMN*5{Z~hSwFP!M``4b&jO*yl5iY5LXyh=eUWcB&eH&a`7+NA@5Oy z`4o(v451#7Je&WHB=XQH<1C^|yMHYQi$<$d`9ho{o^5)YRq5fISc@a9&a-rVsV!`vMNvJXC?KN~hohZ~b&}RxQ zqmzYtTBsP!6zcCnEyrCCmU24mat&QbrwQeOJ+GmQ@z23<9)=C1`~tHTQ#}7%gPzY7 z>T0QX1D#>H%Ccy>pG)3CXGz{x$-9-#5h_pW-A(5Tb-RnDJV0TgUXYTH;XRI9D3sQp zrZ%BIle{ikER;*AO?19c8%4^Cv{a~LMbFI?6{UZt2&?;>8V!8ei%g?d9uZiUym zy>xVG3cX7!gt}8&_#0g;RJr8sq)UW4S*Q=_GNEuTgnA#+FNETyWeV-0D}-tl>La>J zs3q{xHS{rEBUDuKKBH@e+AW%WPS*={m{4ESjY9oeO8!VU3w5Mu_Fr0)Vr#c`o8+y9 z<*y-+wbm-5Nf{%ljMin00o3?^(v!I6yqc2xu;8zzzm4*{GTu$pO68}@xiCXYrYB3T z7WvmoySij$iu{98@ZYCsa)R*B5ovFxvCgHEd$wqDcN)w8ChcAHs3Cnj;Kykn01iw4 z7;t&|CxE?cJteig>0E2N)YAIglG5&df@ev)tECs;X1r@n@3^ktCu(}fB!M#p7UePL zeBi_B_xW9!(>n$Qn6oN>6Y%o{ejEG*`?+zMf6BCIau&mj13`uxV|!`6Eg5(?Z;0*>%J4;Zw$M>nc)51Cs3 z>Xee*%cS;ke|_)G-z;sVdPK{4J;9%c*hpG(i)j89Y{K5L=tmci7w#QfKu4E{@;KT z&;2iOPlcU@-(f2K6ZF~Ck73^&9xorbIR0mOI38|PX()478plk$ZXP&1Mr?Y;&t>#T zS?1v}$QIz(>yI+=^4dxR!Ep^51ehlAaHFcvIwFJxhgSJ&^LJymInGc8{RX=%I$2YF zPZQp67SdH-?H8Me$)`b{XME%XHJ(hHA|n>~d2?QzFw% zmkOn2;;qF{EYnNrQyor;&yV4IJ$9)1jIY&HU6Pl-4Yb))|UrrqeryVwveQX<$-jIvr!EdRQ=>PBhfw zv~gMKbef@Vsu&OI3{9cE2R-SuS}5Hf_9qp(N8DbJmKloM3(}a%WP3pxZzygrNJkoq z+Y8e1nnDY2dhq2yDBVIXy<;eDA&-Vs>GrsVJbFPWZRTZp;q}0DcNoJqjxn0DQWJ0^raol+`oU1FSvd`<)h)2ha=Kk8Ewh|{ZK%5- zvz#8#l*lZnO{N~p97w^sq@ERYgrQhw1wAH|mRUj180ws~!LAB=K~o~Lg0`7@EVGIR z)hA`*?a5Fq)1lXd(lQ--+faWg8tigtyP-ZR8kgnJ$C^S5Z+aYZ<28@H!Y$O$d_%D% zYH5?9xP@Ap$p;@8jUL}_yOw4f>Jr~zS1p}wD8GMPRxL#gb+dOos0$2L?3)bgB17Hg zn+oc3L*@9Uf%>JPuJ@e?>J~#4_)h_~UQ^KepWa&fQ7El7-b{z-KCsp!X_ui`>yfl@ zL{jUKw8T)X^+@V46l*<_E;ZEC(0U|YZKy+`^+>wOP+ib^B(2pHbjk9Kq<4hUx{RgO zP$wScVUj%zQSE8VvPZV6bZ(9ib`l`#5SAO3OTq?l%0< z$B#AP@1a~AT1x`DneoC~Vy5YA(&Eo%y0Ez~OC{lPN(D7wi| z&jvfPj-qvj+EQ9(Po;Yd^L}fP#>3-*+)EW9cJJp|>_}jDFUQN*}AWKE7a8)^T*4P%G)XqHD6I(R!ge z>Dv4aS<~staa>aO{RFyIs8u5K1loNl=jnPU&{#PdWa_c3lW3(-*U*H1Yuq#FcS3d2 zUrMrY((t08?gcfIybUa+lO6|k3OR;)0n{uy%TQP0uc@6%PNOdQR>_8}(`bpIc7kfA zSrc^L7ocX-MneVqZOEES?;Ni4W))X?&YsJg-<4)jJ7pcAOa3-*L)KzyHq=?g8?w%) zjfT3y`*qe*3Qf@^M-|%?rIQWyWa);isGJP5T~2`3G5XZxomaUbD@J3F)b&2k-jH=6 zU1q2U(RwG{Xs8Wk-*_&fUmNO9SI6K)uKeHD$4NZ==?u zr9EpsEO;B;W+=AxZPaBbw)Jh~I!2ddTi-^Qs8~;nZG9V+8j5XwJJlG9ZGAh9HWb_X zS2W2`Z0ldq$wIB77fSQ!PCCQnvE|oOyHK6<-@KyWdV0oCEd$DechPQL4|7&!@Yj@n zEbF4Zau1CXN_*uVYA_Ug>!L0H6ipRsl`p+=RPZTkGE~3H@t~SDC9B2L zw8K!H{-cAxr&=7Y$NT;abqKXe=E!Gglc9JXe1?2YTyhnC@5~JTfo2(s=fP)bt)b2? zo*R6Qb{T3--rV3Oa!%0ocvgIY78Pfo4nGJ zD9)u{G1P{ldHyZ5MN@QQ{`J8vbn4062OV`=Xo*m(s5GbE-a;1}YD$3(DK{GGj;h;H z?><9u4E~j#F%-w(U+HZ_aSXmgyA8!L_zwNYP-`&$wo>j4ZhaN4EXczdd6l6!KL18z z4K=6uuHfIuH&d77d14zC8;axeJ*qR*EBWr=do)p~PTG|Ho8V45N$0_1TeCi(tA)}Y z+eJ_7JRf^y7yT(t!JfP5&qA&A-3fc{qIXQ*^*QtWAJGnz_iNln{fPFMyx*hV$MmJi z+l+c2)4zq%*8My6Jw^B71MEEhP8~vBLu-nE8{9*`*Ll$MvEV=GQ=zn;Ur^s!QqT8$ z|2+Q}6f)E%d@=um1{vzL%6j`t8Y4M z{WVQD)bILrWPMGu4CT%#v%jIahRV$8$ohuP6-xK$Uv!1eqtJjR@4slhp=Nt+`WJm+ zsB`i+1^-2}_)|1>qJK91hr&YL;5#?_wcvkDykh9n`HlkB%+h6Z|iIZ>Uk_7QV(cohI$ktdbvsmh~&4^nTZ6Ju8&n z+qkTkgjzwru|88SYll!fttT+=x~*-evy`3I+xXK1ZtD}FbUlytl~60F%d)dQmTKmb zI?rnbgwlClt0*PUZw*Z3Wo7%VB|_=;(yY}jgdg2rnsuw8SeJBb^Xz0^y7jJ5y1fkR z1EE&XM^;I8hV`Q<$@Ma=-L1)bnb!A);=DfA>t`hM`dHhA(pJi{J`qZ{kY#-()CwAJ zm1k#JKbm?hC1{1tPD%+{Lkz`v+18IKdD&L_Il3h0W+kY+u#n$7ClX=C~3qom`CDv;~t)LQBl3il$Ov&qK z?J;@hBCnt2K2J+wnWff{^OG`5twV*#CHza_dHuR|lEp*1ait1FVNl-gT%qz}hU7j^u&XSxb|84z$h_O6yr+ zEf;D9&4kPf>pD}C`&Vgw8co)#w0<-c=T%v^#*%qe*1bY$nU3|aP%CJh8kFr=n@mZr zH^|ztJXvp$^|??w%B!t^3#Fx0Tk1kCxq^PA!P(VTx=^}D)z<5V;<&dyN7bgsTy4Tu@KH~QVq^G*Seji)l7l1CxK#Oj=&C7S7`h#QBIzTTK0Q%@= zKtC0yXw|!Jm((3EbvFTaZ~cWpPtG`K=%OZQ4!c3Jhc2s3mf?R01l}1WIu|lO$%#wW zz32|JvMhY@;PRKFrwU)Rl65tn%1_0$-+vNoYdj*h(%#Xn_m*}b{MFKz>#DdfI!?wE z^wf&ItVp-MKbikq6PB#-wXmn;{Yle(#Bn@oeS)!I;p-MdjwNMq&C&31@&1kQkrH3* z%L_VIb$qgamH5|1w`a4LwSQNaGv5+xXvy6@$U3BQ4n(Fd&)+dDnv1sZ#Z_8q1$3Fd zq{{4#A9yQTex>+}J;I|nE6a^9=UG`EIv@Rt>#uvKXBdrhEAcr;a~LYp7Sp&M%R09W zanilK?w6LCiXR3Y6g>$YT-2GOLuya8e4cY$X3k0NwQg6>8+9ooeSd!ZT1LmiqQ56) z{z+}|vmDlcwZs*dQFOD^I$P{;m&^dMQjU#Hm_&tN=5@C?N>49{>p2jLlsXEdI}@HFBX zk7pvDNqGEp$^hIa0JL$N`;-9zNXB;z$Y3~HV57h(0;dU_A+SZ@Jb{Y<^KdVZYjp~| z3=r!TU=iIT_z!>~>>czDg4g^h7MFhlkWUQx{10DbaVsfZZbMxowQ^}g)ihl0t*kf& z7GbzIE_K_9>n;<{GHGiW@ja_$v@88xoFB6eD~az}ttP%_b)9go zBfe*KtKhd1-?LgT_oB8Kd z=HWi(lZ9#SS<;KSBEJ)wjBM zr&*mPc{I)1jPt8$))&xokz$)HQhXY_Nb!m3BE@H;ixi)%E>e6FJI%Ue;0NxdQgW&K z&ij*Vsaon|_#c6P6V9oEzc271;S3l2QNU@|tbu#nog$%A)xb)f>I=YW);j~gfNp$} zvJ`eG_AC`UEQLp^JVVu_$~w<7XrAU?DgIh1xhutA)6@f%QIB6W4!Xj#8f6~zTqg3b z5qOz;r~D}oTkJW{b;y0wQ)nF&_{OtN@wXO+Z@KSL3kC)4ht%jmv3-x?Gn!{reRd`A z)9{Vp9(DeJGQi6K-=MtGVfIVvprS*77y6C|TqCfb|9E?-`fuI|_Dg8RqBqo6PK&)& zjVwLaz7-stq64~J_gQ5{ciS(~5k2Xq=p0(Kr$0{D1fPaML8?@V=t9YLI(prE~_7MHuar}PQDFf>K579}bBmG_Rs~0#y!-Glgq7Ci@9Q{w768-S}JWVmA38^4gKn% z{D%S?6-VjQ__KSv?M=YFX`2PV#`+<@DD4{SS0(+y;pp9hS~jf|nOhWVwN12IDe_l} z9ad`jVx?WkMU1IO(BEBZTOn&T0&~|!kuc4AAAbK-di0I-=o{(LMv=Brq-`{oIeg%w z=}XlfZ*QGGr%`6S3d>*tHM84_-_dOwQwB4?*;r(T5-GB3!9~Nw~M{7S=!nx zZEcperYiO??ci#(zEFHu^Q-4tfc27kvfzDY-Hg&ZwIJ zzX8mo@9D%$A2nL{0e{gtANWV=A;3NAF~D&y#v5IXzbE)k!9Q|6#bp4?@S6h16xHJ& zFugOo9>3*uA7C-P0yu!S0M^h4fWzqrz(c4{PCZQ!c$C2D!as%bz@HYg~PQgDEX!%&COJJG6 z0RkI*++w5P69hI3r$z8N0y~7WLh!YM-zhlxxo${cnV;o12;L}ov*0a)cM4o5@L7R7 zBzLFa6ks`4Kzc2BgTO}NvItc6( zxHgj|uM@mW@EroF5A!?vaQU?Yy9DkKNLkDe32YG9EU-i1T7eW?L-*#)#TWj&a=L(j znnT%-(4gE<_8OW9_y|RF8vt+0Z3gF2z(?rQ+zvorUMOb`4ajQ-oB{XZ;@*bh>`OSde=XU_+6s!fTE$9L~ zykJM(8fq!n(U*Hch0+&+4Fa15b_iT6uuI?$fm9^r1vUt57PzBm4c%JMQNp=v1$GJC zA&~k>ErAUJn+0|VTr03k;0}S!rEBQzf*t+27KIo#gw{}2-wwc8eY*f}>f2nlhTiPk z1=zPRR4!!%b_iT6uuI?$fiysL5ZEBFSzw3eSBeCI%>p|Ft`*p&IaOR{t-vmUI|Py= zk_9#hY!=udaIMA%NnL?m0(S_cYWSkC0q~*19n~ClYirif4~08wB<5>{BXEbnjymRa z38Z?)8w7R;>=H;BH2=Naue+%wH{qURjXLeDnOZqJV%pWR?jwa>KM?Mv+k?C0#y>>q5)o8is#_VePO z%l3};HhNF?F7dAPJ?VSR_o=U+f0_SM|9k%Yz!`y#Kt63n_T$Mjq^?qzO&%>weg)L9k371$a3({VC7L7eoZ_bzcHJEQ@Tu? zJoUk;To&$H2XXqAjgvS2t=K~RE^HA_+KTaS7L?%c7Wc#7?JdRMEb5Otnjzwk&qMML z!dZB6zcGLspO>4&HD}uO_sdX&(aPn;dXV& zxp_(X_oU$Av?PCP5#xJ`SeoC*b$@}|ScGp<%(>0W^85Ry0Iu^L16bgj4tTTgWWZwo zserv}bxE!9Qfrgc()zp*NVYppbZE+x{`$F<%PP5*KL%$5{=JkTl{5TH8N)$>uPi?k z_?3C{0cYke1pK%kcFkF;< z72uMJ>j6KgxH(%#uEOcK2agy3DMYOwFar^*5SbZ(Ifzz;*bM>}g2FdA#4EmHPyt{F zJcZxhECwt`%qpBQ_Xl*qQ#cVG09cJrRtjg#Re(dlQ;7B&z%e*~R(LZQ4A_8kV} z;eeBn&;MH6!GKe7lC1C-><439QPthFIz?T}7Rn&@73cojgD&RTz&1^*rQC4A2ngbX? zzM?id6R@4;0WL!+3;zbyIl!0Gxxg<3RMbIX;GKYqE<$Y!?-`4LuS9M9wkV*YM`$tN zM*QZsMYzoe{4tzK}fsX)0%viqz zJ`zyjugE+Bd>o*nL#?NP9|njhvVIS|5m4c7%pZVH08}{VeHQrPfQpW?o(G(2@$cy$ z4T!k1{sjD3z#>|04Mi-!09Zml0`{Yj8j5-NG{F9J9$-1$r*INW52zY^Q+XPAB|QVY zin@ST;a^;+L5#l$d=UQndJUp~Gw^D94R|fR4ZN1#0bWP%097K7@7yA4;D9A4;DBA4Z=8A4XpQA5LEZA5Px@KZyPf{2=-f_(<9dd?Y>& z)?f?;@abzbr2{{V%7Gt71A#YEHSk8N1wNkYfsdylz$em3;1g*S@JZAFd=iZZUPn_f zB9I3zia$F-^r@78^J?(PiuiUk}pL7rR%<}xo^RlPI{-wRv-e|vO@32qvKJ0zU z`>c1f_bu&-35rf5QK={|o>3{*1uzz#)MR zfmZ@s0(%3&wBysxOuH>@V0vx(bLlUqdo!{!nlet!aCh(*G#_TL_|HlB#_Em}NZT`x z#P`IWKW^Ma=vhwxZH?~IUc>E(p5>0jH+lUxYB=SeSjM&ZmPwc?a}iJZm@D&XAatt0 zQ;DYvkAr6ro@zWbcxv&~;i<<&ldjzHWVgl8n4gYk^QGa3)RqF@d! z!FR0^%%Uauw<1dr10|SuOW^+!_&tQVGz6cAFq?+pZ(KaUkDG1@S(1JcVj91xEwoM3 zh4z7FKK?d|@bULY%9u_!bUM1Hgsuv?Bpo98nI=EeLyB*{ zu5W0D>ub8&^)2nj^Btc5xXP?U-Bs3HcbT;S&z0_P!21?|PHw4H<|(rd!*i5ph1Kf0 z#Jb3HnRPSh50Ljc9%V1JCgHij-brilb>nH^U*qw5ms-QUd#p3OKUnL%hp88RJL!Gj z6nqPsqfYiOwJ!3X&wm3`z2UzE@?whr6xRei$Kg3OaHnby+^?AbUf>ez6Y&0pXL#Bl z)XcP)TAy~OdK%9k@odBMZQ5T{ar$4>i1a(vF?i0!b4B`3>do{VS7F8g*O-hu)fpLV z3mSX)+7U#T+_fU)+5%haR-AqQb17Gp9WqIdnEUJ#t@#_QO3` z%8o{@QH&kCV9J7d?ekjZ&%2;iWC^#I(e}+9%@U@!wx1ZDzxZ6K&h*j+bIyu{7eL_j z_LlZIdva@gW8}=ET9=;KGJkQLd3@`c^V-^5BgZVBH=$+z{MjvY&S51)YHJ+r=3|{Z zVSc!+)p%WVj&E&)3MbB++Zr|!j%!)m){QZ}J-jfr!11l~TU**%n_8E&FOIYx-@0IK zYot{SiuRkrXP!A9%!REj?Qww|RYtp>edJ&pieMWByCPYvlOCam7;EO-GfqFfaY1;& z(sRR$+nSaxY#p{w?kI34EnYAO$uW!P&u^JMzZK||!xx~R5kpN|+`5>#O)YKbaOQ;Y z{Q0eO+UJEAfNE@mmYj2RYx`N@x#Jhln~xqM!QW2ZS6V^ z*ha!_ng=(78a|AsENBND3)?r%Lj)a!A~d#5!baosTNj+!epWm~k8_4gS&; zkM9K0Cgr5nws=*R$sI8?!f|R#s%F}2XuX$vh7M`o7kl5_p+omsc;DRN`!0LXKG_HF zlRFw*iIQQ|s2x9y;)CqCmU$6mPnkGRa#|uwMTBu5`lQ|0a{$0ILx;l)b6V!No)M0m zdrXV=4D;fiNzG@Ag65#-q-S&w9oD=r_Cer^;+$zz8cru7dczU0j$IIslA$Bwipt>C zaW;IS%YzGGclx0eldR-PiO4>ma9>=%FM3UwiKz z(8TgQfFGfSB0>N`Lw08vOF2~AKz#ft4&up=rW7VL_>p@@nK z*t=rEr&zIJ;WxW?mmJ0SdB5Ku-@krnF1NF@v$L}^v$K1*o4)`YDDo0Yq%t|{4ulKh z7t@3L)}`$J0&t)Rt14Z}#u0%SZW(om6SyRaFg8{oX@+YHaIzN}gCM{ZQn7J{deNs< zzu5i-V1F?`IbJZ7@OCFiIt(G(co3vlwDoA62{6|nUm{TC13ot(4BdsqiBr*CC=n}= zMS<$1awYsRIDthwhL8fBx&c7q6LfT6v9-b5OR=M3Ii3wM0tu7%1e~z zp;U4rNsZzlLcu|Vf&&uD;D7|sb&{Bh6q5rokLG|ZM{_`?k`u{qii5EV4#p}tAfXHn zNB~_YiK$32IUw_B4#;ve2V^QaaV+7Q%omE0R(Wt`TtY_Qcnf4OT8fh;JOPXhTt3Q7 zkn+Tmcwsc?36BU#hcP+9(j#5OO%TeHim^p%=`9cmB#_lgWw8Ipt(8i6giD(igoeR{~8Z@5xLLK@2xJUIyd8FpXD!L#9 zc|txBAV~F2hHn?z7Yr3fMR^GY@c?4z{TK$A)?y|M?3sZ#a8DJsehW)EP5lzz1|wbmFY8bs~%A_uD0 z2%%|h&g*`;DrX=~~&0{AvC7(rbdxxP}00t}n2sgr{Zse`R^eFVbTxYnh@A)4S5 z5O)ZWFB&NnkplxQM9SpwfYuU*#wM^loQJ;27$Z1YgxnYc1dGL3L8XaYo`8(3TG%8m z+tN@`SV5a4qm;r<8KoFNK4s_Rh$teB9w*#MXAAW}B!vq%hfvO#%7@y0xY9UxF`wkw zUm%roV+BMA%zc^n9?3#x5>`g&WT1#NFZVdE2nza&QpA&}_9NvW*(dMt)mI9%TvND0 zymmk+77oyiPznPY3RZASNY_HpGKS%Rf=DQ-lS?EN5XmuFs7RnC3@?c|fr8-vV|Xmg z7t@6iA>gHqdOh<%EV5JG7XV79iW59D-e=aW$fuLx!G?<)BKxg7H z1Zf;HXS@t3m67rdjKN?!{$(sFVmNLKDie zE19IoA}!8K0v;$;%*>$W3acA@fk;t+rsW0Ar9#-&nZ6>JSR~*u1Y#mG&~1(7E*8ZI zW0NHquXVPE0K5)Na3M%mWO^bCCmpRs0VTzc>3~vl)9{^Ckxw%nB!Sf)o~(6-yEri& zR+r)!S)i=k1XqcKo8A^WEF6m%8Pv#u_<*{jg=lqIQ4FgbUaAIlg$3bc0SrduH&SG5 z(%7Xi!bF^g0h7$+lQVuY0Xpicc#=S*pyvrK?Ael}1j|qlAM?b1BKK} zD8f%YXxpdSU`h2Cj8UN0q7;Edh6XqCmqdt(QZbke`cV-gR7~A~|AqCFSke>;G{_Ti z=z_*Kf37SJHw6c|1V33w-lU?Km$G&+N+>IpNyO>s7KtQYF$KeE`Q(d$0R&pr>Zu6< zErKNx+HVjL0AL3~aQXZwv;+hQNEGBfW5E&pQu9?s5EjN~EM)>HL?D=iIYG}82ytSR zH+EE#&^WFrP=X&Q5a@9Otmg|P&?8jS(C|Yo<4~3+mf%sC7CO=xSo09cNGRf;P^^Qv z$D{Q@OOZfk$%l*Dv6bmhXNHqL{um^YN?cjqgzU$F*_}%-^k(9-htuL;Moxw zKeXk^BWLYo{)b3bON9E6tH^%DD#3F*SfOuG7Q9iE4c`wv4M)|`D;}X@@_7g0%NQ}4 z5Bd=@wL}0!!gx|F zZLB_GxwHjW1S3qj%b8+4J;dF@^aW&r7IsJWKr3J?Z6ej0B*9Q^vUoFqq9`Q*%mZ); zj~kPPUSeLdlz1C_%bR0>)18oIsZhO9bTl z1d8!nKs?i64B(5Ye544>rC3~NGXTP1Dgp%c=%po6d%(@&_n8P<{WvqV^I5|Ip0>s<7F2lqXl zK>kA@Awh^)cL+megd6zU5IhAZXzNCcA3lP3aKBUrSsj%?u{)ZuAU}@QgkkiR$OvTi zpifYN44%O!2*k-U!XKt$0Whv0-6IQo$E2Y}6*mDaf$?#m2%IP5g%&KoFc~jEoJxS@ zLHLJs9!(rcg7m zCyX)asF&$C$8e8}U@i|~w+u+Y+B|&0(`a~64W@$$iI9qi*Tv8~nnN;Rr-K>nr$~pr z76P~%0-p?cpLq(r<7@^yC3tw>g@6#r^Ql9Fvv@MRa^8TGv92Nx3GN8c%V3-TrS_B{hDIvr#T0n?>RJ9OtTtP?z zxW>ajF>ECfz;+fI&xXQd3R1zCE#y*7O#i>f(m(Z5&CWWB9kL}EyUhD)*3C9tbU z0)l8M0JM8Y3RuaIi^SEE5XiPN5}6gdBsmik28-@?pCe%`#F0#B%d| zMGbas<}2viQ~AlDk_xI045)&ZBLk|S-~>?GGG6{)iUbKnh7TnMYCuT zwT-7}C=wOb&|&|sWk|cYpjq*M($cKu|4smH<4XqfZ>i*{r+L^VAom~woeOPYgtWdu z@W(KES`?@h8n%$br!@#QpK4au7|0RI*_MIMnE@SykBp75_i5$rEn)kj0H`U3kzhzm zv4evZMYtynqhMU9lzD2;j5dD0vVOwsJNDha(B!DG^Pb}b(^&%pRteyq==~>L z9||V`h8bUiu>KR?XrMy7WOtAra)7a@_x@PIoze{COhcf5k<^d`hyj19!xN-~`lcE7 zz&~NT13zexY(f2x{CEH+GPqX!{ILYm)FkLdq_0d3Cc6KLry!6EX_rLLKjD!2PY!N> z?&T1uRX|Mo7x{)l>to>`Y7?SK+ihD`NcOHJY=cwCfZtrso#I;AZWPvFI6u8lTY1b7 zMUFYJElep;7J&vtLGL1;ga%g9>ImDm@KL{_mXS6d1^7&NNsMpH3z7OoTRqcvARoa@ z({@e9nr0AWpqLZIqe!EPjwoddl0q^i?NtJIe1gzJegciK>41SOk?4q|F9t`Ba+nrE zn3JIyD(?@uX+RIrMSclM0_>(42CDntFkGP|8I&Xg1-VBtr+IaSo*_cNGbw|8ki}-XXK$;5}+33731Y0EMbl$ zPRl+N=t!Vvkmb^SM?^7u)Ql>RFi2mE;vL0Eg){)oK>nl$i9lZr8i~dL)YIVcRndK0 zUX!*Y+HYd7sYjO;Q^7jfM$`(_4#L@|m2FvK4WfNH(jXpKJJLDkSVsKO`yosz^g0TW z8Gc>^NdUqAjrR~d`lXT{za2B!{3 z0%>idt+lzAu>^j3pijxri+qqvZ)h)qAZd^_qG>&;uc*J326_R!WiT7$_k3waWxlSng>mrjN{QJch| z(Fn$a6d84so|W|XG-b3ZV?ix_^?`e&`$#L0c2Qmyj(J6M;0*8)gTVUG+=Q@4o*)rw zQmhyuzreJdC@fQ^?GV1L+u#bNP&rcbXnCOVnw+h)mW3G{S3nHz)&{R;aNvLy{)gfP zDM-x>d_^?Sl3*F2$N?lt5LZi@UZ2u$@LX1JId;*o zoc2doPP!VpW-VtMa@Z_=IBP^%O`m{|lBT*64N^DcWPMiBhhuCA>Q3E^g^&p<2UWn< zC)Ct21-L+^IxKx94LBc@ll4odvni0*#+jHbd8=j!KeVGyuu(N05VCe(1%9@58Q)QBfHY!Rd*y=RYkYgq< zgQ+W$z*P?gSL7|QZ$YztIBHc)S)CYHVmOJ9|x zug21c&SmQwa)yI`kUfF;;h|6wM`XbqqN^stPi?hzJv)tK-(mrDSSspsU2{0=k>6 z0mwKT%CI$+$O3BQmx>v*3((XFunN8GcIZ3XkdqD;W2&P{uyk~EK*3S%Dw;q>59s75 z8*;`2ADpbY@LyG3NiS=Tx}jdyIwejrG8S|PMq;I;qy)c?t*VLgHOvqP*#Os2SLS5p za2Q*j zHNmV2B^FRnGVN>%Nfvyxk)>;ck|qH&kOLKhHZfVoYyf@C$6~|>Zox`b2!gUsV{TW1 zO>ztYz{&0jRd+V!q_ebjm9P}CFrgw-Txu=GUkmjCPdbQA)W5)%4w=6h=WkY1SJBa7 zv*7p-BvQas0~Y}hHI&e$zF43$+4kU-c4`6N^u4mW5@18~JDaMj!@0YhtYYlDvYpAV zA>@~9M|DG}0Z3~z{}4Jb%f`%Z#Z5epS=x%_z7x1nVzE?_CnCkL8|UuE`1|qweie0~ ziUFl;vX`OLQKy!o9Bu5{vi1Pq#cEhaI+~zj91@}h5Ei9@PzG??Blo4F13(JHOa;pf zIXSW^{_3E0rkrd~&~sA|6HCKPnL@!_9K)3#!}q7~{V61PaJdICtPI1-z{7E}o@;YL zH9*Lm>@fI`dvv^t8KEbHI<)nKdO~p7EH=SHw|YY8H>zJRU>X-x)ggz?Qq$HV*lZ+M z4HifXifU^^7SL8Blu$uj?`2%(GO|vP1|RF!H4dL6fPMwj%e z;F8xV>)~Sx*R|ADkm91wk!2hE_0-^RsmtE)qA-v`3TAfI8_GYqQ( zGAQp2_5GguZlG{~V%(nyC!65#!Q44%oH(Q)*{=BN3{rvyE9qr}JH>V$kBVfgfEsJ+ zu-Qo8HF34Cu!_9`fF@`y*mSxk`K1H)171Wg8<})EsH7$mHoCAhK|W@n5};&gY|()s zs|O2wCES8t^#>J$FDvrPj-|tDhaA3K$qmgk-2nOZXhQ#8&1c_s}x zGSuV&RcIi`ti#fV%FI+5rIER4BCo?n7bVnia6kkcT1A>28~(t^*s$!mx&l>t(IvsH-8OU>F#LtP6<| zhDoq1gv8-%Q|KJNUe;QW1sev7tYTAjHY%7*A|=bqV^L5fk|`3&auUgUS)1hvptqS8 z!sd2Jkdc@gG>gIF)?VsbD2H-yP&I>FR9jXBt`k%YIfblZR!6W5%0ikZypR`}Tpny=jm6Zzr_QjAp~Mx-892m~GjjfpVc7Po@~&`{?TV_xXe`wgi+ zo6AX7hzd&>Xf_i|Da0EF$VyRd$rf~*Z$Jk?b$39i$S-I-lN9Pw$dorDSug7t*2&0b zjGUr5D#LP)gHl+17;?UVbK={`xonL3IuZ3hsOu^Yi32BV3TUd}Z?VqAQym^J=OpFyCba6$I+gLP-oUF%;?&JvM1);KMSUI6yxpFnn|7oJG$>zk9K7f-63}s^O;Z}g% zEDYt!O5n68?!d~iMrX<^$pn{cf*O~V1%&%~v|(h`>t#dCfg%tcEu_Z)Kpue-PqwZu1}>ut&V?L`*j$>}Tm`YYdfCS8Lz5#% zceHyvmu_LzM zE-?wrOIeMR$Wnv(4@U-{H27q)k+($F#!}N%QG*`TK!6X>&slU9!Xbll6*bhq2%&lC zZqx!q_cFpi4Yfo91K9FV4aJxo@~|ki0kZk1*@xXP0AmZ{(^v%MM2Ly;sh$wJz6%~|z2&>9xd zD*!2JkzC??s21XIkOLZcaUv6shgonOC#=N4MG0M4=%S1+D(Iq$E^6qajxKDtz+Axs z0o{2W4!rO!BrBDM@ z%1oYPhOt!;SFTEgOG}0=|MVtgKNooUP`-5(AI=5GGb#~|ttc>Gne5l*0YUhPEjTuq zFk}`M(@mraA6aCI}}b!d8*-hXyhC8e{#jA(?9}B-rzW zjZ8t3K6&iFi4O0IL7N?6#jn^ft(T;Y;$QcHhi^EXY@8RbzEhu>g7A< zTk%DmU)fTzn!S!r3{ryk9sa%BTJHHoa)6WM2xmBgyH!!@1$#@zyYx05{TL_A!MS_? zxuk9LlF-E?l?bo@QYYHdNt-o;6<4(D6zek38VtvV|94u7GxFew!T;O>k`E*lTq_*A z?Wsfz|L?W7+?kJc(3&88lnD3#PKDeS%8-NnKtwp+oEXuH5WVNdvc-l9rc_&G;pW*A zgtrpm_WzPzv%RyJjy*wy!pZBc=#ajEcG@kEorQC5`~B+~a&RI!8b0a2!4p5ik@EgQ zXjBG~5{ccEh(tV=kr)UWeyA88L=r>+9gR(w2mg+ylaSlt0tn|%ZdDGBE-kl#@>OT%FJm;l>we@FCTWVycCo0 zcKg;I)&4;qZo6FwqCO)%E!4BayTj}5jjLWaWZmX{$!=y^zDpPDt{9%OVsX0*EbbE7 z-)gI6N8D4@;|zRRD>ux^(&}ECb?I?QU0qGpC@;^>UpuSkxt3QY-Cr^)$>Wi8vN$!o zM111w@3d*h-+li2>uqt=y0L*_>$V-0`M*A6qNK7RUun{v@Cu3jt{Iyp`EU7+p=*$T1)KO_uGp2ODSiU&l z-+e-@EQH&B!nCI2yN11gHT_c8M=RnFc1}Bx`D>N>*4)C5j-GYhvkzRHwQ@GwTcWaL z(W&UisTQ?CDVrj5s&ngHLZR~DI@Z2lO=R-d&= zS7VM}nWmqpJTkoCSeNJhEFQV8GGi~c+`2*axy`bSQC-}=ce}XMqWf;Er6W`;Ee4Nz z>zzL2VtCMcHz8Z!%-T=2oyFiF49g2TF=Ov=gTIb!o!->+W7?12r;d*`j7#ooaU;jI zQ?%;FPEUqwn>mQw(?t9GrU4%&rWv2@{p|gu zy+7Hty}Y*;=YsN}vd^_$xY=9xV*|>6^|)lP$t0%xX!D!h9n4eA zzL<-wf>&FV))=c!bNKyef4EBK#N4c97uXiVmzl+wZ`0G#9WY0ytgpwwjqRVfe$#WG zGpg*zoKH)FBO14|eTMV9Y3kYPN%cnRZr2MaJ2y(LRP%#+nMT?CIgYwTx?Q{dp8L(@ z!;q&gZn+M_Rl0Rpk~?N*U3a4yLsRr;9qL{(+|mUY9n+^o>Fn!>G0J)8CO#fomali!e1hw-1!-MBSU;7P zbu4pMDH9H#KgXko**x7(y8d$lW_I4Aw8wCdR+9Zw_ES+=_c^h;VzYqmCvt11>+Z_& zD+?|2^DvAay0K%`!ZCB}pk$*|)zWc=}z11q6jrBgv2{F!}Zlkqiwgo7H zo%vneFDgSK=a=dy4ST9rmQ=Ry*%{aN1228d=oO|L!!f^aurjdQZNKWwx9!gtpB`A= zx%TNy5BoY!;rpF)f36KZ+voa}9TP34zL|5jXvZYv`}y1 zng#E7L}*?O)HoNlq+7+L;M~L^MoopL(?+itb}86z`DXJQ><`5S4QrOPFC6jZo0;*h z*@8O1(M2DoRG$qIPE1>W?t9h5Y$>Z_lGfM(r+x^!%v$@U(xfcsf@g%-HL}N@MM(pq z`;}L$8o%S3IHYd2K_fS3sz<@2l56jR>QehQY`VZ&d&P)nTD0%1<-(fuXTf}vRnxLc zwbM6Wt|)lxm5_DSHOaZWPg9p?qihCxN1py*S~lTXl}+!LhZoiMob$`H=*xuSYf#g~uj9x}`C^{HacIOl-x z(-s}eeSLM*!ll0*p4B){9sIH5{j~e1lkWPw4Xt|@T=#Bt-MdlmGn@nJ54VpMWO?tg z)`q-*$Ny-*?@(rI+WXhOIYiO--)pBg<<#0W<%icr1=U4`)4lq`i-d zG=B{HGCw z3ztrqojEiwYSFO?FKn~kUhSUvi2eO5`bfqc z+BsnMN$rI-KldiCeZlKhUaJ?O`AcPCO@ZCGg8U0fMrZucN{=XH+;I|sbnX*fN`G%Dvb(R*5o zQc=_T+Wj56_E=*kZoebYysRi||HF*Msfn-m<<$m0P0wgo-qm%-OQ$x$WY51{|>&LHU1BXvF^7$G);o0`*KWFRCFm37_y>vtSk8AX%nrE7x zWPe=*ws2^9?Zo}%4hw4{dY_WIP9E(t{n-3VCuh{!4IS((GH_e_#y$3d^|J?&zegHo z9-0oub=(X4Be-H?<)T>_}P%i-`kxOT8kn5;AtHll)wP$ay@3*(; z?Zi6X^J?Fq`I8)%ZC^UKo|SZRczTA)#iQn9Vm3VM7g3?ED)>37L*QMj{oQW(yt8^Q zny|q{s7sg&UaIJaohSz^+6@wnyZqObIMS~x{B)#%H-r=B-IiYgBFkLk7V<@_BpMOR+Lt`x-Y zC<&bT;X~8W_otgUE2{Zh-JV=6HF*?kuel>9xc=qsQd541p=aMjSgLsS$X(FqxSsi% ze6B;3#mtYI@vhP%vM|88=F z$noj6qpHWN-&N^9nE&u)k1HqMUE98OX2NufHwJdB5}zj%&4ZoH`g3$NM$SBYrmwmB zxIKQCPaoVly6e?&_XDrePN;QQwJ>n>S^r)ZL1$;D-8kjA#aw$ZXSUU`!5^GvMftqx z8#=?WczclYtsb4vznA(JeHfdUX~G-3biio)wdc31od|e)CUM($s|l|wi#{B=5x;8V zEZ&Q=X$wX=yLc)K`V?8aER&S_wClQg%$98h{chNVDZjmb)_7{q&vp~$R|oL?1Y^VJ zn&>FNT5R&$e2DUngv#~ft$Cj(79A~r(a<5=C}&E?wEIKXTz!%ce7+MoB*pp6L1*KtPV5Hl$u22*yKW4r zE0A4x7!xb~ys<9z>)myg2dB>aa=YHLL&NU7cjMO|Na;F%u~wY)uiM^v2Le(LRo;1$ zqSNh;g+_7K5m)biDJGNJs~meX@zZygg>PM-P7Mz{ekt~A{C;QdrcJlrioQBk3^(>H za8;R9YjUWlYy1^|hm(iS^)y;^Zt_as83&g)j<5f8XZ(y{k5e}v?-PG%H~G!p4=$3E zR;MP8f42X-wTqcXaoR3Fqr=BDyA6!#y!&2eZT}f%gX(?On&{F9*+jSg|I|`+C&RkB_$>Jv8vxi|fbUc3$Lg zY}1-YvOObD?)|VnWS~b=(($Wl-I_A*m0i6YcI$cmB;VXGKUe<#aqma|uc||jKfFy| zlx*-TL3!)MSkLQs9Ph4sn>}?$_{mel9!rkC`E}50S5fal7j_&7P~Ud;{)5*CM!pF+ zS~=-zP~V-FN3Y(^9^#P^k#VeX`E=uifc)TKQTn%nIY+Kc($rbs`0%fv#nJaVojW@QyaTa2Q|CUI_2pFVpgy(Ndafv!RKNZ4I`Gw3(|Z3YQ!4b| z{SrJZxf*h&aUN&t?MIHUI{r!(R>eyWRcz0?)L1GwQ!R9UkpCrN*N#%hCm!`Do__YO zoc!QNSVsJ!hu7_;<=iDf9c9Bj3B+J2l9A(XBcAB1KvqbS>fcKfCPdF=gz!;Ecqk z!RlYn8$SGYH++-#(A=qqg&(fYo%PIU!qMdNH}kgkysvGN_tkpjnL)hC=ZAmhMSV?; z?D2C#{>P+oUytVvJoeYAk5z~A7T)>Nb$&vpVfp2PrmDZ!HvW8MIW_5y&yV>U;_+)- zT&FA%y}UE03jw?E>FaDnT?d6a9&Uufb4!W$qH0XdR@^K zH|_VgrIk6;nxv9%-4=C=Es)$?kj9x_MhZmS?^qP zXwLYZMT?GG@A_wNV98OJ^b4O(dk+gQJ~1`m!CR@*@gsvWzCIpn`MUOA{=wXJrfJ_d z4qh{^Vb)ChghhTGGFH@=+{nA}>O|s$l&gP_6D6#kn6Uny!_^sG(wE+=2{#*f&$-jc zoi#f`c4j+-sk`iS4E?$6@A{Yh9oHV;!!P`NU*p%1EysTi8QHI>eq2NPqer&kS0^W4 zT2lY^_K>sxEC`-!WjOi%FJ+yg2O-9D`tIpqG;Y4;$ekhcN6sIyL$EaA%TxPFHU!=Im!YYCFkmS^B>rYR~@)nzen9gu&ZWnQHgi^2Y<~dak3cH=>O=qeYoSpChwXr zi|ngXXPHiVJ*d;$>k>&|?KDy0*`|XBrlr4MZyV)cI{Cj!PUG!QZ+~BWr{h;~#=a>_uhvJOvuxPto)`Qm<>!3s-Ern0HGj1?`dKq7W5eOV zW1Ak`dGJs9fJ0ILY+5E!3Y+GlJ!^f*kn~UO^9LNWZS;S)IzK-nETF>FVf@(o6NlF% zo$aYS`T4QI76ZRDD*?VgKKIWLAMtAQvK3>#9VvPJCU48h8}ZZX z3opO!dSKDTK7}45Bf9DP9ZPu=xcZIZfm^@t9@*vi?)R19NnP&sahX>(+#ig{QwhQ-0!II@8J5@j`K`b*<8|AFtmHT4OY9 zNYi=!M^hyqA8s$%a__uW<-`TcE}8B>QX_o#!CLvsp`&lQcn7)#-58b?Qt^D!#~2ox5=V zJb#;naW79xS?$8tRNi~J!1Uw^j=`m!9dCW}%6Ka7aQ*&*IL@xs&R6(%bb0DId+z1z zsXcSM-HzFYOZkg7*>X8-zr&P&-Z z^hvvM`?hM$_Au-*e7|O;wRf%KDO1CTN&`2HT%frxuclCAU}L=A#nbU_p35wrZ@A)E zR>ynx&~neNCEgC-9gB9JQtI}~(Ih?gSHht?J>GluS&_0@QheyC_FiX!y0G1<*oJ=G zTiJ`3q&%>EGg;HW=bOoax06SghW1!9px2thSKZCBd$~Dx6qRUl3RYXTJAEnh$aUMk zYENHWD_m&#{IrbUAgidWxlk8g;pI4HxbcyahjH2bB|}Ur$LDs>Di&TgowT5rPso#< z{k;0GB!XOIhpXo756>E8UCEwb^=;doZarp1?3k0~7q)YBn0NQZ=2vQlpV$^TGmr z!fb8*h`CYfHrLf`FW>y;er|%(+~8l+i$@4GZ`2g7wv-CH9H=f_zxuXYo~JCrFK@Fm#XY56RKU%+tVpK zR9~~t4UPDe{#$IugbupAC3swLRdJ!o&$~fk!*crxUz83Fnyyz51(s{{^^Uf7-Lh=M z!W~wD^gMU-Nd2W3t}oHJ&0F4VN=0Yts;g!`bRKnGSlspQ z<1+=z4FqnEi?{>W)wUz8BR)Rsvv;xSVo2(fBA3jJ^K5$FzeEpj<00j zH;N25pI=&`I%eypcOpBT$r?-V&noQYCREux-`~qeHS%4|o)vc%{`9Kv%Zo8vdo4DX zJyT!3$M%rhcEw>X-a|?y|c~$0!xML{~0xCPyT-v|8dc~&Gb9XK+@3ExoN{{EKRu<~{F3+*EdR2XD z^GIdh60aU3_fB46r*?;PX~pdxbN%-|tuTst&Ku}k)$!Jso-XdGKU#Y8?eiV=k9X8R-BI7}TzJBYT>mFKb{^a5 zz1d^0zUO8RYv!1{A>$9XRcb?6`bqAIiFO54mo4Y0Q%QfeaSlbar z#ZESMt6kiNMpgxk_4sWhe5;+c@{5bIf0M=pWppl!E>9fFB0eZ?ONQue6!Et<-+LRucI>ycRZZ`kH?Y| z7tgxf2ri%Xw#zNsrMD~Y^0q16*ju2!p!lw@NnQ55F>?yeZd_lP*)S@$YK_|gy})s! z>}qQ-tk#efZ(dhwT&Zg(+FM;(+(EdyXo=5mpZ=4k+wBSQG2UBv!FN@z|LU?aC1sMH zE3WRHuUhbj_a=J(PjPhwwc$QI&m+zxUA9Ee2r;E-z9R?Ax=! z+|G7QhmN(ZC&#`7Wqy~q^i`BYs?KFuFgb4{=Nm33pb6ew$s+_FSF@Jh^LcTUI$Q^V#>zE_l`H?jeHw?ysspt*qFa`|QBJcCJgS;$A*0sCar|$g`Tlu$jS) zwth~2E5>_0jNEbT`h^KOuQnLpd@^MA${jO&uN9t7UR6B9X3Px7P0=HqURNfKJrnxT zMEQ$F&Sd`PEcQ|Xu&Fg11`$}@spmkp9 zvwKx)9-B6|dQH-3r-+Aj9R;6HP53s`bwS5)`@=>Ht_+Xb7&B-1gcBoX+BNwpZ}zJ0 zRONB!(%xxA&`ry-MD-uThrQplh!uAw#=xLD^=O#Edb=4pYoxEV?)W&Yi#Fd^ZEUXn zpy!$Xr_8OZV|(mh=VN#+c6r|PhIyIaruSJ8e8OsLm)7jt&h+ z&Mzt-c5K+SJ#UJvru6n{I%V?KH+>m2FxB z_PjA1lu=>KtGmwSAMDU!Zrc5MJ@bwGrH1a@Hb<$VUzyucy}O}n`Wx)JJKEsVP>E69 z^IZ|)J7c?di-_Je?}VpXTJGIDhr$;Bp6hUbc1+B>2eW^iU%;8Nnj2wY`uT~!*TkX6 zM~Ys=XiQmqWoX|5w;$`~E5DM?PUYr@cy8}=eSAs`zjn@ocN@CoJQ?K~t2X38X3wet zgFmHgJ8^$;=R~)agL}J&Iz8;-S<}b4WNtr_5G#bn|xzUV3NgOkC^SLw%9m!Oyl_;h4z1K&DAq3>Am+=sfK6Qh1J2Gzid%m z`Xcvwna9#`bIiZ~^?p;v5>Cx9gYclIr{5eL9_@Z;$y>|1acLi>+4Cy;@)tkxzf*tO zrE}Bl^p%(F^Fr-qDlgK0MeuAeexMcOj4aXN$-f`~6A9dL4eywb-)%b?q z%KN3CmQLKzPO^g-eS74? z;LybdA8J>Ps9p4IwCeJJX#+ZLs!rWoJ#a_Nqp>;*E=c@VWUTV*I4J1BwT>(E(~j;p zUSxRZV^YAT5Z?2tFD6A?=8xa-F?zu;Wy_$`p_5}c#bY|SOq;cUFIy#SdE%?^KX5t zpqzS>X&v}AFF2Kbjc;{r9P>}ow#UOc!}J`q%qtvTSEoPkXTH1m=HvJNF(JCWd*6!~ zSGvyr+^`z9^%6V#>hIewxWvC4WLL87)7s73{@ygdayx5j;f5_e2JDXcD}BS}zKehN zw8{K7jeI4nt*6NUKkWZZ0`RUK)MZQ%S<|uKh=T6``2FlajCow;-EZ=@#+BfeVIz2h5Y=P^zr9WV zslZoD)$jnA5>Q3QIe5W))98h4w1FIL7)F0RfD*ho0lDaq3@PNJZPV1@IT&NN$_pT> z1U$jXi;#o1-L|H52IG+1b{Mc0RpQX#ji3t_u5lh6P4ayBAo0~>i2w3;7@hw_;(q@y>~(O)pp5y~Km zp>56R5G1tWTEXT2s+WF4-4b4EM@Q?SKOcevH2r{HET)E}lL&1`(v5|U<}$!(4KpK( z2{ZU-19G*7x7G>x9d{&K1s$>%(ME5yghWH}0A3al?HS1hmniBFXUPJmb(1+}?ku2`H3In$u|6L(KkZd&2+$TiQ_{yF$y+ crh^2~!gy$r8CU@7J^BE|mVJ#h^?(2UKj9YFfB*mh diff --git a/resources/Hypnonema/client/Hypnonema.Shared.dll b/resources/Hypnonema/client/Hypnonema.Shared.dll index c47c6b53abe8f35b6eeeb29e483fb3bfd4e35383..42e33ce99b2b0168901be77da93960375cc1b084 100644 GIT binary patch literal 12800 zcmeHNd30RWdH>$iESk}Hti`sxdnDU1w&g*#B`;tb$&zfzmTXxg3)^+Do@Soy!J~QO znUQU=IAb6zWeH9Rg^)HjC4|yLQlLGM(lp{=mJ&EANqP#WEr@QUfutwlw2)AszwdkZ zX-11v_phEVZ}fie+wOPo{qFj%Uf2G6sDy}IxIg=h=oviuY7+eQkcT?B=ud+5N50o; zp3ypAtLZ(G$cEAx>u|;x48@F8%F2ZX%ur@16-uN+t-GS3K`U-XrcLuNQLek&h&r_r z`m_CibOLL}$T3&Q}Tbe}PT;ukchX zi*WsMJJBvC`iXAlKuo;yL;=WN-A2?qQTOZk5K(E7z7#yN8oMGn^JETO`7%HVH`i5_ z8KqAkTd)Bmgr#Sfj_ z^dmIPN3}%SM8k{Z`)cw({@JlLAG}#woedKC^IjBr`ICBhIvBkq44FqSv6kWyMzeTy zMt``HNmm$^^DJMeUx!+_me=YfHwaNxuhU%Qk1|z=xgM_I^Z>uVk~p#dC?}idBoku0 z9(GF(=o_9--LpQ`*aii#T?+vL3T6w0fB*%u1wuf8d~AUb5FkTaAjCqua?7czzJ%6E z9H~MNS0mSIl&%V;t6S=^X5e{hCLlZuu(Co)U}j5}S1+H%1zh1c7Xkvbww;?0+x1hk zk>mzuRK^^idgP1lTk#hN(!B5-SmY5he|3Hy`=8IS0O0q`UhDQODqrK7C7R`PPq6_W zY|YtU=Hw;>1n_KUF9Zau9DxuJtab!KK(NLU2mwKZBM<_DMn@n7%3f9Prtjg&S9T>r zw{(`ZkRRFgjOdXsZ?RA$&(dlO`HCdeY#{?7+gmJna-?Vkj}>CR+CqQ!EX^P)Y3mXu zvpX1TuYT+G^Va1;{_D&m=dF!G4wQbq+1e~57sP5RkQh1QKJdKND&%{+PhM$lRpdvT zEsP)-y!Ps=-?6rXw8DVp_vvBj>Zpo;SBjq2nY}lTOb4k8ytZU5TIJNg%Cx~uW%GXz!J5#Eroz!lOqrU0tCah5CVcL9f1%K zAV#)@5D+vw0wEwk=xhriAZT#}LO2DyRu6X}B4LTubUnPwVR+=q&_LjAM?%0+n8sGL00cw)Q~rboIIHQal|K9Fp}R_bWgdE4@Llge`lr(} zxcAVC(g*z>Y8R|5EkQ9}6gnmNxZua$2mOBfmUjgBqW7opb90~vmOu0`-s@%0SznLO zPfLIvTIXf-i}q?a%Z~y*v_P~~kaO8E&*I`(=e2Tr265aVoQ9a4@TRm4SdVl_%4tV{ zxhnil!?McH++vy`x_d;o0^Dg-RU_7|#Ej4B&ikeXHqd3X0Dj8pYpCxAT1ye(4heS! zB&>TwxK`?ZDb))MWvuyN;sddqHdT z6W2%oI8%c)#TGePDNp`^=fyZ}~UE!y(~rnf->p3EXelTbn|TjpDMNcI@(&Degv3Ik?q|>j}hNKDu0S{ec9y7MnwD zF}A2v>7GT&{Pab|aejXKZN+hZembkTExvZlD32;`yRRJF6E-J419V3YSzQ1&How+VM2eaUyftBMX{b>;TscvjIDY);}*MRzIP`{+GY^kv0;;@JW2 zcNN!)bTjA?#qC3>XVAA4H-LUNlb%-G3G}m>G@`gaaBp+XqL&pn;@$!7b;X^AuA1Id z+48?s6 z-CSCrxJKya(Ne{=KsS#fin|HA`LtGXXP}!;S1Rsx=oZj6#k~#P0_s-WBIp*Y7pprxMAVb$jKWrnOZGl=Jw2gvI=0h`wYr!XhD=uTiMJqQfY zW59Ck^n*yjIGf%FhUjCo&=Q;k=oAJ9sZO+=v=ekU9R~Jdj}fH3^Z@VxJqGNj?*ilW zKJW;6^&ob3Gk|GY1k6zwc#>Lx*V6%Do)W;DDFeKXt^?jl4*~C?9|G?sS4oiWr&YkO z(g5%*odG^f=YfyX2PF~Aw%>O}u!ngAIFCLAqKCO7w1TDq*U)0%6?6>PLbn2U2pt8s z&~MNKz!=@@?x&-`yx@r7s9;EAd6QtjU|#UF;90?Qf+K>@362WBBS<=X&;&z*HG)lo z&4OnIM+8R&sf1JY3+4sS3XTYl3KH7*UUx{aNw8lqFL+jPL~vA)++r`-Bxnep7Ca|7 zBKVx(sNg$- z1r5Qx;Az3Lg69NB1fLTe6?{jKN~Pq2A;B8KCc$RGenCSpFL+w;tl&Ap5y4SG@=0k0 zn*`4ajtGtl;`{@xb1CM4J=iH}cqj1V&0-ox-E{I%HMsdyMoTdpzUTfO7v6Y0=YTDK z#?9K-flmtF5McVe@ArYXc-S%?_$KhXqP68aeJsDs`xJ1U_i5lYK2G&e*`ETJY0m-g z75nGKL$vG#NZu-Y1!()xyqxdn#O69F!+AGLz9JYSrk@b}OmLgvmj(Y`Fd}%p;46Z* z=Y-_=7*IzXI1(-(pKG~+*x^Cq#ZO0Md_W(fq9HnEpvw?14Kvg<(9;k%-p@=2JsmSH zzll_UuE5yWs1m4S{+bD#iRfy0;j0E+jaga4j5Y`KJp6P-o!?s)&?3ke0(IOqphG|% z_hQhsKppo|&`W?i?n^;m0@QIY104qHxL1H)4%9I}t^`K#W~AZ140Ju#0S)&m(5o>Q zX}H&bZlFfcjri$!b6N*_9ez6c3csse4%9JcT>*L{P^V4!X|x%r)0OyX)CAP289xmN zh|Qo|@YARjsN?On4fIx^jOGbcA$>;o*lq0{50AL)N$sz3v@SdKW1=O zo>yfo&0|+e!>j!mM|2a}ufgMG_FJeADgC(1l!qW9E?4hx+H5gmN6h|Jw6V*I4<*gb z)Sif&dpfY395!$PTi+aiMM@| zlQ`a{P&wYFP}z-iVQ>2v@^mn{jvd)(VlbUFr`GPtBqt|nPM$D^v%6B0HFohQ%Ug#sGNVk^NFy}oa%O7i z0v1kxF_KX;m*Ydq$zHZ(tP@!?b72EJY8Tc=b4Dg-#+!4KefOAY)0ix8HF9QeV$j@? zNX2PSCLzxr%aW$arj3{>Gr+`7X3u96dR~!bp|cfP772M~7}x2lICpI92`gv_a<`CbAH^}BpV@EGS-7dT;Nz&=)!gl z#(K2)n%IfOW|Gh;!&rtC!I)|nQdmu#E{?~hlBTlA*jYgEoiBNxb0*tITSa!fmqRE9Y?~$MFy?rz|i5t zyfPIMIq{P=EQswxnG0F9SgAva z!)m-2oY)nY#E7YJQmAY}@06fBgMCUYH(9|BjMQ*Jq587ObBTdOGLb9N9ygLhCPjy{ zIdd?gOe3n$m_x|^e+Lg-ikjw8nz(#N;>o0R3(SDhnfPhD6R|S~if)YIz8FO@#l#*6 zVxUO7hqRqEc)}egQ;gk96w?+@9%7sC+BgkYuA$JGPH^_f!p<+D74ZCqeBC^j1l9_<5;_xhmxj}y2_wQy^~IGnPwxkM~0rRv2N7VAaKO2xB|Bc~TQ zj-qDfcp_$I$sR%I6+DsI=_fBbQm-k*j>uVCB>M^Lk))j{!#puj#M9^al}b`h5Eajs zW4TU_0|JJ5BxNLrvx)5F{wfx%UHzukblUhYtVU4fU}^?0#e zi_d~I5kc*bz<}!?w;iq@bJ#tV6BDlEaJUA}2k@R8hwIfSMFTQABw4P8 zya7JrxYxq20s0vHH{cC+b`0fDfJx!_u@B9Xq#-ng$qFum0Wl`!q86DQhk)xmQBfX8 zQq0Xz*r{f46%t^Jlh+-Vq+PH%i8u2Y)CoGS@-W2lArvEnLS$*KZCsqb6XsbY3LF8! zMcIS*b$=S}hNKNjxfdDeWpf>30Bj7$m2IdaCy3K*uGujpz#d78=ae|WimZx2DL1K! zgdlP#QkpIq0&o=VsynG#ksu?|g!JqBBa=FL1YQfBI*S%94(~-JC=Pqw#pK{be@gEY zgA+l`oDfE)@;+4pJJ72y&b&CZ7ny_802gg;H&cnHVw3I(VDyG?FVQ`vc!Y7+mEh2Z zCyB~X5W_#fQ%3-V&IEueLp-NchCo(qlIdj=l89!BXqLdblnukehMBArvW{noP)V4A zxC6NHaTo*u%s!ZhT&0*qShNJXQYOL-b*0WJ(n1Zxu~(mURmMo~v{KkanrU8ndynv& zk_J0nj)(#{5L^}6fDc6QdDBds^9i$J)%u3DjWMI~kV({~(fr8Hw%)OAW1ZSfY{G{n zjgi&JCpcqFiC5(`PEdH`K7&(*#xx>9?ec$6KRO7ZfuOKZCJe)A6}{Jl4-9zKw4Kf*N*4=5I#!^@wbKQV%Jr; z`J0owp}V_C$0q!(OYzkcZH?Z#WzLn$f4-#S=Jv<;fAD+%u#bJTTz;U{JdSS;(}P$U z4~*6506teNaOx=NfHiQ<0ad*NDKpp5xO$RJBpn~1XnXVO#$k_fd+2_Q+SGtO+EG>_OAgeKV}J>f%AU^THud&Sq4%M zqei^v!fb)7eToIEcpt(x+r@`d`c|a0m$U>t7MJy6eAVOJn@`~FNc6#12HpzwEo_{4 zFU5J!ggr-$SKbVsyi+LD;6KYVf>k?-A77Z6;j0sV4vQC#N*eX&s2;}ND+ikp?jFf= zmy&bDIZvm|%-PZVujFmFLpOX{DAADYehRg?xOUho?J(ZQ#0VDRH}%F7)x&m_+n^b7 o=Vf*fJtc`KgwRXJw+8zvY(Y8YfAiI3e>0Ac?Ee4yKNx}k02aUIKL7v# literal 12800 zcmeHNeQ;dWbwBTE_w7nruO%bfvMt*y+xQEzSh9?5fN?S@OVW7Wr z-hJAY_6hPIGi{&retUlBoOkZM=iYbkeQ$U7wcn%)BJ$z<_+z4T_~fHi@ROkcb9m`b z!t|rcXB*FHyPj?AJCw{uMl$K4j5!>Mo3@?KMFy=%CT~ZQcBG>_78y<_tmv#+RV!5J zo=&1&S_Nfx{qB2iX%n<8Qmw5cS__TgXy4m`&j`)|oJ2Ju>rTB{q1=eZK%nQNf(CA5 zSN<=4D#|JxXArlWg#n_kb0Vf61)>mi=e85|O}Bj#j}Qe*>_KpDf_p@B)(tt34_5;s zIJvE=-jL*opjOdLHWLSvx(z_!j=C6U$0fR5V9{g2sel|>0RS2NUYnSLZqGGiVIwY2vF3y3K5`~>ncQm zVxFrI0gCyqLIf!4U4;lxEN~SflvHq`YY+jRi(G{WC7ungK?Ha%b`>H(vBXt~0L4;Q zAp#T;S0MrvjjlojDA3DJCPgSIez|K90iGBOj;9DvT<9u9fMTVq5CMu+u0jMTFvgu2 zB0#amRfteh{MD{O1bFtk3K2>?W3E92c;fDK3K8KdJ&Qq7bu(MlIH9evtF~%tWb=J; zv?aPOx_;gIrp-LK{geWBU`Q>$h3El%J`bnmv0Nr;4`tb-z+HmR<$GiFWymOimT%wN z)q&4%fo}?eZ%w5K!THc}8+~E%SY;)X5481!fyDO}#w1naL`7*APV|AqYQkp*CvF+h zaa{K26R~h?t7MsHyHmjx)dsyO_)eg&lgXJp)FN9`2{Xrnf8jbZE1H-^ofMt|X_Xm5Yv4#6?Ovw|G~)`vxY zRPZUmmj&MttR?o@E1r*qSiW84Gssnc;Y#sYFZdJD921{)$Y+1yhoX5>@E*a%a_u6C z`Iu-%#eb&KLlW63{g>#G{(@8PB8fA-T#ZiozJ$zJzLUT&`M(DI7hlroiSTIr)B39F zJD@oz>}2r2jZq(CF#I2rs3Y*jQ{v2VjxMfHlk1Y0#l z6nhP}YFeY%a@a!Dq*xTT5M8F&^{~yNt%}_Q+br6t*x$ewrkG-X2V0o-J4`Y$n-a=) zz_`ztO)15OjT)LwdByI8t%hz^>@4IOI_WTpQcJfh+hFD0MlGFEEM0jI*xibqsJ`Er zL-#87?dk`?9#E`F`>}BWol|U+rqKoTxMHUlbUvE8WIT>3}F`cbpF z^qOL^>PL-v^skB?t{w+_SFy*cpETyvhl)K{{WO@LCwn?6Evlzk4hx1*LOsn@Yza!J zrzML03gdbKtyJtc#%Zui6x)EYyO1_2wiRP{A+;*D6D?XqI~3cC7A>Ny6?+V}2HL0C zQ?NDApkg063@ zrSg|xcPVxx@QM+k?I43W{t$SM9soW@uLH*^tcU4mv<3KcvVqUg-N5JR8Q_cbpTL)CUPYK*p^d-^ zIt2V@`Udb#ItzS@UIM;@O<0)Tr6%C}Gzk2V{uoHwLqMPQPr#t&^P?5oDqxMa2Uw?Z z>Gc|y-k@>m5sgbATSPjKr{uxF~M=c2|?1> zKO)#FI3RdJa7^%w;JD!9f)j%01xe=!nqWk*QLt68O>jWa6f6jy5F8UcBRDSjxZs4~ zc|od>_<|9^M!{CWHo*ZwQ?MX-LU2s*jNrK77z)HVU>14hR+m#{|a(Cj`mhYa@cKf(5}b!EwO}K?;bcV5{JO zU_o$9a9nUgkb>ebI3QRM91|QDq)PD-Y!w_3Y^-8^o1iIpLa+k!o)5baKh{_SGe-bx zN);`oYT^Yc9PkH-ZqO=$w^XtGJ3r$Kfd~YSqSoj=6~2T7f?uE%rn9<4;Gc1CRsw(=o4ALaxN0jx1C|uEw8^=M;WY z2?KTHX*Oiuljz7-E#x^s9e4W$kn4atR{pt==K*z^k3S7roey~d{xn($)G;qCg4_Vq zv34$oyacFY_FM|N5vb$&t`YKbppNIE<&akbby_7)N2`H4X82XmuLbIK5txSAb`9ju zfoa5Zj!u_=X?W4|Imk_58fNiJAh&>Nv;nBorI?rSgaXuQ6LcD$-ZntK3_1<7)kesd z%M;xepiWmnr_q%_omy!NI>b7?z6V{%+T@*W%KE|Iz zR_;J7ZlUM20+O<=nIR-bHV{@-}Y(+Mlji)oI)B~1EXU|btn13I?`X>>lIc#{984*5nR3VIh@G~rVKW*#WM<&y zUfOFRCM!7keA%SJ@#r!0*-5J+-F8pP933>{M|!Qel{^ajH+Xxv8TYa} z885fQ(s?_vJ85^|{xa>jHIs*V!^|G-`Ao*La|o633b4l<_6Um`*-CkvV)2Y++1@s% zjeTYYqsrSu)uu1$RqA%Uk~35N=~Uj!8pAx{QPsB8F>^HAZF}TKYFe)E$Y*56DYre=ZKzwnmC0g#EH`%92h*8hxfL-l%;eRcwhtzU)JM9LQJZVh@e z*tNuS((tb9^AC3f3=>7k*N<EJxJ{_d zr6|fm(VJl12%k;xSub)ko(tD{RiYg&OG~?AxPU8Tp^8y&S2mlJ113=WPjT;n8)vQD z{bH}^orszAaBlH(-Y#)taCfTH3!X)SIlbIRtGzDjf{{x|;-VDrI2=72+6_nVysYzz z>$n$lQ<|9>FDT7U=>?v-;S${Zlsd1RsX9B*yabxJhxXz%!Lpg$dXR~{B+PSwa4 z^K4vc7K^T)5jmGRWT04E&jG>HQJRjaF*8G?>Dlxgt}|uQ)0un8>(1OX)A(@{G>G2e zzUNHDaVF^~FfsEj?VU2u?7Bm6YT7=*)gATjfYgm}g;BdjH+0>YN4sXOFOJbAzq0>5OfxF2w`7@=7e~en#1}a(;A^QEY^uw$6~#R^(;1s*bt16 zvy4^Zaz}!-b_-i;w^XdA5KbLu*tZ&mKnSu>!%)Xi&(IKDt-^rSZVB?sMLw4BFH`#T zd0)twBYV;|9yF{Gelym0h@Xo!`03(@myN-u=%#4%`e+N`2QF0Wu#1{EZ{BEbNUR$i zB-)Kvx6wVFeUlFt7ptx17W`glL$nzsh3h7bctJ9P4IV$=)$vu4NlQe$=i-I(^c^^U zrH9wj?&BK1vO?veD0PpONer6yktp8W75DVfJ~MkH8$y+%%`G@LZrCJ^A-XBL@;%aa z_i*EEoS_{!`FDis;J6pyT!r&EY{yG%?83iaDm{8*9kDO=RAyFwxODf!fBuWt-#qc1 zFLI3b%l3CzNAdf@kzwqe_D?ovKYp56Wa{1E{`BDC{i<#IZ7bKZp}EW_I+DP9%pGmb z8!jbP;FkYV1)@<$U%E2)-ryDICtg4HT8v>{?Z$L|0H1sC%|W-g{?zwxA35I=@V8a-aYJ)S^YI;nbNKM#+`LMG z59fDr{g`kwh?A5hlIQG$STOilfk^!8x(qyc1IAkh-e;xdE@6)ce77U0Ci{a7EWA>d zM>;G%>#%8d{#vk~U5Bf;%6CKUh&PO7nadbOi%eO0Il9+UQM$WkpQ|K>TPAP6va*9s zB4TM>f1g;*^4*pjs~@p4h*oTG=>q{jAvopp_gI`Y-VkT-$-B^ED?Y8AD@f>_2ID6&0vu>s5taF)ey_xae<{J&2h`jq=E0 zuA~*89t*{xzviI+Q)5ieVrdS&AF2r7r}1};ZOA=u`iC)EQpiFC<9}+8l*Wq6h~ip& YMn@~w3>5voyQq9d)%gEnKbs8v51A&qbpQYW diff --git a/resources/Hypnonema/client/html/1-es2015.js b/resources/Hypnonema/client/html/1-es2015.js deleted file mode 100644 index e62a24e57..000000000 --- a/resources/Hypnonema/client/html/1-es2015.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{Wp6s:function(e,t,i){"use strict";i.d(t,"a",(function(){return b})),i.d(t,"b",(function(){return d})),i.d(t,"c",(function(){return u})),i.d(t,"d",(function(){return p})),i.d(t,"e",(function(){return l})),i.d(t,"f",(function(){return h}));var a=i("R1ws"),n=i("FKr1"),c=i("fXoL");const r=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],s=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],m=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let d=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Mb({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Mb({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e})(),l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Mb({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e})(),b=(()=>{class e{constructor(e){this._animationMode=e}}return e.\u0275fac=function(t){return new(t||e)(c.Rb(a.a,8))},e.\u0275cmp=c.Lb({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&c.Ib("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(e,t){1&e&&(c.nc(r),c.mc(0),c.mc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e})(),u=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Lb({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:m,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(c.nc(s),c.mc(0),c.Xb(1,"div",0),c.mc(2,1),c.Wb(),c.mc(3,2))},encapsulation:2,changeDetection:0}),e})(),p=(()=>{class e{}return e.\u0275mod=c.Pb({type:e}),e.\u0275inj=c.Ob({factory:function(t){return new(t||e)},imports:[[n.e],n.e]}),e})()},bSwM:function(e,t,i){"use strict";i.d(t,"a",(function(){return _})),i.d(t,"b",(function(){return v}));var a=i("8LU1"),n=i("fXoL"),c=i("3Pt+"),r=i("FKr1"),o=i("R1ws"),s=i("GU7r"),m=i("u47x");const d=["input"],h=function(){return{enterDuration:150}},l=["*"],b=new n.s("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),u=new n.s("mat-checkbox-click-action");let p=0;const k={provide:c.h,useExisting:Object(n.V)(()=>_),multi:!0};class f{}class x{constructor(e){this._elementRef=e}}const g=Object(r.v)(Object(r.r)(Object(r.s)(Object(r.t)(x))));let _=(()=>{class e extends g{constructor(e,t,i,a,c,r,o,s){super(e),this._changeDetectorRef=t,this._focusMonitor=i,this._ngZone=a,this._clickAction=r,this._animationMode=o,this._options=s,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++p}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new n.p,this.indeterminateChange=new n.p,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(c)||0,this._focusMonitor.monitor(e,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),t.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Object(a.c)(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Object(a.c)(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Object(a.c)(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,i=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const e=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(e)},1e3)})}}_emitChangeEvent(){const e=new f;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}toggle(){this.checked=!this.checked}_onInputClick(e){e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e="keyboard",t){this._focusMonitor.focusVia(this._inputElement,e,t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let i="";switch(e){case 0:if(1===t)i="unchecked-checked";else{if(3!=t)return"";i="unchecked-indeterminate"}break;case 2:i=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return e.\u0275fac=function(t){return new(t||e)(n.Rb(n.m),n.Rb(n.i),n.Rb(m.e),n.Rb(n.B),n.cc("tabindex"),n.Rb(u,8),n.Rb(o.a,8),n.Rb(b,8))},e.\u0275cmp=n.Lb({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var i;1&e&&(n.Ic(d,!0),n.Ic(r.m,!0)),2&e&&(n.qc(i=n.gc())&&(t._inputElement=i.first),n.qc(i=n.gc())&&(t.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(n.ac("id",t.id),n.Fb("tabindex",null),n.Ib("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[n.Db([k]),n.Bb],ngContentSelectors:l,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.nc(),n.Xb(0,"label",0,1),n.Xb(2,"div",2),n.Xb(3,"input",3,4),n.fc("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),n.Wb(),n.Xb(5,"div",5),n.Sb(6,"div",6),n.Wb(),n.Sb(7,"div",7),n.Xb(8,"div",8),n.ic(),n.Xb(9,"svg",9),n.Sb(10,"path",10),n.Wb(),n.hc(),n.Sb(11,"div",11),n.Wb(),n.Wb(),n.Xb(12,"span",12,13),n.fc("cdkObserveContent",(function(){return t._onLabelTextChange()})),n.Xb(14,"span",14),n.Dc(15,"\xa0"),n.Wb(),n.mc(16),n.Wb(),n.Wb()),2&e){const e=n.rc(1),i=n.rc(13);n.Fb("for",t.inputId),n.Eb(2),n.Ib("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),n.Eb(1),n.oc("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.Fb("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked()),n.Eb(2),n.oc("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.pc(18,h))}},directives:[r.m,s.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})(),y=(()=>{class e{}return e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({factory:function(t){return new(t||e)}}),e})(),v=(()=>{class e{}return e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({factory:function(t){return new(t||e)},imports:[[r.n,r.e,s.c,y],r.e,y]}),e})()},"hh/h":function(e,t,i){"use strict";i.r(t),i.d(t,"QuickPlayModule",(function(){return C}));var a=i("ofXK"),n=i("tyNb"),c=i("mrSG"),r=i("3Pt+"),o=i("AcyG"),s=i("sxot"),m=i("fXoL"),d=i("/rnm"),h=i("Wp6s"),l=i("kmnG"),b=i("qFsG"),u=i("d3UM"),p=i("bTqV"),k=i("FKr1");function f(e,t){1&e&&(m.Xb(0,"mat-error"),m.Dc(1,"Please enter a valid url"),m.Wb())}function x(e,t){if(1&e&&(m.Xb(0,"mat-option",8),m.Dc(1),m.Wb()),2&e){const e=t.$implicit;m.oc("value",e),m.Eb(1),m.Ec(e.name)}}function g(e,t){1&e&&(m.Xb(0,"mat-error"),m.Dc(1,"Please select a screen."),m.Wb())}const _=[{path:"",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t}ngOnInit(){this.playForm=this.fb.group({url:["",[r.q.required]],screen:["",[r.q.required]]})}submit(){const e=this.playForm.get("url").value;this.nuiService.playVideo(this.selectedScreen.name,e);const t=this;setTimeout((function(){t.nuiService.requestDuiState(t.selectedScreen.name)}),2500)}}return e.\u0275fac=function(t){return new(t||e)(m.Rb(r.c),m.Rb(d.a))},e.\u0275cmp=m.Lb({type:e,selectors:[["app-quick-play"]],decls:24,vars:7,consts:[[1,"form-container"],[1,"quick-play-form",3,"formGroup","ngSubmit"],["matInput","","placeholder","URL","formControlName","url","type","url","required",""],[4,"ngIf"],["required","","formControlName","screen","placeholder","Screen",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[2,"padding-top","10px"],["type","submit","mat-raised-button",""],[3,"value"]],template:function(e,t){1&e&&(m.Xb(0,"mat-card"),m.Xb(1,"mat-card-header"),m.Xb(2,"mat-card-title"),m.Dc(3,"Quick Play"),m.Wb(),m.Xb(4,"mat-card-subtitle"),m.Dc(5,"Play quickly videos from various sources"),m.Wb(),m.Wb(),m.Xb(6,"mat-card-content"),m.Xb(7,"div",0),m.Xb(8,"form",1),m.fc("ngSubmit",(function(){return t.submit()})),m.Xb(9,"div"),m.Xb(10,"mat-form-field"),m.Sb(11,"input",2),m.Bc(12,f,2,0,"mat-error",3),m.Wb(),m.Wb(),m.Xb(13,"div"),m.Xb(14,"mat-form-field"),m.Xb(15,"mat-select",4),m.fc("ngModelChange",(function(e){return t.selectedScreen=e})),m.Bc(16,x,2,2,"mat-option",5),m.kc(17,"async"),m.Wb(),m.Xb(18,"mat-hint"),m.Dc(19,"You may have to create a Screen first."),m.Wb(),m.Bc(20,g,2,0,"mat-error",3),m.Wb(),m.Wb(),m.Xb(21,"div",6),m.Xb(22,"button",7),m.Dc(23,"Play"),m.Wb(),m.Wb(),m.Wb(),m.Wb(),m.Wb(),m.Wb()),2&e&&(m.Eb(8),m.oc("formGroup",t.playForm),m.Eb(4),m.oc("ngIf",t.playForm.hasError("required","url")),m.Eb(3),m.oc("ngModel",t.selectedScreen),m.Eb(1),m.oc("ngForOf",m.lc(17,5,t.screens$)),m.Eb(4),m.oc("ngIf",t.playForm.hasError("required","screen")))},directives:[h.a,h.c,h.f,h.e,h.b,r.r,r.k,r.e,l.c,b.a,r.b,r.j,r.d,r.p,a.k,u.a,a.j,l.f,p.b,l.b,k.i],pipes:[a.b],styles:[""]}),Object(c.a)([Object(o.d)(s.a.getScreens)],e.prototype,"screens$",void 0),e})()}];let y=(()=>{class e{}return e.\u0275mod=m.Pb({type:e}),e.\u0275inj=m.Ob({factory:function(t){return new(t||e)},imports:[[n.d.forChild(_)],n.d]}),e})();var v=i("bSwM");let C=(()=>{class e{}return e.\u0275mod=m.Pb({type:e}),e.\u0275inj=m.Ob({factory:function(t){return new(t||e)},imports:[[a.c,y,h.d,r.o,l.e,b.b,u.b,p.c,v.b]]}),e})()},qFsG:function(e,t,i){"use strict";i.d(t,"a",(function(){return g})),i.d(t,"b",(function(){return _}));var a=i("nLfN"),n=i("fXoL"),c=i("8LU1"),r=i("EY2u"),o=i("XNiG");i("xgIS"),i("3UWI"),i("1G5W"),i("ofXK");const s=Object(a.f)({passive:!0});let m=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return r.a;const t=Object(c.e)(e),i=this._monitoredElements.get(t);if(i)return i.subject.asObservable();const a=new o.a,n="cdk-text-field-autofilled",m=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(n)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(n)&&(t.classList.remove(n),this._ngZone.run(()=>a.next({target:e.target,isAutofilled:!1}))):(t.classList.add(n),this._ngZone.run(()=>a.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",m,s),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:a,unlisten:()=>{t.removeEventListener("animationstart",m,s)}}),a.asObservable()}stopMonitoring(e){const t=Object(c.e)(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.\u0275fac=function(t){return new(t||e)(n.bc(a.a),n.bc(n.B))},e.\u0275prov=Object(n.Nb)({factory:function(){return new e(Object(n.bc)(a.a),Object(n.bc)(n.B))},token:e,providedIn:"root"}),e})(),d=(()=>{class e{}return e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({factory:function(t){return new(t||e)},imports:[[a.b]]}),e})();var h=i("FKr1"),l=i("kmnG"),b=i("3Pt+");const u=new n.s("MAT_INPUT_VALUE_ACCESSOR"),p=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let k=0;class f{constructor(e,t,i,a){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=a}}const x=Object(h.u)(f);let g=(()=>{class e extends x{constructor(e,t,i,n,c,r,s,m,d){super(r,n,c,i),this._elementRef=e,this._platform=t,this.ngControl=i,this._autofillMonitor=m,this._uid=`mat-input-${k++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new o.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Object(a.e)().has(e));const h=this._elementRef.nativeElement;this._inputValueAccessor=s||h,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{let t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Object(c.c)(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Object(c.c)(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&Object(a.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Object(c.c)(e)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){if(p.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focused||this.focus()}}return e.\u0275fac=function(t){return new(t||e)(n.Rb(n.m),n.Rb(a.a),n.Rb(b.i,10),n.Rb(b.l,8),n.Rb(b.e,8),n.Rb(h.a),n.Rb(u,10),n.Rb(m),n.Rb(n.B))},e.\u0275dir=n.Mb({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&n.fc("blur",(function(){return t._focusChanged(!1)}))("focus",(function(){return t._focusChanged(!0)}))("input",(function(){return t._onInput()})),2&e&&(n.ac("disabled",t.disabled)("required",t.required),n.Fb("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),n.Ib("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[n.Db([{provide:l.d,useExisting:e}]),n.Bb,n.Cb]}),e})(),_=(()=>{class e{}return e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({factory:function(t){return new(t||e)},providers:[h.a],imports:[[d,l.e],d,l.e]}),e})()}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/1-es5.js b/resources/Hypnonema/client/html/1-es5.js deleted file mode 100644 index 7c23e6e54..000000000 --- a/resources/Hypnonema/client/html/1-es5.js +++ /dev/null @@ -1 +0,0 @@ -function _defineProperties(e,t){for(var n=0;n.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e}(),b=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Lb({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:m,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(c.nc(s),c.mc(0),c.Xb(1,"div",0),c.mc(2,1),c.Wb(),c.mc(3,2))},encapsulation:2,changeDetection:0}),e}(),f=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=c.Pb({type:e}),e.\u0275inj=c.Ob({factory:function(t){return new(t||e)},imports:[[a.e],a.e]}),e}()},bSwM:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return v}));var i=n("8LU1"),a=n("fXoL"),c=n("3Pt+"),r=n("FKr1"),o=n("R1ws"),s=n("GU7r"),m=n("u47x"),d=["input"],l=function(){return{enterDuration:150}},u=["*"],h=new a.s("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),b=new a.s("mat-checkbox-click-action"),f=0,k={provide:c.h,useExisting:Object(a.V)((function(){return x})),multi:!0},p=function e(){_classCallCheck(this,e)},g=Object(r.v)(Object(r.r)(Object(r.s)(Object(r.t)((function e(t){_classCallCheck(this,e),this._elementRef=t}))))),x=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,c,r,o,s,m,d){var l;return _classCallCheck(this,n),(l=t.call(this,e))._changeDetectorRef=i,l._focusMonitor=c,l._ngZone=r,l._clickAction=s,l._animationMode=m,l._options=d,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-".concat(++f),l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new a.p,l.indeterminateChange=new a.p,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=0,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l._options=l._options||{},l._options.color&&(l.color=l._options.color),l.tabIndex=parseInt(o)||0,l._focusMonitor.monitor(e,!0).subscribe((function(e){e||Promise.resolve().then((function(){l._onTouched(),i.markForCheck()}))})),l._clickAction=l._clickAction||l._options.clickAction,l}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var e=new p;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t=this;e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,e,t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=Object(i.c)(e)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=Object(i.c)(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=Object(i.c)(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(a.Rb(a.m),a.Rb(a.i),a.Rb(m.e),a.Rb(a.B),a.cc("tabindex"),a.Rb(b,8),a.Rb(o.a,8),a.Rb(h,8))},e.\u0275cmp=a.Lb({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(a.Ic(d,!0),a.Ic(r.m,!0)),2&e&&(a.qc(n=a.gc())&&(t._inputElement=n.first),a.qc(n=a.gc())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(a.ac("id",t.id),a.Fb("tabindex",null),a.Ib("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a.Db([k]),a.Bb],ngContentSelectors:u,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(a.nc(),a.Xb(0,"label",0,1),a.Xb(2,"div",2),a.Xb(3,"input",3,4),a.fc("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),a.Wb(),a.Xb(5,"div",5),a.Sb(6,"div",6),a.Wb(),a.Sb(7,"div",7),a.Xb(8,"div",8),a.ic(),a.Xb(9,"svg",9),a.Sb(10,"path",10),a.Wb(),a.hc(),a.Sb(11,"div",11),a.Wb(),a.Wb(),a.Xb(12,"span",12,13),a.fc("cdkObserveContent",(function(){return t._onLabelTextChange()})),a.Xb(14,"span",14),a.Dc(15,"\xa0"),a.Wb(),a.mc(16),a.Wb(),a.Wb()),2&e){var n=a.rc(1),i=a.rc(13);a.Fb("for",t.inputId),a.Eb(2),a.Ib("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),a.Eb(1),a.oc("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),a.Fb("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked()),a.Eb(2),a.oc("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.pc(18,l))}},directives:[r.m,s.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e}(),_=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=a.Pb({type:e}),e.\u0275inj=a.Ob({factory:function(t){return new(t||e)}}),e}(),v=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=a.Pb({type:e}),e.\u0275inj=a.Ob({factory:function(t){return new(t||e)},imports:[[r.n,r.e,s.c,_],r.e,_]}),e}()},"hh/h":function(e,t,n){"use strict";n.r(t),n.d(t,"QuickPlayModule",(function(){return O}));var i=n("ofXK"),a=n("tyNb"),c=n("mrSG"),r=n("3Pt+"),o=n("AcyG"),s=n("sxot"),m=n("fXoL"),d=n("/rnm"),l=n("Wp6s"),u=n("kmnG"),h=n("qFsG"),b=n("d3UM"),f=n("bTqV"),k=n("FKr1");function p(e,t){1&e&&(m.Xb(0,"mat-error"),m.Dc(1,"Please enter a valid url"),m.Wb())}function g(e,t){if(1&e&&(m.Xb(0,"mat-option",8),m.Dc(1),m.Wb()),2&e){var n=t.$implicit;m.oc("value",n),m.Eb(1),m.Ec(n.name)}}function x(e,t){1&e&&(m.Xb(0,"mat-error"),m.Dc(1,"Please select a screen."),m.Wb())}var _,v,y,C=[{path:"",component:(_=function(){function e(t,n){_classCallCheck(this,e),this.fb=t,this.nuiService=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.playForm=this.fb.group({url:["",[r.q.required]],screen:["",[r.q.required]]})}},{key:"submit",value:function(){var e=this.playForm.get("url").value;this.nuiService.playVideo(this.selectedScreen.name,e);var t=this;setTimeout((function(){t.nuiService.requestDuiState(t.selectedScreen.name)}),2500)}}]),e}(),_.\u0275fac=function(e){return new(e||_)(m.Rb(r.c),m.Rb(d.a))},_.\u0275cmp=m.Lb({type:_,selectors:[["app-quick-play"]],decls:24,vars:7,consts:[[1,"form-container"],[1,"quick-play-form",3,"formGroup","ngSubmit"],["matInput","","placeholder","URL","formControlName","url","type","url","required",""],[4,"ngIf"],["required","","formControlName","screen","placeholder","Screen",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[2,"padding-top","10px"],["type","submit","mat-raised-button",""],[3,"value"]],template:function(e,t){1&e&&(m.Xb(0,"mat-card"),m.Xb(1,"mat-card-header"),m.Xb(2,"mat-card-title"),m.Dc(3,"Quick Play"),m.Wb(),m.Xb(4,"mat-card-subtitle"),m.Dc(5,"Play quickly videos from various sources"),m.Wb(),m.Wb(),m.Xb(6,"mat-card-content"),m.Xb(7,"div",0),m.Xb(8,"form",1),m.fc("ngSubmit",(function(){return t.submit()})),m.Xb(9,"div"),m.Xb(10,"mat-form-field"),m.Sb(11,"input",2),m.Bc(12,p,2,0,"mat-error",3),m.Wb(),m.Wb(),m.Xb(13,"div"),m.Xb(14,"mat-form-field"),m.Xb(15,"mat-select",4),m.fc("ngModelChange",(function(e){return t.selectedScreen=e})),m.Bc(16,g,2,2,"mat-option",5),m.kc(17,"async"),m.Wb(),m.Xb(18,"mat-hint"),m.Dc(19,"You may have to create a Screen first."),m.Wb(),m.Bc(20,x,2,0,"mat-error",3),m.Wb(),m.Wb(),m.Xb(21,"div",6),m.Xb(22,"button",7),m.Dc(23,"Play"),m.Wb(),m.Wb(),m.Wb(),m.Wb(),m.Wb(),m.Wb()),2&e&&(m.Eb(8),m.oc("formGroup",t.playForm),m.Eb(4),m.oc("ngIf",t.playForm.hasError("required","url")),m.Eb(3),m.oc("ngModel",t.selectedScreen),m.Eb(1),m.oc("ngForOf",m.lc(17,5,t.screens$)),m.Eb(4),m.oc("ngIf",t.playForm.hasError("required","screen")))},directives:[l.a,l.c,l.f,l.e,l.b,r.r,r.k,r.e,u.c,h.a,r.b,r.j,r.d,r.p,i.k,b.a,i.j,u.f,f.b,u.b,k.i],pipes:[i.b],styles:[""]}),Object(c.a)([Object(o.d)(s.a.getScreens)],_.prototype,"screens$",void 0),_)}],w=((v=function e(){_classCallCheck(this,e)}).\u0275mod=m.Pb({type:v}),v.\u0275inj=m.Ob({factory:function(e){return new(e||v)},imports:[[a.d.forChild(C)],a.d]}),v),R=n("bSwM"),O=((y=function e(){_classCallCheck(this,e)}).\u0275mod=m.Pb({type:y}),y.\u0275inj=m.Ob({factory:function(e){return new(e||y)},imports:[[i.c,w,l.d,r.o,u.e,h.b,b.b,f.c,R.b]]}),y)},qFsG:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return C}));var i=n("nLfN"),a=n("fXoL"),c=n("8LU1"),r=n("EY2u"),o=n("XNiG");n("xgIS"),n("3UWI"),n("1G5W"),n("ofXK");var s,m,d,l,u=Object(i.f)({passive:!0}),h=((m=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return _createClass(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return r.a;var n=Object(c.e)(e),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var a=new o.a,s="cdk-text-field-autofilled",m=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(s)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(s)&&(n.classList.remove(s),t._ngZone.run((function(){return a.next({target:e.target,isAutofilled:!1})}))):(n.classList.add(s),t._ngZone.run((function(){return a.next({target:e.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",m,u),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:a,unlisten:function(){n.removeEventListener("animationstart",m,u)}}),a.asObservable()}},{key:"stopMonitoring",value:function(e){var t=Object(c.e)(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach((function(t,n){return e.stopMonitoring(n)}))}}]),e}()).\u0275fac=function(e){return new(e||m)(a.bc(i.a),a.bc(a.B))},m.\u0275prov=Object(a.Nb)({factory:function(){return new m(Object(a.bc)(i.a),Object(a.bc)(a.B))},token:m,providedIn:"root"}),m),b=((s=function e(){_classCallCheck(this,e)}).\u0275mod=a.Pb({type:s}),s.\u0275inj=a.Ob({factory:function(e){return new(e||s)},imports:[[i.b]]}),s),f=n("FKr1"),k=n("kmnG"),p=n("3Pt+"),g=new a.s("MAT_INPUT_VALUE_ACCESSOR"),x=["button","checkbox","file","hidden","image","radio","range","reset","submit"],_=0,v=Object(f.u)((function e(t,n,i,a){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=a})),y=((l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,c,r,s,m,d,l,u){var h;_classCallCheck(this,n),(h=t.call(this,m,r,s,c))._elementRef=e,h._platform=a,h.ngControl=c,h._autofillMonitor=l,h._uid="mat-input-".concat(_++),h._isServer=!1,h._isNativeSelect=!1,h.focused=!1,h.stateChanges=new o.a,h.controlType="mat-input",h.autofilled=!1,h._disabled=!1,h._required=!1,h._type="text",h._readonly=!1,h._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(e){return Object(i.e)().has(e)}));var b=h._elementRef.nativeElement;return h._inputValueAccessor=d||b,h._previousNativeValue=h.value,h.id=h.id,a.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))}))})),h._isServer=!h._platform.isBrowser,h._isNativeSelect="select"===b.nodeName.toLowerCase(),h._isNativeSelect&&(h.controlType=b.multiple?"mat-native-select-multiple":"mat-native-select"),h}return _createClass(n,[{key:"ngOnInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){if(x.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Object(c.c)(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Object(c.c)(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&Object(i.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=Object(c.c)(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),n}(v)).\u0275fac=function(e){return new(e||l)(a.Rb(a.m),a.Rb(i.a),a.Rb(p.i,10),a.Rb(p.l,8),a.Rb(p.e,8),a.Rb(f.a),a.Rb(g,10),a.Rb(h),a.Rb(a.B))},l.\u0275dir=a.Mb({type:l,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&a.fc("blur",(function(){return t._focusChanged(!1)}))("focus",(function(){return t._focusChanged(!0)}))("input",(function(){return t._onInput()})),2&e&&(a.ac("disabled",t.disabled)("required",t.required),a.Fb("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),a.Ib("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[a.Db([{provide:k.d,useExisting:l}]),a.Bb,a.Cb]}),l),C=((d=function e(){_classCallCheck(this,e)}).\u0275mod=a.Pb({type:d}),d.\u0275inj=a.Ob({factory:function(e){return new(e||d)},providers:[f.a],imports:[[b,k.e],b,k.e]}),d)}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/1.js b/resources/Hypnonema/client/html/1.js index dc3a6ed7e..e391f4d54 100644 --- a/resources/Hypnonema/client/html/1.js +++ b/resources/Hypnonema/client/html/1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{Wp6s:function(e,t,i){"use strict";i.d(t,"a",function(){return b}),i.d(t,"b",function(){return m}),i.d(t,"c",function(){return u}),i.d(t,"d",function(){return p}),i.d(t,"e",function(){return l}),i.d(t,"f",function(){return h});var a=i("R1ws"),n=i("FKr1"),r=i("fXoL");const c=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],s=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],d=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let m=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e})(),l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e})(),b=(()=>{class e{constructor(e){this._animationMode=e}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(a.a,8))},e.\u0275cmp=r.Lb({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(e,t){1&e&&(r.mc(c),r.lc(0),r.lc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e})(),u=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:d,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(r.mc(s),r.lc(0),r.Xb(1,"div",0),r.lc(2,1),r.Wb(),r.lc(3,2))},encapsulation:2,changeDetection:0}),e})(),p=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[n.e],n.e]}),e})()},bSwM:function(e,t,i){"use strict";i.d(t,"a",function(){return y}),i.d(t,"b",function(){return C});var a=i("8LU1"),n=i("fXoL"),r=i("3Pt+"),c=i("FKr1"),o=i("R1ws"),s=i("GU7r"),d=i("u47x");const m=["input"],h=function(){return{enterDuration:150}},l=["*"],b=new n.t("mat-checkbox-default-options",{providedIn:"root",factory:u});function u(){return{color:"accent",clickAction:"check-indeterminate"}}let p=0;const k=u(),f={provide:r.h,useExisting:Object(n.W)(()=>y),multi:!0};class g{}class x{constructor(e){this._elementRef=e}}const _=Object(c.u)(Object(c.q)(Object(c.r)(Object(c.s)(x))));let y=(()=>{class e extends _{constructor(e,t,i,a,r,c,o){super(e),this._changeDetectorRef=t,this._focusMonitor=i,this._ngZone=a,this._animationMode=c,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++p,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new n.p,this.indeterminateChange=new n.p,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Object(a.c)(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Object(a.c)(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Object(a.c)(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,i=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const e=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(e)},1e3)})}}_emitChangeEvent(){const e=new g;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let i="";switch(e){case 0:if(1===t)i="unchecked-checked";else{if(3!=t)return"";i="unchecked-indeterminate"}break;case 2:i=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return e.\u0275fac=function(t){return new(t||e)(n.Rb(n.m),n.Rb(n.i),n.Rb(d.e),n.Rb(n.C),n.cc("tabindex"),n.Rb(o.a,8),n.Rb(b,8))},e.\u0275cmp=n.Lb({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(n.Gc(m,1),n.Gc(c.l,1)),2&e){let e;n.pc(e=n.fc())&&(t._inputElement=e.first),n.pc(e=n.fc())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(n.ac("id",t.id),n.Gb("tabindex",null),n.Jb("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[n.Eb([f]),n.Cb],ngContentSelectors:l,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.mc(),n.Xb(0,"label",0,1),n.Xb(2,"span",2),n.Xb(3,"input",3,4),n.ec("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),n.Wb(),n.Xb(5,"span",5),n.Sb(6,"span",6),n.Wb(),n.Sb(7,"span",7),n.Xb(8,"span",8),n.hc(),n.Xb(9,"svg",9),n.Sb(10,"path",10),n.Wb(),n.gc(),n.Sb(11,"span",11),n.Wb(),n.Wb(),n.Xb(12,"span",12,13),n.ec("cdkObserveContent",function(){return t._onLabelTextChange()}),n.Xb(14,"span",14),n.Cc(15,"\xa0"),n.Wb(),n.lc(16),n.Wb(),n.Wb()),2&e){const e=n.qc(1),i=n.qc(13);n.Gb("for",t.inputId),n.Fb(2),n.Jb("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),n.Fb(1),n.nc("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.Gb("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),n.Fb(2),n.nc("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.oc(19,h))}},directives:[c.l,s.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})(),v=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({}),e})(),C=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({imports:[[c.m,c.e,s.c,v],c.e,v]}),e})()},"hh/h":function(e,t,i){"use strict";i.r(t),i.d(t,"QuickPlayModule",function(){return C});var a=i("ofXK"),n=i("tyNb"),r=i("mrSG"),c=i("3Pt+"),o=i("AcyG"),s=i("sxot"),d=i("fXoL"),m=i("/rnm"),h=i("Wp6s"),l=i("kmnG"),b=i("qFsG"),u=i("d3UM"),p=i("bTqV"),k=i("FKr1");function f(e,t){1&e&&(d.Xb(0,"mat-error"),d.Cc(1,"Please enter a url."),d.Wb())}function g(e,t){if(1&e&&(d.Xb(0,"mat-option",8),d.Cc(1),d.Wb()),2&e){const e=t.$implicit;d.nc("value",e),d.Fb(1),d.Dc(e.name)}}function x(e,t){1&e&&(d.Xb(0,"mat-error"),d.Cc(1,"Please select a screen."),d.Wb())}const _=[{path:"",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t}get selectedScreen(){return this.playForm.get("screen").value}get videoUrl(){return this.playForm.get("url").value}ngOnInit(){this.playForm=this.fb.group({url:["",[c.q.required]],screen:["",[c.q.required]]})}submit(){const e=this;this.nuiService.playVideo(this.selectedScreen.name,this.videoUrl),setTimeout(function(){e.nuiService.requestDuiState(e.selectedScreen)},2500)}}return e.\u0275fac=function(t){return new(t||e)(d.Rb(c.c),d.Rb(m.a))},e.\u0275cmp=d.Lb({type:e,selectors:[["app-quick-play"]],decls:24,vars:6,consts:[[1,"form-container"],[1,"quick-play-form",3,"formGroup","ngSubmit"],["formControlName","url","matInput","","placeholder","URL","required","","type","url"],[4,"ngIf"],["formControlName","screen","placeholder","Screen","required",""],[3,"value",4,"ngFor","ngForOf"],[2,"padding-top","10px"],["mat-raised-button","","type","submit"],[3,"value"]],template:function(e,t){1&e&&(d.Xb(0,"mat-card"),d.Xb(1,"mat-card-header"),d.Xb(2,"mat-card-title"),d.Cc(3,"Quick Play"),d.Wb(),d.Xb(4,"mat-card-subtitle"),d.Cc(5,"Play quickly videos from various sources"),d.Wb(),d.Wb(),d.Xb(6,"mat-card-content"),d.Xb(7,"div",0),d.Xb(8,"form",1),d.ec("ngSubmit",function(){return t.submit()}),d.Xb(9,"div"),d.Xb(10,"mat-form-field"),d.Sb(11,"input",2),d.Ac(12,f,2,0,"mat-error",3),d.Wb(),d.Wb(),d.Xb(13,"div"),d.Xb(14,"mat-form-field"),d.Xb(15,"mat-select",4),d.Ac(16,g,2,2,"mat-option",5),d.jc(17,"async"),d.Wb(),d.Xb(18,"mat-hint"),d.Cc(19,"You may have to create a Screen first."),d.Wb(),d.Ac(20,x,2,0,"mat-error",3),d.Wb(),d.Wb(),d.Xb(21,"div",6),d.Xb(22,"button",7),d.Cc(23,"Play"),d.Wb(),d.Wb(),d.Wb(),d.Wb(),d.Wb(),d.Wb()),2&e&&(d.Fb(8),d.nc("formGroup",t.playForm),d.Fb(4),d.nc("ngIf",t.playForm.hasError("required","url")),d.Fb(4),d.nc("ngForOf",d.kc(17,4,t.screens$)),d.Fb(4),d.nc("ngIf",t.playForm.hasError("required","screen")))},directives:[h.a,h.c,h.f,h.e,h.b,c.r,c.k,c.e,l.c,c.b,b.a,c.j,c.d,c.p,a.k,u.a,a.j,l.f,p.b,l.b,k.h],pipes:[a.b],styles:[""]}),Object(r.a)([Object(o.d)(s.a.getScreens)],e.prototype,"screens$",void 0),e})()}];let y=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.Pb({type:e}),e.\u0275inj=d.Ob({imports:[[n.d.forChild(_)],n.d]}),e})();var v=i("bSwM");let C=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.Pb({type:e}),e.\u0275inj=d.Ob({imports:[[a.c,y,h.d,c.o,l.e,b.b,u.b,p.c,v.b]]}),e})()},qFsG:function(e,t,i){"use strict";i.d(t,"a",function(){return x}),i.d(t,"b",function(){return _});var a=i("nLfN"),n=i("fXoL"),r=i("8LU1"),c=i("EY2u"),o=i("XNiG");i("xgIS"),i("3UWI"),i("1G5W"),i("ofXK");const s=Object(a.f)({passive:!0});let d=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return c.a;const t=Object(r.e)(e),i=this._monitoredElements.get(t);if(i)return i.subject;const a=new o.a,n="cdk-text-field-autofilled",d=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(n)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(n)&&(t.classList.remove(n),this._ngZone.run(()=>a.next({target:e.target,isAutofilled:!1}))):(t.classList.add(n),this._ngZone.run(()=>a.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,s),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:a,unlisten:()=>{t.removeEventListener("animationstart",d,s)}}),a}stopMonitoring(e){const t=Object(r.e)(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.\u0275fac=function(t){return new(t||e)(n.bc(a.a),n.bc(n.C))},e.\u0275prov=Object(n.Nb)({factory:function(){return new e(Object(n.bc)(a.a),Object(n.bc)(n.C))},token:e,providedIn:"root"}),e})(),m=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({imports:[[a.b]]}),e})();var h=i("FKr1"),l=i("kmnG"),b=i("3Pt+");const u=new n.t("MAT_INPUT_VALUE_ACCESSOR"),p=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let k=0;class f{constructor(e,t,i,a){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=a}}const g=Object(h.t)(f);let x=(()=>{class e extends g{constructor(e,t,i,n,r,c,s,d,m,h){super(c,n,r,i),this._elementRef=e,this._platform=t,this.ngControl=i,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+k++,this.focused=!1,this.stateChanges=new o.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Object(a.e)().has(e));const l=this._elementRef.nativeElement,b=l.nodeName.toLowerCase();this._inputValueAccessor=s||l,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&m.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{let t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Object(r.c)(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Object(r.c)(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Object(a.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Object(r.c)(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const i=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(i!==this._previousPlaceholder){const e=this._elementRef.nativeElement;this._previousPlaceholder=i,i?e.setAttribute("placeholder",i):e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){p.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return e.\u0275fac=function(t){return new(t||e)(n.Rb(n.m),n.Rb(a.a),n.Rb(b.i,10),n.Rb(b.l,8),n.Rb(b.e,8),n.Rb(h.a),n.Rb(u,10),n.Rb(d),n.Rb(n.C),n.Rb(l.a,8))},e.\u0275dir=n.Mb({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&n.ec("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(n.ac("disabled",t.disabled)("required",t.required),n.Gb("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState&&!t.empty)("aria-required",t.required),n.Jb("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[n.Eb([{provide:l.d,useExisting:e}]),n.Cb,n.Db]}),e})(),_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({providers:[h.a],imports:[[m,l.e,h.e],m,l.e]}),e})()}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{Wp6s:function(e,t,i){"use strict";i.d(t,"a",function(){return b}),i.d(t,"b",function(){return m}),i.d(t,"c",function(){return u}),i.d(t,"d",function(){return p}),i.d(t,"e",function(){return l}),i.d(t,"f",function(){return h});var a=i("R1ws"),n=i("FKr1"),r=i("fXoL");const c=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],s=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],d=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let m=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e})(),l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e})(),b=(()=>{class e{constructor(e){this._animationMode=e}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(a.a,8))},e.\u0275cmp=r.Lb({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(e,t){1&e&&(r.mc(c),r.lc(0),r.lc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e})(),u=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:d,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(r.mc(s),r.lc(0),r.Xb(1,"div",0),r.lc(2,1),r.Wb(),r.lc(3,2))},encapsulation:2,changeDetection:0}),e})(),p=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[n.e],n.e]}),e})()},bSwM:function(e,t,i){"use strict";i.d(t,"a",function(){return y}),i.d(t,"b",function(){return C});var a=i("8LU1"),n=i("fXoL"),r=i("3Pt+"),c=i("FKr1"),o=i("R1ws"),s=i("GU7r"),d=i("u47x");const m=["input"],h=function(){return{enterDuration:150}},l=["*"],b=new n.t("mat-checkbox-default-options",{providedIn:"root",factory:u});function u(){return{color:"accent",clickAction:"check-indeterminate"}}let p=0;const k=u(),f={provide:r.h,useExisting:Object(n.W)(()=>y),multi:!0};class g{}class x{constructor(e){this._elementRef=e}}const _=Object(c.u)(Object(c.q)(Object(c.r)(Object(c.s)(x))));let y=(()=>{class e extends _{constructor(e,t,i,a,r,c,o){super(e),this._changeDetectorRef=t,this._focusMonitor=i,this._ngZone=a,this._animationMode=c,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++p,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new n.p,this.indeterminateChange=new n.p,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Object(a.c)(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Object(a.c)(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Object(a.c)(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,i=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const e=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(e)},1e3)})}}_emitChangeEvent(){const e=new g;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let i="";switch(e){case 0:if(1===t)i="unchecked-checked";else{if(3!=t)return"";i="unchecked-indeterminate"}break;case 2:i=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return e.\u0275fac=function(t){return new(t||e)(n.Rb(n.m),n.Rb(n.i),n.Rb(d.e),n.Rb(n.C),n.cc("tabindex"),n.Rb(o.a,8),n.Rb(b,8))},e.\u0275cmp=n.Lb({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(n.Gc(m,1),n.Gc(c.l,1)),2&e){let e;n.pc(e=n.fc())&&(t._inputElement=e.first),n.pc(e=n.fc())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(n.ac("id",t.id),n.Gb("tabindex",null),n.Jb("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[n.Eb([f]),n.Cb],ngContentSelectors:l,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.mc(),n.Xb(0,"label",0,1),n.Xb(2,"span",2),n.Xb(3,"input",3,4),n.ec("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),n.Wb(),n.Xb(5,"span",5),n.Sb(6,"span",6),n.Wb(),n.Sb(7,"span",7),n.Xb(8,"span",8),n.hc(),n.Xb(9,"svg",9),n.Sb(10,"path",10),n.Wb(),n.gc(),n.Sb(11,"span",11),n.Wb(),n.Wb(),n.Xb(12,"span",12,13),n.ec("cdkObserveContent",function(){return t._onLabelTextChange()}),n.Xb(14,"span",14),n.Cc(15,"\xa0"),n.Wb(),n.lc(16),n.Wb(),n.Wb()),2&e){const e=n.qc(1),i=n.qc(13);n.Gb("for",t.inputId),n.Fb(2),n.Jb("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),n.Fb(1),n.nc("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.Gb("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),n.Fb(2),n.nc("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.oc(19,h))}},directives:[c.l,s.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})(),v=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({}),e})(),C=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({imports:[[c.m,c.e,s.c,v],c.e,v]}),e})()},"hh/h":function(e,t,i){"use strict";i.r(t),i.d(t,"QuickPlayModule",function(){return C});var a=i("ofXK"),n=i("tyNb"),r=i("mrSG"),c=i("3Pt+"),o=i("AcyG"),s=i("sxot"),d=i("fXoL"),m=i("/rnm"),h=i("Wp6s"),l=i("kmnG"),b=i("qFsG"),u=i("d3UM"),p=i("bTqV"),k=i("FKr1");function f(e,t){1&e&&(d.Xb(0,"mat-error"),d.Cc(1,"Please enter a url."),d.Wb())}function g(e,t){if(1&e&&(d.Xb(0,"mat-option",8),d.Cc(1),d.Wb()),2&e){const e=t.$implicit;d.nc("value",e),d.Fb(1),d.Dc(e.name)}}function x(e,t){1&e&&(d.Xb(0,"mat-error"),d.Cc(1,"Please select a screen."),d.Wb())}const _=[{path:"",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t}get selectedScreen(){return this.playForm.get("screen").value}get videoUrl(){return this.playForm.get("url").value}ngOnInit(){this.playForm=this.fb.group({url:["",[c.q.required]],screen:["",[c.q.required]]})}submit(){this.nuiService.playVideo(this.selectedScreen,this.videoUrl),setTimeout(()=>{this.nuiService.requestDuiState("")},1e3)}}return e.\u0275fac=function(t){return new(t||e)(d.Rb(c.c),d.Rb(m.a))},e.\u0275cmp=d.Lb({type:e,selectors:[["app-quick-play"]],decls:24,vars:6,consts:[[1,"form-container"],[1,"quick-play-form",3,"formGroup","ngSubmit"],["formControlName","url","matInput","","placeholder","URL","required","","type","url"],[4,"ngIf"],["formControlName","screen","placeholder","Screen","required",""],[3,"value",4,"ngFor","ngForOf"],[2,"padding-top","10px"],["mat-raised-button","","type","submit"],[3,"value"]],template:function(e,t){1&e&&(d.Xb(0,"mat-card"),d.Xb(1,"mat-card-header"),d.Xb(2,"mat-card-title"),d.Cc(3,"Quick Play"),d.Wb(),d.Xb(4,"mat-card-subtitle"),d.Cc(5,"Play quickly videos from various sources"),d.Wb(),d.Wb(),d.Xb(6,"mat-card-content"),d.Xb(7,"div",0),d.Xb(8,"form",1),d.ec("ngSubmit",function(){return t.submit()}),d.Xb(9,"div"),d.Xb(10,"mat-form-field"),d.Sb(11,"input",2),d.Ac(12,f,2,0,"mat-error",3),d.Wb(),d.Wb(),d.Xb(13,"div"),d.Xb(14,"mat-form-field"),d.Xb(15,"mat-select",4),d.Ac(16,g,2,2,"mat-option",5),d.jc(17,"async"),d.Wb(),d.Xb(18,"mat-hint"),d.Cc(19,"You may have to create a Screen first."),d.Wb(),d.Ac(20,x,2,0,"mat-error",3),d.Wb(),d.Wb(),d.Xb(21,"div",6),d.Xb(22,"button",7),d.Cc(23,"Play"),d.Wb(),d.Wb(),d.Wb(),d.Wb(),d.Wb(),d.Wb()),2&e&&(d.Fb(8),d.nc("formGroup",t.playForm),d.Fb(4),d.nc("ngIf",t.playForm.hasError("required","url")),d.Fb(4),d.nc("ngForOf",d.kc(17,4,t.screens$)),d.Fb(4),d.nc("ngIf",t.playForm.hasError("required","screen")))},directives:[h.a,h.c,h.f,h.e,h.b,c.r,c.k,c.e,l.c,c.b,b.a,c.j,c.d,c.p,a.k,u.a,a.j,l.f,p.b,l.b,k.h],pipes:[a.b],styles:[""]}),Object(r.a)([Object(o.d)(s.a.getScreens)],e.prototype,"screens$",void 0),e})()}];let y=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.Pb({type:e}),e.\u0275inj=d.Ob({imports:[[n.d.forChild(_)],n.d]}),e})();var v=i("bSwM");let C=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.Pb({type:e}),e.\u0275inj=d.Ob({imports:[[a.c,y,h.d,c.o,l.e,b.b,u.b,p.c,v.b]]}),e})()},qFsG:function(e,t,i){"use strict";i.d(t,"a",function(){return x}),i.d(t,"b",function(){return _});var a=i("nLfN"),n=i("fXoL"),r=i("8LU1"),c=i("EY2u"),o=i("XNiG");i("xgIS"),i("3UWI"),i("1G5W"),i("ofXK");const s=Object(a.f)({passive:!0});let d=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return c.a;const t=Object(r.e)(e),i=this._monitoredElements.get(t);if(i)return i.subject;const a=new o.a,n="cdk-text-field-autofilled",d=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(n)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(n)&&(t.classList.remove(n),this._ngZone.run(()=>a.next({target:e.target,isAutofilled:!1}))):(t.classList.add(n),this._ngZone.run(()=>a.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,s),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:a,unlisten:()=>{t.removeEventListener("animationstart",d,s)}}),a}stopMonitoring(e){const t=Object(r.e)(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.\u0275fac=function(t){return new(t||e)(n.bc(a.a),n.bc(n.C))},e.\u0275prov=Object(n.Nb)({factory:function(){return new e(Object(n.bc)(a.a),Object(n.bc)(n.C))},token:e,providedIn:"root"}),e})(),m=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({imports:[[a.b]]}),e})();var h=i("FKr1"),l=i("kmnG"),b=i("3Pt+");const u=new n.t("MAT_INPUT_VALUE_ACCESSOR"),p=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let k=0;class f{constructor(e,t,i,a){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=a}}const g=Object(h.t)(f);let x=(()=>{class e extends g{constructor(e,t,i,n,r,c,s,d,m,h){super(c,n,r,i),this._elementRef=e,this._platform=t,this.ngControl=i,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+k++,this.focused=!1,this.stateChanges=new o.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Object(a.e)().has(e));const l=this._elementRef.nativeElement,b=l.nodeName.toLowerCase();this._inputValueAccessor=s||l,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&m.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{let t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Object(r.c)(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Object(r.c)(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Object(a.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Object(r.c)(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const i=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(i!==this._previousPlaceholder){const e=this._elementRef.nativeElement;this._previousPlaceholder=i,i?e.setAttribute("placeholder",i):e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){p.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return e.\u0275fac=function(t){return new(t||e)(n.Rb(n.m),n.Rb(a.a),n.Rb(b.i,10),n.Rb(b.l,8),n.Rb(b.e,8),n.Rb(h.a),n.Rb(u,10),n.Rb(d),n.Rb(n.C),n.Rb(l.a,8))},e.\u0275dir=n.Mb({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&n.ec("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(n.ac("disabled",t.disabled)("required",t.required),n.Gb("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState&&!t.empty)("aria-required",t.required),n.Jb("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[n.Eb([{provide:l.d,useExisting:e}]),n.Cb,n.Db]}),e})(),_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.Pb({type:e}),e.\u0275inj=n.Ob({providers:[h.a],imports:[[m,l.e,h.e],m,l.e]}),e})()}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/2-es2015.js b/resources/Hypnonema/client/html/2-es2015.js deleted file mode 100644 index 5ff9c442b..000000000 --- a/resources/Hypnonema/client/html/2-es2015.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+0xr":function(t,e,s){"use strict";s.d(e,"a",(function(){return rt})),s.d(e,"b",(function(){return W})),s.d(e,"c",(function(){return st})),s.d(e,"d",(function(){return ot})),s.d(e,"e",(function(){return tt})),s.d(e,"f",(function(){return ht})),s.d(e,"g",(function(){return nt})),s.d(e,"h",(function(){return ut})),s.d(e,"i",(function(){return lt})),s.d(e,"j",(function(){return z})),s.d(e,"k",(function(){return _t}));var i=s("8LU1"),o=s("0EQZ"),r=s("fXoL"),n=s("cH1L"),a=s("nLfN"),l=s("ofXK"),c=s("XNiG"),h=s("2Vo4"),d=s("7+OI"),u=s("LRne"),f=s("1G5W");const _=[[["caption"]]],m=["caption"];function p(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Object(i.c)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const w=new r.s("CDK_TABLE");let y=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.N))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.N))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),g=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.N))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class R{}const D=p(R);let k=(()=>{class t extends D{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Object(i.c)(t),this._hasStickyChanged=e!==this._stickyEnd}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(w,8))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,s){var i;1&t&&(r.Kb(s,y,!0),r.Kb(s,b,!0),r.Kb(s,g,!0)),2&t&&(r.qc(i=r.gc())&&(e.cell=i.first),r.qc(i=r.gc())&&(e.headerCell=i.first),r.qc(i=r.gc())&&(e.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[r.Db([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),r.Bb]}),t})();class v{constructor(t,e){e.nativeElement.classList.add(`cdk-column-${t.cssClassFriendlyName}`)}}let C=(()=>{class t extends v{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(k),r.Rb(r.m))},t.\u0275dir=r.Mb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[r.Bb]}),t})(),S=(()=>{class t extends v{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(k),r.Rb(r.m))},t.\u0275dir=r.Mb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[r.Bb]}),t})(),O=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof E?t.headerCell.template:this instanceof H?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(t){r.ec()},t.\u0275dir=r.Mb({type:t,features:[r.Cb]}),t})();class x extends O{}const T=p(x);let E=(()=>{class t extends T{constructor(t,e,s){super(t,e),this._table=s}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.N),r.Rb(r.u),r.Rb(w,8))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[r.Bb,r.Cb]}),t})();class I extends O{}const M=p(I);let H=(()=>{class t extends M{constructor(t,e,s){super(t,e),this._table=s}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.N),r.Rb(r.u),r.Rb(w,8))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[r.Bb,r.Cb]}),t})(),N=(()=>{class t extends O{constructor(t,e,s){super(t,e),this._table=s}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.N),r.Rb(r.u),r.Rb(w,8))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[r.Bb]}),t})(),j=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.Q))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Lb({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&r.Tb(0,0)},directives:[j],encapsulation:2}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Lb({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&r.Tb(0,0)},directives:[j],encapsulation:2}),t})();const B=["top","bottom","left","right"];class L{constructor(t,e,s,i=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=s,this._isBrowser=i}clearStickyPositioning(t,e){for(const s of t)if(s.nodeType===s.ELEMENT_NODE){this._removeStickyStyle(s,e);for(let t=0;tt)||s.some(t=>t);if(!t.length||!i||!this._isBrowser)return;const o=t[0],r=o.children.length,n=this._getCellWidths(o),a=this._getStickyStartColumnPositions(n,e),l=this._getStickyEndColumnPositions(n,s),c="rtl"===this.direction;for(const h of t)for(let t=0;t!t)?this._removeStickyStyle(s,["bottom"]):this._addStickyStyle(s,"bottom",0)}_removeStickyStyle(t,e){for(const s of e)t.style[s]="";t.style.zIndex=this._getCalculatedZIndex(t),B.some(e=>!!t.style[e])||(t.style.position="",t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,s){t.classList.add(this._stickCellCss),t.style[e]=`${s}px`,t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let s=0;for(const i of B)t.style[i]&&(s+=e[i]);return s?`${s}`:""}_getCellWidths(t){const e=[],s=t.children;for(let i=0;i0;o--)e[o]&&(s[o]=i,i+=t[o]);return s}}function P(t){return Error(`Could not find column with id "${t}".`)}let X=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.Q),r.Rb(r.m))},t.\u0275dir=r.Mb({type:t,selectors:[["","rowOutlet",""]]}),t})(),V=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.Q),r.Rb(r.m))},t.\u0275dir=r.Mb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),Z=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.Q),r.Rb(r.m))},t.\u0275dir=r.Mb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),G=(()=>{class t{constructor(t,e,s,i,o,r,n){this._differs=t,this._changeDetectorRef=e,this._elementRef=s,this._dir=o,this._platform=n,this._onDestroy=new c.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new h.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){Object(r.Y)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}.`),this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Object(i.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(o.d)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return;const e=this._rowOutlet.viewContainer;t.forEachOperation((t,s,i)=>{if(null==t.previousIndex)this._insertRow(t.item,i);else if(null==i)e.remove(s);else{const t=e.get(s);e.move(t,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this.updateStickyColumnStyles()}setHeaderRowDef(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}setFooterRowDef(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const s=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,s,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const s=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...s],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const s=[];for(let i=0;i{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const o=s&&s.has(i)?s.get(i):[];if(o.length){const t=o.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),K(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{if(this._columnDefsByName.has(t.name))throw Error(`Duplicate column definition name provided: "${t.name}".`);this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=K(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=K(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=K(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff();this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}_switchDataSource(t){this._data=[],Object(o.d)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;if(Object(o.d)(this.dataSource)?t=this.dataSource.connect(this):Object(d.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(u.a)(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(Object(f.a)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}_addStickyColumnStyles(t,e){const s=Array.from(e.columns||[]).map(t=>{const e=this._columnDefsByName.get(t);if(!e)throw P(t);return e}),i=s.map(t=>t.sticky),o=s.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,o)}_getRenderedRows(t){const e=[];for(let s=0;s!s.when||s.when(e,t));else{let i=this._rowDefs.find(s=>s.when&&s.when(e,t))||this._defaultRowDef;i&&s.push(i)}if(!s.length)throw function(t){return Error("Could not find a matching row definition for the"+`provided row data: ${JSON.stringify(t)}`)}(t);return s}_insertRow(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}_renderRow(t,e,s,i={}){t.viewContainer.createEmbeddedView(e.template,i,s);for(let o of this._getCellTemplates(e))j.mostRecentCellOutlet&&j.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,s=t.length;e{const s=this._columnDefsByName.get(e);if(!s)throw P(e);return t.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];for(const s of e){const e=this._document.createElement(s.tag);e.setAttribute("role","rowgroup"),e.appendChild(s.outlet.elementRef.nativeElement),t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new L(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:Object(u.a)()).pipe(Object(f.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.u),r.Rb(r.i),r.Rb(r.m),r.cc("role"),r.Rb(n.b,8),r.Rb(l.d),r.Rb(a.a))},t.\u0275cmp=r.Lb({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,s){var i;1&t&&(r.Kb(s,k,!0),r.Kb(s,N,!0),r.Kb(s,E,!0),r.Kb(s,H,!0)),2&t&&(r.qc(i=r.gc())&&(e._contentColumnDefs=i),r.qc(i=r.gc())&&(e._contentRowDefs=i),r.qc(i=r.gc())&&(e._contentHeaderRowDefs=i),r.qc(i=r.gc())&&(e._contentFooterRowDefs=i))},viewQuery:function(t,e){var s;1&t&&(r.zc(X,!0),r.zc(V,!0),r.zc(Z,!0)),2&t&&(r.qc(s=r.gc())&&(e._rowOutlet=s.first),r.qc(s=r.gc())&&(e._headerRowOutlet=s.first),r.qc(s=r.gc())&&(e._footerRowOutlet=s.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[r.Db([{provide:w,useExisting:t}])],ngContentSelectors:m,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(r.nc(_),r.mc(0),r.Tb(1,0),r.Tb(2,1),r.Tb(3,2))},directives:[V,X,Z],encapsulation:2}),t})();function K(t,e){return t.concat(Array.from(e))}let q=(()=>{class t{}return t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({factory:function(e){return new(e||t)}}),t})();var U=s("FKr1");s("quSY"),s("VRyK"),s("itXk"),s("lJxs");const Y=[[["caption"]]],$=["caption"];let z=(()=>{class t extends G{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky"}}return t.\u0275fac=function(e){return Q(e||t)},t.\u0275cmp=r.Lb({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[r.Db([{provide:G,useExisting:t},{provide:w,useExisting:t}]),r.Bb],ngContentSelectors:$,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(r.nc(Y),r.mc(0),r.Tb(1,0),r.Tb(2,1),r.Tb(3,2))},directives:[V,X,Z],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),t})();const Q=r.Zb(z);let W=(()=>{class t extends y{}return t.\u0275fac=function(e){return J(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["","matCellDef",""]],features:[r.Db([{provide:y,useExisting:t}]),r.Bb]}),t})();const J=r.Zb(W);let tt=(()=>{class t extends b{}return t.\u0275fac=function(e){return et(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["","matHeaderCellDef",""]],features:[r.Db([{provide:b,useExisting:t}]),r.Bb]}),t})();const et=r.Zb(tt);let st=(()=>{class t extends k{}return t.\u0275fac=function(e){return it(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[r.Db([{provide:k,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),r.Bb]}),t})();const it=r.Zb(st);let ot=(()=>{class t extends C{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(k),r.Rb(r.m))},t.\u0275dir=r.Mb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[r.Bb]}),t})(),rt=(()=>{class t extends S{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(k),r.Rb(r.m))},t.\u0275dir=r.Mb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[r.Bb]}),t})(),nt=(()=>{class t extends E{}return t.\u0275fac=function(e){return at(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[r.Db([{provide:E,useExisting:t}]),r.Bb]}),t})();const at=r.Zb(nt);let lt=(()=>{class t extends N{}return t.\u0275fac=function(e){return ct(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[r.Db([{provide:N,useExisting:t}]),r.Bb]}),t})();const ct=r.Zb(lt);let ht=(()=>{class t extends F{}return t.\u0275fac=function(e){return dt(e||t)},t.\u0275cmp=r.Lb({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[r.Db([{provide:F,useExisting:t}]),r.Bb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&r.Tb(0,0)},directives:[j],encapsulation:2}),t})();const dt=r.Zb(ht);let ut=(()=>{class t extends A{}return t.\u0275fac=function(e){return ft(e||t)},t.\u0275cmp=r.Lb({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[r.Db([{provide:A,useExisting:t}]),r.Bb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&r.Tb(0,0)},directives:[j],encapsulation:2}),t})();const ft=r.Zb(ut);let _t=(()=>{class t{}return t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({factory:function(e){return new(e||t)},imports:[[q,U.e]]}),t})()},Qu3c:function(t,e,s){"use strict";s.d(e,"a",(function(){return C})),s.d(e,"b",(function(){return O}));var i=s("rDax"),o=s("u47x"),r=s("ofXK"),n=s("fXoL"),a=s("FKr1"),l=s("8LU1"),c=s("FtGj"),h=s("0MNC"),d=s("nLfN"),u=s("+rOU"),f=s("XNiG"),_=s("1G5W"),m=s("IzEk"),p=s("R0Ic"),w=s("vxfF"),y=s("cH1L");const b={tooltipState:Object(p.m)("state",[Object(p.j)("initial, void, hidden",Object(p.k)({opacity:0,transform:"scale(0)"})),Object(p.j)("visible",Object(p.k)({transform:"scale(1)"})),Object(p.l)("* => visible",Object(p.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(p.g)([Object(p.k)({opacity:0,transform:"scale(0)",offset:0}),Object(p.k)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(p.k)({opacity:1,transform:"scale(1)",offset:1})]))),Object(p.l)("* => hidden",Object(p.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(p.k)({opacity:0})))])},g=Object(d.f)({passive:!0});function R(t){return Error(`Tooltip position "${t}" is invalid.`)}const D=new n.s("mat-tooltip-scroll-strategy"),k={provide:D,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},v=new n.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let C=(()=>{class t{constructor(t,e,s,i,o,r,n,a,l,h,d,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=s,this._viewContainerRef=i,this._ngZone=o,this._platform=r,this._ariaDescriber=n,this._focusMonitor=a,this._dir=h,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new f.a,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===c.g&&!Object(c.s)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),a.monitor(e).pipe(Object(_.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&o.run(()=>this.show()):o.run(()=>this.hide(0))}),o.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?`${t}`.trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,s)=>{t.removeEventListener(s,e,g)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new u.c(S,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(_.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(_.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(_.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),s=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),s.main),Object.assign(Object.assign({},e.fallback),s.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let s;if("above"==e||"below"==e)s={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)s={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw R(e);s={originX:"end",originY:"center"}}const{x:i,y:o}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:i,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let s;if("above"==e)s={overlayX:"center",overlayY:"bottom"};else if("below"==e)s={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)s={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw R(e);s={overlayX:"start",overlayY:"center"}}const{x:i,y:o}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:i,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(m.a)(1),Object(_.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,g)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,s=this.touchGestures;"off"!==s&&(("on"===s||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==s&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(n.Rb(i.c),n.Rb(n.m),n.Rb(w.b),n.Rb(n.Q),n.Rb(n.B),n.Rb(d.a),n.Rb(o.c),n.Rb(o.e),n.Rb(D),n.Rb(y.b,8),n.Rb(v,8),n.Rb(n.m))},t.\u0275dir=n.Mb({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),S=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new f.a,this._isHandset=this._breakpointObserver.observe(h.b.Handset)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Rb(n.i),n.Rb(h.a))},t.\u0275cmp=n.Lb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&n.fc("click",(function(){return e._handleBodyInteraction()}),!1,n.sc),2&t&&n.Ac("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(n.Xb(0,"div",0),n.fc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),n.kc(1,"async"),n.Dc(2),n.Wb()),2&t){var s;const t=null==(s=n.lc(1,5,e._isHandset))?null:s.matches;n.Ib("mat-tooltip-handset",t),n.oc("ngClass",e.tooltipClass)("@state",e._visibility),n.Eb(2),n.Ec(e.message)}},directives:[r.i],pipes:[r.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[b.tooltipState]},changeDetection:0}),t})(),O=(()=>{class t{}return t.\u0275mod=n.Pb({type:t}),t.\u0275inj=n.Ob({factory:function(e){return new(e||t)},providers:[k],imports:[[o.a,r.c,i.f,a.e],a.e]}),t})()}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/2-es5.js b/resources/Hypnonema/client/html/2-es5.js deleted file mode 100644 index 63635addd..000000000 --- a/resources/Hypnonema/client/html/2-es5.js +++ /dev/null @@ -1 +0,0 @@ -function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=_unsupportedIterableToArray(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,r,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,r=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i3&&void 0!==arguments[3])||arguments[3];_classCallCheck(this,t),this._isNativeHtmlTable=e,this._stickCellCss=i,this.direction=n,this._isBrowser=r}return _createClass(t,[{key:"clearStickyPositioning",value:function(t,e){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.nodeType===r.ELEMENT_NODE){this._removeStickyStyle(r,e);for(var o=0;o0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}}]),t}();function Q(t){return Error('Could not find column with id "'.concat(t,'".'))}var W,J,$,tt,et=((tt=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||tt)(o.Rb(o.Q),o.Rb(o.m))},tt.\u0275dir=o.Mb({type:tt,selectors:[["","rowOutlet",""]]}),tt),it=(($=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||$)(o.Rb(o.Q),o.Rb(o.m))},$.\u0275dir=o.Mb({type:$,selectors:[["","headerRowOutlet",""]]}),$),nt=((J=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||J)(o.Rb(o.Q),o.Rb(o.m))},J.\u0275dir=o.Mb({type:J,selectors:[["","footerRowOutlet",""]]}),J),rt=((W=function(){function t(e,i,n,r,o,s,a){_classCallCheck(this,t),this._differs=e,this._changeDetectorRef=i,this._elementRef=n,this._dir=o,this._platform=a,this._onDestroy=new l.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new u.a({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,i){return t.trackBy?t.trackBy(i.dataIndex,i.data):i}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(r.d)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var i=this._rowOutlet.viewContainer;e.forEachOperation((function(e,n,r){if(null==e.previousIndex)t._insertRow(e.item,r);else if(null==r)i.remove(n);else{var o=i.get(n);i.move(o,r)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){i.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var i=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var i=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(e),_toConsumableArray(i),_toConsumableArray(n)),["left","right"]),e.forEach((function(e,i){t._addStickyColumnStyles([e],t._headerRowDefs[i])})),this._rowDefs.forEach((function(e){for(var n=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}},{key:"_renderUpdatedColumns",value:function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(t){this._data=[],Object(r.d)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}},{key:"_observeRenderChanges",value:function(){var t=this;if(this.dataSource){var e;if(Object(r.d)(this.dataSource)?e=this.dataSource.connect(this):Object(h.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(f.a)(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(Object(d.a)(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,i){return t._renderRow(t._headerRowOutlet,e,i)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,i){return t._renderRow(t._footerRowOutlet,e,i)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var i=this,n=Array.from(e.columns||[]).map((function(t){var e=i._columnDefsByName.get(t);if(!e)throw Q(t);return e})),r=n.map((function(t){return t.sticky})),o=n.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,r,o)}},{key:"_getRenderedRows",value:function(t){for(var e=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{};t.viewContainer.createEmbeddedView(e.template,n,i);var r,o=_createForOfIteratorHelper(this._getCellTemplates(e));try{for(o.s();!(r=o.n()).done;){var s=r.value;K.mostRecentCellOutlet&&K.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,n)}}catch(a){o.e(a)}finally{o.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,i=t.length;e visible",Object(y.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(y.g)([Object(y.k)({opacity:0,transform:"scale(0)",offset:0}),Object(y.k)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(y.k)({opacity:1,transform:"scale(1)",offset:1})]))),Object(y.l)("* => hidden",Object(y.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(y.k)({opacity:0})))])},b=Object(h.f)({passive:!0});function k(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var g=new s.s("mat-tooltip-scroll-strategy"),R={provide:g,deps:[n.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},C=new s.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),D=function(){var t=function(){function t(e,i,n,r,o,s,a,c,u,h,f,p){var y=this;_classCallCheck(this,t),this._overlay=e,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=o,this._platform=s,this._ariaDescriber=a,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new d.a,this._handleKeydown=function(t){y._isTooltipVisible()&&t.keyCode===l.g&&!Object(l.s)(t)&&(t.preventDefault(),t.stopPropagation(),y._ngZone.run((function(){return y.hide(0)})))},this._scrollStrategy=u,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),c.monitor(i).pipe(Object(_.a)(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&o.run((function(){return y.show()})):o.run((function(){return y.hide(0)}))})),o.runOutsideAngular((function(){i.nativeElement.addEventListener("keydown",y._handleKeydown)}))}return _createClass(t,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e,i){t.removeEventListener(i,e,b)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new f.c(S,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(_.a)(this._destroyed)).subscribe((function(){return t._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return i.positionChanges.pipe(Object(_.a)(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(_.a)(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i||"below"==i)t={originX:"center",originY:"above"==i?"top":"bottom"};else if("before"==i||"left"==i&&e||"right"==i&&!e)t={originX:"start",originY:"center"};else{if(!("after"==i||"right"==i&&e||"left"==i&&!e))throw k(i);t={originX:"end",originY:"center"}}var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i)t={overlayX:"center",overlayY:"bottom"};else if("below"==i)t={overlayX:"center",overlayY:"top"};else if("before"==i||"left"==i&&e||"right"==i&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==i||"right"==i&&e||"left"==i&&!e))throw k(i);t={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(p.a)(1),Object(_.a)(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_setupPointerEvents",value:function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,i){t._elementRef.nativeElement.addEventListener(i,e,b)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(c.c)(t),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?"".concat(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Rb(n.c),s.Rb(s.m),s.Rb(m.b),s.Rb(s.Q),s.Rb(s.B),s.Rb(h.a),s.Rb(r.c),s.Rb(r.e),s.Rb(g),s.Rb(v.b,8),s.Rb(C,8),s.Rb(s.m))},t.\u0275dir=s.Mb({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),S=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._changeDetectorRef=e,this._breakpointObserver=i,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new d.a,this._isHandset=this._breakpointObserver.observe(u.b.Handset)}return _createClass(t,[{key:"show",value:function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)}},{key:"hide",value:function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.i),s.Rb(u.a))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.fc("click",(function(){return e._handleBodyInteraction()}),!1,s.sc),2&t&&s.Ac("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.Xb(0,"div",0),s.fc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),s.kc(1,"async"),s.Dc(2),s.Wb()),2&t){var i,n=null==(i=s.lc(1,5,e._isHandset))?null:i.matches;s.Ib("mat-tooltip-handset",n),s.oc("ngClass",e.tooltipClass)("@state",e._visibility),s.Eb(2),s.Ec(e.message)}},directives:[o.i],pipes:[o.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[w.tooltipState]},changeDetection:0}),t}(),O=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)},providers:[R],imports:[[r.a,o.c,n.f,a.e],a.e]}),t}()}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/3rdpartylicenses.txt b/resources/Hypnonema/client/html/3rdpartylicenses.txt deleted file mode 100644 index 0f8cb3dce..000000000 --- a/resources/Hypnonema/client/html/3rdpartylicenses.txt +++ /dev/null @@ -1,371 +0,0 @@ -@angular/animations -MIT - -@angular/cdk -MIT -The MIT License - -Copyright (c) 2021 Google LLC. - -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 -MIT - -@angular/core -MIT - -@angular/forms -MIT - -@angular/material -MIT -The MIT License - -Copyright (c) 2021 Google LLC. - -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/platform-browser -MIT - -@angular/router -MIT - -@ngxs/devtools-plugin -MIT - -@ngxs/logger-plugin -MIT - -@ngxs/store -MIT - -compare-versions -MIT -The MIT License (MIT) - -Copyright (c) 2015-2021 Ole Michelsen - -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. - - -ngx-toastr -MIT -The MIT License (MIT) - -Copyright (c) Scott Cooper - -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. - - -rxjs -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 -0BSD -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - -zone.js -MIT -The MIT License - -Copyright (c) 2010-2020 Google LLC. http://angular.io/license - -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. diff --git a/resources/Hypnonema/client/html/6.js b/resources/Hypnonema/client/html/6.js index ca126a5f6..b3e9012cb 100644 --- a/resources/Hypnonema/client/html/6.js +++ b/resources/Hypnonema/client/html/6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{uBXI:function(e,t,n){"use strict";n.r(t),n.d(t,"ScreensModule",function(){return ft});var i=n("ofXK"),r=n("tyNb"),a=n("mrSG"),o=n("AcyG"),s=n("sxot"),l=n("fXoL"),c=n("/rnm"),d=n("+0xr"),b=n("bTqV"),p=n("Qu3c"),m=n("NFeN");function u(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Actions"),l.Wb())}function h(e,t){if(1&e){const e=l.Yb();l.Xb(0,"td",15),l.Xb(1,"button",16),l.ec("click",function(){l.tc(e);const n=t.$implicit;return l.ic().editScreen(n)}),l.Xb(2,"mat-icon"),l.Cc(3,"edit"),l.Wb(),l.Wb(),l.Xb(4,"button",17),l.ec("click",function(){l.tc(e);const n=t.$implicit;return l.ic().deleteScreen(n)}),l.Xb(5,"mat-icon"),l.Cc(6,"delete"),l.Wb(),l.Wb(),l.Wb()}}function g(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Name"),l.Wb())}function f(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(e.name)}}function _(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Always On"),l.Wb())}function v(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(e.alwaysOn)}}function C(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Model-Name"),l.Wb())}function F(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(null==e.targetSettings?null:e.targetSettings.modelName)}}function y(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"RenderTarget Name"),l.Wb())}function x(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(null==e.targetSettings?null:e.targetSettings.renderTargetName)}}function X(e,t){1&e&&l.Sb(0,"tr",18)}function D(e,t){1&e&&l.Sb(0,"tr",19)}let S=(()=>{class e{constructor(e,t,n){this.router=e,this.nuiService=t,this.store=n,this.displayedColumns=["actions","name","modelName","targetName","alwaysOn"]}ngOnInit(){}editScreen(e){this.store.dispatch(new s.i(e)),this.router.navigateByUrl("/screens/edit-screen")}deleteScreen(e){this.nuiService.deleteScreen(e.name)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(r.a),l.Rb(c.a),l.Rb(o.g))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-screens"]],decls:26,vars:3,consts:[[1,"wrapper"],[1,"screens-table"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","alwaysOn"],["matColumnDef","modelName"],["matColumnDef","targetName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"fab-container"],["color","primary","mat-fab","","matTooltip","create a new Screen","routerLink","/screens/create-new-screen",1,"md-fab-right"],["mat-header-cell",""],["mat-cell",""],["aria-label","Edit Screen","color","accent","mat-icon-button","","matTooltip","Edit Screen",3,"click"],["aria-label","Delete Screen","color","warn","mat-icon-button","","matTooltip","Delete Screen",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Xb(1,"div",1),l.Xb(2,"h3"),l.Cc(3,"Screens"),l.Wb(),l.Xb(4,"table",2),l.Vb(5,3),l.Ac(6,u,2,0,"th",4),l.Ac(7,h,7,0,"td",5),l.Ub(),l.Vb(8,6),l.Ac(9,g,2,0,"th",4),l.Ac(10,f,2,1,"td",5),l.Ub(),l.Vb(11,7),l.Ac(12,_,2,0,"th",4),l.Ac(13,v,2,1,"td",5),l.Ub(),l.Vb(14,8),l.Ac(15,C,2,0,"th",4),l.Ac(16,F,2,1,"td",5),l.Ub(),l.Vb(17,9),l.Ac(18,y,2,0,"th",4),l.Ac(19,x,2,1,"td",5),l.Ub(),l.Ac(20,X,1,0,"tr",10),l.Ac(21,D,1,0,"tr",11),l.Wb(),l.Wb(),l.Xb(22,"div",12),l.Xb(23,"button",13),l.Xb(24,"mat-icon"),l.Cc(25,"add"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(4),l.nc("dataSource",t.screens$),l.Fb(16),l.nc("matHeaderRowDef",t.displayedColumns),l.Fb(1),l.nc("matRowDefColumns",t.displayedColumns))},directives:[d.j,d.c,d.e,d.b,d.g,d.i,b.b,p.a,r.b,m.a,d.d,d.a,d.f,d.h],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.screens-table[_ngcontent-%COMP%]{height:390px}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:relative!important;top:-15px}table[_ngcontent-%COMP%]{width:100%}"]}),Object(a.a)([Object(o.d)(s.a.getScreens)],e.prototype,"screens$",void 0),e})();var W=n("3Pt+"),w=n("Wp6s"),O=n("+rOU"),R=n("u47x"),I=n("cH1L"),T=n("8LU1"),E=n("FtGj"),A=n("XNiG"),k=n("LRne"),N=n("JX91"),j=n("1G5W");function M(e,t){1&e&&l.lc(0)}const P=["*"];let L=(()=>{class e{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.m))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),e})(),z=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.O))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepLabel",""]]}),e})(),Z=0;const q="edit",Y="done",V="error",G=new l.t("STEPPER_GLOBAL_OPTIONS");let B=(()=>{class e{constructor(e,t){this._stepper=e,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(e){this._editable=Object(T.c)(e)}get optional(){return this._optional}set optional(e){this._optional=Object(T.c)(e)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Object(T.c)(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(e){this._customError=Object(T.c)(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Object(l.W)(()=>H)),l.Rb(G,8))},e.\u0275cmp=l.Lb({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){if(1&e&&l.Kb(n,z,1),2&e){let e;l.pc(e=l.fc())&&(t.stepLabel=e.first)}},viewQuery:function(e,t){if(1&e&&l.Gc(l.O,3),2&e){let e;l.pc(e=l.fc())&&(t.content=e.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.Db],ngContentSelectors:P,decls:1,vars:0,template:function(e,t){1&e&&(l.mc(),l.Ac(0,M,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),H=(()=>{class e{constructor(e,t,n,i){this._dir=e,this._changeDetectorRef=t,this._elementRef=n,this._destroyed=new A.a,this.steps=new l.G,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.p,this._orientation="horizontal",this._groupId=Z++,this._document=i}get linear(){return this._linear}set linear(e){this._linear=Object(T.c)(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Object(T.f)(e);if(this.steps&&this._steps){this._isValidIndex(e);const n=this.selected;n&&(n.interacted=!0),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(e)}else this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=this.steps?this.steps.toArray().indexOf(e):-1}ngAfterContentInit(){this._steps.changes.pipe(Object(N.a)(this._steps),Object(j.a)(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(e=>e._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new R.d(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(k.a)()).pipe(Object(N.a)(this._layoutDirection()),Object(j.a)(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const n=this.steps.toArray()[e],i=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,t)}_getDefaultIndicatorLogic(e,t){return e._showError&&e.hasError&&!t?V:!e.completed||t?"number":e.editable?q:Y}_getGuidelineLogic(e,t,n="number"){return e._showError&&e.hasError&&!t?V:e.completed&&!t?Y:e.completed&&t?n:e.editable&&t?q:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=Object(E.s)(e),n=e.keyCode,i=this._keyManager;null==i.activeItemIndex||t||n!==E.n&&n!==E.f?i.onKeydown(e):(this.selectedIndex=i.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(e=>{const t=e.stepControl;return(t?t.invalid||t.pending||!e.interacted:!e.completed)&&!e.optional&&!e._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class e{constructor(e){this._stepper=e,this.type="submit"}_handleClick(){this._stepper.next()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(H))},e.\u0275dir=l.Mb({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.ec("click",function(){return t._handleClick()}),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),e})(),U=(()=>{class e{constructor(e){this._stepper=e,this.type="button"}_handleClick(){this._stepper.previous()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(H))},e.\u0275dir=l.Mb({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.ec("click",function(){return t._handleClick()}),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),e})(),K=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[I.a]]}),e})();var Q=n("FKr1"),J=n("/uUt"),ee=n("R0Ic");function te(e,t){if(1&e&&l.Tb(0,8),2&e){const e=l.ic();l.nc("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function ne(e,t){if(1&e&&(l.Xb(0,"span"),l.Cc(1),l.Wb()),2&e){const e=l.ic(2);l.Fb(1),l.Dc(e._getDefaultTextForState(e.state))}}function ie(e,t){if(1&e&&(l.Xb(0,"mat-icon"),l.Cc(1),l.Wb()),2&e){const e=l.ic(2);l.Fb(1),l.Dc(e._getDefaultTextForState(e.state))}}function re(e,t){if(1&e&&(l.Vb(0,9),l.Ac(1,ne,2,1,"span",10),l.Ac(2,ie,2,1,"mat-icon",11),l.Ub()),2&e){const e=l.ic();l.nc("ngSwitch",e.state),l.Fb(1),l.nc("ngSwitchCase","number")}}function ae(e,t){if(1&e&&(l.Xb(0,"div",12),l.Tb(1,13),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.nc("ngTemplateOutlet",e._templateLabel().template)}}function oe(e,t){if(1&e&&(l.Xb(0,"div",12),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e.label)}}function se(e,t){if(1&e&&(l.Xb(0,"div",14),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e._intl.optionalLabel)}}function le(e,t){if(1&e&&(l.Xb(0,"div",15),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e.errorMessage)}}function ce(e,t){1&e&&l.lc(0)}const de=["*"];function be(e,t){1&e&&l.Sb(0,"div",6)}function pe(e,t){if(1&e){const e=l.Yb();l.Vb(0),l.Xb(1,"mat-step-header",4),l.ec("click",function(){return t.$implicit.select()})("keydown",function(t){return l.tc(e),l.ic()._onKeydown(t)}),l.Wb(),l.Ac(2,be,1,0,"div",5),l.Ub()}if(2&e){const e=t.$implicit,n=t.index,i=t.last,r=l.ic();l.Fb(1),l.nc("tabIndex",r._getFocusIndex()===n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===n)("active",e.completed||r.selectedIndex===n||!r.linear)("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple)("color",e.color||r.color),l.Gb("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex==n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),l.Fb(1),l.nc("ngIf",!i)}}function me(e,t){if(1&e){const e=l.Yb();l.Xb(0,"div",7),l.ec("@stepTransition.done",function(t){return l.tc(e),l.ic()._animationDone.next(t)}),l.Tb(1,8),l.Wb()}if(2&e){const e=t.$implicit,n=t.index,i=l.ic();l.nc("@stepTransition",i._getAnimationDirection(n))("id",i._getStepContentId(n)),l.Gb("aria-labelledby",i._getStepLabelId(n))("aria-expanded",i.selectedIndex===n),l.Fb(1),l.nc("ngTemplateOutlet",e.content)}}let ue=(()=>{class e extends z{}return e.\u0275fac=function(t){return he(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["","matStepLabel",""]],features:[l.Cb]}),e})();const he=l.Zb(ue);let ge=(()=>{class e{constructor(){this.changes=new A.a,this.optionalLabel="Optional"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(l.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const fe={provide:ge,deps:[[new l.D,new l.M,ge]],useFactory:function(e){return e||new ge}};class _e extends L{constructor(e){super(e)}}const ve=Object(Q.q)(_e,"primary");let Ce=(()=>{class e extends ve{constructor(e,t,n,i){super(n),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof ue?null:this.label}_templateLabel(){return this.label instanceof ue?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(ge),l.Rb(R.e),l.Rb(l.m),l.Rb(l.i))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[l.Cb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(l.Sb(0,"div",0),l.Xb(1,"div"),l.Xb(2,"div",1),l.Ac(3,te,1,2,"ng-container",2),l.Ac(4,re,3,2,"ng-container",3),l.Wb(),l.Wb(),l.Xb(5,"div",4),l.Ac(6,ae,2,1,"div",5),l.Ac(7,oe,2,1,"div",5),l.Ac(8,se,2,1,"div",6),l.Ac(9,le,2,1,"div",7),l.Wb()),2&e&&(l.nc("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),l.Fb(1),l.Ib("mat-step-icon-state-",t.state," mat-step-icon"),l.Jb("mat-step-icon-selected",t.selected),l.Fb(1),l.nc("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),l.Fb(1),l.nc("ngSwitchCase",!0),l.Fb(2),l.Jb("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),l.Fb(1),l.nc("ngIf",t._templateLabel()),l.Fb(1),l.nc("ngIf",t._stringLabel()),l.Fb(1),l.nc("ngIf",t.optional&&"error"!=t.state),l.Fb(1),l.nc("ngIf","error"==t.state))},directives:[Q.l,i.m,i.n,i.o,i.k,i.p,m.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})();const Fe={horizontalStepTransition:Object(ee.m)("stepTransition",[Object(ee.j)("previous",Object(ee.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(ee.j)("current",Object(ee.k)({transform:"none",visibility:"inherit"})),Object(ee.j)("next",Object(ee.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(ee.l)("* => *",Object(ee.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(ee.m)("stepTransition",[Object(ee.j)("previous",Object(ee.k)({height:"0px",visibility:"hidden"})),Object(ee.j)("next",Object(ee.k)({height:"0px",visibility:"hidden"})),Object(ee.j)("current",Object(ee.k)({height:"*",visibility:"inherit"})),Object(ee.l)("* <=> current",Object(ee.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let ye=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.O))},e.\u0275dir=l.Mb({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),e})(),xe=(()=>{class e extends B{constructor(e,t,n){super(e,n),this._errorStateMatcher=t}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Object(l.W)(()=>Xe)),l.Rb(Q.a,4),l.Rb(G,8))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-step"]],contentQueries:function(e,t,n){if(1&e&&l.Kb(n,ue,1),2&e){let e;l.pc(e=l.fc())&&(t.stepLabel=e.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[l.Eb([{provide:Q.a,useExisting:e},{provide:B,useExisting:e}]),l.Cb],ngContentSelectors:de,decls:1,vars:0,template:function(e,t){1&e&&(l.mc(),l.Ac(0,ce,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),Xe=(()=>{class e extends H{constructor(){super(...arguments),this.steps=new l.G,this.animationDone=new l.p,this._iconOverrides={},this._animationDone=new A.a}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Object(j.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(J.a)((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Object(j.a)(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}}return e.\u0275fac=function(t){return De(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["","matStepper",""]],contentQueries:function(e,t,n){if(1&e&&(l.Kb(n,xe,1),l.Kb(n,ye,1)),2&e){let e;l.pc(e=l.fc())&&(t._steps=e),l.pc(e=l.fc())&&(t._icons=e)}},viewQuery:function(e,t){if(1&e&&l.Gc(Ce,1),2&e){let e;l.pc(e=l.fc())&&(t._stepHeader=e)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[l.Eb([{provide:H,useExisting:e}]),l.Cb]}),e})();const De=l.Zb(Xe);let Se=(()=>{class e extends Xe{constructor(){super(...arguments),this.labelPosition="end"}}return e.\u0275fac=function(t){return We(t||e)},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(e,t){2&e&&l.Jb("mat-stepper-label-position-end","end"==t.labelPosition)("mat-stepper-label-position-bottom","bottom"==t.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[l.Eb([{provide:Xe,useExisting:e},{provide:H,useExisting:e}]),l.Cb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Ac(1,pe,3,19,"ng-container",1),l.Wb(),l.Xb(2,"div",2),l.Ac(3,me,2,5,"div",3),l.Wb()),2&e&&(l.Fb(1),l.nc("ngForOf",t.steps),l.Fb(2),l.nc("ngForOf",t.steps))},directives:[i.j,Ce,i.k,i.p],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Fe.horizontalStepTransition]},changeDetection:0}),e})();const We=l.Zb(Se);let we=(()=>{class e extends ${}return e.\u0275fac=function(t){return Oe(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Cb]}),e})();const Oe=l.Zb(we);let Re=(()=>{class e extends U{}return e.\u0275fac=function(t){return Ie(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Cb]}),e})();const Ie=l.Zb(Re);let Te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({providers:[fe,Q.a],imports:[[Q.e,i.c,O.e,b.c,K,m.b,Q.m],Q.e]}),e})();var Ee=n("kmnG"),Ae=n("qFsG"),ke=n("bSwM"),Ne=n("5RNC");let je=(()=>{class e{constructor(e){this.ngControl=e}set appEnableControl(e){this.ngControl&&this.ngControl.control&&(e?this.ngControl.control.enable():this.ngControl.control.disable())}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.i))},e.\u0275dir=l.Mb({type:e,selectors:[["","appEnableControl",""]],inputs:{appEnableControl:"appEnableControl"}}),e})();function Me(e,t){1&e&&l.Cc(0,"Enter details")}function Pe(e,t){1&e&&l.Cc(0,"RenderTarget Settings")}function Le(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"mat-form-field"),l.Sb(2,"input",16),l.Xb(3,"mat-error"),l.Cc(4,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(5,"mat-form-field",17),l.Sb(6,"input",18),l.Xb(7,"mat-error"),l.Cc(8,"Please enter a valid renderTarget"),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(2),l.nc("appEnableControl",!1===e.renderTargetForm.get("is3DRendered").value),l.Fb(4),l.nc("appEnableControl",!1===e.renderTargetForm.get("is3DRendered").value)}}function ze(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Sb(3,"input",19),l.Xb(4,"mat-error"),l.Cc(5,"Please enter X Position"),l.Wb(),l.Xb(6,"mat-label"),l.Cc(7,"Position X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(8,"div"),l.Xb(9,"mat-form-field"),l.Sb(10,"input",20),l.Xb(11,"mat-error"),l.Cc(12,"Please enter Y Position"),l.Wb(),l.Xb(13,"mat-label"),l.Cc(14,"Position Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(15,"div"),l.Xb(16,"mat-form-field"),l.Sb(17,"input",21),l.Xb(18,"mat-error"),l.Cc(19,"Please enter Z Position"),l.Wb(),l.Xb(20,"mat-label"),l.Cc(21,"Position Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(22,"div"),l.Xb(23,"mat-form-field"),l.Sb(24,"input",22),l.Xb(25,"mat-error"),l.Cc(26,"Please enter X Rotation"),l.Wb(),l.Xb(27,"mat-label"),l.Cc(28,"Rotation X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(29,"div"),l.Xb(30,"mat-form-field"),l.Sb(31,"input",23),l.Xb(32,"mat-error"),l.Cc(33,"Please enter Y Rotation"),l.Wb(),l.Xb(34,"mat-label"),l.Cc(35,"Rotation Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Sb(38,"input",24),l.Xb(39,"mat-error"),l.Cc(40,"Please enter Z Rotation"),l.Wb(),l.Xb(41,"mat-label"),l.Cc(42,"Rotation Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(43,"div"),l.Xb(44,"mat-form-field"),l.Sb(45,"input",25),l.Xb(46,"mat-error"),l.Cc(47,"Please enter X Scale"),l.Wb(),l.Xb(48,"mat-label"),l.Cc(49,"Scale X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(50,"div"),l.Xb(51,"mat-form-field"),l.Sb(52,"input",26),l.Xb(53,"mat-error"),l.Cc(54,"Please enter Y Scale"),l.Wb(),l.Xb(55,"mat-label"),l.Cc(56,"Scale Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(57,"div"),l.Xb(58,"mat-form-field"),l.Sb(59,"input",27),l.Xb(60,"mat-error"),l.Cc(61,"Please enter Z Scale"),l.Wb(),l.Xb(62,"mat-label"),l.Cc(63,"Scale Z"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(3),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value)}}function Ze(e,t){1&e&&l.Cc(0,"Sound Settings")}function qe(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"em"),l.Cc(3,"Sound Attenuation"),l.Wb(),l.Sb(4,"mat-slider",28),l.Cc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"em"),l.Cc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",29),l.Cc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"em"),l.Cc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",30),l.Cc(15),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(4),l.nc("max",100)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundAttenuation").value," "),l.Fb(4),l.nc("max",250)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundMinDistance").value," "),l.Fb(4),l.nc("max",1e3)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundMaxDistance").value," ")}}function Ye(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Cc(4,"Model-Name"),l.Wb(),l.Sb(5,"input",10),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Cc(9,"RenderTarget-Name"),l.Wb(),l.Sb(10,"input",11),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(5),l.nc("appEnableControl",!1===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!1===e.screenForm.get("is3DRendered").value)}}function Ve(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Cc(4,"Position X"),l.Wb(),l.Sb(5,"input",12),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Cc(9,"Position Y"),l.Wb(),l.Sb(10,"input",13),l.Wb(),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-form-field"),l.Xb(13,"mat-label"),l.Cc(14,"Position Z"),l.Wb(),l.Sb(15,"input",14),l.Wb(),l.Wb(),l.Xb(16,"div"),l.Xb(17,"mat-form-field"),l.Xb(18,"mat-label"),l.Cc(19,"Rotation X"),l.Wb(),l.Sb(20,"input",15),l.Wb(),l.Wb(),l.Xb(21,"div"),l.Xb(22,"mat-form-field"),l.Xb(23,"mat-label"),l.Cc(24,"Rotation Y"),l.Wb(),l.Sb(25,"input",16),l.Wb(),l.Wb(),l.Xb(26,"div"),l.Xb(27,"mat-form-field"),l.Xb(28,"mat-label"),l.Cc(29,"Rotation Z"),l.Wb(),l.Sb(30,"input",17),l.Wb(),l.Wb(),l.Xb(31,"div"),l.Xb(32,"mat-form-field"),l.Xb(33,"mat-label"),l.Cc(34,"Scale X"),l.Wb(),l.Sb(35,"input",18),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Xb(38,"mat-label"),l.Cc(39,"Scale Y"),l.Wb(),l.Sb(40,"input",19),l.Wb(),l.Wb(),l.Xb(41,"div"),l.Xb(42,"mat-form-field"),l.Xb(43,"mat-label"),l.Cc(44,"Scale Z"),l.Wb(),l.Sb(45,"input",20),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value)}}function Ge(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-label"),l.Cc(3,"Sound-Attenuation"),l.Wb(),l.Sb(4,"mat-slider",21),l.Cc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-label"),l.Cc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",22),l.Cc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-label"),l.Cc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",23),l.Cc(15),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(4),l.nc("max",100)("min",0)("step",1),l.Fb(1),l.Ec(" ",e.screenForm.get("soundAttenuation").value," "),l.Fb(4),l.nc("max",200)("min",1)("step",1),l.Fb(1),l.Ec(" ",e.screenForm.get("soundMinDistance").value," "),l.Fb(4),l.nc("max",1e3)("min",1)("step",10),l.Fb(1),l.Ec(" ",e.screenForm.get("soundMaxDistance").value," ")}}const Be=[{path:"",component:S},{path:"create-new-screen",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t}get screenName(){return this.screenForm.get("name").value}get modelName(){return this.renderTargetForm.get("modelName").value}get renderTargetName(){return this.renderTargetForm.get("renderTargetName").value}get is3DRendered(){return this.renderTargetForm.get("is3DRendered").value}get positionX(){return this.renderTargetForm.get("positionX").value}get positionY(){return this.renderTargetForm.get("positionY").value}get positionZ(){return this.renderTargetForm.get("positionZ").value}get rotationX(){return this.renderTargetForm.get("rotationX").value}get rotationZ(){return this.renderTargetForm.get("rotationZ").value}get rotationY(){return this.renderTargetForm.get("rotationY").value}get scaleX(){return this.renderTargetForm.get("scaleX").value}get scaleZ(){return this.renderTargetForm.get("scaleZ").value}get scaleY(){return this.renderTargetForm.get("scaleY").value}get globalVolume(){return this.soundForm.get("globalVolume").value}get soundMaxDistance(){return this.soundForm.get("soundMaxDistance").value}get soundMinDistance(){return this.soundForm.get("soundMinDistance").value}get soundAttenuation(){return this.soundForm.get("soundAttenuation").value}get is3DAudioEnabled(){return this.soundForm.get("is3DAudioEnabled").value}get alwaysOn(){return this.screenForm.get("alwaysOn").value}ngOnInit(){this.screenForm=this.fb.group({name:["",[W.q.required]],alwaysOn:[!1]}),this.renderTargetForm=this.fb.group({modelName:["",[W.q.required]],renderTargetName:["",[W.q.required]],is3DRendered:[!1],positionX:[0,[W.q.required]],positionY:[0,[W.q.required]],positionZ:[0,[W.q.required]],rotationX:[0,[W.q.required]],rotationY:[0,[W.q.required]],rotationZ:[0,[W.q.required]],scaleX:[0,[W.q.required]],scaleY:[0,[W.q.required]],scaleZ:[0,[W.q.required]]}),this.soundForm=this.fb.group({globalVolume:[100],soundAttenuation:[5],soundMinDistance:[15],soundMaxDistance:[100],is3DAudioEnabled:[!0]}),this.renderTargetForm.get("is3DRendered").valueChanges.subscribe(e=>{e?(this.renderTargetForm.get("modelName").disable(),this.renderTargetForm.get("renderTargetName").disable(),this.renderTargetForm.get("positionX").enable(),this.renderTargetForm.get("positionY").enable(),this.renderTargetForm.get("positionZ").enable(),this.renderTargetForm.get("scaleX").enable(),this.renderTargetForm.get("scaleY").enable(),this.renderTargetForm.get("scaleZ").enable(),this.renderTargetForm.get("rotationX").enable(),this.renderTargetForm.get("rotationY").enable(),this.renderTargetForm.get("rotationZ").enable()):(this.renderTargetForm.get("modelName").enable(),this.renderTargetForm.get("renderTargetName").enable(),this.renderTargetForm.get("positionX").disable(),this.renderTargetForm.get("positionY").disable(),this.renderTargetForm.get("positionZ").disable(),this.renderTargetForm.get("scaleX").disable(),this.renderTargetForm.get("scaleY").disable(),this.renderTargetForm.get("scaleZ").disable(),this.renderTargetForm.get("rotationX").disable(),this.renderTargetForm.get("rotationY").disable(),this.renderTargetForm.get("rotationZ").disable())})}createScreen(){this.nuiService.createScreen(this.screenName,this.alwaysOn,this.globalVolume,this.soundAttenuation,this.soundMinDistance,this.soundMaxDistance,this.is3DRendered,this.is3DAudioEnabled,this.modelName,this.renderTargetName,this.positionX,this.positionY,this.positionZ,this.rotationX,this.rotationY,this.rotationZ,this.scaleX,this.scaleY,this.scaleZ)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.c),l.Rb(c.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-create-new-screen"]],decls:61,vars:13,consts:[[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],["formControlName","name","matInput","","placeholder","Name","required",""],[2,"padding-bottom","5px","padding-top","20px"],["formControlName","alwaysOn","matTooltip","whether to always show the screen even if no video is playing"],["mat-button","","matStepperNext",""],["formControlName","is3DRendered"],[4,"ngIf"],["mat-button","","matStepperPrevious",""],[2,"margin-top","20px"],["formControlName","globalVolume","step","1","thumbLabel","","value","100",3,"max","min"],["formControlName","is3DAudioEnabled"],["color","primary","mat-raised-button","",3,"click"],["formControlName","modelName","matInput","","matTooltip","The name of the model to which the rendertarget belongs","placeholder","Model-Name","required","",3,"appEnableControl"],[2,"padding-left","5px"],["formControlName","renderTargetName","matInput","","placeholder","RenderTarget Name","required","",3,"appEnableControl"],["formControlName","positionX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","positionY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","positionZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","soundAttenuation","step","1","thumbLabel","","value","5",3,"max","min"],["formControlName","soundMinDistance","step","1","thumbLabel","","value","10",3,"max","min"],["formControlName","soundMaxDistance","step","10","thumbLabel","","value","100",3,"max","min"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card"),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Cc(3,"Create Screen"),l.Wb(),l.Xb(4,"mat-card-subtitle"),l.Cc(5,"Create a new Screen which can be used to play videos on"),l.Wb(),l.Wb(),l.Xb(6,"mat-card-content"),l.Xb(7,"mat-horizontal-stepper",0,1),l.Xb(9,"mat-step",2),l.Xb(10,"form",3),l.Ac(11,Me,1,0,"ng-template",4),l.Xb(12,"mat-form-field"),l.Sb(13,"input",5),l.Xb(14,"mat-hint"),l.Cc(15,"The name is for you to better distinct between screens and "),l.Xb(16,"strong"),l.Cc(17,"must be unique!"),l.Wb(),l.Wb(),l.Xb(18,"mat-error"),l.Cc(19,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(20,"div",6),l.Xb(21,"mat-checkbox",7),l.Cc(22,"Always On "),l.Wb(),l.Wb(),l.Xb(23,"div"),l.Xb(24,"button",8),l.Cc(25,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(26,"mat-step",2),l.Xb(27,"form",3),l.Ac(28,Pe,1,0,"ng-template",4),l.Xb(29,"mat-checkbox",9),l.Cc(30,"Is 3D Rendered"),l.Wb(),l.Ac(31,Le,9,2,"div",10),l.Ac(32,ze,64,9,"div",10),l.Xb(33,"div"),l.Xb(34,"button",11),l.Cc(35,"Back"),l.Wb(),l.Xb(36,"button",8),l.Cc(37,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(38,"mat-step",2),l.Xb(39,"form",3),l.Ac(40,Ze,1,0,"ng-template",4),l.Xb(41,"div",12),l.Xb(42,"em"),l.Cc(43,"Global Volume"),l.Wb(),l.Sb(44,"mat-slider",13),l.Cc(45),l.Wb(),l.Xb(46,"div"),l.Xb(47,"mat-checkbox",14),l.Cc(48,"Use 3D Audio"),l.Wb(),l.Sb(49,"br"),l.Xb(50,"mat-hint"),l.Xb(51,"i"),l.Cc(52,"Hint: 3D Audio may impact CPU performance!"),l.Wb(),l.Wb(),l.Sb(53,"br"),l.Sb(54,"br"),l.Wb(),l.Ac(55,qe,16,9,"div",10),l.Xb(56,"div"),l.Xb(57,"button",11),l.Cc(58,"Back"),l.Wb(),l.Xb(59,"button",15),l.ec("click",function(){return t.createScreen()}),l.Cc(60,"Submit"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(7),l.nc("linear",!0),l.Fb(2),l.nc("stepControl",t.screenForm),l.Fb(1),l.nc("formGroup",t.screenForm),l.Fb(16),l.nc("stepControl",t.renderTargetForm),l.Fb(1),l.nc("formGroup",t.renderTargetForm),l.Fb(4),l.nc("ngIf",!1===t.renderTargetForm.get("is3DRendered").value),l.Fb(1),l.nc("ngIf",!0===t.renderTargetForm.get("is3DRendered").value),l.Fb(6),l.nc("stepControl",t.soundForm),l.Fb(1),l.nc("formGroup",t.soundForm),l.Fb(5),l.nc("max",100)("min",1),l.Fb(1),l.Ec(" ",t.soundForm.get("globalVolume").value," "),l.Fb(10),l.nc("ngIf",!1===t.soundForm.get("is3DAudioEnabled").value))},directives:[w.a,w.c,w.f,w.e,w.b,Se,xe,W.r,W.k,W.e,ue,Ee.c,W.b,Ae.a,W.j,W.d,W.p,Ee.f,Ee.b,ke.a,p.a,b.b,we,i.k,Re,Ne.a,je,W.n,Ee.g],styles:[""]}),e})()},{path:"edit-screen",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t,this.screenForm=this.fb.group({screenName:["",[W.q.required]],modelName:["",[W.q.required]],renderTargetName:["",[W.q.required]],soundAttenuation:[5],is3DAudioEnabled:[!1],soundMaxDistance:[100],soundMinDistance:[10],globalVolume:[100],alwaysOn:[!1],is3DRendered:[!1],positionX:[0],positionY:[0],positionZ:[0],rotationX:[0],rotationY:[0],rotationZ:[0],scaleX:[0],scaleY:[0],scaleZ:[0]})}ngOnInit(){this.screen.subscribe(e=>{e&&(this.screenId=e.id,this.screenForm.patchValue({screenName:e.name,modelName:e.is3DRendered?"":e.targetSettings.modelName,renderTargetName:e.is3DRendered?"":e.targetSettings.renderTargetName,soundAttenuation:e.browserSettings.soundAttenuation,soundMinDistance:e.browserSettings.soundMinDistance,soundMaxDistance:e.browserSettings.soundMaxDistance,globalVolume:e.browserSettings.globalVolume,alwaysOn:e.alwaysOn,is3DRendered:e.is3DRendered,positionX:e.is3DRendered?e.positionalSettings.positionX:0,positionY:e.is3DRendered?e.positionalSettings.positionY:0,positionZ:e.is3DRendered?e.positionalSettings.positionZ:0,rotationX:e.is3DRendered?e.positionalSettings.rotationX:0,rotationY:e.is3DRendered?e.positionalSettings.rotationY:0,rotationZ:e.is3DRendered?e.positionalSettings.rotationZ:0,scaleX:e.is3DRendered?e.positionalSettings.scaleX:0,scaleY:e.is3DRendered?e.positionalSettings.scaleY:0,scaleZ:e.is3DRendered?e.positionalSettings.scaleZ:0,is3DAudioEnabled:e.browserSettings.is3DAudioEnabled}))}),this.screenForm.get("is3DRendered").valueChanges.subscribe(e=>{e?(this.screenForm.get("renderTargetName").disable(),this.screenForm.get("modelName").disable(),this.screenForm.get("positionX").enable(),this.screenForm.get("positionY").enable(),this.screenForm.get("positionZ").enable(),this.screenForm.get("rotationX").enable(),this.screenForm.get("rotationY").enable(),this.screenForm.get("rotationZ").enable(),this.screenForm.get("scaleX").enable(),this.screenForm.get("scaleY").enable(),this.screenForm.get("scaleZ").enable()):(this.screenForm.get("renderTargetName").enable(),this.screenForm.get("modelName").enable(),this.screenForm.get("positionX").disable(),this.screenForm.get("positionY").disable(),this.screenForm.get("positionZ").disable(),this.screenForm.get("rotationX").disable(),this.screenForm.get("rotationY").disable(),this.screenForm.get("rotationZ").disable(),this.screenForm.get("scaleX").disable(),this.screenForm.get("scaleY").disable(),this.screenForm.get("scaleZ").disable())})}submit(){this.nuiService.editScreen(this.screenForm.get("screenName").value,this.screenId,this.screenForm.get("is3DRendered").value,this.screenForm.get("alwaysOn").value,this.screenForm.get("modelName").value,this.screenForm.get("renderTargetName").value,this.screenForm.get("globalVolume").value,this.screenForm.get("soundAttenuation").value,this.screenForm.get("soundMinDistance").value,this.screenForm.get("soundMaxDistance").value,this.screenForm.get("positionX").value,this.screenForm.get("positionY").value,this.screenForm.get("positionZ").value,this.screenForm.get("rotationX").value,this.screenForm.get("rotationY").value,this.screenForm.get("rotationZ").value,this.screenForm.get("scaleX").value,this.screenForm.get("scaleY").value,this.screenForm.get("scaleZ").value,this.screenForm.get("is3DAudioEnabled").value)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.c),l.Rb(c.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-edit-screen"]],decls:37,vars:8,consts:[[2,"display","flex"],[1,"form-container"],[3,"formGroup"],["formControlName","screenName","matInput","","name","screenName","required",""],["formControlName","alwaysOn"],["formControlName","is3DRendered",2,"margin-left","10px"],[4,"ngIf"],["formControlName","globalVolume","thumbLabel","",3,"max","min","step"],["formControlName","is3DAudioEnabled",2,"margin-left","10px"],["color","accent","mat-raised-button","","type","submit",2,"display","flex","margin-top","-10px","float","right","margin-right","-70px",3,"click"],["formControlName","modelName","matInput","","name","modelName","required","",3,"appEnableControl"],["formControlName","renderTargetName","matInput","","name","renderTargetName","required","",3,"appEnableControl"],["formControlName","positionX","matInput","","name","positionX","required","","type","number",3,"appEnableControl"],["formControlName","positionY","matInput","","name","positionY","required","","type","number",3,"appEnableControl"],["formControlName","positionZ","matInput","","name","positionZ","required","","type","number",3,"appEnableControl"],["formControlName","rotationX","matInput","","name","rotationX","required","","type","number",3,"appEnableControl"],["formControlName","rotationY","matInput","","name","rotationY","required","","type","number",3,"appEnableControl"],["formControlName","rotationZ","matInput","","name","rotationZ","required","","type","number",3,"appEnableControl"],["formControlName","scaleX","matInput","","name","scaleX","required","","type","number",3,"appEnableControl"],["formControlName","scaleY","matInput","","name","scaleY","required","","type","number",3,"appEnableControl"],["formControlName","scaleZ","matInput","","name","scaleZ","required","","type","number",3,"appEnableControl"],["formControlName","soundAttenuation","thumbLabel","",3,"max","min","step"],["formControlName","soundMinDistance","thumbLabel","",3,"max","min","step"],["formControlName","soundMaxDistance","thumbLabel","",3,"max","min","step"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card",0),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Cc(3,"Edit Screen"),l.Wb(),l.Wb(),l.Xb(4,"mat-card-content"),l.Xb(5,"div",1),l.Xb(6,"form",2),l.Xb(7,"div"),l.Xb(8,"mat-form-field"),l.Xb(9,"mat-label"),l.Cc(10,"Name"),l.Wb(),l.Sb(11,"input",3),l.Wb(),l.Wb(),l.Xb(12,"div"),l.Xb(13,"mat-checkbox",4),l.Cc(14,"Always On"),l.Wb(),l.Xb(15,"mat-checkbox",5),l.Cc(16,"3D Rendered"),l.Wb(),l.Wb(),l.Ac(17,Ye,11,2,"div",6),l.Ac(18,Ve,46,9,"div",6),l.Xb(19,"div"),l.Xb(20,"mat-label"),l.Cc(21,"Global Volume"),l.Wb(),l.Sb(22,"mat-slider",7),l.Cc(23),l.Wb(),l.Xb(24,"div"),l.Xb(25,"mat-checkbox",8),l.Cc(26,"Enable 3D Audio"),l.Wb(),l.Sb(27,"br"),l.Xb(28,"mat-hint"),l.Xb(29,"i"),l.Cc(30,"Hint: 3D Audio may impact CPU performance!"),l.Wb(),l.Wb(),l.Sb(31,"br"),l.Sb(32,"br"),l.Wb(),l.Ac(33,Ge,16,12,"div",6),l.Sb(34,"div"),l.Xb(35,"button",9),l.ec("click",function(){return t.submit()}),l.Cc(36,"Submit "),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(6),l.nc("formGroup",t.screenForm),l.Fb(11),l.nc("ngIf",!1===t.screenForm.get("is3DRendered").value),l.Fb(1),l.nc("ngIf",!0===t.screenForm.get("is3DRendered").value),l.Fb(4),l.nc("max",100)("min",1)("step",1),l.Fb(1),l.Ec(" ",t.screenForm.get("globalVolume").value," "),l.Fb(10),l.nc("ngIf",!1===t.screenForm.get("is3DAudioEnabled").value))},directives:[w.a,w.c,w.f,w.b,W.r,W.k,W.e,Ee.c,Ee.g,W.b,Ae.a,W.j,W.d,W.p,ke.a,i.k,Ne.a,Ee.f,b.b,je,W.n],styles:[".form-container[_ngcontent-%COMP%]{max-height:380px}"]}),Object(a.a)([Object(o.d)(s.a.getSelectedScreen)],e.prototype,"screen",void 0),e})()}];let He=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[r.d.forChild(Be)],r.d]}),e})();var $e=n("rDax"),Ue=n("NXyV"),Ke=n("pLZG"),Qe=n("IzEk");function Je(e,t){}class et{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const tt={dialogContainer:Object(ee.m)("dialogContainer",[Object(ee.j)("void, exit",Object(ee.k)({opacity:0,transform:"scale(0.7)"})),Object(ee.j)("enter",Object(ee.k)({transform:"none"})),Object(ee.l)("* => enter",Object(ee.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(ee.k)({transform:"none",opacity:1}))),Object(ee.l)("* => void, * => exit",Object(ee.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(ee.k)({opacity:0})))])};let nt=(()=>{class e extends O.a{constructor(e,t,n,i,r,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=r,this._focusMonitor=a,this._animationStateChanged=new l.p,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.m),l.Rb(R.f),l.Rb(l.i),l.Rb(i.d,8),l.Rb(et),l.Rb(R.e))},e.\u0275dir=l.Mb({type:e,viewQuery:function(e,t){if(1&e&&l.Gc(O.b,3),2&e){let e;l.pc(e=l.fc())&&(t._portalOutlet=e.first)}},features:[l.Cb]}),e})(),it=(()=>{class e extends nt{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return rt(t||e)},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&l.yc("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(l.ac("id",t._id),l.Gb("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),l.zc("@dialogContainer",t._state))},features:[l.Cb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&l.Ac(0,Je,0,0,"ng-template",0)},directives:[O.b],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[tt.dialogContainer]}}),e})();const rt=l.Zb(it);let at=0;class ot{constructor(e,t,n="mat-dialog-"+at++){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A.a,this._afterClosed=new A.a,this._beforeClosed=new A.a,this._state=0,t._id=n,t._animationStateChanged.pipe(Object(Ke.a)(e=>"opened"===e.state),Object(Qe.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Object(Ke.a)(e=>"closed"===e.state),Object(Qe.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(Object(Ke.a)(e=>e.keyCode===E.g&&!this.disableClose&&!Object(E.s)(e))).subscribe(e=>{e.preventDefault(),st(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():st(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Object(Ke.a)(e=>"closing"===e.state),Object(Qe.a)(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function st(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}const lt=new l.t("MatDialogData"),ct=new l.t("mat-dialog-default-options"),dt=new l.t("mat-dialog-scroll-strategy"),bt={provide:dt,deps:[$e.c],useFactory:function(e){return()=>e.scrollStrategies.block()}};let pt=(()=>{class e{constructor(e,t,n,i,r,a,o,s,l){this._overlay=e,this._injector=t,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=s,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A.a,this._afterOpenedAtThisLevel=new A.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(Ue.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(N.a)(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new et)).id&&this.getDialogById(t.id);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),i._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new $e.d({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=l.u.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:et,useValue:t}]}),i=new O.c(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof l.O)t.attachTemplatePortal(new O.f(e,null,{$implicit:i.data,dialogRef:r}));else{const n=this._createInjector(i,r,t),a=t.attachComponentPortal(new O.c(e,i.viewContainerRef,n));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(I.b,null)||r.push({provide:I.b,useValue:{value:e.direction,change:Object(k.a)()}}),l.u.create({parent:i||this._injector,providers:r})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb($e.c),l.Rb(l.u),l.Rb(void 0),l.Rb(void 0),l.Rb($e.e),l.Rb(void 0),l.Rb(l.Q),l.Rb(l.Q),l.Rb(l.t))},e.\u0275dir=l.Mb({type:e}),e})(),mt=(()=>{class e extends pt{constructor(e,t,n,i,r,a,o){super(e,t,i,a,o,r,ot,it,lt)}}return e.\u0275fac=function(t){return new(t||e)(l.bc($e.c),l.bc(l.u),l.bc(i.g,8),l.bc(ct,8),l.bc(dt),l.bc(e,12),l.bc($e.e))},e.\u0275prov=l.Nb({token:e,factory:e.\u0275fac}),e})(),ut=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({providers:[mt,bt],imports:[[$e.f,O.e,Q.e],Q.e]}),e})();var ht=n("d3UM"),gt=n("hh/h");let ft=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[i.c,He,m.b,b.c,d.k,ut,w.d,W.o,Ee.e,ht.b,Te,Ae.b,Ne.b,ke.b,W.f,p.b,gt.QuickPlayModule]]}),e})()}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{uBXI:function(e,t,n){"use strict";n.r(t),n.d(t,"ScreensModule",function(){return ft});var i=n("ofXK"),r=n("tyNb"),a=n("mrSG"),o=n("AcyG"),s=n("sxot"),l=n("fXoL"),c=n("/rnm"),d=n("+0xr"),b=n("bTqV"),p=n("Qu3c"),m=n("NFeN");function u(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Actions"),l.Wb())}function h(e,t){if(1&e){const e=l.Yb();l.Xb(0,"td",15),l.Xb(1,"button",16),l.ec("click",function(){l.tc(e);const n=t.$implicit;return l.ic().editScreen(n)}),l.Xb(2,"mat-icon"),l.Cc(3,"edit"),l.Wb(),l.Wb(),l.Xb(4,"button",17),l.ec("click",function(){l.tc(e);const n=t.$implicit;return l.ic().deleteScreen(n)}),l.Xb(5,"mat-icon"),l.Cc(6,"delete"),l.Wb(),l.Wb(),l.Wb()}}function g(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Name"),l.Wb())}function f(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(e.name)}}function _(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Always On"),l.Wb())}function v(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(e.alwaysOn)}}function C(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Model-Name"),l.Wb())}function F(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(null==e.targetSettings?null:e.targetSettings.modelName)}}function y(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"RenderTarget Name"),l.Wb())}function x(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(null==e.targetSettings?null:e.targetSettings.renderTargetName)}}function X(e,t){1&e&&l.Sb(0,"tr",18)}function D(e,t){1&e&&l.Sb(0,"tr",19)}let S=(()=>{class e{constructor(e,t,n){this.router=e,this.nuiService=t,this.store=n,this.displayedColumns=["actions","name","modelName","targetName","alwaysOn"]}ngOnInit(){}editScreen(e){this.store.dispatch(new s.g(e)),this.router.navigateByUrl("/screens/edit-screen")}deleteScreen(e){this.nuiService.deleteScreen(e.name)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(r.a),l.Rb(c.a),l.Rb(o.g))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-screens"]],decls:26,vars:3,consts:[[1,"wrapper"],[1,"screens-table"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","alwaysOn"],["matColumnDef","modelName"],["matColumnDef","targetName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"fab-container"],["color","primary","mat-fab","","matTooltip","create a new Screen","routerLink","/screens/create-new-screen",1,"md-fab-right"],["mat-header-cell",""],["mat-cell",""],["aria-label","Edit Screen","color","accent","mat-icon-button","","matTooltip","Edit Screen",3,"click"],["aria-label","Delete Screen","color","warn","mat-icon-button","","matTooltip","Delete Screen",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Xb(1,"div",1),l.Xb(2,"h3"),l.Cc(3,"Screens"),l.Wb(),l.Xb(4,"table",2),l.Vb(5,3),l.Ac(6,u,2,0,"th",4),l.Ac(7,h,7,0,"td",5),l.Ub(),l.Vb(8,6),l.Ac(9,g,2,0,"th",4),l.Ac(10,f,2,1,"td",5),l.Ub(),l.Vb(11,7),l.Ac(12,_,2,0,"th",4),l.Ac(13,v,2,1,"td",5),l.Ub(),l.Vb(14,8),l.Ac(15,C,2,0,"th",4),l.Ac(16,F,2,1,"td",5),l.Ub(),l.Vb(17,9),l.Ac(18,y,2,0,"th",4),l.Ac(19,x,2,1,"td",5),l.Ub(),l.Ac(20,X,1,0,"tr",10),l.Ac(21,D,1,0,"tr",11),l.Wb(),l.Wb(),l.Xb(22,"div",12),l.Xb(23,"button",13),l.Xb(24,"mat-icon"),l.Cc(25,"add"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(4),l.nc("dataSource",t.screens$),l.Fb(16),l.nc("matHeaderRowDef",t.displayedColumns),l.Fb(1),l.nc("matRowDefColumns",t.displayedColumns))},directives:[d.j,d.c,d.e,d.b,d.g,d.i,b.b,p.a,r.b,m.a,d.d,d.a,d.f,d.h],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.screens-table[_ngcontent-%COMP%]{height:390px}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:relative!important;top:-15px}table[_ngcontent-%COMP%]{width:100%}"]}),Object(a.a)([Object(o.d)(s.a.getScreens)],e.prototype,"screens$",void 0),e})();var W=n("3Pt+"),w=n("Wp6s"),O=n("+rOU"),R=n("u47x"),I=n("cH1L"),T=n("8LU1"),E=n("FtGj"),A=n("XNiG"),k=n("LRne"),N=n("JX91"),j=n("1G5W");function M(e,t){1&e&&l.lc(0)}const P=["*"];let L=(()=>{class e{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.m))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),e})(),z=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.O))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepLabel",""]]}),e})(),Z=0;const q="edit",Y="done",V="error",G=new l.t("STEPPER_GLOBAL_OPTIONS");let B=(()=>{class e{constructor(e,t){this._stepper=e,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(e){this._editable=Object(T.c)(e)}get optional(){return this._optional}set optional(e){this._optional=Object(T.c)(e)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Object(T.c)(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(e){this._customError=Object(T.c)(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Object(l.W)(()=>H)),l.Rb(G,8))},e.\u0275cmp=l.Lb({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){if(1&e&&l.Kb(n,z,1),2&e){let e;l.pc(e=l.fc())&&(t.stepLabel=e.first)}},viewQuery:function(e,t){if(1&e&&l.Gc(l.O,3),2&e){let e;l.pc(e=l.fc())&&(t.content=e.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.Db],ngContentSelectors:P,decls:1,vars:0,template:function(e,t){1&e&&(l.mc(),l.Ac(0,M,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),H=(()=>{class e{constructor(e,t,n,i){this._dir=e,this._changeDetectorRef=t,this._elementRef=n,this._destroyed=new A.a,this.steps=new l.G,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.p,this._orientation="horizontal",this._groupId=Z++,this._document=i}get linear(){return this._linear}set linear(e){this._linear=Object(T.c)(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Object(T.f)(e);if(this.steps&&this._steps){this._isValidIndex(e);const n=this.selected;n&&(n.interacted=!0),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(e)}else this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=this.steps?this.steps.toArray().indexOf(e):-1}ngAfterContentInit(){this._steps.changes.pipe(Object(N.a)(this._steps),Object(j.a)(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(e=>e._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new R.d(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(k.a)()).pipe(Object(N.a)(this._layoutDirection()),Object(j.a)(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const n=this.steps.toArray()[e],i=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,t)}_getDefaultIndicatorLogic(e,t){return e._showError&&e.hasError&&!t?V:!e.completed||t?"number":e.editable?q:Y}_getGuidelineLogic(e,t,n="number"){return e._showError&&e.hasError&&!t?V:e.completed&&!t?Y:e.completed&&t?n:e.editable&&t?q:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=Object(E.s)(e),n=e.keyCode,i=this._keyManager;null==i.activeItemIndex||t||n!==E.n&&n!==E.f?i.onKeydown(e):(this.selectedIndex=i.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(e=>{const t=e.stepControl;return(t?t.invalid||t.pending||!e.interacted:!e.completed)&&!e.optional&&!e._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class e{constructor(e){this._stepper=e,this.type="submit"}_handleClick(){this._stepper.next()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(H))},e.\u0275dir=l.Mb({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.ec("click",function(){return t._handleClick()}),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),e})(),U=(()=>{class e{constructor(e){this._stepper=e,this.type="button"}_handleClick(){this._stepper.previous()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(H))},e.\u0275dir=l.Mb({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.ec("click",function(){return t._handleClick()}),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),e})(),K=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[I.a]]}),e})();var Q=n("FKr1"),J=n("/uUt"),ee=n("R0Ic");function te(e,t){if(1&e&&l.Tb(0,8),2&e){const e=l.ic();l.nc("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function ne(e,t){if(1&e&&(l.Xb(0,"span"),l.Cc(1),l.Wb()),2&e){const e=l.ic(2);l.Fb(1),l.Dc(e._getDefaultTextForState(e.state))}}function ie(e,t){if(1&e&&(l.Xb(0,"mat-icon"),l.Cc(1),l.Wb()),2&e){const e=l.ic(2);l.Fb(1),l.Dc(e._getDefaultTextForState(e.state))}}function re(e,t){if(1&e&&(l.Vb(0,9),l.Ac(1,ne,2,1,"span",10),l.Ac(2,ie,2,1,"mat-icon",11),l.Ub()),2&e){const e=l.ic();l.nc("ngSwitch",e.state),l.Fb(1),l.nc("ngSwitchCase","number")}}function ae(e,t){if(1&e&&(l.Xb(0,"div",12),l.Tb(1,13),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.nc("ngTemplateOutlet",e._templateLabel().template)}}function oe(e,t){if(1&e&&(l.Xb(0,"div",12),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e.label)}}function se(e,t){if(1&e&&(l.Xb(0,"div",14),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e._intl.optionalLabel)}}function le(e,t){if(1&e&&(l.Xb(0,"div",15),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e.errorMessage)}}function ce(e,t){1&e&&l.lc(0)}const de=["*"];function be(e,t){1&e&&l.Sb(0,"div",6)}function pe(e,t){if(1&e){const e=l.Yb();l.Vb(0),l.Xb(1,"mat-step-header",4),l.ec("click",function(){return t.$implicit.select()})("keydown",function(t){return l.tc(e),l.ic()._onKeydown(t)}),l.Wb(),l.Ac(2,be,1,0,"div",5),l.Ub()}if(2&e){const e=t.$implicit,n=t.index,i=t.last,r=l.ic();l.Fb(1),l.nc("tabIndex",r._getFocusIndex()===n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===n)("active",e.completed||r.selectedIndex===n||!r.linear)("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple)("color",e.color||r.color),l.Gb("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex==n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),l.Fb(1),l.nc("ngIf",!i)}}function me(e,t){if(1&e){const e=l.Yb();l.Xb(0,"div",7),l.ec("@stepTransition.done",function(t){return l.tc(e),l.ic()._animationDone.next(t)}),l.Tb(1,8),l.Wb()}if(2&e){const e=t.$implicit,n=t.index,i=l.ic();l.nc("@stepTransition",i._getAnimationDirection(n))("id",i._getStepContentId(n)),l.Gb("aria-labelledby",i._getStepLabelId(n))("aria-expanded",i.selectedIndex===n),l.Fb(1),l.nc("ngTemplateOutlet",e.content)}}let ue=(()=>{class e extends z{}return e.\u0275fac=function(t){return he(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["","matStepLabel",""]],features:[l.Cb]}),e})();const he=l.Zb(ue);let ge=(()=>{class e{constructor(){this.changes=new A.a,this.optionalLabel="Optional"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(l.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const fe={provide:ge,deps:[[new l.D,new l.M,ge]],useFactory:function(e){return e||new ge}};class _e extends L{constructor(e){super(e)}}const ve=Object(Q.q)(_e,"primary");let Ce=(()=>{class e extends ve{constructor(e,t,n,i){super(n),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof ue?null:this.label}_templateLabel(){return this.label instanceof ue?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(ge),l.Rb(R.e),l.Rb(l.m),l.Rb(l.i))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[l.Cb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(l.Sb(0,"div",0),l.Xb(1,"div"),l.Xb(2,"div",1),l.Ac(3,te,1,2,"ng-container",2),l.Ac(4,re,3,2,"ng-container",3),l.Wb(),l.Wb(),l.Xb(5,"div",4),l.Ac(6,ae,2,1,"div",5),l.Ac(7,oe,2,1,"div",5),l.Ac(8,se,2,1,"div",6),l.Ac(9,le,2,1,"div",7),l.Wb()),2&e&&(l.nc("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),l.Fb(1),l.Ib("mat-step-icon-state-",t.state," mat-step-icon"),l.Jb("mat-step-icon-selected",t.selected),l.Fb(1),l.nc("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),l.Fb(1),l.nc("ngSwitchCase",!0),l.Fb(2),l.Jb("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),l.Fb(1),l.nc("ngIf",t._templateLabel()),l.Fb(1),l.nc("ngIf",t._stringLabel()),l.Fb(1),l.nc("ngIf",t.optional&&"error"!=t.state),l.Fb(1),l.nc("ngIf","error"==t.state))},directives:[Q.l,i.m,i.n,i.o,i.k,i.p,m.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})();const Fe={horizontalStepTransition:Object(ee.m)("stepTransition",[Object(ee.j)("previous",Object(ee.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(ee.j)("current",Object(ee.k)({transform:"none",visibility:"inherit"})),Object(ee.j)("next",Object(ee.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(ee.l)("* => *",Object(ee.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(ee.m)("stepTransition",[Object(ee.j)("previous",Object(ee.k)({height:"0px",visibility:"hidden"})),Object(ee.j)("next",Object(ee.k)({height:"0px",visibility:"hidden"})),Object(ee.j)("current",Object(ee.k)({height:"*",visibility:"inherit"})),Object(ee.l)("* <=> current",Object(ee.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let ye=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.O))},e.\u0275dir=l.Mb({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),e})(),xe=(()=>{class e extends B{constructor(e,t,n){super(e,n),this._errorStateMatcher=t}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Object(l.W)(()=>Xe)),l.Rb(Q.a,4),l.Rb(G,8))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-step"]],contentQueries:function(e,t,n){if(1&e&&l.Kb(n,ue,1),2&e){let e;l.pc(e=l.fc())&&(t.stepLabel=e.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[l.Eb([{provide:Q.a,useExisting:e},{provide:B,useExisting:e}]),l.Cb],ngContentSelectors:de,decls:1,vars:0,template:function(e,t){1&e&&(l.mc(),l.Ac(0,ce,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),Xe=(()=>{class e extends H{constructor(){super(...arguments),this.steps=new l.G,this.animationDone=new l.p,this._iconOverrides={},this._animationDone=new A.a}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Object(j.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(J.a)((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Object(j.a)(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}}return e.\u0275fac=function(t){return De(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["","matStepper",""]],contentQueries:function(e,t,n){if(1&e&&(l.Kb(n,xe,1),l.Kb(n,ye,1)),2&e){let e;l.pc(e=l.fc())&&(t._steps=e),l.pc(e=l.fc())&&(t._icons=e)}},viewQuery:function(e,t){if(1&e&&l.Gc(Ce,1),2&e){let e;l.pc(e=l.fc())&&(t._stepHeader=e)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[l.Eb([{provide:H,useExisting:e}]),l.Cb]}),e})();const De=l.Zb(Xe);let Se=(()=>{class e extends Xe{constructor(){super(...arguments),this.labelPosition="end"}}return e.\u0275fac=function(t){return We(t||e)},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(e,t){2&e&&l.Jb("mat-stepper-label-position-end","end"==t.labelPosition)("mat-stepper-label-position-bottom","bottom"==t.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[l.Eb([{provide:Xe,useExisting:e},{provide:H,useExisting:e}]),l.Cb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Ac(1,pe,3,19,"ng-container",1),l.Wb(),l.Xb(2,"div",2),l.Ac(3,me,2,5,"div",3),l.Wb()),2&e&&(l.Fb(1),l.nc("ngForOf",t.steps),l.Fb(2),l.nc("ngForOf",t.steps))},directives:[i.j,Ce,i.k,i.p],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Fe.horizontalStepTransition]},changeDetection:0}),e})();const We=l.Zb(Se);let we=(()=>{class e extends ${}return e.\u0275fac=function(t){return Oe(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Cb]}),e})();const Oe=l.Zb(we);let Re=(()=>{class e extends U{}return e.\u0275fac=function(t){return Ie(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Cb]}),e})();const Ie=l.Zb(Re);let Te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({providers:[fe,Q.a],imports:[[Q.e,i.c,O.e,b.c,K,m.b,Q.m],Q.e]}),e})();var Ee=n("kmnG"),Ae=n("qFsG"),ke=n("bSwM"),Ne=n("5RNC");let je=(()=>{class e{constructor(e){this.ngControl=e}set appEnableControl(e){this.ngControl&&this.ngControl.control&&(e?this.ngControl.control.enable():this.ngControl.control.disable())}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.i))},e.\u0275dir=l.Mb({type:e,selectors:[["","appEnableControl",""]],inputs:{appEnableControl:"appEnableControl"}}),e})();function Me(e,t){1&e&&l.Cc(0,"Enter details")}function Pe(e,t){1&e&&l.Cc(0,"RenderTarget Settings")}function Le(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"mat-form-field"),l.Sb(2,"input",16),l.Xb(3,"mat-error"),l.Cc(4,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(5,"mat-form-field",17),l.Sb(6,"input",18),l.Xb(7,"mat-error"),l.Cc(8,"Please enter a valid renderTarget"),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(2),l.nc("appEnableControl",!1===e.renderTargetForm.get("is3DRendered").value),l.Fb(4),l.nc("appEnableControl",!1===e.renderTargetForm.get("is3DRendered").value)}}function ze(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Sb(3,"input",19),l.Xb(4,"mat-error"),l.Cc(5,"Please enter X Position"),l.Wb(),l.Xb(6,"mat-label"),l.Cc(7,"Position X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(8,"div"),l.Xb(9,"mat-form-field"),l.Sb(10,"input",20),l.Xb(11,"mat-error"),l.Cc(12,"Please enter Y Position"),l.Wb(),l.Xb(13,"mat-label"),l.Cc(14,"Position Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(15,"div"),l.Xb(16,"mat-form-field"),l.Sb(17,"input",21),l.Xb(18,"mat-error"),l.Cc(19,"Please enter Z Position"),l.Wb(),l.Xb(20,"mat-label"),l.Cc(21,"Position Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(22,"div"),l.Xb(23,"mat-form-field"),l.Sb(24,"input",22),l.Xb(25,"mat-error"),l.Cc(26,"Please enter X Rotation"),l.Wb(),l.Xb(27,"mat-label"),l.Cc(28,"Rotation X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(29,"div"),l.Xb(30,"mat-form-field"),l.Sb(31,"input",23),l.Xb(32,"mat-error"),l.Cc(33,"Please enter Y Rotation"),l.Wb(),l.Xb(34,"mat-label"),l.Cc(35,"Rotation Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Sb(38,"input",24),l.Xb(39,"mat-error"),l.Cc(40,"Please enter Z Rotation"),l.Wb(),l.Xb(41,"mat-label"),l.Cc(42,"Rotation Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(43,"div"),l.Xb(44,"mat-form-field"),l.Sb(45,"input",25),l.Xb(46,"mat-error"),l.Cc(47,"Please enter X Scale"),l.Wb(),l.Xb(48,"mat-label"),l.Cc(49,"Scale X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(50,"div"),l.Xb(51,"mat-form-field"),l.Sb(52,"input",26),l.Xb(53,"mat-error"),l.Cc(54,"Please enter Y Scale"),l.Wb(),l.Xb(55,"mat-label"),l.Cc(56,"Scale Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(57,"div"),l.Xb(58,"mat-form-field"),l.Sb(59,"input",27),l.Xb(60,"mat-error"),l.Cc(61,"Please enter Z Scale"),l.Wb(),l.Xb(62,"mat-label"),l.Cc(63,"Scale Z"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(3),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value)}}function Ze(e,t){1&e&&l.Cc(0,"Sound Settings")}function qe(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"em"),l.Cc(3,"Sound Attenuation"),l.Wb(),l.Sb(4,"mat-slider",28),l.Cc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"em"),l.Cc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",29),l.Cc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"em"),l.Cc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",30),l.Cc(15),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(4),l.nc("max",100)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundAttenuation").value," "),l.Fb(4),l.nc("max",250)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundMinDistance").value," "),l.Fb(4),l.nc("max",1e3)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundMaxDistance").value," ")}}function Ye(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Cc(4,"Model-Name"),l.Wb(),l.Sb(5,"input",10),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Cc(9,"RenderTarget-Name"),l.Wb(),l.Sb(10,"input",11),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(5),l.nc("appEnableControl",!1===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!1===e.screenForm.get("is3DRendered").value)}}function Ve(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Cc(4,"Position X"),l.Wb(),l.Sb(5,"input",12),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Cc(9,"Position Y"),l.Wb(),l.Sb(10,"input",13),l.Wb(),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-form-field"),l.Xb(13,"mat-label"),l.Cc(14,"Position Z"),l.Wb(),l.Sb(15,"input",14),l.Wb(),l.Wb(),l.Xb(16,"div"),l.Xb(17,"mat-form-field"),l.Xb(18,"mat-label"),l.Cc(19,"Rotation X"),l.Wb(),l.Sb(20,"input",15),l.Wb(),l.Wb(),l.Xb(21,"div"),l.Xb(22,"mat-form-field"),l.Xb(23,"mat-label"),l.Cc(24,"Rotation Y"),l.Wb(),l.Sb(25,"input",16),l.Wb(),l.Wb(),l.Xb(26,"div"),l.Xb(27,"mat-form-field"),l.Xb(28,"mat-label"),l.Cc(29,"Rotation Z"),l.Wb(),l.Sb(30,"input",17),l.Wb(),l.Wb(),l.Xb(31,"div"),l.Xb(32,"mat-form-field"),l.Xb(33,"mat-label"),l.Cc(34,"Scale X"),l.Wb(),l.Sb(35,"input",18),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Xb(38,"mat-label"),l.Cc(39,"Scale Y"),l.Wb(),l.Sb(40,"input",19),l.Wb(),l.Wb(),l.Xb(41,"div"),l.Xb(42,"mat-form-field"),l.Xb(43,"mat-label"),l.Cc(44,"Scale Z"),l.Wb(),l.Sb(45,"input",20),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value)}}function Ge(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-label"),l.Cc(3,"Sound-Attenuation"),l.Wb(),l.Sb(4,"mat-slider",21),l.Cc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-label"),l.Cc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",22),l.Cc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-label"),l.Cc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",23),l.Cc(15),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(4),l.nc("max",100)("min",0)("step",1),l.Fb(1),l.Ec(" ",e.screenForm.get("soundAttenuation").value," "),l.Fb(4),l.nc("max",200)("min",1)("step",1),l.Fb(1),l.Ec(" ",e.screenForm.get("soundMinDistance").value," "),l.Fb(4),l.nc("max",1e3)("min",1)("step",10),l.Fb(1),l.Ec(" ",e.screenForm.get("soundMaxDistance").value," ")}}const Be=[{path:"",component:S},{path:"create-new-screen",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t}get screenName(){return this.screenForm.get("name").value}get modelName(){return this.renderTargetForm.get("modelName").value}get renderTargetName(){return this.renderTargetForm.get("renderTargetName").value}get is3DRendered(){return this.renderTargetForm.get("is3DRendered").value}get positionX(){return this.renderTargetForm.get("positionX").value}get positionY(){return this.renderTargetForm.get("positionY").value}get positionZ(){return this.renderTargetForm.get("positionZ").value}get rotationX(){return this.renderTargetForm.get("rotationX").value}get rotationZ(){return this.renderTargetForm.get("rotationZ").value}get rotationY(){return this.renderTargetForm.get("rotationY").value}get scaleX(){return this.renderTargetForm.get("scaleX").value}get scaleZ(){return this.renderTargetForm.get("scaleZ").value}get scaleY(){return this.renderTargetForm.get("scaleY").value}get globalVolume(){return this.soundForm.get("globalVolume").value}get soundMaxDistance(){return this.soundForm.get("soundMaxDistance").value}get soundMinDistance(){return this.soundForm.get("soundMinDistance").value}get soundAttenuation(){return this.soundForm.get("soundAttenuation").value}get is3DAudioEnabled(){return this.soundForm.get("is3DAudioEnabled").value}get alwaysOn(){return this.screenForm.get("alwaysOn").value}ngOnInit(){this.screenForm=this.fb.group({name:["",[W.q.required]],alwaysOn:[!1]}),this.renderTargetForm=this.fb.group({modelName:["",[W.q.required]],renderTargetName:["",[W.q.required]],is3DRendered:[!1],positionX:[0,[W.q.required]],positionY:[0,[W.q.required]],positionZ:[0,[W.q.required]],rotationX:[0,[W.q.required]],rotationY:[0,[W.q.required]],rotationZ:[0,[W.q.required]],scaleX:[0,[W.q.required]],scaleY:[0,[W.q.required]],scaleZ:[0,[W.q.required]]}),this.soundForm=this.fb.group({globalVolume:[100],soundAttenuation:[5],soundMinDistance:[15],soundMaxDistance:[100],is3DAudioEnabled:[!0]}),this.renderTargetForm.get("is3DRendered").valueChanges.subscribe(e=>{e?(this.renderTargetForm.get("modelName").disable(),this.renderTargetForm.get("renderTargetName").disable(),this.renderTargetForm.get("positionX").enable(),this.renderTargetForm.get("positionY").enable(),this.renderTargetForm.get("positionZ").enable(),this.renderTargetForm.get("scaleX").enable(),this.renderTargetForm.get("scaleY").enable(),this.renderTargetForm.get("scaleZ").enable(),this.renderTargetForm.get("rotationX").enable(),this.renderTargetForm.get("rotationY").enable(),this.renderTargetForm.get("rotationZ").enable()):(this.renderTargetForm.get("modelName").enable(),this.renderTargetForm.get("renderTargetName").enable(),this.renderTargetForm.get("positionX").disable(),this.renderTargetForm.get("positionY").disable(),this.renderTargetForm.get("positionZ").disable(),this.renderTargetForm.get("scaleX").disable(),this.renderTargetForm.get("scaleY").disable(),this.renderTargetForm.get("scaleZ").disable(),this.renderTargetForm.get("rotationX").disable(),this.renderTargetForm.get("rotationY").disable(),this.renderTargetForm.get("rotationZ").disable())})}createScreen(){this.nuiService.createScreen(this.screenName,this.alwaysOn,this.globalVolume,this.soundAttenuation,this.soundMinDistance,this.soundMaxDistance,this.is3DRendered,this.is3DAudioEnabled,this.modelName,this.renderTargetName,this.positionX,this.positionY,this.positionZ,this.rotationX,this.rotationY,this.rotationZ,this.scaleX,this.scaleY,this.scaleZ)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.c),l.Rb(c.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-create-new-screen"]],decls:61,vars:13,consts:[[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],["formControlName","name","matInput","","placeholder","Name","required",""],[2,"padding-bottom","5px","padding-top","20px"],["formControlName","alwaysOn","matTooltip","whether to always show the screen even if no video is playing"],["mat-button","","matStepperNext",""],["formControlName","is3DRendered"],[4,"ngIf"],["mat-button","","matStepperPrevious",""],[2,"margin-top","20px"],["formControlName","globalVolume","step","1","thumbLabel","","value","100",3,"max","min"],["formControlName","is3DAudioEnabled"],["color","primary","mat-raised-button","",3,"click"],["formControlName","modelName","matInput","","matTooltip","The name of the model to which the rendertarget belongs","placeholder","Model-Name","required","",3,"appEnableControl"],[2,"padding-left","5px"],["formControlName","renderTargetName","matInput","","placeholder","RenderTarget Name","required","",3,"appEnableControl"],["formControlName","positionX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","positionY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","positionZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","soundAttenuation","step","1","thumbLabel","","value","5",3,"max","min"],["formControlName","soundMinDistance","step","1","thumbLabel","","value","10",3,"max","min"],["formControlName","soundMaxDistance","step","10","thumbLabel","","value","100",3,"max","min"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card"),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Cc(3,"Create Screen"),l.Wb(),l.Xb(4,"mat-card-subtitle"),l.Cc(5,"Create a new Screen which can be used to play videos on"),l.Wb(),l.Wb(),l.Xb(6,"mat-card-content"),l.Xb(7,"mat-horizontal-stepper",0,1),l.Xb(9,"mat-step",2),l.Xb(10,"form",3),l.Ac(11,Me,1,0,"ng-template",4),l.Xb(12,"mat-form-field"),l.Sb(13,"input",5),l.Xb(14,"mat-hint"),l.Cc(15,"The name is for you to better distinct between screens and "),l.Xb(16,"strong"),l.Cc(17,"must be unique!"),l.Wb(),l.Wb(),l.Xb(18,"mat-error"),l.Cc(19,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(20,"div",6),l.Xb(21,"mat-checkbox",7),l.Cc(22,"Always On "),l.Wb(),l.Wb(),l.Xb(23,"div"),l.Xb(24,"button",8),l.Cc(25,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(26,"mat-step",2),l.Xb(27,"form",3),l.Ac(28,Pe,1,0,"ng-template",4),l.Xb(29,"mat-checkbox",9),l.Cc(30,"Is 3D Rendered"),l.Wb(),l.Ac(31,Le,9,2,"div",10),l.Ac(32,ze,64,9,"div",10),l.Xb(33,"div"),l.Xb(34,"button",11),l.Cc(35,"Back"),l.Wb(),l.Xb(36,"button",8),l.Cc(37,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(38,"mat-step",2),l.Xb(39,"form",3),l.Ac(40,Ze,1,0,"ng-template",4),l.Xb(41,"div",12),l.Xb(42,"em"),l.Cc(43,"Global Volume"),l.Wb(),l.Sb(44,"mat-slider",13),l.Cc(45),l.Wb(),l.Xb(46,"div"),l.Xb(47,"mat-checkbox",14),l.Cc(48,"Use 3D Audio"),l.Wb(),l.Sb(49,"br"),l.Xb(50,"mat-hint"),l.Xb(51,"i"),l.Cc(52,"Hint: 3D Audio may impact CPU performance!"),l.Wb(),l.Wb(),l.Sb(53,"br"),l.Sb(54,"br"),l.Wb(),l.Ac(55,qe,16,9,"div",10),l.Xb(56,"div"),l.Xb(57,"button",11),l.Cc(58,"Back"),l.Wb(),l.Xb(59,"button",15),l.ec("click",function(){return t.createScreen()}),l.Cc(60,"Submit"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(7),l.nc("linear",!0),l.Fb(2),l.nc("stepControl",t.screenForm),l.Fb(1),l.nc("formGroup",t.screenForm),l.Fb(16),l.nc("stepControl",t.renderTargetForm),l.Fb(1),l.nc("formGroup",t.renderTargetForm),l.Fb(4),l.nc("ngIf",!1===t.renderTargetForm.get("is3DRendered").value),l.Fb(1),l.nc("ngIf",!0===t.renderTargetForm.get("is3DRendered").value),l.Fb(6),l.nc("stepControl",t.soundForm),l.Fb(1),l.nc("formGroup",t.soundForm),l.Fb(5),l.nc("max",100)("min",1),l.Fb(1),l.Ec(" ",t.soundForm.get("globalVolume").value," "),l.Fb(10),l.nc("ngIf",!1===t.soundForm.get("is3DAudioEnabled").value))},directives:[w.a,w.c,w.f,w.e,w.b,Se,xe,W.r,W.k,W.e,ue,Ee.c,W.b,Ae.a,W.j,W.d,W.p,Ee.f,Ee.b,ke.a,p.a,b.b,we,i.k,Re,Ne.a,je,W.n,Ee.g],styles:[""]}),e})()},{path:"edit-screen",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t,this.screenForm=this.fb.group({screenName:["",[W.q.required]],modelName:["",[W.q.required]],renderTargetName:["",[W.q.required]],soundAttenuation:[5],is3DAudioEnabled:[!1],soundMaxDistance:[100],soundMinDistance:[10],globalVolume:[100],alwaysOn:[!1],is3DRendered:[!1],positionX:[0],positionY:[0],positionZ:[0],rotationX:[0],rotationY:[0],rotationZ:[0],scaleX:[0],scaleY:[0],scaleZ:[0]})}ngOnInit(){this.screen.subscribe(e=>{e&&(this.screenId=e.id,this.screenForm.patchValue({screenName:e.name,modelName:e.is3DRendered?"":e.targetSettings.modelName,renderTargetName:e.is3DRendered?"":e.targetSettings.renderTargetName,soundAttenuation:e.browserSettings.soundAttenuation,soundMinDistance:e.browserSettings.soundMinDistance,soundMaxDistance:e.browserSettings.soundMaxDistance,globalVolume:e.browserSettings.globalVolume,alwaysOn:e.alwaysOn,is3DRendered:e.is3DRendered,positionX:e.is3DRendered?e.positionalSettings.positionX:0,positionY:e.is3DRendered?e.positionalSettings.positionY:0,positionZ:e.is3DRendered?e.positionalSettings.positionZ:0,rotationX:e.is3DRendered?e.positionalSettings.rotationX:0,rotationY:e.is3DRendered?e.positionalSettings.rotationY:0,rotationZ:e.is3DRendered?e.positionalSettings.rotationZ:0,scaleX:e.is3DRendered?e.positionalSettings.scaleX:0,scaleY:e.is3DRendered?e.positionalSettings.scaleY:0,scaleZ:e.is3DRendered?e.positionalSettings.scaleZ:0,is3DAudioEnabled:e.browserSettings.is3DAudioEnabled}))}),this.screenForm.get("is3DRendered").valueChanges.subscribe(e=>{e?(this.screenForm.get("renderTargetName").disable(),this.screenForm.get("modelName").disable(),this.screenForm.get("positionX").enable(),this.screenForm.get("positionY").enable(),this.screenForm.get("positionZ").enable(),this.screenForm.get("rotationX").enable(),this.screenForm.get("rotationY").enable(),this.screenForm.get("rotationZ").enable(),this.screenForm.get("scaleX").enable(),this.screenForm.get("scaleY").enable(),this.screenForm.get("scaleZ").enable()):(this.screenForm.get("renderTargetName").enable(),this.screenForm.get("modelName").enable(),this.screenForm.get("positionX").disable(),this.screenForm.get("positionY").disable(),this.screenForm.get("positionZ").disable(),this.screenForm.get("rotationX").disable(),this.screenForm.get("rotationY").disable(),this.screenForm.get("rotationZ").disable(),this.screenForm.get("scaleX").disable(),this.screenForm.get("scaleY").disable(),this.screenForm.get("scaleZ").disable())})}submit(){this.nuiService.editScreen(this.screenForm.get("screenName").value,this.screenId,this.screenForm.get("is3DRendered").value,this.screenForm.get("alwaysOn").value,this.screenForm.get("modelName").value,this.screenForm.get("renderTargetName").value,this.screenForm.get("globalVolume").value,this.screenForm.get("soundAttenuation").value,this.screenForm.get("soundMinDistance").value,this.screenForm.get("soundMaxDistance").value,this.screenForm.get("positionX").value,this.screenForm.get("positionY").value,this.screenForm.get("positionZ").value,this.screenForm.get("rotationX").value,this.screenForm.get("rotationY").value,this.screenForm.get("rotationZ").value,this.screenForm.get("scaleX").value,this.screenForm.get("scaleY").value,this.screenForm.get("scaleZ").value,this.screenForm.get("is3DAudioEnabled").value)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.c),l.Rb(c.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-edit-screen"]],decls:37,vars:8,consts:[[2,"display","flex"],[1,"form-container"],[3,"formGroup"],["formControlName","screenName","matInput","","name","screenName","required",""],["formControlName","alwaysOn"],["formControlName","is3DRendered",2,"margin-left","10px"],[4,"ngIf"],["formControlName","globalVolume","thumbLabel","",3,"max","min","step"],["formControlName","is3DAudioEnabled",2,"margin-left","10px"],["color","accent","mat-raised-button","","type","submit",2,"display","flex","margin-top","-10px","float","right","margin-right","-70px",3,"click"],["formControlName","modelName","matInput","","name","modelName","required","",3,"appEnableControl"],["formControlName","renderTargetName","matInput","","name","renderTargetName","required","",3,"appEnableControl"],["formControlName","positionX","matInput","","name","positionX","required","","type","number",3,"appEnableControl"],["formControlName","positionY","matInput","","name","positionY","required","","type","number",3,"appEnableControl"],["formControlName","positionZ","matInput","","name","positionZ","required","","type","number",3,"appEnableControl"],["formControlName","rotationX","matInput","","name","rotationX","required","","type","number",3,"appEnableControl"],["formControlName","rotationY","matInput","","name","rotationY","required","","type","number",3,"appEnableControl"],["formControlName","rotationZ","matInput","","name","rotationZ","required","","type","number",3,"appEnableControl"],["formControlName","scaleX","matInput","","name","scaleX","required","","type","number",3,"appEnableControl"],["formControlName","scaleY","matInput","","name","scaleY","required","","type","number",3,"appEnableControl"],["formControlName","scaleZ","matInput","","name","scaleZ","required","","type","number",3,"appEnableControl"],["formControlName","soundAttenuation","thumbLabel","",3,"max","min","step"],["formControlName","soundMinDistance","thumbLabel","",3,"max","min","step"],["formControlName","soundMaxDistance","thumbLabel","",3,"max","min","step"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card",0),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Cc(3,"Edit Screen"),l.Wb(),l.Wb(),l.Xb(4,"mat-card-content"),l.Xb(5,"div",1),l.Xb(6,"form",2),l.Xb(7,"div"),l.Xb(8,"mat-form-field"),l.Xb(9,"mat-label"),l.Cc(10,"Name"),l.Wb(),l.Sb(11,"input",3),l.Wb(),l.Wb(),l.Xb(12,"div"),l.Xb(13,"mat-checkbox",4),l.Cc(14,"Always On"),l.Wb(),l.Xb(15,"mat-checkbox",5),l.Cc(16,"3D Rendered"),l.Wb(),l.Wb(),l.Ac(17,Ye,11,2,"div",6),l.Ac(18,Ve,46,9,"div",6),l.Xb(19,"div"),l.Xb(20,"mat-label"),l.Cc(21,"Global Volume"),l.Wb(),l.Sb(22,"mat-slider",7),l.Cc(23),l.Wb(),l.Xb(24,"div"),l.Xb(25,"mat-checkbox",8),l.Cc(26,"Enable 3D Audio"),l.Wb(),l.Sb(27,"br"),l.Xb(28,"mat-hint"),l.Xb(29,"i"),l.Cc(30,"Hint: 3D Audio may impact CPU performance!"),l.Wb(),l.Wb(),l.Sb(31,"br"),l.Sb(32,"br"),l.Wb(),l.Ac(33,Ge,16,12,"div",6),l.Sb(34,"div"),l.Xb(35,"button",9),l.ec("click",function(){return t.submit()}),l.Cc(36,"Submit "),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(6),l.nc("formGroup",t.screenForm),l.Fb(11),l.nc("ngIf",!1===t.screenForm.get("is3DRendered").value),l.Fb(1),l.nc("ngIf",!0===t.screenForm.get("is3DRendered").value),l.Fb(4),l.nc("max",100)("min",1)("step",1),l.Fb(1),l.Ec(" ",t.screenForm.get("globalVolume").value," "),l.Fb(10),l.nc("ngIf",!1===t.screenForm.get("is3DAudioEnabled").value))},directives:[w.a,w.c,w.f,w.b,W.r,W.k,W.e,Ee.c,Ee.g,W.b,Ae.a,W.j,W.d,W.p,ke.a,i.k,Ne.a,Ee.f,b.b,je,W.n],styles:[".form-container[_ngcontent-%COMP%]{max-height:380px}"]}),Object(a.a)([Object(o.d)(s.a.getSelectedScreen)],e.prototype,"screen",void 0),e})()}];let He=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[r.d.forChild(Be)],r.d]}),e})();var $e=n("rDax"),Ue=n("NXyV"),Ke=n("pLZG"),Qe=n("IzEk");function Je(e,t){}class et{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const tt={dialogContainer:Object(ee.m)("dialogContainer",[Object(ee.j)("void, exit",Object(ee.k)({opacity:0,transform:"scale(0.7)"})),Object(ee.j)("enter",Object(ee.k)({transform:"none"})),Object(ee.l)("* => enter",Object(ee.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(ee.k)({transform:"none",opacity:1}))),Object(ee.l)("* => void, * => exit",Object(ee.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(ee.k)({opacity:0})))])};let nt=(()=>{class e extends O.a{constructor(e,t,n,i,r,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=r,this._focusMonitor=a,this._animationStateChanged=new l.p,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.m),l.Rb(R.f),l.Rb(l.i),l.Rb(i.d,8),l.Rb(et),l.Rb(R.e))},e.\u0275dir=l.Mb({type:e,viewQuery:function(e,t){if(1&e&&l.Gc(O.b,3),2&e){let e;l.pc(e=l.fc())&&(t._portalOutlet=e.first)}},features:[l.Cb]}),e})(),it=(()=>{class e extends nt{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return rt(t||e)},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&l.yc("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(l.ac("id",t._id),l.Gb("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),l.zc("@dialogContainer",t._state))},features:[l.Cb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&l.Ac(0,Je,0,0,"ng-template",0)},directives:[O.b],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[tt.dialogContainer]}}),e})();const rt=l.Zb(it);let at=0;class ot{constructor(e,t,n="mat-dialog-"+at++){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A.a,this._afterClosed=new A.a,this._beforeClosed=new A.a,this._state=0,t._id=n,t._animationStateChanged.pipe(Object(Ke.a)(e=>"opened"===e.state),Object(Qe.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Object(Ke.a)(e=>"closed"===e.state),Object(Qe.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(Object(Ke.a)(e=>e.keyCode===E.g&&!this.disableClose&&!Object(E.s)(e))).subscribe(e=>{e.preventDefault(),st(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():st(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Object(Ke.a)(e=>"closing"===e.state),Object(Qe.a)(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function st(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}const lt=new l.t("MatDialogData"),ct=new l.t("mat-dialog-default-options"),dt=new l.t("mat-dialog-scroll-strategy"),bt={provide:dt,deps:[$e.c],useFactory:function(e){return()=>e.scrollStrategies.block()}};let pt=(()=>{class e{constructor(e,t,n,i,r,a,o,s,l){this._overlay=e,this._injector=t,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=s,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A.a,this._afterOpenedAtThisLevel=new A.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(Ue.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(N.a)(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new et)).id&&this.getDialogById(t.id);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),i._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new $e.d({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=l.u.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:et,useValue:t}]}),i=new O.c(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof l.O)t.attachTemplatePortal(new O.f(e,null,{$implicit:i.data,dialogRef:r}));else{const n=this._createInjector(i,r,t),a=t.attachComponentPortal(new O.c(e,i.viewContainerRef,n));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(I.b,null)||r.push({provide:I.b,useValue:{value:e.direction,change:Object(k.a)()}}),l.u.create({parent:i||this._injector,providers:r})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb($e.c),l.Rb(l.u),l.Rb(void 0),l.Rb(void 0),l.Rb($e.e),l.Rb(void 0),l.Rb(l.Q),l.Rb(l.Q),l.Rb(l.t))},e.\u0275dir=l.Mb({type:e}),e})(),mt=(()=>{class e extends pt{constructor(e,t,n,i,r,a,o){super(e,t,i,a,o,r,ot,it,lt)}}return e.\u0275fac=function(t){return new(t||e)(l.bc($e.c),l.bc(l.u),l.bc(i.g,8),l.bc(ct,8),l.bc(dt),l.bc(e,12),l.bc($e.e))},e.\u0275prov=l.Nb({token:e,factory:e.\u0275fac}),e})(),ut=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({providers:[mt,bt],imports:[[$e.f,O.e,Q.e],Q.e]}),e})();var ht=n("d3UM"),gt=n("hh/h");let ft=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[i.c,He,m.b,b.c,d.k,ut,w.d,W.o,Ee.e,ht.b,Te,Ae.b,Ne.b,ke.b,W.f,p.b,gt.QuickPlayModule]]}),e})()}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/7-es2015.js b/resources/Hypnonema/client/html/7-es2015.js deleted file mode 100644 index 91a326877..000000000 --- a/resources/Hypnonema/client/html/7-es2015.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{uBXI:function(e,t,n){"use strict";n.r(t),n.d(t,"ScreensModule",(function(){return ct}));var i=n("ofXK"),r=n("tyNb"),o=n("mrSG"),a=n("AcyG"),s=n("sxot"),l=n("fXoL"),c=n("/rnm"),d=n("+0xr"),b=n("bTqV"),p=n("Qu3c"),m=n("NFeN");function u(e,t){1&e&&(l.Xb(0,"th",14),l.Dc(1,"Actions"),l.Wb())}function h(e,t){if(1&e){const e=l.Yb();l.Xb(0,"td",15),l.Xb(1,"button",16),l.fc("click",(function(){l.uc(e);const n=t.$implicit;return l.jc().editScreen(n)})),l.Xb(2,"mat-icon"),l.Dc(3,"edit"),l.Wb(),l.Wb(),l.Xb(4,"button",17),l.fc("click",(function(){l.uc(e);const n=t.$implicit;return l.jc().deleteScreen(n)})),l.Xb(5,"mat-icon"),l.Dc(6,"delete"),l.Wb(),l.Wb(),l.Wb()}}function g(e,t){1&e&&(l.Xb(0,"th",14),l.Dc(1,"Name"),l.Wb())}function f(e,t){if(1&e&&(l.Xb(0,"td",15),l.Dc(1),l.Wb()),2&e){const e=t.$implicit;l.Eb(1),l.Ec(e.name)}}function v(e,t){1&e&&(l.Xb(0,"th",14),l.Dc(1,"Always On"),l.Wb())}function _(e,t){if(1&e&&(l.Xb(0,"td",15),l.Dc(1),l.Wb()),2&e){const e=t.$implicit;l.Eb(1),l.Ec(e.alwaysOn)}}function D(e,t){1&e&&(l.Xb(0,"th",14),l.Dc(1,"Model-Name"),l.Wb())}function x(e,t){if(1&e&&(l.Xb(0,"td",15),l.Dc(1),l.Wb()),2&e){const e=t.$implicit;l.Eb(1),l.Ec(null==e.targetSettings?null:e.targetSettings.modelName)}}function y(e,t){1&e&&(l.Xb(0,"th",14),l.Dc(1,"RenderTarget Name"),l.Wb())}function C(e,t){if(1&e&&(l.Xb(0,"td",15),l.Dc(1),l.Wb()),2&e){const e=t.$implicit;l.Eb(1),l.Ec(null==e.targetSettings?null:e.targetSettings.renderTargetName)}}function X(e,t){1&e&&l.Sb(0,"tr",18)}function E(e,t){1&e&&l.Sb(0,"tr",19)}let S=(()=>{class e{constructor(e,t,n){this.router=e,this.nuiService=t,this.store=n,this.displayedColumns=["actions","name","modelName","targetName","alwaysOn"]}ngOnInit(){}editScreen(e){this.store.dispatch(new s.i(e)),this.router.navigateByUrl("/screens/edit-screen")}deleteScreen(e){this.nuiService.deleteScreen(e.name)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(r.a),l.Rb(c.a),l.Rb(a.g))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-screens"]],decls:26,vars:3,consts:[[1,"wrapper"],[1,"screens-table"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","alwaysOn"],["matColumnDef","modelName"],["matColumnDef","targetName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"fab-container"],["mat-fab","","matTooltip","create a new Screen","routerLink","/screens/create-new-screen","color","primary",1,"md-fab-right"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","accent","aria-label","Edit Screen","matTooltip","Edit Screen",3,"click"],["mat-icon-button","","color","warn","aria-label","Delete Screen","matTooltip","Delete Screen",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Xb(1,"div",1),l.Xb(2,"h3"),l.Dc(3,"Screens"),l.Wb(),l.Xb(4,"table",2),l.Vb(5,3),l.Bc(6,u,2,0,"th",4),l.Bc(7,h,7,0,"td",5),l.Ub(),l.Vb(8,6),l.Bc(9,g,2,0,"th",4),l.Bc(10,f,2,1,"td",5),l.Ub(),l.Vb(11,7),l.Bc(12,v,2,0,"th",4),l.Bc(13,_,2,1,"td",5),l.Ub(),l.Vb(14,8),l.Bc(15,D,2,0,"th",4),l.Bc(16,x,2,1,"td",5),l.Ub(),l.Vb(17,9),l.Bc(18,y,2,0,"th",4),l.Bc(19,C,2,1,"td",5),l.Ub(),l.Bc(20,X,1,0,"tr",10),l.Bc(21,E,1,0,"tr",11),l.Wb(),l.Wb(),l.Xb(22,"div",12),l.Xb(23,"button",13),l.Xb(24,"mat-icon"),l.Dc(25,"add"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Eb(4),l.oc("dataSource",t.screens$),l.Eb(16),l.oc("matHeaderRowDef",t.displayedColumns),l.Eb(1),l.oc("matRowDefColumns",t.displayedColumns))},directives:[d.j,d.c,d.e,d.b,d.g,d.i,b.b,p.a,r.b,m.a,d.d,d.a,d.f,d.h],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.screens-table[_ngcontent-%COMP%]{height:390px}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:relative!important;top:-15px}table[_ngcontent-%COMP%]{width:100%}"]}),Object(o.a)([Object(a.d)(s.a.getScreens)],e.prototype,"screens$",void 0),e})();var F=n("3Pt+"),W=n("Wp6s"),w=n("+rOU"),O=n("u47x"),R=n("cH1L"),I=n("8LU1"),T=n("FtGj"),N=n("XNiG"),j=n("LRne"),k=n("JX91"),A=n("1G5W");function M(e,t){1&e&&l.mc(0)}const P=["*"];let L=(()=>{class e{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.m))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),e})(),B=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.N))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepLabel",""]]}),e})(),q=0;const Z=new l.s("STEPPER_GLOBAL_OPTIONS");let z=(()=>{class e{constructor(e,t){this._stepper=e,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(e){this._editable=Object(I.c)(e)}get optional(){return this._optional}set optional(e){this._optional=Object(I.c)(e)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Object(I.c)(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(e){this._customError=Object(I.c)(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Object(l.V)(()=>Y)),l.Rb(Z,8))},e.\u0275cmp=l.Lb({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){var i;1&e&&l.Kb(n,B,!0),2&e&&l.qc(i=l.gc())&&(t.stepLabel=i.first)},viewQuery:function(e,t){var n;1&e&&l.zc(l.N,!0),2&e&&l.qc(n=l.gc())&&(t.content=n.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.Cb],ngContentSelectors:P,decls:1,vars:0,template:function(e,t){1&e&&(l.nc(),l.Bc(0,M,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),Y=(()=>{class e{constructor(e,t,n,i){this._dir=e,this._changeDetectorRef=t,this._elementRef=n,this._destroyed=new N.a,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.p,this._orientation="horizontal",this._groupId=q++,this._document=i}get steps(){return this._steps}get linear(){return this._linear}set linear(e){this._linear=Object(I.c)(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Object(I.f)(e);if(this.steps){if(t<0||t>this.steps.length-1)throw Error("cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.");this._selectedIndex!=t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(e)}else this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=this.steps?this.steps.toArray().indexOf(e):-1}ngAfterViewInit(){this._keyManager=new O.d(this._stepHeader).withWrap().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(j.a)()).pipe(Object(k.a)(this._layoutDirection()),Object(A.a)(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.pipe(Object(A.a)(this._destroyed)).subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const n=this.steps.toArray()[e],i=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,t)}_getDefaultIndicatorLogic(e,t){return e._showError&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,n="number"){return e._showError&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?n:e.editable&&t?"edit":n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=Object(T.s)(e),n=e.keyCode,i=this._keyManager;null==i.activeItemIndex||t||n!==T.n&&n!==T.f?n===T.h?(i.setFirstItemActive(),e.preventDefault()):n===T.e?(i.setLastItemActive(),e.preventDefault()):i.onKeydown(e):(this.selectedIndex=i.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){const t=this.steps.toArray();return t[this._selectedIndex].interacted=!0,!!(this._linear&&e>=0)&&t.slice(0,e).some(e=>{const t=e.stepControl;return(t?t.invalid||t.pending||!e.interacted:!e.completed)&&!e.optional&&!e._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(R.b,8),l.Rb(l.i),l.Rb(l.m),l.Rb(i.d))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepper",""]],contentQueries:function(e,t,n){var i;1&e&&(l.Kb(n,z,!0),l.Kb(n,L,!0)),2&e&&(l.qc(i=l.gc())&&(t._steps=i),l.qc(i=l.gc())&&(t._stepHeader=i))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),e})(),V=(()=>{class e{constructor(e){this._stepper=e,this.type="submit"}_handleClick(){this._stepper.next()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Y))},e.\u0275dir=l.Mb({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.fc("click",(function(){return t._handleClick()})),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),e})(),H=(()=>{class e{constructor(e){this._stepper=e,this.type="button"}_handleClick(){this._stepper.previous()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Y))},e.\u0275dir=l.Mb({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.fc("click",(function(){return t._handleClick()})),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),e})(),G=(()=>{class e{}return e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({factory:function(t){return new(t||e)},imports:[[R.a]]}),e})();var $=n("FKr1"),U=n("/uUt"),K=n("R0Ic");function Q(e,t){if(1&e&&l.Tb(0,9),2&e){const e=l.jc();l.oc("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function J(e,t){if(1&e&&(l.Xb(0,"span"),l.Dc(1),l.Wb()),2&e){const e=l.jc(2);l.Eb(1),l.Ec(e._getDefaultTextForState(e.state))}}function ee(e,t){if(1&e&&(l.Xb(0,"mat-icon"),l.Dc(1),l.Wb()),2&e){const e=l.jc(2);l.Eb(1),l.Ec(e._getDefaultTextForState(e.state))}}function te(e,t){if(1&e&&(l.Vb(0,10),l.Bc(1,J,2,1,"span",11),l.Bc(2,ee,2,1,"mat-icon",12),l.Ub()),2&e){const e=l.jc();l.oc("ngSwitch",e.state),l.Eb(1),l.oc("ngSwitchCase","number")}}function ne(e,t){if(1&e&&l.Tb(0,13),2&e){const e=l.jc();l.oc("ngTemplateOutlet",e._templateLabel().template)}}function ie(e,t){if(1&e&&(l.Xb(0,"div",14),l.Dc(1),l.Wb()),2&e){const e=l.jc();l.Eb(1),l.Ec(e.label)}}function re(e,t){if(1&e&&(l.Xb(0,"div",15),l.Dc(1),l.Wb()),2&e){const e=l.jc();l.Eb(1),l.Ec(e._intl.optionalLabel)}}function oe(e,t){if(1&e&&(l.Xb(0,"div",16),l.Dc(1),l.Wb()),2&e){const e=l.jc();l.Eb(1),l.Ec(e.errorMessage)}}function ae(e,t){1&e&&l.mc(0)}const se=["*"];function le(e,t){1&e&&l.Sb(0,"div",6)}function ce(e,t){if(1&e){const e=l.Yb();l.Vb(0),l.Xb(1,"mat-step-header",4),l.fc("click",(function(){return t.$implicit.select()}))("keydown",(function(t){return l.uc(e),l.jc()._onKeydown(t)})),l.Wb(),l.Bc(2,le,1,0,"div",5),l.Ub()}if(2&e){const e=t.$implicit,n=t.index,i=t.last,r=l.jc();l.Eb(1),l.oc("tabIndex",r._getFocusIndex()===n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===n)("active",e.completed||r.selectedIndex===n||!r.linear)("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple),l.Fb("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex==n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),l.Eb(1),l.oc("ngIf",!i)}}function de(e,t){if(1&e){const e=l.Yb();l.Xb(0,"div",7),l.fc("@stepTransition.done",(function(t){return l.uc(e),l.jc()._animationDone.next(t)})),l.Tb(1,8),l.Wb()}if(2&e){const e=t.$implicit,n=t.index,i=l.jc();l.oc("@stepTransition",i._getAnimationDirection(n))("id",i._getStepContentId(n)),l.Fb("tabindex",i.selectedIndex===n?0:null)("aria-labelledby",i._getStepLabelId(n))("aria-expanded",i.selectedIndex===n),l.Eb(1),l.oc("ngTemplateOutlet",e.content)}}let be=(()=>{class e extends B{}return e.\u0275fac=function(t){return pe(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["","matStepLabel",""]],features:[l.Bb]}),e})();const pe=l.Zb(be);let me=(()=>{class e{constructor(){this.changes=new N.a,this.optionalLabel="Optional"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(l.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const ue={provide:me,deps:[[new l.C,new l.L,me]],useFactory:function(e){return e||new me}};let he=(()=>{class e extends L{constructor(e,t,n,i){super(n),this._intl=e,this._focusMonitor=t,t.monitor(n,!0),this._intlSubscription=e.changes.subscribe(()=>i.markForCheck())}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(){this._focusMonitor.focusVia(this._elementRef,"program")}_stringLabel(){return this.label instanceof be?null:this.label}_templateLabel(){return this.label instanceof be?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(me),l.Rb(O.e),l.Rb(l.m),l.Rb(l.i))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[l.Bb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],[3,"ngTemplateOutlet",4,"ngIf"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(l.Sb(0,"div",0),l.Xb(1,"div"),l.Xb(2,"div",1),l.Bc(3,Q,1,2,"ng-container",2),l.Bc(4,te,3,2,"ng-container",3),l.Wb(),l.Wb(),l.Xb(5,"div",4),l.Bc(6,ne,1,1,"ng-container",5),l.Bc(7,ie,2,1,"div",6),l.Bc(8,re,2,1,"div",7),l.Bc(9,oe,2,1,"div",8),l.Wb()),2&e&&(l.oc("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),l.Eb(1),l.Hb("mat-step-icon-state-",t.state," mat-step-icon"),l.Ib("mat-step-icon-selected",t.selected),l.Eb(1),l.oc("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),l.Eb(1),l.oc("ngSwitchCase",!0),l.Eb(2),l.Ib("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),l.Eb(1),l.oc("ngIf",t._templateLabel()),l.Eb(1),l.oc("ngIf",t._stringLabel()),l.Eb(1),l.oc("ngIf",t.optional&&"error"!=t.state),l.Eb(1),l.oc("ngIf","error"==t.state))},directives:[$.m,i.m,i.n,i.o,i.k,i.p,m.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})();const ge={horizontalStepTransition:Object(K.m)("stepTransition",[Object(K.j)("previous",Object(K.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(K.j)("current",Object(K.k)({transform:"none",visibility:"visible"})),Object(K.j)("next",Object(K.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(K.l)("* => *",Object(K.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(K.m)("stepTransition",[Object(K.j)("previous",Object(K.k)({height:"0px",visibility:"hidden"})),Object(K.j)("next",Object(K.k)({height:"0px",visibility:"hidden"})),Object(K.j)("current",Object(K.k)({height:"*",visibility:"visible"})),Object(K.l)("* <=> current",Object(K.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let fe=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.N))},e.\u0275dir=l.Mb({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),e})(),ve=(()=>{class e extends z{constructor(e,t,n){super(e,n),this._errorStateMatcher=t}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Object(l.V)(()=>_e)),l.Rb($.a,4),l.Rb(Z,8))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-step"]],contentQueries:function(e,t,n){var i;1&e&&l.Kb(n,be,!0),2&e&&l.qc(i=l.gc())&&(t.stepLabel=i.first)},exportAs:["matStep"],features:[l.Db([{provide:$.a,useExisting:e},{provide:z,useExisting:e}]),l.Bb],ngContentSelectors:se,decls:1,vars:0,template:function(e,t){1&e&&(l.nc(),l.Bc(0,ae,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),_e=(()=>{class e extends Y{constructor(){super(...arguments),this.animationDone=new l.p,this._iconOverrides={},this._animationDone=new N.a}ngAfterContentInit(){this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this._steps.changes.pipe(Object(A.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(U.a)((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Object(A.a)(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}}return e.\u0275fac=function(t){return De(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["","matStepper",""]],contentQueries:function(e,t,n){var i;1&e&&(l.Kb(n,ve,!0),l.Kb(n,fe,!0)),2&e&&(l.qc(i=l.gc())&&(t._steps=i),l.qc(i=l.gc())&&(t._icons=i))},viewQuery:function(e,t){var n;1&e&&l.Ic(he,!0),2&e&&l.qc(n=l.gc())&&(t._stepHeader=n)},inputs:{disableRipple:"disableRipple"},outputs:{animationDone:"animationDone"},features:[l.Db([{provide:Y,useExisting:e}]),l.Bb]}),e})();const De=l.Zb(_e);let xe=(()=>{class e extends _e{constructor(){super(...arguments),this.labelPosition="end"}}return e.\u0275fac=function(t){return ye(t||e)},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(e,t){2&e&&l.Ib("mat-stepper-label-position-end","end"==t.labelPosition)("mat-stepper-label-position-bottom","bottom"==t.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[l.Db([{provide:_e,useExisting:e},{provide:Y,useExisting:e}]),l.Bb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Bc(1,ce,3,18,"ng-container",1),l.Wb(),l.Xb(2,"div",2),l.Bc(3,de,2,6,"div",3),l.Wb()),2&e&&(l.Eb(1),l.oc("ngForOf",t.steps),l.Eb(2),l.oc("ngForOf",t.steps))},directives:[i.j,he,i.k,i.p],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:36px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;top:36px;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto;padding:24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;padding:24px;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[ge.horizontalStepTransition]},changeDetection:0}),e})();const ye=l.Zb(xe);let Ce=(()=>{class e extends V{}return e.\u0275fac=function(t){return Xe(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["button","matStepperNext",""]],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Bb]}),e})();const Xe=l.Zb(Ce);let Ee=(()=>{class e extends H{}return e.\u0275fac=function(t){return Se(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["button","matStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Bb]}),e})();const Se=l.Zb(Ee);let Fe=(()=>{class e{}return e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({factory:function(t){return new(t||e)},providers:[ue,$.a],imports:[[$.e,i.c,w.f,b.c,G,m.b,$.n],$.e]}),e})();var We=n("kmnG"),we=n("qFsG"),Oe=n("bSwM"),Re=n("5RNC");let Ie=(()=>{class e{constructor(e){this.ngControl=e}set appEnableControl(e){this.ngControl&&this.ngControl.control&&(e?this.ngControl.control.enable():this.ngControl.control.disable())}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(F.i))},e.\u0275dir=l.Mb({type:e,selectors:[["","appEnableControl",""]],inputs:{appEnableControl:"appEnableControl"}}),e})();function Te(e,t){1&e&&l.Dc(0,"Enter details")}function Ne(e,t){1&e&&l.Dc(0,"RenderTarget Settings")}function je(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"mat-form-field"),l.Sb(2,"input",16),l.Xb(3,"mat-error"),l.Dc(4,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(5,"mat-form-field",17),l.Sb(6,"input",18),l.Xb(7,"mat-error"),l.Dc(8,"Please enter a valid renderTarget"),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.jc();l.Eb(2),l.oc("appEnableControl",!1===e.renderTargetForm.get("is3DRendered").value),l.Eb(4),l.oc("appEnableControl",!1===e.renderTargetForm.get("is3DRendered").value)}}function ke(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Sb(3,"input",19),l.Xb(4,"mat-error"),l.Dc(5,"Please enter X Position"),l.Wb(),l.Xb(6,"mat-label"),l.Dc(7,"Position X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(8,"div"),l.Xb(9,"mat-form-field"),l.Sb(10,"input",20),l.Xb(11,"mat-error"),l.Dc(12,"Please enter Y Position"),l.Wb(),l.Xb(13,"mat-label"),l.Dc(14,"Position Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(15,"div"),l.Xb(16,"mat-form-field"),l.Sb(17,"input",21),l.Xb(18,"mat-error"),l.Dc(19,"Please enter Z Position"),l.Wb(),l.Xb(20,"mat-label"),l.Dc(21,"Position Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(22,"div"),l.Xb(23,"mat-form-field"),l.Sb(24,"input",22),l.Xb(25,"mat-error"),l.Dc(26,"Please enter X Rotation"),l.Wb(),l.Xb(27,"mat-label"),l.Dc(28,"Rotation X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(29,"div"),l.Xb(30,"mat-form-field"),l.Sb(31,"input",23),l.Xb(32,"mat-error"),l.Dc(33,"Please enter Y Rotation"),l.Wb(),l.Xb(34,"mat-label"),l.Dc(35,"Rotation Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Sb(38,"input",24),l.Xb(39,"mat-error"),l.Dc(40,"Please enter Z Rotation"),l.Wb(),l.Xb(41,"mat-label"),l.Dc(42,"Rotation Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(43,"div"),l.Xb(44,"mat-form-field"),l.Sb(45,"input",25),l.Xb(46,"mat-error"),l.Dc(47,"Please enter X Scale"),l.Wb(),l.Xb(48,"mat-label"),l.Dc(49,"Scale X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(50,"div"),l.Xb(51,"mat-form-field"),l.Sb(52,"input",26),l.Xb(53,"mat-error"),l.Dc(54,"Please enter Y Scale"),l.Wb(),l.Xb(55,"mat-label"),l.Dc(56,"Scale Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(57,"div"),l.Xb(58,"mat-form-field"),l.Sb(59,"input",27),l.Xb(60,"mat-error"),l.Dc(61,"Please enter Z Scale"),l.Wb(),l.Xb(62,"mat-label"),l.Dc(63,"Scale Z"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.jc();l.Eb(3),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value)}}function Ae(e,t){1&e&&l.Dc(0,"Sound Settings")}function Me(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"em"),l.Dc(3,"Sound Attenuation"),l.Wb(),l.Sb(4,"mat-slider",28),l.Dc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"em"),l.Dc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",29),l.Dc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"em"),l.Dc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",30),l.Dc(15),l.Wb(),l.Wb()),2&e){const e=l.jc();l.Eb(4),l.oc("max",100)("min",1),l.Eb(1),l.Fc(" ",e.soundForm.get("soundAttenuation").value," "),l.Eb(4),l.oc("min",1)("max",250),l.Eb(1),l.Fc(" ",e.soundForm.get("soundMinDistance").value," "),l.Eb(4),l.oc("min",1)("max",1e3),l.Eb(1),l.Fc(" ",e.soundForm.get("soundMaxDistance").value," ")}}function Pe(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Dc(4,"Model-Name"),l.Wb(),l.Sb(5,"input",10),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Dc(9,"RenderTarget-Name"),l.Wb(),l.Sb(10,"input",11),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.jc();l.Eb(5),l.oc("appEnableControl",!1===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!1===e.screenForm.get("is3DRendered").value)}}function Le(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Dc(4,"Position X"),l.Wb(),l.Sb(5,"input",12),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Dc(9,"Position Y"),l.Wb(),l.Sb(10,"input",13),l.Wb(),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-form-field"),l.Xb(13,"mat-label"),l.Dc(14,"Position Z"),l.Wb(),l.Sb(15,"input",14),l.Wb(),l.Wb(),l.Xb(16,"div"),l.Xb(17,"mat-form-field"),l.Xb(18,"mat-label"),l.Dc(19,"Rotation X"),l.Wb(),l.Sb(20,"input",15),l.Wb(),l.Wb(),l.Xb(21,"div"),l.Xb(22,"mat-form-field"),l.Xb(23,"mat-label"),l.Dc(24,"Rotation Y"),l.Wb(),l.Sb(25,"input",16),l.Wb(),l.Wb(),l.Xb(26,"div"),l.Xb(27,"mat-form-field"),l.Xb(28,"mat-label"),l.Dc(29,"Rotation Z"),l.Wb(),l.Sb(30,"input",17),l.Wb(),l.Wb(),l.Xb(31,"div"),l.Xb(32,"mat-form-field"),l.Xb(33,"mat-label"),l.Dc(34,"Scale X"),l.Wb(),l.Sb(35,"input",18),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Xb(38,"mat-label"),l.Dc(39,"Scale Y"),l.Wb(),l.Sb(40,"input",19),l.Wb(),l.Wb(),l.Xb(41,"div"),l.Xb(42,"mat-form-field"),l.Xb(43,"mat-label"),l.Dc(44,"Scale Z"),l.Wb(),l.Sb(45,"input",20),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.jc();l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===e.screenForm.get("is3DRendered").value)}}function Be(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-label"),l.Dc(3,"Sound-Attenuation"),l.Wb(),l.Sb(4,"mat-slider",21),l.Dc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-label"),l.Dc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",22),l.Dc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-label"),l.Dc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",23),l.Dc(15),l.Wb(),l.Wb()),2&e){const e=l.jc();l.Eb(4),l.oc("min",0)("max",100)("step",1),l.Eb(1),l.Fc(" ",e.screenForm.get("soundAttenuation").value," "),l.Eb(4),l.oc("min",1)("max",200)("step",1),l.Eb(1),l.Fc(" ",e.screenForm.get("soundMinDistance").value," "),l.Eb(4),l.oc("min",1)("max",1e3)("step",10),l.Eb(1),l.Fc(" ",e.screenForm.get("soundMaxDistance").value," ")}}const qe=[{path:"",component:S},{path:"create-new-screen",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t}get screenName(){return this.screenForm.get("name").value}get modelName(){return this.renderTargetForm.get("modelName").value}get renderTargetName(){return this.renderTargetForm.get("renderTargetName").value}get is3DRendered(){return this.renderTargetForm.get("is3DRendered").value}get positionX(){return this.renderTargetForm.get("positionX").value}get positionY(){return this.renderTargetForm.get("positionY").value}get positionZ(){return this.renderTargetForm.get("positionZ").value}get rotationX(){return this.renderTargetForm.get("rotationX").value}get rotationZ(){return this.renderTargetForm.get("rotationZ").value}get rotationY(){return this.renderTargetForm.get("rotationY").value}get scaleX(){return this.renderTargetForm.get("scaleX").value}get scaleZ(){return this.renderTargetForm.get("scaleZ").value}get scaleY(){return this.renderTargetForm.get("scaleY").value}get globalVolume(){return this.soundForm.get("globalVolume").value}get soundMaxDistance(){return this.soundForm.get("soundMaxDistance").value}get soundMinDistance(){return this.soundForm.get("soundMinDistance").value}get soundAttenuation(){return this.soundForm.get("soundAttenuation").value}get is3DAudioEnabled(){return this.soundForm.get("is3DAudioEnabled").value}get alwaysOn(){return this.screenForm.get("alwaysOn").value}ngOnInit(){this.screenForm=this.fb.group({name:["",[F.q.required]],alwaysOn:[!1]}),this.renderTargetForm=this.fb.group({modelName:["",[F.q.required]],renderTargetName:["",[F.q.required]],is3DRendered:[!1],positionX:[0,[F.q.required]],positionY:[0,[F.q.required]],positionZ:[0,[F.q.required]],rotationX:[0,[F.q.required]],rotationY:[0,[F.q.required]],rotationZ:[0,[F.q.required]],scaleX:[0,[F.q.required]],scaleY:[0,[F.q.required]],scaleZ:[0,[F.q.required]]}),this.soundForm=this.fb.group({globalVolume:[100],soundAttenuation:[5],soundMinDistance:[15],soundMaxDistance:[100],is3DAudioEnabled:[!0]}),this.renderTargetForm.get("is3DRendered").valueChanges.subscribe(e=>{e?(this.renderTargetForm.get("modelName").disable(),this.renderTargetForm.get("renderTargetName").disable(),this.renderTargetForm.get("positionX").enable(),this.renderTargetForm.get("positionY").enable(),this.renderTargetForm.get("positionZ").enable(),this.renderTargetForm.get("scaleX").enable(),this.renderTargetForm.get("scaleY").enable(),this.renderTargetForm.get("scaleZ").enable(),this.renderTargetForm.get("rotationX").enable(),this.renderTargetForm.get("rotationY").enable(),this.renderTargetForm.get("rotationZ").enable()):(this.renderTargetForm.get("modelName").enable(),this.renderTargetForm.get("renderTargetName").enable(),this.renderTargetForm.get("positionX").disable(),this.renderTargetForm.get("positionY").disable(),this.renderTargetForm.get("positionZ").disable(),this.renderTargetForm.get("scaleX").disable(),this.renderTargetForm.get("scaleY").disable(),this.renderTargetForm.get("scaleZ").disable(),this.renderTargetForm.get("rotationX").disable(),this.renderTargetForm.get("rotationY").disable(),this.renderTargetForm.get("rotationZ").disable())})}createScreen(){this.nuiService.createScreen(this.screenName,this.alwaysOn,this.globalVolume,this.soundAttenuation,this.soundMinDistance,this.soundMaxDistance,this.is3DRendered,this.is3DAudioEnabled,this.modelName,this.renderTargetName,this.positionX,this.positionY,this.positionZ,this.rotationX,this.rotationY,this.rotationZ,this.scaleX,this.scaleY,this.scaleZ)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(F.c),l.Rb(c.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-create-new-screen"]],decls:55,vars:13,consts:[[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],["matInput","","placeholder","Name","formControlName","name","required",""],[2,"padding-bottom","5px","padding-top","20px"],["matTooltip","whether to always show the screen even if no video is playing","formControlName","alwaysOn"],["mat-button","","matStepperNext",""],["formControlName","is3DRendered"],[4,"ngIf"],["mat-button","","matStepperPrevious",""],[2,"margin-top","20px"],["thumbLabel","","step","1","value","100","formControlName","globalVolume",3,"max","min"],["formControlName","is3DAudioEnabled"],["mat-raised-button","","color","primary",3,"click"],["matInput","","matTooltip","The name of the model to which the rendertarget belongs","placeholder","Model-Name","formControlName","modelName","required","",3,"appEnableControl"],[2,"padding-left","5px"],["matInput","","placeholder","RenderTarget Name","formControlName","renderTargetName","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","positionX","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","positionY","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","positionZ","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","rotationX","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","rotationY","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","rotationZ","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","scaleX","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","scaleY","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","scaleZ","required","",3,"appEnableControl"],["thumbLabel","","step","1","value","5","formControlName","soundAttenuation",3,"max","min"],["step","1","thumbLabel","","value","10","formControlName","soundMinDistance",3,"min","max"],["step","10","thumbLabel","","value","100","formControlName","soundMaxDistance",3,"min","max"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card"),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Dc(3,"Create Screen"),l.Wb(),l.Xb(4,"mat-card-subtitle"),l.Dc(5,"Create a new Screen which can be used to play videos on"),l.Wb(),l.Wb(),l.Xb(6,"mat-card-content"),l.Xb(7,"mat-horizontal-stepper",0,1),l.Xb(9,"mat-step",2),l.Xb(10,"form",3),l.Bc(11,Te,1,0,"ng-template",4),l.Xb(12,"mat-form-field"),l.Sb(13,"input",5),l.Xb(14,"mat-hint"),l.Dc(15,"The name is for you to better distinct between screens and "),l.Xb(16,"strong"),l.Dc(17,"must be unique!"),l.Wb(),l.Wb(),l.Xb(18,"mat-error"),l.Dc(19,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(20,"div",6),l.Xb(21,"mat-checkbox",7),l.Dc(22,"Always On"),l.Wb(),l.Wb(),l.Xb(23,"div"),l.Xb(24,"button",8),l.Dc(25,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(26,"mat-step",2),l.Xb(27,"form",3),l.Bc(28,Ne,1,0,"ng-template",4),l.Xb(29,"mat-checkbox",9),l.Dc(30,"Is 3D Rendered"),l.Wb(),l.Bc(31,je,9,2,"div",10),l.Bc(32,ke,64,9,"div",10),l.Xb(33,"div"),l.Xb(34,"button",11),l.Dc(35,"Back"),l.Wb(),l.Xb(36,"button",8),l.Dc(37,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(38,"mat-step",2),l.Xb(39,"form",3),l.Bc(40,Ae,1,0,"ng-template",4),l.Xb(41,"div",12),l.Xb(42,"em"),l.Dc(43,"Global Volume"),l.Wb(),l.Sb(44,"mat-slider",13),l.Dc(45),l.Wb(),l.Xb(46,"div"),l.Xb(47,"mat-checkbox",14),l.Dc(48,"Use 3D Audio"),l.Wb(),l.Wb(),l.Bc(49,Me,16,9,"div",10),l.Xb(50,"div"),l.Xb(51,"button",11),l.Dc(52,"Back"),l.Wb(),l.Xb(53,"button",15),l.fc("click",(function(){return t.createScreen()})),l.Dc(54,"Submit"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Eb(7),l.oc("linear",!0),l.Eb(2),l.oc("stepControl",t.screenForm),l.Eb(1),l.oc("formGroup",t.screenForm),l.Eb(16),l.oc("stepControl",t.renderTargetForm),l.Eb(1),l.oc("formGroup",t.renderTargetForm),l.Eb(4),l.oc("ngIf",!1===t.renderTargetForm.get("is3DRendered").value),l.Eb(1),l.oc("ngIf",!0===t.renderTargetForm.get("is3DRendered").value),l.Eb(6),l.oc("stepControl",t.soundForm),l.Eb(1),l.oc("formGroup",t.soundForm),l.Eb(5),l.oc("max",100)("min",1),l.Eb(1),l.Fc(" ",t.soundForm.get("globalVolume").value," "),l.Eb(4),l.oc("ngIf",!1===t.soundForm.get("is3DAudioEnabled").value))},directives:[W.a,W.c,W.f,W.e,W.b,xe,ve,F.r,F.k,F.e,be,We.c,we.a,F.b,F.j,F.d,F.p,We.f,We.b,Oe.a,p.a,b.b,Ce,i.k,Ee,Re.a,Ie,F.n,We.g],styles:[""]}),e})()},{path:"edit-screen",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t,this.screenForm=this.fb.group({screenName:["",[F.q.required]],modelName:["",[F.q.required]],renderTargetName:["",[F.q.required]],soundAttenuation:[5],is3DAudioEnabled:[!1],soundMaxDistance:[100],soundMinDistance:[10],globalVolume:[100],alwaysOn:[!1],is3DRendered:[!1],positionX:[0],positionY:[0],positionZ:[0],rotationX:[0],rotationY:[0],rotationZ:[0],scaleX:[0],scaleY:[0],scaleZ:[0]})}ngOnInit(){this.screen.subscribe(e=>{e&&(this.screenId=e.id,this.screenForm.patchValue({screenName:e.name,modelName:e.is3DRendered?"":e.targetSettings.modelName,renderTargetName:e.is3DRendered?"":e.targetSettings.renderTargetName,soundAttenuation:e.browserSettings.soundAttenuation,soundMinDistance:e.browserSettings.soundMinDistance,soundMaxDistance:e.browserSettings.soundMaxDistance,globalVolume:e.browserSettings.globalVolume,alwaysOn:e.alwaysOn,is3DRendered:e.is3DRendered,positionX:e.is3DRendered?e.positionalSettings.positionX:0,positionY:e.is3DRendered?e.positionalSettings.positionY:0,positionZ:e.is3DRendered?e.positionalSettings.positionZ:0,rotationX:e.is3DRendered?e.positionalSettings.rotationX:0,rotationY:e.is3DRendered?e.positionalSettings.rotationY:0,rotationZ:e.is3DRendered?e.positionalSettings.rotationZ:0,scaleX:e.is3DRendered?e.positionalSettings.scaleX:0,scaleY:e.is3DRendered?e.positionalSettings.scaleY:0,scaleZ:e.is3DRendered?e.positionalSettings.scaleZ:0,is3DAudioEnabled:e.browserSettings.is3DAudioEnabled}))}),this.screenForm.get("is3DRendered").valueChanges.subscribe(e=>{e?(this.screenForm.get("renderTargetName").disable(),this.screenForm.get("modelName").disable(),this.screenForm.get("positionX").enable(),this.screenForm.get("positionY").enable(),this.screenForm.get("positionZ").enable(),this.screenForm.get("rotationX").enable(),this.screenForm.get("rotationY").enable(),this.screenForm.get("rotationZ").enable(),this.screenForm.get("scaleX").enable(),this.screenForm.get("scaleY").enable(),this.screenForm.get("scaleZ").enable()):(this.screenForm.get("renderTargetName").enable(),this.screenForm.get("modelName").enable(),this.screenForm.get("positionX").disable(),this.screenForm.get("positionY").disable(),this.screenForm.get("positionZ").disable(),this.screenForm.get("rotationX").disable(),this.screenForm.get("rotationY").disable(),this.screenForm.get("rotationZ").disable(),this.screenForm.get("scaleX").disable(),this.screenForm.get("scaleY").disable(),this.screenForm.get("scaleZ").disable())})}submit(){this.nuiService.editScreen(this.screenForm.get("screenName").value,this.screenId,this.screenForm.get("is3DRendered").value,this.screenForm.get("alwaysOn").value,this.screenForm.get("modelName").value,this.screenForm.get("renderTargetName").value,this.screenForm.get("globalVolume").value,this.screenForm.get("soundAttenuation").value,this.screenForm.get("soundMinDistance").value,this.screenForm.get("soundMaxDistance").value,this.screenForm.get("positionX").value,this.screenForm.get("positionY").value,this.screenForm.get("positionZ").value,this.screenForm.get("rotationX").value,this.screenForm.get("rotationY").value,this.screenForm.get("rotationZ").value,this.screenForm.get("scaleX").value,this.screenForm.get("scaleY").value,this.screenForm.get("scaleZ").value,this.screenForm.get("is3DAudioEnabled").value)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(F.c),l.Rb(c.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-edit-screen"]],decls:31,vars:8,consts:[[2,"display","flex"],[1,"form-container"],[3,"formGroup"],["matInput","","formControlName","screenName","name","screenName","required",""],["formControlName","alwaysOn"],["formControlName","is3DRendered",2,"margin-left","10px"],[4,"ngIf"],["thumbLabel","","formControlName","globalVolume",3,"min","max","step"],["formControlName","is3DAudioEnabled",2,"margin-left","10px"],["mat-raised-button","","color","accent","type","submit",2,"display","flex","margin-top","-10px","float","right","margin-right","-70px",3,"click"],["matInput","","formControlName","modelName","name","modelName","required","",3,"appEnableControl"],["matInput","","formControlName","renderTargetName","name","renderTargetName","required","",3,"appEnableControl"],["matInput","","formControlName","positionX","type","number","name","positionX","required","",3,"appEnableControl"],["matInput","","formControlName","positionY","name","positionY","type","number","required","",3,"appEnableControl"],["matInput","","formControlName","positionZ","type","number","name","positionZ","required","",3,"appEnableControl"],["matInput","","formControlName","rotationX","name","rotationX","type","number","required","",3,"appEnableControl"],["matInput","","formControlName","rotationY","type","number","name","rotationY","required","",3,"appEnableControl"],["matInput","","formControlName","rotationZ","type","number","name","rotationZ","required","",3,"appEnableControl"],["matInput","","formControlName","scaleX","type","number","name","scaleX","required","",3,"appEnableControl"],["matInput","","formControlName","scaleY","type","number","name","scaleY","required","",3,"appEnableControl"],["matInput","","formControlName","scaleZ","type","number","name","scaleZ","required","",3,"appEnableControl"],["thumbLabel","","formControlName","soundAttenuation",3,"min","max","step"],["thumbLabel","","formControlName","soundMinDistance",3,"min","max","step"],["thumbLabel","","formControlName","soundMaxDistance",3,"min","max","step"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card",0),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Dc(3,"Edit Screen"),l.Wb(),l.Wb(),l.Xb(4,"mat-card-content"),l.Xb(5,"div",1),l.Xb(6,"form",2),l.Xb(7,"div"),l.Xb(8,"mat-form-field"),l.Xb(9,"mat-label"),l.Dc(10,"Name"),l.Wb(),l.Sb(11,"input",3),l.Wb(),l.Wb(),l.Xb(12,"div"),l.Xb(13,"mat-checkbox",4),l.Dc(14,"Always On"),l.Wb(),l.Xb(15,"mat-checkbox",5),l.Dc(16,"3D Rendered"),l.Wb(),l.Wb(),l.Bc(17,Pe,11,2,"div",6),l.Bc(18,Le,46,9,"div",6),l.Xb(19,"div"),l.Xb(20,"mat-label"),l.Dc(21,"Global Volume"),l.Wb(),l.Sb(22,"mat-slider",7),l.Dc(23),l.Wb(),l.Xb(24,"div"),l.Xb(25,"mat-checkbox",8),l.Dc(26,"Enable 3D Audio"),l.Wb(),l.Wb(),l.Bc(27,Be,16,12,"div",6),l.Sb(28,"div"),l.Xb(29,"button",9),l.fc("click",(function(){return t.submit()})),l.Dc(30,"Submit "),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Eb(6),l.oc("formGroup",t.screenForm),l.Eb(11),l.oc("ngIf",!1===t.screenForm.get("is3DRendered").value),l.Eb(1),l.oc("ngIf",!0===t.screenForm.get("is3DRendered").value),l.Eb(4),l.oc("min",1)("max",100)("step",1),l.Eb(1),l.Fc(" ",t.screenForm.get("globalVolume").value," "),l.Eb(4),l.oc("ngIf",!1===t.screenForm.get("is3DAudioEnabled").value))},directives:[W.a,W.c,W.f,W.b,F.r,F.k,F.e,We.c,We.g,we.a,F.b,F.j,F.d,F.p,Oe.a,i.k,Re.a,b.b,Ie,F.n],styles:[".form-container[_ngcontent-%COMP%]{max-height:380px}"]}),Object(o.a)([Object(a.d)(s.a.getSelectedScreen)],e.prototype,"screen",void 0),e})()}];let Ze=(()=>{class e{}return e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({factory:function(t){return new(t||e)},imports:[[r.d.forChild(qe)],r.d]}),e})();var ze=n("rDax"),Ye=n("NXyV"),Ve=n("pLZG"),He=n("IzEk");function Ge(e,t){}class $e{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Ue={dialogContainer:Object(K.m)("dialogContainer",[Object(K.j)("void, exit",Object(K.k)({opacity:0,transform:"scale(0.7)"})),Object(K.j)("enter",Object(K.k)({transform:"none"})),Object(K.l)("* => enter",Object(K.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(K.k)({transform:"none",opacity:1}))),Object(K.l)("* => void, * => exit",Object(K.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(K.k)({opacity:0})))])};function Ke(){throw Error("Attempting to attach dialog content after content is already attached")}let Qe=(()=>{class e extends w.a{constructor(e,t,n,i,r){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=r,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new l.p,this.attachDomPortal=e=>(this._portalOutlet.hasAttached()&&Ke(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}attachComponentPortal(e){return this._portalOutlet.hasAttached()&&Ke(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached()&&Ke(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}_trapFocus(){const e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.m),l.Rb(O.f),l.Rb(l.i),l.Rb(i.d,8),l.Rb($e))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var n;1&e&&l.zc(w.b,!0),2&e&&l.qc(n=l.gc())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&l.Jb("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(l.Fb("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),l.Hc("@dialogContainer",t._state))},features:[l.Bb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&l.Bc(0,Ge,0,0,"ng-template",0)},directives:[w.b],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Ue.dialogContainer]}}),e})(),Je=0;class et{constructor(e,t,n=`mat-dialog-${Je++}`){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new N.a,this._afterClosed=new N.a,this._beforeClosed=new N.a,this._state=0,t._id=n,t._animationStateChanged.pipe(Object(Ve.a)(e=>"done"===e.phaseName&&"enter"===e.toState),Object(He.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Object(Ve.a)(e=>"done"===e.phaseName&&"exit"===e.toState),Object(He.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(Object(Ve.a)(e=>e.keyCode===T.g&&!this.disableClose&&!Object(T.s)(e))).subscribe(e=>{e.preventDefault(),this.close()})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Object(Ve.a)(e=>"start"===e.phaseName),Object(He.a)(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},t.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const tt=new l.s("MatDialogData"),nt=new l.s("mat-dialog-default-options"),it=new l.s("mat-dialog-scroll-strategy"),rt={provide:it,deps:[ze.c],useFactory:function(e){return()=>e.scrollStrategies.block()}};let ot=(()=>{class e{constructor(e,t,n,i,r,o,a){this._overlay=e,this._injector=t,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N.a,this._afterOpenedAtThisLevel=new N.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(Ye.a)(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(Object(k.a)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}open(e,t){if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new $e)).id&&this.getDialogById(t.id))throw Error(`Dialog with id "${t.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new ze.d({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=l.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:$e,useValue:t}]}),i=new w.c(Qe,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const r=new et(n,t,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe(()=>{r.disableClose||r.close()}),e instanceof l.N)t.attachTemplatePortal(new w.g(e,null,{$implicit:i.data,dialogRef:r}));else{const n=this._createInjector(i,r,t),o=t.attachComponentPortal(new w.c(e,i.viewContainerRef,n));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:Qe,useValue:n},{provide:tt,useValue:e.data},{provide:et,useValue:t}];return!e.direction||i&&i.get(R.b,null)||r.push({provide:R.b,useValue:{value:e.direction,change:Object(j.a)()}}),l.t.create({parent:i||this._injector,providers:r})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(l.bc(ze.c),l.bc(l.t),l.bc(i.g,8),l.bc(nt,8),l.bc(it),l.bc(e,12),l.bc(ze.e))},e.\u0275prov=l.Nb({token:e,factory:e.\u0275fac}),e})(),at=(()=>{class e{}return e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({factory:function(t){return new(t||e)},providers:[ot,rt],imports:[[ze.f,w.f,$.e],$.e]}),e})();var st=n("d3UM"),lt=n("hh/h");let ct=(()=>{class e{}return e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({factory:function(t){return new(t||e)},imports:[[i.c,Ze,m.b,b.c,d.k,at,W.d,F.o,We.e,st.b,Fe,we.b,Re.b,Oe.b,F.f,p.b,lt.QuickPlayModule]]}),e})()}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/7-es5.js b/resources/Hypnonema/client/html/7-es5.js deleted file mode 100644 index e2de5d1cf..000000000 --- a/resources/Hypnonema/client/html/7-es5.js +++ /dev/null @@ -1 +0,0 @@ -function _createSuper(e){return function(){var t,n=_getPrototypeOf(e);if(_isNativeReflectConstruct()){var a=_getPrototypeOf(this).constructor;t=Reflect.construct(n,arguments,a)}else t=n.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",n=this.steps.toArray()[e],a=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,a):this._getGuidelineLogic(n,a,t)}},{key:"_getDefaultIndicatorLogic",value:function(e,t){return e._showError&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return e._showError&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?n:e.editable&&t?"edit":n}},{key:"_isCurrentStep",value:function(e){return this._selectedIndex===e}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(e){var t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}},{key:"_onKeydown",value:function(e){var t=Object(T.s)(e),n=e.keyCode,a=this._keyManager;null==a.activeItemIndex||t||n!==T.n&&n!==T.f?n===T.h?(a.setFirstItemActive(),e.preventDefault()):n===T.e?(a.setLastItemActive(),e.preventDefault()):a.onKeydown(e):(this.selectedIndex=a.activeItemIndex,e.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(e){var t=this.steps.toArray();return t[this._selectedIndex].interacted=!0,!!(this._linear&&e>=0)&&t.slice(0,e).some((function(e){var t=e.stepControl;return(t?t.invalid||t.pending||!e.interacted:!e.completed)&&!e.optional&&!e._completedOverride}))}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){if(!this._document||!this._elementRef)return!1;var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}},{key:"steps",get:function(){return this._steps}},{key:"linear",get:function(){return this._linear},set:function(e){this._linear=Object(I.c)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var t=Object(I.f)(e);if(this.steps){if(t<0||t>this.steps.length-1)throw Error("cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.");this._selectedIndex!=t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(e)}else this._selectedIndex=t}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(e){this.selectedIndex=this.steps?this.steps.toArray().indexOf(e):-1}}]),e}()).\u0275fac=function(e){return new(e||Y)(l.Rb(R.b,8),l.Rb(l.i),l.Rb(l.m),l.Rb(a.d))},Y.\u0275dir=l.Mb({type:Y,selectors:[["","cdkStepper",""]],contentQueries:function(e,t,n){var a;1&e&&(l.Kb(n,Q,!0),l.Kb(n,G,!0)),2&e&&(l.qc(a=l.gc())&&(t._steps=a),l.qc(a=l.gc())&&(t._stepHeader=a))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),Y),ee=((Z=function(){function e(t){_classCallCheck(this,e),this._stepper=t,this.type="submit"}return _createClass(e,[{key:"_handleClick",value:function(){this._stepper.next()}}]),e}()).\u0275fac=function(e){return new(e||Z)(l.Rb(J))},Z.\u0275dir=l.Mb({type:Z,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.fc("click",(function(){return t._handleClick()})),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),Z),te=((z=function(){function e(t){_classCallCheck(this,e),this._stepper=t,this.type="button"}return _createClass(e,[{key:"_handleClick",value:function(){this._stepper.previous()}}]),e}()).\u0275fac=function(e){return new(e||z)(l.Rb(J))},z.\u0275dir=l.Mb({type:z,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.fc("click",(function(){return t._handleClick()})),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),z),ne=((q=function e(){_classCallCheck(this,e)}).\u0275mod=l.Pb({type:q}),q.\u0275inj=l.Ob({factory:function(e){return new(e||q)},imports:[[R.a]]}),q),ae=n("FKr1"),ie=n("/uUt"),re=n("R0Ic");function oe(e,t){if(1&e&&l.Tb(0,9),2&e){var n=l.jc();l.oc("ngTemplateOutlet",n.iconOverrides[n.state])("ngTemplateOutletContext",n._getIconContext())}}function se(e,t){if(1&e&&(l.Xb(0,"span"),l.Dc(1),l.Wb()),2&e){var n=l.jc(2);l.Eb(1),l.Ec(n._getDefaultTextForState(n.state))}}function le(e,t){if(1&e&&(l.Xb(0,"mat-icon"),l.Dc(1),l.Wb()),2&e){var n=l.jc(2);l.Eb(1),l.Ec(n._getDefaultTextForState(n.state))}}function ce(e,t){if(1&e&&(l.Vb(0,10),l.Bc(1,se,2,1,"span",11),l.Bc(2,le,2,1,"mat-icon",12),l.Ub()),2&e){var n=l.jc();l.oc("ngSwitch",n.state),l.Eb(1),l.oc("ngSwitchCase","number")}}function ue(e,t){if(1&e&&l.Tb(0,13),2&e){var n=l.jc();l.oc("ngTemplateOutlet",n._templateLabel().template)}}function de(e,t){if(1&e&&(l.Xb(0,"div",14),l.Dc(1),l.Wb()),2&e){var n=l.jc();l.Eb(1),l.Ec(n.label)}}function be(e,t){if(1&e&&(l.Xb(0,"div",15),l.Dc(1),l.Wb()),2&e){var n=l.jc();l.Eb(1),l.Ec(n._intl.optionalLabel)}}function pe(e,t){if(1&e&&(l.Xb(0,"div",16),l.Dc(1),l.Wb()),2&e){var n=l.jc();l.Eb(1),l.Ec(n.errorMessage)}}function me(e,t){1&e&&l.mc(0)}var he=["*"];function fe(e,t){1&e&&l.Sb(0,"div",6)}function ge(e,t){if(1&e){var n=l.Yb();l.Vb(0),l.Xb(1,"mat-step-header",4),l.fc("click",(function(){return t.$implicit.select()}))("keydown",(function(e){return l.uc(n),l.jc()._onKeydown(e)})),l.Wb(),l.Bc(2,fe,1,0,"div",5),l.Ub()}if(2&e){var a=t.$implicit,i=t.index,r=t.last,o=l.jc();l.Eb(1),l.oc("tabIndex",o._getFocusIndex()===i?0:-1)("id",o._getStepLabelId(i))("index",i)("state",o._getIndicatorType(i,a.state))("label",a.stepLabel||a.label)("selected",o.selectedIndex===i)("active",a.completed||o.selectedIndex===i||!o.linear)("optional",a.optional)("errorMessage",a.errorMessage)("iconOverrides",o._iconOverrides)("disableRipple",o.disableRipple),l.Fb("aria-posinset",i+1)("aria-setsize",o.steps.length)("aria-controls",o._getStepContentId(i))("aria-selected",o.selectedIndex==i)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null),l.Eb(1),l.oc("ngIf",!r)}}function ve(e,t){if(1&e){var n=l.Yb();l.Xb(0,"div",7),l.fc("@stepTransition.done",(function(e){return l.uc(n),l.jc()._animationDone.next(e)})),l.Tb(1,8),l.Wb()}if(2&e){var a=t.$implicit,i=t.index,r=l.jc();l.oc("@stepTransition",r._getAnimationDirection(i))("id",r._getStepContentId(i)),l.Fb("tabindex",r.selectedIndex===i?0:null)("aria-labelledby",r._getStepLabelId(i))("aria-expanded",r.selectedIndex===i),l.Eb(1),l.oc("ngTemplateOutlet",a.content)}}var _e,ye,Ce,De,xe,ke,Xe,Ee,Se,Oe,we,Fe=((_e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(U)).\u0275fac=function(e){return We(e||_e)},_e.\u0275dir=l.Mb({type:_e,selectors:[["","matStepLabel",""]],features:[l.Bb]}),_e),We=l.Zb(Fe),Re=((ye=function e(){_classCallCheck(this,e),this.changes=new N.a,this.optionalLabel="Optional"}).\u0275fac=function(e){return new(e||ye)},ye.\u0275prov=Object(l.Nb)({factory:function(){return new ye},token:ye,providedIn:"root"}),ye),Ie={provide:Re,deps:[[new l.C,new l.L,Re]],useFactory:function(e){return e||new Re}},Te=((Ce=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,i))._intl=e,o._focusMonitor=a,a.monitor(i,!0),o._intlSubscription=e.changes.subscribe((function(){return r.markForCheck()})),o}return _createClass(n,[{key:"ngOnDestroy",value:function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){this._focusMonitor.focusVia(this._elementRef,"program")}},{key:"_stringLabel",value:function(){return this.label instanceof Fe?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof Fe?this.label:null}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_getIconContext",value:function(){return{index:this.index,active:this.active,optional:this.optional}}},{key:"_getDefaultTextForState",value:function(e){return"number"==e?"".concat(this.index+1):"edit"==e?"create":"error"==e?"warning":e}}]),n}(G)).\u0275fac=function(e){return new(e||Ce)(l.Rb(Re),l.Rb(W.e),l.Rb(l.m),l.Rb(l.i))},Ce.\u0275cmp=l.Lb({type:Ce,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[l.Bb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],[3,"ngTemplateOutlet",4,"ngIf"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(l.Sb(0,"div",0),l.Xb(1,"div"),l.Xb(2,"div",1),l.Bc(3,oe,1,2,"ng-container",2),l.Bc(4,ce,3,2,"ng-container",3),l.Wb(),l.Wb(),l.Xb(5,"div",4),l.Bc(6,ue,1,1,"ng-container",5),l.Bc(7,de,2,1,"div",6),l.Bc(8,be,2,1,"div",7),l.Bc(9,pe,2,1,"div",8),l.Wb()),2&e&&(l.oc("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),l.Eb(1),l.Hb("mat-step-icon-state-",t.state," mat-step-icon"),l.Ib("mat-step-icon-selected",t.selected),l.Eb(1),l.oc("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),l.Eb(1),l.oc("ngSwitchCase",!0),l.Eb(2),l.Ib("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),l.Eb(1),l.oc("ngIf",t._templateLabel()),l.Eb(1),l.oc("ngIf",t._stringLabel()),l.Eb(1),l.oc("ngIf",t.optional&&"error"!=t.state),l.Eb(1),l.oc("ngIf","error"==t.state))},directives:[ae.m,a.m,a.n,a.o,a.k,a.p,p.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),Ce),Ne={horizontalStepTransition:Object(re.m)("stepTransition",[Object(re.j)("previous",Object(re.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(re.j)("current",Object(re.k)({transform:"none",visibility:"visible"})),Object(re.j)("next",Object(re.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(re.l)("* => *",Object(re.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(re.m)("stepTransition",[Object(re.j)("previous",Object(re.k)({height:"0px",visibility:"hidden"})),Object(re.j)("next",Object(re.k)({height:"0px",visibility:"hidden"})),Object(re.j)("current",Object(re.k)({height:"*",visibility:"visible"})),Object(re.l)("* <=> current",Object(re.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},je=((ke=function e(t){_classCallCheck(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||ke)(l.Rb(l.N))},ke.\u0275dir=l.Mb({type:ke,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ke),Ae=((xe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i))._errorStateMatcher=a,r}return _createClass(n,[{key:"isErrorState",value:function(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}]),n}(Q)).\u0275fac=function(e){return new(e||xe)(l.Rb(Object(l.V)((function(){return Pe}))),l.Rb(ae.a,4),l.Rb(K,8))},xe.\u0275cmp=l.Lb({type:xe,selectors:[["mat-step"]],contentQueries:function(e,t,n){var a;1&e&&l.Kb(n,Fe,!0),2&e&&l.qc(a=l.gc())&&(t.stepLabel=a.first)},exportAs:["matStep"],features:[l.Db([{provide:ae.a,useExisting:xe},{provide:Q,useExisting:xe}]),l.Bb],ngContentSelectors:he,decls:1,vars:0,template:function(e,t){1&e&&(l.nc(),l.Bc(0,me,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),xe),Pe=((De=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).animationDone=new l.p,e._iconOverrides={},e._animationDone=new N.a,e}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._icons.forEach((function(t){var n=t.name,a=t.templateRef;return e._iconOverrides[n]=a})),this._steps.changes.pipe(Object(P.a)(this._destroyed)).subscribe((function(){e._stateChanged()})),this._animationDone.pipe(Object(ie.a)((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})),Object(P.a)(this._destroyed)).subscribe((function(t){"current"===t.toState&&e.animationDone.emit()}))}}]),n}(J)).\u0275fac=function(e){return Me(e||De)},De.\u0275dir=l.Mb({type:De,selectors:[["","matStepper",""]],contentQueries:function(e,t,n){var a;1&e&&(l.Kb(n,Ae,!0),l.Kb(n,je,!0)),2&e&&(l.qc(a=l.gc())&&(t._steps=a),l.qc(a=l.gc())&&(t._icons=a))},viewQuery:function(e,t){var n;1&e&&l.Ic(Te,!0),2&e&&l.qc(n=l.gc())&&(t._stepHeader=n)},inputs:{disableRipple:"disableRipple"},outputs:{animationDone:"animationDone"},features:[l.Db([{provide:J,useExisting:De}]),l.Bb]}),De),Me=l.Zb(Pe),Le=((Xe=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).labelPosition="end",e}return n}(Pe)).\u0275fac=function(e){return Be(e||Xe)},Xe.\u0275cmp=l.Lb({type:Xe,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(e,t){2&e&&l.Ib("mat-stepper-label-position-end","end"==t.labelPosition)("mat-stepper-label-position-bottom","bottom"==t.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[l.Db([{provide:Pe,useExisting:Xe},{provide:J,useExisting:Xe}]),l.Bb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Bc(1,ge,3,18,"ng-container",1),l.Wb(),l.Xb(2,"div",2),l.Bc(3,ve,2,6,"div",3),l.Wb()),2&e&&(l.Eb(1),l.oc("ngForOf",t.steps),l.Eb(2),l.oc("ngForOf",t.steps))},directives:[a.j,Te,a.k,a.p],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:36px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;top:36px;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto;padding:24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;padding:24px;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Ne.horizontalStepTransition]},changeDetection:0}),Xe),Be=l.Zb(Le),qe=((Ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(ee)).\u0275fac=function(e){return ze(e||Ee)},Ee.\u0275dir=l.Mb({type:Ee,selectors:[["button","matStepperNext",""]],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Bb]}),Ee),ze=l.Zb(qe),Ze=((Se=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(te)).\u0275fac=function(e){return Ye(e||Se)},Se.\u0275dir=l.Mb({type:Se,selectors:[["button","matStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Bb]}),Se),Ye=l.Zb(Ze),Ve=((Oe=function e(){_classCallCheck(this,e)}).\u0275mod=l.Pb({type:Oe}),Oe.\u0275inj=l.Ob({factory:function(e){return new(e||Oe)},providers:[Ie,ae.a],imports:[[ae.e,a.c,F.f,d.c,ne,p.b,ae.n],ae.e]}),Oe),He=n("kmnG"),Ge=n("qFsG"),Ue=n("bSwM"),$e=n("5RNC"),Ke=((we=function(){function e(t){_classCallCheck(this,e),this.ngControl=t}return _createClass(e,[{key:"appEnableControl",set:function(e){this.ngControl&&this.ngControl.control&&(e?this.ngControl.control.enable():this.ngControl.control.disable())}}]),e}()).\u0275fac=function(e){return new(e||we)(l.Rb(O.i))},we.\u0275dir=l.Mb({type:we,selectors:[["","appEnableControl",""]],inputs:{appEnableControl:"appEnableControl"}}),we);function Qe(e,t){1&e&&l.Dc(0,"Enter details")}function Je(e,t){1&e&&l.Dc(0,"RenderTarget Settings")}function et(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"mat-form-field"),l.Sb(2,"input",16),l.Xb(3,"mat-error"),l.Dc(4,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(5,"mat-form-field",17),l.Sb(6,"input",18),l.Xb(7,"mat-error"),l.Dc(8,"Please enter a valid renderTarget"),l.Wb(),l.Wb(),l.Wb()),2&e){var n=l.jc();l.Eb(2),l.oc("appEnableControl",!1===n.renderTargetForm.get("is3DRendered").value),l.Eb(4),l.oc("appEnableControl",!1===n.renderTargetForm.get("is3DRendered").value)}}function tt(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Sb(3,"input",19),l.Xb(4,"mat-error"),l.Dc(5,"Please enter X Position"),l.Wb(),l.Xb(6,"mat-label"),l.Dc(7,"Position X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(8,"div"),l.Xb(9,"mat-form-field"),l.Sb(10,"input",20),l.Xb(11,"mat-error"),l.Dc(12,"Please enter Y Position"),l.Wb(),l.Xb(13,"mat-label"),l.Dc(14,"Position Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(15,"div"),l.Xb(16,"mat-form-field"),l.Sb(17,"input",21),l.Xb(18,"mat-error"),l.Dc(19,"Please enter Z Position"),l.Wb(),l.Xb(20,"mat-label"),l.Dc(21,"Position Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(22,"div"),l.Xb(23,"mat-form-field"),l.Sb(24,"input",22),l.Xb(25,"mat-error"),l.Dc(26,"Please enter X Rotation"),l.Wb(),l.Xb(27,"mat-label"),l.Dc(28,"Rotation X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(29,"div"),l.Xb(30,"mat-form-field"),l.Sb(31,"input",23),l.Xb(32,"mat-error"),l.Dc(33,"Please enter Y Rotation"),l.Wb(),l.Xb(34,"mat-label"),l.Dc(35,"Rotation Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Sb(38,"input",24),l.Xb(39,"mat-error"),l.Dc(40,"Please enter Z Rotation"),l.Wb(),l.Xb(41,"mat-label"),l.Dc(42,"Rotation Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(43,"div"),l.Xb(44,"mat-form-field"),l.Sb(45,"input",25),l.Xb(46,"mat-error"),l.Dc(47,"Please enter X Scale"),l.Wb(),l.Xb(48,"mat-label"),l.Dc(49,"Scale X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(50,"div"),l.Xb(51,"mat-form-field"),l.Sb(52,"input",26),l.Xb(53,"mat-error"),l.Dc(54,"Please enter Y Scale"),l.Wb(),l.Xb(55,"mat-label"),l.Dc(56,"Scale Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(57,"div"),l.Xb(58,"mat-form-field"),l.Sb(59,"input",27),l.Xb(60,"mat-error"),l.Dc(61,"Please enter Z Scale"),l.Wb(),l.Xb(62,"mat-label"),l.Dc(63,"Scale Z"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e){var n=l.jc();l.Eb(3),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value),l.Eb(7),l.oc("appEnableControl",!0===n.renderTargetForm.get("is3DRendered").value)}}function nt(e,t){1&e&&l.Dc(0,"Sound Settings")}function at(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"em"),l.Dc(3,"Sound Attenuation"),l.Wb(),l.Sb(4,"mat-slider",28),l.Dc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"em"),l.Dc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",29),l.Dc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"em"),l.Dc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",30),l.Dc(15),l.Wb(),l.Wb()),2&e){var n=l.jc();l.Eb(4),l.oc("max",100)("min",1),l.Eb(1),l.Fc(" ",n.soundForm.get("soundAttenuation").value," "),l.Eb(4),l.oc("min",1)("max",250),l.Eb(1),l.Fc(" ",n.soundForm.get("soundMinDistance").value," "),l.Eb(4),l.oc("min",1)("max",1e3),l.Eb(1),l.Fc(" ",n.soundForm.get("soundMaxDistance").value," ")}}function it(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Dc(4,"Model-Name"),l.Wb(),l.Sb(5,"input",10),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Dc(9,"RenderTarget-Name"),l.Wb(),l.Sb(10,"input",11),l.Wb(),l.Wb(),l.Wb()),2&e){var n=l.jc();l.Eb(5),l.oc("appEnableControl",!1===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!1===n.screenForm.get("is3DRendered").value)}}function rt(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Dc(4,"Position X"),l.Wb(),l.Sb(5,"input",12),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Dc(9,"Position Y"),l.Wb(),l.Sb(10,"input",13),l.Wb(),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-form-field"),l.Xb(13,"mat-label"),l.Dc(14,"Position Z"),l.Wb(),l.Sb(15,"input",14),l.Wb(),l.Wb(),l.Xb(16,"div"),l.Xb(17,"mat-form-field"),l.Xb(18,"mat-label"),l.Dc(19,"Rotation X"),l.Wb(),l.Sb(20,"input",15),l.Wb(),l.Wb(),l.Xb(21,"div"),l.Xb(22,"mat-form-field"),l.Xb(23,"mat-label"),l.Dc(24,"Rotation Y"),l.Wb(),l.Sb(25,"input",16),l.Wb(),l.Wb(),l.Xb(26,"div"),l.Xb(27,"mat-form-field"),l.Xb(28,"mat-label"),l.Dc(29,"Rotation Z"),l.Wb(),l.Sb(30,"input",17),l.Wb(),l.Wb(),l.Xb(31,"div"),l.Xb(32,"mat-form-field"),l.Xb(33,"mat-label"),l.Dc(34,"Scale X"),l.Wb(),l.Sb(35,"input",18),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Xb(38,"mat-label"),l.Dc(39,"Scale Y"),l.Wb(),l.Sb(40,"input",19),l.Wb(),l.Wb(),l.Xb(41,"div"),l.Xb(42,"mat-form-field"),l.Xb(43,"mat-label"),l.Dc(44,"Scale Z"),l.Wb(),l.Sb(45,"input",20),l.Wb(),l.Wb(),l.Wb()),2&e){var n=l.jc();l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value),l.Eb(5),l.oc("appEnableControl",!0===n.screenForm.get("is3DRendered").value)}}function ot(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-label"),l.Dc(3,"Sound-Attenuation"),l.Wb(),l.Sb(4,"mat-slider",21),l.Dc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-label"),l.Dc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",22),l.Dc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-label"),l.Dc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",23),l.Dc(15),l.Wb(),l.Wb()),2&e){var n=l.jc();l.Eb(4),l.oc("min",0)("max",100)("step",1),l.Eb(1),l.Fc(" ",n.screenForm.get("soundAttenuation").value," "),l.Eb(4),l.oc("min",1)("max",200)("step",1),l.Eb(1),l.Fc(" ",n.screenForm.get("soundMinDistance").value," "),l.Eb(4),l.oc("min",1)("max",1e3)("step",10),l.Eb(1),l.Fc(" ",n.screenForm.get("soundMaxDistance").value," ")}}var st,lt,ct,ut=[{path:"",component:S},{path:"create-new-screen",component:(lt=function(){function e(t,n){_classCallCheck(this,e),this.fb=t,this.nuiService=n}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.screenForm=this.fb.group({name:["",[O.q.required]],alwaysOn:[!1]}),this.renderTargetForm=this.fb.group({modelName:["",[O.q.required]],renderTargetName:["",[O.q.required]],is3DRendered:[!1],positionX:[0,[O.q.required]],positionY:[0,[O.q.required]],positionZ:[0,[O.q.required]],rotationX:[0,[O.q.required]],rotationY:[0,[O.q.required]],rotationZ:[0,[O.q.required]],scaleX:[0,[O.q.required]],scaleY:[0,[O.q.required]],scaleZ:[0,[O.q.required]]}),this.soundForm=this.fb.group({globalVolume:[100],soundAttenuation:[5],soundMinDistance:[15],soundMaxDistance:[100],is3DAudioEnabled:[!0]}),this.renderTargetForm.get("is3DRendered").valueChanges.subscribe((function(t){t?(e.renderTargetForm.get("modelName").disable(),e.renderTargetForm.get("renderTargetName").disable(),e.renderTargetForm.get("positionX").enable(),e.renderTargetForm.get("positionY").enable(),e.renderTargetForm.get("positionZ").enable(),e.renderTargetForm.get("scaleX").enable(),e.renderTargetForm.get("scaleY").enable(),e.renderTargetForm.get("scaleZ").enable(),e.renderTargetForm.get("rotationX").enable(),e.renderTargetForm.get("rotationY").enable(),e.renderTargetForm.get("rotationZ").enable()):(e.renderTargetForm.get("modelName").enable(),e.renderTargetForm.get("renderTargetName").enable(),e.renderTargetForm.get("positionX").disable(),e.renderTargetForm.get("positionY").disable(),e.renderTargetForm.get("positionZ").disable(),e.renderTargetForm.get("scaleX").disable(),e.renderTargetForm.get("scaleY").disable(),e.renderTargetForm.get("scaleZ").disable(),e.renderTargetForm.get("rotationX").disable(),e.renderTargetForm.get("rotationY").disable(),e.renderTargetForm.get("rotationZ").disable())}))}},{key:"createScreen",value:function(){this.nuiService.createScreen(this.screenName,this.alwaysOn,this.globalVolume,this.soundAttenuation,this.soundMinDistance,this.soundMaxDistance,this.is3DRendered,this.is3DAudioEnabled,this.modelName,this.renderTargetName,this.positionX,this.positionY,this.positionZ,this.rotationX,this.rotationY,this.rotationZ,this.scaleX,this.scaleY,this.scaleZ)}},{key:"screenName",get:function(){return this.screenForm.get("name").value}},{key:"modelName",get:function(){return this.renderTargetForm.get("modelName").value}},{key:"renderTargetName",get:function(){return this.renderTargetForm.get("renderTargetName").value}},{key:"is3DRendered",get:function(){return this.renderTargetForm.get("is3DRendered").value}},{key:"positionX",get:function(){return this.renderTargetForm.get("positionX").value}},{key:"positionY",get:function(){return this.renderTargetForm.get("positionY").value}},{key:"positionZ",get:function(){return this.renderTargetForm.get("positionZ").value}},{key:"rotationX",get:function(){return this.renderTargetForm.get("rotationX").value}},{key:"rotationZ",get:function(){return this.renderTargetForm.get("rotationZ").value}},{key:"rotationY",get:function(){return this.renderTargetForm.get("rotationY").value}},{key:"scaleX",get:function(){return this.renderTargetForm.get("scaleX").value}},{key:"scaleZ",get:function(){return this.renderTargetForm.get("scaleZ").value}},{key:"scaleY",get:function(){return this.renderTargetForm.get("scaleY").value}},{key:"globalVolume",get:function(){return this.soundForm.get("globalVolume").value}},{key:"soundMaxDistance",get:function(){return this.soundForm.get("soundMaxDistance").value}},{key:"soundMinDistance",get:function(){return this.soundForm.get("soundMinDistance").value}},{key:"soundAttenuation",get:function(){return this.soundForm.get("soundAttenuation").value}},{key:"is3DAudioEnabled",get:function(){return this.soundForm.get("is3DAudioEnabled").value}},{key:"alwaysOn",get:function(){return this.screenForm.get("alwaysOn").value}}]),e}(),lt.\u0275fac=function(e){return new(e||lt)(l.Rb(O.c),l.Rb(c.a))},lt.\u0275cmp=l.Lb({type:lt,selectors:[["app-create-new-screen"]],decls:55,vars:13,consts:[[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],["matInput","","placeholder","Name","formControlName","name","required",""],[2,"padding-bottom","5px","padding-top","20px"],["matTooltip","whether to always show the screen even if no video is playing","formControlName","alwaysOn"],["mat-button","","matStepperNext",""],["formControlName","is3DRendered"],[4,"ngIf"],["mat-button","","matStepperPrevious",""],[2,"margin-top","20px"],["thumbLabel","","step","1","value","100","formControlName","globalVolume",3,"max","min"],["formControlName","is3DAudioEnabled"],["mat-raised-button","","color","primary",3,"click"],["matInput","","matTooltip","The name of the model to which the rendertarget belongs","placeholder","Model-Name","formControlName","modelName","required","",3,"appEnableControl"],[2,"padding-left","5px"],["matInput","","placeholder","RenderTarget Name","formControlName","renderTargetName","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","positionX","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","positionY","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","positionZ","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","rotationX","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","rotationY","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","rotationZ","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","scaleX","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","scaleY","required","",3,"appEnableControl"],["type","number","matInput","","formControlName","scaleZ","required","",3,"appEnableControl"],["thumbLabel","","step","1","value","5","formControlName","soundAttenuation",3,"max","min"],["step","1","thumbLabel","","value","10","formControlName","soundMinDistance",3,"min","max"],["step","10","thumbLabel","","value","100","formControlName","soundMaxDistance",3,"min","max"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card"),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Dc(3,"Create Screen"),l.Wb(),l.Xb(4,"mat-card-subtitle"),l.Dc(5,"Create a new Screen which can be used to play videos on"),l.Wb(),l.Wb(),l.Xb(6,"mat-card-content"),l.Xb(7,"mat-horizontal-stepper",0,1),l.Xb(9,"mat-step",2),l.Xb(10,"form",3),l.Bc(11,Qe,1,0,"ng-template",4),l.Xb(12,"mat-form-field"),l.Sb(13,"input",5),l.Xb(14,"mat-hint"),l.Dc(15,"The name is for you to better distinct between screens and "),l.Xb(16,"strong"),l.Dc(17,"must be unique!"),l.Wb(),l.Wb(),l.Xb(18,"mat-error"),l.Dc(19,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(20,"div",6),l.Xb(21,"mat-checkbox",7),l.Dc(22,"Always On"),l.Wb(),l.Wb(),l.Xb(23,"div"),l.Xb(24,"button",8),l.Dc(25,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(26,"mat-step",2),l.Xb(27,"form",3),l.Bc(28,Je,1,0,"ng-template",4),l.Xb(29,"mat-checkbox",9),l.Dc(30,"Is 3D Rendered"),l.Wb(),l.Bc(31,et,9,2,"div",10),l.Bc(32,tt,64,9,"div",10),l.Xb(33,"div"),l.Xb(34,"button",11),l.Dc(35,"Back"),l.Wb(),l.Xb(36,"button",8),l.Dc(37,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(38,"mat-step",2),l.Xb(39,"form",3),l.Bc(40,nt,1,0,"ng-template",4),l.Xb(41,"div",12),l.Xb(42,"em"),l.Dc(43,"Global Volume"),l.Wb(),l.Sb(44,"mat-slider",13),l.Dc(45),l.Wb(),l.Xb(46,"div"),l.Xb(47,"mat-checkbox",14),l.Dc(48,"Use 3D Audio"),l.Wb(),l.Wb(),l.Bc(49,at,16,9,"div",10),l.Xb(50,"div"),l.Xb(51,"button",11),l.Dc(52,"Back"),l.Wb(),l.Xb(53,"button",15),l.fc("click",(function(){return t.createScreen()})),l.Dc(54,"Submit"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Eb(7),l.oc("linear",!0),l.Eb(2),l.oc("stepControl",t.screenForm),l.Eb(1),l.oc("formGroup",t.screenForm),l.Eb(16),l.oc("stepControl",t.renderTargetForm),l.Eb(1),l.oc("formGroup",t.renderTargetForm),l.Eb(4),l.oc("ngIf",!1===t.renderTargetForm.get("is3DRendered").value),l.Eb(1),l.oc("ngIf",!0===t.renderTargetForm.get("is3DRendered").value),l.Eb(6),l.oc("stepControl",t.soundForm),l.Eb(1),l.oc("formGroup",t.soundForm),l.Eb(5),l.oc("max",100)("min",1),l.Eb(1),l.Fc(" ",t.soundForm.get("globalVolume").value," "),l.Eb(4),l.oc("ngIf",!1===t.soundForm.get("is3DAudioEnabled").value))},directives:[w.a,w.c,w.f,w.e,w.b,Le,Ae,O.r,O.k,O.e,Fe,He.c,Ge.a,O.b,O.j,O.d,O.p,He.f,He.b,Ue.a,b.a,d.b,qe,a.k,Ze,$e.a,Ke,O.n,He.g],styles:[""]}),lt)},{path:"edit-screen",component:(st=function(){function e(t,n){_classCallCheck(this,e),this.fb=t,this.nuiService=n,this.screenForm=this.fb.group({screenName:["",[O.q.required]],modelName:["",[O.q.required]],renderTargetName:["",[O.q.required]],soundAttenuation:[5],is3DAudioEnabled:[!1],soundMaxDistance:[100],soundMinDistance:[10],globalVolume:[100],alwaysOn:[!1],is3DRendered:[!1],positionX:[0],positionY:[0],positionZ:[0],rotationX:[0],rotationY:[0],rotationZ:[0],scaleX:[0],scaleY:[0],scaleZ:[0]})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.screen.subscribe((function(t){t&&(e.screenId=t.id,e.screenForm.patchValue({screenName:t.name,modelName:t.is3DRendered?"":t.targetSettings.modelName,renderTargetName:t.is3DRendered?"":t.targetSettings.renderTargetName,soundAttenuation:t.browserSettings.soundAttenuation,soundMinDistance:t.browserSettings.soundMinDistance,soundMaxDistance:t.browserSettings.soundMaxDistance,globalVolume:t.browserSettings.globalVolume,alwaysOn:t.alwaysOn,is3DRendered:t.is3DRendered,positionX:t.is3DRendered?t.positionalSettings.positionX:0,positionY:t.is3DRendered?t.positionalSettings.positionY:0,positionZ:t.is3DRendered?t.positionalSettings.positionZ:0,rotationX:t.is3DRendered?t.positionalSettings.rotationX:0,rotationY:t.is3DRendered?t.positionalSettings.rotationY:0,rotationZ:t.is3DRendered?t.positionalSettings.rotationZ:0,scaleX:t.is3DRendered?t.positionalSettings.scaleX:0,scaleY:t.is3DRendered?t.positionalSettings.scaleY:0,scaleZ:t.is3DRendered?t.positionalSettings.scaleZ:0,is3DAudioEnabled:t.browserSettings.is3DAudioEnabled}))})),this.screenForm.get("is3DRendered").valueChanges.subscribe((function(t){t?(e.screenForm.get("renderTargetName").disable(),e.screenForm.get("modelName").disable(),e.screenForm.get("positionX").enable(),e.screenForm.get("positionY").enable(),e.screenForm.get("positionZ").enable(),e.screenForm.get("rotationX").enable(),e.screenForm.get("rotationY").enable(),e.screenForm.get("rotationZ").enable(),e.screenForm.get("scaleX").enable(),e.screenForm.get("scaleY").enable(),e.screenForm.get("scaleZ").enable()):(e.screenForm.get("renderTargetName").enable(),e.screenForm.get("modelName").enable(),e.screenForm.get("positionX").disable(),e.screenForm.get("positionY").disable(),e.screenForm.get("positionZ").disable(),e.screenForm.get("rotationX").disable(),e.screenForm.get("rotationY").disable(),e.screenForm.get("rotationZ").disable(),e.screenForm.get("scaleX").disable(),e.screenForm.get("scaleY").disable(),e.screenForm.get("scaleZ").disable())}))}},{key:"submit",value:function(){this.nuiService.editScreen(this.screenForm.get("screenName").value,this.screenId,this.screenForm.get("is3DRendered").value,this.screenForm.get("alwaysOn").value,this.screenForm.get("modelName").value,this.screenForm.get("renderTargetName").value,this.screenForm.get("globalVolume").value,this.screenForm.get("soundAttenuation").value,this.screenForm.get("soundMinDistance").value,this.screenForm.get("soundMaxDistance").value,this.screenForm.get("positionX").value,this.screenForm.get("positionY").value,this.screenForm.get("positionZ").value,this.screenForm.get("rotationX").value,this.screenForm.get("rotationY").value,this.screenForm.get("rotationZ").value,this.screenForm.get("scaleX").value,this.screenForm.get("scaleY").value,this.screenForm.get("scaleZ").value,this.screenForm.get("is3DAudioEnabled").value)}}]),e}(),st.\u0275fac=function(e){return new(e||st)(l.Rb(O.c),l.Rb(c.a))},st.\u0275cmp=l.Lb({type:st,selectors:[["app-edit-screen"]],decls:31,vars:8,consts:[[2,"display","flex"],[1,"form-container"],[3,"formGroup"],["matInput","","formControlName","screenName","name","screenName","required",""],["formControlName","alwaysOn"],["formControlName","is3DRendered",2,"margin-left","10px"],[4,"ngIf"],["thumbLabel","","formControlName","globalVolume",3,"min","max","step"],["formControlName","is3DAudioEnabled",2,"margin-left","10px"],["mat-raised-button","","color","accent","type","submit",2,"display","flex","margin-top","-10px","float","right","margin-right","-70px",3,"click"],["matInput","","formControlName","modelName","name","modelName","required","",3,"appEnableControl"],["matInput","","formControlName","renderTargetName","name","renderTargetName","required","",3,"appEnableControl"],["matInput","","formControlName","positionX","type","number","name","positionX","required","",3,"appEnableControl"],["matInput","","formControlName","positionY","name","positionY","type","number","required","",3,"appEnableControl"],["matInput","","formControlName","positionZ","type","number","name","positionZ","required","",3,"appEnableControl"],["matInput","","formControlName","rotationX","name","rotationX","type","number","required","",3,"appEnableControl"],["matInput","","formControlName","rotationY","type","number","name","rotationY","required","",3,"appEnableControl"],["matInput","","formControlName","rotationZ","type","number","name","rotationZ","required","",3,"appEnableControl"],["matInput","","formControlName","scaleX","type","number","name","scaleX","required","",3,"appEnableControl"],["matInput","","formControlName","scaleY","type","number","name","scaleY","required","",3,"appEnableControl"],["matInput","","formControlName","scaleZ","type","number","name","scaleZ","required","",3,"appEnableControl"],["thumbLabel","","formControlName","soundAttenuation",3,"min","max","step"],["thumbLabel","","formControlName","soundMinDistance",3,"min","max","step"],["thumbLabel","","formControlName","soundMaxDistance",3,"min","max","step"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card",0),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Dc(3,"Edit Screen"),l.Wb(),l.Wb(),l.Xb(4,"mat-card-content"),l.Xb(5,"div",1),l.Xb(6,"form",2),l.Xb(7,"div"),l.Xb(8,"mat-form-field"),l.Xb(9,"mat-label"),l.Dc(10,"Name"),l.Wb(),l.Sb(11,"input",3),l.Wb(),l.Wb(),l.Xb(12,"div"),l.Xb(13,"mat-checkbox",4),l.Dc(14,"Always On"),l.Wb(),l.Xb(15,"mat-checkbox",5),l.Dc(16,"3D Rendered"),l.Wb(),l.Wb(),l.Bc(17,it,11,2,"div",6),l.Bc(18,rt,46,9,"div",6),l.Xb(19,"div"),l.Xb(20,"mat-label"),l.Dc(21,"Global Volume"),l.Wb(),l.Sb(22,"mat-slider",7),l.Dc(23),l.Wb(),l.Xb(24,"div"),l.Xb(25,"mat-checkbox",8),l.Dc(26,"Enable 3D Audio"),l.Wb(),l.Wb(),l.Bc(27,ot,16,12,"div",6),l.Sb(28,"div"),l.Xb(29,"button",9),l.fc("click",(function(){return t.submit()})),l.Dc(30,"Submit "),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Eb(6),l.oc("formGroup",t.screenForm),l.Eb(11),l.oc("ngIf",!1===t.screenForm.get("is3DRendered").value),l.Eb(1),l.oc("ngIf",!0===t.screenForm.get("is3DRendered").value),l.Eb(4),l.oc("min",1)("max",100)("step",1),l.Eb(1),l.Fc(" ",t.screenForm.get("globalVolume").value," "),l.Eb(4),l.oc("ngIf",!1===t.screenForm.get("is3DAudioEnabled").value))},directives:[w.a,w.c,w.f,w.b,O.r,O.k,O.e,He.c,He.g,Ge.a,O.b,O.j,O.d,O.p,Ue.a,a.k,$e.a,d.b,Ke,O.n],styles:[".form-container[_ngcontent-%COMP%]{max-height:380px}"]}),Object(r.a)([Object(o.d)(s.a.getSelectedScreen)],st.prototype,"screen",void 0),st)}],dt=((ct=function e(){_classCallCheck(this,e)}).\u0275mod=l.Pb({type:ct}),ct.\u0275inj=l.Ob({factory:function(e){return new(e||ct)},imports:[[i.d.forChild(ut)],i.d]}),ct),bt=n("rDax"),pt=n("NXyV"),mt=n("pLZG"),ht=n("IzEk");function ft(e,t){}var gt=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},vt={dialogContainer:Object(re.m)("dialogContainer",[Object(re.j)("void, exit",Object(re.k)({opacity:0,transform:"scale(0.7)"})),Object(re.j)("enter",Object(re.k)({transform:"none"})),Object(re.l)("* => enter",Object(re.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(re.k)({transform:"none",opacity:1}))),Object(re.l)("* => void, * => exit",Object(re.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(re.k)({opacity:0})))])};function _t(){throw Error("Attempting to attach dialog content after content is already attached")}var yt,Ct,Dt,xt,kt=((yt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,i,r,o){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusTrapFactory=a,s._changeDetectorRef=i,s._config=o,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new l.p,s.attachDomPortal=function(e){return s._portalOutlet.hasAttached()&&_t(),s._savePreviouslyFocusedElement(),s._portalOutlet.attachDomPortal(e)},s._ariaLabelledBy=o.ariaLabelledBy||null,s._document=r,s}return _createClass(n,[{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached()&&_t(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached()&&_t(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()})))}},{key:"_onAnimationDone",value:function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(F.a)).\u0275fac=function(e){return new(e||yt)(l.Rb(l.m),l.Rb(W.f),l.Rb(l.i),l.Rb(a.d,8),l.Rb(gt))},yt.\u0275cmp=l.Lb({type:yt,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var n;1&e&&l.zc(F.b,!0),2&e&&l.qc(n=l.gc())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&l.Jb("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(l.Fb("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),l.Hc("@dialogContainer",t._state))},features:[l.Bb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&l.Bc(0,ft,0,0,"ng-template",0)},directives:[F.b],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[vt.dialogContainer]}}),yt),Xt=0,Et=function(){function e(t,n){var a=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(Xt++);_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new N.a,this._afterClosed=new N.a,this._beforeClosed=new N.a,this._state=0,n._id=i,n._animationStateChanged.pipe(Object(mt.a)((function(e){return"done"===e.phaseName&&"enter"===e.toState})),Object(ht.a)(1)).subscribe((function(){a._afterOpened.next(),a._afterOpened.complete()})),n._animationStateChanged.pipe(Object(mt.a)((function(e){return"done"===e.phaseName&&"exit"===e.toState})),Object(ht.a)(1)).subscribe((function(){clearTimeout(a._closeFallbackTimeout),a._overlayRef.dispose()})),t.detachments().subscribe((function(){a._beforeClosed.next(a._result),a._beforeClosed.complete(),a._afterClosed.next(a._result),a._afterClosed.complete(),a.componentInstance=null,a._overlayRef.dispose()})),t.keydownEvents().pipe(Object(mt.a)((function(e){return e.keyCode===T.g&&!a.disableClose&&!Object(T.s)(e)}))).subscribe((function(e){e.preventDefault(),a.close()}))}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Object(mt.a)((function(e){return"start"===e.phaseName})),Object(ht.a)(1)).subscribe((function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._state=2,t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){t._overlayRef.dispose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}(),St=new l.s("MatDialogData"),Ot=new l.s("mat-dialog-default-options"),wt=new l.s("mat-dialog-scroll-strategy"),Ft={provide:wt,deps:[bt.c],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},Wt=((Dt=function(){function e(t,n,a,i,r,o,s){var l=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N.a,this._afterOpenedAtThisLevel=new N.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(pt.a)((function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(Object(A.a)(void 0))})),this._scrollStrategy=r}return _createClass(e,[{key:"open",value:function(e,t){var n=this;if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new gt)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var a=this._createOverlay(t),i=this._attachDialogContainer(a,t),r=this._attachDialogContent(e,i,a,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return n._removeOpenDialog(r)})),this.afterOpened.next(r),r}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new bt.d({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=l.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:gt,useValue:t}]}),a=new F.c(kt,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(a).instance}},{key:"_attachDialogContent",value:function(e,t,n,a){var i=new Et(n,t,a.id);if(a.hasBackdrop&&n.backdropClick().subscribe((function(){i.disableClose||i.close()})),e instanceof l.N)t.attachTemplatePortal(new F.g(e,null,{$implicit:a.data,dialogRef:i}));else{var r=this._createInjector(a,i,t),o=t.attachComponentPortal(new F.c(e,a.viewContainerRef,r));i.componentInstance=o.instance}return i.updateSize(a.width,a.height).updatePosition(a.position),i}},{key:"_createInjector",value:function(e,t,n){var a=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:kt,useValue:n},{provide:St,useValue:e.data},{provide:Et,useValue:t}];return!e.direction||a&&a.get(R.b,null)||i.push({provide:R.b,useValue:{value:e.direction,change:Object(j.a)()}}),l.t.create({parent:a||this._injector,providers:i})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var a=t[n];a===e||"SCRIPT"===a.nodeName||"STYLE"===a.nodeName||a.hasAttribute("aria-live")||(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||Dt)(l.bc(bt.c),l.bc(l.t),l.bc(a.g,8),l.bc(Ot,8),l.bc(wt),l.bc(Dt,12),l.bc(bt.e))},Dt.\u0275prov=l.Nb({token:Dt,factory:Dt.\u0275fac}),Dt),Rt=((Ct=function e(){_classCallCheck(this,e)}).\u0275mod=l.Pb({type:Ct}),Ct.\u0275inj=l.Ob({factory:function(e){return new(e||Ct)},providers:[Wt,Ft],imports:[[bt.f,F.f,ae.e],ae.e]}),Ct),It=n("d3UM"),Tt=n("hh/h"),Nt=((xt=function e(){_classCallCheck(this,e)}).\u0275mod=l.Pb({type:xt}),xt.\u0275inj=l.Ob({factory:function(e){return new(e||xt)},imports:[[a.c,dt,p.b,d.c,u.k,Rt,w.d,O.o,He.e,It.b,Ve,Ge.b,$e.b,Ue.b,O.f,b.b,Tt.QuickPlayModule]]}),xt)}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/7.js b/resources/Hypnonema/client/html/7.js index 8f083bcdf..9545e9305 100644 --- a/resources/Hypnonema/client/html/7.js +++ b/resources/Hypnonema/client/html/7.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{VePF:function(t,e,i){"use strict";i.r(e),i.d(e,"StatusModule",function(){return It});var s=i("ofXK"),n=i("tyNb"),a=i("mrSG"),r=i("AcyG"),o=i("sxot"),c=i("fXoL"),h=i("tk/3"),l=i("/rnm"),d=i("bTqV"),p=i("Qu3c"),m=i("NFeN"),u=i("FKr1"),b=i("8LU1"),g=i("nLfN"),f=i("R1ws");function _(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function C(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function x(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function k(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}const v=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class S{constructor(t){this._elementRef=t}}const w=Object(u.q)(S,"primary"),y=new c.t("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let A=(()=>{class t extends w{constructor(e,i,s,n,a){super(e),this._elementRef=e,this._document=s,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(s.head)||r.set(s.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===n&&!!a&&!a._forceAnimations,a&&(a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(b.f)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(b.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(b.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(g.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,s=t._diameters;let n=s.get(e);if(!n||!n.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),n||(n=new Set,s.set(e,n)),n.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(g.a),c.Rb(s.d,8),c.Rb(f.a,8),c.Rb(y))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(c.Gb("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.Jb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[c.Cb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(c.hc(),c.Xb(0,"svg",0),c.Ac(1,_,1,9,"circle",1),c.Ac(2,C,1,7,"circle",2),c.Wb()),2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.nc("ngSwitch","indeterminate"===e.mode),c.Gb("viewBox",e._getViewBox()),c.Fb(1),c.nc("ngSwitchCase",!0),c.Fb(1),c.nc("ngSwitchCase",!1))},directives:[s.m,s.n],styles:[v],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),R=(()=>{class t extends A{constructor(t,e,i,s,n){super(t,e,i,s,n),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(g.a),c.Rb(s.d,8),c.Rb(f.a,8),c.Rb(y))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.Jb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[c.Cb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(c.hc(),c.Xb(0,"svg",0),c.Ac(1,x,1,9,"circle",1),c.Ac(2,k,1,7,"circle",2),c.Wb()),2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.nc("ngSwitch","indeterminate"===e.mode),c.Gb("viewBox",e._getViewBox()),c.Fb(1),c.nc("ngSwitchCase",!0),c.Fb(1),c.nc("ngSwitchCase",!1))},directives:[s.m,s.n],styles:[v],encapsulation:2,changeDetection:0}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[u.e,s.c],u.e]}),t})();var D=i("+0xr"),E=i("FtGj"),O=i("XNiG"),T=i("VRyK"),L=i("IzEk"),F=i("1G5W"),W=i("JX91"),M=i("u47x"),V=i("0EQZ"),X=i("kmnG"),j=i("cH1L"),P=i("3Pt+");const B=["*"],N=new c.t("MatChipRemove"),U=new c.t("MatChipAvatar"),q=new c.t("MatChipTrailingIcon");class G{constructor(t){this._elementRef=t}}const z=Object(u.u)(Object(u.q)(Object(u.r)(G),"primary"),-1);let $=(()=>{class t extends z{constructor(t,e,i,s,n,a,r,o){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=n,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new O.a,this._onBlur=new O.a,this.selectionChange=new c.p,this.destroyed=new c.p,this.removed=new c.p,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new u.n(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===r,this.tabIndex=null!=o&&parseInt(o)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Object(b.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Object(b.c)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Object(b.c)(t)}get removable(){return this._removable}set removable(t){this._removable=Object(b.c)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case E.c:case E.b:this.remove(),t.preventDefault();break;case E.n:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Object(L.a)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(c.C),c.Rb(g.a),c.Rb(u.d,8),c.Rb(c.i),c.Rb(s.d),c.Rb(f.a,8),c.cc("tabindex"))},t.\u0275dir=c.Mb({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(c.Kb(i,U,1),c.Kb(i,q,1),c.Kb(i,N,1)),2&t){let t;c.pc(t=c.fc())&&(e.avatar=t.first),c.pc(t=c.fc())&&(e.trailingIcon=t.first),c.pc(t=c.fc())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&c.ec("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(c.Gb("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),c.Jb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[c.Cb]}),t})();const K=new c.t("mat-chips-default-options");class H{constructor(t,e,i,s){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=s}}const J=Object(u.t)(H);let Z=0;class Q{constructor(t,e){this.source=t,this.value=e}}let Y=(()=>{class t extends J{constructor(t,e,i,s,n,a,r){super(a,s,n,r),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new O.a,this._uid="mat-chip-list-"+Z++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new c.p,this.valueChange=new c.p,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(b.c)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Object(b.c)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(b.c)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Object(b.c)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(T.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(T.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(T.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(T.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new M.d(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(F.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Object(F.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Object(W.a)(null),Object(F.a)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new V.c(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===E.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Q(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(c.i),c.Rb(j.b,8),c.Rb(P.l,8),c.Rb(P.e,8),c.Rb(u.a),c.Rb(P.i,10))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&c.Kb(i,$,1),2&t){let t;c.pc(t=c.fc())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&c.ec("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(c.ac("id",e._uid),c.Gb("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),c.Jb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[c.Eb([{provide:X.d,useExisting:t}]),c.Cb],ngContentSelectors:B,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(c.mc(),c.Xb(0,"div",0),c.lc(1),c.Wb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})();const tt={separatorKeyCodes:[E.f]};let et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({providers:[u.a,{provide:K,useValue:tt}],imports:[[u.e]]}),t})();var it=i("GFHR");function st(t,e){1&t&&(c.Xb(0,"div"),c.Sb(1,"mat-spinner",5),c.Wb())}function nt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Actions"),c.Wb())}function at(t,e){if(1&t){const t=c.Yb();c.Xb(0,"td",18),c.Xb(1,"button",19),c.ec("click",function(){c.tc(t);const i=e.$implicit;return c.ic(2).suspendScreen(i)}),c.Xb(2,"mat-icon"),c.Cc(3,"stop"),c.Wb(),c.Wb(),c.Wb()}}function rt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Screen-Name"),c.Wb())}function ot(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(t.screenName)}}function ct(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Status"),c.Wb())}function ht(t,e){1&t&&(c.Xb(0,"mat-chip",23),c.Cc(1,"Playing"),c.Wb())}function lt(t,e){1&t&&(c.Xb(0,"mat-chip",23),c.Cc(1,"Repeating"),c.Wb())}function dt(t,e){if(1&t&&(c.Ac(0,ht,2,0,"ng-template",20),c.Ac(1,lt,2,0,"ng-template",null,22,c.Bc)),2&t){const t=c.qc(2),e=c.ic().$implicit;c.nc("ngIfElse",t)("ngIf",!e.repeat)}}function pt(t,e){1&t&&(c.Xb(0,"mat-chip",25),c.Cc(1,"Paused"),c.Wb())}function mt(t,e){1&t&&(c.Xb(0,"mat-chip"),c.Cc(1,"Ended"),c.Wb())}function ut(t,e){if(1&t&&(c.Ac(0,pt,2,0,"ng-template",20),c.Ac(1,mt,2,0,"ng-template",null,24,c.Bc)),2&t){const t=c.qc(2),e=c.ic().$implicit;c.nc("ngIfElse",t)("ngIf",e.isPaused&&!e.ended)}}function bt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Xb(1,"mat-chip-list"),c.Ac(2,dt,3,2,"ng-template",20),c.Ac(3,ut,3,2,"ng-template",null,21,c.Bc),c.Wb(),c.Wb()),2&t){const t=e.$implicit,i=c.qc(4);c.Fb(2),c.nc("ngIfElse",i)("ngIf",!t.isPaused&&!t.ended)}}function gt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Current Time"),c.Wb())}function ft(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.jc(2,"minuteSeconds"),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(c.kc(2,1,t.currentTime))}}function _t(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Duration"),c.Wb())}function Ct(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.jc(2,"minuteSeconds"),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(c.kc(2,1,t.duration))}}function xt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Currently Playing"),c.Wb())}function kt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(t.currentSource)}}function vt(t,e){1&t&&c.Sb(0,"tr",26)}function St(t,e){1&t&&c.Sb(0,"tr",27)}function wt(t,e){if(1&t&&(c.Xb(0,"table",6),c.Vb(1,7),c.Ac(2,nt,2,0,"th",8),c.Ac(3,at,4,0,"td",9),c.Ub(),c.Vb(4,10),c.Ac(5,rt,2,0,"th",8),c.Ac(6,ot,2,1,"td",9),c.Ub(),c.Vb(7,11),c.Ac(8,ct,2,0,"th",8),c.Ac(9,bt,5,2,"td",9),c.Ub(),c.Vb(10,12),c.Ac(11,gt,2,0,"th",8),c.Ac(12,ft,3,3,"td",9),c.Ub(),c.Vb(13,13),c.Ac(14,_t,2,0,"th",8),c.Ac(15,Ct,3,3,"td",9),c.Ub(),c.Vb(16,14),c.Ac(17,xt,2,0,"th",8),c.Ac(18,kt,2,1,"td",9),c.Ub(),c.Ac(19,vt,1,0,"tr",15),c.Ac(20,St,1,0,"tr",16),c.Wb()),2&t){const t=c.ic();c.nc("dataSource",t.screens$),c.Fb(19),c.nc("matHeaderRowDef",t.displayedColumns),c.Fb(1),c.nc("matRowDefColumns",t.displayedColumns)}}const yt=[{path:"",component:(()=>{class t{constructor(t,e,i){this.http=t,this.store=e,this.nuiService=i,this.displayedColumns=["actions","name","isPaused","currentTime","duration","currentSource"]}ngOnInit(){this.refresh()}suspendScreen(t){this.nuiService.closeScreen(t.screenName),this.refresh()}refresh(){this.nuiService.requestDuiState("")}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(h.a),c.Rb(r.g),c.Rb(l.a))},t.\u0275cmp=c.Lb({type:t,selectors:[["app-status"]],decls:11,vars:4,consts:[[1,"wrapper"],[4,"ngIf","ngIfElse"],["content",""],[1,"fab-container"],["color","accent","mat-fab","","matTooltip","Refresh",1,"md-fab-right",3,"click"],[1,"loading-spinner"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","isPaused"],["matColumnDef","currentTime"],["matColumnDef","duration"],["matColumnDef","currentSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["color","warn","mat-icon-button","","matTooltip","Suspend Screen",3,"click"],[3,"ngIfElse","ngIf"],["elseBlock",""],["repeatBlock",""],[2,"background-color","forestgreen"],["elseBlock2",""],["color","accent"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t&&(c.Xb(0,"div",0),c.Xb(1,"h3"),c.Cc(2,"Status"),c.Wb(),c.Ac(3,st,2,0,"div",1),c.jc(4,"async"),c.Ac(5,wt,21,3,"ng-template",null,2,c.Bc),c.Xb(7,"div",3),c.Xb(8,"button",4),c.ec("click",function(){return e.refresh()}),c.Xb(9,"mat-icon"),c.Cc(10,"refresh"),c.Wb(),c.Wb(),c.Wb(),c.Wb()),2&t){const t=c.qc(6);c.Fb(3),c.nc("ngIf",c.kc(4,2,e.isLoading))("ngIfElse",t)}},directives:[s.k,d.b,p.a,m.a,R,D.j,D.c,D.e,D.b,D.g,D.i,D.d,D.a,Y,$,D.f,D.h],pipes:[s.b,it.a],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;min-height:390px}.loading-spinner[_ngcontent-%COMP%]{left:40%}.mat-cell[_ngcontent-%COMP%]:first-child, .mat-header-cell[_ngcontent-%COMP%]:first-child{flex:0 0 5%}.mat-cell[_ngcontent-%COMP%]:nth-child(5), .mat-header-cell[_ngcontent-%COMP%]:nth-child(5){flex:0 0 10%}.mat-column-currentSource[_ngcontent-%COMP%]{flex:0 0 50%}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:absolute!important;bottom:0}"]}),Object(a.a)([Object(r.d)(o.a.getStatuses)],t.prototype,"screens$",void 0),Object(a.a)([Object(r.d)(o.a.isLoading)],t.prototype,"isLoading",void 0),t})()}];let At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[n.d.forChild(yt)],n.d]}),t})();var Rt=i("PCNd");let It=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[s.c,At,d.c,p.b,m.b,D.k,I,Rt.a,et]]}),t})()}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{VePF:function(t,e,i){"use strict";i.r(e),i.d(e,"StatusModule",function(){return It});var s=i("ofXK"),a=i("tyNb"),n=i("mrSG"),r=i("AcyG"),o=i("sxot"),c=i("fXoL"),h=i("tk/3"),l=i("/rnm"),d=i("bTqV"),p=i("Qu3c"),m=i("NFeN"),u=i("FKr1"),b=i("8LU1"),g=i("nLfN"),f=i("R1ws");function _(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function C(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function x(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function k(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}const v=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class S{constructor(t){this._elementRef=t}}const w=Object(u.q)(S,"primary"),y=new c.t("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let A=(()=>{class t extends w{constructor(e,i,s,a,n){super(e),this._elementRef=e,this._document=s,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(s.head)||r.set(s.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===a&&!!n&&!n._forceAnimations,n&&(n.diameter&&(this.diameter=n.diameter),n.strokeWidth&&(this.strokeWidth=n.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(b.f)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(b.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(b.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(g.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,s=t._diameters;let a=s.get(e);if(!a||!a.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),a||(a=new Set,s.set(e,a)),a.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(g.a),c.Rb(s.d,8),c.Rb(f.a,8),c.Rb(y))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(c.Gb("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.Jb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[c.Cb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(c.hc(),c.Xb(0,"svg",0),c.Ac(1,_,1,9,"circle",1),c.Ac(2,C,1,7,"circle",2),c.Wb()),2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.nc("ngSwitch","indeterminate"===e.mode),c.Gb("viewBox",e._getViewBox()),c.Fb(1),c.nc("ngSwitchCase",!0),c.Fb(1),c.nc("ngSwitchCase",!1))},directives:[s.m,s.n],styles:[v],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),R=(()=>{class t extends A{constructor(t,e,i,s,a){super(t,e,i,s,a),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(g.a),c.Rb(s.d,8),c.Rb(f.a,8),c.Rb(y))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.Jb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[c.Cb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(c.hc(),c.Xb(0,"svg",0),c.Ac(1,x,1,9,"circle",1),c.Ac(2,k,1,7,"circle",2),c.Wb()),2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.nc("ngSwitch","indeterminate"===e.mode),c.Gb("viewBox",e._getViewBox()),c.Fb(1),c.nc("ngSwitchCase",!0),c.Fb(1),c.nc("ngSwitchCase",!1))},directives:[s.m,s.n],styles:[v],encapsulation:2,changeDetection:0}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[u.e,s.c],u.e]}),t})();var D=i("+0xr"),E=i("FtGj"),O=i("XNiG"),T=i("VRyK"),L=i("IzEk"),F=i("1G5W"),W=i("JX91"),M=i("u47x"),V=i("0EQZ"),X=i("kmnG"),j=i("cH1L"),P=i("3Pt+");const B=["*"],N=new c.t("MatChipRemove"),U=new c.t("MatChipAvatar"),q=new c.t("MatChipTrailingIcon");class G{constructor(t){this._elementRef=t}}const z=Object(u.u)(Object(u.q)(Object(u.r)(G),"primary"),-1);let $=(()=>{class t extends z{constructor(t,e,i,s,a,n,r,o){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new O.a,this._onBlur=new O.a,this.selectionChange=new c.p,this.destroyed=new c.p,this.removed=new c.p,this._addHostClassName(),this._chipRippleTarget=n.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new u.n(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===r,this.tabIndex=null!=o&&parseInt(o)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Object(b.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Object(b.c)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Object(b.c)(t)}get removable(){return this._removable}set removable(t){this._removable=Object(b.c)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case E.c:case E.b:this.remove(),t.preventDefault();break;case E.n:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Object(L.a)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(c.C),c.Rb(g.a),c.Rb(u.d,8),c.Rb(c.i),c.Rb(s.d),c.Rb(f.a,8),c.cc("tabindex"))},t.\u0275dir=c.Mb({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(c.Kb(i,U,1),c.Kb(i,q,1),c.Kb(i,N,1)),2&t){let t;c.pc(t=c.fc())&&(e.avatar=t.first),c.pc(t=c.fc())&&(e.trailingIcon=t.first),c.pc(t=c.fc())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&c.ec("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(c.Gb("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),c.Jb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[c.Cb]}),t})();const K=new c.t("mat-chips-default-options");class H{constructor(t,e,i,s){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=s}}const J=Object(u.t)(H);let Z=0;class Q{constructor(t,e){this.source=t,this.value=e}}let Y=(()=>{class t extends J{constructor(t,e,i,s,a,n,r){super(n,s,a,r),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new O.a,this._uid="mat-chip-list-"+Z++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new c.p,this.valueChange=new c.p,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(b.c)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Object(b.c)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(b.c)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Object(b.c)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(T.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(T.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(T.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(T.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new M.d(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(F.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Object(F.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Object(W.a)(null),Object(F.a)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new V.c(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===E.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Q(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(c.i),c.Rb(j.b,8),c.Rb(P.l,8),c.Rb(P.e,8),c.Rb(u.a),c.Rb(P.i,10))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&c.Kb(i,$,1),2&t){let t;c.pc(t=c.fc())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&c.ec("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(c.ac("id",e._uid),c.Gb("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),c.Jb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[c.Eb([{provide:X.d,useExisting:t}]),c.Cb],ngContentSelectors:B,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(c.mc(),c.Xb(0,"div",0),c.lc(1),c.Wb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})();const tt={separatorKeyCodes:[E.f]};let et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({providers:[u.a,{provide:K,useValue:tt}],imports:[[u.e]]}),t})();var it=i("GFHR");function st(t,e){1&t&&(c.Xb(0,"div"),c.Sb(1,"mat-spinner",5),c.Wb())}function at(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Actions"),c.Wb())}function nt(t,e){if(1&t){const t=c.Yb();c.Xb(0,"td",18),c.Xb(1,"button",19),c.ec("click",function(){c.tc(t);const i=e.$implicit;return c.ic(2).suspendScreen(i)}),c.Xb(2,"mat-icon"),c.Cc(3,"stop"),c.Wb(),c.Wb(),c.Wb()}}function rt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Screen-Name"),c.Wb())}function ot(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(t.screenName)}}function ct(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Status"),c.Wb())}function ht(t,e){1&t&&(c.Xb(0,"mat-chip",23),c.Cc(1,"Playing"),c.Wb())}function lt(t,e){1&t&&(c.Xb(0,"mat-chip",23),c.Cc(1,"Repeating"),c.Wb())}function dt(t,e){if(1&t&&(c.Ac(0,ht,2,0,"ng-template",20),c.Ac(1,lt,2,0,"ng-template",null,22,c.Bc)),2&t){const t=c.qc(2),e=c.ic().$implicit;c.nc("ngIfElse",t)("ngIf",!e.repeat)}}function pt(t,e){1&t&&(c.Xb(0,"mat-chip",25),c.Cc(1,"Paused"),c.Wb())}function mt(t,e){1&t&&(c.Xb(0,"mat-chip"),c.Cc(1,"Ended"),c.Wb())}function ut(t,e){if(1&t&&(c.Ac(0,pt,2,0,"ng-template",20),c.Ac(1,mt,2,0,"ng-template",null,24,c.Bc)),2&t){const t=c.qc(2),e=c.ic().$implicit;c.nc("ngIfElse",t)("ngIf",e.isPaused&&!e.ended)}}function bt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Xb(1,"mat-chip-list"),c.Ac(2,dt,3,2,"ng-template",20),c.Ac(3,ut,3,2,"ng-template",null,21,c.Bc),c.Wb(),c.Wb()),2&t){const t=e.$implicit,i=c.qc(4);c.Fb(2),c.nc("ngIfElse",i)("ngIf",!t.isPaused&&!t.ended)}}function gt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Current Time"),c.Wb())}function ft(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.jc(2,"minuteSeconds"),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(c.kc(2,1,t.currentTime))}}function _t(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Duration"),c.Wb())}function Ct(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.jc(2,"minuteSeconds"),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(c.kc(2,1,t.duration))}}function xt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Currently Playing"),c.Wb())}function kt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(t.currentSource)}}function vt(t,e){1&t&&c.Sb(0,"tr",26)}function St(t,e){1&t&&c.Sb(0,"tr",27)}function wt(t,e){if(1&t&&(c.Xb(0,"table",6),c.Vb(1,7),c.Ac(2,at,2,0,"th",8),c.Ac(3,nt,4,0,"td",9),c.Ub(),c.Vb(4,10),c.Ac(5,rt,2,0,"th",8),c.Ac(6,ot,2,1,"td",9),c.Ub(),c.Vb(7,11),c.Ac(8,ct,2,0,"th",8),c.Ac(9,bt,5,2,"td",9),c.Ub(),c.Vb(10,12),c.Ac(11,gt,2,0,"th",8),c.Ac(12,ft,3,3,"td",9),c.Ub(),c.Vb(13,13),c.Ac(14,_t,2,0,"th",8),c.Ac(15,Ct,3,3,"td",9),c.Ub(),c.Vb(16,14),c.Ac(17,xt,2,0,"th",8),c.Ac(18,kt,2,1,"td",9),c.Ub(),c.Ac(19,vt,1,0,"tr",15),c.Ac(20,St,1,0,"tr",16),c.Wb()),2&t){const t=c.ic();c.nc("dataSource",t.screens$),c.Fb(19),c.nc("matHeaderRowDef",t.displayedColumns),c.Fb(1),c.nc("matRowDefColumns",t.displayedColumns)}}const yt=[{path:"",component:(()=>{class t{constructor(t,e,i){this.http=t,this.store=e,this.nuiService=i,this.displayedColumns=["actions","name","isPaused","currentTime","duration","currentSource"]}ngOnInit(){this.refresh()}suspendScreen(t){this.nuiService.closeScreen(t.screenName),setTimeout(()=>{this.nuiService.requestDuiState(t.screenName)},1e3)}refresh(){this.nuiService.requestDuiState("")}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(h.a),c.Rb(r.g),c.Rb(l.a))},t.\u0275cmp=c.Lb({type:t,selectors:[["app-status"]],decls:11,vars:4,consts:[[1,"wrapper"],[4,"ngIf","ngIfElse"],["content",""],[1,"fab-container"],["color","accent","mat-fab","","matTooltip","Refresh",1,"md-fab-right",3,"click"],[1,"loading-spinner"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","isPaused"],["matColumnDef","currentTime"],["matColumnDef","duration"],["matColumnDef","currentSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["color","warn","mat-icon-button","","matTooltip","Stop Screen",3,"click"],[3,"ngIfElse","ngIf"],["elseBlock",""],["repeatBlock",""],[2,"background-color","forestgreen"],["elseBlock2",""],["color","accent"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t&&(c.Xb(0,"div",0),c.Xb(1,"h3"),c.Cc(2,"Status"),c.Wb(),c.Ac(3,st,2,0,"div",1),c.jc(4,"async"),c.Ac(5,wt,21,3,"ng-template",null,2,c.Bc),c.Xb(7,"div",3),c.Xb(8,"button",4),c.ec("click",function(){return e.refresh()}),c.Xb(9,"mat-icon"),c.Cc(10,"refresh"),c.Wb(),c.Wb(),c.Wb(),c.Wb()),2&t){const t=c.qc(6);c.Fb(3),c.nc("ngIf",c.kc(4,2,e.isLoading))("ngIfElse",t)}},directives:[s.k,d.b,p.a,m.a,R,D.j,D.c,D.e,D.b,D.g,D.i,D.d,D.a,Y,$,D.f,D.h],pipes:[s.b,it.a],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;min-height:390px}.loading-spinner[_ngcontent-%COMP%]{left:40%}.mat-cell[_ngcontent-%COMP%]:first-child, .mat-header-cell[_ngcontent-%COMP%]:first-child{flex:0 0 5%}.mat-cell[_ngcontent-%COMP%]:nth-child(5), .mat-header-cell[_ngcontent-%COMP%]:nth-child(5){flex:0 0 10%}.mat-column-currentSource[_ngcontent-%COMP%]{flex:0 0 50%}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:absolute!important;bottom:0}"]}),Object(n.a)([Object(r.d)(o.a.getStatuses)],t.prototype,"screens$",void 0),Object(n.a)([Object(r.d)(o.a.isLoading)],t.prototype,"isLoading",void 0),t})()}];let At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[a.d.forChild(yt)],a.d]}),t})();var Rt=i("PCNd");let It=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[s.c,At,d.c,p.b,m.b,D.k,I,Rt.a,et]]}),t})()}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/8-es2015.js b/resources/Hypnonema/client/html/8-es2015.js deleted file mode 100644 index 5fe6ddf3f..000000000 --- a/resources/Hypnonema/client/html/8-es2015.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{VePF:function(t,e,i){"use strict";i.r(e),i.d(e,"StatusModule",(function(){return It}));var s=i("ofXK"),a=i("tyNb"),n=i("mrSG"),r=i("AcyG"),o=i("sxot"),c=i("fXoL"),h=i("tk/3"),d=i("/rnm"),l=i("bTqV"),p=i("Qu3c"),m=i("NFeN"),u=i("FKr1"),f=i("8LU1"),g=i("nLfN"),b=i("R1ws");function _(t,e){if(1&t&&(c.ic(),c.Sb(0,"circle",3)),2&t){const t=c.jc();c.Ac("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),c.Fb("r",t._circleRadius)}}function k(t,e){if(1&t&&(c.ic(),c.Sb(0,"circle",3)),2&t){const t=c.jc();c.Ac("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),c.Fb("r",t._circleRadius)}}function x(t,e){if(1&t&&(c.ic(),c.Sb(0,"circle",3)),2&t){const t=c.jc();c.Ac("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),c.Fb("r",t._circleRadius)}}function v(t,e){if(1&t&&(c.ic(),c.Sb(0,"circle",3)),2&t){const t=c.jc();c.Ac("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),c.Fb("r",t._circleRadius)}}class C{constructor(t){this._elementRef=t}}const y=Object(u.r)(C,"primary"),w=new c.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let S=(()=>{class t extends y{constructor(e,i,s,a,n){super(e),this._elementRef=e,this._document=s,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;r.has(s.head)||r.set(s.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===a&&!!n&&!n._forceAnimations,n&&(n.diameter&&(this.diameter=n.diameter),n.strokeWidth&&(this.strokeWidth=n.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(f.f)(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(f.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(f.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(g.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}get _strokeCircumference(){return 2*Math.PI*this._circleRadius}get _strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}get _circleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,s=t._diameters;let a=s.get(e);if(!a||!a.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),a||(a=new Set,s.set(e,a)),a.add(i)}}_getAnimationText(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,`${.95*this._strokeCircumference}`).replace(/END_VALUE/g,`${.2*this._strokeCircumference}`).replace(/DIAMETER/g,`${this.diameter}`)}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(g.a),c.Rb(s.d,8),c.Rb(b.a,8),c.Rb(w))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(c.Fb("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),c.Ac("width",e.diameter,"px")("height",e.diameter,"px"),c.Ib("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[c.Bb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(c.ic(),c.Xb(0,"svg",0),c.Bc(1,_,1,9,"circle",1),c.Bc(2,k,1,7,"circle",2),c.Wb()),2&t&&(c.Ac("width",e.diameter,"px")("height",e.diameter,"px"),c.oc("ngSwitch","indeterminate"===e.mode),c.Fb("viewBox",e._viewBox),c.Eb(1),c.oc("ngSwitchCase",!0),c.Eb(1),c.oc("ngSwitchCase",!1))},directives:[s.m,s.n],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),R=(()=>{class t extends S{constructor(t,e,i,s,a){super(t,e,i,s,a),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(g.a),c.Rb(s.d,8),c.Rb(b.a,8),c.Rb(w))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(c.Ac("width",e.diameter,"px")("height",e.diameter,"px"),c.Ib("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[c.Bb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(c.ic(),c.Xb(0,"svg",0),c.Bc(1,x,1,9,"circle",1),c.Bc(2,v,1,7,"circle",2),c.Wb()),2&t&&(c.Ac("width",e.diameter,"px")("height",e.diameter,"px"),c.oc("ngSwitch","indeterminate"===e.mode),c.Fb("viewBox",e._viewBox),c.Eb(1),c.oc("ngSwitchCase",!0),c.Eb(1),c.oc("ngSwitchCase",!1))},directives:[s.m,s.n],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t})(),I=(()=>{class t{}return t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({factory:function(e){return new(e||t)},imports:[[u.e,s.c],u.e]}),t})();var A=i("+0xr"),E=i("FtGj"),D=i("XNiG"),O=i("VRyK"),T=i("IzEk"),B=i("1G5W"),M=i("JX91"),X=i("u47x"),F=i("0EQZ"),W=i("kmnG"),V=i("cH1L"),j=i("3Pt+");const L=["*"];class P{constructor(t){this._elementRef=t}}const N=Object(u.v)(Object(u.r)(Object(u.s)(Object(u.t)(P)),"primary"),-1);let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Mb({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Mb({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t})(),$=(()=>{class t extends N{constructor(t,e,i,s,a,n,r,o){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=n,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._selected=!1,this._selectable=!0,this._removable=!0,this._onFocus=new D.a,this._onBlur=new D.a,this.selectionChange=new c.p,this.destroyed=new c.p,this.removed=new c.p,this._addHostClassName(),this._chipRippleTarget=(o||document).createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new u.o(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===a,this.tabIndex=null!=r&&parseInt(r)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Object(f.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Object(f.c)(t)}get removable(){return this._removable}set removable(t){this._removable=Object(f.c)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case E.c:case E.b:this.remove(),t.preventDefault();break;case E.n:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.asObservable().pipe(Object(T.a)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}_markForCheck(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(c.B),c.Rb(g.a),c.Rb(u.d,8),c.Rb(b.a,8),c.Rb(c.i),c.cc("tabindex"),c.Rb(s.d,8))},t.\u0275dir=c.Mb({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var s;1&t&&(c.Kb(i,U,!0),c.Kb(i,q,!0),c.Kb(i,z,!0)),2&t&&(c.qc(s=c.gc())&&(e.avatar=s.first),c.qc(s=c.gc())&&(e.trailingIcon=s.first),c.qc(s=c.gc())&&(e.removeIcon=s.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&c.fc("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(c.Fb("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),c.Ib("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[c.Bb]}),t})(),z=(()=>{class t{constructor(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(c.Rb($),c.Rb(c.m))},t.\u0275dir=c.Mb({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&c.fc("click",(function(t){return e._handleClick(t)}))}}),t})();const K=new c.s("mat-chips-default-options");class G{constructor(t,e,i,s){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=s}}const H=Object(u.u)(G);let Z=0;class Q{constructor(t,e){this.source=t,this.value=e}}let J=(()=>{class t extends H{constructor(t,e,i,s,a,n,r){super(n,s,a,r),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new D.a,this._uid=`mat-chip-list-${Z++}`,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new c.p,this.valueChange=new c.p,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(f.c)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Object(f.c)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(f.c)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Object(f.c)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(O.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(O.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(O.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(O.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new X.d(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(B.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Object(B.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Object(M.a)(null),Object(B.a)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new F.c(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===E.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(t.keyCode===E.h?(this._keyManager.setFirstItemActive(),t.preventDefault()):t.keyCode===E.e?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Q(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t.disabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(c.i),c.Rb(V.b,8),c.Rb(j.l,8),c.Rb(j.e,8),c.Rb(u.a),c.Rb(j.i,10))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var s;1&t&&c.Kb(i,$,!0),2&t&&c.qc(s=c.gc())&&(e.chips=s)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&c.fc("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(c.ac("id",e._uid),c.Fb("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),c.Ib("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[c.Db([{provide:W.d,useExisting:t}]),c.Bb],ngContentSelectors:L,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(c.nc(),c.Xb(0,"div",0),c.mc(1),c.Wb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})();const Y={separatorKeyCodes:[E.f]};let tt=(()=>{class t{}return t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({factory:function(e){return new(e||t)},providers:[u.a,{provide:K,useValue:Y}]}),t})();var et=i("GFHR");function it(t,e){1&t&&(c.Xb(0,"div"),c.Sb(1,"mat-spinner",5),c.Wb())}function st(t,e){1&t&&(c.Xb(0,"th",17),c.Dc(1,"Actions"),c.Wb())}function at(t,e){if(1&t){const t=c.Yb();c.Xb(0,"td",18),c.Xb(1,"button",19),c.fc("click",(function(){c.uc(t);const i=e.$implicit;return c.jc(2).suspendScreen(i)})),c.Xb(2,"mat-icon"),c.Dc(3,"stop"),c.Wb(),c.Wb(),c.Wb()}}function nt(t,e){1&t&&(c.Xb(0,"th",17),c.Dc(1,"Screen-Name"),c.Wb())}function rt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Dc(1),c.Wb()),2&t){const t=e.$implicit;c.Eb(1),c.Ec(t.screenName)}}function ot(t,e){1&t&&(c.Xb(0,"th",17),c.Dc(1,"Status"),c.Wb())}function ct(t,e){1&t&&(c.Xb(0,"mat-chip",23),c.Dc(1,"Playing"),c.Wb())}function ht(t,e){1&t&&(c.Xb(0,"mat-chip",23),c.Dc(1,"Repeating"),c.Wb())}function dt(t,e){if(1&t&&(c.Bc(0,ct,2,0,"ng-template",20),c.Bc(1,ht,2,0,"ng-template",null,22,c.Cc)),2&t){const t=c.rc(2),e=c.jc().$implicit;c.oc("ngIf",!e.repeat)("ngIfElse",t)}}function lt(t,e){1&t&&(c.Xb(0,"mat-chip",25),c.Dc(1,"Paused"),c.Wb())}function pt(t,e){1&t&&(c.Xb(0,"mat-chip"),c.Dc(1,"Ended"),c.Wb())}function mt(t,e){if(1&t&&(c.Bc(0,lt,2,0,"ng-template",20),c.Bc(1,pt,2,0,"ng-template",null,24,c.Cc)),2&t){const t=c.rc(2),e=c.jc().$implicit;c.oc("ngIf",e.isPaused&&!e.ended)("ngIfElse",t)}}function ut(t,e){if(1&t&&(c.Xb(0,"td",18),c.Xb(1,"mat-chip-list"),c.Bc(2,dt,3,2,"ng-template",20),c.Bc(3,mt,3,2,"ng-template",null,21,c.Cc),c.Wb(),c.Wb()),2&t){const t=e.$implicit,i=c.rc(4);c.Eb(2),c.oc("ngIf",!t.isPaused&&!t.ended)("ngIfElse",i)}}function ft(t,e){1&t&&(c.Xb(0,"th",17),c.Dc(1,"Current Time"),c.Wb())}function gt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Dc(1),c.kc(2,"minuteSeconds"),c.Wb()),2&t){const t=e.$implicit;c.Eb(1),c.Ec(c.lc(2,1,t.currentTime))}}function bt(t,e){1&t&&(c.Xb(0,"th",17),c.Dc(1,"Duration"),c.Wb())}function _t(t,e){if(1&t&&(c.Xb(0,"td",18),c.Dc(1),c.kc(2,"minuteSeconds"),c.Wb()),2&t){const t=e.$implicit;c.Eb(1),c.Ec(c.lc(2,1,t.duration))}}function kt(t,e){1&t&&(c.Xb(0,"th",17),c.Dc(1,"Currently Playing"),c.Wb())}function xt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Dc(1),c.Wb()),2&t){const t=e.$implicit;c.Eb(1),c.Ec(t.currentSource)}}function vt(t,e){1&t&&c.Sb(0,"tr",26)}function Ct(t,e){1&t&&c.Sb(0,"tr",27)}function yt(t,e){if(1&t&&(c.Xb(0,"table",6),c.Vb(1,7),c.Bc(2,st,2,0,"th",8),c.Bc(3,at,4,0,"td",9),c.Ub(),c.Vb(4,10),c.Bc(5,nt,2,0,"th",8),c.Bc(6,rt,2,1,"td",9),c.Ub(),c.Vb(7,11),c.Bc(8,ot,2,0,"th",8),c.Bc(9,ut,5,2,"td",9),c.Ub(),c.Vb(10,12),c.Bc(11,ft,2,0,"th",8),c.Bc(12,gt,3,3,"td",9),c.Ub(),c.Vb(13,13),c.Bc(14,bt,2,0,"th",8),c.Bc(15,_t,3,3,"td",9),c.Ub(),c.Vb(16,14),c.Bc(17,kt,2,0,"th",8),c.Bc(18,xt,2,1,"td",9),c.Ub(),c.Bc(19,vt,1,0,"tr",15),c.Bc(20,Ct,1,0,"tr",16),c.Wb()),2&t){const t=c.jc();c.oc("dataSource",t.screens$),c.Eb(19),c.oc("matHeaderRowDef",t.displayedColumns),c.Eb(1),c.oc("matRowDefColumns",t.displayedColumns)}}const wt=[{path:"",component:(()=>{class t{constructor(t,e,i){this.http=t,this.store=e,this.nuiService=i,this.displayedColumns=["actions","name","isPaused","currentTime","duration","currentSource"]}ngOnInit(){this.refresh()}suspendScreen(t){this.nuiService.closeScreen(t.screenName),this.refresh()}refresh(){this.nuiService.requestDuiState("")}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(h.a),c.Rb(r.g),c.Rb(d.a))},t.\u0275cmp=c.Lb({type:t,selectors:[["app-status"]],decls:11,vars:4,consts:[[1,"wrapper"],[4,"ngIf","ngIfElse"],["content",""],[1,"fab-container"],["mat-fab","","matTooltip","Refresh","color","accent",1,"md-fab-right",3,"click"],[1,"loading-spinner"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","isPaused"],["matColumnDef","currentTime"],["matColumnDef","duration"],["matColumnDef","currentSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn","matTooltip","Suspend Screen",3,"click"],[3,"ngIf","ngIfElse"],["elseBlock",""],["repeatBlock",""],[2,"background-color","forestgreen"],["elseBlock2",""],["color","accent"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t&&(c.Xb(0,"div",0),c.Xb(1,"h3"),c.Dc(2,"Status"),c.Wb(),c.Bc(3,it,2,0,"div",1),c.kc(4,"async"),c.Bc(5,yt,21,3,"ng-template",null,2,c.Cc),c.Xb(7,"div",3),c.Xb(8,"button",4),c.fc("click",(function(){return e.refresh()})),c.Xb(9,"mat-icon"),c.Dc(10,"refresh"),c.Wb(),c.Wb(),c.Wb(),c.Wb()),2&t){const t=c.rc(6);c.Eb(3),c.oc("ngIf",c.lc(4,2,e.isLoading))("ngIfElse",t)}},directives:[s.k,l.b,p.a,m.a,R,A.j,A.c,A.e,A.b,A.g,A.i,A.d,A.a,J,$,A.f,A.h],pipes:[s.b,et.a],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;min-height:390px}.loading-spinner[_ngcontent-%COMP%]{left:40%}.mat-cell[_ngcontent-%COMP%]:first-child, .mat-header-cell[_ngcontent-%COMP%]:first-child{flex:0 0 5%}.mat-cell[_ngcontent-%COMP%]:nth-child(5), .mat-header-cell[_ngcontent-%COMP%]:nth-child(5){flex:0 0 10%}.mat-column-currentSource[_ngcontent-%COMP%]{flex:0 0 50%}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:absolute!important;bottom:0}"]}),Object(n.a)([Object(r.d)(o.a.getStatuses)],t.prototype,"screens$",void 0),Object(n.a)([Object(r.d)(o.a.isLoading)],t.prototype,"isLoading",void 0),t})()}];let St=(()=>{class t{}return t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({factory:function(e){return new(e||t)},imports:[[a.d.forChild(wt)],a.d]}),t})();var Rt=i("PCNd");let It=(()=>{class t{}return t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({factory:function(e){return new(e||t)},imports:[[s.c,St,l.c,p.b,m.b,A.k,I,Rt.a,tt]]}),t})()}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/8-es5.js b/resources/Hypnonema/client/html/8-es5.js deleted file mode 100644 index 693d61a3e..000000000 --- a/resources/Hypnonema/client/html/8-es5.js +++ /dev/null @@ -1 +0,0 @@ -function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case F.c:case F.b:this.remove(),e.preventDefault();break;case F.n:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(Object(P.a)(1)).subscribe((function(){e._ngZone.run((function(){e._hasFocus=!1,e._onBlur.next({chip:e})}))}))}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=Object(f.c)(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=Object(f.c)(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=Object(f.c)(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),i}(G)).\u0275fac=function(e){return new(e||R)(c.Rb(c.m),c.Rb(c.B),c.Rb(b.a),c.Rb(m.d,8),c.Rb(g.a,8),c.Rb(c.i),c.cc("tabindex"),c.Rb(n.d,8))},R.\u0275dir=c.Mb({type:R,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){var n;1&e&&(c.Kb(i,Z,!0),c.Kb(i,Q,!0),c.Kb(i,Y,!0)),2&e&&(c.qc(n=c.gc())&&(t.avatar=n.first),c.qc(n=c.gc())&&(t.trailingIcon=n.first),c.qc(n=c.gc())&&(t.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&c.fc("click",(function(e){return t._handleClick(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()})),2&e&&(c.Fb("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),c.Ib("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[c.Bb]}),R),Y=((S=function(){function e(t,i){_classCallCheck(this,e),this._parentChip=t,i&&"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}return _createClass(e,[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||S)(c.Rb(J),c.Rb(c.m))},S.\u0275dir=c.Mb({type:S,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&c.fc("click",(function(e){return t._handleClick(e)}))}}),S),ee=new c.s("mat-chips-default-options"),te=Object(m.u)((function e(t,i,n,a){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),ie=0,ne=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},ae=((E=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,s,o,l){var h;return _classCallCheck(this,i),(h=t.call(this,o,r,s,l))._elementRef=e,h._changeDetectorRef=n,h._dir=a,h.ngControl=l,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new W.a,h._uid="mat-chip-list-".concat(ie++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(e,t){return e===t},h._required=!1,h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new c.p,h.valueChange=new c.p,h.ngControl&&(h.ngControl.valueAccessor=_assertThisInitialized(h)),h}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new U.d(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(V.a)(this._destroyed)).subscribe((function(t){return e._keyManager.withHorizontalOrientation(t)})),this._keyManager.tabOut.pipe(Object(V.a)(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.chips.changes.pipe(Object(N.a)(null),Object(V.a)(this._destroyed)).subscribe((function(){e.disabled&&Promise.resolve().then((function(){e._syncChipsState()})),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new z.c(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;e.keyCode===F.b&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(e.keyCode===F.h?(this._keyManager.setFirstItemActive(),e.preventDefault()):e.keyCode===F.e?(this._keyManager.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(e){return e.deselect()})),Array.isArray(e))e.forEach((function(e){return t._selectValue(e,i)})),this._sortValues();else{var n=this._selectValue(e,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find((function(i){return null!=i.value&&t._compareWith(i.value,e)}));return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())}))}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach((function(t){t!==e&&t.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(t){t.selected&&e._selectionModel.select(t)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.change.emit(new ne(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){e.focused||e._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach((function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()})),t.isUserInput&&e._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(t){var i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&e._keyManager.updateActiveItem(i),e.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){e._blur(),e.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(t){var i=t.chip,n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&i._hasFocus&&(e._lastDestroyedChipIndex=n)}))}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips.some((function(e){return e._hasFocus}))}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach((function(t){t.disabled=e._disabled,t._chipListMultiple=e.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Object(f.c)(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Object(f.c)(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Object(f.c)(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=Object(f.c)(e),this.chips&&this.chips.forEach((function(e){return e.chipListSelectable=t._selectable}))}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return Object(L.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return Object(L.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e._onFocus}))))}},{key:"chipBlurChanges",get:function(){return Object(L.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return Object(L.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e.destroyed}))))}}]),i}(te)).\u0275fac=function(e){return new(e||E)(c.Rb(c.m),c.Rb(c.i),c.Rb(H.b,8),c.Rb(K.l,8),c.Rb(K.e,8),c.Rb(m.a),c.Rb(K.i,10))},E.\u0275cmp=c.Lb({type:E,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){var n;1&e&&c.Kb(i,J,!0),2&e&&c.qc(n=c.gc())&&(t.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&c.fc("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()}))("keydown",(function(e){return t._keydown(e)})),2&e&&(c.ac("id",t._uid),c.Fb("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),c.Ib("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[c.Db([{provide:q.d,useExisting:E}]),c.Bb],ngContentSelectors:$,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(c.nc(),c.Xb(0,"div",0),c.mc(1),c.Wb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),E),re={separatorKeyCodes:[F.f]},se=((O=function e(){_classCallCheck(this,e)}).\u0275mod=c.Pb({type:O}),O.\u0275inj=c.Ob({factory:function(e){return new(e||O)},providers:[m.a,{provide:ee,useValue:re}]}),O),oe=i("GFHR");function ce(e,t){1&e&&(c.Xb(0,"div"),c.Sb(1,"mat-spinner",5),c.Wb())}function le(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Actions"),c.Wb())}function he(e,t){if(1&e){var i=c.Yb();c.Xb(0,"td",18),c.Xb(1,"button",19),c.fc("click",(function(){c.uc(i);var e=t.$implicit;return c.jc(2).suspendScreen(e)})),c.Xb(2,"mat-icon"),c.Dc(3,"stop"),c.Wb(),c.Wb(),c.Wb()}}function de(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Screen-Name"),c.Wb())}function pe(e,t){if(1&e&&(c.Xb(0,"td",18),c.Dc(1),c.Wb()),2&e){var i=t.$implicit;c.Eb(1),c.Ec(i.screenName)}}function ue(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Status"),c.Wb())}function me(e,t){1&e&&(c.Xb(0,"mat-chip",23),c.Dc(1,"Playing"),c.Wb())}function fe(e,t){1&e&&(c.Xb(0,"mat-chip",23),c.Dc(1,"Repeating"),c.Wb())}function be(e,t){if(1&e&&(c.Bc(0,me,2,0,"ng-template",20),c.Bc(1,fe,2,0,"ng-template",null,22,c.Cc)),2&e){var i=c.rc(2),n=c.jc().$implicit;c.oc("ngIf",!n.repeat)("ngIfElse",i)}}function ge(e,t){1&e&&(c.Xb(0,"mat-chip",25),c.Dc(1,"Paused"),c.Wb())}function _e(e,t){1&e&&(c.Xb(0,"mat-chip"),c.Dc(1,"Ended"),c.Wb())}function ke(e,t){if(1&e&&(c.Bc(0,ge,2,0,"ng-template",20),c.Bc(1,_e,2,0,"ng-template",null,24,c.Cc)),2&e){var i=c.rc(2),n=c.jc().$implicit;c.oc("ngIf",n.isPaused&&!n.ended)("ngIfElse",i)}}function ve(e,t){if(1&e&&(c.Xb(0,"td",18),c.Xb(1,"mat-chip-list"),c.Bc(2,be,3,2,"ng-template",20),c.Bc(3,ke,3,2,"ng-template",null,21,c.Cc),c.Wb(),c.Wb()),2&e){var i=t.$implicit,n=c.rc(4);c.Eb(2),c.oc("ngIf",!i.isPaused&&!i.ended)("ngIfElse",n)}}function ye(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Current Time"),c.Wb())}function Ce(e,t){if(1&e&&(c.Xb(0,"td",18),c.Dc(1),c.kc(2,"minuteSeconds"),c.Wb()),2&e){var i=t.$implicit;c.Eb(1),c.Ec(c.lc(2,1,i.currentTime))}}function xe(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Duration"),c.Wb())}function we(e,t){if(1&e&&(c.Xb(0,"td",18),c.Dc(1),c.kc(2,"minuteSeconds"),c.Wb()),2&e){var i=t.$implicit;c.Eb(1),c.Ec(c.lc(2,1,i.duration))}}function Se(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Currently Playing"),c.Wb())}function Re(e,t){if(1&e&&(c.Xb(0,"td",18),c.Dc(1),c.Wb()),2&e){var i=t.$implicit;c.Eb(1),c.Ec(i.currentSource)}}function Ae(e,t){1&e&&c.Sb(0,"tr",26)}function Ie(e,t){1&e&&c.Sb(0,"tr",27)}function Ee(e,t){if(1&e&&(c.Xb(0,"table",6),c.Vb(1,7),c.Bc(2,le,2,0,"th",8),c.Bc(3,he,4,0,"td",9),c.Ub(),c.Vb(4,10),c.Bc(5,de,2,0,"th",8),c.Bc(6,pe,2,1,"td",9),c.Ub(),c.Vb(7,11),c.Bc(8,ue,2,0,"th",8),c.Bc(9,ve,5,2,"td",9),c.Ub(),c.Vb(10,12),c.Bc(11,ye,2,0,"th",8),c.Bc(12,Ce,3,3,"td",9),c.Ub(),c.Vb(13,13),c.Bc(14,xe,2,0,"th",8),c.Bc(15,we,3,3,"td",9),c.Ub(),c.Vb(16,14),c.Bc(17,Se,2,0,"th",8),c.Bc(18,Re,2,1,"td",9),c.Ub(),c.Bc(19,Ae,1,0,"tr",15),c.Bc(20,Ie,1,0,"tr",16),c.Wb()),2&e){var i=c.jc();c.oc("dataSource",i.screens$),c.Eb(19),c.oc("matHeaderRowDef",i.displayedColumns),c.Eb(1),c.oc("matRowDefColumns",i.displayedColumns)}}var Oe,De,Te,je=[{path:"",component:(Oe=function(){function e(t,i,n){_classCallCheck(this,e),this.http=t,this.store=i,this.nuiService=n,this.displayedColumns=["actions","name","isPaused","currentTime","duration","currentSource"]}return _createClass(e,[{key:"ngOnInit",value:function(){this.refresh()}},{key:"suspendScreen",value:function(e){this.nuiService.closeScreen(e.screenName),this.refresh()}},{key:"refresh",value:function(){this.nuiService.requestDuiState("")}}]),e}(),Oe.\u0275fac=function(e){return new(e||Oe)(c.Rb(l.a),c.Rb(s.g),c.Rb(h.a))},Oe.\u0275cmp=c.Lb({type:Oe,selectors:[["app-status"]],decls:11,vars:4,consts:[[1,"wrapper"],[4,"ngIf","ngIfElse"],["content",""],[1,"fab-container"],["mat-fab","","matTooltip","Refresh","color","accent",1,"md-fab-right",3,"click"],[1,"loading-spinner"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","isPaused"],["matColumnDef","currentTime"],["matColumnDef","duration"],["matColumnDef","currentSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn","matTooltip","Suspend Screen",3,"click"],[3,"ngIf","ngIfElse"],["elseBlock",""],["repeatBlock",""],[2,"background-color","forestgreen"],["elseBlock2",""],["color","accent"],["mat-header-row",""],["mat-row",""]],template:function(e,t){if(1&e&&(c.Xb(0,"div",0),c.Xb(1,"h3"),c.Dc(2,"Status"),c.Wb(),c.Bc(3,ce,2,0,"div",1),c.kc(4,"async"),c.Bc(5,Ee,21,3,"ng-template",null,2,c.Cc),c.Xb(7,"div",3),c.Xb(8,"button",4),c.fc("click",(function(){return t.refresh()})),c.Xb(9,"mat-icon"),c.Dc(10,"refresh"),c.Wb(),c.Wb(),c.Wb(),c.Wb()),2&e){var i=c.rc(6);c.Eb(3),c.oc("ngIf",c.lc(4,2,t.isLoading))("ngIfElse",i)}},directives:[n.k,d.b,p.a,u.a,B,X.j,X.c,X.e,X.b,X.g,X.i,X.d,X.a,ae,J,X.f,X.h],pipes:[n.b,oe.a],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;min-height:390px}.loading-spinner[_ngcontent-%COMP%]{left:40%}.mat-cell[_ngcontent-%COMP%]:first-child, .mat-header-cell[_ngcontent-%COMP%]:first-child{flex:0 0 5%}.mat-cell[_ngcontent-%COMP%]:nth-child(5), .mat-header-cell[_ngcontent-%COMP%]:nth-child(5){flex:0 0 10%}.mat-column-currentSource[_ngcontent-%COMP%]{flex:0 0 50%}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:absolute!important;bottom:0}"]}),Object(r.a)([Object(s.d)(o.a.getStatuses)],Oe.prototype,"screens$",void 0),Object(r.a)([Object(s.d)(o.a.isLoading)],Oe.prototype,"isLoading",void 0),Oe)}],Be=((De=function e(){_classCallCheck(this,e)}).\u0275mod=c.Pb({type:De}),De.\u0275inj=c.Ob({factory:function(e){return new(e||De)},imports:[[a.d.forChild(je)],a.d]}),De),Me=i("PCNd"),Xe=((Te=function e(){_classCallCheck(this,e)}).\u0275mod=c.Pb({type:Te}),Te.\u0275inj=c.Ob({factory:function(e){return new(e||Te)},imports:[[n.c,Be,d.c,p.b,u.b,X.k,M,Me.a,se]]}),Te)}}]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/assets/bg.png b/resources/Hypnonema/client/html/assets/bg.png deleted file mode 100644 index 8b1e453f994100b6b05609fe1477c3f82a704451..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28316 zcmYg%by$?$^Edja7?g-eNed_lEK&;s3K9#_-6dTj-6{f7(jg(z(o)i)2uL?bD+nvO z$_neUEWBs$_4~Wtz4njY`#v#qX3l5k%*=_@P*Wto$Z(N_goGTS^gxS*4eW9Q&1 z#g1y}U}trBB*m^TqAIBRSkA`YLCOD#jkdpw2nhK2 z`0)GO;dgstCjf)P;R1p}0zyK!L5tfSey*ODzPDXHI0!=!$9Q1lVg1D6v8RKZD=T44 zODi`oPbqeG0m38#|7HQ~3H%>_;Lrc9kc}%?mM4J!H%t~N5)xJt#Dn`fzFFIghB2J8 zK`6{J{BqOe+~U;0Htx?TM^r(0#-;JoO84_pc{Qmmm9I56QpE(AJJSmea^I&67If}< zdP=3{18El(>!s&pe;JJUd4Be>@{GM@jpUMl;@d~B#q`Ag`yU;BeV>Y^2U)8TY_y(LRsF^FtT zp*%!H8HXOt!FV ziQtl6UmZpXr)D3tM-OCsZ0`FPqRuJ?Z8NV2d1oQ@eJQswIOPe?6_0gsq{ld}KV*Fh zjzaYQ^psFee6+G^zHcbH;XAR=(7mSEB(-|5mZjY=U$H;yO{0jV&{==C{IUN3?pD;iT0qlgi$->D+h4kH^u>Wa+{KemI~4Oe*X=UqEh@7A z8fx$3-9th`erDzK+-l4I?s4k`|75{hzxD10jMunf8D%%iwcuvy_cx6b@kJs9nbZ-y z;Pd_H3BuOLN34E27?;n2|EX6sgU-y%Y|GBh#<#V#Wyi*nW4dIHx@x93amy#|X2Dn+ z7iZ_6i$2R!dwVszOKoMm`jzkIcS>ir9K5`AhvD@`x54LXobD~=mOn2kWIvS_6my!2 z^&Ayz(zG$ikCCp32anO^U%JMxl$giU&m3dbS>pfwM_L%SZDZx;1w-$kzvJfn>vuL{ z^PLwZLT1{A;bPPuHiPNZ(9c9SRBLvn_i(q`(dSv<7Ht(q#@b!8a~?ddb~`SV`O8^=Tm-ESSQ#!%o${ehW3i zs*18&Q*r!B!zF*EMI7*@174@irh<#`?*)$U-5K(DGPe~yz+G`|`t_eAHYZ=SjP887Tp^JP9%76Oqb%!j}IcYS{5rm zG&HQW=@(CoefsoiXlG}~ZK=fvg#uvJk-*uc5P_U^|yYt@jx!mV^|!yB(TvN z3zM03ZIG#NZDp#TcM-`{1)>+p9NMOMna9%-_#Qu+ts7XgmcxoAegF4kx_N4dV1KYB ztcOQ+Vmoc3#yWK;e_KDPhTC!WO1|%_@oxy)V5ysului{{9$>5dOv|a^esp{&!BVN) z(BhaKc#kJMv@|G8zl9pt7fEX=xF zYW^`>S#p0{=t$z4a}Zmkx>aqZ9c5}Nx*m-uExgeIZ899IO#)$M8^uA?v}#DuFt~0SK5qev1404Q-^^jLxW2; z=Cwphhr3K-jO5H}`HZt@ZK~_Umx!e1iu%$wGT0sNt2ayeN!dP6Vguhv^dcJUOj6({ z(y$G$*B#P<-in$!hYWnj8Y$*xcaiQnnSK+;Zv}2j_8$4^>~w63BvU41=c$J4w{hyf zYk3gVUM;46sGOzQS-->ep-h<|^t$R|dyr(%YOL6C*V59GUBibD?alS|`$KBQ6NZL{ zH>G+VUP}m+BZgFOh^&Yo-$daBZu9XSm8GPl3|td1n_L@6^ZLCaf197*(a+CtU|_&e zm|^z%IN-wEbI(U-_FB`?Nwkms?+ZHnJ;~}w?9M>DMOYBciTT2ZO_hhgk2YH!^n)(+ zlTIA@O*ai;y`n<&T|yQp8*8j-+>8yWUVEx}4Ocs23k39aSpruN=!ZN0D(GRN@daqc zhVtE2sSWbqJmz|((xb2TZg?$7N5vtgstUYN5e}{azeUUrp6T`$xNJ(xY%&)Q!(ZX3 zDvUzLgES79N{mGN8l!p&=0$c7)SDM=2GAYsY1t~-7>qlnTX-Z|B5t-3=b8}|Hm`HE z2OmNgsZo`CFt5H4(CFTJb?85IDGskWQqgF(h%y4=4B}TcVs0-_TbxEz_#eXRoT^-WYoi<}Vx|Py$Kq>TA(LtFJVXBBrgUVRIZvxcfWR4s4^z`bQn@dwtu7d5`?VgowAkDgdqO02<<@5M>p?`Ow z^!@7&G@9kP4esWylgZPHi*7a;yQxDPbBRqRw}tlNAdeFNmDKCj8A$b6=}*=DOJrr0 zRUV97+3M~s5)FmB?xjnD+-=WvvsI>6O^|^_J9bYd#ae5&im+N>yUfjKX5-ayYaA#3 zRV{H6NImCa_%2*<=-Rs)T=}rI%*KZ`nJ>{>v64AQRRycV^_%IvSiwr82Ir1d{)mpU z=T_PHt5uAc(D4Fv`g+zts(u^t)x7#_TK;P5!B%@i?7ZEq-LdfeOw)E7O9^XoHclAR z-8d3f)B9+=y*Ef&&A*biYrlX+t|wdWx3|vXuKT>|VT&WSamMesv3tKqm%14H1~%lS zh&|Rq*4kyvXdE}!pwd?lOfl{mb!P7P8fDX|_O0?e8*rV}oBh&A^!$2R_NwcMrVM52 zfnm9sqGo|Ye(u_u4cIB0n^R?SC;aB^<)oC%KQEd8eSZ8m?&R+XL9BS(+S*zOi+qAa z_HfswNYZRm7B|t%lby}Y%@F*!iok{(%VE6q-;b1=8^t-(1Oe99ivXzI_m}c&SuA&{ z#zb6Sji!7^BOkTu`!3mJ|Ln~U(`;LJ8+8)vbE>Lx5fe3Hi4q+Qx@~N6xF?$4!K-ha za~JOJR5dT*a>YJNxaoKuNV+c8c(4?ICB1#(GZlBr&+C)vqS!z)%aPyr>b@LxgO2iX zafh5$X^oz2{og8Gjn>Tjej4?7&85Lm_o`|KX{I=TiX>*VLk^|aaQ$vmY)kv5mo758 zyU~NEU1m)nZQqb@*Lse{v-H+|-7R%=<3s=BNhwT?z;~Oi>7dGo0dKsfv;X*BlfiAa z4sW(zi#4{(*oyPWdDwz)94T;!Gd9uN&nj*1*m`l`FjD-NPTeEqIue_5a#Vtr_RNU; zU5CoF%*+ooQx_Vt`%;I?JdhTcA8~)<*r1?JrH^&QAP8NYrbUY({{5x)og9ZE2EbzBH*h?;MZcf(La=?x9|Ml&e zsF+xNTbmROHQ27TLF+1&({s5Ndfu+xTT%JiS5XT!Tp7Hm=VC)b$k=%?oN zi^5@-GIWmtGOZo4H4UHEoT-?z9Y?Q<$KeXBXBORN8QslhmD-YCnIBl|{;s~sjN#lx ztyb#$EV_?WuTV-(?Bd>yggJatPjQb^&)zA0gR-1O+#M;K3|de-gnMN5^15ZP+>5K- zY4nQ1j3C<5XlG>lw^n$N?ujD}4(**epFQkM*6J&pmyKy)%%yNLW>i zYc~4zq&Z&rAzC_wx@w}7%95&_P-~=br zCj{fOj|@3Rx_L=tpLltB?S~|J`m?!PTHZ$_9;uJqMGuCc(K09Kft=$%#a?UuSKBa4 z0shErA5VgnYw}QJWMtg*lmK5jx$Sk*u&;}Yx>YmUz|UD)GSj=iu)I8S+PWI?U@F_} zNxoyy?~9c8s<)Y$Kd(GJI}x5EF_YF7d3B^WAcx%Gj_a~+FQbo43O-~3J8ftdxJoDX zOKwqY#l1JjmSrOFdl_}G&iUS98UBegBNDxm{djlkP3aJB7nxlZkEH^n{j7g)&~4hV zu@})*9i>Q=Fj8n&M0CfGHqNxS4n;p9u|v6+B;Hf7Ga+1Y)C%9-dYmD^UTisz{O*uF zCj%JhHmnj99eCa3CunSP(8*?Aa*g0xby>b^-pn((=29b zb-Qf0*=9LylL?$@gm-buQx-zqEO!Qswo-OvPO@u#gQnogYcWT08Mz^rH1b9!CdnRZ z(b3V4^+t{j^Rs@bLC7yB%ear{-vJAM_(f4VFD_`?dTwcHI_G#JXVW7Gmj#^0lg@w> z#!Htj1#mM{-!L^ZGdo^35B%M&9($0kEr~Mv>iwKQuOL8Gl?tLI%>=dxLtgbt*@`Oz6uD4J5=zc zMoMjTGw)&)uf}ZdN`@Hkx!u!sYwZ?GM%?#XsNNEfBuQBAEnpjDNm)IUQzJHCgWPlv zj^q!Zq{rm?C&&AakKjx3Q$cD{rBul>-cwDl82|E`n2TQ9)O6LJT0MG)%5jjHP^(cE z+M%?!i9>3d3s~Y2G7NE<%NU;CtQ!+&QYCUciVa0_^s;+*I9cW;IK)}(%=&9k2<%7& zqM>jYX|y=fo^)LOXs$Px&ogzA(rY)fbWn4jS>u52p??l9j_*r@1exDWne<6;%uP*A zt$Y9et@x{2S);FR>B@qytmQS6&yG0FRBjyZZyA}IPAwk|E&m)aKd$-k;e#}z{8)#v zk1e+;P_h&N-1v=SJZ{sw z#W1I96e|>!w{8B_HAA34m-5iPOxr8sxpZa3)zfPIh-Gf>AW7zKffAdcGiqBV>qCYu zaZ%>3!{cdLhCb8GTL`rk(x&`(=wOdY7tKoF4ykf3w(ee`X}K8xb!g6~ zx3w7=Y=kr_KD$!jqP`gszd|{gE28rEqfnjed5;%G4yE2L72w=w@9tjx=P&j#y?g>K zE$yGpvZ_tMus?7}|AYwy-j|e=G&eIbIcn%huVRtp^hXJR^CbRv+|ie~qZOyBHZD|K z`+kL+1AtTe)6;>^DRjGrhE(Cmy1KgL6m7=Xo-cuH-ICjynPCFBV$HSBzXxUO&rV2g zlAek~Z%g(GoU)l&-S#suFYu$ddzX80g$%vHcXVD~Z-|Ty<~cUMysV!;_N9o9EbK$6 zo?wNZN>$rIM)2=zA)4m+P5piDkUj3^5CHms^kc95vA^q$=n}F>(zRdR;B&II%5w5o z;Anf~xLj0J^iM+wu3>I*@p_Zyv{9i$hAu_62N3K~QQNzWw4(GSKep5VrMT&HTw=yo zg_1nZcy+|@Q$X&ge)h3Mf5#`);E@Y>r+~IM2L}gr_4S3ewIu^-0#5Gkn$vURsZ>h= z;K+raRL3U=ujvQNFaPZk`xDTC2>`0lv&_fG7uX+g@^&-bed=WlK6qJ_A@*b~EqEg> z_`80{zP{IL4>=y3>qEgNRy_3n>|PEI`{m{ zPqVWKe0~^er$_0=Z4HLl@D*{r+S$pKl{^sZ@x&dt0J(1Tr|<&2;Rq^=g@IVg;Q~^+ zIQp8v=0whM-SqVIAIT21q|7mPB;+{Gzip`_Ve+PAPGe(!yv_}Li}~@I`LRFRbL%(9A4&cFWl_%e&- zFQ$M34*t85L2ne4?#9mhQ>(3ycJaOn(wzzH%RJ6()MOQZI!cJGDg-IcNv9hRBCsyq%iafP;6^;Oar96{_E{Wlb4UT-d{H;ibLMRM<} zd9$07M=y52`jFHg&Han~ua4{rVtbs{$7;}GM4_gK`N(gyfBXggwSvHUSQI<(2D{zM z!R`Xln#EQ>?Kr7}bl}n`D*O@Yc{j1~v+Crq%4=s%1pit6=!G=;^@zQl9a07dVD|4; z;&E?{hX__V4-*ru{kbp&cP2YL4F-d$J&8bUqfb7GVs}RJ&@|LT7qVv%9Gq$$BdhG3%mLr4 zv%!i*22E4keDOeb<#JY9yg1gI*{^E@<3}CA%BdC^@B0Uz{Z*|W<0IR`6mo+5wfvoF z-S$_A)1XHF%~WEbKWy6vo;3cu+wr>F@g-!|@i)rjd&{^bOgPu0xICp{IQ|={ z%;@xVDs#X#%(U^b<&Pp!268`Ct@7$(i;vgIG2WR!QPA0`9lK$8eX!_d{NJCKsf(A9 z?w6_K+J1dKADMLEUY?@v9rxn%YGvSHMUR`3QkJW=tW|6fHFfbUVyzp^NFDoV&!a8k zEs}!t{1Evuy=|Ca&$}r{L?R)GCahX}-z6%n1t8hZ?(Qat#J!`vc5TXDn6~|QtXtsY zkdTuRPOm*bzFV)QSCGLwGr>C@C!e{cEsuZ39V?k*`}GyVbyO#G8eA90mzLgCnzj@H zILdu$SD{NIKQ}iw-hyf`1KI%ww?+Ft+Gw24_VboSFthz0`~O9BnVNfN)qpo=oB2Xy zuPHX&ICeQcUVO3V#b*W_C#PC1&_<*f=PPEJA8+p){7J+JO*8W`Qbb#xi`?J$+Q$V| zR93!vs7V(Us9$L^79n$F=_PU9#l=MmzvC8ylU%}8{g{cPm?%vvSkpK2TMIdkUH%)Z zzvPF!j_)=<3Inh})9e1h1JyP?GXs3)iZcDG(nVLhtM?tKsFFCxvL$`~ECry*!@Ba% zNXxFk4iHLr*QJY=mw!yKa=z)2z7RRVoDuKK^y2d&PIA4!cfs)}{Ke-DQ7+EuuiR|z z8QD5!oSdmHKJhbIX&5yHvmPeBt8&jOXPx_v2x|jJdII-8*D*Gy9(| z3H$_Rv^fZOkVMIR_b+8n`l29j*zJc5M^|zVCyS5Q&?7Qc9VfVs8K5ePr&oGtehIomH@b8OV{Z0i$% ze-e&9x=g)s4Mw*C^vnW34mcZq0U`JBvl)CLASi!g{FJ} zPhnwU<4Qv&L$naBx{O`M5MHv&&5 zCMM>ET9Rrz+8a0=jgT(TE8DLc7j~hueneUNT;JUHd)Ud5V#puG{eyY8t<2@4_0c~x z0RaJorMQBG+P5OmB673H}dyKO`$M= z+A?6)x9VriCcsARsGBy6%~SHWvr}})Fbg`yB4vC*w5@G_+Sth4d?X`7c{~8smKK|S z<&$;otPVKJR2Vl*?s!L(z9LNXG{Rc2YK4_&z3UtBF@cX#*WO-PN5u&;6&T!;VS;Dr z|GWE|IaqrEXE(P2Wi6&&nM2@$Wr)Ap$D=}I7~gY|Db#j!R4L>qs9Im{tLc1vtv+@l(E3W z(4ScYhk|A;-m2I5P5#=KO&Qhfc(=5*wjTWryL8PH2nc8r&%?Y%u!OD+nWhw^8=ewC zh;*-gh{OIAN7i&y)Eg=-EG-Qe-AYatks(jhhr(WmpZoijCyE^A>ZYX|>go!1c3c2f zAwqAh06hV*aNq;pdbtz;z-x^1GJ(cnI#hNmMVI*(_h}<3-(Rf80;<|K`YaylSjPa7 zgS~YP#M5HH8Auca+=hU!W>&?G%!+|M8FmN>k>QmI&&J?_K*y&~A?33J$||iIA#25R zxU;?eXeQ#an%vr$5wG>2N>BRPd1ujU1P3z-jFX*x9gd{wtp;9Ta*>0mMQptujUC9x)zrk=Z7+_aVdTwwe+q}HyWII5QdNH@9m^47(syN8*3~=d# z)zC}iG~BG4?uQqH&3l?18bxyn=S-5x`pOzHesJKu(I^CMn|&NU%_Wgj-LyT>5S$MU z=Y)G6rF@b4 zZ#U$^TLZevFK)?cIf@)ZLk*{(k-ESNvN$+0M1^20!?1kzH*AJfr{qb-M@DR zw0S!Fm}+M)=t|c&k=*li=PDyt|30>jK9Y{Q&WKJ!4?x4%EjP-VCvryMsVJZ4!E6N| ztJ()J9J6@qU8N3Sg%)iXwujqyL+EF{*S$8+v=+ z)-$7v^~|TE8lI?gY_MedT0G6IC>@A&3-2(l!tQ6v=ov#N;I{n8N+RFUK!1O~?MCR@ zNp_RIu}FN!^7!zvDJ^xxf$sT;7$Tvy0y!I59)=oq)6B=FCRBh8$+t~637rPhG(W8KAzwebda%fe!WUGQ|4_Tp2UJBB~HevICY zw7eBlngT6pZDFa6{qbS^*}~9xgRI@>{cMB*26F<}RT3XKWc1VJ1EgD%;YA=4ll7=e z*dcug>>Ek2-+AlqAWdpJq}ugP)N(B_Kv$Ln>RJ@2G8T`G3W-=7zpq5L0ULoUqKOM+ z+5OvAmWOP@{6&diL6?brR|?h-wueaEB+mI3ra25R2Cm*f4_&uA-^SZSxv)FZ0v!v-YzqlZo?;W-Zf>@XD2NS>qNIz?fz@CYglOq3HuR%LyvPO1oX>)v9NdE+Jcn>)un1v#Nlt0d?o;kF zr#v2p3*rA0m=$N3P8v&_Fbf0PgEM@qCf;DXQ^|w4l9*=SSG97^nL2HUUllFT1#w?a{ zu8=m)S+Em%p?s zHz7O}E;UpISGarni28q%mx{Kxh@PR5tK%{oWdGLFJoqoYEM$XKiQDxwM*hPq{pu%lHE%pB>oy#w zxizUhh;Yi(ckQshC-)}rnYs6}hWGeB=tFjD@Z|-~N=Icf!d?Se;0ZX4Kttzit*cap zCO4`bp+=opnDArOsdq)#VMt-0Vl`4vMVzZ-I|EUM{gySLAilrE3(VA2Z41HxBAFZ^!gH!+^6*9PrF;MeX=?}EN^l!u&B5}WDPDvP2H7}tLiB2LJjGW#Rq!p zniY%2tPbgr>>+_KZV=w4n`2KsY{Nw5*^f5YHEOj#G1&g1qzesgtD^gAKs_XZGG;oU ziW5;|TQn{7jfhxDHMIG|@EZtrL=?z@FNKr$D~JwJ+H2Qa6X@*RJ`Wd=sVVW`XZ$=# zo0(1&Opb@^qfrJ#o(pk^>J@`K*pAxEsve6Jwd+OGM&0fYlR%jiux5%;^n#hE^Z%_A z*iAq9;(Cy=2R;(`9NY|yVs4w*3 z)G~z3!0d|1`6!!DWY>n_a3nZu>E#H^*muCy1|Uh_4zz4DX0rJ zal|h-gRXJ_`7w7)Rc`rnjh`@~JxQ&=^0n&nd*VW86{Hbbn#A$-MG{Lm;mApQ;To8u zLQ&@zRDthxLTd|YoqC@7)zUDcZ=6nv4SvZ+DuGNc+8Fg0T`m`9x%fXb<}5oTAbkHi z{bHT-i_BkQP;Z6Td(*kOZdMsZ9Cu6%oJdnXb0R1(cZ%d7c(OR4>CL%05U5Gx;O_2D zMUCdAq9E>!lrVV|9vHhGIyh26mVHPKdh8vW+4RXsG8x;736+lYdTz0}Pnd-yE_Lj$ zyVKr;8BOgQa^6QCRtCoH*9b2anitD|E@kjRKz0q#e)6~Cs&4ZRS-ji z(p7<&j~f@C848i9s%}I;#G@_e;M6zBGcv;;(-nRCM~}vNK2eeVr2)8@7EeJeQR_kbIEyy_K8hdx@ik$??!rwQt;kMhsYXCtzqT49{vEi@Qa3ypoPht7ublR zRFYo3`XA8fy`?xZi#wAGbuZV83F8aqj0<0X&7qlCjxlq{(9^qoAqskI-V=+kzR?F4 ztASSEB7EwlSN%GIZ~o~hapie)u#T}r7c1ROPTL};jE=$jQALFb1)+bs=@RbyO~JiO z=x5OUf*nzzGi18d1A=x$0H~s(?n-{?&ZN>0v!Er`EkVG0Cf3a@Nf3Mh1t_;BWRjtaEN1dWUOp2!WU#=>e2 ze%+E~BQTUj33z;=Y?)77oCwOJWF?53VKh{j9r?u3WvuulL#R&{jgA+~F|&&VQ8 zyy0=rK(Q?VW9HX=x8>zJKHoJirx{;>{FmW~Bi160{LJt~jv*C7CyVxn+GKU(zebCv z$4_4+bhCXu_PtSLHR`ENg>r?58X{4HXd>Wx&UN*eXmxInet!xNxsl(FEQHZl{F6fZEW1qCSt2HV%i?j8 z+HBLOk)H_rtf5-~CmOd@2jfT~B8`J3R=HJb7K7(1-G{S>4WWI)+%C(^ckXkb%;%#g zTWuhknud`!zRCAz>CRK4k>N1B0dToqSc-u6Pdy60a!x6;(-EXj!l_EPm<+!HElA*N z1KGj2U}Xb{H|&*llay)6f?Mf$j9g36;wl{Z6D-aLT9+iCe#4OTbbegM2$n?7iGLG#V|JKB2%Q=ku=-Bcr#3#q8v} zlh`vw-m81HmrJ&kX#N6P&)u(nm;RfJ!bDr-H8hV!PjbQM(pE8Hb*tn4z~==~L`9%P zL%suvP>dF|x#(P69bC(qhP=1d80>USJn_pbB7l4R!IiityIQp z2GjNtu6O~2eXTW z_UH;eG&#A691n4UEro^uQ?RL>h(B8)<@`wb-)Y~vJI?}u57{dYZHqIOFEVScYr8}3 zYe$?kRI>{Bkh4b+p`Ay(!zt+<&QMgika0cK+7J!_v>;=YAHT4q*D!+NkBW1>QPhAQ zq#h65-h~yV1-kxCx4OKmd26fKo{(3HLc3_N>_?s^@KfHmmyCWQE%ikg80|s_f2z)N zY!4NLgbaC-n1d+>SgQCad$3^yR-XFHdJGAxCKr_)A`ko9A z|4t40eQ#XC-B;pdC5(Jeifwd1sr|66{Scw=kZ~)9Tf)KiJTj|!u@Zb^V2+}hgzsl^ zL+iCx$$F2fE3&IcXNy3P15D*OZFIvS&$S`nwSgNs5xSlqQG1Ct(?i)TLjSs&+T|J$ ziPS8f*DM>;YFX4{qU^5I)=tHT--=wqmH#mmEnz=JSd~t{l(WsQia1<=^2CE_qgh#T z;huh@fcTv9auFegJ?R(n0;udP54rp(Wvzx8-9#=U0|SlPF(!%KE{!>E_XQKk`aEV1 zE3fP5C|2_^Us9P?nBAkw%;QO{ANzPxk@rRU;(geQ2OKEU|K_l9IzzLf#7? zP4wPNCdy_FP-5={_M=jv*1J}6BWsFt`EatA-*aH1PATx0 zrV+EeF~M`-ZpDV@qnJs@`ntyV@4~{)%4-%ZW?#R7Z;z?BDHf}zdVp>aFc%z@UHMM_ zhye;z#8dpYa(rBw$k~?>rrclj0n~D1M*8P|zI{UXJgayJC!(^X=!ePq zm!#ST53v1~=U*nmB0?vX5@G#e@=3R&*{gVJNPDXtMU6@CS6Aqj-SDeo6mw;&+Ss6J zn59tjZv1h9FdWhp6mo%Rw&|VpE1C>{=wnvDa}`EBd#|?jFo~RrK|TTGjWULcz?_~E zvrJLLa8o1W36NV#e)Culy_B}zQSPkN@qjQA-Fe;5folQ?Ek6Ny&A`!e;eG`Hsaw{b z8euUY>JG*LY9=bWOCHu(&#PZoQjNAko*i#&+9=FiN_9o0)#%lT$Ey zvQ28rLuQ2psp=Tv^HB=!&Qs1kphOyE+s4+{ZS_=5>>Io`R=US;UQ$;+AMbe&+M!IS z>_fa6Emap!fu(qP|Z3ayl z+%#^)lHxhHvK+I$%P6&#(AjE=Ab&Ntyeu;&OfYWWj+7IH#X`PWUj6-eGipNeLw%@p zRA>pz3RL1bvoa#HKzYHGqi8Yn<2tqP0*~53XfNviFH2pjGKHy|;D!&#L1%gRgX|S3 z??Fvm61XdXY6A%jwf(yUlQ>v4iqT+*F>|cY&7gSF|BL2YaS(H;hlB9BkH0>Kl7^OC zY?}eMOF&`f(Tk%WDI*@zyhmY!*Y?a||M{b?vJ8*Gf)l$Zs9w#0Kyw=?=Sv|R{nFk< zW6bcu=AhuCPI@n4=Fg<|$h$EE&9WPy@a(7C$w4%ss1pPum^XI_5)))eED&%a)z%hA z)|Teghu-98R=e)L z??9mnNT8qsk&+;Br&T-4G|PpcHf{DqRCOG)Rg|~pN&4`Af%h3z*}XBGD3xphsJ6L^)V$DmUxt;B zA1U2-y0$|A@Pf2o*%U~>C03fXm8YcG1Yrlv$98usSN;lifv(P?o;!0k`~FVNUQU{b zaovoAsU2^xRfRmtkiVr+scOJ7?zmc81Q75PedEu4VJ>E2)S#)%7g|aI^A~(q6huLm z&B(|o5yYu1df;L(^ux>@<_#J;%Qu$^KnF63Abse+{@SkY!-t|^8T#2CqkQ4mWX>`p zLqkoPLgk59ttbbdhJ3MQlbN|Wn~I7G)y0G>V7gAM=of9Stq{7N^Fhho#a*X7&xJ%h z_01adpulXT6gkjxfM> z6Oa`BsC6_wZyoo?Iq+{s8ca0v+$!gu@sxDUm}+6y`-AtpFF&4%m-u;}p=9hO$m#ys zaqB2-@tILkg%f)?u?mUG>4n{`)cU6bsfW})< z>|QO`+py~&K)o4-0u4hD4X}yzsh%gtF8fI*inwf_KZ_`{1dpJKa`86&LFMsk$Pw2m zg2UB$Io+8yT>RCPv#7|=W2DGW3grI#b5-;)%j_WVF2WG{Oj_>g&VGP$c2YKbOV~51 ztsiZTjo=J1Dmb^{5Z0?!oWHmz1y8f3RM4GY{`j9QP}y=bJAI#-6NKbESi`EH!`F*r zV~5J|f`mnU*vtEhR9oeNW`TE0kVczI?dZYi@aF({+AY<#)HGvIf_gWdf@5lFx6&l> z%bR=dd}J0$BO30FLRm_)3dM$|cbVYtmXc$?GcgXOW_ipltJk%)@gpKQ@PxrTlUp%S zt3}}QAZNZ_Sw&$X*!4>?U)a=^a)P&1P>c7k!V+NPVVBArMHxY!(Rki?Zh1aUr{jWy zft!|j4~S->??2X))oVAIvlj*+VY|LSK&mWN%|{@`P0`#eLb&uo&r#?Q+?hUc`zA%{ z%iXsn4s!ZcW?(}mb1p6~=v2)lNqwikzISRoRfOnDqj`iy7U$=aUV@620aZu$d+0z8x}pQ~<`92e;$2PLAwZn5wo{ixlCa0k|WOTCa!5*j(xf_x{ijm$JA? zbJpdUgff75pcapgsRn43=%EHEYWClsyDtKR|Ge{4&673r{fMyY)Rvb`%vkM+G`R0` z6`^GpV&34otk*CjnVzxw=WD!PS3wLhee-w;I0D4-UGr%p(-v=CC#SSY6t{BXA6A*{ z2O3O+UFk(;h{V$Qom+^kH^GNDr4GJY3xVrj+KcU8Dxfl((uRw49)$t>1r%y<9zt&V zQ<#G0Ri*YPwF&ID`fPeO6GrA?zAZ<-Zox#eoye&PtYSuy|7HpI{&ww% z?bWW9tt~?FcQRL>+=a+l8ajuJS8!|>o3_I%2qo^mpT31S1XUC>t8p^90K7p3o5*4l zy3%#Iy`rrx2tG5Yz+5ltxty8x`kbmtY^#rQq7Jxy8LJ>C(E987n}A(7Ac@|ZPMO+^6Qg4xTys$CPe$MME344qS`A^ zL8t&wuG$WYc|cZ{lB+!qT(t#$CkU+}mbmwVM=|d~J}QdcwDEl@_Zwd=P*WcRY8h(X zt-x%>Zb4hdbBzI*TwSWrZTsAtCH1Mq6yakFs=e0W$2ik^W0$r-eDjJg)oJsfeO)Qs zb}gus`T(l5q(H61y_S|1ptGdfwvBu|qM541B1J-lGbsD?->&Wj_m6Hl#P?|-J#nCB z3ANL(|Lqtb!3@$tN_^p;0+9n$3>TofmSGM;PI_wIEyO(ARez-8S1Z3+Bac%Bpmo0; z)21%a{x=WsSP#l%!Cecmi{Qwb^?XqN396=ed3gzj30#UQaQ+ZkQE_{**-smkcWD9r z0mWDcei1PH($o~cztvED!&U=wwLsCtBz_3zzx})S54b($=-`KlZDez*09C03vnQ;o zVr(DYNms-QF8mV8;uk^bCD7}6O6D&r+|*RMiR4=}$LFD_jD|Li{N9oi5IxQfwKd%0 zLl_`Bjh}FZ1l)24Bx*9He3;($Zc(2282EC2ejY5kKB$rb{+Rv~!EX6KR7Fkakyj2? z!v_*+0#IvN0X*CUbRwyB72I?Pq@%@P_IF!QrBjX$?hcxO>q|Rfd>ZG5CA}oC@1Rhi z!d@ox+88`-2d#PD5;pjePDQI@nVXmoquH~B5yCThVBPwZroVn_4n2t&Q<3u})OoZ{ z=uL@fYSB^^UKmnEb3?%(I$fq869EE9Q_Jkl{gDiVQkfEV0xcG;HGy7w>@$t*76zi@ z9Etrr7li_i4NmAF-i z@!Y}o(rHk-k^4-Umls;Zr)UmyREfBuhqrK%!eu1A5(* zz*SiMYK(@VAU{>B!Z&l2^w6BH`HSLOqFxv6?hv+r&|n zvfb?ziaOuQLJzZsg)Jl0M_7Mdc#0ZCqF2%pJG;&gh4Mr9TMGVp@ zSB1On>9NomUeNqgR;1yLgi=T@gAEe$SNndv{a-D>$6RHr;Q#(rI8>Dmrs+~g zM<&J-X9&dv`(A{Ohn-jjVy?qaG#6)?K9=`2YEn5=)4Arm8l^%Vh@E{hB(O}v9M)`l z5yZM}ZVD}nLNQyxfd11fpPxCM{ui$|PYI%qg}sm`v`*Kx^`(t&#=6>HjH!w3&w#={ zB*Xmqk*m`&bPS8htpCU9pe#|@f@24Qu&ITE#3QjsWx11OA}6?b|HI$7AxbF;3bLe= zn}r5PYI&W7J-TZhljWg9RD%cwS&(RX=m+f}q=xjRX=V_Yi6Zjne35p^XM#D6o7IA#sb-G%hgPg|F1&>WS;$lS;k#V)TYT;tyO@E^ICuQ0@{BN53Iq`cQl zIH}JN2>cd!Gy610om^oE#CMjuT*~KCXhBJ8t6a-86-o%Lo_f6Hp|CLtI^T6`w7h9U zQuWkdZZ4bM^d7Knn=T?|px4a!n3}|D$a|ctEl~KT1RQ z{o=Xz5L@tX#f%o(JCV#M@u zu#L7wfy1rH1Y-K#EOsEkFz0iGmk@!wr?vUF1m}((ztins*CHJJNd}8X^MoIUB-kZ! zf(q2xi^M`K@eb#Vq9?=ul1LzG`g$aMLqPUybvf3-9SSFXi$O;WDHkUItSS2VuV5<6 zTu*D-5EhkJZl33{tC<7E`oFQ!zdjv$k+^gX5~k-X2&ZHjCr8JMl=_D`(8fYn@(Itm zU%COi4M{DF1K_8F=MP2&5h8|aH2f8ttV|Y!8hhk%E=^sC()N-rASRRt#dxm|Cm57- z>X{O=1vsv&hkJf*k1ocnsGScdaQXN+=EZ|gY=oa#=7t_%YsA370sD^(6#T#ns=@@z zIH@lZL_(61pE>>yh`WU4KN@LU2>#2SHpFB2K0;Hh>r10!2SPMy5Vt_cKaI%5O%|%I z&cg3*2#`uScjtDcNh)77BP1bP#cbLFLjyinx}q*tDo9@fOOnuze_?cAJ#_ndR3EA?>{FK-B?)Qgc9V}1jynUvOr@&`_65UQngAb+-K7^D9)K!#t zGQ=WcmhUC-K~El5pY~~2ioz}YJyWUj1Y&Vl#1lICkdV3W@D~xp`E*uCc$cxCGlM1{ z-|*#|0^wQbM;$Jhk`I)sOP5!xb}Vw&^qLSCB4R=|6Ztihi(;Lk59-z_ z_2o>Yw-iIkgLtKS;?%+3qGP+aGw3**D|u(UE}SFC)FS*f32cd6SGkW<=l~Lak$J+` z;Xe%5-??Upa(sk19}KT!&i^f2REdC%cSBCY?)BevqdF2^U4qFd+#@I}ZjqWi_@Doq zV%yp#Mounry_mTh1CXZPx%r0Ald1UYZNY77qEoS<{pg_;U3gcRQ{rJEH8GpJ9sT@s z-L(x{h^1OK0j!wDV)8>a!ukys33ZW12t{%QC=s*$n4)K}$n|zQ#NxvXP<@Gogm~ho zpUiZ9)h1e1-;GlS-C|GrPw;jZZT}#&=XV5jNc_zN(5|wDzv2Q z_gY-sEV@ti;L2=}=IR}Y*COqNul(nqFFwpe;rFNIw!y03EIsb>{ z(!=rW&V;8#IVfu3U*D}1PM6}Of}nLajTYBrc;$7TsE!1L<+F+Ymtyj+5Fm%dR^|WG zjg7Rl^GxqtB^)^jub$3YT&t(QWs)Q+m#{&2Ktif+_Dl=+;pKm?AN0EaXy(64WLKf! z25x-!32bsvm`qM6oX}D*bfwx%>-l?)?+g=E^#8A>>yD@T|NbhaDTO4$r({$gWJH8~ z%D82OB7{oDHM6dLg%&ceJ+n7u@2ji`H#>BxuFZ8bFRsh)T)w}@!#~`6-}g1n>-jq4 zd7kzrA%}4J^n#QBT%g6aFv7N{Y3+j|?X3;g?*`+qdHeB%&Q;gkX6ig<_Dn{K_x|qC zX9z0AX;tYzgt!Fau(w}ZU5-3zvS&B}ufr2W>MYc>zDvD0c07LW%(=|n1(f<~+xk|~ z{T<^2$rFwD>q(@3%iZl~6p-n)IQ^zj+;!ww%RjWKH_U%Bk*z64Zk45cq2)p8UV7+? z(_Ne4VrSWNJchzp2+bamjL%OS4o1#ZKi?x)wcH36W8%rwp*>!KDO7QHoXDt93ddQG z>FTAMb^-_~Cf-8|OlrG^6r-lsc+60yS%8?yd1PBnHjV2hF{tOt$JE6-hHs=*&-iGVa~ou@f;JDVBY=# z>x{VPZD#>g27`PRMfXSm9FNKB>*k_wQO?@SF2D9j%`bWUr3tmbW`|74neSewnb~gbkr>3jaoIi!TcG#h%R77WD0}>_P4t>cCdZ%}n@WG! zWxoiTa`PzLwb7R~JQ2@Zy%BY{0kG$)4^%WB_I)C$QkwVk$MhcJlA}_t`TyM9Jt&z5 zecgT4Wr{buN-(}_R&9cJXai~JJ9_EHQ#9#*FJ3%OSdK4jA%pg3k&6jSWEIY8jZ}hE z4q>-mOjp8xcz;zPN3*Zy9hDDzhn>Hm)xxq_o1%ybNFUilI4+riW4=6hS?->zJ^1FS z=sV;?yKMJe_}9LW@*>EP*mqo3JR~hCqbKpOsL>GL=>MNCAw-)TGmm=`+ofZjj)im8 zM}0pyrP0Rn^1#(7LW$Vh@YFjg8`vo~NZr>cq*8s`F2}W^xF6Eq(y;Q88Ljw+RXX_M zAeq{vn(8mA*1w1HPJs-s5GH2~F|wunr8|2op{s9g-f}UHD_!$E97teo`WaSCLZpEBTJ!h6T?!+etlzx%`XvK{`eu?aG#Stxl7l zax5*!@LwVieM^e-pJ)G{d$4j1flZGQ;v&cH)F4@H{+!r#F)~%ImX^%nVhS@5`^Fpo z72#F%V`UHA+ro=iHq5INluQ64pk=FfHG*yrgfSNdBLtP)DOC|X-A%qq4=VYRWYYt8 z_gFOx|3xBr)#6c)%}H6@NZmoDqQO8To;}1H3Kw4!;UZNP<|(CJlj7@Mu(eE^+xr;% zoSZ*OHCksz9PH}I@lNKXskY_Xj@{!)*L!Ks$X^LN#$9N8_x|3{8k;;8_e-of!acZ? z%5yDAvy|ic-ukIltXJM)o_qaNV2qY}b@97HdF^_pdm(yvr|W)&4=w1C-zAN6y-gR!x1^ z{1KXack$h(B{ZK%e!u0>#`{TAifx~H4)Y>{luQ8j_J7Ha>m+hq$y7|BJ?G^Cq2Ez# zYdgfGbiTkx@U&K5oy(Cv<+H2Rx&5;Zb)w;!yH>~fz)#^B6TO3>Zl{@8!1BB*`~rzo zhf6ossMmaX-W9(?MbpMpG)N{S?%r|jFA|y-GEpZrYxr|YIRw@yURB}ORd=+Rd3Ew0 zKD->6ZJg^?&~5R*Wo0ZDsXc#@k#C1rQNkkq^K7P$&AC=6wsX5kC;E6?sxGXNdD3lp zYnW)OU!X%;;MhIl5#oJA!-X5Y{`&*o_FlDiHypXn&d#>w zn;Z4qiZMx3NHiLqtx219!)GQ-$v_LXi)DUyFgL{e)jGwY;H<#(*vSQj@>S0&G1)KQ zd$O$Gvd!6W)xB;yiJfmZ%S6X{v-{C)a@Wfyp2Opm?fc#5aLeOvMl1(VHHH%Bg7R$3 z^zrtbQ@%3}vr@sHW4cfog(^IDETlaJ769rK(4D$bj}5WgP2n(A7`$(Z%wK#5MPdb} z>~4$WKL@_E6xwqtLy{kouF?+UD$S97WG`^q+N0VmvP`9vZc~ z4D%KE;LHHltVJ(lco4M29oUyTSFLFiXIqg6?%oUqJy_?yI=cov@HbsV=Al&Hnw}2&@J$wlaOSw~Xfl&Xu?FK@)6_PM&7d?$KbR8?>KzuXdwP2A+uhf0Ftf6{2W|5MK^&6kvhs4&H)l>|_zFAkzn>Yx(;@qR;pn#K7_IRB zMMQi?`JloFaA0-vGSZYol#cECu=6Kd!#M3EZ;8J~`tsb*>J8(Cl2f}qr)apGY70qTYeNE7kMjCc3o}p^y?_!lfh=KR zP`R5PJ3SerO^6>TC#76p9Bed7-Bgtk#G&Qr;PihFmu=Mn<8Hd(faD>L;{_myHnP zf#%}92(_7e;YprL2wH^-^6r2>xeqQ^lja!3i1q)*_TGm$3UB~_?_>4aT~*f^_f%2-bT>n`W=ctP=wxyt~0VL7@TW^EsDIW z2rGegr4TEMJfZhl+Wyb0`jrgfnI?Z`&5YiS4L4fdk7ltI+P%0kt(@t;9Boaduv>dm z9k4a+`ApaSoQc-=3Q~=%7b4TqSm819YGje8;@I|Dg)@jH8P>XLCc|{HMu^)*`UPgT zfxmP03-0#t)6RDYE>R{+zaXDx84Y%)DNnc=J+RA!mSLJEoeP#?2z4t9 zQ&Yt$T=HO6GJ4baeCviyfsS^DR@jJT8I8YGTG~f)lJ;JMX6sBmiR}ER=}4lihfbDy zqE?yyLniuMojhsuRwaNy4L*4P9YFY-=jG9lTSK^Y;W6lA*EjG8%zN42c)g7IzZ8`e5#@(@+$UJJI+z^c+r5x+zg9{h<-ftFskd- zfK^YiyzjF)y)Bcg+w~>7CQT^5zR60_Xz@RR7z;6%WAFb~Ei`*1zG}NV+~z8-AFsZ6 zRF`^HQl9qOqktW?i*4&b6be*qn251e=v?wN2r4Ygw{Ue|9R( zrhQ&8u}@dYICf?7TiK1Z-)7@=#p|c}xMhh=zia^@Nhb!=))Oj+IU~fo z;Xuj)u(bVInF8x+A$}-#f?nZ+dtG63vtnkF#c5R>uV-v<>|I@!U;fjZnZPgC zEsvNr$`yT^?D@GI3+LI7oc`9S8v5vins1Y6P`VtiN(9TBqZuOypD)nAb>N&q{r=u? z^fcVRKoApZwO{$=cM@<6miO}U+i-2lZm$z){H;|0*0~>_OqRTi;R@>Ku&YfO1ktH6 z==0u+hRZ>};0!gd=~zc)AzXet+}!-(=p3K1KI3_O}3mT=85+tncgbBX-^mT?e!z5(pYuH7H z-Fvb6#c$tH&*e^ILoAxAL3Dc`K%(5vn~_qNKi(+6*`|Sp*03V-${=>zS$6AhBba^^ zL8=-}br&D_2$%HwA_0D>2A*76$I}e0YZKaODuec%a3-wKXt}#V;3LEJ3L*hx6{6x!^b>MJrA*p@@wkI2ukXTf9Dss5ntM7GwB=q<1{fS{^^yf z1~0K#@{NHeLfJ=2yC)iIxB2YXGZw{~m=o-+DcJV56Kc{%H?m`!{Kc`#L7aWGM}CS6 z<`mQ!Yu-9xXU=j-@%4Xd^FR>ov#kJz7|8hM!(IIFGAne)-v~}?e0y@PTba9msKk8r zZ{x{1SQpJx@i;k(D#(DeM}jLty@*>Lz#I+I>De#ZYAi~(nlY| z%fch?P6$h0zrMW)_Pv-K%q3gB{?idhvkP#vHva?)k5lU7I?YOZmY0{oz32gqqoGew zP*Aq970e6bB%%h#$l-7lgNZ)=0cQKm(1*pT;^J`RGRvvt1=~yWjF#U$D>$33F4t|x zM%XjSW5qoSE7@M>?EC(4W>fB@e01gJ@9*AsuU-_8#U(lm-n=hZ-r+FEZrmm7oFGQR z*P3U!k{GO_emHtmP&>>eJnP-eFFD9#M+k#0hN#i)8?HZ8jE(eVYQDA2W=IYZ6Uwf0#!tDWHK(9mEc{V~l zL5g-h08Oi^ZoGb)?K0-2D-Y_UTZ2X(MB{$TGI0@liyQrOS>(lgQyRULj?kvG=4@f^TGE?Q#o2W z$KNZ88)^}H>IL+Af9!h}+kks6UV<7=AN;e=X6xQ#C&PeRqtc*sQ?uv6%+bauj!A#g zdfL}xTck<r88PSjJ&~`_jm7oh?ipH5n$b|)b z95eQcp0e{(%LDzYNSyW>rwnpqt@5^`!7*)Y^H2A`;AjEYJJjlOlD@Z9S={8*R9cER z*dbU6aIAVjtS%Ge;95U}E4(8N0Umbcrf|n*on!I!@+$s6#GV}Qb%0&;4jD}%Gs=UE zAMI1{=Az{(9Eg6FCku-nh#7xVH7n@Y{ zpEdm5%QCH0^%`JfxfdkeD63L=|tQ;}ay+sVzm_$5g6Z&smi{ zJa#bWCrPn3bc{Dz!k^|K<&C|w557cUw`d-b7@MmdHCa329!C1iiyhGm@3L9;y;Eau zq_6Yw>nGa?@_q3(Ei>0x*$4mHRhbSBq#G$Fp3Uyv>`u^i4P!4YD^tfm#8A+^pY8x$od`7ouwZMQBESgbUgk zKfMDHE2y@D1{00V3tprgr&xVAOReC!gmL0L!gw=1PgyU7ys2FAuJ!}(m73V=_-x(p z9ZrhskLKsCbqo|)-I5i(#g*$WM?RPrM9KzK8c+s|9@`6#EJ!W1ICLnWEW_WS(oY?8D>1< zS7SAnF0>mNKDv8!JCObzGPXJ0lr7P=2%T24)=#Yr)fU%|iWCtz?UZ%Cw^-EGEY^)^ ze#t)owb5x1o!*+smf>bC>I+OZh!=Z)H@+>atUOCq8j^Ud`otpqaWH|#->0ExbzEV7 z{xq>-YyiZY9Lw;wJGTd&y)FL~`ycdQb;lnMzgYwFJ5-u;W{0M6;IuVlGk{W+DDQ0q zp+bs~VRbshNx%!Fd4Alrgr99Jai5@+0?MBtI;RZuT_Q^68YZUf^KyMYqA1JIr|qb^ z+5qV$V1 z#f94>Q^~TME^}u^)JaSpqnhLdJ9| zcX6gwbKJK_fT(7f?2jd1U~ftX{Y?f!k1s9eS#K!SEgv-Lsj8q3K3@f|lm-H(u^+x) zmE5k1t!#G^lyw+?7tAeR2%rj#S@8d+gCs}4gC5#QMWe`;2`ul^KcD;={2?O(abEa% z7Y?_xEbP7UZD$;a+D6ojXd^9fH6aoOGT|jJFk^_Lx@TuCSw!HWU`DG8VIH52kJ#b#qEs#o;m4BTy->b`PHt_ohO8;&5dB& z3hr6RX84)P@W8|P>?&R4S{&7za#wxeCZo^P1%vLSeTV>~Fph^k2Xoe^94Vup zz>)LddKJt4T2ww%sRu35j*7b@@_3wLf@a`bOiYMKKlToCCw0$y($5FBb9x6}F0Lys zOc+^?-{C)B5n%L6jU)3^vXI88eaU-!bcppNeSXK5X?324WliJ^GSuv}O~g}@2gX)R zsD6|$P}I^c6;X^eUtGm~Yd1~2$5K~WqKnON!$DxE?}UzDsR?zmF3#`@<|CX7k!jD* z+c*&uA0NmS@4eViaD3Uojv)Y5gHV-?7WqlU4*|Cqg2|5`nM^s<@=-v$-Bk=GmJNOZ zfTeOEye}Z}2_Zyes1&&3kZk}T1?#*vKZGTN3Lk-lUFo^!J|3nF0UdY*(4RmPs)MkO zX7ZqJ3$DC}hs^ND$?bP_M#9ME(}Qi>|4k6b5&X-G+;TE9;HbPw(y$VnS*>0Dc#>XE z0YU-N{QOrk^@}dkH+p}!eFZ~ROZBCTQzeX#6d85g_+^kj1_PTa6NT!gWpi#x(uwL1 zJ_y>lnNe7gV&9AoPPnn13AmZ;^b&XM=CT}iy*XNxXeyhGdS>ltsEfCi%;nRW^u0Zl zx5X#WX+XM4IK+os9&Rnv98rl!^<8guD^i>k(|td;>OR@#+S7&zTO^v!H=`tbgnpV) zx!4t3zOm^Ql?wR~%4IA$o}SI^wz#9X(NT(Nj~F+MQP;1qU(2gq)WI-D1Z*>^El~`3 zryUdU`vZct^RqDcHKX%(J>}lRWUX^t^5>J~=Tey z*jWF>))d>sTupwucHYAflN)|Uujm5XJt%l)X!+Y3caz8<+6;~dM9vcO@im@M%B|4V?f0p%DHr(v(F-XV7PH~2yRIJkJkTYp zb8`!dTSBhm)U)qq5bcB(ZfDMBuaQi!UZ2at(OKX)NwEQd3!q3VRZwe z(K*H7Q^ zdKk+*mQTgA^p6}%E0>u?v*OYtsH#Nf-fAW@A z(IBM@F7utwkWs60U7OdFUHN`n+G#ozTuqGC`HzV3{T1m~V%_-r^caRU z2L!M1ln<6nKf=~=7TtfK^FpG{4;jYnXJ2wvkH}UhEzur1t*J5H^M1)NK0>qb@fpKG z&HaMQ=MhJRh*w^_vE5jT(ta>Xex9&UgV7p)TPv`f*g;vmxv4Oo|1vhS<8`a+Ko8jq95%(*w}jzN1TWf! z09Zq@gY@A}+K_cUgj_{~mJ%S4ou`#^hpqbCA^$2eqJ#NON)>-AO)1gXbER9^8@Xw>qYM=2*tfUkjR-1h^?Jw`vlM5aJU0*G|1+4Td0JCt{|kDX_@9A%cCPd zmQpurSKs59>3u+2Gxfyt(R*4RsA%Sz&h>|(yo#u<(kY@x+7B83oHOwQQSA3l$$uW6 z!*s51#^kX9c-Xs(4P>e0%Gy=0d&E9?X>HeNRK#|0M$fcNc|xkIsnBT3CNJM-5Tmc& zBaV?~=XAznhKq~7#+oRMn%6}0%Pf`?Ny~UCWao&>QoVs`us!B$=x{GD6&3MxZC?$? zL^_s$@<5C=BCgu~B)P;opIsH}kjV@wQBUh4N!9cZKyKpAq{M6T+Qq{HBRT`*QZ075 z)hq5jH`{Pmw%zsrhD#U@A#dUWZ7(ND7#n5gOna1glX{|J*YvxmI?jH}Cu7Qkk*!JT zrhHV?NN-5-LS}&ZfH-0=|f;=!I}q4wBInd727gAS9BhSomKk_Y&33&E4GG(ibR*7RJ*Aux0tfz9BGZ zIS}1z$y;@&YIG&bkJUmg;5I~{-ULY7zikxpd|_+5Fr9MyE!-jhE&qItmc5n}^z0GXKq* zo=PfzyquOOp%$0QuW5$w*nalhl(BWg!OXNMP$=zdtsaTGR;S4z^z(gl~nrx;!YYge$fEzZpi}!QDJ8nnN1Wq)l zu!U-9|J@9SnU)|9DCBYU7IjCFmI-B}4sMJt3^s9NVg!P0 z6hDQy(L`XWMkB@zOLgN$4KYz;j0zZxq9KKdpZE#5@k0crP^5f9KO};h)ZDQ%ybhht z%t9#h|nu0K(bJ ztIkhEr!*UyrZWQ1k2+YkGqDi8Z<|mIN&$kzpKl{cNP=OQzXHz>vn+c)F)zO|Bou>E z2|-d_=qY#Y+yOu1a}XI?cU}%04)zz%anD(XZC{#~WreV!a$7k2Ug`?&CUEc0EtrkZ zL49MB)h!_K{H(*l_93D5tO0;BUnvYlo+;yss%n^&qjt6fZOa+}+FDO(~2>G z2dx@=JZ?DHP^;b7*Y1as5^uphBsh*s*z&MBd?e@I>-9kU>63PjP&^#5YTOb&x^6Cf z?674rmSHB5Fk!{Gv7rv!?qX#ei_L(XtwVqLX3L}$MI|kJ*w(rhx~tc&L&xP#?cQow zX_|gx$wMr3pRZIIr_;;O|8fAjd;1`nOeu5K(pCu7>^3E&D2OBBq?sYa(%S?GwG&_0-s%_v$L@R!5H_fc)lOb9ZoOO#p`Nn`KU z3LTTBtjwo`7(HA6 z7gmO$yTR!5L>Bsg!X8616{JUngg_@&85%>W=mChTR;x4`P=?PJ~oPuy5 zU-L`C@_!34D21{fD~Y8NVnR3t;aqZI3fIhmgmx}$oc-dKDC6Ap$Gy>a!`A*x2L1v0 WcZ@i?LyX}70000{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let d=(()=>{class t extends u{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.p,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.k),i.Rb(i.Q),i.Rb(s.d))},t.\u0275dir=i.Mb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Bb]}),t})(),p=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t})();class m{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}},"/rnm":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("fXoL"),s=n("tk/3");let r=(()=>{class t{constructor(t){this.http=t}repeatVideo(t){this.http.post(`http://${window.location.hostname}/Hypnonema.OnToggleRepeat`,{screenName:t}).subscribe(()=>{},t=>console.log(t.toString()))}editScreen(t,e,n,i,s,r,o,a,l,c,u,h,d,p,m,f,g,b,_,y){this.http.post(`http://${window.location.hostname}/Hypnonema.OnEditScreen`,{id:e,is3DRendered:n,screenName:t,alwaysOn:i,modelName:s,renderTargetName:r,globalVolume:o,soundAttenuation:a,soundMinDistance:l,soundMaxDistance:c,positionX:u,positionY:h,positionZ:d,rotationX:p,rotationY:m,rotationZ:f,scaleX:g,scaleY:b,scaleZ:_,is3DAudioEnabled:y}).subscribe(()=>{},t=>console.log(t))}closeScreen(t){this.http.post(`http://${window.location.hostname}/Hypnonema.OnCloseScreen`,{screenName:t}).subscribe(()=>{},t=>console.log(JSON.stringify(t)))}stopVideo(t){this.http.post(`http://${window.location.hostname}/Hypnonema.OnStopVideo`,{screenName:t}).subscribe(()=>{},t=>{console.log(t)})}hideNUI(){this.http.post(`http://${window.location.hostname}/Hypnonema.OnHideNUI`,{}).subscribe(()=>{},t=>{console.log(t)})}resumeVideo(t){this.http.post(`http://${window.location.hostname}/Hypnonema.OnResume`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}pauseVideo(t){this.http.post(`http://${window.location.hostname}/Hypnonema.OnPause`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}requestDuiState(t){this.http.post(`http://${window.location.hostname}/Hypnonema.OnRequestState`,{}).subscribe(()=>{},t=>console.log(t))}deleteScreen(t){this.http.post(`http://${window.location.hostname}/Hypnonema.OnDeleteScreen`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}createScreen(t,e,n,i,s,r,o,a,l,c,u,h,d,p,m,f,g,b,_){this.http.post(`http://${window.location.hostname}/Hypnonema.OnCreateScreen`,{screenName:t,alwaysOn:e,modelName:l,renderTargetName:c,globalVolume:n,soundAttenuation:i,soundMinDistance:s,soundMaxDistance:r,is3DRendered:o,positionX:u,positionY:h,positionZ:d,rotationX:p,rotationY:m,rotationZ:f,scaleX:g,scaleY:b,scaleZ:_,is3DAudioEnabled:a}).subscribe(()=>{},t=>{console.log(t)})}playVideo(t,e){this.http.post(`http://${window.location.hostname}/Hypnonema.OnPlay`,{videoUrl:e,screen:t}).subscribe(()=>{},t=>{console.log(t)})}setVideoTime(t,e){this.http.post(`http://${window.location.hostname}/Hypnonema.OnSeek`,{screenName:t,time:e}).subscribe(()=>{},t=>console.log(t))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(s.a))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return a}));var i=n("7+OI"),s=n("LRne"),r=n("XNiG");n("fXoL");class o{}function a(t){return t&&"function"==typeof t.connect}class l extends o{constructor(t){super(),this._data=t}connect(){return Object(i.a)(this._data)?this._data:Object(s.a)(this._data)}disconnect(){}}class c{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new r.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("bHdf");function s(){return Object(i.a)(1)}},"0MNC":function(t,e,n){"use strict";n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return O})),n.d(e,"c",(function(){return _}));var i=n("fXoL"),s=n("nLfN"),r=n("XNiG"),o=n("itXk"),a=n("GyhO"),l=n("HDdC"),c=n("IzEk"),u=n("7o/Q");class h{constructor(t){this.total=t}call(t,e){return e.subscribe(new d(t,this.total))}}class d extends u.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var p=n("Kj3r"),m=n("lJxs"),f=n("JX91"),g=n("1G5W"),b=n("8LU1");let _=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t})();const y=new Set;let v,w=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):x}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{v||(v=document.createElement("style"),v.setAttribute("type","text/css"),document.head.appendChild(v)),v.sheet&&(v.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(s.a))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(s.a))},token:t,providedIn:"root"}),t})();function x(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let C=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new r.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return S(Object(b.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=S(Object(b.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(o.a)(e);return n=Object(a.a)(n.pipe(Object(c.a)(1)),n.pipe(t=>t.lift(new h(1)),Object(p.a)(0))),n.pipe(Object(m.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new l.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(f.a)(e),Object(m.a)(e=>({query:t,matches:e.matches})),Object(g.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.bc(w),i.bc(i.B))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(w),Object(i.bc)(i.B))},token:t,providedIn:"root"}),t})();function S(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const O={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("l7GE"),s=n("ZUHj");function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new a(t),i=Object(s.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class a extends i.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("XNiG"),s=n("9ppp");class r extends i.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("quSY");class s extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return Lt})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return zt})),n.d(e,"d",(function(){return Pt})),n.d(e,"e",(function(){return Et})),n.d(e,"f",(function(){return Ht})),n.d(e,"g",(function(){return C})),n.d(e,"h",(function(){return l})),n.d(e,"i",(function(){return _})),n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return w})),n.d(e,"l",(function(){return ft})),n.d(e,"m",(function(){return Ct})),n.d(e,"n",(function(){return D})),n.d(e,"o",(function(){return Ut})),n.d(e,"p",(function(){return Ft})),n.d(e,"q",(function(){return k})),n.d(e,"r",(function(){return St}));var i=n("fXoL"),s=n("ofXK"),r=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new i.s("NgValueAccessor"),c={provide:l,useExisting:Object(i.V)(()=>u),multi:!0};let u=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[i.Db([c])]}),t})();const h={provide:l,useExisting:Object(i.V)(()=>p),multi:!0},d=new i.s("CompositionEventMode");let p=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(s.x)()?Object(s.x)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m),i.Rb(d,8))},t.\u0275dir=i.Mb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.fc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[i.Db([h])]}),t})(),m=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t}),t})(),f=(()=>{class t extends m{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=i.Mb({type:t,features:[i.Bb]}),t})();const g=i.Zb(f);function b(){throw new Error("unimplemented")}class _ extends m{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return b()}get asyncValidator(){return b()}}class y{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let v=(()=>{class t extends y{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(_,2))},t.\u0275dir=i.Mb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Ib("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.Bb]}),t})(),w=(()=>{class t extends y{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(f,2))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Ib("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.Bb]}),t})();function x(t){return null==t||0===t.length}const C=new i.s("NgValidators"),S=new i.s("NgAsyncValidators"),O=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class k{static min(t){return e=>{if(x(e.value)||x(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(x(e.value)||x(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return x(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return x(t.value)||O.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(x(e.value))return null;const n=e.value?e.value.length:0;return n{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return k.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(x(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(E);return 0==e.length?null:function(t){return T(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(E);return 0==e.length?null:function(t){const n=function(t,e){return e.map(e=>e(t))}(t,e).map(j);return Object(r.a)(n).pipe(Object(a.a)(T))}}}function E(t){return null!=t}function j(t){const e=Object(i.vb)(t)?Object(o.a)(t):t;if(!Object(i.ub)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function T(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function R(t){return t.validate?e=>t.validate(e):t}function A(t){return t.validate?e=>t.validate(e):t}const I={provide:l,useExisting:Object(i.V)(()=>D),multi:!0};let D=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Db([I])]}),t})();const P={provide:l,useExisting:Object(i.V)(()=>M),multi:!0};let N=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(_),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){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 ')}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m),i.Rb(N),i.Rb(i.t))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Db([P])]}),t})();const F={provide:l,useExisting:Object(i.V)(()=>L),multi:!0};let L=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Db([F])]}),t})();const V='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',B='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',z='\n
\n
\n \n
\n
';class H{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${V}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${B}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${z}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${V}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${B}`)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const U={provide:l,useExisting:Object(i.V)(()=>$),multi:!0};let $=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=i.wb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const 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)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.Db([U])]}),t})();const W={provide:l,useExisting:Object(i.V)(()=>q),multi:!0};let q=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=i.wb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&K(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&K(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function K(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Z(t,e){null==t&&Q(e,"Cannot find control with"),t.validator=k.compose([t.validator,e.validator]),t.asyncValidator=k.composeAsync([t.asyncValidator,e.asyncValidator])}function Y(t){return Q(t,"There is no FormControl instance attached to form control element with")}function Q(t,e){let 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 J(t){return null!=t?k.compose(t.map(R)):null}function tt(t){return null!=t?k.composeAsync(t.map(A)):null}function et(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object(i.wb)(e,n.currentValue)}const nt=[u,L,D,$,q,M];function it(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function st(t,e){if(!e)return null;Array.isArray(e)||Q(t,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,s=void 0;return e.forEach(e=>{var r;e.constructor===p?n=e:(r=e,nt.some(t=>r.constructor===t)?(i&&Q(t,"More than one built-in value accessor matches form control with"),i=e):(s&&Q(t,"More than one custom value accessor matches form control with"),s=e))}),s||i||n||(Q(t,"No valid value accessor for form control with"),null)}function rt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function ot(t){const e=lt(t)?t.validators:t;return Array.isArray(e)?J(e):e||null}function at(t,e){const n=lt(e)?e.asyncValidators:t;return Array.isArray(n)?tt(n):n||null}function lt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ct{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=ot(t)}setAsyncValidators(t){this.asyncValidator=at(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=j(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof ht?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof dt&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.p,this.statusChanges=new i.p}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){lt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class ut extends ct{constructor(t=null,e,n){super(ot(e),at(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class ht extends ct{constructor(t,e,n){super(ot(e),at(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof ut?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,i)=>{e=e||this.contains(i)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class dt extends ct{constructor(t,e,n){super(ot(e),at(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ut?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const pt={provide:f,useExisting:Object(i.V)(()=>ft)},mt=(()=>Promise.resolve(null))();let ft=(()=>{class t extends f{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.p,this.form=new ht({},J(t),tt(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){mt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),X(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),rt(this._directives,t)})}addFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path),n=new ht({});Z(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){mt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,it(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(C,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.fc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Db([pt]),i.Bb]}),t})(),gt=(()=>{class t extends f{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return G(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return J(this._validators)}get asyncValidator(){return tt(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return bt(e||t)},t.\u0275dir=i.Mb({type:t,features:[i.Bb]}),t})();const bt=i.Zb(gt);class _t{static modelParentException(){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 ${V}\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 `)}static formGroupNameException(){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 ${B}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${z}`)}static missingNameException(){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: ')}static modelGroupParentException(){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 ${B}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${z}`)}}const yt={provide:f,useExisting:Object(i.V)(()=>vt)};let vt=(()=>{class t extends gt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof ft||_t.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(f,5),i.Rb(C,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.Db([yt]),i.Bb]}),t})();const wt={provide:_,useExisting:Object(i.V)(()=>Ct)},xt=(()=>Promise.resolve(null))();let Ct=(()=>{class t extends _{constructor(t,e,n,s){super(),this.control=new ut,this._registered=!1,this.update=new i.p,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=st(this,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?G(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return J(this._rawValidators)}get asyncValidator(){return tt(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){X(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof vt)&&this._parent instanceof gt?_t.formGroupNameException():this._parent instanceof vt||this._parent instanceof ft||_t.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_t.missingNameException()}_updateValue(t){xt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;xt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(f,9),i.Rb(C,10),i.Rb(S,10),i.Rb(l,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Db([wt]),i.Bb,i.Cb]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Ot=new i.s("NgModelWithFormControlWarning"),kt={provide:f,useExisting:Object(i.V)(()=>Et)};let Et=(()=>{class t extends f{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.p}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return X(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){rt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Z(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Z(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,it(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>Y(e)),e.valueAccessor.registerOnTouched(()=>Y(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&X(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=J(this._validators);this.form.validator=k.compose([this.form.validator,t]);const e=tt(this._asyncValidators);this.form.asyncValidator=k.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||H.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(C,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.fc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Db([kt]),i.Bb,i.Cb]}),t})();const jt={provide:f,useExisting:Object(i.V)(()=>Tt)};let Tt=(()=>{class t extends gt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){It(this._parent)&&H.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(f,13),i.Rb(C,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.Db([jt]),i.Bb]}),t})();const Rt={provide:f,useExisting:Object(i.V)(()=>At)};let At=(()=>{class t extends f{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return G(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return J(this._validators)}get asyncValidator(){return tt(this._asyncValidators)}_checkParentType(){It(this._parent)&&H.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(f,13),i.Rb(C,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.Db([Rt]),i.Bb]}),t})();function It(t){return!(t instanceof Tt||t instanceof Et||t instanceof At)}const Dt={provide:_,useExisting:Object(i.V)(()=>Pt)};let Pt=(()=>{class t extends _{constructor(t,e,n,s,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new i.p,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=st(this,s)}set isDisabled(t){H.disabledAttrWarning()}ngOnChanges(e){var n,s;this._added||this._setUpControl(),et(e,this.viewModel)&&("formControlName",n=t,this,s=this._ngModelWarningConfig,Object(i.Y)()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(H.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return G(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return J(this._rawValidators)}get asyncValidator(){return tt(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Tt)&&this._parent instanceof gt?H.ngModelGroupException():this._parent instanceof Tt||this._parent instanceof Et||this._parent instanceof At||H.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(f,13),i.Rb(C,10),i.Rb(S,10),i.Rb(l,10),i.Rb(Ot,8))},t.\u0275dir=i.Mb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Db([Dt]),i.Bb,i.Cb]}),t._ngModelWarningSentOnce=!1,t})();const Nt={provide:C,useExisting:Object(i.V)(()=>Ft),multi:!0},Mt={provide:C,useExisting:Object(i.V)(()=>Lt),multi:!0};let Ft=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?k.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Fb("required",e.required?"":null)},inputs:{required:"required"},features:[i.Db([Nt])]}),t})(),Lt=(()=>{class t extends Ft{validate(t){return this.required?k.requiredTrue(t):null}}return t.\u0275fac=function(e){return Vt(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Fb("required",e.required?"":null)},features:[i.Db([Mt]),i.Bb]}),t})();const Vt=i.Zb(Lt);let Bt=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t})(),zt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new ht(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new ut(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new dt(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof ut||t instanceof ht||t instanceof dt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Ht=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[N],imports:[Bt]}),t})(),Ut=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ot,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[zt,N],imports:[Bt]}),t})()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("D0XW"),s=n("l7GE"),r=n("ZUHj");class o{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(r.a)(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var l=n("PqYM");function c(t,e=i.a){return n=()=>Object(l.a)(t,e),function(t){return t.lift(new o(n))};var n}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("ZUHj"),s=n("l7GE"),r=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function l(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(l((n,i)=>Object(a.a)(t(n,i)).pipe(Object(o.a)((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new c(t,n)))}class c{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.a{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");class s extends i.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"5RNC":function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return C}));var i=n("ofXK"),s=n("fXoL"),r=n("FKr1"),o=n("8LU1"),a=n("FtGj"),l=n("3Pt+"),c=n("R1ws"),u=n("nLfN"),h=n("quSY"),d=n("u47x"),p=n("cH1L");const m=["sliderWrapper"],f=Object(u.f)({passive:!1}),g={provide:l.h,useExisting:Object(s.V)(()=>v),multi:!0};class b{}class _{constructor(t){this._elementRef=t}}const y=Object(r.v)(Object(r.r)(Object(r.t)(_),"accent"));let v=(()=>{class t extends y{constructor(t,e,n,i,r,o,a,l){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this._dir=i,this._animationMode=o,this._ngZone=a,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new s.p,this.input=new s.p,this.valueChange=new s.p,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=h.a.EMPTY,this._pointerDown=t=>{this.disabled||this._isSliding||!w(t)&&0!==t.button||this._runInsideZone(()=>{const e=this.value,n=x(t);this._isSliding=!0,this._lastPointerEvent=t,t.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(t),this._focusHostElement(),this._updateValueFromPosition(n),this._valueOnSlideStart=this.value,this._pointerPositionOnStart=n,e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())})},this._pointerMove=t=>{if(this._isSliding){t.preventDefault();const e=this.value;this._lastPointerEvent=t,this._updateValueFromPosition(x(t)),e!=this.value&&this._emitInputEvent()}},this._pointerUp=t=>{if(this._isSliding){const e=this._pointerPositionOnStart,n=x(t);t.preventDefault(),this._removeGlobalEvents(),this._valueOnSlideStart=this._pointerPositionOnStart=this._lastPointerEvent=null,this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||!e||e.x===n.x&&e.y===n.y||this._emitChangeEvent()}},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=l,this.tabIndex=parseInt(r)||0,this._runOutsizeZone(()=>{const e=t.nativeElement;e.addEventListener("mousedown",this._pointerDown,f),e.addEventListener("touchstart",this._pointerDown,f)})}get invert(){return this._invert}set invert(t){this._invert=Object(o.c)(t)}get max(){return this._max}set max(t){this._max=Object(o.f)(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(t){this._min=Object(o.f)(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(t){this._step=Object(o.f)(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(t){this._thumbLabel=Object(o.c)(t)}get tickInterval(){return this._tickInterval}set tickInterval(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?Object(o.f)(t,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(t){if(t!==this._value){let e=Object(o.f)(t);this._roundToDecimal&&(e=parseFloat(e.toFixed(this._roundToDecimal))),this._value=e,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(o.c)(t)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(t){this._focusHostElement(t)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}get _invertAxis(){return this.vertical?!this.invert:this.invert}get _isMinValue(){return 0===this.percent}get _thumbGap(){return this.disabled?7:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0}get _trackBackgroundStyles(){const t=this.vertical?`1, ${1-this.percent}, 1`:`${1-this.percent}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._thumbGap}px) scale3d(${t})`}}get _trackFillStyles(){const t=this.percent,e=this.vertical?`1, ${t}, 1`:`${t}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._thumbGap}px) scale3d(${e})`,display:0===t?"none":""}}get _ticksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}get _ticksStyles(){let t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?`2px ${t}%`:`${t}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${t/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue&&this._thumbGap){let t;t=this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left",e[`padding${t}`]=`${this._thumbGap}px`}return e}get _thumbContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){return"rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngOnInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{this._isActive=!!t&&"keyboard"!==t,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mousedown",this._pointerDown,f),t.removeEventListener("touchstart",this._pointerDown,f),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(t){if(this.disabled||Object(a.s)(t))return;const e=this.value;switch(t.keyCode){case a.l:this._increment(10);break;case a.k:this._increment(-10);break;case a.e:this.value=this.max;break;case a.h:this.value=this.min;break;case a.i:this._increment("rtl"==this._getDirection()?1:-1);break;case a.p:this._increment(1);break;case a.m:this._increment("rtl"==this._getDirection()?-1:1);break;case a.d:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}_onKeyup(){this._isSliding=!1}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_bindGlobalEvents(t){if(void 0!==this._document&&this._document){const e=this._document.body,n=w(t),i=n?"touchend":"mouseup";e.addEventListener(n?"touchmove":"mousemove",this._pointerMove,f),e.addEventListener(i,this._pointerUp,f),n&&e.addEventListener("touchcancel",this._pointerUp,f)}const e=this._getWindow();void 0!==e&&e&&e.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){if(void 0!==this._document&&this._document){const t=this._document.body;t.removeEventListener("mousemove",this._pointerMove,f),t.removeEventListener("mouseup",this._pointerUp,f),t.removeEventListener("touchmove",this._pointerMove,f),t.removeEventListener("touchend",this._pointerUp,f),t.removeEventListener("touchcancel",this._pointerUp,f)}const t=this._getWindow();void 0!==t&&t&&t.removeEventListener("blur",this._windowBlur)}_increment(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)}_updateValueFromPosition(t){if(!this._sliderDimensions)return;let e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{const t=this._calculateValue(e),n=Math.round((t-this.min)/this.step)*this.step+this.min;this.value=this._clamp(n,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(30/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(t=this.value){let e=new b;return e.source=this,e.value=t,e}_calculatePercentage(t){return((t||0)-this.min)/(this.max-this.min)}_calculateValue(t){return this.min+t*(this.max-this.min)}_clamp(t,e=0,n=1){return Math.max(e,Math.min(t,n))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(t){this._elementRef.nativeElement.focus(t)}_blurHostElement(){this._elementRef.nativeElement.blur()}_runInsideZone(t){this._ngZone?this._ngZone.run(t):t()}_runOutsizeZone(t){this._ngZone?this._ngZone.runOutsideAngular(t):t()}writeValue(t){this.value=t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(d.e),s.Rb(s.i),s.Rb(p.b,8),s.cc("tabindex"),s.Rb(c.a,8),s.Rb(s.B),s.Rb(i.d,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-slider"]],viewQuery:function(t,e){var n;1&t&&s.Ic(m,!0),2&t&&s.qc(n=s.gc())&&(e._sliderWrapper=n.first)},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:28,hostBindings:function(t,e){1&t&&s.fc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)}))("keyup",(function(){return e._onKeyup()}))("mouseenter",(function(){return e._onMouseenter()}))("selectstart",(function(t){return t.preventDefault()})),2&t&&(s.ac("tabIndex",e.tabIndex),s.Fb("aria-disabled",e.disabled)("aria-valuemax",e.max)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-orientation",e.vertical?"vertical":"horizontal"),s.Ib("mat-slider-disabled",e.disabled)("mat-slider-has-ticks",e.tickInterval)("mat-slider-horizontal",!e.vertical)("mat-slider-axis-inverted",e._invertAxis)("mat-slider-invert-mouse-coords",e._shouldInvertMouseCoords())("mat-slider-sliding",e._isSliding)("mat-slider-thumb-label-showing",e.thumbLabel)("mat-slider-vertical",e.vertical)("mat-slider-min-value",e._isMinValue)("mat-slider-hide-last-tick",e.disabled||e._isMinValue&&e._thumbGap&&e._invertAxis)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",value:"value",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",vertical:"vertical",displayWith:"displayWith"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[s.Db([g]),s.Bb],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(t,e){1&t&&(s.Xb(0,"div",0,1),s.Xb(2,"div",2),s.Sb(3,"div",3),s.Sb(4,"div",4),s.Wb(),s.Xb(5,"div",5),s.Sb(6,"div",6),s.Wb(),s.Xb(7,"div",7),s.Sb(8,"div",8),s.Sb(9,"div",9),s.Xb(10,"div",10),s.Xb(11,"span",11),s.Dc(12),s.Wb(),s.Wb(),s.Wb(),s.Wb()),2&t&&(s.Eb(3),s.oc("ngStyle",e._trackBackgroundStyles),s.Eb(1),s.oc("ngStyle",e._trackFillStyles),s.Eb(1),s.oc("ngStyle",e._ticksContainerStyles),s.Eb(1),s.oc("ngStyle",e._ticksStyles),s.Eb(1),s.oc("ngStyle",e._thumbContainerStyles),s.Eb(5),s.Ec(e.displayValue))},directives:[i.l],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),t})();function w(t){return"t"===t.type[0]}function x(t){const e=w(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.clientX,y:e.clientY}}let C=(()=>{class t{}return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)},imports:[[i.c,r.e],r.e]}),t})()},"7+OI":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("HDdC");function s(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("n6bG"),s=n("gRHU"),r=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends r.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){let o;super(),this._parentSubscriber=t;let a=this;Object(i.a)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.a&&(a=Object.create(e),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8LU1":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return r}));var i=n("fXoL");function s(t){return null!=t&&"false"!==`${t}`}function r(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:`${t}px`}function c(t){return t instanceof i.m?t.nativeElement:t}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},AcyG:function(t,e,n){"use strict";n.d(e,"a",(function(){return Gt})),n.d(e,"b",(function(){return tt})),n.d(e,"c",(function(){return qt})),n.d(e,"d",(function(){return Kt})),n.d(e,"e",(function(){return Zt})),n.d(e,"f",(function(){return Xt})),n.d(e,"g",(function(){return Vt})),n.d(e,"h",(function(){return at}));var i=n("fXoL"),s=n("jtHE");function r(t,e){return t===e}function o(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;const i=e.length;for(let s=0;s(t&&t.providers||[]).some(t=>t&&t.provide&&"MockNgModuleResolver"===t.provide.name||!1))}));let c=(()=>{class t{constructor(){this.bootstrap$=new s.a(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const u=new i.s("INITIAL_STATE_TOKEN");let h=(()=>{class t{static set(t){this.value=t}static pop(){const t=this.value;return this.value={},t}}return t.value={},t})();const d=new i.s("Internals.StateContextFactory"),p=new i.s("Internals.StateFactory");var m=n("ofXK"),f=n("HDdC"),g=n("XNiG"),b=n("2Vo4"),_=n("LRne"),y=n("cp0P"),v=n("z6cu"),w=n("EY2u"),x=n("Cfvw"),C=n("pLZG"),S=n("lJxs"),O=n("UXun"),k=n("IzEk"),E=n("l7GE"),j=n("51Dv"),T=n("ZUHj");class R{constructor(t){this.project=t}call(t,e){return e.subscribe(new A(t,this.project))}}class A extends E.a{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e,t,n)}_innerSub(t,e,n){const i=new j.a(this,e,n),s=this.destination;s.add(i);const r=Object(T.a)(this,t,void 0,void 0,i);r!==i&&s.add(r)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t){this.destination.error(t)}notifyComplete(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var I=n("5+tZ"),D=n("xbPD"),P=n("JIr8"),N=n("1G5W"),M=n("vkgz"),F=n("/uUt");const L=t=>`${t} is not a valid state name. It needs to be a valid object property name.`,V=()=>"States must register a 'name' property",B=(t,e,n)=>`State name '${t}' from ${e} already exists in ${n}`,z=()=>"States must be decorated with @State() decorator",H=()=>"Angular is running in production mode but NGXS is still running in the development mode!\nPlease set developmentMode to false on the NgxsModule options when in production mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",U=()=>"RECOMMENDATION: Set developmentMode to true on the NgxsModule when Angular is running in development mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",$=()=>"You have forgotten to import the NGXS module!",W=()=>"@Action() decorator cannot be used with static methods",q=()=>"Selectors only work on methods",G=()=>"Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\nPlease set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\nNgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })",X=()=>"Patching arrays is not supported.",K=()=>"Patching primitives is not supported.",Z=t=>`'${t}' class should be decorated with @Injectable() right after the @State() decorator`;let Y=(()=>{class t{constructor(t,e){this._ngZone=t,this._platformId=e,this.verifyZoneIsNotNooped(this._ngZone)}enter(t){return Object(m.u)(this._platformId)?this.runInsideAngular(t):this.runOutsideAngular(t)}leave(t){return this.runInsideAngular(t)}runInsideAngular(t){return i.B.isInAngularZone()?t():this._ngZone.run(t)}runOutsideAngular(t){return i.B.isInAngularZone()?this._ngZone.runOutsideAngular(t):t()}verifyZoneIsNotNooped(t){t instanceof i.B||console.warn(G())}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.B),i.bc(i.D))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const Q=new i.s("ROOT_STATE_TOKEN"),J=new i.s("FEATURE_STATE_TOKEN"),tt=new i.s("NGXS_PLUGINS"),et=new i.s("NG_TEST_MODE"),nt=new i.s("NG_DEV_MODE"),it="NGXS_META";let st=(()=>{class t{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=Y}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class rt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}}const ot=new i.s("NGXS_EXECUTION_STRATEGY");function at(t){return t.constructor&&t.constructor.type?t.constructor.type:t.type}const lt=(t,e,n)=>{t=Object.assign({},t);const i=e.split("."),s=i.length-1;return i.reduce((t,e,i)=>(t[e]=i===s?n:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]),t),t},ct=(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t);function ut(t){if(!t.hasOwnProperty(it)){const e={name:null,actions:{},defaults:{},path:null,makeRootSelector:t=>t.getStateGetter(e.name),children:[]};Object.defineProperty(t,it,{value:e})}return ht(t)}function ht(t){return t[it]}function dt(t){return t.NGXS_SELECTOR_META}function pt(t,e){return e&&e.compatibility&&e.compatibility.strictContentSecurityPolicy?function(t){const e=t.slice();return t=>e.reduce((t,e)=>t&&t[e],t)}(t):function(t){const e=t;let n="store."+e[0],i=0;const s=e.length;let r=n;for(;++i(t[at(e)]=!0,t),{}),s=e&&function(t){return t.reduce((t,e)=>(t[e]=!0,t),{})}(e);return function(t){return t.pipe(function(t,e){return Object(C.a)(n=>{const i=at(n.action);return t[i]&&(!e||e[n.status])})}(i,s),n())}}(t,["DISPATCHED"])}function gt(){return Object(S.a)(t=>t.action)}function bt(t){return e=>new f.a(n=>e.subscribe({next(e){t.leave(()=>n.next(e))},error(e){t.leave(()=>n.error(e))},complete(){t.leave(()=>n.complete())}}))}let _t=(()=>{class t{constructor(t){this._executionStrategy=t}enter(t){return this._executionStrategy.enter(t)}leave(t){return this._executionStrategy.leave(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(ot))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class yt extends g.a{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,super.next(t);this._itemQueue.length>0;){const t=this._itemQueue.pop();super.next(t)}this._busyPushingNext=!1}}}let vt=(()=>{class t extends yt{}return t.\u0275fac=function(e){return wt(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const wt=i.Zb(vt);let xt=(()=>{class t extends f.a{constructor(t,e){super(n=>{const i=t.pipe(bt(e)).subscribe({next:t=>n.next(t),error:t=>n.error(t),complete:()=>n.complete()});n.add(i)})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(vt),i.bc(_t))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const Ct=t=>(...e)=>t.shift()(...e,(...e)=>Ct(t)(...e));let St=(()=>{class t extends b.a{constructor(){super({})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Ot=(()=>{class t{constructor(t,e){this._parentManager=t,this._pluginHandlers=e,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const t=this.getPluginHandlers();this.rootPlugins.push(...t)}getPluginHandlers(){return(this._pluginHandlers||[]).map(t=>t.handle?t.handle.bind(t):t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(t,12),i.bc(tt,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),kt=(()=>{class t extends g.a{}return t.\u0275fac=function(e){return Et(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const Et=i.Zb(kt);let jt=(()=>{class t{constructor(t,e,n,i,s,r){this._errorHandler=t,this._actions=e,this._actionResults=n,this._pluginManager=i,this._stateStream=s,this._ngxsExecutionStrategy=r}dispatch(t){const e=this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(t));return e.subscribe({error:t=>this._ngxsExecutionStrategy.leave(()=>{try{this._errorHandler.handleError(t)}catch(e){}})}),e.pipe(bt(this._ngxsExecutionStrategy))}dispatchByEvents(t){return Array.isArray(t)?0===t.length?Object(_.a)(this._stateStream.getValue()):Object(y.a)(t.map(t=>this.dispatchSingle(t))):this.dispatchSingle(t)}dispatchSingle(t){const e=this._stateStream.getValue();return Ct([...this._pluginManager.plugins,(t,n)=>{t!==e&&this._stateStream.next(t);const i=this.getActionResultStream(n);return i.subscribe(t=>this._actions.next(t)),this._actions.next({action:n,status:"DISPATCHED"}),this.createDispatchObservable(i)}])(e,t).pipe(Object(O.a)())}getActionResultStream(t){return this._actionResults.pipe(Object(C.a)(e=>e.action===t&&"DISPATCHED"!==e.status),Object(k.a)(1),Object(O.a)())}createDispatchObservable(t){return t.pipe(function t(e,n){return n?i=>i.pipe(t((t,i)=>Object(x.a)(e(t,i)).pipe(Object(S.a)((e,s)=>n(t,e,i,s))))):t=>t.lift(new R(e))}(t=>{switch(t.status){case"SUCCESSFUL":return Object(_.a)(this._stateStream.getValue());case"ERRORED":return Object(v.a)(t.error);default:return w.a}})).pipe(Object(O.a)())}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.o),i.bc(vt),i.bc(kt),i.bc(Ot),i.bc(St),i.bc(_t))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const Tt=t=>{Object.freeze(t);const e="function"==typeof t,n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach((function(i){!n.call(t,i)||e&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||Tt(t[i])})),t};let Rt=(()=>{class t{constructor(t,e){this.isDevMode=t,this.isTestMode=e}}return t.\u0275fac=function(e){return new(e||t)(i.bc(nt),i.bc(et))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),At=(()=>{class t{constructor(t,e){this._host=t,this._config=e}get isIncorrectProduction(){return!this._host.isDevMode()&&this._config.developmentMode}get isIncorrectDevelopment(){return this._host.isDevMode()&&!this._config.developmentMode}verifyDevMode(){this._host.isTestMode()||(this.isIncorrectProduction?console.warn(H()):this.isIncorrectDevelopment&&console.warn(U()))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Rt),i.bc(st))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),It=(()=>{class t{constructor(t,e,n,i){this._stateStream=t,this._dispatcher=e,this._config=n,i.verifyDevMode()}getRootStateOperations(){const t={getState:()=>this._stateStream.getValue(),setState:t=>this._stateStream.next(t),dispatch:t=>this._dispatcher.dispatch(t)};return this._config.developmentMode?this.ensureStateAndActionsAreImmutable(t):t}ensureStateAndActionsAreImmutable(t){return{getState:()=>t.getState(),setState:e=>{const n=Tt(e);return t.setState(n)},dispatch:e=>t.dispatch(e)}}setStateToTheCurrentWithNew(t){const e=this.getRootStateOperations(),n=e.getState();e.setState(Object.assign({},n,t.defaults))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(St),i.bc(jt),i.bc(st),i.bc(At))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Dt=(()=>{class t{constructor(t){this._internalStateOperations=t}createStateContext(t){const e=this._internalStateOperations.getRootStateOperations();function n(e){return ct(e,t.path)}function i(n,i){const s=lt(n,t.path,i),r=t.instance;if(r.ngxsOnChanges){const e=mt(t,{currentAppState:n,newAppState:s});r.ngxsOnChanges(e)}return e.setState(s),s}function s(t,e){return i(t,e(n(t)))}return{getState:()=>n(e.getState()),patchState:t=>s(e.getState(),function(t){return e=>{if(Array.isArray(t))throw new Error(X());if("object"!=typeof t)throw new Error(K());const n=Object.assign({},e);for(const i in t)n[i]=t[i];return n}}(t)),setState(t){const n=e.getState();return"function"==typeof t?s(n,t):i(n,t)},dispatch:t=>e.dispatch(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(It))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Pt=(()=>{class t{static stateNameErrorMessage(t){return L(t)}static checkCorrectStateName(t){if(!t)throw new Error(V());if(!this.stateNameRegex.test(t))throw new Error(this.stateNameErrorMessage(t))}static checkStateNameIsUnique(t,e){const n=this.getValidStateMeta(t).name,i=e[n];if(i&&i!==t)throw new Error(B(n,t.name,i.name));return n}static getValidStateMeta(t){const e=ht(t);if(!e)throw new Error(z());return e}}return t.stateNameRegex=new RegExp("^[a-zA-Z0-9_]+$"),t})(),Nt=(()=>{class t{constructor(t,e,n,i,s,r,o){this._injector=t,this._config=e,this._parentFactory=n,this._actions=i,this._actionResults=s,this._stateContextFactory=r,this._initialState=o,this._connected=!1,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=a(()=>{const t=this;return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(e){const n=t.statePaths[e];return n?pt(n.split("."),t._config):()=>{}},getSelectorOptions:e=>Object.assign({},t._config.selectorOptions,e||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(t){let e={};var n;return e=Array.isArray(t)?t.slice():"object"==typeof(n=t)&&null!==n||"function"==typeof n?Object.assign({},t):void 0===t?{}:t,e}static checkStatesAreValid(t){t.forEach(Pt.getValidStateMeta)}add(e){t.checkStatesAreValid(e);const{newStates:n}=this.addToStatesMap(e);if(!n.length)return[];const i=function(t){const e=e=>{const n=t.find(t=>t===e);if(!n)throw new Error(`Child state not found: ${e}. \r\nYou may have forgotten to add states to module`);return n[it].name};return t.reduce((t,n)=>{const{name:i,children:s}=n[it];return t[i]=(s||[]).map(e),t},{})}(n),s=function(t){const e=[],n={},i=(s,r=[])=>{Array.isArray(r)||(r=[]),r.push(s),n[s]=!0,t[s].forEach(t=>{if(r.indexOf(t)>=0)throw new Error(`Circular dependency '${t}' is required by '${s}': ${r.join(" -> ")}`);n[t]||i(t,r.slice(0))}),e.indexOf(s)<0&&e.push(s)};return Object.keys(t).forEach(t=>i(t)),e.reverse()}(i),r=function(t,e={}){const n=(t,e)=>{for(const i in t)if(t.hasOwnProperty(i)&&t[i].indexOf(e)>=0){const e=n(t,i);return null!==e?`${e}.${i}`:i}return null};for(const i in t)if(t.hasOwnProperty(i)){const s=n(t,i);e[i]=s?`${s}.${i}`:i}return e}(i),o=n.reduce((t,e)=>(t[e[it].name]=e,t),{}),a=[];for(const l of s){const e=o[l],n=r[l],i=e[it];this.addRuntimeInfoToMeta(i,n);const s={name:l,path:n,isInitialised:!1,actions:i.actions,instance:this._injector.get(e),defaults:t.cloneDefaults(i.defaults)};this.hasBeenMountedAndBootstrapped(l,n)||a.push(s),this.states.push(s)}return a}addAndReturnDefaults(t){const e=this.add(t||[]);return{defaults:e.reduce((t,e)=>lt(t,e.path,e.defaults),{}),states:e}}connectActionHandlers(){this._connected||(this._actions.pipe(Object(C.a)(t=>"DISPATCHED"===t.status),Object(I.a)(({action:t})=>this.invokeActions(this._actions,t).pipe(Object(S.a)(()=>({action:t,status:"SUCCESSFUL"})),Object(D.a)({action:t,status:"CANCELED"}),Object(P.a)(e=>Object(_.a)({action:t,status:"ERRORED",error:e}))))).subscribe(t=>this._actionResults.next(t)),this._connected=!0)}invokeActions(t,e){const n=[];for(const s of this.states){const r=at(e),o=s.actions[r];if(o)for(const a of o){const r=this._stateContextFactory.createStateContext(s);try{let i=s.instance[a.fn](r,e);i instanceof Promise&&(i=Object(x.a)(i)),i instanceof f.a?a.options.cancelUncompleted&&(i=i.pipe(Object(N.a)(t.pipe(ft(e))))):i=Object(_.a)({}).pipe(Object(O.a)()),n.push(i)}catch(i){n.push(Object(v.a)(i))}}}return n.length||n.push(Object(_.a)({})),Object(y.a)(n)}addToStatesMap(t){const e=[],n=this.statesByName;for(const i of t){const t=Pt.checkStateNameIsUnique(i,n);!n[t]&&(e.push(i),n[t]=i)}return{newStates:e}}addRuntimeInfoToMeta(t,e){this.statePaths[t.name]=e,t.path=e}hasBeenMountedAndBootstrapped(t,e){const n=void 0!==ct(this._initialState,e);return this.statesByName[t]&&n}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.t),i.bc(st),i.bc(t,12),i.bc(vt),i.bc(kt),i.bc(Dt),i.bc(u,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Mt=(()=>{class t{constructor(t,e,n){this.internalStateOperations=t,this.stateContextFactory=e,this.bootstrapper=n}ngxsBootstrap(t,e){this.internalStateOperations.getRootStateOperations().dispatch(t).pipe(Object(C.a)(()=>!!e),Object(M.a)(()=>this.invokeInit(e.states)),Object(I.a)(()=>this.bootstrapper.appBootstrapped$),Object(C.a)(t=>!!t)).subscribe(()=>this.invokeBootstrap(e.states))}invokeInit(t){for(const e of t){const t=e.instance;if(t.ngxsOnChanges){const n=mt(e,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});t.ngxsOnChanges(n)}t.ngxsOnInit&&t.ngxsOnInit(this.getStateContext(e)),e.isInitialised=!0}}invokeBootstrap(t){for(const e of t){const t=e.instance;t.ngxsAfterBootstrap&&t.ngxsAfterBootstrap(this.getStateContext(e))}}getStateContext(t){return this.stateContextFactory.createStateContext(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(It),i.bc(Dt),i.bc(c))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const Ft=t=>t&&t.NGXS_SELECTOR_OPTIONS_META||{};function Lt(t){const e=dt(t)||ht(t);return e&&e.makeRootSelector||(()=>t)}let Vt=(()=>{class t{constructor(t,e,n,i,s,r){this._stateStream=t,this._internalStateOperations=e,this._config=n,this._internalExecutionStrategy=i,this._stateFactory=s,this.initStateStream(r)}dispatch(t){return this._internalStateOperations.getRootStateOperations().dispatch(t)}select(t){const e=this.getStoreBoundSelectorFn(t);return this._stateStream.pipe(Object(S.a)(e),Object(P.a)(t=>{const{suppressErrors:e}=this._config.selectorOptions;return t instanceof TypeError&&e?Object(_.a)(void 0):Object(v.a)(t)}),Object(F.a)(),bt(this._internalExecutionStrategy))}selectOnce(t){return this.select(t).pipe(Object(k.a)(1))}selectSnapshot(t){return this.getStoreBoundSelectorFn(t)(this._stateStream.getValue())}subscribe(t){return this._stateStream.pipe(bt(this._internalExecutionStrategy)).subscribe(t)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(t){return this._internalStateOperations.getRootStateOperations().setState(t)}getStoreBoundSelectorFn(t){return Lt(t)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(t){const e=this._stateStream.value;if(!e||0===Object.keys(e).length){const e=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,t):t;this._stateStream.next(e)}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(St),i.bc(It),i.bc(st),i.bc(_t),i.bc(Nt),i.bc(u,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Bt=(()=>{class t{constructor(e,n){t.store=e,t.config=n}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Vt),i.bc(st))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t.store=null,t.config=null,t})();class zt{static get type(){return"@@INIT"}}class Ht{constructor(t){this.addedStates=t}static get type(){return"@@UPDATE_STATE"}}const Ut=new s.a(1);let $t=(()=>{class t{constructor(t,e,n,s,r=[],o){!function(){try{const t=window.ng,e=!(t.probe&&t.coreTokens)&&Object(i.Y)();Ut.next(e)}catch(t){Ut.next(!1)}finally{Ut.complete()}}();const a=t.addAndReturnDefaults(r);e.setStateToTheCurrentWithNew(a),t.connectActionHandlers(),o.ngxsBootstrap(new zt,a)}}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)(i.bc(Nt),i.bc(It),i.bc(Vt),i.bc(Bt),i.bc(Q,8),i.bc(Mt))}}),t})(),Wt=(()=>{class t{constructor(e,n,i,s=[],r){const o=t.flattenStates(s),a=i.addAndReturnDefaults(o);a.states.length&&(n.setStateToTheCurrentWithNew(a),r.ngxsBootstrap(new Ht(a.defaults),a))}static flattenStates(t=[]){return t.reduce((t,e)=>t.concat(e),[])}}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)(i.bc(Vt),i.bc(It),i.bc(Nt),i.bc(J,8),i.bc(Mt))}}),t})(),qt=(()=>{class t{static forRoot(e=[],n={}){return{ngModule:$t,providers:[Nt,Dt,xt,vt,c,At,Rt,Mt,jt,kt,It,_t,Vt,St,Bt,Ot,...e,...t.ngxsTokenProviders(e,n)]}}static forFeature(t=[]){return{ngModule:Wt,providers:[Nt,Ot,...t,{provide:J,multi:!0,useValue:t}]}}static ngxsTokenProviders(e,n){return[{provide:et,useValue:l},{provide:nt,useValue:i.Y},{provide:ot,useClass:n.executionStrategy||Y},{provide:Q,useValue:e},{provide:t.ROOT_OPTIONS,useValue:n},{provide:st,useFactory:t.ngxsConfigFactory,deps:[t.ROOT_OPTIONS]},{provide:i.b,useFactory:t.appBootstrapListenerFactory,multi:!0,deps:[c]},{provide:u,useFactory:t.getInitialState},{provide:d,useExisting:Dt},{provide:p,useExisting:Nt}]}static ngxsConfigFactory(t){return Object.assign(new st,t)}static appBootstrapListenerFactory(t){return()=>t.bootstrap()}static getInitialState(){return h.pop()}}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t.ROOT_OPTIONS=new i.s("ROOT_OPTIONS"),t})();function Gt(t,e){return(n,i)=>{if(n.hasOwnProperty("prototype"))throw new Error(W());const s=ut(n.constructor);Array.isArray(t)||(t=[t]);for(const r of t){const t=r.type;s.actions[t]||(s.actions[t]=[]),s.actions[t].push({fn:i,options:e||{},type:t})}}}function Xt(t){return e=>{!function(t){Ut.asObservable().subscribe(e=>{e&&(t.\u0275prov||console.warn(Z(t.name)))})}(e);const n=e,i=ut(n),s=Object.getPrototypeOf(n),r=function(e){return Object.assign({},e.NGXS_OPTIONS_META||{},t)}(s);!function(t){const{meta:e,inheritedStateClass:n,optionsWithInheritance:i}=t,{children:s,defaults:r,name:o}=i,a="string"==typeof o?o:o&&o.getName()||null;Pt.checkCorrectStateName(a),n.hasOwnProperty(it)&&(e.actions=Object.assign({},e.actions,(n[it]||{}).actions)),e.children=s,e.defaults=r,e.name=a}({meta:i,inheritedStateClass:s,optionsWithInheritance:r}),n.NGXS_OPTIONS_META=r}}function Kt(t,...e){return function(n,i){const s=i.toString(),r=`__${s}__selector`,o=function(t,e,n=[]){return"string"==typeof(e=e||function(t){const e=t.length-1;return 36===t.charCodeAt(e)?t.slice(0,e):t}(t))?pt(n.length?[e,...n]:e.split("."),Bt.config):e}(s,t,e);Object.defineProperties(n,{[r]:{writable:!0,enumerable:!1,configurable:!0},[s]:{enumerable:!0,configurable:!0,get(){return this[r]||(this[r]=function(t){if(!Bt.store)throw new Error($());return Bt.store.select(t)}(o))}}})}}function Zt(t){return(e,n,i)=>{if(!i||null===i.value)throw new Error(q());const s=i.value,r=function(t,e,n){const i=n&&n.containerClass,s=a((function(...t){const n=e.apply(i,t);return n instanceof Function?a.apply(null,[n]):n}));Object.setPrototypeOf(s,e);const r=function(t,e){const n=((i=t).hasOwnProperty("NGXS_SELECTOR_META")||Object.defineProperty(i,"NGXS_SELECTOR_META",{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:()=>({})}}),dt(i));var i;n.originalFn=t;let s=()=>({});e&&(n.containerClass=e.containerClass,n.selectorName=e.selectorName,s=e.getSelectorOptions||s);const r=Object.assign({},n);return n.getSelectorOptions=()=>function(t,e){return Object.assign({},Ft(t.containerClass)||{},Ft(t.originalFn)||{},t.getSelectorOptions()||{},e)}(r,s()),n}(e,n);return r.makeRootSelector=e=>{const{argumentSelectorFunctions:n,selectorOptions:i}=function(t,e,n=[]){const i=e.getSelectorOptions(),s=t.getSelectorOptions(i);return{selectorOptions:s,argumentSelectorFunctions:function(t=[],e,n){const i=[];return n&&(0===t.length||e.injectContainerState)&&ht(n)&&i.push(n),t&&i.push(...t),i}(n,s,e.containerClass).map(e=>Lt(e)(t))}}(e,r,t);return function(t){const e=n.map(e=>e(t));try{return s(...e)}catch(r){if(r instanceof TypeError&&i.suppressErrors)return;throw r}}},s}(t,s,{containerClass:e,selectorName:n.toString(),getSelectorOptions:()=>({})}),o={configurable:!0,get:()=>r};return o.originalFn=s,o}}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("HDdC"),s=n("SeVD"),r=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>{const s=t[o.a]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(c.a)(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new r.a;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.a](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(s.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("3N8a");const s=new(n("IjjT").a)(i.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return r}));var i=n("HDdC");const s=new i.a(t=>t.complete());function r(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):s}},FKr1:function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return J})),n.d(e,"c",(function(){return X})),n.d(e,"d",(function(){return M})),n.d(e,"e",(function(){return w})),n.d(e,"f",(function(){return j})),n.d(e,"g",(function(){return A})),n.d(e,"h",(function(){return $})),n.d(e,"i",(function(){return K})),n.d(e,"j",(function(){return Q})),n.d(e,"k",(function(){return V})),n.d(e,"l",(function(){return B})),n.d(e,"m",(function(){return F})),n.d(e,"n",(function(){return L})),n.d(e,"o",(function(){return N})),n.d(e,"p",(function(){return Z})),n.d(e,"q",(function(){return Y})),n.d(e,"r",(function(){return C})),n.d(e,"s",(function(){return S})),n.d(e,"t",(function(){return x})),n.d(e,"u",(function(){return k})),n.d(e,"v",(function(){return O})),n.d(e,"w",(function(){return T}));var i=n("fXoL"),s=n("u47x"),r=n("cH1L");const o=new i.P("9.2.0");var a=n("ofXK"),l=n("8LU1"),c=n("XNiG"),u=(n("HDdC"),n("nLfN")),h=(n("jhN1"),n("JX91")),d=n("R1ws"),p=n("FtGj");const m=["*",[["mat-option"],["ng-container"]]],f=["*","mat-option, ng-container"];function g(t,e){if(1&t&&i.Sb(0,"mat-pseudo-checkbox",3),2&t){const t=i.jc();i.oc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const b=["*"],_=new i.P("9.2.0"),y=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let v,w=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(i.Y)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==o.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)(i.bc(s.g),i.bc(y,8),i.bc(a.d,8))},imports:[[r.a],r.a]}),t})();function x(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(l.c)(t)}}}function O(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{v="undefined"!=typeof Intl}catch(tt){v=!1}let E=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function T(t,e,n="mat"){t.changes.pipe(Object(h.a)(t)).subscribe(({length:t})=>{R(e,`${n}-2-line`,!1),R(e,`${n}-3-line`,!1),R(e,`${n}-multi-line`,!1),2===t||3===t?R(e,`${n}-${t}-line`,!0):t>3&&R(e,`${n}-multi-line`,!0)})}function R(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let A=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[w],w]}),t})();class I{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const D={enterDuration:450,exitDuration:400},P=Object(u.f)({passive:!0});class N{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=Object(s.i)(t),n=this._lastTouchStartEvent&&Date.now(){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))},i.isBrowser&&(this._containerElement=Object(l.e)(n),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},D),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${o-r}px`,c.style.top=`${a-r}px`,c.style.height=`${2*r}px`,c.style.width=`${2*r}px`,null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new I(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},D),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(l.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,n)=>{e.addEventListener(n,t,P)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,P)})}}const M=new i.s("mat-ripple-global-options");let F=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new N(this,e,t,n),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.B),i.Rb(u.a),i.Rb(M,8),i.Rb(d.a,8))},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Ib("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),L=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[w,u.b],w]}),t})(),V=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(d.a,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Ib("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),B=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t})();class z{}const H=x(z);let U=0,$=(()=>{class t extends H{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${U++}`}}return t.\u0275fac=function(e){return W(e||t)},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Fb("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),i.Ib("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[i.Bb],ngContentSelectors:f,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(i.nc(m),i.Xb(0,"label",0),i.Dc(1),i.mc(2),i.Wb(),i.mc(3,1)),2&t&&(i.oc("id",e._labelId),i.Eb(1),i.Fc("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const W=i.Zb($);let q=0;class G{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const X=new i.s("MAT_OPTION_PARENT_COMPONENT");let K=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${q++}`,this.onSelectionChange=new i.p,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.f&&t.keyCode!==p.n||Object(p.s)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new G(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.i),i.Rb(X,8),i.Rb($,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.fc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(i.ac("id",e.id),i.Fb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Ib("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:b,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(i.nc(),i.Bc(0,g,1,2,"mat-pseudo-checkbox",0),i.Xb(1,"span",1),i.mc(2),i.Wb(),i.Sb(3,"div",2)),2&t&&(i.oc("ngIf",e.multiple),i.Eb(3),i.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.k,F,V],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Z(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,s-i+e):n}let Q=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[L,a.c,B]]}),t})();const J=new i.s("mat-label-global-options")},FtGj:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return r})),n.d(e,"g",(function(){return o})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return _})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return a})),n.d(e,"o",(function(){return s})),n.d(e,"p",(function(){return p})),n.d(e,"q",(function(){return v})),n.d(e,"r",(function(){return b})),n.d(e,"s",(function(){return w}));const i=8,s=9,r=13,o=27,a=32,l=33,c=34,u=35,h=36,d=37,p=38,m=39,f=40,g=46,b=48,_=57,y=65,v=90;function w(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GFHR:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL");let s=(()=>{class t{transform(t){const e=Math.floor(t/60);return e.toString().padStart(2,"0")+":"+Math.floor(t-60*e).toString().padStart(2,"0")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Qb({name:"minuteSeconds",type:t,pure:!0}),t})()},GU7r:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return h}));var i=n("8LU1"),s=n("fXoL"),r=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Nb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(i.e)(t);return new r.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(l))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.p,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(i.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(c),s.Rb(s.m),s.Rb(s.B))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)},providers:[l]}),t})()},GyhO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("LRne"),s=n("0EUg");function r(...t){return Object(s.a)()(Object(i.a)(...t))}},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("7o/Q"),s=n("2QA8"),r=n("gRHU"),o=n("kJWO"),a=n("mCNh"),l=n("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new i.a(t,e,n):new i.a(r.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("7o/Q"),s=n("4I5i"),r=n("EY2u");function o(t){return e=>0===t?Object(r.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("l7GE"),s=n("51Dv"),r=n("ZUHj");function o(t){return function(e){const n=new a(t),i=e.lift(n);return n.caught=i}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new l(t,this.selector,this.caught))}}class l extends i.a{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new s.a(this,void 0,void 0);this.add(i);const o=Object(r.a)(this,n,void 0,void 0,i);o!==i&&this.add(o)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("GyhO"),s=n("z+Ro");function r(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},Kj3r:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q"),s=n("D0XW");function r(t,e=s.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("z+Ro"),s=n("yCtX"),r=n("jZKg");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(r.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return s}));const s=i()},NFeN:function(t,e,n){"use strict";n.d(e,"a",(function(){return I})),n.d(e,"b",(function(){return D}));var i=n("fXoL"),s=n("FKr1"),r=n("8LU1"),o=n("ofXK"),a=n("vkgz"),l=n("lJxs"),c=n("JIr8"),u=n("nYR2"),h=n("w1tV"),d=n("IzEk"),p=n("tk/3"),m=n("jhN1"),f=n("LRne"),g=n("z6cu"),b=n("cp0P");const _=["*"];function y(t){return Error(`Unable to find icon with the name "${t}"`)}function v(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function w(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class x{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let C=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new x(n,i))}addSvgIconLiteralInNamespace(t,e,n,s){const r=this._sanitizer.sanitize(i.K.HTML,n);if(!r)throw w(n);const o=this._createSvgElementForSingleIcon(r,s);return this._addSvgIconConfig(t,e,new x(o,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new x(e,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(i.K.HTML,e);if(!s)throw w(e);const r=this._svgElementFromString(s);return this._addSvgIconSetConfig(t,new x(r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.K.RESOURCE_URL,t);if(!e)throw v(t);const n=this._cachedIconsByUrl.get(e);return n?Object(f.a)(S(n)):this._loadSvgIconFromConfig(new x(t)).pipe(Object(a.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(l.a)(t=>S(t)))}getNamedSvgIcon(t,e=""){const n=O(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Object(g.a)(y(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Object(f.a)(S(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Object(a.a)(e=>t.svgElement=e),Object(l.a)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return Object(f.a)(n);const s=e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(c.a)(e=>{const n=`Loading icon set URL: ${this._sanitizer.sanitize(i.K.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n),Object(f.a)(null)})));return Object(b.a)(s).pipe(Object(l.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw y(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgElement){const e=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(Object(l.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Object(f.a)(t.svgElement):this._fetchUrl(t.url).pipe(Object(l.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(e)),Object(h.a)());return this._inProgressUrlFetches.set(e,s),s}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(O(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(i.bc(p.a,8),i.bc(m.b),i.bc(o.d,8),i.bc(i.o,8))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(p.a,8),Object(i.bc)(m.b),Object(i.bc)(o.d,8),Object(i.bc)(i.o,8))},token:t,providedIn:"root"}),t})();function S(t){return t.cloneNode(!0)}function O(t,e){return t+":"+e}class k{constructor(t){this._elementRef=t}}const E=Object(s.r)(k),j=new i.s("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(i.X)(o.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),T=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],R=T.map(t=>`[${t}]`).join(", "),A=/^url\(['"]?#(.*?)['"]?\)$/;let I=(()=>{class t extends E{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(r.c)(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(e,t).pipe(Object(d.a)(1)).subscribe(t=>this._setSvgElement(t),n=>{const i=`Error retrieving icon ${t}:${e}! ${n.message}`;this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(R),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(A):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(C),i.cc("aria-hidden"),i.Rb(j,8),i.Rb(i.o,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&i.Ib("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[i.Bb,i.Cb],ngContentSelectors:_,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),D=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[s.e],s.e]}),t})()},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return i}))},NXyV:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("HDdC"),s=n("Cfvw"),r=n("EY2u");function o(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(s.a)(n):Object(r.b)()).subscribe(e)})}},PCNd:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("ofXK"),s=n("fXoL");let r=(()=>{class t{}return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})()},PqYM:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("HDdC"),s=n("D0XW"),r=n("DH7j");function o(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}var a=n("z+Ro");function l(t=0,e,n){let r=-1;return o(e)?r=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=s.a),new i.a(e=>{const i=o(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:r,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return m})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return d})),n.d(e,"m",(function(){return o})),n.d(e,"n",(function(){return b})),n.d(e,"o",(function(){return _}));class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function m(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function f(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",(function(){return fe})),n.d(e,"b",(function(){return be}));var i=n("fXoL"),s=n("jhN1"),r=n("R0Ic");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new r.d;case 1:return t[0];default:return new r.n(t)}}function l(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.o:l=s[n];break;case r.a:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&u(n,"start",t)));break;case"done":t.onDone(()=>i(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&u(n,"destroy",t)))}}function u(t,e,n){const i=n.totalTime,s=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function h(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,f=(t,e)=>!1,g=(t,e,n)=>[];const b=o();(b||"undefined"!=typeof Element)&&(m=(t,e)=>t.contains(e),f=(()=>{if(b||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):f}})(),g=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let _=null,y=!1;function v(t){_||(_=("undefined"!=typeof document?document.body:null)||{},y=!!_.style&&"WebkitAppearance"in _.style);let e=!0;return _.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _.style,!e&&y)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _.style),e}const w=f,x=m,C=g;function S(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let O=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.d(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new O,t})();function E(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:j(parseFloat(e[1]),e[2])}function j(t,e){switch(e){case"s":return 1e3*t;default:return t}}function T(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=j(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=j(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function R(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function A(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else R(t,n);return n}function I(t,e,n){return n?e+":"+n+";":""}function D(t){let e="";for(let n=0;n{const s=H(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),o()&&D(t))}function N(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=H(e);t.style[n]=""}),o()&&D(t))}function M(t){return Array.isArray(t)?1==t.length?t[0]:Object(r.i)(t):t}const F=new RegExp("{{\\s*(.+?)\\s*}}","g");function L(t){let e=[];if("string"==typeof t){let n;for(;n=F.exec(t);)e.push(n[1]);F.lastIndex=0}return e}function V(t,e,n){const i=t.toString(),s=i.replace(F,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function B(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const z=/-+([a-z0-9])/g;function H(t){return t.replace(z,(...t)=>t[1].toUpperCase())}function U(t,e){return 0===t||0===e}function $(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(Z(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(Z(o,s))}(t,n,e)):n.push(t),n}const X=new Set(["true","1"]),K=new Set(["false","0"]);function Z(t,e){const n=X.has(t)||K.has(t),i=X.has(e)||K.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?X.has(t):K.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?X.has(e):K.has(e)),o&&a}}const Y=new RegExp("s*:selfs*,?","g");function Q(t,e,n){return new J(t).build(e,n)}class J{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),W(this,M(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{L(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=B(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=W(this,M(t.animation),e);return{type:1,matchers:G(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>W(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=W(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:nt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return it(T(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=it(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||T(i,e),it(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Object(r.k)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=Object(r.k)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(et(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=L(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*m;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:W(this,M(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Y,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,d(e.collectedStyles,e.currentQuerySelector,{});const o=W(this,M(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:T(t.timings,e.errors,!0);return{type:12,animation:W(this,M(t.animation),e),timings:n,options:null}}}class tt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=R(t)).params&&(t.params=(e=t.params)?R(e):null):t={},t}function it(t,e,n){return{duration:t,delay:e,easing:n}}function st(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class rt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ot=new RegExp(":enter","g"),at=new RegExp(":leave","g");function lt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new ct).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class ct{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new rt;const u=new ht(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),W(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[st(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?E(n.duration):null,r=null!=n.delay?E(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),W(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ut);const t=E(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>W(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?E(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),W(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return T(e.params?V(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?E(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),W(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;W(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const ut={};class ht{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new dt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=E(n.duration)),null!=n.delay&&(i.delay=E(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=V(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new ht(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new pt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ot,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class dt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new dt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.a,this._currentKeyframe[t]=r.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.a})):A(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=V(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=A(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.o?t.add(n):i==r.a&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?B(t.values()):[],o=e.size?B(e.values()):[];if(n){const t=i[0],e=R(t);t.offset=0,e.offset=1,i=[t,e]}return st(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class pt extends dt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=A(t[0],!1);a.offset=0,s.push(a);const l=A(t[0],!1);l.offset=mt(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=A(t[i],!1);o.offset=mt((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return st(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function mt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class ft{}class gt extends ft{normalizePropertyName(t,e){return H(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(bt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const bt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function _t(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const yt={};class vt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||yt,p=this.buildStyles(n,o&&o.params||yt,u),m=a&&a.params||yt,f=this.buildStyles(i,m,u),g=new Set,b=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},h),m)},w=c?[]:lt(t,e,this.ast.animation,s,r,p,f,v,l,u);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),u.length)return _t(e,this._triggerName,n,i,y,p,f,[],[],b,_,x,u);w.forEach(t=>{const n=t.element,i=d(b,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=d(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const C=B(g.values());return _t(e,this._triggerName,n,i,y,p,f,w,C,b,_,x)}}class wt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=R(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=V(r,i,e)),n[t]=r})}}),n}}class xt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new wt(t.style,t.options&&t.options.params||{})}),Ct(this.states,"true","1"),Ct(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new vt(t,e,this.states))}),this.fallbackTransition=new vt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Ct(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const St=new rt;class Ot{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Q(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=l(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const l=new Map;if(s?(o=lt(this._driver,e,s,"ng-enter","ng-leave",{},{},n,St,i),o.forEach(t=>{const e=d(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);l.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.a)})});const c=a(o.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=h(e,"","","");return c(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const kt=[],Et={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Tt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=R(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Rt=new Tt("void");class At{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Lt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Lt(t,"ng-trigger"),Lt(t,"ng-trigger-"+e),a[e]=Rt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Dt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Lt(t,"ng-trigger"),Lt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Tt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Rt),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{N(t,n),P(t,i)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Lt(t,"ng-animate-queued"),r.onStart(()=>{Vt(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Rt,o=new Tt("void"),a=new Dt(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Et||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Lt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=h(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,c(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class It{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new At(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Lt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Vt(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Pt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Pt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Et,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new rt,i=[],s=new Map,o=[],l=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n="ng-enter"+b++;g.set(e,n),t.forEach(t=>Lt(t,n))});const _=[],y=new Set,v=new Set;for(let r=0;ry.add(t)):v.add(t))}const w=new Map,x=Ft(m,Array.from(y));x.forEach((t,e)=>{const n="ng-leave"+b++;w.set(e,n),t.forEach(t=>Lt(t,n))}),t.push(()=>{f.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Vt(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Vt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],S=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(C.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const r=!p||!this.driver.containsElement(p,s),a=w.get(s),h=g.get(s),m=this._buildInstruction(t,n,h,a,r);if(!m.errors||!m.errors.length)return r||t.isFallbackTransition?(e.onStart(()=>N(s,m.fromStyles)),e.onDestroy(()=>P(s,m.toStyles)),void i.push(e)):(m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,m.timelines),o.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>d(l,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),void m.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))}));S.push(m)});if(S.length){const t=[];S.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const O=new Map,k=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(O,e,[]).push(t),t.destroy()})});const E=_.filter(t=>zt(t,c,u)),j=new Map;Mt(j,this.driver,v,u,r.a).forEach(t=>{zt(t,c,u)&&E.push(t)});const T=new Map;f.forEach((t,e)=>{Mt(T,this.driver,new Set(t),c,r.o)}),E.forEach(t=>{const e=j.get(t),n=T.get(t);j.set(t,Object.assign(Object.assign({},e),n))});const R=[],A=[],I={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>P(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=I;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,O,s,T,j);if(r.setRealPlayer(n),t===I)R.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=a(e)),i.push(r)}}else N(e,o.fromStyles),r.onDestroy(()=>P(e,o.toStyles)),A.push(r),h.has(e)&&i.push(r)}),A.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r<_.length;r++){const t=_[r],e=t.__ng_removed;if(Vt(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(l.size){let e=l.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t!t.destroyed);i.length?Bt(this,t,i):this.processLeaveNode(t)}return _.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=d(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}N(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const c=e.triggerName,u=e.element,h=[],p=new Set,m=new Set,f=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new r.d(e.duration,e.delay);const f=a!==u,g=function(t){const e=[];return function t(e,n){for(let i=0;it.getRealPlayer())).filter(t=>!!t.element&&t.element===a),b=s.get(a),_=o.get(a),y=l(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,g);if(e.subTimeline&&i&&m.add(a),f){const e=new Dt(t,c,a);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Lt(t,"ng-animating"));const g=a(f);return g.onDestroy(()=>{p.forEach(t=>Vt(t,"ng-animating")),P(u,e.toStyles)}),m.forEach(t=>{d(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.d(t.duration,t.delay)}}class Dt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>c(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Pt(t){return t&&1===t.nodeType}function Nt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Mt(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Nt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=jt,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Nt(t,r[a++])),o}function Ft(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Lt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Vt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Bt(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function zt(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class Ht{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new It(t,e,n),this._timelineEngine=new Ot(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=Q(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new xt(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=p(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ut(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Wt(e[0]),e.length>1&&(i=Wt(e[e.length-1]))):e&&(n=Wt(e)),n||i?new $t(t,n,i):null}let $t=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&P(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(P(this._element,this._initialStyles),this._endStyles&&(P(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),P(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Wt(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=Jt(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Yt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Jt(t,"").split(","),i=Zt(n,e);i>=0&&(n.splice(i,1),Qt(t,"",n.join(",")))}(this._element,this._name))}}function Xt(t,e,n){Qt(t,"PlayState",n,Kt(t,e))}function Kt(t,e){const n=Jt(t,"");return n.indexOf(",")>0?Zt(n.split(","),e):Zt([n],e)}function Zt(t,e){for(let n=0;n=0)return n;return-1}function Yt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Qt(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function Jt(t,e){return t.style["animation"+e]}class te{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Gt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:q(this.element,n))})}this.currentSnapshot=t}}class ee extends r.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ne{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>S(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.innerHTML=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof te),l={};U(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=$(t,e,l));if(0==n)return new ee(t,c);const u=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=Ut(t,e),p=new te(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class ie{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class se{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(re().toString()),this._cssKeyframesDriver=new ne}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof ie);U(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=Ut(t,e=$(t,e=e.map(t=>A(t,!1)),l));return new ie(t,e,a,u)}}function re(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var oe=n("ofXK");let ae=(()=>{class t extends r.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.R.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(r.i)(t):t;return ue(this._renderer,null,e,"register",[n]),new le(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.H),i.bc(oe.d))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class le extends r.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ce(this._id,t,e||{},this._renderer)}}class ce{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ue(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ue(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let he=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new de("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new pe(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.H),i.bc(Ht),i.bc(i.B))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class de{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class pe extends de{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let me=(()=>{class t extends Ht{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(oe.d),i.bc(k),i.bc(ft))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const fe=new i.s("AnimationModuleType"),ge=[{provide:k,useFactory:function(){return"function"==typeof re()?new se:new ne}},{provide:fe,useValue:"BrowserAnimations"},{provide:r.b,useClass:ae},{provide:ft,useFactory:function(){return new gt}},{provide:Ht,useClass:me},{provide:i.H,useFactory:function(t,e,n){return new he(t,e,n)},deps:[s.e,Ht,i.B]}];let be=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:ge,imports:[s.a]}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("ngJS"),s=n("NJ4a"),r=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(i.a)(t);if(Object(l.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[r.a])return e=t,t=>{const n=e[r.a]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(c.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var e,n,u}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",(function(){return i}))},UXun:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("jtHE");function s(t,e,n){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:s}){let r,o,a=0,l=!1,c=!1;return function(u){a++,r&&!l||(l=!1,r=new i.a(t,e,s),o=u.subscribe({next(t){r.next(t)},error(t){l=!0,r.error(t)},complete(){c=!0,o=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{a--,h.unsubscribe(),o&&!c&&n&&0===a&&(o.unsubscribe(),o=void 0,r=void 0)})}}(s))}},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("HDdC"),s=n("z+Ro"),r=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(r.a)(e)(Object(o.a)(t,n))}},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return u}));var i=n("HDdC"),s=n("7o/Q"),r=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return i}))},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("quSY");class s extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("51Dv"),s=n("SeVD"),r=n("HDdC");function o(t,e,n,o,a=new i.a(t,n,o)){if(!a.closed)return e instanceof r.a?e.subscribe(a):Object(s.a)(e)(a)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5+tZ"),s=n("SpAZ");function r(t=Number.POSITIVE_INFINITY){return Object(i.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5+tZ");function s(t,e){return Object(i.a)(t,e,1)}},bTqV:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return m}));var i=n("FKr1"),s=n("R1ws"),r=n("fXoL"),o=n("u47x");const a=["mat-button",""],l=["*"],c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const h=Object(i.r)(Object(i.t)(Object(i.s)(u)));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of c)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.m),r.Rb(o.e),r.Rb(s.a,8))},t.\u0275cmp=r.Lb({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&r.Ic(i.m,!0),2&t&&r.qc(n=r.gc())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(r.Fb("disabled",e.disabled||null),r.Ib("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.Bb],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.nc(),r.Xb(0,"span",0),r.mc(1),r.Wb(),r.Sb(2,"div",1),r.Sb(3,"div",2)),2&t&&(r.Eb(2),r.Ib("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.oc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.m],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(o.e),r.Rb(r.m),r.Rb(s.a,8))},t.\u0275cmp=r.Lb({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&r.fc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(r.Fb("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.Ib("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.Bb],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.nc(),r.Xb(0,"span",0),r.mc(1),r.Wb(),r.Sb(2,"div",1),r.Sb(3,"div",2)),2&t&&(r.Eb(2),r.Ib("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.oc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.m],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({factory:function(e){return new(e||t)},imports:[[i.n,i.e],i.e]}),t})()},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return i}))},cH1L:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var i=n("fXoL"),s=n("ofXK");const r=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.X)(s.d)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.p,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(r,8))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t})()},cp0P:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("HDdC"),s=n("DH7j"),r=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return c(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(r.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let l=0;l{u||(u=!0,o++),s[l]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&u||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},d3UM:function(t,e,n){"use strict";n.d(e,"a",(function(){return $})),n.d(e,"b",(function(){return W}));var i=n("rDax"),s=n("ofXK"),r=n("fXoL"),o=n("FKr1"),a=n("kmnG"),l=n("u47x"),c=n("8LU1"),u=n("0EQZ"),h=n("FtGj"),d=n("XNiG"),p=n("NXyV"),m=n("VRyK"),f=n("JX91"),g=n("eIep"),b=n("IzEk"),_=n("pLZG"),y=n("lJxs"),v=n("/uUt"),w=n("1G5W"),x=n("R0Ic"),C=n("vxfF"),S=n("cH1L"),O=n("3Pt+");const k=["trigger"],E=["panel"];function j(t,e){if(1&t&&(r.Xb(0,"span",8),r.Dc(1),r.Wb()),2&t){const t=r.jc();r.Eb(1),r.Ec(t.placeholder||"\xa0")}}function T(t,e){if(1&t&&(r.Xb(0,"span"),r.Dc(1),r.Wb()),2&t){const t=r.jc(2);r.Eb(1),r.Ec(t.triggerValue||"\xa0")}}function R(t,e){1&t&&r.mc(0,0,["*ngSwitchCase","true"])}function A(t,e){if(1&t&&(r.Xb(0,"span",9),r.Bc(1,T,2,1,"span",10),r.Bc(2,R,1,0,void 0,11),r.Wb()),2&t){const t=r.jc();r.oc("ngSwitch",!!t.customTrigger),r.Eb(2),r.oc("ngSwitchCase",!0)}}function I(t,e){if(1&t){const t=r.Yb();r.Xb(0,"div",12),r.Xb(1,"div",13,14),r.fc("@transformPanel.done",(function(e){return r.uc(t),r.jc()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return r.uc(t),r.jc()._handleKeydown(e)})),r.mc(3,1),r.Wb(),r.Wb()}if(2&t){const t=r.jc();r.oc("@transformPanelWrap",void 0),r.Eb(1),r.Hb("mat-select-panel ",t._getPanelTheme(),""),r.Ac("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.oc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing")}}const D=[[["mat-select-trigger"]],"*"],P=["mat-select-trigger","*"],N={transformPanelWrap:Object(x.m)("transformPanelWrap",[Object(x.l)("* => void",Object(x.h)("@transformPanel",[Object(x.f)()],{optional:!0}))]),transformPanel:Object(x.m)("transformPanel",[Object(x.j)("void",Object(x.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(x.j)("showing",Object(x.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(x.j)("showing-multiple",Object(x.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(x.l)("void => *",Object(x.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(x.l)("* => void",Object(x.e)("100ms 25ms linear",Object(x.k)({opacity:0})))])};let M=0;const F=new r.s("mat-select-scroll-strategy"),L=new r.s("MAT_SELECT_CONFIG"),V={provide:F,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class B{constructor(t,e){this.source=t,this.value=e}}class z{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const H=Object(o.s)(Object(o.v)(Object(o.t)(Object(o.u)(z))));let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-select-trigger"]]}),t})(),$=(()=>{class t extends H{constructor(t,e,n,i,s,o,a,l,c,u,h,v,w,x){super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=w,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid=`mat-select-${M++}`,this._destroy=new d.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new d.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=Object(p.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(f.a)(t),Object(g.a)(()=>Object(m.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(Object(b.a)(1),Object(g.a)(()=>this.optionSelectionChanges))}),this.openedChange=new r.p,this._openedStream=this.openedChange.pipe(Object(_.a)(t=>t),Object(y.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(_.a)(t=>!t),Object(y.a)(()=>{})),this.selectionChange=new r.p,this.valueChange=new r.p,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=v,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,x&&(null!=x.disableOptionCentering&&(this.disableOptionCentering=x.disableOptionCentering),null!=x.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=x.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(c.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Object(c.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(c.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(c.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new u.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(v.a)(),Object(w.a)(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Object(w.a)(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(w.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(f.a)(null),Object(w.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Object(b.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===h.d||e===h.p||e===h.i||e===h.m,i=e===h.f||e===h.n,s=this._keyManager;if(!s.isTyping()&&i&&!Object(h.s)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;e===h.h||e===h.e?(e===h.h?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const i=this.selected;i&&n!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===h.d||n===h.p,s=e.isTyping();if(n===h.h||n===h.e)t.preventDefault(),n===h.h?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==h.f&&n!==h.n||!e.activeItem||Object(h.s)(t))if(!s&&this._multiple&&n===h.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(b.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return Object(r.Y)()&&console.warn(n),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(w.a)(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(Object(w.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(m.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(w.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(m.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(w.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new B(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=Object(o.p)(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Object(o.q)(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,n,i)=>void 0!==e?e:t===n?i:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=Object(o.p)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(C.d),r.Rb(r.i),r.Rb(r.B),r.Rb(o.a),r.Rb(r.m),r.Rb(S.b,8),r.Rb(O.l,8),r.Rb(O.e,8),r.Rb(a.a,8),r.Rb(O.i,10),r.cc("tabindex"),r.Rb(F),r.Rb(l.h),r.Rb(L,8))},t.\u0275cmp=r.Lb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(r.Kb(n,U,!0),r.Kb(n,o.i,!0),r.Kb(n,o.h,!0)),2&t&&(r.qc(i=r.gc())&&(e.customTrigger=i.first),r.qc(i=r.gc())&&(e.options=i),r.qc(i=r.gc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(r.Ic(k,!0),r.Ic(E,!0),r.Ic(i.a,!0)),2&t&&(r.qc(n=r.gc())&&(e.trigger=n.first),r.qc(n=r.gc())&&(e.panel=n.first),r.qc(n=r.gc())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&r.fc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(r.Fb("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.Ib("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[r.Db([{provide:a.d,useExisting:t},{provide:o.c,useExisting:t}]),r.Bb,r.Cb],ngContentSelectors:P,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.nc(D),r.Xb(0,"div",0,1),r.fc("click",(function(){return e.toggle()})),r.Xb(3,"div",2),r.Bc(4,j,2,1,"span",3),r.Bc(5,A,3,2,"span",4),r.Wb(),r.Xb(6,"div",5),r.Sb(7,"div",6),r.Wb(),r.Wb(),r.Bc(8,I,4,10,"ng-template",7),r.fc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=r.rc(1);r.Eb(3),r.oc("ngSwitch",e.empty),r.Eb(1),r.oc("ngSwitchCase",!0),r.Eb(1),r.oc("ngSwitchCase",!1),r.Eb(3),r.oc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,s.m,s.n,i.a,s.o,s.i],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})(),W=(()=>{class t{}return t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({factory:function(e){return new(e||t)},providers:[V],imports:[[s.c,i.f,o.j,o.e],a.e,o.j,o.e]}),t})()},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("l7GE"),s=n("51Dv"),r=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function l(t,e){return"function"==typeof e?n=>n.pipe(l((n,i)=>Object(a.a)(t(n,i)).pipe(Object(o.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new c(t))}class c{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends i.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const o=new s.a(this,e,n),a=this.destination;a.add(o),this.innerSubscription=Object(r.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,s){this.destination.next(e)}}},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return wr})),n.d(e,"b",(function(){return Al})),n.d(e,"c",(function(){return kl})),n.d(e,"d",(function(){return Sl})),n.d(e,"e",(function(){return Ol})),n.d(e,"f",(function(){return Oc})),n.d(e,"g",(function(){return pc})),n.d(e,"h",(function(){return Ul})),n.d(e,"i",(function(){return sr})),n.d(e,"j",(function(){return Hl})),n.d(e,"k",(function(){return na})),n.d(e,"l",(function(){return Pl})),n.d(e,"m",(function(){return ia})),n.d(e,"n",(function(){return wc})),n.d(e,"o",(function(){return vn})),n.d(e,"p",(function(){return tl})),n.d(e,"q",(function(){return q})),n.d(e,"r",(function(){return u})),n.d(e,"s",(function(){return W})),n.d(e,"t",(function(){return vr})),n.d(e,"u",(function(){return xa})),n.d(e,"v",(function(){return Ca})),n.d(e,"w",(function(){return Dl})),n.d(e,"x",(function(){return at})),n.d(e,"y",(function(){return fc})),n.d(e,"z",(function(){return ot})),n.d(e,"A",(function(){return lc})),n.d(e,"B",(function(){return ql})),n.d(e,"C",(function(){return h})),n.d(e,"D",(function(){return Rl})),n.d(e,"E",(function(){return Tl})),n.d(e,"F",(function(){return nl})),n.d(e,"G",(function(){return aa})),n.d(e,"H",(function(){return ra})),n.d(e,"I",(function(){return oa})),n.d(e,"J",(function(){return ca})),n.d(e,"K",(function(){return ai})),n.d(e,"L",(function(){return p})),n.d(e,"M",(function(){return _c})),n.d(e,"N",(function(){return Ea})),n.d(e,"O",(function(){return tc})),n.d(e,"P",(function(){return ua})),n.d(e,"Q",(function(){return Ta})),n.d(e,"R",(function(){return gt})),n.d(e,"S",(function(){return Tr})),n.d(e,"T",(function(){return cc})),n.d(e,"U",(function(){return Ln})),n.d(e,"V",(function(){return R})),n.d(e,"W",(function(){return uc})),n.d(e,"X",(function(){return nt})),n.d(e,"Y",(function(){return Fn})),n.d(e,"Z",(function(){return Cc})),n.d(e,"ab",(function(){return ic})),n.d(e,"bb",(function(){return Il})),n.d(e,"cb",(function(){return or})),n.d(e,"db",(function(){return Wa})),n.d(e,"eb",(function(){return ri})),n.d(e,"fb",(function(){return ui})),n.d(e,"gb",(function(){return Hn})),n.d(e,"hb",(function(){return jn})),n.d(e,"ib",(function(){return Rn})),n.d(e,"jb",(function(){return Pn})),n.d(e,"kb",(function(){return In})),n.d(e,"lb",(function(){return An})),n.d(e,"mb",(function(){return Dn})),n.d(e,"nb",(function(){return za})),n.d(e,"ob",(function(){return xc})),n.d(e,"pb",(function(){return Ha})),n.d(e,"qb",(function(){return Ua})),n.d(e,"rb",(function(){return Tn})),n.d(e,"sb",(function(){return F})),n.d(e,"tb",(function(){return Rr})),n.d(e,"ub",(function(){return Yr})),n.d(e,"vb",(function(){return Zr})),n.d(e,"wb",(function(){return jr})),n.d(e,"xb",(function(){return Ba})),n.d(e,"yb",(function(){return Bt})),n.d(e,"zb",(function(){return E})),n.d(e,"Ab",(function(){return En})),n.d(e,"Bb",(function(){return Fo})),n.d(e,"Cb",(function(){return Uo})),n.d(e,"Db",(function(){return Jo})),n.d(e,"Eb",(function(){return Ti})),n.d(e,"Fb",(function(){return Pr})),n.d(e,"Gb",(function(){return bo})),n.d(e,"Hb",(function(){return Do})),n.d(e,"Ib",(function(){return go})),n.d(e,"Jb",(function(){return Jr})),n.d(e,"Kb",(function(){return fl})),n.d(e,"Lb",(function(){return vt})),n.d(e,"Mb",(function(){return Et})),n.d(e,"Nb",(function(){return b})),n.d(e,"Ob",(function(){return _})),n.d(e,"Pb",(function(){return St})),n.d(e,"Qb",(function(){return jt})),n.d(e,"Rb",(function(){return Lr})),n.d(e,"Sb",(function(){return Wr})),n.d(e,"Tb",(function(){return Xr})),n.d(e,"Ub",(function(){return Gr})),n.d(e,"Vb",(function(){return qr})),n.d(e,"Wb",(function(){return $r})),n.d(e,"Xb",(function(){return Ur})),n.d(e,"Yb",(function(){return Kr})),n.d(e,"Zb",(function(){return gn})),n.d(e,"ac",(function(){return Po})),n.d(e,"bc",(function(){return et})),n.d(e,"cc",(function(){return Vr})),n.d(e,"dc",(function(){return Cl})),n.d(e,"ec",(function(){return Br})),n.d(e,"fc",(function(){return Qr})),n.d(e,"gc",(function(){return _l})),n.d(e,"hc",(function(){return Re})),n.d(e,"ic",(function(){return Te})),n.d(e,"jc",(function(){return io})),n.d(e,"kc",(function(){return Qa})),n.d(e,"lc",(function(){return Ja})),n.d(e,"mc",(function(){return oo})),n.d(e,"nc",(function(){return ro})),n.d(e,"oc",(function(){return zr})),n.d(e,"pc",(function(){return Ya})),n.d(e,"qc",(function(){return hl})),n.d(e,"rc",(function(){return Fr})),n.d(e,"sc",(function(){return Ye})),n.d(e,"tc",(function(){return Ze})),n.d(e,"uc",(function(){return re})),n.d(e,"vc",(function(){return hi})),n.d(e,"wc",(function(){return di})),n.d(e,"xc",(function(){return Ot})),n.d(e,"yc",(function(){return gl})),n.d(e,"zc",(function(){return dl})),n.d(e,"Ac",(function(){return fo})),n.d(e,"Bc",(function(){return Mr})),n.d(e,"Cc",(function(){return xl})),n.d(e,"Dc",(function(){return To})),n.d(e,"Ec",(function(){return Ro})),n.d(e,"Fc",(function(){return Ao})),n.d(e,"Gc",(function(){return Io})),n.d(e,"Hc",(function(){return No})),n.d(e,"Ic",(function(){return pl}));var i=n("XNiG"),s=n("quSY"),r=n("HDdC"),o=n("VRyK"),a=n("w1tV");function l(t){return{toString:t}.toString()}function c(t,e,n){return l(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const u=c("Inject",t=>({token:t})),h=c("Optional"),d=c("Self"),p=c("SkipSelf");var m=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function f(t){for(let e in t)if(t[e]===f)return e;throw Error("Could not find renamed property on target object.")}function g(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function _(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return v(t,t[x])||v(t,t[O])}function v(t,e){return e&&e.token===t?e:null}function w(t){return t&&(t.hasOwnProperty(C)||t.hasOwnProperty(k))?t[C]:null}const x=f({"\u0275prov":f}),C=f({"\u0275inj":f}),S=f({"\u0275provFallback":f}),O=f({ngInjectableDef:f}),k=f({ngInjectorDef:f});function E(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(E).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function j(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const T=f({__forward_ref__:f});function R(t){return t.__forward_ref__=R,t.toString=function(){return E(this())},t}function A(t){return I(t)?t():t}function I(t){return"function"==typeof t&&t.hasOwnProperty(T)&&t.__forward_ref__===R}const D="undefined"!=typeof globalThis&&globalThis,P="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,M="undefined"!=typeof global&&global,F=D||M||P||N,L=f({"\u0275cmp":f}),V=f({"\u0275dir":f}),B=f({"\u0275pipe":f}),z=f({"\u0275mod":f}),H=f({"\u0275loc":f}),U=f({"\u0275fac":f}),$=f({__NG_ELEMENT_ID__:f});class W{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const q=new W("INJECTOR",-1),G={},X=/\n/gm,K=f({provide:String,useValue:f});let Z,Y=void 0;function Q(t){const e=Y;return Y=t,e}function J(t){const e=Z;return Z=t,e}function tt(t,e=m.Default){if(void 0===Y)throw new Error("inject() must be called from an injection context");return null===Y?it(t,void 0,e):Y.get(t,e&m.Optional?null:void 0,e)}function et(t,e=m.Default){return(Z||tt)(A(t),e)}const nt=et;function it(t,e,n){const i=y(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&m.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${E(t)}]`)}function st(t){const e=[];for(let n=0;nArray.isArray(t)?lt(t,e):e(t))}function ct(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ut(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ht(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function pt(t,e){const n=mt(t,e);if(n>=0)return t[1|n]}function mt(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const ft=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),gt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),bt={},_t=[];let yt=0;function vt(t){return l(()=>{const e=t.type,n=e.prototype,i={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===ft.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||_t,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||gt.Emulated,id:"c",styles:t.styles||_t,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,o=t.features,a=t.pipes;return s.id+=yt++,s.inputs=kt(t.inputs,i),s.outputs=kt(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=r?()=>("function"==typeof r?r():r).map(wt):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(xt):null,s})}function wt(t){return Tt(t)||function(t){return t[V]||null}(t)}function xt(t){return function(t){return t[B]||null}(t)}const Ct={};function St(t){const e={type:t.type,bootstrap:t.bootstrap||_t,declarations:t.declarations||_t,imports:t.imports||_t,exports:t.exports||_t,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&l(()=>{Ct[t.id]=t.type}),e}function Ot(t,e){return l(()=>{const n=At(t,!0);n.declarations=e.declarations||_t,n.imports=e.imports||_t,n.exports=e.exports||_t})}function kt(t,e){if(null==t)return bt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const Et=vt;function jt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Tt(t){return t[L]||null}function Rt(t,e){return t.hasOwnProperty(U)?t[U]:null}function At(t,e){const n=t[z]||null;if(!n&&!0===e)throw new Error(`Type ${E(t)} does not have '\u0275mod' property.`);return n}function It(t){return Array.isArray(t)&&"object"==typeof t[1]}function Dt(t){return Array.isArray(t)&&!0===t[1]}function Pt(t){return 0!=(8&t.flags)}function Nt(t){return 2==(2&t.flags)}function Mt(t){return 1==(1&t.flags)}function Ft(t){return null!==t.template}function Lt(t){return 0!=(512&t[2])}let Vt=void 0;function Bt(t){Vt=t}function zt(){return void 0!==Vt?Vt:"undefined"!=typeof document?document:void 0}function Ht(t){return!!t.listen}const Ut={createRenderer:(t,e)=>zt()};function $t(t){for(;Array.isArray(t);)t=t[0];return t}function Wt(t,e){return $t(e[t+19])}function qt(t,e){return $t(e[t.index])}function Gt(t,e){return t.data[e+19]}function Xt(t,e){return t[e+19]}function Kt(t,e){const n=e[t];return It(n)?n:n[0]}function Zt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Yt(t){return 4==(4&t[2])}function Qt(t){return 128==(128&t[2])}function Jt(t,e){return null===t||null==e?null:t[e]}function te(t){t[18]=0}const ee={lFrame:xe(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ne(){return ee.bindingsEnabled}function ie(){return ee.lFrame.lView}function se(){return ee.lFrame.tView}function re(t){ee.lFrame.contextLView=t}function oe(){return ee.lFrame.previousOrParentTNode}function ae(t,e){ee.lFrame.previousOrParentTNode=t,ee.lFrame.isParent=e}function le(){return ee.lFrame.isParent}function ce(){ee.lFrame.isParent=!1}function ue(){return ee.checkNoChangesMode}function he(t){ee.checkNoChangesMode=t}function de(){const t=ee.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function pe(){return ee.lFrame.bindingIndex}function me(){return ee.lFrame.bindingIndex++}function fe(t){const e=ee.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ge(t,e){const n=ee.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function be(){return ee.lFrame.currentQueryIndex}function _e(t){ee.lFrame.currentQueryIndex=t}function ye(t,e){const n=we();ee.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function ve(t,e){const n=we(),i=t[1];ee.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function we(){const t=ee.lFrame,e=null===t?null:t.child;return null===e?xe(t):e}function xe(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ce(){const t=ee.lFrame;return ee.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Se=Ce;function Oe(){const t=Ce();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ke(){return ee.lFrame.selectedIndex}function Ee(t){ee.lFrame.selectedIndex=t}function je(){const t=ee.lFrame;return Gt(t.tView,t.selectedIndex)}function Te(){ee.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Re(){ee.lFrame.currentNamespace=null}function Ae(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(r>10>16&&(3&t[2])===e&&(t[2]+=1024,r.call(o)):r.call(o)}class Fe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Le(t,e,n){const i=Ht(t);let s=0;for(;se){o=r-1;break}}}for(;r>16}function qe(t,e){let n=We(t),i=e;for(;n>0;)i=i[15],n--;return i}function Ge(t){return"string"==typeof t?t:null==t?"":""+t}function Xe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ge(t)}const Ke=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Ze(t){return{name:"window",target:t.ownerDocument.defaultView}}function Ye(t){return{name:"body",target:t.ownerDocument.body}}function Qe(t){return t instanceof Function?t():t}let Je=!0;function tn(t){const e=Je;return Je=t,e}let en=0;function nn(t,e){const n=rn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,sn(i.data,t),sn(e,null),sn(i.blueprint,null));const s=on(t,e),r=t.injectorIndex;if(Ue(s)){const t=$e(s),n=qe(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function sn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function rn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function on(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function an(t,e,n){!function(t,e,n){let i="string"!=typeof n?n[$]:n.charCodeAt(0)||0;null==i&&(i=n[$]=en++);const s=255&i,r=1<0?255&e:e}(n);if("function"==typeof s){ye(e,t);try{const t=s();if(null!=t||i&m.Optional)return t;throw new Error(`No provider for ${Xe(n)}!`)}finally{Se()}}else if("number"==typeof s){if(-1===s)return new fn(t,e);let r=null,o=rn(t,e),a=-1,l=i&m.Host?e[16][6]:null;for((-1===o||i&m.SkipSelf)&&(a=-1===o?on(t,e):e[o+8],mn(i,!1)?(r=e[1],o=$e(a),e=qe(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(pn(s,o,t.data)){const t=un(o,e,n,r,i,l);if(t!==cn)return t}mn(i,e[1].data[o+8]===l)&&pn(s,o,e)?(r=t,o=$e(a),e=qe(a,e)):o=-1}}}if(i&m.Optional&&void 0===s&&(s=null),0==(i&(m.Self|m.Host))){const t=e[9],r=J(void 0);try{return t?t.get(n,s,i&m.Optional):it(n,s,i&m.Optional)}finally{J(r)}}if(i&m.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Xe(n)}]`)}const cn={};function un(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=hn(a,o,n,null==i?Nt(a)&&Je:i!=o&&3===a.type,s&m.Host&&r===a);return null!==l?dn(e,o,l,a):cn}function hn(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=65535&r,l=t.directiveStart,c=r>>16,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&&Ft(t)&&t.type===n)return l}return null}function dn(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof Fe){const o=s;if(o.resolving)throw new Error(`Circular dep for ${Xe(r[n])}`);const a=tn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=J(o.injectImpl)),ye(t,i);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{onChanges:i,onInit:s,doCheck:r}=e;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&J(l),tn(a),o.resolving=!1,Se()}}return s}function pn(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<{const e=Object.getPrototypeOf(t.prototype).constructor,n=e[U]||function t(e){const n=e;if(I(e))return()=>{const e=t(A(n));return e?e():null};let i=Rt(n);if(null===i){const t=w(n);i=t&&t.factory}return i||null}(e);return null!==n?n:t=>new t})}function bn(t){return t.ngDebugContext}function _n(t){return t.ngOriginalError}function yn(t,...e){t.error(...e)}class vn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||yn}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?bn(t)?bn(t):this._findContext(_n(t)):null}_findOriginalError(t){let e=_n(t);for(;e&&_n(e);)e=_n(e);return e}}class wn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class xn extends wn{getTypeName(){return"HTML"}}class Cn extends wn{getTypeName(){return"Style"}}class Sn extends wn{getTypeName(){return"Script"}}class On extends wn{getTypeName(){return"URL"}}class kn extends wn{getTypeName(){return"ResourceURL"}}function En(t){return t instanceof wn?t.changingThisBreaksApplicationSecurity:t}function jn(t,e){const n=Tn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Tn(t){return t instanceof wn&&t.getTypeName()||null}function Rn(t){return new xn(t)}function An(t){return new Cn(t)}function In(t){return new Sn(t)}function Dn(t){return new On(t)}function Pn(t){return new kn(t)}let Nn=!0,Mn=!1;function Fn(){return Mn=!0,Nn}function Ln(){if(Mn)throw new Error("Cannot enable prod mode after platform setup.");Nn=!1}class Vn{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t=""+t+"";try{t=encodeURI(t)}catch(i){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t=""+t+"";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Hn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ii(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kn.hasOwnProperty(e)&&!Wn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ii(t))}checkClobberedElement(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}}const ei=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ni=/([^\#-~ |!])/g;function ii(t){return t.replace(/&/g,"&").replace(ei,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(ni,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let si;function ri(t,e){let n=null;try{si=si||new Vn(t);let i=e?String(e):"";n=si.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=si.getInertBodyElement(i)}while(i!==r);const o=new ti,a=o.sanitizeChildren(oi(n)||n);return Fn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=oi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function oi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const ai=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),li=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ci=/^url\(([^)]+)\)$/;function ui(t){if(!(t=String(t).trim()))return"";const e=t.match(ci);return e&&Hn(e[1])===e[1]||t.match(li)&&function(t){let e=!0,n=!0;for(let i=0;ir?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==bi(e,c,0)||2&i&&c!==t){if(wi(i))return!1;o=!0}}}}else{if(!o&&!wi(i)&&!wi(l))return!1;if(o&&wi(l))continue;o=!1,i=l|1&i}}return wi(i)||o}function wi(t){return 0==(1&t)}function xi(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||wi(o)||(e+=Oi(r,s),s=""),i=o,r=r||!wi(i);n++}return""!==s&&(e+=Oi(r,s)),e}const Ei={};function ji(t){const e=t[3];return Dt(e)?e[3]:e}function Ti(t){Ri(se(),ie(),ke()+t,ue())}function Ri(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ie(e,i,n)}else{const i=t.preOrderHooks;null!==i&&De(e,i,0,n)}Ee(n)}function Ai(t,e){return t<<17|e<<2}function Ii(t){return t>>17&32767}function Di(t){return 2|t}function Pi(t){return(131068&t)>>2}function Ni(t,e){return-131069&t|e<<2}function Mi(t){return 1|t}function Fi(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i>1==-1){for(let t=9;t19&&Ri(t,e,0,ue()),n(i,s)}finally{Ee(r)}}function Wi(t,e,n){if(Pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;sPromise.resolve(null))();function ws(t){return t[7]||(t[7]=[])}function xs(t){return t.cleanup||(t.cleanup=[])}function Cs(t,e){return function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[t.index])[11]}function Ss(t,e){const n=t[9],i=n?n.get(vn,null):null;i&&i.handleError(e)}function Os(t,e,n,i,s){for(let r=0;r0&&(t[n-1][4]=i[4]);const r=ut(t,9+e);Rs(i[1],i,!1,null);const o=r[5];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Ds(t,e){if(!(256&e[2])){const n=e[11];Ht(n)&&n.destroyNode&&Ws(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ns(t[1],t);for(;e;){let n=null;if(It(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)It(e)&&Ns(e[1],e),e=Ps(e,t);null===e&&(e=t),It(e)&&Ns(e[1],e),n=e&&e[4]}e=n}}(e)}}function Ps(t,e){let n;return It(t)&&(n=t[6])&&2===n.type?Es(n,t):t[3]===e?null:t[3]}function Ns(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Ht(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Dt(e[3])){i!==e[3]&&As(i,e);const n=e[5];null!==n&&n.detachView(t)}}}function Ms(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?js(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return qt(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==gt.ShadowDom&&n!==gt.Native)return null}return qt(i,n)}function Fs(t,e,n,i){Ht(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Ls(t,e,n){Ht(t)?t.appendChild(e,n):e.appendChild(n)}function Vs(t,e,n,i){null!==i?Fs(t,e,n,i):Ls(t,e,n)}function Bs(t,e){return Ht(t)?t.parentNode(e):e.parentNode}function zs(t,e){if(2===t.type){const n=Es(t,e);return null===n?null:Us(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?qt(t,e):null}function Hs(t,e,n,i){const s=Ms(t,i,e);if(null!=s){const t=e[11],r=zs(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ds(this._lView[1],this._lView)}onDestroy(t){var e,n,i;e=this._lView[1],i=t,ws(n=this._lView).push(i),e.firstCreatePass&&xs(e).push(n[7].length-1,null)}markForCheck(){gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){bs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){he(!0);try{bs(t,e,n)}finally{he(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ws(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Zs extends Ks{constructor(t){super(t),this._view=t}detectChanges(){_s(this._view)}checkNoChanges(){!function(t){he(!0);try{_s(t)}finally{he(!1)}}(this._view)}get context(){return null}}let Ys,Qs,Js;function tr(t,e,n){return Ys||(Ys=class extends t{}),new Ys(qt(e,n))}function er(t,e,n,i){return Qs||(Qs=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Vi(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[5];null!==i&&(n[5]=i.createEmbeddedView(e)),zi(e,n,t);const s=new Ks(n);return s._tViewNode=n[6],s}}),0===n.type?new Qs(i,n,tr(e,n,i)):null}function nr(t,e,n,i){let s;Js||(Js=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return tr(e,this._hostTNode,this._hostView)}get injector(){return new fn(this._hostTNode,this._hostView)}get parentInjector(){const t=on(this._hostTNode,this._hostView),e=qe(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=We(t),s=e,r=e[6];for(;i>1;)s=s[15],r=s[6],i--;return r}(t,this._hostView,this._hostTNode);return Ue(t)&&null!=n?new fn(n,e):new fn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(ot,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Js(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,i){const s=9+i,r=n.length;i>0&&(n[s-1][4]=e),i{class t{}return t.__NG_ELEMENT_ID__=()=>rr(),t})();const rr=ir,or=new W("Set Injector scope."),ar={},lr={},cr=[];let ur=void 0;function hr(){return void 0===ur&&(ur=new rt),ur}function dr(t,e=null,n=null,i){return new pr(t,n,e||hr(),i)}class pr{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&<(e,n=>this.processProvider(n,t,e)),lt([t],t=>this.processInjectorType(t,[],s)),this.records.set(q,gr(void 0,this));const r=this.records.get(or);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:E(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=G,n=m.Default){this.assertNotDestroyed();const i=Q(this);try{if(!(n&m.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof W)&&y(t);e=n&&this.injectableDefInScope(n)?gr(mr(t),ar):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&m.Self?hr():this.parent).get(t,e=n&m.Optional&&e===G?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(E(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=E(e);if(Array.isArray(e))s=e.map(E).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):E(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(X,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Q(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(E(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=A(t)))return!1;let i=w(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=w(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{lt(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||cr))}}this.injectorDefTypes.add(r),this.records.set(r,gr(i.factory,ar));const a=i.providers;if(null!=a&&!o){const e=t;lt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=_r(t=A(t))?t:A(t&&t.provide);const s=function(t,e,n){return br(t)?gr(void 0,t.useValue):gr(fr(t,e,n),ar)}(t,e,n);if(_r(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&gi()}else{let e=this.records.get(i);e?void 0===e.multi&&gi():(e=gr(void 0,ar,!0),e.factory=()=>st(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===lr?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(E(t)):e.value===ar&&(e.value=lr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function mr(t){const e=y(t),n=null!==e?e.factory:Rt(t);if(null!==n)return n;const i=w(t);if(null!==i)return i.factory;if(t instanceof W)throw new Error(`Token ${E(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ht(e,"?");throw new Error(`Can't resolve all parameters for ${E(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[x]||t[O]||t[S]&&t[S]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function fr(t,e,n){let i=void 0;if(_r(t)){const e=A(t);return Rt(e)||mr(e)}if(br(t))i=()=>A(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...st(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>et(A(t.useExisting));else{const s=A(t&&(t.useClass||t.provide));if(s||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${E(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Rt(s)||mr(s);i=()=>new s(...st(t.deps))}var s;return i}function gr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function br(t){return null!==t&&"object"==typeof t&&K in t}function _r(t){return"function"==typeof t}const yr=function(t,e,n){return function(t,e=null,n=null,i){const s=dr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let vr=(()=>{class t{static create(t,e){return Array.isArray(t)?yr(t,e,""):yr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=G,t.NULL=new rt,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>et(q)}),t.__NG_ELEMENT_ID__=-1,t})();const wr=new W("AnalyzeForEntryComponents");let xr=new Map;const Cr=new Set;function Sr(t){return"string"==typeof t?t:t.text()}function Or(t,e){let n=t.styles,i=t.classes,s=0;for(let r=0;ra($t(t[i.index])).target:i.index;if(Ht(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=no(i,e,r,!1);const t=n.listen(p.name||m,s,r);u.push(r,t),c&&c.push(s,g,f,f+1)}}else r=no(i,e,r,!0),m.addEventListener(s,r,o),u.push(r),c&&c.push(s,g,f,o)}const d=i.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,ee.lFrame.contextLView))[8]}(t)}function so(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const uo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ho(t){return t.substring(uo.key,uo.keyEnd)}function po(t,e){const n=uo.textEnd;return n===e?-1:(e=uo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,uo.key=e,n),mo(t,e,n))}function mo(t,e,n){for(;e=0;n=po(e,n))dt(t,ho(e),!0)}function yo(t,e,n,i){const s=ie(),r=se(),o=fe(2);if(r.firstUpdatePass&&xo(r,t,o,i),e!==Ei&&Dr(s,o,e)){let a;null==n&&(a=function(){const t=ee.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),Oo(r,r.data[ke()+19],s,s[11],t,s[o+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=E(En(t)))),t}(e,n),i,o)}}function vo(t,e,n,i){const s=se(),r=fe(2);s.firstUpdatePass&&xo(s,null,r,i);const o=ie();if(n!==Ei&&Dr(o,r,n)){const a=s.data[ke()+19];if(jo(a,i)&&!wo(s,r)){let t=i?a.classes:a.styles;null!==t&&(n=j(t,n||"")),Hr(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===Ei&&(s=ao);let l=0,c=0,u=0=t.expandoStartIndex}function xo(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[ke()+19],o=wo(t,n);jo(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=function(t){const e=ee.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=So(n=Co(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Co(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Pi(i))return t[Ii(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Co(null,t,e,n[1],i),n=So(n,e.attrs,i),function(t,e,n,i){t[Ii(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Ii(t[a+1]);t[i+1]=Ai(e,a),0!==e&&(t[e+1]=Ni(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ai(a,0),0!==a&&(t[a+1]=Ni(t[a+1],i)),a=i;else t[i+1]=Ai(l,0),0===a?a=i:t[l+1]=Ni(t[l+1],i),l=i;u&&(t[i+1]=Di(t[i+1])),lo(t,c,i,!0),lo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&mt(r,e)>=0&&(n[i+1]=Mi(n[i+1]))}(e,c,t,i,r),o=Ai(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Co(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===Ei&&(u=c?ao:void 0);let h=c?pt(u,i):l===i?u:void 0;if(r&&!Eo(h)&&(h=pt(e,i)),Eo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Ii(d):Pi(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=pt(t,i))}return a}function Eo(t){return void 0!==t}function jo(t,e){return 0!=(t.flags&(e?16:32))}function To(t,e=""){const n=ie(),i=se(),s=t+19,r=i.firstCreatePass?Bi(i,n[6],t,3,null,null):i.data[s],o=n[s]=function(t,e){return Ht(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Hs(i,n,o,r),ae(r,!1)}function Ro(t){return Ao("",t,""),Ro}function Ao(t,e,n){const i=ie(),s=Nr(i,t,e,n);return s!==Ei&&ks(i,ke(),s),Ao}function Io(t,e,n,i,s,r,o){const a=ie(),l=function(t,e,n,i,s,r,o,a){const l=function(t,e,n,i,s){const r=function(t,e,n,i){const s=Dr(t,e,n);return Dr(t,e+1,i)||s}(t,e,n,i);return Dr(t,e+2,s)||r}(t,pe(),n,s,o);return fe(3),l?e+Ge(n)+i+Ge(s)+r+Ge(o)+a:Ei}(a,t,e,n,i,s,r,o);return l!==Ei&&ks(a,ke(),l),Io}function Do(t,e,n){vo(dt,_o,Nr(ie(),t,e,n),!0)}function Po(t,e,n){const i=ie();return Dr(i,me(),e)&&Qi(se(),je(),i,t,e,i[11],n,!0),Po}function No(t,e,n){const i=ie();if(Dr(i,me(),e)){const s=se(),r=je();Qi(s,r,i,t,e,Cs(r,i),n,!0)}return No}function Mo(t,e){const n=Zt(t)[1],i=n.data.length-1;Ae(n,{directiveStart:i,directiveEnd:i+1})}function Fo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Ft(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Lo(t.inputs),e.declaredInputs=Lo(t.declaredInputs),e.outputs=Lo(t.outputs);const n=s.hostBindings;n&&zo(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Vo(t,r),o&&Bo(t,o),g(t.inputs,s.inputs),g(t.declaredInputs,s.declaredInputs),g(t.outputs,s.outputs),Ft(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=ze(s.hostAttrs,n=ze(n,s.hostAttrs))}}(i)}function Lo(t){return t===bt?{}:t===_t?[]:t}function Vo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Bo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function zo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}class Ho{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Uo(t){t.type.prototype.ngOnChanges&&(t.setInput=$o,t.onChanges=function(){const t=Wo(this),e=t&&t.current;if(e){const n=t.previous;if(n===bt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function $o(t,e,n,i){const s=Wo(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:bt,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Ho(l&&l.currentValue,e,o===bt),t[i]=e}function Wo(t){return t.__ngSimpleChanges__||null}function qo(t,e,n,i,s){if(t=A(t),Array.isArray(t))for(let r=0;r>16;if(_r(t)||!t.multi){const i=new Fe(l,s,Lr),p=Ko(a,e,s?u:u+d,h);-1===p?(an(nn(c,o),r,a),Go(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ko(a,e,u+d,h),m=Ko(a,e,u,u+d),f=p>=0&&n[p],g=m>=0&&n[m];if(s&&!g||!s&&!f){an(nn(c,o),r,a);const u=function(t,e,n,i,s){const r=new Fe(t,n,Lr);return r.multi=[],r.index=e,r.componentProviders=0,Xo(r,s,i&&!n),r}(s?Yo:Zo,n.length,s,i,l);!s&&g&&(n[m].providerFactory=u),Go(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(u),o.push(u)}else Go(r,t,p>-1?p:m),Xo(n[s?m:p],l,!s&&i);!s&&i&&g&&n[m].componentProviders++}}}function Go(t,e,n){if(_r(e)||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;i&&(t.destroyHooks||(t.destroyHooks=[])).push(n,i)}}function Xo(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Ko(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=se();if(i.firstCreatePass){const s=Ft(t);qo(n,i.data,i.blueprint,s,!0),qo(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}Uo.ngInherit=!0;class ta{}class ea{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${E(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let na=(()=>{class t{}return t.NULL=new ea,t})(),ia=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>sa(t),t})();const sa=function(t){return tr(t,oe(),ie())};class ra{}const oa=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>la(),t})();const la=function(){const t=ie(),e=Kt(oe().index,t);return function(t){const e=t[11];if(Ht(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(It(e)?e:t)};let ca=(()=>{class t{}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null}),t})();class ua{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ha=new ua("9.1.0");class da{constructor(){}supports(t){return Rr(t)}create(t){return new ma(t)}}const pa=(t,e)=>e;class ma{constructor(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||pa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<_a(n,i,s)?e:n,o=_a(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n{i=this._trackByFn(e,t),null!==s&&jr(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),jr(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(jr(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(jr(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new fa(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ba),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ba),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class fa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ga{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&jr(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ba{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new ga,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _a(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new wa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){jr(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class wa{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let xa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new h]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t([new da])}),t})(),Ca=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new h]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t([new ya])}),t})();const Sa=[new ya],Oa=new xa([new da]),ka=new Ca(Sa);let Ea=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ja(t,ia),t})();const ja=function(t,e){return er(t,e,oe(),ie())};let Ta=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ra(t,ia),t})();const Ra=function(t,e){return nr(t,e,oe(),ie())},Aa={};class Ia extends na{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Tt(t);return new Na(e,this.ngModule)}}function Da(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Pa=new W("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ke});class Na extends ta{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ki).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Da(this.componentDef.inputs)}get outputs(){return Da(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Aa,s);return r!==Aa||i===Aa?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(ra,Ut),o=s.get(ca,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ht(t))return t.selectRootElement(e,n===gt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Li(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:Ke,clean:vs,playerHandler:null,flags:0},p=Ki(0,-1,null,1,0,null,null,null,null,null),m=Vi(null,p,d,u,null,null,r,a,o,s);let f,g;ve(m,null);try{const t=function(t,e,n,i,s,r){const o=n[1];n[19]=t;const a=Bi(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Or(a,l),null!==t&&(Le(s,t,l),null!==a.classes&&Xs(s,t,a.classes),null!==a.styles&&Gs(s,t,a.styles)));const c=i.createRenderer(t,e),u=Vi(n,Xi(e),null,e.onPush?64:16,n[19],a,i,c,void 0);return o.firstCreatePass&&(an(nn(a,n),o,e.type),ss(o,a),os(a,n.length,1)),fs(n,u),n[19]=u}(c,this.componentDef,m,r,a);if(c)if(n)Le(a,c,["ng-version",ha.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&Xs(a,c,e.join(" "))}g=Gt(m[1],0),e&&(g.projection=e.map(t=>Array.from(t))),f=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=oe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),is(t,i,1),as(t,e,n));const s=dn(e,t,e.length-1,i);mi(s,e);const r=qt(i,e);return r&&mi(r,e),s}(r,n,e);i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=oe();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Ee(a.index-19);const t=n[1];ts(t,e),es(t,n,e.hostVars),ns(e,o)}return o}(t,this.componentDef,m,d,[Mo]),zi(p,m,null)}finally{Oe()}const b=new Ma(this.componentType,f,tr(ia,g,m),m,g);return n&&!h||(b.hostView._tViewNode.child=g),b}}class Ma extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Zs(i),this.hostView._tViewNode=function(t,e,n,i){let s=t.node;return null==s&&(t.node=s=Zi(0,null,2,-1,null,null)),i[6]=s}(i[1],0,0,i),this.componentType=t}get injector(){return new fn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Fa=void 0;var La=["en",[["a","p"],["AM","PM"],Fa],[["AM","PM"],Fa,Fa],[["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"]],Fa,[["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"]],Fa,[["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}",Fa,"{1} 'at' {0}",Fa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Va={};function Ba(t,e,n){"string"!=typeof e&&(n=e,e=t[Wa.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Va[e]=t,n&&(Va[e][Wa.ExtraData]=n)}function za(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=$a(e);if(n)return n;const i=e.split("-")[0];if(n=$a(i),n)return n;if("en"===i)return La;throw new Error(`Missing locale data for the locale "${t}".`)}function Ha(t){return za(t)[Wa.CurrencyCode]||null}function Ua(t){return za(t)[Wa.PluralCase]}function $a(t){return t in Va||(Va[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),Va[t]}const Wa=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let qa="en-US";function Ga(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(qa=t.toLowerCase().replace(/_/g,"-"))}const Xa=new Map;class Ka extends ot{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ia(this);const n=At(t),i=t[H]||null;i&&Ga(i),this._bootstrapComponents=Qe(n.bootstrap),this._r3Injector=dr(t,e,[{provide:ot,useValue:this},{provide:na,useValue:this.componentFactoryResolver}],E(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=vr.THROW_IF_NOT_FOUND,n=m.Default){return t===vr||t===ot||t===q?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Za extends at{constructor(t){super(),this.moduleType=t,null!==At(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${E(e)} vs ${E(e.name)}`)})(t,Xa.get(t),e),Xa.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Ka(this.moduleType,t)}}function Ya(t,e,n){const i=de()+t,s=ie();return s[i]===Ei?Ir(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function Qa(t,e){const n=se();let i;const s=t+19;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=Rt(i.type)),o=J(Lr),a=r();return J(o),function(t,e,n,i){const s=n+19;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=i}(n,ie(),t,a),a}function Ja(t,e,n){const i=ie(),s=Xt(i,t);return function(t,e){return Tr.isWrapped(e)&&(e=Tr.unwrap(e),t[pe()]=Ei),e}(i,function(t,e){return t[1].data[e+19].pure}(i,t)?function(t,e,n,i,s,r){const o=e+n;return Dr(t,o,s)?Ir(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===Ei?void 0:n}(t,o+1)}(i,de(),e,s.transform,n,s):s.transform(n))}class tl extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,r=t=>null,o=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,r,o);return t instanceof s.a&&t.add(a),a}}function el(){return this._results[Er()]()}class nl{constructor(){this.dirty=!0,this._results=[],this.changes=new tl,this.length=0;const t=Er(),e=nl.prototype;e[t]||(e[t]=el)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i0)s.push(a[e/2]);else{const r=o[e+1],a=n[-i];for(let e=9;e{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(et(Sl,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const kl=new W("AppId"),El={provide:kl,useFactory:function(){return`${jl()}${jl()}${jl()}`},deps:[]};function jl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Tl=new W("Platform Initializer"),Rl=new W("Platform ID"),Al=new W("appBootstrapListener");let Il=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const Dl=new W("LocaleId"),Pl=new W("DefaultCurrencyCode");class Nl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ml=function(t){return new Za(t)},Fl=Ml,Ll=function(t){return Promise.resolve(Ml(t))},Vl=function(t){const e=Ml(t),n=Qe(At(t).declarations).reduce((t,e)=>{const n=Tt(e);return n&&t.push(new Na(n)),t},[]);return new Nl(e,n)},Bl=Vl,zl=function(t){return Promise.resolve(Vl(t))};let Hl=(()=>{class t{constructor(){this.compileModuleSync=Fl,this.compileModuleAsync=Ll,this.compileModuleAndAllComponentsSync=Bl,this.compileModuleAndAllComponentsAsync=zl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const Ul=new W("compilerOptions"),$l=(()=>Promise.resolve(0))();function Wl(t){"undefined"==typeof Zone?$l.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ql{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tl(!1),this.onMicrotaskEmpty=new tl(!1),this.onStable=new tl(!1),this.onError=new tl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.lastRequestAnimationFrameId=-1,Zl(t),Kl(t)}),Zl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return Yl(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Ql(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return Yl(t),e.invoke(i,s,r,o,a)}finally{Ql(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Zl(t),Kl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ql.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ql.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Xl,Gl,Gl);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Gl(){}const Xl={};function Kl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Zl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Yl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ql(t){t._nesting--,Kl(t)}class Jl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tl,this.onMicrotaskEmpty=new tl,this.onStable=new tl,this.onError=new tl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let tc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ql.assertNotInAngularZone(),Wl(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Wl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(et(ql))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})(),ec=(()=>{class t{constructor(){this._applications=new Map,rc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return rc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();class nc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function ic(t){rc=t}let sc,rc=new nc,oc=function(t,e,n){const i=t.get(Ul,[]).concat(e),s=new Za(n);if(0===xr.size)return Promise.resolve(s);const r=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(i.map(t=>t.providers));if(0===r.length)return Promise.resolve(s);const o=function(){const t=F.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=vr.create({providers:r}).get(o.ResourceLoader);return function(t){const e=[],n=new Map;function i(t){let e=n.get(t);if(!e){const i=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=i.then(Sr))}return e}return xr.forEach((t,n)=>{const s=[];t.templateUrl&&s.push(i(t.templateUrl).then(e=>{t.template=e}));const r=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;r&&r.forEach((e,n)=>{o.push(""),s.push(i(e).then(i=>{o[a+n]=i,r.splice(r.indexOf(e),1),0==r.length&&(t.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>function(t){Cr.delete(t)}(n));e.push(l)}),xr=new Map,Promise.all(e).then(()=>{})}().then(()=>s)};const ac=new W("AllowMultipleToken");class lc{constructor(t,e){this.name=t,this.token=e}}function cc(t,e,n=[]){const i=`Platform: ${e}`,s=new W(i);return(e=[])=>{let r=uc();if(!r||r.injector.get(ac,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:or,useValue:"platform"});!function(t){if(sc&&!sc.destroyed&&!sc.injector.get(ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");sc=t.get(hc);const e=t.get(Tl,null);e&&e.forEach(t=>t())}(vr.create({providers:t,name:i}))}return function(t){const e=uc();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}(s)}}function uc(){return sc&&!sc.destroyed?sc:null}let hc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Jl:("zone.js"===t?void 0:t)||new ql({enableLongStackTrace:Fn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:ql,useValue:n}];return n.run(()=>{const e=vr.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(vn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>mc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Zr(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(Ol);return t.runInitializers(),t.donePromise.then(()=>(Ga(s.injector.get(Dl,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=dc({},e);return oc(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(pc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${E(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)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(et(vr))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function dc(t,e){return Array.isArray(e)?e.reduce(dc,t):Object.assign(Object.assign({},t),e)}let pc=(()=>{class t{constructor(t,e,n,i,s,l){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Fn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new r.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new r.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{ql.assertNotInAngularZone(),Wl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ql.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,u.pipe(Object(a.a)()))}bootstrap(t,e){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.");let n;n=t instanceof ta?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ot),s=n.create(vr.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(tc,null);return r&&s.injector.get(ec).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Fn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;mc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Al,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),mc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(et(ql),et(Il),et(vr),et(vn),et(na),et(Ol))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function mc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class fc{}class gc{}const bc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let _c=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||bc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>yc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>yc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(et(Hl),et(gc,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function yc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class vc extends sr{}class wc extends vc{}const xc=function(t){return null},Cc=cc(null,"core",[{provide:Rl,useValue:"unknown"},{provide:hc,deps:[vr]},{provide:ec,deps:[]},{provide:Il,deps:[]}]),Sc=[{provide:pc,useClass:pc,deps:[ql,Il,vr,vn,na,Ol]},{provide:Pa,deps:[ql],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ol,useClass:Ol,deps:[[new h,Sl]]},{provide:Hl,useClass:Hl,deps:[]},El,{provide:xa,useFactory:function(){return Oa},deps:[]},{provide:Ca,useFactory:function(){return ka},deps:[]},{provide:Dl,useFactory:function(t){return Ga(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new u(Dl),new h,new p]]},{provide:Pl,useValue:"USD"}];let Oc=(()=>{class t{constructor(t){}}return t.\u0275mod=St({type:t}),t.\u0275inj=_({factory:function(e){return new(e||t)(et(pc))},providers:Sc}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("2fFW"),s=n("NJ4a");const r={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},itXk:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("z+Ro"),s=n("DH7j"),r=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const l={};function c(...t){let e=null,n=null;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends r.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{const i=new s.a;let r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return k})),n.d(e,"d",(function(){return M})),n.d(e,"e",(function(){return w}));var i=n("ofXK"),s=n("fXoL");class r extends i.v{constructor(){super()}supportsDOMEvents(){return!0}}class o extends r{static makeCurrent(){Object(i.z)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(i.y)(document.cookie,t)}}let a,l=null;const c=new s.s("TRANSITION_ID"),u=[{provide:s.d,useFactory:function(t,e,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=Object(i.x)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,i.d,s.t],multi:!0}];class h{static init(){Object(s.ab)(new h)}addToWindow(t){s.sb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.sb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.sb.getAllAngularRootElements=()=>t.getAllRootElements(),s.sb.frameworkStabilizers||(s.sb.frameworkStabilizers=[]),s.sb.frameworkStabilizers.push(t=>{const e=s.sb.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(r)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Object(i.x)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.s("EventManagerPlugins");let p=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends f{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(i.x)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_=/%COMP%/g;function y(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new x(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.R.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case s.R.Native:case s.R.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.bc(p),s.bc(g),s.bc(s.c))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();class x{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=b[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=b[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&s.I.DashCase?t.style.setProperty(e,n,i&s.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))}}class C extends x{constructor(t,e,n,i){super(t),this.component=n;const s=y(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(_,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(_,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class S extends x{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===s.R.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=y(i.id,i.styles,[]);for(let s=0;s{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],j={"\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"},T={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"},R={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let A=(()=>{class t extends m{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.x)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(E.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&T.hasOwnProperty(e)&&(e=T[e]))}return j[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(i=>{i!=n&&(0,R[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Nb)({factory:function(){return Object(s.bc)(P)},token:t,providedIn:"root"}),t})();function D(t){return new P(t.get(i.d))}let P=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.K.NONE:return e;case s.K.HTML:return Object(s.hb)(e,"HTML")?Object(s.Ab)(e):Object(s.eb)(this._doc,String(e));case s.K.STYLE:return Object(s.hb)(e,"Style")?Object(s.Ab)(e):Object(s.fb)(e);case s.K.SCRIPT:if(Object(s.hb)(e,"Script"))return Object(s.Ab)(e);throw new Error("unsafe value used in a script context");case s.K.URL:return Object(s.rb)(e),Object(s.hb)(e,"URL")?Object(s.Ab)(e):Object(s.gb)(String(e));case s.K.RESOURCE_URL:if(Object(s.hb)(e,"ResourceURL"))return Object(s.Ab)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(s.ib)(t)}bypassSecurityTrustStyle(t){return Object(s.lb)(t)}bypassSecurityTrustScript(t){return Object(s.kb)(t)}bypassSecurityTrustUrl(t){return Object(s.mb)(t)}bypassSecurityTrustResourceUrl(t){return Object(s.jb)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return D(Object(s.bc)(s.q))},token:t,providedIn:"root"}),t})();const N=[{provide:s.D,useValue:i.w},{provide:s.E,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(s.yb)(document),document},deps:[]}],M=Object(s.T)(s.Z,"browser",N),F=[[],{provide:s.cb,useValue:"root"},{provide:s.o,useFactory:function(){return new s.o},deps:[]},{provide:d,useClass:O,multi:!0,deps:[i.d,s.B,s.D]},{provide:d,useClass:A,multi:!0,deps:[i.d]},[],{provide:w,useClass:w,deps:[p,g,s.c]},{provide:s.H,useExisting:w},{provide:f,useExisting:g},{provide:g,useClass:g,deps:[i.d]},{provide:s.O,useClass:s.O,deps:[s.B]},{provide:p,useClass:p,deps:[d,s.B]},[]];let L=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.c,useValue:e.appId},{provide:c,useExisting:s.c},u]}}}return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)(s.bc(t,12))},providers:F,imports:[i.c,s.f]}),t})();"undefined"!=typeof window&&window},jtHE:function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var i=n("XNiG"),s=n("3N8a");class r extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("IjjT");class a extends o.a{}const l=new a(r);var c=n("quSY"),u=n("7o/Q"),h=n("EY2u"),d=n("LRne"),p=n("z6cu");let m=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(d.a)(this.value);case"E":return Object(p.a)(this.error);case"C":return Object(h.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class f extends u.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(f.dispatch,this.delay,new g(t,this.destination)))}_next(t){this.scheduleMessage(m.createNext(t))}_error(t){this.scheduleMessage(m.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(m.createComplete()),this.unsubscribe()}}class g{constructor(t,e){this.notification=t,this.destination=e}}var b=n("9ppp"),_=n("Ylt2");class y extends i.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new v(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new b.a;if(this.isStopped||this.hasError?r=c.a.EMPTY:(this.observers.push(t),r=new _.a(this,t)),i&&t.add(t=new f(t,i)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class v{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kmnG:function(t,e,n){"use strict";n.d(e,"a",(function(){return Z})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return Y})),n.d(e,"d",(function(){return L})),n.d(e,"e",(function(){return Q})),n.d(e,"f",(function(){return z})),n.d(e,"g",(function(){return H}));var i=n("ofXK"),s=n("fXoL"),r=n("GU7r"),o=n("8LU1"),a=n("FKr1"),l=n("XNiG"),c=n("VRyK"),u=n("xgIS"),h=n("JX91"),d=n("1G5W"),p=n("IzEk"),m=n("R0Ic"),f=n("R1ws"),g=n("cH1L"),b=n("nLfN");const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function x(t,e){1&t&&(s.Vb(0),s.Xb(1,"div",14),s.Sb(2,"div",15),s.Sb(3,"div",16),s.Sb(4,"div",17),s.Wb(),s.Xb(5,"div",18),s.Sb(6,"div",15),s.Sb(7,"div",16),s.Sb(8,"div",17),s.Wb(),s.Ub())}function C(t,e){1&t&&(s.Xb(0,"div",19),s.mc(1,1),s.Wb())}function S(t,e){if(1&t&&(s.Vb(0),s.mc(1,2),s.Xb(2,"span"),s.Dc(3),s.Wb(),s.Ub()),2&t){const t=s.jc(2);s.Eb(3),s.Ec(t._control.placeholder)}}function O(t,e){1&t&&s.mc(0,3,["*ngSwitchCase","true"])}function k(t,e){1&t&&(s.Xb(0,"span",23),s.Dc(1," *"),s.Wb())}function E(t,e){if(1&t){const t=s.Yb();s.Xb(0,"label",20,21),s.fc("cdkObserveContent",(function(){return s.uc(t),s.jc().updateOutlineGap()})),s.Bc(2,S,4,1,"ng-container",12),s.Bc(3,O,1,0,void 0,12),s.Bc(4,k,2,0,"span",22),s.Wb()}if(2&t){const t=s.jc();s.Ib("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.oc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.Fb("for",t._control.id)("aria-owns",t._control.id),s.Eb(2),s.oc("ngSwitchCase",!1),s.Eb(1),s.oc("ngSwitchCase",!0),s.Eb(1),s.oc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function j(t,e){1&t&&(s.Xb(0,"div",24),s.mc(1,4),s.Wb())}function T(t,e){if(1&t&&(s.Xb(0,"div",25,26),s.Sb(2,"span",27),s.Wb()),2&t){const t=s.jc();s.Eb(2),s.Ib("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function R(t,e){if(1&t&&(s.Xb(0,"div"),s.mc(1,5),s.Wb()),2&t){const t=s.jc();s.oc("@transitionMessages",t._subscriptAnimationState)}}function A(t,e){if(1&t&&(s.Xb(0,"div",31),s.Dc(1),s.Wb()),2&t){const t=s.jc(2);s.oc("id",t._hintLabelId),s.Eb(1),s.Ec(t.hintLabel)}}function I(t,e){if(1&t&&(s.Xb(0,"div",28),s.Bc(1,A,2,2,"div",29),s.mc(2,6),s.Sb(3,"div",30),s.mc(4,7),s.Wb()),2&t){const t=s.jc();s.oc("@transitionMessages",t._subscriptAnimationState),s.Eb(1),s.oc("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],P=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0,M=(()=>{class t{constructor(){this.id=`mat-error-${N++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.Fb("id",e.id)},inputs:{id:"id"}}),t})();const F={transitionMessages:Object(m.m)("transitionMessages",[Object(m.j)("enter",Object(m.k)({opacity:1,transform:"translateY(0%)"})),Object(m.l)("void => enter",[Object(m.k)({opacity:0,transform:"translateY(-100%)"}),Object(m.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t}),t})();function V(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let B=0,z=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${B++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.Fb("id",e.id)("align",null),s.Ib("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["mat-label"]]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["mat-placeholder"]]}),t})(),$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["","matPrefix",""]]}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["","matSuffix",""]]}),t})(),q=0;class G{constructor(t){this._elementRef=t}}const X=Object(a.r)(G,"primary"),K=new s.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Z=new s.s("MatFormField");let Y=(()=>{class t extends X{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${q++}`,this._labelId=`mat-form-field-label-${q++}`,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(o.c)(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Object(h.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(c.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(u.a)(this._label.nativeElement,"transitionend").pipe(Object(p.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(n=>{if("start"===n.align){if(t||this.hintLabel)throw V("start");t=n}else if("end"===n.align){if(e)throw V("end");e=n}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=this._getStartEnd(t.children[0].getBoundingClientRect());let a=0;for(const e of t.children)a+=e.offsetWidth;e=Math.abs(o-r)-5,n=a>0?.75*a+10:0}for(let o=0;o{class t{}return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)},imports:[[i.c,r.c]]}),t})()},l7GE:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");class s extends i.a{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mCNh:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return r}));var i=n("SpAZ");function s(...t){return r(t)}function r(t){return 0===t.length?i.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},mrSG:function(t,e,n){"use strict";function i(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}n.d(e,"a",(function(){return i}))},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",(function(){return i}))},nLfN:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return f}));var i=n("fXoL"),s=n("ofXK");let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(s.t)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.D,8))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(i.D,8))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function f(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function g(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function b(t){if(function(){if(null==p){const t="undefined"!=typeof document?document.head:null;p=!(!t||!t.createShadowRoot&&!t.attachShadow)}return p}()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q"),s=n("quSY");function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.a{constructor(t,e){super(t),this.add(new s.a(e))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{for(let n=0,i=t.length;n{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(i.bc)(d)}const h=new i.s("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=r().getLocation(),this._history=r().getHistory()}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.bc(l))},t.\u0275prov=Object(i.Nb)({factory:m,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function m(){return new d(Object(i.bc)(l))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(i.bc)(l).location;return new w(Object(i.bc)(c),e&&e.origin||"")}const v=new i.s("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c),i.bc(v,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c),i.bc(v,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new i.p,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(O(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(_),i.bc(c))},t.normalizeQueryParams=b,t.joinWithSlash=f,t.stripTrailingSlash=g,t.\u0275prov=Object(i.Nb)({factory:S,token:t,providedIn:"root"}),t})();function S(){return new C(Object(i.bc)(_),Object(i.bc)(c))}function O(t){return t.replace(/\/index.html$/,"")}const k=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),E=i.qb;class j{}let T=(()=>{class t extends j{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(E(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.w))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();function R(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let A=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(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&&(Object(i.tb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(i.zb)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.u),i.Rb(i.v),i.Rb(i.m),i.Rb(i.G))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class I{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(i.Y)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new I(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new P(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new P(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.Q),i.Rb(i.N),i.Rb(i.u))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class P{constructor(t,e){this.record=t,this.view=e}}let N=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new M,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){F("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){F("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.Q),i.Rb(i.N))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class M{constructor(){this.$implicit=null,this.ngIf=null}}function F(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.zb)(e)}'.`)}class L{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let V=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new L(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.Q),i.Rb(i.N),i.Rb(V,1))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),z=(()=>{class t{constructor(t,e,n){n._addDefault(new L(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.Q),i.Rb(i.N),i.Rb(V,1))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),H=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.v),i.Rb(i.G))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),U=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.Q))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Cb]}),t})();class ${createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class W{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const q=new W,G=new $;let X=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):Object(i.wb)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,i.S.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(i.vb)(e))return q;if(Object(i.ub)(e))return G;throw n=t,Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.zb)(n)}'`);var n}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.dc())},t.\u0275pipe=i.Qb({name:"async",type:t,pure:!1}),t})(),K=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[{provide:j,useClass:T}]}),t})();const Z="browser";function Y(t){return t===Z}function Q(t){return"server"===t}let J=(()=>{class t{}return t.\u0275prov=Object(i.Nb)({token:t,providedIn:"root",factory:()=>new tt(Object(i.bc)(l),window,Object(i.bc)(i.o))}),t})();class tt{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("DH7j"),s=n("XoHu"),r=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof o?e.errors:e),[])}},rDax:function(t,e,n){"use strict";n.d(e,"a",(function(){return q})),n.d(e,"b",(function(){return W})),n.d(e,"c",(function(){return H})),n.d(e,"d",(function(){return O})),n.d(e,"e",(function(){return I})),n.d(e,"f",(function(){return X}));var i=n("vxfF"),s=n("fXoL"),r=n("nLfN"),o=n("cH1L"),a=n("ofXK"),l=n("8LU1"),c=n("+rOU"),u=n("XNiG"),h=n("quSY"),d=n("HDdC"),p=n("VRyK"),m=n("IzEk"),f=n("1G5W"),g=n("FtGj");class b{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(l.d)(-this._previousScrollPosition.left),t.style.top=Object(l.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function _(){return Error("Scroll strategy has already been attached.")}class y{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw _();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class v{enable(){}disable(){}attach(){}}function w(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function x(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class C{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw _();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();w(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let S=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new v,this.close=t=>new y(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new b(this._viewportRuler,this._document),this.reposition=t=>new C(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.b),s.bc(i.d),s.bc(s.B),s.bc(a.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.b),Object(s.bc)(i.d),Object(s.bc)(s.B),Object(s.bc)(a.d))},token:t,providedIn:"root"}),t})();class O{constructor(t){if(this.scrollStrategy=new v,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class k{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class E{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function j(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function T(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let R=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEventSubscriptions>0){e[n]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(a.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(a.d))},token:t,providedIn:"root"}),t})();const A=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let I=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||A){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEventsObservable=new d.a(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new u.a,this._keydownEventSubscriptions=0,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(m.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Object(l.d)(this._config.width),t.height=Object(l.d)(this._config.height),t.minWidth=Object(l.d)(this._config.minWidth),t.minHeight=Object(l.d)(this._config.minHeight),t.maxWidth=Object(l.d)(this._config.maxWidth),t.maxHeight=Object(l.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Object(l.b)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Object(f.a)(Object(p.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const P=/([A-Za-z%]+)$/;class N{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.a,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&M(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){let{x:s,y:r}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(s+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,u=this._subtractOverflows(e.width,0-s,s+e.width-n.width),h=this._subtractOverflows(e.height,l,c),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=F(this._overlayRef.getConfig().minHeight),o=F(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,s=Math.max(t.x+e.width-i.right,0),r=Math.max(t.y+e.height-i.bottom,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=i.width?a||-s:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Object(l.d)(n.height),i.top=Object(l.d)(n.top),i.bottom=Object(l.d)(n.bottom),i.width=Object(l.d)(n.width),i.left=Object(l.d)(n.left),i.right=Object(l.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Object(l.d)(t)),s&&(i.maxWidth=Object(l.d)(s))}this._lastBoundingBoxSize=n,M(this._boundingBox.style,i)}_resetBoundingBoxStyles(){M(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){M(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();M(n,this._getExactOverlayY(e,t,i)),M(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=Object(l.d)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=Object(l.d)(r.maxWidth):s&&(n.maxWidth="")),M(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:i.top=Object(l.d)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=`${this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)}px`:s.left=Object(l.d)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:x(t,n),isOriginOutsideView:w(t,n),isOverlayClipped:x(e,n),isOverlayOutsideView:w(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{T("originX",t.originX),j("originY",t.originY),T("overlayX",t.overlayX),j("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Object(l.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.m)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function M(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function F(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(P);return n&&"px"!==n?null:parseFloat(e)}return t||null}class L{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new N(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new k(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class V{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let B=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new V}connectedTo(t,e,n){return new L(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new N(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d),s.bc(a.d),s.bc(r.a),s.bc(I))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.d),Object(s.bc)(a.d),Object(s.bc)(r.a),Object(s.bc)(I))},token:t,providedIn:"root"}),t})(),z=0,H=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new O(t);return s.direction=s.direction||this._directionality.value,new D(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${z++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new c.d(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(S),s.bc(I),s.bc(s.k),s.bc(B),s.bc(R),s.bc(s.t),s.bc(s.B),s.bc(a.d),s.bc(o.b),s.bc(a.g,8))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const U=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],$=new s.s("cdk-connected-overlay-scroll-strategy");let W=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),q=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new s.p,this.positionChange=new s.p,this.attach=new s.p,this.detach=new s.p,this.overlayKeydown=new s.p,this._templatePortal=new c.g(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(l.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(l.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(l.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(l.c)(t)}get push(){return this._push}set push(t){this._push=Object(l.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=U),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==g.g||Object(g.s)(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new O({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(H),s.Rb(s.N),s.Rb(s.Q),s.Rb($),s.Rb(o.b,8))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[s.Cb]}),t})();const G={provide:$,deps:[H],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let X=(()=>{class t{}return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)},providers:[H,G],imports:[[o.a,c.f,i.c],i.c]}),t})()},sxot:function(t,e,n){"use strict";n.d(e,"f",(function(){return r})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return a})),n.d(e,"j",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"k",(function(){return h})),n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return f}));var i=n("mrSG"),s=n("AcyG");let r=(()=>{class t{constructor(t){this.isAceAllowed=t}}return t.type="[App-State] Setting IsAceAllowed",t})(),o=(()=>{class t{constructor(t){this.screens=t}}return t.type="[App-State] Set ScreenModel",t})(),a=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Selected ScreenModel",t})(),l=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Update ScreenModel",t})(),c=(()=>{class t{constructor(t){this.screenName=t}}return t.type="[App-State] Delete ScreenModel",t})(),u=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Create ScreenModel",t})(),h=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Update Statuses",t})(),d=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Is Loading",t})(),p=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Controlled Screen",t})(),m=(()=>{class t{constructor(){}}return t.type="[App-State] Clear Selected Screen",t})(),f=(()=>{let t=class{static isAceAllowed(t){return t.isAceAllowed}static getScreens(t){return t.screens}static getStatuses(t){return t.screenStatus}static getControlledScreen(t){return t.screenStatus.find(e=>e.screenName===t.controlledScreen)}static getSelectedScreen(t){return t.selectedScreen}static isLoading(t){return t.isLoading}setIsLoading(t,{payload:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{isLoading:e}))}deleteScreen({getState:t,setState:e},{screenName:n}){const i=t(),s=i.screens.filter(t=>t.name!==n);e(Object.assign(Object.assign({},i),{screens:s}))}updateStatuses(t,{payload:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{screenStatus:e}))}clearControlledScreen(t,{}){const e=t.getState();t.setState(Object.assign(Object.assign({},e),{controlledScreen:""}))}updateScreen({getState:t,setState:e},{payload:n}){const i=t(),s=[...i.screens],r=s.findIndex(t=>t.id===n.id);s[r]=n,e(Object.assign(Object.assign({},i),{screens:s}))}createScreen({getState:t,setState:e},{payload:n}){const i=t(),s=[...i.screens];s.push(n),e(Object.assign(Object.assign({},i),{screens:s}))}setControlledScreen(t,{payload:e}){const n=t.getState(),i=[...n.screenStatus].findIndex(t=>t.screenName===e);t.setState(Object.assign(Object.assign({},n),{controlledScreen:n.screenStatus[i].screenName}))}setSelectedScreen({getState:t,setState:e},{payload:n}){const i=t();e(Object.assign(Object.assign({},i),{selectedScreen:n}))}addScreen(t,{screens:e}){var n;t.setState((n={screens:e},function(t){let e=null;for(const i in n){const s=n[i],r=t[i],o="function"==typeof s?s(r):s;o!==r&&(e||(e=Object.assign({},t)),e[i]=o)}return e||t}))}setIsAceAllowed(t,{isAceAllowed:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{isAceAllowed:e}))}};return Object(i.a)([Object(s.a)(d)],t.prototype,"setIsLoading",null),Object(i.a)([Object(s.a)(c)],t.prototype,"deleteScreen",null),Object(i.a)([Object(s.a)(h)],t.prototype,"updateStatuses",null),Object(i.a)([Object(s.a)(m)],t.prototype,"clearControlledScreen",null),Object(i.a)([Object(s.a)(l)],t.prototype,"updateScreen",null),Object(i.a)([Object(s.a)(u)],t.prototype,"createScreen",null),Object(i.a)([Object(s.a)(p)],t.prototype,"setControlledScreen",null),Object(i.a)([Object(s.a)(a)],t.prototype,"setSelectedScreen",null),Object(i.a)([Object(s.a)(o)],t.prototype,"addScreen",null),Object(i.a)([Object(s.a)(r)],t.prototype,"setIsAceAllowed",null),Object(i.a)([Object(s.e)()],t,"isAceAllowed",null),Object(i.a)([Object(s.e)()],t,"getScreens",null),Object(i.a)([Object(s.e)()],t,"getStatuses",null),Object(i.a)([Object(s.e)()],t,"getControlledScreen",null),Object(i.a)([Object(s.e)()],t,"getSelectedScreen",null),Object(i.a)([Object(s.e)()],t,"isLoading",null),t=Object(i.a)([Object(s.f)({name:"app",defaults:{isAceAllowed:!1,screens:[],selectedScreen:null,screenStatus:null,isLoading:!1,controlledScreen:""}})],t),t})()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return k})),n.d(e,"b",(function(){return z})),n.d(e,"c",(function(){return d}));var i=n("fXoL"),s=n("LRne"),r=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("ofXK");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return m(t)}encodeValue(t){return m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function m(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,"/")}class f{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new f({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,n,i){let s;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)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new y(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}const v=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class x extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new x({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})}}class C extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({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})}}class S extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function O(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let k=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof y)i=t;else{let s=void 0;s=n.headers instanceof d?n.headers:new d(n.headers);let r=void 0;n.params&&(r=n.params instanceof f?n.params:new f({fromObject:n.params})),i=new y(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Object(s.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===n.observe)return r;const c=r.pipe(Object(a.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return c.pipe(Object(l.a)(t=>t.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new f).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(u))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const j=new i.s("HTTP_INTERCEPTORS");let T=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const R=/^\)\]\}',?\n/;class A{}let I=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new r.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new x({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(R,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new C({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new S({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new S({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:v.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(A))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const P=new i.s("XSRF_COOKIE_NAME"),N=new i.s("XSRF_HEADER_NAME");class M{}let F=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.y)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c.d),i.bc(i.D),i.bc(P))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(M),i.bc(N))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(j,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(h),i.bc(i.t))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:L,useClass:T}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[L,{provide:j,useExisting:L,multi:!0},{provide:M,useClass:F},{provide:P,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),z=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[k,{provide:u,useClass:V},D,{provide:h,useExisting:D},I,{provide:A,useExisting:I}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tpcZ:function(t,e,n){var i,s;void 0===(s="function"==typeof(i=function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function e(t){var e,n=t.replace(/^v/,"").replace(/\+.*$/,""),i=-1===(e=n).indexOf("-")?e.length:e.indexOf("-"),s=n.substring(0,i).split(".");return s.push(n.substring(i+1)),s}function n(t){return isNaN(Number(t))?t:Number(t)}function i(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");if(!t.test(e))throw new Error("Invalid argument not valid semver ('"+e+"' received)")}function s(t,s){[t,s].forEach(i);for(var r=e(t),o=e(s),a=0;ac)return 1;if(c>l)return-1}var u=r[r.length-1],h=o[o.length-1];if(u&&h){var d=u.split(".").map(n),p=h.split(".").map(n);for(a=0;ap[a])return 1;if(p[a]>d[a])return-1}}else if(u||h)return u?-1:1;return 0}var r=[">",">=","=","<","<="],o={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return s.validate=function(e){return"string"==typeof e&&t.test(e)},s.compare=function(t,e,n){!function(t){if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+typeof t);if(-1===r.indexOf(t))throw new TypeError("Invalid operator, expected one of "+r.join("|"))}(n);var i=s(t,e);return o[n].indexOf(i)>-1},s})?i.apply(e,[]):i)||(t.exports=s)},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return an})),n.d(e,"b",(function(){return ln})),n.d(e,"c",(function(){return cn})),n.d(e,"d",(function(){return Cn})),n.d(e,"e",(function(){return pn}));var i=n("ofXK"),s=n("fXoL"),r=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),l=n("HDdC");const c=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var u=n("itXk"),h=n("NXyV"),d=n("XNiG"),p=n("EY2u"),m=n("lJxs"),f=n("0EUg"),g=n("pLZG"),b=n("7o/Q"),_=n("4I5i");function y(t){return function(e){return 0===t?Object(p.b)():e.lift(new v(t))}}class v{constructor(t){if(this.total=t,this.total<0)throw new _.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends b.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new C(t))}class C{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new S(t,this.errorFactory))}}class S extends b.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function O(){return new c}var k=n("xbPD"),E=n("SpAZ");function j(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(g.a)((e,n)=>t(e,n,i)):E.a,y(1),n?Object(k.a)(e):x(()=>new c))}var T=n("JIr8"),R=n("IzEk");function A(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(g.a)((e,n)=>t(e,n,i)):E.a,Object(R.a)(1),n?Object(k.a)(e):x(()=>new c))}var I=n("5+tZ");class D{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new P(t,this.predicate,this.thisArg,this.source))}}class P extends b.a{constructor(t,e,n,i){super(t),this.predicate=e,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var N=n("eIep"),M=n("JX91");function F(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new L(t,e,n))}}class L{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new V(t,this.accumulator,this.seed,this.hasSeed))}}class V extends b.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var B=n("bOdf"),z=n("mCNh"),H=n("vkgz"),U=n("nYR2"),$=n("bHdf");class W{constructor(t,e){this.id=t,this.url=e}}class q extends W{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class G extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class X extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class K extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Z extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Y extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q extends W{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class J extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class et{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class it{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let lt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Sb(0,"router-outlet")},directives:function(){return[pn]},encapsulation:2}),t})();class ct{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ut(t){return new ct(t)}function ht(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function dt(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthe.indexOf(t)>-1):t===e}function vt(t){return Array.prototype.concat.apply([],t)}function wt(t){return t.length>0?t[t.length-1]:null}function xt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ct(t){return Object(s.ub)(t)?t:Object(s.vb)(t)?Object(o.a)(Promise.resolve(t)):Object(r.a)(t)}function St(t,e,n){return n?function(t,e){return _t(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!jt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>yt(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,s){if(n.segments.length>s.length)return!!jt(n.segments.slice(0,s.length),s)&&!i.hasChildren();if(n.segments.length===s.length){if(!jt(n.segments,s))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),r=s.slice(n.segments.length);return!!jt(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,r)}}(e,n,n.segments)}(t.root,e.root)}class Ot{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return It.serialize(this)}}class kt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dt(this)}}class Et{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ut(this.parameters)),this._parameterMap}toString(){return Vt(this)}}function jt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Tt(t,e){let n=[];return xt(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),xt(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class Rt{}class At{parse(t){const e=new $t(t);return new Ot(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return Dt(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return xt(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=Tt(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return`${Dt(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Nt(e)}=${Nt(t)}`).join("&"):`${Nt(e)}=${Nt(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const It=new At;function Dt(t){return t.segments.map(t=>Vt(t)).join("/")}function Pt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(t){return Pt(t).replace(/%3B/gi,";")}function Mt(t){return Pt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ft(t){return decodeURIComponent(t)}function Lt(t){return Ft(t.replace(/\+/g,"%20"))}function Vt(t){return`${Mt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Mt(t)}=${Mt(e[t])}`).join("")}`;var e}const Bt=/^[^\/()?;=#]+/;function zt(t){const e=t.match(Bt);return e?e[0]:""}const Ht=/^[^=?&#]+/,Ut=/^[^?&#]+/;class $t{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kt([],{}):new kt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new kt(t,e)),n}parseSegment(){const t=zt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Et(Ft(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=zt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=zt(this.remaining);t&&(n=t,this.capture(n))}t[Ft(e)]=Ft(n)}parseQueryParam(t){const e=function(t){const e=t.match(Ht);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Ut);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Lt(e),s=Lt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=zt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new kt([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Wt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=qt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=qt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Gt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Gt(t,this._root).map(t=>t.value)}}function qt(t,e){if(t===e.value)return e;for(const n of e.children){const e=qt(t,n);if(e)return e}return null}function Gt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Gt(t,n);if(i.length)return i.unshift(e),i}return[]}class Xt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Kt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Zt extends Wt{constructor(t,e){super(t),this.snapshot=e,ne(this,t)}toString(){return this.snapshot.toString()}}function Yt(t,e){const n=function(t,e){const n=new te([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ee("",new Xt(n,[]))}(t,e),i=new a.a([new Et("",{})]),s=new a.a({}),r=new a.a({}),o=new a.a({}),l=new a.a(""),c=new Qt(i,s,o,l,r,"primary",e,n.root);return c.snapshot=n.root,new Zt(new Xt(c,[]),n)}class Qt{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(m.a)(t=>ut(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(m.a)(t=>ut(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Jt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class te{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ut(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ee extends Wt{constructor(t,e){super(e),this.url=t,ne(this,e)}toString(){return ie(this._root)}}function ne(t,e){e.value._routerState=t,e.children.forEach(e=>ne(t,e))}function ie(t){const e=t.children.length>0?` { ${t.children.map(ie).join(", ")} } `:"";return`${t.value}${e}`}function se(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,_t(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),_t(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n_t(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||re(t.parent,e.parent))}function oe(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ae(t,e,n,i,s){let r={};return i&&xt(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Ot(n.root===t?e:function t(e,n,i){const s={};return xt(e.children,(e,r)=>{s[r]=e===n?i:t(e,n,i)}),new kt(e.segments,s)}(n.root,t,e),r,s)}class le{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&oe(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(i&&i!==wt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ce{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ue(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function he(t,e,n){if(t||(t=new kt([],{})),0===t.segments.length&&t.hasChildren())return de(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=ue(n[i]),a=i0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!ge(o,a,e))return r;i+=2}else{if(!ge(o,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{null!==n&&(s[i]=he(t.children[i],e,n))}),xt(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new kt(t.segments,s)}}function pe(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=pe(new kt([],{}),0,t))}),e}function fe(t){const e={};return xt(t,(t,n)=>e[n]=`${t}`),e}function ge(t,e,n){return t==n.path&&_t(e,n.parameters)}class be{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),se(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Kt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),xt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=Kt(t),s=t.value.component?n.children:e;xt(i,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=Kt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ot(t.value.snapshot))}),t.children.length&&this.forwardEvent(new st(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(se(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),_e(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function _e(t){se(t.value),t.children.forEach(_e)}function ye(t){return"function"==typeof t}function ve(t){return t instanceof Ot}class we{constructor(t){this.segmentGroup=t||null}}class xe{constructor(t){this.urlTree=t}}function Ce(t){return new l.a(e=>e.error(new we(t)))}function Se(t){return new l.a(e=>e.error(new xe(t)))}function Oe(t){return new l.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class ke{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.z)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(m.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(T.a)(t=>{if(t instanceof xe)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof we)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(m.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(T.a)(t=>{if(t instanceof we)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new kt([],{primary:t}):t;return new Ot(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(m.a)(t=>new kt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(r.a)({});const n=[],i=[],s={};return xt(t,(t,r)=>{const o=e(r,t).pipe(Object(m.a)(t=>s[r]=t));"primary"===r?n.push(o):i.push(o)}),r.a.apply(null,n.concat(i)).pipe(Object(f.a)(),j(),Object(m.a)(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,s,o){return Object(r.a)(...n).pipe(Object(m.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,i,s,o).pipe(Object(T.a)(t=>{if(t instanceof we)return Object(r.a)(null);throw t}))),Object(f.a)(),A(t=>!!t),Object(T.a)((t,n)=>{if(t instanceof c||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,s))return Object(r.a)(new kt([],{}));throw new we(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return Re(i)!==r?Ce(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Ce(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Se(s):this.lineralizeSegments(n,s).pipe(Object(I.a)(n=>{const s=new kt(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ee(e,i,s);if(!o)return Ce(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Se(u):this.lineralizeSegments(i,u).pipe(Object(I.a)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(m.a)(t=>(n._loadedConfig=t,new kt(i,{})))):Object(r.a)(new kt(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=Ee(e,n,i);if(!s)return Ce(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(Object(I.a)(t=>{const n=t.module,i=t.routes,{segmentGroup:s,slicedSegments:a}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>Te(t,e,n)&&"primary"!==Re(n))}(t,n,i)?{segmentGroup:je(new kt(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==Re(i)&&(n[Re(i)]=new kt([],{}));return n}(i,new kt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Te(t,e,n))}(t,n,i)?{segmentGroup:je(new kt(t.segments,function(t,e,n,i){const s={};for(const r of n)Te(t,e,r)&&!i[Re(r)]&&(s[Re(r)]=new kt([],{}));return Object.assign(Object.assign({},i),s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,l,i);return 0===a.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(Object(m.a)(t=>new kt(o,t))):0===i.length&&0===a.length?Object(r.a)(new kt(o,{})):this.expandSegment(n,s,i,a,"primary",!0).pipe(Object(m.a)(t=>new kt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(r.a)(new pt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(r.a)(e._loadedConfig):function(t,e,n){const i=e.canLoad;return i&&0!==i.length?Object(o.a)(i).pipe(Object(m.a)(i=>{const s=t.get(i);let r;if(function(t){return t&&ye(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!ye(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return Ct(r)})).pipe(Object(f.a)(),(s=t=>!0===t,t=>t.lift(new D(s,void 0,t)))):Object(r.a)(!0);var s}(t.injector,e,n).pipe(Object(I.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(m.a)(t=>(e._loadedConfig=t,t))):function(t){return new l.a(e=>e.error(ht(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(r.a)(new pt([],t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(r.a)(n);if(i.numberOfChildren>1||!i.children.primary)return Oe(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Ot(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return xt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return xt(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new kt(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Ee(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:{}};const i=(e.matcher||dt)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function je(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new kt(t.segments.concat(e.segments),e.children)}return t}function Te(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Re(t){return t.outlet||"primary"}class Ae{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ie{constructor(t,e){this.component=t,this.route=e}}function De(t,e,n){const i=t._root;return function t(e,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Kt(n);return e.children.forEach(e=>{!function(e,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=i?i.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!jt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!jt(t.url,e.url)||!_t(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!re(t,e)||!_t(t.queryParams,e.queryParams);case"paramsChange":default:return!re(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Ae(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:i,s,r),c&&r.canDeactivateChecks.push(new Ie(l&&l.outlet&&l.outlet.component||null,a))}else a&&Ne(n,l,r),r.canActivateChecks.push(new Ae(s)),t(e,null,o.component?l?l.children:null:i,s,r)}(e,o[e.value.outlet],i,s.concat([e.value]),r),delete o[e.value.outlet]}),xt(o,(t,e)=>Ne(t,i.getContext(e),r)),r}(i,e?e._root:null,n,[i.value])}function Pe(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Ne(t,e,n){const i=Kt(t),s=t.value;xt(i,(t,i)=>{Ne(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Ie(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Me=Symbol("INITIAL_VALUE");function Fe(){return Object(N.a)(t=>Object(u.a)(...t.map(t=>t.pipe(Object(R.a)(1),Object(M.a)(Me)))).pipe(F((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==Me)return t;if(i===Me&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||ve(i))return i}return t},t)},Me),Object(g.a)(t=>t!==Me),Object(m.a)(t=>ve(t)?t:!0===t),Object(R.a)(1)))}function Le(t,e){return null!==t&&e&&e(new rt(t)),Object(r.a)(!0)}function Ve(t,e){return null!==t&&e&&e(new it(t)),Object(r.a)(!0)}function Be(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(r.a)(!0);const s=i.map(i=>Object(h.a)(()=>{const s=Pe(i,e,n);let r;if(function(t){return t&&ye(t.canActivate)}(s))r=Ct(s.canActivate(e,t));else{if(!ye(s))throw new Error("Invalid CanActivate guard");r=Ct(s(e,t))}return r.pipe(A())}));return Object(r.a)(s).pipe(Fe())}function ze(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(h.a)(()=>{const s=e.guards.map(s=>{const r=Pe(s,e.node,n);let o;if(function(t){return t&&ye(t.canActivateChild)}(r))o=Ct(r.canActivateChild(i,t));else{if(!ye(r))throw new Error("Invalid CanActivateChild guard");o=Ct(r(i,t))}return o.pipe(A())});return Object(r.a)(s).pipe(Fe())}));return Object(r.a)(s).pipe(Fe())}class He{}class Ue{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=qe(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new te([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Xt(n,e),s=new ee(this.url,i);return this.inheritParamsAndData(s._root),Object(r.a)(s)}catch(t){return new l.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Jt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Tt(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(s){if(!(s instanceof He))throw s}if(this.noLeftoversInUrl(e,n,i))return[];throw new He}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new He;if((t.outlet||"primary")!==i)throw new He;let s,r=[],o=[];if("**"===t.path){const r=n.length>0?wt(n).parameters:{};s=new te(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(t),i,t.component,t,$e(e),We(e)+n.length,Ze(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new He;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||dt)(n,t,e);if(!i)throw new He;const s={};xt(i.posParams,(t,e)=>{s[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),s=new te(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(t),i,t.component,t,$e(e),We(e)+r.length,Ze(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=qe(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Xt(s,t)]}if(0===a.length&&0===c.length)return[new Xt(s,[])];const u=this.processSegment(a,l,c,"primary");return[new Xt(s,u)]}}function $e(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function We(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function qe(t,e,n,i,s){if(n.length>0&&function(t,e,n){return n.some(n=>Ge(t,e,n)&&"primary"!==Xe(n))}(t,n,i)){const s=new kt(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==Xe(r)){const n=new kt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Xe(r)]=n}return s}(t,e,i,new kt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ge(t,e,n))}(t,n,i)){const r=new kt(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ge(t,n,a)&&!s[Xe(a)]){const n=new kt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Xe(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new kt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ge(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Xe(t){return t.outlet||"primary"}function Ke(t){return t.data||{}}function Ze(t){return t.resolve||{}}function Ye(t,e,n,i){const s=Pe(t,e,i);return Ct(s.resolve?s.resolve(e,n):s(e,n))}function Qe(t){return function(e){return e.pipe(Object(N.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(m.a)(()=>e)):Object(o.a)([e])}))}}class Je{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const tn=new s.s("ROUTES");class en{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(m.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new pt(vt(i.injector.get(tn)).map(bt),i)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):Ct(t()).pipe(Object(I.a)(t=>t instanceof s.x?Object(r.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class nn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function sn(t){throw t}function rn(t,e,n){return e.parse("/")}function on(t,e){return Object(r.a)(null)}let an=(()=>{class t{constructor(t,e,n,i,r,o,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new d.a,this.errorHandler=sn,this.malformedUriErrorHandler=rn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:on,afterPreactivation:on},this.urlHandlingStrategy=new nn,this.routeReuseStrategy=new Je,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(s.z),this.console=r.get(s.bb);const u=r.get(s.B);this.isNgZoneEnabled=u instanceof s.B,this.resetConfig(c),this.currentUrlTree=new Ot(new kt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new en(o,l,t=>this.triggerEvent(new et(t)),t=>this.triggerEvent(new nt(t))),this.routerState=Yt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(g.a)(t=>0!==t.id),Object(m.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(N.a)(t=>{let n=!1,i=!1;return Object(r.a)(t).pipe(Object(H.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(N.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(r.a)(t).pipe(Object(N.a)(t=>{const n=this.transitions.getValue();return e.next(new q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.a:[t]}),Object(N.a)(t=>Promise.resolve(t)),(i=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(N.a)(t=>function(t,e,n,i,s){return new ke(t,e,n,i,s).apply()}(i,s,o,t.extractedUrl,a).pipe(Object(m.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(H.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return function(r){return r.pipe(Object(I.a)(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){return new Ue(t,e,n,i,s,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(Object(m.a)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(H.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(H.a)(t=>{const n=new Z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:o,extras:a}=t,l=new q(n,this.serializeUrl(i),s,o);e.next(l);const c=Yt(i,this.rootComponentType).snapshot;return Object(r.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.a}),Qe(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(H.a)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(m.a)(t=>Object.assign(Object.assign({},t),{guards:De(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(I.a)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(r.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(o.a)(t).pipe(Object(I.a)(t=>function(t,e,n,i,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(r.a)(!0);const a=o.map(r=>{const o=Pe(r,e,s);let a;if(function(t){return t&&ye(t.canDeactivate)}(o))a=Ct(o.canDeactivate(t,e,n,i));else{if(!ye(o))throw new Error("Invalid CanDeactivate guard");a=Ct(o(t,e,n,i))}return a.pipe(A())});return Object(r.a)(a).pipe(Fe())}(t.component,t.route,n,e,i)),A(t=>!0!==t,!0))}(l,i,s,t).pipe(Object(I.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(o.a)(e).pipe(Object(B.a)(e=>Object(o.a)([Ve(e.route.parent,i),Le(e.route,i),ze(t,e.path,n),Be(t,e.route,n)]).pipe(Object(f.a)(),A(t=>!0!==t,!0))),A(t=>!0!==t,!0))}(i,a,t,e):Object(r.a)(n)),Object(m.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(H.a)(t=>{if(ve(t.guardsResult)){const e=ht(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(H.a)(t=>{const e=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(g.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new X(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Qe(t=>{if(t.guards.canActivateChecks.length)return Object(r.a)(t).pipe(Object(H.a)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(Object(I.a)(t=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=t;return s.length?Object(o.a)(s).pipe(Object(B.a)(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Object(r.a)({});if(1===s.length){const r=s[0];return Ye(t[r],e,n,i).pipe(Object(m.a)(t=>({[r]:t})))}const a={};return Object(o.a)(s).pipe(Object(I.a)(s=>Ye(t[s],e,n,i).pipe(Object(m.a)(t=>(a[s]=t,t))))).pipe(j(),Object(m.a)(()=>a))}(t._resolve,t,e,i).pipe(Object(m.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Jt(t,n).resolve),null)))}(t.route,i,e,n)),function(t,e){return arguments.length>=2?function(n){return Object(z.a)(F(t,e),y(1),Object(k.a)(e))(n)}:function(e){return Object(z.a)(F((e,n,i)=>t(e,n,i+1)),y(1))(e)}}((t,e)=>t),Object(m.a)(e=>t)):Object(r.a)(t)}))}),Object(H.a)(t=>{const e=new tt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Qe(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(m.a)(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const s=i.value;s._futureSnapshot=n.value;const r=function(e,n,i){return n.children.map(n=>{for(const s of i.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,i);return new Xt(s,r)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;it(e,n));return new Xt(i,r)}}var s}(t,e._root,n?n._root:void 0);return new Zt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(H.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,l=this.routeReuseStrategy,c=t=>this.triggerEvent(t),Object(m.a)(t=>(new be(l,t.targetRouterState,t.currentRouterState,c).activate(s),t))),Object(H.a)({next(){n=!0},complete(){n=!0}}),Object(U.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new X(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(T.a)(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=ve(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new X(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new K(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return p.a}));var s,l,c}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){mt(t),this.config=t.map(bt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:l}=e;Object(s.Y)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:r;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=o?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,s){if(0===n.length)return ae(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new le(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return xt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new le(n,e,i)}(n);if(r.toRoot())return ae(e.root,new kt([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new ce(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ce(n.snapshot._urlSegment,!0,0);const i=oe(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new ce(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?de(o.segmentGroup,o.index,r.commands):he(o.segmentGroup,o.index,r.commands);return ae(o.segmentGroup,a,e,i,s)}(c,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.Y)()&&this.isNgZoneEnabled&&!s.B.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=ve(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition();if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){s.ec()},t.\u0275dir=s.Mb({type:t}),t})(),ln=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.Y)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:un(this.skipLocationChange),replaceUrl:un(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:un(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:un(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(an),s.Rb(Qt),s.cc("tabindex"),s.Rb(s.G),s.Rb(s.m))},t.\u0275dir=s.Mb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.fc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),cn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof G&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.Y)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i){if(0!==t||e||n||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:un(this.skipLocationChange),replaceUrl:un(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:un(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:un(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(an),s.Rb(Qt),s.Rb(i.h))},t.\u0275dir=s.Mb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.fc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.ac("href",e.href,s.wc),s.Fb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.Cb]}),t})();function un(t){return""===t||!!t}class hn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new dn,this.attachRef=null}}class dn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new hn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let pn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.p,this.deactivateEvents=new s.p,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new mn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(dn),s.Rb(s.Q),s.Rb(s.k),s.cc("name"),s.Rb(s.i))},t.\u0275dir=s.Mb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class mn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Qt?this.route:t===dn?this.childContexts:this.parent.get(t,e)}}class fn{}class gn{preload(t,e){return Object(r.a)(null)}}let bn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new en(e,n,e=>t.triggerEvent(new et(e)),e=>t.triggerEvent(new nt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof G),Object(B.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.z);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(o.a)(n).pipe(Object($.a)(),Object(m.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(I.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(an),s.bc(s.y),s.bc(s.j),s.bc(s.t),s.bc(fn))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),_n=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof G&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof at&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new at(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){s.ec()},t.\u0275dir=s.Mb({type:t}),t})();const yn=new s.s("ROUTER_CONFIGURATION"),vn=new s.s("ROUTER_FORROOT_GUARD"),wn=[i.g,{provide:Rt,useClass:At},{provide:an,useFactory:function(t,e,n,s,r,o,a,l={},c,u){const h=new an(null,t,e,n,s,r,o,vt(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const t=Object(i.x)();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h},deps:[Rt,dn,i.g,s.t,s.y,s.j,tn,yn,[class{},new s.C],[class{},new s.C]]},dn,{provide:Qt,useFactory:function(t){return t.routerState.root},deps:[an]},{provide:s.y,useClass:s.M},bn,gn,class{preload(t,e){return e().pipe(Object(T.a)(()=>Object(r.a)(null)))}},{provide:yn,useValue:{enableTracing:!1}}];function xn(){return new s.A("Router",an)}let Cn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[wn,En(e),{provide:vn,useFactory:kn,deps:[[an,new s.C,new s.L]]},{provide:yn,useValue:n||{}},{provide:i.h,useFactory:On,deps:[i.r,[new s.r(i.a),new s.C],yn]},{provide:_n,useFactory:Sn,deps:[an,i.s,yn]},{provide:fn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:gn},{provide:s.A,multi:!0,useFactory:xn},[jn,{provide:s.d,multi:!0,useFactory:Tn,deps:[jn]},{provide:An,useFactory:Rn,deps:[jn]},{provide:s.b,multi:!0,useExisting:An}]]}}static forChild(e){return{ngModule:t,providers:[En(e)]}}}return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)(s.bc(vn,8),s.bc(an,8))}}),t})();function Sn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new _n(t,e,n)}function On(t,e,n={}){return n.useHash?new i.e(t,e):new i.q(t,e)}function kn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function En(t){return[{provide:s.a,multi:!0,useValue:t},{provide:tn,multi:!0,useValue:t}]}let jn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new d.a}appInitializer(){return this.injector.get(i.f,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(an),i=this.injector.get(yn);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(r.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(yn),n=this.injector.get(bn),i=this.injector.get(_n),r=this.injector.get(an),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.t))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();function Tn(t){return t.appInitializer.bind(t)}function Rn(t){return t.bootstrapListener.bind(t)}const An=new s.s("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return C})),n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return S})),n.d(e,"e",(function(){return N})),n.d(e,"f",(function(){return T})),n.d(e,"g",(function(){return F})),n.d(e,"h",(function(){return I})),n.d(e,"i",(function(){return M}));var i=n("ofXK"),s=n("fXoL"),r=n("XNiG"),o=n("quSY"),a=n("LRne"),l=n("FtGj"),c=n("vkgz"),u=n("Kj3r"),h=n("pLZG"),d=n("lJxs"),p=n("IzEk"),m=n("8LU1"),f=n("nLfN"),g=n("GU7r");function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let _=0;const y=new Map;let v=null,w=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),y.set(e,{messageElement:e,referenceCount:0})):y.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=y.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}v&&0===v.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=y.get(e);!function(t,e,n){const i=b(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=y.get(e);n.referenceCount--,function(t,e,n){const i=b(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=b(t,"aria-describedby"),i=y.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})();class x{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.a,this._typeaheadSubscription=o.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.a,this.change=new r.a,t instanceof s.F&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(c.a)(t=>this._pressedLetters.push(t)),Object(u.a)(t),Object(h.a)(()=>this._pressedLetters.length>0),Object(d.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.o:return void this.tabOut.next();case l.d:if(this._vertical&&n){this.setNextItemActive();break}return;case l.p:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.m:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.i:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Object(l.s)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.q||e>=l.r&&e<=l.j)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.F?this._items.toArray():this._items}}class C extends x{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class S extends x{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let O=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===E(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=E(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===i)return!1;if("audio"===i){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||k(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(f.a))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(f.a))},token:t,providedIn:"root"}),t})();function k(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function E(t){if(!k(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class j{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(p.a)(1)).subscribe(t)}}let T=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new j(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(O),s.bc(s.B),s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(O),Object(s.bc)(s.B),Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const R=new s.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),A=new s.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let I=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Object(a.a)(null);const n=Object(m.e)(t);if(this._elementInfo.has(n)){let t=this._elementInfo.get(n);return t.checkChildren=e,t.subject.asObservable()}let i={unlisten:()=>{},checkChildren:e,subject:new r.a};this._elementInfo.set(n,i),this._incrementMonitoredElementCount();let s=t=>this._onFocus(t,n),o=t=>this._onBlur(t,n);return this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",s,!0),n.addEventListener("blur",o,!0)}),i.unlisten=()=>{n.removeEventListener("focus",s,!0),n.removeEventListener("blur",o,!0)},i.subject.asObservable()}stopMonitoring(t){const e=Object(m.e)(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,n){const i=Object(m.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==t.target)return;let i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,P),t.addEventListener("mousedown",this._documentMousedownListener,P),t.addEventListener("touchstart",this._documentTouchstartListener,P),e.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,P),t.removeEventListener("mousedown",this._documentMousedownListener,P),t.removeEventListener("touchstart",this._documentTouchstartListener,P),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.B),s.bc(f.a),s.bc(i.d,8),s.bc(D,8))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(s.B),Object(s.bc)(f.a),Object(s.bc)(i.d,8),Object(s.bc)(D,8))},token:t,providedIn:"root"}),t})();function M(t){return 0===t.buttons}let F=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(f.a),s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(f.a),Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})(),L=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({factory:function(e){return new(e||t)(s.bc(F))},imports:[[f.b,g.c]]}),t})()},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("7o/Q");function s(){}var r=n("n6bG");function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.a{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,Object(r.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},vxfF:function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return b})),n("8LU1");var i=n("fXoL"),s=n("XNiG"),r=n("LRne"),o=n("HDdC"),a=n("xgIS"),l=n("VRyK");n("3N8a"),n("IjjT"),n("quSY"),n("7+OI"),n("/uUt");var c=n("3UWI"),u=n("pLZG"),h=n("1G5W");n("JX91"),n("7o/Q"),n("eIep"),n("UXun");var d=n("nLfN"),p=n("ofXK"),m=n("cH1L");n("0EQZ");let f=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new s.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new o.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(c.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(r.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(u.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(a.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.B),i.bc(d.a),i.bc(p.d,8))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(i.B),Object(i.bc)(d.a),Object(i.bc)(p.d,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new s.a,this._elementScrolled=new o.a(t=>this.ngZone.runOutsideAngular(()=>Object(a.a)(this.elementRef.nativeElement,"scroll").pipe(Object(h.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(d.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(d.d)()?t.left=t.right:1==Object(d.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(d.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(d.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(d.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(f),i.Rb(i.B),i.Rb(m.b,8))},t.\u0275dir=i.Mb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),b=(()=>{class t{constructor(t,e,n){this._platform=t,this._document=n,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?Object(l.a)(Object(a.a)(e,"resize"),Object(a.a)(e,"orientationchange")):Object(r.a)(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(c.a)(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(d.a),i.bc(i.B),i.bc(p.d,8))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(d.a),Object(i.bc)(i.B),Object(i.bc)(p.d,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[m.a,d.b],m.a]}),t})()},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("XNiG"),s=n("HDdC"),r=n("7o/Q"),o=n("quSY");function a(){return function(t){return t.lift(new l(t))}}class l{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new c(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class c extends r.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class u extends s.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return a()(this)}}const h=(()=>{const t=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class d extends i.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function p(){return new i.a}function m(){return t=>{return a()((e=p,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,h);return i.source=t,i.subjectFactory=n,i})(t));var e}}},xbPD:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function s(t=null){return e=>e.lift(new r(t))}class r{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends i.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("HDdC"),s=n("DH7j"),r=n("n6bG"),o=n("lJxs");function a(t,e,n,l){return Object(r.a)(n)&&(l=n,n=void 0),l?a(t,e,n).pipe(Object(o.a)(t=>Object(s.a)(t)?l(...t):l(t))):new i.a(i=>{!function t(e,n,i,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,r),o=()=>t.removeEventListener(n,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o1?Array.prototype.slice.call(arguments):t)}),i,n)})}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("HDdC"),s=n("ngJS"),r=n("jZKg");function o(t,e){return e?Object(r.a)(t,e):new i.a(Object(s.a)(t))}},"z+Ro":function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return i}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("HDdC");function s(t,e){return new i.a(e?n=>e.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("fXoL"),s=n("jhN1"),r=n("tyNb");const o=[{path:"quick-play",loadChildren:()=>n.e(1).then(n.bind(null,"hh/h")).then(t=>t.QuickPlayModule)},{path:"screens",loadChildren:()=>Promise.all([n.e(2),n.e(1),n.e(7)]).then(n.bind(null,"uBXI")).then(t=>t.ScreensModule)},{path:"status",loadChildren:()=>Promise.all([n.e(2),n.e(8)]).then(n.bind(null,"VePF")).then(t=>t.StatusModule)}];let a=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[r.d.forRoot(o,{useHash:!0})],r.d]}),t})();var l=n("sxot"),c=n("tk/3"),u=n("AcyG"),h=n("rDax"),d=n("+rOU"),p=n("ofXK"),m=n("FKr1"),f=n("bTqV"),g=n("XNiG"),b=n("IzEk"),_=n("1G5W"),y=n("R0Ic"),v=n("u47x"),w=n("0MNC");function x(t,e){if(1&t){const t=i.Yb();i.Xb(0,"div",1),i.Xb(1,"button",2),i.fc("click",(function(){return i.uc(t),i.jc().action()})),i.Dc(2),i.Wb(),i.Wb()}if(2&t){const t=i.jc();i.Eb(2),i.Ec(t.data.action)}}function C(t,e){}const S=Math.pow(2,31)-1;class O{constructor(t,e){this._overlayRef=e,this._afterDismissed=new g.a,this._afterOpened=new g.a,this._onAction=new g.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,S))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}const k=new i.s("MatSnackBarData");class E{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let j=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(O),i.Rb(k))},t.\u0275cmp=i.Lb({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(i.Xb(0,"span"),i.Dc(1),i.Wb(),i.Bc(2,x,3,1,"div",0)),2&t&&(i.Eb(1),i.Ec(e.data.message),i.Eb(1),i.oc("ngIf",e.hasAction))},directives:[p.k,f.b],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const T={snackBarState:Object(y.m)("state",[Object(y.j)("void, hidden",Object(y.k)({transform:"scale(0.8)",opacity:0})),Object(y.j)("visible",Object(y.k)({transform:"scale(1)",opacity:1})),Object(y.l)("* => visible",Object(y.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(y.l)("* => void, * => hidden",Object(y.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(y.k)({opacity:0})))])};let R=(()=>{class t extends d.a{constructor(t,e,n,i){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this.snackBarConfig=i,this._destroyed=!1,this._onExit=new g.a,this._onEnter=new g.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==i.politeness||i.announcementMessage?"off"===i.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(b.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.B),i.Rb(i.m),i.Rb(i.i),i.Rb(E))},t.\u0275cmp=i.Lb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&i.zc(d.b,!0),2&t&&i.qc(n=i.gc())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&i.Jb("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(i.Fb("role",e._role),i.Hc("@state",e._animationState))},features:[i.Bb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&i.Bc(0,C,0,0,"ng-template",0)},directives:[d.b],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[T.snackBarState]}}),t})(),A=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[h.f,d.f,p.c,f.c,m.e],m.e]}),t})();const I=new i.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new E}});let D=(()=>{class t{constructor(t,e,n,i,s,r){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=s,this._defaultConfig=r,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage||(i.announcementMessage=t),this.openFromComponent(j,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=new d.e(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[E,e]])),i=new d.c(R,e.viewContainerRef,n),s=t.attach(i);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new E),this._defaultConfig),e),s=this._createOverlay(n),r=this._attachSnackBarContainer(s,n),o=new O(r,s);if(t instanceof i.N){const e=new d.g(t,null,{$implicit:n.data,snackBarRef:o});o.instance=r.attachTemplatePortal(e)}else{const e=this._createInjector(n,o),i=new d.c(t,void 0,e),s=r.attachComponentPortal(i);o.instance=s.instance}return this._breakpointObserver.observe(w.b.HandsetPortrait).pipe(Object(_.a)(s.detachments())).subscribe(t=>{const e=s.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")}),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new h.d;e.direction=t.direction;let n=this._overlay.position().global();const i="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,r=!s&&"center"!==t.horizontalPosition;return s?n.left("0"):r?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return new d.e(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[O,e],[k,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(h.c),i.bc(v.h),i.bc(i.t),i.bc(w.a),i.bc(t,12),i.bc(I))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(h.c),Object(i.bc)(v.h),Object(i.bc)(i.q),Object(i.bc)(w.a),Object(i.bc)(t,12),Object(i.bc)(I))},token:t,providedIn:A}),t})();var P=n("tpcZ"),N=n.n(P),M=n("mrSG");const F=["toast-component",""];function L(t,e){if(1&t){const t=i.Yb();i.Xb(0,"button",5),i.fc("click",(function(){return i.uc(t),i.jc().remove()})),i.Xb(1,"span",6),i.Dc(2,"\xd7"),i.Wb(),i.Wb()}}function V(t,e){if(1&t&&(i.Vb(0),i.Dc(1),i.Ub()),2&t){const t=i.jc(2);i.Eb(1),i.Fc("[",t.duplicatesCount+1,"]")}}function B(t,e){if(1&t&&(i.Xb(0,"div"),i.Dc(1),i.Bc(2,V,2,1,"ng-container",4),i.Wb()),2&t){const t=i.jc();i.Gb(t.options.titleClass),i.Fb("aria-label",t.title),i.Eb(1),i.Fc(" ",t.title," "),i.Eb(1),i.oc("ngIf",t.duplicatesCount)}}function z(t,e){if(1&t&&i.Sb(0,"div",7),2&t){const t=i.jc();i.Gb(t.options.messageClass),i.oc("innerHTML",t.message,i.vc)}}function H(t,e){if(1&t&&(i.Xb(0,"div",8),i.Dc(1),i.Wb()),2&t){const t=i.jc();i.Gb(t.options.messageClass),i.Fb("aria-label",t.message),i.Eb(1),i.Fc(" ",t.message," ")}}function U(t,e){if(1&t&&(i.Xb(0,"div"),i.Sb(1,"div",9),i.Wb()),2&t){const t=i.jc();i.Eb(1),i.Ac("width",t.width+"%")}}class ${constructor(t,e,n,i,s,r){this.toastId=t,this.config=e,this.message=n,this.title=i,this.toastType=s,this.toastRef=r,this._onTap=new g.a,this._onAction=new g.a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const W={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},q=new i.s("ToastConfig");class G{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class X extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=n.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let K=(()=>{let t=class{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}};return t.\u0275fac=function(e){return new(e||t)(i.bc(p.d))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(p.d))},token:t,providedIn:"root"}),t})();class Z{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let Y=(()=>{let t=class{constructor(t,e,n,i){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=i,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new X(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new Z(this._createPortalHost(t))}};return t.\u0275fac=function(e){return new(e||t)(i.bc(K),i.bc(i.k),i.bc(i.g),i.bc(p.d))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(K),Object(i.bc)(i.k),Object(i.bc)(i.g),Object(i.bc)(p.d))},token:t,providedIn:"root"}),t})();class Q{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new g.a,this._activate=new g.a,this._manualClose=new g.a,this._resetTimeout=new g.a,this._countDuplicate=new g.a}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class J{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===$?this._toastPackage:this._parentInjector.get(t,e,n)}}let tt=(()=>{let t=class{constructor(t,e,n,i,s){this.overlay=e,this._injector=n,this.sanitizer=i,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},i=""){return this._preBuildNotification(i,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActivethis._buildNotification(t,e,n,i)):this._buildNotification(t,e,n,i)}_buildNotification(t,e,n,s){if(!s.toastComponent)throw new Error("toastComponent required");const r=this.findDuplicate(e,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if(e&&this.toastrConfig.preventDuplicates&&null!==r)return r;this.previousToastMessage=e;let o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let l=e;e&&s.enableHtml&&(l=this.sanitizer.sanitize(i.K.HTML,e));const c=new Q(a),u=new $(this.index,s,l,n,t,c),h=new J(u,this._injector),d=new G(s.toastComponent,h),p=a.attach(d,this.toastrConfig.newestOnTop);c.componentInstance=p.instance;const m={toastId:this.index,message:e||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:p};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{m.toastRef.activate()})),this.toasts.push(m),m}};return t.\u0275fac=function(e){return new(e||t)(i.bc(q),i.bc(Y),i.bc(i.t),i.bc(s.b),i.bc(i.B))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(q),Object(i.bc)(Y),Object(i.bc)(i.q),Object(i.bc)(s.b),Object(i.bc)(i.B))},token:t,providedIn:"root"}),t})(),et=(()=>{let t=class{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}};return t.\u0275fac=function(e){return new(e||t)(i.Rb(tt),i.Rb($),i.Rb(i.B))},t.\u0275cmp=i.Lb({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&i.fc("click",(function(){return e.tapToast()}))("mouseenter",(function(){return e.stickAround()}))("mouseleave",(function(){return e.delayedHideToast()})),2&t&&(i.Hc("@flyInOut",e.state),i.Gb(e.toastClasses),i.Ac("display",e.displayStyle))},attrs:F,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(i.Bc(0,L,3,0,"button",0),i.Bc(1,B,3,5,"div",1),i.Bc(2,z,1,3,"div",2),i.Bc(3,H,2,4,"div",3),i.Bc(4,U,2,2,"div",4)),2&t&&(i.oc("ngIf",e.options.closeButton),i.Eb(1),i.oc("ngIf",e.title),i.Eb(1),i.oc("ngIf",e.message&&e.options.enableHtml),i.Eb(1),i.oc("ngIf",e.message&&!e.options.enableHtml),i.Eb(1),i.oc("ngIf",e.options.progressBar))},directives:[p.k],encapsulation:2,data:{animation:[Object(y.m)("flyInOut",[Object(y.j)("inactive",Object(y.k)({opacity:0})),Object(y.j)("active",Object(y.k)({opacity:1})),Object(y.j)("removed",Object(y.k)({opacity:0})),Object(y.l)("inactive => active",Object(y.e)("{{ easeTime }}ms {{ easing }}")),Object(y.l)("active => removed",Object(y.e)("{{ easeTime }}ms {{ easing }}"))])]}}),t})();var nt;const it=Object.assign(Object.assign({},W),{toastComponent:et});let st=(()=>{let t=nt=class{static forRoot(t={}){return{ngModule:nt,providers:[{provide:q,useValue:{default:it,config:t}}]}}};return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[p.c]]}),t})(),rt=(()=>{class t{constructor(t,e){this.http=t,this.toastr=e,this.repoUrl="https://api.github.com/repos/thiago-dev/fivem-hypnonema/releases/latest"}getHeaders(){const t=new c.c;return t.append("Content-Type","application/json"),t.append("User-Agent","Hypnonema"),t}getLatestRelease(){return this.http.get(this.repoUrl,{headers:this.getHeaders()})}check(t){this.getLatestRelease().subscribe(e=>{N.a.compare(e.tag_name,t,">")&&this.toastr.warning("There is a new Update available. You may want to check it out if you want new features.",`Hypnonema Update ${e.tag_name} available!`,{timeOut:8e3,positionClass:"toast-top-right"})})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c.a),i.bc(tt))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var ot=n("/rnm"),at=n("nLfN");const lt=["*",[["mat-toolbar-row"]]],ct=["*","mat-toolbar-row"];class ut{constructor(t){this._elementRef=t}}const ht=Object(m.r)(ut);let dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),pt=(()=>{class t extends ht{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){Object(i.Y)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(t=>!(t.classList&&t.classList.contains("mat-toolbar-row"))).filter(t=>t.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(t=>!(!t.textContent||!t.textContent.trim()))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(at.a),i.Rb(p.d))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var s;1&t&&i.Kb(n,dt,!0),2&t&&i.qc(s=i.gc())&&(e._toolbarRows=s)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&i.Ib("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.Bb],ngContentSelectors:ct,decls:2,vars:0,template:function(t,e){1&t&&(i.nc(lt),i.mc(0),i.mc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),t})(),mt=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[m.e],m.e]}),t})();var ft=n("NFeN");let gt=(()=>{class t{constructor(t){this.nuiService=t}ngOnInit(){}close(){this.nuiService.hideNUI()}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(ot.a))},t.\u0275cmp=i.Lb({type:t,selectors:[["app-header"]],decls:6,vars:0,consts:[["color","primary"],["mat-button","",2,"right","75px","position","absolute",3,"click"]],template:function(t,e){1&t&&(i.Xb(0,"mat-toolbar",0),i.Xb(1,"span"),i.Dc(2,"Hypnonema"),i.Wb(),i.Xb(3,"button",1),i.fc("click",(function(){return e.close()})),i.Xb(4,"mat-icon"),i.Dc(5,"close"),i.Wb(),i.Wb(),i.Wb())},directives:[pt,f.b,ft.a],styles:[""]}),t})();var bt=n("lJxs"),_t=n("UXun"),yt=n("vxfF"),vt=n("8LU1"),wt=n("FtGj"),xt=n("xgIS"),Ct=n("VRyK"),St=n("pLZG"),Ot=n("/uUt"),kt=n("JX91"),Et=n("Kj3r"),jt=n("R1ws"),Tt=n("cH1L");const Rt=["*"];function At(t,e){if(1&t){const t=i.Yb();i.Xb(0,"div",2),i.fc("click",(function(){return i.uc(t),i.jc()._onBackdropClicked()})),i.Wb()}if(2&t){const t=i.jc();i.Ib("mat-drawer-shown",t._isShowingBackdrop())}}function It(t,e){1&t&&(i.Xb(0,"mat-drawer-content"),i.mc(1,2),i.Wb())}const Dt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Pt=["mat-drawer","mat-drawer-content","*"];function Nt(t,e){if(1&t){const t=i.Yb();i.Xb(0,"div",2),i.fc("click",(function(){return i.uc(t),i.jc()._onBackdropClicked()})),i.Wb()}if(2&t){const t=i.jc();i.Ib("mat-drawer-shown",t._isShowingBackdrop())}}function Mt(t,e){1&t&&(i.Xb(0,"mat-sidenav-content",3),i.mc(1,2),i.Wb())}const Ft=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Lt=["mat-sidenav","mat-sidenav-content","*"],Vt={transformDrawer:Object(y.m)("transform",[Object(y.j)("open, open-instant",Object(y.k)({transform:"none",visibility:"visible"})),Object(y.j)("void",Object(y.k)({"box-shadow":"none",visibility:"hidden"})),Object(y.l)("void => open-instant",Object(y.e)("0ms")),Object(y.l)("void <=> open, open-instant => void",Object(y.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Bt(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const zt=new i.s("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Ht=new i.s("MAT_DRAWER_CONTAINER");let Ut=(()=>{class t extends yt.a{constructor(t,e,n,i,s){super(n,i,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.i),i.Rb(Object(i.V)(()=>Wt)),i.Rb(i.m),i.Rb(yt.b),i.Rb(i.B))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&i.Ac("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[i.Bb],ngContentSelectors:Rt,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(0))},encapsulation:2,changeDetection:0}),t})(),$t=(()=>{class t{constructor(t,e,n,s,r,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=s,this._ngZone=r,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new g.a,this._animationEnd=new g.a,this._animationState="void",this.openedChange=new i.p(!0),this._destroyed=new g.a,this.onPositionChanged=new i.p,this._modeChanged=new g.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(xt.a)(this._elementRef.nativeElement,"keydown").pipe(Object(St.a)(t=>t.keyCode===wt.g&&!this.disableClose&&!Object(wt.s)(t)),Object(_.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(Ot.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(vt.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(vt.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(vt.c)(t))}get _openedStream(){return this.openedChange.pipe(Object(St.a)(t=>t),Object(bt.a)(()=>{}))}get openedStart(){return this._animationStarted.pipe(Object(St.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(bt.a)(()=>{}))}get _closedStream(){return this.openedChange.pipe(Object(St.a)(t=>!t),Object(bt.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(Object(St.a)(t=>t.fromState!==t.toState&&"void"===t.toState),Object(bt.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(b.a)(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(v.f),i.Rb(v.e),i.Rb(at.a),i.Rb(i.B),i.Rb(p.d,8),i.Rb(Ht,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&i.Jb("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(i.Fb("align",null),i.Hc("@transform",e._animationState),i.Ib("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:Rt,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(i.nc(),i.Xb(0,"div",0),i.mc(1),i.Wb())},encapsulation:2,data:{animation:[Vt.transformDrawer]},changeDetection:0}),t})(),Wt=(()=>{class t{constructor(t,e,n,s,r,o=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=s,this._animationMode=a,this._drawers=new i.F,this.backdropClick=new i.p,this._destroyed=new g.a,this._doCheckSubject=new g.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new g.a,t&&t.change.pipe(Object(_.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe(Object(_.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(vt.c)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(vt.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(kt.a)(this._allDrawers),Object(_.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(kt.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Object(Et.a)(10),Object(_.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const n=this._left._width;t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const n=this._right._width;e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(St.a)(t=>t.fromState!==t.toState),Object(_.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(_.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(_.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(b.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(_.a)(Object(Ct.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&Bt("end"),this._end=t):(null!=this._start&&Bt("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(Tt.b,8),i.Rb(i.m),i.Rb(i.B),i.Rb(i.i),i.Rb(yt.d),i.Rb(zt),i.Rb(jt.a,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var s;1&t&&(i.Kb(n,Ut,!0),i.Kb(n,$t,!0)),2&t&&(i.qc(s=i.gc())&&(e._content=s.first),i.qc(s=i.gc())&&(e._allDrawers=s))},viewQuery:function(t,e){var n;1&t&&i.Ic(Ut,!0),2&t&&i.qc(n=i.gc())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&i.Ib("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i.Db([{provide:Ht,useExisting:t}])],ngContentSelectors:Pt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(i.nc(Dt),i.Bc(0,At,1,2,"div",0),i.mc(1),i.mc(2,1),i.Bc(3,It,2,0,"mat-drawer-content",1)),2&t&&(i.oc("ngIf",e.hasBackdrop),i.Eb(3),i.oc("ngIf",!e._content))},directives:[p.k,Ut],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})(),qt=(()=>{class t extends Ut{constructor(t,e,n,i,s){super(t,e,n,i,s)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.i),i.Rb(Object(i.V)(()=>Kt)),i.Rb(i.m),i.Rb(yt.b),i.Rb(i.B))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&i.Ac("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[i.Bb],ngContentSelectors:Rt,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(0))},encapsulation:2,changeDetection:0}),t})(),Gt=(()=>{class t extends $t{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(vt.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(vt.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(vt.f)(t)}}return t.\u0275fac=function(e){return Xt(e||t)},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(i.Fb("align",null),i.Ac("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),i.Ib("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.Bb],ngContentSelectors:Rt,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(i.nc(),i.Xb(0,"div",0),i.mc(1),i.Wb())},encapsulation:2,data:{animation:[Vt.transformDrawer]},changeDetection:0}),t})();const Xt=i.Zb(Gt);let Kt=(()=>{class t extends Wt{}return t.\u0275fac=function(e){return Zt(e||t)},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var s;1&t&&(i.Kb(n,qt,!0),i.Kb(n,Gt,!0)),2&t&&(i.qc(s=i.gc())&&(e._content=s.first),i.qc(s=i.gc())&&(e._allDrawers=s))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&i.Ib("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[i.Db([{provide:Ht,useExisting:t}]),i.Bb],ngContentSelectors:Lt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(i.nc(Ft),i.Bc(0,Nt,1,2,"div",0),i.mc(1),i.mc(2,1),i.Bc(3,Mt,2,0,"mat-sidenav-content",1)),2&t&&(i.oc("ngIf",e.hasBackdrop),i.Eb(3),i.oc("ngIf",!e._content))},directives:[p.k,qt,yt.a],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})();const Zt=i.Zb(Kt);let Yt=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[p.c,m.e,yt.c,at.b],m.e]}),t})();n("0EQZ");var Qt=n("3Pt+");let Jt=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(vt.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(vt.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Fb("aria-orientation",e.vertical?"vertical":"horizontal"),i.Ib("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),te=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[m.e],m.e]}),t})();const ee=["*"],ne=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ie=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class se{}const re=Object(m.t)(Object(m.s)(se));class oe{}const ae=Object(m.s)(oe);let le=(()=>{class t extends re{constructor(){super(...arguments),this._stateChanges=new g.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return ce(e||t)},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i.Bb,i.Cb],ngContentSelectors:ee,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const ce=i.Zb(le);let ue=(()=>{class t extends re{constructor(t){super(),this._elementRef=t,this._stateChanges=new g.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i.Bb,i.Cb],ngContentSelectors:ee,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),he=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),de=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),pe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),me=(()=>{class t extends ae{constructor(t,e,n,i){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new g.a,this._disabled=!1,this._isInteractiveList=!!(n||i&&"action-list"===i._getListType()),this._list=n||i;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(_.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(vt.c)(t)}ngAfterContentInit(){Object(m.w)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.i),i.Rb(le,8),i.Rb(ue,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var s;1&t&&(i.Kb(n,he,!0),i.Kb(n,de,!0),i.Kb(n,m.f,!0)),2&t&&(i.qc(s=i.gc())&&(e._avatar=s.first),i.qc(s=i.gc())&&(e._icon=s.first),i.qc(s=i.gc())&&(e._lines=s))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&i.Ib("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.Bb],ngContentSelectors:ie,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(i.nc(ne),i.Xb(0,"div",0),i.Sb(1,"div",1),i.mc(2),i.Xb(3,"div",2),i.mc(4,1),i.Wb(),i.mc(5,2),i.Wb()),2&t&&(i.Eb(1),i.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[m.m],encapsulation:2,changeDetection:0}),t})(),fe=(()=>{class t{}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},imports:[[m.g,m.n,m.e,m.l,p.c],m.g,m.e,m.l,te]}),t})(),ge=(()=>{class t{constructor(t){this.breakpointObserver=t,this.isHandset$=this.breakpointObserver.observe(w.b.Handset).pipe(Object(bt.a)(t=>t.matches),Object(_t.a)())}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(w.a))},t.\u0275cmp=i.Lb({type:t,selectors:[["app-side-nav"]],decls:32,vars:9,consts:[[1,"sidenav-container"],[1,"sidenav",3,"mode","opened"],["drawer",""],[2,"padding-bottom","45px"],["matSubheader",""],["mat-list-item","","routerLink","/status","href","#"],["routerLink","/quick-play","mat-list-item","","href","#"],["mat-list-item","","routerLink","/screens","href","#"],[1,"playing"],[1,"playing__art"],[1,"playing__song"],[2,"padding","10px","max-height","420px"]],template:function(t,e){1&t&&(i.Xb(0,"mat-sidenav-container",0),i.Xb(1,"mat-sidenav",1,2),i.kc(3,"async"),i.kc(4,"async"),i.kc(5,"async"),i.Xb(6,"mat-nav-list",3),i.Sb(7,"mat-divider"),i.Xb(8,"h2",4),i.Dc(9,"Admin"),i.Wb(),i.Xb(10,"a",5),i.Xb(11,"i"),i.Xb(12,"mat-icon"),i.Dc(13,"data_usage"),i.Wb(),i.Wb(),i.Dc(14," Status"),i.Wb(),i.Xb(15,"a",6),i.Xb(16,"i"),i.Xb(17,"mat-icon"),i.Dc(18,"add_to_queue"),i.Wb(),i.Wb(),i.Dc(19," Quick Play "),i.Wb(),i.Xb(20,"a",7),i.Xb(21,"i"),i.Xb(22,"mat-icon"),i.Dc(23,"list"),i.Wb(),i.Wb(),i.Dc(24," Screens"),i.Wb(),i.Wb(),i.Xb(25,"mat-nav-list"),i.Xb(26,"section",8),i.Sb(27,"div",9),i.Sb(28,"div",10),i.Wb(),i.Wb(),i.Wb(),i.Xb(29,"mat-sidenav-content"),i.Xb(30,"div",11),i.Sb(31,"router-outlet"),i.Wb(),i.Wb(),i.Wb()),2&t&&(i.Eb(1),i.oc("mode",i.lc(4,5,e.isHandset$)?"over":"side")("opened",!1===i.lc(5,7,e.isHandset$)),i.Fb("role",i.lc(3,3,e.isHandset$)?"dialog":"navigation"))},directives:[Kt,Gt,le,Jt,pe,me,r.c,ft.a,qt,r.e],pipes:[p.b],styles:[".sidenav-container[_ngcontent-%COMP%]{max-height:460px;min-height:460px}.sidenav[_ngcontent-%COMP%]{width:200px;background:#282828}.sidenav[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{background:inherit}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;z-index:1}.playing[_ngcontent-%COMP%]{background:#282828;position:absolute;bottom:0;display:flex;flex-flow:row nowrap;align-items:center}.playing__art[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px;height:50px}.playing__song[_ngcontent-%COMP%]{color:#aaa;padding-left:15px;display:flex;flex-flow:column wrap}.playing__song[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#aaa}.playing__song[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.playing__add[_ngcontent-%COMP%]{margin-left:auto;padding-right:15px;color:#aaa}@media (max-width:768px){.playing[_ngcontent-%COMP%]{border-top:1px solid #181818}}"]}),t})();var be=n("PqYM"),_e=n("kmnG"),ye=n("d3UM"),ve=n("5RNC"),we=n("GFHR");function xe(t,e){1&t&&(i.Xb(0,"mat-icon",18),i.Dc(1,"repeat"),i.Wb())}function Ce(t,e){1&t&&(i.Xb(0,"mat-icon"),i.Dc(1,"repeat"),i.Wb())}function Se(t,e){if(1&t){const t=i.Yb();i.Xb(0,"a",19),i.fc("click",(function(){i.uc(t);const e=i.jc(3);return e.resumeOrPause(e.isPaused)})),i.Xb(1,"mat-icon"),i.Dc(2,"pause"),i.Wb(),i.Wb()}}function Oe(t,e){if(1&t){const t=i.Yb();i.Xb(0,"a",20),i.fc("click",(function(){i.uc(t);const e=i.jc(3);return e.resumeOrPause(e.isPaused)})),i.Xb(1,"mat-icon"),i.Dc(2,"play_arrow"),i.Wb(),i.Wb()}}function ke(t,e){if(1&t){const t=i.Yb();i.Xb(0,"div",6),i.Xb(1,"a",7),i.fc("click",(function(){i.uc(t);const e=i.jc(2);return e.repeat(e.selectedScreenName)})),i.Bc(2,xe,2,0,"ng-template",8),i.kc(3,"async"),i.Bc(4,Ce,2,0,"ng-template",null,9,i.Cc),i.Wb(),i.Xb(6,"a",10),i.fc("click",(function(){i.uc(t);const e=i.jc(2);return e.stop(e.selectedScreenName)})),i.Xb(7,"mat-icon"),i.Dc(8,"stop"),i.Wb(),i.Wb(),i.Bc(9,Se,3,0,"a",11),i.kc(10,"async"),i.Bc(11,Oe,3,0,"a",12),i.kc(12,"async"),i.Wb(),i.Xb(13,"div",13),i.Xb(14,"div",14),i.Dc(15),i.Wb(),i.Xb(16,"div",15),i.Xb(17,"mat-slider",16),i.fc("ngModelChange",(function(e){i.uc(t);const n=i.jc(2);return n.startCurrentTime+(n.ticks=e)}))("change",(function(e){return i.uc(t),i.jc(2).onSliderChange(e)})),i.Wb(),i.Wb(),i.Xb(18,"div",17),i.Dc(19),i.kc(20,"minuteSeconds"),i.kc(21,"async"),i.Wb(),i.Wb()}if(2&t){const t=i.rc(5),e=i.jc(2);var n;const a=null==(n=i.lc(3,11,e.screen$))?null:n.repeat;var s;const l=!(null!=(s=i.lc(10,13,e.screen$))&&s.isPaused);var r;const c=null==(r=i.lc(12,15,e.screen$))?null:r.isPaused;var o;i.Eb(2),i.oc("ngIf",a)("ngIfElse",t),i.Eb(7),i.oc("ngIf",l),i.Eb(2),i.oc("ngIf",c),i.Eb(4),i.Gc(" ",e.getHours(e.startCurrentTime+e.ticks),":",e.getMinutes(e.startCurrentTime+e.ticks)," :",e.getSeconds(e.startCurrentTime+e.ticks),""),i.Eb(2),i.oc("displayWith",e.formatSliderLabel)("max",e.sliderCap)("ngModel",e.startCurrentTime+e.ticks),i.Eb(2),i.Ec(i.lc(20,17,null==(o=i.lc(21,19,e.screen$))?null:o.duration))}}function Ee(t,e){if(1&t&&(i.Xb(0,"mat-option",21),i.Dc(1),i.Wb()),2&t){const t=e.$implicit;i.oc("value",t.screenName),i.Eb(1),i.Fc(" ",t.screenName," ")}}function je(t,e){if(1&t){const t=i.Yb();i.Xb(0,"section",1),i.Bc(1,ke,22,21,"ng-template",2),i.kc(2,"async"),i.Xb(3,"div",3),i.Xb(4,"mat-form-field"),i.Xb(5,"mat-label"),i.Dc(6,"Selected Screen"),i.Wb(),i.Xb(7,"mat-select",4),i.fc("ngModelChange",(function(e){return i.uc(t),i.jc().selectedScreenName=e}))("ngModelChange",(function(e){return i.uc(t),i.jc().onSelectionChange(e)})),i.Bc(8,Ee,2,2,"mat-option",5),i.kc(9,"async"),i.Wb(),i.Wb(),i.Wb(),i.Wb()}if(2&t){const t=i.jc();i.Eb(1),i.oc("ngIf",i.lc(2,3,t.screen$)),i.Eb(6),i.oc("ngModel",t.selectedScreenName),i.Eb(1),i.oc("ngForOf",i.lc(9,5,t.screens$))}}let Te=(()=>{class t{constructor(t,e){this.nuiService=t,this.store=e,this.sliderCap=0,this.startCurrentTime=0,this.ticks=0}stop(t){this.nuiService.stopVideo(t)}onSelectionChange(t){this.selectedScreenName=t,this.store.dispatch(new l.e(t));const e=this;setTimeout(()=>{e.nuiService.requestDuiState(this.selectedScreenName)},500)}ngOnInit(){this.screen$.pipe(Object(Ot.a)()).subscribe(t=>{t&&(this.sub&&(this.ticks=0,this.sub.unsubscribe()),this.sliderCap=Math.floor(t.duration),this.isPaused=t.isPaused,t.isPaused||this.startTimer(),this.startCurrentTime=t.ended?this.sliderCap:Math.floor(t.currentTime))})}onSliderChange(t){this.startCurrentTime=t.value,this.nuiService.setVideoTime(this.selectedScreenName,t.value);const e=this;setTimeout(()=>{e.nuiService.requestDuiState(this.selectedScreenName)},500)}repeat(t){this.nuiService.repeatVideo(t);const e=this;setTimeout(()=>{e.nuiService.requestDuiState(this.selectedScreenName)},250)}resumeOrPause(t){t?this.nuiService.resumeVideo(this.selectedScreenName):this.nuiService.pauseVideo(this.selectedScreenName);const e=this;setTimeout(()=>{e.nuiService.requestDuiState(this.selectedScreenName)},1e3)}formatSliderLabel(t){const e=Math.floor(t/60/60),n=e<=9?"0"+e:e,i=Math.floor(t/60)%60,s=i<=9?"0"+i:i,r=Math.floor(t%60);return`${n}:${s}:${r<=9?"0"+r:r}`}getSeconds(t){return this.pad(t%60)}getMinutes(t){return this.pad(Math.floor(t/60)%60)}getHours(t){return this.pad(Math.floor(t/60/60))}pad(t){return t<=9?"0"+t:t}startTimer(){this.timer=Object(be.a)(1,1e3),this.sub=this.timer.subscribe(t=>{this.ticks=t,t+this.startCurrentTime>=this.sliderCap&&this.sub.unsubscribe()})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(ot.a),i.Rb(u.g))},t.\u0275cmp=i.Lb({type:t,selectors:[["app-current-track"]],decls:2,vars:3,consts:[["class","current-track",4,"ngIf"],[1,"current-track"],[3,"ngIf"],[1,"current-track__screenCtrl"],["name","screen",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"current-track__actions"],["mat-icon-button","",1,"repeat",3,"click"],[3,"ngIf","ngIfElse"],["isNotRepeated",""],["mat-icon-button","",1,"stop",3,"click"],["class","play","mat-icon-button","","aria-label","Pause or Resume",3,"click",4,"ngIf"],["class","play","mat-icon-button","","aria-label","Resume",3,"click",4,"ngIf"],[1,"current-track__progress"],[1,"current-track__progress__start"],[1,"current-track__progress__bar"],["color","primary","min","0","step","1","thumbLabel","",3,"displayWith","max","ngModel","ngModelChange","change"],[1,"current-track__progress__finish"],["color","accent"],["mat-icon-button","","aria-label","Pause or Resume",1,"play",3,"click"],["mat-icon-button","","aria-label","Resume",1,"play",3,"click"],[3,"value"]],template:function(t,e){1&t&&(i.Bc(0,je,10,7,"section",0),i.kc(1,"async")),2&t&&i.oc("ngIf",i.lc(1,1,e.screens$))},directives:[p.k,_e.c,_e.g,ye.a,Qt.j,Qt.m,p.j,f.a,ft.a,ve.a,m.i],pipes:[p.b,we.a],styles:["mat-form-field[_ngcontent-%COMP%]{width:90px;max-width:90px;max-height:50px}.mat-accent[_ngcontent-%COMP%] .mat-slider-thumb-label-text[_ngcontent-%COMP%]{color:azure!important}.current-track[_ngcontent-%COMP%]{background:#282828;border-top:1px solid #181818;padding:15px 45px 5px;display:flex;flex-flow:row wrap;align-items:center}.current-track__actions[_ngcontent-%COMP%]{padding-right:20px;padding-left:10px;width:5%;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center}.current-track__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:24px;color:#c8c8c8}.current-track__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.current-track__actions[_ngcontent-%COMP%] .play[_ngcontent-%COMP%]{font-size:36px}.current-track__screenCtrl[_ngcontent-%COMP%]{display:flex;flex-flow:row;justify-content:space-between;align-items:center;color:azure;font-size:medium}.current-track__progress__start[_ngcontent-%COMP%]{width:10%;padding-left:8%;display:flex}.current-track__progress[_ngcontent-%COMP%]{width:70%;padding:0 30px;color:#aaa;font-size:11px;display:flex;flex-flow:row;justify-content:space-between;align-items:center}.current-track__progress__bar[_ngcontent-%COMP%]{width:80%;padding:0 15px}.current-track__progress[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:100%;padding:0 15px}"]}),Object(M.a)([Object(u.d)(l.a.getStatuses)],t.prototype,"screens$",void 0),Object(M.a)([Object(u.d)(l.a.getControlledScreen)],t.prototype,"screen$",void 0),t})();function Re(t,e){1&t&&(i.Xb(0,"div",1),i.Xb(1,"div",2),i.Xb(2,"div",3),i.Sb(3,"app-header"),i.Sb(4,"app-side-nav"),i.Sb(5,"app-current-track"),i.Wb(),i.Wb(),i.Wb())}let Ae=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.http=e,this.store=n,this.snackBar=i,this.updateCheckService=s,this.appVisible=!1,this.checkedForUpdates=!1}handleNUIMessage(t){if(t){if("HypnonemaNUI.ShowUI"===t.data.type){if(this.checkedForUpdates||(this.updateCheckService.check(t.data.hypnonemaVersion),this.checkedForUpdates=!0),this.store.dispatch(new l.f(!!t.data.isAceAllowed&&t.data.isAceAllowed)),!t.data.screens)return this.router.navigateByUrl("screens"),void(this.appVisible=!0);this.store.dispatch(new l.h(t.data.screens)),this.router.navigateByUrl("quick-play"),this.appVisible=!0}"HypnonemaNUI.HideUI"===t.data.type&&(this.appVisible=!1,this.store.dispatch(new l.b)),"HypnonemaNUI.CreatedScreen"===t.data.type&&(this.store.dispatch(new l.c(t.data.screen)),this.appVisible&&(this.snackBar.open("Screen successfully created!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.EditedScreen"===t.data.type&&(this.store.dispatch(new l.j(t.data.screen)),this.appVisible&&(this.snackBar.open("Screen successfully updated!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.DeletedScreen"===t.data.type&&(this.store.dispatch(new l.d(t.data.screenName)),this.appVisible&&(this.snackBar.open("Screen successfully deleted!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.UpdateStatuses"===t.data.type&&(this.store.dispatch(new l.g(!1)),this.store.dispatch(new l.k(t.data.screenStates)),this.appVisible&&t.data.showSnackBar&&this.snackBar.open("Successfully fetched status!","Dismiss",{duration:2500}))}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(r.a),i.Rb(c.a),i.Rb(u.g),i.Rb(D),i.Rb(rt))},t.\u0275cmp=i.Lb({type:t,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&i.fc("message",(function(t){return e.handleNUIMessage(t)}),!1,i.tc)},decls:1,vars:1,consts:[["id","wrapper",4,"ngIf"],["id","wrapper"],["id","wrapper2"],["id","content"]],template:function(t,e){1&t&&i.Bc(0,Re,6,0,"div",0),2&t&&i.oc("ngIf",e.appVisible)},directives:[p.k,gt,ge,Te],styles:[""]}),t})();var Ie=n("JIr8"),De=n("vkgz");const Pe=new i.s("NGXS_DEVTOOLS_OPTIONS");let Ne=(()=>{class t{constructor(t,e){this._options=t,this._injector=e,this.devtoolsExtension=null,this.windowObj="undefined"!=typeof window?window:{};const n=this.windowObj.__REDUX_DEVTOOLS_EXTENSION__||this.windowObj.devToolsExtension;n&&(this.devtoolsExtension=n.connect(t),this.devtoolsExtension.subscribe(t=>this.dispatched(t)))}get store(){return this._injector.get(u.g)}handle(t,e,n){return!this.devtoolsExtension||this._options&&this._options.disabled?n(t,e):n(t,e).pipe(Object(Ie.a)(n=>{const i=this.store.snapshot();throw this.sendToDevTools(t,e,i),n}),Object(De.a)(n=>{this.sendToDevTools(t,e,n)}))}sendToDevTools(t,e,n){const i=Object(u.h)(e);"@@INIT"===i?this.devtoolsExtension.init(t):this.devtoolsExtension.send(Object.assign({},e,{type:i}),n)}dispatched(t){if("DISPATCH"===t.type){if("JUMP_TO_ACTION"===t.payload.type||"JUMP_TO_STATE"===t.payload.type){const e=JSON.parse(t.state);this.store.reset(e)}else if("TOGGLE_ACTION"===t.payload.type)console.warn("Skip is not supported at this time.");else if("IMPORT_STATE"===t.payload.type){const{actionsById:e,computedStates:n,currentStateIndex:i}=t.payload.nextLiftedState;this.devtoolsExtension.init(n[0].state),Object.keys(e).filter(t=>"0"!==t).forEach(t=>this.devtoolsExtension.send(e[t],n[t].state)),this.store.reset(n[i].state)}}else if("ACTION"===t.type){const e=JSON.parse(t.payload);this.store.dispatch(e)}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Pe),i.bc(i.t))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();function Me(t){return Object.assign({name:"NGXS"},t)}const Fe=new i.s("USER_OPTIONS");let Le=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:u.b,useClass:Ne,multi:!0},{provide:Fe,useValue:e},{provide:Pe,useFactory:Me,deps:[Fe]}]}}}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t})();const Ve=new i.s("NGXS_LOGGER_PLUGIN_OPTIONS"),Be=(t,e)=>{return n=e-t.toString().length,new Array(n+1).join("0")+t;var n};class ze{constructor(t,e,n){this.action=t,this.store=e,this.logWriter=n}dispatched(t){const e=Object(u.h)(this.action),n=(i=new Date,Be(i.getHours(),2)+":"+Be(i.getMinutes(),2)+":"+Be(i.getSeconds(),2)+"."+Be(i.getMilliseconds(),3));var i;this.logWriter.startGroup(`action ${e} @ ${n}`),this._hasPayload(this.action)&&this.logWriter.logGrey("payload",Object.assign({},this.action)),this.logWriter.logGrey("prev state",t)}completed(t){this.logWriter.logGreen("next state",t),this.logWriter.endGroup()}errored(t){this.logWriter.logRedish("next state after error",this.store.snapshot()),this.logWriter.logRedish("error",t),this.logWriter.endGroup()}_hasPayload(t){return this._getNonEmptyProperties(t).length>0}_getNonEmptyProperties(t){return Object.keys(t).map(e=>t[e]).filter(t=>!!t)}}class He{constructor(t){this.options=t,this.options=this.options||{},this.logger=t.logger||console}startGroup(t){const e=this.options.collapsed?this.logger.groupCollapsed:this.logger.group;try{e.call(this.logger,t)}catch(n){console.log(t)}}endGroup(){try{this.logger.groupEnd()}catch(t){this.logger.log("\u2014\u2014 log end \u2014\u2014")}}logGrey(t,e){this.log(t,"color: #9E9E9E; font-weight: bold",e)}logGreen(t,e){this.log(t,"color: #4CAF50; font-weight: bold",e)}logRedish(t,e){this.log(t,"color: #FD8182; font-weight: bold",e)}log(t,e,n){this.isIE()?this.logger.log(t,n):this.logger.log("%c "+t,e,n)}isIE(){const t="undefined"!=typeof window&&window.navigator.userAgent?window.navigator.userAgent:"";let e=!1;const n=t.indexOf("MSIE "),i=t.indexOf("Trident/");return(n>-1||i>-1)&&(e=!0),e}}let Ue=(()=>{class t{constructor(t,e){this._options=t,this._injector=e}handle(t,e,n){if(this._options.disabled)return n(t,e);const i=new He(this._options),s=this._injector.get(u.g),r=new ze(e,s,i);return r.dispatched(t),n(t,e).pipe(Object(De.a)(t=>{r.completed(t)}),Object(Ie.a)(t=>{throw r.errored(t),t}))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Ve),i.bc(i.t))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const $e=new i.s("LOGGER_USER_OPTIONS");function We(t){const e={logger:console,collapsed:!1,disabled:!1};return Object.assign({},e,t)}let qe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:u.b,useClass:Ue,multi:!0},{provide:$e,useValue:e},{provide:Ve,useFactory:We,deps:[$e]}]}}}return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t})();var Ge=n("PCNd");let Xe=(()=>{class t{}return t.\u0275mod=i.Pb({type:t,bootstrap:[Ae]}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[],imports:[[Ge.a,a,s.a,jt.b,c.b,st.forRoot(),w.c,mt,f.c,Yt,ft.b,fe,A,ve.b,u.c.forRoot([l.a],{developmentMode:!1}),Le.forRoot({}),qe.forRoot({disabled:!0}),Qt.f,m.j,ye.b]]}),t})();Object(i.U)(),s.d().bootstrapModule(Xe).catch(t=>console.error(t))},zn8P: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="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/main-es5.js b/resources/Hypnonema/client/html/main-es5.js deleted file mode 100644 index 4d90d39b0..000000000 --- a/resources/Hypnonema/client/html/main-es5.js +++ /dev/null @@ -1 +0,0 @@ -function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure undefined")}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(l){r=!0,a=l}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _createForOfIteratorHelper(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=_unsupportedIterableToArray(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r,a=!0,o=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(o),c=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this)).element=t instanceof i.m?t.nativeElement:t,r}return n}(o),u=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&a(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof s?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof l?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),h=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a,o){var s;return _classCallCheck(this,n),(s=e.call(this)).outletElement=t,s._componentFactoryResolver=i,s._appRef=r,s._defaultInjector=a,s.attachDomPortal=function(t){if(!s._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=s._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),s.outletElement.appendChild(e),_get(_getPrototypeOf(n.prototype),"setDisposeFn",_assertThisInitialized(s)).call(_assertThisInitialized(s),(function(){i.parentNode&&i.parentNode.replaceChild(e,i)}))},s._document=o,s}return _createClass(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=n.indexOf(i);-1!==t&&n.remove(t)})),i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(u),f=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,a){var o;return _classCallCheck(this,n),(o=e.call(this))._componentFactoryResolver=t,o._viewContainerRef=r,o._isInitialized=!1,o.attached=new i.p,o.attachDomPortal=function(t){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=o._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(o)),e.parentNode.insertBefore(i,e),o._getRootNode().appendChild(e),_get(_getPrototypeOf(n.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){i.parentNode&&i.parentNode.replaceChild(e,i)}))},o._document=a,o}return _createClass(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return r.destroy()})),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(u);return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.k),i.Rb(i.Q),i.Rb(r.d))},t.\u0275dir=i.Mb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Bb]}),t}(),d=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t}(),p=function(){function t(e,n){_classCallCheck(this,t),this._parentInjector=e,this._customTokens=n}return _createClass(t,[{key:"get",value:function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}]),t}()},"/rnm":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("fXoL"),r=n("tk/3"),a=function(){var t=function(){function t(e){_classCallCheck(this,t),this.http=e}return _createClass(t,[{key:"repeatVideo",value:function(t){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnToggleRepeat"),{screenName:t}).subscribe((function(){}),(function(t){return console.log(t.toString())}))}},{key:"editScreen",value:function(t,e,n,i,r,a,o,s,l,c,u,h,f,d,p,m,v,g,y,_){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnEditScreen"),{id:e,is3DRendered:n,screenName:t,alwaysOn:i,modelName:r,renderTargetName:a,globalVolume:o,soundAttenuation:s,soundMinDistance:l,soundMaxDistance:c,positionX:u,positionY:h,positionZ:f,rotationX:d,rotationY:p,rotationZ:m,scaleX:v,scaleY:g,scaleZ:y,is3DAudioEnabled:_}).subscribe((function(){}),(function(t){return console.log(t)}))}},{key:"closeScreen",value:function(t){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnCloseScreen"),{screenName:t}).subscribe((function(){}),(function(t){return console.log(JSON.stringify(t))}))}},{key:"stopVideo",value:function(t){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnStopVideo"),{screenName:t}).subscribe((function(){}),(function(t){console.log(t)}))}},{key:"hideNUI",value:function(){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnHideNUI"),{}).subscribe((function(){}),(function(t){console.log(t)}))}},{key:"resumeVideo",value:function(t){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnResume"),{screenName:t}).subscribe((function(){}),(function(t){return console.log(t)}))}},{key:"pauseVideo",value:function(t){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnPause"),{screenName:t}).subscribe((function(){}),(function(t){return console.log(t)}))}},{key:"requestDuiState",value:function(t){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnRequestState"),{}).subscribe((function(){}),(function(t){return console.log(t)}))}},{key:"deleteScreen",value:function(t){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnDeleteScreen"),{screenName:t}).subscribe((function(){}),(function(t){return console.log(t)}))}},{key:"createScreen",value:function(t,e,n,i,r,a,o,s,l,c,u,h,f,d,p,m,v,g,y){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnCreateScreen"),{screenName:t,alwaysOn:e,modelName:l,renderTargetName:c,globalVolume:n,soundAttenuation:i,soundMinDistance:r,soundMaxDistance:a,is3DRendered:o,positionX:u,positionY:h,positionZ:f,rotationX:d,rotationY:p,rotationZ:m,scaleX:v,scaleY:g,scaleZ:y,is3DAudioEnabled:s}).subscribe((function(){}),(function(t){console.log(t)}))}},{key:"playVideo",value:function(t,e){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnPlay"),{videoUrl:e,screen:t}).subscribe((function(){}),(function(t){console.log(t)}))}},{key:"setVideoTime",value:function(t,e){this.http.post("http://".concat(window.location.hostname,"/Hypnonema.OnSeek"),{screenName:t,time:e}).subscribe((function(){}),(function(t){return console.log(t)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.bc(r.a))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q");function r(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(e,n){_classCallCheck(this,t),this.compare=e,this.keySelector=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}]),t}(),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,t)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return _createClass(n,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}]),n}(i.a)},0:function(t,e,n){t.exports=n("zUnb")},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return s}));var i=n("7+OI"),r=n("LRne"),a=n("XNiG");n("fXoL");var o=function t(){_classCallCheck(this,t)};function s(t){return t&&"function"==typeof t.connect}var l=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._data=t,i}return _createClass(n,[{key:"connect",value:function(){return Object(i.a)(this._data)?this._data:Object(r.a)(this._data)}},{key:"disconnect",value:function(){}}]),n}(o),c=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new a.a,i&&i.length&&(n?i.forEach((function(t){return e._markSelected(t)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),t}()},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("bHdf");function r(){return Object(i.a)(1)}},"0MNC":function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return T})),n.d(e,"c",(function(){return k}));var i,r,a,o=n("fXoL"),s=n("nLfN"),l=n("XNiG"),c=n("itXk"),u=n("GyhO"),h=n("HDdC"),f=n("IzEk"),d=n("7o/Q"),p=function(){function t(e){_classCallCheck(this,t),this.total=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new m(t,this.total))}}]),t}(),m=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(d.a),v=n("Kj3r"),g=n("lJxs"),y=n("JX91"),_=n("1G5W"),b=n("8LU1"),k=((i=function t(){_classCallCheck(this,t)}).\u0275mod=o.Pb({type:i}),i.\u0275inj=o.Ob({factory:function(t){return new(t||i)}}),i),C=new Set,w=((a=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!C.has(t))try{r||((r=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(r)),r.sheet&&(r.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),C.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||a)(o.bc(s.a))},a.\u0275prov=Object(o.Nb)({factory:function(){return new a(Object(o.bc)(s.a))},token:a,providedIn:"root"}),a);function S(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var x,O=((x=function(){function t(e,n){_classCallCheck(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new l.a}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return E(Object(b.b)(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,n=E(Object(b.b)(t)).map((function(t){return e._registerQuery(t).observable})),i=Object(c.a)(n);return(i=Object(u.a)(i.pipe(Object(f.a)(1)),i.pipe((function(t){return t.lift(new p(1))}),Object(v.a)(0)))).pipe(Object(g.a)((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new h.a((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(Object(y.a)(n),Object(g.a)((function(e){return{query:t,matches:e.matches}})),Object(_.a)(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}()).\u0275fac=function(t){return new(t||x)(o.bc(w),o.bc(o.B))},x.\u0275prov=Object(o.Nb)({factory:function(){return new x(Object(o.bc)(w),Object(o.bc)(o.B))},token:x,providedIn:"root"}),x);function E(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var T={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("l7GE"),r=n("ZUHj");function a(t){return function(e){return e.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var n=new s(t),i=Object(r.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),s=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t)).seenValue=!1,i}return _createClass(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(i.a)},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("XNiG"),r=n("9ppp"),a=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._value=t,i}return _createClass(n,[{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),n}(i.a)},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r.pending=!1,r}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(n("quSY").a))},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return Lt})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return zt})),n.d(e,"d",(function(){return Dt})),n.d(e,"e",(function(){return Et})),n.d(e,"f",(function(){return Ht})),n.d(e,"g",(function(){return w})),n.d(e,"h",(function(){return l})),n.d(e,"i",(function(){return y})),n.d(e,"j",(function(){return b})),n.d(e,"k",(function(){return k})),n.d(e,"l",(function(){return mt})),n.d(e,"m",(function(){return wt})),n.d(e,"n",(function(){return P})),n.d(e,"o",(function(){return Ut})),n.d(e,"p",(function(){return Ft})),n.d(e,"q",(function(){return O})),n.d(e,"r",(function(){return St}));var i=n("fXoL"),r=n("ofXK"),a=n("cp0P"),o=n("Cfvw"),s=n("lJxs"),l=new i.s("NgValueAccessor"),c={provide:l,useExisting:Object(i.V)((function(){return u})),multi:!0},u=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[i.Db([c])]}),t}(),h={provide:l,useExisting:Object(i.V)((function(){return d})),multi:!0},f=new i.s("CompositionEventMode"),d=function(){var t=function(){function t(e,n,i){var a;_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._compositionMode=i,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(a=Object(r.x)()?Object(r.x)().getUserAgent():"",!/android (\d+)/.test(a.toLowerCase())))}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m),i.Rb(f,8))},t.\u0275dir=i.Mb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.fc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[i.Db([h])]}),t}(),p=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t}),t}(),m=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(p);return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=i.Mb({type:t,features:[i.Bb]}),t}(),v=i.Zb(m);function g(){throw new Error("unimplemented")}var y=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return _createClass(n,[{key:"validator",get:function(){return g()}},{key:"asyncValidator",get:function(){return g()}}]),n}(p),_=function(){function t(e){_classCallCheck(this,t),this._cd=e}return _createClass(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),b=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return n}(_);return t.\u0275fac=function(e){return new(e||t)(i.Rb(y,2))},t.\u0275dir=i.Mb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Ib("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.Bb]}),t}(),k=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return n}(_);return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,2))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Ib("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.Bb]}),t}();function C(t){return null==t||0===t.length}var w=new i.s("NgValidators"),S=new i.s("NgAsyncValidators"),x=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,O=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"min",value:function(t){return function(e){if(C(e.value)||C(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return C(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return C(t.value)||x.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(C(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(C(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(E);return 0==e.length?null:function(t){return A(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(E);return 0==e.length?null:function(t){var n=function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(T);return Object(a.a)(n).pipe(Object(s.a)(A))}}}]),t}();function E(t){return null!=t}function T(t){var e=Object(i.vb)(t)?Object(o.a)(t):t;if(!Object(i.ub)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function A(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function j(t){return t.validate?function(e){return t.validate(e)}:t}function I(t){return t.validate?function(e){return t.validate(e)}:t}var R={provide:l,useExisting:Object(i.V)((function(){return P})),multi:!0},P=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Db([R])]}),t}(),D={provide:l,useExisting:Object(i.V)((function(){return M})),multi:!0},N=function(){var t=function(){function t(){_classCallCheck(this,t),this._accessors=[]}return _createClass(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),M=function(){var t=function(){function t(e,n,i,r){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return _createClass(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(y),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m),i.Rb(N),i.Rb(i.t))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Db([D])]}),t}(),F={provide:l,useExisting:Object(i.V)((function(){return L})),multi:!0},L=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.G),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.fc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Db([F])]}),t}(),V='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',B='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',z='\n
\n
\n \n
\n
',H=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(V))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '.concat(B,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(z))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(V))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(B))}},{key:"arrayParentException",value:function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}},{key:"disabledAttrWarning",value:function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(t,". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat("formControl"===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),U={provide:l,useExisting:Object(i.V)((function(){return W})),multi:!0},W=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=i.wb}return _createClass(t,[{key:"writeValue",value: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?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,a=0;a1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function $(t){return null!=t?O.compose(t.map(j)):null}function tt(t){return null!=t?O.composeAsync(t.map(I)):null}function et(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(i.wb)(e,n.currentValue)}var nt=[u,L,P,W,G,M];function it(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function rt(t,e){if(!e)return null;Array.isArray(e)||J(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach((function(e){var a;e.constructor===d?n=e:(a=e,nt.some((function(t){return a.constructor===t}))?(i&&J(t,"More than one built-in value accessor matches form control with"),i=e):(r&&J(t,"More than one custom value accessor matches form control with"),r=e))})),r||i||n||(J(t,"No valid value accessor for form control with"),null)}function at(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function ot(t){var e=lt(t)?t.validators:t;return Array.isArray(e)?$(e):e||null}function st(t,e){var n=lt(e)?e.asyncValidators:t;return Array.isArray(n)?tt(n):n||null}function lt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ct=function(){function t(e,n){_classCallCheck(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(t,[{key:"setValidators",value:function(t){this.validator=ot(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=st(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=T(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach((function(t){i=i instanceof ht?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof ft&&i.at(t)||null})),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new i.p,this.statusChanges=new i.p}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){lt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),ut=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(t=e.call(this,ot(r),st(a,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _createClass(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(ct),ht=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,ot(i),st(r,i))).controls=t,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return _createClass(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof ut?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){var e=this,n=!1;return this._forEachChild((function(i,r){n=n||e.contains(r)&&t(i)})),n}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},(function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e}))}},{key:"_reduceChildren",value:function(t,e){var n=t;return this._forEachChild((function(t,i){n=e(n,t,i)})),n}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(ct),ft=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,ot(i),st(r,i))).controls=t,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return _createClass(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value: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()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof ut?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value: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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=_createForOfIteratorHelper(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(ct),dt={provide:m,useExisting:Object(i.V)((function(){return mt}))},pt=Promise.resolve(null),mt=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var a;return _classCallCheck(this,n),(a=e.call(this)).submitted=!1,a._directives=[],a.ngSubmit=new i.p,a.form=new ht({},$(t),tt(r)),a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;pt.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),K(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;pt.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),at(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;pt.then((function(){var n=e._findContainer(t.path),i=new ht({});Y(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;pt.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;pt.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,it(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(m);return t.\u0275fac=function(e){return new(e||t)(i.Rb(w,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.fc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Db([dt]),i.Bb]}),t}(),vt=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return X(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return $(this._validators)}},{key:"asyncValidator",get:function(){return tt(this._asyncValidators)}}]),n}(m);return t.\u0275fac=function(e){return gt(e||t)},t.\u0275dir=i.Mb({type:t,features:[i.Bb]}),t}(),gt=i.Zb(vt),yt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '.concat(V,'\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 '))}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(B,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(z))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(B,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(z))}}]),t}(),_t={provide:m,useExisting:Object(i.V)((function(){return bt}))},bt=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof mt||yt.modelGroupParentException()}}]),n}(vt);return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,5),i.Rb(w,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.Db([_t]),i.Bb]}),t}(),kt={provide:y,useExisting:Object(i.V)((function(){return wt}))},Ct=Promise.resolve(null),wt=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,a,o){var s;return _classCallCheck(this,n),(s=e.call(this)).control=new ut,s._registered=!1,s.update=new i.p,s._parent=t,s._rawValidators=r||[],s._rawAsyncValidators=a||[],s.valueAccessor=rt(_assertThisInitialized(s),o),s}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){K(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof bt)&&this._parent instanceof vt?yt.formGroupNameException():this._parent instanceof bt||this._parent instanceof mt||yt.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||yt.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;Ct.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;Ct.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?X(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return $(this._rawValidators)}},{key:"asyncValidator",get:function(){return tt(this._rawAsyncValidators)}}]),n}(y);return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,9),i.Rb(w,10),i.Rb(S,10),i.Rb(l,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Db([kt]),i.Bb,i.Cb]}),t}(),St=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),xt=new i.s("NgModelWithFormControlWarning"),Ot={provide:m,useExisting:Object(i.V)((function(){return Et}))},Et=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var a;return _classCallCheck(this,n),(a=e.call(this))._validators=t,a._asyncValidators=r,a.submitted=!1,a.directives=[],a.form=null,a.ngSubmit=new i.p,a}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return K(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){at(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);Y(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);Y(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,it(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return Q(e)})),e.valueAccessor.registerOnTouched((function(){return Q(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&K(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=$(this._validators);this.form.validator=O.compose([this.form.validator,t]);var e=tt(this._asyncValidators);this.form.asyncValidator=O.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||H.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(m);return t.\u0275fac=function(e){return new(e||t)(i.Rb(w,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.fc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Db([Ot]),i.Bb,i.Cb]}),t}(),Tt={provide:m,useExisting:Object(i.V)((function(){return At}))},At=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return _createClass(n,[{key:"_checkParentType",value:function(){Rt(this._parent)&&H.groupParentException()}}]),n}(vt);return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,13),i.Rb(w,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.Db([Tt]),i.Bb]}),t}(),jt={provide:m,useExisting:Object(i.V)((function(){return It}))},It=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){Rt(this._parent)&&H.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return X(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return $(this._validators)}},{key:"asyncValidator",get:function(){return tt(this._asyncValidators)}}]),n}(m);return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,13),i.Rb(w,10),i.Rb(S,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.Db([jt]),i.Bb]}),t}();function Rt(t){return!(t instanceof At||t instanceof Et||t instanceof It)}var Pt={provide:y,useExisting:Object(i.V)((function(){return Dt}))},Dt=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,a,o,s){var l;return _classCallCheck(this,n),(l=e.call(this))._ngModelWarningConfig=s,l._added=!1,l.update=new i.p,l._ngModelWarningSent=!1,l._parent=t,l._rawValidators=r||[],l._rawAsyncValidators=a||[],l.valueAccessor=rt(_assertThisInitialized(l),o),l}return _createClass(n,[{key:"ngOnChanges",value:function(t){var e,r;this._added||this._setUpControl(),et(t,this.viewModel)&&(e=n,r=this._ngModelWarningConfig,Object(i.Y)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(H.ngModelWarning("formControlName"),e._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){!(this._parent instanceof At)&&this._parent instanceof vt?H.ngModelGroupException():this._parent instanceof At||this._parent instanceof Et||this._parent instanceof It||H.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){H.disabledAttrWarning()}},{key:"path",get:function(){return X(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return $(this._rawValidators)}},{key:"asyncValidator",get:function(){return tt(this._rawAsyncValidators)}}]),n}(y);return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,13),i.Rb(w,10),i.Rb(S,10),i.Rb(l,10),i.Rb(xt,8))},t.\u0275dir=i.Mb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Db([Pt]),i.Bb,i.Cb]}),t._ngModelWarningSentOnce=!1,t}(),Nt={provide:w,useExisting:Object(i.V)((function(){return Ft})),multi:!0},Mt={provide:w,useExisting:Object(i.V)((function(){return Lt})),multi:!0},Ft=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this.required?O.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Fb("required",e.required?"":null)},inputs:{required:"required"},features:[i.Db([Nt])]}),t}(),Lt=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(t){return this.required?O.requiredTrue(t):null}}]),n}(Ft);return t.\u0275fac=function(e){return Vt(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Fb("required",e.required?"":null)},features:[i.Db([Mt]),i.Bb]}),t}(),Vt=i.Zb(Lt),Bt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t}(),zt=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),i=null,r=null,a=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new ht(n,{asyncValidators:r,updateOn:a,validators:i})}},{key:"control",value:function(t,e,n){return new ut(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,r=t.map((function(t){return i._createControl(t)}));return new ft(r,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n}},{key:"_createControl",value:function(t){return t instanceof ut||t instanceof ht||t instanceof ft?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),Ht=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[N],imports:[Bt]}),t}(),Ut=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:xt,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[zt,N],imports:[Bt]}),t}()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("D0XW"),r=n("l7GE"),a=n("ZUHj"),o=function(){function t(e){_classCallCheck(this,t),this.durationSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.durationSelector))}}]),t}(),s=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).durationSelector=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(i){return this.destination.error(i)}var n=Object(a.a)(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,n,i){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(r.a),l=n("PqYM");function c(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return e=function(){return Object(l.a)(t,n)},function(t){return t.lift(new o(e))}}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("ZUHj"),r=n("l7GE"),a=n("51Dv"),o=n("lJxs"),s=n("Cfvw");function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(l((function(n,i){return Object(s.a)(t(n,i)).pipe(Object(o.a)((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}var c=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,t),this.project=e,this.concurrent=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}]),t}(),u=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=e.call(this,t)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(r.a)},"51Dv":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this)).parent=t,a.outerValue=i,a.outerIndex=r,a.index=0,a}return _createClass(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a)},"5RNC":function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return C}));var i=n("ofXK"),r=n("fXoL"),a=n("FKr1"),o=n("8LU1"),s=n("FtGj"),l=n("3Pt+"),c=n("R1ws"),u=n("nLfN"),h=n("quSY"),f=n("u47x"),d=n("cH1L"),p=["sliderWrapper"],m=Object(u.f)({passive:!1}),v={provide:l.h,useExisting:Object(r.V)((function(){return _})),multi:!0},g=function t(){_classCallCheck(this,t)},y=Object(a.v)(Object(a.r)(Object(a.t)((function t(e){_classCallCheck(this,t),this._elementRef=e})),"accent")),_=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,o,s,l,c,u){var f;return _classCallCheck(this,n),(f=e.call(this,t))._focusMonitor=i,f._changeDetectorRef=a,f._dir=o,f._animationMode=l,f._ngZone=c,f._invert=!1,f._max=100,f._min=0,f._step=1,f._thumbLabel=!1,f._tickInterval=0,f._value=null,f._vertical=!1,f.change=new r.p,f.input=new r.p,f.valueChange=new r.p,f.onTouched=function(){},f._percent=0,f._isSliding=!1,f._isActive=!1,f._tickIntervalPercent=0,f._sliderDimensions=null,f._controlValueAccessorChangeFn=function(){},f._dirChangeSubscription=h.a.EMPTY,f._pointerDown=function(t){f.disabled||f._isSliding||!b(t)&&0!==t.button||f._runInsideZone((function(){var e=f.value,n=k(t);f._isSliding=!0,f._lastPointerEvent=t,t.preventDefault(),f._focusHostElement(),f._onMouseenter(),f._bindGlobalEvents(t),f._focusHostElement(),f._updateValueFromPosition(n),f._valueOnSlideStart=f.value,f._pointerPositionOnStart=n,e!=f.value&&(f._emitInputEvent(),f._emitChangeEvent())}))},f._pointerMove=function(t){if(f._isSliding){t.preventDefault();var e=f.value;f._lastPointerEvent=t,f._updateValueFromPosition(k(t)),e!=f.value&&f._emitInputEvent()}},f._pointerUp=function(t){if(f._isSliding){var e=f._pointerPositionOnStart,n=k(t);t.preventDefault(),f._removeGlobalEvents(),f._valueOnSlideStart=f._pointerPositionOnStart=f._lastPointerEvent=null,f._isSliding=!1,f._valueOnSlideStart==f.value||f.disabled||!e||e.x===n.x&&e.y===n.y||f._emitChangeEvent()}},f._windowBlur=function(){f._lastPointerEvent&&f._pointerUp(f._lastPointerEvent)},f._document=u,f.tabIndex=parseInt(s)||0,f._runOutsizeZone((function(){var e=t.nativeElement;e.addEventListener("mousedown",f._pointerDown,m),e.addEventListener("touchstart",f._pointerDown,m)})),f}return _createClass(n,[{key:"focus",value:function(t){this._focusHostElement(t)}},{key:"blur",value:function(){this._blurHostElement()}},{key:"_shouldInvertMouseCoords",value:function(){return"rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis}},{key:"_getDirection",value:function(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}},{key:"ngOnInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){t._isActive=!!e&&"keyboard"!==e,t._changeDetectorRef.detectChanges()})),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe((function(){t._changeDetectorRef.markForCheck()})))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mousedown",this._pointerDown,m),t.removeEventListener("touchstart",this._pointerDown,m),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}},{key:"_onMouseenter",value:function(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}},{key:"_onFocus",value:function(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}},{key:"_onBlur",value:function(){this.onTouched()}},{key:"_onKeydown",value:function(t){if(!this.disabled&&!Object(s.s)(t)){var e=this.value;switch(t.keyCode){case s.l:this._increment(10);break;case s.k:this._increment(-10);break;case s.e:this.value=this.max;break;case s.h:this.value=this.min;break;case s.i:this._increment("rtl"==this._getDirection()?1:-1);break;case s.p:this._increment(1);break;case s.m:this._increment("rtl"==this._getDirection()?-1:1);break;case s.d:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}}},{key:"_onKeyup",value:function(){this._isSliding=!1}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_bindGlobalEvents",value:function(t){if(void 0!==this._document&&this._document){var e=this._document.body,n=b(t),i=n?"touchend":"mouseup";e.addEventListener(n?"touchmove":"mousemove",this._pointerMove,m),e.addEventListener(i,this._pointerUp,m),n&&e.addEventListener("touchcancel",this._pointerUp,m)}var r=this._getWindow();void 0!==r&&r&&r.addEventListener("blur",this._windowBlur)}},{key:"_removeGlobalEvents",value:function(){if(void 0!==this._document&&this._document){var t=this._document.body;t.removeEventListener("mousemove",this._pointerMove,m),t.removeEventListener("mouseup",this._pointerUp,m),t.removeEventListener("touchmove",this._pointerMove,m),t.removeEventListener("touchend",this._pointerUp,m),t.removeEventListener("touchcancel",this._pointerUp,m)}var e=this._getWindow();void 0!==e&&e&&e.removeEventListener("blur",this._windowBlur)}},{key:"_increment",value:function(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)}},{key:"_updateValueFromPosition",value:function(t){if(this._sliderDimensions){var e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{var n=this._calculateValue(e),i=Math.round((n-this.min)/this.step)*this.step+this.min;this.value=this._clamp(i,this.min,this.max)}}}},{key:"_emitChangeEvent",value:function(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}},{key:"_emitInputEvent",value:function(){this.input.emit(this._createChangeEvent())}},{key:"_updateTickIntervalPercent",value:function(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(30/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}},{key:"_createChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.value,e=new g;return e.source=this,e.value=t,e}},{key:"_calculatePercentage",value:function(t){return((t||0)-this.min)/(this.max-this.min)}},{key:"_calculateValue",value:function(t){return this.min+t*(this.max-this.min)}},{key:"_clamp",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(e,Math.min(t,n))}},{key:"_getSliderDimensions",value:function(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}},{key:"_focusHostElement",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_blurHostElement",value:function(){this._elementRef.nativeElement.blur()}},{key:"_runInsideZone",value:function(t){this._ngZone?this._ngZone.run(t):t()}},{key:"_runOutsizeZone",value:function(t){this._ngZone?this._ngZone.runOutsideAngular(t):t()}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"invert",get:function(){return this._invert},set:function(t){this._invert=Object(o.c)(t)}},{key:"max",get:function(){return this._max},set:function(t){this._max=Object(o.f)(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}},{key:"min",get:function(){return this._min},set:function(t){this._min=Object(o.f)(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}},{key:"step",get:function(){return this._step},set:function(t){this._step=Object(o.f)(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}},{key:"thumbLabel",get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=Object(o.c)(t)}},{key:"tickInterval",get:function(){return this._tickInterval},set:function(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?Object(o.f)(t,this._tickInterval):0}},{key:"value",get:function(){return null===this._value&&(this.value=this._min),this._value},set:function(t){if(t!==this._value){var e=Object(o.f)(t);this._roundToDecimal&&(e=parseFloat(e.toFixed(this._roundToDecimal))),this._value=e,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}},{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=Object(o.c)(t)}},{key:"displayValue",get:function(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}},{key:"percent",get:function(){return this._clamp(this._percent)}},{key:"_invertAxis",get:function(){return this.vertical?!this.invert:this.invert}},{key:"_isMinValue",get:function(){return 0===this.percent}},{key:"_thumbGap",get:function(){return this.disabled?7:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0}},{key:"_trackBackgroundStyles",get:function(){var t=this.vertical?"1, ".concat(1-this.percent,", 1"):"".concat(1-this.percent,", 1, 1");return{transform:"translate".concat(this.vertical?"Y":"X","(").concat(this._shouldInvertMouseCoords()?"-":"").concat(this._thumbGap,"px) scale3d(").concat(t,")")}}},{key:"_trackFillStyles",get:function(){var t=this.percent,e=this.vertical?"1, ".concat(t,", 1"):"".concat(t,", 1, 1");return{transform:"translate".concat(this.vertical?"Y":"X","(").concat(this._shouldInvertMouseCoords()?"":"-").concat(this._thumbGap,"px) scale3d(").concat(e,")"),display:0===t?"none":""}}},{key:"_ticksContainerStyles",get:function(){return{transform:"translate".concat(this.vertical?"Y":"X","(").concat(this.vertical||"rtl"!=this._getDirection()?"-":"").concat(this._tickIntervalPercent/2*100,"%)")}}},{key:"_ticksStyles",get:function(){var t,e=100*this._tickIntervalPercent,n={backgroundSize:this.vertical?"2px ".concat(e,"%"):"".concat(e,"% 2px"),transform:"translateZ(0) translate".concat(this.vertical?"Y":"X","(").concat(this.vertical||"rtl"!=this._getDirection()?"":"-").concat(e/2,"%)").concat(this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)")};this._isMinValue&&this._thumbGap&&(t=this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left",n["padding".concat(t)]="".concat(this._thumbGap,"px"));return n}},{key:"_thumbContainerStyles",get:function(){return{transform:"translate".concat(this.vertical?"Y":"X","(-").concat(100*(("rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent),"%)")}}}]),n}(y);return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.m),r.Rb(f.e),r.Rb(r.i),r.Rb(d.b,8),r.cc("tabindex"),r.Rb(c.a,8),r.Rb(r.B),r.Rb(i.d,8))},t.\u0275cmp=r.Lb({type:t,selectors:[["mat-slider"]],viewQuery:function(t,e){var n;1&t&&r.Ic(p,!0),2&t&&r.qc(n=r.gc())&&(e._sliderWrapper=n.first)},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:28,hostBindings:function(t,e){1&t&&r.fc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)}))("keyup",(function(){return e._onKeyup()}))("mouseenter",(function(){return e._onMouseenter()}))("selectstart",(function(t){return t.preventDefault()})),2&t&&(r.ac("tabIndex",e.tabIndex),r.Fb("aria-disabled",e.disabled)("aria-valuemax",e.max)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-orientation",e.vertical?"vertical":"horizontal"),r.Ib("mat-slider-disabled",e.disabled)("mat-slider-has-ticks",e.tickInterval)("mat-slider-horizontal",!e.vertical)("mat-slider-axis-inverted",e._invertAxis)("mat-slider-invert-mouse-coords",e._shouldInvertMouseCoords())("mat-slider-sliding",e._isSliding)("mat-slider-thumb-label-showing",e.thumbLabel)("mat-slider-vertical",e.vertical)("mat-slider-min-value",e._isMinValue)("mat-slider-hide-last-tick",e.disabled||e._isMinValue&&e._thumbGap&&e._invertAxis)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",value:"value",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",vertical:"vertical",displayWith:"displayWith"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[r.Db([v]),r.Bb],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(t,e){1&t&&(r.Xb(0,"div",0,1),r.Xb(2,"div",2),r.Sb(3,"div",3),r.Sb(4,"div",4),r.Wb(),r.Xb(5,"div",5),r.Sb(6,"div",6),r.Wb(),r.Xb(7,"div",7),r.Sb(8,"div",8),r.Sb(9,"div",9),r.Xb(10,"div",10),r.Xb(11,"span",11),r.Dc(12),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&t&&(r.Eb(3),r.oc("ngStyle",e._trackBackgroundStyles),r.Eb(1),r.oc("ngStyle",e._trackFillStyles),r.Eb(1),r.oc("ngStyle",e._ticksContainerStyles),r.Eb(1),r.oc("ngStyle",e._ticksStyles),r.Eb(1),r.oc("ngStyle",e._thumbContainerStyles),r.Eb(5),r.Ec(e.displayValue))},directives:[i.l],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),t}();function b(t){return"t"===t.type[0]}function k(t){var e=b(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.clientX,y:e.clientY}}var C=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({factory:function(e){return new(e||t)},imports:[[i.c,a.e],a.e]}),t}()},"7+OI":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("HDdC");function r(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("n6bG"),r=n("gRHU"),a=n("quSY"),o=n("2QA8"),s=n("2fFW"),l=n("NJ4a"),c=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var o;switch(_classCallCheck(this,n),(o=e.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=r.a;break;case 1:if(!t){o.destination=r.a;break}if("object"==typeof t){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(_assertThisInitialized(o))):(o.syncErrorThrowable=!0,o.destination=new u(_assertThisInitialized(o),t));break}default:o.syncErrorThrowable=!0,o.destination=new u(_assertThisInitialized(o),t,i,a)}return o}return _createClass(n,[{key:o.a,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}],[{key:"create",value:function(t,e,i){var r=new n(t,e,i);return r.syncErrorThrowable=!1,r}}]),n}(a.a),u=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,a,o,s){var l,c;_classCallCheck(this,n),(l=e.call(this))._parentSubscriber=t;var u=_assertThisInitialized(l);return Object(i.a)(a)?c=a:a&&(c=a.next,o=a.error,s=a.complete,a!==r.a&&(u=Object.create(a),Object(i.a)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(_assertThisInitialized(l)))),l._context=u,l._next=c,l._error=o,l._complete=s,l}return _createClass(n,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}},{key:"__tryOrSetError",value:function(t,e,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return s.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}]),n}(c)},"8LU1":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return a}));var i=n("fXoL");function r(t){return null!=t&&"false"!=="".concat(t)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function s(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function c(t){return t instanceof i.m?t.nativeElement:t}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},AcyG:function(t,e,n){"use strict";n.d(e,"a",(function(){return $t})),n.d(e,"b",(function(){return W})),n.d(e,"c",(function(){return Jt})),n.d(e,"d",(function(){return ee})),n.d(e,"e",(function(){return ne})),n.d(e,"f",(function(){return te})),n.d(e,"g",(function(){return qt})),n.d(e,"h",(function(){return Q}));var i=n("fXoL"),r=n("jtHE");function a(t,e){return t===e}function o(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var i=e.length,r=0;r1&&void 0!==arguments[1]?arguments[1]:a,n=null,i=null;function r(){return o(e,n,arguments)||(i=t.apply(null,arguments)),n=arguments,i}return r.reset=function(){n=null,i=null},r}var l,c,u,h=s((function(){var t=Object(i.W)();if(!t)return!1;var e=t.injector.get(i.h,null);return!!e&&e.some((function(t){return(t&&t.providers||[]).some((function(t){return t&&t.provide&&"MockNgModuleResolver"===t.provide.name||!1}))}))})),f=((l=function(){function t(){_classCallCheck(this,t),this.bootstrap$=new r.a(1)}return _createClass(t,[{key:"bootstrap",value:function(){this.bootstrap$.next(!0),this.bootstrap$.complete()}},{key:"appBootstrapped$",get:function(){return this.bootstrap$.asObservable()}}]),t}()).\u0275fac=function(t){return new(t||l)},l.\u0275prov=i.Nb({token:l,factory:l.\u0275fac}),l),d=new i.s("INITIAL_STATE_TOKEN"),p=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"set",value:function(t){this.value=t}},{key:"pop",value:function(){var t=this.value;return this.value={},t}}]),t}();return t.value={},t}(),m=new i.s("Internals.StateContextFactory"),v=new i.s("Internals.StateFactory"),g=n("ofXK"),y=n("HDdC"),_=n("XNiG"),b=n("2Vo4"),k=n("LRne"),C=n("cp0P"),w=n("z6cu"),S=n("EY2u"),x=n("Cfvw"),O=n("pLZG"),E=n("lJxs"),T=n("UXun"),A=n("IzEk"),j=n("l7GE"),I=n("51Dv"),R=n("ZUHj"),P=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new D(t,this.project))}}]),t}(),D=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return _createClass(n,[{key:"_next",value:function(t){this.hasSubscription||this.tryNext(t)}},{key:"tryNext",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var i=new I.a(this,e,n),r=this.destination;r.add(i);var a=Object(R.a)(this,t,void 0,void 0,i);a!==i&&r.add(a)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(j.a),N=n("5+tZ"),M=n("xbPD"),F=n("JIr8"),L=n("1G5W"),V=n("vkgz"),B=n("/uUt"),z=((c=function(){function t(e,n){_classCallCheck(this,t),this._ngZone=e,this._platformId=n,this.verifyZoneIsNotNooped(this._ngZone)}return _createClass(t,[{key:"enter",value:function(t){return Object(g.u)(this._platformId)?this.runInsideAngular(t):this.runOutsideAngular(t)}},{key:"leave",value:function(t){return this.runInsideAngular(t)}},{key:"runInsideAngular",value:function(t){return i.B.isInAngularZone()?t():this._ngZone.run(t)}},{key:"runOutsideAngular",value:function(t){return i.B.isInAngularZone()?this._ngZone.runOutsideAngular(t):t()}},{key:"verifyZoneIsNotNooped",value:function(t){t instanceof i.B||console.warn("Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\nPlease set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\nNgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })")}}]),t}()).\u0275fac=function(t){return new(t||c)(i.bc(i.B),i.bc(i.D))},c.\u0275prov=i.Nb({token:c,factory:c.\u0275fac}),c),H=new i.s("ROOT_STATE_TOKEN"),U=new i.s("FEATURE_STATE_TOKEN"),W=new i.s("NGXS_PLUGINS"),q=new i.s("NG_TEST_MODE"),G=new i.s("NG_DEV_MODE"),X="NGXS_META",K=((u=function t(){_classCallCheck(this,t),this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=z}).\u0275fac=function(t){return new(t||u)},u.\u0275prov=i.Nb({token:u,factory:u.\u0275fac}),u),Z=function t(e,n,i){_classCallCheck(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i},Y=new i.s("NGXS_EXECUTION_STRATEGY");function Q(t){return t.constructor&&t.constructor.type?t.constructor.type:t.type}var J=function(t,e,n){t=Object.assign({},t);var i=e.split("."),r=i.length-1;return i.reduce((function(t,e,i){return t[e]=i===r?n:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]}),t),t},$=function(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)};function tt(t){if(!t.hasOwnProperty(X)){var e={name:null,actions:{},defaults:{},path:null,makeRootSelector:function(t){return t.getStateGetter(e.name)},children:[]};Object.defineProperty(t,X,{value:e})}return et(t)}function et(t){return t[X]}function nt(t){return t.NGXS_SELECTOR_META}function it(t,e){return e&&e.compatibility&&e.compatibility.strictContentSecurityPolicy?function(t){var e=t.slice();return function(t){return e.reduce((function(t,e){return t&&t[e]}),t)}}(t):function(t){for(var e=t,n="store."+e[0],i=0,r=e.length,a=n;++i2&&void 0!==arguments[2]?arguments[2]:ot,i=t.reduce((function(t,e){return t[Q(e)]=!0,t}),{}),r=e&&function(t){return t.reduce((function(t,e){return t[e]=!0,t}),{})}(e);return function(t){return t.pipe(function(t,e){return Object(O.a)((function(n){var i=Q(n.action);return t[i]&&(!e||e[n.status])}))}(i,r),n())}}(e,["DISPATCHED"])}function ot(){return Object(E.a)((function(t){return t.action}))}function st(t){return function(e){return new y.a((function(n){return e.subscribe({next:function(e){t.leave((function(){return n.next(e)}))},error:function(e){t.leave((function(){return n.error(e)}))},complete:function(){t.leave((function(){return n.complete()}))}})}))}}var lt,ct,ut,ht,ft,dt,pt,mt,vt,gt,yt,_t,bt,kt=((lt=function(){function t(e){_classCallCheck(this,t),this._executionStrategy=e}return _createClass(t,[{key:"enter",value:function(t){return this._executionStrategy.enter(t)}},{key:"leave",value:function(t){return this._executionStrategy.leave(t)}}]),t}()).\u0275fac=function(t){return new(t||lt)(i.bc(Y))},lt.\u0275prov=i.Nb({token:lt,factory:lt.\u0275fac}),lt),Ct=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._itemQueue=[],t._busyPushingNext=!1,t}return _createClass(n,[{key:"next",value:function(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,_get(_getPrototypeOf(n.prototype),"next",this).call(this,t);this._itemQueue.length>0;){var e=this._itemQueue.pop();_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}this._busyPushingNext=!1}}}]),n}(_.a),wt=((ct=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(Ct)).\u0275fac=function(t){return St(t||ct)},ct.\u0275prov=i.Nb({token:ct,factory:ct.\u0275fac}),ct),St=i.Zb(wt),xt=((ut=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this,(function(e){var n=t.pipe(st(i)).subscribe({next:function(t){return e.next(t)},error:function(t){return e.error(t)},complete:function(){return e.complete()}});e.add(n)}))}return n}(y.a)).\u0275fac=function(t){return new(t||ut)(i.bc(wt),i.bc(kt))},ut.\u0275prov=i.Nb({token:ut,factory:ut.\u0275fac}),ut),Ot=((dt=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this,{})}return n}(b.a)).\u0275fac=function(t){return new(t||dt)},dt.\u0275prov=i.Nb({token:dt,factory:dt.\u0275fac}),dt),Et=((ft=function(){function t(e,n){_classCallCheck(this,t),this._parentManager=e,this._pluginHandlers=n,this.plugins=[],this.registerHandlers()}return _createClass(t,[{key:"registerHandlers",value:function(){var t,e=this.getPluginHandlers();(t=this.rootPlugins).push.apply(t,_toConsumableArray(e))}},{key:"getPluginHandlers",value:function(){return(this._pluginHandlers||[]).map((function(t){return t.handle?t.handle.bind(t):t}))}},{key:"rootPlugins",get:function(){return this._parentManager&&this._parentManager.plugins||this.plugins}}]),t}()).\u0275fac=function(t){return new(t||ft)(i.bc(ft,12),i.bc(W,8))},ft.\u0275prov=i.Nb({token:ft,factory:ft.\u0275fac}),ft),Tt=((ht=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(_.a)).\u0275fac=function(t){return At(t||ht)},ht.\u0275prov=i.Nb({token:ht,factory:ht.\u0275fac}),ht),At=i.Zb(Tt),jt=((pt=function(){function t(e,n,i,r,a,o){_classCallCheck(this,t),this._errorHandler=e,this._actions=n,this._actionResults=i,this._pluginManager=r,this._stateStream=a,this._ngxsExecutionStrategy=o}return _createClass(t,[{key:"dispatch",value:function(t){var e=this,n=this._ngxsExecutionStrategy.enter((function(){return e.dispatchByEvents(t)}));return n.subscribe({error:function(t){return e._ngxsExecutionStrategy.leave((function(){try{e._errorHandler.handleError(t)}catch(n){}}))}}),n.pipe(st(this._ngxsExecutionStrategy))}},{key:"dispatchByEvents",value:function(t){var e=this;return Array.isArray(t)?0===t.length?Object(k.a)(this._stateStream.getValue()):Object(C.a)(t.map((function(t){return e.dispatchSingle(t)}))):this.dispatchSingle(t)}},{key:"dispatchSingle",value:function(t){var e=this,n=this._stateStream.getValue();return function t(e){return function(){for(var n=arguments.length,i=new Array(n),r=0;r1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(n)||(n=[]),n.push(e),a[e]=!0,i[e].forEach((function(i){if(n.indexOf(i)>=0)throw new Error("Circular dependency '".concat(i,"' is required by '").concat(e,"': ").concat(n.join(" -> ")));a[i]||t(i,n.slice(0))})),r.indexOf(e)<0&&r.push(e)}(t)})),r.reverse()),c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function t(e,n){for(var i in e)if(e.hasOwnProperty(i)&&e[i].indexOf(n)>=0){var r=t(e,i);return null!==r?"".concat(r,".").concat(i):i}return null};for(var i in t)if(t.hasOwnProperty(i)){var r=n(t,i);e[i]=r?"".concat(r,".").concat(i):i}return e}(s),u=n.reduce((function(t,e){return t[e[X].name]=e,t}),{}),h=[],f=_createForOfIteratorHelper(l);try{for(f.s();!(o=f.n()).done;){var d=o.value,p=u[d],m=c[d],v=p[X];this.addRuntimeInfoToMeta(v,m);var g={name:d,path:m,isInitialised:!1,actions:v.actions,instance:this._injector.get(p),defaults:t.cloneDefaults(v.defaults)};this.hasBeenMountedAndBootstrapped(d,m)||h.push(g),this.states.push(g)}}catch(y){f.e(y)}finally{f.f()}return h}},{key:"addAndReturnDefaults",value:function(t){var e=this.add(t||[]);return{defaults:e.reduce((function(t,e){return J(t,e.path,e.defaults)}),{}),states:e}}},{key:"connectActionHandlers",value:function(){var t=this;this._connected||(this._actions.pipe(Object(O.a)((function(t){return"DISPATCHED"===t.status})),Object(N.a)((function(e){var n=e.action;return t.invokeActions(t._actions,n).pipe(Object(E.a)((function(){return{action:n,status:"SUCCESSFUL"}})),Object(M.a)({action:n,status:"CANCELED"}),Object(F.a)((function(t){return Object(k.a)({action:n,status:"ERRORED",error:t})})))}))).subscribe((function(e){return t._actionResults.next(e)})),this._connected=!0)}},{key:"invokeActions",value:function(t,e){var n,i=[],r=_createForOfIteratorHelper(this.states);try{for(r.s();!(n=r.n()).done;){var a=n.value,o=Q(e),s=a.actions[o];if(s){var l,c=_createForOfIteratorHelper(s);try{for(c.s();!(l=c.n()).done;){var u=l.value,h=this._stateContextFactory.createStateContext(a);try{var f=a.instance[u.fn](h,e);f instanceof Promise&&(f=Object(x.a)(f)),f instanceof y.a?u.options.cancelUncompleted&&(f=f.pipe(Object(L.a)(t.pipe(at(e))))):f=Object(k.a)({}).pipe(Object(T.a)()),i.push(f)}catch(d){i.push(Object(w.a)(d))}}}catch(p){c.e(p)}finally{c.f()}}}}catch(p){r.e(p)}finally{r.f()}return i.length||i.push(Object(k.a)({})),Object(C.a)(i)}},{key:"addToStatesMap",value:function(t){var e,n=[],i=this.statesByName,r=_createForOfIteratorHelper(t);try{for(r.s();!(e=r.n()).done;){var a=e.value,o=Nt.checkStateNameIsUnique(a,i);!i[o]&&(n.push(a),i[o]=a)}}catch(s){r.e(s)}finally{r.f()}return{newStates:n}}},{key:"addRuntimeInfoToMeta",value:function(t,e){this.statePaths[t.name]=e,t.path=e}},{key:"hasBeenMountedAndBootstrapped",value:function(t,e){var n=void 0!==$(this._initialState,e);return this.statesByName[t]&&n}},{key:"states",get:function(){return this._parentFactory?this._parentFactory.states:this._states}},{key:"statesByName",get:function(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}},{key:"statePaths",get:function(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}}],[{key:"cloneDefaults",value:function(t){var e;return Array.isArray(t)?t.slice():"object"==typeof(e=t)&&null!==e||"function"==typeof e?Object.assign({},t):void 0===t?{}:t}},{key:"checkStatesAreValid",value:function(t){t.forEach(Nt.getValidStateMeta)}}]),t}()).\u0275fac=function(t){return new(t||vt)(i.bc(i.t),i.bc(K),i.bc(vt,12),i.bc(wt),i.bc(Tt),i.bc(Dt),i.bc(d,8))},vt.\u0275prov=i.Nb({token:vt,factory:vt.\u0275fac}),vt),Ft=((mt=function(){function t(e,n,i){_classCallCheck(this,t),this.internalStateOperations=e,this.stateContextFactory=n,this.bootstrapper=i}return _createClass(t,[{key:"ngxsBootstrap",value:function(t,e){var n=this;this.internalStateOperations.getRootStateOperations().dispatch(t).pipe(Object(O.a)((function(){return!!e})),Object(V.a)((function(){return n.invokeInit(e.states)})),Object(N.a)((function(){return n.bootstrapper.appBootstrapped$})),Object(O.a)((function(t){return!!t}))).subscribe((function(){return n.invokeBootstrap(e.states)}))}},{key:"invokeInit",value:function(t){var e,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.instance;if(r.ngxsOnChanges){var a=rt(i,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});r.ngxsOnChanges(a)}r.ngxsOnInit&&r.ngxsOnInit(this.getStateContext(i)),i.isInitialised=!0}}catch(o){n.e(o)}finally{n.f()}}},{key:"invokeBootstrap",value:function(t){var e,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.instance;r.ngxsAfterBootstrap&&r.ngxsAfterBootstrap(this.getStateContext(i))}}catch(a){n.e(a)}finally{n.f()}}},{key:"getStateContext",value:function(t){return this.stateContextFactory.createStateContext(t)}}]),t}()).\u0275fac=function(t){return new(t||mt)(i.bc(Pt),i.bc(Dt),i.bc(f))},mt.\u0275prov=i.Nb({token:mt,factory:mt.\u0275fac}),mt),Lt=function(t){return t&&t.NGXS_SELECTOR_OPTIONS_META||{}};function Vt(t){var e=nt(t)||et(t);return e&&e.makeRootSelector||function(){return t}}var Bt,zt,Ht,Ut,Wt,qt=((zt=function(){function t(e,n,i,r,a,o){_classCallCheck(this,t),this._stateStream=e,this._internalStateOperations=n,this._config=i,this._internalExecutionStrategy=r,this._stateFactory=a,this.initStateStream(o)}return _createClass(t,[{key:"dispatch",value:function(t){return this._internalStateOperations.getRootStateOperations().dispatch(t)}},{key:"select",value:function(t){var e=this,n=this.getStoreBoundSelectorFn(t);return this._stateStream.pipe(Object(E.a)(n),Object(F.a)((function(t){var n=e._config.selectorOptions.suppressErrors;return t instanceof TypeError&&n?Object(k.a)(void 0):Object(w.a)(t)})),Object(B.a)(),st(this._internalExecutionStrategy))}},{key:"selectOnce",value:function(t){return this.select(t).pipe(Object(A.a)(1))}},{key:"selectSnapshot",value:function(t){return this.getStoreBoundSelectorFn(t)(this._stateStream.getValue())}},{key:"subscribe",value:function(t){return this._stateStream.pipe(st(this._internalExecutionStrategy)).subscribe(t)}},{key:"snapshot",value:function(){return this._internalStateOperations.getRootStateOperations().getState()}},{key:"reset",value:function(t){return this._internalStateOperations.getRootStateOperations().setState(t)}},{key:"getStoreBoundSelectorFn",value:function(t){return Vt(t)(this._stateFactory.getRuntimeSelectorContext())}},{key:"initStateStream",value:function(t){var e=this._stateStream.value;if(!e||0===Object.keys(e).length){var n=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,t):t;this._stateStream.next(n)}}}]),t}()).\u0275fac=function(t){return new(t||zt)(i.bc(Ot),i.bc(Pt),i.bc(K),i.bc(kt),i.bc(Mt),i.bc(d,8))},zt.\u0275prov=i.Nb({token:zt,factory:zt.\u0275fac}),zt),Gt=((Bt=function t(e,n){_classCallCheck(this,t),t.store=e,t.config=n}).\u0275fac=function(t){return new(t||Bt)(i.bc(qt),i.bc(K))},Bt.\u0275prov=i.Nb({token:Bt,factory:Bt.\u0275fac}),Bt.store=null,Bt.config=null,Bt),Xt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"type",get:function(){return"@@INIT"}}]),t}(),Kt=function(){function t(e){_classCallCheck(this,t),this.addedStates=e}return _createClass(t,null,[{key:"type",get:function(){return"@@UPDATE_STATE"}}]),t}(),Zt=new r.a(1),Yt=((Wt=function t(e,n,r,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5?arguments[5]:void 0;_classCallCheck(this,t),function(){try{var t=window.ng,e=!(t.probe&&t.coreTokens)&&Object(i.Y)();Zt.next(e)}catch(n){Zt.next(!1)}finally{Zt.complete()}}();var l=e.addAndReturnDefaults(o);n.setStateToTheCurrentWithNew(l),e.connectActionHandlers(),s.ngxsBootstrap(new Xt,l)}).\u0275mod=i.Pb({type:Wt}),Wt.\u0275inj=i.Ob({factory:function(t){return new(t||Wt)(i.bc(Mt),i.bc(Pt),i.bc(qt),i.bc(Gt),i.bc(H,8),i.bc(Ft))}}),Wt),Qt=((Ut=function(){function t(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4?arguments[4]:void 0;_classCallCheck(this,t);var o=t.flattenStates(r),s=i.addAndReturnDefaults(o);s.states.length&&(n.setStateToTheCurrentWithNew(s),a.ngxsBootstrap(new Kt(s.defaults),s))}return _createClass(t,null,[{key:"flattenStates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce((function(t,e){return t.concat(e)}),[])}}]),t}()).\u0275mod=i.Pb({type:Ut}),Ut.\u0275inj=i.Ob({factory:function(t){return new(t||Ut)(i.bc(qt),i.bc(Pt),i.bc(Mt),i.bc(U,8),i.bc(Ft))}}),Ut),Jt=((Ht=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:Yt,providers:[Mt,Dt,xt,wt,f,Rt,It,Ft,jt,Tt,Pt,kt,qt,Ot,Gt,Et].concat(_toConsumableArray(e),_toConsumableArray(t.ngxsTokenProviders(e,n)))}}},{key:"forFeature",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:Qt,providers:[Mt,Et].concat(_toConsumableArray(t),[{provide:U,multi:!0,useValue:t}])}}},{key:"ngxsTokenProviders",value:function(e,n){return[{provide:q,useValue:h},{provide:G,useValue:i.Y},{provide:Y,useClass:n.executionStrategy||z},{provide:H,useValue:e},{provide:t.ROOT_OPTIONS,useValue:n},{provide:K,useFactory:t.ngxsConfigFactory,deps:[t.ROOT_OPTIONS]},{provide:i.b,useFactory:t.appBootstrapListenerFactory,multi:!0,deps:[f]},{provide:d,useFactory:t.getInitialState},{provide:m,useExisting:Dt},{provide:v,useExisting:Mt}]}},{key:"ngxsConfigFactory",value:function(t){return Object.assign(new K,t)}},{key:"appBootstrapListenerFactory",value:function(t){return function(){return t.bootstrap()}}},{key:"getInitialState",value:function(){return p.pop()}}]),t}()).\u0275mod=i.Pb({type:Ht}),Ht.\u0275inj=i.Ob({factory:function(t){return new(t||Ht)}}),Ht.ROOT_OPTIONS=new i.s("ROOT_OPTIONS"),Ht);function $t(t,e){return function(n,i){if(n.hasOwnProperty("prototype"))throw new Error("@Action() decorator cannot be used with static methods");var r=tt(n.constructor);Array.isArray(t)||(t=[t]);var a,o=_createForOfIteratorHelper(t);try{for(o.s();!(a=o.n()).done;){var s=a.value.type;r.actions[s]||(r.actions[s]=[]),r.actions[s].push({fn:i,options:e||{},type:s})}}catch(l){o.e(l)}finally{o.f()}}}function te(t){return function(e){!function(t){Zt.asObservable().subscribe((function(e){var n;e&&(t.\u0275prov||console.warn((n=t.name,"'".concat(n,"' class should be decorated with @Injectable() right after the @State() decorator"))))}))}(e);var n=e,i=tt(n),r=Object.getPrototypeOf(n),a=function(e){return Object.assign({},e.NGXS_OPTIONS_META||{},t)}(r);!function(t){var e=t.meta,n=t.inheritedStateClass,i=t.optionsWithInheritance,r=i.children,a=i.defaults,o=i.name,s="string"==typeof o?o:o&&o.getName()||null;Nt.checkCorrectStateName(s),n.hasOwnProperty(X)&&(e.actions=Object.assign({},e.actions,(n[X]||{}).actions)),e.children=r,e.defaults=a,e.name=s}({meta:i,inheritedStateClass:r,optionsWithInheritance:a}),n.NGXS_OPTIONS_META=a}}function ee(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:[];return"string"==typeof(e=e||function(t){var e=t.length-1;return 36===t.charCodeAt(e)?t.slice(0,e):t}(t))?it(n.length?[e].concat(_toConsumableArray(n)):e.split("."),Gt.config):e}(a,t,n);Object.defineProperties(e,(_defineProperty(r={},o,{writable:!0,enumerable:!1,configurable:!0}),_defineProperty(r,a,{enumerable:!0,configurable:!0,get:function(){return this[o]||(this[o]=function(t){if(!Gt.store)throw new Error("You have forgotten to import the NGXS module!");return Gt.store.select(t)}(s))}}),r))}}function ne(t){return function(e,n,i){if(!i||null===i.value)throw new Error("Selectors only work on methods");var r=i.value,a=function(t,e,n){var i=n&&n.containerClass,r=s((function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:[],i=e.getSelectorOptions(),r=t.getSelectorOptions(i);return{selectorOptions:r,argumentSelectorFunctions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=[];return n&&(0===t.length||e.injectContainerState)&&et(n)&&i.push(n),t&&i.push.apply(i,_toConsumableArray(t)),i}(n,r,e.containerClass).map((function(e){return Vt(e)(t)}))}}(e,a,t),i=n.argumentSelectorFunctions,o=n.selectorOptions;return function(t){var e=i.map((function(e){return e(t)}));try{return r.apply(void 0,_toConsumableArray(e))}catch(n){if(n instanceof TypeError&&o.suppressErrors)return;throw n}}},r}(t,r,{containerClass:e,selectorName:n.toString(),getSelectorOptions:function(){return{}}}),o={configurable:!0,get:function(){return a}};return o.originalFn=r,o}}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("HDdC"),r=n("SeVD"),a=n("quSY"),o=n("kJWO"),s=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a((function(n){var i=new a.a;return i.add(e.schedule((function(){var r=t[o.a]();i.add(r.subscribe({next:function(t){i.add(e.schedule((function(){return n.next(t)})))},error:function(t){i.add(e.schedule((function(){return n.error(t)})))},complete:function(){i.add(e.schedule((function(){return n.complete()})))}}))}))),i}))}(t,e);if(Object(c.a)(t))return function(t,e){return new i.a((function(n){var i=new a.a;return i.add(e.schedule((function(){return t.then((function(t){i.add(e.schedule((function(){n.next(t),i.add(e.schedule((function(){return n.complete()})))})))}),(function(t){i.add(e.schedule((function(){return n.error(t)})))}))}))),i}))}(t,e);if(Object(u.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a((function(n){var i,r=new a.a;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(e.schedule((function(){i=t[l.a](),r.add(e.schedule((function(){if(!n.closed){var t,e;try{var r=i.next();t=r.value,e=r.done}catch(a){return void n.error(a)}e?n.complete():(n.next(t),this.schedule())}})))}))),r}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(r.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("3N8a"),r=new(n("IjjT").a)(i.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=Array.isArray||function(t){return t&&"number"==typeof t.length}},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var i=n("HDdC"),r=new i.a((function(t){return t.complete()}));function a(t){return t?function(t){return new i.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):r}},FKr1:function(t,e,n){"use strict";n.d(e,"a",(function(){return A})),n.d(e,"b",(function(){return lt})),n.d(e,"c",(function(){return nt})),n.d(e,"d",(function(){return q})),n.d(e,"e",(function(){return k})),n.d(e,"f",(function(){return j})),n.d(e,"g",(function(){return B})),n.d(e,"h",(function(){return J})),n.d(e,"i",(function(){return it})),n.d(e,"j",(function(){return st})),n.d(e,"k",(function(){return K})),n.d(e,"l",(function(){return Z})),n.d(e,"m",(function(){return G})),n.d(e,"n",(function(){return X})),n.d(e,"o",(function(){return W})),n.d(e,"p",(function(){return rt})),n.d(e,"q",(function(){return at})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return S})),n.d(e,"t",(function(){return C})),n.d(e,"u",(function(){return O})),n.d(e,"v",(function(){return x})),n.d(e,"w",(function(){return I}));var i=n("fXoL"),r=n("u47x"),a=n("cH1L"),o=new i.P("9.2.0"),s=n("ofXK"),l=n("8LU1"),c=n("XNiG"),u=(n("HDdC"),n("nLfN")),h=(n("jhN1"),n("JX91")),f=n("R1ws"),d=n("FtGj"),p=["*",[["mat-option"],["ng-container"]]],m=["*","mat-option, ng-container"];function v(t,e){if(1&t&&i.Sb(0,"mat-pseudo-checkbox",3),2&t){var n=i.jc();i.oc("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var g,y=["*"],_=new i.P("9.2.0"),b=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),k=((g=function(){function t(e,n,i){_classCallCheck(this,t),this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(t,[{key:"_getDocument",value:function(){var t=this._document||document;return"object"==typeof t&&t?t:null}},{key:"_getWindow",value:function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Object(i.Y)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);var i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==o.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}()).\u0275mod=i.Pb({type:g}),g.\u0275inj=i.Ob({factory:function(t){return new(t||g)(i.bc(r.g),i.bc(b,8),i.bc(s.d,8))},imports:[[a.a],a.a]}),g);function C(t){return function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return function(t){_inherits(i,t);var n=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var r=arguments.length,a=new Array(r),o=0;o2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(Object(h.a)(t)).subscribe((function(t){var i=t.length;R(e,"".concat(n,"-2-line"),!1),R(e,"".concat(n,"-3-line"),!1),R(e,"".concat(n,"-multi-line"),!1),2===i||3===i?R(e,"".concat(n,"-").concat(i,"-line"),!0):i>3&&R(e,"".concat(n,"-multi-line"),!0)}))}function R(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}var P,D,N,M,F,L,V,B=((P=function t(){_classCallCheck(this,t)}).\u0275mod=i.Pb({type:P}),P.\u0275inj=i.Ob({factory:function(t){return new(t||P)},imports:[[k],k]}),P),z=function(){function t(e,n,i){_classCallCheck(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return _createClass(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),H={enterDuration:450,exitDuration:400},U=Object(u.f)({passive:!0}),W=function(){function t(e,n,i,a){var o=this;_classCallCheck(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=function(t){var e=Object(r.i)(t),n=o._lastTouchStartEvent&&Date.now()2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},H),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var o=i.radius||function(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),s=t-r.left,l=e-r.top,c=a.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-o,"px"),u.style.top="".concat(l-o,"px"),u.style.height="".concat(2*o,"px"),u.style.width="".concat(2*o,"px"),null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var h=new z(this,u,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()}),c),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},H),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))}},{key:"setupTriggerEvents",value:function(t){var e=this,n=Object(l.e)(t);n&&n!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){e._triggerEvents.forEach((function(t,e){n.addEventListener(e,t,U)}))})),this._triggerElement=n)}},{key:"_runTimeoutOutsideZone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&this._triggerEvents.forEach((function(e,n){t._triggerElement.removeEventListener(n,e,U)}))}}]),t}(),q=new i.s("mat-ripple-global-options"),G=((F=function(){function t(e,n,i,r,a){_classCallCheck(this,t),this._elementRef=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new W(this,n,e,i),"NoopAnimations"===a&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return _createClass(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||F)(i.Rb(i.m),i.Rb(i.B),i.Rb(u.a),i.Rb(q,8),i.Rb(f.a,8))},F.\u0275dir=i.Mb({type:F,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Ib("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),F),X=((M=function t(){_classCallCheck(this,t)}).\u0275mod=i.Pb({type:M}),M.\u0275inj=i.Ob({factory:function(t){return new(t||M)},imports:[[k,u.b],k]}),M),K=((N=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||N)(i.Rb(f.a,8))},N.\u0275cmp=i.Lb({type:N,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Ib("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),N),Z=((D=function t(){_classCallCheck(this,t)}).\u0275mod=i.Pb({type:D}),D.\u0275inj=i.Ob({factory:function(t){return new(t||D)}}),D),Y=C((function t(){_classCallCheck(this,t)})),Q=0,J=((L=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-".concat(Q++),t}return n}(Y)).\u0275fac=function(t){return $(t||L)},L.\u0275cmp=i.Lb({type:L,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Fb("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),i.Ib("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[i.Bb],ngContentSelectors:m,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(i.nc(p),i.Xb(0,"label",0),i.Dc(1),i.mc(2),i.Wb(),i.mc(3,1)),2&t&&(i.oc("id",e._labelId),i.Eb(1),i.Fc("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),L),$=i.Zb(J),tt=0,et=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=n},nt=new i.s("MAT_OPTION_PARENT_COMPONENT"),it=((V=function(){function t(e,n,r,a){_classCallCheck(this,t),this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(tt++),this.onSelectionChange=new i.p,this._stateChanges=new c.a}return _createClass(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==d.f&&t.keyCode!==d.n||Object(d.s)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new et(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=Object(l.c)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}()).\u0275fac=function(t){return new(t||V)(i.Rb(i.m),i.Rb(i.i),i.Rb(nt,8),i.Rb(J,8))},V.\u0275cmp=i.Lb({type:V,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.fc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(i.ac("id",e.id),i.Fb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Ib("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:y,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(i.nc(),i.Bc(0,v,1,2,"mat-pseudo-checkbox",0),i.Xb(1,"span",1),i.mc(2),i.Wb(),i.Sb(3,"div",2)),2&t&&(i.oc("ngIf",e.multiple),i.Eb(3),i.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[s.k,G,K],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),V);function rt(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,r-i+e):n}var ot,st=((ot=function t(){_classCallCheck(this,t)}).\u0275mod=i.Pb({type:ot}),ot.\u0275inj=i.Ob({factory:function(t){return new(t||ot)},imports:[[X,s.c,Z]]}),ot),lt=new i.s("mat-label-global-options")},FtGj:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return a})),n.d(e,"g",(function(){return o})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return y})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"m",(function(){return p})),n.d(e,"n",(function(){return s})),n.d(e,"o",(function(){return r})),n.d(e,"p",(function(){return d})),n.d(e,"q",(function(){return b})),n.d(e,"r",(function(){return g})),n.d(e,"s",(function(){return k}));var i=8,r=9,a=13,o=27,s=32,l=33,c=34,u=35,h=36,f=37,d=38,p=39,m=40,v=46,g=48,y=57,_=65,b=90;function k(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=n}return _createClass(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),r=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;return _classCallCheck(this,n),(r=e.call(this,t,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():a()}))).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,t,e,i)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}}]),n}(i)},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("7o/Q"),r=n("4I5i"),a=n("EY2u");function o(t){return function(e){return 0===t?Object(a.b)():e.lift(new s(t))}}var s=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new r.a}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.total))}}]),t}(),l=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(i.a)},JIr8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("l7GE"),r=n("51Dv"),a=n("ZUHj");function o(t){return function(e){var n=new s(t),i=e.lift(n);return n.caught=i}}var s=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.selector,this.caught))}}]),t}(),l=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,t)).selector=i,a.caught=r,a}return _createClass(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var i=new r.a(this,void 0,void 0);this.add(i);var o=Object(a.a)(this,e,void 0,void 0,i);o!==i&&this.add(o)}}}]),n}(i.a)},JX91:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("GyhO"),r=n("z+Ro");function a(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:r.a;return function(n){return n.lift(new o(t,e))}}var o=function(){function t(e,n){_classCallCheck(this,t),this.dueTime=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))}}]),t}(),s=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,t)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.a);function l(t){t.debouncedNext()}},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("z+Ro"),r=n("yCtX"),a=n("jZKg");function o(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,n=this._sanitizer.sanitize(i.K.RESOURCE_URL,t);if(!n)throw b(t);var r=this._cachedIconsByUrl.get(n);return r?Object(m.a)(S(r)):this._loadSvgIconFromConfig(new C(t)).pipe(Object(s.a)((function(t){return e._cachedIconsByUrl.set(n,t)})),Object(l.a)((function(t){return S(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=x(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(v.a)(_(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?Object(m.a)(S(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Object(s.a)((function(e){return t.svgElement=e})),Object(l.a)((function(t){return S(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return Object(m.a)(r);var a=e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(Object(c.a)((function(e){var r="Loading icon set URL: ".concat(n._sanitizer.sanitize(i.K.RESOURCE_URL,t.url)," failed: ").concat(e.message);return n._errorHandler?n._errorHandler.handleError(new Error(r)):console.error(r),Object(m.a)(null)})))}));return Object(g.a)(a).pipe(Object(l.a)((function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw _(t);return i})))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.svgElement){var r=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(r)return r}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchUrl(t.url).pipe(Object(l.a)((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(t){var e=this;return t.svgElement?Object(m.a)(t.svgElement):this._fetchUrl(t.url).pipe(Object(l.a)((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n}},{key:"_extractSvgIconFromSet",value:function(t,e,n){var i=t.querySelector('[id="'.concat(e,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var a=this._svgElementFromString("");return a.appendChild(r),this._setSvgAttributes(a,n)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),n=t.attributes,i=0;i=0}var s=n("z+Ro");function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=-1;return o(e)?a=Number(e)<1?1:Number(e):Object(s.a)(e)&&(n=e),Object(s.a)(n)||(n=r.a),new i.a((function(e){var i=o(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:e})}))}function c(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return f})),n.d(e,"m",(function(){return o})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return y}));var i=function t(){_classCallCheck(this,t)},r=function t(){_classCallCheck(this,t)},a="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+n}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;m((function(){return t._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),g=function(){function t(e){var n=this;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,r=0,a=0,o=this.players.length;0==o?m((function(){return n._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++i==o&&n._onFinish()})),t.onDestroy((function(){++r==o&&n._onDestroy()})),t.onStart((function(){++a==o&&n._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(t){return t.init()}))}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))}},{key:"pause",value:function(){this.players.forEach((function(t){return t.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(t){return t.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t}},{key:"beforeDestroy",value:function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),y="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",(function(){return ke})),n.d(e,"b",(function(){return we}));var i=n("fXoL"),r=n("jhN1"),a=n("R0Ic");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function s(t){switch(t.length){case 0:return new a.d;case 1:return t[0];default:return new a.n(t)}}function l(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],l=[],c=-1,u=null;if(i.forEach((function(t){var n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach((function(n){var i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,s),l){case a.o:l=r[n];break;case a.a:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,s)}h[i]=l})),i||l.push(h),u=h,c=n})),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return l}function c(t,e,n,i){switch(e){case"start":t.onStart((function(){return i(n&&u(n,"start",t))}));break;case"done":t.onDone((function(){return i(n&&u(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return i(n&&u(n,"destroy",t))}))}}function u(t,e,n){var i=n.totalTime,r=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),a=t._data;return null!=a&&(r._data=a),r}function h(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function f(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function d(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var p=function(t,e){return!1},m=function(t,e){return!1},v=function(t,e,n){return[]},g=o();(g||"undefined"!=typeof Element)&&(p=function(t,e){return t.contains(e)},m=function(){if(g||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:m}(),v=function(t,e,n){var i=[];if(n)i.push.apply(i,_toConsumableArray(t.querySelectorAll(e)));else{var r=t.querySelector(e);r&&i.push(r)}return i});var y=null,_=!1;function b(t){y||(y=("undefined"!=typeof document?document.body:null)||{},_=!!y.style&&"WebkitAppearance"in y.style);var e=!0;return y.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in y.style)&&_)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in y.style),e}var k=m,C=p,w=v;function S(t){var e={};return Object.keys(t).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}var x,O=((x=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return b(t)}},{key:"matchesElement",value:function(t,e){return k(t,e)}},{key:"containsElement",value:function(t,e){return C(t,e)}},{key:"query",value:function(t,e,n){return w(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return n||""}},{key:"animate",value:function(t,e,n,i,r){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new a.d(n,i)}}]),t}()).\u0275fac=function(t){return new(t||x)},x.\u0275prov=i.Nb({token:x,factory:x.\u0275fac}),x),E=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new O,t}();function T(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:A(parseFloat(e[1]),e[2])}function A(t,e){switch(e){case"s":return 1e3*t;default:return t}}function j(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,r=0,a="";if("string"==typeof t){var o=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return e.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};i=A(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(r=A(parseFloat(s),o[4]));var l=o[5];l&&(a=l)}else i=t;if(!n){var c=!1,u=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),c=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&e.splice(u,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:i,delay:r,easing:a}}(t,e,n)}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else I(t,n);return n}function P(t,e,n){return n?e+":"+n+";":""}function D(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var a=r[1],o=r[2],s=r[3];e.push(Y(a,s)),"<"!=o[0]||"*"==a&&"*"==s||e.push(Y(s,a))}(t,r,i)})):r.push(n),r),animation:a,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return G(n,t,e)})),options:nt(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,a=t.steps.map((function(t){e.currentTime=i;var a=G(n,t,e);return r=Math.max(r,e.currentTime),a}));return e.currentTime=r,{type:3,steps:a,options:nt(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return it(j(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=it(0,0,"");return r.dynamic=!0,r.strValue=i,r}return it((n=n||j(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:Object(a.k)({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,s=!1;if(!o){s=!0;var l={};i.easing&&(l.easing=i.easing),o=Object(a.k)(l)}e.currentTime+=i.duration+i.delay;var c=this.visitStyle(o,e);c.isEmptyStep=s,n=c}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?t==a.a?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)})):n.push(t.styles);var i=!1,r=null;return n.forEach((function(t){if(et(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var a in e)if(e[a].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,a=e.currentTime;i&&a>0&&(a-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var o,s,l,c,u,h=e.collectedStyles[e.currentQuerySelector],f=h[i],d=!0;f&&(a!=r&&a>=f.startTime&&r<=f.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),d=!1),a=f.startTime),d&&(h[i]={startTime:a,endTime:r}),e.options&&(o=t[i],s=e.options,l=e.errors,c=s.params||{},(u=V(o)).length&&u.forEach((function(t){c.hasOwnProperty(t)||l.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,l=0,c=t.steps.map((function(t){var i=n._makeStyleAst(t,e),c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(et(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(et(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),u=0;return null!=c&&(r++,u=i.offset=c),s=s||u<0||u>1,o=o||u0&&r0?r==f?1:h*r:a[r],s=o*m;e.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=o,i.styles.push(t)})),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:G(this,F(t.animation),e),options:nt(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:nt(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(Q,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=r[0],o=r[1];e.currentQuerySelector=n.length?n+" "+a:a,f(e.collectedStyles,e.currentQuerySelector,{});var s=G(this,F(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:nt(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:j(t.timings,e.errors,!0);return{type:12,animation:G(this,F(t.animation),e),timings:n,options:null}}}]),t}(),tt=function t(e){_classCallCheck(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=I(t)).params&&(t.params=(e=t.params)?I(e):null):t={},t}function it(t,e,n){return{duration:t,delay:e,easing:n}}function rt(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var at=function(){function t(){_classCallCheck(this,t),this._map=new Map}return _createClass(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),ot=new RegExp(":enter","g"),st=new RegExp(":leave","g");function lt(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ct).buildKeyframes(t,e,n,i,r,a,o,s,l,c)}var ct=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,a,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new at;var u=new ht(t,e,l,i,r,c,[]);u.options=s,u.currentTimeline.setStyles([a],null,u.errors,s),G(this,n,u);var h=u.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(o).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([o],null,u.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[rt(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?T(n.duration):null,a=null!=n.delay?T(n.delay):null;return 0!==r&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,r,a);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),G(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,a=t.options;if(a&&(a.params||a.delay)&&((r=e.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ut);var o=T(a.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return G(n,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,a=t.options&&t.options.delay?T(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);a&&s.delayNextStep(a),G(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return j(e.params?B(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach((function(t){a.forwardTime((t.offset||0)*r),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},a=r.delay?T(r.delay):0;a&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);var o=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach((function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);a&&s.delayNextStep(a),i===e.element&&(l=s.currentTimeline),G(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,a=Math.abs(r.duration),o=a*(e.currentQueryTotal-1),s=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var c=l.currentTime;G(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),t}(),ut={},ht=function(){function t(e,n,i,r,a,o,s,l){_classCallCheck(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ft(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=T(i.duration)),null!=i.delay&&(r.delay=T(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=B(a[t],o,n.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,a=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new dt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,a){var o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ot,"."+this._enterClassName)).replace(st,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,_toConsumableArray(s))}return r||0!=o.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),t}(),ft=function(){function t(e,n,i,r){_classCallCheck(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||a.a,e._currentKeyframe[t]=a.a})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},s=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]=a.a})):R(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(s).forEach((function(t){var e=B(s[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:a.a),r._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,s){var l=R(o,!0);Object.keys(l).forEach((function(t){var i=l[t];i==a.o?e.add(t):i==a.a&&n.add(t)})),i||(l.offset=s/t.duration),r.push(l)}));var o=e.size?z(e.values()):[],s=n.size?z(n.values()):[];if(i){var l=r[0],c=I(l);l.offset=0,c.offset=1,r=[l,c]}return rt(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),dt=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a,o,s){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(l=e.call(this,t,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=a,l.postStyleProps=o,l._stretchStartingKeyframe=c,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,l=R(t[0],!1);l.offset=0,a.push(l);var c=R(t[0],!1);c.offset=pt(s),a.push(c);for(var u=t.length-1,h=1;h<=u;h++){var f=R(t[h],!1);f.offset=pt((n+f.offset*i)/o),a.push(f)}i=o,n=0,r="",t=a}return rt(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(ft);function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var mt,vt,gt=function t(){_classCallCheck(this,t)},yt=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(t,e){return U(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",a=n.toString().trim();if(_t[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return a+r}}]),n}(gt),_t=(mt="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),vt={},mt.forEach((function(t){return vt[t]=!0})),vt);function bt(t,e,n,i,r,a,o,s,l,c,u,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}var kt={},Ct=function(){function t(e,n,i){_classCallCheck(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return _createClass(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,r){return t.some((function(t){return t(e,n,i,r)}))}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],a=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):a}},{key:"build",value:function(t,e,n,i,r,a,o,s,l,c){var u=[],h=this.ast.options&&this.ast.options.params||kt,d=this.buildStyles(n,o&&o.params||kt,u),p=s&&s.params||kt,m=this.buildStyles(i,p,u),v=new Set,g=new Map,y=new Map,_="void"===i,b={params:Object.assign(Object.assign({},h),p)},k=c?[]:lt(t,e,this.ast.animation,r,a,d,m,b,l,u),C=0;if(k.forEach((function(t){C=Math.max(t.duration+t.delay,C)})),u.length)return bt(e,this._triggerName,n,i,_,d,m,[],[],g,y,C,u);k.forEach((function(t){var n=t.element,i=f(g,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var r=f(y,n,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),n!==e&&v.add(n)}));var w=z(v.values());return bt(e,this._triggerName,n,i,_,d,m,k,w,g,y,C)}}]),t}(),wt=function(){function t(e,n){_classCallCheck(this,t),this.styles=e,this.defaultParams=n}return _createClass(t,[{key:"buildStyles",value:function(t,e){var n={},i=I(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var a=r[t];a.length>1&&(a=B(a,i,e)),n[t]=a}))}})),n}}]),t}(),St=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(t){i.states[t.name]=new wt(t.style,t.options&&t.options.params||{})})),xt(this.states,"true","1"),xt(this.states,"false","0"),n.transitions.forEach((function(t){i.transitionFactories.push(new Ct(e,t,i.states))})),this.fallbackTransition=new Ct(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find((function(r){return r.match(t,e,n,i)}))||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function xt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Ot=new at,Et=function(){function t(e,n,i){_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var n=[],i=J(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=l(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],l=this._animations[t],c=new Map;if(l?(n=lt(this._driver,e,l,"ng-enter","ng-leave",{},{},r,Ot,o)).forEach((function(t){var e=f(c,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));c.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,a.a)}))}));var u=s(n.map((function(t){var e=c.get(t.element);return i._buildPlayer(t,{},e)})));return this._playersById[t]=u,u.onDestroy((function(){return i.destroy(t)})),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=h(e,"","","");return c(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),Tt=[],At={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},It=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=n;var i,r=e&&e.hasOwnProperty("value");if(this.value=null!=(i=r?e.value:e)?i:null,r){var a=I(e);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),Rt=new It("void"),Pt=function(){function t(e,n,i){_classCallCheck(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Bt(n,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var o=f(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);var l=f(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Bt(t,"ng-trigger"),Bt(t,"ng-trigger-"+e),l[e]=Rt),function(){a._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),a._triggers[e]||delete l[e]}))}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(e),o=new Nt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Bt(t,"ng-trigger"),Bt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],c=new It(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s[e]=c,l||(l=Rt),"void"===c.value||l.value!==c.value){var u=f(this._engine.playersByElement,t,[]);u.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var h=a.matchTransition(l.value,c.value,t,c.params),d=!1;if(!h){if(!r)return;h=a.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:d}),d||(Bt(t,"ng-animate-queued"),o.onStart((function(){zt(t,"ng-animate-queued")}))),o.onDone((function(){var e=i.players.indexOf(o);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}})),this.players.push(o),u.push(o),o}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Bt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),zt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,i){if(Mt(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return Mt(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise((function(e){if(t.players.length)return s(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=At,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,n){return t._balanceNamespaceList(e,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach((function(t){var e=t.player,a=t.element;if(E.push(e),n.collectedEnterElements.length){var o=a.__ng_removed;if(o&&o.setForMove)return void e.destroy()}var s=!p||!n.driver.containsElement(p,a),d=x.get(a),m=g.get(a),v=n._buildInstruction(t,i,m,d,s);if(!v.errors||!v.errors.length)return s||t.isFallbackTransition?(e.onStart((function(){return M(a,v.fromStyles)})),e.onDestroy((function(){return N(a,v.toStyles)})),void r.push(e)):(v.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(a,v.timelines),l.push({instruction:v,player:e,element:a}),v.queriedElements.forEach((function(t){return f(c,t,[]).push(e)})),v.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=u.get(e);i||u.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),void v.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=h.get(e);i||h.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))})));T.push(v)}));if(T.length){var j=[];T.forEach((function(t){j.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return j.push("- ".concat(t,"\n"))}))})),E.forEach((function(t){return t.destroy()})),this.reportError(j)}var I=new Map,R=new Map;l.forEach((function(t){var e=t.element;i.has(e)&&(R.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))})),r.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){f(I,e,[]).push(t),t.destroy()}))}));var P=_.filter((function(t){return Ut(t,u,h)})),D=new Map;Lt(D,this.driver,k,h,a.a).forEach((function(t){Ut(t,u,h)&&P.push(t)}));var F=new Map;v.forEach((function(t,e){Lt(F,n.driver,new Set(t),u,a.o)})),P.forEach((function(t){var e=D.get(t),n=F.get(t);D.set(t,Object.assign(Object.assign({},e),n))}));var L=[],V=[],B={};l.forEach((function(t){var e=t.element,a=t.player,l=t.instruction;if(i.has(e)){if(d.has(e))return a.onDestroy((function(){return N(e,l.toStyles)})),a.disabled=!0,a.overrideTotalTime(l.totalTime),void r.push(a);var c=B;if(R.size>1){for(var u=e,h=[];u=u.parentNode;){var f=R.get(u);if(f){c=f;break}h.push(u)}h.forEach((function(t){return R.set(t,c)}))}var p=n._buildAnimation(a.namespaceId,l,I,o,F,D);if(a.setRealPlayer(p),c===B)L.push(a);else{var m=n.playersByElement.get(c);m&&m.length&&(a.parentPlayer=s(m)),r.push(a)}}else M(e,l.fromStyles),a.onDestroy((function(){return N(e,l.toStyles)})),V.push(a),d.has(e)&&r.push(a)})),V.forEach((function(t){var e=o.get(t.element);if(e&&e.length){var n=s(e);t.setRealPlayer(n)}})),r.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var z=0;z<_.length;z++){var H=_[z],U=H.__ng_removed;if(zt(H,"ng-leave"),!U||!U.hasAnimation){var W=[];if(c.size){var q=c.get(H);q&&q.length&&W.push.apply(W,_toConsumableArray(q));for(var G=this.driver.query(H,".ng-animating",!0),X=0;X0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new a.d(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}}]),t}(),Nt=function(){function t(e,n,i){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new a.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return c(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){f(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Mt(t){return t&&1===t.nodeType}function Ft(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Lt(t,e,n,i,r){var a=[];n.forEach((function(t){return a.push(Ft(t))}));var o=[];i.forEach((function(n,i){var a={};n.forEach((function(t){var n=a[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=jt,o.push(i))})),t.set(i,a)}));var s=0;return n.forEach((function(t){return Ft(t,a[s++])})),o}function Vt(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var a=r.get(e);if(a)return a;var o=e.parentNode;return a=n.has(o)?o:i.has(o)?1:t(o),r.set(e,a),a}(t);1!==e&&n.get(e).push(t)})),n}function Bt(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function zt(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Ht(t,e,n){s(n).onDone((function(){return t.processLeaveNode(e)}))}function Ut(t,e,n){var i=n.get(t);if(!i)return!1;var r=e.get(t);return r?i.forEach((function(t){return r.add(t)})):e.set(t,i),n.delete(t),!0}var Wt=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Dt(e,n,i),this._timelineEngine=new Et(e,n,i),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return _createClass(t,[{key:"registerTrigger",value:function(t,e,n,i,r){var a=t+"-"+i,o=this._triggerCache[a];if(!o){var s=[],l=J(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(t,e){return new St(t,e)}(i,l),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(e,i,o)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}},{key:"onRemove",value:function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,n,i){if("@"==n.charAt(0)){var r=_slicedToArray(d(n),2),a=r[0],o=r[1];this._timelineEngine.command(a,e,o,i)}else this._transitionEngine.trigger(t,e,n,i)}},{key:"listen",value:function(t,e,n,i,r){if("@"==n.charAt(0)){var a=_slicedToArray(d(n),2),o=a[0],s=a[1];return this._timelineEngine.listen(o,e,s,r)}return this._transitionEngine.listen(t,e,n,i,r)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function qt(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=Xt(e[0]),e.length>1&&(i=Xt(e[e.length-1]))):e&&(n=Xt(e)),n||i?new Gt(t,n,i):null}var Gt=function(){var t=function(){function t(e,n,i){_classCallCheck(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&N(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(N(this._element,this._initialStyles),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(M(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(M(this._element,this._endStyles),this._endStyles=null),N(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Xt(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),$t(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,n=ee(t,"").split(","),(i=Jt(n,e))>=0&&(n.splice(i,1),te(t,"",n.join(","))))}}]),t}();function Yt(t,e,n){te(t,"PlayState",n,Qt(t,e))}function Qt(t,e){var n=ee(t,"");return n.indexOf(",")>0?Jt(n.split(","),e):Jt([n],e)}function Jt(t,e){for(var n=0;n=0)return n;return-1}function $t(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function te(t,e,n,i){var r="animation"+e;if(null!=i){var a=t.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}t.style[r]=n}function ee(t,e){return t.style["animation"+e]}var ne=function(){function t(e,n,i,r,a,o,s,l){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return _createClass(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Zt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:X(t.element,i))}))}this.currentSnapshot=e}}]),t}(),ie=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=S(i),r}return _createClass(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)})),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(a.d),re=function(){function t(){_classCallCheck(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return b(t)}},{key:"matchesElement",value:function(t,e){return k(t,e)}},{key:"containsElement",value:function(t,e){return C(t,e)}},{key:"query",value:function(t,e,n){return w(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map((function(t){return S(t)}));var i="@keyframes ".concat(e," {\n"),r="";n.forEach((function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}})),i+="".concat(r,"}\n")})),i+="}\n";var a=document.createElement("style");return a.innerHTML=i,a}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=a.filter((function(t){return t instanceof ne})),l={};W(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return l[t]=e[t]}))}));var c=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=q(t,e,l));if(0==n)return new ie(t,c);var u="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);var f=qt(t,e),d=new ne(t,e,u,n,i,r,c,f);return d.onDestroy((function(){var t;(t=h).parentNode.removeChild(t)})),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),t}(),ae=function(){function t(e,n,i,r){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:X(t.element,n))})),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),oe=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(se().toString()),this._cssKeyframesDriver=new re}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return b(t)}},{key:"matchesElement",value:function(t,e){return k(t,e)}},{key:"containsElement",value:function(t,e){return C(t,e)}},{key:"query",value:function(t,e,n){return w(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,a);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},c=a.filter((function(t){return t instanceof ae}));W(n,i)&&c.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return l[t]=e[t]}))}));var u=qt(t,e=q(t,e=e.map((function(t){return R(t,!1)})),l));return new ae(t,e,s,u)}}]),t}();function se(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var le,ce=n("ofXK"),ue=((le=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var a;return _classCallCheck(this,n),(a=e.call(this))._nextAnimationId=0,a._renderer=t.createRenderer(r.body,{id:"0",encapsulation:i.R.None,styles:[],data:{animation:[]}}),a}return _createClass(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(a.i)(t):t;return de(this._renderer,null,e,"register",[n]),new he(e,this._renderer)}}]),n}(a.b)).\u0275fac=function(t){return new(t||le)(i.bc(i.H),i.bc(ce.d))},le.\u0275prov=i.Nb({token:le,factory:le.\u0275fac}),le),he=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(t,e){return new fe(this._id,t,e||{},this._renderer)}}]),n}(a.c),fe=function(){function t(e,n,i,r){_classCallCheck(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof c&&(s=e.pop()),null===l&&1===e.length&&e[0]instanceof i.a?e[0]:Object(a.a)(s)(Object(o.a)(e,l))}},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return u}));var i=n("HDdC"),r=n("7o/Q"),a=n("quSY"),o=n("9ppp"),s=n("Ylt2"),l=n("2QA8"),c=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t)).destination=t,i}return n}(r.a),u=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return _createClass(n,[{key:l.a,value:function(){return new c(this)}},{key:"lift",value:function(t){var e=new h(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new o.a;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),r=0;r4&&void 0!==arguments[4]?arguments[4]:new i.a(t,n,o);if(!s.closed)return e instanceof a.a?e.subscribe(s):Object(r.a)(e)(s)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("5+tZ"),r=n("SpAZ");function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(i.a)(r.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5+tZ");function r(t,e){return Object(i.a)(t,e,1)}},bTqV:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d}));var i=n("FKr1"),r=n("R1ws"),a=n("fXoL"),o=n("u47x"),s=["mat-button",""],l=["*"],c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],u=Object(i.r)(Object(i.t)(Object(i.s)((function t(e){_classCallCheck(this,t),this._elementRef=e})))),h=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;_classCallCheck(this,n),(a=e.call(this,t))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(c);try{for(s.s();!(o=s.n()).done;){var l=o.value;a._hasHostAttributes(l)&&a._getHostElement().classList.add(l)}}catch(u){s.e(u)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),a._focusMonitor.monitor(a._elementRef,!0),a.isRoundButton&&(a.color="accent"),a}return _createClass(n,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t}(),f=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){return _classCallCheck(this,n),e.call(this,i,t,r)}return _createClass(n,[{key:"_haltDisabledEvents",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}]),n}(h);return t.\u0275fac=function(e){return new(e||t)(a.Rb(o.e),a.Rb(a.m),a.Rb(r.a,8))},t.\u0275cmp=a.Lb({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&a.fc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(a.Fb("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),a.Ib("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[a.Bb],attrs:s,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(a.nc(),a.Xb(0,"span",0),a.mc(1),a.Wb(),a.Sb(2,"div",1),a.Sb(3,"div",2)),2&t&&(a.Eb(2),a.Ib("mat-button-ripple-round",e.isRoundButton||e.isIconButton),a.oc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.m],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t}(),d=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=a.Pb({type:t}),t.\u0275inj=a.Ob({factory:function(e){return new(e||t)},imports:[[i.n,i.e],i.e]}),t}()},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return i}))},cH1L:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return o}));var i=n("fXoL"),r=n("ofXK"),a=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.X)(r.d)}}),o=function(){var t=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new i.p,e){var n=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||n;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.bc(a,8))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(a,8))},token:t,providedIn:"root"}),t}(),s=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)}}),t}()},cp0P:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("HDdC"),r=n("DH7j"),a=n("lJxs"),o=n("XoHu"),s=n("Cfvw");function l(){for(var t=arguments.length,e=new Array(t),n=0;n void",Object(C.h)("@transformPanel",[Object(C.f)()],{optional:!0}))]),transformPanel:Object(C.m)("transformPanel",[Object(C.j)("void",Object(C.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(C.j)("showing",Object(C.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(C.j)("showing-multiple",Object(C.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(C.l)("void => *",Object(C.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(C.l)("* => void",Object(C.e)("100ms 25ms linear",Object(C.k)({opacity:0})))])},M=0,F=new a.s("mat-select-scroll-strategy"),L=new a.s("MAT_SELECT_CONFIG"),V={provide:F,deps:[i.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},B=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},z=Object(o.s)(Object(o.v)(Object(o.t)(Object(o.u)((function t(e,n,i,r,a){_classCallCheck(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a}))))),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Mb({type:t,selectors:[["mat-select-trigger"]]}),t}(),U=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s,l,c,u,h,b,k,C,w,S){var x;return _classCallCheck(this,n),(x=e.call(this,s,o,c,u,b))._viewportRuler=t,x._changeDetectorRef=i,x._ngZone=r,x._dir=l,x._parentFormField=h,x.ngControl=b,x._liveAnnouncer=w,x._panelOpen=!1,x._required=!1,x._scrollTop=0,x._multiple=!1,x._compareWith=function(t,e){return t===e},x._uid="mat-select-".concat(M++),x._destroy=new f.a,x._triggerFontSize=0,x._onChange=function(){},x._onTouched=function(){},x._optionIds="",x._transformOrigin="top",x._panelDoneAnimatingStream=new f.a,x._offsetY=0,x._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],x._disableOptionCentering=!1,x._focused=!1,x.controlType="mat-select",x.ariaLabel="",x.optionSelectionChanges=Object(d.a)((function(){var t=x.options;return t?t.changes.pipe(Object(m.a)(t),Object(v.a)((function(){return Object(p.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.onSelectionChange}))))}))):x._ngZone.onStable.asObservable().pipe(Object(g.a)(1),Object(v.a)((function(){return x.optionSelectionChanges})))})),x.openedChange=new a.p,x._openedStream=x.openedChange.pipe(Object(y.a)((function(t){return t})),Object(_.a)((function(){}))),x._closedStream=x.openedChange.pipe(Object(y.a)((function(t){return!t})),Object(_.a)((function(){}))),x.selectionChange=new a.p,x.valueChange=new a.p,x.ngControl&&(x.ngControl.valueAccessor=_assertThisInitialized(x)),x._scrollStrategyFactory=C,x._scrollStrategy=x._scrollStrategyFactory(),x.tabIndex=parseInt(k)||0,x.id=x.id,S&&(null!=S.disableOptionCentering&&(x.disableOptionCentering=S.disableOptionCentering),null!=S.typeaheadDebounceInterval&&(x.typeaheadDebounceInterval=S.typeaheadDebounceInterval)),x}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new u.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(b.a)(),Object(k.a)(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Object(k.a)(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Object(k.a)(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(Object(m.a)(null),Object(k.a)(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Object(g.a)(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.options&&this._setSelectionByValue(t)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=e===h.d||e===h.p||e===h.i||e===h.m,i=e===h.f||e===h.n,r=this._keyManager;if(!r.isTyping()&&i&&!Object(h.s)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;e===h.h||e===h.e?(e===h.h?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=n===h.d||n===h.p,r=e.isTyping();if(n===h.h||n===h.e)t.preventDefault(),n===h.h?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==h.f&&n!==h.n||!e.activeItem||Object(h.s)(t))if(!r&&this._multiple&&n===h.a&&t.ctrlKey){t.preventDefault();var a=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(a?t.select():t.deselect())}))}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==o&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this.overlayDir.positionChange.pipe(Object(g.a)(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return Object(a.Y)()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(k.a)(this._destroy)).subscribe((function(){!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close()})),this._keyManager.change.pipe(Object(k.a)(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var t=this,e=Object(p.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(k.a)(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Object(p.a).apply(void 0,_toConsumableArray(this.options.map((function(t){return t._stateChanges})))).pipe(Object(k.a)(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new B(this,e)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var t=this._keyManager.activeItemIndex||0,e=Object(o.p)(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Object(o.q)(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getOptionIndex",value:function(t){return this.options.reduce((function(e,n,i){return void 0!==e?e:t===n?i:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=Object(o.p)(r,this.options,this.optionGroups);var a=n/2;this._scrollTop=this._calculateOverlayScroll(r,a,i),this._offsetY=this._calculateOverlayOffsetY(r,a,i),this._checkOverlayWithinViewport(i)}},{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var a=this._selectionModel.selected[0]||this.options.first;t=a&&a.group?32:16}i||(t*=-1);var o=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);o>0?t+=o+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=Object(c.c)(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Object(c.c)(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Object(c.c)(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=Object(c.f)(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(z);return t.\u0275fac=function(e){return new(e||t)(a.Rb(w.d),a.Rb(a.i),a.Rb(a.B),a.Rb(o.a),a.Rb(a.m),a.Rb(S.b,8),a.Rb(x.l,8),a.Rb(x.e,8),a.Rb(s.a,8),a.Rb(x.i,10),a.cc("tabindex"),a.Rb(F),a.Rb(l.h),a.Rb(L,8))},t.\u0275cmp=a.Lb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(a.Kb(n,H,!0),a.Kb(n,o.i,!0),a.Kb(n,o.h,!0)),2&t&&(a.qc(i=a.gc())&&(e.customTrigger=i.first),a.qc(i=a.gc())&&(e.options=i),a.qc(i=a.gc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(a.Ic(O,!0),a.Ic(E,!0),a.Ic(i.a,!0)),2&t&&(a.qc(n=a.gc())&&(e.trigger=n.first),a.qc(n=a.gc())&&(e.panel=n.first),a.qc(n=a.gc())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&a.fc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(a.Fb("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),a.Ib("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.Db([{provide:s.d,useExisting:t},{provide:o.c,useExisting:t}]),a.Bb,a.Cb],ngContentSelectors:D,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(a.nc(P),a.Xb(0,"div",0,1),a.fc("click",(function(){return e.toggle()})),a.Xb(3,"div",2),a.Bc(4,T,2,1,"span",3),a.Bc(5,I,3,2,"span",4),a.Wb(),a.Xb(6,"div",5),a.Sb(7,"div",6),a.Wb(),a.Wb(),a.Bc(8,R,4,10,"ng-template",7),a.fc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=a.rc(1);a.Eb(3),a.oc("ngSwitch",e.empty),a.Eb(1),a.oc("ngSwitchCase",!0),a.Eb(1),a.oc("ngSwitchCase",!1),a.Eb(3),a.oc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,r.m,r.n,i.a,r.o,r.i],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t}(),W=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=a.Pb({type:t}),t.\u0275inj=a.Ob({factory:function(e){return new(e||t)},providers:[V],imports:[[r.c,i.f,o.j,o.e],s.e,o.j,o.e]}),t}()},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("l7GE"),r=n("51Dv"),a=n("ZUHj"),o=n("lJxs"),s=n("Cfvw");function l(t,e){return"function"==typeof e?function(n){return n.pipe(l((function(n,i){return Object(s.a)(t(n,i)).pipe(Object(o.a)((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new c(t))}}var c=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.project))}}]),t}(),u=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).project=i,r.index=0,r}return _createClass(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var o=new r.a(this,e,n),s=this.destination;s.add(o),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&s.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}}]),n}(i.a)},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return ka})),n.d(e,"b",(function(){return jl})),n.d(e,"c",(function(){return xl})),n.d(e,"d",(function(){return wl})),n.d(e,"e",(function(){return Sl})),n.d(e,"f",(function(){return Cc})),n.d(e,"g",(function(){return hc})),n.d(e,"h",(function(){return Hl})),n.d(e,"i",(function(){return ra})),n.d(e,"j",(function(){return zl})),n.d(e,"k",(function(){return ns})),n.d(e,"l",(function(){return Pl})),n.d(e,"m",(function(){return is})),n.d(e,"n",(function(){return yc})),n.d(e,"o",(function(){return bn})),n.d(e,"p",(function(){return $s})),n.d(e,"q",(function(){return X})),n.d(e,"r",(function(){return u})),n.d(e,"s",(function(){return G})),n.d(e,"t",(function(){return ba})),n.d(e,"u",(function(){return Cs})),n.d(e,"v",(function(){return ws})),n.d(e,"w",(function(){return Rl})),n.d(e,"x",(function(){return st})),n.d(e,"y",(function(){return dc})),n.d(e,"z",(function(){return ot})),n.d(e,"A",(function(){return oc})),n.d(e,"B",(function(){return ql})),n.d(e,"C",(function(){return h})),n.d(e,"D",(function(){return Al})),n.d(e,"E",(function(){return Tl})),n.d(e,"F",(function(){return el})),n.d(e,"G",(function(){return ss})),n.d(e,"H",(function(){return as})),n.d(e,"I",(function(){return os})),n.d(e,"J",(function(){return cs})),n.d(e,"K",(function(){return si})),n.d(e,"L",(function(){return d})),n.d(e,"M",(function(){return vc})),n.d(e,"N",(function(){return Es})),n.d(e,"O",(function(){return $l})),n.d(e,"P",(function(){return us})),n.d(e,"Q",(function(){return As})),n.d(e,"R",(function(){return vt})),n.d(e,"S",(function(){return Aa})),n.d(e,"T",(function(){return sc})),n.d(e,"U",(function(){return Ln})),n.d(e,"V",(function(){return j})),n.d(e,"W",(function(){return lc})),n.d(e,"X",(function(){return nt})),n.d(e,"Y",(function(){return Fn})),n.d(e,"Z",(function(){return bc})),n.d(e,"ab",(function(){return ec})),n.d(e,"bb",(function(){return Il})),n.d(e,"cb",(function(){return oa})),n.d(e,"db",(function(){return qs})),n.d(e,"eb",(function(){return ai})),n.d(e,"fb",(function(){return ui})),n.d(e,"gb",(function(){return Hn})),n.d(e,"hb",(function(){return Tn})),n.d(e,"ib",(function(){return jn})),n.d(e,"jb",(function(){return Dn})),n.d(e,"kb",(function(){return Rn})),n.d(e,"lb",(function(){return In})),n.d(e,"mb",(function(){return Pn})),n.d(e,"nb",(function(){return zs})),n.d(e,"ob",(function(){return _c})),n.d(e,"pb",(function(){return Hs})),n.d(e,"qb",(function(){return Us})),n.d(e,"rb",(function(){return An})),n.d(e,"sb",(function(){return L})),n.d(e,"tb",(function(){return ja})),n.d(e,"ub",(function(){return Qa})),n.d(e,"vb",(function(){return Ya})),n.d(e,"wb",(function(){return Ta})),n.d(e,"xb",(function(){return Bs})),n.d(e,"yb",(function(){return Bt})),n.d(e,"zb",(function(){return E})),n.d(e,"Ab",(function(){return En})),n.d(e,"Bb",(function(){return Fo})),n.d(e,"Cb",(function(){return Uo})),n.d(e,"Db",(function(){return $o})),n.d(e,"Eb",(function(){return Ai})),n.d(e,"Fb",(function(){return Da})),n.d(e,"Gb",(function(){return go})),n.d(e,"Hb",(function(){return Po})),n.d(e,"Ib",(function(){return vo})),n.d(e,"Jb",(function(){return $a})),n.d(e,"Kb",(function(){return pl})),n.d(e,"Lb",(function(){return bt})),n.d(e,"Mb",(function(){return Et})),n.d(e,"Nb",(function(){return g})),n.d(e,"Ob",(function(){return y})),n.d(e,"Pb",(function(){return St})),n.d(e,"Qb",(function(){return Tt})),n.d(e,"Rb",(function(){return La})),n.d(e,"Sb",(function(){return qa})),n.d(e,"Tb",(function(){return Ka})),n.d(e,"Ub",(function(){return Xa})),n.d(e,"Vb",(function(){return Ga})),n.d(e,"Wb",(function(){return Wa})),n.d(e,"Xb",(function(){return Ua})),n.d(e,"Yb",(function(){return Za})),n.d(e,"Zb",(function(){return vn})),n.d(e,"ac",(function(){return Do})),n.d(e,"bc",(function(){return et})),n.d(e,"cc",(function(){return Va})),n.d(e,"dc",(function(){return Cl})),n.d(e,"ec",(function(){return Ba})),n.d(e,"fc",(function(){return Ja})),n.d(e,"gc",(function(){return gl})),n.d(e,"hc",(function(){return je})),n.d(e,"ic",(function(){return Ae})),n.d(e,"jc",(function(){return io})),n.d(e,"kc",(function(){return Qs})),n.d(e,"lc",(function(){return Js})),n.d(e,"mc",(function(){return oo})),n.d(e,"nc",(function(){return ao})),n.d(e,"oc",(function(){return za})),n.d(e,"pc",(function(){return Ys})),n.d(e,"qc",(function(){return ul})),n.d(e,"rc",(function(){return Fa})),n.d(e,"sc",(function(){return Qe})),n.d(e,"tc",(function(){return Ye})),n.d(e,"uc",(function(){return ae})),n.d(e,"vc",(function(){return hi})),n.d(e,"wc",(function(){return fi})),n.d(e,"xc",(function(){return xt})),n.d(e,"yc",(function(){return ml})),n.d(e,"zc",(function(){return hl})),n.d(e,"Ac",(function(){return mo})),n.d(e,"Bc",(function(){return Ma})),n.d(e,"Cc",(function(){return kl})),n.d(e,"Dc",(function(){return Ao})),n.d(e,"Ec",(function(){return jo})),n.d(e,"Fc",(function(){return Io})),n.d(e,"Gc",(function(){return Ro})),n.d(e,"Hc",(function(){return No})),n.d(e,"Ic",(function(){return fl}));var i=n("XNiG"),r=n("quSY"),a=n("HDdC"),o=n("VRyK"),s=n("w1tV");function l(t){return{toString:t}.toString()}function c(t,e,n){return l((function(){var i=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}(e);function r(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:p.Default;if(void 0===Q)throw new Error("inject() must be called from an injection context");return null===Q?it(t,void 0,e):Q.get(t,e&p.Optional?null:void 0,e)}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Default;return(P||tt)(I(t),e)}var nt=et;function it(t,e,n){var i=_(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&p.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(E(t),"]"))}function rt(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:K;if(e===K){var n=new Error("NullInjectorError: No provider for ".concat(E(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),ot=function t(){_classCallCheck(this,t)},st=function t(){_classCallCheck(this,t)};function lt(t,e){t.forEach((function(t){return Array.isArray(t)?lt(t,e):e(t)}))}function ct(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ut(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ht(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function dt(t,e){var n=pt(t,e);if(n>=0)return t[1|n]}function pt(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var a=i+(r-i>>1),o=t[a<<1];if(e===o)return a<<1;o>e?r=a:i=a+1}return~(r<<1)}(t,e)}var mt=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),vt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),gt={},yt=[],_t=0;function bt(t){return l((function(){var e=t.type,n=e.prototype,i={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===mt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||yt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||vt.Emulated,id:"c",styles:t.styles||yt,_:null,setInput:null,schemas:t.schemas||null,tView:null},a=t.directives,o=t.features,s=t.pipes;return r.id+=_t++,r.inputs=Ot(t.inputs,i),r.outputs=Ot(t.outputs),o&&o.forEach((function(t){return t(r)})),r.directiveDefs=a?function(){return("function"==typeof a?a():a).map(kt)}:null,r.pipeDefs=s?function(){return("function"==typeof s?s():s).map(Ct)}:null,r}))}function kt(t){return At(t)||function(t){return t[B]||null}(t)}function Ct(t){return function(t){return t[z]||null}(t)}var wt={};function St(t){var e={type:t.type,bootstrap:t.bootstrap||yt,declarations:t.declarations||yt,imports:t.imports||yt,exports:t.exports||yt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&l((function(){wt[t.id]=t.type})),e}function xt(t,e){return l((function(){var n=It(t,!0);n.declarations=e.declarations||yt,n.imports=e.imports||yt,n.exports=e.exports||yt}))}function Ot(t,e){if(null==t)return gt;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,e&&(e[r]=a)}return n}var Et=bt;function Tt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function At(t){return t[V]||null}function jt(t,e){return t.hasOwnProperty(W)?t[W]:null}function It(t,e){var n=t[H]||null;if(!n&&!0===e)throw new Error("Type ".concat(E(t)," does not have '\u0275mod' property."));return n}function Rt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Pt(t){return Array.isArray(t)&&!0===t[1]}function Dt(t){return 0!=(8&t.flags)}function Nt(t){return 2==(2&t.flags)}function Mt(t){return 1==(1&t.flags)}function Ft(t){return null!==t.template}function Lt(t){return 0!=(512&t[2])}var Vt=void 0;function Bt(t){Vt=t}function zt(){return void 0!==Vt?Vt:"undefined"!=typeof document?document:void 0}function Ht(t){return!!t.listen}var Ut={createRenderer:function(t,e){return zt()}};function Wt(t){for(;Array.isArray(t);)t=t[0];return t}function qt(t,e){return Wt(e[t+19])}function Gt(t,e){return Wt(e[t.index])}function Xt(t,e){return t.data[e+19]}function Kt(t,e){return t[e+19]}function Zt(t,e){var n=e[t];return Rt(n)?n:n[0]}function Yt(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Qt(t){return 4==(4&t[2])}function Jt(t){return 128==(128&t[2])}function $t(t,e){return null===t||null==e?null:t[e]}function te(t){t[18]=0}var ee={lFrame:Ce(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ne(){return ee.bindingsEnabled}function ie(){return ee.lFrame.lView}function re(){return ee.lFrame.tView}function ae(t){ee.lFrame.contextLView=t}function oe(){return ee.lFrame.previousOrParentTNode}function se(t,e){ee.lFrame.previousOrParentTNode=t,ee.lFrame.isParent=e}function le(){return ee.lFrame.isParent}function ce(){ee.lFrame.isParent=!1}function ue(){return ee.checkNoChangesMode}function he(t){ee.checkNoChangesMode=t}function fe(){var t=ee.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function de(){return ee.lFrame.bindingIndex}function pe(){return ee.lFrame.bindingIndex++}function me(t){var e=ee.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ve(t,e){var n=ee.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function ge(){return ee.lFrame.currentQueryIndex}function ye(t){ee.lFrame.currentQueryIndex=t}function _e(t,e){var n=ke();ee.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function be(t,e){var n=ke(),i=t[1];ee.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function ke(){var t=ee.lFrame,e=null===t?null:t.child;return null===e?Ce(t):e}function Ce(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function we(){var t=ee.lFrame;return ee.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var Se=we;function xe(){var t=we();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Oe(){return ee.lFrame.selectedIndex}function Ee(t){ee.lFrame.selectedIndex=t}function Te(){var t=ee.lFrame;return Xt(t.tView,t.selectedIndex)}function Ae(){ee.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function je(){ee.lFrame.currentNamespace=null}function Ie(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(a>10>16&&(3&t[2])===e&&(t[2]+=1024,a.call(o)):a.call(o)}var Fe=function t(e,n,i){_classCallCheck(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Le(t,e,n){for(var i=Ht(t),r=0;re){o=a-1;break}}}for(;a>16}function Ge(t,e){for(var n=qe(t),i=e;n>0;)i=i[15],n--;return i}function Xe(t){return"string"==typeof t?t:null==t?"":""+t}function Ke(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Xe(t)}var Ze=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(L);function Ye(t){return{name:"window",target:t.ownerDocument.defaultView}}function Qe(t){return{name:"body",target:t.ownerDocument.body}}function Je(t){return t instanceof Function?t():t}var $e=!0;function tn(t){var e=$e;return $e=t,e}var en=0;function nn(t,e){var n=an(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,rn(i.data,t),rn(e,null),rn(i.blueprint,null));var r=on(t,e),a=t.injectorIndex;if(Ue(r))for(var o=We(r),s=Ge(r,e),l=s[1].data,c=0;c<8;c++)e[a+c]=s[o+c]|l[o+c];return e[a+8]=r,a}function rn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function an(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function on(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],i=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function sn(t,e,n){!function(t,e,n){var i="string"!=typeof n?n[q]:n.charCodeAt(0)||0;null==i&&(i=n[q]=en++);var r=255&i,a=1<3&&void 0!==arguments[3]?arguments[3]:p.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var a=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t[q];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof a){_e(e,t);try{var o=a();if(null!=o||i&p.Optional)return o;throw new Error("No provider for ".concat(Ke(n),"!"))}finally{Se()}}else if("number"==typeof a){if(-1===a)return new mn(t,e);var s=null,l=an(t,e),c=-1,u=i&p.Host?e[16][6]:null;for((-1===l||i&p.SkipSelf)&&(c=-1===l?on(t,e):e[l+8],pn(i,!1)?(s=e[1],l=We(c),e=Ge(c,e)):l=-1);-1!==l;){c=e[l+8];var h=e[1];if(dn(a,l,h.data)){var f=un(l,e,n,s,i,u);if(f!==cn)return f}pn(i,e[1].data[l+8]===u)&&dn(a,l,e)?(s=h,l=We(c),e=Ge(c,e)):l=-1}}}if(i&p.Optional&&void 0===r&&(r=null),0==(i&(p.Self|p.Host))){var d=e[9],m=$(void 0);try{return d?d.get(n,r,i&p.Optional):it(n,r,i&p.Optional)}finally{$(m)}}if(i&p.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(Ke(n),"]"))}var cn={};function un(t,e,n,i,r,a){var o=e[1],s=o.data[t+8],l=hn(s,o,n,null==i?Nt(s)&&$e:i!=o&&3===s.type,r&p.Host&&a===s);return null!==l?fn(e,o,l,s):cn}function hn(t,e,n,i,r){for(var a=t.providerIndexes,o=e.data,s=65535&a,l=t.directiveStart,c=a>>16,u=r?s+c:t.directiveEnd,h=i?s:s+c;h=l&&f.type===n)return h}if(r){var d=o[l];if(d&&Ft(d)&&d.type===n)return l}return null}function fn(t,e,n,i){var r=t[n],a=e.data;if(r instanceof Fe){var o=r;if(o.resolving)throw new Error("Circular dep for ".concat(Ke(a[n])));var s,l=tn(o.canSeeViewProviders);o.resolving=!0,o.injectImpl&&(s=$(o.injectImpl)),_e(t,i);try{r=t[n]=o.factory(void 0,a,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.onChanges,r=e.onInit,a=e.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,a[n],e)}finally{o.injectImpl&&$(s),tn(l),o.resolving=!1,Se()}}return r}function dn(t,e,n){var i=64&t,r=32&t;return!!((128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e])&1<1?e-1:0),i=1;i',!n.querySelector||n.querySelector("svg")?(n.innerHTML='

',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(t,[{key:"getInertBodyElement_XHR",value:function(t){t=""+t+"";try{t=encodeURI(t)}catch(i){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();Yn.hasOwnProperty(e)&&!Gn.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(ri(t))}},{key:"checkClobberedElement",value: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: ".concat(t.outerHTML));return e}}]),t}(),ni=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ii=/([^\#-~ |!])/g;function ri(t){return t.replace(/&/g,"&").replace(ni,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(ii,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function ai(t,e){var n=null;try{qn=qn||new Vn(t);var i=e?String(e):"";n=qn.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=qn.getInertBodyElement(i)}while(i!==a);var o=new ei,s=o.sanitizeChildren(oi(n)||n);return Fn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var l=oi(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}function oi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var si=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),li=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ci=/^url\(([^)]+)\)$/;function ui(t){if(!(t=String(t).trim()))return"";var e=t.match(ci);return e&&Hn(e[1])===e[1]||t.match(li)&&function(t){for(var e=!0,n=!0,i=0;ia?"":r[u+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==gi(f,c,0)||2&i&&c!==h){if(ki(i))return!1;o=!0}}}}else{if(!o&&!ki(i)&&!ki(l))return!1;if(o&&ki(l))continue;o=!1,i=l|1&i}}return ki(i)||o}function ki(t){return 0==(1&t)}function Ci(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||ki(o)||(e+=xi(a,r),r=""),i=o,a=a||!ki(i);n++}return""!==r&&(e+=xi(a,r)),e}var Ei={};function Ti(t){var e=t[3];return Pt(e)?e[3]:e}function Ai(t){ji(re(),ie(),Oe()+t,ue())}function ji(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&Re(e,r,n)}else{var a=t.preOrderHooks;null!==a&&Pe(e,a,0,n)}Ee(n)}function Ii(t,e){return t<<17|e<<2}function Ri(t){return t>>17&32767}function Pi(t){return 2|t}function Di(t){return(131068&t)>>2}function Ni(t,e){return-131069&t|e<<2}function Mi(t){return 1|t}function Fi(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i>1==-1){for(var i=9;i19&&ji(t,e,0,ue()),n(i,r)}finally{Ee(a)}}function qi(t,e,n){if(Dt(e))for(var i=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Gt,i=e.localNames;if(null!==i)for(var r=e.index+1,a=0;a0&&(t[n-1][4]=i[4]);var a=ut(t,9+e);jr(i[1],i,!1,null);var o=a[5];null!==o&&o.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Pr(t,e){if(!(256&e[2])){var n=e[11];Ht(n)&&n.destroyNode&&qr(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Nr(t[1],t);for(;e;){var n=null;if(Rt(e))n=e[13];else{var i=e[9];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)Rt(e)&&Nr(e[1],e),e=Dr(e,t);null===e&&(e=t),Rt(e)&&Nr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Dr(t,e){var n;return Rt(t)&&(n=t[6])&&2===n.type?Er(n,t):t[3]===e?null:t[3]}function Nr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[l]():i[-l].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&Ht(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&Pt(e[3])){i!==e[3]&&Ir(i,e);var r=e[5];null!==r&&r.detachView(t)}}}function Mr(t,e,n){for(var i=e.parent;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){var r=n[6];return 2===r.type?Tr(r,n):n[0]}if(e&&5===e.type&&4&e.flags)return Gt(e,n).parentNode;if(2&i.flags){var a=t.data,o=a[a[i.index].directiveStart].encapsulation;if(o!==vt.ShadowDom&&o!==vt.Native)return null}return Gt(i,n)}function Fr(t,e,n,i){Ht(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Lr(t,e,n){Ht(t)?t.appendChild(e,n):e.appendChild(n)}function Vr(t,e,n,i){null!==i?Fr(t,e,n,i):Lr(t,e,n)}function Br(t,e){return Ht(t)?t.parentNode(e):e.parentNode}function zr(t,e){if(2===t.type){var n=Er(t,e);return null===n?null:Ur(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Gt(t,e):null}function Hr(t,e,n,i){var r=Mr(t,i,e);if(null!=r){var a=e[11],o=zr(i.parent||e[6],e);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Pr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){var e,n,i;e=this._lView[1],i=t,kr(n=this._lView).push(i),e.firstCreatePass&&Cr(e).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){vr(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){gr(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){he(!0);try{gr(t,e,n)}finally{he(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,qr(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView;return null==t[0]?function t(e,n,i,r){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var o=n[i.index];if(null!==o&&r.push(Wt(o)),Pt(o))for(var s=9;s0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var a=n||this.parentInjector;if(!r&&null==t.ngModule&&a){var o=a.get(ot,null);o&&(r=o)}var s=t.create(a,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Pt(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var a=n[3],o=new Qr(a,a[6],a[3]);o.detach(o.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,i){var r=9+i,a=n.length;i>0&&(n[r-1][4]=e),i1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return ta(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new mn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=on(this._hostTNode,this._hostView),e=Ge(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var a=qe(t),o=e,s=e[6];a>1;)s=(o=o[15])[6],a--;return s}(t,this._hostView,this._hostTNode);return Ue(t)&&null!=n?new mn(n,e):new mn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),i}(t));var a=i[n.index];if(Pt(a))(function(t,e){t[2]=-2})(r=a);else{var o;if(4===n.type)o=Wt(a);else if(o=i[11].createComment(""),Lt(i)){var s=i[11],l=Gt(n,i);Fr(s,Br(s,l),o,function(t,e){return Ht(t)?t.nextSibling(e):e.nextSibling}(s,l))}else Hr(i[1],i,o,n);i[n.index]=r=hr(a,i,o,n),mr(i,r)}return new Qr(r,n,i)}function ia(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,n){if(!n&&Nt(t)){var i=Zt(t.index,e);return new Jr(i,i)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Jr(e[16],e):null}(oe(),ie(),t)}var ra=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return aa()},t}(),aa=ia,oa=new G("Set Injector scope."),sa={},la={},ca=[],ua=void 0;function ha(){return void 0===ua&&(ua=new at),ua}function fa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new da(t,n,e||ha(),i)}var da=function(){function t(e,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&<(n,(function(t){return r.processProvider(t,e,n)})),lt([e],(function(t){return r.processInjectorType(t,[],o)})),this.records.set(X,va(void 0,this));var s=this.records.get(oa);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof e?null:E(e))}return _createClass(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default;this.assertNotDestroyed();var i,r=J(this);try{if(!(n&p.SkipSelf)){var a=this.records.get(t);if(void 0===a){var o=("function"==typeof(i=t)||"object"==typeof i&&i instanceof G)&&_(t);a=o&&this.injectableDefInScope(o)?va(pa(t),sa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(n&p.Self?ha():this.parent).get(t,e=n&p.Optional&&e===K?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(E(t)),r)throw s;return function(t,e,n,i){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=E(e);if(Array.isArray(e))r=e.map(E).join(" -> ");else if("object"==typeof e){var a=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):E(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(Z,"\n "))}("\n"+t.message,r,"R3InjectorError",i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{J(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,n){return t.push(E(n))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=I(t)))return!1;var r=k(t),a=null==r&&t.ngModule||void 0,o=void 0===a?t:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=k(a)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(o);try{lt(r.imports,(function(t){i.processInjectorType(t,e,n)&&(void 0===l&&(l=[]),l.push(t))}))}finally{}if(void 0!==l)for(var c=function(t){var e=l[t],n=e.ngModule,r=e.providers;lt(r,(function(t){return i.processProvider(t,n,r||ca)}))},u=0;u0){var n=ht(e,"?");throw new Error("Can't resolve all parameters for ".concat(E(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[C]||t[x]||t[S]&&t[S]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in v10. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function ma(t,e,n){var i,r=void 0;if(ya(t)){var a=I(t);return jt(a)||pa(a)}if(ga(t))r=function(){return I(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,_toConsumableArray(rt(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return et(I(t.useExisting))};else{var o=I(t&&(t.useClass||t.provide));if(o||function(t,e,n){var i="";throw t&&e&&(i=" - only instances of Provider and Type are allowed, got: [".concat(e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(E(t),"'")+i)}(e,n,t),!function(t){return!!t.deps}(t))return jt(o)||pa(o);r=function(){return _construct(o,_toConsumableArray(rt(t.deps)))}}return r}function va(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function ga(t){return null!==t&&"object"==typeof t&&Y in t}function ya(t){return"function"==typeof t}var _a=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=fa(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)},ba=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?_a(t,e,""):_a(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=K,t.NULL=new at,t.\u0275prov=g({token:t,providedIn:"any",factory:function(){return et(X)}}),t.__NG_ELEMENT_ID__=-1,t}(),ka=new G("AnalyzeForEntryComponents"),Ca=new Map,wa=new Set;function Sa(t){return"string"==typeof t?t:t.text()}function xa(t,e){for(var n=t.styles,i=t.classes,r=0,a=0;a1&&void 0!==arguments[1]?arguments[1]:p.Default,n=ie();return null==n?et(t,e):ln(oe(),n,I(t),e)}function Va(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var i=n.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=ie(),a=re(),o=oe();return to(a,r,r[11],o,t,e,n,i),Ja}function $a(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=oe(),a=ie(),o=wr(r,a);return to(re(),a,o,r,t,e,n,i),$a}function to(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Mt(i),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=kr(e),h=!0;if(3===i.type){var f=Gt(i,e),d=s?s(f):gt,p=d.target||f,m=u.length,v=s?function(t){return s(Wt(t[i.index])).target}:i.index;if(Ht(n)){var g=null;if(!s&&l&&(g=function(t,e,n,i){var r=t.cleanup;if(null!=r)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}(t,e,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=a,g.__ngLastListenerFn__=a,h=!1;else{a=no(i,e,a,!1);var y=n.listen(d.name||p,r,a);u.push(a,y),c&&c.push(r,v,m,m+1)}}else a=no(i,e,a,!0),p.addEventListener(r,a,o),u.push(a),c&&c.push(r,v,m,o)}var _,b=i.outputs;if(h&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(ee.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,ee.lFrame.contextLView))[8]}(t)}function ro(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=ie(),r=re(),a=Bi(r,i[6],t,1,null,n||null);null===a.projection&&(a.projection=e),ce(),function(t,e,n){Gr(e[11],0,e,n,Mr(t,n,e),zr(n.parent||e[6],e))}(r,i,a)}var so=[];function lo(t,e,n,i,r){for(var a=t[n+1],o=null===e,s=i?Ri(a):Di(a),l=!1;0!==s&&(!1===l||o);){var c=t[s+1];co(t[s],e)&&(l=!0,t[s+1]=i?Mi(c):Pi(c)),s=i?Ri(c):Di(c)}l&&(t[n+1]=i?Pi(a):Mi(a))}function co(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&pt(t,e)>=0}var uo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ho(t){return t.substring(uo.key,uo.keyEnd)}function fo(t,e){var n=uo.textEnd;return n===e?-1:(e=uo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,uo.key=e,n),po(t,e,n))}function po(t,e,n){for(;e=0;n=fo(e,n))ft(t,ho(e),!0)}function _o(t,e,n,i){var r,a,o=ie(),s=re(),l=me(2);(s.firstUpdatePass&&Co(s,t,l,i),e!==Ei&&Pa(o,l,e))&&(null==n&&(r=null===(a=ee.lFrame)?null:a.currentSanitizer)&&(n=r),xo(s,s.data[Oe()+19],o,o[11],t,o[l+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=E(En(t)))),t}(e,n),i,l))}function bo(t,e,n,i){var r=re(),a=me(2);r.firstUpdatePass&&Co(r,null,a,i);var o=ie();if(n!==Ei&&Pa(o,a,n)){var s=r.data[Oe()+19];if(To(s,i)&&!ko(r,a)){var l=i?s.classes:s.styles;null!==l&&(n=T(l,n||"")),Ha(r,s,o,n,i)}else!function(t,e,n,i,r,a,o,s){r===Ei&&(r=so);for(var l=0,c=0,u=0=t.expandoStartIndex}function Co(t,e,n,i){var r=t.data;if(null===r[n+1]){var a=r[Oe()+19],o=ko(t,n);To(a,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){var r=function(t){var e=ee.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),a=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=So(n=wo(null,t,e,n,i),e.attrs,i),a=null);else{var o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=wo(r,t,e,n,i),null===a){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Di(i))return t[Ri(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Ri(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=So(s=wo(null,t,e,s[1],i),e.attrs,i))}else a=function(t,e,n){for(var i=void 0,r=e.directiveEnd,a=1+e.directiveStylingLast;a0)&&(u=!0)}else c=n;if(r)if(0!==l){var f=Ri(t[s+1]);t[i+1]=Ii(f,s),0!==f&&(t[f+1]=Ni(t[f+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Ii(s,0),0!==s&&(t[s+1]=Ni(t[s+1],i)),s=i;else t[i+1]=Ii(l,0),0===s?s=i:t[l+1]=Ni(t[l+1],i),l=i;u&&(t[i+1]=Pi(t[i+1])),lo(t,c,i,!0),lo(t,c,i,!1),function(t,e,n,i,r){var a=r?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof e&&pt(a,e)>=0&&(n[i+1]=Mi(n[i+1]))}(e,c,t,i,a),o=Ii(s,l),a?e.classBindings=o:e.styleBindings=o}(r,a,e,n,o,i)}}function wo(t,e,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=t[r],c=Array.isArray(l),u=c?l[1]:l,h=null===u,f=n[r+1];f===Ei&&(f=h?so:void 0);var d=h?dt(f,i):u===i?f:void 0;if(c&&!Eo(d)&&(d=dt(l,i)),Eo(d)&&(s=d,o))return s;var p=t[r+1];r=o?Ri(p):Di(p)}if(null!==e){var m=a?e.residualClasses:e.residualStyles;null!=m&&(s=dt(m,i))}return s}function Eo(t){return void 0!==t}function To(t,e){return 0!=(t.flags&(e?16:32))}function Ao(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=ie(),i=re(),r=t+19,a=i.firstCreatePass?Bi(i,n[6],t,3,null,null):i.data[r],o=n[r]=function(t,e){return Ht(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Hr(i,n,o,a),se(a,!1)}function jo(t){return Io("",t,""),jo}function Io(t,e,n){var i=ie(),r=Na(i,t,e,n);return r!==Ei&&Or(i,Oe(),r),Io}function Ro(t,e,n,i,r,a,o){var s=ie(),l=function(t,e,n,i,r,a,o,s){var l=function(t,e,n,i,r){var a=function(t,e,n,i){var r=Pa(t,e,n);return Pa(t,e+1,i)||r}(t,e,n,i);return Pa(t,e+2,r)||a}(t,de(),n,r,o);return me(3),l?e+Xe(n)+i+Xe(r)+a+Xe(o)+s:Ei}(s,t,e,n,i,r,a,o);return l!==Ei&&Or(s,Oe(),l),Ro}function Po(t,e,n){bo(ft,yo,Na(ie(),t,e,n),!0)}function Do(t,e,n){var i=ie();return Pa(i,pe(),e)&&Ji(re(),Te(),i,t,e,i[11],n,!0),Do}function No(t,e,n){var i=ie();if(Pa(i,pe(),e)){var r=re(),a=Te();Ji(r,a,i,t,e,wr(a,i),n,!0)}return No}function Mo(t,e){var n=Yt(t)[1],i=n.data.length-1;Ie(n,{directiveStart:i,directiveEnd:i+1})}function Fo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Ft(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var a=t;a.inputs=Lo(t.inputs),a.declaredInputs=Lo(t.declaredInputs),a.outputs=Lo(t.outputs);var o=r.hostBindings;o&&zo(t,o);var s=r.viewQuery,l=r.contentQueries;if(s&&Vo(t,s),l&&Bo(t,l),v(t.inputs,r.inputs),v(t.declaredInputs,r.declaredInputs),v(t.outputs,r.outputs),Ft(r)&&r.data.animation){var c=t.data;c.animation=(c.animation||[]).concat(r.data.animation)}a.afterContentChecked=a.afterContentChecked||r.afterContentChecked,a.afterContentInit=t.afterContentInit||r.afterContentInit,a.afterViewChecked=t.afterViewChecked||r.afterViewChecked,a.afterViewInit=t.afterViewInit||r.afterViewInit,a.doCheck=t.doCheck||r.doCheck,a.onDestroy=t.onDestroy||r.onDestroy,a.onInit=t.onInit||r.onInit}var u=r.features;if(u)for(var h=0;h=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=ze(r.hostAttrs,n=ze(n,r.hostAttrs))}}(i)}function Lo(t){return t===gt?{}:t===yt?[]:t}function Vo(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Bo(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function zo(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Ho=function(){function t(e,n,i){_classCallCheck(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return _createClass(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Uo(t){t.type.prototype.ngOnChanges&&(t.setInput=Wo,t.onChanges=function(){var t=qo(this),e=t&&t.current;if(e){var n=t.previous;if(n===gt)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}})}function Wo(t,e,n,i){var r=qo(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:gt,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],l=o[s];a[s]=new Ho(l&&l.currentValue,e,o===gt),t[i]=e}function qo(t){return t.__ngSimpleChanges__||null}function Go(t,e,n,i,r){if(t=I(t),Array.isArray(t))for(var a=0;a>16;if(ya(t)||!t.multi){var p=new Fe(c,r,La),m=Zo(l,e,r?h:h+d,f);-1===m?(sn(nn(u,s),o,l),Xo(o,t,e.length),e.push(l),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=65536),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var v=Zo(l,e,h+d,f),g=Zo(l,e,h,h+d),y=v>=0&&n[v],_=g>=0&&n[g];if(r&&!_||!r&&!y){sn(nn(u,s),o,l);var b=function(t,e,n,i,r){var a=new Fe(t,n,La);return a.multi=[],a.index=e,a.componentProviders=0,Ko(a,r,i&&!n),a}(r?Qo:Yo,n.length,r,i,c);!r&&_&&(n[g].providerFactory=b),Xo(o,t,e.length),e.push(l),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=65536),n.push(b),s.push(b)}else Xo(o,t,v>-1?v:g),Ko(n[r?g:v],c,!r&&i);!r&&i&&_&&n[g].componentProviders++}}}function Xo(t,e,n){if(ya(e)||e.useClass){var i=(e.useClass||e).prototype.ngOnDestroy;i&&(t.destroyHooks||(t.destroyHooks=[])).push(n,i)}}function Ko(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Zo(t,e,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(t,e,n){var i=re();if(i.firstCreatePass){var r=Ft(t);Go(n,i.data,i.blueprint,r,!0),Go(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}}Uo.ngInherit=!0;var ts=function t(){_classCallCheck(this,t)},es=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(E(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),ns=function(){var t=function t(){_classCallCheck(this,t)};return t.NULL=new es,t}(),is=function(){var t=function t(e){_classCallCheck(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=function(){return rs(t)},t}(),rs=function(t){return ta(t,oe(),ie())},as=function t(){_classCallCheck(this,t)},os=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),ss=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return ls()},t}(),ls=function(){var t=ie(),e=Zt(oe().index,t);return function(t){var e=t[11];if(Ht(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Rt(e)?e:t)},cs=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275prov=g({token:t,providedIn:"root",factory:function(){return null}}),t}(),us=function t(e){_classCallCheck(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},hs=new us("9.1.0"),fs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return ja(t)}},{key:"create",value:function(t){return new ps(t)}}]),t}(),ds=function(t,e){return e},ps=function(){function t(e){_classCallCheck(this,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=e||ds}return _createClass(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var a=!n||e&&e.currentIndex0&&Kr(c,h,b.join(" "))}a=Xt(v[1],0),e&&(a.projection=e.map((function(t){return Array.from(t)}))),r=function(t,e,n,i,r){var a=n[1],o=function(t,e,n){var i=oe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ir(t,i,1),sr(t,e,n));var r=fn(e,t,e.length-1,i);pi(r,e);var a=Gt(i,e);return a&&pi(a,e),r}(a,n,e);i.components.push(o),t[8]=o,r&&r.forEach((function(t){return t(o,e)})),e.contentQueries&&e.contentQueries(1,o,n.length-1);var s=oe();if(a.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Ee(s.index-19);var l=n[1];tr(l,e),er(l,n,e.hostVars),nr(e,o)}return o}(g,this.componentDef,v,p,[Mo]),zi(m,v,null)}finally{xe()}var k=new Ms(this.componentType,r,ta(is,a,v),v,a);return n&&!d||(k.hostView._tViewNode.child=a),k}},{key:"inputs",get:function(){return Ps(this.componentDef.inputs)}},{key:"outputs",get:function(){return Ps(this.componentDef.outputs)}}]),n}(ts),Ms=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a,o){var s,l,c,u;return _classCallCheck(this,n),(s=e.call(this)).location=r,s._rootLView=a,s._tNode=o,s.destroyCbs=[],s.instance=i,s.hostView=s.changeDetectorRef=new $r(a),s.hostView._tViewNode=(l=a[1],c=a,null==(u=l.node)&&(l.node=u=Yi(0,null,2,-1,null,null)),c[6]=u),s.componentType=t,s}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(t){this.destroyCbs&&this.destroyCbs.push(t)}},{key:"injector",get:function(){return new mn(this._tNode,this._rootLView)}}]),n}(function(){return function t(){_classCallCheck(this,t)}}()),Fs=void 0,Ls=["en",[["a","p"],["AM","PM"],Fs],[["AM","PM"],Fs,Fs],[["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"]],Fs,[["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"]],Fs,[["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}",Fs,"{1} 'at' {0}",Fs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Vs={};function Bs(t,e,n){"string"!=typeof e&&(n=e,e=t[qs.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Vs[e]=t,n&&(Vs[e][qs.ExtraData]=n)}function zs(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=Ws(e);if(n)return n;var i=e.split("-")[0];if(n=Ws(i))return n;if("en"===i)return Ls;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function Hs(t){return zs(t)[qs.CurrencyCode]||null}function Us(t){return zs(t)[qs.PluralCase]}function Ws(t){return t in Vs||(Vs[t]=L.ng&&L.ng.common&&L.ng.common.locales&&L.ng.common.locales[t]),Vs[t]}var qs=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();function Gs(t){var e;null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined")+" [Expected=> null != ".concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var Xs=new Map,Ks=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;_classCallCheck(this,n),(r=e.call(this))._parent=i,r._bootstrapComponents=[],r.injector=_assertThisInitialized(r),r.destroyCbs=[],r.componentFactoryResolver=new Rs(_assertThisInitialized(r));var a=It(t),o=t[U]||null;return o&&Gs(o),r._bootstrapComponents=Je(a.bootstrap),r._r3Injector=fa(t,i,[{provide:ot,useValue:_assertThisInitialized(r)},{provide:ns,useValue:r.componentFactoryResolver}],E(t)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(t),r}return _createClass(n,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ba.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default;return t===ba||t===ot||t===X?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(ot),Zs=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).moduleType=t,null!==It(t)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(E(e)," vs ").concat(E(e.name)))})(n,Xs.get(n),e),Xs.set(n,e)}var i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(e){return t(e)}))}(t),i}return _createClass(n,[{key:"create",value:function(t){return new Ks(this.moduleType,t)}}]),n}(st);function Ys(t,e,n){var i=fe()+t,r=ie();return r[i]===Ei?Ra(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Qs(t,e){var n,i=re(),r=t+19;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=jt(n.type)),o=$(La),s=a();return $(o),function(t,e,n,i){var r=n+19;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(i,ie(),t,s),s}function Js(t,e,n){var i=ie(),r=Kt(i,t);return function(t,e){return Aa.isWrapped(e)&&(e=Aa.unwrap(e),t[de()]=Ei),e}(i,function(t,e){return t[1].data[e+19].pure}(i,t)?function(t,e,n,i,r,a){var o=e+n;return Pa(t,o,r)?Ra(t,o+1,a?i.call(a,r):i(r)):function(t,e){var n=t[e];return n===Ei?void 0:n}(t,o+1)}(i,fe(),e,r.transform,n,r):r.transform(n))}var $s=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(t=e.call(this)).__isAsync=i,t}return _createClass(n,[{key:"emit",value:function(t){_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,i){var a,o=function(t){return null},s=function(){return null};t&&"object"==typeof t?(a=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(a=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),i&&(s=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var l=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,a,o,s);return t instanceof r.a&&t.add(l),l}}]),n}(i.a);function tl(){return this._results[Ea()]()}var el=function(){function t(){_classCallCheck(this,t),this.dirty=!0,this._results=[],this.changes=new $s,this.length=0;var e=Ea(),n=t.prototype;n[e]||(n[e]=tl)}return _createClass(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.predicate=e,this.descendants=n,this.isStatic=i,this.read=r},al=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,i=0;i0)r.push(s[l/2]);else{for(var u=o[l+1],h=n[-c],f=9;f0&&void 0!==arguments[0]?arguments[0]:p.Default,e=ia(!0);if(null!=e||t&p.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}var wl=new G("Application Initializer"),Sl=function(){var t=function(){function t(e){var n=this;_classCallCheck(this,t),this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,e){n.resolve=t,n.reject=e}))}return _createClass(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var i=0;i0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(t){return t.timeoutId!==r})),t(i._didWork,i.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}},{key:"whenStable",value: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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(et(ql))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t}(),tc=function(){var t=function(){function t(){_classCallCheck(this,t),this._applications=new Map,ic.addToWindow(this)}return _createClass(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ic.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t}();function ec(t){ic=t}var nc,ic=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),rc=function(t,e,n){var i=t.get(Hl,[]).concat(e),r=new Zs(n);if(0===Ca.size)return Promise.resolve(r);var a,o,s=(a=i.map((function(t){return t.providers})),o=[],a.forEach((function(t){return t&&o.push.apply(o,_toConsumableArray(t))})),o);if(0===s.length)return Promise.resolve(r);var l=function(){var t=L.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),c=ba.create({providers:s}).get(l.ResourceLoader);return function(t){var e=[],n=new Map;function i(t){var e=n.get(t);if(!e){var i=function(t){return Promise.resolve(c.get(t))}(t);n.set(t,e=i.then(Sa))}return e}return Ca.forEach((function(t,n){var r=[];t.templateUrl&&r.push(i(t.templateUrl).then((function(e){t.template=e})));var a=t.styleUrls,o=t.styles||(t.styles=[]),s=t.styles.length;a&&a.forEach((function(e,n){o.push(""),r.push(i(e).then((function(i){o[s+n]=i,a.splice(a.indexOf(e),1),0==a.length&&(t.styleUrls=void 0)})))}));var l=Promise.all(r).then((function(){return function(t){wa.delete(t)}(n)}));e.push(l)})),Ca=new Map,Promise.all(e).then((function(){}))}().then((function(){return r}))},ac=new G("AllowMultipleToken"),oc=function t(e,n){_classCallCheck(this,t),this.name=e,this.token=n};function sc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new G(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=lc();if(!a||a.injector.get(ac,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var o=n.concat(e).concat({provide:r,useValue:!0},{provide:oa,useValue:"platform"});!function(t){if(nc&&!nc.destroyed&&!nc.injector.get(ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nc=t.get(cc);var e=t.get(Tl,null);e&&e.forEach((function(t){return t()}))}(ba.create({providers:o,name:i}))}return function(t){var e=lc();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}(r)}}function lc(){return nc&&!nc.destroyed?nc:null}var cc=function(){var t=function(){function t(e){_classCallCheck(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,a=(n=e?e.ngZone:void 0,i=e&&e.ngZoneEventCoalescing||!1,"noop"===n?new Jl:("zone.js"===n?void 0:n)||new ql({enableLongStackTrace:Fn(),shouldCoalesceEventChangeDetection:i})),o=[{provide:ql,useValue:a}];return a.run((function(){var e=ba.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(bn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return fc(r._modules,n)})),a.runOutsideAngular((function(){return a.onError.subscribe({next:function(t){i.handleError(t)}})})),function(t,e,i){try{var a=((o=n.injector.get(Sl)).runInitializers(),o.donePromise.then((function(){return Gs(n.injector.get(Rl,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return Ya(a)?a.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):a}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var o}(i,a)}))}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=uc({},n);return rc(this.injector,i,t).then((function(t){return e.bootstrapModuleFactory(t,i)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(hc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(E(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value: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}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(et(ba))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t}();function uc(t,e){return Array.isArray(e)?e.reduce(uc,t):Object.assign(Object.assign({},t),e)}var hc=function(){var t=function(){function t(e,n,i,r,l,c){var u=this;_classCallCheck(this,t),this._zone=e,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=l,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Fn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run((function(){u.tick()}))}});var h=new a.a((function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular((function(){t.next(u._stable),t.complete()}))})),f=new a.a((function(t){var e;u._zone.runOutsideAngular((function(){e=u._zone.onStable.subscribe((function(){ql.assertNotInAngularZone(),Wl((function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))}))}))}));var n=u._zone.onUnstable.subscribe((function(){ql.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(o.a)(h,f.pipe(Object(s.a)()))}return _createClass(t,[{key:"bootstrap",value:function(t,e){var n,i=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 ts?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(ot),a=n.create(ba.NULL,[],e||n.selector,r);a.onDestroy((function(){i._unloadComponent(a)}));var o=a.injector.get($l,null);return o&&a.injector.get(tc).registerApplication(a.location.nativeElement,o),this._loadComponent(a),Fn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(e=n.n()).done;){e.value.detectChanges()}}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var i,r=_createForOfIteratorHelper(this._views);try{for(r.s();!(i=r.n()).done;){i.value.checkNoChanges()}}catch(a){r.e(a)}finally{r.f()}}}catch(o){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(o)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;fc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(jl,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),fc(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(et(ql),et(Il),et(ba),et(bn),et(ns),et(Sl))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t}();function fc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var dc=function t(){_classCallCheck(this,t)},pc=function t(){_classCallCheck(this,t)},mc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},vc=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._compiler=e,this._config=n||mc}return _createClass(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=_slicedToArray(t.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n("zn8P")(r).then((function(t){return t[a]})).then((function(t){return gc(t,r,a)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=_slicedToArray(t.split("#"),2),i=e[0],r=e[1],a="NgFactory";return void 0===r&&(r="default",a=""),n("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(t){return t[r+a]})).then((function(t){return gc(t,i,r)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(et(zl),et(pc,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t}();function gc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var yc=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(ra)),_c=function(t){return null},bc=sc(null,"core",[{provide:Al,useValue:"unknown"},{provide:cc,deps:[ba]},{provide:tc,deps:[]},{provide:Il,deps:[]}]),kc=[{provide:hc,useClass:hc,deps:[ql,Il,ba,bn,ns,Sl]},{provide:Ds,deps:[ql],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Sl,useClass:Sl,deps:[[new h,wl]]},{provide:zl,useClass:zl,deps:[]},Ol,{provide:Cs,useFactory:function(){return xs},deps:[]},{provide:ws,useFactory:function(){return Os},deps:[]},{provide:Rl,useFactory:function(t){return Gs(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new u(Rl),new h,new d]]},{provide:Pl,useValue:"USD"}],Cc=function(){var t=function t(e){_classCallCheck(this,t)};return t.\u0275mod=St({type:t}),t.\u0275inj=y({factory:function(e){return new(e||t)(et(hc))},providers:kc}),t}()},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("2fFW"),r=n("NJ4a"),a={closed:!0,next:function(t){},error:function(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete:function(){}}},itXk:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("z+Ro"),r=n("DH7j"),a=n("l7GE"),o=n("ZUHj"),s=n("yCtX"),l={};function c(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.sb.getAllAngularTestabilities=function(){return t.getAllTestabilities()},a.sb.getAllAngularRootElements=function(){return t.getAllRootElements()},a.sb.frameworkStabilizers||(a.sb.frameworkStabilizers=[]),a.sb.frameworkStabilizers.push((function(t){var e=a.sb.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach((function(t){t.whenStable(r)}))}))}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?Object(r.x)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){Object(a.ab)(new t)}}]),t}(),h=new a.s("EventManagerPlugins"),f=function(){var t=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=i})),this._plugins=e.slice().reverse()}return _createClass(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i-1&&(e.splice(n,1),a+=t+".")})),a+=r,0!=e.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&T.hasOwnProperty(e)&&(e=T[e]))}return E[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),O.forEach((function(i){i!=n&&(0,A[i])(t)&&(e+=i+".")})),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded((function(){return e(r)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(d);return t.\u0275fac=function(e){return new(e||t)(a.bc(r.d))},t.\u0275prov=a.Nb({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Nb)({factory:function(){return Object(a.bc)(P)},token:t,providedIn:"root"}),t}();function R(t){return new P(t.get(r.d))}var P=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._doc=t,i}return _createClass(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case a.K.NONE:return e;case a.K.HTML:return Object(a.hb)(e,"HTML")?Object(a.Ab)(e):Object(a.eb)(this._doc,String(e));case a.K.STYLE:return Object(a.hb)(e,"Style")?Object(a.Ab)(e):Object(a.fb)(e);case a.K.SCRIPT:if(Object(a.hb)(e,"Script"))return Object(a.Ab)(e);throw new Error("unsafe value used in a script context");case a.K.URL:return Object(a.rb)(e),Object(a.hb)(e,"URL")?Object(a.Ab)(e):Object(a.gb)(String(e));case a.K.RESOURCE_URL:if(Object(a.hb)(e,"ResourceURL"))return Object(a.Ab)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return Object(a.ib)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return Object(a.lb)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return Object(a.kb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return Object(a.mb)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return Object(a.jb)(t)}}]),n}(I);return t.\u0275fac=function(e){return new(e||t)(a.bc(r.d))},t.\u0275prov=Object(a.Nb)({factory:function(){return R(Object(a.bc)(a.q))},token:t,providedIn:"root"}),t}(),D=[{provide:a.D,useValue:r.w},{provide:a.E,useValue:function(){o.makeCurrent(),u.init()},multi:!0},{provide:r.d,useFactory:function(){return Object(a.yb)(document),document},deps:[]}],N=Object(a.T)(a.Z,"browser",D),M=[[],{provide:a.cb,useValue:"root"},{provide:a.o,useFactory:function(){return new a.o},deps:[]},{provide:h,useClass:S,multi:!0,deps:[r.d,a.B,a.D]},{provide:h,useClass:j,multi:!0,deps:[r.d]},[],{provide:b,useClass:b,deps:[f,m,a.c]},{provide:a.H,useExisting:b},{provide:p,useExisting:m},{provide:m,useClass:m,deps:[r.d]},{provide:a.O,useClass:a.O,deps:[a.B]},{provide:f,useClass:f,deps:[h,a.B]},[]],F=function(){var t=function(){function t(e){if(_classCallCheck(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:a.c,useValue:e.appId},{provide:l,useExisting:a.c},c]}}}]),t}();return t.\u0275mod=a.Pb({type:t}),t.\u0275inj=a.Ob({factory:function(e){return new(e||t)(a.bc(t,12))},providers:M,imports:[r.c,a.f]}),t}();"undefined"!=typeof window&&window},jtHE:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var i,r=n("XNiG"),a=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,i):t.flush(this)}}]),n}(n("3N8a").a),o=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(n("IjjT").a))(a),s=n("quSY"),l=n("7o/Q"),c=n("EY2u"),u=n("LRne"),h=n("z6cu"),f=((i=function(){function t(e,n,i){_classCallCheck(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return _createClass(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(u.a)(this.value);case"E":return Object(h.a)(this.error);case"C":return Object(c.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}()).completeNotification=new i("C"),i.undefinedValueNotification=new i("N",void 0),i),d=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(r=e.call(this,t)).scheduler=i,r.delay=a,r}return _createClass(n,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new p(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(f.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(f.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(f.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),n}(l.a),p=function t(e,n){_classCallCheck(this,t),this.notification=e,this.destination=n},m=n("9ppp"),v=n("Ylt2"),g=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(t=e.call(this)).scheduler=a,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=i<1?1:i,t._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new y(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,a=i.length;if(this.closed)throw new m.a;if(this.isStopped||this.hasError?e=s.a.EMPTY:(this.observers.push(t),e=new v.a(this,t)),r&&t.add(t=new d(t,r)),n)for(var o=0;oe&&(a=Math.max(a,r-e)),a>0&&i.splice(0,a),i}}]),n}(r.a),y=function t(e,n){_classCallCheck(this,t),this.time=e,this.value=n}},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},kmnG:function(t,e,n){"use strict";n.d(e,"a",(function(){return Z})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return Y})),n.d(e,"d",(function(){return L})),n.d(e,"e",(function(){return Q})),n.d(e,"f",(function(){return z})),n.d(e,"g",(function(){return H}));var i=n("ofXK"),r=n("fXoL"),a=n("GU7r"),o=n("8LU1"),s=n("FKr1"),l=n("XNiG"),c=n("VRyK"),u=n("xgIS"),h=n("JX91"),f=n("1G5W"),d=n("IzEk"),p=n("R0Ic"),m=n("R1ws"),v=n("cH1L"),g=n("nLfN"),y=["underline"],_=["connectionContainer"],b=["inputContainer"],k=["label"];function C(t,e){1&t&&(r.Vb(0),r.Xb(1,"div",14),r.Sb(2,"div",15),r.Sb(3,"div",16),r.Sb(4,"div",17),r.Wb(),r.Xb(5,"div",18),r.Sb(6,"div",15),r.Sb(7,"div",16),r.Sb(8,"div",17),r.Wb(),r.Ub())}function w(t,e){1&t&&(r.Xb(0,"div",19),r.mc(1,1),r.Wb())}function S(t,e){if(1&t&&(r.Vb(0),r.mc(1,2),r.Xb(2,"span"),r.Dc(3),r.Wb(),r.Ub()),2&t){var n=r.jc(2);r.Eb(3),r.Ec(n._control.placeholder)}}function x(t,e){1&t&&r.mc(0,3,["*ngSwitchCase","true"])}function O(t,e){1&t&&(r.Xb(0,"span",23),r.Dc(1," *"),r.Wb())}function E(t,e){if(1&t){var n=r.Yb();r.Xb(0,"label",20,21),r.fc("cdkObserveContent",(function(){return r.uc(n),r.jc().updateOutlineGap()})),r.Bc(2,S,4,1,"ng-container",12),r.Bc(3,x,1,0,void 0,12),r.Bc(4,O,2,0,"span",22),r.Wb()}if(2&t){var i=r.jc();r.Ib("mat-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),r.oc("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),r.Fb("for",i._control.id)("aria-owns",i._control.id),r.Eb(2),r.oc("ngSwitchCase",!1),r.Eb(1),r.oc("ngSwitchCase",!0),r.Eb(1),r.oc("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function T(t,e){1&t&&(r.Xb(0,"div",24),r.mc(1,4),r.Wb())}function A(t,e){if(1&t&&(r.Xb(0,"div",25,26),r.Sb(2,"span",27),r.Wb()),2&t){var n=r.jc();r.Eb(2),r.Ib("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function j(t,e){if(1&t&&(r.Xb(0,"div"),r.mc(1,5),r.Wb()),2&t){var n=r.jc();r.oc("@transitionMessages",n._subscriptAnimationState)}}function I(t,e){if(1&t&&(r.Xb(0,"div",31),r.Dc(1),r.Wb()),2&t){var n=r.jc(2);r.oc("id",n._hintLabelId),r.Eb(1),r.Ec(n.hintLabel)}}function R(t,e){if(1&t&&(r.Xb(0,"div",28),r.Bc(1,I,2,2,"div",29),r.mc(2,6),r.Sb(3,"div",30),r.mc(4,7),r.Wb()),2&t){var n=r.jc();r.oc("@transitionMessages",n._subscriptAnimationState),r.Eb(1),r.oc("ngIf",n.hintLabel)}}var P=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],D=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],N=0,M=function(){var t=function t(){_classCallCheck(this,t),this.id="mat-error-".concat(N++)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&r.Fb("id",e.id)},inputs:{id:"id"}}),t}(),F={transitionMessages:Object(p.m)("transitionMessages",[Object(p.j)("enter",Object(p.k)({opacity:1,transform:"translateY(0%)"})),Object(p.l)("void => enter",[Object(p.k)({opacity:0,transform:"translateY(-100%)"}),Object(p.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},L=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t}),t}();function V(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var B=0,z=function(){var t=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-".concat(B++)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(r.Fb("id",e.id)("align",null),r.Ib("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t}(),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-label"]]}),t}(),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-placeholder"]]}),t}(),W=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["","matPrefix",""]]}),t}(),q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["","matSuffix",""]]}),t}(),G=0,X=Object(s.r)((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),K=new r.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Z=new r.s("MatFormField"),Y=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a,o,s,c,u){var h;return _classCallCheck(this,n),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=i,h._dir=a,h._defaults=o,h._platform=s,h._ngZone=c,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new l.a,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(G++),h._labelId="mat-form-field-label-".concat(G++),h._labelOptions=r||{},h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==u,h.appearance=o&&o.appearance?o.appearance:"legacy",h._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,h}return _createClass(n,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Object(h.a)(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Object(f.a)(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Object(f.a)(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object(c.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Object(h.a)(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Object(h.a)(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Object(f.a)(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(u.a)(this._label.nativeElement,"transitionend").pipe(Object(d.a)(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw V("start");t=i}else if("end"===i.align){if(e)throw V("end");e=i}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,l=this._getStartEnd(o),c=this._getStartEnd(t.children[0].getBoundingClientRect()),u=0,h=_createForOfIteratorHelper(t.children);try{for(h.s();!(s=h.n()).done;){u+=s.value.offsetWidth}}catch(p){h.e(p)}finally{h.f()}e=Math.abs(c-l)-5,n=u>0?.75*u+10:0}for(var f=0;f=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}n.d(e,"a",(function(){return i}))},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",(function(){return i}))},nLfN:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return m}));var i,r=n("fXoL"),a=n("ofXK");try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){i=!1}var o,s,l,c,u=function(){var t=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(a.t)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!i)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return t.\u0275fac=function(e){return new(e||t)(r.bc(r.D,8))},t.\u0275prov=Object(r.Nb)({factory:function(){return new t(Object(r.bc)(r.D,8))},token:t,providedIn:"root"}),t}(),h=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({factory:function(e){return new(e||t)}}),t}(),f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function d(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(f);var t=document.createElement("input");return o=new Set(f.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function p(t){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return s=!0}}))}finally{s=s||!1}return s}()?t:!!t.capture}function m(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function v(){if("object"!=typeof document||!document)return 0;if(null==l){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),l=0,0===t.scrollLeft&&(t.scrollLeft=1,l=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return l}function g(t){if(function(){if(null==c){var t="undefined"!=typeof document?document.head:null;c=!(!t||!t.createShadowRoot&&!t.attachShadow)}return c}()){var e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("7o/Q"),r=n("quSY");function a(t){return function(e){return e.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.callback))}}]),t}(),s=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).add(new r.a(i)),a}return n}(i.a)},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){return function(e){for(var n=0,i=t.length;n0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(y);return t.\u0275fac=function(e){return new(e||t)(i.bc(c),i.bc(b,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),C=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=m(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(y);return t.\u0275fac=function(e){return new(e||t)(i.bc(c),i.bc(b,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),w=function(){var t=function(){function t(e,n){var r=this;_classCallCheck(this,t),this._subject=new i.p,this._urlChangeListeners=[],this._platformStrategy=e;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=v(x(a)),this._platformStrategy.onPopState((function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})}))}return _createClass(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+g(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,x(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(t,e)}))}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.bc(y),i.bc(c))},t.normalizeQueryParams=g,t.joinWithSlash=m,t.stripTrailingSlash=v,t.\u0275prov=Object(i.Nb)({factory:S,token:t,providedIn:"root"}),t}();function S(){return new w(Object(i.bc)(y),Object(i.bc)(c))}function x(t){return t.replace(/\/index.html$/,"")}var O=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),E=i.qb,T=function t(){_classCallCheck(this,t)},A=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).locale=t,i}return _createClass(n,[{key:"getPluralCategory",value:function(t,e){switch(E(e||this.locale)(t)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}]),n}(T);return t.\u0275fac=function(e){return new(e||t)(i.bc(i.w))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}();function j(t,e){e=encodeURIComponent(e);var n,i=_createForOfIteratorHelper(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=_slicedToArray(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[0],l=o[1];if(s.trim()===e)return decodeURIComponent(l)}}catch(c){i.e(c)}finally{i.f()}return null}var I=function(){var t=function(){function t(e,n,i,r){_classCallCheck(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(t,[{key:"ngDoCheck",value: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)}}},{key:"_applyKeyValueChanges",value: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)}))}},{key:"_applyIterableChanges",value: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 ".concat(Object(i.zb)(t.item)));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value: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])})))}},{key:"_removeClasses",value: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)})))}},{key:"_toggleClass",value: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)}))}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"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&&(Object(i.tb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.u),i.Rb(i.v),i.Rb(i.m),i.Rb(i.G))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),R=function(){function t(e,n,i,r){_classCallCheck(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return _createClass(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),P=function(){var t=function(){function t(e,n,i){_classCallCheck(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(t,[{key:"ngDoCheck",value: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(i){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((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)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation((function(t,i,r){if(null==t.previousIndex){var a=e._viewContainer.createEmbeddedView(e._template,new R(null,e._ngForOf,-1,-1),null===r?void 0:r),o=new D(t,a);n.push(o)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var l=new D(t,s);n.push(l)}}));for(var i=0;ie.height||t.scrollWidth>e.width}}]),t}();function y(){return Error("Scroll strategy has already been attached.")}var _=function(){function t(e,n,i,r){var a=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run((function(){return a._overlayRef.detach()}))}}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw y();this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),b=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function k(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function C(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var w=function(){function t(e,n,i,r){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw y();this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;k(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),S=function(){var t=function t(e,n,i,r){var a=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new b},this.close=function(t){return new _(a._scrollDispatcher,a._ngZone,a._viewportRuler,t)},this.block=function(){return new g(a._viewportRuler,a._document)},this.reposition=function(t){return new w(a._scrollDispatcher,a._viewportRuler,a._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(r.bc(i.b),r.bc(i.d),r.bc(r.B),r.bc(s.d))},t.\u0275prov=Object(r.Nb)({factory:function(){return new t(Object(r.bc)(i.b),Object(r.bc)(i.d),Object(r.bc)(r.B),Object(r.bc)(s.d))},token:t,providedIn:"root"}),t}(),x=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new b,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}},this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.bc(s.d))},t.\u0275prov=Object(r.Nb)({factory:function(){return new t(Object(r.bc)(s.d))},token:t,providedIn:"root"}),t}(),I=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),R=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._platform=n,this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||I)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;nd&&(d=v,f=m)}}catch(g){p.e(g)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&M(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=t.x,a=t.y,o=this._getOffset(i,"x"),s=this._getOffset(i,"y");o&&(r+=o),s&&(a+=s);var l=0-a,c=a+e.height-n.height,u=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,l,c),f=u*h;return{visibleArea:f,isCompletelyWithinViewport:e.width*e.height===f,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,a=F(this._overlayRef.getConfig().minHeight),o=F(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=a&&a<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,a=this._viewportRect,o=Math.max(t.x+e.width-a.right,0),s=Math.max(t.y+e.height-a.bottom,0),l=Math.max(a.top-n.top-t.y,0),c=Math.max(a.left-n.left-t.x,0);return i=e.width<=a.width?c||-o:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!c||"start"===e.overlayX&&c)s=l.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!c||"end"===e.overlayX&&c)o=t.x,a=l.right-t.x;else{var f=Math.min(l.right-t.x+l.left,t.x),d=this._lastBoundingBoxSize.width;a=2*f,o=t.x-f,a>d&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-d/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Object(l.d)(n.height),i.top=Object(l.d)(n.top),i.bottom=Object(l.d)(n.bottom),i.width=Object(l.d)(n.width),i.left=Object(l.d)(n.left),i.right=Object(l.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Object(l.d)(r)),a&&(i.maxWidth=Object(l.d)(a))}this._lastBoundingBoxSize=n,M(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){M(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){M(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();M(n,this._getExactOverlayY(e,t,o)),M(n,this._getExactOverlayX(e,t,o))}else n.position="static";var s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+="translateX(".concat(c,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=Object(l.d)(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=Object(l.d)(a.maxWidth):r&&(n.maxWidth="")),M(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=Object(l.d)(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=Object(l.d)(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:C(t,n),isOriginOutsideView:k(t,n),isOverlayClipped:C(e,n),isOverlayOutsideView:k(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),B=function(){var t=function(){function t(e,n,i,r){_classCallCheck(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(t,[{key:"global",value:function(){return new V}},{key:"connectedTo",value:function(t,e,n){return new L(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new N(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.bc(i.d),r.bc(s.d),r.bc(a.a),r.bc(R))},t.\u0275prov=Object(r.Nb)({factory:function(){return new t(Object(r.bc)(i.d),Object(r.bc)(s.d),Object(r.bc)(a.a),Object(r.bc)(R))},token:t,providedIn:"root"}),t}(),z=0,H=function(){var t=function(){function t(e,n,i,r,a,o,s,l,c,u){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=l,this._directionality=c,this._location=u}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new x(t);return r.direction=r.direction||this._directionality.value,new P(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(z++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(r.g)),new c.d(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.bc(S),r.bc(R),r.bc(r.k),r.bc(B),r.bc(j),r.bc(r.t),r.bc(r.B),r.bc(s.d),r.bc(o.b),r.bc(s.g,8))},t.\u0275prov=r.Nb({token:t,factory:t.\u0275fac}),t}(),U=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],W=new r.s("cdk-connected-overlay-scroll-strategy"),q=function(){var t=function t(e){_classCallCheck(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.m))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),G=function(){var t=function(){function t(e,n,i,a,o){_classCallCheck(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new r.p,this.positionChange=new r.p,this.attach=new r.p,this.detach=new r.p,this.overlayKeydown=new r.p,this._templatePortal=new c.g(n,i),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=U),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),e.keyCode!==v.g||Object(v.s)(e)||(e.preventDefault(),t._detachOverlay())}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new x({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Object(l.c)(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=Object(l.c)(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=Object(l.c)(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=Object(l.c)(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=Object(l.c)(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Rb(H),r.Rb(r.N),r.Rb(r.Q),r.Rb(W),r.Rb(o.b,8))},t.\u0275dir=r.Mb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[r.Cb]}),t}(),X={provide:W,deps:[H],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},K=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({factory:function(e){return new(e||t)},providers:[H,X],imports:[[o.a,c.f,i.c],i.c]}),t}()},sxot:function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"h",(function(){return s})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"k",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return v}));var i,r=n("mrSG"),a=n("AcyG"),o=function(){var t=function t(e){_classCallCheck(this,t),this.isAceAllowed=e};return t.type="[App-State] Setting IsAceAllowed",t}(),s=function(){var t=function t(e){_classCallCheck(this,t),this.screens=e};return t.type="[App-State] Set ScreenModel",t}(),l=function(){var t=function t(e){_classCallCheck(this,t),this.payload=e};return t.type="[App-State] Set Selected ScreenModel",t}(),c=function(){var t=function t(e){_classCallCheck(this,t),this.payload=e};return t.type="[App-State] Update ScreenModel",t}(),u=function(){var t=function t(e){_classCallCheck(this,t),this.screenName=e};return t.type="[App-State] Delete ScreenModel",t}(),h=function(){var t=function t(e){_classCallCheck(this,t),this.payload=e};return t.type="[App-State] Create ScreenModel",t}(),f=function(){var t=function t(e){_classCallCheck(this,t),this.payload=e};return t.type="[App-State] Update Statuses",t}(),d=function(){var t=function t(e){_classCallCheck(this,t),this.payload=e};return t.type="[App-State] Set Is Loading",t}(),p=function(){var t=function t(e){_classCallCheck(this,t),this.payload=e};return t.type="[App-State] Set Controlled Screen",t}(),m=function(){var t=function t(){_classCallCheck(this,t)};return t.type="[App-State] Clear Selected Screen",t}(),v=(i=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"setIsLoading",value:function(t,e){var n=e.payload,i=t.getState();t.setState(Object.assign(Object.assign({},i),{isLoading:n}))}},{key:"deleteScreen",value:function(t,e){var n=t.getState,i=t.setState,r=e.screenName,a=n(),o=a.screens.filter((function(t){return t.name!==r}));i(Object.assign(Object.assign({},a),{screens:o}))}},{key:"updateStatuses",value:function(t,e){var n=e.payload,i=t.getState();t.setState(Object.assign(Object.assign({},i),{screenStatus:n}))}},{key:"clearControlledScreen",value:function(t,e){_objectDestructuringEmpty(e);var n=t.getState();t.setState(Object.assign(Object.assign({},n),{controlledScreen:""}))}},{key:"updateScreen",value:function(t,e){var n=t.getState,i=t.setState,r=e.payload,a=n(),o=_toConsumableArray(a.screens),s=o.findIndex((function(t){return t.id===r.id}));o[s]=r,i(Object.assign(Object.assign({},a),{screens:o}))}},{key:"createScreen",value:function(t,e){var n=t.getState,i=t.setState,r=e.payload,a=n(),o=_toConsumableArray(a.screens);o.push(r),i(Object.assign(Object.assign({},a),{screens:o}))}},{key:"setControlledScreen",value:function(t,e){var n=e.payload,i=t.getState(),r=_toConsumableArray(i.screenStatus).findIndex((function(t){return t.screenName===n}));t.setState(Object.assign(Object.assign({},i),{controlledScreen:i.screenStatus[r].screenName}))}},{key:"setSelectedScreen",value:function(t,e){var n=t.getState,i=t.setState,r=e.payload,a=n();i(Object.assign(Object.assign({},a),{selectedScreen:r}))}},{key:"addScreen",value:function(t,e){var n,i=e.screens;t.setState((n={screens:i},function(t){var e=null;for(var i in n){var r=n[i],a=t[i],o="function"==typeof r?r(a):r;o!==a&&(e||(e=Object.assign({},t)),e[i]=o)}return e||t}))}},{key:"setIsAceAllowed",value:function(t,e){var n=e.isAceAllowed,i=t.getState();t.setState(Object.assign(Object.assign({},i),{isAceAllowed:n}))}}],[{key:"isAceAllowed",value:function(t){return t.isAceAllowed}},{key:"getScreens",value:function(t){return t.screens}},{key:"getStatuses",value:function(t){return t.screenStatus}},{key:"getControlledScreen",value:function(t){return t.screenStatus.find((function(e){return e.screenName===t.controlledScreen}))}},{key:"getSelectedScreen",value:function(t){return t.selectedScreen}},{key:"isLoading",value:function(t){return t.isLoading}}]),t}(),Object(r.a)([Object(a.a)(d)],i.prototype,"setIsLoading",null),Object(r.a)([Object(a.a)(u)],i.prototype,"deleteScreen",null),Object(r.a)([Object(a.a)(f)],i.prototype,"updateStatuses",null),Object(r.a)([Object(a.a)(m)],i.prototype,"clearControlledScreen",null),Object(r.a)([Object(a.a)(c)],i.prototype,"updateScreen",null),Object(r.a)([Object(a.a)(h)],i.prototype,"createScreen",null),Object(r.a)([Object(a.a)(p)],i.prototype,"setControlledScreen",null),Object(r.a)([Object(a.a)(l)],i.prototype,"setSelectedScreen",null),Object(r.a)([Object(a.a)(s)],i.prototype,"addScreen",null),Object(r.a)([Object(a.a)(o)],i.prototype,"setIsAceAllowed",null),Object(r.a)([Object(a.e)()],i,"isAceAllowed",null),Object(r.a)([Object(a.e)()],i,"getScreens",null),Object(r.a)([Object(a.e)()],i,"getStatuses",null),Object(r.a)([Object(a.e)()],i,"getControlledScreen",null),Object(r.a)([Object(a.e)()],i,"getSelectedScreen",null),Object(r.a)([Object(a.e)()],i,"isLoading",null),i=Object(r.a)([Object(a.f)({name:"app",defaults:{isAceAllowed:!1,screens:[],selectedScreen:null,screenStatus:null,isLoading:!1,controlledScreen:""}})],i))},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return z})),n.d(e,"c",(function(){return f}));var i=n("fXoL"),r=n("LRne"),a=n("HDdC"),o=n("bOdf"),s=n("pLZG"),l=n("lJxs"),c=n("ofXK"),u=function t(){_classCallCheck(this,t)},h=function t(){_classCallCheck(this,t)},f=function(){function t(e){var n=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),r=i.toLowerCase(),a=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))}))}:this.headers=new Map}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value: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))}},{key:"copyFrom",value: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))}))}},{key:"clone",value: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}},{key:"applyUpdate",value: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 i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var a=this.headers.get(e);if(!a)return;0===(a=a.filter((function(t){return-1===r.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value: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}(),d=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return p(t)}},{key:"encodeValue",value:function(t){return p(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function p(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 m=function(){function t(){var e,n,i,r=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new d,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=a.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),r=_slicedToArray(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=r[0],o=r[1],s=i.get(a)||[];s.push(o),i.set(a,s)})),i)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach((function(t){var e=a.fromObject[t];r.map.set(t,Array.isArray(e)?e:[e])}))):this.map=null}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value: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("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value: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 i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}var _=function(){function t(e,n,i,r){var a;if(_classCallCheck(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.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!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new f),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,i=e.url||this.url,r=e.responseType||this.responseType,a=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,l=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),c)),new t(n,i,a,{params:c,headers:l,reportProgress:s,responseType:r,withCredentials:o})}}]),t}(),b=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}(),k=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new f,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},C=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).type=b.ResponseHeader,t}return _createClass(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(k),w=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).type=b.Response,t.body=void 0!==i.body?i.body:null,t}return _createClass(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(k),S=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}(k);function x(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var O=function(){var t=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof _)n=t;else{var c=void 0;c=a.headers instanceof f?a.headers:new f(a.headers);var u=void 0;a.params&&(u=a.params instanceof m?a.params:new m({fromObject:a.params})),n=new _(t,e,void 0!==a.body?a.body:null,{headers:c,params:u,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var h=Object(r.a)(n).pipe(Object(o.a)((function(t){return i.handler.handle(t)})));if(t instanceof _||"events"===a.observe)return h;var d=h.pipe(Object(s.a)((function(t){return t instanceof w})));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe(Object(l.a)((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return d.pipe(Object(l.a)((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return d.pipe(Object(l.a)((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 d.pipe(Object(l.a)((function(t){return t.body})))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,x(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,x(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,x(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.bc(u))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),E=function(){function t(e,n){_classCallCheck(this,t),this.next=e,this.interceptor=n}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),T=new i.s("HTTP_INTERCEPTORS"),A=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),j=/^\)\]\}',?\n/,I=function t(){_classCallCheck(this,t)},R=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),P=function(){var t=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var a=t.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new f(i.getAllResponseHeaders()),a=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new C({headers:r,status:e,statusText:n,url:a})},c=function(){var e=l(),r=e.headers,a=e.status,o=e.statusText,s=e.url,c=null;204!==a&&(c=void 0===i.response?i.responseText:i.response),0===a&&(a=c?200:0);var u=a>=200&&a<300;if("json"===t.responseType&&"string"==typeof c){var h=c;c=c.replace(j,"");try{c=""!==c?JSON.parse(c):null}catch(f){c=h,u&&(u=!1,c={error:f,text:c})}}u?(n.next(new w({body:c,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new S({error:c,headers:r,status:a,statusText:o,url:s||void 0}))},u=function(t){var e=l().url,r=new S({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(r)},h=!1,d=function(e){h||(n.next(l()),h=!0);var r={type:b.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(t){var e={type:b.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",c),i.addEventListener("error",u),t.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",p)),i.send(o),n.next({type:b.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("load",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",p)),i.abort()}}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.bc(I))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),D=new i.s("XSRF_COOKIE_NAME"),N=new i.s("XSRF_HEADER_NAME"),M=function t(){_classCallCheck(this,t)},F=function(){var t=function(){function t(e,n,i){_classCallCheck(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.y)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.bc(c.d),i.bc(i.D),i.bc(D))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),L=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this.tokenService=e,this.headerName=n}return _createClass(t,[{key:"intercept",value: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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.bc(M),i.bc(N))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),V=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this.backend=e,this.injector=n,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(T,[]);this.chain=e.reduceRight((function(t,e){return new E(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.bc(h),i.bc(i.t))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t}(),B=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:L,useClass:A}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:D,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[L,{provide:T,useExisting:L,multi:!0},{provide:M,useClass:F},{provide:D,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t}(),z=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({factory:function(e){return new(e||t)},providers:[O,{provide:u,useClass:V},P,{provide:h,useExisting:P},R,{provide:I,useExisting:R}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},tpcZ:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function e(t){var e,n=t.replace(/^v/,"").replace(/\+.*$/,""),i=-1===(e=n).indexOf("-")?e.length:e.indexOf("-"),r=n.substring(0,i).split(".");return r.push(n.substring(i+1)),r}function n(t){return isNaN(Number(t))?t:Number(t)}function i(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");if(!t.test(e))throw new Error("Invalid argument not valid semver ('"+e+"' received)")}function r(t,r){[t,r].forEach(i);for(var a=e(t),o=e(r),s=0;sc)return 1;if(c>l)return-1}var u=a[a.length-1],h=o[o.length-1];if(u&&h){var f=u.split(".").map(n),d=h.split(".").map(n);for(s=0;sd[s])return 1;if(d[s]>f[s])return-1}}else if(u||h)return u?-1:1;return 0}var a=[">",">=","=","<","<="],o={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return r.validate=function(e){return"string"==typeof e&&t.test(e)},r.compare=function(t,e,n){!function(t){if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+typeof t);if(-1===a.indexOf(t))throw new TypeError("Invalid operator, expected one of "+a.join("|"))}(n);var i=r(t,e);return o[n].indexOf(i)>-1},r})?i.apply(e,[]):i)||(t.exports=r)},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return un})),n.d(e,"b",(function(){return hn})),n.d(e,"c",(function(){return fn})),n.d(e,"d",(function(){return jn})),n.d(e,"e",(function(){return _n}));var i=n("ofXK"),r=n("fXoL"),a=n("LRne"),o=n("Cfvw"),s=n("2Vo4"),l=n("HDdC"),c=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),u=n("itXk"),h=n("NXyV"),f=n("XNiG"),d=n("EY2u"),p=n("lJxs"),m=n("0EUg"),v=n("pLZG"),g=n("7o/Q"),y=n("4I5i");function _(t){return function(e){return 0===t?Object(d.b)():e.lift(new b(t))}}var b=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new y.a}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new k(t,this.total))}}]),t}(),k=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:x;return function(e){return e.lift(new w(t))}}var w=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new S(t,this.errorFactory))}}]),t}(),S=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(g.a);function x(){return new c}var O=n("xbPD"),E=n("SpAZ");function T(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Object(v.a)((function(e,n){return t(e,n,i)})):E.a,_(1),n?Object(O.a)(e):C((function(){return new c})))}}var A=n("JIr8"),j=n("IzEk");function I(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Object(v.a)((function(e,n){return t(e,n,i)})):E.a,Object(j.a)(1),n?Object(O.a)(e):C((function(){return new c})))}}var R=n("5+tZ"),P=function(){function t(e,n,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=n,this.source=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new D(t,this.predicate,this.thisArg,this.source))}}]),t}(),D=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a){var o;return _classCallCheck(this,n),(o=e.call(this,t)).predicate=i,o.thisArg=r,o.source=a,o.index=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(n,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value:function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(g.a),N=n("eIep"),M=n("JX91");function F(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new V(t,e,n))}}var L,V=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new B(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),B=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a){var o;return _classCallCheck(this,n),(o=e.call(this,t)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return _createClass(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(g.a),z=n("bOdf"),H=n("mCNh"),U=n("vkgz"),W=n("nYR2"),q=n("bHdf"),G=function t(e,n){_classCallCheck(this,t),this.id=e,this.url=n},X=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=e.call(this,t,i)).navigationTrigger=a,r.restoredState=o,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(G),K=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(G),Z=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).reason=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(G),Y=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).error=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(G),Q=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(G),J=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(G),$=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a,o){var s;return _classCallCheck(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(G),tt=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(G),et=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(G),nt=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),it=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),rt=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),at=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ot=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),st=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),lt=function(){function t(e,n,i){_classCallCheck(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),ct=((L=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||L)},L.\u0275cmp=r.Lb({type:L,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Sb(0,"router-outlet")},directives:function(){return[_n]},encapsulation:2}),L),ut=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return this.params.hasOwnProperty(t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function ht(t){return new ut(t)}function ft(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function dt(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length1&&void 0!==arguments[1]?arguments[1]:"",n=0;n-1})):t===e}function kt(t){return Array.prototype.concat.apply([],t)}function Ct(t){return t.length>0?t[t.length-1]:null}function wt(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function St(t){return Object(r.ub)(t)?t:Object(r.vb)(t)?Object(o.a)(Promise.resolve(t)):Object(a.a)(t)}function xt(t,e,n){return n?function(t,e){return _t(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!At(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))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 bt(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!At(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!At(n.segments,r))return!1;for(var a in i.children){if(!n.children[a])return!1;if(!t(n.children[a],i.children[a]))return!1}return!0}var o=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!At(n.segments,o)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var Ot=function(){function t(e,n,i){_classCallCheck(this,t),this.root=e,this.queryParams=n,this.fragment=i}return _createClass(t,[{key:"toString",value:function(){return Pt.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ht(this.queryParams)),this._queryParamMap}}]),t}(),Et=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.segments=e,this.children=n,this.parent=null,wt(n,(function(t,e){return t.parent=i}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Dt(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),Tt=function(){function t(e,n){_classCallCheck(this,t),this.path=e,this.parameters=n}return _createClass(t,[{key:"toString",value:function(){return Bt(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ht(this.parameters)),this._parameterMap}}]),t}();function At(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function jt(t,e){var n=[];return wt(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),wt(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var It=function t(){_classCallCheck(this,t)},Rt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new qt(t);return new Ot(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i;return"".concat("/".concat(function t(e,n){if(!e.hasChildren())return Dt(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",r=[];return wt(e.children,(function(e,n){"primary"!==n&&r.push("".concat(n,":").concat(t(e,!1)))})),r.length>0?"".concat(i,"(").concat(r.join("//"),")"):i}var a=jt(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:["".concat(i,":").concat(t(n,!1))]}));return"".concat(Dt(e),"/(").concat(a.join("//"),")")}(t.root,!0)),(n=t.queryParams,i=Object.keys(n).map((function(t){var e=n[t];return Array.isArray(e)?e.map((function(e){return"".concat(Mt(t),"=").concat(Mt(e))})).join("&"):"".concat(Mt(t),"=").concat(Mt(e))})),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Pt=new Rt;function Dt(t){return t.segments.map((function(t){return Bt(t)})).join("/")}function Nt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mt(t){return Nt(t).replace(/%3B/gi,";")}function Ft(t){return Nt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lt(t){return decodeURIComponent(t)}function Vt(t){return Lt(t.replace(/\+/g,"%20"))}function Bt(t){return"".concat(Ft(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(Ft(t),"=").concat(Ft(e[t]))})).join("")));var e}var zt=/^[^\/()?;=#]+/;function Ht(t){var e=t.match(zt);return e?e[0]:""}var Ut=/^[^=?&#]+/,Wt=/^[^?&#]+/,qt=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Et([],{}):new Et([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value: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.primary=new Et(t,e)),n}},{key:"parseSegment",value:function(){var t=Ht(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Tt(Lt(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Ht(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=Ht(this.remaining);i&&(n=i,this.capture(n))}t[Lt(e)]=Lt(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Ut);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Wt);return e?e[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Vt(e),a=Vt(n);if(t.hasOwnProperty(r)){var o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(a)}else t[r]=a}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ht(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var a=this.parseChildren();e[r]=1===Object.keys(a).length?a.primary:new Et([],a),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Gt=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Xt(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=Xt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Kt(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return Kt(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function Xt(t,e){if(t===e.value)return e;var n,i=_createForOfIteratorHelper(e.children);try{for(i.s();!(n=i.n()).done;){var r=Xt(t,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function Kt(t,e){if(t===e.value)return[e];var n,i=_createForOfIteratorHelper(e.children);try{for(i.s();!(n=i.n()).done;){var r=Kt(t,n.value);if(r.length)return r.unshift(e),r}}catch(a){i.e(a)}finally{i.f()}return[]}var Zt=function(){function t(e,n){_classCallCheck(this,t),this.value=e,this.children=n}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Yt(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Qt=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).snapshot=i,ie(_assertThisInitialized(r),t),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Gt);function Jt(t,e){var n=function(t,e){var n=new ee([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ne("",new Zt(n,[]))}(t,e),i=new s.a([new Tt("",{})]),r=new s.a({}),a=new s.a({}),o=new s.a({}),l=new s.a(""),c=new $t(i,r,o,l,a,"primary",e,n.root);return c.snapshot=n.root,new Qt(new Zt(c,[]),n)}var $t=function(){function t(e,n,i,r,a,o,s,l){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return _createClass(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(p.a)((function(t){return ht(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)((function(t){return ht(t)})))),this._queryParamMap}}]),t}();function te(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(t){return t.reduce((function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(i))}var ee=function(){function t(e,n,i,r,a,o,s,l,c,u,h){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}return _createClass(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ht(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ht(this.queryParams)),this._queryParamMap}}]),t}(),ne=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,i)).url=t,ie(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return re(this._root)}}]),n}(Gt);function ie(t,e){e.value._routerState=t,e.children.forEach((function(e){return ie(t,e)}))}function re(t){var e=t.children.length>0?" { ".concat(t.children.map(re).join(", ")," } "):"";return"".concat(t.value).concat(e)}function ae(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,_t(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),_t(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&se(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==Ct(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),ue=function t(e,n,i){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function he(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function fe(t,e,n){if(t||(t=new Et([],{})),0===t.segments.length&&t.hasChildren())return de(t,e,n);var i=function(t,e,n){for(var i=0,r=e,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=t.segments[r],s=he(n[i]),l=i0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!ge(s,l,o))return a;i+=2}else{if(!ge(s,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new Et([],{primary:t}):t;return new Ot(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)((function(t){return new Et([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Object(a.a)({});var o=[],s=[],l={};return wt(n,(function(n,r){var a,c,u=(a=r,c=n,i.expandSegmentGroup(t,e,c,a)).pipe(Object(p.a)((function(t){return l[r]=t})));"primary"===r?o.push(u):s.push(u)})),a.a.apply(null,o.concat(s)).pipe(Object(m.a)(),T(),Object(p.a)((function(){return l})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,i,r,o){var s=this;return Object(a.a).apply(void 0,_toConsumableArray(n)).pipe(Object(p.a)((function(l){return s.expandSegmentAgainstRoute(t,e,n,l,i,r,o).pipe(Object(A.a)((function(t){if(t instanceof Ce)return Object(a.a)(null);throw t})))})),Object(m.a)(),I((function(t){return!!t})),Object(A.a)((function(t,n){if(t instanceof c||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,r))return Object(a.a)(new Et([],{}));throw new Ce(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,a,o){return Ie(i)!==a?Se(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a):Se(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xe(a):this.lineralizeSegments(n,a).pipe(Object(R.a)((function(n){var a=new Et(n,{});return r.expandSegment(t,a,e,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){var o=this,s=Te(e,i,r),l=s.matched,c=s.consumedSegments,u=s.lastChild,h=s.positionalParamSegments;if(!l)return Se(e);var f=this.applyRedirectCommands(c,i.redirectTo,h);return i.redirectTo.startsWith("/")?xe(f):this.lineralizeSegments(i,f).pipe(Object(R.a)((function(i){return o.expandSegment(t,e,n,i.concat(r.slice(u)),a,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(p.a)((function(t){return n._loadedConfig=t,new Et(i,{})}))):Object(a.a)(new Et(i,{}));var o=Te(e,n,i),s=o.matched,l=o.consumedSegments,c=o.lastChild;if(!s)return Se(e);var u=i.slice(c);return this.getChildConfig(t,n,i).pipe(Object(R.a)((function(t){var n=t.module,i=t.routes,o=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return je(t,e,n)&&"primary"!==Ie(n)}))}(t,n,i)?{segmentGroup:Ae(new Et(e,function(t,e){var n={};n.primary=e;var i,r=_createForOfIteratorHelper(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;""===a.path&&"primary"!==Ie(a)&&(n[Ie(a)]=new Et([],{}))}}catch(o){r.e(o)}finally{r.f()}return n}(i,new Et(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return je(t,e,n)}))}(t,n,i)?{segmentGroup:Ae(new Et(t.segments,function(t,e,n,i){var r,a={},o=_createForOfIteratorHelper(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;je(t,e,s)&&!i[Ie(s)]&&(a[Ie(s)]=new Et([],{}))}}catch(l){o.e(l)}finally{o.f()}return Object.assign(Object.assign({},i),a)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,l,u,i),s=o.segmentGroup,c=o.slicedSegments;return 0===c.length&&s.hasChildren()?r.expandChildren(n,i,s).pipe(Object(p.a)((function(t){return new Et(l,t)}))):0===i.length&&0===c.length?Object(a.a)(new Et(l,{})):r.expandSegment(n,s,i,c,"primary",!0).pipe(Object(p.a)((function(t){return new Et(l.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Object(a.a)(new pt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):function(t,e,n){var i,r=e.canLoad;return r&&0!==r.length?Object(o.a)(r).pipe(Object(p.a)((function(i){var r,a=t.get(i);if(function(t){return t&&be(t.canLoad)}(a))r=a.canLoad(e,n);else{if(!be(a))throw new Error("Invalid CanLoad guard");r=a(e,n)}return St(r)}))).pipe(Object(m.a)(),(i=function(t){return!0===t},function(t){return t.lift(new P(i,void 0,t))})):Object(a.a)(!0)}(t.injector,e,n).pipe(Object(R.a)((function(n){return n?i.configLoader.load(t.injector,e).pipe(Object(p.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new l.a((function(e){return e.error(ft("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Object(a.a)(new pt([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(a.a)(n);if(i.numberOfChildren>1||!i.children.primary)return Oe(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new Ot(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return wt(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,a=this.createSegments(t,e.segments,n,i),o={};return wt(e.children,(function(e,a){o[a]=r.createSegmentGroup(t,e,n,i)})),new Et(a,o)}},{key:"createSegments",value:function(t,e,n,i){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)}))}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===t.path)return e.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return t}}]),t}();function Te(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 i=(e.matcher||dt)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ae(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Et(t.segments.concat(e.segments),e.children)}return t}function je(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ie(t){return t.outlet||"primary"}var Re=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},Pe=function t(e,n){_classCallCheck(this,t),this.component=e,this.route=n};function De(t,e,n){var i=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(i?i.module.injector:n).get(t)}function Ne(t,e,n){var i=Yt(t),r=t.value;wt(i,(function(t,i){Ne(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new Pe(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var Me=Symbol("INITIAL_VALUE");function Fe(){return Object(N.a)((function(t){return Object(u.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(Object(j.a)(1),Object(M.a)(Me))})))).pipe(F((function(t,e){var n=!1;return e.reduce((function(t,i,r){if(t!==Me)return t;if(i===Me&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||ke(i))return i}return t}),t)}),Me),Object(v.a)((function(t){return t!==Me})),Object(p.a)((function(t){return ke(t)?t:!0===t})),Object(j.a)(1))}))}function Le(t,e){return null!==t&&e&&e(new ot(t)),Object(a.a)(!0)}function Ve(t,e){return null!==t&&e&&e(new rt(t)),Object(a.a)(!0)}function Be(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(a.a)(!0);var r=i.map((function(i){return Object(h.a)((function(){var r,a=De(i,e,n);if(function(t){return t&&be(t.canActivate)}(a))r=St(a.canActivate(e,t));else{if(!be(a))throw new Error("Invalid CanActivate guard");r=St(a(e,t))}return r.pipe(I())}))}));return Object(a.a)(r).pipe(Fe())}function ze(t,e,n){var i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return Object(h.a)((function(){var r=e.guards.map((function(r){var a,o=De(r,e.node,n);if(function(t){return t&&be(t.canActivateChild)}(o))a=St(o.canActivateChild(i,t));else{if(!be(o))throw new Error("Invalid CanActivateChild guard");a=St(o(i,t))}return a.pipe(I())}));return Object(a.a)(r).pipe(Fe())}))}));return Object(a.a)(r).pipe(Fe())}var He=function t(){_classCallCheck(this,t)},Ue=function(){function t(e,n,i,r,a,o){_classCallCheck(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return _createClass(t,[{key:"recognize",value:function(){try{var t=Ge(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new ee([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Zt(n,e),r=new ne(this.url,i);return this.inheritParamsAndData(r._root),Object(a.a)(r)}catch(o){return new l.a((function(t){return t.error(o)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=te(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,i=this,r=jt(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},r.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[t.value.outlet]=t.value})),r.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),r}},{key:"processSegment",value:function(t,e,n,i){var r,a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;try{return this.processSegmentAgainstRoute(o,e,n,i)}catch(s){if(!(s instanceof He))throw s}}}catch(l){a.e(l)}finally{a.f()}if(this.noLeftoversInUrl(e,n,i))return[];throw new He}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,i){if(t.redirectTo)throw new He;if((t.outlet||"primary")!==i)throw new He;var r,a=[],o=[];if("**"===t.path){var s=n.length>0?Ct(n).parameters:{};r=new ee(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ze(t),i,t.component,t,We(e),qe(e)+n.length,Ye(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new He;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||dt)(n,t,e);if(!i)throw new He;var r={};wt(i.posParams,(function(t,e){r[e]=t.path}));var a=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,o=n.slice(l.lastChild),r=new ee(a,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ze(t),i,t.component,t,We(e),qe(e)+a.length,Ye(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),u=Ge(e,a,o,c,this.relativeLinkResolution),h=u.segmentGroup,f=u.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new Zt(r,d)]}if(0===c.length&&0===f.length)return[new Zt(r,[])];var p=this.processSegment(c,h,f,"primary");return[new Zt(r,p)]}}]),t}();function We(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function qe(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 Ge(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some((function(n){return Xe(t,e,n)&&"primary"!==Ke(n)}))}(t,n,i)){var a=new Et(e,function(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var a,o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Ke(s)){var l=new Et([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,r[Ke(s)]=l}}}catch(c){o.e(c)}finally{o.f()}return r}(t,e,i,new Et(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return Xe(t,e,n)}))}(t,n,i)){var o=new Et(t.segments,function(t,e,n,i,r,a){var o,s={},l=_createForOfIteratorHelper(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(Xe(t,n,c)&&!r[Ke(c)]){var u=new Et([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[Ke(c)]=u}}}catch(h){l.e(h)}finally{l.f()}return Object.assign(Object.assign({},r),s)}(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Et(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Xe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ke(t){return t.outlet||"primary"}function Ze(t){return t.data||{}}function Ye(t){return t.resolve||{}}function Qe(t,e,n,i){var r=De(t,e,i);return St(r.resolve?r.resolve(e,n):r(e,n))}function Je(t){return function(e){return e.pipe(Object(N.a)((function(e){var n=t(e);return n?Object(o.a)(n).pipe(Object(p.a)((function(){return e}))):Object(o.a)([e])})))}}var $e=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),tn=new r.s("ROUTES"),en=function(){function t(e,n,i,r){_classCallCheck(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(p.a)((function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new pt(kt(r.injector.get(tn)).map(yt),r)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(o.a)(this.loader.load(t)):St(t()).pipe(Object(R.a)((function(t){return t instanceof r.x?Object(a.a)(t):Object(o.a)(e.compiler.compileModuleAsync(t))})))}}]),t}(),nn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function rn(t){throw t}function an(t,e,n){return e.parse("/")}function on(t,e){return Object(a.a)(null)}var sn,ln,cn,un=((cn=function(){function t(e,n,i,a,o,l,c,u){var h=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=a,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=rn,this.malformedUriErrorHandler=an,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:on,afterPreactivation:on},this.urlHandlingStrategy=new nn,this.routeReuseStrategy=new $e,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(r.z),this.console=o.get(r.bb);var d=o.get(r.B);this.isNgZoneEnabled=d instanceof r.B,this.resetConfig(u),this.currentUrlTree=new Ot(new Et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new en(l,c,(function(t){return h.triggerEvent(new nt(t))}),(function(t){return h.triggerEvent(new it(t))})),this.routerState=Jt(this.currentUrlTree,this.rootComponentType),this.transitions=new s.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Object(v.a)((function(t){return 0!==t.id})),Object(p.a)((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),Object(N.a)((function(t){var i,r,l,c=!1,u=!1;return Object(a.a)(t).pipe(Object(U.a)((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Object(N.a)((function(t){var i,r,o,s,l=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||l)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(N.a)((function(t){var i=e.transitions.getValue();return n.next(new X(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?d.a:[t]})),Object(N.a)((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,r=e.configLoader,o=e.urlSerializer,s=e.config,function(t){return t.pipe(Object(N.a)((function(t){return function(t,e,n,i,r){return new Ee(t,e,n,i,r).apply()}(i,r,o,t.extractedUrl,s).pipe(Object(p.a)((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),Object(U.a)((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,i,r,a){return function(i){return i.pipe(Object(R.a)((function(i){return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Ue(t,e,n,i,r,a).recognize()}(t,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,e.serializeUrl(o)),r,a).pipe(Object(p.a)((function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(U.a)((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Object(U.a)((function(t){var i=new Q(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(l&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.id,u=t.extractedUrl,h=t.source,f=t.restoredState,m=t.extras,v=new X(c,e.serializeUrl(u),h,f);n.next(v);var g=Jt(u,e.rootComponentType).snapshot;return Object(a.a)(Object.assign(Object.assign({},t),{targetSnapshot:g,urlAfterRedirects:u,extras:Object.assign(Object.assign({},m),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a})),Je((function(t){var n=t.targetSnapshot,i=t.id,r=t.extractedUrl,a=t.rawUrl,o=t.extras,s=o.skipLocationChange,l=o.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})})),Object(U.a)((function(t){var n=new J(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),Object(p.a)((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,a=n._root,function t(e,n,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Yt(n);return e.children.forEach((function(e){!function(e,n,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,s=n?n.value:null,l=i?i.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!At(t.url,e.url);case"pathParamsOrQueryParamsChange":return!At(t.url,e.url)||!_t(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!oe(t,e)||!_t(t.queryParams,e.queryParams);case"paramsChange":default:return!oe(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Re(r)):(o.data=s.data,o._resolvedData=s._resolvedData),t(e,n,o.component?l?l.children:null:i,r,a),c&&a.canDeactivateChecks.push(new Pe(l&&l.outlet&&l.outlet.component||null,s))}else s&&Ne(n,l,a),a.canActivateChecks.push(new Re(r)),t(e,null,o.component?l?l.children:null:i,r,a)}(e,o[e.value.outlet],i,r.concat([e.value]),a),delete o[e.value.outlet]})),wt(o,(function(t,e){return Ne(t,i.getContext(e),a)})),a}(a,i?i._root:null,r,[a.value]))});var n,i,r,a})),function(t,e){return function(n){return n.pipe(Object(R.a)((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,s=n.guards,l=s.canActivateChecks,c=s.canDeactivateChecks;return 0===c.length&&0===l.length?Object(a.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(o.a)(t).pipe(Object(R.a)((function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(a.a)(!0);var s=o.map((function(a){var o,s=De(a,e,r);if(function(t){return t&&be(t.canDeactivate)}(s))o=St(s.canDeactivate(t,e,n,i));else{if(!be(s))throw new Error("Invalid CanDeactivate guard");o=St(s(t,e,n,i))}return o.pipe(I())}));return Object(a.a)(s).pipe(Fe())}(t.component,t.route,n,e,i)})),I((function(t){return!0!==t}),!0))}(c,i,r,t).pipe(Object(R.a)((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Object(o.a)(e).pipe(Object(z.a)((function(e){return Object(o.a)([Ve(e.route.parent,i),Le(e.route,i),ze(t,e.path,n),Be(t,e.route,n)]).pipe(Object(m.a)(),I((function(t){return!0!==t}),!0))})),I((function(t){return!0!==t}),!0))}(i,l,t,e):Object(a.a)(n)})),Object(p.a)((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Object(U.a)((function(t){if(ke(t.guardsResult)){var n=ft('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),Object(U.a)((function(t){var n=new $(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Object(v.a)((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new Z(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),Je((function(t){if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(Object(U.a)((function(t){var n=new tt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(Object(R.a)((function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;return r.length?Object(o.a)(r).pipe(Object(z.a)((function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Object(a.a)({});if(1===r.length){var s=r[0];return Qe(t[s],e,n,i).pipe(Object(p.a)((function(t){return _defineProperty({},s,t)})))}var l={};return Object(o.a)(r).pipe(Object(R.a)((function(r){return Qe(t[r],e,n,i).pipe(Object(p.a)((function(t){return l[r]=t,t})))}))).pipe(T(),Object(p.a)((function(){return l})))}(t._resolve,t,e,i).pipe(Object(p.a)((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),te(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return Object(H.a)(F(t,e),_(1),Object(O.a)(e))(n)}:function(e){return Object(H.a)(F((function(e,n,i){return t(e,n,i+1)})),_(1))(e)}}((function(t,e){return t})),Object(p.a)((function(e){return t}))):Object(a.a)(t)})))}),Object(U.a)((function(t){var n=new et(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),Je((function(t){var n=t.targetSnapshot,i=t.id,r=t.extractedUrl,a=t.rawUrl,o=t.extras,s=o.skipLocationChange,l=o.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})})),Object(p.a)((function(t){var n=function(t,e,n){var i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){var r=i.value;r._futureSnapshot=n.value;var a=function(e,n,i){return n.children.map((function(n){var r,a=_createForOfIteratorHelper(i.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(e.shouldReuseRoute(o.value.snapshot,n.value))return t(e,n,o)}}catch(s){a.e(s)}finally{a.f()}return t(e,n)}))}(e,n,i);return new Zt(r,a)}var o=e.retrieve(n.value);if(o){var l=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,a=e.fragment,o=e.preserveQueryParams,s=e.queryParamsHandling,l=e.preserveFragment;Object(r.Y)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:a,h=null;if(s)switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=o?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,r){if(0===n.length)return le(e.root,e.root,e,i,r);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ce(!0,0,t);var e=0,n=!1,i=t.reduce((function(t,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return wt(i.outlets,(function(t,e){a[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:a}])}if(i.segmentPath)return[].concat(_toConsumableArray(t),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(t),[i]):0===r?(i.split("/").forEach((function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):[].concat(_toConsumableArray(t),[i])}),[]);return new ce(n,e,i)}(n);if(a.toRoot())return le(e.root,new Et([],{}),e,i,r);var o=function(t,e,n){if(t.isAbsolute)return new ue(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ue(n.snapshot._urlSegment,!0,0);var i=se(t.commands[0])?0:1;return function(t,e,n){for(var i=t,r=e,a=n;a>r;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new ue(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),s=o.processChildren?de(o.segmentGroup,o.index,a.commands):fe(o.segmentGroup,o.index,a.commands);return le(o.segmentGroup,s,e,i,r)}(c,this.currentUrlTree,t,h,u)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(r.Y)()&&this.isNgZoneEnabled&&!r.B.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=ke(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof X?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof K&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof lt&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new lt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){r.ec()},mn.\u0275dir=r.Mb({type:mn}),mn),xn=new r.s("ROUTER_CONFIGURATION"),On=new r.s("ROUTER_FORROOT_GUARD"),En=[i.g,{provide:It,useClass:Rt},{provide:un,useFactory:function(t,e,n,r,a,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,h=new un(null,t,e,n,r,a,o,kt(s));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){var f=Object(i.x)();h.events.subscribe((function(t){f.logGroup("Router Event: ".concat(t.constructor.name)),f.log(t.toString()),f.log(t),f.logGroupEnd()}))}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h},deps:[It,yn,i.g,r.t,r.y,r.j,tn,xn,[function(){return function t(){_classCallCheck(this,t)}}(),new r.C],[function(){return function t(){_classCallCheck(this,t)}}(),new r.C]]},yn,{provide:$t,useFactory:function(t){return t.routerState.root},deps:[un]},{provide:r.y,useClass:r.M},wn,Cn,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(Object(A.a)((function(){return Object(a.a)(null)})))}}]),t}(),{provide:xn,useValue:{enableTracing:!1}}];function Tn(){return new r.A("Router",un)}var An,jn=((An=function(){function t(e,n){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[En,Dn(e),{provide:On,useFactory:Pn,deps:[[un,new r.C,new r.L]]},{provide:xn,useValue:n||{}},{provide:i.h,useFactory:Rn,deps:[i.r,[new r.r(i.a),new r.C],xn]},{provide:Sn,useFactory:In,deps:[un,i.s,xn]},{provide:kn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Cn},{provide:r.A,multi:!0,useFactory:Tn},[Mn,{provide:r.d,multi:!0,useFactory:Fn,deps:[Mn]},{provide:Vn,useFactory:Ln,deps:[Mn]},{provide:r.b,multi:!0,useExisting:Vn}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Dn(e)]}}}]),t}()).\u0275mod=r.Pb({type:An}),An.\u0275inj=r.Ob({factory:function(t){return new(t||An)(r.bc(On,8),r.bc(un,8))}}),An);function In(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Sn(t,e,n)}function Rn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new i.e(t,e):new i.q(t,e)}function Pn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Dn(t){return[{provide:r.a,multi:!0,useValue:t},{provide:tn,multi:!0,useValue:t}]}var Nn,Mn=((Nn=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new f.a}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(i.f,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(un),r=t.injector.get(xn);if(t.isLegacyDisabled(r)||t.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)i.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return t.initNavigation?Object(a.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(xn),n=this.injector.get(wn),i=this.injector.get(Sn),a=this.injector.get(un),o=this.injector.get(r.g);t===o.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),a.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}()).\u0275fac=function(t){return new(t||Nn)(r.bc(r.t))},Nn.\u0275prov=r.Nb({token:Nn,factory:Nn.\u0275fac}),Nn);function Fn(t){return t.appInitializer.bind(t)}function Ln(t){return t.bootstrapListener.bind(t)}var Vn=new r.s("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return k})),n.d(e,"d",(function(){return S})),n.d(e,"e",(function(){return N})),n.d(e,"f",(function(){return A})),n.d(e,"g",(function(){return F})),n.d(e,"h",(function(){return R})),n.d(e,"i",(function(){return M}));var i=n("ofXK"),r=n("fXoL"),a=n("XNiG"),o=n("quSY"),s=n("LRne"),l=n("FtGj"),c=n("vkgz"),u=n("Kj3r"),h=n("pLZG"),f=n("lJxs"),d=n("IzEk"),p=n("8LU1"),m=n("nLfN"),v=n("GU7r");function g(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var y=0,_=new Map,b=null,k=function(){var t=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),_.set(e,{messageElement:e,referenceCount:0})):_.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=_.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}b&&0===b.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}}))}return _createClass(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(c.a)((function(e){return t._pressedLetters.push(e)})),Object(u.a)(e),Object(h.a)((function(){return t._pressedLetters.length>0})),Object(f.a)((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),i=1;i-1}));switch(n){case l.o:return void this.tabOut.next();case l.d:if(this._vertical&&i){this.setNextItemActive();break}return;case l.p:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.m:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.i:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Object(l.s)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=l.a&&n<=l.q||n>=l.r&&n<=l.j)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.F?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),w=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(C),S=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._origin="program",t}return _createClass(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(C),x=function(){var t=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===E(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),a=E(t);if(t.hasAttribute("contenteditable"))return-1!==a;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}},{key:"isFocusable",value:function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||O(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.bc(m.a))},t.\u0275prov=Object(r.Nb)({factory:function(){return new t(Object(r.bc)(m.a))},token:t,providedIn:"root"}),t}();function O(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function E(t){if(!O(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var T=function(){function t(e,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(t,[{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(d.a)(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),A=function(){var t=function(){function t(e,n,i){_classCallCheck(this,t),this._checker=e,this._ngZone=n,this._document=i}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new T(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.bc(x),r.bc(r.B),r.bc(i.d))},t.\u0275prov=Object(r.Nb)({factory:function(){return new t(Object(r.bc)(x),Object(r.bc)(r.B),Object(r.bc)(i.d))},token:t,providedIn:"root"}),t}();"undefined"!=typeof Element&∈var j=new r.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),I=new r.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),R=function(){var t=function(){function t(e,n,i,r){_classCallCheck(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return _createClass(t,[{key:"announce",value:function(t){for(var e,n,i,r=this,a=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),l=1;l1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Object(s.a)(null);var i=Object(p.e)(t);if(this._elementInfo.has(i)){var r=this._elementInfo.get(i);return r.checkChildren=n,r.subject.asObservable()}var o={unlisten:function(){},checkChildren:n,subject:new a.a};this._elementInfo.set(i,o),this._incrementMonitoredElementCount();var l=function(t){return e._onFocus(t,i)},c=function(t){return e._onBlur(t,i)};return this._ngZone.runOutsideAngular((function(){i.addEventListener("focus",l,!0),i.addEventListener("blur",c,!0)})),o.unlisten=function(){i.removeEventListener("focus",l,!0),i.removeEventListener("blur",c,!0)},o.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=Object(p.e)(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}},{key:"focusVia",value:function(t,e,n){var i=Object(p.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_setClasses",value:function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_incrementMonitoredElementCount",value:function(){var t=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,D),e.addEventListener("mousedown",t._documentMousedownListener,D),e.addEventListener("touchstart",t._documentTouchstartListener,D),n.addEventListener("focus",t._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){if(!--this._monitoredElementCount){var t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,D),t.removeEventListener("mousedown",this._documentMousedownListener,D),t.removeEventListener("touchstart",this._documentTouchstartListener,D),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.bc(r.B),r.bc(m.a),r.bc(i.d,8),r.bc(P,8))},t.\u0275prov=Object(r.Nb)({factory:function(){return new t(Object(r.bc)(r.B),Object(r.bc)(m.a),Object(r.bc)(i.d,8),Object(r.bc)(P,8))},token:t,providedIn:"root"}),t}();function M(t){return 0===t.buttons}var F=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._platform=e,this._document=n}return _createClass(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.bc(m.a),r.bc(i.d))},t.\u0275prov=Object(r.Nb)({factory:function(){return new t(Object(r.bc)(m.a),Object(r.bc)(i.d))},token:t,providedIn:"root"}),t}(),L=function(){var t=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({factory:function(e){return new(e||t)(r.bc(F))},imports:[[m.b,v.c]]}),t}()},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("7o/Q");function r(){}var a=n("n6bG");function o(t,e,n){return function(i){return i.lift(new s(t,e,n))}}var s=function(){function t(e,n,i){_classCallCheck(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),l=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,o,s){var l;return _classCallCheck(this,n),(l=e.call(this,t))._tapNext=r,l._tapError=r,l._tapComplete=r,l._tapError=o||r,l._tapComplete=s||r,Object(a.a)(i)?(l._context=_assertThisInitialized(l),l._tapNext=i):i&&(l._context=i,l._tapNext=i.next||r,l._tapError=i.error||r,l._tapComplete=i.complete||r),l}return _createClass(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(i.a)},vxfF:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return C})),n.d(e,"d",(function(){return k})),n("8LU1");var i=n("fXoL"),r=n("XNiG"),a=n("LRne"),o=n("HDdC"),s=n("xgIS"),l=n("VRyK");n("3N8a"),n("IjjT"),n("quSY"),n("7+OI"),n("/uUt");var c=n("3UWI"),u=n("pLZG"),h=n("1G5W");n("JX91"),n("7o/Q"),n("eIep"),n("UXun");var f=n("nLfN"),d=n("ofXK"),p=n("cH1L");n("0EQZ");var m,v,g,y,_=((y=function(){function t(e,n,i){_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._scrolled=new r.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new o.a((function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(Object(c.a)(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Object(a.a)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(u.a)((function(t){return!t||n.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){var e=t._getWindow();return Object(s.a)(e.document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||y)(i.bc(i.B),i.bc(f.a),i.bc(d.d,8))},y.\u0275prov=Object(i.Nb)({factory:function(){return new y(Object(i.bc)(i.B),Object(i.bc)(f.a),Object(i.bc)(d.d,8))},token:y,providedIn:"root"}),y),b=((g=function(){function t(e,n,i,a){var l=this;_classCallCheck(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new r.a,this._elementScrolled=new o.a((function(t){return l.ngZone.runOutsideAngular((function(){return Object(s.a)(l.elementRef.nativeElement,"scroll").pipe(Object(h.a)(l._destroyed)).subscribe(t)}))}))}return _createClass(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(f.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(f.d)()?t.left=t.right:1==Object(f.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;Object(f.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(f.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(f.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||g)(i.Rb(i.m),i.Rb(_),i.Rb(i.B),i.Rb(p.b,8))},g.\u0275dir=i.Mb({type:g,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),g),k=((v=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this._platform=e,this._document=i,n.runOutsideAngular((function(){var t=r._getWindow();r._change=e.isBrowser?Object(l.a)(Object(s.a)(t,"resize"),Object(s.a)(t,"orientationchange")):Object(a.a)(),r._invalidateCache=r.change().subscribe((function(){return r._updateViewportSize()}))}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Object(c.a)(t)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||v)(i.bc(f.a),i.bc(i.B),i.bc(d.d,8))},v.\u0275prov=Object(i.Nb)({factory:function(){return new v(Object(i.bc)(f.a),Object(i.bc)(i.B),Object(i.bc)(d.d,8))},token:v,providedIn:"root"}),v),C=((m=function t(){_classCallCheck(this,t)}).\u0275mod=i.Pb({type:m}),m.\u0275inj=i.Ob({factory:function(t){return new(t||m)},imports:[[p.a,f.b],p.a]}),m)},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("XNiG"),r=n("HDdC"),a=n("7o/Q"),o=n("quSY");function s(){return function(t){return t.lift(new c(t))}}var l,c=function(){function t(e){_classCallCheck(this,t),this.connectable=e}return _createClass(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new u(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),u=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(a.a),h=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return _createClass(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new o.a).add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}},{key:"refCount",value:function(){return s()(this)}}]),n}(r.a),f={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(l=h.prototype)._subscribe},_isComplete:{value:l._isComplete,writable:!0},getSubject:{value:l.getSubject},connect:{value:l.connect},refCount:{value:l.refCount}},d=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).connectable=i,r}return _createClass(n,[{key:"_error",value:function(t){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(i.b);function p(){return new i.a}function m(){return function(t){return s()((e=p,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,f);return i.source=t,i.subjectFactory=n,i})(t));var e}}},xbPD:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q");function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new a(t))}}var a=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new o(t,this.defaultValue))}}]),t}(),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(i.a)},xgIS:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("HDdC"),r=n("DH7j"),a=n("n6bG"),o=n("lJxs");function s(t,e,n,l){return Object(a.a)(n)&&(l=n,n=void 0),l?s(t,e,n).pipe(Object(o.a)((function(t){return Object(r.a)(t)?l.apply(void 0,_toConsumableArray(t)):l(t)}))):new i.a((function(i){!function t(e,n,i,r,a){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,a),o=function(){return s.removeEventListener(n,i,a)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,i),o=function(){return l.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,i),o=function(){return c.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,h=e.length;u1?Array.prototype.slice.call(arguments):t)}),i,n)}))}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("HDdC"),r=n("ngJS"),a=n("jZKg");function o(t,e){return e?Object(a.a)(t,e):new i.a(Object(r.a)(t))}},"z+Ro":function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return i}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("HDdC");function r(t,e){return new i.a(e?function(n){return e.schedule(a,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function a(t){var e=t.error;t.subscriber.error(e)}},zUnb:function(t,e,n){"use strict";n.r(e);var i,r=n("fXoL"),a=n("jhN1"),o=n("tyNb"),s=[{path:"quick-play",loadChildren:function(){return n.e(1).then(n.bind(null,"hh/h")).then((function(t){return t.QuickPlayModule}))}},{path:"screens",loadChildren:function(){return Promise.all([n.e(2),n.e(1),n.e(7)]).then(n.bind(null,"uBXI")).then((function(t){return t.ScreensModule}))}},{path:"status",loadChildren:function(){return Promise.all([n.e(2),n.e(8)]).then(n.bind(null,"VePF")).then((function(t){return t.StatusModule}))}}],l=((i=function t(){_classCallCheck(this,t)}).\u0275mod=r.Pb({type:i}),i.\u0275inj=r.Ob({factory:function(t){return new(t||i)},imports:[[o.d.forRoot(s,{useHash:!0})],o.d]}),i),c=n("sxot"),u=n("tk/3"),h=n("AcyG"),f=n("rDax"),d=n("+rOU"),p=n("ofXK"),m=n("FKr1"),v=n("bTqV"),g=n("XNiG"),y=n("IzEk"),_=n("1G5W"),b=n("R0Ic"),k=n("u47x"),C=n("0MNC");function w(t,e){if(1&t){var n=r.Yb();r.Xb(0,"div",1),r.Xb(1,"button",2),r.fc("click",(function(){return r.uc(n),r.jc().action()})),r.Dc(2),r.Wb(),r.Wb()}if(2&t){var i=r.jc();r.Eb(2),r.Ec(i.data.action)}}function S(t,e){}var x,O,E,T,A=Math.pow(2,31)-1,j=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._overlayRef=n,this._afterDismissed=new g.a,this._afterOpened=new g.a,this._onAction=new g.a,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe((function(){return i.dismiss()})),e._onExit.subscribe((function(){return i._finishDismiss()}))}return _createClass(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),Math.min(t,A))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),I=new r.s("MatSnackBarData"),R=function t(){_classCallCheck(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},P=((x=function(){function t(e,n){_classCallCheck(this,t),this.snackBarRef=e,this.data=n}return _createClass(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}()).\u0275fac=function(t){return new(t||x)(r.Rb(j),r.Rb(I))},x.\u0275cmp=r.Lb({type:x,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(r.Xb(0,"span"),r.Dc(1),r.Wb(),r.Bc(2,w,3,1,"div",0)),2&t&&(r.Eb(1),r.Ec(e.data.message),r.Eb(1),r.oc("ngIf",e.hasAction))},directives:[p.k,v.b],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),x),D={snackBarState:Object(b.m)("state",[Object(b.j)("void, hidden",Object(b.k)({transform:"scale(0.8)",opacity:0})),Object(b.j)("visible",Object(b.k)({transform:"scale(1)",opacity:1})),Object(b.l)("* => visible",Object(b.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(b.l)("* => void, * => hidden",Object(b.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(b.k)({opacity:0})))])},N=((E=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a){var o;return _classCallCheck(this,n),(o=e.call(this))._ngZone=t,o._elementRef=i,o._changeDetectorRef=r,o.snackBarConfig=a,o._destroyed=!1,o._onExit=new g.a,o._onEnter=new g.a,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?null:"status":"alert",o}return _createClass(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.fromState,n=t.toState;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){var i=this._onEnter;this._ngZone.run((function(){i.next(),i.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(y.a)(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),n}(d.a)).\u0275fac=function(t){return new(t||E)(r.Rb(r.B),r.Rb(r.m),r.Rb(r.i),r.Rb(R))},E.\u0275cmp=r.Lb({type:E,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&r.zc(d.b,!0),2&t&&r.qc(n=r.gc())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&r.Jb("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(r.Fb("role",e._role),r.Hc("@state",e._animationState))},features:[r.Bb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.Bc(0,S,0,0,"ng-template",0)},directives:[d.b],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[D.snackBarState]}}),E),M=((O=function t(){_classCallCheck(this,t)}).\u0275mod=r.Pb({type:O}),O.\u0275inj=r.Ob({factory:function(t){return new(t||O)},imports:[[f.f,d.f,p.c,v.c,m.e],m.e]}),O),F=new r.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new R}}),L=((T=function(){function t(e,n,i,r,a,o){_classCallCheck(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return _createClass(t,[{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage||(i.announcementMessage=t),this.openFromComponent(P,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=new d.e(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[R,e]])),i=new d.c(N,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=Object.assign(Object.assign(Object.assign({},new R),this._defaultConfig),e),i=this._createOverlay(n),a=this._attachSnackBarContainer(i,n),o=new j(a,i);if(t instanceof r.N){var s=new d.g(t,null,{$implicit:n.data,snackBarRef:o});o.instance=a.attachTemplatePortal(s)}else{var l=this._createInjector(n,o),c=new d.c(t,void 0,l),u=a.attachComponentPortal(c);o.instance=u.instance}return this._breakpointObserver.observe(C.b.HandsetPortrait).pipe(Object(_.a)(i.detachments())).subscribe((function(t){var e=i.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}},{key:"_createOverlay",value:function(t){var e=new f.d;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,a=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):a?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return new d.e(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[j,e],[I,t.data]]))}},{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}}]),t}()).\u0275fac=function(t){return new(t||T)(r.bc(f.c),r.bc(k.h),r.bc(r.t),r.bc(C.a),r.bc(T,12),r.bc(F))},T.\u0275prov=Object(r.Nb)({factory:function(){return new T(Object(r.bc)(f.c),Object(r.bc)(k.h),Object(r.bc)(r.q),Object(r.bc)(C.a),Object(r.bc)(T,12),Object(r.bc)(F))},token:T,providedIn:M}),T),V=n("tpcZ"),B=n.n(V),z=n("mrSG"),H=["toast-component",""];function U(t,e){if(1&t){var n=r.Yb();r.Xb(0,"button",5),r.fc("click",(function(){return r.uc(n),r.jc().remove()})),r.Xb(1,"span",6),r.Dc(2,"\xd7"),r.Wb(),r.Wb()}}function W(t,e){if(1&t&&(r.Vb(0),r.Dc(1),r.Ub()),2&t){var n=r.jc(2);r.Eb(1),r.Fc("[",n.duplicatesCount+1,"]")}}function q(t,e){if(1&t&&(r.Xb(0,"div"),r.Dc(1),r.Bc(2,W,2,1,"ng-container",4),r.Wb()),2&t){var n=r.jc();r.Gb(n.options.titleClass),r.Fb("aria-label",n.title),r.Eb(1),r.Fc(" ",n.title," "),r.Eb(1),r.oc("ngIf",n.duplicatesCount)}}function G(t,e){if(1&t&&r.Sb(0,"div",7),2&t){var n=r.jc();r.Gb(n.options.messageClass),r.oc("innerHTML",n.message,r.vc)}}function X(t,e){if(1&t&&(r.Xb(0,"div",8),r.Dc(1),r.Wb()),2&t){var n=r.jc();r.Gb(n.options.messageClass),r.Fb("aria-label",n.message),r.Eb(1),r.Fc(" ",n.message," ")}}function K(t,e){if(1&t&&(r.Xb(0,"div"),r.Sb(1,"div",9),r.Wb()),2&t){var n=r.jc();r.Eb(1),r.Ac("width",n.width+"%")}}var Z,Y,Q,J,$,tt,et,nt,it,rt,at,ot=function(){function t(e,n,i,r,a,o){var s=this;_classCallCheck(this,t),this.toastId=e,this.config=n,this.message=i,this.title=r,this.toastType=a,this.toastRef=o,this._onTap=new g.a,this._onAction=new g.a,this.toastRef.afterClosed().subscribe((function(){s._onAction.complete(),s._onTap.complete()}))}return _createClass(t,[{key:"triggerTap",value:function(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}},{key:"onTap",value:function(){return this._onTap.asObservable()}},{key:"triggerAction",value:function(t){this._onAction.next(t)}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),st=new r.s("ToastConfig"),lt=function(){function t(e,n){_classCallCheck(this,t),this.component=e,this.injector=n}return _createClass(t,[{key:"attach",value:function(t,e){return this._attachedHost=t,t.attach(this,e)}},{key:"detach",value:function(){var t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),ct=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this))._hostDomElement=t,a._componentFactoryResolver=i,a._appRef=r,a}return _createClass(n,[{key:"attachComponentPortal",value:function(t,e){var n,i=this,r=this._componentFactoryResolver.resolveComponentFactory(t.component);return n=r.create(t.injector),this._appRef.attachView(n.hostView),this.setDisposeFn((function(){i._appRef.detachView(n.hostView),n.destroy()})),e?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}},{key:"detach",value:function(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}}]),t}()),ut=((Z=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}]),t}()).\u0275fac=function(t){return new(t||Z)(r.bc(p.d))},Z.\u0275prov=Object(r.Nb)({factory:function(){return new Z(Object(r.bc)(p.d))},token:Z,providedIn:"root"}),Z),ht=function(){function t(e){_classCallCheck(this,t),this._portalHost=e}return _createClass(t,[{key:"attach",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._portalHost.attach(t,e)}},{key:"detach",value:function(){return this._portalHost.detach()}}]),t}(),ft=((Y=function(){function t(e,n,i,r){_classCallCheck(this,t),this._overlayContainer=e,this._componentFactoryResolver=n,this._appRef=i,this._document=r,this._paneElements=new Map}return _createClass(t,[{key:"create",value:function(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}},{key:"getPaneElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}},{key:"_createPaneElement",value:function(t,e){var n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalHost",value:function(t){return new ct(t,this._componentFactoryResolver,this._appRef)}},{key:"_createOverlayRef",value:function(t){return new ht(this._createPortalHost(t))}}]),t}()).\u0275fac=function(t){return new(t||Y)(r.bc(ut),r.bc(r.k),r.bc(r.g),r.bc(p.d))},Y.\u0275prov=Object(r.Nb)({factory:function(){return new Y(Object(r.bc)(ut),Object(r.bc)(r.k),Object(r.bc)(r.g),Object(r.bc)(p.d))},token:Y,providedIn:"root"}),Y),dt=function(){function t(e){_classCallCheck(this,t),this._overlayRef=e,this.duplicatesCount=0,this._afterClosed=new g.a,this._activate=new g.a,this._manualClose=new g.a,this._resetTimeout=new g.a,this._countDuplicate=new g.a}return _createClass(t,[{key:"manualClose",value:function(){this._manualClose.next(),this._manualClose.complete()}},{key:"manualClosed",value:function(){return this._manualClose.asObservable()}},{key:"timeoutReset",value:function(){return this._resetTimeout.asObservable()}},{key:"countDuplicate",value:function(){return this._countDuplicate.asObservable()}},{key:"close",value:function(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"isInactive",value:function(){return this._activate.isStopped}},{key:"activate",value:function(){this._activate.next(),this._activate.complete()}},{key:"afterActivate",value:function(){return this._activate.asObservable()}},{key:"onDuplicate",value:function(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}]),t}(),pt=function(){function t(e,n){_classCallCheck(this,t),this._toastPackage=e,this._parentInjector=n}return _createClass(t,[{key:"get",value:function(t,e,n){return t===ot?this._toastPackage:this._parentInjector.get(t,e,n)}}]),t}(),mt=((J=function(){function t(e,n,i,r,a){_classCallCheck(this,t),this.overlay=n,this._injector=i,this.sanitizer=r,this.ngZone=a,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}return _createClass(t,[{key:"show",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return this._preBuildNotification(i,t,e,this.applyConfig(n))}},{key:"success",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}},{key:"error",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}},{key:"info",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}},{key:"warning",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}},{key:"clear",value:function(t){var e,n=_createForOfIteratorHelper(this.toasts);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(void 0!==t){if(i.toastId===t)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}}catch(r){n.e(r)}finally{n.f()}}},{key:"remove",value:function(t){var e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Object.assign({},this.toastrConfig),t)}},{key:"_findToast",value:function(t){for(var e=0;e0,this.toastrConfig.countDuplicates);if(e&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=e;var o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));var s=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;var l=e;e&&i.enableHtml&&(l=this.sanitizer.sanitize(r.K.HTML,e));var c=new dt(s),u=new ot(this.index,i,l,n,t,c),h=new pt(u,this._injector),f=new lt(i.toastComponent,h),d=s.attach(f,this.toastrConfig.newestOnTop);c.componentInstance=d.instance;var p={toastId:this.index,message:e||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:d};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout((function(){p.toastRef.activate()}))),this.toasts.push(p),p}}]),t}()).\u0275fac=function(t){return new(t||J)(r.bc(st),r.bc(ft),r.bc(r.t),r.bc(a.b),r.bc(r.B))},J.\u0275prov=Object(r.Nb)({factory:function(){return new J(Object(r.bc)(st),Object(r.bc)(ft),Object(r.bc)(r.q),Object(r.bc)(a.b),Object(r.bc)(r.B))},token:J,providedIn:"root"}),J),vt=((Q=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.toastrService=e,this.toastPackage=n,this.ngZone=i,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses="".concat(n.toastType," ").concat(n.config.toastClass),this.sub=n.toastRef.afterActivate().subscribe((function(){r.activateToast()})),this.sub1=n.toastRef.manualClosed().subscribe((function(){r.remove()})),this.sub2=n.toastRef.timeoutReset().subscribe((function(){r.resetTimeout()})),this.sub3=n.toastRef.countDuplicate().subscribe((function(t){r.duplicatesCount=t}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}},{key:"activateToast",value:function(){var t=this;this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout((function(){return t.remove()}),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval((function(){return t.updateProgress()}),10))}},{key:"updateProgress",value:function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}}},{key:"resetTimeout",value:function(){var t=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout((function(){return t.remove()}),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval((function(){return t.updateProgress()}),10)}},{key:"remove",value:function(){var t=this;"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout((function(){return t.toastrService.remove(t.toastPackage.toastId)}),+this.toastPackage.config.easeTime))}},{key:"tapToast",value:function(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}},{key:"stickAround",value:function(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}},{key:"delayedHideToast",value:function(){var t=this;!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout((function(){return t.remove()}),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval((function(){return t.updateProgress()}),10))}},{key:"outsideTimeout",value:function(t,e){var n=this;this.ngZone?this.ngZone.runOutsideAngular((function(){return n.timeout=setTimeout((function(){return n.runInsideAngular(t)}),e)})):this.timeout=setTimeout((function(){return t()}),e)}},{key:"outsideInterval",value:function(t,e){var n=this;this.ngZone?this.ngZone.runOutsideAngular((function(){return n.intervalId=setInterval((function(){return n.runInsideAngular(t)}),e)})):this.intervalId=setInterval((function(){return t()}),e)}},{key:"runInsideAngular",value:function(t){this.ngZone?this.ngZone.run((function(){return t()})):t()}},{key:"displayStyle",get:function(){if("inactive"===this.state.value)return"none"}}]),t}()).\u0275fac=function(t){return new(t||Q)(r.Rb(mt),r.Rb(ot),r.Rb(r.B))},Q.\u0275cmp=r.Lb({type:Q,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&r.fc("click",(function(){return e.tapToast()}))("mouseenter",(function(){return e.stickAround()}))("mouseleave",(function(){return e.delayedHideToast()})),2&t&&(r.Hc("@flyInOut",e.state),r.Gb(e.toastClasses),r.Ac("display",e.displayStyle))},attrs:H,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(r.Bc(0,U,3,0,"button",0),r.Bc(1,q,3,5,"div",1),r.Bc(2,G,1,3,"div",2),r.Bc(3,X,2,4,"div",3),r.Bc(4,K,2,2,"div",4)),2&t&&(r.oc("ngIf",e.options.closeButton),r.Eb(1),r.oc("ngIf",e.title),r.Eb(1),r.oc("ngIf",e.message&&e.options.enableHtml),r.Eb(1),r.oc("ngIf",e.message&&!e.options.enableHtml),r.Eb(1),r.oc("ngIf",e.options.progressBar))},directives:[p.k],encapsulation:2,data:{animation:[Object(b.m)("flyInOut",[Object(b.j)("inactive",Object(b.k)({opacity:0})),Object(b.j)("active",Object(b.k)({opacity:1})),Object(b.j)("removed",Object(b.k)({opacity:0})),Object(b.l)("inactive => active",Object(b.e)("{{ easeTime }}ms {{ easing }}")),Object(b.l)("active => removed",Object(b.e)("{{ easeTime }}ms {{ easing }}"))])]}}),Q),gt=Object.assign(Object.assign({},{maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"}),{toastComponent:vt}),yt=((et=$=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:$,providers:[{provide:st,useValue:{default:gt,config:t}}]}}}]),t}()).\u0275mod=r.Pb({type:et}),et.\u0275inj=r.Ob({factory:function(t){return new(t||et)},imports:[[p.c]]}),et),_t=((tt=function(){function t(e,n){_classCallCheck(this,t),this.http=e,this.toastr=n,this.repoUrl="https://api.github.com/repos/thiago-dev/fivem-hypnonema/releases/latest"}return _createClass(t,[{key:"getHeaders",value:function(){var t=new u.c;return t.append("Content-Type","application/json"),t.append("User-Agent","Hypnonema"),t}},{key:"getLatestRelease",value:function(){return this.http.get(this.repoUrl,{headers:this.getHeaders()})}},{key:"check",value:function(t){var e=this;this.getLatestRelease().subscribe((function(n){B.a.compare(n.tag_name,t,">")&&e.toastr.warning("There is a new Update available. You may want to check it out if you want new features.","Hypnonema Update ".concat(n.tag_name," available!"),{timeOut:8e3,positionClass:"toast-top-right"})}))}}]),t}()).\u0275fac=function(t){return new(t||tt)(r.bc(u.a),r.bc(mt))},tt.\u0275prov=r.Nb({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt),bt=n("/rnm"),kt=n("nLfN"),Ct=["*",[["mat-toolbar-row"]]],wt=["*","mat-toolbar-row"],St=Object(m.r)((function t(e){_classCallCheck(this,t),this._elementRef=e})),xt=((rt=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||rt)},rt.\u0275dir=r.Mb({type:rt,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),rt),Ot=((it=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var a;return _classCallCheck(this,n),(a=e.call(this,t))._platform=i,a._document=r,a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var t=this;Object(r.Y)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}]),n}(St)).\u0275fac=function(t){return new(t||it)(r.Rb(r.m),r.Rb(kt.a),r.Rb(p.d))},it.\u0275cmp=r.Lb({type:it,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&r.Kb(n,xt,!0),2&t&&r.qc(i=r.gc())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&r.Ib("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[r.Bb],ngContentSelectors:wt,decls:2,vars:0,template:function(t,e){1&t&&(r.nc(Ct),r.mc(0),r.mc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),it),Et=((nt=function t(){_classCallCheck(this,t)}).\u0275mod=r.Pb({type:nt}),nt.\u0275inj=r.Ob({factory:function(t){return new(t||nt)},imports:[[m.e],m.e]}),nt),Tt=n("NFeN"),At=((at=function(){function t(e){_classCallCheck(this,t),this.nuiService=e}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(){this.nuiService.hideNUI()}}]),t}()).\u0275fac=function(t){return new(t||at)(r.Rb(bt.a))},at.\u0275cmp=r.Lb({type:at,selectors:[["app-header"]],decls:6,vars:0,consts:[["color","primary"],["mat-button","",2,"right","75px","position","absolute",3,"click"]],template:function(t,e){1&t&&(r.Xb(0,"mat-toolbar",0),r.Xb(1,"span"),r.Dc(2,"Hypnonema"),r.Wb(),r.Xb(3,"button",1),r.fc("click",(function(){return e.close()})),r.Xb(4,"mat-icon"),r.Dc(5,"close"),r.Wb(),r.Wb(),r.Wb())},directives:[Ot,v.b,Tt.a],styles:[""]}),at),jt=n("lJxs"),It=n("UXun"),Rt=n("vxfF"),Pt=n("8LU1"),Dt=n("FtGj"),Nt=n("xgIS"),Mt=n("VRyK"),Ft=n("pLZG"),Lt=n("/uUt"),Vt=n("JX91"),Bt=n("Kj3r"),zt=n("R1ws"),Ht=n("cH1L"),Ut=["*"];function Wt(t,e){if(1&t){var n=r.Yb();r.Xb(0,"div",2),r.fc("click",(function(){return r.uc(n),r.jc()._onBackdropClicked()})),r.Wb()}if(2&t){var i=r.jc();r.Ib("mat-drawer-shown",i._isShowingBackdrop())}}function qt(t,e){1&t&&(r.Xb(0,"mat-drawer-content"),r.mc(1,2),r.Wb())}var Gt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Xt=["mat-drawer","mat-drawer-content","*"];function Kt(t,e){if(1&t){var n=r.Yb();r.Xb(0,"div",2),r.fc("click",(function(){return r.uc(n),r.jc()._onBackdropClicked()})),r.Wb()}if(2&t){var i=r.jc();r.Ib("mat-drawer-shown",i._isShowingBackdrop())}}function Zt(t,e){1&t&&(r.Xb(0,"mat-sidenav-content",3),r.mc(1,2),r.Wb())}var Yt=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Qt=["mat-sidenav","mat-sidenav-content","*"],Jt={transformDrawer:Object(b.m)("transform",[Object(b.j)("open, open-instant",Object(b.k)({transform:"none",visibility:"visible"})),Object(b.j)("void",Object(b.k)({"box-shadow":"none",visibility:"hidden"})),Object(b.l)("void => open-instant",Object(b.e)("0ms")),Object(b.l)("void <=> open, open-instant => void",Object(b.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function $t(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var te,ee,ne,ie,re,ae,oe,se=new r.s("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),le=new r.s("MAT_DRAWER_CONTAINER"),ce=((re=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a,o){var s;return _classCallCheck(this,n),(s=e.call(this,r,a,o))._changeDetectorRef=t,s._container=i,s}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),n}(Rt.a)).\u0275fac=function(t){return new(t||re)(r.Rb(r.i),r.Rb(Object(r.V)((function(){return he}))),r.Rb(r.m),r.Rb(Rt.b),r.Rb(r.B))},re.\u0275cmp=r.Lb({type:re,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Ac("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.Bb],ngContentSelectors:Ut,decls:1,vars:0,template:function(t,e){1&t&&(r.nc(),r.mc(0))},encapsulation:2,changeDetection:0}),re),ue=((ie=function(){function t(e,n,i,a,o,s,l){var c=this;_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=a,this._ngZone=o,this._doc=s,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new g.a,this._animationEnd=new g.a,this._animationState="void",this.openedChange=new r.p(!0),this._destroyed=new g.a,this.onPositionChanged=new r.p,this._modeChanged=new g.a,this.openedChange.subscribe((function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Object(Nt.a)(c._elementRef.nativeElement,"keydown").pipe(Object(Ft.a)((function(t){return t.keyCode===Dt.g&&!c.disableClose&&!Object(Dt.s)(t)})),Object(_.a)(c._destroyed)).subscribe((function(t){return c._ngZone.run((function(){c.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(Object(Lt.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)}))}return _createClass(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(e){t.openedChange.pipe(Object(y.a)(1)).subscribe((function(t){return e(t?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=Object(Pt.c)(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=Object(Pt.c)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(Object(Pt.c)(t))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(Object(Ft.a)((function(t){return t})),Object(jt.a)((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(Object(Ft.a)((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),Object(jt.a)((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(Object(Ft.a)((function(t){return!t})),Object(jt.a)((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(Object(Ft.a)((function(t){return t.fromState!==t.toState&&"void"===t.toState})),Object(jt.a)((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),t}()).\u0275fac=function(t){return new(t||ie)(r.Rb(r.m),r.Rb(k.f),r.Rb(k.e),r.Rb(kt.a),r.Rb(r.B),r.Rb(p.d,8),r.Rb(le,8))},ie.\u0275cmp=r.Lb({type:ie,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&r.Jb("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(r.Fb("align",null),r.Hc("@transform",e._animationState),r.Ib("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:Ut,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.nc(),r.Xb(0,"div",0),r.mc(1),r.Wb())},encapsulation:2,data:{animation:[Jt.transformDrawer]},changeDetection:0}),ie),he=((ne=function(){function t(e,n,i,a,o){var s=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._dir=e,this._element=n,this._ngZone=i,this._changeDetectorRef=a,this._animationMode=c,this._drawers=new r.F,this.backdropClick=new r.p,this._destroyed=new g.a,this._doCheckSubject=new g.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new g.a,e&&e.change.pipe(Object(_.a)(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(Object(_.a)(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=l}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Object(Vt.a)(this._allDrawers),Object(_.a)(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Object(Vt.a)(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Object(Bt.a)(10),Object(_.a)(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(t){return t.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(t){return t.close()}))}},{key:"updateContentMargins",value:function(){var t=this,e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var i=this._left._width;e+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var r=this._right._width;n+=r,e-=r}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(Object(Ft.a)((function(t){return t.fromState!==t.toState})),Object(_.a)(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(Object(_.a)(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(Object(_.a)(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(y.a)(1)).subscribe((function(){e._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(Object(_.a)(Object(Mt.a)(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&$t("end"),t._end=e):(null!=t._start&&$t("start"),t._start=e)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=Object(Pt.c)(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:Object(Pt.c)(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||ne)(r.Rb(Ht.b,8),r.Rb(r.m),r.Rb(r.B),r.Rb(r.i),r.Rb(Rt.d),r.Rb(se),r.Rb(zt.a,8))},ne.\u0275cmp=r.Lb({type:ne,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(r.Kb(n,ce,!0),r.Kb(n,ue,!0)),2&t&&(r.qc(i=r.gc())&&(e._content=i.first),r.qc(i=r.gc())&&(e._allDrawers=i))},viewQuery:function(t,e){var n;1&t&&r.Ic(ce,!0),2&t&&r.qc(n=r.gc())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.Ib("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[r.Db([{provide:le,useExisting:ne}])],ngContentSelectors:Xt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(r.nc(Gt),r.Bc(0,Wt,1,2,"div",0),r.mc(1),r.mc(2,1),r.Bc(3,qt,2,0,"mat-drawer-content",1)),2&t&&(r.oc("ngIf",e.hasBackdrop),r.Eb(3),r.oc("ngIf",!e._content))},directives:[p.k,ce],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),ne),fe=((ee=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a,o){return _classCallCheck(this,n),e.call(this,t,i,r,a,o)}return n}(ce)).\u0275fac=function(t){return new(t||ee)(r.Rb(r.i),r.Rb(Object(r.V)((function(){return me}))),r.Rb(r.m),r.Rb(Rt.b),r.Rb(r.B))},ee.\u0275cmp=r.Lb({type:ee,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Ac("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.Bb],ngContentSelectors:Ut,decls:1,vars:0,template:function(t,e){1&t&&(r.nc(),r.mc(0))},encapsulation:2,changeDetection:0}),ee),de=((te=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _createClass(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=Object(Pt.c)(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=Object(Pt.f)(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=Object(Pt.f)(t)}}]),n}(ue)).\u0275fac=function(t){return pe(t||te)},te.\u0275cmp=r.Lb({type:te,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(r.Fb("align",null),r.Ac("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),r.Ib("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[r.Bb],ngContentSelectors:Ut,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.nc(),r.Xb(0,"div",0),r.mc(1),r.Wb())},encapsulation:2,data:{animation:[Jt.transformDrawer]},changeDetection:0}),te),pe=r.Zb(de),me=((ae=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(he)).\u0275fac=function(t){return ve(t||ae)},ae.\u0275cmp=r.Lb({type:ae,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(r.Kb(n,fe,!0),r.Kb(n,de,!0)),2&t&&(r.qc(i=r.gc())&&(e._content=i.first),r.qc(i=r.gc())&&(e._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.Ib("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[r.Db([{provide:le,useExisting:ae}]),r.Bb],ngContentSelectors:Qt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(r.nc(Yt),r.Bc(0,Kt,1,2,"div",0),r.mc(1),r.mc(2,1),r.Bc(3,Zt,2,0,"mat-sidenav-content",1)),2&t&&(r.oc("ngIf",e.hasBackdrop),r.Eb(3),r.oc("ngIf",!e._content))},directives:[p.k,fe,Rt.a],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),ae),ve=r.Zb(me),ge=((oe=function t(){_classCallCheck(this,t)}).\u0275mod=r.Pb({type:oe}),oe.\u0275inj=r.Ob({factory:function(t){return new(t||oe)},imports:[[p.c,m.e,Rt.c,kt.b],m.e]}),oe);n("0EQZ");var ye,_e,be,ke,Ce,we,Se,xe,Oe,Ee,Te=n("3Pt+"),Ae=((_e=function(){function t(){_classCallCheck(this,t),this._vertical=!1,this._inset=!1}return _createClass(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=Object(Pt.c)(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=Object(Pt.c)(t)}}]),t}()).\u0275fac=function(t){return new(t||_e)},_e.\u0275cmp=r.Lb({type:_e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(r.Fb("aria-orientation",e.vertical?"vertical":"horizontal"),r.Ib("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),_e),je=((ye=function t(){_classCallCheck(this,t)}).\u0275mod=r.Pb({type:ye}),ye.\u0275inj=r.Ob({factory:function(t){return new(t||ye)},imports:[[m.e],m.e]}),ye),Ie=["*"],Re=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Pe=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],De=Object(m.t)(Object(m.s)((function t(){_classCallCheck(this,t)}))),Ne=Object(m.s)((function t(){_classCallCheck(this,t)})),Me=((be=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._stateChanges=new g.a,t}return _createClass(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(De)).\u0275fac=function(t){return Fe(t||be)},be.\u0275cmp=r.Lb({type:be,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[r.Bb,r.Cb],ngContentSelectors:Ie,decls:1,vars:0,template:function(t,e){1&t&&(r.nc(),r.mc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),be),Fe=r.Zb(Me),Le=((Ee=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._elementRef=t,i._stateChanges=new g.a,"action-list"===i._getListType()&&t.nativeElement.classList.add("mat-action-list"),i}return _createClass(n,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(De)).\u0275fac=function(t){return new(t||Ee)(r.Rb(r.m))},Ee.\u0275cmp=r.Lb({type:Ee,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r.Bb,r.Cb],ngContentSelectors:Ie,decls:1,vars:0,template:function(t,e){1&t&&(r.nc(),r.mc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Ee),Ve=((Oe=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Oe)},Oe.\u0275dir=r.Mb({type:Oe,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Oe),Be=((xe=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||xe)},xe.\u0275dir=r.Mb({type:xe,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),xe),ze=((Se=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Se)},Se.\u0275dir=r.Mb({type:Se,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Se),He=((we=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,a){var o;_classCallCheck(this,n),(o=e.call(this))._element=t,o._isInteractiveList=!1,o._destroyed=new g.a,o._disabled=!1,o._isInteractiveList=!!(r||a&&"action-list"===a._getListType()),o._list=r||a;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Object(_.a)(o._destroyed)).subscribe((function(){i.markForCheck()})),o}return _createClass(n,[{key:"ngAfterContentInit",value:function(){Object(m.w)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=Object(Pt.c)(t)}}]),n}(Ne)).\u0275fac=function(t){return new(t||we)(r.Rb(r.m),r.Rb(r.i),r.Rb(Me,8),r.Rb(Le,8))},we.\u0275cmp=r.Lb({type:we,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var i;1&t&&(r.Kb(n,Ve,!0),r.Kb(n,Be,!0),r.Kb(n,m.f,!0)),2&t&&(r.qc(i=r.gc())&&(e._avatar=i.first),r.qc(i=r.gc())&&(e._icon=i.first),r.qc(i=r.gc())&&(e._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.Ib("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.Bb],ngContentSelectors:Pe,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(r.nc(Re),r.Xb(0,"div",0),r.Sb(1,"div",1),r.mc(2),r.Xb(3,"div",2),r.mc(4,1),r.Wb(),r.mc(5,2),r.Wb()),2&t&&(r.Eb(1),r.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[m.m],encapsulation:2,changeDetection:0}),we),Ue=((Ce=function t(){_classCallCheck(this,t)}).\u0275mod=r.Pb({type:Ce}),Ce.\u0275inj=r.Ob({factory:function(t){return new(t||Ce)},imports:[[m.g,m.n,m.e,m.l,p.c],m.g,m.e,m.l,je]}),Ce),We=((ke=function t(e){_classCallCheck(this,t),this.breakpointObserver=e,this.isHandset$=this.breakpointObserver.observe(C.b.Handset).pipe(Object(jt.a)((function(t){return t.matches})),Object(It.a)())}).\u0275fac=function(t){return new(t||ke)(r.Rb(C.a))},ke.\u0275cmp=r.Lb({type:ke,selectors:[["app-side-nav"]],decls:32,vars:9,consts:[[1,"sidenav-container"],[1,"sidenav",3,"mode","opened"],["drawer",""],[2,"padding-bottom","45px"],["matSubheader",""],["mat-list-item","","routerLink","/status","href","#"],["routerLink","/quick-play","mat-list-item","","href","#"],["mat-list-item","","routerLink","/screens","href","#"],[1,"playing"],[1,"playing__art"],[1,"playing__song"],[2,"padding","10px","max-height","420px"]],template:function(t,e){1&t&&(r.Xb(0,"mat-sidenav-container",0),r.Xb(1,"mat-sidenav",1,2),r.kc(3,"async"),r.kc(4,"async"),r.kc(5,"async"),r.Xb(6,"mat-nav-list",3),r.Sb(7,"mat-divider"),r.Xb(8,"h2",4),r.Dc(9,"Admin"),r.Wb(),r.Xb(10,"a",5),r.Xb(11,"i"),r.Xb(12,"mat-icon"),r.Dc(13,"data_usage"),r.Wb(),r.Wb(),r.Dc(14," Status"),r.Wb(),r.Xb(15,"a",6),r.Xb(16,"i"),r.Xb(17,"mat-icon"),r.Dc(18,"add_to_queue"),r.Wb(),r.Wb(),r.Dc(19," Quick Play "),r.Wb(),r.Xb(20,"a",7),r.Xb(21,"i"),r.Xb(22,"mat-icon"),r.Dc(23,"list"),r.Wb(),r.Wb(),r.Dc(24," Screens"),r.Wb(),r.Wb(),r.Xb(25,"mat-nav-list"),r.Xb(26,"section",8),r.Sb(27,"div",9),r.Sb(28,"div",10),r.Wb(),r.Wb(),r.Wb(),r.Xb(29,"mat-sidenav-content"),r.Xb(30,"div",11),r.Sb(31,"router-outlet"),r.Wb(),r.Wb(),r.Wb()),2&t&&(r.Eb(1),r.oc("mode",r.lc(4,5,e.isHandset$)?"over":"side")("opened",!1===r.lc(5,7,e.isHandset$)),r.Fb("role",r.lc(3,3,e.isHandset$)?"dialog":"navigation"))},directives:[me,de,Me,Ae,ze,He,o.c,Tt.a,fe,o.e],pipes:[p.b],styles:[".sidenav-container[_ngcontent-%COMP%]{max-height:460px;min-height:460px}.sidenav[_ngcontent-%COMP%]{width:200px;background:#282828}.sidenav[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{background:inherit}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;z-index:1}.playing[_ngcontent-%COMP%]{background:#282828;position:absolute;bottom:0;display:flex;flex-flow:row nowrap;align-items:center}.playing__art[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px;height:50px}.playing__song[_ngcontent-%COMP%]{color:#aaa;padding-left:15px;display:flex;flex-flow:column wrap}.playing__song[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#aaa}.playing__song[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.playing__add[_ngcontent-%COMP%]{margin-left:auto;padding-right:15px;color:#aaa}@media (max-width:768px){.playing[_ngcontent-%COMP%]{border-top:1px solid #181818}}"]}),ke),qe=n("PqYM"),Ge=n("kmnG"),Xe=n("d3UM"),Ke=n("5RNC"),Ze=n("GFHR");function Ye(t,e){1&t&&(r.Xb(0,"mat-icon",18),r.Dc(1,"repeat"),r.Wb())}function Qe(t,e){1&t&&(r.Xb(0,"mat-icon"),r.Dc(1,"repeat"),r.Wb())}function Je(t,e){if(1&t){var n=r.Yb();r.Xb(0,"a",19),r.fc("click",(function(){r.uc(n);var t=r.jc(3);return t.resumeOrPause(t.isPaused)})),r.Xb(1,"mat-icon"),r.Dc(2,"pause"),r.Wb(),r.Wb()}}function $e(t,e){if(1&t){var n=r.Yb();r.Xb(0,"a",20),r.fc("click",(function(){r.uc(n);var t=r.jc(3);return t.resumeOrPause(t.isPaused)})),r.Xb(1,"mat-icon"),r.Dc(2,"play_arrow"),r.Wb(),r.Wb()}}function tn(t,e){if(1&t){var n=r.Yb();r.Xb(0,"div",6),r.Xb(1,"a",7),r.fc("click",(function(){r.uc(n);var t=r.jc(2);return t.repeat(t.selectedScreenName)})),r.Bc(2,Ye,2,0,"ng-template",8),r.kc(3,"async"),r.Bc(4,Qe,2,0,"ng-template",null,9,r.Cc),r.Wb(),r.Xb(6,"a",10),r.fc("click",(function(){r.uc(n);var t=r.jc(2);return t.stop(t.selectedScreenName)})),r.Xb(7,"mat-icon"),r.Dc(8,"stop"),r.Wb(),r.Wb(),r.Bc(9,Je,3,0,"a",11),r.kc(10,"async"),r.Bc(11,$e,3,0,"a",12),r.kc(12,"async"),r.Wb(),r.Xb(13,"div",13),r.Xb(14,"div",14),r.Dc(15),r.Wb(),r.Xb(16,"div",15),r.Xb(17,"mat-slider",16),r.fc("ngModelChange",(function(t){r.uc(n);var e=r.jc(2);return e.startCurrentTime+(e.ticks=t)}))("change",(function(t){return r.uc(n),r.jc(2).onSliderChange(t)})),r.Wb(),r.Wb(),r.Xb(18,"div",17),r.Dc(19),r.kc(20,"minuteSeconds"),r.kc(21,"async"),r.Wb(),r.Wb()}if(2&t){var i,a,o,s,l=r.rc(5),c=r.jc(2),u=null==(i=r.lc(3,11,c.screen$))?null:i.repeat,h=!(null!=(a=r.lc(10,13,c.screen$))&&a.isPaused),f=null==(o=r.lc(12,15,c.screen$))?null:o.isPaused;r.Eb(2),r.oc("ngIf",u)("ngIfElse",l),r.Eb(7),r.oc("ngIf",h),r.Eb(2),r.oc("ngIf",f),r.Eb(4),r.Gc(" ",c.getHours(c.startCurrentTime+c.ticks),":",c.getMinutes(c.startCurrentTime+c.ticks)," :",c.getSeconds(c.startCurrentTime+c.ticks),""),r.Eb(2),r.oc("displayWith",c.formatSliderLabel)("max",c.sliderCap)("ngModel",c.startCurrentTime+c.ticks),r.Eb(2),r.Ec(r.lc(20,17,null==(s=r.lc(21,19,c.screen$))?null:s.duration))}}function en(t,e){if(1&t&&(r.Xb(0,"mat-option",21),r.Dc(1),r.Wb()),2&t){var n=e.$implicit;r.oc("value",n.screenName),r.Eb(1),r.Fc(" ",n.screenName," ")}}function nn(t,e){if(1&t){var n=r.Yb();r.Xb(0,"section",1),r.Bc(1,tn,22,21,"ng-template",2),r.kc(2,"async"),r.Xb(3,"div",3),r.Xb(4,"mat-form-field"),r.Xb(5,"mat-label"),r.Dc(6,"Selected Screen"),r.Wb(),r.Xb(7,"mat-select",4),r.fc("ngModelChange",(function(t){return r.uc(n),r.jc().selectedScreenName=t}))("ngModelChange",(function(t){return r.uc(n),r.jc().onSelectionChange(t)})),r.Bc(8,en,2,2,"mat-option",5),r.kc(9,"async"),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&t){var i=r.jc();r.Eb(1),r.oc("ngIf",r.lc(2,3,i.screen$)),r.Eb(6),r.oc("ngModel",i.selectedScreenName),r.Eb(1),r.oc("ngForOf",r.lc(9,5,i.screens$))}}var rn,an=((rn=function(){function t(e,n){_classCallCheck(this,t),this.nuiService=e,this.store=n,this.sliderCap=0,this.startCurrentTime=0,this.ticks=0}return _createClass(t,[{key:"stop",value:function(t){this.nuiService.stopVideo(t)}},{key:"onSelectionChange",value:function(t){var e=this;this.selectedScreenName=t,this.store.dispatch(new c.e(t));var n=this;setTimeout((function(){n.nuiService.requestDuiState(e.selectedScreenName)}),500)}},{key:"ngOnInit",value:function(){var t=this;this.screen$.pipe(Object(Lt.a)()).subscribe((function(e){e&&(t.sub&&(t.ticks=0,t.sub.unsubscribe()),t.sliderCap=Math.floor(e.duration),t.isPaused=e.isPaused,e.isPaused||t.startTimer(),t.startCurrentTime=e.ended?t.sliderCap:Math.floor(e.currentTime))}))}},{key:"onSliderChange",value:function(t){var e=this;this.startCurrentTime=t.value,this.nuiService.setVideoTime(this.selectedScreenName,t.value);var n=this;setTimeout((function(){n.nuiService.requestDuiState(e.selectedScreenName)}),500)}},{key:"repeat",value:function(t){var e=this;this.nuiService.repeatVideo(t);var n=this;setTimeout((function(){n.nuiService.requestDuiState(e.selectedScreenName)}),250)}},{key:"resumeOrPause",value:function(t){var e=this;t?this.nuiService.resumeVideo(this.selectedScreenName):this.nuiService.pauseVideo(this.selectedScreenName);var n=this;setTimeout((function(){n.nuiService.requestDuiState(e.selectedScreenName)}),1e3)}},{key:"formatSliderLabel",value:function(t){var e=Math.floor(t/60/60),n=e<=9?"0"+e:e,i=Math.floor(t/60)%60,r=i<=9?"0"+i:i,a=Math.floor(t%60);return"".concat(n,":").concat(r,":").concat(a<=9?"0"+a:a)}},{key:"getSeconds",value:function(t){return this.pad(t%60)}},{key:"getMinutes",value:function(t){return this.pad(Math.floor(t/60)%60)}},{key:"getHours",value:function(t){return this.pad(Math.floor(t/60/60))}},{key:"pad",value:function(t){return t<=9?"0"+t:t}},{key:"startTimer",value:function(){var t=this;this.timer=Object(qe.a)(1,1e3),this.sub=this.timer.subscribe((function(e){t.ticks=e,e+t.startCurrentTime>=t.sliderCap&&t.sub.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||rn)(r.Rb(bt.a),r.Rb(h.g))},rn.\u0275cmp=r.Lb({type:rn,selectors:[["app-current-track"]],decls:2,vars:3,consts:[["class","current-track",4,"ngIf"],[1,"current-track"],[3,"ngIf"],[1,"current-track__screenCtrl"],["name","screen",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"current-track__actions"],["mat-icon-button","",1,"repeat",3,"click"],[3,"ngIf","ngIfElse"],["isNotRepeated",""],["mat-icon-button","",1,"stop",3,"click"],["class","play","mat-icon-button","","aria-label","Pause or Resume",3,"click",4,"ngIf"],["class","play","mat-icon-button","","aria-label","Resume",3,"click",4,"ngIf"],[1,"current-track__progress"],[1,"current-track__progress__start"],[1,"current-track__progress__bar"],["color","primary","min","0","step","1","thumbLabel","",3,"displayWith","max","ngModel","ngModelChange","change"],[1,"current-track__progress__finish"],["color","accent"],["mat-icon-button","","aria-label","Pause or Resume",1,"play",3,"click"],["mat-icon-button","","aria-label","Resume",1,"play",3,"click"],[3,"value"]],template:function(t,e){1&t&&(r.Bc(0,nn,10,7,"section",0),r.kc(1,"async")),2&t&&r.oc("ngIf",r.lc(1,1,e.screens$))},directives:[p.k,Ge.c,Ge.g,Xe.a,Te.j,Te.m,p.j,v.a,Tt.a,Ke.a,m.i],pipes:[p.b,Ze.a],styles:["mat-form-field[_ngcontent-%COMP%]{width:90px;max-width:90px;max-height:50px}.mat-accent[_ngcontent-%COMP%] .mat-slider-thumb-label-text[_ngcontent-%COMP%]{color:azure!important}.current-track[_ngcontent-%COMP%]{background:#282828;border-top:1px solid #181818;padding:15px 45px 5px;display:flex;flex-flow:row wrap;align-items:center}.current-track__actions[_ngcontent-%COMP%]{padding-right:20px;padding-left:10px;width:5%;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center}.current-track__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:24px;color:#c8c8c8}.current-track__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.current-track__actions[_ngcontent-%COMP%] .play[_ngcontent-%COMP%]{font-size:36px}.current-track__screenCtrl[_ngcontent-%COMP%]{display:flex;flex-flow:row;justify-content:space-between;align-items:center;color:azure;font-size:medium}.current-track__progress__start[_ngcontent-%COMP%]{width:10%;padding-left:8%;display:flex}.current-track__progress[_ngcontent-%COMP%]{width:70%;padding:0 30px;color:#aaa;font-size:11px;display:flex;flex-flow:row;justify-content:space-between;align-items:center}.current-track__progress__bar[_ngcontent-%COMP%]{width:80%;padding:0 15px}.current-track__progress[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:100%;padding:0 15px}"]}),Object(z.a)([Object(h.d)(c.a.getStatuses)],rn.prototype,"screens$",void 0),Object(z.a)([Object(h.d)(c.a.getControlledScreen)],rn.prototype,"screen$",void 0),rn);function on(t,e){1&t&&(r.Xb(0,"div",1),r.Xb(1,"div",2),r.Xb(2,"div",3),r.Sb(3,"app-header"),r.Sb(4,"app-side-nav"),r.Sb(5,"app-current-track"),r.Wb(),r.Wb(),r.Wb())}var sn,ln,cn=((sn=function(){function t(e,n,i,r,a){_classCallCheck(this,t),this.router=e,this.http=n,this.store=i,this.snackBar=r,this.updateCheckService=a,this.appVisible=!1,this.checkedForUpdates=!1}return _createClass(t,[{key:"handleNUIMessage",value:function(t){if(t){if("HypnonemaNUI.ShowUI"===t.data.type){if(this.checkedForUpdates||(this.updateCheckService.check(t.data.hypnonemaVersion),this.checkedForUpdates=!0),this.store.dispatch(new c.f(!!t.data.isAceAllowed&&t.data.isAceAllowed)),!t.data.screens)return this.router.navigateByUrl("screens"),void(this.appVisible=!0);this.store.dispatch(new c.h(t.data.screens)),this.router.navigateByUrl("quick-play"),this.appVisible=!0}"HypnonemaNUI.HideUI"===t.data.type&&(this.appVisible=!1,this.store.dispatch(new c.b)),"HypnonemaNUI.CreatedScreen"===t.data.type&&(this.store.dispatch(new c.c(t.data.screen)),this.appVisible&&(this.snackBar.open("Screen successfully created!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.EditedScreen"===t.data.type&&(this.store.dispatch(new c.j(t.data.screen)),this.appVisible&&(this.snackBar.open("Screen successfully updated!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.DeletedScreen"===t.data.type&&(this.store.dispatch(new c.d(t.data.screenName)),this.appVisible&&(this.snackBar.open("Screen successfully deleted!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.UpdateStatuses"===t.data.type&&(this.store.dispatch(new c.g(!1)),this.store.dispatch(new c.k(t.data.screenStates)),this.appVisible&&t.data.showSnackBar&&this.snackBar.open("Successfully fetched status!","Dismiss",{duration:2500}))}}},{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||sn)(r.Rb(o.a),r.Rb(u.a),r.Rb(h.g),r.Rb(L),r.Rb(_t))},sn.\u0275cmp=r.Lb({type:sn,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&r.fc("message",(function(t){return e.handleNUIMessage(t)}),!1,r.tc)},decls:1,vars:1,consts:[["id","wrapper",4,"ngIf"],["id","wrapper"],["id","wrapper2"],["id","content"]],template:function(t,e){1&t&&r.Bc(0,on,6,0,"div",0),2&t&&r.oc("ngIf",e.appVisible)},directives:[p.k,At,We,an],styles:[""]}),sn),un=n("JIr8"),hn=n("vkgz"),fn=new r.s("NGXS_DEVTOOLS_OPTIONS"),dn=((ln=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._options=e,this._injector=n,this.devtoolsExtension=null,this.windowObj="undefined"!=typeof window?window:{};var r=this.windowObj.__REDUX_DEVTOOLS_EXTENSION__||this.windowObj.devToolsExtension;r&&(this.devtoolsExtension=r.connect(e),this.devtoolsExtension.subscribe((function(t){return i.dispatched(t)})))}return _createClass(t,[{key:"handle",value:function(t,e,n){var i=this;return!this.devtoolsExtension||this._options&&this._options.disabled?n(t,e):n(t,e).pipe(Object(un.a)((function(n){var r=i.store.snapshot();throw i.sendToDevTools(t,e,r),n})),Object(hn.a)((function(n){i.sendToDevTools(t,e,n)})))}},{key:"sendToDevTools",value:function(t,e,n){var i=Object(h.h)(e);"@@INIT"===i?this.devtoolsExtension.init(t):this.devtoolsExtension.send(Object.assign({},e,{type:i}),n)}},{key:"dispatched",value:function(t){var e=this;if("DISPATCH"===t.type){if("JUMP_TO_ACTION"===t.payload.type||"JUMP_TO_STATE"===t.payload.type){var n=JSON.parse(t.state);this.store.reset(n)}else if("TOGGLE_ACTION"===t.payload.type)console.warn("Skip is not supported at this time.");else if("IMPORT_STATE"===t.payload.type){var i=t.payload.nextLiftedState,r=i.actionsById,a=i.computedStates,o=i.currentStateIndex;this.devtoolsExtension.init(a[0].state),Object.keys(r).filter((function(t){return"0"!==t})).forEach((function(t){return e.devtoolsExtension.send(r[t],a[t].state)})),this.store.reset(a[o].state)}}else if("ACTION"===t.type){var s=JSON.parse(t.payload);this.store.dispatch(s)}}},{key:"store",get:function(){return this._injector.get(h.g)}}]),t}()).\u0275fac=function(t){return new(t||ln)(r.bc(fn),r.bc(r.t))},ln.\u0275prov=r.Nb({token:ln,factory:ln.\u0275fac}),ln);function pn(t){return Object.assign({name:"NGXS"},t)}var mn,vn,gn=new r.s("USER_OPTIONS"),yn=((mn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:h.b,useClass:dn,multi:!0},{provide:gn,useValue:e},{provide:fn,useFactory:pn,deps:[gn]}]}}}]),t}()).\u0275mod=r.Pb({type:mn}),mn.\u0275inj=r.Ob({factory:function(t){return new(t||mn)}}),mn),_n=new r.s("NGXS_LOGGER_PLUGIN_OPTIONS"),bn=function(t,e){return n=e-t.toString().length,new Array(n+1).join("0")+t;var n},kn=function(){function t(e,n,i){_classCallCheck(this,t),this.action=e,this.store=n,this.logWriter=i}return _createClass(t,[{key:"dispatched",value:function(t){var e,n=Object(h.h)(this.action),i=(e=new Date,bn(e.getHours(),2)+":"+bn(e.getMinutes(),2)+":"+bn(e.getSeconds(),2)+"."+bn(e.getMilliseconds(),3));this.logWriter.startGroup("action ".concat(n," @ ").concat(i)),this._hasPayload(this.action)&&this.logWriter.logGrey("payload",Object.assign({},this.action)),this.logWriter.logGrey("prev state",t)}},{key:"completed",value:function(t){this.logWriter.logGreen("next state",t),this.logWriter.endGroup()}},{key:"errored",value:function(t){this.logWriter.logRedish("next state after error",this.store.snapshot()),this.logWriter.logRedish("error",t),this.logWriter.endGroup()}},{key:"_hasPayload",value:function(t){return this._getNonEmptyProperties(t).length>0}},{key:"_getNonEmptyProperties",value:function(t){return Object.keys(t).map((function(e){return t[e]})).filter((function(t){return!!t}))}}]),t}(),Cn=function(){function t(e){_classCallCheck(this,t),this.options=e,this.options=this.options||{},this.logger=e.logger||console}return _createClass(t,[{key:"startGroup",value:function(t){var e=this.options.collapsed?this.logger.groupCollapsed:this.logger.group;try{e.call(this.logger,t)}catch(n){console.log(t)}}},{key:"endGroup",value:function(){try{this.logger.groupEnd()}catch(t){this.logger.log("\u2014\u2014 log end \u2014\u2014")}}},{key:"logGrey",value:function(t,e){this.log(t,"color: #9E9E9E; font-weight: bold",e)}},{key:"logGreen",value:function(t,e){this.log(t,"color: #4CAF50; font-weight: bold",e)}},{key:"logRedish",value:function(t,e){this.log(t,"color: #FD8182; font-weight: bold",e)}},{key:"log",value:function(t,e,n){this.isIE()?this.logger.log(t,n):this.logger.log("%c "+t,e,n)}},{key:"isIE",value:function(){var t="undefined"!=typeof window&&window.navigator.userAgent?window.navigator.userAgent:"",e=!1,n=t.indexOf("MSIE "),i=t.indexOf("Trident/");return(n>-1||i>-1)&&(e=!0),e}}]),t}(),wn=((vn=function(){function t(e,n){_classCallCheck(this,t),this._options=e,this._injector=n}return _createClass(t,[{key:"handle",value:function(t,e,n){if(this._options.disabled)return n(t,e);var i=new Cn(this._options),r=this._injector.get(h.g),a=new kn(e,r,i);return a.dispatched(t),n(t,e).pipe(Object(hn.a)((function(t){a.completed(t)})),Object(un.a)((function(t){throw a.errored(t),t})))}}]),t}()).\u0275fac=function(t){return new(t||vn)(r.bc(_n),r.bc(r.t))},vn.\u0275prov=r.Nb({token:vn,factory:vn.\u0275fac}),vn),Sn=new r.s("LOGGER_USER_OPTIONS");function xn(t){var e={logger:console,collapsed:!1,disabled:!1};return Object.assign({},e,t)}var On,En,Tn=((On=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:h.b,useClass:wn,multi:!0},{provide:Sn,useValue:e},{provide:_n,useFactory:xn,deps:[Sn]}]}}}]),t}()).\u0275mod=r.Pb({type:On}),On.\u0275inj=r.Ob({factory:function(t){return new(t||On)}}),On),An=n("PCNd"),jn=((En=function t(){_classCallCheck(this,t)}).\u0275mod=r.Pb({type:En,bootstrap:[cn]}),En.\u0275inj=r.Ob({factory:function(t){return new(t||En)},providers:[],imports:[[An.a,l,a.a,zt.b,u.b,yt.forRoot(),C.c,Et,v.c,ge,Tt.b,Ue,M,Ke.b,h.c.forRoot([c.a],{developmentMode:!1}),yn.forRoot({}),Tn.forRoot({disabled:!0}),Te.f,m.j,Xe.b]]}),En);Object(r.U)(),a.d().bootstrapModule(jn).catch((function(t){return console.error(t)}))},zn8P: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="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/main.js b/resources/Hypnonema/client/html/main.js index d63f42024..19993fffa 100644 --- a/resources/Hypnonema/client/html/main.js +++ b/resources/Hypnonema/client/html/main.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+rOU":function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return d}),n.d(e,"f",function(){return a});var i=n("fXoL"),s=n("ofXK");class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.m?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.p,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.k),i.Rb(i.S),i.Rb(s.d))},t.\u0275dir=i.Mb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Cb]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})()},"/rnm":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("fXoL"),s=n("tk/3");let r=(()=>{class t{constructor(t){this.http=t,this.resourceName=window.location.hostname}repeatVideo(t){this.http.post(`http://${this.resourceName}/Hypnonema.OnToggleRepeat`,{screenName:t}).subscribe(()=>{},t=>console.log(t.toString()))}editScreen(t,e,n,i,s,r,o,a,l,c,u,h,d,p,f,m,g,b,_,y){this.http.post(`http://${this.resourceName}/Hypnonema.OnEditScreen`,{id:e,is3DRendered:n,screenName:t,alwaysOn:i,modelName:s,renderTargetName:r,globalVolume:o,soundAttenuation:a,soundMinDistance:l,soundMaxDistance:c,positionX:u,positionY:h,positionZ:d,rotationX:p,rotationY:f,rotationZ:m,scaleX:g,scaleY:b,scaleZ:_,is3DAudioEnabled:y}).subscribe(()=>{},t=>console.log(t))}closeScreen(t){this.http.post(`http://${this.resourceName}/Hypnonema.OnCloseScreen`,{screenName:t}).subscribe(()=>{},t=>console.log(JSON.stringify(t)))}stopVideo(t){this.http.post(`http://${this.resourceName}/Hypnonema.OnStopVideo`,{screenName:t}).subscribe(()=>{},t=>{console.log(t)})}hideNUI(){this.http.post(`http://${this.resourceName}/Hypnonema.OnHideNUI`,{}).subscribe(()=>{},t=>{console.log(t)})}resumeVideo(t){this.http.post(`http://${this.resourceName}/Hypnonema.OnResume`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}pauseVideo(t){this.http.post(`http://${this.resourceName}/Hypnonema.OnPause`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}requestDuiState(t){this.http.post(`http://${this.resourceName}/Hypnonema.OnRequestState`,{}).subscribe(()=>{},t=>console.log(t))}deleteScreen(t){this.http.post(`http://${this.resourceName}/Hypnonema.OnDeleteScreen`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}createScreen(t,e,n,i,s,r,o,a,l,c,u,h,d,p,f,m,g,b,_){this.http.post(`http://${this.resourceName}/Hypnonema.OnCreateScreen`,{screenName:t,alwaysOn:e,modelName:l,renderTargetName:c,globalVolume:n,soundAttenuation:i,soundMinDistance:s,soundMaxDistance:r,is3DRendered:o,positionX:u,positionY:h,positionZ:d,rotationX:p,rotationY:f,rotationZ:m,scaleX:g,scaleY:b,scaleZ:_,is3DAudioEnabled:a}).subscribe(()=>{},t=>{console.log(t)})}playVideo(t,e){this.http.post(`http://${this.resourceName}/Hypnonema.OnPlay`,{videoUrl:e,screen:t}).subscribe(()=>{},t=>{console.log(t)})}setVideoTime(t,e){this.http.post(`http://${this.resourceName}/Hypnonema.OnSeek`,{screenName:t,time:e}).subscribe(()=>{},t=>console.log(t))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(s.a))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return d}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return p}),n.d(e,"g",function(){return l});var i=n("7+OI"),s=n("LRne"),r=n("XNiG"),o=n("fXoL");class a{}function l(t){return t&&"function"==typeof t.connect}class c extends a{constructor(t){super(),this._data=t}connect(){return Object(i.a)(this._data)?this._data:Object(s.a)(this._data)}disconnect(){}}class u{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class h{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const p=new o.t("_ViewRepeater")},"0MNC":function(t,e,n){"use strict";n.d(e,"a",function(){return S}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return _});var i=n("fXoL"),s=n("8LU1"),r=n("XNiG"),o=n("itXk"),a=n("GyhO"),l=n("HDdC"),c=n("IzEk"),u=n("7o/Q");class h{constructor(t){this.total=t}call(t,e){return e.subscribe(new d(t,this.total))}}class d extends u.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var p=n("Kj3r"),f=n("lJxs"),m=n("JX91"),g=n("1G5W"),b=n("nLfN");let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})();const y=new Set;let v,w=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):C}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{v||(v=document.createElement("style"),v.setAttribute("type","text/css"),document.head.appendChild(v)),v.sheet&&(v.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(b.a))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(b.a))},token:t,providedIn:"root"}),t})();function C(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let S=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new r.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return O(Object(s.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=O(Object(s.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(o.a)(e);return n=Object(a.a)(n.pipe(Object(c.a)(1)),n.pipe(t=>t.lift(new h(1)),Object(p.a)(0))),n.pipe(Object(f.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new l.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(m.a)(e),Object(f.a)(({matches:e})=>({query:t,matches:e})),Object(g.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.bc(w),i.bc(i.C))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(w),Object(i.bc)(i.C))},token:t,providedIn:"root"}),t})();function O(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const x={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("l7GE"),s=n("ZUHj");function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new a(t),i=Object(s.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class a extends i.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("XNiG"),s=n("9ppp");class r extends i.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return s});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("quSY");class s extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",function(){return jt}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return Nt}),n.d(e,"d",function(){return kt}),n.d(e,"e",function(){return Ot}),n.d(e,"f",function(){return Pt}),n.d(e,"g",function(){return m}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return L}),n.d(e,"j",function(){return V}),n.d(e,"k",function(){return B}),n.d(e,"l",function(){return ft}),n.d(e,"m",function(){return bt}),n.d(e,"n",function(){return vt}),n.d(e,"o",function(){return Dt}),n.d(e,"p",function(){return At}),n.d(e,"q",function(){return _}),n.d(e,"r",function(){return _t});var i=n("fXoL"),s=n("ofXK"),r=n("Cfvw"),o=n("cp0P"),a=n("lJxs");class l{}const c=new i.t("NgValueAccessor"),u={provide:c,useExisting:Object(i.W)(()=>d),multi:!0},h=new i.t("CompositionEventMode");let d=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(s.x)()?Object(s.x)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.H),i.Rb(i.m),i.Rb(h,8))},t.\u0275dir=i.Mb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.ec("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i.Eb([u])]}),t})();function p(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const m=new i.t("NgValidators"),g=new i.t("NgAsyncValidators"),b=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _{static min(t){return function(t){return e=>{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return y(t)}static requiredTrue(t){return v(t)}static email(t){return function(t){return p(t.value)||b.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>p(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return w;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(p(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return E(t)}static composeAsync(t){return A(t)}}function y(t){return p(t.value)?{required:!0}:null}function v(t){return!0===t.value?null:{required:!0}}function w(t){return null}function C(t){return null!=t}function S(t){const e=Object(i.wb)(t)?Object(r.a)(t):t;return Object(i.vb)(e),e}function O(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function x(t,e){return e.map(e=>e(t))}function k(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function E(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return O(x(t,e))}}function T(t){return null!=t?E(k(t)):null}function A(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const n=x(t,e).map(S);return Object(o.a)(n).pipe(Object(a.a)(O))}}function j(t){return null!=t?A(k(t)):null}function R(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function I(t){return t._rawValidators}function P(t){return t._rawAsyncValidators}let D=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=T(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=j(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t}),t})(),N=(()=>{class t extends D{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return F(e||t)},t.\u0275dir=i.Mb({type:t,features:[i.Cb]}),t})();const F=i.Zb(N);class L extends D{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class M{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let V=(()=>{class t extends M{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(L,2))},t.\u0275dir=i.Mb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Jb("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.Cb]}),t})(),B=(()=>{class t extends M{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(N,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Jb("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.Cb]}),t})();function H(t,e){return[...e.path,t]}function z(t,e){W(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&X(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&X(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function U(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),q(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function W(t,e,n){const i=I(t);null!==e.validator?t.setValidators(R(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=P(t);if(null!==e.asyncValidator?t.setAsyncValidators(R(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();$(e._rawValidators,n),$(e._rawAsyncValidators,n)}}function q(t,e,n){let i=!1;if(null!==t){if(null!==e.validator){const n=I(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=P(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}if(n){const t=()=>{};$(e._rawValidators,t),$(e._rawAsyncValidators,t)}return i}function X(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function G(t,e){W(t,e,!1)}function Z(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function K(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Y(t,e){if(!e)return null;let n,i,s;return Array.isArray(e),e.forEach(t=>{t.constructor===d?n=t:Object.getPrototypeOf(t.constructor)===l?i=t:s=t}),s||i||n||null}function Q(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const J="VALID",tt="INVALID",et="PENDING",nt="DISABLED";function it(t){return(at(t)?t.validators:t)||null}function st(t){return Array.isArray(t)?T(t):t||null}function rt(t,e){return(at(e)?e.asyncValidators:t)||null}function ot(t){return Array.isArray(t)?j(t):t||null}function at(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class lt{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=st(this._rawValidators),this._composedAsyncValidatorFn=ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===J}get invalid(){return this.status===tt}get pending(){return this.status==et}get disabled(){return this.status===nt}get enabled(){return this.status!==nt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=st(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ot(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=et,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=nt,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=J,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==J&&this.status!==et||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?nt:J}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator=!0;const e=S(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof ut?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof ht&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.p,this.statusChanges=new i.p}_calculateStatus(){return this._allControlsDisabled()?nt:this.errors?tt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(tt)?tt:J}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){at(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ct extends lt{constructor(t=null,e,n){super(it(e),rt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Q(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Q(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class ut extends lt{constructor(t,e,n){super(it(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof ct?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ht extends lt{constructor(t,e,n){super(it(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ct?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const dt={provide:N,useExisting:Object(i.W)(()=>ft)},pt=(()=>Promise.resolve(null))();let ft=(()=>{class t extends N{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.p,this.form=new ut({},T(t),j(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){pt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),z(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Q(this._directives,t)})}addFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path),n=new ut({});G(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){pt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,K(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,10),i.Rb(g,10))},t.\u0275dir=i.Mb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.ec("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Eb([dt]),i.Cb]}),t})();const mt={provide:L,useExisting:Object(i.W)(()=>bt)},gt=(()=>Promise.resolve(null))();let bt=(()=>{class t extends L{constructor(t,e,n,s){super(),this.control=new ct,this._registered=!1,this.update=new i.p,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Y(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Z(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?H(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){z(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){gt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;gt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(N,9),i.Rb(m,10),i.Rb(g,10),i.Rb(c,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Eb([mt]),i.Cb,i.Db]}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yt={provide:c,useExisting:Object(i.W)(()=>vt),multi:!0};let vt=(()=>{class t extends l{constructor(t,e){super(),this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.H),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.ec("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.Eb([yt]),i.Cb]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})();const Ct=new i.t("NgModelWithFormControlWarning"),St={provide:N,useExisting:Object(i.W)(()=>Ot)};let Ot=(()=>{class t extends N{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.p,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(q(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return z(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){U(t.control||null,t,!1),Q(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,K(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(U(e||null,t),n instanceof ct&&(z(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);G(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);if(e){const n=function(t,e){return q(t,e,!1)}(e,t);n&&e.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){W(this.form,this,!1),this._oldForm&&q(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,10),i.Rb(g,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.ec("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Eb([St]),i.Cb,i.Db]}),t})();const xt={provide:L,useExisting:Object(i.W)(()=>kt)};let kt=(()=>{class t extends L{constructor(t,e,n,s,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new i.p,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Y(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Z(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return H(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(N,13),i.Rb(m,10),i.Rb(g,10),i.Rb(c,10),i.Rb(Ct,8))},t.\u0275dir=i.Mb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Eb([xt]),i.Cb,i.Db]}),t._ngModelWarningSentOnce=!1,t})();const Et={provide:m,useExisting:Object(i.W)(()=>At),multi:!0},Tt={provide:m,useExisting:Object(i.W)(()=>jt),multi:!0};let At=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?y(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Gb("required",e.required?"":null)},inputs:{required:"required"},features:[i.Eb([Et])]}),t})(),jt=(()=>{class t extends At{validate(t){return this.required?v(t):null}}return t.\u0275fac=function(e){return Rt(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Gb("required",e.required?"":null)},features:[i.Eb([Tt]),i.Cb]}),t})();const Rt=i.Zb(jt);let It=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[wt]]}),t})(),Pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[It]}),t})(),Dt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ct,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[It]}),t})(),Nt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,s=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new ut(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new ct(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new ht(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof ct||t instanceof ut||t instanceof ht?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:function(){return new t},token:t,providedIn:Dt}),t})()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("D0XW"),s=n("l7GE"),r=n("ZUHj");class o{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(r.a)(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var l=n("PqYM");function c(t,e=i.a){return n=()=>Object(l.a)(t,e),function(t){return t.lift(new o(n))};var n}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("ZUHj"),s=n("l7GE"),r=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function l(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(l((n,i)=>Object(a.a)(t(n,i)).pipe(Object(o.a)((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new c(t,n)))}class c{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.a{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");class s extends i.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"5RNC":function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return S});var i=n("ofXK"),s=n("fXoL"),r=n("FKr1"),o=n("8LU1"),a=n("FtGj"),l=n("3Pt+"),c=n("R1ws"),u=n("nLfN"),h=n("quSY"),d=n("u47x"),p=n("cH1L");const f=["sliderWrapper"],m=Object(u.f)({passive:!1}),g={provide:l.h,useExisting:Object(s.W)(()=>v),multi:!0};class b{}class _{constructor(t){this._elementRef=t}}const y=Object(r.u)(Object(r.q)(Object(r.s)(_),"accent"));let v=(()=>{class t extends y{constructor(t,e,n,i,r,o,a,l){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this._dir=i,this._ngZone=o,this._animationMode=l,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new s.p,this.input=new s.p,this.valueChange=new s.p,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=h.a.EMPTY,this._pointerDown=t=>{this.disabled||this._isSliding||!w(t)&&0!==t.button||this._ngZone.run(()=>{const e=this.value,n=C(t);this._isSliding=!0,this._lastPointerEvent=t,t.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(t),this._focusHostElement(),this._updateValueFromPosition(n),this._valueOnSlideStart=e,e!=this.value&&this._emitInputEvent()})},this._pointerMove=t=>{if(this._isSliding){t.preventDefault();const e=this.value;this._lastPointerEvent=t,this._updateValueFromPosition(C(t)),e!=this.value&&this._emitInputEvent()}},this._pointerUp=t=>{this._isSliding&&(t.preventDefault(),this._removeGlobalEvents(),this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=a,this.tabIndex=parseInt(r)||0,o.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mousedown",this._pointerDown,m),e.addEventListener("touchstart",this._pointerDown,m)})}get invert(){return this._invert}set invert(t){this._invert=Object(o.c)(t)}get max(){return this._max}set max(t){this._max=Object(o.f)(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(t){this._min=Object(o.f)(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(t){this._step=Object(o.f)(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(t){this._thumbLabel=Object(o.c)(t)}get tickInterval(){return this._tickInterval}set tickInterval(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?Object(o.f)(t,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(t){if(t!==this._value){let e=Object(o.f)(t);this._roundToDecimal&&e!==this.min&&e!==this.max&&(e=parseFloat(e.toFixed(this._roundToDecimal))),this._value=e,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(o.c)(t)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(t){this._focusHostElement(t)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const t=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${t})`}}_getTrackFillStyles(){const t=this.percent,e=this.vertical?`1, ${t}, 1`:`${t}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${e})`,display:0===t?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?`2px ${t}%`:`${t}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${t/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const t=this._shouldInvertAxis();let n;n=this.vertical?t?"Bottom":"Top":t?"Right":"Left",e[`padding${n}`]=`${this._getThumbGap()}px`}return e}_getThumbContainerStyles(){const t=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?t:!t)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const t=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?t:!t}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{this._isActive=!!t&&"keyboard"!==t,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mousedown",this._pointerDown,m),t.removeEventListener("touchstart",this._pointerDown,m),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(t){if(this.disabled||Object(a.s)(t))return;const e=this.value;switch(t.keyCode){case a.l:this._increment(10);break;case a.k:this._increment(-10);break;case a.e:this.value=this.max;break;case a.h:this.value=this.min;break;case a.i:this._increment("rtl"==this._getDirection()?1:-1);break;case a.p:this._increment(1);break;case a.m:this._increment("rtl"==this._getDirection()?-1:1);break;case a.d:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}_onKeyup(){this._isSliding=!1}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(t){const e=this._document,n=w(t),i=n?"touchend":"mouseup";e.addEventListener(n?"touchmove":"mousemove",this._pointerMove,m),e.addEventListener(i,this._pointerUp,m),n&&e.addEventListener("touchcancel",this._pointerUp,m);const s=this._getWindow();void 0!==s&&s&&s.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const t=this._document;t.removeEventListener("mousemove",this._pointerMove,m),t.removeEventListener("mouseup",this._pointerUp,m),t.removeEventListener("touchmove",this._pointerMove,m),t.removeEventListener("touchend",this._pointerUp,m),t.removeEventListener("touchcancel",this._pointerUp,m);const e=this._getWindow();void 0!==e&&e&&e.removeEventListener("blur",this._windowBlur)}_increment(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)}_updateValueFromPosition(t){if(!this._sliderDimensions)return;let e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{const t=this._calculateValue(e),n=Math.round((t-this.min)/this.step)*this.step+this.min;this.value=this._clamp(n,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(30/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(t=this.value){let e=new b;return e.source=this,e.value=t,e}_calculatePercentage(t){return((t||0)-this.min)/(this.max-this.min)}_calculateValue(t){return this.min+t*(this.max-this.min)}_clamp(t,e=0,n=1){return Math.max(e,Math.min(t,n))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(t){this._elementRef.nativeElement.focus(t)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(t){this.value=t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(d.e),s.Rb(s.i),s.Rb(p.b,8),s.cc("tabindex"),s.Rb(s.C),s.Rb(i.d),s.Rb(c.a,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-slider"]],viewQuery:function(t,e){if(1&t&&s.Gc(f,1),2&t){let t;s.pc(t=s.fc())&&(e._sliderWrapper=t.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(t,e){1&t&&s.ec("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)})("keyup",function(){return e._onKeyup()})("mouseenter",function(){return e._onMouseenter()})("selectstart",function(t){return t.preventDefault()}),2&t&&(s.ac("tabIndex",e.tabIndex),s.Gb("aria-disabled",e.disabled)("aria-valuemax",e.max)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuetext",null==e.valueText?e.displayValue:e.valueText)("aria-orientation",e.vertical?"vertical":"horizontal"),s.Jb("mat-slider-disabled",e.disabled)("mat-slider-has-ticks",e.tickInterval)("mat-slider-horizontal",!e.vertical)("mat-slider-axis-inverted",e._shouldInvertAxis())("mat-slider-invert-mouse-coords",e._shouldInvertMouseCoords())("mat-slider-sliding",e._isSliding)("mat-slider-thumb-label-showing",e.thumbLabel)("mat-slider-vertical",e.vertical)("mat-slider-min-value",e._isMinValue())("mat-slider-hide-last-tick",e.disabled||e._isMinValue()&&e._getThumbGap()&&e._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",value:"value",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",vertical:"vertical",displayWith:"displayWith",valueText:"valueText"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[s.Eb([g]),s.Cb],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(t,e){1&t&&(s.Xb(0,"div",0,1),s.Xb(2,"div",2),s.Sb(3,"div",3),s.Sb(4,"div",4),s.Wb(),s.Xb(5,"div",5),s.Sb(6,"div",6),s.Wb(),s.Xb(7,"div",7),s.Sb(8,"div",8),s.Sb(9,"div",9),s.Xb(10,"div",10),s.Xb(11,"span",11),s.Cc(12),s.Wb(),s.Wb(),s.Wb(),s.Wb()),2&t&&(s.Fb(3),s.nc("ngStyle",e._getTrackBackgroundStyles()),s.Fb(1),s.nc("ngStyle",e._getTrackFillStyles()),s.Fb(1),s.nc("ngStyle",e._getTicksContainerStyles()),s.Fb(1),s.nc("ngStyle",e._getTicksStyles()),s.Fb(1),s.nc("ngStyle",e._getThumbContainerStyles()),s.Fb(5),s.Dc(e.displayValue))},directives:[i.l],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute;-webkit-print-color-adjust:exact;color-adjust:exact}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),t})();function w(t){return"t"===t.type[0]}function C(t){const e=w(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.clientX,y:e.clientY}}let S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[i.c,r.e],r.e]}),t})()},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("HDdC");function s(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("n6bG"),s=n("gRHU"),r=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends r.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){let o;super(),this._parentSubscriber=t;let a=this;Object(i.a)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.a&&(a=Object.create(e),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8LU1":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return l}),n.d(e,"e",function(){return c}),n.d(e,"f",function(){return r});var i=n("fXoL");function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:`${t}px`}function c(t){return t instanceof i.m?t.nativeElement:t}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},AcyG:function(t,e,n){"use strict";n.d(e,"a",function(){return Vt}),n.d(e,"b",function(){return U}),n.d(e,"c",function(){return Mt}),n.d(e,"d",function(){return Ht}),n.d(e,"e",function(){return zt}),n.d(e,"f",function(){return Bt}),n.d(e,"g",function(){return Rt}),n.d(e,"h",function(){return Y});var i=n("fXoL"),s=n("jtHE");function r(t,e){return t===e}function o(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;const i=e.length;for(let s=0;s(t&&t.providers||[]).some(t=>t&&t.provide&&"MockNgModuleResolver"===t.provide.name||!1))});let c=(()=>{class t{constructor(){this.bootstrap$=new s.a(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const u=new i.t("INITIAL_STATE_TOKEN");let h=(()=>{class t{static set(t){this.value=t}static pop(){const t=this.value;return this.value={},t}}return t.value={},t})();const d=new i.t("Internals.StateContextFactory"),p=new i.t("Internals.StateFactory");var f=n("ofXK"),m=n("HDdC"),g=n("XNiG"),b=n("2Vo4"),_=n("LRne"),y=n("cp0P"),v=n("z6cu"),w=n("EY2u"),C=n("Cfvw"),S=n("pLZG"),O=n("lJxs"),x=n("UXun"),k=n("IzEk"),E=n("l7GE"),T=n("51Dv"),A=n("ZUHj");function j(t,e){return e?n=>n.pipe(j((n,i)=>Object(C.a)(t(n,i)).pipe(Object(O.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new R(t))}class R{constructor(t){this.project=t}call(t,e){return e.subscribe(new I(t,this.project))}}class I extends E.a{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e,t,n)}_innerSub(t,e,n){const i=new T.a(this,e,n),s=this.destination;s.add(i);const r=Object(A.a)(this,t,void 0,void 0,i);r!==i&&s.add(r)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t){this.destination.error(t)}notifyComplete(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var P=n("5+tZ"),D=n("xbPD"),N=n("JIr8"),F=n("1G5W"),L=n("vkgz"),M=n("/uUt");const V={STATE_NAME:t=>`${t} is not a valid state name. It needs to be a valid object property name.`,STATE_NAME_PROPERTY:()=>"States must register a 'name' property",STATE_UNIQUE:(t,e,n)=>`State name '${t}' from ${e} already exists in ${n}`,STATE_DECORATOR:()=>"States must be decorated with @State() decorator",INCORRECT_PRODUCTION:()=>"Angular is running in production mode but NGXS is still running in the development mode!\nPlease set developmentMode to false on the NgxsModule options when in production mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",INCORRECT_DEVELOPMENT:()=>"RECOMMENDATION: Set developmentMode to true on the NgxsModule when Angular is running in development mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",SELECT_FACTORY_NOT_CONNECTED:()=>"You have forgotten to import the NGXS module!",ACTION_DECORATOR:()=>"@Action() decorator cannot be used with static methods",SELECTOR_DECORATOR:()=>"Selectors only work on methods",ZONE_WARNING:()=>"Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\nPlease set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\nNgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })",PATCHING_ARRAY:()=>"Patching arrays is not supported.",PATCHING_PRIMITIVE:()=>"Patching primitives is not supported.",UNDECORATED_STATE_IN_IVY:t=>`'${t}' class should be decorated with @Injectable() right after the @State() decorator`};let B=(()=>{class t{constructor(t,e){this._ngZone=t,this._platformId=e,this.verifyZoneIsNotNooped(this._ngZone)}enter(t){return Object(f.u)(this._platformId)?this.runInsideAngular(t):this.runOutsideAngular(t)}leave(t){return this.runInsideAngular(t)}runInsideAngular(t){return i.C.isInAngularZone()?t():this._ngZone.run(t)}runOutsideAngular(t){return i.C.isInAngularZone()?this._ngZone.runOutsideAngular(t):t()}verifyZoneIsNotNooped(t){t instanceof i.C||console.warn(V.ZONE_WARNING())}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.C),i.bc(i.E))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const H=new i.t("ROOT_STATE_TOKEN"),z=new i.t("FEATURE_STATE_TOKEN"),U=new i.t("NGXS_PLUGINS"),$=new i.t("NG_TEST_MODE"),W=new i.t("NG_DEV_MODE"),q="NGXS_META",X="NGXS_SELECTOR_META";let G=(()=>{class t{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=B}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class Z{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}}const K=new i.t("NGXS_EXECUTION_STRATEGY");function Y(t){return t.constructor&&t.constructor.type?t.constructor.type:t.type}const Q=(t,e,n)=>{t=Object.assign({},t);const i=e.split("."),s=i.length-1;return i.reduce((t,e,i)=>(t[e]=i===s?n:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]),t),t},J=(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t),tt=t=>t&&"object"==typeof t&&!Array.isArray(t),et=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(tt(t)&&tt(n))for(const i in n)tt(n[i])?(t[i]||Object.assign(t,{[i]:{}}),et(t[i],n[i])):Object.assign(t,{[i]:n[i]});return et(t,...e)};function nt(t){if(!t.hasOwnProperty(q)){const e={name:null,actions:{},defaults:{},path:null,makeRootSelector:t=>t.getStateGetter(e.name),children:[]};Object.defineProperty(t,q,{value:e})}return it(t)}function it(t){return t.NGXS_META}function st(t){return t.NGXS_SELECTOR_META}function rt(t,e){return e&&e.compatibility&&e.compatibility.strictContentSecurityPolicy?function(t){const e=t.slice();return t=>e.reduce((t,e)=>t&&t[e],t)}(t):function(t){const e=t;let n="store."+e[0],i=0;const s=e.length;let r=n;for(;++i(t[Y(e)]=!0,t),{}),s=e&&function(t){return t.reduce((t,e)=>(t[e]=!0,t),{})}(e);return function(t){return t.pipe(function(t,e){return Object(S.a)(n=>{const i=Y(n.action);return t[i]&&(!e||e[n.status])})}(i,s),n())}}(t,["DISPATCHED"])}function lt(){return Object(O.a)(t=>t.action)}function ct(t){return e=>new m.a(n=>e.subscribe({next(e){t.leave(()=>n.next(e))},error(e){t.leave(()=>n.error(e))},complete(){t.leave(()=>n.complete())}}))}let ut=(()=>{class t{constructor(t){this._executionStrategy=t}enter(t){return this._executionStrategy.enter(t)}leave(t){return this._executionStrategy.leave(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(K))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class ht extends g.a{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,super.next(t);this._itemQueue.length>0;){const t=this._itemQueue.pop();super.next(t)}this._busyPushingNext=!1}}}let dt=(()=>{class t extends ht{}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const pt=i.Zb(dt);let ft=(()=>{class t extends m.a{constructor(t,e){super(n=>{const i=t.pipe(ct(e)).subscribe({next:t=>n.next(t),error:t=>n.error(t),complete:()=>n.complete()});n.add(i)})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(dt),i.bc(ut))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const mt=t=>(...e)=>t.shift()(...e,(...e)=>mt(t)(...e));let gt=(()=>{class t extends b.a{constructor(){super({})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),bt=(()=>{class t{constructor(t,e){this._parentManager=t,this._pluginHandlers=e,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const t=this.getPluginHandlers();this.rootPlugins.push(...t)}getPluginHandlers(){return(this._pluginHandlers||[]).map(t=>t.handle?t.handle.bind(t):t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(t,12),i.bc(U,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),_t=(()=>{class t extends g.a{}return t.\u0275fac=function(e){return yt(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const yt=i.Zb(_t);let vt=(()=>{class t{constructor(t,e,n,i,s,r){this._injector=t,this._actions=e,this._actionResults=n,this._pluginManager=i,this._stateStream=s,this._ngxsExecutionStrategy=r}dispatch(t){const e=this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(t));return e.subscribe({error:t=>this._ngxsExecutionStrategy.leave(()=>{try{this._errorHandler=this._errorHandler||this._injector.get(i.o),this._errorHandler.handleError(t)}catch(e){}})}),e.pipe(ct(this._ngxsExecutionStrategy))}dispatchByEvents(t){return Array.isArray(t)?0===t.length?Object(_.a)(this._stateStream.getValue()):Object(y.a)(t.map(t=>this.dispatchSingle(t))):this.dispatchSingle(t)}dispatchSingle(t){if(!Y(t)){const e=new Error(`This action doesn't have a type property: ${t.constructor.name}`);return Object(v.a)(e)}const e=this._stateStream.getValue();return mt([...this._pluginManager.plugins,(t,n)=>{t!==e&&this._stateStream.next(t);const i=this.getActionResultStream(n);return i.subscribe(t=>this._actions.next(t)),this._actions.next({action:n,status:"DISPATCHED"}),this.createDispatchObservable(i)}])(e,t).pipe(Object(x.a)())}getActionResultStream(t){return this._actionResults.pipe(Object(S.a)(e=>e.action===t&&"DISPATCHED"!==e.status),Object(k.a)(1),Object(x.a)())}createDispatchObservable(t){return t.pipe(j(t=>{switch(t.status){case"SUCCESSFUL":return Object(_.a)(this._stateStream.getValue());case"ERRORED":return Object(v.a)(t.error);default:return w.a}})).pipe(Object(x.a)())}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.u),i.bc(dt),i.bc(_t),i.bc(bt),i.bc(gt),i.bc(ut))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const wt=t=>{Object.freeze(t);const e="function"==typeof t,n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!n.call(t,i)||e&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||wt(t[i])}),t};let Ct=(()=>{class t{constructor(t,e){this.isDevMode=t,this.isTestMode=e}}return t.\u0275fac=function(e){return new(e||t)(i.bc(W),i.bc($))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),St=(()=>{class t{constructor(t,e){this._host=t,this._config=e}get isIncorrectProduction(){return!this._host.isDevMode()&&this._config.developmentMode}get isIncorrectDevelopment(){return this._host.isDevMode()&&!this._config.developmentMode}verifyDevMode(){this._host.isTestMode()||(this.isIncorrectProduction?console.warn(V.INCORRECT_PRODUCTION()):this.isIncorrectDevelopment&&console.warn(V.INCORRECT_DEVELOPMENT()))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Ct),i.bc(G))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Ot=(()=>{class t{constructor(t,e,n,i){this._stateStream=t,this._dispatcher=e,this._config=n,i.verifyDevMode()}getRootStateOperations(){const t={getState:()=>this._stateStream.getValue(),setState:t=>this._stateStream.next(t),dispatch:t=>this._dispatcher.dispatch(t)};return this._config.developmentMode?this.ensureStateAndActionsAreImmutable(t):t}ensureStateAndActionsAreImmutable(t){return{getState:()=>t.getState(),setState:e=>{const n=wt(e);return t.setState(n)},dispatch:e=>t.dispatch(e)}}setStateToTheCurrentWithNew(t){const e=this.getRootStateOperations(),n=e.getState();e.setState(Object.assign({},n,t.defaults))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(gt),i.bc(vt),i.bc(G),i.bc(St))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),xt=(()=>{class t{constructor(t){this._internalStateOperations=t}createStateContext(t){const e=this._internalStateOperations.getRootStateOperations();function n(e){return J(e,t.path)}function i(n,i){const s=Q(n,t.path,i),r=t.instance;if(r.ngxsOnChanges){const e=ot(t,{currentAppState:n,newAppState:s});r.ngxsOnChanges(e)}return e.setState(s),s}function s(t,e){return i(t,e(n(t)))}return{getState:()=>n(e.getState()),patchState(t){const n=e.getState(),i=function(t){return e=>{if(Array.isArray(t))throw new Error(V.PATCHING_ARRAY());if("object"!=typeof t)throw new Error(V.PATCHING_PRIMITIVE());const n=Object.assign({},e);for(const i in t)n[i]=t[i];return n}}(t);return s(n,i)},setState(t){const n=e.getState();return"function"==typeof t?s(n,t):i(n,t)},dispatch:t=>e.dispatch(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Ot))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),kt=(()=>{class t{static stateNameErrorMessage(t){return V.STATE_NAME(t)}static checkCorrectStateName(t){if(!t)throw new Error(V.STATE_NAME_PROPERTY());if(!this.stateNameRegex.test(t))throw new Error(this.stateNameErrorMessage(t))}static checkStateNameIsUnique(t,e){const n=this.getValidStateMeta(t).name,i=e[n];if(i&&i!==t)throw new Error(V.STATE_UNIQUE(n,t.name,i.name));return n}static getValidStateMeta(t){const e=it(t);if(!e)throw new Error(V.STATE_DECORATOR());return e}}return t.stateNameRegex=new RegExp("^[a-zA-Z0-9_]+$"),t})(),Et=(()=>{class t{constructor(t,e,n,i,s,r,o){this._injector=t,this._config=e,this._parentFactory=n,this._actions=i,this._actionResults=s,this._stateContextFactory=r,this._initialState=o,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=a(()=>{const t=this;function e(e){const n=t.statePaths[e];return n?rt(n.split("."),t._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(t){let n=e(t);return n||((...i)=>(n||(n=e(t)),n?n(...i):void 0))},getSelectorOptions:e=>Object.assign({},t._config.selectorOptions,e||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(t){let e={};var n;return e=Array.isArray(t)?t.slice():"object"==typeof(n=t)&&null!==n||"function"==typeof n?Object.assign({},t):void 0===t?{}:t,e}static checkStatesAreValid(t){t.forEach(kt.getValidStateMeta)}ngOnDestroy(){this._actionsSubscription.unsubscribe()}add(e){t.checkStatesAreValid(e);const{newStates:n}=this.addToStatesMap(e);if(!n.length)return[];const i=function(t){const e=e=>{const n=t.find(t=>t===e);if(!n)throw new Error(`Child state not found: ${e}. \r\nYou may have forgotten to add states to module`);return n.NGXS_META.name};return t.reduce((t,n)=>{const{name:i,children:s}=n.NGXS_META;return t[i]=(s||[]).map(e),t},{})}(n),s=function(t){const e=[],n={},i=(s,r=[])=>{Array.isArray(r)||(r=[]),r.push(s),n[s]=!0,t[s].forEach(t=>{if(r.indexOf(t)>=0)throw new Error(`Circular dependency '${t}' is required by '${s}': ${r.join(" -> ")}`);n[t]||i(t,r.slice(0))}),e.indexOf(s)<0&&e.push(s)};return Object.keys(t).forEach(t=>i(t)),e.reverse()}(i),r=function(t,e={}){const n=(t,e)=>{for(const i in t)if(t.hasOwnProperty(i)&&t[i].indexOf(e)>=0){const e=n(t,i);return null!==e?`${e}.${i}`:i}return null};for(const i in t)if(t.hasOwnProperty(i)){const s=n(t,i);e[i]=s?`${s}.${i}`:i}return e}(i),o=n.reduce((t,e)=>(t[e.NGXS_META.name]=e,t),{}),a=[];for(const l of s){const e=o[l],n=r[l],i=e.NGXS_META;this.addRuntimeInfoToMeta(i,n);const s={name:l,path:n,isInitialised:!1,actions:i.actions,instance:this._injector.get(e),defaults:t.cloneDefaults(i.defaults)};this.hasBeenMountedAndBootstrapped(l,n)||a.push(s),this.states.push(s)}return a}addAndReturnDefaults(t){const e=this.add(t||[]);return{defaults:e.reduce((t,e)=>Q(t,e.path,e.defaults),{}),states:e}}connectActionHandlers(){null===this._actionsSubscription&&(this._actionsSubscription=this._actions.pipe(Object(S.a)(t=>"DISPATCHED"===t.status),Object(P.a)(({action:t})=>this.invokeActions(this._actions,t).pipe(Object(O.a)(()=>({action:t,status:"SUCCESSFUL"})),Object(D.a)({action:t,status:"CANCELED"}),Object(N.a)(e=>Object(_.a)({action:t,status:"ERRORED",error:e}))))).subscribe(t=>this._actionResults.next(t)))}invokeActions(t,e){const n=Y(e),i=[];for(const r of this.states){const o=r.actions[n];if(o)for(const n of o){const o=this._stateContextFactory.createStateContext(r);try{let s=r.instance[n.fn](o,e);s instanceof Promise&&(s=Object(C.a)(s)),s instanceof m.a?(s=s.pipe(Object(D.a)({})),n.options.cancelUncompleted&&(s=s.pipe(Object(F.a)(t.pipe(at(e)))))):s=Object(_.a)({}).pipe(Object(x.a)()),i.push(s)}catch(s){i.push(Object(v.a)(s))}}}return i.length||i.push(Object(_.a)({})),Object(y.a)(i)}addToStatesMap(t){const e=[],n=this.statesByName;for(const i of t){const t=kt.checkStateNameIsUnique(i,n);!n[t]&&(e.push(i),n[t]=i)}return{newStates:e}}addRuntimeInfoToMeta(t,e){this.statePaths[t.name]=e,t.path=e}hasBeenMountedAndBootstrapped(t,e){const n=void 0!==J(this._initialState,e);return this.statesByName[t]&&n}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.u),i.bc(G),i.bc(t,12),i.bc(dt),i.bc(_t),i.bc(xt),i.bc(u,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Tt=(()=>{class t{constructor(t,e,n){this.internalStateOperations=t,this.stateContextFactory=e,this.bootstrapper=n}ngxsBootstrap(t,e){this.internalStateOperations.getRootStateOperations().dispatch(t).pipe(Object(S.a)(()=>!!e),Object(L.a)(()=>this.invokeInit(e.states)),Object(P.a)(()=>this.bootstrapper.appBootstrapped$),Object(S.a)(t=>!!t)).subscribe(()=>this.invokeBootstrap(e.states))}invokeInit(t){for(const e of t){const t=e.instance;if(t.ngxsOnChanges){const n=ot(e,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});t.ngxsOnChanges(n)}t.ngxsOnInit&&t.ngxsOnInit(this.getStateContext(e)),e.isInitialised=!0}}invokeBootstrap(t){for(const e of t){const t=e.instance;t.ngxsAfterBootstrap&&t.ngxsAfterBootstrap(this.getStateContext(e))}}getStateContext(t){return this.stateContextFactory.createStateContext(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Ot),i.bc(xt),i.bc(c))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const At=t=>t&&t.NGXS_SELECTOR_OPTIONS_META||{};function jt(t){const e=st(t)||it(t);return e&&e.makeRootSelector||(()=>t)}let Rt=(()=>{class t{constructor(t,e,n,i,s,r){this._stateStream=t,this._internalStateOperations=e,this._config=n,this._internalExecutionStrategy=i,this._stateFactory=s,this.initStateStream(r)}dispatch(t){return this._internalStateOperations.getRootStateOperations().dispatch(t)}select(t){const e=this.getStoreBoundSelectorFn(t);return this._stateStream.pipe(Object(O.a)(e),Object(N.a)(t=>{const{suppressErrors:e}=this._config.selectorOptions;return t instanceof TypeError&&e?Object(_.a)(void 0):Object(v.a)(t)}),Object(M.a)(),ct(this._internalExecutionStrategy))}selectOnce(t){return this.select(t).pipe(Object(k.a)(1))}selectSnapshot(t){return this.getStoreBoundSelectorFn(t)(this._stateStream.getValue())}subscribe(t){return this._stateStream.pipe(ct(this._internalExecutionStrategy)).subscribe(t)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(t){return this._internalStateOperations.getRootStateOperations().setState(t)}getStoreBoundSelectorFn(t){return jt(t)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(t){const e=this._stateStream.value;if(!e||0===Object.keys(e).length){const e=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,t):t;this._stateStream.next(e)}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(gt),i.bc(Ot),i.bc(G),i.bc(ut),i.bc(Et),i.bc(u,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),It=(()=>{class t{constructor(e,n){t.store=e,t.config=n}ngOnDestroy(){t.store=null,t.config=null}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Rt),i.bc(G))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t.store=null,t.config=null,t})();class Pt{static get type(){return"@@INIT"}}class Dt{constructor(t){this.addedStates=t}static get type(){return"@@UPDATE_STATE"}}const Nt=new s.a(1);let Ft=(()=>{class t{constructor(t,e,n,s,r=[],o){!function(){try{const t=window.ng,e=!(t.probe&&t.coreTokens)&&Object(i.Z)();Nt.next(e)}catch(t){Nt.next(!1)}finally{Nt.complete()}}();const a=t.addAndReturnDefaults(r);e.setStateToTheCurrentWithNew(a),t.connectActionHandlers(),o.ngxsBootstrap(new Pt,a)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Et),i.bc(Ot),i.bc(Rt),i.bc(It),i.bc(H,8),i.bc(Tt))},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})(),Lt=(()=>{class t{constructor(e,n,i,s=[],r){const o=t.flattenStates(s),a=i.addAndReturnDefaults(o);a.states.length&&(n.setStateToTheCurrentWithNew(a),r.ngxsBootstrap(new Dt(a.defaults),a))}static flattenStates(t=[]){return t.reduce((t,e)=>t.concat(e),[])}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Rt),i.bc(Ot),i.bc(Et),i.bc(z,8),i.bc(Tt))},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})(),Mt=(()=>{class t{static forRoot(e=[],n={}){return{ngModule:Ft,providers:[Et,xt,ft,dt,c,St,Ct,Tt,vt,_t,Ot,ut,Rt,gt,It,bt,...e,...t.ngxsTokenProviders(e,n)]}}static forFeature(t=[]){return{ngModule:Lt,providers:[Et,bt,...t,{provide:z,multi:!0,useValue:t}]}}static ngxsTokenProviders(e,n){return[{provide:$,useValue:l},{provide:W,useValue:i.Z},{provide:K,useClass:n.executionStrategy||B},{provide:H,useValue:e},{provide:t.ROOT_OPTIONS,useValue:n},{provide:G,useFactory:t.ngxsConfigFactory,deps:[t.ROOT_OPTIONS]},{provide:i.b,useFactory:t.appBootstrapListenerFactory,multi:!0,deps:[c]},{provide:u,useFactory:t.getInitialState},{provide:d,useExisting:xt},{provide:p,useExisting:Et}]}static ngxsConfigFactory(t){return et(new G,t)}static appBootstrapListenerFactory(t){return()=>t.bootstrap()}static getInitialState(){return h.pop()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t.ROOT_OPTIONS=new i.t("ROOT_OPTIONS"),t})();function Vt(t,e){return(n,i)=>{if(n.hasOwnProperty("prototype"))throw new Error(V.ACTION_DECORATOR());const s=nt(n.constructor);Array.isArray(t)||(t=[t]);for(const r of t){const t=r.type;s.actions[t]||(s.actions[t]=[]),s.actions[t].push({fn:i,options:e||{},type:t})}}}function Bt(t){return e=>{!function(t){Nt.subscribe(e=>{e&&(t.\u0275prov||console.warn(V.UNDECORATED_STATE_IN_IVY(t.name)))})}(e);const n=e,i=nt(n),s=Object.getPrototypeOf(n),r=function(e){return Object.assign({},e.NGXS_OPTIONS_META||{},t)}(s);!function(t){const{meta:e,inheritedStateClass:n,optionsWithInheritance:i}=t,{children:s,defaults:r,name:o}=i,a="string"==typeof o?o:o&&o.getName()||null;kt.checkCorrectStateName(a),n.hasOwnProperty(q)&&(e.actions=Object.assign({},e.actions,(n.NGXS_META||{}).actions)),e.children=s,e.defaults=r,e.name=a}({meta:i,inheritedStateClass:s,optionsWithInheritance:r}),n.NGXS_OPTIONS_META=r}}function Ht(t,...e){return function(n,i){const s=i.toString(),r=`__${s}__selector`,o=function(t,e,n=[]){return e=e||function(t){const e=t.length-1;return 36===t.charCodeAt(e)?t.slice(0,e):t}(t),"string"==typeof e?rt(n.length?[e,...n]:e.split("."),It.config):e}(s,t,e);Object.defineProperties(n,{[r]:{writable:!0,enumerable:!1,configurable:!0},[s]:{enumerable:!0,configurable:!0,get(){return this[r]||(this[r]=function(t){if(!It.store)throw new Error(V.SELECT_FACTORY_NOT_CONNECTED());return It.store.select(t)}(o))}}})}}function zt(t){return(e,n,i)=>{if(!i||null===i.value)throw new Error(V.SELECTOR_DECORATOR());const s=i.value,r=function(t,e,n){const i=n&&n.containerClass,s=a(function(...t){const n=e.apply(i,t);return n instanceof Function?a.apply(null,[n]):n});Object.setPrototypeOf(s,e);const r=function(t,e){const n=((i=t).hasOwnProperty(X)||Object.defineProperty(i,X,{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:()=>({})}}),st(i));var i;n.originalFn=t;let s=()=>({});e&&(n.containerClass=e.containerClass,n.selectorName=e.selectorName,s=e.getSelectorOptions||s);const r=Object.assign({},n);return n.getSelectorOptions=()=>function(t,e){return Object.assign({},At(t.containerClass)||{},At(t.originalFn)||{},t.getSelectorOptions()||{},e)}(r,s()),n}(e,n);return r.makeRootSelector=e=>{const{argumentSelectorFunctions:n,selectorOptions:i}=function(t,e,n=[]){const i=e.getSelectorOptions(),s=t.getSelectorOptions(i),r=function(t=[],e,n){const i=[];return n&&(0===t.length||e.injectContainerState)&&it(n)&&i.push(n),t&&i.push(...t),i}(n,s,e.containerClass).map(e=>jt(e)(t));return{selectorOptions:s,argumentSelectorFunctions:r}}(e,r,t);return function(t){const e=n.map(e=>e(t));try{return s(...e)}catch(r){if(r instanceof TypeError&&i.suppressErrors)return;throw r}}},s}(t,s,{containerClass:e,selectorName:n.toString(),getSelectorOptions:()=>({})}),o={configurable:!0,get:()=>r};return o.originalFn=s,o}}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("HDdC"),s=n("SeVD"),r=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>{const s=t[o.a]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(c.a)(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new r.a;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.a](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(s.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("3N8a");const s=new(n("IjjT").a)(i.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EQ5u:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l});var i=n("XNiG"),s=n("HDdC"),r=(n("7o/Q"),n("quSY")),o=n("x+ZX");class a extends s.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.a,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.a.EMPTY)),t}refCount(){return Object(o.a)()(this)}}const l=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class c extends i.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var i=n("HDdC");const s=new i.a(t=>t.complete());function r(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):s}},FKr1:function(t,e,n){"use strict";n.d(e,"a",function(){return k}),n.d(e,"b",function(){return X}),n.d(e,"c",function(){return z}),n.d(e,"d",function(){return L}),n.d(e,"e",function(){return v}),n.d(e,"f",function(){return E}),n.d(e,"g",function(){return j}),n.d(e,"h",function(){return Y}),n.d(e,"i",function(){return tt}),n.d(e,"j",function(){return B}),n.d(e,"k",function(){return H}),n.d(e,"l",function(){return M}),n.d(e,"m",function(){return V}),n.d(e,"n",function(){return F}),n.d(e,"o",function(){return Q}),n.d(e,"p",function(){return J}),n.d(e,"q",function(){return C}),n.d(e,"r",function(){return S}),n.d(e,"s",function(){return w}),n.d(e,"t",function(){return x}),n.d(e,"u",function(){return O}),n.d(e,"v",function(){return T});var i=n("fXoL"),s=n("u47x"),r=n("cH1L");const o=new i.R("11.2.13");var a=n("ofXK"),l=n("8LU1"),c=n("XNiG"),u=(n("HDdC"),n("nLfN")),h=n("JX91"),d=n("R1ws"),p=n("FtGj");function f(t,e){if(1&t&&i.Sb(0,"mat-pseudo-checkbox",4),2&t){const t=i.ic();i.nc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(i.Xb(0,"span",5),i.Cc(1),i.Wb()),2&t){const t=i.ic();i.Fb(1),i.Ec("(",t.group.label,")")}}const g=["*"],b=new i.R("11.2.13"),_=new i.t("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,v=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(i.Z)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&b.full!==o.full&&console.warn("The Angular Material version ("+b.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.bc(s.g),i.bc(_,8),i.bc(a.d))},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[r.a],r.a]}),t})();function w(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(l.c)(t)}}}function O(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(l.f)(t):this.defaultTabIndex}}}function x(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch(et){y=!1}let k=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function T(t,e,n="mat"){t.changes.pipe(Object(h.a)(t)).subscribe(({length:t})=>{A(e,`${n}-2-line`,!1),A(e,`${n}-3-line`,!1),A(e,`${n}-multi-line`,!1),2===t||3===t?A(e,`${n}-${t}-line`,!0):t>3&&A(e,`${n}-multi-line`,!0)})}function A(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[v],v]}),t})();class R{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const I={enterDuration:450,exitDuration:400},P=Object(u.f)({passive:!0}),D=["mousedown","touchstart"],N=["mouseup","mouseleave","touchend","touchcancel"];class F{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(l.e)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},I),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new R(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},I),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Object(l.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(D))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(N),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(s.i)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,P)})})}_removeTriggerEvents(){this._triggerElement&&(D.forEach(t=>{this._triggerElement.removeEventListener(t,this,P)}),this._pointerUpEventsRegistered&&N.forEach(t=>{this._triggerElement.removeEventListener(t,this,P)}))}}const L=new i.t("mat-ripple-global-options");let M=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new F(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.C),i.Rb(u.a),i.Rb(L,8),i.Rb(d.a,8))},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Jb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[v,u.b],v]}),t})(),B=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(d.a,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Jb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[v]]}),t})();const z=new i.t("MAT_OPTION_PARENT_COMPONENT");class U{}const $=w(U);let W=0,q=(()=>{class t extends ${constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+W++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(z,8))},t.\u0275dir=i.Mb({type:t,inputs:{label:"label"},features:[i.Cb]}),t})();const X=new i.t("MatOptgroup");let G=0;class Z{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let K=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+G++,this.onSelectionChange=new i.p,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.f&&t.keyCode!==p.n||Object(p.s)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Z(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.i),i.Rb(void 0),i.Rb(q))},t.\u0275dir=i.Mb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Y=(()=>{class t extends K{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.i),i.Rb(z,8),i.Rb(X,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.ec("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.ac("id",e.id),i.Gb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Jb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.Cb],ngContentSelectors:g,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.mc(),i.Ac(0,f,1,2,"mat-pseudo-checkbox",0),i.Xb(1,"span",1),i.lc(2),i.Wb(),i.Ac(3,m,2,1,"span",2),i.Sb(4,"div",3)),2&t&&(i.nc("ngIf",e.multiple),i.Fb(3),i.nc("ngIf",e.group&&e.group._inert),i.Fb(1),i.nc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.k,M,B],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Q(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[V,a.c,v,H]]}),t})()},FtGj:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return g}),n.d(e,"d",function(){return m}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return r}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return h}),n.d(e,"i",function(){return d}),n.d(e,"j",function(){return _}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return l}),n.d(e,"m",function(){return f}),n.d(e,"n",function(){return a}),n.d(e,"o",function(){return s}),n.d(e,"p",function(){return p}),n.d(e,"q",function(){return v}),n.d(e,"r",function(){return b}),n.d(e,"s",function(){return w});const i=8,s=9,r=13,o=27,a=32,l=33,c=34,u=35,h=36,d=37,p=38,f=39,m=40,g=46,b=48,_=57,y=65,v=90;function w(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GFHR:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("fXoL");let s=(()=>{class t{transform(t){const e=Math.floor(t/60);return e.toString().padStart(2,"0")+":"+Math.floor(t-60*e).toString().padStart(2,"0")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Qb({name:"minuteSeconds",type:t,pure:!0}),t})()},GU7r:function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return h});var i=n("8LU1"),s=n("fXoL"),r=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Nb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(i.e)(t);return new r.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(l))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.p,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(i.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(c),s.Rb(s.m),s.Rb(s.C))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({providers:[l]}),t})()},GyhO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("LRne"),s=n("bHdf");function r(...t){return Object(s.a)(1)(Object(i.a)(...t))}},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("7o/Q"),s=n("2QA8"),r=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),l=n("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new i.a(t,e,n):new i.a(r.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";n.d(e,"a",function(){return s});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q"),s=n("4I5i"),r=n("EY2u");function o(t){return e=>0===t?Object(r.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("l7GE"),s=n("51Dv"),r=n("ZUHj");function o(t){return function(e){const n=new a(t),i=e.lift(n);return n.caught=i}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new l(t,this.selector,this.caught))}}class l extends i.a{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new s.a(this,void 0,void 0);this.add(i);const o=Object(r.a)(this,n,void 0,void 0,i);o!==i&&this.add(o)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("GyhO"),s=n("z+Ro");function r(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q"),s=n("D0XW");function r(t,e=s.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("z+Ro"),s=n("yCtX"),r=n("jZKg");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(r.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return s});const s=i()},NFeN:function(t,e,n){"use strict";n.d(e,"a",function(){return P}),n.d(e,"b",function(){return D});var i=n("fXoL"),s=n("FKr1"),r=n("8LU1"),o=n("ofXK"),a=n("LRne"),l=n("z6cu"),c=n("cp0P"),u=n("quSY"),h=n("vkgz"),d=n("lJxs"),p=n("JIr8"),f=n("nYR2"),m=n("w1tV"),g=n("IzEk"),b=n("tk/3"),_=n("jhN1");const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function C(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class S{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let O=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new S(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,s){const r=this._sanitizer.sanitize(i.L.HTML,n);if(!r)throw C(n);return this._addSvgIconConfig(t,e,new S("",r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new S(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(i.L.HTML,e);if(!s)throw C(e);return this._addSvgIconSetConfig(t,new S("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.L.RESOURCE_URL,t);if(!e)throw w(t);const n=this._cachedIconsByUrl.get(e);return n?Object(a.a)(x(n)):this._loadSvgIconFromConfig(new S(t,null)).pipe(Object(h.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>x(t)))}getNamedSvgIcon(t,e=""){const n=k(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Object(l.a)(v(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(a.a)(x(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(d.a)(t=>x(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return Object(a.a)(n);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const n=this._sanitizer.sanitize(i.L.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Object(a.a)(null)})));return Object(c.a)(s).pipe(Object(d.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw v(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(h.a)(e=>t.svgText=e),Object(d.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(a.a)(null):this._fetchIcon(t).pipe(Object(h.a)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(o)),Object(m.a)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(k(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let i=0;ie?e.pathname+e.search:""}}}),j=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],R=j.map(t=>`[${t}]`).join(", "),I=/^url\(['"]?#(.*?)['"]?\)$/;let P=(()=>{class t extends T{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(r.c)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(R),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(I):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Object(g.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(O),i.cc("aria-hidden"),i.Rb(A),i.Rb(i.o))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Gb("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),i.Jb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.Cb],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(i.mc(),i.lc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[s.e],s.e]}),t})()},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return i})},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),s=n("Cfvw"),r=n("EY2u");function o(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(s.a)(n):Object(r.b)()).subscribe(e)})}},PCNd:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("ofXK"),s=n("fXoL");let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[i.c]]}),t})()},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("HDdC"),s=n("D0XW"),r=n("DH7j");function o(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}var a=n("z+Ro");function l(t=0,e,n){let r=-1;return o(e)?r=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=s.a),new i.a(e=>{const i=o(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:r,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return g}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return p}),n.d(e,"g",function(){return h}),n.d(e,"h",function(){return f}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return u}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return d}),n.d(e,"m",function(){return o}),n.d(e,"n",function(){return b}),n.d(e,"o",function(){return _});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function f(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",function(){return Re}),n.d(e,"b",function(){return Pe});var i=n("fXoL"),s=n("jhN1"),r=n("R0Ic");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new r.d;case 1:return t[0];default:return new r.n(t)}}function l(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.o:l=s[n];break;case r.a:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&u(n,"start",t)));break;case"done":t.onDone(()=>i(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&u(n,"destroy",t)))}}function u(t,e,n){const i=n.totalTime,s=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function h(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,g=(t,e,n)=>[];const b=o();(b||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),m=(()=>{if(b||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):m}})(),g=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let x=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.d(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new x,t})();const E="ng-enter",T="ng-leave",A="ng-trigger",j=".ng-trigger",R="ng-animating",I=".ng-animating";function P(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:D(parseFloat(e[1]),e[2])}function D(t,e){return"s"===e?1e3*t:t}function N(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=D(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=D(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function F(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function L(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else F(t,n);return n}function M(t,e,n){return n?e+":"+n+";":""}function V(t){let e="";for(let n=0;n{const s=G(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),o()&&V(t))}function H(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=G(e);t.style[n]=""}),o()&&V(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:Object(r.i)(t):t}const U=new RegExp("{{\\s*(.+?)\\s*}}","g");function $(t){let e=[];if("string"==typeof t){let n;for(;n=U.exec(t);)e.push(n[1]);U.lastIndex=0}return e}function W(t,e,n){const i=t.toString(),s=i.replace(U,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function q(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const X=/-+([a-z0-9])/g;function G(t){return t.replace(X,(...t)=>t[1].toUpperCase())}function Z(t,e){return 0===t||0===e}function K(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(it(s,o)),"<"!=r[0]||s==J&&o==J||e.push(it(o,s))}(t,n,e)):n.push(t),n}const et=new Set(["true","1"]),nt=new Set(["false","0"]);function it(t,e){const n=et.has(t)||nt.has(t),i=et.has(e)||nt.has(e);return(s,r)=>{let o=t==J||t==s,a=e==J||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?et.has(t):nt.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?et.has(e):nt.has(e)),o&&a}}const st=new RegExp("s*:selfs*,?","g");function rt(t,e,n){return new ot(t).build(e,n)}class ot{constructor(t){this._driver=t}build(t,e){const n=new at(e);return this._resetContextStyleTimingState(n),Y(this,z(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(lt(t)){const e=t;Object.keys(e).forEach(t=>{$(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=q(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Y(this,z(t.animation),e);return{type:1,matchers:tt(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ct(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Y(this,t,e)),options:ct(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Y(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ct(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ut(N(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ut(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||N(i,e),ut(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Object(r.k)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=Object(r.k)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(lt(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=$(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(lt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Y(this,z(t.animation),e),options:ct(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ct(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ct(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(st,"")),[t=t.replace(/@\*/g,j).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,I),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,d(e.collectedStyles,e.currentQuerySelector,{});const o=Y(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ct(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:N(t.timings,e.errors,!0);return{type:12,animation:Y(this,z(t.animation),e),timings:n,options:null}}}class at{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function lt(t){return!Array.isArray(t)&&"object"==typeof t}function ct(t){var e;return t?(t=F(t)).params&&(t.params=(e=t.params)?F(e):null):t={},t}function ut(t,e,n){return{duration:t,delay:e,easing:n}}function ht(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class dt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const pt=new RegExp(":enter","g"),ft=new RegExp(":leave","g");function mt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new gt).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class gt{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new dt;const u=new _t(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),Y(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[ht(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?P(n.duration):null,r=null!=n.delay?P(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=bt);const t=P(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Y(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?P(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Y(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return N(e.params?W(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?P(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Y(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Y(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const bt={};class _t{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new yt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=P(n.duration)),null!=n.delay&&(i.delay=P(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=W(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new _t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new vt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(pt,"."+this._enterClassName)).replace(ft,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class yt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new yt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.a,this._currentKeyframe[t]=r.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.a})):L(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=W(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=L(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.o?t.add(n):i==r.a&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?q(t.values()):[],o=e.size?q(e.values()):[];if(n){const t=i[0],e=F(t);t.offset=0,e.offset=1,i=[t,e]}return ht(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class vt extends yt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=L(t[0],!1);a.offset=0,s.push(a);const l=L(t[0],!1);l.offset=wt(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=L(t[i],!1);o.offset=wt((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return ht(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function wt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ct{}class St extends Ct{normalizePropertyName(t,e){return G(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Ot[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Ot=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function xt(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const kt={};class Et{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||kt,p=this.buildStyles(n,o&&o.params||kt,u),f=a&&a.params||kt,m=this.buildStyles(i,f,u),g=new Set,b=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:mt(t,e,this.ast.animation,s,r,p,m,v,l,u);let C=0;if(w.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return xt(e,this._triggerName,n,i,y,p,m,[],[],b,_,C,u);w.forEach(t=>{const n=t.element,i=d(b,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=d(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const S=q(g.values());return xt(e,this._triggerName,n,i,y,p,m,w,S,b,_,C)}}class Tt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=F(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=W(r,i,e)),n[t]=r})}}),n}}class At{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Tt(t.style,t.options&&t.options.params||{})}),jt(this.states,"true","1"),jt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Et(t,e,this.states))}),this.fallbackTransition=new Et(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function jt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Rt=new dt;class It{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=rt(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=l(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const l=new Map;if(s?(o=mt(this._driver,e,s,E,T,{},{},n,Rt,i),o.forEach(t=>{const e=d(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);l.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.a)})});const c=a(o.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=h(e,"","","");return c(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Pt="ng-animate-queued",Dt="ng-animate-disabled",Nt=".ng-animate-disabled",Ft=[],Lt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Vt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=F(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Bt="void",Ht=new Vt(Bt);class zt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Zt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Zt(t,A),Zt(t,"ng-trigger-"+e),a[e]=Ht),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new $t(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Zt(t,A),Zt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Vt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Ht),l.value!==Bt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{H(t,n),B(t,i)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Zt(t,Pt),r.onStart(()=>{Kt(t,Pt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,j,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Bt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Ht,a=new Vt(Bt),l=new $t(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Lt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Zt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=h(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,c(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Ut{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new zt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zt(t,Dt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kt(t,Dt))}removeNode(t,e,n,i){if(Wt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Wt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,j,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,I,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Lt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Nt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Nt,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new dt,i=[],s=new Map,o=[],l=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=E+b++;g.set(e,n),t.forEach(t=>Zt(t,n))});const _=[],y=new Set,v=new Set;for(let r=0;ry.add(t)):v.add(t))}const w=new Map,C=Gt(f,Array.from(y));C.forEach((t,e)=>{const n=T+b++;w.set(e,n),t.forEach(t=>Zt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Kt(t,n))}),C.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Kt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const S=[],O=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(S.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const r=!p||!this.driver.containsElement(p,s),a=w.get(s),h=g.get(s),f=this._buildInstruction(t,n,h,a,r);if(f.errors&&f.errors.length)O.push(f);else{if(r)return e.onStart(()=>H(s,f.fromStyles)),e.onDestroy(()=>B(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>H(s,f.fromStyles)),e.onDestroy(()=>B(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>d(l,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(O.length){const t=[];O.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),S.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,k=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(x,e,[]).push(t),t.destroy()})});const A=_.filter(t=>Jt(t,c,u)),j=new Map;Xt(j,this.driver,v,u,r.a).forEach(t=>{Jt(t,c,u)&&A.push(t)});const R=new Map;m.forEach((t,e)=>{Xt(R,this.driver,new Set(t),c,r.o)}),A.forEach(t=>{const e=j.get(t),n=R.get(t);j.set(t,Object.assign(Object.assign({},e),n))});const P=[],D=[],N={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>B(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=N;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,x,s,R,j);if(r.setRealPlayer(n),t===N)P.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=a(e)),i.push(r)}}else H(e,o.fromStyles),r.onDestroy(()=>B(e,o.toStyles)),D.push(r),h.has(e)&&i.push(r)}),D.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r<_.length;r++){const t=_[r],e=t.__ng_removed;if(Kt(t,T),e&&e.hasAnimation)continue;let n=[];if(l.size){let e=l.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,I,!0);for(let t=0;t!t.destroyed);i.length?Yt(this,t,i):this.processLeaveNode(t)}return _.length=0,P.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),P}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Bt;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=d(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}H(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const c=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,m=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new r.d(e.duration,e.delay);const m=a!==u,g=function(t){const e=[];return Qt(t,e),e}((n.get(a)||Ft).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),b=s.get(a),_=o.get(a),y=l(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,g);if(e.subTimeline&&i&&f.add(a),m){const e=new $t(t,c,a);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Zt(t,R));const g=a(m);return g.onDestroy(()=>{p.forEach(t=>Kt(t,R)),B(u,e.toStyles)}),f.forEach(t=>{d(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.d(t.duration,t.delay)}}class $t{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>c(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Wt(t){return t&&1===t.nodeType}function qt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Xt(t,e,n,i,s){const r=[];n.forEach(t=>r.push(qt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=Mt,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>qt(t,r[a++])),o}function Gt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Zt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Kt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Yt(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Qt(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class te{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ut(t,e,n),this._timelineEngine=new It(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=rt(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new At(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=p(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ee(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=ie(e[0]),e.length>1&&(i=ie(e[e.length-1]))):e&&(n=ie(e)),n||i?new ne(t,n,i):null}let ne=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(H(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ie(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=pe(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),he(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=pe(t,"").split(","),i=ue(n,e);i>=0&&(n.splice(i,1),de(t,"",n.join(",")))}(this._element,this._name))}}function le(t,e,n){de(t,"PlayState",n,ce(t,e))}function ce(t,e){const n=pe(t,"");return n.indexOf(",")>0?ue(n.split(","),e):ue([n],e)}function ue(t,e){for(let n=0;n=0)return n;return-1}function he(t,e,n){n?t.removeEventListener(oe,e):t.addEventListener(oe,e)}function de(t,e,n,i){const s=re+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function pe(t,e){return t.style[re+e]||""}class fe{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ae(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Q(this.element,n))})}this.currentSnapshot=t}}class me extends r.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=O(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ge{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>O(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof fe),l={};Z(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=K(t,e,l));if(0==n)return new me(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=ee(t,e),p=new fe(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class be{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _e{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof be);Z(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=ee(t,e=K(t,e=e.map(t=>L(t,!1)),l));return new be(t,e,a,u)}}function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=n("ofXK");let we=(()=>{class t extends r.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.T.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(r.i)(t):t;return Oe(this._renderer,null,e,"register",[n]),new Ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.I),i.bc(ve.d))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class Ce extends r.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Se(this._id,t,e||{},this._renderer)}}class Se{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Oe(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Oe(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const xe="@",ke="@.disabled";let Ee=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Te("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Ae(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.I),i.bc(te),i.bc(i.C))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class Te{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==xe&&e==ke?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ae extends Te{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==xe?"."==e.charAt(1)&&e==ke?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==xe){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=xe&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let je=(()=>{class t extends te{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(ve.d),i.bc(k),i.bc(Ct))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const Re=new i.t("AnimationModuleType"),Ie=[{provide:k,useFactory:function(){return"function"==typeof ye()?new _e:new ge}},{provide:Re,useValue:"BrowserAnimations"},{provide:r.b,useClass:we},{provide:Ct,useFactory:function(){return new St}},{provide:te,useClass:je},{provide:i.I,useFactory:function(t,e,n){return new Ee(t,e,n)},deps:[s.d,te,i.C]}];let Pe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({providers:Ie,imports:[s.a]}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("ngJS"),s=n("NJ4a"),r=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(i.a)(t);if(Object(l.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[r.a])return e=t,t=>{const n=e[r.a]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(c.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",function(){return i})},UXun:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("jtHE");function s(t,e,n){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:s}){let r,o,a=0,l=!1,c=!1;return function(u){a++,r&&!l||(l=!1,r=new i.a(t,e,s),o=u.subscribe({next(t){r.next(t)},error(t){l=!0,r.error(t)},complete(){c=!0,o=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{a--,h.unsubscribe(),o&&!c&&n&&0===a&&(o.unsubscribe(),o=void 0,r=void 0)})}}(s))}},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("z+Ro"),r=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(r.a)(e)(Object(o.a)(t,n))}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return u});var i=n("HDdC"),s=n("7o/Q"),r=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return i})},Ylt2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("quSY");class s extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("51Dv"),s=n("SeVD"),r=n("HDdC");function o(t,e,n,o,a=new i.a(t,n,o)){if(!a.closed)return e instanceof r.a?e.subscribe(a):Object(s.a)(e)(a)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("5+tZ"),s=n("SpAZ");function r(t=Number.POSITIVE_INFINITY){return Object(i.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("5+tZ");function s(t,e){return Object(i.a)(t,e,1)}},bTqV:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return p}),n.d(e,"c",function(){return m});var i=n("FKr1"),s=n("R1ws"),r=n("fXoL"),o=n("u47x");const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const d=Object(i.q)(Object(i.s)(Object(i.r)(h)));let p=(()=>{class t extends d{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.m),r.Rb(o.e),r.Rb(s.a,8))},t.\u0275cmp=r.Lb({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gc(i.l,1),2&t){let t;r.pc(t=r.fc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.Gb("disabled",e.disabled||null),r.Jb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.Cb],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.mc(),r.Xb(0,"span",0),r.lc(1),r.Wb(),r.Sb(2,"span",1),r.Sb(3,"span",2)),2&t&&(r.Fb(2),r.Jb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.nc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.l],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t extends p{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(o.e),r.Rb(r.m),r.Rb(s.a,8))},t.\u0275cmp=r.Lb({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.ec("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.Gb("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.Jb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.Cb],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.mc(),r.Xb(0,"span",0),r.lc(1),r.Wb(),r.Sb(2,"span",1),r.Sb(3,"span",2)),2&t&&(r.Fb(2),r.Jb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.nc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.l],styles:[c],encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({imports:[[i.m,i.e],i.e]}),t})()},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return i})},cH1L:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var i=n("fXoL"),s=n("ofXK");const r=new i.t("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.Y)(s.d)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.p,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(r,8))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})()},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("HDdC"),s=n("DH7j"),r=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return c(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(r.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let l=0;l{u||(u=!0,o++),s[l]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&u||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},d3UM:function(t,e,n){"use strict";n.d(e,"a",function(){return q}),n.d(e,"b",function(){return G});var i=n("rDax"),s=n("ofXK"),r=n("fXoL"),o=n("FKr1"),a=n("kmnG"),l=n("vxfF"),c=n("u47x"),u=n("8LU1"),h=n("0EQZ"),d=n("FtGj"),p=n("XNiG"),f=n("NXyV"),m=n("VRyK"),g=n("JX91"),b=n("eIep"),_=n("IzEk"),y=n("pLZG"),v=n("lJxs"),w=n("/uUt"),C=n("1G5W"),S=n("R0Ic"),O=n("cH1L"),x=n("3Pt+");const k=["trigger"],E=["panel"];function T(t,e){if(1&t&&(r.Xb(0,"span",8),r.Cc(1),r.Wb()),2&t){const t=r.ic();r.Fb(1),r.Dc(t.placeholder)}}function A(t,e){if(1&t&&(r.Xb(0,"span",12),r.Cc(1),r.Wb()),2&t){const t=r.ic(2);r.Fb(1),r.Dc(t.triggerValue)}}function j(t,e){1&t&&r.lc(0,0,["*ngSwitchCase","true"])}function R(t,e){if(1&t&&(r.Xb(0,"span",9),r.Ac(1,A,2,1,"span",10),r.Ac(2,j,1,0,"ng-content",11),r.Wb()),2&t){const t=r.ic();r.nc("ngSwitch",!!t.customTrigger),r.Fb(2),r.nc("ngSwitchCase",!0)}}function I(t,e){if(1&t){const t=r.Yb();r.Xb(0,"div",13),r.Xb(1,"div",14,15),r.ec("@transformPanel.done",function(e){return r.tc(t),r.ic()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.tc(t),r.ic()._handleKeydown(e)}),r.lc(3,1),r.Wb(),r.Wb()}if(2&t){const t=r.ic();r.nc("@transformPanelWrap",void 0),r.Fb(1),r.Ib("mat-select-panel ",t._getPanelTheme(),""),r.xc("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.nc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.Gb("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const P=[[["mat-select-trigger"]],"*"],D=["mat-select-trigger","*"],N={transformPanelWrap:Object(S.m)("transformPanelWrap",[Object(S.l)("* => void",Object(S.h)("@transformPanel",[Object(S.f)()],{optional:!0}))]),transformPanel:Object(S.m)("transformPanel",[Object(S.j)("void",Object(S.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(S.j)("showing",Object(S.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(S.j)("showing-multiple",Object(S.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(S.l)("void => *",Object(S.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(S.l)("* => void",Object(S.e)("100ms 25ms linear",Object(S.k)({opacity:0})))])};let F=0;const L=256,M=new r.t("mat-select-scroll-strategy"),V=new r.t("MAT_SELECT_CONFIG"),B={provide:M,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class H{constructor(t,e){this.source=t,this.value=e}}class z{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const U=Object(o.r)(Object(o.u)(Object(o.s)(Object(o.t)(z)))),$=new r.t("MatSelectTrigger");let W=(()=>{class t extends U{constructor(t,e,n,i,s,o,a,l,c,u,h,d,w,C){var S,O,x;super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=w,this._defaultOptions=C,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.a,this._overlayPanelClass=(null===(S=this._defaultOptions)||void 0===S?void 0:S.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(x=null===(O=this._defaultOptions)||void 0===O?void 0:O.disableOptionCentering)&&void 0!==x&&x,this.ariaLabel="",this.optionSelectionChanges=Object(f.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(g.a)(t),Object(b.a)(()=>Object(m.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object(_.a)(1),Object(b.a)(()=>this.optionSelectionChanges))}),this.openedChange=new r.p,this._openedStream=this.openedChange.pipe(Object(y.a)(t=>t),Object(v.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(y.a)(t=>!t),Object(v.a)(()=>{})),this.selectionChange=new r.p,this.valueChange=new r.p,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=C.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(u.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(u.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(u.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(u.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(w.a)(),Object(C.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(C.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(g.a)(null),Object(C.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.d||e===d.p||e===d.i||e===d.m,i=e===d.f||e===d.n,s=this._keyManager;if(!s.isTyping()&&i&&!Object(d.s)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.d||n===d.p,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.f&&n!==d.n||!e.activeItem||Object(d.s)(t))if(!s&&this._multiple&&n===d.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(_.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(C.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(C.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(m.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(C.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(m.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(C.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(l.e),r.Rb(r.i),r.Rb(r.C),r.Rb(o.a),r.Rb(r.m),r.Rb(O.b,8),r.Rb(x.l,8),r.Rb(x.e,8),r.Rb(a.a,8),r.Rb(x.i,10),r.cc("tabindex"),r.Rb(M),r.Rb(c.h),r.Rb(V,8))},t.\u0275dir=r.Mb({type:t,viewQuery:function(t,e){if(1&t&&(r.Gc(k,1),r.Gc(E,1),r.Gc(i.a,1)),2&t){let t;r.pc(t=r.fc())&&(e.trigger=t.first),r.pc(t=r.fc())&&(e.panel=t.first),r.pc(t=r.fc())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.Cb,r.Db]}),t})(),q=(()=>{class t extends W{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(C.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=Object(o.o)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(o.p)((t+e)*n,n,this.panel.nativeElement.scrollTop,L)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new H(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(L/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-L)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,L)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,L),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=Object(o.o)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return X(e||t)},t.\u0275cmp=r.Lb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Kb(n,$,1),r.Kb(n,o.h,1),r.Kb(n,o.b,1)),2&t){let t;r.pc(t=r.fc())&&(e.customTrigger=t.first),r.pc(t=r.fc())&&(e.options=t),r.pc(t=r.fc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.ec("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.Gb("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.Jb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r.Eb([{provide:a.d,useExisting:t},{provide:o.c,useExisting:t}]),r.Cb],ngContentSelectors:D,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.mc(P),r.Xb(0,"div",0,1),r.ec("click",function(){return e.toggle()}),r.Xb(3,"div",2),r.Ac(4,T,2,1,"span",3),r.Ac(5,R,3,2,"span",4),r.Wb(),r.Xb(6,"div",5),r.Sb(7,"div",6),r.Wb(),r.Wb(),r.Ac(8,I,4,14,"ng-template",7),r.ec("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.qc(1);r.Gb("aria-owns",e.panelOpen?e.id+"-panel":null),r.Fb(3),r.nc("ngSwitch",e.empty),r.Gb("id",e._valueId),r.Fb(1),r.nc("ngSwitchCase",!0),r.Fb(1),r.nc("ngSwitchCase",!1),r.Fb(3),r.nc("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,s.m,s.n,i.a,s.o,s.i],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})();const X=r.Zb(q);let G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({providers:[B],imports:[[s.c,i.f,o.i,o.e],l.b,a.e,o.i,o.e]}),t})()},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("l7GE"),s=n("51Dv"),r=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function l(t,e){return"function"==typeof e?n=>n.pipe(l((n,i)=>Object(a.a)(t(n,i)).pipe(Object(o.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new c(t))}class c{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends i.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const o=new s.a(this,e,n),a=this.destination;a.add(o),this.innerSubscription=Object(r.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,s){this.destination.next(e)}}},fXoL:function(t,e,n){"use strict";n.d(e,"a",function(){return un}),n.d(e,"b",function(){return Ql}),n.d(e,"c",function(){return Xl}),n.d(e,"d",function(){return Wl}),n.d(e,"e",function(){return ql}),n.d(e,"f",function(){return Gc}),n.d(e,"g",function(){return Fc}),n.d(e,"h",function(){return uc}),n.d(e,"i",function(){return qa}),n.d(e,"j",function(){return cc}),n.d(e,"k",function(){return ga}),n.d(e,"l",function(){return ec}),n.d(e,"m",function(){return va}),n.d(e,"n",function(){return $c}),n.d(e,"o",function(){return Ti}),n.d(e,"p",function(){return Ol}),n.d(e,"q",function(){return _r}),n.d(e,"r",function(){return Rn}),n.d(e,"s",function(){return A}),n.d(e,"t",function(){return cn}),n.d(e,"u",function(){return Dr}),n.d(e,"v",function(){return Va}),n.d(e,"w",function(){return Ha}),n.d(e,"x",function(){return tc}),n.d(e,"y",function(){return il}),n.d(e,"z",function(){return Mc}),n.d(e,"A",function(){return nl}),n.d(e,"B",function(){return Rc}),n.d(e,"C",function(){return pc}),n.d(e,"D",function(){return In}),n.d(e,"E",function(){return Yl}),n.d(e,"F",function(){return Kl}),n.d(e,"G",function(){return kl}),n.d(e,"H",function(){return Sa}),n.d(e,"I",function(){return Ca}),n.d(e,"J",function(){return Di}),n.d(e,"K",function(){return xa}),n.d(e,"L",function(){return wi}),n.d(e,"M",function(){return Pn}),n.d(e,"N",function(){return Hc}),n.d(e,"O",function(){return Qa}),n.d(e,"P",function(){return vc}),n.d(e,"Q",function(){return hn}),n.d(e,"R",function(){return ka}),n.d(e,"S",function(){return rl}),n.d(e,"T",function(){return N}),n.d(e,"U",function(){return Ic}),n.d(e,"V",function(){return Ac}),n.d(e,"W",function(){return p}),n.d(e,"X",function(){return Pc}),n.d(e,"Y",function(){return Tn}),n.d(e,"Z",function(){return Tc}),n.d(e,"ab",function(){return qc}),n.d(e,"bb",function(){return Sc}),n.d(e,"cb",function(){return Jl}),n.d(e,"db",function(){return vr}),n.d(e,"eb",function(){return na}),n.d(e,"fb",function(){return g}),n.d(e,"gb",function(){return yi}),n.d(e,"hb",function(){return ni}),n.d(e,"ib",function(){return Wn}),n.d(e,"jb",function(){return Xn}),n.d(e,"kb",function(){return Yn}),n.d(e,"lb",function(){return Zn}),n.d(e,"mb",function(){return Gn}),n.d(e,"nb",function(){return Kn}),n.d(e,"ob",function(){return Qo}),n.d(e,"pb",function(){return Wc}),n.d(e,"qb",function(){return Jo}),n.d(e,"rb",function(){return ta}),n.d(e,"sb",function(){return qn}),n.d(e,"tb",function(){return B}),n.d(e,"ub",function(){return $r}),n.d(e,"vb",function(){return uo}),n.d(e,"wb",function(){return lo}),n.d(e,"xb",function(){return co}),n.d(e,"yb",function(){return Yo}),n.d(e,"zb",function(){return kt}),n.d(e,"Ab",function(){return u}),n.d(e,"Bb",function(){return $n}),n.d(e,"Cb",function(){return Fr}),n.d(e,"Db",function(){return yt}),n.d(e,"Eb",function(){return pa}),n.d(e,"Fb",function(){return ws}),n.d(e,"Gb",function(){return Gr}),n.d(e,"Hb",function(){return Ao}),n.d(e,"Ib",function(){return Wo}),n.d(e,"Jb",function(){return To}),n.d(e,"Kb",function(){return Ml}),n.d(e,"Lb",function(){return Q}),n.d(e,"Mb",function(){return rt}),n.d(e,"Nb",function(){return v}),n.d(e,"Ob",function(){return w}),n.d(e,"Pb",function(){return nt}),n.d(e,"Qb",function(){return ot}),n.d(e,"Rb",function(){return Qr}),n.d(e,"Sb",function(){return io}),n.d(e,"Tb",function(){return oo}),n.d(e,"Ub",function(){return ro}),n.d(e,"Vb",function(){return so}),n.d(e,"Wb",function(){return no}),n.d(e,"Xb",function(){return eo}),n.d(e,"Yb",function(){return ao}),n.d(e,"Zb",function(){return sn}),n.d(e,"ac",function(){return qo}),n.d(e,"bc",function(){return En}),n.d(e,"cc",function(){return on}),n.d(e,"dc",function(){return $l}),n.d(e,"ec",function(){return ho}),n.d(e,"fc",function(){return Vl}),n.d(e,"gc",function(){return we}),n.d(e,"hc",function(){return ve}),n.d(e,"ic",function(){return bo}),n.d(e,"jc",function(){return wl}),n.d(e,"kc",function(){return Cl}),n.d(e,"lc",function(){return vo}),n.d(e,"mc",function(){return yo}),n.d(e,"nc",function(){return Jr}),n.d(e,"oc",function(){return vl}),n.d(e,"pc",function(){return Fl}),n.d(e,"qc",function(){return Yr}),n.d(e,"rc",function(){return Ii}),n.d(e,"sc",function(){return Ri}),n.d(e,"tc",function(){return qt}),n.d(e,"uc",function(){return Ci}),n.d(e,"vc",function(){return Si}),n.d(e,"wc",function(){return it}),n.d(e,"xc",function(){return Eo}),n.d(e,"yc",function(){return po}),n.d(e,"zc",function(){return Xo}),n.d(e,"Ac",function(){return Kr}),n.d(e,"Bc",function(){return Ul}),n.d(e,"Cc",function(){return Ho}),n.d(e,"Dc",function(){return zo}),n.d(e,"Ec",function(){return Uo}),n.d(e,"Fc",function(){return $o}),n.d(e,"Gc",function(){return Ll});var i=n("XNiG"),s=n("quSY"),r=n("HDdC"),o=n("VRyK"),a=n("w1tV");function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function f(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class g extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function y(t,e){const n=e?` in ${e}`:"";throw new g("201",`No provider for ${_(t)} found${n}`)}function v(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function w(t){return{providers:t.providers||[],imports:t.imports||[]}}function C(t){return S(t,x)||S(t,E)}function S(t,e){return t.hasOwnProperty(e)?t[e]:null}function O(t){return t&&(t.hasOwnProperty(k)||t.hasOwnProperty(T))?t[k]:null}const x=l({"\u0275prov":l}),k=l({"\u0275inj":l}),E=l({ngInjectableDef:l}),T=l({ngInjectorDef:l});var A=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let j;function R(t){const e=j;return j=t,e}function I(t,e,n){const i=C(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&A.Optional?null:void 0!==e?e:void y(u(t),"Injector")}function P(t){return{toString:t}.toString()}var D=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),N=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const F="undefined"!=typeof globalThis&&globalThis,L="undefined"!=typeof window&&window,M="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V="undefined"!=typeof global&&global,B=F||V||L||M,H={},z=[],U=[],$=l({"\u0275cmp":l}),W=l({"\u0275dir":l}),q=l({"\u0275pipe":l}),X=l({"\u0275mod":l}),G=l({"\u0275loc":l}),Z=l({"\u0275fac":l}),K=l({__NG_ELEMENT_ID__:l});let Y=0;function Q(t){return P(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===D.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||U,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||N.Emulated,id:"c",styles:t.styles||U,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Y++,n.inputs=st(t.inputs,e),n.outputs=st(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(J):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(tt):null,n})}function J(t){const e=at(t)||function(t){return t[W]||null}(t);return e}function tt(t){const e=function(t){return t[q]||null}(t);return e}const et={};function nt(t){const e={type:t.type,bootstrap:t.bootstrap||U,declarations:t.declarations||U,imports:t.imports||U,exports:t.exports||U,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&P(()=>{et[t.id]=t.type}),e}function it(t,e){return P(()=>{const n=lt(t,!0);n.declarations=e.declarations||U,n.imports=e.imports||U,n.exports=e.exports||U})}function st(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const rt=Q;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[$]||null}function lt(t,e){const n=t[X]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}const ct=20,ut=10;function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function bt(t,e){return t.hasOwnProperty(Z)?t[Z]:null}class _t{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function yt(){return vt}function vt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ct),wt}function wt(){const t=St(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ct(t,e,n,i){const s=St(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new _t(l&&l.currentValue,e,o===H),t[i]=e}function St(t){return t.__ngSimpleChanges__||null}yt.ngInherit=!0;const Ot="http://www.w3.org/2000/svg";let xt;function kt(t){xt=t}function Et(){return void 0!==xt?xt:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}const At={createRenderer:(t,e)=>Et()};function jt(t){for(;Array.isArray(t);)t=t[0];return t}function Rt(t,e){return jt(e[t])}function It(t,e){return jt(e[t.index])}function Pt(t,e){return t.data[e]}function Dt(t,e){return t[e]}function Nt(t,e){const n=e[t];return ht(n)?n:n[0]}function Ft(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Lt(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Vt(t,e){return null==e?null:t[e]}function Bt(t){t[18]=0}function Ht(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const zt={lFrame:pe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ut(){return zt.bindingsEnabled}function $t(){return zt.lFrame.lView}function Wt(){return zt.lFrame.tView}function qt(t){zt.lFrame.contextLView=t}function Xt(){let t=Gt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Gt(){return zt.lFrame.currentTNode}function Zt(t,e){const n=zt.lFrame;n.currentTNode=t,n.isParent=e}function Kt(){return zt.lFrame.isParent}function Yt(){zt.lFrame.isParent=!1}function Qt(){return zt.isInCheckNoChangesMode}function Jt(t){zt.isInCheckNoChangesMode=t}function te(){const t=zt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ee(){return zt.lFrame.bindingIndex}function ne(){return zt.lFrame.bindingIndex++}function ie(t){const e=zt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function se(t,e){const n=zt.lFrame;n.bindingIndex=n.bindingRootIndex=t,re(e)}function re(t){zt.lFrame.currentDirectiveIndex=t}function oe(t){const e=zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ae(){return zt.lFrame.currentQueryIndex}function le(t){zt.lFrame.currentQueryIndex=t}function ce(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ue(t,e,n){if(n&A.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&A.Host||(i=ce(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=zt.lFrame=de();return i.currentTNode=e,i.lView=t,!0}function he(t){const e=de(),n=t[1];zt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function de(){const t=zt.lFrame,e=null===t?null:t.child;return null===e?pe(t):e}function pe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function fe(){const t=zt.lFrame;return zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const me=fe;function ge(){const t=fe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function be(){return zt.lFrame.selectedIndex}function _e(t){zt.lFrame.selectedIndex=t}function ye(){const t=zt.lFrame;return Pt(t.tView,t.selectedIndex)}function ve(){zt.lFrame.currentNamespace=Ot}function we(){zt.lFrame.currentNamespace=null}function Ce(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const Te=-1;class Ae{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function je(t,e,n){const i=Tt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let Me=!0;function Ve(t){const e=Me;return Me=t,e}let Be=0;function He(t,e){const n=Ue(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,ze(i.data,t),ze(e,null),ze(i.blueprint,null));const s=$e(t,e),r=t.injectorIndex;if(Ne(s)){const t=Fe(s),n=Le(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ue(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function $e(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return Te;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Te}function We(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(K)&&(i=n[K]),null==i&&(i=n[K]=Be++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:Ke:e}(n);if("function"==typeof r){if(!ue(e,t,i))return i&A.Host?qe(s,n,i):Xe(e,n,i,s);try{const t=r();if(null!=t||i&A.Optional)return t;y(n)}finally{me()}}else if("number"==typeof r){let s=null,o=Ue(t,e),a=Te,l=i&A.Host?e[16][6]:null;for((-1===o||i&A.SkipSelf)&&(a=-1===o?$e(t,e):e[o+8],a!==Te&&en(i,!1)?(s=e[1],o=Fe(a),e=Le(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(r,o,t.data)){const t=Ye(o,e,n,s,i,l);if(t!==Ze)return t}a=e[o+8],a!==Te&&en(i,e[1].data[o+8]===l)&&tn(r,o,e)?(s=t,o=Fe(a),e=Le(a,e)):o=-1}}}return Xe(e,n,i,s)}const Ze={};function Ke(){return new nn(Xt(),$t())}function Ye(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Qe(a,o,n,null==i?ft(a)&&Me:i!=o&&0!=(3&a.type),s&A.Host&&r===a);return null!==l?Je(e,o,l,a):Ze}function Qe(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&>(t)&&t.type===n)return l}return null}function Je(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof Ae){const o=s;o.resolving&&function(t,e){throw new g("200",`Circular dependency in DI detected for ${t}`)}(_(r[n]));const a=Ve(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?R(o.injectImpl):null;ue(t,i,A.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=vt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&R(l),Ve(a),o.resolving=!1,me()}}return s}function tn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Z]||rn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Z]||rn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function rn(t){return m(t)?()=>{const e=rn(f(t));return e&&e()}:bt(t)}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class cn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=v({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const un=new cn("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function _n(t,e){const n=yn(t,e);if(n>=0)return t[1|n]}function yn(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const vn={},wn=/\n/gm,Cn="__source",Sn=l({provide:String,useValue:l});let On;function xn(t){const e=On;return On=t,e}function kn(t,e=A.Default){if(void 0===On)throw new Error("inject() must be called from an injection context");return null===On?I(t,void 0,e):On.get(t,e&A.Optional?null:void 0,e)}function En(t,e=A.Default){return(j||kn)(f(t),e)}const Tn=En;function An(t){const e=[];for(let n=0;n({token:t})),-1),In=jn(ln("Optional"),8),Pn=jn(ln("SkipSelf"),4);let Dn,Nn;function Fn(t){var e;return(null===(e=function(){if(void 0===Dn&&(Dn=null,B.trustedTypes))try{Dn=B.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Dn}())||void 0===e?void 0:e.createHTML(t))||t}function Ln(t){var e;return(null===(e=function(){if(void 0===Nn&&(Nn=null,B.trustedTypes))try{Nn=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Nn}())||void 0===e?void 0:e.createHTML(t))||t}class Mn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends Mn{getTypeName(){return"HTML"}}class Bn extends Mn{getTypeName(){return"Style"}}class Hn extends Mn{getTypeName(){return"Script"}}class zn extends Mn{getTypeName(){return"URL"}}class Un extends Mn{getTypeName(){return"ResourceURL"}}function $n(t){return t instanceof Mn?t.changingThisBreaksApplicationSecurity:t}function Wn(t,e){const n=qn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function qn(t){return t instanceof Mn&&t.getTypeName()||null}function Xn(t){return new Vn(t)}function Gn(t){return new Bn(t)}function Zn(t){return new Hn(t)}function Kn(t){return new zn(t)}function Yn(t){return new Un(t)}class Qn{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Fn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Jn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Fn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Fn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0ni(t.trim())).join(", ")),this.buf.push(" ",e,'="',bi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ci.hasOwnProperty(e)&&!ri.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(bi(t))}checkClobberedElement(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}}const mi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function bi(t){return t.replace(/&/g,"&").replace(mi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let _i;function yi(t,e){let n=null;try{_i=_i||function(t){const e=new Jn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Fn(""),"text/html")}catch(t){return!1}}()?new Qn(e):e}(t);let i=e?String(e):"";n=_i.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=_i.getInertBodyElement(i)}while(i!==r);return Fn((new fi).sanitizeChildren(vi(n)||n))}finally{if(n){const t=vi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function vi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var wi=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}({});function Ci(t){const e=Oi();return e?Ln(e.sanitize(wi.HTML,t)||""):Wn(t,"HTML")?Ln($n(t)):yi(Et(),b(t))}function Si(t){const e=Oi();return e?e.sanitize(wi.URL,t)||"":Wn(t,"URL")?$n(t):ni(b(t))}function Oi(){const t=$t();return t&&t[12]}function xi(t){return t.ngDebugContext}function ki(t){return t.ngOriginalError}function Ei(t,...e){t.error(...e)}class Ti{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Ei}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?xi(t)?xi(t):this._findContext(ki(t)):null}_findOriginalError(t){let e=ki(t);for(;e&&ki(e);)e=ki(e);return e}}function Ai(t,e){t.__ngContext__=e}const ji=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Ri(t){return{name:"window",target:t.ownerDocument.defaultView}}function Ii(t){return{name:"body",target:t.ownerDocument.body}}function Pi(t){return t instanceof Function?t():t}var Di=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Ni(t,e){return(void 0)(t,e)}function Fi(t){const e=t[3];return dt(e)?e[3]:e}function Li(t){return Vi(t[13])}function Mi(t){return Vi(t[4])}function Vi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function Bi(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ht(i)&&(o=!0,i=i[0]);const a=jt(i);0===t&&null!==n?null==s?Gi(e,n,a):Xi(e,n,a,s||null,!0):1===t&&null!==n?Xi(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ki(t,e);i&&function(t,e,n,i){Tt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==jt(n)&&Bi(e,t,i,r,s);for(let o=ut;o0&&(t[n-1][4]=i[4]);const o=mn(t,ut+e);ss(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function $i(t,e){if(!(256&e[2])){const n=e[11];Tt(n)&&n.destroyNode&&ss(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Wi(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&Wi(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Wi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Wi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==ls(e,c,0)||2&i&&c!==t){if(fs(i))return!1;o=!0}}}}else{if(!o&&!fs(i)&&!fs(l))return!1;if(o&&fs(l))continue;o=!1,i=l|1&i}}return fs(i)||o}function fs(t){return 0==(1&t)}function ms(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||fs(o)||(e+=_s(r,s),s=""),i=o,r=r||!fs(i);n++}return""!==s&&(e+=_s(r,s)),e}const vs={};function ws(t){Cs(Wt(),$t(),be()+t,Qt())}function Cs(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Se(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Oe(e,i,0,n)}_e(n)}function Ss(t,e){return t<<17|e<<2}function Os(t){return t>>17&32767}function xs(t){return 2|t}function ks(t){return(131068&t)>>2}function Es(t,e){return-131069&t|e<<2}function Ts(t){return 1|t}function As(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;ict&&Cs(t,e,ct,Qt()),n(i,s)}finally{_e(r)}}function Ls(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function Xs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Gs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Zs(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&ir(n)}}function ir(t){for(let n=Li(t);null!==n;n=Mi(n))for(let t=ut;t0&&ir(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ir(i)}}function sr(t,e){const n=Nt(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function hr(t){return t[7]||(t[7]=[])}function dr(t){return t.cleanup||(t.cleanup=[])}function pr(t,e,n){return(null===t||gt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function fr(t,e){const n=t[9],i=n?n.get(Ti,null):null;i&&i.handleError(e)}function mr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],s)),this.records.set(_r,jr(void 0,this));const r=this.records.get(vr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=A.Default){this.assertNotDestroyed();const i=xn(this);try{if(!(n&A.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof cn)&&C(t);e=n&&this.injectableDefInScope(n)?jr(Tr(t),wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&A.Self?xr():this.parent).get(t,e=n&A.Optional&&e===vn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(u(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[Cn]&&s.unshift(e[Cn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=u(e);if(Array.isArray(e))s=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(wn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{xn(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(u(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let i=O(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=O(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Sr))}}this.injectorDefTypes.add(r);const a=bt(r)||(()=>new r);this.records.set(r,jr(a,wr));const l=i.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Ir(t=f(t))?t:f(t&&t.provide);const s=function(t,e,n){return Rr(t)?jr(void 0,t.useValue):jr(Ar(t),wr)}(t);if(Ir(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=jr(void 0,wr,!0),e.factory=()=>An(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===wr&&(e.value=Cr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Tr(t){const e=C(t),n=null!==e?e.factory:bt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[x]||t[E]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ar(t,e,n){let i;if(Ir(t)){const e=f(t);return bt(e)||Tr(e)}if(Rr(t))i=()=>f(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...An(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>En(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return bt(e)||Tr(e);i=()=>new e(...An(t.deps))}var s;return i}function jr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Rr(t){return null!==t&&"object"==typeof t&&Sn in t}function Ir(t){return"function"==typeof t}const Pr=function(t,e,n){return function(t,e=null,n=null,i){const s=kr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Dr=(()=>{class t{static create(t,e){return Array.isArray(t)?Pr(t,e,""):Pr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=vn,t.NULL=new yr,t.\u0275prov=v({token:t,providedIn:"any",factory:()=>En(_r)}),t.__NG_ELEMENT_ID__=-1,t})();function Nr(t,e){Ce(Ft(t)[1],Xt())}function Fr(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Lr(t.inputs),e.declaredInputs=Lr(t.declaredInputs),e.outputs=Lr(t.outputs);const n=s.hostBindings;n&&Br(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Mr(t,r),o&&Vr(t,o),c(t.inputs,s.inputs),c(t.declaredInputs,s.declaredInputs),c(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Pe(s.hostAttrs,n=Pe(n,s.hostAttrs))}}(i)}function Lr(t){return t===H?{}:t===U?[]:t}function Mr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Vr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function Br(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Hr=null;function zr(){if(!Hr){const t=B.Symbol;if(t&&t.iterator)Hr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(jt(t[i.index])).target:i.index;if(Tt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=go(i,e,0,r,!1);const t=n.listen(p.name||f,s,r);u.push(r,t),c&&c.push(s,g,m,m+1)}}else r=go(i,e,0,r,!0),f.addEventListener(s,r,o),u.push(r),c&&c.push(s,g,m,o)}else r=go(i,e,0,r,!1);const d=i.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,zt.lFrame.contextLView))[8]}(t)}function _o(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const So={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Oo(t){return t.substring(So.key,So.keyEnd)}function xo(t,e){const n=So.textEnd;return n===e?-1:(e=So.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,So.key=e,n),ko(t,e,n))}function ko(t,e,n){for(;e=0;n=xo(e,n))bn(t,Oo(e),!0)}function Ro(t,e,n,i){const s=$t(),r=Wt(),o=ie(2);r.firstUpdatePass&&Do(r,t,o,i),e!==vs&&Xr(s,o,e)&&Lo(r,r.data[be()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u($n(t)))),t}(e,n),i,o)}function Io(t,e,n,i){const s=Wt(),r=ie(2);s.firstUpdatePass&&Do(s,null,r,i);const o=$t();if(n!==vs&&Xr(o,r,n)){const a=s.data[be()];if(Bo(a,i)&&!Po(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=h(t,n||"")),to(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===vs&&(s=z);let l=0,c=0,u=0=t.expandoStartIndex}function Do(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[be()],o=Po(t,n);Bo(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=oe(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Fo(n=No(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=No(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==ks(i))return t[Os(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=No(null,t,e,n[1],i),n=Fo(n,e.attrs,i),function(t,e,n,i){t[Os(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Os(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=Es(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=Es(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=Es(t[l+1],i),l=i;u&&(t[i+1]=xs(t[i+1])),wo(t,c,i,!0),wo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&yn(r,e)>=0&&(n[i+1]=Ts(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function No(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===vs&&(u=c?z:void 0);let h=c?_n(u,i):l===i?u:void 0;if(r&&!Vo(h)&&(h=_n(e,i)),Vo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Os(d):ks(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=_n(t,i))}return a}function Vo(t){return void 0!==t}function Bo(t,e){return 0!=(t.flags&(e?16:32))}function Ho(t,e=""){const n=$t(),i=Wt(),s=t+ct,r=i.firstCreatePass?Rs(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Ji(i,n,o,r),Zt(r,!1)}function zo(t){return Uo("",t,""),zo}function Uo(t,e,n){const i=$t(),s=Zr(i,t,e,n);return s!==vs&&gr(i,be(),s),Uo}function $o(t,e,n,i,s,r,o){const a=$t(),l=function(t,e,n,i,s,r,o,a){const l=function(t,e,n,i,s){const r=function(t,e,n,i){const s=Xr(t,e,n);return Xr(t,e+1,i)||s}(t,e,n,i);return Xr(t,e+2,s)||r}(t,ee(),n,s,o);return ie(3),l?e+b(n)+i+b(s)+r+b(o)+a:vs}(a,t,e,n,i,s,r,o);return l!==vs&&gr(a,be(),l),$o}function Wo(t,e,n){Io(bn,jo,Zr($t(),t,e,n),!0)}function qo(t,e,n){const i=$t();return Xr(i,ne(),e)&&$s(Wt(),ye(),i,t,e,i[11],n,!0),qo}function Xo(t,e,n){const i=$t();if(Xr(i,ne(),e)){const s=Wt(),r=ye();$s(s,r,i,t,e,pr(oe(s.data),r,i),n,!0)}return Xo}const Go=void 0;var Zo=["en",[["a","p"],["AM","PM"],Go],[["AM","PM"],Go,Go],[["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"]],Go,[["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"]],Go,[["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}",Go,"{1} 'at' {0}",Go],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ko={};function Yo(t,e,n){"string"!=typeof e&&(n=e,e=t[na.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Ko[e]=t,n&&(Ko[e][na.ExtraData]=n)}function Qo(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ea(e);if(n)return n;const i=e.split("-")[0];if(n=ea(i),n)return n;if("en"===i)return Zo;throw new Error(`Missing locale data for the locale "${t}".`)}function Jo(t){return Qo(t)[na.CurrencyCode]||null}function ta(t){return Qo(t)[na.PluralCase]}function ea(t){return t in Ko||(Ko[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),Ko[t]}var na=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const ia="en-US";let sa=ia;function ra(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(sa=t.toLowerCase().replace(/_/g,"-"))}function oa(t,e,n,i,s){if(t=f(t),Array.isArray(t))for(let r=0;r>20;if(Ir(t)||!t.multi){const i=new Ae(l,s,Qr),p=ca(a,e,s?u:u+d,h);-1===p?(We(He(c,o),r,a),aa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=ca(a,e,u+d,h),f=ca(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){We(He(c,o),r,a);const u=function(t,e,n,i,s){const r=new Ae(t,n,Qr);return r.multi=[],r.index=e,r.componentProviders=0,la(r,s,i&&!n),r}(s?ha:ua,n.length,s,i,l);!s&&g&&(n[f].providerFactory=u),aa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else aa(r,t,p>-1?p:f,la(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function aa(t,e,n,i){const s=Ir(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function la(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ca(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Wt();if(i.firstCreatePass){const s=gt(t);oa(n,i.data,i.blueprint,s,!0),oa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class fa{}class ma{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ga=(()=>{class t{}return t.NULL=new ma,t})();function ba(...t){}function _a(t,e){return new va(It(t,e))}const ya=function(){return _a(Xt(),$t())};let va=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ya,t})();function wa(t){return t instanceof va?t.nativeElement:t}class Ca{}let Sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Oa(),t})();const Oa=function(){const t=$t(),e=Nt(Xt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let xa=(()=>{class t{}return t.\u0275prov=v({token:t,providedIn:"root",factory:()=>null}),t})();class ka{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ea=new ka("11.2.14");class Ta{constructor(){}supports(t){return $r(t)}create(t){return new ja(t)}}const Aa=(t,e)=>e;class ja{constructor(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||Aa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new Ra(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Pa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ra{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ia{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Pa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ia,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Da(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new La(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class La{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ma(){return new Va([new Ta])}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ma()),deps:[[t,new Pn,new In]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=v({token:t,providedIn:"root",factory:Ma}),t})();function Ba(){return new Ha([new Na])}let Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ba()),deps:[[t,new Pn,new In]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=v({token:t,providedIn:"root",factory:Ba}),t})();function za(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(jt(r)),dt(r))for(let t=ut;t-1&&(Ui(t,n),mn(e,n))}this._attachedToViewContainer=!1}$i(this._lView[1],this._lView)}onDestroy(t){zs(this._lView[1],this._lView,null,t)}markForCheck(){or(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ar(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Jt(!0);try{ar(t,e,n)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,ss(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class $a extends Ua{constructor(t){super(t),this._view=t}detectChanges(){lr(this._view)}checkNoChanges(){!function(t){Jt(!0);try{lr(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const Wa=Xa;let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t.__ChangeDetectorRef__=!0,t})();function Xa(t=!1){return function(t,e,n){if(!n&&ft(t)){const n=Nt(t.index,e);return new Ua(n,n)}return 47&t.type?new Ua(e[16],e):null}(Xt(),$t(),t)}const Ga=[new Na],Za=new Va([new Ta]),Ka=new Ha(Ga),Ya=function(){return el(Xt(),$t())};let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ya,t})();const Ja=Qa,tl=class extends Ja{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=js(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ps(e,n,t),new Ua(n)}};function el(t,e){return 4&t.type?new tl(e,t,_a(t,e)):null}class nl{}class il{}const sl=function(){return ul(Xt(),$t())};let rl=(()=>{class t{}return t.__NG_ELEMENT_ID__=sl,t})();const ol=rl,al=class extends ol{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return _a(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=$e(this._hostTNode,this._hostLView);if(Ne(t)){const e=Le(t,this._hostLView),n=Fe(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ll(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ut}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(nl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new al(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=ut+i,r=n.length;i>0&&(n[s-1][4]=e),iji});class ml extends fa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ys).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return pl(this.componentDef.inputs)}get outputs(){return pl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,hl,s);return r!==hl||i===hl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Ca,At),o=s.get(xa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Tt(t))return t.selectRootElement(e,n===N.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Hi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?Ot:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:ji,clean:ur,playerHandler:null,flags:0},d=Hs(0,null,null,1,0,null,null,null,null,null),p=js(null,d,h,u,null,null,r,a,o,s);let f,m;he(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Rs(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(br(a,l,!0),null!==t&&(je(s,t,l),null!==a.classes&&as(s,t,a.classes),null!==a.styles&&os(s,t,a.styles)));const c=i.createRenderer(t,e),u=js(n,Bs(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(We(He(a,n),o,e.type),Gs(o,a),Ks(a,n.length,1)),rr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)je(a,c,["ng-version",Ea.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&as(a,c,e.join(" "))}if(m=Pt(d,ct),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Xt();e.contentQueries(1,o,t.directiveStart)}const a=Xt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(_e(a.index),qs(n[1],a,0,a.directiveStart,a.directiveEnd,e),Xs(e,o)),o}(t,this.componentDef,p,h,[Nr]),Ps(d,p,null)}finally{ge()}return new gl(this.componentType,f,_a(m,p),p,m)}}class gl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new $a(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const bl=new Map;class _l extends nl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new dl(this);const n=lt(t),i=t[G]||null;i&&ra(i),this._bootstrapComponents=Pi(n.bootstrap),this._r3Injector=kr(t,e,[{provide:nl,useValue:this},{provide:ga,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Dr.THROW_IF_NOT_FOUND,n=A.Default){return t===Dr||t===nl||t===_r?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class yl extends il{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(n){const i=lt(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(s,bl.get(s),n),bl.set(s,n));const r=Pi(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new _l(this.moduleType,t)}}function vl(t,e,n){const i=te()+t,s=$t();return s[i]===vs?qr(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function wl(t,e){const n=Wt();let i;const s=t+ct;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new g("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=bt(i.type)),o=R(Qr);try{const t=Ve(!1),e=r();return Ve(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,$t(),s,e),e}finally{R(o)}}function Cl(t,e,n){const i=t+ct,s=$t(),r=Dt(s,i);return function(t,e){return Ur.isWrapped(e)&&(e=Ur.unwrap(e),t[ee()]=vs),e}(s,function(t,e){return t[1].data[e].pure}(s,i)?function(t,e,n,i,s,r){const o=e+n;return Xr(t,o,s)?qr(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===vs?void 0:n}(t,o+1)}(s,te(),e,r.transform,n,r):r.transform(n))}function Sl(t){return e=>{setTimeout(t,void 0,e)}}const Ol=class extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Sl(l),a&&(a=Sl(a)),c&&(c=Sl(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.a&&t.add(u),u}};function xl(){return this._results[zr()]()}class kl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zr(),n=kl.prototype;n[e]||(n[e]=xl)}get changes(){return this._changes||(this._changes=new Ol)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=ut;t{class t{constructor(t){this.appInits=t,this.resolve=ba,this.reject=ba,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(En(Wl,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const Xl=new cn("AppId"),Gl={provide:Xl,useFactory:function(){return`${Zl()}${Zl()}${Zl()}`},deps:[]};function Zl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Kl=new cn("Platform Initializer"),Yl=new cn("Platform ID"),Ql=new cn("appBootstrapListener");let Jl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const tc=new cn("LocaleId"),ec=new cn("DefaultCurrencyCode");class nc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ic=function(t){return new yl(t)},sc=ic,rc=function(t){return Promise.resolve(ic(t))},oc=function(t){const e=ic(t),n=Pi(lt(t).declarations).reduce((t,e)=>{const n=at(e);return n&&t.push(new ml(n)),t},[]);return new nc(e,n)},ac=oc,lc=function(t){return Promise.resolve(oc(t))};let cc=(()=>{class t{constructor(){this.compileModuleSync=sc,this.compileModuleAsync=rc,this.compileModuleAndAllComponentsSync=ac,this.compileModuleAndAllComponentsAsync=lc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const uc=new cn("compilerOptions"),hc=(()=>Promise.resolve(0))();function dc(t){"undefined"==typeof Zone?hc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class pc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ol(!1),this.onMicrotaskEmpty=new Ol(!1),this.onStable=new Ol(!1),this.onError=new Ol(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gc(t),mc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return bc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),_c(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return bc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),_c(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,gc(t),mc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(pc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,fc,ba,ba);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const fc={};function mc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function gc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function bc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _c(t){t._nesting--,mc(t)}class yc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ol,this.onMicrotaskEmpty=new Ol,this.onStable=new Ol,this.onError=new Ol}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let vc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pc.assertNotInAngularZone(),dc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())dc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(En(pc))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})(),wc=(()=>{class t{constructor(){this._applications=new Map,xc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return xc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();class Cc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Sc(t){xc=t}let Oc,xc=new Cc,kc=!0,Ec=!1;function Tc(){return Ec=!0,kc}function Ac(){if(Ec)throw new Error("Cannot enable prod mode after platform setup.");kc=!1}const jc=new cn("AllowMultipleToken");class Rc{constructor(t,e){this.name=t,this.token=e}}function Ic(t,e,n=[]){const i=`Platform: ${e}`,s=new cn(i);return(e=[])=>{let r=Pc();if(!r||r.injector.get(jc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:vr,useValue:"platform"});!function(t){if(Oc&&!Oc.destroyed&&!Oc.injector.get(jc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oc=t.get(Dc);const e=t.get(Kl,null);e&&e.forEach(t=>t())}(Dr.create({providers:t,name:i}))}return function(t){const e=Pc();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}(s)}}function Pc(){return Oc&&!Oc.destroyed?Oc:null}let Dc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new yc:("zone.js"===t?void 0:t)||new pc({enableLongStackTrace:Tc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:pc,useValue:n}];return n.run(()=>{const e=Dr.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(Ti,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Lc(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return lo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(ql);return t.runInitializers(),t.donePromise.then(()=>(ra(s.injector.get(tc,ia)||ia),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Nc({},e);return function(t,e,n){const i=new yl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Fc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(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)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(En(Dr))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Nc(t,e){return Array.isArray(e)?e.reduce(Nc,t):Object.assign(Object.assign({},t),e)}let Fc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new r.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new r.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{pc.assertNotInAngularZone(),dc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{pc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,c.pipe(Object(a.a)()))}bootstrap(t,e){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.");let n;n=t instanceof fa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(nl),s=n.create(Dr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(vc,null),a=o&&s.injector.get(wc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Lc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Lc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ql,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(En(pc),En(Dr),En(Ti),En(ga),En(ql))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Lc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Mc{}class Vc{}const Bc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Hc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Bc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>zc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>zc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(En(cc),En(Vc,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function zc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class Uc extends qa{}class $c extends Uc{}const Wc=function(t){return null},qc=Ic(null,"core",[{provide:Yl,useValue:"unknown"},{provide:Dc,deps:[Dr]},{provide:wc,deps:[]},{provide:Jl,deps:[]}]),Xc=[{provide:Fc,useClass:Fc,deps:[pc,Dr,Ti,ga,ql]},{provide:fl,deps:[pc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ql,useClass:ql,deps:[[new In,Wl]]},{provide:cc,useClass:cc,deps:[]},Gl,{provide:Va,useFactory:function(){return Za},deps:[]},{provide:Ha,useFactory:function(){return Ka},deps:[]},{provide:tc,useFactory:function(t){return ra(t=t||"undefined"!=typeof $localize&&$localize.locale||ia),t},deps:[[new Rn(tc),new In,new Pn]]},{provide:ec,useValue:"USD"}];let Gc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(En(Fc))},t.\u0275mod=nt({type:t}),t.\u0275inj=w({providers:Xc}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("2fFW"),s=n("NJ4a");const r={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},itXk:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("z+Ro"),s=n("DH7j"),r=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const l={};function c(...t){let e=null,n=null;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends r.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{const i=new s.a;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",function(){return M}),n.d(e,"b",function(){return I}),n.d(e,"c",function(){return F}),n.d(e,"d",function(){return C});var i=n("ofXK"),s=n("fXoL");class r extends i.v{constructor(){super()}supportsDOMEvents(){return!0}}class o extends r{static makeCurrent(){Object(i.z)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(i.y)(document.cookie,t)}}let a,l=null;const c=new s.t("TRANSITION_ID"),u=[{provide:s.d,useFactory:function(t,e,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=Object(i.x)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,i.d,s.u],multi:!0}];class h{static init(){Object(s.bb)(new h)}addToWindow(t){s.tb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.tb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.tb.getAllAngularRootElements=()=>t.getAllRootElements(),s.tb.frameworkStabilizers||(s.tb.frameworkStabilizers=[]),s.tb.frameworkStabilizers.push(t=>{const e=s.tb.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Object(i.x)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.t("EventManagerPlugins");let p=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(b))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();function b(t){Object(i.x)().remove(t)}const _={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},y=/%COMP%/g;function v(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.T.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new O(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.T.ShadowDom:return new x(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=v(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.bc(p),s.bc(g),s.bc(s.c))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();class S{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=_[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=_[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.J.DashCase|s.J.Important)?t.style.setProperty(e,n,i&s.J.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.J.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,w(n)):this.eventManager.addEventListener(t,e,w(n))}}class O extends S{constructor(t,e,n,i){super(t),this.component=n;const s=v(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(y,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(y,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class x extends S{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=v(i.id,i.styles,[]);for(let r=0;r{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],T={"\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"},A={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"},j={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.x)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(E.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&A.hasOwnProperty(e)&&(e=A[e]))}return T[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(i=>{i!=n&&(0,j[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Nb)({factory:function(){return Object(s.bc)(D)},token:t,providedIn:"root"}),t})();function P(t){return new D(t.get(i.d))}let D=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.L.NONE:return e;case s.L.HTML:return Object(s.ib)(e,"HTML")?Object(s.Bb)(e):Object(s.gb)(this._doc,String(e)).toString();case s.L.STYLE:return Object(s.ib)(e,"Style")?Object(s.Bb)(e):e;case s.L.SCRIPT:if(Object(s.ib)(e,"Script"))return Object(s.Bb)(e);throw new Error("unsafe value used in a script context");case s.L.URL:return Object(s.sb)(e),Object(s.ib)(e,"URL")?Object(s.Bb)(e):Object(s.hb)(String(e));case s.L.RESOURCE_URL:if(Object(s.ib)(e,"ResourceURL"))return Object(s.Bb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(s.jb)(t)}bypassSecurityTrustStyle(t){return Object(s.mb)(t)}bypassSecurityTrustScript(t){return Object(s.lb)(t)}bypassSecurityTrustUrl(t){return Object(s.nb)(t)}bypassSecurityTrustResourceUrl(t){return Object(s.kb)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return P(Object(s.bc)(s.q))},token:t,providedIn:"root"}),t})();const N=[{provide:s.E,useValue:i.w},{provide:s.F,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(s.zb)(document),document},deps:[]}],F=Object(s.U)(s.ab,"browser",N),L=[[],{provide:s.db,useValue:"root"},{provide:s.o,useFactory:function(){return new s.o},deps:[]},{provide:d,useClass:k,multi:!0,deps:[i.d,s.C,s.E]},{provide:d,useClass:R,multi:!0,deps:[i.d]},[],{provide:C,useClass:C,deps:[p,g,s.c]},{provide:s.I,useExisting:C},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[i.d]},{provide:s.P,useClass:s.P,deps:[s.C]},{provide:p,useClass:p,deps:[d,s.C]},[]];let M=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.c,useValue:e.appId},{provide:c,useExisting:s.c},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(t,12))},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({providers:L,imports:[i.c,s.f]}),t})();"undefined"!=typeof window&&window},jtHE:function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n("XNiG"),s=n("3N8a");class r extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("IjjT");class a extends o.a{}const l=new a(r);var c=n("quSY"),u=n("7o/Q"),h=n("EY2u"),d=n("LRne"),p=n("z6cu");let f=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(d.a)(this.value);case"E":return Object(p.a)(this.error);case"C":return Object(h.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class m extends u.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(m.dispatch,this.delay,new g(t,this.destination)))}_next(t){this.scheduleMessage(f.createNext(t))}_error(t){this.scheduleMessage(f.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(f.createComplete()),this.unsubscribe()}}class g{constructor(t,e){this.notification=t,this.destination=e}}var b=n("9ppp"),_=n("Ylt2");class y extends i.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new v(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new b.a;if(this.isStopped||this.hasError?r=c.a.EMPTY:(this.observers.push(t),r=new _.a(this,t)),i&&t.add(t=new m(t,i)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class v{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kmnG:function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return L}),n.d(e,"c",function(){return Q}),n.d(e,"d",function(){return V}),n.d(e,"e",function(){return J}),n.d(e,"f",function(){return z}),n.d(e,"g",function(){return U});var i=n("GU7r"),s=n("ofXK"),r=n("fXoL"),o=n("FKr1"),a=n("8LU1"),l=n("XNiG"),c=n("VRyK"),u=n("xgIS"),h=n("JX91"),d=n("1G5W"),p=n("IzEk"),f=n("R0Ic"),m=n("R1ws"),g=n("cH1L"),b=n("nLfN");const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function C(t,e){1&t&&(r.Vb(0),r.Xb(1,"div",14),r.Sb(2,"div",15),r.Sb(3,"div",16),r.Sb(4,"div",17),r.Wb(),r.Xb(5,"div",18),r.Sb(6,"div",15),r.Sb(7,"div",16),r.Sb(8,"div",17),r.Wb(),r.Ub())}function S(t,e){1&t&&(r.Xb(0,"div",19),r.lc(1,1),r.Wb())}function O(t,e){if(1&t&&(r.Vb(0),r.lc(1,2),r.Xb(2,"span"),r.Cc(3),r.Wb(),r.Ub()),2&t){const t=r.ic(2);r.Fb(3),r.Dc(t._control.placeholder)}}function x(t,e){1&t&&r.lc(0,3,["*ngSwitchCase","true"])}function k(t,e){1&t&&(r.Xb(0,"span",23),r.Cc(1," *"),r.Wb())}function E(t,e){if(1&t){const t=r.Yb();r.Xb(0,"label",20,21),r.ec("cdkObserveContent",function(){return r.tc(t),r.ic().updateOutlineGap()}),r.Ac(2,O,4,1,"ng-container",12),r.Ac(3,x,1,0,"ng-content",12),r.Ac(4,k,2,0,"span",22),r.Wb()}if(2&t){const t=r.ic();r.Jb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.nc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.Gb("for",t._control.id)("aria-owns",t._control.id),r.Fb(2),r.nc("ngSwitchCase",!1),r.Fb(1),r.nc("ngSwitchCase",!0),r.Fb(1),r.nc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(r.Xb(0,"div",24),r.lc(1,4),r.Wb())}function A(t,e){if(1&t&&(r.Xb(0,"div",25,26),r.Sb(2,"span",27),r.Wb()),2&t){const t=r.ic();r.Fb(2),r.Jb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function j(t,e){if(1&t&&(r.Xb(0,"div"),r.lc(1,5),r.Wb()),2&t){const t=r.ic();r.nc("@transitionMessages",t._subscriptAnimationState)}}function R(t,e){if(1&t&&(r.Xb(0,"div",31),r.Cc(1),r.Wb()),2&t){const t=r.ic(2);r.nc("id",t._hintLabelId),r.Fb(1),r.Dc(t.hintLabel)}}function I(t,e){if(1&t&&(r.Xb(0,"div",28),r.Ac(1,R,2,2,"div",29),r.lc(2,6),r.Sb(3,"div",30),r.lc(4,7),r.Wb()),2&t){const t=r.ic();r.nc("@transitionMessages",t._subscriptAnimationState),r.Fb(1),r.nc("ngIf",t.hintLabel)}}const P=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],D=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0;const F=new r.t("MatError");let L=(()=>{class t{constructor(){this.id="mat-error-"+N++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&r.Gb("id",e.id)},inputs:{id:"id"},features:[r.Eb([{provide:F,useExisting:t}])]}),t})();const M={transitionMessages:Object(f.m)("transitionMessages",[Object(f.j)("enter",Object(f.k)({opacity:1,transform:"translateY(0%)"})),Object(f.l)("void => enter",[Object(f.k)({opacity:0,transform:"translateY(-5px)"}),Object(f.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t}),t})(),B=0;const H=new r.t("MatHint");let z=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+B++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(r.Gb("id",e.id)("align",null),r.Jb("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[r.Eb([{provide:H,useExisting:t}])]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-label"]]}),t})(),$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-placeholder"]]}),t})();const W=new r.t("MatPrefix"),q=new r.t("MatSuffix");let X=0;class G{constructor(t){this._elementRef=t}}const Z=Object(o.q)(G,"primary"),K=new r.t("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Y=new r.t("MatFormField");let Q=(()=>{class t extends Z{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+X++,this._labelId="mat-form-field-label-"+X++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(a.c)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Object(h.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(c.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(u.a)(this._label.nativeElement,"transitionend").pipe(Object(p.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({imports:[[s.c,o.e,i.c],o.e]}),t})()},l7GE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");class s extends i.a{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mrSG:function(t,e,n){"use strict";function i(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}n.d(e,"a",function(){return i})},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",function(){return i})},nLfN:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return _}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return g});var i=n("fXoL"),s=n("ofXK");let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(s.t)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.E))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(i.E))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q"),s=n("quSY");function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.a{constructor(t,e){super(t),this.add(new s.a(e))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>e=>{for(let n=0,i=t.length;n{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(i.bc)(d)}const h=new i.t("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=r().getLocation(),this._history=r().getHistory()}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.bc(l))},t.\u0275prov=Object(i.Nb)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d(Object(i.bc)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(i.bc)(l).location;return new w(Object(i.bc)(c),e&&e.origin||"")}const v=new i.t("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c),i.bc(v,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c),i.bc(v,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t{constructor(t,e){this._subject=new i.p,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(x(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,x(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(_),i.bc(c))},t.normalizeQueryParams=b,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(i.Nb)({factory:O,token:t,providedIn:"root"}),t})();function O(){return new S(Object(i.bc)(_),Object(i.bc)(c))}function x(t){return t.replace(/\/index.html$/,"")}var k=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}({});const E=i.rb;class T{}let A=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(E(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.x))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();function j(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let R=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(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&&(Object(i.ub)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(i.Ab)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.v),i.Rb(i.w),i.Rb(i.m),i.Rb(i.H))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class I{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let P=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new I(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new D(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new D(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S),i.Rb(i.O),i.Rb(i.v))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class D{constructor(t,e){this.record=t,this.view=e}}let N=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){L("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){L("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S),i.Rb(i.O))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function L(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.Ab)(e)}'.`)}class M{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let V=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new M(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S),i.Rb(i.O),i.Rb(V,9))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),H=(()=>{class t{constructor(t,e,n){n._addDefault(new M(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S),i.Rb(i.O),i.Rb(V,9))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),z=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.w),i.Rb(i.H))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),U=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Db]}),t})();class ${createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class W{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const q=new W,X=new $;let G=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(i.wb)(e))return q;if(Object(i.xb)(e))return X;throw n=t,Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.Ab)(n)}'`);var n}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.dc())},t.\u0275pipe=i.Qb({name:"async",type:t,pure:!1}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({providers:[{provide:T,useClass:A}]}),t})();const K="browser";function Y(t){return t===K}function Q(t){return"server"===t}let J=(()=>{class t{}return t.\u0275prov=Object(i.Nb)({token:t,providedIn:"root",factory:()=>new tt(Object(i.bc)(l),window)}),t})();class tt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=et(this.window.history)||et(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function et(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("DH7j"),s=n("XoHu"),r=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof o?e.errors:e),[])}},rDax:function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return K}),n.d(e,"c",function(){return X}),n.d(e,"d",function(){return E}),n.d(e,"e",function(){return D}),n.d(e,"f",function(){return J});var i=n("vxfF"),s=n("fXoL"),r=n("nLfN"),o=n("cH1L"),a=n("ofXK"),l=n("8LU1"),c=n("+rOU"),u=n("XNiG"),h=n("quSY"),d=n("VRyK"),p=n("IzEk"),f=n("1G5W"),m=n("7o/Q");class g{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new b(t,this.predicate,this.inclusive))}}class b extends m.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var _=n("FtGj");const y=Object(r.g)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(l.d)(-this._previousScrollPosition.left),t.style.top=Object(l.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),y&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),y&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class C{enable(){}disable(){}attach(){}}function S(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function O(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class x{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();S(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let k=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new C,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new x(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.c),s.bc(i.e),s.bc(s.C),s.bc(a.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.c),Object(s.bc)(i.e),Object(s.bc)(s.C),Object(s.bc)(a.d))},token:t,providedIn:"root"}),t})();class E{constructor(t){if(this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class T{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let j=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.bc(a.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(a.d))},token:t,providedIn:"root"}),t})(),R=(()=>{class t extends j{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(a.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(a.d))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends j{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(a.d),s.bc(r.a))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(a.d),Object(s.bc)(r.a))},token:t,providedIn:"root"}),t})();const P=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let D=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||P){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new u.a,this._outsidePointerEvents=new u.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Object(l.d)(this._config.width),t.height=Object(l.d)(this._config.height),t.minWidth=Object(l.d)(this._config.minWidth),t.minHeight=Object(l.d)(this._config.minHeight),t.maxWidth=Object(l.d)(this._config.maxWidth),t.maxHeight=Object(l.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Object(l.b)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(f.a)(Object(d.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const F="cdk-overlay-connected-position-bounding-box",L=/([A-Za-z%]+)$/;class M{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.a,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(F),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&V(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(F),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=H(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=B(this._overlayRef.getConfig().minHeight),o=B(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=H(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Object(l.d)(n.height),i.top=Object(l.d)(n.top),i.bottom=Object(l.d)(n.bottom),i.width=Object(l.d)(n.width),i.left=Object(l.d)(n.left),i.right=Object(l.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Object(l.d)(t)),s&&(i.maxWidth=Object(l.d)(s))}this._lastBoundingBoxSize=n,V(this._boundingBox.style,i)}_resetBoundingBoxStyles(){V(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){V(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();V(n,this._getExactOverlayY(e,t,i)),V(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=Object(l.d)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=Object(l.d)(r.maxWidth):s&&(n.maxWidth="")),V(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=Object(l.d)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=Object(l.d)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:O(t,n),isOriginOutsideView:S(t,n),isOverlayClipped:O(e,n),isOverlayOutsideView:S(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Object(l.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.m)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function V(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function B(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(L);return n&&"px"!==n?null:parseFloat(e)}return t||null}function H(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class z{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new M(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new T(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const U="cdk-global-overlay-wrapper";class ${constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(U),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(U),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let W=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new $}connectedTo(t,e,n){return new z(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new M(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.e),s.bc(a.d),s.bc(r.a),s.bc(D))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.e),Object(s.bc)(a.d),Object(s.bc)(r.a),Object(s.bc)(D))},token:t,providedIn:"root"}),t})(),q=0,X=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new E(t);return s.direction=s.direction||this._directionality.value,new N(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+q++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new c.d(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(k),s.bc(D),s.bc(s.k),s.bc(W),s.bc(R),s.bc(s.u),s.bc(s.C),s.bc(a.d),s.bc(o.b),s.bc(a.g),s.bc(I))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const G=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Z=new s.t("cdk-connected-overlay-scroll-strategy");let K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Y=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.a.EMPTY,this._attachSubscription=h.a.EMPTY,this._detachSubscription=h.a.EMPTY,this._positionSubscription=h.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.p,this.positionChange=new s.p,this.attach=new s.p,this.detach=new s.p,this.overlayKeydown=new s.p,this.overlayOutsideClick=new s.p,this._templatePortal=new c.f(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(l.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(l.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(l.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(l.c)(t)}get push(){return this._push}set push(t){this._push=Object(l.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=G);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==_.g||this.disableClose||Object(_.s)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new E({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new g(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(X),s.Rb(s.O),s.Rb(s.S),s.Rb(Z),s.Rb(o.b,8))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.Db]}),t})();const Q={provide:Z,deps:[X],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let J=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({providers:[X,Q],imports:[[o.a,c.e,i.d],i.d]}),t})()},sxot:function(t,e,n){"use strict";n.d(e,"f",function(){return r}),n.d(e,"h",function(){return o}),n.d(e,"i",function(){return a}),n.d(e,"j",function(){return l}),n.d(e,"d",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"k",function(){return h}),n.d(e,"g",function(){return d}),n.d(e,"e",function(){return p}),n.d(e,"b",function(){return f}),n.d(e,"a",function(){return m});var i=n("mrSG"),s=n("AcyG");let r=(()=>{class t{constructor(t){this.isAceAllowed=t}}return t.type="[App-State] Setting IsAceAllowed",t})(),o=(()=>{class t{constructor(t){this.screens=t}}return t.type="[App-State] Set ScreenModel",t})(),a=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Selected ScreenModel",t})(),l=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Update ScreenModel",t})(),c=(()=>{class t{constructor(t){this.screenName=t}}return t.type="[App-State] Delete ScreenModel",t})(),u=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Create ScreenModel",t})(),h=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Update Statuses",t})(),d=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Is Loading",t})(),p=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Controlled Screen",t})(),f=(()=>{class t{constructor(){}}return t.type="[App-State] Clear Selected Screen",t})(),m=(()=>{let t=class{static isAceAllowed(t){return t.isAceAllowed}static getScreens(t){return t.screens}static getStatuses(t){return t.screenStatus}static getControlledScreen(t){return t.screenStatus.find(e=>e.screenName===t.controlledScreen)}static getSelectedScreen(t){return t.selectedScreen}static isLoading(t){return t.isLoading}setIsLoading(t,{payload:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{isLoading:e}))}deleteScreen({getState:t,setState:e},{screenName:n}){const i=t(),s=i.screens.filter(t=>t.name!==n);e(Object.assign(Object.assign({},i),{screens:s}))}updateStatuses(t,{payload:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{screenStatus:e}))}clearControlledScreen(t,{}){const e=t.getState();t.setState(Object.assign(Object.assign({},e),{controlledScreen:""}))}updateScreen({getState:t,setState:e},{payload:n}){const i=t(),s=[...i.screens],r=s.findIndex(t=>t.id===n.id);s[r]=n,e(Object.assign(Object.assign({},i),{screens:s}))}createScreen({getState:t,setState:e},{payload:n}){const i=t(),s=[...i.screens];s.push(n),e(Object.assign(Object.assign({},i),{screens:s}))}setControlledScreen(t,{payload:e}){const n=t.getState(),i=[...n.screenStatus].findIndex(t=>t.screenName===e);t.setState(Object.assign(Object.assign({},n),{controlledScreen:n.screenStatus[i].screenName}))}setSelectedScreen({getState:t,setState:e},{payload:n}){const i=t();e(Object.assign(Object.assign({},i),{selectedScreen:n}))}addScreen(t,{screens:e}){var n;t.setState((n={screens:e},function(t){let e=null;for(const i in n){const s=n[i],r=t[i],o="function"==typeof s?s(r):s;o!==r&&(e||(e=Object.assign({},t)),e[i]=o)}return e||t}))}setIsAceAllowed(t,{isAceAllowed:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{isAceAllowed:e}))}};return Object(i.a)([Object(s.a)(d)],t.prototype,"setIsLoading",null),Object(i.a)([Object(s.a)(c)],t.prototype,"deleteScreen",null),Object(i.a)([Object(s.a)(h)],t.prototype,"updateStatuses",null),Object(i.a)([Object(s.a)(f)],t.prototype,"clearControlledScreen",null),Object(i.a)([Object(s.a)(l)],t.prototype,"updateScreen",null),Object(i.a)([Object(s.a)(u)],t.prototype,"createScreen",null),Object(i.a)([Object(s.a)(p)],t.prototype,"setControlledScreen",null),Object(i.a)([Object(s.a)(a)],t.prototype,"setSelectedScreen",null),Object(i.a)([Object(s.a)(o)],t.prototype,"addScreen",null),Object(i.a)([Object(s.a)(r)],t.prototype,"setIsAceAllowed",null),Object(i.a)([Object(s.e)()],t,"isAceAllowed",null),Object(i.a)([Object(s.e)()],t,"getScreens",null),Object(i.a)([Object(s.e)()],t,"getStatuses",null),Object(i.a)([Object(s.e)()],t,"getControlledScreen",null),Object(i.a)([Object(s.e)()],t,"getSelectedScreen",null),Object(i.a)([Object(s.e)()],t,"isLoading",null),t=Object(i.a)([Object(s.f)({name:"app",defaults:{isAceAllowed:!1,screens:[],selectedScreen:null,screenStatus:null,isLoading:!1,controlledScreen:""}})],t),t})()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",function(){return k}),n.d(e,"b",function(){return H}),n.d(e,"c",function(){return d});var i=n("fXoL"),s=n("LRne"),r=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("ofXK");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(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,"/")}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,n,i){let s;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)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new y(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new C({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})}}class S extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({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})}}class O extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function x(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let k=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof y)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new y(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Object(s.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===n.observe)return r;const c=r.pipe(Object(a.a)(t=>t instanceof S));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));default:return c.pipe(Object(l.a)(t=>t.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,x(n,e))}post(t,e,n={}){return this.request("POST",t,x(n,e))}put(t,e,n={}){return this.request("PUT",t,x(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(u))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const T=new i.t("HTTP_INTERCEPTORS");let A=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const j=/^\)\]\}',?\n/;class R{}let I=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new C({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(j,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new S({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new O({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new O({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:v.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(R))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const D=new i.t("XSRF_COOKIE_NAME"),N=new i.t("XSRF_HEADER_NAME");class F{}let L=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.y)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c.d),i.bc(i.E),i.bc(D))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(F),i.bc(N))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(T,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(h),i.bc(i.u))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:M,useClass:A}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:D,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({providers:[M,{provide:T,useExisting:M,multi:!0},{provide:F,useClass:L},{provide:D,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({providers:[k,{provide:u,useClass:V},P,{provide:h,useExisting:P},I,{provide:R,useExisting:I}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",function(){return mn}),n.d(e,"b",function(){return gn}),n.d(e,"c",function(){return bn}),n.d(e,"d",function(){return An}),n.d(e,"e",function(){return yn});var i=n("ofXK"),s=n("fXoL"),r=n("Cfvw"),o=n("LRne"),a=n("2Vo4"),l=n("itXk"),c=n("HDdC");const u=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var h=n("GyhO"),d=n("NXyV"),p=n("EY2u"),f=n("EQ5u"),m=n("XNiG"),g=n("lJxs"),b=n("eIep"),_=n("IzEk"),y=n("JX91"),v=n("7o/Q");function w(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new C(t,e,n))}}class C{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new S(t,this.accumulator,this.seed,this.hasSeed))}}class S extends v.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var O=n("pLZG"),x=n("JIr8"),k=n("bOdf"),E=n("4I5i");function T(t){return function(e){return 0===t?Object(p.b)():e.lift(new A(t))}}class A{constructor(t){if(this.total=t,this.total<0)throw new E.a}call(t,e){return e.subscribe(new j(t,this.total))}}class j extends v.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new I(t))}class I{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new P(t,this.errorFactory))}}class P extends v.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function D(){return new u}var N=n("xbPD"),F=n("SpAZ");function L(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(O.a)((e,n)=>t(e,n,i)):F.a,Object(_.a)(1),n?Object(N.a)(e):R(()=>new u))}var M=n("5+tZ"),V=n("vkgz"),B=n("x+ZX"),H=n("nYR2"),z=n("bHdf");class U{constructor(t,e){this.id=t,this.url=e}}class $ extends U{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class W extends U{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class q extends U{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class X extends U{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class G extends U{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Z extends U{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K extends U{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Y extends U{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q extends U{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class J{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class et{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class it{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ot="primary";class at{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function lt(t){return new at(t)}function ct(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ut(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function pt(t){return Array.prototype.concat.apply([],t)}function ft(t){return t.length>0?t[t.length-1]:null}function mt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function gt(t){return Object(s.vb)(t)?t:Object(s.wb)(t)?Object(r.a)(Promise.resolve(t)):Object(o.a)(t)}function bt(t,e,n){return n?function(t,e){return ht(t,e)}(t.queryParams,e.queryParams)&&_t(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>dt(t[n],e[n]))}(t.queryParams,e.queryParams)&&yt(t.root,e.root)}function _t(t,e){if(!Ot(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!_t(t.children[n],e.children[n]))return!1}return!0}function yt(t,e){return vt(t,e,e.segments)}function vt(t,e,n){if(t.segments.length>n.length)return!!Ot(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Ot(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!yt(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Ot(t.segments,i)&&!!t.children.primary&&vt(t.children.primary,e,s)}}class wt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){return Et.serialize(this)}}class Ct{constructor(t,e){this.segments=t,this.children=e,this.parent=null,mt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tt(this)}}class St{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=lt(this.parameters)),this._parameterMap}toString(){return Nt(this)}}function Ot(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class xt{}class kt{parse(t){const e=new Bt(t);return new wt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${At(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Rt(e)}=${Rt(t)}`).join("&"):`${Rt(e)}=${Rt(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Et=new kt;function Tt(t){return t.segments.map(t=>Nt(t)).join("/")}function At(t,e){if(!t.hasChildren())return Tt(t);if(e){const e=t.children.primary?At(t.children.primary,!1):"",n=[];return mt(t.children,(t,e)=>{e!==ot&&n.push(`${e}:${At(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return mt(t.children,(t,i)=>{i===ot&&(n=n.concat(e(t,i)))}),mt(t.children,(t,i)=>{i!==ot&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===ot?[At(t.children.primary,!1)]:[`${n}:${At(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Tt(t)}/${e[0]}`:`${Tt(t)}/(${e.join("//")})`}}function jt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rt(t){return jt(t).replace(/%3B/gi,";")}function It(t){return jt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pt(t){return decodeURIComponent(t)}function Dt(t){return Pt(t.replace(/\+/g,"%20"))}function Nt(t){return`${It(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${It(t)}=${It(e[t])}`).join("")}`;var e}const Ft=/^[^\/()?;=#]+/;function Lt(t){const e=t.match(Ft);return e?e[0]:""}const Mt=/^[^=?&#]+/,Vt=/^[^?&#]+/;class Bt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Ct(t,e)),n}parseSegment(){const t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new St(Pt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Lt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Lt(this.remaining);t&&(n=t,this.capture(n))}t[Pt(e)]=Pt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Mt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Vt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Dt(e),s=Dt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Lt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=ot);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Ct([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ht{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=zt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=zt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ut(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ut(t,this._root).map(t=>t.value)}}function zt(t,e){if(t===e.value)return e;for(const n of e.children){const e=zt(t,n);if(e)return e}return null}function Ut(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Ut(t,n);if(i.length)return i.unshift(e),i}return[]}class $t{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Wt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class qt extends Ht{constructor(t,e){super(t),this.snapshot=e,Qt(this,t)}toString(){return this.snapshot.toString()}}function Xt(t,e){const n=function(t,e){const n=new Kt([],{},{},"",{},ot,e,null,t.root,-1,{});return new Yt("",new $t(n,[]))}(t,e),i=new a.a([new St("",{})]),s=new a.a({}),r=new a.a({}),o=new a.a({}),l=new a.a(""),c=new Gt(i,s,o,l,r,ot,e,n.root);return c.snapshot=n.root,new qt(new $t(c,[]),n)}class Gt{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(g.a)(t=>lt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(g.a)(t=>lt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Zt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Kt{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yt extends Ht{constructor(t,e){super(e),this.url=t,Qt(this,e)}toString(){return Jt(this._root)}}function Qt(t,e){e.value._routerState=t,e.children.forEach(e=>Qt(t,e))}function Jt(t){const e=t.children.length>0?` { ${t.children.map(Jt).join(", ")} } `:"";return`${t.value}${e}`}function te(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ht(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ht(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nht(t.parameters,s[e].parameters));var i,s;return n&&!(!t.parent!=!e.parent)&&(!t.parent||ee(t.parent,e.parent))}function ne(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return ne(t,e,i);return ne(t,e)})}(t,e,n);return new $t(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ie(e,t),t}}const n=new Gt(new a.a((i=e.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),s=e.children.map(e=>ne(t,e));return new $t(n,s)}var i}function ie(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new wt(n.root===t?e:ae(n.root,t,e),r,s)}function ae(t,e,n){const i={};return mt(t.children,(t,s)=>{i[s]=t===e?n:ae(t,e,n)}),new Ct(t.segments,i)}class le{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&se(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(re);if(i&&i!==ft(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ce{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ue(t,e,n){if(t||(t=new Ct([],{})),0===t.segments.length&&t.hasChildren())return he(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(re(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!me(a,l,e))return r;i+=2}else{if(!me(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=ue(t.children[i],e,n))}),mt(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Ct(t.segments,s)}}function de(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=de(new Ct([],{}),0,t))}),e}function fe(t){const e={};return mt(t,(t,n)=>e[n]=`${t}`),e}function me(t,e,n){return t==n.path&&ht(e,n.parameters)}class ge{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),te(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Wt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),mt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=Wt(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Wt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new st(t.value.snapshot))}),t.children.length&&this.forwardEvent(new nt(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(te(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),be(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function be(t){te(t.value),t.children.forEach(be)}class _e{constructor(t,e){this.routes=t,this.module=e}}function ye(t){return"function"==typeof t}function ve(t){return t instanceof wt}const we=Symbol("INITIAL_VALUE");function Ce(){return Object(b.a)(t=>Object(l.a)(t.map(t=>t.pipe(Object(_.a)(1),Object(y.a)(we)))).pipe(w((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==we)return t;if(i===we&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||ve(i))return i}return t},t)},we),Object(O.a)(t=>t!==we),Object(g.a)(t=>ve(t)?t:!0===t),Object(_.a)(1)))}let Se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Sb(0,"router-outlet")},directives:function(){return[yn]},encapsulation:2}),t})();function Oe(t,e=""){for(let n=0;nTe(t)===e);return n.push(...t.filter(t=>Te(t)!==e)),n}const je={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Re(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},je):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||ut)(n,t,e);if(!s)return Object.assign({},je);const r={};mt(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Ie(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Pe(t,e,n)&&Te(n)!==ot)}(t,n,i)){const s=new Ct(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Te(r)!==ot){const n=new Ct([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Te(r)]=n}return s}(t,e,i,new Ct(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Pe(t,e,n))}(t,n,i)){const r=new Ct(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Pe(t,n,a)&&!s[Te(a)]){const n=new Ct([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Te(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Ct(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Pe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function De(t,e,n,i){return!!(Te(t)===i||i!==ot&&Pe(e,n,t))&&("**"===t.path||Re(e,t,n).matched)}function Ne(t,e,n){return 0===e.length&&!t.children[n]}class Fe{constructor(t){this.segmentGroup=t||null}}class Le{constructor(t){this.urlTree=t}}function Me(t){return new c.a(e=>e.error(new Fe(t)))}function Ve(t){return new c.a(e=>e.error(new Le(t)))}function Be(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class He{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.A)}apply(){const t=Ie(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ct(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ot).pipe(Object(g.a)(t=>this.createUrlTree(ze(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(x.a)(t=>{if(t instanceof Le)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Fe)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ot).pipe(Object(g.a)(e=>this.createUrlTree(ze(e),t.queryParams,t.fragment))).pipe(Object(x.a)(t=>{if(t instanceof Fe)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Ct([],{[ot]:t}):t;return new wt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(g.a)(t=>new Ct([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return Object(r.a)(i).pipe(Object(k.a)(i=>{const s=n.children[i],r=Ae(e,i);return this.expandSegmentGroup(t,r,s,i).pipe(Object(g.a)(t=>({segment:t,outlet:i})))}),w((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(O.a)((e,n)=>t(e,n,i)):F.a,T(1),n?Object(N.a)(e):R(()=>new u))}())}expandSegment(t,e,n,i,s,a){return Object(r.a)(n).pipe(Object(k.a)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,a).pipe(Object(x.a)(t=>{if(t instanceof Fe)return Object(o.a)(null);throw t}))),L(t=>!!t),Object(x.a)((t,n)=>{if(t instanceof u||"EmptyError"===t.name){if(Ne(e,i,s))return Object(o.a)(new Ct([],{}));throw new Fe(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return De(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Me(e):Me(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ve(s):this.lineralizeSegments(n,s).pipe(Object(M.a)(n=>{const s=new Ct(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Re(e,i,s);if(!o)return Me(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ve(u):this.lineralizeSegments(i,u).pipe(Object(M.a)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(o.a)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(Object(g.a)(t=>(n._loadedConfig=t,new Ct(i,{})))):Object(o.a)(new Ct(i,{}));const{matched:r,consumedSegments:a,lastChild:l}=Re(e,n,i);if(!r)return Me(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(M.a)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=Ie(e,a,c,r),h=new Ct(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe(Object(g.a)(t=>new Ct(a,t)));if(0===r.length&&0===u.length)return Object(o.a)(new Ct(a,{}));const d=Te(n)===s;return this.expandSegment(i,h,r,u,d?ot:s,!0).pipe(Object(g.a)(t=>new Ct(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(o.a)(new _e(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(o.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(M.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(g.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(ct(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(o.a)(new _e([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return Object(o.a)(!0);const s=i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&ye(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!ye(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return gt(r)});return Object(o.a)(s).pipe(Ce(),Object(V.a)(t=>{if(!ve(t))return;const e=ct(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(g.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(o.a)(n);if(i.numberOfChildren>1||!i.children.primary)return Be(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new wt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return mt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return mt(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Ct(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function ze(t){const e={};for(const n of Object.keys(t.children)){const i=ze(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Ct(t.segments.concat(e.segments),e.children)}return t}(new Ct(t.segments,e))}class Ue{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $e{constructor(t,e){this.component=t,this.route=e}}function We(t,e,n){const i=t._root;return Xe(i,e?e._root:null,n,[i.value])}function qe(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Xe(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Wt(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ot(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ot(t.url,e.url)||!ht(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ee(t,e)||!ht(t.queryParams,e.queryParams);default:return!ee(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Ue(i)):(r.data=o.data,r._resolvedData=o._resolvedData),Xe(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new $e(a.outlet.component,o))}else o&&Ge(e,a,s),s.canActivateChecks.push(new Ue(i)),Xe(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),mt(r,(t,e)=>Ge(t,n.getContext(e),s)),s}function Ge(t,e,n){const i=Wt(t),s=t.value;mt(i,(t,i)=>{Ge(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new $e(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Ze{}function Ke(t){return new c.a(e=>e.error(t))}class Ye{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Ie(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ot);if(null===e)return null;const n=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ot,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new $t(n,e),s=new Yt(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Zt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Ae(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=Je(n);return i.sort((t,e)=>t.value.outlet===ot?-1:e.value.outlet===ot?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return Ne(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!De(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?ft(n).parameters:{};s=new Kt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,nn(t),Te(t),t.component,t,tn(e),en(e)+n.length,sn(t))}else{const i=Re(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new Kt(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,nn(t),Te(t),t.component,t,tn(e),en(e)+r.length,sn(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Ie(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new $t(s,t)]}if(0===a.length&&0===c.length)return[new $t(s,[])];const u=Te(t)===i,h=this.processSegment(a,l,c,u?ot:i);return null===h?null:[new $t(s,h)]}}function Qe(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Je(t){const e=[],n=new Set;for(const i of t){if(!Qe(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=Je(i.children);e.push(new $t(i.value,t))}return e.filter(t=>!n.has(t))}function tn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function en(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function nn(t){return t.data||{}}function sn(t){return t.resolve||{}}function rn(t){return Object(b.a)(e=>{const n=t(e);return n?Object(r.a)(n).pipe(Object(g.a)(()=>e)):Object(o.a)(e)})}class on extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const an=new s.t("ROUTES");class ln{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(Object(g.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new _e(pt(i.injector.get(an,void 0,s.s.Self|s.s.Optional)).map(Ee),i)}),Object(x.a)(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.a(n,()=>new m.a).pipe(Object(B.a)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?Object(r.a)(this.loader.load(t)):gt(t()).pipe(Object(M.a)(t=>t instanceof s.y?Object(o.a)(t):Object(r.a)(this.compiler.compileModuleAsync(t))))}}class cn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new un,this.attachRef=null}}class un{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new cn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class hn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function dn(t){throw t}function pn(t,e,n){return e.parse("/")}function fn(t,e){return Object(o.a)(null)}let mn=(()=>{class t{constructor(t,e,n,i,r,o,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new m.a,this.errorHandler=dn,this.malformedUriErrorHandler=pn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fn,afterPreactivation:fn},this.urlHandlingStrategy=new hn,this.routeReuseStrategy=new on,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(s.A),this.console=r.get(s.cb);const u=r.get(s.C);this.isNgZoneEnabled=u instanceof s.C&&s.C.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new wt(new Ct([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ln(o,l,t=>this.triggerEvent(new J(t)),t=>this.triggerEvent(new tt(t))),this.routerState=Xt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(O.a)(t=>0!==t.id),Object(g.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(b.a)(t=>{let n=!1,i=!1;return Object(o.a)(t).pipe(Object(V.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(b.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(o.a)(t).pipe(Object(b.a)(t=>{const n=this.transitions.getValue();return e.next(new $(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.a:Promise.resolve(t)}),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,a=this.config,Object(b.a)(t=>function(t,e,n,i,s){return new He(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,a).pipe(Object(g.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),Object(V.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return Object(M.a)(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const a=new Ye(t,e,n,i,s,r).recognize();return null===a?Ke(new Ze):Object(o.a)(a)}catch(a){return Ke(a)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(Object(g.a)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(V.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:a}=t,l=new $(n,this.serializeUrl(i),s,r);e.next(l);const c=Xt(i,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.a}),rn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(V.a)(t=>{const e=new Z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(g.a)(t=>Object.assign(Object.assign({},t),{guards:We(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return Object(M.a)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(o.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(r.a)(t).pipe(Object(M.a)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(o.a)(!0);const a=r.map(r=>{const o=qe(r,e,s);let a;if(function(t){return t&&ye(t.canDeactivate)}(o))a=gt(o.canDeactivate(t,e,n,i));else{if(!ye(o))throw new Error("Invalid CanDeactivate guard");a=gt(o(t,e,n,i))}return a.pipe(L())});return Object(o.a)(a).pipe(Ce())}(t.component,t.route,n,e,i)),L(t=>!0!==t,!0))}(l,i,s,t).pipe(Object(M.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(r.a)(e).pipe(Object(k.a)(e=>Object(h.a)(function(t,e){return null!==t&&e&&e(new et(t)),Object(o.a)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new it(t)),Object(o.a)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(d.a)(()=>{const s=e.guards.map(s=>{const r=qe(s,e.node,n);let o;if(function(t){return t&&ye(t.canActivateChild)}(r))o=gt(r.canActivateChild(i,t));else{if(!ye(r))throw new Error("Invalid CanActivateChild guard");o=gt(r(i,t))}return o.pipe(L())});return Object(o.a)(s).pipe(Ce())}));return Object(o.a)(s).pipe(Ce())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(o.a)(!0);const s=i.map(i=>Object(d.a)(()=>{const s=qe(i,e,n);let r;if(function(t){return t&&ye(t.canActivate)}(s))r=gt(s.canActivate(e,t));else{if(!ye(s))throw new Error("Invalid CanActivate guard");r=gt(s(e,t))}return r.pipe(L())}));return Object(o.a)(s).pipe(Ce())}(t,e.route,n))),L(t=>!0!==t,!0))}(i,a,t,e):Object(o.a)(n)),Object(g.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(V.a)(t=>{if(ve(t.guardsResult)){const e=ct(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(O.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new q(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),rn(t=>{if(t.guards.canActivateChecks.length)return Object(o.a)(t).pipe(Object(V.a)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(b.a)(t=>{let n=!1;return Object(o.a)(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,Object(M.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(o.a)(t);let a=0;return Object(r.a)(n).pipe(Object(k.a)(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Object(o.a)({});const a={};return Object(r.a)(s).pipe(Object(M.a)(s=>function(t,e,n,i){const s=qe(t,e,i);return gt(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(Object(V.a)(t=>{a[s]=t}))),T(1),Object(M.a)(()=>Object.keys(a).length===s.length?Object(o.a)(a):p.a))}(t._resolve,t,e,i).pipe(Object(g.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Zt(t,n).resolve),null)))}(t.route,e,i,s)),Object(V.a)(()=>a++),T(1),Object(M.a)(e=>a===n.length?Object(o.a)(t):p.a))})),Object(V.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new q(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),Object(V.a)(t=>{const e=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),rn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(g.a)(t=>{const e=function(t,e,n){const i=ne(t,e._root,n?n._root:void 0);return new qt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(V.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(g.a)(t=>(new ge(a,t.targetRouterState,t.currentRouterState,l).activate(s),t))),Object(V.a)({next(){n=!0},complete(){n=!0}}),Object(H.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new q(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(x.a)(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=ve(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new q(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new X(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return p.a}));var s,a,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Oe(t),this.config=t.map(Ee),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return oe(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new le(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return mt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new le(n,e,i)}(n);if(r.toRoot())return oe(e.root,new Ct([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new ce(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ce(t,t===e.root,0)}const i=se(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new ce(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?he(o.segmentGroup,o.index,r.commands):ue(o.segmentGroup,o.index,r.commands);return oe(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=ve(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new W(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;s?(l=s.resolve,c=s.reject,u=s.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.Q),s.bc(xt),s.bc(un),s.bc(i.g),s.bc(s.u),s.bc(s.z),s.bc(s.j),s.bc(void 0))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),gn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.a,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:_n(this.skipLocationChange),replaceUrl:_n(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_n(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(mn),s.Rb(Gt),s.cc("tabindex"),s.Rb(s.H),s.Rb(s.m))},t.\u0275dir=s.Mb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.ec("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.Db]}),t})(),bn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.a,this.subscription=t.events.subscribe(t=>{t instanceof W&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:_n(this.skipLocationChange),replaceUrl:_n(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_n(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(mn),s.Rb(Gt),s.Rb(i.h))},t.\u0275dir=s.Mb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.ec("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.ac("href",e.href,s.vc),s.Gb("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.Db]}),t})();function _n(t){return""===t||!!t}let yn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.p,this.deactivateEvents=new s.p,this.name=i||ot,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new vn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(un),s.Rb(s.S),s.Rb(s.k),s.cc("name"),s.Rb(s.i))},t.\u0275dir=s.Mb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class vn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Gt?this.route:t===un?this.childContexts:this.parent.get(t,e)}}class wn{}class Cn{preload(t,e){return Object(o.a)(null)}}let Sn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new ln(e,n,e=>t.triggerEvent(new J(e)),e=>t.triggerEvent(new tt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(O.a)(t=>t instanceof W),Object(k.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.A);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(r.a)(n).pipe(Object(z.a)(),Object(g.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Object(o.a)(e._loadedConfig):this.loader.load(t.injector,e)).pipe(Object(M.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(mn),s.bc(s.z),s.bc(s.j),s.bc(s.u),s.bc(wn))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),On=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof $?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof W&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof rt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new rt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.bc(mn),s.bc(i.s),s.bc(void 0))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const xn=new s.t("ROUTER_CONFIGURATION"),kn=new s.t("ROUTER_FORROOT_GUARD"),En=[i.g,{provide:xt,useClass:kt},{provide:mn,useFactory:function(t,e,n,s,r,o,a,l={},c,u){const h=new mn(null,t,e,n,s,r,o,pt(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(l,h),l.enableTracing){const t=Object(i.x)();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[xt,un,i.g,s.u,s.z,s.j,an,xn,[class{},new s.D],[class{},new s.D]]},un,{provide:Gt,useFactory:function(t){return t.routerState.root},deps:[mn]},{provide:s.z,useClass:s.N},Sn,Cn,class{preload(t,e){return e().pipe(Object(x.a)(()=>Object(o.a)(null)))}},{provide:xn,useValue:{enableTracing:!1}}];function Tn(){return new s.B("Router",mn)}let An=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[En,Pn(e),{provide:kn,useFactory:In,deps:[[mn,new s.D,new s.M]]},{provide:xn,useValue:n||{}},{provide:i.h,useFactory:Rn,deps:[i.r,[new s.r(i.a),new s.D],xn]},{provide:On,useFactory:jn,deps:[mn,i.s,xn]},{provide:wn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Cn},{provide:s.B,multi:!0,useFactory:Tn},[Dn,{provide:s.d,multi:!0,useFactory:Nn,deps:[Dn]},{provide:Ln,useFactory:Fn,deps:[Dn]},{provide:s.b,multi:!0,useExisting:Ln}]]}}static forChild(e){return{ngModule:t,providers:[Pn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(kn,8),s.bc(mn,8))},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({}),t})();function jn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new On(t,e,n)}function Rn(t,e,n={}){return n.useHash?new i.e(t,e):new i.q(t,e)}function In(t){return"guarded"}function Pn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:an,multi:!0,useValue:t}]}let Dn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new m.a}appInitializer(){return this.injector.get(i.f,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(mn),i=this.injector.get(xn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(o.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(xn),n=this.injector.get(Sn),i=this.injector.get(On),r=this.injector.get(mn),o=this.injector.get(s.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.u))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();function Nn(t){return t.appInitializer.bind(t)}function Fn(t){return t.bootstrapListener.bind(t)}const Ln=new s.t("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",function(){return X}),n.d(e,"b",function(){return E}),n.d(e,"c",function(){return S}),n.d(e,"d",function(){return T}),n.d(e,"e",function(){return H}),n.d(e,"f",function(){return P}),n.d(e,"g",function(){return q}),n.d(e,"h",function(){return F}),n.d(e,"i",function(){return L}),n.d(e,"j",function(){return M});var i=n("ofXK"),s=n("fXoL"),r=n("XNiG"),o=n("quSY"),a=n("LRne"),l=n("FtGj"),c=n("vkgz"),u=n("Kj3r"),h=n("pLZG"),d=n("lJxs"),p=n("IzEk"),f=n("8LU1"),m=n("nLfN"),g=n("GU7r");function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const _="cdk-describedby-message-container",y="cdk-describedby-host";let v=0;const w=new Map;let C=null,S=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=O(e,n);"string"!=typeof e?(x(e),w.set(i,{messageElement:e,referenceCount:0})):w.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=O(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=w.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}C&&0===C.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=w.get(e);!function(t,e,n){const i=b(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(y,""),n.referenceCount++}_removeMessageReference(t,e){const n=w.get(e);n.referenceCount--,function(t,e,n){const i=b(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(y)}_isElementDescribedByMessage(t,e){const n=b(t,"aria-describedby"),i=w.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})();function O(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function x(t){t.id||(t.id="cdk-describedby-message-"+v++)}class k{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.a,this._typeaheadSubscription=o.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.a,this.change=new r.a,t instanceof s.G&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(c.a)(t=>this._pressedLetters.push(t)),Object(u.a)(t),Object(h.a)(()=>this._pressedLetters.length>0),Object(d.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.o:return void this.tabOut.next();case l.d:if(this._vertical&&n){this.setNextItemActive();break}return;case l.p:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.m:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.i:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.h:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.e:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(l.s)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.q||e>=l.r&&e<=l.j)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.G?this._items.toArray():this._items}}class E extends k{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class T extends k{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let A=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===R(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=R(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||j(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(m.a))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(m.a))},token:t,providedIn:"root"}),t})();function j(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function R(t){if(!j(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(t)}}let P=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(A),s.bc(s.C),s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(A),Object(s.bc)(s.C),Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const D=new s.t("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),N=new s.t("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let F=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=L(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{M(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=z(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=z(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=Object(f.e)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(a.a)(null);const i=Object(m.c)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.a,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Object(f.e)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=Object(f.e)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=z(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===z(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,B),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,B)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,B),t.addEventListener("mousedown",this._documentMousedownListener,B),t.addEventListener("touchstart",this._documentTouchstartListener,B),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,B),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,B),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,B),t.removeEventListener("mousedown",this._documentMousedownListener,B),t.removeEventListener("touchstart",this._documentTouchstartListener,B),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.C),s.bc(m.a),s.bc(i.d,8),s.bc(V,8))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(s.C),Object(s.bc)(m.a),Object(s.bc)(i.d,8),Object(s.bc)(V,8))},token:t,providedIn:"root"}),t})();function z(t){return t.composedPath?t.composedPath()[0]:t.target}const U="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",W="cdk-high-contrast-active";let q=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(W),t.remove(U),t.remove($);const e=this.getHighContrastMode();1===e?(t.add(W),t.add(U)):2===e&&(t.add(W),t.add($))}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(m.a),s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(m.a),Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.bc(q))},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[m.b,g.c]]}),t})()},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q");function s(){}var r=n("n6bG");function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.a{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,Object(r.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},vxfF:function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return _}),n.d(e,"c",function(){return m}),n.d(e,"d",function(){return y}),n.d(e,"e",function(){return b});var i=n("8LU1"),s=n("fXoL"),r=n("XNiG"),o=n("LRne"),a=n("HDdC"),l=n("xgIS");n("3N8a"),n("IjjT"),n("quSY"),n("7+OI"),n("/uUt");var c=n("3UWI"),u=n("pLZG"),h=n("1G5W");n("JX91"),n("7o/Q"),n("eIep"),n("UXun");var d=n("nLfN"),p=n("ofXK"),f=n("cH1L");n("0EQZ");let m=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(c.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(o.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(u.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=Object(i.e)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(l.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.C),s.bc(d.a),s.bc(p.d,8))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(s.C),Object(s.bc)(d.a),Object(s.bc)(p.d,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new r.a,this._elementScrolled=new a.a(t=>this.ngZone.runOutsideAngular(()=>Object(l.a)(this.elementRef.nativeElement,"scroll").pipe(Object(h.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(d.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(d.d)()?t.left=t.right:1==Object(d.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(d.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",n="right",i=this.elementRef.nativeElement;if("top"==t)return i.scrollTop;if("bottom"==t)return i.scrollHeight-i.clientHeight-i.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?n:e:"end"==t&&(t=s?e:n),s&&2==Object(d.d)()?t==e?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&1==Object(d.d)()?t==e?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:t==e?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(m),s.Rb(s.C),s.Rb(f.b,8))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),b=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new r.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(c.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(d.a),s.bc(s.C),s.bc(p.d,8))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(d.a),Object(s.bc)(s.C),Object(s.bc)(p.d,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[f.a,d.b,_],f.a,_]}),t})()},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("EQ5u"),s=n("x+ZX"),r=n("XNiG");function o(){return new r.a}function a(){return t=>{return Object(s.a)()((e=o,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,i.b);return s.source=t,s.subjectFactory=n,s})(t));var e}}},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},xbPD:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t=null){return e=>e.lift(new r(t))}class r{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends i.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("DH7j"),r=n("n6bG"),o=n("lJxs");function a(t,e,n,c){return Object(r.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(o.a)(t=>Object(s.a)(t)?c(...t):c(t))):new i.a(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;re.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("jhN1"),s=n("fXoL"),r=n("tyNb");const o=[{path:"quick-play",loadChildren:()=>n.e(1).then(n.bind(null,"hh/h")).then(t=>t.QuickPlayModule)},{path:"screens",loadChildren:()=>Promise.all([n.e(2),n.e(1),n.e(6)]).then(n.bind(null,"uBXI")).then(t=>t.ScreensModule)},{path:"status",loadChildren:()=>Promise.all([n.e(2),n.e(7)]).then(n.bind(null,"VePF")).then(t=>t.StatusModule)}];let a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[r.d.forRoot(o,{useHash:!0,relativeLinkResolution:"legacy"})],r.d]}),t})();var l=n("sxot"),c=n("tk/3"),u=n("AcyG"),h=n("rDax"),d=n("+rOU"),p=n("ofXK"),f=n("FKr1"),m=n("bTqV"),g=n("XNiG"),b=n("IzEk"),_=n("1G5W"),y=n("R0Ic"),v=n("u47x"),w=n("0MNC"),C=n("nLfN");function S(t,e){if(1&t){const t=s.Yb();s.Xb(0,"div",1),s.Xb(1,"button",2),s.ec("click",function(){return s.tc(t),s.ic().action()}),s.Cc(2),s.Wb(),s.Wb()}if(2&t){const t=s.ic();s.Fb(2),s.Dc(t.data.action)}}function O(t,e){}const x=new s.t("MatSnackBarData");class k{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const E=Math.pow(2,31)-1;class T{constructor(t,e){this._overlayRef=e,this._afterDismissed=new g.a,this._afterOpened=new g.a,this._onAction=new g.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,E))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let A=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(T),s.Rb(x))},t.\u0275cmp=s.Lb({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(s.Xb(0,"span"),s.Cc(1),s.Wb(),s.Ac(2,S,3,1,"div",0)),2&t&&(s.Fb(1),s.Dc(e.data.message),s.Fb(1),s.nc("ngIf",e.hasAction))},directives:[p.k,m.b],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const j={snackBarState:Object(y.m)("state",[Object(y.j)("void, hidden",Object(y.k)({transform:"scale(0.8)",opacity:0})),Object(y.j)("visible",Object(y.k)({transform:"scale(1)",opacity:1})),Object(y.l)("* => visible",Object(y.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(y.l)("* => void, * => hidden",Object(y.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(y.k)({opacity:0})))])};let R=(()=>{class t extends d.a{constructor(t,e,n,i,s){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this._platform=i,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new g.a,this._onExit=new g.a,this._onEnter=new g.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Object(b.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let n=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(n=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==n||n.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.C),s.Rb(s.m),s.Rb(s.i),s.Rb(C.a),s.Rb(k))},t.\u0275cmp=s.Lb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&s.Gc(d.b,3),2&t){let t;s.pc(t=s.fc())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&s.yc("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&s.zc("@state",e._animationState)},features:[s.Cb],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(s.Xb(0,"div",0),s.Ac(1,O,0,0,"ng-template",1),s.Wb(),s.Sb(2,"div")),2&t&&(s.Fb(2),s.Gb("aria-live",e._live)("role",e._role))},directives:[d.b],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[j.snackBarState]}}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[h.f,d.e,p.c,m.c,f.e],f.e]}),t})();const P=new s.t("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new k}});let D=(()=>{class t{constructor(t,e,n,i,s,r){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=s,this._defaultConfig=r,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=A,this.snackBarContainerComponent=R,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=s.u.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:k,useValue:e}]}),i=new d.c(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new k),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),o=new T(r,i);if(t instanceof s.O){const e=new d.f(t,null,{$implicit:n.data,snackBarRef:o});o.instance=r.attachTemplatePortal(e)}else{const e=this._createInjector(n,o),i=new d.c(t,void 0,e),s=r.attachComponentPortal(i);o.instance=s.instance}return this._breakpointObserver.observe(w.b.HandsetPortrait).pipe(Object(_.a)(i.detachments())).subscribe(t=>{const e=i.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),n.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){const e=new h.d;e.direction=t.direction;let n=this._overlay.position().global();const i="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,r=!s&&"center"!==t.horizontalPosition;return s?n.left("0"):r?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return s.u.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:T,useValue:e},{provide:x,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(s.bc(h.c),s.bc(v.h),s.bc(s.u),s.bc(w.a),s.bc(t,12),s.bc(P))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(h.c),Object(s.bc)(v.h),Object(s.bc)(s.q),Object(s.bc)(w.a),Object(s.bc)(t,12),Object(s.bc)(P))},token:t,providedIn:I}),t})();const N=/^v?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,F=t=>{if("string"!=typeof t)throw new TypeError("Invalid argument expected string");const e=t.match(N);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},L=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},M=(t,e)=>{const[n,i]=((t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e])(L(t),L(e));return n>i?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},H=Object.keys(B),z=["toast-component",""];function U(t,e){if(1&t){const t=s.Yb();s.Xb(0,"button",5),s.ec("click",function(){return s.tc(t),s.ic().remove()}),s.Xb(1,"span",6),s.Cc(2,"\xd7"),s.Wb(),s.Wb()}}function $(t,e){if(1&t&&(s.Vb(0),s.Cc(1),s.Ub()),2&t){const t=s.ic(2);s.Fb(1),s.Ec("[",t.duplicatesCount+1,"]")}}function W(t,e){if(1&t&&(s.Xb(0,"div"),s.Cc(1),s.Ac(2,$,2,1,"ng-container",4),s.Wb()),2&t){const t=s.ic();s.Hb(t.options.titleClass),s.Gb("aria-label",t.title),s.Fb(1),s.Ec(" ",t.title," "),s.Fb(1),s.nc("ngIf",t.duplicatesCount)}}function q(t,e){if(1&t&&s.Sb(0,"div",7),2&t){const t=s.ic();s.Hb(t.options.messageClass),s.nc("innerHTML",t.message,s.uc)}}function X(t,e){if(1&t&&(s.Xb(0,"div",8),s.Cc(1),s.Wb()),2&t){const t=s.ic();s.Hb(t.options.messageClass),s.Gb("aria-label",t.message),s.Fb(1),s.Ec(" ",t.message," ")}}function G(t,e){if(1&t&&(s.Xb(0,"div"),s.Sb(1,"div",9),s.Wb()),2&t){const t=s.ic();s.Fb(1),s.xc("width",t.width+"%")}}function Z(t,e){if(1&t){const t=s.Yb();s.Xb(0,"button",5),s.ec("click",function(){return s.tc(t),s.ic().remove()}),s.Xb(1,"span",6),s.Cc(2,"\xd7"),s.Wb(),s.Wb()}}function K(t,e){if(1&t&&(s.Vb(0),s.Cc(1),s.Ub()),2&t){const t=s.ic(2);s.Fb(1),s.Ec("[",t.duplicatesCount+1,"]")}}function Y(t,e){if(1&t&&(s.Xb(0,"div"),s.Cc(1),s.Ac(2,K,2,1,"ng-container",4),s.Wb()),2&t){const t=s.ic();s.Hb(t.options.titleClass),s.Gb("aria-label",t.title),s.Fb(1),s.Ec(" ",t.title," "),s.Fb(1),s.nc("ngIf",t.duplicatesCount)}}function Q(t,e){if(1&t&&s.Sb(0,"div",7),2&t){const t=s.ic();s.Hb(t.options.messageClass),s.nc("innerHTML",t.message,s.uc)}}function J(t,e){if(1&t&&(s.Xb(0,"div",8),s.Cc(1),s.Wb()),2&t){const t=s.ic();s.Hb(t.options.messageClass),s.Gb("aria-label",t.message),s.Fb(1),s.Ec(" ",t.message," ")}}function tt(t,e){if(1&t&&(s.Xb(0,"div"),s.Sb(1,"div",9),s.Wb()),2&t){const t=s.ic();s.Fb(1),s.xc("width",t.width+"%")}}class et{constructor(t,e,n,i,s,r){this.toastId=t,this.config=e,this.message=n,this.title=i,this.toastType=s,this.toastRef=r,this._onTap=new g.a,this._onAction=new g.a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const nt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},it=new s.t("ToastConfig");class st{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class rt extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=n.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let ot=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(s.bc(p.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(p.d))},token:t,providedIn:"root"}),t})();class at{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let lt=(()=>{class t{constructor(t,e,n,i){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=i,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new rt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new at(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(ot),s.bc(s.k),s.bc(s.g),s.bc(p.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(ot),Object(s.bc)(s.k),Object(s.bc)(s.g),Object(s.bc)(p.d))},token:t,providedIn:"root"}),t})();class ct{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new g.a,this._activate=new g.a,this._manualClose=new g.a,this._resetTimeout=new g.a,this._countDuplicate=new g.a}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class ut{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===et?this._toastPackage:this._parentInjector.get(t,e,n)}}let ht=(()=>{class t{constructor(t,e,n,i,s){this.overlay=e,this._injector=n,this.sanitizer=i,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},i=""){return this._preBuildNotification(i,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActivethis._buildNotification(t,e,n,i)):this._buildNotification(t,e,n,i)}_buildNotification(t,e,n,i){if(!i.toastComponent)throw new Error("toastComponent required");const r=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&null!==r)return r;this.previousToastMessage=e;let o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let l=e;e&&i.enableHtml&&(l=this.sanitizer.sanitize(s.L.HTML,e));const c=new ct(a),u=new et(this.index,i,l,n,t,c),h=new ut(u,this._injector),d=new st(i.toastComponent,h),p=a.attach(d,this.toastrConfig.newestOnTop);c.componentInstance=p.instance;const f={toastId:this.index,title:n||"",message:e||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:p};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{f.toastRef.activate()})),this.toasts.push(f),f}}return t.\u0275fac=function(e){return new(e||t)(s.bc(it),s.bc(lt),s.bc(s.u),s.bc(i.b),s.bc(s.C))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(it),Object(s.bc)(lt),Object(s.bc)(s.q),Object(s.bc)(i.b),Object(s.bc)(s.C))},token:t,providedIn:"root"}),t})(),dt=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(ht),s.Rb(et),s.Rb(s.C))},t.\u0275cmp=s.Lb({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&s.ec("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(s.zc("@flyInOut",e.state),s.Hb(e.toastClasses),s.xc("display",e.displayStyle))},attrs:z,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(s.Ac(0,U,3,0,"button",0),s.Ac(1,W,3,5,"div",1),s.Ac(2,q,1,3,"div",2),s.Ac(3,X,2,4,"div",3),s.Ac(4,G,2,2,"div",4)),2&t&&(s.nc("ngIf",e.options.closeButton),s.Fb(1),s.nc("ngIf",e.title),s.Fb(1),s.nc("ngIf",e.message&&e.options.enableHtml),s.Fb(1),s.nc("ngIf",e.message&&!e.options.enableHtml),s.Fb(1),s.nc("ngIf",e.options.progressBar))},directives:[p.k],encapsulation:2,data:{animation:[Object(y.m)("flyInOut",[Object(y.j)("inactive",Object(y.k)({opacity:0})),Object(y.j)("active",Object(y.k)({opacity:1})),Object(y.j)("removed",Object(y.k)({opacity:0})),Object(y.l)("inactive => active",Object(y.e)("{{ easeTime }}ms {{ easing }}")),Object(y.l)("active => removed",Object(y.e)("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const pt=Object.assign(Object.assign({},nt),{toastComponent:dt});let ft=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:it,useValue:{default:pt,config:e}}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[p.c]]}),t})(),mt=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(ht),s.Rb(et),s.Rb(s.g))},t.\u0275cmp=s.Lb({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,e){1&t&&s.ec("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(s.Hb(e.toastClasses),s.xc("display",e.displayStyle))},attrs:z,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(s.Ac(0,Z,3,0,"button",0),s.Ac(1,Y,3,5,"div",1),s.Ac(2,Q,1,3,"div",2),s.Ac(3,J,2,4,"div",3),s.Ac(4,tt,2,2,"div",4)),2&t&&(s.nc("ngIf",e.options.closeButton),s.Fb(1),s.nc("ngIf",e.title),s.Fb(1),s.nc("ngIf",e.message&&e.options.enableHtml),s.Fb(1),s.nc("ngIf",e.message&&!e.options.enableHtml),s.Fb(1),s.nc("ngIf",e.options.progressBar))},directives:[p.k],encapsulation:2}),t})();Object.assign(Object.assign({},nt),{toastComponent:mt});let gt=(()=>{class t{constructor(t,e){this.http=t,this.toastr=e,this.repoUrl="https://api.github.com/repos/thiago-dev/fivem-hypnonema/releases/latest"}check(t){this.getLatestRelease().subscribe(e=>{((t,e,n)=>{(t=>{if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+typeof t);if(-1===H.indexOf(t))throw new Error(`Invalid operator, expected one of ${H.join("|")}`)})(">");const i=function(t,e){const n=F(t),i=F(e),s=n.pop(),r=i.pop(),o=V(n,i);return 0!==o?o:s&&r?V(s.split("."),r.split(".")):s||r?s?-1:1:0}(t,e);return B[">"].includes(i)})(e.tag_name,t)&&this.toastr.warning("There is a new Update available. You may want to check it out if you want new features.",`Hypnonema Update ${e.tag_name} available!`,{timeOut:8e3,positionClass:"toast-top-right"})})}getHeaders(){const t=new c.c;return t.append("Content-Type","application/json"),t.append("User-Agent","Hypnonema"),t}getLatestRelease(){return this.http.get(this.repoUrl,{headers:this.getHeaders()})}}return t.\u0275fac=function(e){return new(e||t)(s.bc(c.a),s.bc(ht))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var bt=n("/rnm");const _t=["*",[["mat-toolbar-row"]]],yt=["*","mat-toolbar-row"];class vt{constructor(t){this._elementRef=t}}const wt=Object(f.q)(vt);let Ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),St=(()=>{class t extends wt{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(C.a),s.Rb(p.d))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Kb(n,Ct,1),2&t){let t;s.pc(t=s.fc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.Jb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.Cb],ngContentSelectors:yt,decls:2,vars:0,template:function(t,e){1&t&&(s.mc(_t),s.lc(0),s.lc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),Ot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[f.e],f.e]}),t})();var xt=n("NFeN");let kt=(()=>{class t{constructor(t){this.nuiService=t}ngOnInit(){}close(){this.nuiService.hideNUI()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(bt.a))},t.\u0275cmp=s.Lb({type:t,selectors:[["app-header"]],decls:6,vars:0,consts:[["color","primary"],["mat-button","",2,"right","75px","position","absolute",3,"click"]],template:function(t,e){1&t&&(s.Xb(0,"mat-toolbar",0),s.Xb(1,"span"),s.Cc(2,"Hypnonema"),s.Wb(),s.Xb(3,"button",1),s.ec("click",function(){return e.close()}),s.Xb(4,"mat-icon"),s.Cc(5,"close"),s.Wb(),s.Wb(),s.Wb())},directives:[St,m.b,xt.a],styles:[""]}),t})();var Et=n("lJxs"),Tt=n("UXun"),At=n("vxfF"),jt=n("8LU1"),Rt=n("FtGj"),It=n("xgIS"),Pt=n("VRyK"),Dt=n("pLZG"),Nt=n("7o/Q");function Ft(t){return e=>e.lift(new Lt(t))}class Lt{constructor(t){this.value=t}call(t,e){return e.subscribe(new Mt(t,this.value))}}class Mt extends Nt.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}var Vt=n("/uUt"),Bt=n("JX91"),Ht=n("Kj3r"),zt=n("R1ws"),Ut=n("cH1L");const $t=["*"];function Wt(t,e){if(1&t){const t=s.Yb();s.Xb(0,"div",2),s.ec("click",function(){return s.tc(t),s.ic()._onBackdropClicked()}),s.Wb()}if(2&t){const t=s.ic();s.Jb("mat-drawer-shown",t._isShowingBackdrop())}}function qt(t,e){1&t&&(s.Xb(0,"mat-drawer-content"),s.lc(1,2),s.Wb())}const Xt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Gt=["mat-drawer","mat-drawer-content","*"];function Zt(t,e){if(1&t){const t=s.Yb();s.Xb(0,"div",2),s.ec("click",function(){return s.tc(t),s.ic()._onBackdropClicked()}),s.Wb()}if(2&t){const t=s.ic();s.Jb("mat-drawer-shown",t._isShowingBackdrop())}}function Kt(t,e){1&t&&(s.Xb(0,"mat-sidenav-content",3),s.lc(1,2),s.Wb())}const Yt=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Qt=["mat-sidenav","mat-sidenav-content","*"],Jt=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",te={transformDrawer:Object(y.m)("transform",[Object(y.j)("open, open-instant",Object(y.k)({transform:"none",visibility:"visible"})),Object(y.j)("void",Object(y.k)({"box-shadow":"none",visibility:"hidden"})),Object(y.l)("void => open-instant",Object(y.e)("0ms")),Object(y.l)("void <=> open, open-instant => void",Object(y.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},ee=new s.t("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),ne=new s.t("MAT_DRAWER_CONTAINER");let ie=(()=>{class t extends At.a{constructor(t,e,n,i,s){super(n,i,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.i),s.Rb(Object(s.W)(()=>re)),s.Rb(s.m),s.Rb(At.c),s.Rb(s.C))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.xc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.Cb],ngContentSelectors:$t,decls:1,vars:0,template:function(t,e){1&t&&(s.mc(),s.lc(0))},encapsulation:2,changeDetection:0}),t})(),se=(()=>{class t{constructor(t,e,n,i,r,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new g.a,this._animationEnd=new g.a,this._animationState="void",this.openedChange=new s.p(!0),this._openedStream=this.openedChange.pipe(Object(Dt.a)(t=>t),Object(Et.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(Dt.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Ft(void 0)),this._closedStream=this.openedChange.pipe(Object(Dt.a)(t=>!t),Object(Et.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(Dt.a)(t=>t.fromState!==t.toState&&"void"===t.toState),Ft(void 0)),this._destroyed=new g.a,this.onPositionChanged=new s.p,this._modeChanged=new g.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(It.a)(this._elementRef.nativeElement,"keydown").pipe(Object(Dt.a)(t=>t.keyCode===Rt.g&&!this.disableClose&&!Object(Rt.s)(t)),Object(_.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(Vt.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(jt.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(jt.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(jt.c)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,n="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(b.a)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(v.f),s.Rb(v.e),s.Rb(C.a),s.Rb(s.C),s.Rb(p.d,8),s.Rb(ne,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.yc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.Gb("align",null),s.zc("@transform",e._animationState),s.Jb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:$t,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.mc(),s.Xb(0,"div",0),s.lc(1),s.Wb())},directives:[At.a],encapsulation:2,data:{animation:[te.transformDrawer]},changeDetection:0}),t})(),re=(()=>{class t{constructor(t,e,n,i,r,o=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=a,this._drawers=new s.G,this.backdropClick=new s.p,this._destroyed=new g.a,this._doCheckSubject=new g.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new g.a,t&&t.change.pipe(Object(_.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe(Object(_.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(jt.c)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(jt.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(Bt.a)(this._allDrawers),Object(_.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(Bt.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(Ht.a)(10),Object(_.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(Dt.a)(t=>t.fromState!==t.toState),Object(_.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(_.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(_.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(b.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(_.a)(Object(Pt.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(Ut.b,8),s.Rb(s.m),s.Rb(s.C),s.Rb(s.i),s.Rb(At.e),s.Rb(ee),s.Rb(zt.a,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){if(1&t&&(s.Kb(n,ie,1),s.Kb(n,se,1)),2&t){let t;s.pc(t=s.fc())&&(e._content=t.first),s.pc(t=s.fc())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&s.Gc(ie,1),2&t){let t;s.pc(t=s.fc())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.Jb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.Eb([{provide:ne,useExisting:t}])],ngContentSelectors:Gt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.mc(Xt),s.Ac(0,Wt,1,2,"div",0),s.lc(1),s.lc(2,1),s.Ac(3,qt,2,0,"mat-drawer-content",1)),2&t&&(s.nc("ngIf",e.hasBackdrop),s.Fb(3),s.nc("ngIf",!e._content))},directives:[p.k,ie],styles:[Jt],encapsulation:2,changeDetection:0}),t})(),oe=(()=>{class t extends ie{constructor(t,e,n,i,s){super(t,e,n,i,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.i),s.Rb(Object(s.W)(()=>ce)),s.Rb(s.m),s.Rb(At.c),s.Rb(s.C))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.xc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.Cb],ngContentSelectors:$t,decls:1,vars:0,template:function(t,e){1&t&&(s.mc(),s.lc(0))},encapsulation:2,changeDetection:0}),t})(),ae=(()=>{class t extends se{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(jt.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(jt.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(jt.f)(t)}}return t.\u0275fac=function(e){return le(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.Gb("align",null),s.xc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.Jb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.Cb],ngContentSelectors:$t,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.mc(),s.Xb(0,"div",0),s.lc(1),s.Wb())},directives:[At.a],encapsulation:2,data:{animation:[te.transformDrawer]},changeDetection:0}),t})();const le=s.Zb(ae);let ce=(()=>{class t extends re{}return t.\u0275fac=function(e){return ue(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){if(1&t&&(s.Kb(n,oe,1),s.Kb(n,ae,1)),2&t){let t;s.pc(t=s.fc())&&(e._content=t.first),s.pc(t=s.fc())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.Jb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.Eb([{provide:ne,useExisting:t}]),s.Cb],ngContentSelectors:Qt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.mc(Yt),s.Ac(0,Zt,1,2,"div",0),s.lc(1),s.lc(2,1),s.Ac(3,Kt,2,0,"mat-sidenav-content",1)),2&t&&(s.nc("ngIf",e.hasBackdrop),s.Fb(3),s.nc("ngIf",!e._content))},directives:[p.k,oe,At.a],styles:[Jt],encapsulation:2,changeDetection:0}),t})();const ue=s.Zb(ce);let he=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[p.c,f.e,C.b,At.b],At.b,f.e]}),t})();n("0EQZ");var de=n("3Pt+");let pe=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(jt.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(jt.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Gb("aria-orientation",e.vertical?"vertical":"horizontal"),s.Jb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),fe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[f.e],f.e]}),t})();const me=["*"],ge=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],be=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class _e{}const ye=Object(f.s)(Object(f.r)(_e));class ve{}const we=Object(f.r)(ve),Ce=new s.t("MatList"),Se=new s.t("MatNavList");let Oe=(()=>{class t extends ye{constructor(){super(...arguments),this._stateChanges=new g.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return xe(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.Eb([{provide:Se,useExisting:t}]),s.Cb,s.Db],ngContentSelectors:me,decls:1,vars:0,template:function(t,e){1&t&&(s.mc(),s.lc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const xe=s.Zb(Oe);let ke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Ee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),Te=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),Ae=(()=>{class t extends we{constructor(t,e,n,i){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new g.a,this._disabled=!1,this._isInteractiveList=!!(n||i&&"action-list"===i._getListType()),this._list=n||i;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(_.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(jt.c)(t)}ngAfterContentInit(){Object(f.v)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(s.i),s.Rb(Se,8),s.Rb(Ce,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){if(1&t&&(s.Kb(n,ke,1),s.Kb(n,Ee,1),s.Kb(n,f.f,1)),2&t){let t;s.pc(t=s.fc())&&(e._avatar=t.first),s.pc(t=s.fc())&&(e._icon=t.first),s.pc(t=s.fc())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.Jb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.Cb],ngContentSelectors:be,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.mc(ge),s.Xb(0,"div",0),s.Sb(1,"div",1),s.lc(2),s.Xb(3,"div",2),s.lc(4,1),s.Wb(),s.lc(5,2),s.Wb()),2&t&&(s.Fb(1),s.nc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[f.l],encapsulation:2,changeDetection:0}),t})(),je=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[f.g,f.m,f.e,f.k,p.c],f.g,f.e,f.k,fe]}),t})(),Re=(()=>{class t{constructor(t){this.breakpointObserver=t,this.isHandset$=this.breakpointObserver.observe(w.b.Handset).pipe(Object(Et.a)(t=>t.matches),Object(Tt.a)())}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(w.a))},t.\u0275cmp=s.Lb({type:t,selectors:[["app-side-nav"]],decls:28,vars:9,consts:[[1,"sidenav-container"],[1,"sidenav",3,"mode","opened"],["drawer",""],[2,"padding-bottom","45px"],["matSubheader",""],["href","#","mat-list-item","","routerLink","/status"],["href","#","mat-list-item","","routerLink","/quick-play"],["href","#","mat-list-item","","routerLink","/screens"],[2,"padding","10px","max-height","420px"]],template:function(t,e){1&t&&(s.Xb(0,"mat-sidenav-container",0),s.Xb(1,"mat-sidenav",1,2),s.jc(3,"async"),s.jc(4,"async"),s.jc(5,"async"),s.Xb(6,"mat-nav-list",3),s.Sb(7,"mat-divider"),s.Xb(8,"h2",4),s.Cc(9,"Menu"),s.Wb(),s.Xb(10,"a",5),s.Xb(11,"i"),s.Xb(12,"mat-icon"),s.Cc(13,"data_usage"),s.Wb(),s.Wb(),s.Cc(14," Status"),s.Wb(),s.Xb(15,"a",6),s.Xb(16,"i"),s.Xb(17,"mat-icon"),s.Cc(18,"add_to_queue"),s.Wb(),s.Wb(),s.Cc(19," Quick Play "),s.Wb(),s.Xb(20,"a",7),s.Xb(21,"i"),s.Xb(22,"mat-icon"),s.Cc(23,"list"),s.Wb(),s.Wb(),s.Cc(24," Screens"),s.Wb(),s.Wb(),s.Wb(),s.Xb(25,"mat-sidenav-content"),s.Xb(26,"div",8),s.Sb(27,"router-outlet"),s.Wb(),s.Wb(),s.Wb()),2&t&&(s.Fb(1),s.nc("mode",s.kc(4,5,e.isHandset$)?"over":"side")("opened",!1===s.kc(5,7,e.isHandset$)),s.Gb("role",s.kc(3,3,e.isHandset$)?"dialog":"navigation"))},directives:[ce,ae,Oe,pe,Te,Ae,r.c,xt.a,oe,r.e],pipes:[p.b],styles:[".sidenav-container[_ngcontent-%COMP%]{max-height:460px;min-height:460px}.sidenav[_ngcontent-%COMP%]{width:200px;background:#282828}.sidenav[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{background:inherit}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1}.playing[_ngcontent-%COMP%]{background:#282828;position:absolute;bottom:0;display:flex;flex-flow:row nowrap;align-items:center}.playing__art[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px;height:50px}.playing__song[_ngcontent-%COMP%]{color:#aaa;padding-left:15px;display:flex;flex-flow:column wrap}.playing__song[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#aaa}.playing__song[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.playing__add[_ngcontent-%COMP%]{margin-left:auto;padding-right:15px;color:#aaa}@media (max-width:768px){.playing[_ngcontent-%COMP%]{border-top:1px solid #181818}}"]}),t})();var Ie=n("mrSG"),Pe=n("PqYM"),De=n("kmnG"),Ne=n("d3UM"),Fe=n("5RNC"),Le=n("GFHR");function Me(t,e){1&t&&(s.Xb(0,"mat-icon",18),s.Cc(1,"repeat"),s.Wb())}function Ve(t,e){1&t&&(s.Xb(0,"mat-icon"),s.Cc(1,"repeat"),s.Wb())}function Be(t,e){if(1&t){const t=s.Yb();s.Xb(0,"a",19),s.ec("click",function(){s.tc(t);const e=s.ic(3);return e.resumeOrPause(e.isPaused)}),s.Xb(1,"mat-icon"),s.Cc(2,"pause"),s.Wb(),s.Wb()}}function He(t,e){if(1&t){const t=s.Yb();s.Xb(0,"a",20),s.ec("click",function(){s.tc(t);const e=s.ic(3);return e.resumeOrPause(e.isPaused)}),s.Xb(1,"mat-icon"),s.Cc(2,"play_arrow"),s.Wb(),s.Wb()}}function ze(t,e){if(1&t){const t=s.Yb();s.Xb(0,"div",6),s.Xb(1,"a",7),s.ec("click",function(){s.tc(t);const e=s.ic(2);return e.repeat(e.selectedScreenName)}),s.Ac(2,Me,2,0,"ng-template",8),s.jc(3,"async"),s.Ac(4,Ve,2,0,"ng-template",null,9,s.Bc),s.Wb(),s.Xb(6,"a",10),s.ec("click",function(){s.tc(t);const e=s.ic(2);return e.stop(e.selectedScreenName)}),s.Xb(7,"mat-icon"),s.Cc(8,"stop"),s.Wb(),s.Wb(),s.Ac(9,Be,3,0,"a",11),s.jc(10,"async"),s.Ac(11,He,3,0,"a",12),s.jc(12,"async"),s.Wb(),s.Xb(13,"div",13),s.Xb(14,"div",14),s.Cc(15),s.Wb(),s.Xb(16,"div",15),s.Xb(17,"mat-slider",16),s.ec("change",function(e){return s.tc(t),s.ic(2).onSliderChange(e)})("ngModelChange",function(e){s.tc(t);const n=s.ic(2);return n.startCurrentTime+(n.ticks=e)}),s.Wb(),s.Wb(),s.Xb(18,"div",17),s.Cc(19),s.jc(20,"minuteSeconds"),s.jc(21,"async"),s.Wb(),s.Wb()}if(2&t){const t=s.qc(5),e=s.ic(2);let n=null,i=null,r=null,o=null;s.Fb(2),s.nc("ngIfElse",t)("ngIf",null==(n=s.kc(3,11,e.screen$))?null:n.repeat),s.Fb(7),s.nc("ngIf",!(null!=(i=s.kc(10,13,e.screen$))&&i.isPaused)),s.Fb(2),s.nc("ngIf",null==(r=s.kc(12,15,e.screen$))?null:r.isPaused),s.Fb(4),s.Fc(" ",e.getHours(e.startCurrentTime+e.ticks),":",e.getMinutes(e.startCurrentTime+e.ticks)," :",e.getSeconds(e.startCurrentTime+e.ticks),""),s.Fb(2),s.nc("ngModel",e.startCurrentTime+e.ticks)("displayWith",e.formatSliderLabel)("max",e.sliderCap),s.Fb(2),s.Dc(s.kc(20,17,null==(o=s.kc(21,19,e.screen$))?null:o.duration))}}function Ue(t,e){if(1&t&&(s.Xb(0,"mat-option",21),s.Cc(1),s.Wb()),2&t){const t=e.$implicit;s.nc("value",t.screenName),s.Fb(1),s.Ec(" ",t.screenName," ")}}function $e(t,e){if(1&t){const t=s.Yb();s.Xb(0,"section",1),s.Ac(1,ze,22,21,"ng-template",2),s.jc(2,"async"),s.Xb(3,"div",3),s.Xb(4,"mat-form-field"),s.Xb(5,"mat-label"),s.Cc(6,"Selected Screen"),s.Wb(),s.Xb(7,"mat-select",4),s.ec("ngModelChange",function(e){return s.tc(t),s.ic().onSelectionChange(e)})("ngModelChange",function(e){return s.tc(t),s.ic().selectedScreenName=e}),s.Ac(8,Ue,2,2,"mat-option",5),s.jc(9,"async"),s.Wb(),s.Wb(),s.Wb(),s.Wb()}if(2&t){const t=s.ic();s.Fb(1),s.nc("ngIf",s.kc(2,3,t.screen$)),s.Fb(6),s.nc("ngModel",t.selectedScreenName),s.Fb(1),s.nc("ngForOf",s.kc(9,5,t.screens$))}}let We=(()=>{class t{constructor(t,e){this.nuiService=t,this.store=e,this.sliderCap=0,this.startCurrentTime=0,this.ticks=0}stop(t){this.nuiService.stopVideo(t)}onSelectionChange(t){this.selectedScreenName=t,this.store.dispatch(new l.e(t));const e=this;setTimeout(()=>{e.nuiService.requestDuiState(this.selectedScreenName)},500)}ngOnInit(){this.screen$.pipe(Object(Vt.a)()).subscribe(t=>{t&&(this.sub&&(this.ticks=0,this.sub.unsubscribe()),this.sliderCap=Math.floor(t.duration),this.isPaused=t.isPaused,t.isPaused||this.startTimer(),this.startCurrentTime=t.ended?this.sliderCap:Math.floor(t.currentTime))})}onSliderChange(t){this.startCurrentTime=t.value,this.nuiService.setVideoTime(this.selectedScreenName,t.value);const e=this;setTimeout(()=>{e.nuiService.requestDuiState(this.selectedScreenName)},500)}repeat(t){this.nuiService.repeatVideo(t);const e=this;setTimeout(()=>{e.nuiService.requestDuiState(this.selectedScreenName)},250)}resumeOrPause(t){t?this.nuiService.resumeVideo(this.selectedScreenName):this.nuiService.pauseVideo(this.selectedScreenName);const e=this;setTimeout(()=>{e.nuiService.requestDuiState(this.selectedScreenName)},1e3)}formatSliderLabel(t){const e=Math.floor(t/60/60),n=e<=9?"0"+e:e,i=Math.floor(t/60)%60,s=i<=9?"0"+i:i,r=Math.floor(t%60);return`${n}:${s}:${r<=9?"0"+r:r}`}getSeconds(t){return this.pad(t%60)}getMinutes(t){return this.pad(Math.floor(t/60)%60)}getHours(t){return this.pad(Math.floor(t/60/60))}startTimer(){this.timer=Object(Pe.a)(1,1e3),this.sub=this.timer.subscribe(t=>{this.ticks=t,t+this.startCurrentTime>=this.sliderCap&&this.sub.unsubscribe()})}pad(t){return t<=9?"0"+t:t}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(bt.a),s.Rb(u.g))},t.\u0275cmp=s.Lb({type:t,selectors:[["app-current-track"]],decls:2,vars:3,consts:[["class","current-track",4,"ngIf"],[1,"current-track"],[3,"ngIf"],[1,"current-track__screenCtrl"],["name","screen",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"current-track__actions"],["mat-icon-button","",1,"repeat",3,"click"],[3,"ngIfElse","ngIf"],["isNotRepeated",""],["mat-icon-button","",1,"stop",3,"click"],["aria-label","Pause or Resume","class","play","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Resume","class","play","mat-icon-button","",3,"click",4,"ngIf"],[1,"current-track__progress"],[1,"current-track__progress__start"],[1,"current-track__progress__bar"],["color","primary","min","0","step","1","thumbLabel","",3,"ngModel","displayWith","max","change","ngModelChange"],[1,"current-track__progress__finish"],["color","accent"],["aria-label","Pause or Resume","mat-icon-button","",1,"play",3,"click"],["aria-label","Resume","mat-icon-button","",1,"play",3,"click"],[3,"value"]],template:function(t,e){1&t&&(s.Ac(0,$e,10,7,"section",0),s.jc(1,"async")),2&t&&s.nc("ngIf",s.kc(1,1,e.screens$))},directives:[p.k,De.c,De.g,Ne.a,de.j,de.m,p.j,m.a,xt.a,Fe.a,f.h],pipes:[p.b,Le.a],styles:["mat-form-field[_ngcontent-%COMP%]{width:90px;max-width:90px;max-height:50px}.mat-accent[_ngcontent-%COMP%] .mat-slider-thumb-label-text[_ngcontent-%COMP%]{color:azure!important}.current-track[_ngcontent-%COMP%]{background:#282828;border-top:1px solid #181818;padding:15px 45px 5px;display:flex;flex-flow:row wrap;align-items:center}.current-track__actions[_ngcontent-%COMP%]{padding-right:20px;padding-left:10px;width:5%;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center}.current-track__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:24px;color:#c8c8c8}.current-track__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.current-track__actions[_ngcontent-%COMP%] .play[_ngcontent-%COMP%]{font-size:36px}.current-track__screenCtrl[_ngcontent-%COMP%]{display:flex;flex-flow:row;justify-content:space-between;align-items:center;color:azure;font-size:medium}.current-track__progress__start[_ngcontent-%COMP%]{width:10%;padding-left:8%;display:flex}.current-track__progress[_ngcontent-%COMP%]{width:70%;padding:0 30px;color:#aaa;font-size:11px;display:flex;flex-flow:row;justify-content:space-between;align-items:center}.current-track__progress__bar[_ngcontent-%COMP%]{width:80%;padding:0 15px}.current-track__progress[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:100%;padding:0 15px}"]}),Object(Ie.a)([Object(u.d)(l.a.getStatuses)],t.prototype,"screens$",void 0),Object(Ie.a)([Object(u.d)(l.a.getControlledScreen)],t.prototype,"screen$",void 0),t})();function qe(t,e){1&t&&(s.Xb(0,"div",1),s.Xb(1,"div",2),s.Xb(2,"div",3),s.Sb(3,"app-header"),s.Sb(4,"app-side-nav"),s.Sb(5,"app-current-track"),s.Wb(),s.Wb(),s.Wb())}let Xe=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.http=e,this.store=n,this.snackBar=i,this.updateCheckService=s,this.appVisible=!1,this.checkedForUpdates=!1}handleNUIMessage(t){if(t){if("HypnonemaNUI.ShowUI"===t.data.type){if(this.checkedForUpdates||(this.updateCheckService.check(t.data.hypnonemaVersion),this.checkedForUpdates=!0),this.store.dispatch(new l.f(!!t.data.isAceAllowed&&t.data.isAceAllowed)),!t.data.screens)return this.router.navigateByUrl("screens"),void(this.appVisible=!0);this.store.dispatch(new l.h(t.data.screens)),this.router.navigateByUrl("quick-play"),this.appVisible=!0}"HypnonemaNUI.HideUI"===t.data.type&&(this.appVisible=!1,this.store.dispatch(new l.b)),"HypnonemaNUI.CreatedScreen"===t.data.type&&(this.store.dispatch(new l.c(t.data.screen)),this.appVisible&&(this.snackBar.open("Screen successfully created!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.EditedScreen"===t.data.type&&(this.store.dispatch(new l.j(t.data.screen)),this.appVisible&&(this.snackBar.open("Screen successfully updated!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.DeletedScreen"===t.data.type&&(this.store.dispatch(new l.d(t.data.screenName)),this.appVisible&&(this.snackBar.open("Screen successfully deleted!","Dismiss",{duration:2500}),this.router.navigateByUrl("screens"))),"HypnonemaNUI.UpdateStatuses"===t.data.type&&(this.store.dispatch(new l.g(!1)),this.store.dispatch(new l.k(t.data.screenStates)),this.appVisible&&t.data.showSnackBar&&this.snackBar.open("Successfully fetched status!","Dismiss",{duration:2500}))}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(r.a),s.Rb(c.a),s.Rb(u.g),s.Rb(D),s.Rb(gt))},t.\u0275cmp=s.Lb({type:t,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&s.ec("message",function(t){return e.handleNUIMessage(t)},!1,s.sc)},decls:1,vars:1,consts:[["id","wrapper",4,"ngIf"],["id","wrapper"],["id","wrapper2"],["id","content"]],template:function(t,e){1&t&&s.Ac(0,qe,6,0,"div",0),2&t&&s.nc("ngIf",e.appVisible)},directives:[p.k,kt,Re,We],styles:[""]}),t})();var Ge=n("JIr8"),Ze=n("vkgz");const Ke=new s.t("NGXS_DEVTOOLS_OPTIONS");let Ye=(()=>{class t{constructor(t,e){this._options=t,this._injector=e,this.devtoolsExtension=null,this.windowObj="undefined"!=typeof window?window:{};const n=this.windowObj.__REDUX_DEVTOOLS_EXTENSION__||this.windowObj.devToolsExtension;n&&(this.devtoolsExtension=n.connect(t),this.devtoolsExtension.subscribe(t=>this.dispatched(t)))}get store(){return this._injector.get(u.g)}handle(t,e,n){return!this.devtoolsExtension||this._options&&this._options.disabled?n(t,e):n(t,e).pipe(Object(Ge.a)(n=>{const i=this.store.snapshot();throw this.sendToDevTools(t,e,i),n}),Object(Ze.a)(n=>{this.sendToDevTools(t,e,n)}))}sendToDevTools(t,e,n){const i=Object(u.h)(e);"@@INIT"===i?this.devtoolsExtension.init(t):this.devtoolsExtension.send(Object.assign({},e,{action:null,type:i}),n)}dispatched(t){if("DISPATCH"===t.type){if("JUMP_TO_ACTION"===t.payload.type||"JUMP_TO_STATE"===t.payload.type){const e=JSON.parse(t.state);this.store.reset(e)}else if("TOGGLE_ACTION"===t.payload.type)console.warn("Skip is not supported at this time.");else if("IMPORT_STATE"===t.payload.type){const{actionsById:e,computedStates:n,currentStateIndex:i}=t.payload.nextLiftedState;this.devtoolsExtension.init(n[0].state),Object.keys(e).filter(t=>"0"!==t).forEach(t=>this.devtoolsExtension.send(e[t],n[t].state)),this.store.reset(n[i].state)}}else if("ACTION"===t.type){const e=JSON.parse(t.payload);this.store.dispatch(e)}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(Ke),s.bc(s.u))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();function Qe(t){return Object.assign({name:"NGXS"},t)}const Je=new s.t("USER_OPTIONS");let tn=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:u.b,useClass:Ye,multi:!0},{provide:Je,useValue:e},{provide:Ke,useFactory:Qe,deps:[Je]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({}),t})();const en=(t,e)=>{return n=e-t.toString().length,new Array(n+1).join("0")+t;var n};class nn{constructor(t,e,n){this.action=t,this.store=e,this.logWriter=n}dispatched(t){const e=Object(u.h)(this.action),n=(i=new Date,en(i.getHours(),2)+":"+en(i.getMinutes(),2)+":"+en(i.getSeconds(),2)+"."+en(i.getMilliseconds(),3));var i;this.logWriter.startGroup(`action ${e} @ ${n}`),this._hasPayload(this.action)&&this.logWriter.logGrey("payload",Object.assign({},this.action)),this.logWriter.logGrey("prev state",t)}completed(t){this.logWriter.logGreen("next state",t),this.logWriter.endGroup()}errored(t){this.logWriter.logRedish("next state after error",this.store.snapshot()),this.logWriter.logRedish("error",t),this.logWriter.endGroup()}_hasPayload(t){return this._getNonEmptyProperties(t).length>0}_getNonEmptyProperties(t){return Object.keys(t).map(e=>t[e]).filter(t=>void 0!==t)}}class sn{constructor(t){this.options=t,this.options=this.options||{},this.logger=t.logger||console}startGroup(t){const e=this.options.collapsed?this.logger.groupCollapsed:this.logger.group;try{e.call(this.logger,t)}catch(n){console.log(t)}}endGroup(){try{this.logger.groupEnd()}catch(t){this.logger.log("\u2014\u2014 log end \u2014\u2014")}}logGrey(t,e){this.log(t,"color: #9E9E9E; font-weight: bold",e)}logGreen(t,e){this.log(t,"color: #4CAF50; font-weight: bold",e)}logRedish(t,e){this.log(t,"color: #FD8182; font-weight: bold",e)}log(t,e,n){this.isIE()?this.logger.log(t,n):this.logger.log("%c "+t,e,n)}isIE(){const t="undefined"!=typeof window&&window.navigator.userAgent?window.navigator.userAgent:"";let e=!1;const n=t.indexOf("MSIE "),i=t.indexOf("Trident/");return(n>-1||i>-1)&&(e=!0),e}}const rn=new s.t("NGXS_LOGGER_PLUGIN_OPTIONS");let on=(()=>{class t{constructor(t,e){this._options=t,this._injector=e}handle(t,e,n){if(this._options.disabled||!this._options.filter(e,t))return n(t,e);this._logWriter=this._logWriter||new sn(this._options),this._store=this._store||this._injector.get(u.g);const i=new nn(e,this._store,this._logWriter);return i.dispatched(t),n(t,e).pipe(Object(Ze.a)(t=>{i.completed(t)}),Object(Ge.a)(t=>{throw i.errored(t),t}))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(rn),s.bc(s.u))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const an=new s.t("LOGGER_USER_OPTIONS");function ln(t){const e={logger:console,collapsed:!1,disabled:!1,filter:()=>!0};return Object.assign({},e,t)}let cn=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:u.b,useClass:on,multi:!0},{provide:an,useValue:e},{provide:rn,useFactory:ln,deps:[an]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({}),t})();var un=n("PCNd");let hn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t,bootstrap:[Xe]}),t.\u0275inj=s.Ob({providers:[],imports:[[un.a,a,i.a,zt.b,c.b,ft.forRoot(),w.c,Ot,m.c,he,xt.b,je,I,Fe.b,u.c.forRoot([l.a],{developmentMode:!1}),tn.forRoot({}),cn.forRoot({disabled:true}),de.f,f.i,Ne.b]]}),t})();Object(s.V)(),i.c().bootstrapModule(hn).catch(t=>console.error(t))},zn8P: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="zn8P"}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+rOU":function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return d}),n.d(e,"f",function(){return a});var i=n("fXoL"),s=n("ofXK");class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.m?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class h extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let u=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.p,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.k),i.Rb(i.S),i.Rb(s.d))},t.\u0275dir=i.Mb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Cb]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})()},"/rnm":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("sxot"),s=n("fXoL"),r=n("tk/3"),o=n("AcyG");let a=(()=>{class t{constructor(t,e){this.http=t,this.store=e,this.resourceName=window.location.hostname,this.baseUrl=`https://${this.resourceName}`}getScreenList(){this.http.post(`${this.baseUrl}/getScreenList`,{}).subscribe(()=>{},t=>console.log(t.toString()))}repeatVideo(t){this.http.post(`${this.baseUrl}/repeat`,{screenName:t}).subscribe(()=>{},t=>console.log(t.toString()))}editScreen(t,e,n,i,s,r,o,a,l,c,h,u,d,p,f,m,g,b,_,y){this.http.post(`${this.baseUrl}/editScreen`,{payload:JSON.stringify({id:e,name:t,browserSettings:{globalVolume:o,soundAttenuation:a,soundMinDistance:l,soundMaxDistance:c,is3DAudioEnabled:y},positionalSettings:{positionX:h,positionY:u,positionZ:d,rotationX:p,rotationY:f,rotationZ:m,scaleX:g,scaleY:b,scaleZ:_},targetSettings:{modelName:s,renderTargetName:r},is3DRendered:n,alwaysOn:i})}).subscribe(()=>{},t=>console.log(t))}closeScreen(t){this.http.post(`${this.baseUrl}/stop`,{screenName:t}).subscribe(()=>{},t=>console.log(JSON.stringify(t)))}stopVideo(t){this.http.post(`${this.baseUrl}/stop`,{screenName:t}).subscribe(()=>{},t=>{console.log(t)})}hideNUI(){this.http.post(`${this.baseUrl}/hideUI`,{}).subscribe(()=>{},t=>{console.log(t)})}resumeVideo(t){this.http.post(`${this.baseUrl}/resume`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}pauseVideo(t){this.http.post(`${this.baseUrl}/pause`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}requestDuiState(t){this.http.post(`${this.baseUrl}/requestState`,{}).subscribe(t=>{const e=JSON.parse(t);this.store.dispatch(new i.i(e))},t=>console.log(t))}deleteScreen(t){this.http.post(`${this.baseUrl}/deleteScreen`,{screenName:t}).subscribe(()=>{},t=>console.log(t))}createScreen(t,e,n,i,s,r,o,a,l,c,h,u,d,p,f,m,g,b,_){this.http.post(`${this.baseUrl}/createScreen`,{payload:JSON.stringify({name:t,alwaysOn:e,browserSettings:{globalVolume:n,soundAttenuation:i,soundMinDistance:s,soundMaxDistance:r,is3DAudioEnabled:a},positionalSettings:{positionX:h,positionY:u,positionZ:d,rotationX:p,rotationY:f,rotationZ:m,scaleX:g,scaleY:b,scaleZ:_},targetSettings:{modelName:l,renderTargetName:c},is3DRendered:o})}).subscribe(()=>{},t=>{console.log(t)})}playVideo(t,e){this.http.post(`${this.baseUrl}/play`,{screen:JSON.stringify(t),videoUrl:e}).subscribe(()=>{},t=>{console.log(t)})}setVideoTime(t,e){this.http.post(`${this.baseUrl}/seek`,{screenName:t,time:e}).subscribe(()=>{},t=>console.log(t))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(r.a),s.bc(o.g))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return d}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return p}),n.d(e,"g",function(){return l});var i=n("7+OI"),s=n("LRne"),r=n("XNiG"),o=n("fXoL");class a{}function l(t){return t&&"function"==typeof t.connect}class c extends a{constructor(t){super(),this._data=t}connect(){return Object(i.a)(this._data)?this._data:Object(s.a)(this._data)}disconnect(){}}class h{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const p=new o.t("_ViewRepeater")},"0MNC":function(t,e,n){"use strict";n.d(e,"a",function(){return S}),n.d(e,"b",function(){return O}),n.d(e,"c",function(){return _});var i=n("fXoL"),s=n("8LU1"),r=n("XNiG"),o=n("itXk"),a=n("GyhO"),l=n("HDdC"),c=n("IzEk"),h=n("7o/Q");class u{constructor(t){this.total=t}call(t,e){return e.subscribe(new d(t,this.total))}}class d extends h.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var p=n("Kj3r"),f=n("lJxs"),m=n("JX91"),g=n("1G5W"),b=n("nLfN");let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})();const y=new Set;let v,w=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):C}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{v||(v=document.createElement("style"),v.setAttribute("type","text/css"),document.head.appendChild(v)),v.sheet&&(v.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(b.a))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(b.a))},token:t,providedIn:"root"}),t})();function C(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let S=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new r.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x(Object(s.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x(Object(s.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(o.a)(e);return n=Object(a.a)(n.pipe(Object(c.a)(1)),n.pipe(t=>t.lift(new u(1)),Object(p.a)(0))),n.pipe(Object(f.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new l.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(m.a)(e),Object(f.a)(({matches:e})=>({query:t,matches:e})),Object(g.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.bc(w),i.bc(i.C))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(w),Object(i.bc)(i.C))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const O={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("l7GE"),s=n("ZUHj");function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new a(t),i=Object(s.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class a extends i.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("XNiG"),s=n("9ppp");class r extends i.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return s});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("quSY");class s extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",function(){return At}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return Nt}),n.d(e,"d",function(){return Et}),n.d(e,"e",function(){return xt}),n.d(e,"f",function(){return Dt}),n.d(e,"g",function(){return m}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return L}),n.d(e,"j",function(){return V}),n.d(e,"k",function(){return B}),n.d(e,"l",function(){return ft}),n.d(e,"m",function(){return bt}),n.d(e,"n",function(){return vt}),n.d(e,"o",function(){return Pt}),n.d(e,"p",function(){return Rt}),n.d(e,"q",function(){return _}),n.d(e,"r",function(){return _t});var i=n("fXoL"),s=n("ofXK"),r=n("Cfvw"),o=n("cp0P"),a=n("lJxs");class l{}const c=new i.t("NgValueAccessor"),h={provide:c,useExisting:Object(i.W)(()=>d),multi:!0},u=new i.t("CompositionEventMode");let d=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(s.x)()?Object(s.x)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.H),i.Rb(i.m),i.Rb(u,8))},t.\u0275dir=i.Mb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.ec("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i.Eb([h])]}),t})();function p(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const m=new i.t("NgValidators"),g=new i.t("NgAsyncValidators"),b=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _{static min(t){return function(t){return e=>{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return y(t)}static requiredTrue(t){return v(t)}static email(t){return function(t){return p(t.value)||b.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>p(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return w;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(p(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return k(t)}static composeAsync(t){return R(t)}}function y(t){return p(t.value)?{required:!0}:null}function v(t){return!0===t.value?null:{required:!0}}function w(t){return null}function C(t){return null!=t}function S(t){const e=Object(i.wb)(t)?Object(r.a)(t):t;return Object(i.vb)(e),e}function x(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function O(t,e){return e.map(e=>e(t))}function E(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function k(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return x(O(t,e))}}function T(t){return null!=t?k(E(t)):null}function R(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const n=O(t,e).map(S);return Object(o.a)(n).pipe(Object(a.a)(x))}}function A(t){return null!=t?R(E(t)):null}function j(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function I(t){return t._rawValidators}function D(t){return t._rawAsyncValidators}let P=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=T(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=A(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t}),t})(),N=(()=>{class t extends P{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return F(e||t)},t.\u0275dir=i.Mb({type:t,features:[i.Cb]}),t})();const F=i.Zb(N);class L extends P{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class M{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let V=(()=>{class t extends M{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(L,2))},t.\u0275dir=i.Mb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Jb("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.Cb]}),t})(),B=(()=>{class t extends M{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(N,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Jb("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.Cb]}),t})();function H(t,e){return[...e.path,t]}function z(t,e){W(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&G(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&G(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function U(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),q(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function W(t,e,n){const i=I(t);null!==e.validator?t.setValidators(j(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=D(t);if(null!==e.asyncValidator?t.setAsyncValidators(j(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();$(e._rawValidators,n),$(e._rawAsyncValidators,n)}}function q(t,e,n){let i=!1;if(null!==t){if(null!==e.validator){const n=I(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=D(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}if(n){const t=()=>{};$(e._rawValidators,t),$(e._rawAsyncValidators,t)}return i}function G(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function X(t,e){W(t,e,!1)}function Z(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function K(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Y(t,e){if(!e)return null;let n,i,s;return Array.isArray(e),e.forEach(t=>{t.constructor===d?n=t:Object.getPrototypeOf(t.constructor)===l?i=t:s=t}),s||i||n||null}function Q(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const J="VALID",tt="INVALID",et="PENDING",nt="DISABLED";function it(t){return(at(t)?t.validators:t)||null}function st(t){return Array.isArray(t)?T(t):t||null}function rt(t,e){return(at(e)?e.asyncValidators:t)||null}function ot(t){return Array.isArray(t)?A(t):t||null}function at(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class lt{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=st(this._rawValidators),this._composedAsyncValidatorFn=ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===J}get invalid(){return this.status===tt}get pending(){return this.status==et}get disabled(){return this.status===nt}get enabled(){return this.status!==nt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=st(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ot(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=et,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=nt,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=J,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==J&&this.status!==et||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?nt:J}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator=!0;const e=S(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof ht?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof ut&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.p,this.statusChanges=new i.p}_calculateStatus(){return this._allControlsDisabled()?nt:this.errors?tt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(tt)?tt:J}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){at(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ct extends lt{constructor(t=null,e,n){super(it(e),rt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Q(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Q(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class ht extends lt{constructor(t,e,n){super(it(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof ct?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ut extends lt{constructor(t,e,n){super(it(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ct?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const dt={provide:N,useExisting:Object(i.W)(()=>ft)},pt=(()=>Promise.resolve(null))();let ft=(()=>{class t extends N{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.p,this.form=new ht({},T(t),A(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){pt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),z(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Q(this._directives,t)})}addFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path),n=new ht({});X(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){pt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,K(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,10),i.Rb(g,10))},t.\u0275dir=i.Mb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.ec("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Eb([dt]),i.Cb]}),t})();const mt={provide:L,useExisting:Object(i.W)(()=>bt)},gt=(()=>Promise.resolve(null))();let bt=(()=>{class t extends L{constructor(t,e,n,s){super(),this.control=new ct,this._registered=!1,this.update=new i.p,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Y(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Z(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?H(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){z(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){gt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;gt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(N,9),i.Rb(m,10),i.Rb(g,10),i.Rb(c,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Eb([mt]),i.Cb,i.Db]}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yt={provide:c,useExisting:Object(i.W)(()=>vt),multi:!0};let vt=(()=>{class t extends l{constructor(t,e){super(),this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.H),i.Rb(i.m))},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.ec("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.Eb([yt]),i.Cb]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})();const Ct=new i.t("NgModelWithFormControlWarning"),St={provide:N,useExisting:Object(i.W)(()=>xt)};let xt=(()=>{class t extends N{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.p,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(q(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return z(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){U(t.control||null,t,!1),Q(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,K(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(U(e||null,t),n instanceof ct&&(z(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);X(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);if(e){const n=function(t,e){return q(t,e,!1)}(e,t);n&&e.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){W(this.form,this,!1),this._oldForm&&q(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(m,10),i.Rb(g,10))},t.\u0275dir=i.Mb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.ec("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Eb([St]),i.Cb,i.Db]}),t})();const Ot={provide:L,useExisting:Object(i.W)(()=>Et)};let Et=(()=>{class t extends L{constructor(t,e,n,s,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new i.p,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Y(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Z(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return H(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(N,13),i.Rb(m,10),i.Rb(g,10),i.Rb(c,10),i.Rb(Ct,8))},t.\u0275dir=i.Mb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Eb([Ot]),i.Cb,i.Db]}),t._ngModelWarningSentOnce=!1,t})();const kt={provide:m,useExisting:Object(i.W)(()=>Rt),multi:!0},Tt={provide:m,useExisting:Object(i.W)(()=>At),multi:!0};let Rt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?y(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Gb("required",e.required?"":null)},inputs:{required:"required"},features:[i.Eb([kt])]}),t})(),At=(()=>{class t extends Rt{validate(t){return this.required?v(t):null}}return t.\u0275fac=function(e){return jt(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Gb("required",e.required?"":null)},features:[i.Eb([Tt]),i.Cb]}),t})();const jt=i.Zb(At);let It=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[wt]]}),t})(),Dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[It]}),t})(),Pt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ct,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[It]}),t})(),Nt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,s=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new ht(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new ct(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new ut(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof ct||t instanceof ht||t instanceof ut?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:function(){return new t},token:t,providedIn:Pt}),t})()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("D0XW"),s=n("l7GE"),r=n("ZUHj");class o{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(r.a)(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var l=n("PqYM");function c(t,e=i.a){return n=()=>Object(l.a)(t,e),function(t){return t.lift(new o(n))};var n}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("ZUHj"),s=n("l7GE"),r=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function l(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(l((n,i)=>Object(a.a)(t(n,i)).pipe(Object(o.a)((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new c(t,n)))}class c{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new h(t,this.project,this.concurrent))}}class h extends s.a{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");class s extends i.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"5RNC":function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return S});var i=n("ofXK"),s=n("fXoL"),r=n("FKr1"),o=n("8LU1"),a=n("FtGj"),l=n("3Pt+"),c=n("R1ws"),h=n("nLfN"),u=n("quSY"),d=n("u47x"),p=n("cH1L");const f=["sliderWrapper"],m=Object(h.f)({passive:!1}),g={provide:l.h,useExisting:Object(s.W)(()=>v),multi:!0};class b{}class _{constructor(t){this._elementRef=t}}const y=Object(r.u)(Object(r.q)(Object(r.s)(_),"accent"));let v=(()=>{class t extends y{constructor(t,e,n,i,r,o,a,l){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this._dir=i,this._ngZone=o,this._animationMode=l,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new s.p,this.input=new s.p,this.valueChange=new s.p,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=u.a.EMPTY,this._pointerDown=t=>{this.disabled||this._isSliding||!w(t)&&0!==t.button||this._ngZone.run(()=>{const e=this.value,n=C(t);this._isSliding=!0,this._lastPointerEvent=t,t.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(t),this._focusHostElement(),this._updateValueFromPosition(n),this._valueOnSlideStart=e,e!=this.value&&this._emitInputEvent()})},this._pointerMove=t=>{if(this._isSliding){t.preventDefault();const e=this.value;this._lastPointerEvent=t,this._updateValueFromPosition(C(t)),e!=this.value&&this._emitInputEvent()}},this._pointerUp=t=>{this._isSliding&&(t.preventDefault(),this._removeGlobalEvents(),this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=a,this.tabIndex=parseInt(r)||0,o.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mousedown",this._pointerDown,m),e.addEventListener("touchstart",this._pointerDown,m)})}get invert(){return this._invert}set invert(t){this._invert=Object(o.c)(t)}get max(){return this._max}set max(t){this._max=Object(o.f)(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(t){this._min=Object(o.f)(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(t){this._step=Object(o.f)(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(t){this._thumbLabel=Object(o.c)(t)}get tickInterval(){return this._tickInterval}set tickInterval(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?Object(o.f)(t,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(t){if(t!==this._value){let e=Object(o.f)(t);this._roundToDecimal&&e!==this.min&&e!==this.max&&(e=parseFloat(e.toFixed(this._roundToDecimal))),this._value=e,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(o.c)(t)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(t){this._focusHostElement(t)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const t=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${t})`}}_getTrackFillStyles(){const t=this.percent,e=this.vertical?`1, ${t}, 1`:`${t}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${e})`,display:0===t?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?`2px ${t}%`:`${t}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${t/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const t=this._shouldInvertAxis();let n;n=this.vertical?t?"Bottom":"Top":t?"Right":"Left",e[`padding${n}`]=`${this._getThumbGap()}px`}return e}_getThumbContainerStyles(){const t=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?t:!t)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const t=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?t:!t}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{this._isActive=!!t&&"keyboard"!==t,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mousedown",this._pointerDown,m),t.removeEventListener("touchstart",this._pointerDown,m),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(t){if(this.disabled||Object(a.s)(t))return;const e=this.value;switch(t.keyCode){case a.l:this._increment(10);break;case a.k:this._increment(-10);break;case a.e:this.value=this.max;break;case a.h:this.value=this.min;break;case a.i:this._increment("rtl"==this._getDirection()?1:-1);break;case a.p:this._increment(1);break;case a.m:this._increment("rtl"==this._getDirection()?-1:1);break;case a.d:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}_onKeyup(){this._isSliding=!1}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(t){const e=this._document,n=w(t),i=n?"touchend":"mouseup";e.addEventListener(n?"touchmove":"mousemove",this._pointerMove,m),e.addEventListener(i,this._pointerUp,m),n&&e.addEventListener("touchcancel",this._pointerUp,m);const s=this._getWindow();void 0!==s&&s&&s.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const t=this._document;t.removeEventListener("mousemove",this._pointerMove,m),t.removeEventListener("mouseup",this._pointerUp,m),t.removeEventListener("touchmove",this._pointerMove,m),t.removeEventListener("touchend",this._pointerUp,m),t.removeEventListener("touchcancel",this._pointerUp,m);const e=this._getWindow();void 0!==e&&e&&e.removeEventListener("blur",this._windowBlur)}_increment(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)}_updateValueFromPosition(t){if(!this._sliderDimensions)return;let e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{const t=this._calculateValue(e),n=Math.round((t-this.min)/this.step)*this.step+this.min;this.value=this._clamp(n,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(30/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(t=this.value){let e=new b;return e.source=this,e.value=t,e}_calculatePercentage(t){return((t||0)-this.min)/(this.max-this.min)}_calculateValue(t){return this.min+t*(this.max-this.min)}_clamp(t,e=0,n=1){return Math.max(e,Math.min(t,n))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(t){this._elementRef.nativeElement.focus(t)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(t){this.value=t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(d.e),s.Rb(s.i),s.Rb(p.b,8),s.cc("tabindex"),s.Rb(s.C),s.Rb(i.d),s.Rb(c.a,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-slider"]],viewQuery:function(t,e){if(1&t&&s.Gc(f,1),2&t){let t;s.pc(t=s.fc())&&(e._sliderWrapper=t.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(t,e){1&t&&s.ec("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)})("keyup",function(){return e._onKeyup()})("mouseenter",function(){return e._onMouseenter()})("selectstart",function(t){return t.preventDefault()}),2&t&&(s.ac("tabIndex",e.tabIndex),s.Gb("aria-disabled",e.disabled)("aria-valuemax",e.max)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuetext",null==e.valueText?e.displayValue:e.valueText)("aria-orientation",e.vertical?"vertical":"horizontal"),s.Jb("mat-slider-disabled",e.disabled)("mat-slider-has-ticks",e.tickInterval)("mat-slider-horizontal",!e.vertical)("mat-slider-axis-inverted",e._shouldInvertAxis())("mat-slider-invert-mouse-coords",e._shouldInvertMouseCoords())("mat-slider-sliding",e._isSliding)("mat-slider-thumb-label-showing",e.thumbLabel)("mat-slider-vertical",e.vertical)("mat-slider-min-value",e._isMinValue())("mat-slider-hide-last-tick",e.disabled||e._isMinValue()&&e._getThumbGap()&&e._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",value:"value",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",vertical:"vertical",displayWith:"displayWith",valueText:"valueText"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[s.Eb([g]),s.Cb],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(t,e){1&t&&(s.Xb(0,"div",0,1),s.Xb(2,"div",2),s.Sb(3,"div",3),s.Sb(4,"div",4),s.Wb(),s.Xb(5,"div",5),s.Sb(6,"div",6),s.Wb(),s.Xb(7,"div",7),s.Sb(8,"div",8),s.Sb(9,"div",9),s.Xb(10,"div",10),s.Xb(11,"span",11),s.Cc(12),s.Wb(),s.Wb(),s.Wb(),s.Wb()),2&t&&(s.Fb(3),s.nc("ngStyle",e._getTrackBackgroundStyles()),s.Fb(1),s.nc("ngStyle",e._getTrackFillStyles()),s.Fb(1),s.nc("ngStyle",e._getTicksContainerStyles()),s.Fb(1),s.nc("ngStyle",e._getTicksStyles()),s.Fb(1),s.nc("ngStyle",e._getThumbContainerStyles()),s.Fb(5),s.Dc(e.displayValue))},directives:[i.l],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute;-webkit-print-color-adjust:exact;color-adjust:exact}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),t})();function w(t){return"t"===t.type[0]}function C(t){const e=w(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.clientX,y:e.clientY}}let S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[i.c,r.e],r.e]}),t})()},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("HDdC");function s(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("n6bG"),s=n("gRHU"),r=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends r.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new h(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class h extends c{constructor(t,e,n,r){let o;super(),this._parentSubscriber=t;let a=this;Object(i.a)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.a&&(a=Object.create(e),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8LU1":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return l}),n.d(e,"e",function(){return c}),n.d(e,"f",function(){return r});var i=n("fXoL");function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:`${t}px`}function c(t){return t instanceof i.m?t.nativeElement:t}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},AcyG:function(t,e,n){"use strict";n.d(e,"a",function(){return Vt}),n.d(e,"b",function(){return U}),n.d(e,"c",function(){return Mt}),n.d(e,"d",function(){return Ht}),n.d(e,"e",function(){return zt}),n.d(e,"f",function(){return Bt}),n.d(e,"g",function(){return jt}),n.d(e,"h",function(){return Y});var i=n("fXoL"),s=n("jtHE");function r(t,e){return t===e}function o(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;const i=e.length;for(let s=0;s(t&&t.providers||[]).some(t=>t&&t.provide&&"MockNgModuleResolver"===t.provide.name||!1))});let c=(()=>{class t{constructor(){this.bootstrap$=new s.a(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const h=new i.t("INITIAL_STATE_TOKEN");let u=(()=>{class t{static set(t){this.value=t}static pop(){const t=this.value;return this.value={},t}}return t.value={},t})();const d=new i.t("Internals.StateContextFactory"),p=new i.t("Internals.StateFactory");var f=n("ofXK"),m=n("HDdC"),g=n("XNiG"),b=n("2Vo4"),_=n("LRne"),y=n("cp0P"),v=n("z6cu"),w=n("EY2u"),C=n("Cfvw"),S=n("pLZG"),x=n("lJxs"),O=n("UXun"),E=n("IzEk"),k=n("l7GE"),T=n("51Dv"),R=n("ZUHj");function A(t,e){return e?n=>n.pipe(A((n,i)=>Object(C.a)(t(n,i)).pipe(Object(x.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new j(t))}class j{constructor(t){this.project=t}call(t,e){return e.subscribe(new I(t,this.project))}}class I extends k.a{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e,t,n)}_innerSub(t,e,n){const i=new T.a(this,e,n),s=this.destination;s.add(i);const r=Object(R.a)(this,t,void 0,void 0,i);r!==i&&s.add(r)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t){this.destination.error(t)}notifyComplete(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var D=n("5+tZ"),P=n("xbPD"),N=n("JIr8"),F=n("1G5W"),L=n("vkgz"),M=n("/uUt");const V={STATE_NAME:t=>`${t} is not a valid state name. It needs to be a valid object property name.`,STATE_NAME_PROPERTY:()=>"States must register a 'name' property",STATE_UNIQUE:(t,e,n)=>`State name '${t}' from ${e} already exists in ${n}`,STATE_DECORATOR:()=>"States must be decorated with @State() decorator",INCORRECT_PRODUCTION:()=>"Angular is running in production mode but NGXS is still running in the development mode!\nPlease set developmentMode to false on the NgxsModule options when in production mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",INCORRECT_DEVELOPMENT:()=>"RECOMMENDATION: Set developmentMode to true on the NgxsModule when Angular is running in development mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",SELECT_FACTORY_NOT_CONNECTED:()=>"You have forgotten to import the NGXS module!",ACTION_DECORATOR:()=>"@Action() decorator cannot be used with static methods",SELECTOR_DECORATOR:()=>"Selectors only work on methods",ZONE_WARNING:()=>"Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\nPlease set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\nNgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })",PATCHING_ARRAY:()=>"Patching arrays is not supported.",PATCHING_PRIMITIVE:()=>"Patching primitives is not supported.",UNDECORATED_STATE_IN_IVY:t=>`'${t}' class should be decorated with @Injectable() right after the @State() decorator`};let B=(()=>{class t{constructor(t,e){this._ngZone=t,this._platformId=e,this.verifyZoneIsNotNooped(this._ngZone)}enter(t){return Object(f.u)(this._platformId)?this.runInsideAngular(t):this.runOutsideAngular(t)}leave(t){return this.runInsideAngular(t)}runInsideAngular(t){return i.C.isInAngularZone()?t():this._ngZone.run(t)}runOutsideAngular(t){return i.C.isInAngularZone()?this._ngZone.runOutsideAngular(t):t()}verifyZoneIsNotNooped(t){t instanceof i.C||console.warn(V.ZONE_WARNING())}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.C),i.bc(i.E))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const H=new i.t("ROOT_STATE_TOKEN"),z=new i.t("FEATURE_STATE_TOKEN"),U=new i.t("NGXS_PLUGINS"),$=new i.t("NG_TEST_MODE"),W=new i.t("NG_DEV_MODE"),q="NGXS_META",G="NGXS_SELECTOR_META";let X=(()=>{class t{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=B}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class Z{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}}const K=new i.t("NGXS_EXECUTION_STRATEGY");function Y(t){return t.constructor&&t.constructor.type?t.constructor.type:t.type}const Q=(t,e,n)=>{t=Object.assign({},t);const i=e.split("."),s=i.length-1;return i.reduce((t,e,i)=>(t[e]=i===s?n:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]),t),t},J=(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t),tt=t=>t&&"object"==typeof t&&!Array.isArray(t),et=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(tt(t)&&tt(n))for(const i in n)tt(n[i])?(t[i]||Object.assign(t,{[i]:{}}),et(t[i],n[i])):Object.assign(t,{[i]:n[i]});return et(t,...e)};function nt(t){if(!t.hasOwnProperty(q)){const e={name:null,actions:{},defaults:{},path:null,makeRootSelector:t=>t.getStateGetter(e.name),children:[]};Object.defineProperty(t,q,{value:e})}return it(t)}function it(t){return t.NGXS_META}function st(t){return t.NGXS_SELECTOR_META}function rt(t,e){return e&&e.compatibility&&e.compatibility.strictContentSecurityPolicy?function(t){const e=t.slice();return t=>e.reduce((t,e)=>t&&t[e],t)}(t):function(t){const e=t;let n="store."+e[0],i=0;const s=e.length;let r=n;for(;++i(t[Y(e)]=!0,t),{}),s=e&&function(t){return t.reduce((t,e)=>(t[e]=!0,t),{})}(e);return function(t){return t.pipe(function(t,e){return Object(S.a)(n=>{const i=Y(n.action);return t[i]&&(!e||e[n.status])})}(i,s),n())}}(t,["DISPATCHED"])}function lt(){return Object(x.a)(t=>t.action)}function ct(t){return e=>new m.a(n=>e.subscribe({next(e){t.leave(()=>n.next(e))},error(e){t.leave(()=>n.error(e))},complete(){t.leave(()=>n.complete())}}))}let ht=(()=>{class t{constructor(t){this._executionStrategy=t}enter(t){return this._executionStrategy.enter(t)}leave(t){return this._executionStrategy.leave(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(K))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class ut extends g.a{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,super.next(t);this._itemQueue.length>0;){const t=this._itemQueue.pop();super.next(t)}this._busyPushingNext=!1}}}let dt=(()=>{class t extends ut{}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const pt=i.Zb(dt);let ft=(()=>{class t extends m.a{constructor(t,e){super(n=>{const i=t.pipe(ct(e)).subscribe({next:t=>n.next(t),error:t=>n.error(t),complete:()=>n.complete()});n.add(i)})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(dt),i.bc(ht))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const mt=t=>(...e)=>t.shift()(...e,(...e)=>mt(t)(...e));let gt=(()=>{class t extends b.a{constructor(){super({})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),bt=(()=>{class t{constructor(t,e){this._parentManager=t,this._pluginHandlers=e,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const t=this.getPluginHandlers();this.rootPlugins.push(...t)}getPluginHandlers(){return(this._pluginHandlers||[]).map(t=>t.handle?t.handle.bind(t):t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(t,12),i.bc(U,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),_t=(()=>{class t extends g.a{}return t.\u0275fac=function(e){return yt(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const yt=i.Zb(_t);let vt=(()=>{class t{constructor(t,e,n,i,s,r){this._injector=t,this._actions=e,this._actionResults=n,this._pluginManager=i,this._stateStream=s,this._ngxsExecutionStrategy=r}dispatch(t){const e=this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(t));return e.subscribe({error:t=>this._ngxsExecutionStrategy.leave(()=>{try{this._errorHandler=this._errorHandler||this._injector.get(i.o),this._errorHandler.handleError(t)}catch(e){}})}),e.pipe(ct(this._ngxsExecutionStrategy))}dispatchByEvents(t){return Array.isArray(t)?0===t.length?Object(_.a)(this._stateStream.getValue()):Object(y.a)(t.map(t=>this.dispatchSingle(t))):this.dispatchSingle(t)}dispatchSingle(t){if(!Y(t)){const e=new Error(`This action doesn't have a type property: ${t.constructor.name}`);return Object(v.a)(e)}const e=this._stateStream.getValue();return mt([...this._pluginManager.plugins,(t,n)=>{t!==e&&this._stateStream.next(t);const i=this.getActionResultStream(n);return i.subscribe(t=>this._actions.next(t)),this._actions.next({action:n,status:"DISPATCHED"}),this.createDispatchObservable(i)}])(e,t).pipe(Object(O.a)())}getActionResultStream(t){return this._actionResults.pipe(Object(S.a)(e=>e.action===t&&"DISPATCHED"!==e.status),Object(E.a)(1),Object(O.a)())}createDispatchObservable(t){return t.pipe(A(t=>{switch(t.status){case"SUCCESSFUL":return Object(_.a)(this._stateStream.getValue());case"ERRORED":return Object(v.a)(t.error);default:return w.a}})).pipe(Object(O.a)())}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.u),i.bc(dt),i.bc(_t),i.bc(bt),i.bc(gt),i.bc(ht))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const wt=t=>{Object.freeze(t);const e="function"==typeof t,n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!n.call(t,i)||e&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||wt(t[i])}),t};let Ct=(()=>{class t{constructor(t,e){this.isDevMode=t,this.isTestMode=e}}return t.\u0275fac=function(e){return new(e||t)(i.bc(W),i.bc($))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),St=(()=>{class t{constructor(t,e){this._host=t,this._config=e}get isIncorrectProduction(){return!this._host.isDevMode()&&this._config.developmentMode}get isIncorrectDevelopment(){return this._host.isDevMode()&&!this._config.developmentMode}verifyDevMode(){this._host.isTestMode()||(this.isIncorrectProduction?console.warn(V.INCORRECT_PRODUCTION()):this.isIncorrectDevelopment&&console.warn(V.INCORRECT_DEVELOPMENT()))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(Ct),i.bc(X))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),xt=(()=>{class t{constructor(t,e,n,i){this._stateStream=t,this._dispatcher=e,this._config=n,i.verifyDevMode()}getRootStateOperations(){const t={getState:()=>this._stateStream.getValue(),setState:t=>this._stateStream.next(t),dispatch:t=>this._dispatcher.dispatch(t)};return this._config.developmentMode?this.ensureStateAndActionsAreImmutable(t):t}ensureStateAndActionsAreImmutable(t){return{getState:()=>t.getState(),setState:e=>{const n=wt(e);return t.setState(n)},dispatch:e=>t.dispatch(e)}}setStateToTheCurrentWithNew(t){const e=this.getRootStateOperations(),n=e.getState();e.setState(Object.assign({},n,t.defaults))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(gt),i.bc(vt),i.bc(X),i.bc(St))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Ot=(()=>{class t{constructor(t){this._internalStateOperations=t}createStateContext(t){const e=this._internalStateOperations.getRootStateOperations();function n(e){return J(e,t.path)}function i(n,i){const s=Q(n,t.path,i),r=t.instance;if(r.ngxsOnChanges){const e=ot(t,{currentAppState:n,newAppState:s});r.ngxsOnChanges(e)}return e.setState(s),s}function s(t,e){return i(t,e(n(t)))}return{getState:()=>n(e.getState()),patchState(t){const n=e.getState(),i=function(t){return e=>{if(Array.isArray(t))throw new Error(V.PATCHING_ARRAY());if("object"!=typeof t)throw new Error(V.PATCHING_PRIMITIVE());const n=Object.assign({},e);for(const i in t)n[i]=t[i];return n}}(t);return s(n,i)},setState(t){const n=e.getState();return"function"==typeof t?s(n,t):i(n,t)},dispatch:t=>e.dispatch(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(xt))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Et=(()=>{class t{static stateNameErrorMessage(t){return V.STATE_NAME(t)}static checkCorrectStateName(t){if(!t)throw new Error(V.STATE_NAME_PROPERTY());if(!this.stateNameRegex.test(t))throw new Error(this.stateNameErrorMessage(t))}static checkStateNameIsUnique(t,e){const n=this.getValidStateMeta(t).name,i=e[n];if(i&&i!==t)throw new Error(V.STATE_UNIQUE(n,t.name,i.name));return n}static getValidStateMeta(t){const e=it(t);if(!e)throw new Error(V.STATE_DECORATOR());return e}}return t.stateNameRegex=new RegExp("^[a-zA-Z0-9_]+$"),t})(),kt=(()=>{class t{constructor(t,e,n,i,s,r,o){this._injector=t,this._config=e,this._parentFactory=n,this._actions=i,this._actionResults=s,this._stateContextFactory=r,this._initialState=o,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=a(()=>{const t=this;function e(e){const n=t.statePaths[e];return n?rt(n.split("."),t._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(t){let n=e(t);return n||((...i)=>(n||(n=e(t)),n?n(...i):void 0))},getSelectorOptions:e=>Object.assign({},t._config.selectorOptions,e||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(t){let e={};var n;return e=Array.isArray(t)?t.slice():"object"==typeof(n=t)&&null!==n||"function"==typeof n?Object.assign({},t):void 0===t?{}:t,e}static checkStatesAreValid(t){t.forEach(Et.getValidStateMeta)}ngOnDestroy(){this._actionsSubscription.unsubscribe()}add(e){t.checkStatesAreValid(e);const{newStates:n}=this.addToStatesMap(e);if(!n.length)return[];const i=function(t){const e=e=>{const n=t.find(t=>t===e);if(!n)throw new Error(`Child state not found: ${e}. \r\nYou may have forgotten to add states to module`);return n.NGXS_META.name};return t.reduce((t,n)=>{const{name:i,children:s}=n.NGXS_META;return t[i]=(s||[]).map(e),t},{})}(n),s=function(t){const e=[],n={},i=(s,r=[])=>{Array.isArray(r)||(r=[]),r.push(s),n[s]=!0,t[s].forEach(t=>{if(r.indexOf(t)>=0)throw new Error(`Circular dependency '${t}' is required by '${s}': ${r.join(" -> ")}`);n[t]||i(t,r.slice(0))}),e.indexOf(s)<0&&e.push(s)};return Object.keys(t).forEach(t=>i(t)),e.reverse()}(i),r=function(t,e={}){const n=(t,e)=>{for(const i in t)if(t.hasOwnProperty(i)&&t[i].indexOf(e)>=0){const e=n(t,i);return null!==e?`${e}.${i}`:i}return null};for(const i in t)if(t.hasOwnProperty(i)){const s=n(t,i);e[i]=s?`${s}.${i}`:i}return e}(i),o=n.reduce((t,e)=>(t[e.NGXS_META.name]=e,t),{}),a=[];for(const l of s){const e=o[l],n=r[l],i=e.NGXS_META;this.addRuntimeInfoToMeta(i,n);const s={name:l,path:n,isInitialised:!1,actions:i.actions,instance:this._injector.get(e),defaults:t.cloneDefaults(i.defaults)};this.hasBeenMountedAndBootstrapped(l,n)||a.push(s),this.states.push(s)}return a}addAndReturnDefaults(t){const e=this.add(t||[]);return{defaults:e.reduce((t,e)=>Q(t,e.path,e.defaults),{}),states:e}}connectActionHandlers(){null===this._actionsSubscription&&(this._actionsSubscription=this._actions.pipe(Object(S.a)(t=>"DISPATCHED"===t.status),Object(D.a)(({action:t})=>this.invokeActions(this._actions,t).pipe(Object(x.a)(()=>({action:t,status:"SUCCESSFUL"})),Object(P.a)({action:t,status:"CANCELED"}),Object(N.a)(e=>Object(_.a)({action:t,status:"ERRORED",error:e}))))).subscribe(t=>this._actionResults.next(t)))}invokeActions(t,e){const n=Y(e),i=[];for(const r of this.states){const o=r.actions[n];if(o)for(const n of o){const o=this._stateContextFactory.createStateContext(r);try{let s=r.instance[n.fn](o,e);s instanceof Promise&&(s=Object(C.a)(s)),s instanceof m.a?(s=s.pipe(Object(P.a)({})),n.options.cancelUncompleted&&(s=s.pipe(Object(F.a)(t.pipe(at(e)))))):s=Object(_.a)({}).pipe(Object(O.a)()),i.push(s)}catch(s){i.push(Object(v.a)(s))}}}return i.length||i.push(Object(_.a)({})),Object(y.a)(i)}addToStatesMap(t){const e=[],n=this.statesByName;for(const i of t){const t=Et.checkStateNameIsUnique(i,n);!n[t]&&(e.push(i),n[t]=i)}return{newStates:e}}addRuntimeInfoToMeta(t,e){this.statePaths[t.name]=e,t.path=e}hasBeenMountedAndBootstrapped(t,e){const n=void 0!==J(this._initialState,e);return this.statesByName[t]&&n}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.u),i.bc(X),i.bc(t,12),i.bc(dt),i.bc(_t),i.bc(Ot),i.bc(h,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),Tt=(()=>{class t{constructor(t,e,n){this.internalStateOperations=t,this.stateContextFactory=e,this.bootstrapper=n}ngxsBootstrap(t,e){this.internalStateOperations.getRootStateOperations().dispatch(t).pipe(Object(S.a)(()=>!!e),Object(L.a)(()=>this.invokeInit(e.states)),Object(D.a)(()=>this.bootstrapper.appBootstrapped$),Object(S.a)(t=>!!t)).subscribe(()=>this.invokeBootstrap(e.states))}invokeInit(t){for(const e of t){const t=e.instance;if(t.ngxsOnChanges){const n=ot(e,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});t.ngxsOnChanges(n)}t.ngxsOnInit&&t.ngxsOnInit(this.getStateContext(e)),e.isInitialised=!0}}invokeBootstrap(t){for(const e of t){const t=e.instance;t.ngxsAfterBootstrap&&t.ngxsAfterBootstrap(this.getStateContext(e))}}getStateContext(t){return this.stateContextFactory.createStateContext(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(xt),i.bc(Ot),i.bc(c))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const Rt=t=>t&&t.NGXS_SELECTOR_OPTIONS_META||{};function At(t){const e=st(t)||it(t);return e&&e.makeRootSelector||(()=>t)}let jt=(()=>{class t{constructor(t,e,n,i,s,r){this._stateStream=t,this._internalStateOperations=e,this._config=n,this._internalExecutionStrategy=i,this._stateFactory=s,this.initStateStream(r)}dispatch(t){return this._internalStateOperations.getRootStateOperations().dispatch(t)}select(t){const e=this.getStoreBoundSelectorFn(t);return this._stateStream.pipe(Object(x.a)(e),Object(N.a)(t=>{const{suppressErrors:e}=this._config.selectorOptions;return t instanceof TypeError&&e?Object(_.a)(void 0):Object(v.a)(t)}),Object(M.a)(),ct(this._internalExecutionStrategy))}selectOnce(t){return this.select(t).pipe(Object(E.a)(1))}selectSnapshot(t){return this.getStoreBoundSelectorFn(t)(this._stateStream.getValue())}subscribe(t){return this._stateStream.pipe(ct(this._internalExecutionStrategy)).subscribe(t)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(t){return this._internalStateOperations.getRootStateOperations().setState(t)}getStoreBoundSelectorFn(t){return At(t)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(t){const e=this._stateStream.value;if(!e||0===Object.keys(e).length){const e=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,t):t;this._stateStream.next(e)}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(gt),i.bc(xt),i.bc(X),i.bc(ht),i.bc(kt),i.bc(h,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),It=(()=>{class t{constructor(e,n){t.store=e,t.config=n}ngOnDestroy(){t.store=null,t.config=null}}return t.\u0275fac=function(e){return new(e||t)(i.bc(jt),i.bc(X))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t.store=null,t.config=null,t})();class Dt{static get type(){return"@@INIT"}}class Pt{constructor(t){this.addedStates=t}static get type(){return"@@UPDATE_STATE"}}const Nt=new s.a(1);let Ft=(()=>{class t{constructor(t,e,n,s,r=[],o){!function(){try{const t=window.ng,e=!(t.probe&&t.coreTokens)&&Object(i.Z)();Nt.next(e)}catch(t){Nt.next(!1)}finally{Nt.complete()}}();const a=t.addAndReturnDefaults(r);e.setStateToTheCurrentWithNew(a),t.connectActionHandlers(),o.ngxsBootstrap(new Dt,a)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(kt),i.bc(xt),i.bc(jt),i.bc(It),i.bc(H,8),i.bc(Tt))},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})(),Lt=(()=>{class t{constructor(e,n,i,s=[],r){const o=t.flattenStates(s),a=i.addAndReturnDefaults(o);a.states.length&&(n.setStateToTheCurrentWithNew(a),r.ngxsBootstrap(new Pt(a.defaults),a))}static flattenStates(t=[]){return t.reduce((t,e)=>t.concat(e),[])}}return t.\u0275fac=function(e){return new(e||t)(i.bc(jt),i.bc(xt),i.bc(kt),i.bc(z,8),i.bc(Tt))},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})(),Mt=(()=>{class t{static forRoot(e=[],n={}){return{ngModule:Ft,providers:[kt,Ot,ft,dt,c,St,Ct,Tt,vt,_t,xt,ht,jt,gt,It,bt,...e,...t.ngxsTokenProviders(e,n)]}}static forFeature(t=[]){return{ngModule:Lt,providers:[kt,bt,...t,{provide:z,multi:!0,useValue:t}]}}static ngxsTokenProviders(e,n){return[{provide:$,useValue:l},{provide:W,useValue:i.Z},{provide:K,useClass:n.executionStrategy||B},{provide:H,useValue:e},{provide:t.ROOT_OPTIONS,useValue:n},{provide:X,useFactory:t.ngxsConfigFactory,deps:[t.ROOT_OPTIONS]},{provide:i.b,useFactory:t.appBootstrapListenerFactory,multi:!0,deps:[c]},{provide:h,useFactory:t.getInitialState},{provide:d,useExisting:Ot},{provide:p,useExisting:kt}]}static ngxsConfigFactory(t){return et(new X,t)}static appBootstrapListenerFactory(t){return()=>t.bootstrap()}static getInitialState(){return u.pop()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t.ROOT_OPTIONS=new i.t("ROOT_OPTIONS"),t})();function Vt(t,e){return(n,i)=>{if(n.hasOwnProperty("prototype"))throw new Error(V.ACTION_DECORATOR());const s=nt(n.constructor);Array.isArray(t)||(t=[t]);for(const r of t){const t=r.type;s.actions[t]||(s.actions[t]=[]),s.actions[t].push({fn:i,options:e||{},type:t})}}}function Bt(t){return e=>{!function(t){Nt.subscribe(e=>{e&&(t.\u0275prov||console.warn(V.UNDECORATED_STATE_IN_IVY(t.name)))})}(e);const n=e,i=nt(n),s=Object.getPrototypeOf(n),r=function(e){return Object.assign({},e.NGXS_OPTIONS_META||{},t)}(s);!function(t){const{meta:e,inheritedStateClass:n,optionsWithInheritance:i}=t,{children:s,defaults:r,name:o}=i,a="string"==typeof o?o:o&&o.getName()||null;Et.checkCorrectStateName(a),n.hasOwnProperty(q)&&(e.actions=Object.assign({},e.actions,(n.NGXS_META||{}).actions)),e.children=s,e.defaults=r,e.name=a}({meta:i,inheritedStateClass:s,optionsWithInheritance:r}),n.NGXS_OPTIONS_META=r}}function Ht(t,...e){return function(n,i){const s=i.toString(),r=`__${s}__selector`,o=function(t,e,n=[]){return e=e||function(t){const e=t.length-1;return 36===t.charCodeAt(e)?t.slice(0,e):t}(t),"string"==typeof e?rt(n.length?[e,...n]:e.split("."),It.config):e}(s,t,e);Object.defineProperties(n,{[r]:{writable:!0,enumerable:!1,configurable:!0},[s]:{enumerable:!0,configurable:!0,get(){return this[r]||(this[r]=function(t){if(!It.store)throw new Error(V.SELECT_FACTORY_NOT_CONNECTED());return It.store.select(t)}(o))}}})}}function zt(t){return(e,n,i)=>{if(!i||null===i.value)throw new Error(V.SELECTOR_DECORATOR());const s=i.value,r=function(t,e,n){const i=n&&n.containerClass,s=a(function(...t){const n=e.apply(i,t);return n instanceof Function?a.apply(null,[n]):n});Object.setPrototypeOf(s,e);const r=function(t,e){const n=((i=t).hasOwnProperty(G)||Object.defineProperty(i,G,{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:()=>({})}}),st(i));var i;n.originalFn=t;let s=()=>({});e&&(n.containerClass=e.containerClass,n.selectorName=e.selectorName,s=e.getSelectorOptions||s);const r=Object.assign({},n);return n.getSelectorOptions=()=>function(t,e){return Object.assign({},Rt(t.containerClass)||{},Rt(t.originalFn)||{},t.getSelectorOptions()||{},e)}(r,s()),n}(e,n);return r.makeRootSelector=e=>{const{argumentSelectorFunctions:n,selectorOptions:i}=function(t,e,n=[]){const i=e.getSelectorOptions(),s=t.getSelectorOptions(i),r=function(t=[],e,n){const i=[];return n&&(0===t.length||e.injectContainerState)&&it(n)&&i.push(n),t&&i.push(...t),i}(n,s,e.containerClass).map(e=>At(e)(t));return{selectorOptions:s,argumentSelectorFunctions:r}}(e,r,t);return function(t){const e=n.map(e=>e(t));try{return s(...e)}catch(r){if(r instanceof TypeError&&i.suppressErrors)return;throw r}}},s}(t,s,{containerClass:e,selectorName:n.toString(),getSelectorOptions:()=>({})}),o={configurable:!0,get:()=>r};return o.originalFn=s,o}}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("HDdC"),s=n("SeVD"),r=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),h=n("I55L");function u(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>{const s=t[o.a]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(c.a)(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(h.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new r.a;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.a](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(s.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("3N8a");const s=new(n("IjjT").a)(i.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EQ5u:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l});var i=n("XNiG"),s=n("HDdC"),r=(n("7o/Q"),n("quSY")),o=n("x+ZX");class a extends s.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.a,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.a.EMPTY)),t}refCount(){return Object(o.a)()(this)}}const l=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class c extends i.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var i=n("HDdC");const s=new i.a(t=>t.complete());function r(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):s}},FKr1:function(t,e,n){"use strict";n.d(e,"a",function(){return E}),n.d(e,"b",function(){return G}),n.d(e,"c",function(){return z}),n.d(e,"d",function(){return L}),n.d(e,"e",function(){return v}),n.d(e,"f",function(){return k}),n.d(e,"g",function(){return A}),n.d(e,"h",function(){return Y}),n.d(e,"i",function(){return tt}),n.d(e,"j",function(){return B}),n.d(e,"k",function(){return H}),n.d(e,"l",function(){return M}),n.d(e,"m",function(){return V}),n.d(e,"n",function(){return F}),n.d(e,"o",function(){return Q}),n.d(e,"p",function(){return J}),n.d(e,"q",function(){return C}),n.d(e,"r",function(){return S}),n.d(e,"s",function(){return w}),n.d(e,"t",function(){return O}),n.d(e,"u",function(){return x}),n.d(e,"v",function(){return T});var i=n("fXoL"),s=n("u47x"),r=n("cH1L");const o=new i.R("11.2.13");var a=n("ofXK"),l=n("8LU1"),c=n("XNiG"),h=(n("HDdC"),n("nLfN")),u=n("JX91"),d=n("R1ws"),p=n("FtGj");function f(t,e){if(1&t&&i.Sb(0,"mat-pseudo-checkbox",4),2&t){const t=i.ic();i.nc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(i.Xb(0,"span",5),i.Cc(1),i.Wb()),2&t){const t=i.ic();i.Fb(1),i.Ec("(",t.group.label,")")}}const g=["*"],b=new i.R("11.2.13"),_=new i.t("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,v=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(i.Z)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&b.full!==o.full&&console.warn("The Angular Material version ("+b.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.bc(s.g),i.bc(_,8),i.bc(a.d))},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[r.a],r.a]}),t})();function w(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(l.c)(t)}}}function x(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(l.f)(t):this.defaultTabIndex}}}function O(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch(et){y=!1}let E=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function T(t,e,n="mat"){t.changes.pipe(Object(u.a)(t)).subscribe(({length:t})=>{R(e,`${n}-2-line`,!1),R(e,`${n}-3-line`,!1),R(e,`${n}-multi-line`,!1),2===t||3===t?R(e,`${n}-${t}-line`,!0):t>3&&R(e,`${n}-multi-line`,!0)})}function R(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[v],v]}),t})();class j{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const I={enterDuration:450,exitDuration:400},D=Object(h.f)({passive:!0}),P=["mousedown","touchstart"],N=["mouseup","mouseleave","touchend","touchcancel"];class F{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(l.e)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},I),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new j(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},I),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Object(l.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(P))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(N),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(s.i)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,D)})})}_removeTriggerEvents(){this._triggerElement&&(P.forEach(t=>{this._triggerElement.removeEventListener(t,this,D)}),this._pointerUpEventsRegistered&&N.forEach(t=>{this._triggerElement.removeEventListener(t,this,D)}))}}const L=new i.t("mat-ripple-global-options");let M=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new F(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.C),i.Rb(h.a),i.Rb(L,8),i.Rb(d.a,8))},t.\u0275dir=i.Mb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Jb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[v,h.b],v]}),t})(),B=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(d.a,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Jb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[v]]}),t})();const z=new i.t("MAT_OPTION_PARENT_COMPONENT");class U{}const $=w(U);let W=0,q=(()=>{class t extends ${constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+W++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(z,8))},t.\u0275dir=i.Mb({type:t,inputs:{label:"label"},features:[i.Cb]}),t})();const G=new i.t("MatOptgroup");let X=0;class Z{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let K=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+X++,this.onSelectionChange=new i.p,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.f&&t.keyCode!==p.n||Object(p.s)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Z(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.i),i.Rb(void 0),i.Rb(q))},t.\u0275dir=i.Mb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Y=(()=>{class t extends K{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.i),i.Rb(z,8),i.Rb(G,8))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.ec("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.ac("id",e.id),i.Gb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Jb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.Cb],ngContentSelectors:g,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.mc(),i.Ac(0,f,1,2,"mat-pseudo-checkbox",0),i.Xb(1,"span",1),i.lc(2),i.Wb(),i.Ac(3,m,2,1,"span",2),i.Sb(4,"div",3)),2&t&&(i.nc("ngIf",e.multiple),i.Fb(3),i.nc("ngIf",e.group&&e.group._inert),i.Fb(1),i.nc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.k,M,B],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Q(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[V,a.c,v,H]]}),t})()},FtGj:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return g}),n.d(e,"d",function(){return m}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return r}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return u}),n.d(e,"i",function(){return d}),n.d(e,"j",function(){return _}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return l}),n.d(e,"m",function(){return f}),n.d(e,"n",function(){return a}),n.d(e,"o",function(){return s}),n.d(e,"p",function(){return p}),n.d(e,"q",function(){return v}),n.d(e,"r",function(){return b}),n.d(e,"s",function(){return w});const i=8,s=9,r=13,o=27,a=32,l=33,c=34,h=35,u=36,d=37,p=38,f=39,m=40,g=46,b=48,_=57,y=65,v=90;function w(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GFHR:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("fXoL");let s=(()=>{class t{transform(t){const e=Math.floor(t/60);return e.toString().padStart(2,"0")+":"+Math.floor(t-60*e).toString().padStart(2,"0")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Qb({name:"minuteSeconds",type:t,pure:!0}),t})()},GU7r:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return u});var i=n("8LU1"),s=n("fXoL"),r=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Nb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(i.e)(t);return new r.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(l))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(l))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.p,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(i.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(c),s.Rb(s.m),s.Rb(s.C))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({providers:[l]}),t})()},GyhO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("LRne"),s=n("bHdf");function r(...t){return Object(s.a)(1)(Object(i.a)(...t))}},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("7o/Q"),s=n("2QA8"),r=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),l=n("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new i.a(t,e,n):new i.a(r.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=h(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";n.d(e,"a",function(){return s});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q"),s=n("4I5i"),r=n("EY2u");function o(t){return e=>0===t?Object(r.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("l7GE"),s=n("51Dv"),r=n("ZUHj");function o(t){return function(e){const n=new a(t),i=e.lift(n);return n.caught=i}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new l(t,this.selector,this.caught))}}class l extends i.a{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new s.a(this,void 0,void 0);this.add(i);const o=Object(r.a)(this,n,void 0,void 0,i);o!==i&&this.add(o)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("GyhO"),s=n("z+Ro");function r(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q"),s=n("D0XW");function r(t,e=s.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("z+Ro"),s=n("yCtX"),r=n("jZKg");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(r.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return s});const s=i()},NFeN:function(t,e,n){"use strict";n.d(e,"a",function(){return D}),n.d(e,"b",function(){return P});var i=n("fXoL"),s=n("FKr1"),r=n("8LU1"),o=n("ofXK"),a=n("LRne"),l=n("z6cu"),c=n("cp0P"),h=n("quSY"),u=n("vkgz"),d=n("lJxs"),p=n("JIr8"),f=n("nYR2"),m=n("w1tV"),g=n("IzEk"),b=n("tk/3"),_=n("jhN1");const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function C(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class S{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let x=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new S(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,s){const r=this._sanitizer.sanitize(i.L.HTML,n);if(!r)throw C(n);return this._addSvgIconConfig(t,e,new S("",r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new S(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(i.L.HTML,e);if(!s)throw C(e);return this._addSvgIconSetConfig(t,new S("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.L.RESOURCE_URL,t);if(!e)throw w(t);const n=this._cachedIconsByUrl.get(e);return n?Object(a.a)(O(n)):this._loadSvgIconFromConfig(new S(t,null)).pipe(Object(u.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>O(t)))}getNamedSvgIcon(t,e=""){const n=E(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Object(l.a)(v(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(a.a)(O(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(d.a)(t=>O(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return Object(a.a)(n);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const n=this._sanitizer.sanitize(i.L.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Object(a.a)(null)})));return Object(c.a)(s).pipe(Object(d.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw v(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e),Object(d.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(a.a)(null):this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(o)),Object(m.a)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(E(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let i=0;ie?e.pathname+e.search:""}}}),A=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],j=A.map(t=>`[${t}]`).join(", "),I=/^url\(['"]?#(.*?)['"]?\)$/;let D=(()=>{class t extends T{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(r.c)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(j),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(I):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Object(g.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(x),i.cc("aria-hidden"),i.Rb(R),i.Rb(i.o))},t.\u0275cmp=i.Lb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Gb("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),i.Jb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.Cb],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(i.mc(),i.lc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({imports:[[s.e],s.e]}),t})()},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return i})},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),s=n("Cfvw"),r=n("EY2u");function o(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(s.a)(n):Object(r.b)()).subscribe(e)})}},PCNd:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("ofXK"),s=n("fXoL");let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[i.c]]}),t})()},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("D0XW"),r=n("Y7HM"),o=n("z+Ro");function a(t=0,e,n){let a=-1;return Object(r.a)(e)?a=Number(e)<1?1:Number(e):Object(o.a)(e)&&(n=e),Object(o.a)(n)||(n=s.a),new i.a(e=>{const i=Object(r.a)(t)?t:+t-n.now();return n.schedule(l,i,{index:0,period:a,subscriber:e})})}function l(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return g}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return p}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return f}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return h}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return d}),n.d(e,"m",function(){return o}),n.d(e,"n",function(){return b}),n.d(e,"o",function(){return _});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function h(t,e,n){return{type:0,name:t,styles:e,options:n}}function u(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function f(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",function(){return je}),n.d(e,"b",function(){return De});var i=n("fXoL"),s=n("jhN1"),r=n("R0Ic");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new r.d;case 1:return t[0];default:return new r.n(t)}}function l(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,h=null;if(i.forEach(t=>{const n=t.offset,i=n==c,u=i&&h||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.o:l=s[n];break;case r.a:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}u[i]=l}),i||l.push(u),h=u,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=u(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function u(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,g=(t,e,n)=>[];const b=o();(b||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),m=(()=>{if(b||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):m}})(),g=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let O=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.d(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),E=(()=>{class t{}return t.NOOP=new O,t})();const k="ng-enter",T="ng-leave",R="ng-trigger",A=".ng-trigger",j="ng-animating",I=".ng-animating";function D(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:P(parseFloat(e[1]),e[2])}function P(t,e){return"s"===e?1e3*t:t}function N(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=P(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=P(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function F(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function L(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else F(t,n);return n}function M(t,e,n){return n?e+":"+n+";":""}function V(t){let e="";for(let n=0;n{const s=X(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),o()&&V(t))}function H(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=X(e);t.style[n]=""}),o()&&V(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:Object(r.i)(t):t}const U=new RegExp("{{\\s*(.+?)\\s*}}","g");function $(t){let e=[];if("string"==typeof t){let n;for(;n=U.exec(t);)e.push(n[1]);U.lastIndex=0}return e}function W(t,e,n){const i=t.toString(),s=i.replace(U,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function q(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const G=/-+([a-z0-9])/g;function X(t){return t.replace(G,(...t)=>t[1].toUpperCase())}function Z(t,e){return 0===t||0===e}function K(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(it(s,o)),"<"!=r[0]||s==J&&o==J||e.push(it(o,s))}(t,n,e)):n.push(t),n}const et=new Set(["true","1"]),nt=new Set(["false","0"]);function it(t,e){const n=et.has(t)||nt.has(t),i=et.has(e)||nt.has(e);return(s,r)=>{let o=t==J||t==s,a=e==J||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?et.has(t):nt.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?et.has(e):nt.has(e)),o&&a}}const st=new RegExp("s*:selfs*,?","g");function rt(t,e,n){return new ot(t).build(e,n)}class ot{constructor(t){this._driver=t}build(t,e){const n=new at(e);return this._resetContextStyleTimingState(n),Y(this,z(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(lt(t)){const e=t;Object.keys(e).forEach(t=>{$(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=q(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Y(this,z(t.animation),e);return{type:1,matchers:tt(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ct(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Y(this,t,e)),options:ct(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Y(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ct(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(N(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||N(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Object(r.k)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=Object(r.k)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(lt(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=$(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(lt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=h>0?i==u?1:h*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Y(this,z(t.animation),e),options:ct(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ct(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ct(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(st,"")),[t=t.replace(/@\*/g,A).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,I),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,d(e.collectedStyles,e.currentQuerySelector,{});const o=Y(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ct(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:N(t.timings,e.errors,!0);return{type:12,animation:Y(this,z(t.animation),e),timings:n,options:null}}}class at{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function lt(t){return!Array.isArray(t)&&"object"==typeof t}function ct(t){var e;return t?(t=F(t)).params&&(t.params=(e=t.params)?F(e):null):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function ut(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class dt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const pt=new RegExp(":enter","g"),ft=new RegExp(":leave","g");function mt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new gt).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class gt{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new dt;const h=new _t(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Y(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[ut(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?D(n.duration):null,r=null!=n.delay?D(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=bt);const t=D(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Y(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?D(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Y(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return N(e.params?W(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?D(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Y(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Y(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const bt={};class _t{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new yt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=D(n.duration)),null!=n.delay&&(i.delay=D(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=W(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new _t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new vt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(pt,"."+this._enterClassName)).replace(ft,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class yt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new yt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.a,this._currentKeyframe[t]=r.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.a})):L(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=W(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=L(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.o?t.add(n):i==r.a&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?q(t.values()):[],o=e.size?q(e.values()):[];if(n){const t=i[0],e=F(t);t.offset=0,e.offset=1,i=[t,e]}return ut(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class vt extends yt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=L(t[0],!1);a.offset=0,s.push(a);const l=L(t[0],!1);l.offset=wt(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=L(t[i],!1);o.offset=wt((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return ut(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function wt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ct{}class St extends Ct{normalizePropertyName(t,e){return X(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(xt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const xt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Ot(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Et={};class kt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Et,p=this.buildStyles(n,o&&o.params||Et,h),f=a&&a.params||Et,m=this.buildStyles(i,f,h),g=new Set,b=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},u),f)},w=c?[]:mt(t,e,this.ast.animation,s,r,p,m,v,l,h);let C=0;if(w.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),h.length)return Ot(e,this._triggerName,n,i,y,p,m,[],[],b,_,C,h);w.forEach(t=>{const n=t.element,i=d(b,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=d(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const S=q(g.values());return Ot(e,this._triggerName,n,i,y,p,m,w,S,b,_,C)}}class Tt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=F(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=W(r,i,e)),n[t]=r})}}),n}}class Rt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Tt(t.style,t.options&&t.options.params||{})}),At(this.states,"true","1"),At(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new kt(t,e,this.states))}),this.fallbackTransition=new kt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function At(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const jt=new dt;class It{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=rt(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=l(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const l=new Map;if(s?(o=mt(this._driver,e,s,k,T,{},{},n,jt,i),o.forEach(t=>{const e=d(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);l.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.a)})});const c=a(o.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=u(e,"","","");return c(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Dt="ng-animate-queued",Pt="ng-animate-disabled",Nt=".ng-animate-disabled",Ft=[],Lt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Vt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=F(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Bt="void",Ht=new Vt(Bt);class zt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Zt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Zt(t,R),Zt(t,"ng-trigger-"+e),a[e]=Ht),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new $t(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Zt(t,R),Zt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Vt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Ht),l.value!==Bt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{H(t,n),B(t,i)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Zt(t,Dt),r.onStart(()=>{Kt(t,Dt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,A,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Bt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Ht,a=new Vt(Bt),l=new $t(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Lt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Zt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=u(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,c(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Ut{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new zt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zt(t,Pt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kt(t,Pt))}removeNode(t,e,n,i){if(Wt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Wt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,A,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,I,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Lt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Nt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Nt,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new dt,i=[],s=new Map,o=[],l=new Map,c=new Map,h=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=k+b++;g.set(e,n),t.forEach(t=>Zt(t,n))});const _=[],y=new Set,v=new Set;for(let r=0;ry.add(t)):v.add(t))}const w=new Map,C=Xt(f,Array.from(y));C.forEach((t,e)=>{const n=T+b++;w.set(e,n),t.forEach(t=>Zt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Kt(t,n))}),C.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Kt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const S=[],x=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(S.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const r=!p||!this.driver.containsElement(p,s),a=w.get(s),u=g.get(s),f=this._buildInstruction(t,n,u,a,r);if(f.errors&&f.errors.length)x.push(f);else{if(r)return e.onStart(()=>H(s,f.fromStyles)),e.onDestroy(()=>B(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>H(s,f.fromStyles)),e.onDestroy(()=>B(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>d(l,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=h.get(e);i||h.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(x.length){const t=[];x.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),S.forEach(t=>t.destroy()),this.reportError(t)}const O=new Map,E=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(O,e,[]).push(t),t.destroy()})});const R=_.filter(t=>Jt(t,c,h)),A=new Map;Gt(A,this.driver,v,h,r.a).forEach(t=>{Jt(t,c,h)&&R.push(t)});const j=new Map;m.forEach((t,e)=>{Gt(j,this.driver,new Set(t),c,r.o)}),R.forEach(t=>{const e=A.get(t),n=j.get(t);A.set(t,Object.assign(Object.assign({},e),n))});const D=[],P=[],N={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(u.has(e))return r.onDestroy(()=>B(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=N;if(E.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,O,s,j,A);if(r.setRealPlayer(n),t===N)D.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=a(e)),i.push(r)}}else H(e,o.fromStyles),r.onDestroy(()=>B(e,o.toStyles)),P.push(r),u.has(e)&&i.push(r)}),P.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r<_.length;r++){const t=_[r],e=t.__ng_removed;if(Kt(t,T),e&&e.hasAnimation)continue;let n=[];if(l.size){let e=l.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,I,!0);for(let t=0;t!t.destroyed);i.length?Yt(this,t,i):this.processLeaveNode(t)}return _.length=0,D.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),D}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Bt;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=d(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}H(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const c=e.triggerName,h=e.element,u=[],p=new Set,f=new Set,m=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new r.d(e.duration,e.delay);const m=a!==h,g=function(t){const e=[];return Qt(t,e),e}((n.get(a)||Ft).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),b=s.get(a),_=o.get(a),y=l(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,g);if(e.subTimeline&&i&&f.add(a),m){const e=new $t(t,c,a);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Zt(t,j));const g=a(m);return g.onDestroy(()=>{p.forEach(t=>Kt(t,j)),B(h,e.toStyles)}),f.forEach(t=>{d(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.d(t.duration,t.delay)}}class $t{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>c(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Wt(t){return t&&1===t.nodeType}function qt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gt(t,e,n,i,s){const r=[];n.forEach(t=>r.push(qt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=Mt,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>qt(t,r[a++])),o}function Xt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Zt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Kt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Yt(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Qt(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class te{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ut(t,e,n),this._timelineEngine=new It(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=rt(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Rt(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=p(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ee(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=ie(e[0]),e.length>1&&(i=ie(e[e.length-1]))):e&&(n=ie(e)),n||i?new ne(t,n,i):null}let ne=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(H(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ie(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=pe(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ue(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=pe(t,"").split(","),i=he(n,e);i>=0&&(n.splice(i,1),de(t,"",n.join(",")))}(this._element,this._name))}}function le(t,e,n){de(t,"PlayState",n,ce(t,e))}function ce(t,e){const n=pe(t,"");return n.indexOf(",")>0?he(n.split(","),e):he([n],e)}function he(t,e){for(let n=0;n=0)return n;return-1}function ue(t,e,n){n?t.removeEventListener(oe,e):t.addEventListener(oe,e)}function de(t,e,n,i){const s=re+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function pe(t,e){return t.style[re+e]||""}class fe{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ae(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Q(this.element,n))})}this.currentSnapshot=t}}class me extends r.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=x(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ge{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>x(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof fe),l={};Z(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=K(t,e,l));if(0==n)return new me(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=ee(t,e),p=new fe(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class be{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _e{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof be);Z(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=ee(t,e=K(t,e=e.map(t=>L(t,!1)),l));return new be(t,e,a,h)}}function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=n("ofXK");let we=(()=>{class t extends r.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.T.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(r.i)(t):t;return xe(this._renderer,null,e,"register",[n]),new Ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.I),i.bc(ve.d))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class Ce extends r.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Se(this._id,t,e||{},this._renderer)}}class Se{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return xe(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function xe(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Oe="@",Ee="@.disabled";let ke=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Te("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Re(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.I),i.bc(te),i.bc(i.C))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class Te{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Oe&&e==Ee?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Re extends Te{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Oe?"."==e.charAt(1)&&e==Ee?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Oe){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=Oe&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Ae=(()=>{class t extends te{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(ve.d),i.bc(E),i.bc(Ct))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const je=new i.t("AnimationModuleType"),Ie=[{provide:E,useFactory:function(){return"function"==typeof ye()?new _e:new ge}},{provide:je,useValue:"BrowserAnimations"},{provide:r.b,useClass:we},{provide:Ct,useFactory:function(){return new St}},{provide:te,useClass:Ae},{provide:i.I,useFactory:function(t,e,n){return new ke(t,e,n)},deps:[s.d,te,i.C]}];let De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({providers:Ie,imports:[s.a]}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("ngJS"),s=n("NJ4a"),r=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");const h=t=>{if(t&&"function"==typeof t[o.a])return h=t,t=>{const e=h[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(i.a)(t);if(Object(l.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[r.a])return e=t,t=>{const n=e[r.a]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(c.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,h}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",function(){return i})},UXun:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("jtHE");function s(t,e,n){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:s}){let r,o,a=0,l=!1,c=!1;return function(h){a++,r&&!l||(l=!1,r=new i.a(t,e,s),o=h.subscribe({next(t){r.next(t)},error(t){l=!0,r.error(t)},complete(){c=!0,o=void 0,r.complete()}}));const u=r.subscribe(this);this.add(()=>{a--,u.unsubscribe(),o&&!c&&n&&0===a&&(o.unsubscribe(),o=void 0,r=void 0)})}}(s))}},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("z+Ro"),r=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(r.a)(e)(Object(o.a)(t,n))}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return h});var i=n("HDdC"),s=n("7o/Q"),r=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}let h=(()=>{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new u(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew u(t,e),t})();class u extends h{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return i})},Y7HM:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("DH7j");function s(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}},Ylt2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("quSY");class s extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("51Dv"),s=n("SeVD"),r=n("HDdC");function o(t,e,n,o,a=new i.a(t,n,o)){if(!a.closed)return e instanceof r.a?e.subscribe(a):Object(s.a)(e)(a)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("5+tZ"),s=n("SpAZ");function r(t=Number.POSITIVE_INFINITY){return Object(i.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("5+tZ");function s(t,e){return Object(i.a)(t,e,1)}},bTqV:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return p}),n.d(e,"c",function(){return m});var i=n("FKr1"),s=n("R1ws"),r=n("fXoL"),o=n("u47x");const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const d=Object(i.q)(Object(i.s)(Object(i.r)(u)));let p=(()=>{class t extends d{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of h)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(r.m),r.Rb(o.e),r.Rb(s.a,8))},t.\u0275cmp=r.Lb({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gc(i.l,1),2&t){let t;r.pc(t=r.fc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.Gb("disabled",e.disabled||null),r.Jb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.Cb],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.mc(),r.Xb(0,"span",0),r.lc(1),r.Wb(),r.Sb(2,"span",1),r.Sb(3,"span",2)),2&t&&(r.Fb(2),r.Jb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.nc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.l],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t extends p{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(o.e),r.Rb(r.m),r.Rb(s.a,8))},t.\u0275cmp=r.Lb({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.ec("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.Gb("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.Jb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.Cb],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.mc(),r.Xb(0,"span",0),r.lc(1),r.Wb(),r.Sb(2,"span",1),r.Sb(3,"span",2)),2&t&&(r.Fb(2),r.Jb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.nc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.l],styles:[c],encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({imports:[[i.m,i.e],i.e]}),t})()},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return i})},cH1L:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var i=n("fXoL"),s=n("ofXK");const r=new i.t("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.Y)(s.d)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.p,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(r,8))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})()},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("HDdC"),s=n("DH7j"),r=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return c(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(r.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let l=0;l{h||(h=!0,o++),s[l]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&h||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},d3UM:function(t,e,n){"use strict";n.d(e,"a",function(){return q}),n.d(e,"b",function(){return X});var i=n("rDax"),s=n("ofXK"),r=n("fXoL"),o=n("FKr1"),a=n("kmnG"),l=n("vxfF"),c=n("u47x"),h=n("8LU1"),u=n("0EQZ"),d=n("FtGj"),p=n("XNiG"),f=n("NXyV"),m=n("VRyK"),g=n("JX91"),b=n("eIep"),_=n("IzEk"),y=n("pLZG"),v=n("lJxs"),w=n("/uUt"),C=n("1G5W"),S=n("R0Ic"),x=n("cH1L"),O=n("3Pt+");const E=["trigger"],k=["panel"];function T(t,e){if(1&t&&(r.Xb(0,"span",8),r.Cc(1),r.Wb()),2&t){const t=r.ic();r.Fb(1),r.Dc(t.placeholder)}}function R(t,e){if(1&t&&(r.Xb(0,"span",12),r.Cc(1),r.Wb()),2&t){const t=r.ic(2);r.Fb(1),r.Dc(t.triggerValue)}}function A(t,e){1&t&&r.lc(0,0,["*ngSwitchCase","true"])}function j(t,e){if(1&t&&(r.Xb(0,"span",9),r.Ac(1,R,2,1,"span",10),r.Ac(2,A,1,0,"ng-content",11),r.Wb()),2&t){const t=r.ic();r.nc("ngSwitch",!!t.customTrigger),r.Fb(2),r.nc("ngSwitchCase",!0)}}function I(t,e){if(1&t){const t=r.Yb();r.Xb(0,"div",13),r.Xb(1,"div",14,15),r.ec("@transformPanel.done",function(e){return r.tc(t),r.ic()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.tc(t),r.ic()._handleKeydown(e)}),r.lc(3,1),r.Wb(),r.Wb()}if(2&t){const t=r.ic();r.nc("@transformPanelWrap",void 0),r.Fb(1),r.Ib("mat-select-panel ",t._getPanelTheme(),""),r.xc("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.nc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.Gb("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],P=["mat-select-trigger","*"],N={transformPanelWrap:Object(S.m)("transformPanelWrap",[Object(S.l)("* => void",Object(S.h)("@transformPanel",[Object(S.f)()],{optional:!0}))]),transformPanel:Object(S.m)("transformPanel",[Object(S.j)("void",Object(S.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(S.j)("showing",Object(S.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(S.j)("showing-multiple",Object(S.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(S.l)("void => *",Object(S.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(S.l)("* => void",Object(S.e)("100ms 25ms linear",Object(S.k)({opacity:0})))])};let F=0;const L=256,M=new r.t("mat-select-scroll-strategy"),V=new r.t("MAT_SELECT_CONFIG"),B={provide:M,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class H{constructor(t,e){this.source=t,this.value=e}}class z{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const U=Object(o.r)(Object(o.u)(Object(o.s)(Object(o.t)(z)))),$=new r.t("MatSelectTrigger");let W=(()=>{class t extends U{constructor(t,e,n,i,s,o,a,l,c,h,u,d,w,C){var S,x,O;super(s,i,a,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this.ngControl=h,this._liveAnnouncer=w,this._defaultOptions=C,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.a,this._overlayPanelClass=(null===(S=this._defaultOptions)||void 0===S?void 0:S.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(O=null===(x=this._defaultOptions)||void 0===x?void 0:x.disableOptionCentering)&&void 0!==O&&O,this.ariaLabel="",this.optionSelectionChanges=Object(f.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(g.a)(t),Object(b.a)(()=>Object(m.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object(_.a)(1),Object(b.a)(()=>this.optionSelectionChanges))}),this.openedChange=new r.p,this._openedStream=this.openedChange.pipe(Object(y.a)(t=>t),Object(v.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(y.a)(t=>!t),Object(v.a)(()=>{})),this.selectionChange=new r.p,this.valueChange=new r.p,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=C.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(h.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(h.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(h.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(h.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new u.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(w.a)(),Object(C.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(C.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(g.a)(null),Object(C.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.d||e===d.p||e===d.i||e===d.m,i=e===d.f||e===d.n,s=this._keyManager;if(!s.isTyping()&&i&&!Object(d.s)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.d||n===d.p,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.f&&n!==d.n||!e.activeItem||Object(d.s)(t))if(!s&&this._multiple&&n===d.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(_.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(C.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(C.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(m.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(C.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(m.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(C.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Rb(l.e),r.Rb(r.i),r.Rb(r.C),r.Rb(o.a),r.Rb(r.m),r.Rb(x.b,8),r.Rb(O.l,8),r.Rb(O.e,8),r.Rb(a.a,8),r.Rb(O.i,10),r.cc("tabindex"),r.Rb(M),r.Rb(c.h),r.Rb(V,8))},t.\u0275dir=r.Mb({type:t,viewQuery:function(t,e){if(1&t&&(r.Gc(E,1),r.Gc(k,1),r.Gc(i.a,1)),2&t){let t;r.pc(t=r.fc())&&(e.trigger=t.first),r.pc(t=r.fc())&&(e.panel=t.first),r.pc(t=r.fc())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.Cb,r.Db]}),t})(),q=(()=>{class t extends W{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(C.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=Object(o.o)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(o.p)((t+e)*n,n,this.panel.nativeElement.scrollTop,L)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new H(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(L/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-L)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,L)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,L),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=Object(o.o)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return G(e||t)},t.\u0275cmp=r.Lb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Kb(n,$,1),r.Kb(n,o.h,1),r.Kb(n,o.b,1)),2&t){let t;r.pc(t=r.fc())&&(e.customTrigger=t.first),r.pc(t=r.fc())&&(e.options=t),r.pc(t=r.fc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.ec("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.Gb("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.Jb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r.Eb([{provide:a.d,useExisting:t},{provide:o.c,useExisting:t}]),r.Cb],ngContentSelectors:P,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.mc(D),r.Xb(0,"div",0,1),r.ec("click",function(){return e.toggle()}),r.Xb(3,"div",2),r.Ac(4,T,2,1,"span",3),r.Ac(5,j,3,2,"span",4),r.Wb(),r.Xb(6,"div",5),r.Sb(7,"div",6),r.Wb(),r.Wb(),r.Ac(8,I,4,14,"ng-template",7),r.ec("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.qc(1);r.Gb("aria-owns",e.panelOpen?e.id+"-panel":null),r.Fb(3),r.nc("ngSwitch",e.empty),r.Gb("id",e._valueId),r.Fb(1),r.nc("ngSwitchCase",!0),r.Fb(1),r.nc("ngSwitchCase",!1),r.Fb(3),r.nc("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,s.m,s.n,i.a,s.o,s.i],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})();const G=r.Zb(q);let X=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({providers:[B],imports:[[s.c,i.f,o.i,o.e],l.b,a.e,o.i,o.e]}),t})()},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("l7GE"),s=n("51Dv"),r=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function l(t,e){return"function"==typeof e?n=>n.pipe(l((n,i)=>Object(a.a)(t(n,i)).pipe(Object(o.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new c(t))}class c{constructor(t){this.project=t}call(t,e){return e.subscribe(new h(t,this.project))}}class h extends i.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const o=new s.a(this,e,n),a=this.destination;a.add(o),this.innerSubscription=Object(r.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,s){this.destination.next(e)}}},eNwd:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("3N8a");class s extends i.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var r=n("IjjT");class o extends r.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||U,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||N.Emulated,id:"c",styles:t.styles||U,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Y++,n.inputs=st(t.inputs,e),n.outputs=st(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(J):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(tt):null,n})}function J(t){const e=at(t)||function(t){return t[W]||null}(t);return e}function tt(t){const e=function(t){return t[q]||null}(t);return e}const et={};function nt(t){const e={type:t.type,bootstrap:t.bootstrap||U,declarations:t.declarations||U,imports:t.imports||U,exports:t.exports||U,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&D(()=>{et[t.id]=t.type}),e}function it(t,e){return D(()=>{const n=lt(t,!0);n.declarations=e.declarations||U,n.imports=e.imports||U,n.exports=e.exports||U})}function st(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const rt=Q;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[$]||null}function lt(t,e){const n=t[G]||null;if(!n&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return n}const ct=20,ht=10;function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function bt(t,e){return t.hasOwnProperty(Z)?t[Z]:null}class _t{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function yt(){return vt}function vt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ct),wt}function wt(){const t=St(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ct(t,e,n,i){const s=St(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new _t(l&&l.currentValue,e,o===H),t[i]=e}function St(t){return t.__ngSimpleChanges__||null}yt.ngInherit=!0;const xt="http://www.w3.org/2000/svg";let Ot;function Et(t){Ot=t}function kt(){return void 0!==Ot?Ot:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}const Rt={createRenderer:(t,e)=>kt()};function At(t){for(;Array.isArray(t);)t=t[0];return t}function jt(t,e){return At(e[t])}function It(t,e){return At(e[t.index])}function Dt(t,e){return t.data[e]}function Pt(t,e){return t[e]}function Nt(t,e){const n=e[t];return ut(n)?n:n[0]}function Ft(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Lt(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Vt(t,e){return null==e?null:t[e]}function Bt(t){t[18]=0}function Ht(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const zt={lFrame:pe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ut(){return zt.bindingsEnabled}function $t(){return zt.lFrame.lView}function Wt(){return zt.lFrame.tView}function qt(t){zt.lFrame.contextLView=t}function Gt(){let t=Xt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Xt(){return zt.lFrame.currentTNode}function Zt(t,e){const n=zt.lFrame;n.currentTNode=t,n.isParent=e}function Kt(){return zt.lFrame.isParent}function Yt(){zt.lFrame.isParent=!1}function Qt(){return zt.isInCheckNoChangesMode}function Jt(t){zt.isInCheckNoChangesMode=t}function te(){const t=zt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ee(){return zt.lFrame.bindingIndex}function ne(){return zt.lFrame.bindingIndex++}function ie(t){const e=zt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function se(t,e){const n=zt.lFrame;n.bindingIndex=n.bindingRootIndex=t,re(e)}function re(t){zt.lFrame.currentDirectiveIndex=t}function oe(t){const e=zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ae(){return zt.lFrame.currentQueryIndex}function le(t){zt.lFrame.currentQueryIndex=t}function ce(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&R.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&R.Host||(i=ce(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=zt.lFrame=de();return i.currentTNode=e,i.lView=t,!0}function ue(t){const e=de(),n=t[1];zt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function de(){const t=zt.lFrame,e=null===t?null:t.child;return null===e?pe(t):e}function pe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function fe(){const t=zt.lFrame;return zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const me=fe;function ge(){const t=fe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function be(){return zt.lFrame.selectedIndex}function _e(t){zt.lFrame.selectedIndex=t}function ye(){const t=zt.lFrame;return Dt(t.tView,t.selectedIndex)}function ve(){zt.lFrame.currentNamespace=xt}function we(){zt.lFrame.currentNamespace=null}function Ce(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const Te=-1;class Re{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ae(t,e,n){const i=Tt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let Me=!0;function Ve(t){const e=Me;return Me=t,e}let Be=0;function He(t,e){const n=Ue(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,ze(i.data,t),ze(e,null),ze(i.blueprint,null));const s=$e(t,e),r=t.injectorIndex;if(Ne(s)){const t=Fe(s),n=Le(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ue(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function $e(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return Te;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Te}function We(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(K)&&(i=n[K]),null==i&&(i=n[K]=Be++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:Ke:e}(n);if("function"==typeof r){if(!he(e,t,i))return i&R.Host?qe(s,n,i):Ge(e,n,i,s);try{const t=r();if(null!=t||i&R.Optional)return t;y(n)}finally{me()}}else if("number"==typeof r){let s=null,o=Ue(t,e),a=Te,l=i&R.Host?e[16][6]:null;for((-1===o||i&R.SkipSelf)&&(a=-1===o?$e(t,e):e[o+8],a!==Te&&en(i,!1)?(s=e[1],o=Fe(a),e=Le(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(r,o,t.data)){const t=Ye(o,e,n,s,i,l);if(t!==Ze)return t}a=e[o+8],a!==Te&&en(i,e[1].data[o+8]===l)&&tn(r,o,e)?(s=t,o=Fe(a),e=Le(a,e)):o=-1}}}return Ge(e,n,i,s)}const Ze={};function Ke(){return new nn(Gt(),$t())}function Ye(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Qe(a,o,n,null==i?ft(a)&&Me:i!=o&&0!=(3&a.type),s&R.Host&&r===a);return null!==l?Je(e,o,l,a):Ze}function Qe(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u=l&&t.type===n)return u}if(s){const t=o[l];if(t&>(t)&&t.type===n)return l}return null}function Je(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof Re){const o=s;o.resolving&&function(t,e){throw new g("200",`Circular dependency in DI detected for ${t}`)}(_(r[n]));const a=Ve(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?j(o.injectImpl):null;he(t,i,R.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=vt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&j(l),Ve(a),o.resolving=!1,me()}}return s}function tn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Z]||rn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Z]||rn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function rn(t){return m(t)?()=>{const e=rn(f(t));return e&&e()}:bt(t)}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class cn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=v({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const hn=new cn("AnalyzeForEntryComponents"),un=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function _n(t,e){const n=yn(t,e);if(n>=0)return t[1|n]}function yn(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const vn={},wn=/\n/gm,Cn="__source",Sn=l({provide:String,useValue:l});let xn;function On(t){const e=xn;return xn=t,e}function En(t,e=R.Default){if(void 0===xn)throw new Error("inject() must be called from an injection context");return null===xn?I(t,void 0,e):xn.get(t,e&R.Optional?null:void 0,e)}function kn(t,e=R.Default){return(A||En)(f(t),e)}const Tn=kn;function Rn(t){const e=[];for(let n=0;n({token:t})),-1),In=An(ln("Optional"),8),Dn=An(ln("SkipSelf"),4);let Pn,Nn;function Fn(t){var e;return(null===(e=function(){if(void 0===Pn&&(Pn=null,B.trustedTypes))try{Pn=B.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Pn}())||void 0===e?void 0:e.createHTML(t))||t}function Ln(t){var e;return(null===(e=function(){if(void 0===Nn&&(Nn=null,B.trustedTypes))try{Nn=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Nn}())||void 0===e?void 0:e.createHTML(t))||t}class Mn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends Mn{getTypeName(){return"HTML"}}class Bn extends Mn{getTypeName(){return"Style"}}class Hn extends Mn{getTypeName(){return"Script"}}class zn extends Mn{getTypeName(){return"URL"}}class Un extends Mn{getTypeName(){return"ResourceURL"}}function $n(t){return t instanceof Mn?t.changingThisBreaksApplicationSecurity:t}function Wn(t,e){const n=qn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function qn(t){return t instanceof Mn&&t.getTypeName()||null}function Gn(t){return new Vn(t)}function Xn(t){return new Bn(t)}function Zn(t){return new Hn(t)}function Kn(t){return new zn(t)}function Yn(t){return new Un(t)}class Qn{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Fn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Jn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Fn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Fn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0ni(t.trim())).join(", ")),this.buf.push(" ",e,'="',bi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ci.hasOwnProperty(e)&&!ri.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(bi(t))}checkClobberedElement(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}}const mi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function bi(t){return t.replace(/&/g,"&").replace(mi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let _i;function yi(t,e){let n=null;try{_i=_i||function(t){const e=new Jn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Fn(""),"text/html")}catch(t){return!1}}()?new Qn(e):e}(t);let i=e?String(e):"";n=_i.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=_i.getInertBodyElement(i)}while(i!==r);return Fn((new fi).sanitizeChildren(vi(n)||n))}finally{if(n){const t=vi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function vi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var wi=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}({});function Ci(t){const e=xi();return e?Ln(e.sanitize(wi.HTML,t)||""):Wn(t,"HTML")?Ln($n(t)):yi(kt(),b(t))}function Si(t){const e=xi();return e?e.sanitize(wi.URL,t)||"":Wn(t,"URL")?$n(t):ni(b(t))}function xi(){const t=$t();return t&&t[12]}function Oi(t){return t.ngDebugContext}function Ei(t){return t.ngOriginalError}function ki(t,...e){t.error(...e)}class Ti{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ki}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Oi(t)?Oi(t):this._findContext(Ei(t)):null}_findOriginalError(t){let e=Ei(t);for(;e&&Ei(e);)e=Ei(e);return e}}function Ri(t,e){t.__ngContext__=e}const Ai=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function ji(t){return{name:"window",target:t.ownerDocument.defaultView}}function Ii(t){return{name:"body",target:t.ownerDocument.body}}function Di(t){return t instanceof Function?t():t}var Pi=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Ni(t,e){return(void 0)(t,e)}function Fi(t){const e=t[3];return dt(e)?e[3]:e}function Li(t){return Vi(t[13])}function Mi(t){return Vi(t[4])}function Vi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function Bi(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ut(i)&&(o=!0,i=i[0]);const a=At(i);0===t&&null!==n?null==s?Xi(e,n,a):Gi(e,n,a,s||null,!0):1===t&&null!==n?Gi(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ki(t,e);i&&function(t,e,n,i){Tt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==At(n)&&Bi(e,t,i,r,s);for(let o=ht;o0&&(t[n-1][4]=i[4]);const o=mn(t,ht+e);ss(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function $i(t,e){if(!(256&e[2])){const n=e[11];Tt(n)&&n.destroyNode&&ss(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Wi(t[1],t);for(;e;){let n=null;if(ut(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ut(e)&&Wi(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&Wi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Wi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==ls(e,c,0)||2&i&&c!==t){if(fs(i))return!1;o=!0}}}}else{if(!o&&!fs(i)&&!fs(l))return!1;if(o&&fs(l))continue;o=!1,i=l|1&i}}return fs(i)||o}function fs(t){return 0==(1&t)}function ms(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||fs(o)||(e+=_s(r,s),s=""),i=o,r=r||!fs(i);n++}return""!==s&&(e+=_s(r,s)),e}const vs={};function ws(t){Cs(Wt(),$t(),be()+t,Qt())}function Cs(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Se(e,i,n)}else{const i=t.preOrderHooks;null!==i&&xe(e,i,0,n)}_e(n)}function Ss(t,e){return t<<17|e<<2}function xs(t){return t>>17&32767}function Os(t){return 2|t}function Es(t){return(131068&t)>>2}function ks(t,e){return-131069&t|e<<2}function Ts(t){return 1|t}function Rs(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;ict&&Cs(t,e,ct,Qt()),n(i,s)}finally{_e(r)}}function Ls(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function Gs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Xs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Zs(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&ir(n)}}function ir(t){for(let n=Li(t);null!==n;n=Mi(n))for(let t=ht;t0&&ir(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ir(i)}}function sr(t,e){const n=Nt(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function ur(t){return t[7]||(t[7]=[])}function dr(t){return t.cleanup||(t.cleanup=[])}function pr(t,e,n){return(null===t||gt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function fr(t,e){const n=t[9],i=n?n.get(Ti,null):null;i&&i.handleError(e)}function mr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],s)),this.records.set(_r,Ar(void 0,this));const r=this.records.get(vr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=R.Default){this.assertNotDestroyed();const i=On(this);try{if(!(n&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof cn)&&C(t);e=n&&this.injectableDefInScope(n)?Ar(Tr(t),wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&R.Self?Or():this.parent).get(t,e=n&R.Optional&&e===vn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(h(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[Cn]&&s.unshift(e[Cn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=h(e);if(Array.isArray(e))s=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):h(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(wn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{On(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(h(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let i=x(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=x(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Sr))}}this.injectorDefTypes.add(r);const a=bt(r)||(()=>new r);this.records.set(r,Ar(a,wr));const l=i.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Ir(t=f(t))?t:f(t&&t.provide);const s=function(t,e,n){return jr(t)?Ar(void 0,t.useValue):Ar(Rr(t),wr)}(t);if(Ir(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Ar(void 0,wr,!0),e.factory=()=>Rn(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===wr&&(e.value=Cr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Tr(t){const e=C(t),n=null!==e?e.factory:bt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gn(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[O]||t[k]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Rr(t,e,n){let i;if(Ir(t)){const e=f(t);return bt(e)||Tr(e)}if(jr(t))i=()=>f(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Rn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>kn(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return bt(e)||Tr(e);i=()=>new e(...Rn(t.deps))}var s;return i}function Ar(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function jr(t){return null!==t&&"object"==typeof t&&Sn in t}function Ir(t){return"function"==typeof t}const Dr=function(t,e,n){return function(t,e=null,n=null,i){const s=Er(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Pr=(()=>{class t{static create(t,e){return Array.isArray(t)?Dr(t,e,""):Dr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=vn,t.NULL=new yr,t.\u0275prov=v({token:t,providedIn:"any",factory:()=>kn(_r)}),t.__NG_ELEMENT_ID__=-1,t})();function Nr(t,e){Ce(Ft(t)[1],Gt())}function Fr(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Lr(t.inputs),e.declaredInputs=Lr(t.declaredInputs),e.outputs=Lr(t.outputs);const n=s.hostBindings;n&&Br(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Mr(t,r),o&&Vr(t,o),c(t.inputs,s.inputs),c(t.declaredInputs,s.declaredInputs),c(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=De(s.hostAttrs,n=De(n,s.hostAttrs))}}(i)}function Lr(t){return t===H?{}:t===U?[]:t}function Mr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Vr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function Br(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Hr=null;function zr(){if(!Hr){const t=B.Symbol;if(t&&t.iterator)Hr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(At(t[i.index])).target:i.index;if(Tt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=go(i,e,0,r,!1);const t=n.listen(p.name||f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=go(i,e,0,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}else r=go(i,e,0,r,!1);const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,zt.lFrame.contextLView))[8]}(t)}function _o(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const So={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xo(t){return t.substring(So.key,So.keyEnd)}function Oo(t,e){const n=So.textEnd;return n===e?-1:(e=So.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,So.key=e,n),Eo(t,e,n))}function Eo(t,e,n){for(;e=0;n=Oo(e,n))bn(t,xo(e),!0)}function jo(t,e,n,i){const s=$t(),r=Wt(),o=ie(2);r.firstUpdatePass&&Po(r,t,o,i),e!==vs&&Gr(s,o,e)&&Lo(r,r.data[be()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h($n(t)))),t}(e,n),i,o)}function Io(t,e,n,i){const s=Wt(),r=ie(2);s.firstUpdatePass&&Po(s,null,r,i);const o=$t();if(n!==vs&&Gr(o,r,n)){const a=s.data[be()];if(Bo(a,i)&&!Do(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=u(t,n||"")),to(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===vs&&(s=z);let l=0,c=0,h=0=t.expandoStartIndex}function Po(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[be()],o=Do(t,n);Bo(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=oe(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Fo(n=No(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=No(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Es(i))return t[xs(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=No(null,t,e,n[1],i),n=Fo(n,e.attrs,i),function(t,e,n,i){t[xs(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=xs(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=ks(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=ks(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=ks(t[l+1],i),l=i;h&&(t[i+1]=Os(t[i+1])),wo(t,c,i,!0),wo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&yn(r,e)>=0&&(n[i+1]=Ts(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function No(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===vs&&(h=c?z:void 0);let u=c?_n(h,i):l===i?h:void 0;if(r&&!Vo(u)&&(u=_n(e,i)),Vo(u)&&(a=u,o))return a;const d=t[s+1];s=o?xs(d):Es(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=_n(t,i))}return a}function Vo(t){return void 0!==t}function Bo(t,e){return 0!=(t.flags&(e?16:32))}function Ho(t,e=""){const n=$t(),i=Wt(),s=t+ct,r=i.firstCreatePass?js(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Ji(i,n,o,r),Zt(r,!1)}function zo(t){return Uo("",t,""),zo}function Uo(t,e,n){const i=$t(),s=Zr(i,t,e,n);return s!==vs&&gr(i,be(),s),Uo}function $o(t,e,n,i,s,r,o){const a=$t(),l=function(t,e,n,i,s,r,o,a){const l=function(t,e,n,i,s){const r=function(t,e,n,i){const s=Gr(t,e,n);return Gr(t,e+1,i)||s}(t,e,n,i);return Gr(t,e+2,s)||r}(t,ee(),n,s,o);return ie(3),l?e+b(n)+i+b(s)+r+b(o)+a:vs}(a,t,e,n,i,s,r,o);return l!==vs&&gr(a,be(),l),$o}function Wo(t,e,n){Io(bn,Ao,Zr($t(),t,e,n),!0)}function qo(t,e,n){const i=$t();return Gr(i,ne(),e)&&$s(Wt(),ye(),i,t,e,i[11],n,!0),qo}function Go(t,e,n){const i=$t();if(Gr(i,ne(),e)){const s=Wt(),r=ye();$s(s,r,i,t,e,pr(oe(s.data),r,i),n,!0)}return Go}const Xo=void 0;var Zo=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ko={};function Yo(t,e,n){"string"!=typeof e&&(n=e,e=t[na.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Ko[e]=t,n&&(Ko[e][na.ExtraData]=n)}function Qo(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ea(e);if(n)return n;const i=e.split("-")[0];if(n=ea(i),n)return n;if("en"===i)return Zo;throw new Error(`Missing locale data for the locale "${t}".`)}function Jo(t){return Qo(t)[na.CurrencyCode]||null}function ta(t){return Qo(t)[na.PluralCase]}function ea(t){return t in Ko||(Ko[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),Ko[t]}var na=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const ia="en-US";let sa=ia;function ra(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(sa=t.toLowerCase().replace(/_/g,"-"))}function oa(t,e,n,i,s){if(t=f(t),Array.isArray(t))for(let r=0;r>20;if(Ir(t)||!t.multi){const i=new Re(l,s,Qr),p=ca(a,e,s?h:h+d,u);-1===p?(We(He(c,o),r,a),aa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=ca(a,e,h+d,u),f=ca(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){We(He(c,o),r,a);const h=function(t,e,n,i,s){const r=new Re(t,n,Qr);return r.multi=[],r.index=e,r.componentProviders=0,la(r,s,i&&!n),r}(s?ua:ha,n.length,s,i,l);!s&&g&&(n[f].providerFactory=h),aa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else aa(r,t,p>-1?p:f,la(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function aa(t,e,n,i){const s=Ir(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function la(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ca(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Wt();if(i.firstCreatePass){const s=gt(t);oa(n,i.data,i.blueprint,s,!0),oa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class fa{}class ma{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ga=(()=>{class t{}return t.NULL=new ma,t})();function ba(...t){}function _a(t,e){return new va(It(t,e))}const ya=function(){return _a(Gt(),$t())};let va=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ya,t})();function wa(t){return t instanceof va?t.nativeElement:t}class Ca{}let Sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>xa(),t})();const xa=function(){const t=$t(),e=Nt(Gt().index,t);return function(t){return t[11]}(ut(e)?e:t)};let Oa=(()=>{class t{}return t.\u0275prov=v({token:t,providedIn:"root",factory:()=>null}),t})();class Ea{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ka=new Ea("11.2.14");class Ta{constructor(){}supports(t){return $r(t)}create(t){return new Aa(t)}}const Ra=(t,e)=>e;class Aa{constructor(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||Ra}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new ja(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Da),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Da),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ja{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ia{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Da{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ia,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pa(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new La(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class La{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ma(){return new Va([new Ta])}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ma()),deps:[[t,new Dn,new In]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=v({token:t,providedIn:"root",factory:Ma}),t})();function Ba(){return new Ha([new Na])}let Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ba()),deps:[[t,new Dn,new In]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=v({token:t,providedIn:"root",factory:Ba}),t})();function za(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(At(r)),dt(r))for(let t=ht;t-1&&(Ui(t,n),mn(e,n))}this._attachedToViewContainer=!1}$i(this._lView[1],this._lView)}onDestroy(t){zs(this._lView[1],this._lView,null,t)}markForCheck(){or(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ar(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Jt(!0);try{ar(t,e,n)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,ss(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class $a extends Ua{constructor(t){super(t),this._view=t}detectChanges(){lr(this._view)}checkNoChanges(){!function(t){Jt(!0);try{lr(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const Wa=Ga;let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t.__ChangeDetectorRef__=!0,t})();function Ga(t=!1){return function(t,e,n){if(!n&&ft(t)){const n=Nt(t.index,e);return new Ua(n,n)}return 47&t.type?new Ua(e[16],e):null}(Gt(),$t(),t)}const Xa=[new Na],Za=new Va([new Ta]),Ka=new Ha(Xa),Ya=function(){return el(Gt(),$t())};let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ya,t})();const Ja=Qa,tl=class extends Ja{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=As(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ds(e,n,t),new Ua(n)}};function el(t,e){return 4&t.type?new tl(e,t,_a(t,e)):null}class nl{}class il{}const sl=function(){return hl(Gt(),$t())};let rl=(()=>{class t{}return t.__NG_ELEMENT_ID__=sl,t})();const ol=rl,al=class extends ol{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return _a(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=$e(this._hostTNode,this._hostLView);if(Ne(t)){const e=Le(t,this._hostLView),n=Fe(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ll(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ht}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(nl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new al(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=ht+i,r=n.length;i>0&&(n[s-1][4]=e),iAi});class ml extends fa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ys).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return pl(this.componentDef.inputs)}get outputs(){return pl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,ul,s);return r!==ul||i===ul?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Ca,Rt),o=s.get(Oa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Tt(t))return t.selectRootElement(e,n===N.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Hi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?xt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:Ai,clean:hr,playerHandler:null,flags:0},d=Hs(0,null,null,1,0,null,null,null,null,null),p=As(null,d,u,h,null,null,r,a,o,s);let f,m;ue(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=js(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(br(a,l,!0),null!==t&&(Ae(s,t,l),null!==a.classes&&as(s,t,a.classes),null!==a.styles&&os(s,t,a.styles)));const c=i.createRenderer(t,e),h=As(n,Bs(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(We(He(a,n),o,e.type),Xs(o,a),Ks(a,n.length,1)),rr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Ae(a,c,["ng-version",ka.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&as(a,c,e.join(" "))}if(m=Dt(d,ct),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Gt();e.contentQueries(1,o,t.directiveStart)}const a=Gt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(_e(a.index),qs(n[1],a,0,a.directiveStart,a.directiveEnd,e),Gs(e,o)),o}(t,this.componentDef,p,u,[Nr]),Ds(d,p,null)}finally{ge()}return new gl(this.componentType,f,_a(m,p),p,m)}}class gl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new $a(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const bl=new Map;class _l extends nl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new dl(this);const n=lt(t),i=t[X]||null;i&&ra(i),this._bootstrapComponents=Di(n.bootstrap),this._r3Injector=Er(t,e,[{provide:nl,useValue:this},{provide:ga,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Pr.THROW_IF_NOT_FOUND,n=R.Default){return t===Pr||t===nl||t===_r?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class yl extends il{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(n){const i=lt(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(s,bl.get(s),n),bl.set(s,n));const r=Di(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new _l(this.moduleType,t)}}function vl(t,e,n){const i=te()+t,s=$t();return s[i]===vs?qr(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function wl(t,e){const n=Wt();let i;const s=t+ct;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new g("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=bt(i.type)),o=j(Qr);try{const t=Ve(!1),e=r();return Ve(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,$t(),s,e),e}finally{j(o)}}function Cl(t,e,n){const i=t+ct,s=$t(),r=Pt(s,i);return function(t,e){return Ur.isWrapped(e)&&(e=Ur.unwrap(e),t[ee()]=vs),e}(s,function(t,e){return t[1].data[e].pure}(s,i)?function(t,e,n,i,s,r){const o=e+n;return Gr(t,o,s)?qr(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===vs?void 0:n}(t,o+1)}(s,te(),e,r.transform,n,r):r.transform(n))}function Sl(t){return e=>{setTimeout(t,void 0,e)}}const xl=class extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Sl(l),a&&(a=Sl(a)),c&&(c=Sl(c)));const h=super.subscribe({next:a,error:l,complete:c});return t instanceof s.a&&t.add(h),h}};function Ol(){return this._results[zr()]()}class El{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zr(),n=El.prototype;n[e]||(n[e]=Ol)}get changes(){return this._changes||(this._changes=new xl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=ht;t{class t{constructor(t){this.appInits=t,this.resolve=ba,this.reject=ba,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(kn(Wl,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const Gl=new cn("AppId"),Xl={provide:Gl,useFactory:function(){return`${Zl()}${Zl()}${Zl()}`},deps:[]};function Zl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Kl=new cn("Platform Initializer"),Yl=new cn("Platform ID"),Ql=new cn("appBootstrapListener");let Jl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const tc=new cn("LocaleId"),ec=new cn("DefaultCurrencyCode");class nc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ic=function(t){return new yl(t)},sc=ic,rc=function(t){return Promise.resolve(ic(t))},oc=function(t){const e=ic(t),n=Di(lt(t).declarations).reduce((t,e)=>{const n=at(e);return n&&t.push(new ml(n)),t},[]);return new nc(e,n)},ac=oc,lc=function(t){return Promise.resolve(oc(t))};let cc=(()=>{class t{constructor(){this.compileModuleSync=sc,this.compileModuleAsync=rc,this.compileModuleAndAllComponentsSync=ac,this.compileModuleAndAllComponentsAsync=lc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const hc=new cn("compilerOptions"),uc=(()=>Promise.resolve(0))();function dc(t){"undefined"==typeof Zone?uc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class pc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xl(!1),this.onMicrotaskEmpty=new xl(!1),this.onStable=new xl(!1),this.onError=new xl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gc(t),mc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return bc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),_c(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return bc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),_c(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,gc(t),mc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(pc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,fc,ba,ba);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const fc={};function mc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function gc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function bc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _c(t){t._nesting--,mc(t)}class yc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xl,this.onMicrotaskEmpty=new xl,this.onStable=new xl,this.onError=new xl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let vc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pc.assertNotInAngularZone(),dc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())dc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(kn(pc))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})(),wc=(()=>{class t{constructor(){this._applications=new Map,Oc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Oc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();class Cc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Sc(t){Oc=t}let xc,Oc=new Cc,Ec=!0,kc=!1;function Tc(){return kc=!0,Ec}function Rc(){if(kc)throw new Error("Cannot enable prod mode after platform setup.");Ec=!1}const Ac=new cn("AllowMultipleToken");class jc{constructor(t,e){this.name=t,this.token=e}}function Ic(t,e,n=[]){const i=`Platform: ${e}`,s=new cn(i);return(e=[])=>{let r=Dc();if(!r||r.injector.get(Ac,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:vr,useValue:"platform"});!function(t){if(xc&&!xc.destroyed&&!xc.injector.get(Ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xc=t.get(Pc);const e=t.get(Kl,null);e&&e.forEach(t=>t())}(Pr.create({providers:t,name:i}))}return function(t){const e=Dc();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}(s)}}function Dc(){return xc&&!xc.destroyed?xc:null}let Pc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new yc:("zone.js"===t?void 0:t)||new pc({enableLongStackTrace:Tc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:pc,useValue:n}];return n.run(()=>{const e=Pr.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(Ti,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Lc(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return lo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(ql);return t.runInitializers(),t.donePromise.then(()=>(ra(s.injector.get(tc,ia)||ia),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Nc({},e);return function(t,e,n){const i=new yl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Fc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(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)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(kn(Pr))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Nc(t,e){return Array.isArray(e)?e.reduce(Nc,t):Object.assign(Object.assign({},t),e)}let Fc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new r.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new r.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{pc.assertNotInAngularZone(),dc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{pc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,c.pipe(Object(a.a)()))}bootstrap(t,e){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.");let n;n=t instanceof fa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(nl),s=n.create(Pr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(vc,null),a=o&&s.injector.get(wc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Lc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Lc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ql,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(kn(pc),kn(Pr),kn(Ti),kn(ga),kn(ql))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Lc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Mc{}class Vc{}const Bc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Hc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Bc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>zc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>zc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(kn(cc),kn(Vc,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function zc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class Uc extends qa{}class $c extends Uc{}const Wc=function(t){return null},qc=Ic(null,"core",[{provide:Yl,useValue:"unknown"},{provide:Pc,deps:[Pr]},{provide:wc,deps:[]},{provide:Jl,deps:[]}]),Gc=[{provide:Fc,useClass:Fc,deps:[pc,Pr,Ti,ga,ql]},{provide:fl,deps:[pc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ql,useClass:ql,deps:[[new In,Wl]]},{provide:cc,useClass:cc,deps:[]},Xl,{provide:Va,useFactory:function(){return Za},deps:[]},{provide:Ha,useFactory:function(){return Ka},deps:[]},{provide:tc,useFactory:function(t){return ra(t=t||"undefined"!=typeof $localize&&$localize.locale||ia),t},deps:[[new jn(tc),new In,new Dn]]},{provide:ec,useValue:"USD"}];let Xc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(kn(Fc))},t.\u0275mod=nt({type:t}),t.\u0275inj=w({providers:Gc}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("2fFW"),s=n("NJ4a");const r={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},itXk:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("z+Ro"),s=n("DH7j"),r=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const l={};function c(...t){let e=null,n=null;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new h(e))}class h{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new u(t,this.resultSelector))}}class u extends r.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{const i=new s.a;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",function(){return M}),n.d(e,"b",function(){return I}),n.d(e,"c",function(){return F}),n.d(e,"d",function(){return C});var i=n("ofXK"),s=n("fXoL");class r extends i.v{constructor(){super()}supportsDOMEvents(){return!0}}class o extends r{static makeCurrent(){Object(i.z)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(i.y)(document.cookie,t)}}let a,l=null;const c=new s.t("TRANSITION_ID"),h=[{provide:s.d,useFactory:function(t,e,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=Object(i.x)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,i.d,s.u],multi:!0}];class u{static init(){Object(s.bb)(new u)}addToWindow(t){s.tb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.tb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.tb.getAllAngularRootElements=()=>t.getAllRootElements(),s.tb.frameworkStabilizers||(s.tb.frameworkStabilizers=[]),s.tb.frameworkStabilizers.push(t=>{const e=s.tb.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Object(i.x)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.t("EventManagerPlugins");let p=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(b))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();function b(t){Object(i.x)().remove(t)}const _={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},y=/%COMP%/g;function v(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.T.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new x(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.T.ShadowDom:return new O(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=v(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.bc(p),s.bc(g),s.bc(s.c))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();class S{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=_[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=_[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.J.DashCase|s.J.Important)?t.style.setProperty(e,n,i&s.J.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.J.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,w(n)):this.eventManager.addEventListener(t,e,w(n))}}class x extends S{constructor(t,e,n,i){super(t),this.component=n;const s=v(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(y,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(y,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class O extends S{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=v(i.id,i.styles,[]);for(let r=0;r{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const k=["alt","control","meta","shift"],T={"\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"},R={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"},A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let j=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.x)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(k.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&R.hasOwnProperty(e)&&(e=R[e]))}return T[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),k.forEach(i=>{i!=n&&(0,A[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Nb)({factory:function(){return Object(s.bc)(P)},token:t,providedIn:"root"}),t})();function D(t){return new P(t.get(i.d))}let P=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.L.NONE:return e;case s.L.HTML:return Object(s.ib)(e,"HTML")?Object(s.Bb)(e):Object(s.gb)(this._doc,String(e)).toString();case s.L.STYLE:return Object(s.ib)(e,"Style")?Object(s.Bb)(e):e;case s.L.SCRIPT:if(Object(s.ib)(e,"Script"))return Object(s.Bb)(e);throw new Error("unsafe value used in a script context");case s.L.URL:return Object(s.sb)(e),Object(s.ib)(e,"URL")?Object(s.Bb)(e):Object(s.hb)(String(e));case s.L.RESOURCE_URL:if(Object(s.ib)(e,"ResourceURL"))return Object(s.Bb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(s.jb)(t)}bypassSecurityTrustStyle(t){return Object(s.mb)(t)}bypassSecurityTrustScript(t){return Object(s.lb)(t)}bypassSecurityTrustUrl(t){return Object(s.nb)(t)}bypassSecurityTrustResourceUrl(t){return Object(s.kb)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return D(Object(s.bc)(s.q))},token:t,providedIn:"root"}),t})();const N=[{provide:s.E,useValue:i.w},{provide:s.F,useValue:function(){o.makeCurrent(),u.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(s.zb)(document),document},deps:[]}],F=Object(s.U)(s.ab,"browser",N),L=[[],{provide:s.db,useValue:"root"},{provide:s.o,useFactory:function(){return new s.o},deps:[]},{provide:d,useClass:E,multi:!0,deps:[i.d,s.C,s.E]},{provide:d,useClass:j,multi:!0,deps:[i.d]},[],{provide:C,useClass:C,deps:[p,g,s.c]},{provide:s.I,useExisting:C},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[i.d]},{provide:s.P,useClass:s.P,deps:[s.C]},{provide:p,useClass:p,deps:[d,s.C]},[]];let M=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.c,useValue:e.appId},{provide:c,useExisting:s.c},h]}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(t,12))},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({providers:L,imports:[i.c,s.f]}),t})();"undefined"!=typeof window&&window},jtHE:function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n("XNiG"),s=n("3N8a");class r extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("IjjT");class a extends o.a{}const l=new a(r);var c=n("quSY"),h=n("7o/Q"),u=n("EY2u"),d=n("LRne"),p=n("z6cu");let f=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(d.a)(this.value);case"E":return Object(p.a)(this.error);case"C":return Object(u.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class m extends h.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(m.dispatch,this.delay,new g(t,this.destination)))}_next(t){this.scheduleMessage(f.createNext(t))}_error(t){this.scheduleMessage(f.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(f.createComplete()),this.unsubscribe()}}class g{constructor(t,e){this.notification=t,this.destination=e}}var b=n("9ppp"),_=n("Ylt2");class y extends i.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new v(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new b.a;if(this.isStopped||this.hasError?r=c.a.EMPTY:(this.observers.push(t),r=new _.a(this,t)),i&&t.add(t=new m(t,i)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class v{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kmnG:function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return L}),n.d(e,"c",function(){return Q}),n.d(e,"d",function(){return V}),n.d(e,"e",function(){return J}),n.d(e,"f",function(){return z}),n.d(e,"g",function(){return U});var i=n("GU7r"),s=n("ofXK"),r=n("fXoL"),o=n("FKr1"),a=n("8LU1"),l=n("XNiG"),c=n("VRyK"),h=n("xgIS"),u=n("JX91"),d=n("1G5W"),p=n("IzEk"),f=n("R0Ic"),m=n("R1ws"),g=n("cH1L"),b=n("nLfN");const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function C(t,e){1&t&&(r.Vb(0),r.Xb(1,"div",14),r.Sb(2,"div",15),r.Sb(3,"div",16),r.Sb(4,"div",17),r.Wb(),r.Xb(5,"div",18),r.Sb(6,"div",15),r.Sb(7,"div",16),r.Sb(8,"div",17),r.Wb(),r.Ub())}function S(t,e){1&t&&(r.Xb(0,"div",19),r.lc(1,1),r.Wb())}function x(t,e){if(1&t&&(r.Vb(0),r.lc(1,2),r.Xb(2,"span"),r.Cc(3),r.Wb(),r.Ub()),2&t){const t=r.ic(2);r.Fb(3),r.Dc(t._control.placeholder)}}function O(t,e){1&t&&r.lc(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(r.Xb(0,"span",23),r.Cc(1," *"),r.Wb())}function k(t,e){if(1&t){const t=r.Yb();r.Xb(0,"label",20,21),r.ec("cdkObserveContent",function(){return r.tc(t),r.ic().updateOutlineGap()}),r.Ac(2,x,4,1,"ng-container",12),r.Ac(3,O,1,0,"ng-content",12),r.Ac(4,E,2,0,"span",22),r.Wb()}if(2&t){const t=r.ic();r.Jb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.nc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.Gb("for",t._control.id)("aria-owns",t._control.id),r.Fb(2),r.nc("ngSwitchCase",!1),r.Fb(1),r.nc("ngSwitchCase",!0),r.Fb(1),r.nc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(r.Xb(0,"div",24),r.lc(1,4),r.Wb())}function R(t,e){if(1&t&&(r.Xb(0,"div",25,26),r.Sb(2,"span",27),r.Wb()),2&t){const t=r.ic();r.Fb(2),r.Jb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function A(t,e){if(1&t&&(r.Xb(0,"div"),r.lc(1,5),r.Wb()),2&t){const t=r.ic();r.nc("@transitionMessages",t._subscriptAnimationState)}}function j(t,e){if(1&t&&(r.Xb(0,"div",31),r.Cc(1),r.Wb()),2&t){const t=r.ic(2);r.nc("id",t._hintLabelId),r.Fb(1),r.Dc(t.hintLabel)}}function I(t,e){if(1&t&&(r.Xb(0,"div",28),r.Ac(1,j,2,2,"div",29),r.lc(2,6),r.Sb(3,"div",30),r.lc(4,7),r.Wb()),2&t){const t=r.ic();r.nc("@transitionMessages",t._subscriptAnimationState),r.Fb(1),r.nc("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],P=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0;const F=new r.t("MatError");let L=(()=>{class t{constructor(){this.id="mat-error-"+N++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&r.Gb("id",e.id)},inputs:{id:"id"},features:[r.Eb([{provide:F,useExisting:t}])]}),t})();const M={transitionMessages:Object(f.m)("transitionMessages",[Object(f.j)("enter",Object(f.k)({opacity:1,transform:"translateY(0%)"})),Object(f.l)("void => enter",[Object(f.k)({opacity:0,transform:"translateY(-5px)"}),Object(f.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t}),t})(),B=0;const H=new r.t("MatHint");let z=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+B++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(r.Gb("id",e.id)("align",null),r.Jb("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[r.Eb([{provide:H,useExisting:t}])]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-label"]]}),t})(),$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Mb({type:t,selectors:[["mat-placeholder"]]}),t})();const W=new r.t("MatPrefix"),q=new r.t("MatSuffix");let G=0;class X{constructor(t){this._elementRef=t}}const Z=Object(o.q)(X,"primary"),K=new r.t("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Y=new r.t("MatFormField");let Q=(()=>{class t extends Z{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+G++,this._labelId="mat-form-field-label-"+G++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(a.c)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Object(u.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(c.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(u.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(u.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(h.a)(this._label.nativeElement,"transitionend").pipe(Object(p.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({imports:[[s.c,o.e,i.c],o.e]}),t})()},l7GE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");class s extends i.a{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mrSG:function(t,e,n){"use strict";function i(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}n.d(e,"a",function(){return i})},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",function(){return i})},nLfN:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return _}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return g});var i=n("fXoL"),s=n("ofXK");let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(s.t)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.E))},t.\u0275prov=Object(i.Nb)({factory:function(){return new t(Object(i.bc)(i.E))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let u,d,p,f;function m(t){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>u=!0}))}finally{u=u||!1}return u}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q"),s=n("quSY");function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.a{constructor(t,e){super(t),this.add(new s.a(e))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>e=>{for(let n=0,i=t.length;n{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return Object(i.bc)(d)}const u=new i.t("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=r().getLocation(),this._history=r().getHistory()}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.bc(l))},t.\u0275prov=Object(i.Nb)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d(Object(i.bc)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Nb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(i.bc)(l).location;return new w(Object(i.bc)(c),e&&e.origin||"")}const v=new i.t("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c),i.bc(v,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c),i.bc(v,8))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t{constructor(t,e){this._subject=new i.p,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(O(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(_),i.bc(c))},t.normalizeQueryParams=b,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(i.Nb)({factory:x,token:t,providedIn:"root"}),t})();function x(){return new S(Object(i.bc)(_),Object(i.bc)(c))}function O(t){return t.replace(/\/index.html$/,"")}var E=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}({});const k=i.rb;class T{}let R=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(k(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.bc(i.x))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();function A(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let j=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(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&&(Object(i.ub)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(i.Ab)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.v),i.Rb(i.w),i.Rb(i.m),i.Rb(i.H))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class I{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new I(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new P(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new P(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S),i.Rb(i.O),i.Rb(i.v))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class P{constructor(t,e){this.record=t,this.view=e}}let N=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){L("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){L("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S),i.Rb(i.O))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function L(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.Ab)(e)}'.`)}class M{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let V=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new M(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S),i.Rb(i.O),i.Rb(V,9))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),H=(()=>{class t{constructor(t,e,n){n._addDefault(new M(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S),i.Rb(i.O),i.Rb(V,9))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),z=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.m),i.Rb(i.w),i.Rb(i.H))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),U=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(i.Rb(i.S))},t.\u0275dir=i.Mb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Db]}),t})();class ${createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class W{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const q=new W,G=new $;let X=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(i.wb)(e))return q;if(Object(i.xb)(e))return G;throw n=t,Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.Ab)(n)}'`);var n}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.dc())},t.\u0275pipe=i.Qb({name:"async",type:t,pure:!1}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({providers:[{provide:T,useClass:R}]}),t})();const K="browser";function Y(t){return t===K}function Q(t){return"server"===t}let J=(()=>{class t{}return t.\u0275prov=Object(i.Nb)({token:t,providedIn:"root",factory:()=>new tt(Object(i.bc)(l),window)}),t})();class tt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=et(this.window.history)||et(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function et(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("DH7j"),s=n("XoHu"),r=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof o?e.errors:e),[])}},rDax:function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return K}),n.d(e,"c",function(){return G}),n.d(e,"d",function(){return k}),n.d(e,"e",function(){return P}),n.d(e,"f",function(){return J});var i=n("vxfF"),s=n("fXoL"),r=n("nLfN"),o=n("cH1L"),a=n("ofXK"),l=n("8LU1"),c=n("+rOU"),h=n("XNiG"),u=n("quSY"),d=n("VRyK"),p=n("IzEk"),f=n("1G5W"),m=n("7o/Q");class g{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new b(t,this.predicate,this.inclusive))}}class b extends m.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var _=n("FtGj");const y=Object(r.g)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(l.d)(-this._previousScrollPosition.left),t.style.top=Object(l.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),y&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),y&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class C{enable(){}disable(){}attach(){}}function S(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function x(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class O{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();S(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let E=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new C,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new O(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.c),s.bc(i.e),s.bc(s.C),s.bc(a.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.c),Object(s.bc)(i.e),Object(s.bc)(s.C),Object(s.bc)(a.d))},token:t,providedIn:"root"}),t})();class k{constructor(t){if(this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class T{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class R{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let A=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.bc(a.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(a.d))},token:t,providedIn:"root"}),t})(),j=(()=>{class t extends A{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(a.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(a.d))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends A{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(a.d),s.bc(r.a))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(a.d),Object(s.bc)(r.a))},token:t,providedIn:"root"}),t})();const D=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let P=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||D){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new h.a,this._outsidePointerEvents=new h.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Object(l.d)(this._config.width),t.height=Object(l.d)(this._config.height),t.minWidth=Object(l.d)(this._config.minWidth),t.minHeight=Object(l.d)(this._config.minHeight),t.maxWidth=Object(l.d)(this._config.maxWidth),t.maxHeight=Object(l.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Object(l.b)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(f.a)(Object(d.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const F="cdk-overlay-connected-position-bounding-box",L=/([A-Za-z%]+)$/;class M{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new h.a,this._resizeSubscription=u.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(F),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&V(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(F),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=H(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,h=o+s.height-n.height,u=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,h),p=u*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:u==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=B(this._overlayRef.getConfig().minHeight),o=B(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=H(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,h=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Object(l.d)(n.height),i.top=Object(l.d)(n.top),i.bottom=Object(l.d)(n.bottom),i.width=Object(l.d)(n.width),i.left=Object(l.d)(n.left),i.right=Object(l.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Object(l.d)(t)),s&&(i.maxWidth=Object(l.d)(s))}this._lastBoundingBoxSize=n,V(this._boundingBox.style,i)}_resetBoundingBoxStyles(){V(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){V(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();V(n,this._getExactOverlayY(e,t,i)),V(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=Object(l.d)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=Object(l.d)(r.maxWidth):s&&(n.maxWidth="")),V(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=Object(l.d)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=Object(l.d)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:x(t,n),isOriginOutsideView:S(t,n),isOverlayClipped:x(e,n),isOverlayOutsideView:S(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Object(l.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.m)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function V(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function B(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(L);return n&&"px"!==n?null:parseFloat(e)}return t||null}function H(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class z{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new M(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new T(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const U="cdk-global-overlay-wrapper";class ${constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(U),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(U),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let W=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new $}connectedTo(t,e,n){return new z(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new M(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.e),s.bc(a.d),s.bc(r.a),s.bc(P))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.e),Object(s.bc)(a.d),Object(s.bc)(r.a),Object(s.bc)(P))},token:t,providedIn:"root"}),t})(),q=0,G=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new k(t);return s.direction=s.direction||this._directionality.value,new N(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+q++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new c.d(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(E),s.bc(P),s.bc(s.k),s.bc(W),s.bc(j),s.bc(s.u),s.bc(s.C),s.bc(a.d),s.bc(o.b),s.bc(a.g),s.bc(I))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const X=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Z=new s.t("cdk-connected-overlay-scroll-strategy");let K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Y=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.a.EMPTY,this._attachSubscription=u.a.EMPTY,this._detachSubscription=u.a.EMPTY,this._positionSubscription=u.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.p,this.positionChange=new s.p,this.attach=new s.p,this.detach=new s.p,this.overlayKeydown=new s.p,this.overlayOutsideClick=new s.p,this._templatePortal=new c.f(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(l.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(l.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(l.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(l.c)(t)}get push(){return this._push}set push(t){this._push=Object(l.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=X);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==_.g||this.disableClose||Object(_.s)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new k({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new g(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(G),s.Rb(s.O),s.Rb(s.S),s.Rb(Z),s.Rb(o.b,8))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.Db]}),t})();const Q={provide:Z,deps:[G],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let J=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({providers:[G,Q],imports:[[o.a,c.e,i.d],i.d]}),t})()},sxot:function(t,e,n){"use strict";n.d(e,"f",function(){return o}),n.d(e,"g",function(){return a}),n.d(e,"h",function(){return l}),n.d(e,"d",function(){return c}),n.d(e,"c",function(){return h}),n.d(e,"i",function(){return u}),n.d(e,"e",function(){return p}),n.d(e,"b",function(){return f}),n.d(e,"a",function(){return m});var i=n("mrSG"),s=n("AcyG");let r=(()=>{class t{constructor(t){this.isAceAllowed=t}}return t.type="[App-State] Setting IsAceAllowed",t})(),o=(()=>{class t{constructor(t){this.screens=t}}return t.type="[App-State] Set ScreenModel",t})(),a=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Selected ScreenModel",t})(),l=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Update ScreenModel",t})(),c=(()=>{class t{constructor(t){this.screenName=t}}return t.type="[App-State] Delete ScreenModel",t})(),h=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Create ScreenModel",t})(),u=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Update Statuses",t})(),d=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Is Loading",t})(),p=(()=>{class t{constructor(t){this.payload=t}}return t.type="[App-State] Set Controlled Screen",t})(),f=(()=>{class t{constructor(){}}return t.type="[App-State] Clear Selected Screen",t})(),m=(()=>{let t=class{static isAceAllowed(t){return t.isAceAllowed}static getScreens(t){return t.screens}static getStatuses(t){return t.screenStatus}static getControlledScreen(t){return t.screenStatus.find(e=>e.screenName===t.controlledScreen)}static getSelectedScreen(t){return t.selectedScreen}static isLoading(t){return t.isLoading}setIsLoading(t,{payload:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{isLoading:e}))}deleteScreen({getState:t,setState:e},{screenName:n}){const i=t(),s=i.screens.filter(t=>t.name!==n);e(Object.assign(Object.assign({},i),{screens:s}))}updateStatuses(t,{payload:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{screenStatus:e}))}clearControlledScreen(t,{}){const e=t.getState();t.setState(Object.assign(Object.assign({},e),{controlledScreen:""}))}updateScreen({getState:t,setState:e},{payload:n}){const i=t(),s=[...i.screens],r=s.findIndex(t=>t.id===n.id);s[r]=n,e(Object.assign(Object.assign({},i),{screens:s}))}createScreen({getState:t,setState:e},{payload:n}){const i=t(),s=[...i.screens];s.push(n),e(Object.assign(Object.assign({},i),{screens:s}))}setControlledScreen(t,{payload:e}){const n=t.getState(),i=[...n.screenStatus].findIndex(t=>t.screenName===e);t.setState(Object.assign(Object.assign({},n),{controlledScreen:n.screenStatus[i].screenName}))}setSelectedScreen({getState:t,setState:e},{payload:n}){const i=t();e(Object.assign(Object.assign({},i),{selectedScreen:n}))}addScreen(t,{screens:e}){var n;t.setState((n={screens:e},function(t){let e=null;for(const i in n){const s=n[i],r=t[i],o="function"==typeof s?s(r):s;o!==r&&(e||(e=Object.assign({},t)),e[i]=o)}return e||t}))}setIsAceAllowed(t,{isAceAllowed:e}){const n=t.getState();t.setState(Object.assign(Object.assign({},n),{isAceAllowed:e}))}};return Object(i.a)([Object(s.a)(d)],t.prototype,"setIsLoading",null),Object(i.a)([Object(s.a)(c)],t.prototype,"deleteScreen",null),Object(i.a)([Object(s.a)(u)],t.prototype,"updateStatuses",null),Object(i.a)([Object(s.a)(f)],t.prototype,"clearControlledScreen",null),Object(i.a)([Object(s.a)(l)],t.prototype,"updateScreen",null),Object(i.a)([Object(s.a)(h)],t.prototype,"createScreen",null),Object(i.a)([Object(s.a)(p)],t.prototype,"setControlledScreen",null),Object(i.a)([Object(s.a)(a)],t.prototype,"setSelectedScreen",null),Object(i.a)([Object(s.a)(o)],t.prototype,"addScreen",null),Object(i.a)([Object(s.a)(r)],t.prototype,"setIsAceAllowed",null),Object(i.a)([Object(s.e)()],t,"isAceAllowed",null),Object(i.a)([Object(s.e)()],t,"getScreens",null),Object(i.a)([Object(s.e)()],t,"getStatuses",null),Object(i.a)([Object(s.e)()],t,"getControlledScreen",null),Object(i.a)([Object(s.e)()],t,"getSelectedScreen",null),Object(i.a)([Object(s.e)()],t,"isLoading",null),t=Object(i.a)([Object(s.f)({name:"app",defaults:{isAceAllowed:!1,screens:[],selectedScreen:null,screenStatus:null,isLoading:!1,controlledScreen:""}})],t),t})()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",function(){return E}),n.d(e,"b",function(){return H});var i=n("fXoL"),s=n("LRne"),r=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("ofXK");class h{}class u{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(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,"/")}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,n,i){let s;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)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new y(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new C({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})}}class S extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({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})}}class x extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function O(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let E=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof y)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new y(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Object(s.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===n.observe)return r;const c=r.pipe(Object(a.a)(t=>t instanceof S));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));default:return c.pipe(Object(l.a)(t=>t.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.bc(h))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();class k{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const T=new i.t("HTTP_INTERCEPTORS");let R=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const A=/^\)\]\}',?\n/;class j{}let I=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new C({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(A,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new S({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new x({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new x({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:v.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.bc(j))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})();const P=new i.t("XSRF_COOKIE_NAME"),N=new i.t("XSRF_HEADER_NAME");class F{}let L=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.y)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.bc(c.d),i.bc(i.E),i.bc(P))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(F),i.bc(N))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(T,[]);this.chain=t.reduceRight((t,e)=>new k(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.bc(u),i.bc(i.u))},t.\u0275prov=i.Nb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:M,useClass:R}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({providers:[M,{provide:T,useExisting:M,multi:!0},{provide:F,useClass:L},{provide:P,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Pb({type:t}),t.\u0275inj=i.Ob({providers:[E,{provide:h,useClass:V},D,{provide:u,useExisting:D},I,{provide:j,useExisting:I}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",function(){return mn}),n.d(e,"b",function(){return gn}),n.d(e,"c",function(){return bn}),n.d(e,"d",function(){return Rn}),n.d(e,"e",function(){return yn});var i=n("ofXK"),s=n("fXoL"),r=n("Cfvw"),o=n("LRne"),a=n("2Vo4"),l=n("itXk"),c=n("HDdC");const h=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var u=n("GyhO"),d=n("NXyV"),p=n("EY2u"),f=n("EQ5u"),m=n("XNiG"),g=n("lJxs"),b=n("eIep"),_=n("IzEk"),y=n("JX91"),v=n("7o/Q");function w(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new C(t,e,n))}}class C{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new S(t,this.accumulator,this.seed,this.hasSeed))}}class S extends v.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var x=n("pLZG"),O=n("JIr8"),E=n("bOdf"),k=n("4I5i");function T(t){return function(e){return 0===t?Object(p.b)():e.lift(new R(t))}}class R{constructor(t){if(this.total=t,this.total<0)throw new k.a}call(t,e){return e.subscribe(new A(t,this.total))}}class A extends v.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new I(t))}class I{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new D(t,this.errorFactory))}}class D extends v.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function P(){return new h}var N=n("xbPD"),F=n("SpAZ");function L(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(x.a)((e,n)=>t(e,n,i)):F.a,Object(_.a)(1),n?Object(N.a)(e):j(()=>new h))}var M=n("5+tZ"),V=n("vkgz"),B=n("x+ZX"),H=n("nYR2"),z=n("bHdf");class U{constructor(t,e){this.id=t,this.url=e}}class $ extends U{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class W extends U{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class q extends U{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class G extends U{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class X extends U{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Z extends U{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K extends U{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Y extends U{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q extends U{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class J{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class et{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class it{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ot="primary";class at{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function lt(t){return new at(t)}function ct(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ht(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function pt(t){return Array.prototype.concat.apply([],t)}function ft(t){return t.length>0?t[t.length-1]:null}function mt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function gt(t){return Object(s.vb)(t)?t:Object(s.wb)(t)?Object(r.a)(Promise.resolve(t)):Object(o.a)(t)}function bt(t,e,n){return n?function(t,e){return ut(t,e)}(t.queryParams,e.queryParams)&&_t(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>dt(t[n],e[n]))}(t.queryParams,e.queryParams)&&yt(t.root,e.root)}function _t(t,e){if(!xt(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!_t(t.children[n],e.children[n]))return!1}return!0}function yt(t,e){return vt(t,e,e.segments)}function vt(t,e,n){if(t.segments.length>n.length)return!!xt(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!xt(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!yt(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!xt(t.segments,i)&&!!t.children.primary&&vt(t.children.primary,e,s)}}class wt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){return kt.serialize(this)}}class Ct{constructor(t,e){this.segments=t,this.children=e,this.parent=null,mt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tt(this)}}class St{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=lt(this.parameters)),this._parameterMap}toString(){return Nt(this)}}function xt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Ot{}class Et{parse(t){const e=new Bt(t);return new wt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Rt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${jt(e)}=${jt(t)}`).join("&"):`${jt(e)}=${jt(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const kt=new Et;function Tt(t){return t.segments.map(t=>Nt(t)).join("/")}function Rt(t,e){if(!t.hasChildren())return Tt(t);if(e){const e=t.children.primary?Rt(t.children.primary,!1):"",n=[];return mt(t.children,(t,e)=>{e!==ot&&n.push(`${e}:${Rt(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return mt(t.children,(t,i)=>{i===ot&&(n=n.concat(e(t,i)))}),mt(t.children,(t,i)=>{i!==ot&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===ot?[Rt(t.children.primary,!1)]:[`${n}:${Rt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Tt(t)}/${e[0]}`:`${Tt(t)}/(${e.join("//")})`}}function At(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jt(t){return At(t).replace(/%3B/gi,";")}function It(t){return At(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Dt(t){return decodeURIComponent(t)}function Pt(t){return Dt(t.replace(/\+/g,"%20"))}function Nt(t){return`${It(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${It(t)}=${It(e[t])}`).join("")}`;var e}const Ft=/^[^\/()?;=#]+/;function Lt(t){const e=t.match(Ft);return e?e[0]:""}const Mt=/^[^=?&#]+/,Vt=/^[^?&#]+/;class Bt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Ct(t,e)),n}parseSegment(){const t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new St(Dt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Lt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Lt(this.remaining);t&&(n=t,this.capture(n))}t[Dt(e)]=Dt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Mt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Vt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Pt(e),s=Pt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Lt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=ot);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Ct([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ht{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=zt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=zt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ut(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ut(t,this._root).map(t=>t.value)}}function zt(t,e){if(t===e.value)return e;for(const n of e.children){const e=zt(t,n);if(e)return e}return null}function Ut(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Ut(t,n);if(i.length)return i.unshift(e),i}return[]}class $t{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Wt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class qt extends Ht{constructor(t,e){super(t),this.snapshot=e,Qt(this,t)}toString(){return this.snapshot.toString()}}function Gt(t,e){const n=function(t,e){const n=new Kt([],{},{},"",{},ot,e,null,t.root,-1,{});return new Yt("",new $t(n,[]))}(t,e),i=new a.a([new St("",{})]),s=new a.a({}),r=new a.a({}),o=new a.a({}),l=new a.a(""),c=new Xt(i,s,o,l,r,ot,e,n.root);return c.snapshot=n.root,new qt(new $t(c,[]),n)}class Xt{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(g.a)(t=>lt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(g.a)(t=>lt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Zt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Kt{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yt extends Ht{constructor(t,e){super(e),this.url=t,Qt(this,e)}toString(){return Jt(this._root)}}function Qt(t,e){e.value._routerState=t,e.children.forEach(e=>Qt(t,e))}function Jt(t){const e=t.children.length>0?` { ${t.children.map(Jt).join(", ")} } `:"";return`${t.value}${e}`}function te(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ut(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ut(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nut(t.parameters,s[e].parameters));var i,s;return n&&!(!t.parent!=!e.parent)&&(!t.parent||ee(t.parent,e.parent))}function ne(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return ne(t,e,i);return ne(t,e)})}(t,e,n);return new $t(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ie(e,t),t}}const n=new Xt(new a.a((i=e.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),s=e.children.map(e=>ne(t,e));return new $t(n,s)}var i}function ie(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new wt(n.root===t?e:ae(n.root,t,e),r,s)}function ae(t,e,n){const i={};return mt(t.children,(t,s)=>{i[s]=t===e?n:ae(t,e,n)}),new Ct(t.segments,i)}class le{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&se(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(re);if(i&&i!==ft(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ce{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function he(t,e,n){if(t||(t=new Ct([],{})),0===t.segments.length&&t.hasChildren())return ue(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(re(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!me(a,l,e))return r;i+=2}else{if(!me(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=he(t.children[i],e,n))}),mt(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Ct(t.segments,s)}}function de(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=de(new Ct([],{}),0,t))}),e}function fe(t){const e={};return mt(t,(t,n)=>e[n]=`${t}`),e}function me(t,e,n){return t==n.path&&ut(e,n.parameters)}class ge{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),te(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Wt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),mt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=Wt(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Wt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new st(t.value.snapshot))}),t.children.length&&this.forwardEvent(new nt(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(te(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),be(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function be(t){te(t.value),t.children.forEach(be)}class _e{constructor(t,e){this.routes=t,this.module=e}}function ye(t){return"function"==typeof t}function ve(t){return t instanceof wt}const we=Symbol("INITIAL_VALUE");function Ce(){return Object(b.a)(t=>Object(l.a)(t.map(t=>t.pipe(Object(_.a)(1),Object(y.a)(we)))).pipe(w((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==we)return t;if(i===we&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||ve(i))return i}return t},t)},we),Object(x.a)(t=>t!==we),Object(g.a)(t=>ve(t)?t:!0===t),Object(_.a)(1)))}let Se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Sb(0,"router-outlet")},directives:function(){return[yn]},encapsulation:2}),t})();function xe(t,e=""){for(let n=0;nTe(t)===e);return n.push(...t.filter(t=>Te(t)!==e)),n}const Ae={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function je(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ae):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||ht)(n,t,e);if(!s)return Object.assign({},Ae);const r={};mt(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Ie(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>De(t,e,n)&&Te(n)!==ot)}(t,n,i)){const s=new Ct(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Te(r)!==ot){const n=new Ct([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Te(r)]=n}return s}(t,e,i,new Ct(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>De(t,e,n))}(t,n,i)){const r=new Ct(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(De(t,n,a)&&!s[Te(a)]){const n=new Ct([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Te(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Ct(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function De(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Pe(t,e,n,i){return!!(Te(t)===i||i!==ot&&De(e,n,t))&&("**"===t.path||je(e,t,n).matched)}function Ne(t,e,n){return 0===e.length&&!t.children[n]}class Fe{constructor(t){this.segmentGroup=t||null}}class Le{constructor(t){this.urlTree=t}}function Me(t){return new c.a(e=>e.error(new Fe(t)))}function Ve(t){return new c.a(e=>e.error(new Le(t)))}function Be(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class He{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.A)}apply(){const t=Ie(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ct(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ot).pipe(Object(g.a)(t=>this.createUrlTree(ze(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(O.a)(t=>{if(t instanceof Le)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Fe)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ot).pipe(Object(g.a)(e=>this.createUrlTree(ze(e),t.queryParams,t.fragment))).pipe(Object(O.a)(t=>{if(t instanceof Fe)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Ct([],{[ot]:t}):t;return new wt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(g.a)(t=>new Ct([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return Object(r.a)(i).pipe(Object(E.a)(i=>{const s=n.children[i],r=Re(e,i);return this.expandSegmentGroup(t,r,s,i).pipe(Object(g.a)(t=>({segment:t,outlet:i})))}),w((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(x.a)((e,n)=>t(e,n,i)):F.a,T(1),n?Object(N.a)(e):j(()=>new h))}())}expandSegment(t,e,n,i,s,a){return Object(r.a)(n).pipe(Object(E.a)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,a).pipe(Object(O.a)(t=>{if(t instanceof Fe)return Object(o.a)(null);throw t}))),L(t=>!!t),Object(O.a)((t,n)=>{if(t instanceof h||"EmptyError"===t.name){if(Ne(e,i,s))return Object(o.a)(new Ct([],{}));throw new Fe(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return Pe(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Me(e):Me(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ve(s):this.lineralizeSegments(n,s).pipe(Object(M.a)(n=>{const s=new Ct(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=je(e,i,s);if(!o)return Me(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ve(h):this.lineralizeSegments(i,h).pipe(Object(M.a)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(o.a)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(Object(g.a)(t=>(n._loadedConfig=t,new Ct(i,{})))):Object(o.a)(new Ct(i,{}));const{matched:r,consumedSegments:a,lastChild:l}=je(e,n,i);if(!r)return Me(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(M.a)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:h}=Ie(e,a,c,r),u=new Ct(l.segments,l.children);if(0===h.length&&u.hasChildren())return this.expandChildren(i,r,u).pipe(Object(g.a)(t=>new Ct(a,t)));if(0===r.length&&0===h.length)return Object(o.a)(new Ct(a,{}));const d=Te(n)===s;return this.expandSegment(i,u,r,h,d?ot:s,!0).pipe(Object(g.a)(t=>new Ct(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(o.a)(new _e(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(o.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(M.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(g.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(ct(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(o.a)(new _e([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return Object(o.a)(!0);const s=i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&ye(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!ye(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return gt(r)});return Object(o.a)(s).pipe(Ce(),Object(V.a)(t=>{if(!ve(t))return;const e=ct(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(g.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(o.a)(n);if(i.numberOfChildren>1||!i.children.primary)return Be(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new wt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return mt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return mt(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Ct(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function ze(t){const e={};for(const n of Object.keys(t.children)){const i=ze(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Ct(t.segments.concat(e.segments),e.children)}return t}(new Ct(t.segments,e))}class Ue{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $e{constructor(t,e){this.component=t,this.route=e}}function We(t,e,n){const i=t._root;return Ge(i,e?e._root:null,n,[i.value])}function qe(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Ge(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Wt(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!xt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!xt(t.url,e.url)||!ut(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ee(t,e)||!ut(t.queryParams,e.queryParams);default:return!ee(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Ue(i)):(r.data=o.data,r._resolvedData=o._resolvedData),Ge(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new $e(a.outlet.component,o))}else o&&Xe(e,a,s),s.canActivateChecks.push(new Ue(i)),Ge(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),mt(r,(t,e)=>Xe(t,n.getContext(e),s)),s}function Xe(t,e,n){const i=Wt(t),s=t.value;mt(i,(t,i)=>{Xe(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new $e(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Ze{}function Ke(t){return new c.a(e=>e.error(t))}class Ye{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Ie(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ot);if(null===e)return null;const n=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ot,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new $t(n,e),s=new Yt(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Zt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Re(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=Je(n);return i.sort((t,e)=>t.value.outlet===ot?-1:e.value.outlet===ot?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return Ne(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Pe(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?ft(n).parameters:{};s=new Kt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,nn(t),Te(t),t.component,t,tn(e),en(e)+n.length,sn(t))}else{const i=je(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new Kt(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,nn(t),Te(t),t.component,t,tn(e),en(e)+r.length,sn(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Ie(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new $t(s,t)]}if(0===a.length&&0===c.length)return[new $t(s,[])];const h=Te(t)===i,u=this.processSegment(a,l,c,h?ot:i);return null===u?null:[new $t(s,u)]}}function Qe(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Je(t){const e=[],n=new Set;for(const i of t){if(!Qe(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=Je(i.children);e.push(new $t(i.value,t))}return e.filter(t=>!n.has(t))}function tn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function en(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function nn(t){return t.data||{}}function sn(t){return t.resolve||{}}function rn(t){return Object(b.a)(e=>{const n=t(e);return n?Object(r.a)(n).pipe(Object(g.a)(()=>e)):Object(o.a)(e)})}class on extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const an=new s.t("ROUTES");class ln{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(Object(g.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new _e(pt(i.injector.get(an,void 0,s.s.Self|s.s.Optional)).map(ke),i)}),Object(O.a)(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.a(n,()=>new m.a).pipe(Object(B.a)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?Object(r.a)(this.loader.load(t)):gt(t()).pipe(Object(M.a)(t=>t instanceof s.y?Object(o.a)(t):Object(r.a)(this.compiler.compileModuleAsync(t))))}}class cn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new hn,this.attachRef=null}}class hn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new cn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class un{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function dn(t){throw t}function pn(t,e,n){return e.parse("/")}function fn(t,e){return Object(o.a)(null)}let mn=(()=>{class t{constructor(t,e,n,i,r,o,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new m.a,this.errorHandler=dn,this.malformedUriErrorHandler=pn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fn,afterPreactivation:fn},this.urlHandlingStrategy=new un,this.routeReuseStrategy=new on,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(s.A),this.console=r.get(s.cb);const h=r.get(s.C);this.isNgZoneEnabled=h instanceof s.C&&s.C.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new wt(new Ct([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ln(o,l,t=>this.triggerEvent(new J(t)),t=>this.triggerEvent(new tt(t))),this.routerState=Gt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(x.a)(t=>0!==t.id),Object(g.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(b.a)(t=>{let n=!1,i=!1;return Object(o.a)(t).pipe(Object(V.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(b.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(o.a)(t).pipe(Object(b.a)(t=>{const n=this.transitions.getValue();return e.next(new $(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.a:Promise.resolve(t)}),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,a=this.config,Object(b.a)(t=>function(t,e,n,i,s){return new He(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,a).pipe(Object(g.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),Object(V.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return Object(M.a)(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const a=new Ye(t,e,n,i,s,r).recognize();return null===a?Ke(new Ze):Object(o.a)(a)}catch(a){return Ke(a)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(Object(g.a)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(V.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:a}=t,l=new $(n,this.serializeUrl(i),s,r);e.next(l);const c=Gt(i,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.a}),rn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(V.a)(t=>{const e=new Z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(g.a)(t=>Object.assign(Object.assign({},t),{guards:We(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return Object(M.a)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(o.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(r.a)(t).pipe(Object(M.a)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(o.a)(!0);const a=r.map(r=>{const o=qe(r,e,s);let a;if(function(t){return t&&ye(t.canDeactivate)}(o))a=gt(o.canDeactivate(t,e,n,i));else{if(!ye(o))throw new Error("Invalid CanDeactivate guard");a=gt(o(t,e,n,i))}return a.pipe(L())});return Object(o.a)(a).pipe(Ce())}(t.component,t.route,n,e,i)),L(t=>!0!==t,!0))}(l,i,s,t).pipe(Object(M.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(r.a)(e).pipe(Object(E.a)(e=>Object(u.a)(function(t,e){return null!==t&&e&&e(new et(t)),Object(o.a)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new it(t)),Object(o.a)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(d.a)(()=>{const s=e.guards.map(s=>{const r=qe(s,e.node,n);let o;if(function(t){return t&&ye(t.canActivateChild)}(r))o=gt(r.canActivateChild(i,t));else{if(!ye(r))throw new Error("Invalid CanActivateChild guard");o=gt(r(i,t))}return o.pipe(L())});return Object(o.a)(s).pipe(Ce())}));return Object(o.a)(s).pipe(Ce())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(o.a)(!0);const s=i.map(i=>Object(d.a)(()=>{const s=qe(i,e,n);let r;if(function(t){return t&&ye(t.canActivate)}(s))r=gt(s.canActivate(e,t));else{if(!ye(s))throw new Error("Invalid CanActivate guard");r=gt(s(e,t))}return r.pipe(L())}));return Object(o.a)(s).pipe(Ce())}(t,e.route,n))),L(t=>!0!==t,!0))}(i,a,t,e):Object(o.a)(n)),Object(g.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(V.a)(t=>{if(ve(t.guardsResult)){const e=ct(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(x.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new q(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),rn(t=>{if(t.guards.canActivateChecks.length)return Object(o.a)(t).pipe(Object(V.a)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(b.a)(t=>{let n=!1;return Object(o.a)(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,Object(M.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(o.a)(t);let a=0;return Object(r.a)(n).pipe(Object(E.a)(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Object(o.a)({});const a={};return Object(r.a)(s).pipe(Object(M.a)(s=>function(t,e,n,i){const s=qe(t,e,i);return gt(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(Object(V.a)(t=>{a[s]=t}))),T(1),Object(M.a)(()=>Object.keys(a).length===s.length?Object(o.a)(a):p.a))}(t._resolve,t,e,i).pipe(Object(g.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Zt(t,n).resolve),null)))}(t.route,e,i,s)),Object(V.a)(()=>a++),T(1),Object(M.a)(e=>a===n.length?Object(o.a)(t):p.a))})),Object(V.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new q(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),Object(V.a)(t=>{const e=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),rn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(g.a)(t=>{const e=function(t,e,n){const i=ne(t,e._root,n?n._root:void 0);return new qt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(V.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(g.a)(t=>(new ge(a,t.targetRouterState,t.currentRouterState,l).activate(s),t))),Object(V.a)({next(){n=!0},complete(){n=!0}}),Object(H.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new q(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(O.a)(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=ve(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new q(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new G(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return p.a}));var s,a,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){xe(t),this.config=t.map(ke),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return oe(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new le(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return mt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new le(n,e,i)}(n);if(r.toRoot())return oe(e.root,new Ct([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new ce(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ce(t,t===e.root,0)}const i=se(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new ce(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?ue(o.segmentGroup,o.index,r.commands):he(o.segmentGroup,o.index,r.commands);return oe(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=ve(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new W(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.Q),s.bc(Ot),s.bc(hn),s.bc(i.g),s.bc(s.u),s.bc(s.z),s.bc(s.j),s.bc(void 0))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),gn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.a,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:_n(this.skipLocationChange),replaceUrl:_n(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_n(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(mn),s.Rb(Xt),s.cc("tabindex"),s.Rb(s.H),s.Rb(s.m))},t.\u0275dir=s.Mb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.ec("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.Db]}),t})(),bn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.a,this.subscription=t.events.subscribe(t=>{t instanceof W&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:_n(this.skipLocationChange),replaceUrl:_n(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_n(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(mn),s.Rb(Xt),s.Rb(i.h))},t.\u0275dir=s.Mb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.ec("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.ac("href",e.href,s.vc),s.Gb("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.Db]}),t})();function _n(t){return""===t||!!t}let yn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.p,this.deactivateEvents=new s.p,this.name=i||ot,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new vn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(hn),s.Rb(s.S),s.Rb(s.k),s.cc("name"),s.Rb(s.i))},t.\u0275dir=s.Mb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class vn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Xt?this.route:t===hn?this.childContexts:this.parent.get(t,e)}}class wn{}class Cn{preload(t,e){return Object(o.a)(null)}}let Sn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new ln(e,n,e=>t.triggerEvent(new J(e)),e=>t.triggerEvent(new tt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(x.a)(t=>t instanceof W),Object(E.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.A);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(r.a)(n).pipe(Object(z.a)(),Object(g.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Object(o.a)(e._loadedConfig):this.loader.load(t.injector,e)).pipe(Object(M.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(mn),s.bc(s.z),s.bc(s.j),s.bc(s.u),s.bc(wn))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})(),xn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof $?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof W&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof rt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new rt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.bc(mn),s.bc(i.s),s.bc(void 0))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const On=new s.t("ROUTER_CONFIGURATION"),En=new s.t("ROUTER_FORROOT_GUARD"),kn=[i.g,{provide:Ot,useClass:Et},{provide:mn,useFactory:function(t,e,n,s,r,o,a,l={},c,h){const u=new mn(null,t,e,n,s,r,o,pt(a));if(c&&(u.urlHandlingStrategy=c),h&&(u.routeReuseStrategy=h),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(l,u),l.enableTracing){const t=Object(i.x)();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[Ot,hn,i.g,s.u,s.z,s.j,an,On,[class{},new s.D],[class{},new s.D]]},hn,{provide:Xt,useFactory:function(t){return t.routerState.root},deps:[mn]},{provide:s.z,useClass:s.N},Sn,Cn,class{preload(t,e){return e().pipe(Object(O.a)(()=>Object(o.a)(null)))}},{provide:On,useValue:{enableTracing:!1}}];function Tn(){return new s.B("Router",mn)}let Rn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[kn,Dn(e),{provide:En,useFactory:In,deps:[[mn,new s.D,new s.M]]},{provide:On,useValue:n||{}},{provide:i.h,useFactory:jn,deps:[i.r,[new s.r(i.a),new s.D],On]},{provide:xn,useFactory:An,deps:[mn,i.s,On]},{provide:wn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Cn},{provide:s.B,multi:!0,useFactory:Tn},[Pn,{provide:s.d,multi:!0,useFactory:Nn,deps:[Pn]},{provide:Ln,useFactory:Fn,deps:[Pn]},{provide:s.b,multi:!0,useExisting:Ln}]]}}static forChild(e){return{ngModule:t,providers:[Dn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(En,8),s.bc(mn,8))},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({}),t})();function An(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new xn(t,e,n)}function jn(t,e,n={}){return n.useHash?new i.e(t,e):new i.q(t,e)}function In(t){return"guarded"}function Dn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:an,multi:!0,useValue:t}]}let Pn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new m.a}appInitializer(){return this.injector.get(i.f,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(mn),i=this.injector.get(On);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(o.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(On),n=this.injector.get(Sn),i=this.injector.get(xn),r=this.injector.get(mn),o=this.injector.get(s.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.u))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();function Nn(t){return t.appInitializer.bind(t)}function Fn(t){return t.bootstrapListener.bind(t)}const Ln=new s.t("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",function(){return G}),n.d(e,"b",function(){return k}),n.d(e,"c",function(){return S}),n.d(e,"d",function(){return T}),n.d(e,"e",function(){return H}),n.d(e,"f",function(){return D}),n.d(e,"g",function(){return q}),n.d(e,"h",function(){return F}),n.d(e,"i",function(){return L}),n.d(e,"j",function(){return M});var i=n("ofXK"),s=n("fXoL"),r=n("XNiG"),o=n("quSY"),a=n("LRne"),l=n("FtGj"),c=n("vkgz"),h=n("Kj3r"),u=n("pLZG"),d=n("lJxs"),p=n("IzEk"),f=n("8LU1"),m=n("nLfN"),g=n("GU7r");function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const _="cdk-describedby-message-container",y="cdk-describedby-host";let v=0;const w=new Map;let C=null,S=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=x(e,n);"string"!=typeof e?(O(e),w.set(i,{messageElement:e,referenceCount:0})):w.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=x(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=w.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}C&&0===C.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=w.get(e);!function(t,e,n){const i=b(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(y,""),n.referenceCount++}_removeMessageReference(t,e){const n=w.get(e);n.referenceCount--,function(t,e,n){const i=b(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(y)}_isElementDescribedByMessage(t,e){const n=b(t,"aria-describedby"),i=w.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})();function x(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function O(t){t.id||(t.id="cdk-describedby-message-"+v++)}class E{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.a,this._typeaheadSubscription=o.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.a,this.change=new r.a,t instanceof s.G&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(c.a)(t=>this._pressedLetters.push(t)),Object(h.a)(t),Object(u.a)(()=>this._pressedLetters.length>0),Object(d.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.o:return void this.tabOut.next();case l.d:if(this._vertical&&n){this.setNextItemActive();break}return;case l.p:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.m:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.i:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.h:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.e:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(l.s)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.q||e>=l.r&&e<=l.j)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.G?this._items.toArray():this._items}}class k extends E{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class T extends E{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let R=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===j(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=j(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||A(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(m.a))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(m.a))},token:t,providedIn:"root"}),t})();function A(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function j(t){if(!A(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(t)}}let D=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(R),s.bc(s.C),s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(R),Object(s.bc)(s.C),Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const P=new s.t("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),N=new s.t("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let F=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=L(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{M(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=z(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=z(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=Object(f.e)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(a.a)(null);const i=Object(m.c)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.a,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Object(f.e)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=Object(f.e)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=z(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===z(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,B),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,B)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,B),t.addEventListener("mousedown",this._documentMousedownListener,B),t.addEventListener("touchstart",this._documentTouchstartListener,B),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,B),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,B),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,B),t.removeEventListener("mousedown",this._documentMousedownListener,B),t.removeEventListener("touchstart",this._documentTouchstartListener,B),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.C),s.bc(m.a),s.bc(i.d,8),s.bc(V,8))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(s.C),Object(s.bc)(m.a),Object(s.bc)(i.d,8),Object(s.bc)(V,8))},token:t,providedIn:"root"}),t})();function z(t){return t.composedPath?t.composedPath()[0]:t.target}const U="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",W="cdk-high-contrast-active";let q=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(W),t.remove(U),t.remove($);const e=this.getHighContrastMode();1===e?(t.add(W),t.add(U)):2===e&&(t.add(W),t.add($))}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(m.a),s.bc(i.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(m.a),Object(s.bc)(i.d))},token:t,providedIn:"root"}),t})(),G=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.bc(q))},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[m.b,g.c]]}),t})()},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q");function s(){}var r=n("n6bG");function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.a{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,Object(r.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},vxfF:function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return _}),n.d(e,"c",function(){return m}),n.d(e,"d",function(){return y}),n.d(e,"e",function(){return b});var i=n("8LU1"),s=n("fXoL"),r=n("XNiG"),o=n("LRne"),a=n("HDdC"),l=n("xgIS");n("eNwd"),n("3N8a"),n("IjjT"),n("quSY"),n("7+OI"),n("/uUt");var c=n("3UWI"),h=n("pLZG"),u=n("1G5W");n("JX91"),n("7o/Q"),n("eIep"),n("UXun");var d=n("nLfN"),p=n("ofXK"),f=n("cH1L");n("0EQZ");let m=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(c.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(o.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(h.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=Object(i.e)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(l.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.C),s.bc(d.a),s.bc(p.d,8))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(s.C),Object(s.bc)(d.a),Object(s.bc)(p.d,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new r.a,this._elementScrolled=new a.a(t=>this.ngZone.runOutsideAngular(()=>Object(l.a)(this.elementRef.nativeElement,"scroll").pipe(Object(u.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(d.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(d.d)()?t.left=t.right:1==Object(d.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(d.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",n="right",i=this.elementRef.nativeElement;if("top"==t)return i.scrollTop;if("bottom"==t)return i.scrollHeight-i.clientHeight-i.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?n:e:"end"==t&&(t=s?e:n),s&&2==Object(d.d)()?t==e?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&1==Object(d.d)()?t==e?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:t==e?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(m),s.Rb(s.C),s.Rb(f.b,8))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),b=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new r.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(c.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(d.a),s.bc(s.C),s.bc(p.d,8))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(d.a),Object(s.bc)(s.C),Object(s.bc)(p.d,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[f.a,d.b,_],f.a,_]}),t})()},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("EQ5u"),s=n("x+ZX"),r=n("XNiG");function o(){return new r.a}function a(){return t=>{return Object(s.a)()((e=o,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,i.b);return s.source=t,s.subjectFactory=n,s})(t));var e}}},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},xbPD:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t=null){return e=>e.lift(new r(t))}class r{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends i.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("DH7j"),r=n("n6bG"),o=n("lJxs");function a(t,e,n,c){return Object(r.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(o.a)(t=>Object(s.a)(t)?c(...t):c(t))):new i.a(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;re.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("jhN1"),s=n("fXoL"),r=n("tyNb");const o=[{path:"quick-play",loadChildren:()=>n.e(1).then(n.bind(null,"hh/h")).then(t=>t.QuickPlayModule)},{path:"screens",loadChildren:()=>Promise.all([n.e(2),n.e(1),n.e(6)]).then(n.bind(null,"uBXI")).then(t=>t.ScreensModule)},{path:"status",loadChildren:()=>Promise.all([n.e(2),n.e(7)]).then(n.bind(null,"VePF")).then(t=>t.StatusModule)}];let a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[r.d.forRoot(o,{useHash:!0,relativeLinkResolution:"legacy"})],r.d]}),t})();var l=n("sxot"),c=n("tk/3"),h=n("AcyG"),u=n("rDax"),d=n("+rOU"),p=n("ofXK"),f=n("FKr1"),m=n("bTqV"),g=n("XNiG"),b=n("IzEk"),_=n("1G5W"),y=n("R0Ic"),v=n("u47x"),w=n("0MNC"),C=n("nLfN");function S(t,e){if(1&t){const t=s.Yb();s.Xb(0,"div",1),s.Xb(1,"button",2),s.ec("click",function(){return s.tc(t),s.ic().action()}),s.Cc(2),s.Wb(),s.Wb()}if(2&t){const t=s.ic();s.Fb(2),s.Dc(t.data.action)}}function x(t,e){}const O=new s.t("MatSnackBarData");class E{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const k=Math.pow(2,31)-1;class T{constructor(t,e){this._overlayRef=e,this._afterDismissed=new g.a,this._afterOpened=new g.a,this._onAction=new g.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,k))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let R=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(T),s.Rb(O))},t.\u0275cmp=s.Lb({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(s.Xb(0,"span"),s.Cc(1),s.Wb(),s.Ac(2,S,3,1,"div",0)),2&t&&(s.Fb(1),s.Dc(e.data.message),s.Fb(1),s.nc("ngIf",e.hasAction))},directives:[p.k,m.b],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const A={snackBarState:Object(y.m)("state",[Object(y.j)("void, hidden",Object(y.k)({transform:"scale(0.8)",opacity:0})),Object(y.j)("visible",Object(y.k)({transform:"scale(1)",opacity:1})),Object(y.l)("* => visible",Object(y.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(y.l)("* => void, * => hidden",Object(y.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(y.k)({opacity:0})))])};let j=(()=>{class t extends d.a{constructor(t,e,n,i,s){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this._platform=i,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new g.a,this._onExit=new g.a,this._onEnter=new g.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Object(b.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let n=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(n=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==n||n.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.C),s.Rb(s.m),s.Rb(s.i),s.Rb(C.a),s.Rb(E))},t.\u0275cmp=s.Lb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&s.Gc(d.b,3),2&t){let t;s.pc(t=s.fc())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&s.yc("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&s.zc("@state",e._animationState)},features:[s.Cb],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(s.Xb(0,"div",0),s.Ac(1,x,0,0,"ng-template",1),s.Wb(),s.Sb(2,"div")),2&t&&(s.Fb(2),s.Gb("aria-live",e._live)("role",e._role))},directives:[d.b],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[A.snackBarState]}}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[u.f,d.e,p.c,m.c,f.e],f.e]}),t})();const D=new s.t("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new E}});let P=(()=>{class t{constructor(t,e,n,i,s,r){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=s,this._defaultConfig=r,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=R,this.snackBarContainerComponent=j,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=s.u.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:E,useValue:e}]}),i=new d.c(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new E),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),o=new T(r,i);if(t instanceof s.O){const e=new d.f(t,null,{$implicit:n.data,snackBarRef:o});o.instance=r.attachTemplatePortal(e)}else{const e=this._createInjector(n,o),i=new d.c(t,void 0,e),s=r.attachComponentPortal(i);o.instance=s.instance}return this._breakpointObserver.observe(w.b.HandsetPortrait).pipe(Object(_.a)(i.detachments())).subscribe(t=>{const e=i.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),n.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){const e=new u.d;e.direction=t.direction;let n=this._overlay.position().global();const i="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,r=!s&&"center"!==t.horizontalPosition;return s?n.left("0"):r?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return s.u.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:T,useValue:e},{provide:O,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(s.bc(u.c),s.bc(v.h),s.bc(s.u),s.bc(w.a),s.bc(t,12),s.bc(D))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(u.c),Object(s.bc)(v.h),Object(s.bc)(s.q),Object(s.bc)(w.a),Object(s.bc)(t,12),Object(s.bc)(D))},token:t,providedIn:I}),t})();var N=n("/rnm"),F=n("vxfF"),L=n("8LU1"),M=n("quSY"),V=n("HDdC"),B=n("D0XW"),H=n("Y7HM");function z(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var U=n("eNwd"),$=n("VRyK"),W=n("JX91"),q=n("lJxs"),G=n("vkgz"),X=n("eIep"),Z=n("cH1L");function K(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Y(t,e){const n=e?"":"none";K(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function Q(t,e){const n=t.style;n.position=e?"":"fixed",n.top=n.opacity=e?"":"0",n.left=e?"":"-999em"}function J(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function tt(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function et(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function nt(t,e,n){const{top:i,bottom:s,left:r,right:o}=t;return n>=i&&n<=s&&e>=r&&e<=o}function it(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function st(t,e,n,i){const{top:s,right:r,bottom:o,left:a,width:l,height:c}=t,h=l*e,u=c*e;return i>s-u&&ia-h&&n{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:et(t)})})}handleScroll(t){const e=t.target,n=this.positions.get(e);if(!n)return null;const i=e===this._document?e.documentElement:e,s=n.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,l=s.left-o;return this.positions.forEach((t,n)=>{t.clientRect&&e!==n&&i.contains(n)&&it(t.clientRect,a,l)}),s.top=r,s.left=o,{top:a,left:l}}}function ot(t){const e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const n=t.target;return!!n&&(n===e||e.contains(n))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),n=this._dropContainer;if(!e)return void this._endDragSequence(t);n&&(n.isDragging()||n.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{const t=this._activeTransform;t.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:t,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new rt(n,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Object(L.c)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Y(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>Object(L.e)(t)),this._handles.forEach(t=>Y(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Object(L.e)(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,dt),e.addEventListener("touchstart",this._pointerDown,ut)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Object(L.e)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&>(this._rootElement),gt(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Y(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Y(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&>(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&>(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){bt(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,n=t.parentNode,i=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();n.insertBefore(r,t),Q(t,!1),this._document.body.appendChild(n.replaceChild(s,t)),function(t,e){return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}(this._document,o).appendChild(i),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),i=bt(e),s=!i&&0!==e.button,r=this._rootElement,o=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),n||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=et(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Q(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),i=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s}),e.drop(this,n,this._initialIndex,this._initialContainer,r,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:i}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=ft(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let i;if(n&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(n,t.context);s.detectChanges(),i=_t(s,this._document),this._previewRef=s,t.matchSize?yt(i,e):i.style.transform=ft(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;i=ot(t),yt(i,t.getBoundingClientRect())}return K(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),Y(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>i.classList.add(t)):i.classList.add(e)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=ft(t.left,t.top);const e=function(t){const e=getComputedStyle(t),n=tt(e,"transition-property"),i=n.find(t=>"transform"===t||"all"===t);if(!i)return 0;const s=n.indexOf(i),r=tt(e,"transition-duration"),o=tt(e,"transition-delay");return J(r[s])+J(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const n=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",n),t(),clearTimeout(i))},i=setTimeout(n,1.5*e);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=_t(this._placeholderRef,this._document)):n=ot(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,s=i?i.getBoundingClientRect():n,r=bt(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-n.left+(r.pageX-s.left-o.left),y:s.top-n.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=bt(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,i=n.pageX-e.left,s=n.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=i,e.y=s,e.matrixTransform(t.inverse())}}return{x:i,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,o=s.top+e,a=s.bottom-(r.height-e);n=mt(n,s.left+t,s.right-(r.width-t)),i=mt(i,o,a)}return{x:n,y:i}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,i=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(n-s.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>s.y?1:-1,s.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Y(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,dt),t.removeEventListener("touchstart",this._pointerDown,ut)}_applyRootElementTransform(t,e){const n=ft(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const s=n.left-i.left,r=i.right-n.right,o=n.top-i.top,a=i.bottom-n.bottom;n.width>i.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,n.height>i.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:bt(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=t.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&it(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Object(C.c)(this._rootElement)),this._cachedShadowRoot}}function ft(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function mt(t,e,n){return Math.max(e,Math.min(n,t))}function gt(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function bt(t){return"t"===t.type[0]}function _t(t,e){const n=t.rootNodes;if(1===n.length&&n[0].nodeType===e.ELEMENT_NODE)return n[0];const i=e.createElement("div");return n.forEach(t=>i.appendChild(t)),i}function yt(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=ft(e.left,e.top)}function vt(t,e){return Math.max(0,Math.min(e,t))}class wt{constructor(t,e,n,i,s){this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new g.a,this.entered=new g.a,this.exited=new g.a,this.dropped=new g.a,this.sorted=new g.a,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=M.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new g.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=B.a){return(!Object(H.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=B.a),new V.a(n=>(n.add(e.schedule(z,t,{subscriber:n,counter:0,period:t})),n))}(0,U.a).pipe(Object(_.a)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?St(t,-e):2===this._verticalScrollDirection&&St(t,e),1===this._horizontalScrollDirection?xt(t,-e):2===this._horizontalScrollDirection&&xt(t,e)})},this.element=Object(L.e)(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new rt(n,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,n,i){let s;this._draggingStarted(),null==i?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,n))):s=i;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let l=r[s];if(l===t&&(l=r[s+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,n)){const e=r[0].getRootElement();e.parentNode.insertBefore(a,e),r.unshift(t)}else Object(L.e)(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,i,s,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:s,distance:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Object(L.e)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?Ct("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,i){if(this.sortingDisabled||!this._clientRect||!st(this._clientRect,.05,e,n))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,n,i);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=Ct(s,e=>e.drag===t),l=s[r],c=l.clientRect,h=a>r?1:-1,u=this._getItemOffsetPx(s[a].clientRect,c,h),d=this._getSiblingOffsetPx(a,s,h),p=s.slice();!function(t,e,n){const i=vt(e,t.length-1),s=vt(n,t.length-1);if(i===s)return;const r=t[i],o=s{if(p[n]===e)return;const i=e.drag===t,s=i?u:d,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,it(e.clientRect,0,s)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,it(e.clientRect,s,0))}),this._previousSwap.overlaps=nt(c,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,i=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!n&&st(r.clientRect,.05,t,e)&&([i,s]=function(t,e,n,i){const s=Ot(e,i),r=Et(e,n);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(i||s)&&(n=o))}),!i&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};i=Ot(a,e),s=Et(a,t),n=window}!n||i===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=s,this._scrollNode=n,(i||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Object(L.e)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Object(L.e)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:et(e)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const t=Object(L.e)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{const e=t.getRootElement();e&&(e.style.transform="")}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,n){const i="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*n];let o=s[i?"width":"height"]*n;if(r){const t=i?"left":"top",e=i?"right":"bottom";-1===n?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,n){const i="horizontal"===this._orientation;let s=i?e.left-t.left:e.top-t.top;return-1===n&&(s+=i?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const s=n[n.length-1].clientRect;return i?t>=s.right:e>=s.bottom}{const s=n[0].clientRect;return i?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,n,i){const s="horizontal"===this._orientation,r=Ct(this._itemPositions,({drag:r,clientRect:o},a,l)=>{if(r===t)return l.length<2;if(i){const t=s?i.x:i.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&ni._canReceive(t,e,n))}_canReceive(t,e,n){if(!this._clientRect||!nt(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;const s=Object(L.e)(this.element);return i===s||s.contains(i)}_startReceiving(t,e){const n=this._activeSiblings;!n.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{it(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Object(C.c)(Object(L.e)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function Ct(t,e){for(let n=0;n=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}function Et(t,e){const{left:n,right:i,width:s}=t,r=.05*s;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}const kt=Object(C.f)({passive:!1,capture:!0});let Tt=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new g.a,this.pointerUp=new g.a,this.scroll=new g.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,kt)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,kt)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:kt}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:kt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.bc(s.C),s.bc(p.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(s.C),Object(s.bc)(p.d))},token:t,providedIn:"root"}),t})();const Rt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let At=(()=>{class t{constructor(t,e,n,i){this._document=t,this._ngZone=e,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(t,e=Rt){return new pt(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new wt(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.bc(p.d),s.bc(s.C),s.bc(F.e),s.bc(Tt))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(p.d),Object(s.bc)(s.C),Object(s.bc)(F.e),Object(s.bc)(Tt))},token:t,providedIn:"root"}),t})();const jt=new s.t("CDK_DRAG_PARENT"),It=new s.t("CDK_DRAG_CONFIG"),Dt=new s.t("CdkDropList"),Pt=new s.t("CdkDragHandle");let Nt=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new g.a,this._disabled=!1,this._parentDrag=e}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(L.c)(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(jt,12))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[s.Eb([{provide:Pt,useExisting:t}])]}),t})();const Ft=new s.t("CdkDragPlaceholder"),Lt=new s.t("CdkDragPreview");let Mt=(()=>{class t{constructor(e,n,i,r,o,a,l,c,h,u,d){this.element=e,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=l,this._changeDetectorRef=h,this._selfHandle=u,this._parentDrag=d,this._destroyed=new g.a,this.started=new s.p,this.released=new s.p,this.ended=new s.p,this.entered=new s.p,this.exited=new s.p,this.dropped=new s.p,this.moved=new V.a(t=>{const e=this._dragRef.moved.pipe(Object(q.a)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=Object(L.c)(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(Object(b.a)(1),Object(_.a)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(Object(W.a)(this._handles),Object(G.a)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),Object(X.a)(t=>Object($.a)(...t.map(t=>t._stateChanges.pipe(Object(W.a)(t))))),Object(_.a)(this._destroyed)).subscribe(t=>{const e=this._dragRef,n=t.element.nativeElement;t.disabled?e.disableHandle(n):e.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,n=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?Vt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?Vt(this.element.nativeElement,t):Object(L.e)(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:Object(L.f)(n),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(s),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(Object(b.a)(1)).subscribe(()=>{var n,i;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(n=s.classList)||void 0===n?void 0:n.contains("cdk-drag")){e.withParent((null===(i=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===i?void 0:i._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:n,constrainPosition:i,previewClass:s,boundaryElement:r,draggingDisabled:o,rootElementSelector:a}=t;this.disabled=null!=o&&o,this.dragStartDelay=n||0,e&&(this.lockAxis=e),i&&(this.constrainPosition=i),s&&(this.previewClass=s),r&&(this.boundaryElement=r),a&&(this.rootElementSelector=a)}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(Dt,12),s.Rb(p.d),s.Rb(s.C),s.Rb(s.S),s.Rb(It,8),s.Rb(Z.b,8),s.Rb(At),s.Rb(s.i),s.Rb(Pt,10),s.Rb(jt,12))},t.\u0275dir=s.Mb({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){if(1&t&&(s.Kb(n,Lt,1),s.Kb(n,Ft,1),s.Kb(n,Pt,1)),2&t){let t;s.pc(t=s.fc())&&(e._previewTemplate=t.first),s.pc(t=s.fc())&&(e._placeholderTemplate=t.first),s.pc(t=s.fc())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&s.Jb("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s.Eb([{provide:jt,useExisting:t}]),s.Db]}),t._dragInstances=[],t})();function Vt(t,e){let n=t.parentElement;for(;n;){if(n.matches?n.matches(e):n.msMatchesSelector(e))return n;n=n.parentElement}return null}let Bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({providers:[At],imports:[F.b]}),t})();const Ht=["*",[["mat-toolbar-row"]]],zt=["*","mat-toolbar-row"];class Ut{constructor(t){this._elementRef=t}}const $t=Object(f.q)(Ut);let Wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),qt=(()=>{class t extends $t{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(C.a),s.Rb(p.d))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Kb(n,Wt,1),2&t){let t;s.pc(t=s.fc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.Jb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.Cb],ngContentSelectors:zt,decls:2,vars:0,template:function(t,e){1&t&&(s.mc(Ht),s.lc(0),s.lc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),Gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[f.e],f.e]}),t})();var Xt=n("NFeN");let Zt=(()=>{class t{constructor(t){this.nuiService=t}ngOnInit(){}close(){this.nuiService.hideNUI()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(N.a))},t.\u0275cmp=s.Lb({type:t,selectors:[["app-header"]],decls:6,vars:0,consts:[["color","primary"],["mat-button","",2,"right","75px","position","absolute",3,"click"]],template:function(t,e){1&t&&(s.Xb(0,"mat-toolbar",0),s.Xb(1,"span"),s.Cc(2,"Hypnonema"),s.Wb(),s.Xb(3,"button",1),s.ec("click",function(){return e.close()}),s.Xb(4,"mat-icon"),s.Cc(5,"close"),s.Wb(),s.Wb(),s.Wb())},directives:[qt,m.b,Xt.a],styles:[""]}),t})();var Kt=n("UXun"),Yt=n("FtGj"),Qt=n("xgIS"),Jt=n("pLZG"),te=n("7o/Q");function ee(t){return e=>e.lift(new ne(t))}class ne{constructor(t){this.value=t}call(t,e){return e.subscribe(new ie(t,this.value))}}class ie extends te.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}var se=n("/uUt"),re=n("Kj3r"),oe=n("R1ws");const ae=["*"];function le(t,e){if(1&t){const t=s.Yb();s.Xb(0,"div",2),s.ec("click",function(){return s.tc(t),s.ic()._onBackdropClicked()}),s.Wb()}if(2&t){const t=s.ic();s.Jb("mat-drawer-shown",t._isShowingBackdrop())}}function ce(t,e){1&t&&(s.Xb(0,"mat-drawer-content"),s.lc(1,2),s.Wb())}const he=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ue=["mat-drawer","mat-drawer-content","*"];function de(t,e){if(1&t){const t=s.Yb();s.Xb(0,"div",2),s.ec("click",function(){return s.tc(t),s.ic()._onBackdropClicked()}),s.Wb()}if(2&t){const t=s.ic();s.Jb("mat-drawer-shown",t._isShowingBackdrop())}}function pe(t,e){1&t&&(s.Xb(0,"mat-sidenav-content",3),s.lc(1,2),s.Wb())}const fe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],me=["mat-sidenav","mat-sidenav-content","*"],ge=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",be={transformDrawer:Object(y.m)("transform",[Object(y.j)("open, open-instant",Object(y.k)({transform:"none",visibility:"visible"})),Object(y.j)("void",Object(y.k)({"box-shadow":"none",visibility:"hidden"})),Object(y.l)("void => open-instant",Object(y.e)("0ms")),Object(y.l)("void <=> open, open-instant => void",Object(y.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},_e=new s.t("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),ye=new s.t("MAT_DRAWER_CONTAINER");let ve=(()=>{class t extends F.a{constructor(t,e,n,i,s){super(n,i,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.i),s.Rb(Object(s.W)(()=>Ce)),s.Rb(s.m),s.Rb(F.c),s.Rb(s.C))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.xc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.Cb],ngContentSelectors:ae,decls:1,vars:0,template:function(t,e){1&t&&(s.mc(),s.lc(0))},encapsulation:2,changeDetection:0}),t})(),we=(()=>{class t{constructor(t,e,n,i,r,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new g.a,this._animationEnd=new g.a,this._animationState="void",this.openedChange=new s.p(!0),this._openedStream=this.openedChange.pipe(Object(Jt.a)(t=>t),Object(q.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(Jt.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),ee(void 0)),this._closedStream=this.openedChange.pipe(Object(Jt.a)(t=>!t),Object(q.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(Jt.a)(t=>t.fromState!==t.toState&&"void"===t.toState),ee(void 0)),this._destroyed=new g.a,this.onPositionChanged=new s.p,this._modeChanged=new g.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(Qt.a)(this._elementRef.nativeElement,"keydown").pipe(Object(Jt.a)(t=>t.keyCode===Yt.g&&!this.disableClose&&!Object(Yt.s)(t)),Object(_.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(se.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(L.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(L.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(L.c)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,n="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(b.a)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(v.f),s.Rb(v.e),s.Rb(C.a),s.Rb(s.C),s.Rb(p.d,8),s.Rb(ye,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.yc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.Gb("align",null),s.zc("@transform",e._animationState),s.Jb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ae,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.mc(),s.Xb(0,"div",0),s.lc(1),s.Wb())},directives:[F.a],encapsulation:2,data:{animation:[be.transformDrawer]},changeDetection:0}),t})(),Ce=(()=>{class t{constructor(t,e,n,i,r,o=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=a,this._drawers=new s.G,this.backdropClick=new s.p,this._destroyed=new g.a,this._doCheckSubject=new g.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new g.a,t&&t.change.pipe(Object(_.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe(Object(_.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(L.c)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(L.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(W.a)(this._allDrawers),Object(_.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(W.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(re.a)(10),Object(_.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(Jt.a)(t=>t.fromState!==t.toState),Object(_.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(_.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(_.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(b.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(_.a)(Object($.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(Z.b,8),s.Rb(s.m),s.Rb(s.C),s.Rb(s.i),s.Rb(F.e),s.Rb(_e),s.Rb(oe.a,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){if(1&t&&(s.Kb(n,ve,1),s.Kb(n,we,1)),2&t){let t;s.pc(t=s.fc())&&(e._content=t.first),s.pc(t=s.fc())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&s.Gc(ve,1),2&t){let t;s.pc(t=s.fc())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.Jb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.Eb([{provide:ye,useExisting:t}])],ngContentSelectors:ue,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.mc(he),s.Ac(0,le,1,2,"div",0),s.lc(1),s.lc(2,1),s.Ac(3,ce,2,0,"mat-drawer-content",1)),2&t&&(s.nc("ngIf",e.hasBackdrop),s.Fb(3),s.nc("ngIf",!e._content))},directives:[p.k,ve],styles:[ge],encapsulation:2,changeDetection:0}),t})(),Se=(()=>{class t extends ve{constructor(t,e,n,i,s){super(t,e,n,i,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.i),s.Rb(Object(s.W)(()=>Ee)),s.Rb(s.m),s.Rb(F.c),s.Rb(s.C))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.xc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.Cb],ngContentSelectors:ae,decls:1,vars:0,template:function(t,e){1&t&&(s.mc(),s.lc(0))},encapsulation:2,changeDetection:0}),t})(),xe=(()=>{class t extends we{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(L.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(L.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(L.f)(t)}}return t.\u0275fac=function(e){return Oe(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.Gb("align",null),s.xc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.Jb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.Cb],ngContentSelectors:ae,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.mc(),s.Xb(0,"div",0),s.lc(1),s.Wb())},directives:[F.a],encapsulation:2,data:{animation:[be.transformDrawer]},changeDetection:0}),t})();const Oe=s.Zb(xe);let Ee=(()=>{class t extends Ce{}return t.\u0275fac=function(e){return ke(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){if(1&t&&(s.Kb(n,Se,1),s.Kb(n,xe,1)),2&t){let t;s.pc(t=s.fc())&&(e._content=t.first),s.pc(t=s.fc())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.Jb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.Eb([{provide:ye,useExisting:t}]),s.Cb],ngContentSelectors:me,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.mc(fe),s.Ac(0,de,1,2,"div",0),s.lc(1),s.lc(2,1),s.Ac(3,pe,2,0,"mat-sidenav-content",1)),2&t&&(s.nc("ngIf",e.hasBackdrop),s.Fb(3),s.nc("ngIf",!e._content))},directives:[p.k,Se,F.a],styles:[ge],encapsulation:2,changeDetection:0}),t})();const ke=s.Zb(Ee);let Te=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[p.c,f.e,C.b,F.b],F.b,f.e]}),t})();n("0EQZ");var Re=n("3Pt+");let Ae=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(L.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(L.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Gb("aria-orientation",e.vertical?"vertical":"horizontal"),s.Jb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),je=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[f.e],f.e]}),t})();const Ie=["*"],De=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Pe=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class Ne{}const Fe=Object(f.s)(Object(f.r)(Ne));class Le{}const Me=Object(f.r)(Le),Ve=new s.t("MatList"),Be=new s.t("MatNavList");let He=(()=>{class t extends Fe{constructor(){super(...arguments),this._stateChanges=new g.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return ze(e||t)},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.Eb([{provide:Be,useExisting:t}]),s.Cb,s.Db],ngContentSelectors:Ie,decls:1,vars:0,template:function(t,e){1&t&&(s.mc(),s.lc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const ze=s.Zb(He);let Ue=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),We=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Mb({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),qe=(()=>{class t extends Me{constructor(t,e,n,i){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new g.a,this._disabled=!1,this._isInteractiveList=!!(n||i&&"action-list"===i._getListType()),this._list=n||i;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(_.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(L.c)(t)}ngAfterContentInit(){Object(f.v)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(s.m),s.Rb(s.i),s.Rb(Be,8),s.Rb(Ve,8))},t.\u0275cmp=s.Lb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){if(1&t&&(s.Kb(n,Ue,1),s.Kb(n,$e,1),s.Kb(n,f.f,1)),2&t){let t;s.pc(t=s.fc())&&(e._avatar=t.first),s.pc(t=s.fc())&&(e._icon=t.first),s.pc(t=s.fc())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.Jb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.Cb],ngContentSelectors:Pe,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.mc(De),s.Xb(0,"div",0),s.Sb(1,"div",1),s.lc(2),s.Xb(3,"div",2),s.lc(4,1),s.Wb(),s.lc(5,2),s.Wb()),2&t&&(s.Fb(1),s.nc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[f.l],encapsulation:2,changeDetection:0}),t})(),Ge=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[f.g,f.m,f.e,f.k,p.c],f.g,f.e,f.k,je]}),t})(),Xe=(()=>{class t{constructor(t){this.breakpointObserver=t,this.isHandset$=this.breakpointObserver.observe(w.b.Handset).pipe(Object(q.a)(t=>t.matches),Object(Kt.a)())}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(w.a))},t.\u0275cmp=s.Lb({type:t,selectors:[["app-side-nav"]],decls:28,vars:9,consts:[[1,"sidenav-container"],[1,"sidenav",3,"mode","opened"],["drawer",""],[2,"padding-bottom","45px"],["matSubheader",""],["href","#","mat-list-item","","routerLink","/status"],["href","#","mat-list-item","","routerLink","/quick-play"],["href","#","mat-list-item","","routerLink","/screens"],[2,"padding","10px","max-height","420px"]],template:function(t,e){1&t&&(s.Xb(0,"mat-sidenav-container",0),s.Xb(1,"mat-sidenav",1,2),s.jc(3,"async"),s.jc(4,"async"),s.jc(5,"async"),s.Xb(6,"mat-nav-list",3),s.Sb(7,"mat-divider"),s.Xb(8,"h2",4),s.Cc(9,"Menu"),s.Wb(),s.Xb(10,"a",5),s.Xb(11,"i"),s.Xb(12,"mat-icon"),s.Cc(13,"data_usage"),s.Wb(),s.Wb(),s.Cc(14," Status"),s.Wb(),s.Xb(15,"a",6),s.Xb(16,"i"),s.Xb(17,"mat-icon"),s.Cc(18,"add_to_queue"),s.Wb(),s.Wb(),s.Cc(19," Quick Play "),s.Wb(),s.Xb(20,"a",7),s.Xb(21,"i"),s.Xb(22,"mat-icon"),s.Cc(23,"list"),s.Wb(),s.Wb(),s.Cc(24," Screens"),s.Wb(),s.Wb(),s.Wb(),s.Xb(25,"mat-sidenav-content"),s.Xb(26,"div",8),s.Sb(27,"router-outlet"),s.Wb(),s.Wb(),s.Wb()),2&t&&(s.Fb(1),s.nc("mode",s.kc(4,5,e.isHandset$)?"over":"side")("opened",!1===s.kc(5,7,e.isHandset$)),s.Gb("role",s.kc(3,3,e.isHandset$)?"dialog":"navigation"))},directives:[Ee,xe,He,Ae,We,qe,r.c,Xt.a,Se,r.e],pipes:[p.b],styles:[".sidenav-container[_ngcontent-%COMP%]{max-height:460px;min-height:460px}.sidenav[_ngcontent-%COMP%]{width:200px;background:#282828}.sidenav[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{background:inherit}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1}.playing[_ngcontent-%COMP%]{background:#282828;position:absolute;bottom:0;display:flex;flex-flow:row nowrap;align-items:center}.playing__art[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px;height:50px}.playing__song[_ngcontent-%COMP%]{color:#aaa;padding-left:15px;display:flex;flex-flow:column wrap}.playing__song[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#aaa}.playing__song[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.playing__add[_ngcontent-%COMP%]{margin-left:auto;padding-right:15px;color:#aaa}@media (max-width:768px){.playing[_ngcontent-%COMP%]{border-top:1px solid #181818}}"]}),t})();var Ze=n("mrSG"),Ke=n("PqYM"),Ye=n("kmnG"),Qe=n("d3UM"),Je=n("5RNC"),tn=n("GFHR");function en(t,e){1&t&&(s.Xb(0,"mat-icon",18),s.Cc(1,"repeat"),s.Wb())}function nn(t,e){1&t&&(s.Xb(0,"mat-icon"),s.Cc(1,"repeat"),s.Wb())}function sn(t,e){if(1&t){const t=s.Yb();s.Xb(0,"a",19),s.ec("click",function(){s.tc(t);const e=s.ic(3);return e.resumeOrPause(e.isPaused)}),s.Xb(1,"mat-icon"),s.Cc(2,"pause"),s.Wb(),s.Wb()}}function rn(t,e){if(1&t){const t=s.Yb();s.Xb(0,"a",20),s.ec("click",function(){s.tc(t);const e=s.ic(3);return e.resumeOrPause(e.isPaused)}),s.Xb(1,"mat-icon"),s.Cc(2,"play_arrow"),s.Wb(),s.Wb()}}function on(t,e){if(1&t){const t=s.Yb();s.Xb(0,"div",6),s.Xb(1,"a",7),s.ec("click",function(){s.tc(t);const e=s.ic(2);return e.repeat(e.selectedScreenName)}),s.Ac(2,en,2,0,"ng-template",8),s.jc(3,"async"),s.Ac(4,nn,2,0,"ng-template",null,9,s.Bc),s.Wb(),s.Xb(6,"a",10),s.ec("click",function(){s.tc(t);const e=s.ic(2);return e.stop(e.selectedScreenName)}),s.Xb(7,"mat-icon"),s.Cc(8,"stop"),s.Wb(),s.Wb(),s.Ac(9,sn,3,0,"a",11),s.jc(10,"async"),s.Ac(11,rn,3,0,"a",12),s.jc(12,"async"),s.Wb(),s.Xb(13,"div",13),s.Xb(14,"div",14),s.Cc(15),s.Wb(),s.Xb(16,"div",15),s.Xb(17,"mat-slider",16),s.ec("change",function(e){return s.tc(t),s.ic(2).onSliderChange(e)})("ngModelChange",function(e){s.tc(t);const n=s.ic(2);return n.startCurrentTime+(n.ticks=e)}),s.Wb(),s.Wb(),s.Xb(18,"div",17),s.Cc(19),s.jc(20,"minuteSeconds"),s.jc(21,"async"),s.Wb(),s.Wb()}if(2&t){const t=s.qc(5),e=s.ic(2);let n=null,i=null,r=null,o=null;s.Fb(2),s.nc("ngIfElse",t)("ngIf",null==(n=s.kc(3,11,e.screen$))?null:n.repeat),s.Fb(7),s.nc("ngIf",!(null!=(i=s.kc(10,13,e.screen$))&&i.isPaused)),s.Fb(2),s.nc("ngIf",null==(r=s.kc(12,15,e.screen$))?null:r.isPaused),s.Fb(4),s.Fc(" ",e.getHours(e.startCurrentTime+e.ticks),":",e.getMinutes(e.startCurrentTime+e.ticks)," :",e.getSeconds(e.startCurrentTime+e.ticks),""),s.Fb(2),s.nc("ngModel",e.startCurrentTime+e.ticks)("displayWith",e.formatSliderLabel)("max",e.sliderCap),s.Fb(2),s.Dc(s.kc(20,17,null==(o=s.kc(21,19,e.screen$))?null:o.duration))}}function an(t,e){if(1&t&&(s.Xb(0,"mat-option",21),s.Cc(1),s.Wb()),2&t){const t=e.$implicit;s.nc("value",t.screenName),s.Fb(1),s.Ec(" ",t.screenName," ")}}function ln(t,e){if(1&t){const t=s.Yb();s.Xb(0,"section",1),s.Ac(1,on,22,21,"ng-template",2),s.jc(2,"async"),s.Xb(3,"div",3),s.Xb(4,"mat-form-field"),s.Xb(5,"mat-label"),s.Cc(6,"Selected Screen"),s.Wb(),s.Xb(7,"mat-select",4),s.ec("ngModelChange",function(e){return s.tc(t),s.ic().onSelectionChange(e)})("ngModelChange",function(e){return s.tc(t),s.ic().selectedScreenName=e}),s.Ac(8,an,2,2,"mat-option",5),s.jc(9,"async"),s.Wb(),s.Wb(),s.Wb(),s.Wb()}if(2&t){const t=s.ic();s.Fb(1),s.nc("ngIf",s.kc(2,3,t.screen$)),s.Fb(6),s.nc("ngModel",t.selectedScreenName),s.Fb(1),s.nc("ngForOf",s.kc(9,5,t.screens$))}}let cn=(()=>{class t{constructor(t,e){this.nuiService=t,this.store=e,this.sliderCap=0,this.startCurrentTime=0,this.ticks=0}stop(t){this.nuiService.stopVideo(t)}onSelectionChange(t){this.selectedScreenName=t,this.store.dispatch(new l.e(t)),setTimeout(()=>{this.nuiService.requestDuiState(this.selectedScreenName)},500)}ngOnInit(){this.screen$.pipe(Object(se.a)()).subscribe(t=>{if(t){this.sub&&(this.ticks=0,this.sub.unsubscribe()),this.sliderCap=Math.floor(t.duration),this.isPaused=t.isPaused,t.isPaused||this.startTimer();const e=new Date,n=new Date(Date.parse(t.startedAt));this.startCurrentTime=Math.floor((e.getTime()-n.getTime())/1e3)}})}onSliderChange(t){this.sub.unsubscribe(),this.ticks=0,this.startCurrentTime=t.value,this.startTimer(),this.nuiService.setVideoTime(this.selectedScreenName,t.value),setTimeout(()=>{this.nuiService.requestDuiState(this.selectedScreenName)},1e3)}repeat(t){this.nuiService.repeatVideo(t),setTimeout(()=>{this.nuiService.requestDuiState(this.selectedScreenName)},1e3)}resumeOrPause(t){t?this.nuiService.resumeVideo(this.selectedScreenName):this.nuiService.pauseVideo(this.selectedScreenName),setTimeout(()=>{this.nuiService.requestDuiState(this.selectedScreenName)},250)}formatSliderLabel(t){const e=Math.floor(t/60/60),n=e<=9?"0"+e:e,i=Math.floor(t/60)%60,s=i<=9?"0"+i:i,r=Math.floor(t%60);return`${n}:${s}:${r<=9?"0"+r:r}`}getSeconds(t){return this.pad(t%60)}getMinutes(t){return this.pad(Math.floor(t/60)%60)}getHours(t){return this.pad(Math.floor(t/60/60))}startTimer(){this.timer=Object(Ke.a)(1,1e3),this.sub=this.timer.subscribe(t=>{this.ticks=t,t+this.startCurrentTime>=this.sliderCap&&this.sub.unsubscribe()})}pad(t){return t<=9?"0"+t:t}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(N.a),s.Rb(h.g))},t.\u0275cmp=s.Lb({type:t,selectors:[["app-current-track"]],decls:2,vars:3,consts:[["class","current-track",4,"ngIf"],[1,"current-track"],[3,"ngIf"],[1,"current-track__screenCtrl"],["name","screen",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"current-track__actions"],["mat-icon-button","",1,"repeat",3,"click"],[3,"ngIfElse","ngIf"],["isNotRepeated",""],["mat-icon-button","",1,"stop",3,"click"],["aria-label","Pause or Resume","class","play","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Resume","class","play","mat-icon-button","",3,"click",4,"ngIf"],[1,"current-track__progress"],[1,"current-track__progress__start"],[1,"current-track__progress__bar"],["color","primary","min","0","step","1","thumbLabel","",3,"ngModel","displayWith","max","change","ngModelChange"],[1,"current-track__progress__finish"],["color","accent"],["aria-label","Pause or Resume","mat-icon-button","",1,"play",3,"click"],["aria-label","Resume","mat-icon-button","",1,"play",3,"click"],[3,"value"]],template:function(t,e){1&t&&(s.Ac(0,ln,10,7,"section",0),s.jc(1,"async")),2&t&&s.nc("ngIf",s.kc(1,1,e.screens$))},directives:[p.k,Ye.c,Ye.g,Qe.a,Re.j,Re.m,p.j,m.a,Xt.a,Je.a,f.h],pipes:[p.b,tn.a],styles:["mat-form-field[_ngcontent-%COMP%]{width:90px;max-width:90px;max-height:50px}.mat-accent[_ngcontent-%COMP%] .mat-slider-thumb-label-text[_ngcontent-%COMP%]{color:azure!important}.current-track[_ngcontent-%COMP%]{background:#282828;border-top:1px solid #181818;padding:15px 45px 5px;display:flex;flex-flow:row wrap;align-items:center}.current-track__actions[_ngcontent-%COMP%]{padding-right:20px;padding-left:10px;width:5%;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center}.current-track__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:24px;color:#c8c8c8}.current-track__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.current-track__actions[_ngcontent-%COMP%] .play[_ngcontent-%COMP%]{font-size:36px}.current-track__screenCtrl[_ngcontent-%COMP%]{display:flex;flex-flow:row;justify-content:space-between;align-items:center;color:azure;font-size:medium}.current-track__progress__start[_ngcontent-%COMP%]{width:10%;padding-left:8%;display:flex}.current-track__progress[_ngcontent-%COMP%]{width:70%;padding:0 30px;color:#aaa;font-size:11px;display:flex;flex-flow:row;justify-content:space-between;align-items:center}.current-track__progress__bar[_ngcontent-%COMP%]{width:80%;padding:0 15px}.current-track__progress[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:100%;padding:0 15px}"]}),Object(Ze.a)([Object(h.d)(l.a.getStatuses)],t.prototype,"screens$",void 0),Object(Ze.a)([Object(h.d)(l.a.getControlledScreen)],t.prototype,"screen$",void 0),t})();function hn(t,e){1&t&&(s.Xb(0,"div",1),s.Xb(1,"div",2),s.Xb(2,"div",3),s.Sb(3,"app-header",4),s.Sb(4,"app-side-nav"),s.Sb(5,"app-current-track"),s.Wb(),s.Wb(),s.Wb())}let un=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.http=e,this.store=n,this.snackBar=i,this.nuiService=s,this.appVisible=!1}handleNUIMessage(t){if(t)switch(t.data.type){case"showUI":this.appVisible=t.data.payload,t.data.payload?this.router.navigateByUrl("quick-play"):this.store.dispatch(new l.b);break;case"createdScreen":this.store.dispatch(new l.c(t.data.payload)),this.appVisible&&(this.router.navigateByUrl("screens"),this.snackBar.open("Screen successfully created!","Dismiss",{duration:2500}));break;case"getScreenList":this.store.dispatch(new l.f(t.data.payload));break;case"editScreen":this.store.dispatch(new l.h(t.data.payload)),this.appVisible&&this.snackBar.open("Screen successfully updated!","Dismiss",{duration:2500});break;case"deleteScreen":this.store.dispatch(new l.d(t.data.payload)),this.appVisible&&this.snackBar.open("Screen successfully deleted!","Dismiss",{duration:2500})}}ngOnInit(){this.nuiService.requestDuiState("")}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(r.a),s.Rb(c.a),s.Rb(h.g),s.Rb(P),s.Rb(N.a))},t.\u0275cmp=s.Lb({type:t,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&s.ec("message",function(t){return e.handleNUIMessage(t)},!1,s.sc)},decls:1,vars:1,consts:[["id","wrapper","cdkDrag","",4,"ngIf"],["id","wrapper","cdkDrag",""],["id","wrapper2"],["id","content"],["cdkDragHandle",""]],template:function(t,e){1&t&&s.Ac(0,hn,6,0,"div",0),2&t&&s.nc("ngIf",e.appVisible)},directives:[p.k,Mt,Zt,Nt,Xe,cn],styles:[""]}),t})();var dn=n("JIr8");const pn=new s.t("NGXS_DEVTOOLS_OPTIONS");let fn=(()=>{class t{constructor(t,e){this._options=t,this._injector=e,this.devtoolsExtension=null,this.windowObj="undefined"!=typeof window?window:{};const n=this.windowObj.__REDUX_DEVTOOLS_EXTENSION__||this.windowObj.devToolsExtension;n&&(this.devtoolsExtension=n.connect(t),this.devtoolsExtension.subscribe(t=>this.dispatched(t)))}get store(){return this._injector.get(h.g)}handle(t,e,n){return!this.devtoolsExtension||this._options&&this._options.disabled?n(t,e):n(t,e).pipe(Object(dn.a)(n=>{const i=this.store.snapshot();throw this.sendToDevTools(t,e,i),n}),Object(G.a)(n=>{this.sendToDevTools(t,e,n)}))}sendToDevTools(t,e,n){const i=Object(h.h)(e);"@@INIT"===i?this.devtoolsExtension.init(t):this.devtoolsExtension.send(Object.assign({},e,{action:null,type:i}),n)}dispatched(t){if("DISPATCH"===t.type){if("JUMP_TO_ACTION"===t.payload.type||"JUMP_TO_STATE"===t.payload.type){const e=JSON.parse(t.state);this.store.reset(e)}else if("TOGGLE_ACTION"===t.payload.type)console.warn("Skip is not supported at this time.");else if("IMPORT_STATE"===t.payload.type){const{actionsById:e,computedStates:n,currentStateIndex:i}=t.payload.nextLiftedState;this.devtoolsExtension.init(n[0].state),Object.keys(e).filter(t=>"0"!==t).forEach(t=>this.devtoolsExtension.send(e[t],n[t].state)),this.store.reset(n[i].state)}}else if("ACTION"===t.type){const e=JSON.parse(t.payload);this.store.dispatch(e)}}}return t.\u0275fac=function(e){return new(e||t)(s.bc(pn),s.bc(s.u))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();function mn(t){return Object.assign({name:"NGXS"},t)}const gn=new s.t("USER_OPTIONS");let bn=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:h.b,useClass:fn,multi:!0},{provide:gn,useValue:e},{provide:pn,useFactory:mn,deps:[gn]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({}),t})();const _n=(t,e)=>{return n=e-t.toString().length,new Array(n+1).join("0")+t;var n};class yn{constructor(t,e,n){this.action=t,this.store=e,this.logWriter=n}dispatched(t){const e=Object(h.h)(this.action),n=(i=new Date,_n(i.getHours(),2)+":"+_n(i.getMinutes(),2)+":"+_n(i.getSeconds(),2)+"."+_n(i.getMilliseconds(),3));var i;this.logWriter.startGroup(`action ${e} @ ${n}`),this._hasPayload(this.action)&&this.logWriter.logGrey("payload",Object.assign({},this.action)),this.logWriter.logGrey("prev state",t)}completed(t){this.logWriter.logGreen("next state",t),this.logWriter.endGroup()}errored(t){this.logWriter.logRedish("next state after error",this.store.snapshot()),this.logWriter.logRedish("error",t),this.logWriter.endGroup()}_hasPayload(t){return this._getNonEmptyProperties(t).length>0}_getNonEmptyProperties(t){return Object.keys(t).map(e=>t[e]).filter(t=>void 0!==t)}}class vn{constructor(t){this.options=t,this.options=this.options||{},this.logger=t.logger||console}startGroup(t){const e=this.options.collapsed?this.logger.groupCollapsed:this.logger.group;try{e.call(this.logger,t)}catch(n){console.log(t)}}endGroup(){try{this.logger.groupEnd()}catch(t){this.logger.log("\u2014\u2014 log end \u2014\u2014")}}logGrey(t,e){this.log(t,"color: #9E9E9E; font-weight: bold",e)}logGreen(t,e){this.log(t,"color: #4CAF50; font-weight: bold",e)}logRedish(t,e){this.log(t,"color: #FD8182; font-weight: bold",e)}log(t,e,n){this.isIE()?this.logger.log(t,n):this.logger.log("%c "+t,e,n)}isIE(){const t="undefined"!=typeof window&&window.navigator.userAgent?window.navigator.userAgent:"";let e=!1;const n=t.indexOf("MSIE "),i=t.indexOf("Trident/");return(n>-1||i>-1)&&(e=!0),e}}const wn=new s.t("NGXS_LOGGER_PLUGIN_OPTIONS");let Cn=(()=>{class t{constructor(t,e){this._options=t,this._injector=e}handle(t,e,n){if(this._options.disabled||!this._options.filter(e,t))return n(t,e);this._logWriter=this._logWriter||new vn(this._options),this._store=this._store||this._injector.get(h.g);const i=new yn(e,this._store,this._logWriter);return i.dispatched(t),n(t,e).pipe(Object(G.a)(t=>{i.completed(t)}),Object(dn.a)(t=>{throw i.errored(t),t}))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(wn),s.bc(s.u))},t.\u0275prov=s.Nb({token:t,factory:t.\u0275fac}),t})();const Sn=new s.t("LOGGER_USER_OPTIONS");function xn(t){const e={logger:console,collapsed:!1,disabled:!1,filter:()=>!0};return Object.assign({},e,t)}let On=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:h.b,useClass:Cn,multi:!0},{provide:Sn,useValue:e},{provide:wn,useFactory:xn,deps:[Sn]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({}),t})();var En=n("PCNd");const kn=["toast-component",""];function Tn(t,e){if(1&t){const t=s.Yb();s.Xb(0,"button",5),s.ec("click",function(){return s.tc(t),s.ic().remove()}),s.Xb(1,"span",6),s.Cc(2,"\xd7"),s.Wb(),s.Wb()}}function Rn(t,e){if(1&t&&(s.Vb(0),s.Cc(1),s.Ub()),2&t){const t=s.ic(2);s.Fb(1),s.Ec("[",t.duplicatesCount+1,"]")}}function An(t,e){if(1&t&&(s.Xb(0,"div"),s.Cc(1),s.Ac(2,Rn,2,1,"ng-container",4),s.Wb()),2&t){const t=s.ic();s.Hb(t.options.titleClass),s.Gb("aria-label",t.title),s.Fb(1),s.Ec(" ",t.title," "),s.Fb(1),s.nc("ngIf",t.duplicatesCount)}}function jn(t,e){if(1&t&&s.Sb(0,"div",7),2&t){const t=s.ic();s.Hb(t.options.messageClass),s.nc("innerHTML",t.message,s.uc)}}function In(t,e){if(1&t&&(s.Xb(0,"div",8),s.Cc(1),s.Wb()),2&t){const t=s.ic();s.Hb(t.options.messageClass),s.Gb("aria-label",t.message),s.Fb(1),s.Ec(" ",t.message," ")}}function Dn(t,e){if(1&t&&(s.Xb(0,"div"),s.Sb(1,"div",9),s.Wb()),2&t){const t=s.ic();s.Fb(1),s.xc("width",t.width+"%")}}function Pn(t,e){if(1&t){const t=s.Yb();s.Xb(0,"button",5),s.ec("click",function(){return s.tc(t),s.ic().remove()}),s.Xb(1,"span",6),s.Cc(2,"\xd7"),s.Wb(),s.Wb()}}function Nn(t,e){if(1&t&&(s.Vb(0),s.Cc(1),s.Ub()),2&t){const t=s.ic(2);s.Fb(1),s.Ec("[",t.duplicatesCount+1,"]")}}function Fn(t,e){if(1&t&&(s.Xb(0,"div"),s.Cc(1),s.Ac(2,Nn,2,1,"ng-container",4),s.Wb()),2&t){const t=s.ic();s.Hb(t.options.titleClass),s.Gb("aria-label",t.title),s.Fb(1),s.Ec(" ",t.title," "),s.Fb(1),s.nc("ngIf",t.duplicatesCount)}}function Ln(t,e){if(1&t&&s.Sb(0,"div",7),2&t){const t=s.ic();s.Hb(t.options.messageClass),s.nc("innerHTML",t.message,s.uc)}}function Mn(t,e){if(1&t&&(s.Xb(0,"div",8),s.Cc(1),s.Wb()),2&t){const t=s.ic();s.Hb(t.options.messageClass),s.Gb("aria-label",t.message),s.Fb(1),s.Ec(" ",t.message," ")}}function Vn(t,e){if(1&t&&(s.Xb(0,"div"),s.Sb(1,"div",9),s.Wb()),2&t){const t=s.ic();s.Fb(1),s.xc("width",t.width+"%")}}class Bn{constructor(t,e,n,i,s,r){this.toastId=t,this.config=e,this.message=n,this.title=i,this.toastType=s,this.toastRef=r,this._onTap=new g.a,this._onAction=new g.a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const Hn={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},zn=new s.t("ToastConfig");class Un{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class $n extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=n.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Wn=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(s.bc(p.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(p.d))},token:t,providedIn:"root"}),t})();class qn{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let Gn=(()=>{class t{constructor(t,e,n,i){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=i,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new $n(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new qn(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(s.bc(Wn),s.bc(s.k),s.bc(s.g),s.bc(p.d))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(Wn),Object(s.bc)(s.k),Object(s.bc)(s.g),Object(s.bc)(p.d))},token:t,providedIn:"root"}),t})();class Xn{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new g.a,this._activate=new g.a,this._manualClose=new g.a,this._resetTimeout=new g.a,this._countDuplicate=new g.a}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Zn{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===Bn?this._toastPackage:this._parentInjector.get(t,e,n)}}let Kn=(()=>{class t{constructor(t,e,n,i,s){this.overlay=e,this._injector=n,this.sanitizer=i,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},i=""){return this._preBuildNotification(i,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActivethis._buildNotification(t,e,n,i)):this._buildNotification(t,e,n,i)}_buildNotification(t,e,n,i){if(!i.toastComponent)throw new Error("toastComponent required");const r=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&null!==r)return r;this.previousToastMessage=e;let o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let l=e;e&&i.enableHtml&&(l=this.sanitizer.sanitize(s.L.HTML,e));const c=new Xn(a),h=new Bn(this.index,i,l,n,t,c),u=new Zn(h,this._injector),d=new Un(i.toastComponent,u),p=a.attach(d,this.toastrConfig.newestOnTop);c.componentInstance=p.instance;const f={toastId:this.index,title:n||"",message:e||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:h.onTap(),onAction:h.onAction(),portal:p};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{f.toastRef.activate()})),this.toasts.push(f),f}}return t.\u0275fac=function(e){return new(e||t)(s.bc(zn),s.bc(Gn),s.bc(s.u),s.bc(i.b),s.bc(s.C))},t.\u0275prov=Object(s.Nb)({factory:function(){return new t(Object(s.bc)(zn),Object(s.bc)(Gn),Object(s.bc)(s.q),Object(s.bc)(i.b),Object(s.bc)(s.C))},token:t,providedIn:"root"}),t})(),Yn=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(Kn),s.Rb(Bn),s.Rb(s.C))},t.\u0275cmp=s.Lb({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&s.ec("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(s.zc("@flyInOut",e.state),s.Hb(e.toastClasses),s.xc("display",e.displayStyle))},attrs:kn,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(s.Ac(0,Tn,3,0,"button",0),s.Ac(1,An,3,5,"div",1),s.Ac(2,jn,1,3,"div",2),s.Ac(3,In,2,4,"div",3),s.Ac(4,Dn,2,2,"div",4)),2&t&&(s.nc("ngIf",e.options.closeButton),s.Fb(1),s.nc("ngIf",e.title),s.Fb(1),s.nc("ngIf",e.message&&e.options.enableHtml),s.Fb(1),s.nc("ngIf",e.message&&!e.options.enableHtml),s.Fb(1),s.nc("ngIf",e.options.progressBar))},directives:[p.k],encapsulation:2,data:{animation:[Object(y.m)("flyInOut",[Object(y.j)("inactive",Object(y.k)({opacity:0})),Object(y.j)("active",Object(y.k)({opacity:1})),Object(y.j)("removed",Object(y.k)({opacity:0})),Object(y.l)("inactive => active",Object(y.e)("{{ easeTime }}ms {{ easing }}")),Object(y.l)("active => removed",Object(y.e)("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const Qn=Object.assign(Object.assign({},Hn),{toastComponent:Yn});let Jn=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:zn,useValue:{default:Qn,config:e}}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t}),t.\u0275inj=s.Ob({imports:[[p.c]]}),t})(),ti=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return t.\u0275fac=function(e){return new(e||t)(s.Rb(Kn),s.Rb(Bn),s.Rb(s.g))},t.\u0275cmp=s.Lb({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,e){1&t&&s.ec("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(s.Hb(e.toastClasses),s.xc("display",e.displayStyle))},attrs:kn,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(s.Ac(0,Pn,3,0,"button",0),s.Ac(1,Fn,3,5,"div",1),s.Ac(2,Ln,1,3,"div",2),s.Ac(3,Mn,2,4,"div",3),s.Ac(4,Vn,2,2,"div",4)),2&t&&(s.nc("ngIf",e.options.closeButton),s.Fb(1),s.nc("ngIf",e.title),s.Fb(1),s.nc("ngIf",e.message&&e.options.enableHtml),s.Fb(1),s.nc("ngIf",e.message&&!e.options.enableHtml),s.Fb(1),s.nc("ngIf",e.options.progressBar))},directives:[p.k],encapsulation:2}),t})();Object.assign(Object.assign({},Hn),{toastComponent:ti});let ei=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.Pb({type:t,bootstrap:[un]}),t.\u0275inj=s.Ob({providers:[],imports:[[En.a,a,i.a,Bt,oe.b,c.b,Jn.forRoot(),w.c,Gt,m.c,Te,Xt.b,Ge,I,Je.b,h.c.forRoot([l.a],{developmentMode:!1}),bn.forRoot({}),On.forRoot({disabled:true}),Re.f,f.i,Qe.b]]}),t})();Object(s.V)(),i.c().bootstrapModule(ei).catch(t=>console.error(t))},zn8P: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="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/polyfills-es2015.js b/resources/Hypnonema/client/html/polyfills-es2015.js deleted file mode 100644 index 22c796c8a..000000000 --- a/resources/Hypnonema/client/html/polyfills-es2015.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{2:function(e,t,n){e.exports=n("hN/g")},"hN/g":function(e,t,n){"use strict";n.r(t),n("pDpN")},pDpN:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return r+e}const a=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class i{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==C.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.)")}static get root(){let e=i.current;for(;e.parent;)e=e.parent;return e}static get current(){return z.zone}static get currentTask(){return j}static __load_patch(t,r){if(C.hasOwnProperty(t)){if(a)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const s="Zone:"+t;n(s),C[t]=r(e,i,O),o(s,s)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{z=z.parent}}runGuarded(e,t=null,n,o){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{z=z.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state===v&&(e.type===P||e.type===D))return;const o=e.state!=E;o&&e._transitionTo(E,T),e.runCount++;const r=j;j=e,z={parent:z,zone:this};try{e.type==D&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==v&&e.state!==Z&&(e.type==P||e.data&&e.data.isPeriodic?o&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(v,E,v))),z=z.parent,j=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;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(b,v);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(Z,b,v),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==b&&e._transitionTo(T,b),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(S,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(D,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(P,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(Z,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(v,w),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;oe.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,s)=>e.invokeTask(n,o,r,s),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class l{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:c,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");k(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,s,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=a,!o)throw new Error("callback is not defined");this.callback=o;const i=this;this.invoke=t===P&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,i,this,arguments)}}static invokeTask(e,t,n){e||(e=this),I++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==I&&m(),I--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(v,b)}_transitionTo(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==v&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=s("setTimeout"),p=s("Promise"),f=s("then");let d,g=[],_=!1;function k(t){if(0===I&&0===g.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,m)}else e[h](m,0);t&&g.push(t)}function m(){if(!_){for(_=!0;g.length;){const t=g;g=[];for(let n=0;nz,onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:k,showUncaughtError:()=>!i[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:N,patchMethod:()=>N,bindArguments:()=>[],patchThen:()=>N,patchMacroTask:()=>N,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(d=e.resolve(0))},patchEventPrototype:()=>N,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>N,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>N,wrapWithCurrentZone:()=>N,filterProperties:()=>[],attachOriginToPatched:()=>N,_redefineProperty:()=>N,patchCallbacks:()=>N};let z={parent:null,zone:new i(null,null)},j=null,I=0;function N(){}o("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,a=[],i=!0===e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=s("Promise"),l=s("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}};const u=s("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return D.reject(e)}const g=s("state"),_=s("value"),k=s("finally"),m=s("parentPromiseValue"),y=s("parentPromiseState");function v(e,t){return n=>{try{T(e,t,n)}catch(o){T(e,!1,o)}}}const b=s("currentTaskTrace");function T(e,o,s){const c=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===s)throw new TypeError("Promise resolved with itself");if(null===e[g]){let h=null;try{"object"!=typeof s&&"function"!=typeof s||(h=s&&s.then)}catch(u){return c(()=>{T(e,!1,u)})(),e}if(!1!==o&&s instanceof D&&s.hasOwnProperty(g)&&s.hasOwnProperty(_)&&null!==s[g])w(s),T(e,s[g],s[_]);else if(!1!==o&&"function"==typeof h)try{h.call(s,c(v(e,o)),c(v(e,!1)))}catch(u){c(()=>{T(e,!1,u)})()}else{e[g]=o;const c=e[_];if(e[_]=s,e[k]===k&&!0===o&&(e[g]=e[y],e[_]=e[m]),!1===o&&s instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(s,b,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t{try{const o=e[_],r=!!n&&k===n[k];r&&(n[m]=o,n[y]=s);const i=t.run(a,void 0,r&&a!==d&&a!==f?[]:[o]);T(n,!0,i)}catch(o){T(n,!1,o)}},n)}const S=function(){};class D{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return T(new this(null),!0,e)}static reject(e){return T(new this(null),!1,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function s(e){n(e)}for(let a of e)p(a)||(a=this.resolve(a)),a.then(r,s);return o}static all(e){return D.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof D?this:D).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),s=2,a=0;const i=[];for(let l of e){p(l)||(l=this.resolve(l));const e=a;try{l.then(o=>{i[e]=t?t.thenCallback(o):o,s--,0===s&&n(i)},r=>{t?(i[e]=t.errorCallback(r),s--,0===s&&n(i)):o(r)})}catch(c){o(c)}s++,a++}return s-=2,0===s&&n(i),r}constructor(e){const t=this;if(!(t instanceof D))throw new Error("Must be an instanceof Promise.");t[g]=null,t[_]=[];try{e&&e(v(t,!0),v(t,!1))}catch(n){T(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||D);const r=new o(S),s=t.current;return null==this[g]?this[_].push(s,r,e,n):Z(this,s,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=D);const o=new n(S);o[k]=k;const r=t.current;return null==this[g]?this[_].push(r,o,e,e):Z(this,r,o,e,e),o}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;const P=e[c]=e.Promise,C=t.__symbol__("ZoneAwarePromise");let O=o(e,"Promise");O&&!O.configurable||(O&&delete O.writable,O&&delete O.value,O||(O={configurable:!0,enumerable:!0}),O.get=function(){return e[C]?e[C]:e[c]},O.set=function(t){t===D?e[C]=t:(e[c]=t,t.prototype[l]||j(t),n.setNativePromise(t))},r(e,"Promise",O)),e.Promise=D;const z=s("thenPatched");function j(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[l]=r,e.prototype.then=function(e,t){return new D((e,t)=>{r.call(this,e,t)}).then(e,t)},e[z]=!0}if(n.patchThen=j,P){j(P);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(I=t,function(){let e=I.apply(this,arguments);if(e instanceof D)return e;let t=e.constructor;return t[z]||j(t),e}))}var I;return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,D});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,s=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),i=Zone.__symbol__("");function c(e,t){return Zone.current.wrap(e,t)}function l(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const u=Zone.__symbol__,h="undefined"!=typeof window,p=h?window:void 0,f=h&&p||"object"==typeof self&&self||global,d=[null];function g(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=c(e[n],t+"_"+n));return e}function _(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!("nw"in f)&&void 0!==f.process&&"[object process]"==={}.toString.call(f.process),y=!m&&!k&&!(!h||!p.HTMLElement),v=void 0!==f.process&&"[object process]"==={}.toString.call(f.process)&&!k&&!(!h||!p.HTMLElement),b={},T=function(e){if(!(e=e||f.event))return;let t=b[e.type];t||(t=b[e.type]=u("ON_PROPERTY"+e.type));const n=this||e.target||f,o=n[t];let r;if(y&&n===p&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function E(n,o,r){let s=e(n,o);if(!s&&r&&e(r,o)&&(s={enumerable:!0,configurable:!0}),!s||!s.configurable)return;const a=u("on"+o+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete s.writable,delete s.value;const i=s.get,c=s.set,l=o.substr(2);let h=b[l];h||(h=b[l]=u("ON_PROPERTY"+l)),s.set=function(e){let t=this;t||n!==f||(t=f),t&&(t[h]&&t.removeEventListener(l,T),c&&c.apply(t,d),"function"==typeof e?(t[h]=e,t.addEventListener(l,T,!1)):t[h]=null)},s.get=function(){let e=this;if(e||n!==f||(e=f),!e)return null;const t=e[h];if(t)return t;if(i){let t=i&&i.call(this);if(t)return s.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(o),t}return null},t(n,o,s),n[a]=!0}function w(e,t,n){if(t)for(let o=0;ofunction(t,o){const s=n(t,o);return s.cbIdx>=0&&"function"==typeof o[s.cbIdx]?l(s.name,o[s.cbIdx],s,r):e.apply(t,o)})}function C(e,t){e[u("OriginalDelegate")]=t}let O=!1,z=!1;function j(){try{const e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function I(){if(O)return z;O=!0;try{const e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(z=!0)}catch(e){}return z}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=u("OriginalDelegate"),o=u("Promise"),r=u("Error"),s=function(){if("function"==typeof this){const s=this[n];if(s)return"function"==typeof s?t.call(s):Object.prototype.toString.call(s);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};s[n]=t,Function.prototype.toString=s;const a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});let N=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){N=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ie){N=!1}const R={useG:!0},x={},L={},M=new RegExp("^"+i+"(\\w+)(true|false)$"),A=u("propagationStopped");function H(e,t){const n=(t?t(e):e)+"false",o=(t?t(e):e)+"true",r=i+n,s=i+o;x[e]={},x[e].false=r,x[e].true=s}function F(e,t,o){const r=o&&o.add||"addEventListener",s=o&&o.rm||"removeEventListener",a=o&&o.listeners||"eventListeners",c=o&&o.rmAll||"removeAllListeners",l=u(r),h="."+r+":",p=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[s].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},f=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[x[t.type].false];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;ofunction(t,n){t[A]=!0,e&&e.apply(t,n)})}function q(e,t,n,o,r){const s=Zone.__symbol__(o);if(t[s])return;const a=t[s]=t[o];t[o]=function(s,i,c){return i&&i.prototype&&r.forEach((function(t){const r=`${n}.${o}::`+t,s=i.prototype;if(s.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(s,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(i.prototype,t,n)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))})),a.call(t,s,i,c)},e.attachOriginToPatched(t[o],a)}const W=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],U=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],V=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],X=["bounce","finish","start"],J=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Y=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],K=["close","error","open","message"],Q=["error","message"],ee=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],W,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function te(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ne(e,t,n,o){e&&w(e,te(e,t,n),o)}function oe(e,t){if(m&&!v)return;if(Zone[e.symbol("patchEvents")])return;const o="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(y){const e=window,t=j?[{target:e,ignoreProperties:["error"]}]:[];ne(e,ee.concat(["messageerror"]),r?r.concat(t):r,n(e)),ne(Document.prototype,ee,r),void 0!==e.SVGElement&&ne(e.SVGElement.prototype,ee,r),ne(Element.prototype,ee,r),ne(HTMLElement.prototype,ee,r),ne(HTMLMediaElement.prototype,U,r),ne(HTMLFrameSetElement.prototype,W.concat($),r),ne(HTMLBodyElement.prototype,W.concat($),r),ne(HTMLFrameElement.prototype,V,r),ne(HTMLIFrameElement.prototype,V,r);const o=e.HTMLMarqueeElement;o&&ne(o.prototype,X,r);const s=e.Worker;s&&ne(s.prototype,Q,r)}const s=t.XMLHttpRequest;s&&ne(s.prototype,J,r);const a=t.XMLHttpRequestEventTarget;a&&ne(a&&a.prototype,J,r),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,Y,r),ne(IDBRequest.prototype,Y,r),ne(IDBOpenDBRequest.prototype,Y,r),ne(IDBDatabase.prototype,Y,r),ne(IDBTransaction.prototype,Y,r),ne(IDBCursor.prototype,Y,r)),o&&ne(WebSocket.prototype,K,r)}Zone.__load_patch("util",(n,s,a)=>{a.patchOnProperties=w,a.patchMethod=D,a.bindArguments=g,a.patchMacroTask=P;const l=s.__symbol__("BLACK_LISTED_EVENTS"),u=s.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[l]=n[u]),n[l]&&(s[l]=s[u]=n[l]),a.patchEventPrototype=B,a.patchEventTarget=F,a.isIEOrEdge=I,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=o,a.ArraySlice=r,a.patchClass=S,a.wrapWithCurrentZone=c,a.filterProperties=te,a.attachOriginToPatched=C,a._redefineProperty=Object.defineProperty,a.patchCallbacks=q,a.getGlobalObjects=()=>({globalSources:L,zoneSymbolEventNames:x,eventNames:ee,isBrowser:y,isMix:v,isNode:m,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:i,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const re=u("zoneTask");function se(e,t,n,o){let r=null,s=null;n+=o;const a={};function i(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[re]=null))}},n.handleId=r.apply(e,n.args),t}function c(e){return s(e.data.handleId)}r=D(e,t+=o,n=>function(r,s){if("function"==typeof s[0]){const e=l(t,s[0],{isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?s[1]||0:void 0,args:s},i,c);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?a[n]=e:n&&(n[re]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,s)}),s=D(e,n,t=>function(n,o){const r=o[0];let s;"number"==typeof r?s=a[r]:(s=r&&r[re],s||(s=r)),s&&"string"==typeof s.type?"notScheduled"!==s.state&&(s.cancelFn&&s.data.isPeriodic||0===s.runCount)&&("number"==typeof r?delete a[r]:r&&(r[re]=null),s.zone.cancelTask(s)):t.apply(e,o)})}function ae(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:s,ZONE_SYMBOL_PREFIX:a}=t.getGlobalObjects();for(let c=0;c{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{se(e,"set","clear","Timeout"),se(e,"set","clear","Interval"),se(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{se(e,"request","cancel","AnimationFrame"),se(e,"mozRequest","mozCancel","AnimationFrame"),se(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;ofunction(o,s){return t.current.run(n,e,s,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),ae(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),S("MutationObserver"),S("WebKitMutationObserver"),S("IntersectionObserver"),S("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{oe(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const p=e.XMLHttpRequest;if(!p)return;const f=p.prototype;let d=f[s],g=f[a];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[s],g=e[a]}}function _(e){const o=e.data,c=o.target;c[i]=!1,c[h]=!1;const l=c[r];d||(d=c[s],g=c[a]),l&&g.call(c,"readystatechange",l);const u=c[r]=()=>{if(c.readyState===c.DONE)if(!o.aborted&&c[i]&&"scheduled"===e.state){const n=c[t.__symbol__("loadfalse")];if(n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=c[t.__symbol__("loadfalse")];for(let t=0;tfunction(e,t){return e[o]=0==t[2],e[c]=t[1],y.apply(e,t)}),v=u("fetchTaskAborting"),b=u("fetchTaskScheduling"),T=D(f,"send",()=>function(e,n){if(!0===t.current[b])return T.apply(e,n);if(e[o])return T.apply(e,n);{const t={target:e,url:e[c],isPeriodic:!1,args:n,aborted:!1},o=l("XMLHttpRequest.send",k,t,_,m);e&&!0===e[h]&&!t.aborted&&"scheduled"===o.state&&o.invoke()}}),E=D(f,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[v])return E.apply(e,o)})}(e);const n=u("xhrTask"),o=u("xhrSync"),r=u("xhrListener"),i=u("xhrScheduled"),c=u("xhrURL"),h=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const o=t.constructor.name;for(let r=0;r{const t=function(){return e.apply(this,g(arguments,o+"."+s))};return C(t,e),t})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){G(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?o.call(t,n,t,e):o)||(e.exports=r)}},[[2,0]]]); \ No newline at end of file diff --git a/resources/Hypnonema/client/html/polyfills-es5.js b/resources/Hypnonema/client/html/polyfills-es5.js deleted file mode 100644 index b4e4ed82b..000000000 --- a/resources/Hypnonema/client/html/polyfills-es5.js +++ /dev/null @@ -1 +0,0 @@ -function _createForOfIteratorHelper(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=_unsupportedIterableToArray(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),h=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,l){var v=i(t),d=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[v]=/./[v]),n.exec=function(){return e=!0,null},n[v](""),!e}));if(!d||!g||"replace"===t&&(!s||!f||p)||"split"===t&&!h){var y=/./[v],b=n(v,""[t],(function(t,e,n,r,o){return e.exec===a?d&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),m=b[1];r(String.prototype,t,b[0]),r(RegExp.prototype,v,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}l&&c(RegExp.prototype[v],"sham",!0)}},"1E5z":function(t,e,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"1Y/n":function(t,e,n){var r=n("HAuM"),o=n("ewvW"),i=n("RK3t"),a=n("UMSQ"),c=function(t){return function(e,n,c,u){r(n);var s=o(e),f=i(s),l=a(s.length),p=t?l-1:0,h=t?-1:1;if(c<2)for(;;){if(p in f){u=f[p],p+=h;break}if(p+=h,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=h)p in f&&(u=n(u,f[p],p,s));return u}};t.exports={left:c(!1),right:c(!0)}},"2A+d":function(t,e,n){var r=n("I+eb"),o=n("/GqU"),i=n("UMSQ");r({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(e[c++])),c1?arguments[1]:void 0)}})},"2oRo":function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"33Wh":function(t,e,n){var r=n("yoRg"),o=n("eDl+");t.exports=Object.keys||function(t){return r(t,o)}},"3I1R":function(t,e,n){n("dG/n")("hasInstance")},"3KgV":function(t,e,n){var r=n("I+eb"),o=n("uy83"),i=n("0Dky"),a=n("hh1v"),c=n("8YOa").onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(t){return u&&a(t)?u(c(t)):t}})},"3bBZ":function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("4mDm"),a=n("kRJp"),c=n("tiKp"),u=c("iterator"),s=c("toStringTag"),f=i.values;for(var l in o){var p=r[l],h=p&&p.prototype;if(h){if(h[u]!==f)try{a(h,u,f)}catch(d){h[u]=f}if(h[s]||a(h,s,l),o[l])for(var v in i)if(h[v]!==i[v])try{a(h,v,i[v])}catch(d){h[v]=i[v]}}}},"4Brf":function(t,e,n){"use strict";var r=n("I+eb"),o=n("g6v/"),i=n("2oRo"),a=n("UTVS"),c=n("hh1v"),u=n("m/L8").f,s=n("6JNq"),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},p=function t(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),n=this instanceof t?new f(e):void 0===e?f():f(e);return""===e&&(l[n]=!0),n};s(p,f);var h=p.prototype=f.prototype;h.constructor=p;var v=h.toString,d="Symbol(test)"==String(f("test")),g=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=v.call(t);if(a(l,t))return"";var n=d?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},"4WOD":function(t,e,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),c=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"4Xet":function(t,e,n){var r=n("0Dky");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"4h0Y":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},"4l63":function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({global:!0,forced:parseInt!=o},{parseInt:o})},"4mDm":function(t,e,n){"use strict";var r=n("/GqU"),o=n("RNIs"),i=n("P4y1"),a=n("afO8"),c=n("fdAy"),u=a.set,s=a.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},"4oU/":function(t,e,n){var r=n("2oRo").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},"4syw":function(t,e,n){var r=n("busE");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"5D5o":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},"5DmW":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("/GqU"),a=n("Bs8V").f,c=n("g6v/"),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},"5Tg+":function(t,e,n){var r=n("tiKp");e.f=r},"5Yz+":function(t,e,n){"use strict";var r=n("/GqU"),o=n("ppGB"),i=n("UMSQ"),a=n("pkCn"),c=n("rkAj"),u=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0});t.exports=!f&&l&&p?s:function(t){if(f)return s.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}},"5mdu":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"5s+n":function(t,e,n){"use strict";var r,o,i,a,c=n("I+eb"),u=n("xDBR"),s=n("2oRo"),f=n("0GbY"),l=n("/qmn"),p=n("busE"),h=n("4syw"),v=n("1E5z"),d=n("JiZb"),g=n("hh1v"),y=n("HAuM"),b=n("GarU"),m=n("xrYK"),k=n("iSVu"),E=n("ImZN"),S=n("HH4o"),x=n("SEBh"),_=n("LPSS").set,w=n("tXUg"),T=n("zfnd"),O=n("RN6c"),I=n("8GlL"),j=n("5mdu"),P=n("afO8"),R=n("lMq5"),D=n("tiKp"),M=n("LQDL"),A=D("species"),N="Promise",C=P.get,L=P.set,Z=P.getterFor(N),F=l,z=s.TypeError,W=s.document,U=s.process,G=f("fetch"),B=I.f,H=B,K="process"==m(U),V=!!(W&&W.createEvent&&s.dispatchEvent),Y=R(N,(function(){if(k(F)===String(F)){if(66===M)return!0;if(!K&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!F.prototype.finally)return!0;if(M>=51&&/native code/.test(F))return!1;var t=F.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[A]=e,!(t.then((function(){}))instanceof e)})),q=Y||!S((function(t){F.all(t).catch((function(){}))})),X=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},J=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;w((function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var c,u,s,f=r[a++],l=i?f.ok:f.fail,p=f.resolve,h=f.reject,v=f.domain;try{l?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?c=o:(v&&v.enter(),c=l(o),v&&(v.exit(),s=!0)),c===f.promise?h(z("Promise-chain cycle")):(u=X(c))?u.call(c,p,h):p(c)):h(o)}catch(d){v&&!s&&v.exit(),h(d)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&$(t,e)}))}},Q=function(t,e,n){var r,o;V?((r=W.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},(o=s["on"+t])?o(r):"unhandledrejection"===t&&O("Unhandled promise rejection",n)},$=function(t,e){_.call(s,(function(){var n,r=e.value;if(tt(e)&&(n=j((function(){K?U.emit("unhandledRejection",r,t):Q("unhandledrejection",t,r)})),e.rejection=K||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){_.call(s,(function(){K?U.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(t,e,!0))},ot=function t(e,n,r,o){if(!n.done){n.done=!0,o&&(n=o);try{if(e===r)throw z("Promise can't be resolved itself");var i=X(r);i?w((function(){var o={done:!1};try{i.call(r,nt(t,e,o,n),nt(rt,e,o,n))}catch(a){rt(e,o,a,n)}})):(n.value=r,n.state=1,J(e,n,!1))}catch(a){rt(e,{done:!1},a,n)}}};Y&&(F=function(t){b(this,F,N),y(t),r.call(this);var e=C(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(n){rt(this,e,n)}},(r=function(t){L(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(F.prototype,{then:function(t,e){var n=Z(this),r=B(x(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=K?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=C(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},I.f=B=function(t){return t===F||t===i?new o(t):H(t)},u||"function"!=typeof l||(a=l.prototype.then,p(l.prototype,"then",(function(t,e){var n=this;return new F((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof G&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T(F,G.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:Y},{Promise:F}),v(F,N,!1,!0),d(N),i=f(N),c({target:N,stat:!0,forced:Y},{reject:function(t){var e=B(this);return e.reject.call(void 0,t),e.promise}}),c({target:N,stat:!0,forced:u||Y},{resolve:function(t){return T(u&&this===i?F:this,t)}}),c({target:N,stat:!0,forced:q},{all:function(t){var e=this,n=B(e),r=n.resolve,o=n.reject,i=j((function(){var n=y(e.resolve),i=[],a=0,c=1;E(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=B(e),r=n.reject,o=j((function(){var o=y(e.resolve);E(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},"5uH8":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},"6JNq":function(t,e,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s1?arguments[1]:void 0)}})},"9bJ7":function(t,e,n){"use strict";var r=n("I+eb"),o=n("ZUd8").codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return o(this,t)}})},"9d/t":function(t,e,n){var r=n("AO7/"),o=n("xrYK"),i=n("tiKp")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},"9mRW":function(t,e,n){n("I+eb")({target:"Math",stat:!0},{fround:n("vo4V")})},"9tb/":function(t,e,n){var r=n("I+eb"),o=n("I8vh"),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},A2ZE:function(t,e,n){var r=n("HAuM");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"AO7/":function(t,e,n){var r={};r[n("tiKp")("toStringTag")]="z",t.exports="[object z]"===String(r)},AmFO:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("jrUv"),a=Math.abs,c=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(c(t-1)-c(-t-1))*(u/2)}})},BNMt:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("blink")},{blink:function(){return o(this,"blink","","")}})},BTho:function(t,e,n){"use strict";var r=n("HAuM"),o=n("hh1v"),i=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;ou&&(s=s.slice(0,u)),t?f+s:s+f)}};t.exports={start:c(!1),end:c(!0)}},DPsx:function(t,e,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},DQNa:function(t,e,n){var r=n("busE"),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var t=a.call(this);return t==t?i.call(this):"Invalid Date"}))},E5NM:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("big")},{big:function(){return o(this,"big","","")}})},E9XD:function(t,e,n){"use strict";var r=n("I+eb"),o=n("1Y/n").left,i=n("pkCn"),a=n("rkAj"),c=i("reduce"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},ENF9:function(t,e,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),c=n("bWFh"),u=n("rKzb"),s=n("hh1v"),f=n("afO8").enforce,l=n("f5p1"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},d=t.exports=c("WeakMap",v,u);if(l&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,b=g.has,m=g.get,k=g.set;i(g,{delete:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.delete(t)}return y.call(this,t)},has:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),b.call(this,t)||e.frozen.has(t)}return b.call(this,t)},get:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),b.call(this,t)?m.call(this,t):e.frozen.get(t)}return m.call(this,t)},set:function(t,e){if(s(t)&&!h(t)){var n=f(this);n.frozen||(n.frozen=new r),b.call(this,t)?k.call(this,t,e):n.frozen.set(t,e)}else k.call(this,t,e);return this}})}},EUja:function(t,e,n){"use strict";var r=n("ppGB"),o=n("HYAF");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},EnZy:function(t,e,n){"use strict";var r=n("14Sl"),o=n("ROdP"),i=n("glrk"),a=n("HYAF"),c=n("SEBh"),u=n("iqWW"),s=n("UMSQ"),f=n("FMNM"),l=n("kmMV"),p=n("0Dky"),h=[].push,v=Math.min,d=!p((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var c,u,s,f=[],p=0,v=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(c=l.call(v,r))&&!((u=v.lastIndex)>p&&(f.push(r.slice(p,c.index)),c.length>1&&c.index=i));)v.lastIndex===c.index&&v.lastIndex++;return p===r.length?!s&&v.test("")||f.push(""):f.push(r.slice(p)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var l=i(t),p=String(this),h=c(l,RegExp),g=l.unicode,y=new h(d?l:"^(?:"+l.source+")",(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(d?"y":"g")),b=void 0===o?4294967295:o>>>0;if(0===b)return[];if(0===p.length)return null===f(y,p)?[p]:[];for(var m=0,k=0,E=[];k1?arguments[1]:void 0)}},FF6l:function(t,e,n){"use strict";var r=n("ewvW"),o=n("I8vh"),i=n("UMSQ"),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),c=i(n.length),u=o(t,c),s=o(e,c),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?c:o(f,c))-s,c-u),p=1;for(s0;)s in n?n[u]=n[s]:delete n[u],u+=p,s+=p;return n}},FMNM:function(t,e,n){var r=n("xrYK"),o=n("kmMV");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},FZtP:function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("F8JR"),a=n("kRJp");for(var c in o){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(f){s.forEach=i}}},"G+Rx":function(t,e,n){var r=n("0GbY");t.exports=r("document","documentElement")},GKVU:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},GRPF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},GXvd:function(t,e,n){n("dG/n")("species")},GarU:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},H0pb:function(t,e,n){n("ma9I"),n("07d7"),n("pNMO"),n("tjZM"),n("4Brf"),n("3I1R"),n("7+kd"),n("0oug"),n("KhsS"),n("jt2F"),n("gOCb"),n("a57n"),n("GXvd"),n("I1Gw"),n("gXIK"),n("lEou"),n("gbiT"),n("I9xj"),n("DEfu");var r=n("Qo9l");t.exports=r.Symbol},HAuM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},HH4o:function(t,e,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(c){}return n}},HNyW:function(t,e,n){var r=n("NC/Y");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},HRxU:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n("N+g0")})},HYAF:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},Hd5f:function(t,e,n){var r=n("0Dky"),o=n("tiKp"),i=n("LQDL"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},HsHA:function(t,e){var n=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},"I+eb":function(t,e,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),c=n("zk60"),u=n("6JNq"),s=n("lMq5");t.exports=function(t,e){var n,f,l,p,h,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(h=o(n,f))&&h.value:n[f],!s(d?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(n,f,p,t)}}},I1Gw:function(t,e,n){n("dG/n")("split")},I8vh:function(t,e,n){var r=n("ppGB"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},I9xj:function(t,e,n){n("1E5z")(Math,"Math",!0)},ImZN:function(t,e,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("A2ZE"),c=n("NaFW"),u=n("m92n"),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var p,h,v,d,g,y,b,m=a(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(t.length);d>v;v++)if((g=f?m(r(b=t[v])[0],b[1]):m(t[v]))&&g instanceof s)return g;return new s(!1)}p=h.call(t)}for(y=p.next;!(b=y.call(p)).done;)if("object"==typeof(g=u(p,m,b.value,f))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(t){return new s(!0,t)}},IxXR:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("strike")},{strike:function(){return o(this,"strike","","")}})},J30X:function(t,e,n){n("I+eb")({target:"Array",stat:!0},{isArray:n("6LWA")})},JBy8:function(t,e,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},JTJg:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WjRb"),i=n("HYAF");r({target:"String",proto:!0,forced:!n("qxPZ")("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},JevA:function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},JfAA:function(t,e,n){"use strict";var r=n("busE"),o=n("glrk"),i=n("0Dky"),a=n("rW0t"),c=RegExp.prototype,u=c.toString;(i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))||"toString"!=u.name)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in c)?a.call(t):n)}),{unsafe:!0})},JiZb:function(t,e,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),c=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&(0,o.f)(e,c,{configurable:!0,get:function(){return this}})}},KhsS:function(t,e,n){n("dG/n")("match")},KvGi:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{sign:n("90hW")})},Kxld:function(t,e,n){n("I+eb")({target:"Object",stat:!0},{is:n("Ep9I")})},LKBx:function(t,e,n){"use strict";var r,o=n("I+eb"),i=n("Bs8V").f,a=n("UMSQ"),c=n("WjRb"),u=n("HYAF"),s=n("qxPZ"),f=n("xDBR"),l="".startsWith,p=Math.min,h=s("startsWith");o({target:"String",proto:!0,forced:!(!f&&!h&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||h)},{startsWith:function(t){var e=String(u(this));c(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},LPSS:function(t,e,n){var r,o,i,a=n("2oRo"),c=n("0Dky"),u=n("xrYK"),s=n("A2ZE"),f=n("G+Rx"),l=n("zBJ4"),p=n("HNyW"),h=a.location,v=a.setImmediate,d=a.clearImmediate,g=a.process,y=a.MessageChannel,b=a.Dispatch,m=0,k={},E=function(t){if(k.hasOwnProperty(t)){var e=k[t];delete k[t],e()}},S=function(t){return function(){E(t)}},x=function(t){E(t.data)},_=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};v&&d||(v=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return k[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(m),m},d=function(t){delete k[t]},"process"==u(g)?r=function(t){g.nextTick(S(t))}:b&&b.now?r=function(t){b.now(S(t))}:y&&!p?(i=(o=new y).port2,o.port1.onmessage=x,r=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(_)?r="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),E(t)}}:function(t){setTimeout(S(t),0)}:(r=_,a.addEventListener("message",x,!1))),t.exports={set:v,clear:d}},LQDL:function(t,e,n){var r,o,i=n("2oRo"),a=n("NC/Y"),c=i.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},"N+g0":function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},NBAS:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("ewvW"),a=n("4WOD"),c=n("4Xet");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},"NC/Y":function(t,e,n){var r=n("0GbY");t.exports=r("navigator","userAgent")||""},NaFW:function(t,e,n){var r=n("9d/t"),o=n("P4y1"),i=n("tiKp")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"NbN+":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},O741:function(t,e,n){var r=n("hh1v");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},OM9Z:function(t,e,n){n("I+eb")({target:"String",proto:!0},{repeat:n("EUja")})},P4y1:function(t,e){t.exports={}},PKPk:function(t,e,n){"use strict";var r=n("ZUd8").charAt,o=n("afO8"),i=n("fdAy"),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},PqOI:function(t,e,n){var r=n("I+eb"),o=n("90hW"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},QFcT:function(t,e,n){var r=n("I+eb"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,c=0,u=arguments.length,s=0;c0?(r=n/s)*r:n;return s===1/0?1/0:s*a(o)}})},QIpd:function(t,e,n){var r=n("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},QNnp:function(t,e,n){var r=n("I+eb"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},QWBl:function(t,e,n){"use strict";var r=n("I+eb"),o=n("F8JR");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},Qo9l:function(t,e,n){var r=n("2oRo");t.exports=r},R0gw:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";var t,e,n,r,o,i;function a(){t=Zone.__symbol__,e=Object[t("defineProperty")]=Object.defineProperty,n=Object[t("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,r=Object.create,o=t("unconfigurables"),Object.defineProperty=function(t,e,n){if(u(t,e))throw new TypeError("Cannot assign to read only property '"+e+"' of "+t);var r=n.configurable;return"prototype"!==e&&(n=s(t,e,n)),f(t,e,n,r)},Object.defineProperties=function(t,e){return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,e[n])})),t},Object.create=function(t,e){return"object"!=typeof e||Object.isFrozen(e)||Object.keys(e).forEach((function(n){e[n]=s(t,n,e[n])})),r(t,e)},Object.getOwnPropertyDescriptor=function(t,e){var r=n(t,e);return r&&u(t,e)&&(r.configurable=!1),r}}function c(t,e,n){var r=n.configurable;return f(t,e,n=s(t,e,n),r)}function u(t,e){return t&&t[o]&&t[o][e]}function s(t,n,r){return Object.isFrozen(r)||(r.configurable=!0),r.configurable||(t[o]||Object.isFrozen(t)||e(t,o,{writable:!0,value:{}}),t[o]&&(t[o][n]=!0)),r}function f(t,n,r,o){try{return e(t,n,r)}catch(a){if(!r.configurable)throw a;void 0===o?delete r.configurable:r.configurable=o;try{return e(t,n,r)}catch(a){var i=null;try{i=JSON.stringify(r)}catch(a){i=r.toString()}console.log("Attempting to configure '"+n+"' with descriptor '"+i+"' on object '"+t+"' and got error, giving up: "+a)}}}function l(t,e){var n=e.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,c=n.FALSE_STR,u=n.ZONE_SYMBOL_PREFIX,s="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),f=[],l=t.wtf,p="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");l?f=p.map((function(t){return"HTML"+t+"Element"})).concat(s):t.EventTarget?f.push("EventTarget"):f=s;for(var h=t.__Zone_disable_IE_check||!1,v=t.__Zone_enable_cross_context_check||!1,d=e.isIEOrEdge(),g="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",y={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},b=0;b1?new i(e,n):new i(e),s=t.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=t.ObjectCreate(u),c=u,[r,o,"send","close"].forEach((function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[e].apply(u,n)}}))):a=u,t.patchOnProperties(a,["close","error","message","open"],c),a};var a=e.WebSocket;for(var c in i)a[c]=i[c]}(t,e),Zone[t.symbol("patchEvents")]=!0}}(i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})[(i.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var t=i.Zone;t.__load_patch("defineProperty",(function(t,e,n){n._redefineProperty=c,a()})),t.__load_patch("registerElement",(function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)})),t.__load_patch("EventTargetLegacy",(function(t,e,n){l(t,n),p(n,t)}))}})?r.call(e,n,e,t):r)||(t.exports=o)},RK3t:function(t,e,n){var r=n("0Dky"),o=n("xrYK"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},RN6c:function(t,e,n){var r=n("2oRo");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},RNIs:function(t,e,n){var r=n("tiKp"),o=n("fHMY"),i=n("m/L8"),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},ROdP:function(t,e,n){var r=n("hh1v"),o=n("xrYK"),i=n("tiKp")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},Rfxz:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").some,i=n("pkCn"),a=n("rkAj"),c=i("some"),u=a("some");r({target:"Array",proto:!0,forced:!c||!u},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},Rm1S:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("UMSQ"),a=n("HYAF"),c=n("iqWW"),u=n("FMNM");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;for(var l,p=[],h=0;null!==(l=u(a,s));){var v=String(l[0]);p[h]=v,""===v&&(a.lastIndex=c(s,i(a.lastIndex),f)),h++}return 0===h?null:p}]}))},SEBh:function(t,e,n){var r=n("glrk"),o=n("HAuM"),i=n("tiKp")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},STAE:function(t,e,n){var r=n("0Dky");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},SYor:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WKiH").trim;r({target:"String",proto:!0,forced:n("yNLB")("trim")},{trim:function(){return o(this)}})},TFPT:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sub")},{sub:function(){return o(this,"sub","","")}})},TWNs:function(t,e,n){var r=n("g6v/"),o=n("2oRo"),i=n("lMq5"),a=n("cVYH"),c=n("m/L8").f,u=n("JBy8").f,s=n("ROdP"),f=n("rW0t"),l=n("n3/R"),p=n("busE"),h=n("0Dky"),v=n("afO8").set,d=n("JiZb"),g=n("tiKp")("match"),y=o.RegExp,b=y.prototype,m=/a/g,k=/a/g,E=new y(m)!==m,S=l.UNSUPPORTED_Y;if(r&&i("RegExp",!E||S||h((function(){return k[g]=!1,y(m)!=m||y(k)==k||"/a/i"!=y(m,"i")})))){for(var x=function t(e,n){var r,o=this instanceof t,i=s(e),c=void 0===n;if(!o&&i&&e.constructor===t&&c)return e;E?i&&!c&&(e=e.source):e instanceof t&&(c&&(n=f.call(e)),e=e.source),S&&(r=!!n&&n.indexOf("y")>-1)&&(n=n.replace(/y/g,""));var u=a(E?new y(e,n):y(e,n),o?this:b,t);return S&&r&&v(u,{sticky:r}),u},_=function(t){t in x||c(x,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},w=u(y),T=0;w.length>T;)_(w[T++]);b.constructor=x,x.prototype=b,p(o,"RegExp",x)}d("RegExp")},TWQb:function(t,e,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},TeQF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").filter,i=n("Hd5f"),a=n("rkAj"),c=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!c||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(t,e,n){"use strict";var r=n("A2ZE"),o=n("ewvW"),i=n("m92n"),a=n("6VoE"),c=n("UMSQ"),u=n("hBjN"),s=n("NaFW");t.exports=function(t){var e,n,f,l,p,h,v=o(t),d="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,b=void 0!==y,m=s(v),k=0;if(b&&(y=r(y,g>2?arguments[2]:void 0,2)),null==m||d==Array&&a(m))for(n=new d(e=c(v.length));e>k;k++)h=b?y(v[k],k):v[k],u(n,k,h);else for(p=(l=m.call(v)).next,n=new d;!(f=p.call(l)).done;k++)h=b?i(l,y,[f.value,k],!0):f.value,u(n,k,h);return n.length=k,n}},ToJy:function(t,e,n){"use strict";var r=n("I+eb"),o=n("HAuM"),i=n("ewvW"),a=n("0Dky"),c=n("pkCn"),u=[],s=u.sort,f=a((function(){u.sort(void 0)})),l=a((function(){u.sort(null)})),p=c("sort");r({target:"Array",proto:!0,forced:f||!l||!p},{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},Tskq:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},U3f4:function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("rW0t"),a=n("n3/R").UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},UMSQ:function(t,e,n){var r=n("ppGB"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},UTVS:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},UesL:function(t,e,n){"use strict";var r=n("glrk"),o=n("wE6v");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},UxlC:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("ewvW"),a=n("UMSQ"),c=n("ppGB"),u=n("HYAF"),s=n("iqWW"),f=n("FMNM"),l=Math.max,p=Math.min,h=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!g&&y||"string"==typeof r&&-1===r.indexOf(b)){var i=n(e,t,this,r);if(i.done)return i.value}var u=o(t),h=String(this),v="function"==typeof r;v||(r=String(r));var d=u.global;if(d){var k=u.unicode;u.lastIndex=0}for(var E=[];;){var S=f(u,h);if(null===S)break;if(E.push(S),!d)break;""===String(S[0])&&(u.lastIndex=s(h,a(u.lastIndex),k))}for(var x,_="",w=0,T=0;T=w&&(_+=h.slice(w,I)+M,w=I+O.length)}return _+h.slice(w)}];function m(t,n,r,o,a,c){var u=r+t.length,s=o.length,f=d;return void 0!==a&&(a=i(a),f=v),e.call(c,f,(function(e,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var l=h(f/10);return 0===l?e:l<=s?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):e}c=o[f-1]}return void 0===c?"":c}))}}))},Uydy:function(t,e,n){var r=n("I+eb"),o=n("HsHA"),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+u:o(t-1+c(t-1)*c(t+1))}})},VC3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("QIpd"),a=1..toPrecision;r({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},VpIT:function(t,e,n){var r=n("xDBR"),o=n("xs3f");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(t,e,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},WDsR:function(t,e,n){var r=n("I+eb"),o=n("Xol8"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},WJkJ:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(t,e,n){var r=n("HYAF"),o="["+n("WJkJ")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},WjRb:function(t,e,n){var r=n("ROdP");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},XGwC:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},Xe3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("hBjN");r({target:"Array",stat:!0,forced:o((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},Xol8:function(t,e,n){var r=n("hh1v"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},YGK4:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},YNrV:function(t,e,n){"use strict";var r=n("g6v/"),o=n("0Dky"),i=n("33Wh"),a=n("dBg+"),c=n("0eef"),u=n("ewvW"),s=n("RK3t"),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,f=1,l=a.f,p=c.f;o>f;)for(var h,v=s(arguments[f++]),d=l?i(v).concat(l(v)):i(v),g=d.length,y=0;g>y;)h=d[y++],r&&!p.call(v,h)||(n[h]=v[h]);return n}:f},ZOXb:function(t,e,n){"use strict";var r=n("0Dky"),o=n("DMt2").start,i=Math.abs,a=Date.prototype,c=a.getTime,u=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))}))||!r((function(){u.call(new Date(NaN))}))?function(){if(!isFinite(c.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+o(i(t),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:u},ZUd8:function(t,e,n){var r=n("ppGB"),o=n("HYAF"),i=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},ZWaQ:function(t,e,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("A2ZE"),c=n("GarU"),u=n("ImZN"),s=n("fdAy"),f=n("JiZb"),l=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),v=h.set,d=h.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){c(t,f,e),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&u(r,t[s],t,n)})),h=d(e),g=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=h(this),n=y(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return h(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=d(e),i=d(r);s(t,e,(function(t,e){v(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},ZfDv:function(t,e,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},Zk8X:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sup")},{sup:function(){return o(this,"sup","","")}})},a57n:function(t,e,n){n("dG/n")("search")},a5NK:function(t,e,n){var r=n("I+eb"),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},afO8:function(t,e,n){var r,o,i,a=n("f5p1"),c=n("2oRo"),u=n("hh1v"),s=n("kRJp"),f=n("UTVS"),l=n("93I0"),p=n("0BK2");if(a){var h=new(0,c.WeakMap),v=h.get,d=h.has,g=h.set;r=function(t,e){return g.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return d.call(h,t)}}else{var y=l("state");p[y]=!0,r=function(t,e){return s(t,y,e),e},o=function(t){return f(t,y)?t[y]:{}},i=function(t){return f(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},bWFh:function(t,e,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("8YOa"),u=n("ImZN"),s=n("GarU"),f=n("hh1v"),l=n("0Dky"),p=n("HH4o"),h=n("1E5z"),v=n("cVYH");t.exports=function(t,e,n){var d=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),y=d?"set":"add",b=o[t],m=b&&b.prototype,k=b,E={},S=function(t){var e=m[t];a(m,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof b||!(g||m.forEach&&!l((function(){(new b).entries().next()})))))k=n.getConstructor(e,t,d,y),c.REQUIRED=!0;else if(i(t,!0)){var x=new k,_=x[y](g?{}:-0,1)!=x,w=l((function(){x.has(1)})),T=p((function(t){new b(t)})),O=!g&&l((function(){for(var t=new b,e=5;e--;)t[y](e,e);return!t.has(-0)}));T||((k=e((function(e,n){s(e,k,t);var r=v(new b,e,k);return null!=n&&u(n,r[y],r,d),r}))).prototype=m,m.constructor=k),(w||O)&&(S("delete"),S("has"),d&&S("get")),(O||_)&&S(y),g&&m.clear&&delete m.clear}return E[t]=k,r({global:!0,forced:k!=b},E),h(k,t),g||n.setStrong(k,t,d),k}},brp2:function(t,e,n){n("I+eb")({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},busE:function(t,e,n){var r=n("2oRo"),o=n("kRJp"),i=n("UTVS"),a=n("zk60"),c=n("iSVu"),u=n("afO8"),s=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(u?!p&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},cDke:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("BX/b").f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},cVYH:function(t,e,n){var r=n("hh1v"),o=n("0rvr");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},"dBg+":function(t,e){e.f=Object.getOwnPropertySymbols},"dG/n":function(t,e,n){var r=n("Qo9l"),o=n("UTVS"),i=n("5Tg+"),a=n("m/L8").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"eDl+":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eJiR:function(t,e,n){var r=n("I+eb"),o=n("jrUv"),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},eajv:function(t,e,n){var r=n("I+eb"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},eoL8:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n("m/L8").f})},ewvW:function(t,e,n){var r=n("HYAF");t.exports=function(t){return Object(r(t))}},f5p1:function(t,e,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(t,e,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),c=n("0BK2"),u=n("G+Rx"),s=n("zBJ4"),f=n("93I0")("IE_PROTO"),l=function(){},p=function(t){return" + */var r,o,a,l;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,f=null,p=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(p,0))},o=function(e,t){f=setTimeout(e,t)},a=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,y=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,m=null,b=-1,g=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r_(l,n))void 0!==u&&0>_(u,l)?(e[r]=u,e[i]=n,r=i):(e[r]=l,e[a]=n,r=a);else{if(!(void 0!==u&&0>_(u,n)))break e;e[r]=u,e[i]=n,r=i}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var j=[],C=[],T=1,x=null,R=3,L=!1,D=!1,M=!1;function I(e){for(var t=S(C);null!==t;){if(null===t.callback)E(C);else{if(!(t.startTime<=e))break;E(C),t.sortIndex=t.expirationTime,O(j,t)}t=S(C)}}function N(e){if(M=!1,I(e),!D)if(null!==S(j))D=!0,r(A);else{var t=S(C);null!==t&&o(N,t.startTime-e)}}function A(e,n){D=!1,M&&(M=!1,a()),L=!0;var r=R;try{for(I(n),x=S(j);null!==x&&(!(x.expirationTime>n)||e&&!t.unstable_shouldYield());){var l=x.callback;if("function"==typeof l){x.callback=null,R=x.priorityLevel;var i=l(x.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?x.callback=i:x===S(j)&&E(j),I(n)}else E(j);x=S(j)}if(null!==x)var u=!0;else{var c=S(C);null!==c&&o(N,c.startTime-n),u=!1}return u}finally{x=null,R=r,L=!1}}var z=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||L||(D=!0,r(A))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return S(j)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,l){var i=t.unstable_now();switch("object"==typeof l&&null!==l?l="number"==typeof(l=l.delay)&&0i?(e.sortIndex=l,O(C,e),null===S(j)&&e===S(C)&&(M?a():M=!0,o(N,l-i))):(e.sortIndex=u,O(j,e),D||L||(D=!0,r(A))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(16))&&r.__esModule?r:{default:r},a=n(30);var l=o.default[o.default.length-1],i=(0,a.createReactPlayer)(o.default,l);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=n(1),a=n(2);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}var c=[{key:"youtube",name:"YouTube",canPlay:a.canPlay.youtube,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(18))}))}))},{key:"soundcloud",name:"SoundCloud",canPlay:a.canPlay.soundcloud,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(19))}))}))},{key:"vimeo",name:"Vimeo",canPlay:a.canPlay.vimeo,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(20))}))}))},{key:"facebook",name:"Facebook",canPlay:a.canPlay.facebook,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(21))}))}))},{key:"streamable",name:"Streamable",canPlay:a.canPlay.streamable,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(22))}))}))},{key:"wistia",name:"Wistia",canPlay:a.canPlay.wistia,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(23))}))}))},{key:"twitch",name:"Twitch",canPlay:a.canPlay.twitch,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(24))}))}))},{key:"dailymotion",name:"DailyMotion",canPlay:a.canPlay.dailymotion,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(25))}))}))},{key:"mixcloud",name:"Mixcloud",canPlay:a.canPlay.mixcloud,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(26))}))}))},{key:"vidyard",name:"Vidyard",canPlay:a.canPlay.vidyard,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(27))}))}))},{key:"kaltura",name:"Kaltura",canPlay:a.canPlay.kaltura,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(28))}))}))},{key:"file",name:"FilePlayer",canPlay:a.canPlay.file,canEnablePIP:function(e){return a.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,o.supportsWebKitPresentationMode)())&&!a.AUDIO_EXTENSIONS.test(e)},lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(29))}))}))}];t.default=c},function(e,t){function n(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,t,o){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("script");"function"==typeof t&&(o=t,t={}),t=t||{},o=o||function(){},l.type=t.type||"text/javascript",l.charset=t.charset||"utf8",l.async=!("async"in t)||!!t.async,l.src=e,t.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(l,t.attrs),t.text&&(l.text=""+t.text),("onload"in l?n:r)(l,o),l.onload||n(l,o),a.appendChild(l)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=n(1),l=n(2);function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,g=m&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||b)&&!window.MSStream,w=/www\.dropbox\.com\/.+/,P=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(d,e);var t,n,r,i=p(d);function d(){var e;c(this,d);for(var t=arguments.length,n=new Array(t),r=0;r0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e),r=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||n||r))return w.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,r=e.loop,a=e.controls,l=e.muted,i=e.config,c=e.width,s=e.height,f=this.shouldUseAudio(this.props)?"audio":"video",p={width:"auto"===c?c:"100%",height:"auto"===s?s:"100%"};return o.default.createElement(f,u({ref:this.ref,src:this.getSource(t),style:p,preload:"auto",autoPlay:n||void 0,controls:a,muted:l,loop:r},i.attributes),t instanceof Array&&t.map(this.renderSourceElement),i.tracks.map(this.renderTrack))}}])&&s(t.prototype,n),r&&s(t,r),d}(o.Component);t.default=k,v(k,"displayName","FilePlayer"),v(k,"canPlay",l.canPlay.file)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createReactPlayer=void 0;var r=_(n(0)),o=s(n(4)),a=s(n(32)),l=s(n(5)),i=n(6),u=n(1),c=s(n(36));function s(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"player";return n.player?n.player.getInternalPlayer(e):null})),S(k(n),"seekTo",(function(e,t){if(!n.player)return null;n.player.seekTo(e,t)})),S(k(n),"handleReady",(function(){n.props.onReady(k(n))})),S(k(n),"getActivePlayer",(0,a.default)((function(n){for(var r=0,o=[].concat(L,h(e));r0&&e<1){var r=this.player.getDuration();return r?void this.player.seekTo(r*e):void console.warn("ReactPlayer: could not seek using fraction – duration not yet available")}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?a.default.createElement(e,c({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}])&&f(t.prototype,n),r&&f(t,r),i}(a.Component);t.default=b,m(b,"displayName","Player"),m(b,"propTypes",i.propTypes),m(b,"defaultProps",i.defaultProps)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var i=o?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=e[l]}n.default=e,t&&t.set(e,n);return n}(n(0));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t diff --git a/resources/[EGRP-Phone]/npwd/LICENSE b/resources/[EGRP-Phone]/npwd/LICENSE index 7fb096c27..26f16be17 100644 --- a/resources/[EGRP-Phone]/npwd/LICENSE +++ b/resources/[EGRP-Phone]/npwd/LICENSE @@ -1,97 +1,14 @@ -Copyright (c) Kidz, ItsChip, ROCKY_southpaw, Kire and TasoOneAsia +Copyright (C) 2021 Project Error -All rights reserved. -By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. -Section 1 – Definitions. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. -Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. -Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. -BY-NC-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. -Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. -Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. -Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. -License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution, NonCommercial, and ShareAlike. -Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. -Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. -Licensor means the individual(s) or entity(ies) granting rights under this Public License. -NonCommercial means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange. -Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. -Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. -You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. -Section 2 – Scope. - -License grant. -Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: -reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only; and -produce, reproduce, and Share Adapted Material for NonCommercial purposes only. -Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. -Term. The term of this Public License is specified in Section 6(a). -Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. -Downstream recipients. -Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. -Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. -No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. -No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). -Other rights. - -Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. -Patent and trademark rights are not licensed under this Public License. -To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial purposes. -Section 3 – License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the following conditions. - -Attribution. - -If You Share the Licensed Material (including in modified form), You must: - -retain the following if it is supplied by the Licensor with the Licensed Material: -identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); -a copyright notice; -a notice that refers to this Public License; -a notice that refers to the disclaimer of warranties; -a URI or hyperlink to the Licensed Material to the extent reasonably practicable; -indicate if You modified the Licensed Material and retain an indication of any previous modifications; and -indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. -You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. -If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. -ShareAlike. -In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. - -The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-NC-SA Compatible License. -You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. -You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. -Section 4 – Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: - -for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial purposes only; -if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and -You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. -For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. -Section 5 – Disclaimer of Warranties and Limitation of Liability. - -Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. -To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. -The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. -Section 6 – Term and Termination. - -This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. -Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: - -automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or -upon express reinstatement by the Licensor. -For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. -For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. -Sections 1, 5, 6, 7, and 8 survive termination of this Public License. -Section 7 – Other Terms and Conditions. - -The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. -Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. -Section 8 – Interpretation. - -For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. -To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. -No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. -Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. +You should have received a copy of the GNU General Public License +along with this program. If not, see . \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/README.md b/resources/[EGRP-Phone]/npwd/README.md index 2835d3f59..f59ae4fe5 100644 --- a/resources/[EGRP-Phone]/npwd/README.md +++ b/resources/[EGRP-Phone]/npwd/README.md @@ -14,7 +14,7 @@ -# NPWD Release (Current version 1.0) +# NPWD Release (Current version 1.x.x) **New-Phone-Who-Dis** (*NPWD*) is a standalone and open source phone resource created for use in [*FiveM*](https://fivem.net/). It was built from the ground up by some of the previous contributors and maintainers of the Reignited GCPhone project, who found @@ -24,8 +24,8 @@ the Vue 2 codebase littered with technical debt and legacy code that hindered co by the community. Maintainability has been our utmost priority as well. It has been designed to be as developer accessible as possible, with included utilities and tools to ease and streamline the phone development process. -**Important Note:** This release(v1.0) should be considered a beta release and may experience edge case issues -with some frameworks and environments. Please ensure you report these issues as described below. +**Important Note:** As this resource is still in a beta phase, you may experience edge case issues +with some frameworks and environments that we didn't account for. Please ensure you report these issues [here](https://github.com/project-error/npwd/issues/new?assignees=&labels=New+Issue&template=bug-report.yml&title=Bug%3A+%3Cshort+description%3E) or within the [Discord](https://discord.com/invite/HYwBjTbAY5). ## Standalone Information & Installation diff --git a/resources/[EGRP-Phone]/npwd/config.json b/resources/[EGRP-Phone]/npwd/config.json index 5a39a0c71..fdb792bc7 100644 --- a/resources/[EGRP-Phone]/npwd/config.json +++ b/resources/[EGRP-Phone]/npwd/config.json @@ -26,6 +26,20 @@ "useAuthorization": true, "returnedDataIndexes": ["data", "link"] }, + "imageSafety": { + "filterUnsafeImageUrls": true, + "embedUnsafeImages": false, + "embedUrl": "https://i.example.com/embed", + "safeImageUrls": [ + "imgur.com", + "file.glass", + "dropbox.com", + "tenor.com", + "discord.com", + "discordapp.com", + "wikipedia.org" + ] + }, "twitter": { "showNotifications": true, "generateProfileNameFromUsers": true, @@ -44,7 +58,7 @@ "allowEditableProfileName": true }, "debug": { - "level": "silly", + "level": "error", "enabled": false, "sentryEnabled": true } diff --git a/resources/[EGRP-Phone]/npwd/fxmanifest.lua b/resources/[EGRP-Phone]/npwd/fxmanifest.lua index 17183b787..49a230840 100644 --- a/resources/[EGRP-Phone]/npwd/fxmanifest.lua +++ b/resources/[EGRP-Phone]/npwd/fxmanifest.lua @@ -9,6 +9,9 @@ client_scripts { } server_script { + -- This is a file that lives purely in source code and isn't compiled alongside + -- rest of the release. It's used to detect whether a user can read or not. + 'build-detector.js', 'resources/dist/server/*.server.js' } diff --git a/resources/[EGRP-Phone]/npwd/import.sql b/resources/[EGRP-Phone]/npwd/import.sql index ac1cb742c..d504c2c63 100644 --- a/resources/[EGRP-Phone]/npwd/import.sql +++ b/resources/[EGRP-Phone]/npwd/import.sql @@ -2,6 +2,11 @@ # or if it already exists in the users table # ALTER TABLE `users` ADD COLUMN `phone_number` VARCHAR(20) DEFAULT NULL; +# if you already have the npwd_message table without `is_embed` and `embed`, run this query in your sql console +# ALTER TABLE npwd_messages ADD COLUMN `is_embed` tinyint(4) NOT NULL DEFAULT 0; +# ALTER TABLE npwd_messages ADD COLUMN `embed` varchar(512) NOT NULL DEFAULT ''; + + CREATE TABLE IF NOT EXISTS `npwd_phone_contacts` ( `id` int(11) NOT NULL AUTO_INCREMENT, @@ -138,6 +143,8 @@ CREATE TABLE IF NOT EXISTS `npwd_messages` `updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP, `visible` tinyint(4) NOT NULL DEFAULT 1, `author` varchar(255) NOT NULL, + `is_embed` tinyint(4) NOT NULL default 0, + `embed` varchar(512) NOT NULL DEFAULT '', PRIMARY KEY (id), INDEX `user_identifier` (`user_identifier`) ); diff --git a/resources/[EGRP-Phone]/npwd/resources/dist/client/252c54e8f1cf29a15d2a.client.js b/resources/[EGRP-Phone]/npwd/resources/dist/client/252c54e8f1cf29a15d2a.client.js deleted file mode 100644 index 959859c45..000000000 --- a/resources/[EGRP-Phone]/npwd/resources/dist/client/252c54e8f1cf29a15d2a.client.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.verifyExportArgType=t.onNpwdEvent=t.RegisterNuiProxy=t.playerLoaded=t.RegisterNuiCB=void 0;const o=n(4),s=n(3);t.default=class{constructor(e){this._defaultSettings={promiseTimeout:15e3},this.setSettings(e)}setSettings(e){this._settings=Object.assign(Object.assign({},this._defaultSettings),e)}emitNetPromise(e,...t){return new Promise((n,i)=>{let s=!1;setTimeout(()=>{s=!0,i(`${e} has timed out after ${this._settings.promiseTimeout} ms`)},this._settings.promiseTimeout);const a=(0,o.uuidv4)(),r=`${e}:${a}`;emitNet(e,r,...t);const l=e=>{removeEventListener(r,l),s||n(e)};onNet(r,l)})}};t.RegisterNuiCB=(e,t)=>{RegisterNuiCallbackType(e),on("__cfx_nui:"+e,t)};t.playerLoaded=()=>new Promise(t=>{const n=setInterval(()=>{e.isPlayerLoaded&&t(n)},50)}).then(e=>clearInterval(e));t.RegisterNuiProxy=n=>{RegisterNuiCallbackType(n),on("__cfx_nui:"+n,(o,a)=>i(void 0,void 0,void 0,(function*(){e.isPlayerLoaded||(yield(0,t.playerLoaded)());try{const e=yield s.ClUtils.emitNetPromise(n,o);a(e)}catch(e){console.error("Error encountered while listening to resp. Error:",e),a({status:"error"})}})))};t.onNpwdEvent=(e,t)=>{onNet(e,t)};t.verifyExportArgType=(e,t,n)=>{const i=typeof t;if(!n.includes(i))throw new Error(`Export ${e} was called with incorrect argument type (${n.join(", ")}. Passed: ${t}, Type: ${i})`)}}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendMatchEvent=t.sendCameraEvent=t.sendContactsEvent=t.sendMarketplaceEvent=t.sendNotesEvent=t.sendMessageEvent=t.sendTwitterMessage=t.sendMessage=void 0;const o=i(n(13));function s(e,t,n){return SendNUIMessage({app:e,method:t,data:n})}t.sendMessage=s,t.sendTwitterMessage=function(e,t={}){return s(o.default.TWITTER,e,t)},t.sendMessageEvent=function(e,t={}){return s(o.default.MESSAGES,e,t)},t.sendNotesEvent=function(e,t={}){return s(o.default.NOTES,e,t)},t.sendMarketplaceEvent=function(e,t={}){s(o.default.MARKETPLACE,e,t)},t.sendContactsEvent=function(e,t={}){s(o.default.CONTACTS,e,t)},t.sendCameraEvent=function(e,t={}){s(o.default.CAMERA,e,t)},t.sendMatchEvent=function(e,t={}){return s(o.default.MATCH,e,t)}},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ClUtils=t.config=void 0;const o=i(n(0));t.config=JSON.parse(LoadResourceFile(GetCurrentResourceName(),"config.json")),n(7),n(15),n(17),n(18),n(20),n(21),n(23),n(11),n(27),n(8),n(29),t.ClUtils=new o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=t.Delay=void 0;t.Delay=e=>new Promise(t=>setTimeout(t,e));t.uuidv4=()=>{let e="";for(let t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorStringKeys=t.PhoneEvents=t.PHONE_NUMBER_REGEX=void 0,t.PHONE_NUMBER_REGEX=/^([0-9]{3}-[0-9]{4})|([0-9]{7})$/,function(e){e.OPEN_APP="npwd:openApp",e.OPEN_PHONE="npwd:open",e.CLOSE_PHONE="npwd:close",e.UNLOAD_CHARACTER="npwd:unloadCharacter",e.SET_VISIBILITY="npwd:setVisibility",e.ADD_SNACKBAR_ALERT="npwd:setSnackarAlert",e.SET_NUMBER="npwd:setNumber",e.SET_PHONE_READY="npwd:phoneReady",e.SET_CONFIG="npwd:setPhoneConfig",e.SET_TIME="npwd:setGameTime",e.SEND_CREDENTIALS="npwd:sendCredentials",e.FETCH_CREDENTIALS="npwd:getCredentials",e.TOGGLE_KEYS="npwd:toggleAllControls",e.SET_PLAYER_LOADED="npwd:setPlayerLoaded"}(t.PhoneEvents||(t.PhoneEvents={})),function(e){e.SERVER_ERROR="GENERAL_SERVER_ERROR",e.DELETE_FAILED="DELETE_FAILED",e.ADD_FAILED="ADD_FAILED",e.UPDATE_FAILED="UPDATED_FAILED",e.FETCH_FAILED="FETCH_FAILED"}(t.ErrorStringKeys||(t.ErrorStringKeys={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationService=void 0;const i=n(14);t.animationService=new i.AnimationService},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.hidePhone=t.showPhone=void 0;const o=n(2),s=n(5),a=n(3),r=n(6),l=n(0);e.isPhoneOpen=!1,e.isPhoneDisabled=!1,e.isPlayerLoaded=!1;const E=e.exports;onNet(s.PhoneEvents.SET_PLAYER_LOADED,t=>{e.isPlayerLoaded=t,t||(0,o.sendMessage)("PHONE",s.PhoneEvents.UNLOAD_CHARACTER,{})}),RegisterKeyMapping(a.config.general.toggleCommand,"Toggle Phone","keyboard",a.config.general.toggleKey),setTimeout(()=>{emit("chat:addSuggestion",""+a.config.general.toggleCommand,"Toggle displaying your cellphone")},1e3);t.showPhone=()=>i(void 0,void 0,void 0,(function*(){e.isPhoneOpen=!0;const t=(()=>{let e=GetClockHours(),t=GetClockMinutes();return e<10&&(e="0"+e),t<10&&(t="0"+t),`${e}:${t}`})();yield r.animationService.openPhone(),emitNet(s.PhoneEvents.FETCH_CREDENTIALS),SetCursorLocation(.9,.922),(0,o.sendMessage)("PHONE",s.PhoneEvents.SET_VISIBILITY,!0),(0,o.sendMessage)("PHONE",s.PhoneEvents.SET_TIME,t),SetNuiFocus(!0,!0),SetNuiFocusKeepInput(!0),emit("npwd:disableControlActions",!0)}));t.hidePhone=()=>i(void 0,void 0,void 0,(function*(){e.isPhoneOpen=!1,(0,o.sendMessage)("PHONE",s.PhoneEvents.SET_VISIBILITY,!1),yield r.animationService.closePhone(),SetNuiFocus(!1,!1),SetNuiFocusKeepInput(!1),emit("npwd:disableControlActions",!1)})),RegisterCommand(a.config.general.toggleCommand,()=>i(void 0,void 0,void 0,(function*(){e.isPhoneDisabled||(yield function(){return i(this,void 0,void 0,(function*(){if(a.config.PhoneAsItem.enabled){if(!(yield i(void 0,void 0,void 0,(function*(){const e=yield Promise.resolve(E[a.config.PhoneAsItem.exportResource][a.config.PhoneAsItem.exportFunction]());if("number"!=typeof e&&"boolean"!=typeof e)throw new Error("You must return either a boolean or number from your export function");return!!e}))))return}if(e.isPhoneOpen)return yield(0,t.hidePhone)();yield(0,t.showPhone)()}))}())})),!1),RegisterCommand("phone:restart",()=>i(void 0,void 0,void 0,(function*(){yield(0,t.hidePhone)(),(0,o.sendMessage)("PHONE","phoneRestart",{})})),!1);onNet(s.PhoneEvents.SEND_CREDENTIALS,e=>{(0,o.sendMessage)("SIMCARD",s.PhoneEvents.SET_NUMBER,e)}),on("onResourceStop",e=>{e===GetCurrentResourceName()&&((0,o.sendMessage)("PHONE",s.PhoneEvents.SET_VISIBILITY,!1),SetNuiFocus(!1,!1),r.animationService.endPhoneCall(),r.animationService.closePhone(),ClearPedTasks(PlayerPedId()))}),(0,l.RegisterNuiCB)(s.PhoneEvents.CLOSE_PHONE,(e,n)=>i(void 0,void 0,void 0,(function*(){yield(0,t.hidePhone)(),n()}))),(0,l.RegisterNuiCB)(s.PhoneEvents.TOGGLE_KEYS,({keepGameFocus:t},n)=>i(void 0,void 0,void 0,(function*(){e.isPhoneOpen&&SetNuiFocusKeepInput(t),n({})})))}).call(this,n(1))},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.removePhoneProp=t.newPhoneProp=void 0;const o=n(4);let s=0,a=!1;function r(){0!=s&&(DeleteEntity(s),s=0,a=!1)}t.newPhoneProp=()=>i(void 0,void 0,void 0,(function*(){if(r(),a)a&&console.log("prop already created");else{for(RequestModel("prop_amb_phone");!HasModelLoaded("prop_amb_phone");)yield(0,o.Delay)(1);const e=PlayerPedId(),[t,n,i]=GetEntityCoords(e,!0);s=CreateObject(GetHashKey("prop_amb_phone"),t,n,i+.2,!0,!0,!0);const r=GetPedBoneIndex(e,28422);AttachEntityToEntity(s,e,r,0,0,0,0,0,-0,!0,!0,!1,!0,1,!0),a=!0}})),t.removePhoneProp=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactEvents=t.ContactsDatabaseLimits=void 0,function(e){e[e.avatar=255]="avatar",e[e.number=20]="number",e[e.display=255]="display"}(t.ContactsDatabaseLimits||(t.ContactsDatabaseLimits={})),function(e){e.GET_CONTACTS="npwd:getContacts",e.ADD_CONTACT="npwd:addContacts",e.UPDATE_CONTACT="npwd:updateContact",e.DELETE_CONTACT="npwd:deleteContact",e.ADD_CONTACT_EXPORT="npwd:addContactExport"}(t.ContactEvents||(t.ContactEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotesEvents=void 0,function(e){e.ADD_NOTE="npwd:addNote",e.FETCH_ALL_NOTES="npwd:fetchAllNotes",e.DELETE_NOTE="npwd:deleteNote",e.UPDATE_NOTE="npwd:updateNote",e.ADD_NOTE_EXPORT="npwd:addNoteExport"}(t.NotesEvents||(t.NotesEvents={}))},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeCallHandler=void 0;const o=n(12),s=n(25),a=n(6),r=n(26),l=n(0),E=n(3),c=new s.CallService;t.initializeCallHandler=(e,t)=>i(void 0,void 0,void 0,(function*(){if(!c.isInCall())try{const n=yield E.ClUtils.emitNetPromise(o.CallEvents.INITIALIZE_CALL,e);if(a.animationService.startPhoneCall(),"ok"!==n.status)return t(n);const{transmitter:i,isTransmitter:s,receiver:r,isUnavailable:l}=n.data;c.handleStartCall(i,r,s,l),t({status:"ok"})}catch(e){console.error(e),t({status:"error",errorMsg:"CLIENT_TIMED_OUT"})}})),(0,l.RegisterNuiCB)(o.CallEvents.INITIALIZE_CALL,t.initializeCallHandler),(0,r.onNetTyped)(o.CallEvents.START_CALL,e=>{const{transmitter:t,isTransmitter:n,receiver:i,isUnavailable:o}=e;c.handleStartCall(t,i,n,o)}),(0,l.RegisterNuiCB)(o.CallEvents.ACCEPT_CALL,(e,t)=>{a.animationService.startPhoneCall(),(0,r.emitNetTyped)(o.CallEvents.ACCEPT_CALL,e),t({})}),(0,r.onNetTyped)(o.CallEvents.WAS_ACCEPTED,e=>{c.handleCallAccepted(e)}),(0,l.RegisterNuiCB)(o.CallEvents.REJECTED,(e,t)=>{(0,r.emitNetTyped)(o.CallEvents.REJECTED,e),t({})}),onNet(o.CallEvents.WAS_REJECTED,()=>i(void 0,void 0,void 0,(function*(){c.handleRejectCall(),a.animationService.endPhoneCall()}))),(0,l.RegisterNuiCB)(o.CallEvents.END_CALL,(e,t)=>i(void 0,void 0,void 0,(function*(){try{const n=yield E.ClUtils.emitNetPromise(o.CallEvents.END_CALL,e);if("error"===n.status)return console.error(n.errorMsg);c.handleEndCall(),t({})}catch(e){console.error(e),t({status:"error",errorMsg:"CLIENT_TIMED_OUT"})}a.animationService.endPhoneCall()}))),onNet(o.CallEvents.WAS_ENDED,()=>{c.handleEndCall(),a.animationService.endPhoneCall()}),(0,l.RegisterNuiProxy)(o.CallEvents.FETCH_CALLS),onNet(o.CallEvents.SEND_ALERT,e=>{c.handleSendAlert(e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallEvents=t.CallRejectReasons=void 0,function(e){e[e.DECLINED=0]="DECLINED",e[e.BUSY_LINE=1]="BUSY_LINE"}(t.CallRejectReasons||(t.CallRejectReasons={})),function(e){e.INITIALIZE_CALL="npwd:beginCall",e.START_CALL="npwd:startCall",e.ACCEPT_CALL="npwd:acceptCall",e.END_CALL="npwd:endCall",e.WAS_ENDED="npwd:callEnded",e.WAS_ACCEPTED="npwd:callAccepted",e.REJECTED="npwd:rejectCall",e.WAS_REJECTED="npwd:callRejected",e.FETCH_CALLS="npwd:fetchCalls",e.SET_CALLER="npwd:setCaller",e.SET_CALL_MODAL="npwd:callModal",e.SEND_ALERT="npwd:callSetAlert"}(t.CallEvents||(t.CallEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TWITTER:"TWITTER",MATCH:"MATCH",MESSAGES:"MESSAGES",NOTES:"NOTES",MARKETPLACE:"MARKETPLACE",CONTACTS:"CONTACTS",CAMERA:"CAMERA"}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationService=t.AnimationState=void 0;const o=n(8),s=n(4);var a;!function(e){e[e.ON_CALL=0]="ON_CALL",e[e.PHONE_OPEN=1]="PHONE_OPEN",e[e.ON_CAMERA=2]="ON_CAMERA"}(a=t.AnimationState||(t.AnimationState={}));t.AnimationService=class{constructor(){this.onCall=!1,this.phoneOpen=!1,this.onCamera=!1}createAnimationInterval(){this.animationInterval=setInterval(()=>i(this,void 0,void 0,(function*(){const e=PlayerPedId();this.onCall?this.handleCallAnimation(e):this.phoneOpen&&!this.onCamera&&this.handleOpenAnimation(e)})),250)}setPhoneState(e,t){switch(e){case a.ON_CALL:this.onCall=t;break;case a.PHONE_OPEN:this.phoneOpen=t;break;case a.ON_CAMERA:this.onCamera=t}this.onCall||this.phoneOpen?this.animationInterval||this.createAnimationInterval():this.animationInterval&&(clearInterval(this.animationInterval),this.animationInterval=null)}handleCallAnimation(e){IsPedInAnyVehicle(e,!0)?this.handleOnCallInVehicle(e):this.handleOnCallNormal(e)}handleOpenAnimation(e){IsPedInAnyVehicle(e,!0)?this.handleOpenVehicleAnim(e):this.handleOpenNormalAnim(e)}handleCallEndAnimation(e){IsPedInAnyVehicle(e,!0)?this.handleCallEndVehicleAnim(e):this.handleCallEndNormalAnim(e)}handleCloseAnimation(e){IsPedInAnyVehicle(e,!0)?this.handleCloseVehicleAnim(e):this.handleCloseNormalAnim(e)}openPhone(){return i(this,void 0,void 0,(function*(){(0,o.newPhoneProp)(),this.onCall||this.handleOpenAnimation(PlayerPedId()),this.setPhoneState(a.PHONE_OPEN,!0)}))}closePhone(){return i(this,void 0,void 0,(function*(){(0,o.removePhoneProp)(),this.setPhoneState(a.PHONE_OPEN,!1),this.onCall||this.handleCloseAnimation(PlayerPedId())}))}startPhoneCall(){return i(this,void 0,void 0,(function*(){this.handleCallAnimation(PlayerPedId()),this.setPhoneState(a.ON_CALL,!0)}))}endPhoneCall(){return i(this,void 0,void 0,(function*(){this.handleCallEndAnimation(PlayerPedId()),this.setPhoneState(a.ON_CALL,!1)}))}openCamera(){return i(this,void 0,void 0,(function*(){this.setPhoneState(a.ON_CAMERA,!0)}))}closeCamera(){return i(this,void 0,void 0,(function*(){this.setPhoneState(a.ON_CAMERA,!1)}))}loadAnimDict(e){return i(this,void 0,void 0,(function*(){for(RequestAnimDict(e);!HasAnimDictLoaded(e);)yield(0,s.Delay)(100)}))}handleOpenVehicleAnim(e){return i(this,void 0,void 0,(function*(){const t="anim@cellphone@in_car@ps",n="cellphone_text_in";yield this.loadAnimDict(t),IsEntityPlayingAnim(e,t,n,3)||(SetCurrentPedWeapon(e,2725352035,!0),TaskPlayAnim(e,t,n,7,-1,-1,50,0,!1,!1,!1))}))}handleOpenNormalAnim(e){return i(this,void 0,void 0,(function*(){const t="cellphone@",n="cellphone_text_in";yield this.loadAnimDict(t),IsEntityPlayingAnim(e,t,n,3)||(SetCurrentPedWeapon(e,2725352035,!0),TaskPlayAnim(e,t,n,8,-1,-1,50,0,!1,!1,!1))}))}handleCloseVehicleAnim(e){return i(this,void 0,void 0,(function*(){const t="anim@cellphone@in_car@ps";StopAnimTask(e,t,"cellphone_text_in",1),StopAnimTask(e,t,"cellphone_call_to_text",1),(0,o.removePhoneProp)()}))}handleCloseNormalAnim(e){return i(this,void 0,void 0,(function*(){const t="cellphone@",n="cellphone_text_out";StopAnimTask(e,t,"cellphone_text_in",1),yield(0,s.Delay)(100),yield this.loadAnimDict(t),TaskPlayAnim(e,t,n,7,-1,-1,50,0,!1,!1,!1),yield(0,s.Delay)(200),StopAnimTask(e,t,n,1),(0,o.removePhoneProp)()}))}handleOnCallInVehicle(e){return i(this,void 0,void 0,(function*(){const t="anim@cellphone@in_car@ps",n="cellphone_call_listen_base";IsEntityPlayingAnim(e,t,n,3)||(yield this.loadAnimDict(t),TaskPlayAnim(e,t,n,3,3,-1,49,0,!1,!1,!1))}))}handleOnCallNormal(e){return i(this,void 0,void 0,(function*(){const t="cellphone@",n="cellphone_call_listen_base";IsEntityPlayingAnim(e,t,n,3)||(yield this.loadAnimDict(t),TaskPlayAnim(e,t,n,3,3,-1,49,0,!1,!1,!1))}))}handleCallEndVehicleAnim(e){return i(this,void 0,void 0,(function*(){const t="anim@cellphone@in_car@ps";StopAnimTask(e,t,"cellphone_call_listen_base",1),yield this.loadAnimDict(t),TaskPlayAnim(e,t,"cellphone_call_to_text",1.3,5,-1,50,0,!1,!1,!1)}))}handleCallEndNormalAnim(e){return i(this,void 0,void 0,(function*(){IsEntityPlayingAnim(e,"cellphone@","cellphone_call_listen_base",49)&&(yield this.loadAnimDict("cellphone@"),TaskPlayAnim(e,"cellphone@","cellphone_call_to_text",2.5,8,-1,50,0,!1,!1,!1))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16),o=n(2),s=n(0);(0,s.RegisterNuiProxy)(i.TwitterEvents.GET_OR_CREATE_PROFILE),(0,s.RegisterNuiProxy)(i.TwitterEvents.DELETE_TWEET),(0,s.RegisterNuiProxy)(i.TwitterEvents.UPDATE_PROFILE),(0,s.RegisterNuiProxy)(i.TwitterEvents.CREATE_PROFILE),(0,s.RegisterNuiProxy)(i.TwitterEvents.FETCH_TWEETS),(0,s.RegisterNuiProxy)(i.TwitterEvents.CREATE_TWEET),(0,s.RegisterNuiProxy)(i.TwitterEvents.FETCH_TWEETS_FILTERED),(0,s.RegisterNuiProxy)(i.TwitterEvents.TOGGLE_LIKE),(0,s.RegisterNuiProxy)(i.TwitterEvents.REPORT),(0,s.RegisterNuiProxy)(i.TwitterEvents.RETWEET),onNet(i.TwitterEvents.CREATE_TWEET_BROADCAST,e=>{(0,o.sendTwitterMessage)(i.TwitterEvents.CREATE_TWEET_BROADCAST,e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TwitterEvents=void 0,function(e){e.FETCH_TWEETS="npwd:fetchTweets",e.FETCH_TWEETS_FILTERED="npwd:fetchTweetsFiltered",e.CREATE_PROFILE="npwd:createTwitterProfile",e.GET_OR_CREATE_PROFILE="npwd:getOrCreateTwitterProfile",e.UPDATE_PROFILE="npwd:updateTwitterProfile",e.CREATE_TWEET="npwd:createTweet",e.CREATE_TWEET_BROADCAST="createTweetBroadcast",e.DELETE_TWEET="npwd:deleteTweet",e.TOGGLE_LIKE="npwd:toggleLike",e.RETWEET="npwd:retweet",e.REPORT="npwd:reportTweet"}(t.TwitterEvents||(t.TwitterEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9),o=n(0);(0,o.RegisterNuiProxy)(i.ContactEvents.GET_CONTACTS),(0,o.RegisterNuiProxy)(i.ContactEvents.ADD_CONTACT),(0,o.RegisterNuiProxy)(i.ContactEvents.DELETE_CONTACT),(0,o.RegisterNuiProxy)(i.ContactEvents.UPDATE_CONTACT)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(19),o=n(0),s=n(2);(0,o.RegisterNuiProxy)(i.MarketplaceEvents.FETCH_LISTING),(0,o.RegisterNuiProxy)(i.MarketplaceEvents.ADD_LISTING),(0,o.RegisterNuiProxy)(i.MarketplaceEvents.DELETE_LISTING),(0,o.RegisterNuiProxy)(i.MarketplaceEvents.REPORT_LISTING),onNet(i.MarketplaceEvents.BROADCAST_ADD,e=>{(0,s.sendMarketplaceEvent)(i.MarketplaceEvents.BROADCAST_ADD,e)}),onNet(i.MarketplaceEvents.BROADCAST_DELETE,e=>{(0,s.sendMarketplaceEvent)(i.MarketplaceEvents.BROADCAST_DELETE,e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarketplaceEvents=t.ListingTypeResp=t.MarketplaceDatabaseLimits=void 0,function(e){e[e.title=255]="title",e[e.description=255]="description",e[e.url=255]="url"}(t.MarketplaceDatabaseLimits||(t.MarketplaceDatabaseLimits={})),function(e){e.DUPLICATE="duplicate"}(t.ListingTypeResp||(t.ListingTypeResp={})),function(e){e.ADD_LISTING="npwd:addListing",e.FETCH_LISTING="npwd:fetchAllListings",e.DELETE_LISTING="npwd:marketplaceDeleteListing",e.DELETE_LISTINGS_ON_DROP="npwd:marketplaceDeleteListingsOnDrop",e.REPORT_LISTING="npwd:reportListing",e.BROADCAST_ADD="npwd:sendMarketplaceBroadcastAdd",e.BROADCAST_DELETE="npwd:sendMarketplaceBroadcastDelete"}(t.MarketplaceEvents||(t.MarketplaceEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(10),o=n(0);(0,o.RegisterNuiProxy)(i.NotesEvents.ADD_NOTE),(0,o.RegisterNuiProxy)(i.NotesEvents.FETCH_ALL_NOTES),(0,o.RegisterNuiProxy)(i.NotesEvents.UPDATE_NOTE),(0,o.RegisterNuiProxy)(i.NotesEvents.DELETE_NOTE)},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(22),s=n(4),a=n(2),r=n(5),l=n(3),E=n(6),c=n(0),d=GetConvar("SCREENSHOT_BASIC_TOKEN","none"),u=e.exports;let _=!1;function C(){SetNuiFocus(!0,!0),(0,a.sendMessage)("PHONE",r.PhoneEvents.SET_VISIBILITY,!0)}(0,c.RegisterNuiCB)(o.PhotoEvents.TAKE_PHOTO,(e,t)=>i(void 0,void 0,void 0,(function*(){yield E.animationService.openCamera(),emit("npwd:disableControlActions",!1);let e=!1;for(CreateMobilePhone(1),CellCamActivate(!0,!0),SetNuiFocus(!1,!1),(0,a.sendMessage)("PHONE",r.PhoneEvents.SET_VISIBILITY,!1),SetNuiFocus(!1,!1),_=!0,emit(o.PhotoEvents.NPWD_PHOTO_MODE_STARTED);_;){if(yield(0,s.Delay)(0),IsControlJustPressed(1,27))e=!e,n=e,Citizen.invokeNative("0x2491A93618B7D838",n);else if(IsControlJustPressed(1,176)){if("none"!==d){const e=yield h();t(e);break}console.error("You may be trying to take a photo, but your token is not setup for upload! See NPWD Docs for more info!")}else if(IsControlJustPressed(1,194)){yield p();break}BeginTextCommandDisplayHelp("TWOSTRINGS"),AddTextComponentString("Exit Camera Mode: ~INPUT_CELLPHONE_CANCEL~"),AddTextComponentString("Toggle Front/Back: ~INPUT_PHONE~"),EndTextCommandDisplayHelp(0,!0,!1,-1)}var n;ClearHelp(!0),emit(o.PhotoEvents.NPWD_PHOTO_MODE_ENDED),emit("npwd:disableControlActions",!0),yield E.animationService.closeCamera()})));const h=()=>i(void 0,void 0,void 0,(function*(){ClearHelp(!0),yield(0,s.Delay)(0);const e=yield T();return DestroyMobilePhone(),CellCamActivate(!1,!1),C(),E.animationService.openPhone(),emit("npwd:disableControlActions",!0),yield(0,s.Delay)(200),_=!1,e})),p=()=>i(void 0,void 0,void 0,(function*(){(0,a.sendCameraEvent)(o.PhotoEvents.CAMERA_EXITED),ClearHelp(!0),yield E.animationService.closeCamera(),emit("npwd:disableControlActions",!0),DestroyMobilePhone(),CellCamActivate(!1,!1),C(),_=!1})),T=()=>new Promise((e,t)=>{if("none"===d&&l.config.images.useAuthorization)return console.error("Screenshot basic token not found. Please set in server.cfg");u["screenshot-basic"].requestScreenshotUpload(l.config.images.url,l.config.images.type,{encoding:l.config.images.imageEncoding,headers:{authorization:l.config.images.useAuthorization?`${l.config.images.authorizationPrefix} ${d}`:void 0,"content-type":l.config.images.contentType}},n=>i(void 0,void 0,void 0,(function*(){try{let t=JSON.parse(n);for(const e of l.config.images.returnedDataIndexes)t=t[e];const i=yield l.ClUtils.emitNetPromise(o.PhotoEvents.UPLOAD_PHOTO,t);e(i)}catch(e){t(e.message)}})))});(0,c.RegisterNuiProxy)(o.PhotoEvents.FETCH_PHOTOS),(0,c.RegisterNuiProxy)(o.PhotoEvents.DELETE_PHOTO)}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoEvents=void 0,function(e){e.TAKE_PHOTO="npwd:TakePhoto",e.CAMERA_EXITED="npwd:cameraExited",e.NPWD_PHOTO_MODE_STARTED="npwd:PhotoModeStarted",e.NPWD_PHOTO_MODE_ENDED="npwd:PhotoModeEnded",e.TAKE_PHOTO_SUCCESS="npwd:TakePhotoSuccess",e.UPLOAD_PHOTO="npwd:UploadPhoto",e.FETCH_PHOTOS="npwd:FetchPhotos",e.DELETE_PHOTO="npwd:deletePhoto"}(t.PhotoEvents||(t.PhotoEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(24),o=n(2),s=n(0);(0,s.RegisterNuiProxy)(i.MessageEvents.FETCH_MESSAGE_CONVERSATIONS),(0,s.RegisterNuiProxy)(i.MessageEvents.DELETE_MESSAGE),(0,s.RegisterNuiProxy)(i.MessageEvents.FETCH_MESSAGES),(0,s.RegisterNuiProxy)(i.MessageEvents.CREATE_MESSAGE_CONVERSATION),(0,s.RegisterNuiProxy)(i.MessageEvents.DELETE_CONVERSATION),(0,s.RegisterNuiProxy)(i.MessageEvents.SEND_MESSAGE),onNet(i.MessageEvents.SEND_MESSAGE_SUCCESS,e=>{(0,o.sendMessageEvent)(i.MessageEvents.SEND_MESSAGE_SUCCESS,e)}),onNet(i.MessageEvents.CREATE_MESSAGE_BROADCAST,e=>{(0,o.sendMessageEvent)(i.MessageEvents.CREATE_MESSAGE_BROADCAST,e)}),onNet(i.MessageEvents.CREATE_MESSAGE_CONVERSATION_SUCCESS,e=>{(0,o.sendMessageEvent)(i.MessageEvents.CREATE_MESSAGE_CONVERSATION_SUCCESS,e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageEvents=void 0,function(e){e.FETCH_MESSAGE_CONVERSATIONS="npwd:fetchMessageGroups",e.FETCH_MESSAGE_GROUPS_SUCCESS="npwd:fetchMessageGroupsSuccess",e.FETCH_MESSAGE_GROUPS_FAILED="npwd:fetchMessageGroupsFailed",e.CREATE_MESSAGE_CONVERSATION="npwd:createMessageGroup",e.CREATE_MESSAGE_CONVERSATION_SUCCESS="npwd:createMessageConversationSuccess",e.CREATE_MESSAGE_GROUP_SUCCESS="npwd:createMessageGroupSuccess",e.CREATE_MESSAGE_GROUP_FAILED="npwd:createMessageGroupFailed",e.SEND_MESSAGE="npwd:sendMessage",e.SEND_MESSAGE_SUCCESS="npwd:sendMessageSuccess",e.SEND_MESSAGE_FAILED="npwd:sendMessageFailed",e.DELETE_MESSAGE="npwd:deleteMessage",e.FETCH_MESSAGES="npwd:fetchMessages",e.FETCH_MESSAGES_SUCCESS="npwd:fetchMessagesSuccess",e.FETCH_MESSAGES_FAILED="npwd:fetchMessagesFailed",e.FETCH_INITIAL_MESSAGES="npwd:fetchInitialMessages",e.ACTION_RESULT="npwd:setMessagesAlert",e.CREATE_MESSAGE_BROADCAST="createMessagesBroadcast",e.SET_MESSAGE_READ="npwd:setReadMessages",e.DELETE_CONVERSATION="nwpd:deleteConversation"}(t.MessageEvents||(t.MessageEvents={}))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.CallService=void 0;const i=n(12),o=e.exports;class s{constructor(){this.currentCall=0}static sendCallAction(e,t){SendNUIMessage({app:"CALL",method:e,data:t})}isInCall(){return 0!==this.currentCall}openCallModal(e){s.sendCallAction(i.CallEvents.SET_CALL_MODAL,e)}handleRejectCall(){this.isInCall()||(this.openCallModal(!1),s.sendCallAction(i.CallEvents.SET_CALLER,null))}handleStartCall(e,t,n,o){if(this.isInCall())return emitNet(i.CallEvents.REJECTED,e,i.CallRejectReasons.BUSY_LINE);this.openCallModal(!0),SendNUIMessage({app:"CALL",method:i.CallEvents.SET_CALLER,data:{active:!0,transmitter:e,receiver:t,isTransmitter:n,accepted:!1,isUnavailable:o}})}handleCallAccepted(e){this.currentCall=e.channelId,o["pma-voice"].setCallChannel(e.channelId),s.sendCallAction(i.CallEvents.SET_CALLER,e)}handleEndCall(){this.currentCall=0,o["pma-voice"].setCallChannel(0),this.openCallModal(!1),s.sendCallAction(i.CallEvents.SET_CALLER,null)}handleSendAlert(e){SendNUIMessage({app:"DIALER",method:i.CallEvents.SEND_ALERT,data:e})}}t.CallService=s}).call(this,n(1))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.emitNetTyped=t.onNetTyped=t.clean=t.getSource=void 0;t.getSource=()=>e.source;t.clean=e=>e?e.replace(/[^0-9a-z]/gi,""):e;t.onNetTyped=(e,t)=>onNet(e,t);t.emitNetTyped=(e,t,n)=>{if(n)return emitNet(e,n,t);emitNet(e,t)}}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(28),o=n(0);(0,o.RegisterNuiProxy)(i.MatchEvents.GET_PROFILES),(0,o.RegisterNuiProxy)(i.MatchEvents.GET_MY_PROFILE),(0,o.RegisterNuiProxy)(i.MatchEvents.GET_MATCHES),(0,o.RegisterNuiProxy)(i.MatchEvents.SAVE_LIKES),(0,o.RegisterNuiProxy)(i.MatchEvents.CREATE_MY_PROFILE),(0,o.RegisterNuiProxy)(i.MatchEvents.UPDATE_MY_PROFILE)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MatchEvents=void 0,function(e){e.INITIALIZE="phone:initializeMatch",e.GET_PROFILES="phone:getMatchProfiles",e.CREATE_MY_PROFILE="phone:createMyProfile",e.GET_MY_PROFILE="phone:getMyProfile",e.UPDATE_MY_PROFILE="phone:updateMyProfile",e.GET_MATCHES="phone:getMatches",e.SAVE_LIKES="phone:saveLikes"}(t.MatchEvents||(t.MatchEvents={}))},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(2),s=n(5),a=n(0),r=n(11),l=n(9),E=n(10),c=n(7),d=e.exports;d("openApp",e=>{(0,a.verifyExportArgType)("openApp",e,["string"]),(0,o.sendMessage)("PHONE",s.PhoneEvents.OPEN_APP,e)}),d("setPhoneVisible",t=>i(void 0,void 0,void 0,(function*(){(0,a.verifyExportArgType)("setPhoneVisible",t,["boolean","number"]);const n=e.isPhoneDisabled,i=e.isPhoneOpen;if(n&&!t&&i)return;!!t?yield(0,c.showPhone)():yield(0,c.hidePhone)()}))),d("isPhoneVisible",()=>e.isPhoneOpen),d("setPhoneDisabled",t=>{(0,a.verifyExportArgType)("setPhoneVisible",t,["boolean","number"]);const n=!!t;e.isPhoneDisabled=n}),d("isPhoneDisabled",()=>e.isPhoneDisabled),d("startPhoneCall",e=>{(0,a.verifyExportArgType)("startPhoneCall",e,["string"]),(0,r.initializeCallHandler)({receiverNumber:e})}),d("fillNewContact",e=>{(0,a.verifyExportArgType)("fillNewContact",e,["object"]),(0,o.sendContactsEvent)(l.ContactEvents.ADD_CONTACT_EXPORT,e)}),d("fillNewNote",e=>{(0,a.verifyExportArgType)("fillNewNOte",e,["object"]),(0,o.sendNotesEvent)(E.NotesEvents.ADD_NOTE_EXPORT,e)})}).call(this,n(1))}]); \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/dist/client/ab2ffd8084774be0d436.client.js b/resources/[EGRP-Phone]/npwd/resources/dist/client/ab2ffd8084774be0d436.client.js new file mode 100644 index 000000000..3e80e43c3 --- /dev/null +++ b/resources/[EGRP-Phone]/npwd/resources/dist/client/ab2ffd8084774be0d436.client.js @@ -0,0 +1 @@ +!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.verifyExportArgType=t.onNpwdEvent=t.RegisterNuiProxy=t.playerLoaded=t.RegisterNuiCB=void 0;const o=n(4),s=n(3);t.default=class{constructor(e){this._defaultSettings={promiseTimeout:15e3},this.setSettings(e)}setSettings(e){this._settings=Object.assign(Object.assign({},this._defaultSettings),e)}emitNetPromise(e,...t){return new Promise((n,i)=>{let s=!1;setTimeout(()=>{s=!0,i(`${e} has timed out after ${this._settings.promiseTimeout} ms`)},this._settings.promiseTimeout);const a=(0,o.uuidv4)(),r=`${e}:${a}`;emitNet(e,r,...t);const l=e=>{removeEventListener(r,l),s||n(e)};onNet(r,l)})}};t.RegisterNuiCB=(e,t)=>{RegisterNuiCallbackType(e),on("__cfx_nui:"+e,t)};t.playerLoaded=()=>new Promise(t=>{const n=setInterval(()=>{e.isPlayerLoaded&&t(n)},50)}).then(e=>clearInterval(e));t.RegisterNuiProxy=n=>{RegisterNuiCallbackType(n),on("__cfx_nui:"+n,(o,a)=>i(void 0,void 0,void 0,(function*(){e.isPlayerLoaded||(yield(0,t.playerLoaded)());try{const e=yield s.ClUtils.emitNetPromise(n,o);a(e)}catch(e){console.error("Error encountered while listening to resp. Error:",e),a({status:"error"})}})))};t.onNpwdEvent=(e,t)=>{onNet(e,t)};t.verifyExportArgType=(e,t,n)=>{const i=typeof t;if(!n.includes(i))throw new Error(`Export ${e} was called with incorrect argument type (${n.join(", ")}. Passed: ${t}, Type: ${i})`)}}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendPhoneEvent=t.sendMatchEvent=t.sendCameraEvent=t.sendContactsEvent=t.sendMarketplaceEvent=t.sendNotesEvent=t.sendMessageEvent=t.sendTwitterMessage=t.sendMessage=void 0;const o=i(n(14));function s(e,t,n){return SendNUIMessage({app:e,method:t,data:n})}t.sendMessage=s,t.sendTwitterMessage=function(e,t={}){return s(o.default.TWITTER,e,t)},t.sendMessageEvent=function(e,t={}){return s(o.default.MESSAGES,e,t)},t.sendNotesEvent=function(e,t={}){return s(o.default.NOTES,e,t)},t.sendMarketplaceEvent=function(e,t={}){s(o.default.MARKETPLACE,e,t)},t.sendContactsEvent=function(e,t={}){s(o.default.CONTACTS,e,t)},t.sendCameraEvent=function(e,t={}){s(o.default.CAMERA,e,t)},t.sendMatchEvent=function(e,t={}){return s(o.default.MATCH,e,t)},t.sendPhoneEvent=function(e,t={}){return s(o.default.PHONE,e,t)}},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ClUtils=void 0;const o=i(n(0));n(5),n(6),n(16),n(18),n(19),n(21),n(22),n(24),n(12),n(28),n(9),n(30),n(31),t.ClUtils=new o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=t.Delay=void 0;t.Delay=e=>new Promise(t=>setTimeout(t,e));t.uuidv4=()=>{let e="";for(let t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config=(()=>{let e=JSON.parse(LoadResourceFile(GetCurrentResourceName(),"config.json")),t=GetConvar("npwd:phoneAsItem","");return""!==t&&(t=JSON.parse(t),Object.entries(e.PhoneAsItem).forEach(([n,i])=>{t[n]&&typeof i==typeof t[n]&&(e.PhoneAsItem[n]=t[n])})),e})()},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.checkHasPhone=t.hidePhone=t.showPhone=void 0;const o=n(2),s=n(7),a=n(5),r=n(8),l=n(0);e.isPhoneOpen=!1,e.isPhoneDisabled=!1,e.isPlayerLoaded=!1;const E=e.exports;onNet(s.PhoneEvents.SET_PLAYER_LOADED,t=>{e.isPlayerLoaded=t,t||(0,o.sendMessage)("PHONE",s.PhoneEvents.UNLOAD_CHARACTER,{})}),RegisterKeyMapping(a.config.general.toggleCommand,"Toggle Phone","keyboard",a.config.general.toggleKey),setTimeout(()=>{emit("chat:addSuggestion",""+a.config.general.toggleCommand,"Toggle displaying your cellphone")},1e3);t.showPhone=()=>i(void 0,void 0,void 0,(function*(){e.isPhoneOpen=!0;const t=(()=>{let e=GetClockHours(),t=GetClockMinutes();return e<10&&(e="0"+e),t<10&&(t="0"+t),`${e}:${t}`})();yield r.animationService.openPhone(),emitNet(s.PhoneEvents.FETCH_CREDENTIALS),SetCursorLocation(.9,.922),(0,o.sendMessage)("PHONE",s.PhoneEvents.SET_VISIBILITY,!0),(0,o.sendMessage)("PHONE",s.PhoneEvents.SET_TIME,t),SetNuiFocus(!0,!0),SetNuiFocusKeepInput(!0),emit("npwd:disableControlActions",!0)}));t.hidePhone=()=>i(void 0,void 0,void 0,(function*(){e.isPhoneOpen=!1,(0,o.sendMessage)("PHONE",s.PhoneEvents.SET_VISIBILITY,!1),yield r.animationService.closePhone(),SetNuiFocus(!1,!1),SetNuiFocusKeepInput(!1),emit("npwd:disableControlActions",!1)})),RegisterCommand(a.config.general.toggleCommand,()=>i(void 0,void 0,void 0,(function*(){e.isPhoneDisabled||(yield function(){return i(this,void 0,void 0,(function*(){if(yield(0,t.checkHasPhone)())return e.isPhoneOpen?yield(0,t.hidePhone)():void(yield(0,t.showPhone)())}))}())})),!1),RegisterCommand("phone:restart",()=>i(void 0,void 0,void 0,(function*(){yield(0,t.hidePhone)(),(0,o.sendMessage)("PHONE","phoneRestart",{})})),!1);t.checkHasPhone=()=>i(void 0,void 0,void 0,(function*(){if(!a.config.PhoneAsItem.enabled)return!0;const e=yield Promise.resolve(E[a.config.PhoneAsItem.exportResource][a.config.PhoneAsItem.exportFunction]());if("number"!=typeof e&&"boolean"!=typeof e)throw new Error("You must return either a boolean or number from your export function");return!!e})),onNet(s.PhoneEvents.SEND_CREDENTIALS,e=>{(0,o.sendMessage)("SIMCARD",s.PhoneEvents.SET_NUMBER,e)}),on("onResourceStop",e=>{e===GetCurrentResourceName()&&((0,o.sendMessage)("PHONE",s.PhoneEvents.SET_VISIBILITY,!1),SetNuiFocus(!1,!1),r.animationService.endPhoneCall(),r.animationService.closePhone(),ClearPedTasks(PlayerPedId()))}),(0,l.RegisterNuiCB)(s.PhoneEvents.CLOSE_PHONE,(e,n)=>i(void 0,void 0,void 0,(function*(){yield(0,t.hidePhone)(),n()}))),(0,l.RegisterNuiCB)(s.PhoneEvents.TOGGLE_KEYS,({keepGameFocus:t},n)=>i(void 0,void 0,void 0,(function*(){e.isPhoneOpen&&SetNuiFocusKeepInput(t),n({})})))}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorStringKeys=t.PhoneEvents=t.PHONE_NUMBER_REGEX=void 0,t.PHONE_NUMBER_REGEX=/^([0-9]{3}-[0-9]{4})|([0-9]{7})$/,function(e){e.OPEN_APP="npwd:openApp",e.OPEN_PHONE="npwd:open",e.CLOSE_PHONE="npwd:close",e.UNLOAD_CHARACTER="npwd:unloadCharacter",e.SET_VISIBILITY="npwd:setVisibility",e.ADD_SNACKBAR_ALERT="npwd:setSnackarAlert",e.SET_NUMBER="npwd:setNumber",e.SET_PHONE_READY="npwd:phoneReady",e.SET_CONFIG="npwd:setPhoneConfig",e.SET_TIME="npwd:setGameTime",e.SEND_CREDENTIALS="npwd:sendCredentials",e.FETCH_CREDENTIALS="npwd:getCredentials",e.TOGGLE_KEYS="npwd:toggleAllControls",e.SET_PLAYER_LOADED="npwd:setPlayerLoaded",e.IS_PHONE_DISABLED="npwd:isPhoneDisabled"}(t.PhoneEvents||(t.PhoneEvents={})),function(e){e.SERVER_ERROR="GENERAL_SERVER_ERROR",e.DELETE_FAILED="DELETE_FAILED",e.ADD_FAILED="ADD_FAILED",e.UPDATE_FAILED="UPDATED_FAILED",e.FETCH_FAILED="FETCH_FAILED"}(t.ErrorStringKeys||(t.ErrorStringKeys={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationService=void 0;const i=n(15);t.animationService=new i.AnimationService},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.removePhoneProp=t.newPhoneProp=void 0;const o=n(4);let s=0,a=!1;function r(){0!=s&&(DeleteEntity(s),s=0,a=!1)}t.newPhoneProp=()=>i(void 0,void 0,void 0,(function*(){if(r(),a)a&&console.log("prop already created");else{for(RequestModel("prop_amb_phone");!HasModelLoaded("prop_amb_phone");)yield(0,o.Delay)(1);const e=PlayerPedId(),[t,n,i]=GetEntityCoords(e,!0);s=CreateObject(GetHashKey("prop_amb_phone"),t,n,i+.2,!0,!0,!0);const r=GetPedBoneIndex(e,28422);AttachEntityToEntity(s,e,r,0,0,0,0,0,-0,!0,!0,!1,!0,1,!0),a=!0}})),t.removePhoneProp=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactEvents=t.ContactsDatabaseLimits=t.ContactResp=void 0,function(e){e.ADD_FAILED="CONTACT.FEEDBACK.ADD_FAILED",e.UPDATE_FAILED="CONTACT.FEEDBACK.UPDATE_FAILED",e.INVALID_HOST="GENERIC_INVALID_IMAGE_HOST"}(t.ContactResp||(t.ContactResp={})),function(e){e[e.avatar=255]="avatar",e[e.number=20]="number",e[e.display=255]="display"}(t.ContactsDatabaseLimits||(t.ContactsDatabaseLimits={})),function(e){e.GET_CONTACTS="npwd:getContacts",e.ADD_CONTACT="npwd:addContacts",e.UPDATE_CONTACT="npwd:updateContact",e.DELETE_CONTACT="npwd:deleteContact",e.ADD_CONTACT_EXPORT="npwd:addContactExport"}(t.ContactEvents||(t.ContactEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotesEvents=void 0,function(e){e.ADD_NOTE="npwd:addNote",e.FETCH_ALL_NOTES="npwd:fetchAllNotes",e.DELETE_NOTE="npwd:deleteNote",e.UPDATE_NOTE="npwd:updateNote",e.ADD_NOTE_EXPORT="npwd:addNoteExport"}(t.NotesEvents||(t.NotesEvents={}))},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeCallHandler=void 0;const o=n(13),s=n(26),a=n(8),r=n(27),l=n(0),E=n(3),c=new s.CallService;t.initializeCallHandler=(e,t)=>i(void 0,void 0,void 0,(function*(){if(!c.isInCall())try{const n=yield E.ClUtils.emitNetPromise(o.CallEvents.INITIALIZE_CALL,e);if(a.animationService.startPhoneCall(),"ok"!==n.status)return t(n);const{transmitter:i,isTransmitter:s,receiver:r,isUnavailable:l}=n.data;c.handleStartCall(i,r,s,l),t(n)}catch(e){console.error(e),t({status:"error",errorMsg:"CLIENT_TIMED_OUT"})}})),(0,l.RegisterNuiCB)(o.CallEvents.INITIALIZE_CALL,t.initializeCallHandler),(0,r.onNetTyped)(o.CallEvents.START_CALL,e=>{const{transmitter:t,isTransmitter:n,receiver:i,isUnavailable:o}=e;c.handleStartCall(t,i,n,o)}),(0,l.RegisterNuiCB)(o.CallEvents.ACCEPT_CALL,(e,t)=>{a.animationService.startPhoneCall(),(0,r.emitNetTyped)(o.CallEvents.ACCEPT_CALL,e),t({})}),(0,r.onNetTyped)(o.CallEvents.WAS_ACCEPTED,e=>{c.handleCallAccepted(e)}),(0,l.RegisterNuiCB)(o.CallEvents.REJECTED,(e,t)=>{(0,r.emitNetTyped)(o.CallEvents.REJECTED,e),t({})}),onNet(o.CallEvents.WAS_REJECTED,()=>i(void 0,void 0,void 0,(function*(){c.handleRejectCall(),a.animationService.endPhoneCall()}))),(0,l.RegisterNuiCB)(o.CallEvents.END_CALL,(e,t)=>i(void 0,void 0,void 0,(function*(){try{const n=yield E.ClUtils.emitNetPromise(o.CallEvents.END_CALL,e);if("error"===n.status)return console.error(n.errorMsg);c.handleEndCall(),t({})}catch(e){console.error(e),t({status:"error",errorMsg:"CLIENT_TIMED_OUT"})}a.animationService.endPhoneCall()}))),onNet(o.CallEvents.WAS_ENDED,()=>{c.handleEndCall(),a.animationService.endPhoneCall()}),(0,l.RegisterNuiProxy)(o.CallEvents.FETCH_CALLS),onNet(o.CallEvents.SEND_ALERT,e=>{c.handleSendAlert(e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallEvents=t.CallRejectReasons=void 0,function(e){e[e.DECLINED=0]="DECLINED",e[e.BUSY_LINE=1]="BUSY_LINE"}(t.CallRejectReasons||(t.CallRejectReasons={})),function(e){e.INITIALIZE_CALL="npwd:beginCall",e.START_CALL="npwd:startCall",e.ACCEPT_CALL="npwd:acceptCall",e.END_CALL="npwd:endCall",e.WAS_ENDED="npwd:callEnded",e.WAS_ACCEPTED="npwd:callAccepted",e.REJECTED="npwd:rejectCall",e.WAS_REJECTED="npwd:callRejected",e.FETCH_CALLS="npwd:fetchCalls",e.SET_CALL_INFO="npwd:setCaller",e.SET_CALL_MODAL="npwd:callModal",e.SEND_ALERT="npwd:callSetAlert",e.SAVE_CALL="npwd:saveCall"}(t.CallEvents||(t.CallEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TWITTER:"TWITTER",MATCH:"MATCH",MESSAGES:"MESSAGES",NOTES:"NOTES",MARKETPLACE:"MARKETPLACE",CONTACTS:"CONTACTS",CAMERA:"CAMERA",PHONE:"PHONE"}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationService=t.AnimationState=void 0;const o=n(9),s=n(4);var a;!function(e){e[e.ON_CALL=0]="ON_CALL",e[e.PHONE_OPEN=1]="PHONE_OPEN",e[e.ON_CAMERA=2]="ON_CAMERA"}(a=t.AnimationState||(t.AnimationState={}));t.AnimationService=class{constructor(){this.onCall=!1,this.phoneOpen=!1,this.onCamera=!1}createAnimationInterval(){this.animationInterval=setInterval(()=>i(this,void 0,void 0,(function*(){const e=PlayerPedId();this.onCall?this.handleCallAnimation(e):this.phoneOpen&&!this.onCamera&&this.handleOpenAnimation(e)})),250)}setPhoneState(e,t){switch(e){case a.ON_CALL:this.onCall=t;break;case a.PHONE_OPEN:this.phoneOpen=t;break;case a.ON_CAMERA:this.onCamera=t}this.onCall||this.phoneOpen?this.animationInterval||this.createAnimationInterval():this.animationInterval&&(clearInterval(this.animationInterval),this.animationInterval=null)}handleCallAnimation(e){IsPedInAnyVehicle(e,!0)?this.handleOnCallInVehicle(e):this.handleOnCallNormal(e)}handleOpenAnimation(e){IsPedInAnyVehicle(e,!0)?this.handleOpenVehicleAnim(e):this.handleOpenNormalAnim(e)}handleCallEndAnimation(e){IsPedInAnyVehicle(e,!0)?this.handleCallEndVehicleAnim(e):this.handleCallEndNormalAnim(e)}handleCloseAnimation(e){IsPedInAnyVehicle(e,!0)?this.handleCloseVehicleAnim(e):this.handleCloseNormalAnim(e)}openPhone(){return i(this,void 0,void 0,(function*(){(0,o.newPhoneProp)(),this.onCall||this.handleOpenAnimation(PlayerPedId()),this.setPhoneState(a.PHONE_OPEN,!0)}))}closePhone(){return i(this,void 0,void 0,(function*(){(0,o.removePhoneProp)(),this.setPhoneState(a.PHONE_OPEN,!1),this.onCall||this.handleCloseAnimation(PlayerPedId())}))}startPhoneCall(){return i(this,void 0,void 0,(function*(){this.handleCallAnimation(PlayerPedId()),this.setPhoneState(a.ON_CALL,!0)}))}endPhoneCall(){return i(this,void 0,void 0,(function*(){this.handleCallEndAnimation(PlayerPedId()),this.setPhoneState(a.ON_CALL,!1)}))}openCamera(){return i(this,void 0,void 0,(function*(){this.setPhoneState(a.ON_CAMERA,!0)}))}closeCamera(){return i(this,void 0,void 0,(function*(){this.setPhoneState(a.ON_CAMERA,!1)}))}loadAnimDict(e){return i(this,void 0,void 0,(function*(){for(RequestAnimDict(e);!HasAnimDictLoaded(e);)yield(0,s.Delay)(100)}))}handleOpenVehicleAnim(e){return i(this,void 0,void 0,(function*(){const t="anim@cellphone@in_car@ps",n="cellphone_text_in";yield this.loadAnimDict(t),IsEntityPlayingAnim(e,t,n,3)||(SetCurrentPedWeapon(e,2725352035,!0),TaskPlayAnim(e,t,n,7,-1,-1,50,0,!1,!1,!1))}))}handleOpenNormalAnim(e){return i(this,void 0,void 0,(function*(){const t="cellphone@",n="cellphone_text_in";yield this.loadAnimDict(t),IsEntityPlayingAnim(e,t,n,3)||(SetCurrentPedWeapon(e,2725352035,!0),TaskPlayAnim(e,t,n,8,-1,-1,50,0,!1,!1,!1))}))}handleCloseVehicleAnim(e){return i(this,void 0,void 0,(function*(){const t="anim@cellphone@in_car@ps";StopAnimTask(e,t,"cellphone_text_in",1),StopAnimTask(e,t,"cellphone_call_to_text",1),(0,o.removePhoneProp)()}))}handleCloseNormalAnim(e){return i(this,void 0,void 0,(function*(){const t="cellphone@",n="cellphone_text_out";StopAnimTask(e,t,"cellphone_text_in",1),yield(0,s.Delay)(100),yield this.loadAnimDict(t),TaskPlayAnim(e,t,n,7,-1,-1,50,0,!1,!1,!1),yield(0,s.Delay)(200),StopAnimTask(e,t,n,1),(0,o.removePhoneProp)()}))}handleOnCallInVehicle(e){return i(this,void 0,void 0,(function*(){const t="anim@cellphone@in_car@ps",n="cellphone_call_listen_base";IsEntityPlayingAnim(e,t,n,3)||(yield this.loadAnimDict(t),TaskPlayAnim(e,t,n,3,3,-1,49,0,!1,!1,!1))}))}handleOnCallNormal(e){return i(this,void 0,void 0,(function*(){const t="cellphone@",n="cellphone_call_listen_base";IsEntityPlayingAnim(e,t,n,3)||(yield this.loadAnimDict(t),TaskPlayAnim(e,t,n,3,3,-1,49,0,!1,!1,!1))}))}handleCallEndVehicleAnim(e){return i(this,void 0,void 0,(function*(){const t="anim@cellphone@in_car@ps";StopAnimTask(e,t,"cellphone_call_listen_base",1),yield this.loadAnimDict(t),TaskPlayAnim(e,t,"cellphone_call_to_text",1.3,5,-1,50,0,!1,!1,!1)}))}handleCallEndNormalAnim(e){return i(this,void 0,void 0,(function*(){IsEntityPlayingAnim(e,"cellphone@","cellphone_call_listen_base",49)&&(yield this.loadAnimDict("cellphone@"),TaskPlayAnim(e,"cellphone@","cellphone_call_to_text",2.5,8,-1,50,0,!1,!1,!1))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(17),o=n(2),s=n(0);(0,s.RegisterNuiProxy)(i.TwitterEvents.GET_OR_CREATE_PROFILE),(0,s.RegisterNuiProxy)(i.TwitterEvents.DELETE_TWEET),(0,s.RegisterNuiProxy)(i.TwitterEvents.UPDATE_PROFILE),(0,s.RegisterNuiProxy)(i.TwitterEvents.CREATE_PROFILE),(0,s.RegisterNuiProxy)(i.TwitterEvents.FETCH_TWEETS),(0,s.RegisterNuiProxy)(i.TwitterEvents.CREATE_TWEET),(0,s.RegisterNuiProxy)(i.TwitterEvents.FETCH_TWEETS_FILTERED),(0,s.RegisterNuiProxy)(i.TwitterEvents.TOGGLE_LIKE),(0,s.RegisterNuiProxy)(i.TwitterEvents.REPORT),(0,s.RegisterNuiProxy)(i.TwitterEvents.RETWEET),onNet(i.TwitterEvents.CREATE_TWEET_BROADCAST,e=>{(0,o.sendTwitterMessage)(i.TwitterEvents.CREATE_TWEET_BROADCAST,e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TwitterEvents=void 0,function(e){e.FETCH_TWEETS="npwd:fetchTweets",e.FETCH_TWEETS_FILTERED="npwd:fetchTweetsFiltered",e.CREATE_PROFILE="npwd:createTwitterProfile",e.GET_OR_CREATE_PROFILE="npwd:getOrCreateTwitterProfile",e.UPDATE_PROFILE="npwd:updateTwitterProfile",e.CREATE_TWEET="npwd:createTweet",e.CREATE_TWEET_BROADCAST="createTweetBroadcast",e.DELETE_TWEET="npwd:deleteTweet",e.TOGGLE_LIKE="npwd:toggleLike",e.RETWEET="npwd:retweet",e.REPORT="npwd:reportTweet"}(t.TwitterEvents||(t.TwitterEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(10),o=n(0);(0,o.RegisterNuiProxy)(i.ContactEvents.GET_CONTACTS),(0,o.RegisterNuiProxy)(i.ContactEvents.ADD_CONTACT),(0,o.RegisterNuiProxy)(i.ContactEvents.DELETE_CONTACT),(0,o.RegisterNuiProxy)(i.ContactEvents.UPDATE_CONTACT)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(20),o=n(0),s=n(2);(0,o.RegisterNuiProxy)(i.MarketplaceEvents.FETCH_LISTING),(0,o.RegisterNuiProxy)(i.MarketplaceEvents.ADD_LISTING),(0,o.RegisterNuiProxy)(i.MarketplaceEvents.DELETE_LISTING),(0,o.RegisterNuiProxy)(i.MarketplaceEvents.REPORT_LISTING),onNet(i.MarketplaceEvents.BROADCAST_ADD,e=>{(0,s.sendMarketplaceEvent)(i.MarketplaceEvents.BROADCAST_ADD,e)}),onNet(i.MarketplaceEvents.BROADCAST_DELETE,e=>{(0,s.sendMarketplaceEvent)(i.MarketplaceEvents.BROADCAST_DELETE,e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarketplaceEvents=t.MarketplaceResp=t.MarketplaceDatabaseLimits=void 0,function(e){e[e.title=255]="title",e[e.description=255]="description",e[e.url=255]="url"}(t.MarketplaceDatabaseLimits||(t.MarketplaceDatabaseLimits={})),function(e){e.CREATE_FAILED="MARKETPLACE.FEEDBACK.CREATE_LISTING_FAILED",e.DUPLICATE="MARKETPLACE.FEEDBACK.DUPLICATE_LISTING",e.INVALID_IMAGE_HOST="GENERIC_INVALID_IMAGE_HOST"}(t.MarketplaceResp||(t.MarketplaceResp={})),function(e){e.ADD_LISTING="npwd:addListing",e.FETCH_LISTING="npwd:fetchAllListings",e.DELETE_LISTING="npwd:marketplaceDeleteListing",e.DELETE_LISTINGS_ON_DROP="npwd:marketplaceDeleteListingsOnDrop",e.REPORT_LISTING="npwd:reportListing",e.BROADCAST_ADD="npwd:sendMarketplaceBroadcastAdd",e.BROADCAST_DELETE="npwd:sendMarketplaceBroadcastDelete"}(t.MarketplaceEvents||(t.MarketplaceEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(11),o=n(0);(0,o.RegisterNuiProxy)(i.NotesEvents.ADD_NOTE),(0,o.RegisterNuiProxy)(i.NotesEvents.FETCH_ALL_NOTES),(0,o.RegisterNuiProxy)(i.NotesEvents.UPDATE_NOTE),(0,o.RegisterNuiProxy)(i.NotesEvents.DELETE_NOTE)},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(23),s=n(4),a=n(2),r=n(7),l=n(3),E=n(5),c=n(8),d=n(0),u=GetConvar("SCREENSHOT_BASIC_TOKEN","none"),_=e.exports;let C=!1;function h(){SetNuiFocus(!0,!0),(0,a.sendMessage)("PHONE",r.PhoneEvents.SET_VISIBILITY,!0)}(0,d.RegisterNuiCB)(o.PhotoEvents.TAKE_PHOTO,(e,t)=>i(void 0,void 0,void 0,(function*(){yield c.animationService.openCamera(),emit("npwd:disableControlActions",!1);let e=!1;for(CreateMobilePhone(1),CellCamActivate(!0,!0),SetNuiFocus(!1,!1),(0,a.sendMessage)("PHONE",r.PhoneEvents.SET_VISIBILITY,!1),SetNuiFocus(!1,!1),C=!0,emit(o.PhotoEvents.NPWD_PHOTO_MODE_STARTED);C;){if(yield(0,s.Delay)(0),IsControlJustPressed(1,27))e=!e,n=e,Citizen.invokeNative("0x2491A93618B7D838",n);else{if(IsControlJustPressed(1,176)){const e=yield T();t(e);break}if(IsControlJustPressed(1,194)){yield p();break}}BeginTextCommandDisplayHelp("THREESTRINGS"),AddTextComponentString("Exit Camera Mode: ~INPUT_CELLPHONE_CANCEL~"),AddTextComponentString("Toggle Front/Back: ~INPUT_PHONE~"),AddTextComponentString("Take Picture: ~INPUT_CELLPHONE_SELECT~"),EndTextCommandDisplayHelp(0,!0,!1,-1)}var n;ClearHelp(!0),emit(o.PhotoEvents.NPWD_PHOTO_MODE_ENDED),emit("npwd:disableControlActions",!0),yield c.animationService.closeCamera()})));const T=()=>i(void 0,void 0,void 0,(function*(){ClearHelp(!0),yield(0,s.Delay)(0),setTimeout(()=>{DestroyMobilePhone(),CellCamActivate(!1,!1),h(),c.animationService.openPhone(),emit("npwd:disableControlActions",!0)},200);const e=yield A();return C=!1,e})),p=()=>i(void 0,void 0,void 0,(function*(){(0,a.sendCameraEvent)(o.PhotoEvents.CAMERA_EXITED),ClearHelp(!0),yield c.animationService.closeCamera(),emit("npwd:disableControlActions",!0),DestroyMobilePhone(),CellCamActivate(!1,!1),h(),C=!1})),A=()=>new Promise((e,t)=>{if("none"===u&&E.config.images.useAuthorization)return console.error("Screenshot basic token not found. Please set in server.cfg");_["screenshot-basic"].requestScreenshotUpload(E.config.images.url,E.config.images.type,{encoding:E.config.images.imageEncoding,headers:{authorization:E.config.images.useAuthorization?`${E.config.images.authorizationPrefix} ${u}`:void 0,"content-type":E.config.images.contentType}},n=>i(void 0,void 0,void 0,(function*(){try{let t=JSON.parse(n);for(const e of E.config.images.returnedDataIndexes)t=t[e];const i=yield l.ClUtils.emitNetPromise(o.PhotoEvents.UPLOAD_PHOTO,t);e(i)}catch(e){t(e.message)}})))});(0,d.RegisterNuiProxy)(o.PhotoEvents.FETCH_PHOTOS),(0,d.RegisterNuiProxy)(o.PhotoEvents.DELETE_PHOTO)}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoEvents=t.PhotoResp=void 0,function(e){e.GENERIC="CAMERA.FAILED_TO_TAKE_PHOTO",e.INVALID_IMAGE_HOST="GENERIC_INVALID_IMAGE_HOST"}(t.PhotoResp||(t.PhotoResp={})),function(e){e.TAKE_PHOTO="npwd:TakePhoto",e.CAMERA_EXITED="npwd:cameraExited",e.NPWD_PHOTO_MODE_STARTED="npwd:PhotoModeStarted",e.NPWD_PHOTO_MODE_ENDED="npwd:PhotoModeEnded",e.TAKE_PHOTO_SUCCESS="npwd:TakePhotoSuccess",e.UPLOAD_PHOTO="npwd:UploadPhoto",e.FETCH_PHOTOS="npwd:FetchPhotos",e.DELETE_PHOTO="npwd:deletePhoto"}(t.PhotoEvents||(t.PhotoEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(25),o=n(2),s=n(0);(0,s.RegisterNuiProxy)(i.MessageEvents.FETCH_MESSAGE_CONVERSATIONS),(0,s.RegisterNuiProxy)(i.MessageEvents.DELETE_MESSAGE),(0,s.RegisterNuiProxy)(i.MessageEvents.FETCH_MESSAGES),(0,s.RegisterNuiProxy)(i.MessageEvents.CREATE_MESSAGE_CONVERSATION),(0,s.RegisterNuiProxy)(i.MessageEvents.DELETE_CONVERSATION),(0,s.RegisterNuiProxy)(i.MessageEvents.SEND_MESSAGE),onNet(i.MessageEvents.SEND_MESSAGE_SUCCESS,e=>{(0,o.sendMessageEvent)(i.MessageEvents.SEND_MESSAGE_SUCCESS,e)}),onNet(i.MessageEvents.CREATE_MESSAGE_BROADCAST,e=>{(0,o.sendMessageEvent)(i.MessageEvents.CREATE_MESSAGE_BROADCAST,e)}),onNet(i.MessageEvents.CREATE_MESSAGE_CONVERSATION_SUCCESS,e=>{(0,o.sendMessageEvent)(i.MessageEvents.CREATE_MESSAGE_CONVERSATION_SUCCESS,e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageEvents=void 0,function(e){e.FETCH_MESSAGE_CONVERSATIONS="npwd:fetchMessageGroups",e.FETCH_MESSAGE_GROUPS_SUCCESS="npwd:fetchMessageGroupsSuccess",e.FETCH_MESSAGE_GROUPS_FAILED="npwd:fetchMessageGroupsFailed",e.CREATE_MESSAGE_CONVERSATION="npwd:createMessageGroup",e.CREATE_MESSAGE_CONVERSATION_SUCCESS="npwd:createMessageConversationSuccess",e.CREATE_MESSAGE_GROUP_SUCCESS="npwd:createMessageGroupSuccess",e.CREATE_MESSAGE_GROUP_FAILED="npwd:createMessageGroupFailed",e.SEND_MESSAGE="npwd:sendMessage",e.SEND_EMBED_MESSAGE="npwd:sendEmbedMessage",e.SEND_MESSAGE_SUCCESS="npwd:sendMessageSuccess",e.SEND_MESSAGE_FAILED="npwd:sendMessageFailed",e.DELETE_MESSAGE="npwd:deleteMessage",e.FETCH_MESSAGES="npwd:fetchMessages",e.FETCH_MESSAGES_SUCCESS="npwd:fetchMessagesSuccess",e.FETCH_MESSAGES_FAILED="npwd:fetchMessagesFailed",e.FETCH_INITIAL_MESSAGES="npwd:fetchInitialMessages",e.ACTION_RESULT="npwd:setMessagesAlert",e.CREATE_MESSAGE_BROADCAST="npwd:createMessagesBroadcast",e.SET_MESSAGE_READ="npwd:setReadMessages",e.DELETE_CONVERSATION="nwpd:deleteConversation"}(t.MessageEvents||(t.MessageEvents={}))},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.CallService=void 0;const o=n(6),s=n(13),a=e.exports;class r{constructor(){this.currentCall=0}static sendCallAction(e,t){SendNUIMessage({app:"CALL",method:e,data:t})}isInCall(){return 0!==this.currentCall}openCallModal(e){r.sendCallAction(s.CallEvents.SET_CALL_MODAL,e)}handleRejectCall(){this.isInCall()||(this.openCallModal(!1),r.sendCallAction(s.CallEvents.SET_CALL_INFO,null))}handleStartCall(e,t,n,a){return i(this,void 0,void 0,(function*(){if(this.isInCall()||!(yield(0,o.checkHasPhone)()))return emitNet(s.CallEvents.REJECTED,{transmitterNumber:e},s.CallRejectReasons.BUSY_LINE);this.openCallModal(!0),SendNUIMessage({app:"CALL",method:s.CallEvents.SET_CALL_INFO,data:{active:!0,transmitter:e,receiver:t,isTransmitter:n,accepted:!1,isUnavailable:a}})}))}handleCallAccepted(e){this.currentCall=e.channelId,a["pma-voice"].setCallChannel(e.channelId),r.sendCallAction(s.CallEvents.SET_CALL_INFO,e)}handleEndCall(){this.currentCall=0,a["pma-voice"].setCallChannel(0),this.openCallModal(!1),r.sendCallAction(s.CallEvents.SET_CALL_INFO,null)}handleSendAlert(e){SendNUIMessage({app:"DIALER",method:s.CallEvents.SEND_ALERT,data:e})}}t.CallService=r}).call(this,n(1))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.emitNetTyped=t.onNetTyped=t.clean=t.getSource=void 0;t.getSource=()=>e.source;t.clean=e=>e?e.replace(/[^0-9a-z]/gi,""):e;t.onNetTyped=(e,t)=>onNet(e,t);t.emitNetTyped=(e,t,n)=>{if(n)return emitNet(e,n,t);emitNet(e,t)}}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(29),o=n(0);(0,o.RegisterNuiProxy)(i.MatchEvents.GET_PROFILES),(0,o.RegisterNuiProxy)(i.MatchEvents.GET_MY_PROFILE),(0,o.RegisterNuiProxy)(i.MatchEvents.GET_MATCHES),(0,o.RegisterNuiProxy)(i.MatchEvents.SAVE_LIKES),(0,o.RegisterNuiProxy)(i.MatchEvents.CREATE_MY_PROFILE),(0,o.RegisterNuiProxy)(i.MatchEvents.UPDATE_MY_PROFILE)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MatchEvents=t.MatchResp=void 0,function(e){e.UPDATE_FAILED="MATCH.FEEDBACK.UPDATE_PROFILE_FAILED"}(t.MatchResp||(t.MatchResp={})),function(e){e.INITIALIZE="phone:initializeMatch",e.GET_PROFILES="phone:getMatchProfiles",e.CREATE_MY_PROFILE="phone:createMyProfile",e.GET_MY_PROFILE="phone:getMyProfile",e.UPDATE_MY_PROFILE="phone:updateMyProfile",e.GET_MATCHES="phone:getMatches",e.SAVE_LIKES="phone:saveLikes"}(t.MatchEvents||(t.MatchEvents={}))},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function r(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(2),s=n(7),a=n(0),r=n(12),l=n(10),E=n(11),c=n(6),d=e.exports;d("openApp",e=>{(0,a.verifyExportArgType)("openApp",e,["string"]),(0,o.sendMessage)("PHONE",s.PhoneEvents.OPEN_APP,e)}),d("setPhoneVisible",t=>i(void 0,void 0,void 0,(function*(){(0,a.verifyExportArgType)("setPhoneVisible",t,["boolean","number"]);const n=e.isPhoneDisabled,i=e.isPhoneOpen;if(n&&!t&&i)return;!!t?yield(0,c.showPhone)():yield(0,c.hidePhone)()}))),d("isPhoneVisible",()=>e.isPhoneOpen),d("setPhoneDisabled",t=>{(0,a.verifyExportArgType)("setPhoneVisible",t,["boolean","number"]);const n=!!t;e.isPhoneDisabled=n,(0,o.sendPhoneEvent)(s.PhoneEvents.IS_PHONE_DISABLED,t)}),d("isPhoneDisabled",()=>e.isPhoneDisabled),d("startPhoneCall",e=>{(0,a.verifyExportArgType)("startPhoneCall",e,["string"]),(0,r.initializeCallHandler)({receiverNumber:e})}),d("fillNewContact",e=>{(0,a.verifyExportArgType)("fillNewContact",e,["object"]),(0,o.sendContactsEvent)(l.ContactEvents.ADD_CONTACT_EXPORT,e)}),d("fillNewNote",e=>{(0,a.verifyExportArgType)("fillNewNote",e,["object"]),(0,o.sendNotesEvent)(E.NotesEvents.ADD_NOTE_EXPORT,e)})}).call(this,n(1))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(32);(0,i.RegisterNuiCB)(o.SettingEvents.NUI_SETTINGS_UPDATED,(t,n)=>{e.exports["pma-voice"].setCallVolume(t.callVolume),n({})})}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingEvents=void 0,function(e){e.NUI_SETTINGS_UPDATED="npwd:nuiSettingsUpdated"}(t.SettingEvents||(t.SettingEvents={}))}]); \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/dist/server/64f46e8d83c34072db25.server.js b/resources/[EGRP-Phone]/npwd/resources/dist/server/64f46e8d83c34072db25.server.js new file mode 100644 index 000000000..68b94913d --- /dev/null +++ b/resources/[EGRP-Phone]/npwd/resources/dist/server/64f46e8d83c34072db25.server.js @@ -0,0 +1,25 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"g",(function(){return f})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function f(){for(var e=[],t=0;t=e?n:("000000000000"+n).slice(-e)}const c="-".charCodeAt(0),l="+".charCodeAt(0),f=".".charCodeAt(0),_="e".charCodeAt(0),d="E".charCodeAt(0);class E{constructor(e,t,n,r){this.sequenceId=e,this.numPackets=1,this.buffer=t,this.start=n,this.offset=n+4,this.end=r}reset(){this.offset=this.start+4}length(){return this.end-this.start}slice(){return this.buffer.slice(this.start,this.end)}dump(){console.log([this.buffer.asciiSlice(this.start,this.end)],this.buffer.slice(this.start,this.end),this.length(),this.sequenceId)}haveMoreData(){return this.end>this.offset}skip(e){this.offset+=e}readInt8(){return this.buffer[this.offset++]}readInt16(){return this.offset+=2,this.buffer.readUInt16LE(this.offset-2)}readInt24(){return this.readInt16()+(this.readInt8()<<16)}readInt32(){return this.offset+=4,this.buffer.readUInt32LE(this.offset-4)}readSInt8(){return this.buffer.readInt8(this.offset++)}readSInt16(){return this.offset+=2,this.buffer.readInt16LE(this.offset-2)}readSInt32(){return this.offset+=4,this.buffer.readInt32LE(this.offset-4)}readInt64JSNumber(){const e=this.readInt32(),t=this.readInt32();return new o(e,t,!0).toNumber()}readSInt64JSNumber(){const e=this.readInt32(),t=this.readInt32();if(!(2147483648&t))return e+4294967296*t;return new o(e,t,!1).toNumber()}readInt64String(){const e=this.readInt32(),t=this.readInt32();return new o(e,t,!0).toString()}readSInt64String(){const e=this.readInt32(),t=this.readInt32();return new o(e,t,!1).toString()}readInt64(){const e=this.readInt32(),t=this.readInt32();let n=new o(e,t,!0);const r=n.toNumber(),i=n.toString();return n=r.toString()===i?r:i,n}readSInt64(){const e=this.readInt32(),t=this.readInt32();let n=new o(e,t,!1);const r=n.toNumber(),i=n.toString();return n=r.toString()===i?r:i,n}isEOF(){return 254===this.buffer[this.offset]&&this.length()<13}eofStatusFlags(){return this.buffer.readInt16LE(this.offset+3)}eofWarningCount(){return this.buffer.readInt16LE(this.offset+1)}readLengthCodedNumber(e,t){const n=this.buffer[this.offset++];return n<251?n:this.readLengthCodedNumberExt(n,e,t)}readLengthCodedNumberSigned(e){return this.readLengthCodedNumber(e,!0)}readLengthCodedNumberExt(e,t,n){let r,i,s;if(251===e)return null;if(252===e)return this.readInt8()+(this.readInt8()<<8);if(253===e)return this.readInt8()+(this.readInt8()<<8)+(this.readInt8()<<16);if(254===e){if(r=this.readInt32(),i=this.readInt32(),0===i)return r;if(i<2097152)return 4294967296*i+r;s=new o(r,i,!n);const e=s.toNumber(),a=s.toString();return s=e.toString()===a?e:a,t?a:s}throw console.trace(),new Error("Should not reach here: "+e)}readFloat(){const e=this.buffer.readFloatLE(this.offset);return this.offset+=4,e}readDouble(){const e=this.buffer.readDoubleLE(this.offset);return this.offset+=8,e}readBuffer(e){return void 0===e&&(e=this.end-this.offset),this.offset+=e,this.buffer.slice(this.offset-e,this.offset)}readDateTime(e){if(!e||"Z"===e||"local"===e){const t=this.readInt8();if(251===t)return null;let n=0,r=0,i=0,o=0,s=0,u=0,c=0;return t>3&&(n=this.readInt16(),r=this.readInt8(),i=this.readInt8()),t>6&&(o=this.readInt8(),s=this.readInt8(),u=this.readInt8()),t>10&&(c=this.readInt32()/1e3),n+r+i+o+s+u+c===0?a:"Z"===e?new Date(Date.UTC(n,r-1,i,o,s,u,c)):new Date(n,r-1,i,o,s,u,c)}let t=this.readDateTimeString(6,"T");return 10===t.length&&(t+="T00:00:00"),new Date(t+e)}readDateTimeString(e,t){const n=this.readInt8();let r,i=0,o=0,s=0,a=0,c=0,l=0,f=0;return n>3&&(i=this.readInt16(),o=this.readInt8(),s=this.readInt8(),r=[u(4,i),u(2,o),u(2,s)].join("-")),n>6&&(a=this.readInt8(),c=this.readInt8(),l=this.readInt8(),r+=`${t||" "}${[u(2,a),u(2,c),u(2,l)].join(":")}`),n>10&&(f=this.readInt32(),r+=".",e&&(f=u(6,f),f.length>e&&(f=f.substring(0,e))),r+=f),r}readTimeString(e){const t=this.readInt8();if(0===t)return"00:00:00";const n=this.readInt8()?-1:1;let r=0,i=0,o=0,s=0,a=0;return t>6&&(r=this.readInt32(),i=this.readInt8(),o=this.readInt8(),s=this.readInt8()),t>10&&(a=this.readInt32()),e?(i+=24*r,o+=60*i,s+=60*o,a+=1e3*s,a*=n,a):(-1===n?"-":"")+[u(2,24*r+i),u(2,o),u(2,s)].join(":")+(a?("."+a).replace(/0+$/,""):"")}readLengthCodedString(e){const t=this.readLengthCodedNumber();return null===t?null:(this.offset+=t,s.decode(this.buffer,e,this.offset-t,this.offset))}readLengthCodedBuffer(){const e=this.readLengthCodedNumber();return null===e?null:this.readBuffer(e)}readNullTerminatedString(e){const t=this.offset;let n=this.offset;for(;this.buffer[n];)n+=1;return this.offset=n+1,s.decode(this.buffer,e,t,n)}readString(e,t){return"string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e&&(e=this.end-this.offset),this.offset+=e,s.decode(this.buffer,t,this.offset-e,this.offset)}parseInt(e,t){if(null===e)return null;if(e>=14&&!t){const t=this.buffer.toString("ascii",this.offset,this.offset+e);return this.offset+=e,Number(t)}let n=0;const r=this.offset,i=this.offset+e;let o,s=1;if(0===e)return 0;this.buffer[this.offset]===c&&(this.offset++,s=-1);const a=i-this.offset;if(t){if(a>=15)return o=this.readString(i-this.offset,"binary"),n=parseInt(o,10),n.toString()===o?s*n:-1===s?"-"+o:o;if(a>16)return o=this.readString(i-this.offset),-1===s?"-"+o:o}for(this.buffer[this.offset]===l&&this.offset++;this.offset0;o--)r=l?e.readDoubleLE(t):e.readDoubleBE(t),t+=8,i=l?e.readDoubleLE(t):e.readDoubleBE(t),t+=8,c.push({x:r,y:i});break;case 3:const f=l?e.readUInt32LE(t):e.readUInt32BE(t);for(t+=4,c=[],o=f;o>0;o--){for(a=l?e.readUInt32LE(t):e.readUInt32BE(t),t+=4,u=[],s=a;s>0;s--)r=l?e.readDoubleLE(t):e.readDoubleBE(t),t+=8,i=l?e.readDoubleLE(t):e.readDoubleBE(t),t+=8,u.push({x:r,y:i});c.push(u)}break;case 4:case 5:case 6:case 7:const _=l?e.readUInt32LE(t):e.readUInt32BE(t);for(t+=4,c=[],o=_;o>0;o--)c.push(n())}return c}()}parseDate(e){const t=this.readLengthCodedNumber();if(null===t)return null;if(10!==t)return new Date(NaN);const n=this.parseInt(4);this.offset++;const r=this.parseInt(2);this.offset++;const i=this.parseInt(2);return e&&"local"!==e?"Z"===e?new Date(Date.UTC(n,r-1,i)):new Date(`${u(4,n)}-${u(2,r)}-${u(2,i)}T00:00:00${e}`):new Date(n,r-1,i)}parseDateTime(e){const t=this.readLengthCodedString("binary");return null===t?null:e&&"local"!==e?new Date(`${t}${e}`):new Date(t)}parseFloat(e){if(null===e)return null;let t=0;const n=this.offset+e;let r=1,i=!1,o=0;if(0===e)return 0;for(this.buffer[this.offset]===c&&(this.offset++,r=-1),this.buffer[this.offset]===l&&this.offset++;this.offset>8)}writeInt16(e){this.buffer.writeUInt16LE(e,this.offset),this.offset+=2}writeInt8(e){this.buffer.writeUInt8(e,this.offset),this.offset++}writeDouble(e){this.buffer.writeDoubleLE(e,this.offset),this.offset+=8}writeBuffer(e){e.copy(this.buffer,this.offset),this.offset+=e.length}writeNull(){this.buffer[this.offset]=251,this.offset++}writeNullTerminatedString(e,t){const n=s.encode(e,t);this.buffer.length&&n.copy(this.buffer,this.offset),this.offset+=n.length,this.writeInt8(0)}writeString(e,t){if(null===e)return void this.writeInt8(251);if(0===e.length)return;const n=s.encode(e,t);this.buffer.length&&n.copy(this.buffer,this.offset),this.offset+=n.length}writeLengthCodedString(e,t){const n=s.encode(e,t);this.writeLengthCodedNumber(n.length),this.buffer.length&&n.copy(this.buffer,this.offset),this.offset+=n.length}writeLengthCodedBuffer(e){this.writeLengthCodedNumber(e.length),e.copy(this.buffer,this.offset),this.offset+=e.length}writeLengthCodedNumber(e){return e<251?this.writeInt8(e):e<65535?(this.writeInt8(252),this.writeInt16(e)):e<16777215?(this.writeInt8(253),this.writeInt24(e)):null===e?this.writeInt8(251):(this.writeInt8(254),this.buffer.writeUInt32LE(e,this.offset),this.offset+=4,this.buffer.writeUInt32LE(e>>32,this.offset),this.offset+=4,this.offset)}writeDate(e,t){if(this.buffer.writeUInt8(11,this.offset),t&&"local"!==t){if("Z"!==t){const n=("-"===t[0]?-1:1)*(60*parseInt(t.substring(1,3),10)+parseInt(t.substring(4),10));0!==n&&(e=new Date(e.getTime()+6e4*n))}this.buffer.writeUInt16LE(e.getUTCFullYear(),this.offset+1),this.buffer.writeUInt8(e.getUTCMonth()+1,this.offset+3),this.buffer.writeUInt8(e.getUTCDate(),this.offset+4),this.buffer.writeUInt8(e.getUTCHours(),this.offset+5),this.buffer.writeUInt8(e.getUTCMinutes(),this.offset+6),this.buffer.writeUInt8(e.getUTCSeconds(),this.offset+7),this.buffer.writeUInt32LE(1e3*e.getUTCMilliseconds(),this.offset+8)}else this.buffer.writeUInt16LE(e.getFullYear(),this.offset+1),this.buffer.writeUInt8(e.getMonth()+1,this.offset+3),this.buffer.writeUInt8(e.getDate(),this.offset+4),this.buffer.writeUInt8(e.getHours(),this.offset+5),this.buffer.writeUInt8(e.getMinutes(),this.offset+6),this.buffer.writeUInt8(e.getSeconds(),this.offset+7),this.buffer.writeUInt32LE(1e3*e.getMilliseconds(),this.offset+8);this.offset+=12}writeHeader(e){const t=this.offset;this.offset=0,this.writeInt24(this.buffer.length-4),this.writeInt8(e),this.offset=t}clone(){return new E(this.sequenceId,this.buffer,this.start,this.end)}type(){return this.isEOF()?"EOF":this.isError()?"Error":0===this.buffer[this.offset]?"maybeOK":""}static lengthCodedNumberLength(e){return e<251?1:e<65535?3:e<16777215?5:9}static lengthCodedStringLength(e,t){const n=s.encode(e,t).length;return E.lengthCodedNumberLength(n)+n}static MockBuffer(){const e=function(){},t=Buffer.alloc(0);for(const n in i.prototype)"function"==typeof t[n]&&(t[n]=e);return t}}e.exports=E},function(e,t,n){"use strict";Object.defineProperty(t,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(t,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(t,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(t,"configs",{value:n(266)})},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(r||(r={}))},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(24),i={};function o(){return Object(r.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}},function(e,t,n){"use strict";var r,i,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mainLogger=void 0;const s=n(16),a=o(n(30)),{createLogger:u,transports:c,format:l}=n(264);t.mainLogger=u({level:null!==(r=s.config.debug.level)&&void 0!==r?r:"info",silent:null!==(i=!s.config.debug.enabled)&&void 0!==i&&i,transports:[new c.File({filename:""+a.default.join(GetResourcePath(GetCurrentResourceName()),"sv_npwd.log"),format:l.combine(l.errors({stack:!0}),l.timestamp(),l.json())}),new c.Console({format:l.combine(l.label({label:"[NPWD]"}),l.colorize({all:!0}),l.printf(e=>{return e.module?`${e.label} ${t=e.module,`[${t}]`} [${e.level}]: ${e.message}`:`${e.label} [${e.level}]: ${e.message}`;var t}))})]})},,function(e,t,n){"use strict";class r extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${e.toString().split("\n")[0]}\n`),Error.captureStackTrace(this,r)}}e.exports=e=>{if(e.length>2)throw new r(e);function t(e={}){this.options=e}function n(e){return new t(e)}return t.prototype.transform=e,n.Format=t,n}},function(e,t,n){"use strict";var r=n(161),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n"}try{a.currentTarget=Object(o.a)(s.currentTarget)?Object(i.a)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(e){a.currentTarget=""}for(var u in"undefined"!=typeof CustomEvent&&Object(o.d)(e,CustomEvent)&&(a.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u]);return a}return e}function _(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function d(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=p(e,t);return _(r)>n?d(e,t-1,n):r}function E(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(o.i)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(a.a)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function h(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new s),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=E(e);return Object(o.f)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=E(t,e);if(Object(o.f)(i))return i;var a=f(t),u=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[c]=h(c,a[c],n-1,r));return r.unmemoize(t),u}function p(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return h(e,n,t)})))}catch(e){return"**non-serializable**"}}function R(e,t){void 0===t&&(t=40);var n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(u.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(u.d)(i,t)}return""}function g(e){var t,n;if(Object(o.e)(e)){var i=e,s={};try{for(var a=Object(r.h)(Object.keys(i)),u=a.next();!u.done;u=a.next()){var c=u.value;void 0!==i[c]&&(s[c]=g(i[c]))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return s}return Array.isArray(e)?e.map(g):e}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0;const s=n(386),a=n(75);t.config=a.config,n(60),n(322),n(354),n(358),n(362),n(365),n(368),n(370),n(371),n(374),n(378);const u=n(10),c=o(n(384));t.config.debug.sentryEnabled&&c.init({dsn:"https://5c5da180a57e4db1acb617ef2c6cb59f@sentry.projecterror.dev/3",integrations:[new s.RewriteFrames],release:process.env.SENTRY_RELEASE||"0.0.0",tracesSampleRate:1}),on("onServerResourceStart",e=>{e===GetCurrentResourceName()&&u.mainLogger.info("Sucessfully started")})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(323),s=n(89),a=n(325),u=i(n(156)),c=n(326),l=i(n(327)),f=n(57),_=i(n(157));n(353);const d=new class{constructor(){this.playersBySource=new u.default,this.playersByIdentifier=new u.default,this.playerDB=l.default,f.playerLogger.debug("Player Service started")}addPlayerToMaps(e,t){this.playersBySource.set(e,t),this.playersByIdentifier.set(t.getIdentifier(),t)}deletePlayerFromMaps(e){const t=this.playersBySource.get(e).getIdentifier();this.playersByIdentifier.delete(t),this.playersBySource.delete(e)}getPlayer(e){const t=this.playersBySource.get(e);return t||null}getIdentifier(e){return this.getPlayer(e).getIdentifier()}getPlayerFromIdentifier(e){const t=this.playersByIdentifier.get(e);return t||null}getIdentifierFromPhoneNumber(e,t){return r(this,void 0,void 0,(function*(){const n=this.playersBySource.find(t=>t.getPhoneNumber()===e);if(n)return n.getIdentifier();if(t){return yield this.playerDB.fetchIdentifierFromPhoneNumber(e).catch(t=>(f.playerLogger.error(`Failed to fetch identifier from phone number for ${e}, error: ${t.message}`),null))}return null}))}handleNewPlayerJoined(e){return r(this,void 0,void 0,(function*(){const t=(0,c.getPlayerGameLicense)(e);if(!t)throw new Error(`License identifier could not be found for source (${e})`);const n=GetPlayerName(e.toString());f.playerLogger.info(`Started loading for ${n} (${e})`);const r=yield(0,o.findOrGeneratePhoneNumber)(t),i=new a.Player({identifier:t,source:e,username:n,phoneNumber:r});this.addPlayerToMaps(e,i),f.playerLogger.info("NPWD Player Loaded!"),f.playerLogger.debug(i),emitNet(s.PhoneEvents.SET_PLAYER_LOADED,e,!0)}))}createNewPlayer({src:e,identifier:t,phoneNumber:n}){return r(this,void 0,void 0,(function*(){const r=GetPlayerName(e.toString());return n||(n=yield(0,o.findOrGeneratePhoneNumber)(t))?new a.Player({source:e,identifier:t,phoneNumber:n,username:r}):null}))}handleNewPlayerEvent({source:e,identifier:t,phoneNumber:n,firstname:i,lastname:o}){return r(this,void 0,void 0,(function*(){const r=yield this.createNewPlayer({src:e,identifier:t.toString(),phoneNumber:n});i&&r.setFirstName(i),o&&r.setLastName(o),this.addPlayerToMaps(e,r),f.playerLogger.info(`New NPWD Player added through event (${e}) (${t})`),f.playerLogger.debug(r),emitNet(s.PhoneEvents.SET_PLAYER_LOADED,e,!0)}))}getIdentifierByPhoneNumber(e,t){return r(this,void 0,void 0,(function*(){for(const[t,n]of this.playersBySource)if(n.getPhoneNumber()===e)return n.getIdentifier();if(t)return yield this.playerDB.fetchIdentifierFromPhoneNumber(e)}))}clearPlayerData(e){return r(this,void 0,void 0,(function*(){const t=this.getIdentifier(e);try{yield _.default.handleDeleteListingsOnDrop(t)}catch(e){f.playerLogger.error("Failed to clear player data when dropped, Error: "+e.message)}}))}handleUnloadPlayerEvent(e){return r(this,void 0,void 0,(function*(){yield this.clearPlayerData(e),this.deletePlayerFromMaps(e),emitNet(s.PhoneEvents.SET_PLAYER_LOADED,e,!1),f.playerLogger.info(`Unloaded NPWD Player, source: (${e})`)}))}};t.default=d},,function(e,t,n){"use strict";const r=n(63),i={AuthSwitchRequest:n(215),AuthSwitchRequestMoreData:n(216),AuthSwitchResponse:n(217),BinaryRow:n(218),BinlogDump:n(219),ChangeUser:n(220),CloseStatement:n(221),ColumnDefinition:n(222),Execute:n(223),Handshake:n(225),HandshakeResponse:n(226),PrepareStatement:n(227),PreparedStatementHeader:n(228),Query:n(229),RegisterSlave:n(230),ResultSetHeader:n(231),SSLRequest:n(234),TextRow:n(235)};Object.entries(i).forEach(([t,n])=>{if(e.exports[t]=n,r.env.NODE_DEBUG&&n.prototype.toPacket){const e=n.prototype.toPacket;n.prototype.toPacket=function(){const n=e.call(this);return n._name=t,n}}});const o=n(5);t.Packet=o;t.OK=class{static toPacket(e,t){const n=(e=e||{}).affectedRows||0,r=e.insertId||0,i=e.serverStatus||0,s=e.warningCount||0,a=e.message||"";let u=9+o.lengthCodedNumberLength(n);u+=o.lengthCodedNumberLength(r);const c=Buffer.allocUnsafe(u),l=new o(0,c,0,u);return l.offset=4,l.writeInt8(0),l.writeLengthCodedNumber(n),l.writeLengthCodedNumber(r),l.writeInt16(i),l.writeInt16(s),l.writeString(a,t),l._name="OK",l}};t.EOF=class{static toPacket(e,t){void 0===e&&(e=0),void 0===t&&(t=0);const n=new o(0,Buffer.allocUnsafe(9),0,9);return n.offset=4,n.writeInt8(254),n.writeInt16(e),n.writeInt16(t),n._name="EOF",n}};class s{static toPacket(e,t){const n=13+Buffer.byteLength(e.message,"utf8"),r=new o(0,Buffer.allocUnsafe(n),0,n);return r.offset=4,r.writeInt8(255),r.writeInt16(e.code),r.writeString("#_____",t),r.writeString(e.message,t),r._name="Error",r}static fromPacket(e){e.readInt8();const t=e.readInt16();e.readString(1,"ascii"),e.readString(5,"ascii");const n=e.readNullTerminatedString("utf8"),r=new s;return r.message=n,r.code=t,r}}t.Error=s},function(e,t,n){"use strict";const r=n(25).EventEmitter,i=n(78);e.exports=class extends r{constructor(){super(),this.next=null}stateName(){const e=this.next;for(const t in this)if(this[t]===e&&"next"!==t)return t;return"unknown name"}execute(e,t){if(this.next||(this.next=this.start,t._resetSequenceId()),e&&e.isError()){const n=e.asError(t.clientEncoding);return n.sql=this.sql||this.query,this.queryTimeout&&(i.clearTimeout(this.queryTimeout),this.queryTimeout=null),this.onResult?(this.onResult(n),this.emit("end")):(this.emit("error",n),this.emit("end")),!0}return this.next=this.next(e,t),!this.next&&(this.emit("end"),!0)}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(60),o=n(10),s=n(16),a=n(324),u=GetCurrentResourceName();const c=new class{constructor(){this.logger=o.mainLogger.child({module:"DBInterface"})}_internalQuery(e,t){return r(this,void 0,void 0,(function*(){try{return s.config.database.profileQueries?yield(0,a.withProfile)(i.pool.execute,e,t):(ScheduleResourceTick(u),yield i.pool.query(e,t))}catch(t){this.logger.error(`Error executing ${e} with error message ${t.message}`)}}))}_rawExec(e,t){return ScheduleResourceTick(u),i.pool.query(e,t)}exec(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield this._internalQuery(e,t);return n.affectedRows}))}insert(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield this._internalQuery(e,t);return n.insertId}))}fetch(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield this._internalQuery(e,t);return n}))}};t.default=c},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("url")},function(e,t,n){"use strict";(function(e){function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}function o(t){var n;try{n=i(e,t)}catch(e){}try{var r=i(e,"process").cwd;n=i(e,r()+"/node_modules/"+t)}catch(e){}return n}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}))}).call(this,n(74)(e))},function(e,t){e.exports=require("events")},function(e,t,n){"use strict";e.exports={SLEEP:0,QUIT:1,INIT_DB:2,QUERY:3,FIELD_LIST:4,CREATE_DB:5,DROP_DB:6,REFRESH:7,SHUTDOWN:8,STATISTICS:9,PROCESS_INFO:10,CONNECT:11,PROCESS_KILL:12,DEBUG:13,PING:14,TIME:15,DELAYED_INSERT:16,CHANGE_USER:17,BINLOG_DUMP:18,TABLE_DUMP:19,CONNECT_OUT:20,REGISTER_SLAVE:21,STMT_PREPARE:22,STMT_EXECUTE:23,STMT_SEND_LONG_DATA:24,STMT_CLOSE:25,STMT_RESET:26,SET_OPTION:27,STMT_FETCH:28,DAEMON:29,BINLOG_DUMP_GTID:30,UNKNOWN:255}},function(e,t,n){"use strict";e.exports=["utf8","big5","latin2","dec8","cp850","latin1","hp8","koi8r","latin1","latin2","swe7","ascii","eucjp","sjis","cp1251","latin1","hebrew","utf8","tis620","euckr","latin7","latin2","koi8u","cp1251","gb2312","greek","cp1250","latin2","gbk","cp1257","latin5","latin1","armscii8","cesu8","cp1250","ucs2","cp866","keybcs2","macintosh","macroman","cp852","latin7","latin7","macintosh","cp1250","utf8","utf8","latin1","latin1","latin1","cp1251","cp1251","cp1251","macroman","utf16","utf16","utf16-le","cp1256","cp1257","cp1257","utf32","utf32","utf16-le","binary","armscii8","ascii","cp1250","cp1256","cp866","dec8","greek","hebrew","hp8","keybcs2","koi8r","koi8u","cesu8","latin2","latin5","latin7","cp850","cp852","swe7","cesu8","big5","euckr","gb2312","gbk","sjis","tis620","ucs2","eucjp","geostd8","geostd8","latin1","cp932","cp932","eucjpms","eucjpms","cp1250","utf8","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf8","utf8","utf8","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","utf8","utf8","utf8","utf8","utf8","utf8","utf8","ucs2","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","cesu8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","gb18030","gb18030","gb18030","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8"]},function(e,t){e.exports=require("buffer")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t,n){"use strict";var r,i=n(28),o=i.Buffer,s={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(s[r]=i[r]);var a=s.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(a[r]=o[r]);if(s.Buffer.prototype=o.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,n)}),a.alloc||(a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=o(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!s.kStringMaxLength)try{s.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),e.exports=s},function(e,t,n){try{var r=n(8);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(286)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emitNetTyped=t.onNetTyped=t.clean=t.getSource=void 0;t.getSource=()=>global.source;t.clean=e=>e?e.replace(/[^0-9a-z]/gi,""):e;t.onNetTyped=(e,t)=>onNet(e,t);t.emitNetTyped=(e,t,n)=>{if(n)return emitNet(e,n,t);emitNet(e,t)}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.onNetPromise=void 0;const i=n(33),o=n(10).mainLogger.child({module:"events"});t.onNetPromise=function(e,t){onNet(e,(n,s)=>r(this,void 0,void 0,(function*(){const r=process.hrtime.bigint(),a=(0,i.getSource)();if(!n)return o.warn(`Promise event (${e}) was called with wrong struct by ${a} (maybe originator wasn't a promiseEvent`);const u={source:a,data:s};o.silly(`netPromise > ${e} > RequestObj`),o.silly(u);const c=e=>{const t=process.hrtime.bigint(),i=Number(t-r)/1e6;emitNet(n,a,e),o.silly(`Response Promise Event ${n} (${i}ms), Data >>`),o.silly(e)};Promise.resolve(t(u,c)).catch(t=>{o.error(`An error occured for a onNetPromise (${e}), Error: ${t.message}`),c({status:"error",errorMsg:"UNKNOWN_ERROR"})})})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return A}));var r=n(0),i=n(390),o=n(97),s=n(51),a=n(3),u=n(9),c=n(24),l=n(72),f=n(15),_=function(){function e(e){this.errors=0,this.sid=Object(o.i)(),this.duration=0,this.status=i.b.Ok,this.init=!0,this.ignoreDuration=!1;var t=Object(s.c)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Object(s.c)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:Object(o.i)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===i.b.Ok?this.update({status:i.b.Exited}):this.update()},e.prototype.toJSON=function(){return Object(f.a)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(f.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),d=function(){function e(e,t,n){void 0===t&&(t=new l.a),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version{n.indexOf(i)>=0&&!t.listenerCount(i)&&e.on(i,r[i]=function(){const e=[].slice.call(arguments);e.unshift(i),t.emit.apply(t,e)})}).on("removeListener",i=>{n.indexOf(i)>=0&&!t.listenerCount(i)&&(e.removeListener(i,r[i]),delete r[i])})}class a{constructor(e,t){this.statement=e,this.Promise=t}execute(e){const t=this.statement,n=new Error;return new this.Promise((r,i)=>{const s=o(r,i,n);e?t.execute(e,s):t.execute(s)})}close(){return new this.Promise(e=>{this.statement.close(),e()})}}class u extends i{constructor(e,t){super(),this.connection=e,this.Promise=t||Promise,s(e,this,["error","drain","connect","end","enqueue"])}release(){this.connection.release()}query(e,t){const n=this.connection,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);void 0!==t?n.query(e,t,a):n.query(e,a)})}execute(e,t){const n=this.connection,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);void 0!==t?n.execute(e,t,a):n.execute(e,a)})}end(){return new this.Promise(e=>{this.connection.end(e)})}beginTransaction(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{const i=o(n,r,t);e.beginTransaction(i)})}commit(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{const i=o(n,r,t);e.commit(i)})}rollback(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{const i=o(n,r,t);e.rollback(i)})}ping(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{const i=o(n,r,t);e.ping(i)})}connect(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{e.connect((e,i)=>{e?(t.message=e.message,t.code=e.code,t.errno=e.errno,t.sqlState=e.sqlState,t.sqlMessage=e.sqlMessage,r(t)):n(i)})})}prepare(e){const t=this.connection,n=this.Promise,r=new Error;return new this.Promise((i,o)=>{t.prepare(e,(e,t)=>{if(e)r.message=e.message,r.code=e.code,r.errno=e.errno,r.sqlState=e.sqlState,r.sqlMessage=e.sqlMessage,o(r);else{const e=new a(t,n);i(e)}})})}changeUser(e){const t=this.connection,n=new Error;return new this.Promise((r,i)=>{t.changeUser(e,e=>{e?(n.message=e.message,n.code=e.code,n.errno=e.errno,n.sqlState=e.sqlState,n.sqlMessage=e.sqlMessage,i(n)):r()})})}get config(){return this.connection.config}get threadId(){return this.connection.threadId}}!function(e){for(let t=0;e&&t{e.getConnection((e,r)=>{e?n(e):t(new c(r,this.Promise))})})}query(e,t){const n=this.pool,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);void 0!==t?n.query(e,t,a):n.query(e,a)})}execute(e,t){const n=this.pool,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);t?n.execute(e,t,a):n.execute(e,a)})}end(){const e=this.pool,t=new Error;return new this.Promise((n,r)=>{e.end(e=>{e?(t.message=e.message,t.code=e.code,t.errno=e.errno,t.sqlState=e.sqlState,t.sqlMessage=e.sqlMessage,r(t)):n()})})}}!function(e){for(let t=0;e&&t{e.getConnection((e,r)=>{e?n(e):t(new c(r,this.Promise))})})}query(e,t){const n=this.poolCluster,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);n.query(e,t,a)})}execute(e,t){const n=this.poolCluster,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);n.execute(e,t,a)})}of(e,t){return new f(this.poolCluster.of(e,t),this.Promise)}end(){const e=this.poolCluster,t=new Error;return new this.Promise((n,r)=>{e.end(e=>{e?(t.message=e.message,t.code=e.code,t.errno=e.errno,t.sqlState=e.sqlState,t.sqlMessage=e.sqlMessage,r(t)):n()})})}}!function(e){for(let t=0;e&&t{t.once("connect",()=>{e(new u(t,i))}),t.once("error",e=>{n.message=e.message,n.code=e.code,n.errno=e.errno,n.sqlState=e.sqlState,r(n)})})},t.createPool=function(e){const t=r.createPool(e),n=e.Promise||Promise;if(!n)throw new Error("no Promise implementation available.Use promise-enabled node version or pass userland Promise implementation as parameter, for example: { Promise: require('bluebird') }");return new l(t,n)},t.createPoolCluster=function(e){const t=r.createPoolCluster(e),n=e&&e.Promise||Promise;if(!n)throw new Error("no Promise implementation available.Use promise-enabled node version or pass userland Promise implementation as parameter, for example: { Promise: require('bluebird') }");return new f(t,n)},t.escape=r.escape,t.escapeId=r.escapeId,t.format=r.format,t.raw=r.raw,t.PromisePool=l,t.PromiseConnection=u,t.PromisePoolConnection=c},function(e,t){e.exports=require("stream")},function(e,t,n){"use strict";t.LONG_PASSWORD=1,t.FOUND_ROWS=2,t.LONG_FLAG=4,t.CONNECT_WITH_DB=8,t.NO_SCHEMA=16,t.COMPRESS=32,t.ODBC=64,t.LOCAL_FILES=128,t.IGNORE_SPACE=256,t.PROTOCOL_41=512,t.INTERACTIVE=1024,t.SSL=2048,t.IGNORE_SIGPIPE=4096,t.TRANSACTIONS=8192,t.RESERVED=16384,t.SECURE_CONNECTION=32768,t.MULTI_STATEMENTS=65536,t.MULTI_RESULTS=131072,t.PS_MULTI_RESULTS=262144,t.PLUGIN_AUTH=524288,t.CONNECT_ATTRS=1048576,t.PLUGIN_AUTH_LENENC_CLIENT_DATA=2097152,t.CAN_HANDLE_EXPIRED_PASSWORDS=4194304,t.SESSION_TRACK=8388608,t.DEPRECATE_EOF=16777216,t.SSL_VERIFY_SERVER_CERT=1073741824,t.REMEMBER_OPTIONS=2147483648},function(e,t,n){"use strict";const r={};function i(e,t,n){n||(n=Error);class i extends n{constructor(e,n,r){super(function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(e,n,r))}}i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map(e=>String(e)),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){let r;var i,s;let a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a=`The ${e} ${r} ${o(t,"type")}`;else{a=`The "${e}" ${function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument"} ${r} ${o(t,"type")}`}return a+=". Received type "+typeof n,a}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p}));var r=n(0),i=n(35),o=n(73),s=n(3),a=n(24),u=n(189),c=n(48),l=n(49),f=n(2);function _(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function d(e,t,n){return Object(f.c)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:o.a.Explicit}}),e):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:o.a.Sampler,rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:o.a.Inheritance}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:o.a.Rate,rate:Number(r)}})),function(e){if(isNaN(e)||"number"!=typeof e&&"boolean"!=typeof e)return s.b.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return s.b.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(r)?r?(e.sampled=Math.random()0&&(t.__SENTRY__.integrations=Object(r.g)(t.__SENTRY__.integrations||[],o))}}(),Object(u.a)()}}).call(this,n(74)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(0),i=n(97),o=n(51),s=n(15),a=n(7),u=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),c=function(){function e(e){if(this.traceId=Object(i.i)(),this.spanId=Object(i.i)().substring(16),this.startTimestamp=Object(o.d)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e(Object(r.a)(Object(r.a)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=Object(r.a)(Object(r.a)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=Object(r.a)(Object(r.a)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=a.a.fromHttpCode(e);return t!==a.a.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===a.a.Ok},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:Object(o.d)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return Object(s.a)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,i,o;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(i=e.tags)?i:{},this.traceId=null!=(o=e.traceId)?o:this.traceId,this},e.prototype.getTraceContext=function(){return Object(s.a)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return Object(s.a)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var r=n(4);function i(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o=3?(o.b.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(a.a.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;o.b.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(u.a);function _(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(35),o=n(387),s=n(4),a=n(3),u=n(15),c=n(43),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=Object(i.b)(),Object(s.d)(n,i.a)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return Object(r.c)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new c.b(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=Object(r.a)({},e)},t.prototype.setMetadata=function(e){this.metadata=Object(r.a)(Object(r.a)({},this.metadata),e)},t.prototype.finish=function(t){var n,r,i,s,u,c=this;if(void 0===this.endTimestamp){if(this.name||(a.b.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0!==this.sampled)return a.b.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(null===(u=null===(i=null===(n=this._hub.getClient())||void 0===n?void 0:(r=n).getTransport)||void 0===i?void 0:(s=i.call(r)).recordLostEvent)||void 0===u||u.call(s,o.a.SampleRate,"transaction"));var l=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==c&&e.endTimestamp})):[];this._trimEnd&&l.length>0&&(this.endTimestamp=l.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var f={contexts:{trace:this.getTraceContext()},spans:l,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata};return Object.keys(this._measurements).length>0&&(a.b.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),f.measurements=this._measurements),a.b.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(f)}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return Object(u.a)(Object(r.a)(Object(r.a)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(c.a)},function(e,t){e.exports=require("domain")},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return f}));var r=n(9),i=n(24),o={nowSeconds:function(){return Date.now()/1e3}};var s=Object(i.b)()?function(){try{return Object(i.a)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=Object(r.a)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),a=void 0===s?o:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},u=o.nowSeconds.bind(o),c=a.nowSeconds.bind(a),l=c,f=function(){var e=Object(r.a)().performance;if(e&&e.now){var t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=i<36e5,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+t-n):36e5;return o||a<36e5?i<=a?("timeOrigin",e.timeOrigin):("navigationStart",s):("dateNow",n)}"none"}()}).call(this,n(74)(e))},function(e,t,n){"use strict";t.DECIMAL=0,t.TINY=1,t.SHORT=2,t.LONG=3,t.FLOAT=4,t.DOUBLE=5,t.NULL=6,t.TIMESTAMP=7,t.LONGLONG=8,t.INT24=9,t.DATE=10,t.TIME=11,t.DATETIME=12,t.YEAR=13,t.NEWDATE=14,t.VARCHAR=15,t.BIT=16,t.JSON=245,t.NEWDECIMAL=246,t.ENUM=247,t.SET=248,t.TINY_BLOB=249,t.MEDIUM_BLOB=250,t.LONG_BLOB=251,t.BLOB=252,t.VAR_STRING=253,t.STRING=254,t.GEOMETRY=255},function(e,t,n){var r=n(37);"disable"===process.env.READABLE_STREAM&&r?(e.exports=r.Readable,Object.assign(e.exports,r),e.exports.Stream=r):((t=e.exports=n(136)).Stream=r||t,t.Readable=t,t.Writable=n(140),t.Duplex=n(46),t.Transform=n(142),t.PassThrough=n(290),t.finished=n(85),t.pipeline=n(291))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise((r,i)=>{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)})}},e.exports=t.default},function(e,t,n){"use strict";const r=n(8),i=n(151),{LEVEL:o}=n(6),s=e.exports=function(e={}){i.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",e=>{this.levels=e.levels,this.parent=e}),this.once("unpipe",e=>{e===this.parent&&(this.parent=null,this.close&&this.close())})};r.inherits(s,i),s.prototype._write=function(e,t,n){if(this.silent||!0===e.exception&&!this.handleExceptions)return n(null);const r=this.level||this.parent&&this.parent.level;if(!r||this.levels[r]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,n);let t,r;try{r=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!r){if(n(),t)throw t;return}return this.log(r,n)}return n(null)},s.prototype._writev=function(e,t){if(this.logv){const n=e.filter(this._accept,this);return n.length?this.logv(n,t):t(null)}for(let n=0;n=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},s.prototype._nop=function(){},e.exports.LegacyTransportStream=n(150)},function(e,t,n){"use strict";const r={};function i(e,t,n){n||(n=Error);class i extends n{constructor(e,n,r){super(function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(e,n,r))}}i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map(e=>String(e)),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){let r;var i,s;let a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a=`The ${e} ${r} ${o(t,"type")}`;else{a=`The "${e}" ${function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument"} ${r} ${o(t,"type")}`}return a+=". Received type "+typeof n,a}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProfileNames=t.playerLogger=void 0;const o=n(10),s=i(n(17));t.playerLogger=o.mainLogger.child({module:"player"});t.getDefaultProfileNames=function(e){return r(this,void 0,void 0,(function*(){const t=[],n=s.default.getPlayer(e);return n.getFirstName()&&n.getLastName()?t.push(`${n.getFirstName()}_${n.getLastName()}`):n.getFirstName()?t.push(n.getFirstName()):n.getLastName()&&t.push(n.getLastName()),n.getPhoneNumber()&&t.push(n.getPhoneNumber()),t}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAndFilterImage=void 0;const r=n(16),i=new RegExp(r.config.imageSafety.safeImageUrls.join("|"));t.checkAndFilterImage=e=>{const t=e.trim();return""==t?t:r.config.imageSafety.filterUnsafeImageUrls?i.test(t)?t:r.config.imageSafety.embedUnsafeImages?`${r.config.imageSafety.embedUrl}?url=${e}`:null:t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r,i=n(4);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var o=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&(Object(i.j)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==r.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===r.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===r.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,s){e.resolve(t).then((function(e){o[s]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}()},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withTransaction=t.pool=t.generateConnectionPool=void 0;const o=i(n(36)),s=n(263),a=n(10),u=GetConvar(s.CONNECTION_STRING,"none");if("none"===u){const e=new Error(`No connection string provided. make sure "${s.CONNECTION_STRING}" is set in your config.`);throw a.mainLogger.error(e.message),e}function c(){try{const e=u.includes("mysql://")?{uri:u}:(0,s.parseSemiColonFormat)(u);return o.default.createPool(Object.assign({connectTimeout:6e4},e))}catch(e){a.mainLogger.error("SQL Connection Pool Error: "+e.message,{connection:u})}}t.generateConnectionPool=c,t.pool=c(),t.withTransaction=function(e){return r(this,void 0,void 0,(function*(){const n=yield t.pool.getConnection();n.beginTransaction();try{const t=yield Promise.all(e);return yield n.commit(),yield n.release(),t}catch(e){return a.mainLogger.warn("Error when submitting queries in transaction, "+e.message),yield n.rollback(),yield n.release(),Promise.reject(e)}}))}},function(e,t,n){"use strict";const r=n(77),i=n(100),o=n(78),s=n(25).EventEmitter,a=n(37).Readable,u=n(101),c=n(99),l=n(102),f=n(103),_=n(19),d=n(236),E=n(65),h=n(27);let p=0,R=null;class g extends s{constructor(e){let t;if(super(),this.config=e.config,e.config.stream?"function"==typeof e.config.stream?this.stream=e.config.stream(e):this.stream=e.config.stream:e.config.socketPath?this.stream=r.connect(e.config.socketPath):(this.stream=r.connect(e.config.port,e.config.host),this.stream.setKeepAlive(!0,this.config.keepAliveInitialDelay)),this._internalId=p++,this._commands=new u,this._command=null,this._paused=!1,this._paused_packets=new u,this._statements=new l({max:this.config.maxPreparedStatements,dispose:function(e,t){t.close()}}),this.serverCapabilityFlags=0,this.authorized=!1,this.sequenceId=0,this.compressedSequenceId=0,this.threadId=null,this._handshakePacket=null,this._fatalError=null,this._protocolError=null,this._outOfOrderPackets=[],this.clientEncoding=h[this.config.charsetNumber],this.stream.on("error",this._handleNetworkError.bind(this)),this.packetParser=new f(e=>{this.handlePacket(e)}),this.stream.on("data",e=>{this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),this.packetParser.execute(e)}),this.stream.on("close",()=>{this._closing||(this._protocolError||(this._protocolError=new Error("Connection lost: The server closed the connection."),this._protocolError.fatal=!0,this._protocolError.code="PROTOCOL_CONNECTION_LOST"),this._notifyError(this._protocolError))}),this.config.isServer||(t=new d.ClientHandshake(this.config.clientFlags),t.on("end",()=>{!t.handshake||this._fatalError||this._protocolError||(this._handshakePacket=t.handshake,this.threadId=t.handshake.connectionId,this.emit("connect",t.handshake))}),t.on("error",e=>{this._closing=!0,this._notifyError(e)}),this.addCommand(t)),this.serverEncoding="utf8",this.config.connectTimeout){const e=this._handleTimeoutError.bind(this);this.connectTimeout=o.setTimeout(e,this.config.connectTimeout)}}promise(e){return new(0,n(36).PromiseConnection)(this,e)}_addCommandClosedState(e){const t=new Error("Can't add new command when connection is in closed state");t.fatal=!0,e.onResult?e.onResult(t):this.emit("error",t)}_handleFatalError(e){e.fatal=!0,this.stream.removeAllListeners("data"),this.addCommand=this._addCommandClosedState,this.write=()=>{this.emit("error",new Error("Can't write in closed state"))},this._notifyError(e),this._fatalError=e}_handleNetworkError(e){this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),"ECONNRESET"===e.errno&&this._closing||this._handleFatalError(e)}_handleTimeoutError(){this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),this.stream.destroy&&this.stream.destroy();const e=new Error("connect ETIMEDOUT");e.errorno="ETIMEDOUT",e.code="ETIMEDOUT",e.syscall="connect",this._handleNetworkError(e)}_notifyError(e){if(this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),this._fatalError)return;let t,n=!this._command;for(this._command&&this._command.onResult?(this._command.onResult(e),this._command=null):this._command&&this._command.constructor===d.ClientHandshake&&this._commands.length>0||(n=!0);t=this._commands.shift();)t.onResult?t.onResult(e):n=!0;(n||this._pool)&&this.emit("error",e),e.fatal&&this.close()}write(e){this.stream.write(e,e=>{e&&this._handleNetworkError(e)})||this.stream.emit("pause")}_resetSequenceId(){this.sequenceId=0,this.compressedSequenceId=0}_bumpCompressedSequenceId(e){this.compressedSequenceId+=e,this.compressedSequenceId%=256}_bumpSequenceId(e){this.sequenceId+=e,this.sequenceId%=256}writePacket(e){const t=e.length();let n,r,i;if(t<16777215)e.writeHeader(this.sequenceId),this.config.debug&&(console.log(`${this._internalId} ${this.connectionId} <== ${this._command._commandName}#${this._command.stateName()}(${[this.sequenceId,e._name,e.length()].join(",")})`),console.log(`${this._internalId} ${this.connectionId} <== ${e.buffer.toString("hex")}`)),this._bumpSequenceId(1),this.write(e.buffer);else for(this.config.debug&&(console.log(`${this._internalId} ${this.connectionId} <== Writing large packet, raw content not written:`),console.log(`${this._internalId} ${this.connectionId} <== ${this._command._commandName}#${this._command.stateName()}(${[this.sequenceId,e._name,e.length()].join(",")})`)),r=4;r<4+t;r+=16777215)n=e.buffer.slice(r,r+16777215),i=16777215===n.length?Buffer.from([255,255,255,this.sequenceId]):Buffer.from([255&n.length,n.length>>8&255,n.length>>16&255,this.sequenceId]),this._bumpSequenceId(1),this.write(i),this.write(n)}startTLS(e){this.config.debug&&console.log("Upgrading connection to TLS");const t=i.createSecureContext({ca:this.config.ssl.ca,cert:this.config.ssl.cert,ciphers:this.config.ssl.ciphers,key:this.config.ssl.key,passphrase:this.config.ssl.passphrase,minVersion:this.config.ssl.minVersion}),n=this.config.ssl.rejectUnauthorized;let r=!1;const o=new i.TLSSocket(this.stream,{rejectUnauthorized:n,requestCert:!0,secureContext:t,isServer:!1});o.on("_tlsError",t=>{r?this._handleNetworkError(t):e(t)}),o.on("secure",()=>{r=!0,e(n?o.ssl.verifyError():null)}),o.on("data",e=>{this.packetParser.execute(e)}),this.write=e=>{o.write(e)},o._start()}pipe(){this.stream instanceof r.Stream?this.stream.ondata=(e,t,n)=>{this.packetParser.execute(e,t,n)}:this.stream.on("data",e=>{this.packetParser.execute(e.parent,e.offset,e.offset+e.length)})}protocolError(e,t){if(this._closing)return;const n=new Error(e);n.fatal=!0,n.code=t||"PROTOCOL_ERROR",this.emit("error",n)}handlePacket(e){if(this._paused)return void this._paused_packets.push(e);if(e){if(this.sequenceId!==e.sequenceId){const t=new Error(`Warning: got packets out of order. Expected ${this.sequenceId} but received ${e.sequenceId}`);t.expected=this.sequenceId,t.received=e.sequenceId,this.emit("warn",t),console.error(t.message)}this._bumpSequenceId(e.numPackets)}if(this.config.debug&&e){console.log(" raw: "+e.buffer.slice(e.offset,e.offset+e.length()).toString("hex")),console.trace();const t=this._command?this._command._commandName:"(no command)",n=this._command?this._command.stateName():"(no command)";console.log(`${this._internalId} ${this.connectionId} ==> ${t}#${n}(${[e.sequenceId,e.type(),e.length()].join(",")})`)}if(!this._command){if(255===e.peekByte()){const t=_.Error.fromPacket(e);this.protocolError(t.message,t.code)}else this.protocolError("Unexpected packet while no commands in the queue","PROTOCOL_UNEXPECTED_PACKET");return void this.close()}this._command.execute(e,this)&&(this._command=this._commands.shift(),this._command&&(this.sequenceId=0,this.compressedSequenceId=0,this.handlePacket()))}addCommand(e){if(this.config.debug){const t=e.constructor.name;console.log("Add command: "+t),e._commandName=t}return this._command?this._commands.push(e):(this._command=e,this.handlePacket()),e}format(e,t){if("function"==typeof this.config.queryFormat)return this.config.queryFormat.call(this,e,t,this.config.timezone);const n={sql:e,values:t};return this._resolveNamedPlaceholders(n),c.format(n.sql,n.values,this.config.stringifyObjects,this.config.timezone)}escape(e){return c.escape(e,!1,this.config.timezone)}escapeId(e){return c.escapeId(e,!1)}raw(e){return c.raw(e)}_resolveNamedPlaceholders(e){let t;if(this.config.namedPlaceholders||e.namedPlaceholders){if(Array.isArray(e.values))return;null===R&&(R=n(257)()),t=R(e.sql,e.values),e.sql=t[0],e.values=t[1]}}query(e,t,n){let r;r=e.constructor===d.Query?e:g.createQuery(e,t,n,this.config),this._resolveNamedPlaceholders(r);const i=this.format(r.sql,void 0!==r.values?r.values:[]);return r.sql=i,this.addCommand(r)}pause(){this._paused=!0,this.stream.pause()}resume(){let e;for(this._paused=!1;e=this._paused_packets.shift();)if(this.handlePacket(e),this._paused)return;this.stream.resume()}prepare(e,t){return"string"==typeof e&&(e={sql:e}),this.addCommand(new d.Prepare(e,t))}unprepare(e){let t={};"object"==typeof e?t=e:t.sql=e;const n=g.statementKey(t),r=this._statements.get(n);return r&&(this._statements.del(n),r.close()),r}execute(e,t,n){let r={};if("object"==typeof e?(r=e,"function"==typeof t?n=t:r.values=r.values||t):"function"==typeof t?(n=t,r.sql=e,r.values=void 0):(r.sql=e,r.values=t),this._resolveNamedPlaceholders(r),r.values){if(!Array.isArray(r.values))throw new TypeError("Bind parameters must be array if namedPlaceholders parameter is not enabled");r.values.forEach(e=>{if(!Array.isArray(r.values))throw new TypeError("Bind parameters must be array if namedPlaceholders parameter is not enabled");if(void 0===e)throw new TypeError("Bind parameters must not contain undefined. To pass SQL NULL specify JS null");if("function"==typeof e)throw new TypeError("Bind parameters must not contain function(s). To pass the body of a function as a string call .toString() first")})}const i=new d.Execute(r,n),o=new d.Prepare(r,(e,t)=>{if(e)return i.start=function(){return null},n?n(e):i.emit("error",e),void i.emit("end");i.statement=t});return this.addCommand(o),this.addCommand(i),i}changeUser(e,t){t||"function"!=typeof e||(t=e,e={});const n=e.charset?E.getCharsetNumber(e.charset):this.config.charsetNumber;return this.addCommand(new d.ChangeUser({user:e.user||this.config.user,password:e.password||this.config.password,passwordSha1:e.passwordSha1||this.config.passwordSha1,database:e.database||this.config.database,timeout:e.timeout,charsetNumber:n,currentConfig:this.config},e=>{e&&(e.fatal=!0),t&&t(e)}))}beginTransaction(e){return this.query("START TRANSACTION",e)}commit(e){return this.query("COMMIT",e)}rollback(e){return this.query("ROLLBACK",e)}ping(e){return this.addCommand(new d.Ping(e))}_registerSlave(e,t){return this.addCommand(new d.RegisterSlave(e,t))}_binlogDump(e,t){return this.addCommand(new d.BinlogDump(e,t))}destroy(){this.close()}close(){this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),this._closing=!0,this.stream.end(),this.addCommand=this._addCommandClosedState}createBinlogStream(e){let t=1;const n=new a({objectMode:!0});return n._read=function(){return{data:t++}},this._registerSlave(e,()=>{const t=this._binlogDump(e);t.on("event",e=>{n.push(e)}),t.on("eof",()=>{n.push(null),e.flags&&1&e.flags&&this.close()})}),n}connect(e){if(!e)return;if(this._fatalError||this._protocolError)return e(this._fatalError||this._protocolError);if(this._handshakePacket)return e(null,this);let t=0;function n(n){return function(r){t||(n?e(r):e(null,r)),t=1}}this.once("error",n(!0)),this.once("connect",n(!1))}writeColumns(e){this.writePacket(_.ResultSetHeader.toPacket(e.length)),e.forEach(e=>{this.writePacket(_.ColumnDefinition.toPacket(e,this.serverConfig.encoding))}),this.writeEof()}writeTextRow(e){this.writePacket(_.TextRow.toPacket(e,this.serverConfig.encoding))}writeTextResult(e,t){this.writeColumns(t),e.forEach(e=>{const n=new Array(t.length);t.forEach(t=>{n.push(e[t.name])}),this.writeTextRow(n)}),this.writeEof()}writeEof(e,t){this.writePacket(_.EOF.toPacket(e,t))}writeOk(e){e||(e={affectedRows:0}),this.writePacket(_.OK.toPacket(e,this.serverConfig.encoding))}writeError(e){const t=this.serverConfig?this.serverConfig.encoding:"cesu8";this.writePacket(_.Error.toPacket(e,t))}serverHandshake(e){return this.serverConfig=e,this.serverConfig.encoding=h[this.serverConfig.characterSet],this.addCommand(new d.ServerHandshake(e))}end(e){if(this.config.isServer){this._closing=!0;const e=new s;return setImmediate(()=>{this.stream.end(),e.emit("end")}),e}const t=this.addCommand(new d.Quit(e));return this.addCommand=this._addCommandClosedState,t}static createQuery(e,t,n,r){let i={rowsAsArray:r.rowsAsArray};return"object"==typeof e?(i=e,"function"==typeof t?n=t:void 0!==t&&(i.values=t)):"function"==typeof t?(n=t,i.sql=e,i.values=void 0):(i.sql=e,i.values=t),new d.Query(i,n)}static statementKey(e){return`${typeof e.nestTables}/${e.nestTables}/${e.rowsAsArray}${e.sql}`}}i.TLSSocket||(g.prototype.startTLS=function(e){this.config.debug&&console.log("Upgrading connection to TLS");const t=n(22),r=this.config,o=this.stream,s=this.config.ssl.rejectUnauthorized,a=t.createCredentials({key:r.ssl.key,cert:r.ssl.cert,passphrase:r.ssl.passphrase,ca:r.ssl.ca,ciphers:r.ssl.ciphers}),u=i.createSecurePair(a,!1,!0,s);o.ondata&&(o.ondata=null),o.removeAllListeners("data"),o.pipe(u.encrypted),u.encrypted.pipe(o),u.cleartext.on("data",e=>{this.packetParser.execute(e)}),this.write=function(e){u.cleartext.write(e)},u.on("secure",()=>{e(s?u.ssl.verifyError():null)})}),e.exports=g},function(e,t,n){"use strict";const r=n(197);t.decode=function(e,t,n,i,o){if(Buffer.isEncoding(t))return e.toString(t,n,i);const s=r.getDecoder(t,o||{}),a=s.write(e.slice(n,i)),u=s.end();return u?a+u:a},t.encode=function(e,t,n){if(Buffer.isEncoding(t))return Buffer.from(e,t);const i=r.getEncoder(t,n||{}),o=i.write(e),s=i.end();return s&&s.length>0?Buffer.concat([o,s]):o}},function(e,t){e.exports=require("process")},function(e,t,n){"use strict";t.BIG5_CHINESE_CI=1,t.LATIN2_CZECH_CS=2,t.DEC8_SWEDISH_CI=3,t.CP850_GENERAL_CI=4,t.LATIN1_GERMAN1_CI=5,t.HP8_ENGLISH_CI=6,t.KOI8R_GENERAL_CI=7,t.LATIN1_SWEDISH_CI=8,t.LATIN2_GENERAL_CI=9,t.SWE7_SWEDISH_CI=10,t.ASCII_GENERAL_CI=11,t.UJIS_JAPANESE_CI=12,t.SJIS_JAPANESE_CI=13,t.CP1251_BULGARIAN_CI=14,t.LATIN1_DANISH_CI=15,t.HEBREW_GENERAL_CI=16,t.TIS620_THAI_CI=18,t.EUCKR_KOREAN_CI=19,t.LATIN7_ESTONIAN_CS=20,t.LATIN2_HUNGARIAN_CI=21,t.KOI8U_GENERAL_CI=22,t.CP1251_UKRAINIAN_CI=23,t.GB2312_CHINESE_CI=24,t.GREEK_GENERAL_CI=25,t.CP1250_GENERAL_CI=26,t.LATIN2_CROATIAN_CI=27,t.GBK_CHINESE_CI=28,t.CP1257_LITHUANIAN_CI=29,t.LATIN5_TURKISH_CI=30,t.LATIN1_GERMAN2_CI=31,t.ARMSCII8_GENERAL_CI=32,t.UTF8_GENERAL_CI=33,t.CP1250_CZECH_CS=34,t.UCS2_GENERAL_CI=35,t.CP866_GENERAL_CI=36,t.KEYBCS2_GENERAL_CI=37,t.MACCE_GENERAL_CI=38,t.MACROMAN_GENERAL_CI=39,t.CP852_GENERAL_CI=40,t.LATIN7_GENERAL_CI=41,t.LATIN7_GENERAL_CS=42,t.MACCE_BIN=43,t.CP1250_CROATIAN_CI=44,t.UTF8MB4_GENERAL_CI=45,t.UTF8MB4_BIN=46,t.LATIN1_BIN=47,t.LATIN1_GENERAL_CI=48,t.LATIN1_GENERAL_CS=49,t.CP1251_BIN=50,t.CP1251_GENERAL_CI=51,t.CP1251_GENERAL_CS=52,t.MACROMAN_BIN=53,t.UTF16_GENERAL_CI=54,t.UTF16_BIN=55,t.UTF16LE_GENERAL_CI=56,t.CP1256_GENERAL_CI=57,t.CP1257_BIN=58,t.CP1257_GENERAL_CI=59,t.UTF32_GENERAL_CI=60,t.UTF32_BIN=61,t.UTF16LE_BIN=62,t.BINARY=63,t.ARMSCII8_BIN=64,t.ASCII_BIN=65,t.CP1250_BIN=66,t.CP1256_BIN=67,t.CP866_BIN=68,t.DEC8_BIN=69,t.GREEK_BIN=70,t.HEBREW_BIN=71,t.HP8_BIN=72,t.KEYBCS2_BIN=73,t.KOI8R_BIN=74,t.KOI8U_BIN=75,t.UTF8_TOLOWER_CI=76,t.LATIN2_BIN=77,t.LATIN5_BIN=78,t.LATIN7_BIN=79,t.CP850_BIN=80,t.CP852_BIN=81,t.SWE7_BIN=82,t.UTF8_BIN=83,t.BIG5_BIN=84,t.EUCKR_BIN=85,t.GB2312_BIN=86,t.GBK_BIN=87,t.SJIS_BIN=88,t.TIS620_BIN=89,t.UCS2_BIN=90,t.UJIS_BIN=91,t.GEOSTD8_GENERAL_CI=92,t.GEOSTD8_BIN=93,t.LATIN1_SPANISH_CI=94,t.CP932_JAPANESE_CI=95,t.CP932_BIN=96,t.EUCJPMS_JAPANESE_CI=97,t.EUCJPMS_BIN=98,t.CP1250_POLISH_CI=99,t.UTF16_UNICODE_CI=101,t.UTF16_ICELANDIC_CI=102,t.UTF16_LATVIAN_CI=103,t.UTF16_ROMANIAN_CI=104,t.UTF16_SLOVENIAN_CI=105,t.UTF16_POLISH_CI=106,t.UTF16_ESTONIAN_CI=107,t.UTF16_SPANISH_CI=108,t.UTF16_SWEDISH_CI=109,t.UTF16_TURKISH_CI=110,t.UTF16_CZECH_CI=111,t.UTF16_DANISH_CI=112,t.UTF16_LITHUANIAN_CI=113,t.UTF16_SLOVAK_CI=114,t.UTF16_SPANISH2_CI=115,t.UTF16_ROMAN_CI=116,t.UTF16_PERSIAN_CI=117,t.UTF16_ESPERANTO_CI=118,t.UTF16_HUNGARIAN_CI=119,t.UTF16_SINHALA_CI=120,t.UTF16_GERMAN2_CI=121,t.UTF16_CROATIAN_CI=122,t.UTF16_UNICODE_520_CI=123,t.UTF16_VIETNAMESE_CI=124,t.UCS2_UNICODE_CI=128,t.UCS2_ICELANDIC_CI=129,t.UCS2_LATVIAN_CI=130,t.UCS2_ROMANIAN_CI=131,t.UCS2_SLOVENIAN_CI=132,t.UCS2_POLISH_CI=133,t.UCS2_ESTONIAN_CI=134,t.UCS2_SPANISH_CI=135,t.UCS2_SWEDISH_CI=136,t.UCS2_TURKISH_CI=137,t.UCS2_CZECH_CI=138,t.UCS2_DANISH_CI=139,t.UCS2_LITHUANIAN_CI=140,t.UCS2_SLOVAK_CI=141,t.UCS2_SPANISH2_CI=142,t.UCS2_ROMAN_CI=143,t.UCS2_PERSIAN_CI=144,t.UCS2_ESPERANTO_CI=145,t.UCS2_HUNGARIAN_CI=146,t.UCS2_SINHALA_CI=147,t.UCS2_GERMAN2_CI=148,t.UCS2_CROATIAN_CI=149,t.UCS2_UNICODE_520_CI=150,t.UCS2_VIETNAMESE_CI=151,t.UCS2_GENERAL_MYSQL500_CI=159,t.UTF32_UNICODE_CI=160,t.UTF32_ICELANDIC_CI=161,t.UTF32_LATVIAN_CI=162,t.UTF32_ROMANIAN_CI=163,t.UTF32_SLOVENIAN_CI=164,t.UTF32_POLISH_CI=165,t.UTF32_ESTONIAN_CI=166,t.UTF32_SPANISH_CI=167,t.UTF32_SWEDISH_CI=168,t.UTF32_TURKISH_CI=169,t.UTF32_CZECH_CI=170,t.UTF32_DANISH_CI=171,t.UTF32_LITHUANIAN_CI=172,t.UTF32_SLOVAK_CI=173,t.UTF32_SPANISH2_CI=174,t.UTF32_ROMAN_CI=175,t.UTF32_PERSIAN_CI=176,t.UTF32_ESPERANTO_CI=177,t.UTF32_HUNGARIAN_CI=178,t.UTF32_SINHALA_CI=179,t.UTF32_GERMAN2_CI=180,t.UTF32_CROATIAN_CI=181,t.UTF32_UNICODE_520_CI=182,t.UTF32_VIETNAMESE_CI=183,t.UTF8_UNICODE_CI=192,t.UTF8_ICELANDIC_CI=193,t.UTF8_LATVIAN_CI=194,t.UTF8_ROMANIAN_CI=195,t.UTF8_SLOVENIAN_CI=196,t.UTF8_POLISH_CI=197,t.UTF8_ESTONIAN_CI=198,t.UTF8_SPANISH_CI=199,t.UTF8_SWEDISH_CI=200,t.UTF8_TURKISH_CI=201,t.UTF8_CZECH_CI=202,t.UTF8_DANISH_CI=203,t.UTF8_LITHUANIAN_CI=204,t.UTF8_SLOVAK_CI=205,t.UTF8_SPANISH2_CI=206,t.UTF8_ROMAN_CI=207,t.UTF8_PERSIAN_CI=208,t.UTF8_ESPERANTO_CI=209,t.UTF8_HUNGARIAN_CI=210,t.UTF8_SINHALA_CI=211,t.UTF8_GERMAN2_CI=212,t.UTF8_CROATIAN_CI=213,t.UTF8_UNICODE_520_CI=214,t.UTF8_VIETNAMESE_CI=215,t.UTF8_GENERAL_MYSQL500_CI=223,t.UTF8MB4_UNICODE_CI=224,t.UTF8MB4_ICELANDIC_CI=225,t.UTF8MB4_LATVIAN_CI=226,t.UTF8MB4_ROMANIAN_CI=227,t.UTF8MB4_SLOVENIAN_CI=228,t.UTF8MB4_POLISH_CI=229,t.UTF8MB4_ESTONIAN_CI=230,t.UTF8MB4_SPANISH_CI=231,t.UTF8MB4_SWEDISH_CI=232,t.UTF8MB4_TURKISH_CI=233,t.UTF8MB4_CZECH_CI=234,t.UTF8MB4_DANISH_CI=235,t.UTF8MB4_LITHUANIAN_CI=236,t.UTF8MB4_SLOVAK_CI=237,t.UTF8MB4_SPANISH2_CI=238,t.UTF8MB4_ROMAN_CI=239,t.UTF8MB4_PERSIAN_CI=240,t.UTF8MB4_ESPERANTO_CI=241,t.UTF8MB4_HUNGARIAN_CI=242,t.UTF8MB4_SINHALA_CI=243,t.UTF8MB4_GERMAN2_CI=244,t.UTF8MB4_CROATIAN_CI=245,t.UTF8MB4_UNICODE_520_CI=246,t.UTF8MB4_VIETNAMESE_CI=247,t.GB18030_CHINESE_CI=248,t.GB18030_BIN=249,t.GB18030_UNICODE_520_CI=250,t.UTF8_GENERAL50_CI=253,t.UTF8MB4_0900_AI_CI=255,t.UTF8MB4_CS_0900_AI_CI=266,t.UTF8MB4_DA_0900_AI_CI=267,t.UTF8MB4_DE_PB_0900_AI_CI=256,t.UTF8MB4_EO_0900_AI_CI=273,t.UTF8MB4_ES_0900_AI_CI=263,t.UTF8MB4_ES_TRAD_0900_AI_CI=270,t.UTF8MB4_ET_0900_AI_CI=262,t.UTF8MB4_HR_0900_AI_CI=275,t.UTF8MB4_HU_0900_AI_CI=274,t.UTF8MB4_IS_0900_AI_CI=257,t.UTF8MB4_LA_0900_AI_CI=271,t.UTF8MB4_LT_0900_AI_CI=268,t.UTF8MB4_LV_0900_AI_CI=258,t.UTF8MB4_PL_0900_AI_CI=261,t.UTF8MB4_RO_0900_AI_CI=259,t.UTF8MB4_SK_0900_AI_CI=269,t.UTF8MB4_SL_0900_AI_CI=260,t.UTF8MB4_SV_0900_AI_CI=264,t.UTF8MB4_TR_0900_AI_CI=265,t.UTF8MB4_VI_0900_AI_CI=277,t.BIG5=t.BIG5_CHINESE_CI,t.DEC8=t.DEC8_SWEDISH_CI,t.CP850=t.CP850_GENERAL_CI,t.HP8=t.HP8_ENGLISH_CI,t.KOI8R=t.KOI8R_GENERAL_CI,t.LATIN1=t.LATIN1_SWEDISH_CI,t.LATIN2=t.LATIN2_GENERAL_CI,t.SWE7=t.SWE7_SWEDISH_CI,t.ASCII=t.ASCII_GENERAL_CI,t.UJIS=t.UJIS_JAPANESE_CI,t.SJIS=t.SJIS_JAPANESE_CI,t.HEBREW=t.HEBREW_GENERAL_CI,t.TIS620=t.TIS620_THAI_CI,t.EUCKR=t.EUCKR_KOREAN_CI,t.KOI8U=t.KOI8U_GENERAL_CI,t.GB2312=t.GB2312_CHINESE_CI,t.GREEK=t.GREEK_GENERAL_CI,t.CP1250=t.CP1250_GENERAL_CI,t.GBK=t.GBK_CHINESE_CI,t.LATIN5=t.LATIN5_TURKISH_CI,t.ARMSCII8=t.ARMSCII8_GENERAL_CI,t.UTF8=t.UTF8_GENERAL_CI,t.UCS2=t.UCS2_GENERAL_CI,t.CP866=t.CP866_GENERAL_CI,t.KEYBCS2=t.KEYBCS2_GENERAL_CI,t.MACCE=t.MACCE_GENERAL_CI,t.MACROMAN=t.MACROMAN_GENERAL_CI,t.CP852=t.CP852_GENERAL_CI,t.LATIN7=t.LATIN7_GENERAL_CI,t.UTF8MB4=t.UTF8MB4_GENERAL_CI,t.CP1251=t.CP1251_GENERAL_CI,t.UTF16=t.UTF16_GENERAL_CI,t.UTF16LE=t.UTF16LE_GENERAL_CI,t.CP1256=t.CP1256_GENERAL_CI,t.CP1257=t.CP1257_GENERAL_CI,t.UTF32=t.UTF32_GENERAL_CI,t.CP932=t.CP932_JAPANESE_CI,t.EUCJPMS=t.EUCJPMS_JAPANESE_CI,t.GB18030=t.GB18030_CHINESE_CI,t.GEOSTD8=t.GEOSTD8_GENERAL_CI},function(e,t,n){"use strict";const{URL:r}=n(23),i=n(38),o=n(64);let s=null;const a={authPlugins:1,authSwitchHandler:1,bigNumberStrings:1,charset:1,charsetNumber:1,compress:1,connectAttributes:1,connectTimeout:1,database:1,dateStrings:1,debug:1,decimalNumbers:1,enableKeepAlive:1,flags:1,host:1,insecureAuth:1,isServer:1,keepAliveInitialDelay:1,localAddress:1,maxPreparedStatements:1,multipleStatements:1,namedPlaceholders:1,nestTables:1,password:1,passwordSha1:1,pool:1,port:1,queryFormat:1,rowsAsArray:1,socketPath:1,ssl:1,stream:1,stringifyObjects:1,supportBigNumbers:1,timezone:1,trace:1,typeCast:1,uri:1,user:1,connectionLimit:1,Promise:1,queueLimit:1,waitForConnections:1};class u{constructor(e){if("string"==typeof e)e=u.parseUrl(e);else if(e&&e.uri){const t=u.parseUrl(e.uri);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]||(e[n]=t[n]))}for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&1!==a[t]&&console.error(`Ignoring invalid configuration option passed to Connection: ${t}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`);if(this.isServer=e.isServer,this.stream=e.stream,this.host=e.host||"localhost",this.port=e.port||3306,this.localAddress=e.localAddress,this.socketPath=e.socketPath,this.user=e.user||void 0,this.password=e.password||void 0,this.passwordSha1=e.passwordSha1||void 0,this.database=e.database,this.connectTimeout=isNaN(e.connectTimeout)?1e4:e.connectTimeout,this.insecureAuth=e.insecureAuth||!1,this.supportBigNumbers=e.supportBigNumbers||!1,this.bigNumberStrings=e.bigNumberStrings||!1,this.decimalNumbers=e.decimalNumbers||!1,this.dateStrings=e.dateStrings||!1,this.debug=e.debug,this.trace=!1!==e.trace,this.stringifyObjects=e.stringifyObjects||!1,this.enableKeepAlive=!!e.enableKeepAlive,this.keepAliveInitialDelay=e.keepAliveInitialDelay||0,e.timezone&&!/^(?:local|Z|[ +-]\d\d:\d\d)$/.test(e.timezone)?(console.error(`Ignoring invalid timezone passed to Connection: ${e.timezone}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`),this.timezone="Z"):this.timezone=e.timezone||"local",this.queryFormat=e.queryFormat,this.pool=e.pool||void 0,this.ssl="string"==typeof e.ssl?u.getSSLProfile(e.ssl):e.ssl||!1,this.multipleStatements=e.multipleStatements||!1,this.rowsAsArray=e.rowsAsArray||!1,this.namedPlaceholders=e.namedPlaceholders||!1,this.nestTables=void 0===e.nestTables?void 0:e.nestTables,this.typeCast=void 0===e.typeCast||e.typeCast," "===this.timezone[0]&&(this.timezone="+"+this.timezone.substr(1)),this.ssl){if("object"!=typeof this.ssl)throw new TypeError("SSL profile must be an object, instead it's a "+typeof this.ssl);this.ssl.rejectUnauthorized=!1!==this.ssl.rejectUnauthorized}this.maxPacketSize=0,this.charsetNumber=e.charset?u.getCharsetNumber(e.charset):e.charsetNumber||o.UTF8MB4_UNICODE_CI,this.compress=e.compress||!1,this.authPlugins=e.authPlugins,this.authSwitchHandler=e.authSwitchHandler,this.clientFlags=u.mergeFlags(u.getDefaultFlags(e),e.flags||""),this.connectAttributes=e.connectAttributes,this.maxPreparedStatements=e.maxPreparedStatements||16e3}static mergeFlags(e,t){let n,r=0;for(n in Array.isArray(t)||(t=String(t||"").toUpperCase().split(/\s*,+\s*/)),e)t.indexOf("-"+e[n])>=0||(r|=i[e[n]]||0);for(n in t)"-"!==t[n][0]&&(e.indexOf(t[n])>=0||(r|=i[t[n]]||0));return r}static getDefaultFlags(e){const t=["LONG_PASSWORD","FOUND_ROWS","LONG_FLAG","CONNECT_WITH_DB","ODBC","LOCAL_FILES","IGNORE_SPACE","PROTOCOL_41","IGNORE_SIGPIPE","TRANSACTIONS","RESERVED","SECURE_CONNECTION","MULTI_RESULTS","TRANSACTIONS","SESSION_TRACK"];return e&&e.multipleStatements&&t.push("MULTI_STATEMENTS"),t.push("PLUGIN_AUTH"),t.push("PLUGIN_AUTH_LENENC_CLIENT_DATA"),e&&e.connectAttributes&&t.push("CONNECT_ATTRS"),t}static getCharsetNumber(e){const t=o[e.toUpperCase()];if(void 0===t)throw new TypeError(`Unknown charset '${e}'`);return t}static getSSLProfile(e){s||(s=n(256));const t=s[e];if(void 0===t)throw new TypeError(`Unknown SSL profile '${e}'`);return t}static parseUrl(e){const t=new r(e),n={host:t.hostname,port:t.port,database:t.pathname.substr(1),user:t.username,password:t.password};return t.searchParams.forEach((e,t)=>{try{n[t]=JSON.parse(e)}catch(r){n[t]=e}}),n}}e.exports=u},function(e,t,n){"use strict";const r=n(121),{LEVEL:i,MESSAGE:o}=n(6);r.enabled=!0;const s=/\s+/;class a{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){const t=Object.keys(e).reduce((t,n)=>(t[n]=s.test(e[n])?e[n].split(s):e[n],t),{});return a.allColors=Object.assign({},a.allColors||{},t),a.allColors}addColors(e){return a.addColors(e)}colorize(e,t,n){if(void 0===n&&(n=t),!Array.isArray(a.allColors[e]))return r[a.allColors[e]](n);for(let t=0,i=a.allColors[e].length;tnew a(e),e.exports.Colorizer=e.exports.Format=a},function(e,t,n){"use strict";var r=n(287).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=_,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function _(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){e.exports=n(302)},function(e,t,n){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(306),o=n(151);n(32)(c,i);for(var s=r(o.prototype),a=0;a"}catch(e){return""}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n(0),i=n(4),o=n(51),s=n(59),a=n(9),u=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(r.g)(t._breadcrumbs),n._tags=Object(r.a)({},t._tags),n._extra=Object(r.a)({},t._extra),n._contexts=Object(r.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(r.g)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=Object(r.a)(Object(r.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(r.a)(Object(r.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(r.a)(Object(r.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(r.a)(Object(r.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(r.a)(Object(r.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(r.a)(Object(r.a)({},this._tags),t._tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t._extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Object(i.e)(t)&&(t=t,this._tags=Object(r.a)(Object(r.a)({},this._tags),t.tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t.extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var i=Object(r.a)({timestamp:Object(o.b)()},e);return this._breadcrumbs=Object(r.g)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(r.a)(Object(r.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(r.a)(Object(r.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(r.a)(Object(r.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(r.a)(Object(r.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(r.a)({trace:this._span.getTraceContext()},e.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(e.tags=Object(r.a)({transaction:i},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(r.g)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(r.g)(c(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,o){var a=this;return void 0===o&&(o=0),new s.a((function(s,u){var c=e[o];if(null===t||"function"!=typeof c)s(t);else{var l=c(Object(r.a)({},t),n);Object(i.j)(l)?l.then((function(t){return a._notifyEventProcessors(e,t,n,o+1).then(s)})).then(null,u):a._notifyEventProcessors(e,l,n,o+1).then(s).then(null,u)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function c(){var e=Object(a.a)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function l(e){c().push(e)}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(r||(r={}))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config=(()=>{let e=JSON.parse(LoadResourceFile(GetCurrentResourceName(),"config.json")),t=GetConvar("npwd:database","");return""!==t&&(t=JSON.parse(t),Object.entries(e.database).forEach(([n,r])=>{t[n]&&typeof r==typeof t[n]&&(e.database[n]=t[n])})),"true"==GetConvar("npwd:useResourceIntegration","")&&(e.general.useResourceIntegration=!0),e})()},function(e,t,n){"use strict";const r=n(99),i=n(61),o=n(65),s=n(81);t.createConnection=function(e){return new i({config:new o(e)})},t.connect=t.createConnection,t.Connection=i;const a=n(115),u=n(117);t.createPool=function(e){const t=n(118);return new a({config:new t(e)})},t.createPoolCluster=function(e){return new(n(117))(e)},t.createQuery=i.createQuery,t.Pool=a,t.PoolCluster=u,t.createServer=function(e){const t=new(n(262));return e&&t.on("connection",e),t},t.PoolConnection=n(116),t.escape=r.escape,t.escapeId=r.escapeId,t.format=r.format,t.raw=r.raw,t.__defineGetter__("createConnectionPromise",()=>n(36).createConnection),t.__defineGetter__("createPoolPromise",()=>n(36).createPool),t.__defineGetter__("createPoolClusterPromise",()=>n(36).createPoolCluster),t.__defineGetter__("Types",()=>n(52)),t.__defineGetter__("Charsets",()=>n(64)),t.__defineGetter__("CharsetToEncoding",()=>n(27)),t.setMaxParserCache=function(e){s.setMaxCache(e)},t.clearParserCache=function(){s.clearCache()}},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("timers")},function(e){e.exports=JSON.parse('[["0","\\u0000",127,"€"],["8140","丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪",5,"乲乴",9,"乿",6,"亇亊"],["8180","亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂",6,"伋伌伒",4,"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾",4,"佄佅佇",5,"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"],["8240","侤侫侭侰",4,"侶",8,"俀俁係俆俇俈俉俋俌俍俒",4,"俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿",11],["8280","個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯",10,"倻倽倿偀偁偂偄偅偆偉偊偋偍偐",4,"偖偗偘偙偛偝",7,"偦",5,"偭",8,"偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎",20,"傤傦傪傫傭",4,"傳",6,"傼"],["8340","傽",17,"僐",5,"僗僘僙僛",10,"僨僩僪僫僯僰僱僲僴僶",4,"僼",9,"儈"],["8380","儉儊儌",5,"儓",13,"儢",28,"兂兇兊兌兎兏児兒兓兗兘兙兛兝",4,"兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦",4,"冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒",5],["8440","凘凙凚凜凞凟凢凣凥",5,"凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄",5,"剋剎剏剒剓剕剗剘"],["8480","剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳",9,"剾劀劃",4,"劉",6,"劑劒劔",6,"劜劤劥劦劧劮劯劰労",9,"勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務",5,"勠勡勢勣勥",10,"勱",7,"勻勼勽匁匂匃匄匇匉匊匋匌匎"],["8540","匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯",9,"匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"],["8580","厐",4,"厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯",6,"厷厸厹厺厼厽厾叀參",4,"収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝",4,"呣呥呧呩",7,"呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"],["8640","咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠",4,"哫哬哯哰哱哴",5,"哻哾唀唂唃唄唅唈唊",4,"唒唓唕",5,"唜唝唞唟唡唥唦"],["8680","唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋",4,"啑啒啓啔啗",4,"啝啞啟啠啢啣啨啩啫啯",5,"啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠",6,"喨",8,"喲喴営喸喺喼喿",4,"嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗",4,"嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸",4,"嗿嘂嘃嘄嘅"],["8740","嘆嘇嘊嘋嘍嘐",7,"嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀",11,"噏",4,"噕噖噚噛噝",4],["8780","噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽",7,"嚇",6,"嚐嚑嚒嚔",14,"嚤",10,"嚰",6,"嚸嚹嚺嚻嚽",12,"囋",8,"囕囖囘囙囜団囥",5,"囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國",6],["8840","園",9,"圝圞圠圡圢圤圥圦圧圫圱圲圴",4,"圼圽圿坁坃坄坅坆坈坉坋坒",4,"坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"],["8880","垁垇垈垉垊垍",4,"垔",6,"垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹",8,"埄",6,"埌埍埐埑埓埖埗埛埜埞埡埢埣埥",7,"埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥",4,"堫",4,"報堲堳場堶",7],["8940","堾",5,"塅",6,"塎塏塐塒塓塕塖塗塙",4,"塟",5,"塦",4,"塭",16,"塿墂墄墆墇墈墊墋墌"],["8980","墍",4,"墔",4,"墛墜墝墠",7,"墪",17,"墽墾墿壀壂壃壄壆",10,"壒壓壔壖",13,"壥",5,"壭壯壱売壴壵壷壸壺",7,"夃夅夆夈",4,"夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"],["8a40","夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛",4,"奡奣奤奦",12,"奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"],["8a80","妧妬妭妰妱妳",5,"妺妼妽妿",6,"姇姈姉姌姍姎姏姕姖姙姛姞",4,"姤姦姧姩姪姫姭",11,"姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪",6,"娳娵娷",4,"娽娾娿婁",4,"婇婈婋",9,"婖婗婘婙婛",5],["8b40","婡婣婤婥婦婨婩婫",8,"婸婹婻婼婽婾媀",17,"媓",6,"媜",13,"媫媬"],["8b80","媭",4,"媴媶媷媹",4,"媿嫀嫃",5,"嫊嫋嫍",4,"嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬",4,"嫲",22,"嬊",11,"嬘",25,"嬳嬵嬶嬸",7,"孁",6],["8c40","孈",7,"孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"],["8c80","寑寔",8,"寠寢寣實寧審",4,"寯寱",6,"寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧",6,"屰屲",6,"屻屼屽屾岀岃",4,"岉岊岋岎岏岒岓岕岝",4,"岤",4],["8d40","岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅",5,"峌",5,"峓",5,"峚",6,"峢峣峧峩峫峬峮峯峱",9,"峼",4],["8d80","崁崄崅崈",5,"崏",4,"崕崗崘崙崚崜崝崟",4,"崥崨崪崫崬崯",4,"崵",7,"崿",7,"嵈嵉嵍",10,"嵙嵚嵜嵞",10,"嵪嵭嵮嵰嵱嵲嵳嵵",12,"嶃",21,"嶚嶛嶜嶞嶟嶠"],["8e40","嶡",21,"嶸",12,"巆",6,"巎",12,"巜巟巠巣巤巪巬巭"],["8e80","巰巵巶巸",4,"巿帀帄帇帉帊帋帍帎帒帓帗帞",7,"帨",4,"帯帰帲",4,"帹帺帾帿幀幁幃幆",5,"幍",6,"幖",4,"幜幝幟幠幣",14,"幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨",4,"庮",4,"庴庺庻庼庽庿",6],["8f40","廆廇廈廋",5,"廔廕廗廘廙廚廜",11,"廩廫",8,"廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"],["8f80","弨弫弬弮弰弲",6,"弻弽弾弿彁",14,"彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢",5,"復徫徬徯",5,"徶徸徹徺徻徾",4,"忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"],["9040","怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰",4,"怶",4,"怽怾恀恄",6,"恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"],["9080","悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽",7,"惇惈惉惌",4,"惒惓惔惖惗惙惛惞惡",4,"惪惱惲惵惷惸惻",4,"愂愃愄愅愇愊愋愌愐",4,"愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬",18,"慀",6],["9140","慇慉態慍慏慐慒慓慔慖",6,"慞慟慠慡慣慤慥慦慩",6,"慱慲慳慴慶慸",18,"憌憍憏",4,"憕"],["9180","憖",6,"憞",8,"憪憫憭",9,"憸",5,"憿懀懁懃",4,"應懌",4,"懓懕",16,"懧",13,"懶",8,"戀",5,"戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸",4,"扂扄扅扆扊"],["9240","扏扐払扖扗扙扚扜",6,"扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋",5,"抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"],["9280","拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳",5,"挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖",7,"捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙",6,"採掤掦掫掯掱掲掵掶掹掻掽掿揀"],["9340","揁揂揃揅揇揈揊揋揌揑揓揔揕揗",6,"揟揢揤",4,"揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆",4,"損搎搑搒搕",5,"搝搟搢搣搤"],["9380","搥搧搨搩搫搮",5,"搵",4,"搻搼搾摀摂摃摉摋",6,"摓摕摖摗摙",4,"摟",7,"摨摪摫摬摮",9,"摻",6,"撃撆撈",8,"撓撔撗撘撚撛撜撝撟",4,"撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆",6,"擏擑擓擔擕擖擙據"],["9440","擛擜擝擟擠擡擣擥擧",24,"攁",7,"攊",7,"攓",4,"攙",8],["9480","攢攣攤攦",4,"攬攭攰攱攲攳攷攺攼攽敀",4,"敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數",14,"斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱",7,"斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘",7,"旡旣旤旪旫"],["9540","旲旳旴旵旸旹旻",4,"昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷",4,"昽昿晀時晄",6,"晍晎晐晑晘"],["9580","晙晛晜晝晞晠晢晣晥晧晩",4,"晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘",4,"暞",8,"暩",4,"暯",4,"暵暶暷暸暺暻暼暽暿",25,"曚曞",7,"曧曨曪",5,"曱曵曶書曺曻曽朁朂會"],["9640","朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠",5,"朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗",4,"杝杢杣杤杦杧杫杬杮東杴杶"],["9680","杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹",7,"柂柅",9,"柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵",7,"柾栁栂栃栄栆栍栐栒栔栕栘",4,"栞栟栠栢",6,"栫",6,"栴栵栶栺栻栿桇桋桍桏桒桖",5],["9740","桜桝桞桟桪桬",7,"桵桸",8,"梂梄梇",7,"梐梑梒梔梕梖梘",9,"梣梤梥梩梪梫梬梮梱梲梴梶梷梸"],["9780","梹",6,"棁棃",5,"棊棌棎棏棐棑棓棔棖棗棙棛",4,"棡棢棤",9,"棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆",4,"椌椏椑椓",11,"椡椢椣椥",7,"椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃",16,"楕楖楘楙楛楜楟"],["9840","楡楢楤楥楧楨楩楪楬業楯楰楲",4,"楺楻楽楾楿榁榃榅榊榋榌榎",5,"榖榗榙榚榝",9,"榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"],["9880","榾榿槀槂",7,"構槍槏槑槒槓槕",5,"槜槝槞槡",11,"槮槯槰槱槳",9,"槾樀",9,"樋",11,"標",5,"樠樢",5,"権樫樬樭樮樰樲樳樴樶",6,"樿",4,"橅橆橈",7,"橑",6,"橚"],["9940","橜",4,"橢橣橤橦",10,"橲",6,"橺橻橽橾橿檁檂檃檅",8,"檏檒",4,"檘",7,"檡",5],["9980","檧檨檪檭",114,"欥欦欨",6],["9a40","欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍",11,"歚",7,"歨歩歫",13,"歺歽歾歿殀殅殈"],["9a80","殌殎殏殐殑殔殕殗殘殙殜",4,"殢",7,"殫",7,"殶殸",6,"毀毃毄毆",4,"毌毎毐毑毘毚毜",4,"毢",7,"毬毭毮毰毱毲毴毶毷毸毺毻毼毾",6,"氈",4,"氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋",4,"汑汒汓汖汘"],["9b40","汙汚汢汣汥汦汧汫",4,"汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"],["9b80","泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟",5,"洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽",4,"涃涄涆涇涊涋涍涏涐涒涖",4,"涜涢涥涬涭涰涱涳涴涶涷涹",5,"淁淂淃淈淉淊"],["9c40","淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽",7,"渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"],["9c80","渶渷渹渻",7,"湅",7,"湏湐湑湒湕湗湙湚湜湝湞湠",10,"湬湭湯",14,"満溁溂溄溇溈溊",4,"溑",6,"溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪",5],["9d40","滰滱滲滳滵滶滷滸滺",7,"漃漄漅漇漈漊",4,"漐漑漒漖",9,"漡漢漣漥漦漧漨漬漮漰漲漴漵漷",6,"漿潀潁潂"],["9d80","潃潄潅潈潉潊潌潎",9,"潙潚潛潝潟潠潡潣潤潥潧",5,"潯潰潱潳潵潶潷潹潻潽",6,"澅澆澇澊澋澏",12,"澝澞澟澠澢",4,"澨",10,"澴澵澷澸澺",5,"濁濃",5,"濊",6,"濓",10,"濟濢濣濤濥"],["9e40","濦",7,"濰",32,"瀒",7,"瀜",6,"瀤",6],["9e80","瀫",9,"瀶瀷瀸瀺",17,"灍灎灐",13,"灟",11,"灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞",12,"炰炲炴炵炶為炾炿烄烅烆烇烉烋",12,"烚"],["9f40","烜烝烞烠烡烢烣烥烪烮烰",6,"烸烺烻烼烾",10,"焋",4,"焑焒焔焗焛",10,"焧",7,"焲焳焴"],["9f80","焵焷",13,"煆煇煈煉煋煍煏",12,"煝煟",4,"煥煩",4,"煯煰煱煴煵煶煷煹煻煼煾",5,"熅",4,"熋熌熍熎熐熑熒熓熕熖熗熚",4,"熡",6,"熩熪熫熭",5,"熴熶熷熸熺",8,"燄",9,"燏",4],["a040","燖",9,"燡燢燣燤燦燨",5,"燯",9,"燺",11,"爇",19],["a080","爛爜爞",9,"爩爫爭爮爯爲爳爴爺爼爾牀",6,"牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅",4,"犌犎犐犑犓",11,"犠",11,"犮犱犲犳犵犺",6,"狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"],["a1a1"," 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈",7,"〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"],["a2a1","ⅰ",9],["a2b1","⒈",19,"⑴",19,"①",9],["a2e5","㈠",9],["a2f1","Ⅰ",11],["a3a1","!"#¥%",88," ̄"],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a6e0","︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"],["a6ee","︻︼︷︸︱"],["a6f4","︳︴"],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a840","ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═",35,"▁",6],["a880","█",7,"▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"],["a8a1","āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"],["a8bd","ńň"],["a8c0","ɡ"],["a8c5","ㄅ",36],["a940","〡",8,"㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"],["a959","℡㈱"],["a95c","‐"],["a960","ー゛゜ヽヾ〆ゝゞ﹉",9,"﹔﹕﹖﹗﹙",8],["a980","﹢",4,"﹨﹩﹪﹫"],["a996","〇"],["a9a4","─",75],["aa40","狜狝狟狢",5,"狪狫狵狶狹狽狾狿猀猂猄",5,"猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀",8],["aa80","獉獊獋獌獎獏獑獓獔獕獖獘",7,"獡",10,"獮獰獱"],["ab40","獲",11,"獿",4,"玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣",5,"玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃",4],["ab80","珋珌珎珒",6,"珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳",4],["ac40","珸",10,"琄琇琈琋琌琍琎琑",8,"琜",5,"琣琤琧琩琫琭琯琱琲琷",4,"琽琾琿瑀瑂",11],["ac80","瑎",6,"瑖瑘瑝瑠",12,"瑮瑯瑱",4,"瑸瑹瑺"],["ad40","瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑",10,"璝璟",7,"璪",15,"璻",12],["ad80","瓈",9,"瓓",8,"瓝瓟瓡瓥瓧",6,"瓰瓱瓲"],["ae40","瓳瓵瓸",6,"甀甁甂甃甅",7,"甎甐甒甔甕甖甗甛甝甞甠",4,"甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"],["ae80","畝",7,"畧畨畩畫",6,"畳畵當畷畺",4,"疀疁疂疄疅疇"],["af40","疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦",4,"疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"],["af80","瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"],["b040","癅",6,"癎",5,"癕癗",4,"癝癟癠癡癢癤",6,"癬癭癮癰",7,"癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"],["b080","皜",7,"皥",8,"皯皰皳皵",9,"盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"],["b140","盄盇盉盋盌盓盕盙盚盜盝盞盠",4,"盦",7,"盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎",10,"眛眜眝眞眡眣眤眥眧眪眫"],["b180","眬眮眰",4,"眹眻眽眾眿睂睄睅睆睈",7,"睒",7,"睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"],["b240","睝睞睟睠睤睧睩睪睭",11,"睺睻睼瞁瞂瞃瞆",5,"瞏瞐瞓",11,"瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶",4],["b280","瞼瞾矀",12,"矎",8,"矘矙矚矝",4,"矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"],["b340","矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃",5,"砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"],["b380","硛硜硞",11,"硯",7,"硸硹硺硻硽",6,"场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"],["b440","碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨",7,"碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚",9],["b480","磤磥磦磧磩磪磫磭",4,"磳磵磶磸磹磻",5,"礂礃礄礆",6,"础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"],["b540","礍",5,"礔",9,"礟",4,"礥",14,"礵",4,"礽礿祂祃祄祅祇祊",8,"祔祕祘祙祡祣"],["b580","祤祦祩祪祫祬祮祰",6,"祹祻",4,"禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"],["b640","禓",6,"禛",11,"禨",10,"禴",4,"禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙",5,"秠秡秢秥秨秪"],["b680","秬秮秱",6,"秹秺秼秾秿稁稄稅稇稈稉稊稌稏",4,"稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"],["b740","稝稟稡稢稤",14,"稴稵稶稸稺稾穀",5,"穇",9,"穒",4,"穘",16],["b780","穩",6,"穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"],["b840","窣窤窧窩窪窫窮",4,"窴",10,"竀",10,"竌",9,"竗竘竚竛竜竝竡竢竤竧",5,"竮竰竱竲竳"],["b880","竴",4,"竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"],["b940","笯笰笲笴笵笶笷笹笻笽笿",5,"筆筈筊筍筎筓筕筗筙筜筞筟筡筣",10,"筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆",6,"箎箏"],["b980","箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹",7,"篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"],["ba40","篅篈築篊篋篍篎篏篐篒篔",4,"篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲",4,"篸篹篺篻篽篿",7,"簈簉簊簍簎簐",5,"簗簘簙"],["ba80","簚",4,"簠",5,"簨簩簫",12,"簹",5,"籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"],["bb40","籃",9,"籎",36,"籵",5,"籾",9],["bb80","粈粊",6,"粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴",4,"粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"],["bc40","粿糀糂糃糄糆糉糋糎",6,"糘糚糛糝糞糡",6,"糩",5,"糰",7,"糹糺糼",13,"紋",5],["bc80","紑",14,"紡紣紤紥紦紨紩紪紬紭紮細",6,"肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"],["bd40","紷",54,"絯",7],["bd80","絸",32,"健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"],["be40","継",12,"綧",6,"綯",42],["be80","線",32,"尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"],["bf40","緻",62],["bf80","縺縼",4,"繂",4,"繈",21,"俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"],["c040","繞",35,"纃",23,"纜纝纞"],["c080","纮纴纻纼绖绤绬绹缊缐缞缷缹缻",6,"罃罆",9,"罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"],["c140","罖罙罛罜罝罞罠罣",4,"罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂",7,"羋羍羏",4,"羕",4,"羛羜羠羢羣羥羦羨",6,"羱"],["c180","羳",4,"羺羻羾翀翂翃翄翆翇翈翉翋翍翏",4,"翖翗翙",5,"翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"],["c240","翤翧翨翪翫翬翭翯翲翴",6,"翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫",5,"耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"],["c280","聙聛",13,"聫",5,"聲",11,"隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"],["c340","聾肁肂肅肈肊肍",5,"肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇",4,"胏",6,"胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"],["c380","脌脕脗脙脛脜脝脟",12,"脭脮脰脳脴脵脷脹",4,"脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"],["c440","腀",5,"腇腉腍腎腏腒腖腗腘腛",4,"腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃",4,"膉膋膌膍膎膐膒",5,"膙膚膞",4,"膤膥"],["c480","膧膩膫",7,"膴",5,"膼膽膾膿臄臅臇臈臉臋臍",6,"摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"],["c540","臔",14,"臤臥臦臨臩臫臮",4,"臵",5,"臽臿舃與",4,"舎舏舑舓舕",5,"舝舠舤舥舦舧舩舮舲舺舼舽舿"],["c580","艀艁艂艃艅艆艈艊艌艍艎艐",7,"艙艛艜艝艞艠",7,"艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"],["c640","艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"],["c680","苺苼",4,"茊茋茍茐茒茓茖茘茙茝",9,"茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"],["c740","茾茿荁荂荄荅荈荊",4,"荓荕",4,"荝荢荰",6,"荹荺荾",6,"莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡",6,"莬莭莮"],["c780","莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"],["c840","菮華菳",4,"菺菻菼菾菿萀萂萅萇萈萉萊萐萒",5,"萙萚萛萞",5,"萩",7,"萲",5,"萹萺萻萾",7,"葇葈葉"],["c880","葊",6,"葒",4,"葘葝葞葟葠葢葤",4,"葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"],["c940","葽",4,"蒃蒄蒅蒆蒊蒍蒏",7,"蒘蒚蒛蒝蒞蒟蒠蒢",12,"蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"],["c980","蓘",4,"蓞蓡蓢蓤蓧",4,"蓭蓮蓯蓱",10,"蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"],["ca40","蔃",8,"蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢",8,"蔭",9,"蔾",4,"蕄蕅蕆蕇蕋",10],["ca80","蕗蕘蕚蕛蕜蕝蕟",4,"蕥蕦蕧蕩",8,"蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"],["cb40","薂薃薆薈",6,"薐",10,"薝",6,"薥薦薧薩薫薬薭薱",5,"薸薺",6,"藂",6,"藊",4,"藑藒"],["cb80","藔藖",5,"藝",6,"藥藦藧藨藪",14,"恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"],["cc40","藹藺藼藽藾蘀",4,"蘆",10,"蘒蘓蘔蘕蘗",15,"蘨蘪",13,"蘹蘺蘻蘽蘾蘿虀"],["cc80","虁",11,"虒虓處",4,"虛虜虝號虠虡虣",7,"獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"],["cd40","虭虯虰虲",6,"蚃",6,"蚎",4,"蚔蚖",5,"蚞",4,"蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻",4,"蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"],["cd80","蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"],["ce40","蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀",6,"蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚",5,"蝡蝢蝦",7,"蝯蝱蝲蝳蝵"],["ce80","蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎",4,"螔螕螖螘",6,"螠",4,"巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"],["cf40","螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁",4,"蟇蟈蟉蟌",4,"蟔",6,"蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯",9],["cf80","蟺蟻蟼蟽蟿蠀蠁蠂蠄",5,"蠋",7,"蠔蠗蠘蠙蠚蠜",4,"蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"],["d040","蠤",13,"蠳",5,"蠺蠻蠽蠾蠿衁衂衃衆",5,"衎",5,"衕衖衘衚",6,"衦衧衪衭衯衱衳衴衵衶衸衹衺"],["d080","衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗",4,"袝",4,"袣袥",5,"小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"],["d140","袬袮袯袰袲",4,"袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚",4,"裠裡裦裧裩",6,"裲裵裶裷裺裻製裿褀褁褃",5],["d180","褉褋",4,"褑褔",4,"褜",4,"褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"],["d240","褸",8,"襂襃襅",24,"襠",5,"襧",19,"襼"],["d280","襽襾覀覂覄覅覇",26,"摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"],["d340","覢",30,"觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴",6],["d380","觻",4,"訁",5,"計",21,"印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"],["d440","訞",31,"訿",8,"詉",21],["d480","詟",25,"詺",6,"浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"],["d540","誁",7,"誋",7,"誔",46],["d580","諃",32,"铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"],["d640","諤",34,"謈",27],["d680","謤謥謧",30,"帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"],["d740","譆",31,"譧",4,"譭",25],["d780","讇",24,"讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"],["d840","谸",8,"豂豃豄豅豈豊豋豍",7,"豖豗豘豙豛",5,"豣",6,"豬",6,"豴豵豶豷豻",6,"貃貄貆貇"],["d880","貈貋貍",6,"貕貖貗貙",20,"亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"],["d940","貮",62],["d980","賭",32,"佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"],["da40","贎",14,"贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸",8,"趂趃趆趇趈趉趌",4,"趒趓趕",9,"趠趡"],["da80","趢趤",12,"趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"],["db40","跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾",6,"踆踇踈踋踍踎踐踑踒踓踕",7,"踠踡踤",4,"踫踭踰踲踳踴踶踷踸踻踼踾"],["db80","踿蹃蹅蹆蹌",4,"蹓",5,"蹚",11,"蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"],["dc40","蹳蹵蹷",4,"蹽蹾躀躂躃躄躆躈",6,"躑躒躓躕",6,"躝躟",11,"躭躮躰躱躳",6,"躻",7],["dc80","軃",10,"軏",21,"堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"],["dd40","軥",62],["dd80","輤",32,"荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"],["de40","轅",32,"轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"],["de80","迉",4,"迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"],["df40","這逜連逤逥逧",5,"逰",4,"逷逹逺逽逿遀遃遅遆遈",4,"過達違遖遙遚遜",5,"遤遦遧適遪遫遬遯",4,"遶",6,"遾邁"],["df80","還邅邆邇邉邊邌",4,"邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"],["e040","郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅",19,"鄚鄛鄜"],["e080","鄝鄟鄠鄡鄤",10,"鄰鄲",6,"鄺",8,"酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"],["e140","酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀",4,"醆醈醊醎醏醓",6,"醜",5,"醤",5,"醫醬醰醱醲醳醶醷醸醹醻"],["e180","醼",10,"釈釋釐釒",9,"針",8,"帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"],["e240","釦",62],["e280","鈥",32,"狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧",5,"饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"],["e340","鉆",45,"鉵",16],["e380","銆",7,"銏",24,"恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"],["e440","銨",5,"銯",24,"鋉",31],["e480","鋩",32,"洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"],["e540","錊",51,"錿",10],["e580","鍊",31,"鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"],["e640","鍬",34,"鎐",27],["e680","鎬",29,"鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"],["e740","鏎",7,"鏗",54],["e780","鐎",32,"纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡",6,"缪缫缬缭缯",4,"缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"],["e840","鐯",14,"鐿",43,"鑬鑭鑮鑯"],["e880","鑰",20,"钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"],["e940","锧锳锽镃镈镋镕镚镠镮镴镵長",7,"門",42],["e980","閫",32,"椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"],["ea40","闌",27,"闬闿阇阓阘阛阞阠阣",6,"阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"],["ea80","陘陙陚陜陝陞陠陣陥陦陫陭",4,"陳陸",12,"隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"],["eb40","隌階隑隒隓隕隖隚際隝",9,"隨",7,"隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖",9,"雡",6,"雫"],["eb80","雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗",4,"霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"],["ec40","霡",8,"霫霬霮霯霱霳",4,"霺霻霼霽霿",18,"靔靕靗靘靚靜靝靟靣靤靦靧靨靪",7],["ec80","靲靵靷",4,"靽",7,"鞆",4,"鞌鞎鞏鞐鞓鞕鞖鞗鞙",4,"臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"],["ed40","鞞鞟鞡鞢鞤",6,"鞬鞮鞰鞱鞳鞵",46],["ed80","韤韥韨韮",4,"韴韷",23,"怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"],["ee40","頏",62],["ee80","顎",32,"睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶",4,"钼钽钿铄铈",6,"铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"],["ef40","顯",5,"颋颎颒颕颙颣風",37,"飏飐飔飖飗飛飜飝飠",4],["ef80","飥飦飩",30,"铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒",4,"锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤",8,"镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"],["f040","餈",4,"餎餏餑",28,"餯",26],["f080","饊",9,"饖",12,"饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨",4,"鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦",6,"鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"],["f140","馌馎馚",10,"馦馧馩",47],["f180","駙",32,"瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"],["f240","駺",62],["f280","騹",32,"颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"],["f340","驚",17,"驲骃骉骍骎骔骕骙骦骩",6,"骲骳骴骵骹骻骽骾骿髃髄髆",4,"髍髎髏髐髒體髕髖髗髙髚髛髜"],["f380","髝髞髠髢髣髤髥髧髨髩髪髬髮髰",8,"髺髼",6,"鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"],["f440","鬇鬉",5,"鬐鬑鬒鬔",10,"鬠鬡鬢鬤",10,"鬰鬱鬳",7,"鬽鬾鬿魀魆魊魋魌魎魐魒魓魕",5],["f480","魛",32,"簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"],["f540","魼",62],["f580","鮻",32,"酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"],["f640","鯜",62],["f680","鰛",32,"觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅",5,"龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞",5,"鲥",4,"鲫鲭鲮鲰",7,"鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"],["f740","鰼",62],["f780","鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾",4,"鳈鳉鳑鳒鳚鳛鳠鳡鳌",4,"鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"],["f840","鳣",62],["f880","鴢",32],["f940","鵃",62],["f980","鶂",32],["fa40","鶣",62],["fa80","鷢",32],["fb40","鸃",27,"鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴",9,"麀"],["fb80","麁麃麄麅麆麉麊麌",5,"麔",8,"麞麠",5,"麧麨麩麪"],["fc40","麫",8,"麵麶麷麹麺麼麿",4,"黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰",8,"黺黽黿",6],["fc80","鼆",4,"鼌鼏鼑鼒鼔鼕鼖鼘鼚",5,"鼡鼣",8,"鼭鼮鼰鼱"],["fd40","鼲",4,"鼸鼺鼼鼿",4,"齅",10,"齒",38],["fd80","齹",5,"龁龂龍",11,"龜龝龞龡",4,"郎凉秊裏隣"],["fe40","兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"]]')},function(e,t){e.exports=require("zlib")},function(e,t,n){"use strict";const r=new(n(102))({max:15e3});e.exports={getParser:function(e,t,n,i,o){const s=function(e,t,n,r){let i=e+"/"+typeof n.nestTables+"/"+n.nestTables+"/"+n.rowsAsArray+"/"+(n.supportBigNumbers||r.supportBigNumbers)+"/"+(n.bigNumberStrings||r.bigNumberStrings)+"/"+typeof n.typeCast+"/"+(n.timezone||r.timezone)+"/"+n.decimalNumbers+"/"+n.dateStrings;for(let e=0;ee.length);return Math.max(...t)}static paddingForLevel(e,t,n){const r=n+1-e.length,i=Math.floor(r/t.length);return`${t}${t.repeat(i)}`.slice(0,r)}static paddingForLevels(e,t=" "){const n=s.getLongestLevel(e);return Object.keys(e).reduce((e,r)=>(e[r]=s.paddingForLevel(r,t,n),e),{})}transform(e,t){return e.message=`${this.paddings[e[i]]}${e.message}`,e[o]&&(e[o]=`${this.paddings[e[i]]}${e[o]}`),e}}e.exports=e=>new s(e),e.exports.Padder=e.exports.Format=s},function(e,t,n){"use strict";const r=n(12),{MESSAGE:i}=n(6),o=n(84);function s(e,t){return t instanceof Buffer?t.toString("base64"):"bigint"==typeof t?t.toString():t}e.exports=r((e,t={})=>(e[i]=o(e,t.replacer||s,t.space),e))},function(e,t,n){"use strict";const r=n(281);e.exports=r,r.default=r},function(e,t,n){"use strict";var r=n(39).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i=0&&e.length%1==0},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorStringKeys=t.PhoneEvents=t.PHONE_NUMBER_REGEX=void 0,t.PHONE_NUMBER_REGEX=/^([0-9]{3}-[0-9]{4})|([0-9]{7})$/,function(e){e.OPEN_APP="npwd:openApp",e.OPEN_PHONE="npwd:open",e.CLOSE_PHONE="npwd:close",e.UNLOAD_CHARACTER="npwd:unloadCharacter",e.SET_VISIBILITY="npwd:setVisibility",e.ADD_SNACKBAR_ALERT="npwd:setSnackarAlert",e.SET_NUMBER="npwd:setNumber",e.SET_PHONE_READY="npwd:phoneReady",e.SET_CONFIG="npwd:setPhoneConfig",e.SET_TIME="npwd:setGameTime",e.SEND_CREDENTIALS="npwd:sendCredentials",e.FETCH_CREDENTIALS="npwd:getCredentials",e.TOGGLE_KEYS="npwd:toggleAllControls",e.SET_PLAYER_LOADED="npwd:setPlayerLoaded",e.IS_PHONE_DISABLED="npwd:isPhoneDisabled"}(t.PhoneEvents||(t.PhoneEvents={})),function(e){e.SERVER_ERROR="GENERAL_SERVER_ERROR",e.DELETE_FAILED="DELETE_FAILED",e.ADD_FAILED="ADD_FAILED",e.UPDATE_FAILED="UPDATED_FAILED",e.FETCH_FAILED="FETCH_FAILED"}(t.ErrorStringKeys||(t.ErrorStringKeys={}))},function(e,t,n){"use strict";var r=n(13);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";var r=n(13),i=n(335),o=n(92),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?u=n(336):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(u=n(342)),u),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(s)})),e.exports=c},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(92);e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.twitterLogger=void 0;const r=n(10);t.twitterLogger=r.mainLogger.child({module:"twitter"})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatMatches=t.formatProfile=t.matchLogger=void 0;const i=n(10),o=r(n(376));t.matchLogger=i.mainLogger.child({module:"match"}),t.formatProfile=function(e){return Object.assign(Object.assign({},e),{tagList:e.tags.split(",").filter(e=>e),lastActiveFormatted:o.default.unix(e.lastActive).toString(),viewed:!1})},t.formatMatches=function(e){return Object.assign(Object.assign({},e),{tagList:e.tags.split(",").filter(e=>e),lastActiveFormatted:o.default.unix(e.lastActive).toString(),matchedAtFormatted:o.default.unix(e.matchedAt).toString()})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(9);var r=n(4);function i(e,t){try{for(var n=e,r=[],i=0,s=0,a=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=o(n,t))||i>1&&s+r.length*a+u.length>=80);)r.push(u),s+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return""}}function o(e,t){var n,i,o,s,a,u,c,l=e,f=[];if(!l||!l.tagName)return"";f.push(l.tagName.toLowerCase());var _=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(null===(i=_)||void 0===i?void 0:i.length)_.forEach((function(e){f.push("["+e[0]+'="'+e[1]+'"]')}));else if(l.id&&f.push("#"+l.id),(o=l.className)&&Object(r.h)(o))for(s=o.split(/\s+/),c=0;c"}return e.event_id||""}function u(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function c(e,t){var n;if(e.exception&&e.exception.values){var i=e.exception.values[0],o=i.mechanism;if(i.mechanism=Object(r.a)(Object(r.a)(Object(r.a)({},{type:"generic",handled:!0}),o),t),t&&"data"in t){var s=Object(r.a)(Object(r.a)({},null===(n=o)||void 0===n?void 0:n.data),t.data);i.mechanism.data=s}}}var l=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function f(e){var t=e.match(l)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function _(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}function d(e,t,n){void 0===n&&(n=5);var r=t.lineno||0,i=e.length,s=Math.max(Math.min(i,r-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map((function(e){return Object(o.c)(e,0)})),t.context_line=Object(o.c)(e[Math.min(i-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,i),s+1+n).map((function(e){return Object(o.c)(e,0)}))}function E(e){return e.split(/[\?#]/,1)[0]}function h(e){var t;if(null===(t=e)||void 0===t?void 0:t.__sentry_captured__)return!0;try{Object.defineProperty(e,"__sentry_captured__",{value:!0})}catch(e){}return!1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(9),i=n(3);function o(){if(!("fetch"in Object(r.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function a(){if(!o())return!1;var e=Object(r.a)();if(s(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a),a.contentWindow&&a.contentWindow.fetch&&(t=s(a.contentWindow.fetch)),n.head.removeChild(a)}catch(e){i.b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function u(){return"ReportingObserver"in Object(r.a)()}function c(){var e=Object(r.a)(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i}},function(e,t,n){e.exports=n(193)},function(e,t){e.exports=require("tls")},function(e,t,n){"use strict";function r(e,t){t=t||{};this._head=0,this._tail=0,this._capacity=t.capacity,this._capacityMask=3,this._list=new Array(4),Array.isArray(e)&&this._fromArray(e)}r.prototype.peekAt=function(e){var t=e;if(t===(0|t)){var n=this.size();if(!(t>=n||t<-n))return t<0&&(t+=n),t=this._head+t&this._capacityMask,this._list[t]}},r.prototype.get=function(e){return this.peekAt(e)},r.prototype.peek=function(){if(this._head!==this._tail)return this._list[this._head]},r.prototype.peekFront=function(){return this.peek()},r.prototype.peekBack=function(){return this.peekAt(-1)},Object.defineProperty(r.prototype,"length",{get:function(){return this.size()}}),r.prototype.size=function(){return this._head===this._tail?0:this._headthis._capacity&&this.pop(),this._head1e4&&this._tail<=this._list.length>>>2&&this._shrinkArray(),t}},r.prototype.push=function(e){if(0===arguments.length)return this.size();var t=this._tail;return this._list[t]=e,this._tail=t+1&this._capacityMask,this._tail===this._head&&this._growArray(),this._capacity&&this.size()>this._capacity&&this.shift(),this._head1e4&&e<=t>>>2&&this._shrinkArray(),n}},r.prototype.removeOne=function(e){var t=e;if(t===(0|t)&&this._head!==this._tail){var n=this.size(),r=this._list.length;if(!(t>=n||t<-n)){t<0&&(t+=n),t=this._head+t&this._capacityMask;var i,o=this._list[t];if(e0;i--)this._list[t]=this._list[t=t-1+r&this._capacityMask];this._list[t]=void 0,this._head=this._head+1+r&this._capacityMask}else{for(i=n-1-e;i>0;i--)this._list[t]=this._list[t=t+1+r&this._capacityMask];this._list[t]=void 0,this._tail=this._tail-1+r&this._capacityMask}return o}}},r.prototype.remove=function(e,t){var n,r=e,i=t;if(r===(0|r)&&this._head!==this._tail){var o=this.size(),s=this._list.length;if(!(r>=o||r<-o||t<1)){if(r<0&&(r+=o),1===t||!t)return(n=new Array(1))[0]=this.removeOne(r),n;if(0===r&&r+t>=o)return n=this.toArray(),this.clear(),n;var a;for(r+t>o&&(t=o-r),n=new Array(t),a=0;a0;a--)this._list[r=r+1+s&this._capacityMask]=void 0;return n}if(0===e){for(this._head=this._head+t+s&this._capacityMask,a=t-1;a>0;a--)this._list[r=r+1+s&this._capacityMask]=void 0;return n}if(r0;a--)this.unshift(this._list[r=r-1+s&this._capacityMask]);for(r=this._head-1+s&this._capacityMask;i>0;)this._list[r=r-1+s&this._capacityMask]=void 0,i--;e<0&&(this._tail=r)}else{for(this._tail=r,r=r+t+s&this._capacityMask,a=o-(t+e);a>0;a--)this.push(this._list[r++]);for(r=this._tail;i>0;)this._list[r=r+1+s&this._capacityMask]=void 0,i--}return this._head<2&&this._tail>1e4&&this._tail<=s>>>2&&this._shrinkArray(),n}}},r.prototype.splice=function(e,t){var n=e;if(n===(0|n)){var r=this.size();if(n<0&&(n+=r),!(n>r)){if(arguments.length>2){var i,o,s,a=arguments.length,u=this._list.length,c=2;if(!r||n0&&(this._head=this._head+n+u&this._capacityMask)):(s=this.remove(n,t),this._head=this._head+n+u&this._capacityMask);a>c;)this.unshift(arguments[--a]);for(i=n;i>0;i--)this.unshift(o[i-1])}else{var l=(o=new Array(r-(n+t))).length;for(i=0;ithis._tail){for(t=this._head;t>>=1,this._capacityMask>>>=1},e.exports=r},function(e,t,n){"use strict";const r=n(194),i=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),f=Symbol("lruList"),_=Symbol("cache"),d=Symbol("updateAgeOnGet"),E=()=>1;const h=(e,t,n)=>{const r=e[_].get(t);if(r){const t=r.value;if(p(e,t)){if(g(e,r),!e[a])return}else n&&(e[d]&&(r.value.now=Date.now()),e[f].unshiftNode(r));return t.value}},p=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]},R=e=>{if(e[o]>e[i])for(let t=e[f].tail;e[o]>e[i]&&null!==t;){const n=t.prev;g(e,t),t=n}},g=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[_].delete(n.key),e[f].removeNode(t)}};class A{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const T=(e,t,n,r)=>{let i=n.value;p(e,i)&&(g(e,n),e[a]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||E;if(this[s]="function"!=typeof t?E:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,R(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,R(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=E),e!==this[s]&&(this[s]=e,this[o]=0,this[f].forEach(e=>{e.length=this[s](e.value,e.key),this[o]+=e.length})),R(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let n=this[f].tail;null!==n;){const r=n.prev;T(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[f].head;null!==n;){const r=n.next;T(this,e,n,t),n=r}}keys(){return this[f].toArray().map(e=>e.key)}values(){return this[f].toArray().map(e=>e.value)}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach(e=>this[c](e.key,e.value)),this[_]=new Map,this[f]=new r,this[o]=0}dump(){return this[f].map(e=>!p(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[f]}set(e,t,n){if((n=n||this[u])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[s](t,e);if(this[_].has(e)){if(a>this[i])return g(this,this[_].get(e)),!1;const s=this[_].get(e).value;return this[c]&&(this[l]||this[c](e,s.value)),s.now=r,s.maxAge=n,s.value=t,this[o]+=a-s.length,s.length=a,this.get(e),R(this),!0}const d=new A(e,t,a,r,n);return d.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=d.length,this[f].unshift(d),this[_].set(e,this[f].head),R(this),!0)}has(e){if(!this[_].has(e))return!1;const t=this[_].get(e).value;return!p(this,t)}get(e){return h(this,e,!0)}peek(e){return h(this,e,!1)}pop(){const e=this[f].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[_].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[_].forEach((e,t)=>h(this,t,!1))}}},function(e,t,n){"use strict";const r=n(5);function i(e,t){const n=e[t],r=e[t+1],i=e[t+2];return r+i===0?n:n+(r<<8)+(i<<16)}class o{constructor(e,t){void 0===t&&(t=4),this.buffer=[],this.bufferLength=0,this.packetHeaderLength=t,this.headerLen=0,this.length=0,this.largePacketParts=[],this.firstPacketSequenceId=0,this.onPacket=e,this.execute=o.prototype.executeStart,this._flushLargePacket=7===t?this._flushLargePacket7:this._flushLargePacket4}_flushLargePacket4(){const e=this.largePacketParts.length;this.largePacketParts.unshift(Buffer.from([0,0,0,0]));const t=Buffer.concat(this.largePacketParts),n=new r(this.firstPacketSequenceId,t,0,t.length);this.largePacketParts.length=0,n.numPackets=e,this.onPacket(n)}_flushLargePacket7(){const e=this.largePacketParts.length;this.largePacketParts.unshift(Buffer.from([0,0,0,0,0,0,0]));const t=Buffer.concat(this.largePacketParts);this.largePacketParts.length=0;const n=new r(this.firstPacketSequenceId,t,0,t.length);n.numPackets=e,this.onPacket(n)}executeStart(e){let t=0;const n=e.length;for(;n-t>=3;){if(this.length=i(e,t),!(n-t>=this.length+this.packetHeaderLength))return this.buffer=[e.slice(t+3,n)],this.bufferLength=n-t-3,void(this.execute=o.prototype.executePayload);{const n=e[t+3];this.length<16777215&&0===this.largePacketParts.length?this.onPacket(new r(n,e,t,t+this.packetHeaderLength+this.length)):(0===this.largePacketParts.length&&(this.firstPacketSequenceId=n),this.largePacketParts.push(e.slice(t+this.packetHeaderLength,t+this.packetHeaderLength+this.length)),this.length<16777215&&this._flushLargePacket()),t+=this.packetHeaderLength+this.length}}n-t>0&&(this.headerLen=n-t,this.length=e[t],2===this.headerLen?(this.length=e[t]+(e[t+1]<<8),this.execute=o.prototype.executeHeader3):this.execute=o.prototype.executeHeader2)}executePayload(e){let t=0;const n=e.length,i=this.length-this.bufferLength+this.packetHeaderLength-3;if(n-t>=i){const s=Buffer.allocUnsafe(this.length+this.packetHeaderLength);let a=3;for(let e=0;e0)return this.execute(e.slice(t,n))}else this.buffer.push(e),this.bufferLength+=e.length;return null}executeHeader2(e){return this.length+=e[0]<<8,e.length>1?(this.length+=e[1]<<16,this.execute=o.prototype.executePayload,this.executePayload(e.slice(2))):(this.execute=o.prototype.executeHeader3,null)}executeHeader3(e){return this.length+=e[0]<<16,this.execute=o.prototype.executePayload,this.executePayload(e.slice(1))}}e.exports=o},function(e,t,n){"use strict";t.EE_CANTCREATEFILE=1,t.EE_READ=2,t.EE_WRITE=3,t.EE_BADCLOSE=4,t.EE_OUTOFMEMORY=5,t.EE_DELETE=6,t.EE_LINK=7,t.EE_EOFERR=9,t.EE_CANTLOCK=10,t.EE_CANTUNLOCK=11,t.EE_DIR=12,t.EE_STAT=13,t.EE_CANT_CHSIZE=14,t.EE_CANT_OPEN_STREAM=15,t.EE_GETWD=16,t.EE_SETWD=17,t.EE_LINK_WARNING=18,t.EE_OPEN_WARNING=19,t.EE_DISK_FULL=20,t.EE_CANT_MKDIR=21,t.EE_UNKNOWN_CHARSET=22,t.EE_OUT_OF_FILERESOURCES=23,t.EE_CANT_READLINK=24,t.EE_CANT_SYMLINK=25,t.EE_REALPATH=26,t.EE_SYNC=27,t.EE_UNKNOWN_COLLATION=28,t.EE_FILENOTFOUND=29,t.EE_FILE_NOT_CLOSED=30,t.EE_CHANGE_OWNERSHIP=31,t.EE_CHANGE_PERMISSIONS=32,t.EE_CANT_SEEK=33,t.HA_ERR_KEY_NOT_FOUND=120,t.HA_ERR_FOUND_DUPP_KEY=121,t.HA_ERR_INTERNAL_ERROR=122,t.HA_ERR_RECORD_CHANGED=123,t.HA_ERR_WRONG_INDEX=124,t.HA_ERR_CRASHED=126,t.HA_ERR_WRONG_IN_RECORD=127,t.HA_ERR_OUT_OF_MEM=128,t.HA_ERR_NOT_A_TABLE=130,t.HA_ERR_WRONG_COMMAND=131,t.HA_ERR_OLD_FILE=132,t.HA_ERR_NO_ACTIVE_RECORD=133,t.HA_ERR_RECORD_DELETED=134,t.HA_ERR_RECORD_FILE_FULL=135,t.HA_ERR_INDEX_FILE_FULL=136,t.HA_ERR_END_OF_FILE=137,t.HA_ERR_UNSUPPORTED=138,t.HA_ERR_TO_BIG_ROW=139,t.HA_WRONG_CREATE_OPTION=140,t.HA_ERR_FOUND_DUPP_UNIQUE=141,t.HA_ERR_UNKNOWN_CHARSET=142,t.HA_ERR_WRONG_MRG_TABLE_DEF=143,t.HA_ERR_CRASHED_ON_REPAIR=144,t.HA_ERR_CRASHED_ON_USAGE=145,t.HA_ERR_LOCK_WAIT_TIMEOUT=146,t.HA_ERR_LOCK_TABLE_FULL=147,t.HA_ERR_READ_ONLY_TRANSACTION=148,t.HA_ERR_LOCK_DEADLOCK=149,t.HA_ERR_CANNOT_ADD_FOREIGN=150,t.HA_ERR_NO_REFERENCED_ROW=151,t.HA_ERR_ROW_IS_REFERENCED=152,t.HA_ERR_NO_SAVEPOINT=153,t.HA_ERR_NON_UNIQUE_BLOCK_SIZE=154,t.HA_ERR_NO_SUCH_TABLE=155,t.HA_ERR_TABLE_EXIST=156,t.HA_ERR_NO_CONNECTION=157,t.HA_ERR_NULL_IN_SPATIAL=158,t.HA_ERR_TABLE_DEF_CHANGED=159,t.HA_ERR_NO_PARTITION_FOUND=160,t.HA_ERR_RBR_LOGGING_FAILED=161,t.HA_ERR_DROP_INDEX_FK=162,t.HA_ERR_FOREIGN_DUPLICATE_KEY=163,t.HA_ERR_TABLE_NEEDS_UPGRADE=164,t.HA_ERR_TABLE_READONLY=165,t.HA_ERR_AUTOINC_READ_FAILED=166,t.HA_ERR_AUTOINC_ERANGE=167,t.HA_ERR_GENERIC=168,t.HA_ERR_RECORD_IS_THE_SAME=169,t.HA_ERR_LOGGING_IMPOSSIBLE=170,t.HA_ERR_CORRUPT_EVENT=171,t.HA_ERR_NEW_FILE=172,t.HA_ERR_ROWS_EVENT_APPLY=173,t.HA_ERR_INITIALIZATION=174,t.HA_ERR_FILE_TOO_SHORT=175,t.HA_ERR_WRONG_CRC=176,t.HA_ERR_TOO_MANY_CONCURRENT_TRXS=177,t.HA_ERR_NOT_IN_LOCK_PARTITIONS=178,t.HA_ERR_INDEX_COL_TOO_LONG=179,t.HA_ERR_INDEX_CORRUPT=180,t.HA_ERR_UNDO_REC_TOO_BIG=181,t.HA_FTS_INVALID_DOCID=182,t.HA_ERR_TABLE_IN_FK_CHECK=183,t.HA_ERR_TABLESPACE_EXISTS=184,t.HA_ERR_TOO_MANY_FIELDS=185,t.HA_ERR_ROW_IN_WRONG_PARTITION=186,t.HA_ERR_INNODB_READ_ONLY=187,t.HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT=188,t.HA_ERR_TEMP_FILE_WRITE_FAILURE=189,t.HA_ERR_INNODB_FORCED_RECOVERY=190,t.HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE=191,t.ER_HASHCHK=1e3,t.ER_NISAMCHK=1001,t.ER_NO=1002,t.ER_YES=1003,t.ER_CANT_CREATE_FILE=1004,t.ER_CANT_CREATE_TABLE=1005,t.ER_CANT_CREATE_DB=1006,t.ER_DB_CREATE_EXISTS=1007,t.ER_DB_DROP_EXISTS=1008,t.ER_DB_DROP_DELETE=1009,t.ER_DB_DROP_RMDIR=1010,t.ER_CANT_DELETE_FILE=1011,t.ER_CANT_FIND_SYSTEM_REC=1012,t.ER_CANT_GET_STAT=1013,t.ER_CANT_GET_WD=1014,t.ER_CANT_LOCK=1015,t.ER_CANT_OPEN_FILE=1016,t.ER_FILE_NOT_FOUND=1017,t.ER_CANT_READ_DIR=1018,t.ER_CANT_SET_WD=1019,t.ER_CHECKREAD=1020,t.ER_DISK_FULL=1021,t.ER_DUP_KEY=1022,t.ER_ERROR_ON_CLOSE=1023,t.ER_ERROR_ON_READ=1024,t.ER_ERROR_ON_RENAME=1025,t.ER_ERROR_ON_WRITE=1026,t.ER_FILE_USED=1027,t.ER_FILSORT_ABORT=1028,t.ER_FORM_NOT_FOUND=1029,t.ER_GET_ERRNO=1030,t.ER_ILLEGAL_HA=1031,t.ER_KEY_NOT_FOUND=1032,t.ER_NOT_FORM_FILE=1033,t.ER_NOT_KEYFILE=1034,t.ER_OLD_KEYFILE=1035,t.ER_OPEN_AS_READONLY=1036,t.ER_OUTOFMEMORY=1037,t.ER_OUT_OF_SORTMEMORY=1038,t.ER_UNEXPECTED_EOF=1039,t.ER_CON_COUNT_ERROR=1040,t.ER_OUT_OF_RESOURCES=1041,t.ER_BAD_HOST_ERROR=1042,t.ER_HANDSHAKE_ERROR=1043,t.ER_DBACCESS_DENIED_ERROR=1044,t.ER_ACCESS_DENIED_ERROR=1045,t.ER_NO_DB_ERROR=1046,t.ER_UNKNOWN_COM_ERROR=1047,t.ER_BAD_NULL_ERROR=1048,t.ER_BAD_DB_ERROR=1049,t.ER_TABLE_EXISTS_ERROR=1050,t.ER_BAD_TABLE_ERROR=1051,t.ER_NON_UNIQ_ERROR=1052,t.ER_SERVER_SHUTDOWN=1053,t.ER_BAD_FIELD_ERROR=1054,t.ER_WRONG_FIELD_WITH_GROUP=1055,t.ER_WRONG_GROUP_FIELD=1056,t.ER_WRONG_SUM_SELECT=1057,t.ER_WRONG_VALUE_COUNT=1058,t.ER_TOO_LONG_IDENT=1059,t.ER_DUP_FIELDNAME=1060,t.ER_DUP_KEYNAME=1061,t.ER_DUP_ENTRY=1062,t.ER_WRONG_FIELD_SPEC=1063,t.ER_PARSE_ERROR=1064,t.ER_EMPTY_QUERY=1065,t.ER_NONUNIQ_TABLE=1066,t.ER_INVALID_DEFAULT=1067,t.ER_MULTIPLE_PRI_KEY=1068,t.ER_TOO_MANY_KEYS=1069,t.ER_TOO_MANY_KEY_PARTS=1070,t.ER_TOO_LONG_KEY=1071,t.ER_KEY_COLUMN_DOES_NOT_EXITS=1072,t.ER_BLOB_USED_AS_KEY=1073,t.ER_TOO_BIG_FIELDLENGTH=1074,t.ER_WRONG_AUTO_KEY=1075,t.ER_READY=1076,t.ER_NORMAL_SHUTDOWN=1077,t.ER_GOT_SIGNAL=1078,t.ER_SHUTDOWN_COMPLETE=1079,t.ER_FORCING_CLOSE=1080,t.ER_IPSOCK_ERROR=1081,t.ER_NO_SUCH_INDEX=1082,t.ER_WRONG_FIELD_TERMINATORS=1083,t.ER_BLOBS_AND_NO_TERMINATED=1084,t.ER_TEXTFILE_NOT_READABLE=1085,t.ER_FILE_EXISTS_ERROR=1086,t.ER_LOAD_INFO=1087,t.ER_ALTER_INFO=1088,t.ER_WRONG_SUB_KEY=1089,t.ER_CANT_REMOVE_ALL_FIELDS=1090,t.ER_CANT_DROP_FIELD_OR_KEY=1091,t.ER_INSERT_INFO=1092,t.ER_UPDATE_TABLE_USED=1093,t.ER_NO_SUCH_THREAD=1094,t.ER_KILL_DENIED_ERROR=1095,t.ER_NO_TABLES_USED=1096,t.ER_TOO_BIG_SET=1097,t.ER_NO_UNIQUE_LOGFILE=1098,t.ER_TABLE_NOT_LOCKED_FOR_WRITE=1099,t.ER_TABLE_NOT_LOCKED=1100,t.ER_BLOB_CANT_HAVE_DEFAULT=1101,t.ER_WRONG_DB_NAME=1102,t.ER_WRONG_TABLE_NAME=1103,t.ER_TOO_BIG_SELECT=1104,t.ER_UNKNOWN_ERROR=1105,t.ER_UNKNOWN_PROCEDURE=1106,t.ER_WRONG_PARAMCOUNT_TO_PROCEDURE=1107,t.ER_WRONG_PARAMETERS_TO_PROCEDURE=1108,t.ER_UNKNOWN_TABLE=1109,t.ER_FIELD_SPECIFIED_TWICE=1110,t.ER_INVALID_GROUP_FUNC_USE=1111,t.ER_UNSUPPORTED_EXTENSION=1112,t.ER_TABLE_MUST_HAVE_COLUMNS=1113,t.ER_RECORD_FILE_FULL=1114,t.ER_UNKNOWN_CHARACTER_SET=1115,t.ER_TOO_MANY_TABLES=1116,t.ER_TOO_MANY_FIELDS=1117,t.ER_TOO_BIG_ROWSIZE=1118,t.ER_STACK_OVERRUN=1119,t.ER_WRONG_OUTER_JOIN=1120,t.ER_NULL_COLUMN_IN_INDEX=1121,t.ER_CANT_FIND_UDF=1122,t.ER_CANT_INITIALIZE_UDF=1123,t.ER_UDF_NO_PATHS=1124,t.ER_UDF_EXISTS=1125,t.ER_CANT_OPEN_LIBRARY=1126,t.ER_CANT_FIND_DL_ENTRY=1127,t.ER_FUNCTION_NOT_DEFINED=1128,t.ER_HOST_IS_BLOCKED=1129,t.ER_HOST_NOT_PRIVILEGED=1130,t.ER_PASSWORD_ANONYMOUS_USER=1131,t.ER_PASSWORD_NOT_ALLOWED=1132,t.ER_PASSWORD_NO_MATCH=1133,t.ER_UPDATE_INFO=1134,t.ER_CANT_CREATE_THREAD=1135,t.ER_WRONG_VALUE_COUNT_ON_ROW=1136,t.ER_CANT_REOPEN_TABLE=1137,t.ER_INVALID_USE_OF_NULL=1138,t.ER_REGEXP_ERROR=1139,t.ER_MIX_OF_GROUP_FUNC_AND_FIELDS=1140,t.ER_NONEXISTING_GRANT=1141,t.ER_TABLEACCESS_DENIED_ERROR=1142,t.ER_COLUMNACCESS_DENIED_ERROR=1143,t.ER_ILLEGAL_GRANT_FOR_TABLE=1144,t.ER_GRANT_WRONG_HOST_OR_USER=1145,t.ER_NO_SUCH_TABLE=1146,t.ER_NONEXISTING_TABLE_GRANT=1147,t.ER_NOT_ALLOWED_COMMAND=1148,t.ER_SYNTAX_ERROR=1149,t.ER_DELAYED_CANT_CHANGE_LOCK=1150,t.ER_TOO_MANY_DELAYED_THREADS=1151,t.ER_ABORTING_CONNECTION=1152,t.ER_NET_PACKET_TOO_LARGE=1153,t.ER_NET_READ_ERROR_FROM_PIPE=1154,t.ER_NET_FCNTL_ERROR=1155,t.ER_NET_PACKETS_OUT_OF_ORDER=1156,t.ER_NET_UNCOMPRESS_ERROR=1157,t.ER_NET_READ_ERROR=1158,t.ER_NET_READ_INTERRUPTED=1159,t.ER_NET_ERROR_ON_WRITE=1160,t.ER_NET_WRITE_INTERRUPTED=1161,t.ER_TOO_LONG_STRING=1162,t.ER_TABLE_CANT_HANDLE_BLOB=1163,t.ER_TABLE_CANT_HANDLE_AUTO_INCREMENT=1164,t.ER_DELAYED_INSERT_TABLE_LOCKED=1165,t.ER_WRONG_COLUMN_NAME=1166,t.ER_WRONG_KEY_COLUMN=1167,t.ER_WRONG_MRG_TABLE=1168,t.ER_DUP_UNIQUE=1169,t.ER_BLOB_KEY_WITHOUT_LENGTH=1170,t.ER_PRIMARY_CANT_HAVE_NULL=1171,t.ER_TOO_MANY_ROWS=1172,t.ER_REQUIRES_PRIMARY_KEY=1173,t.ER_NO_RAID_COMPILED=1174,t.ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE=1175,t.ER_KEY_DOES_NOT_EXITS=1176,t.ER_CHECK_NO_SUCH_TABLE=1177,t.ER_CHECK_NOT_IMPLEMENTED=1178,t.ER_CANT_DO_THIS_DURING_AN_TRANSACTION=1179,t.ER_ERROR_DURING_COMMIT=1180,t.ER_ERROR_DURING_ROLLBACK=1181,t.ER_ERROR_DURING_FLUSH_LOGS=1182,t.ER_ERROR_DURING_CHECKPOINT=1183,t.ER_NEW_ABORTING_CONNECTION=1184,t.ER_DUMP_NOT_IMPLEMENTED=1185,t.ER_FLUSH_MASTER_BINLOG_CLOSED=1186,t.ER_FLUSH_SOURCE_BINLOG_CLOSED=1186,t.ER_INDEX_REBUILD=1187,t.ER_MASTER=1188,t.ER_SOURCE=1188,t.ER_MASTER_NET_READ=1189,t.ER_SOURCE_NET_READ=1189,t.ER_MASTER_NET_WRITE=1190,t.ER_SOURCE_NET_WRITE=1190,t.ER_FT_MATCHING_KEY_NOT_FOUND=1191,t.ER_LOCK_OR_ACTIVE_TRANSACTION=1192,t.ER_UNKNOWN_SYSTEM_VARIABLE=1193,t.ER_CRASHED_ON_USAGE=1194,t.ER_CRASHED_ON_REPAIR=1195,t.ER_WARNING_NOT_COMPLETE_ROLLBACK=1196,t.ER_TRANS_CACHE_FULL=1197,t.ER_SLAVE_MUST_STOP=1198,t.ER_REPLICA_MUST_STOP=1198,t.ER_SLAVE_NOT_RUNNING=1199,t.ER_REPLICA_NOT_RUNNING=1199,t.ER_BAD_SLAVE=1200,t.ER_BAD_REPLICA=1200,t.ER_MASTER_INFO=1201,t.ER_SOURCE_INFO=1201,t.ER_SLAVE_THREAD=1202,t.ER_REPLICA_THREAD=1202,t.ER_TOO_MANY_USER_CONNECTIONS=1203,t.ER_SET_CONSTANTS_ONLY=1204,t.ER_LOCK_WAIT_TIMEOUT=1205,t.ER_LOCK_TABLE_FULL=1206,t.ER_READ_ONLY_TRANSACTION=1207,t.ER_DROP_DB_WITH_READ_LOCK=1208,t.ER_CREATE_DB_WITH_READ_LOCK=1209,t.ER_WRONG_ARGUMENTS=1210,t.ER_NO_PERMISSION_TO_CREATE_USER=1211,t.ER_UNION_TABLES_IN_DIFFERENT_DIR=1212,t.ER_LOCK_DEADLOCK=1213,t.ER_TABLE_CANT_HANDLE_FT=1214,t.ER_CANNOT_ADD_FOREIGN=1215,t.ER_NO_REFERENCED_ROW=1216,t.ER_ROW_IS_REFERENCED=1217,t.ER_CONNECT_TO_MASTER=1218,t.ER_CONNECT_TO_SOURCE=1218,t.ER_QUERY_ON_MASTER=1219,t.ER_QUERY_ON_SOURCE=1219,t.ER_ERROR_WHEN_EXECUTING_COMMAND=1220,t.ER_WRONG_USAGE=1221,t.ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT=1222,t.ER_CANT_UPDATE_WITH_READLOCK=1223,t.ER_MIXING_NOT_ALLOWED=1224,t.ER_DUP_ARGUMENT=1225,t.ER_USER_LIMIT_REACHED=1226,t.ER_SPECIFIC_ACCESS_DENIED_ERROR=1227,t.ER_LOCAL_VARIABLE=1228,t.ER_GLOBAL_VARIABLE=1229,t.ER_NO_DEFAULT=1230,t.ER_WRONG_VALUE_FOR_VAR=1231,t.ER_WRONG_TYPE_FOR_VAR=1232,t.ER_VAR_CANT_BE_READ=1233,t.ER_CANT_USE_OPTION_HERE=1234,t.ER_NOT_SUPPORTED_YET=1235,t.ER_MASTER_FATAL_ERROR_READING_BINLOG=1236,t.ER_SOURCE_FATAL_ERROR_READING_BINLOG=1236,t.ER_SLAVE_IGNORED_TABLE=1237,t.ER_REPLICA_IGNORED_TABLE=1237,t.ER_INCORRECT_GLOBAL_LOCAL_VAR=1238,t.ER_WRONG_FK_DEF=1239,t.ER_KEY_REF_DO_NOT_MATCH_TABLE_REF=1240,t.ER_OPERAND_COLUMNS=1241,t.ER_SUBQUERY_NO_1_ROW=1242,t.ER_UNKNOWN_STMT_HANDLER=1243,t.ER_CORRUPT_HELP_DB=1244,t.ER_CYCLIC_REFERENCE=1245,t.ER_AUTO_CONVERT=1246,t.ER_ILLEGAL_REFERENCE=1247,t.ER_DERIVED_MUST_HAVE_ALIAS=1248,t.ER_SELECT_REDUCED=1249,t.ER_TABLENAME_NOT_ALLOWED_HERE=1250,t.ER_NOT_SUPPORTED_AUTH_MODE=1251,t.ER_SPATIAL_CANT_HAVE_NULL=1252,t.ER_COLLATION_CHARSET_MISMATCH=1253,t.ER_SLAVE_WAS_RUNNING=1254,t.ER_REPLICA_WAS_RUNNING=1254,t.ER_SLAVE_WAS_NOT_RUNNING=1255,t.ER_REPLICA_WAS_NOT_RUNNING=1255,t.ER_TOO_BIG_FOR_UNCOMPRESS=1256,t.ER_ZLIB_Z_MEM_ERROR=1257,t.ER_ZLIB_Z_BUF_ERROR=1258,t.ER_ZLIB_Z_DATA_ERROR=1259,t.ER_CUT_VALUE_GROUP_CONCAT=1260,t.ER_WARN_TOO_FEW_RECORDS=1261,t.ER_WARN_TOO_MANY_RECORDS=1262,t.ER_WARN_NULL_TO_NOTNULL=1263,t.ER_WARN_DATA_OUT_OF_RANGE=1264,t.ER_WARN_DATA_TRUNCATED=1265,t.ER_WARN_USING_OTHER_HANDLER=1266,t.ER_CANT_AGGREGATE_2COLLATIONS=1267,t.ER_DROP_USER=1268,t.ER_REVOKE_GRANTS=1269,t.ER_CANT_AGGREGATE_3COLLATIONS=1270,t.ER_CANT_AGGREGATE_NCOLLATIONS=1271,t.ER_VARIABLE_IS_NOT_STRUCT=1272,t.ER_UNKNOWN_COLLATION=1273,t.ER_SLAVE_IGNORED_SSL_PARAMS=1274,t.ER_REPLICA_IGNORED_SSL_PARAMS=1274,t.ER_SERVER_IS_IN_SECURE_AUTH_MODE=1275,t.ER_WARN_FIELD_RESOLVED=1276,t.ER_BAD_SLAVE_UNTIL_COND=1277,t.ER_BAD_REPLICA_UNTIL_COND=1277,t.ER_MISSING_SKIP_SLAVE=1278,t.ER_MISSING_SKIP_REPLICA=1278,t.ER_UNTIL_COND_IGNORED=1279,t.ER_WRONG_NAME_FOR_INDEX=1280,t.ER_WRONG_NAME_FOR_CATALOG=1281,t.ER_WARN_QC_RESIZE=1282,t.ER_BAD_FT_COLUMN=1283,t.ER_UNKNOWN_KEY_CACHE=1284,t.ER_WARN_HOSTNAME_WONT_WORK=1285,t.ER_UNKNOWN_STORAGE_ENGINE=1286,t.ER_WARN_DEPRECATED_SYNTAX=1287,t.ER_NON_UPDATABLE_TABLE=1288,t.ER_FEATURE_DISABLED=1289,t.ER_OPTION_PREVENTS_STATEMENT=1290,t.ER_DUPLICATED_VALUE_IN_TYPE=1291,t.ER_TRUNCATED_WRONG_VALUE=1292,t.ER_TOO_MUCH_AUTO_TIMESTAMP_COLS=1293,t.ER_INVALID_ON_UPDATE=1294,t.ER_UNSUPPORTED_PS=1295,t.ER_GET_ERRMSG=1296,t.ER_GET_TEMPORARY_ERRMSG=1297,t.ER_UNKNOWN_TIME_ZONE=1298,t.ER_WARN_INVALID_TIMESTAMP=1299,t.ER_INVALID_CHARACTER_STRING=1300,t.ER_WARN_ALLOWED_PACKET_OVERFLOWED=1301,t.ER_CONFLICTING_DECLARATIONS=1302,t.ER_SP_NO_RECURSIVE_CREATE=1303,t.ER_SP_ALREADY_EXISTS=1304,t.ER_SP_DOES_NOT_EXIST=1305,t.ER_SP_DROP_FAILED=1306,t.ER_SP_STORE_FAILED=1307,t.ER_SP_LILABEL_MISMATCH=1308,t.ER_SP_LABEL_REDEFINE=1309,t.ER_SP_LABEL_MISMATCH=1310,t.ER_SP_UNINIT_VAR=1311,t.ER_SP_BADSELECT=1312,t.ER_SP_BADRETURN=1313,t.ER_SP_BADSTATEMENT=1314,t.ER_UPDATE_LOG_DEPRECATED_IGNORED=1315,t.ER_UPDATE_LOG_DEPRECATED_TRANSLATED=1316,t.ER_QUERY_INTERRUPTED=1317,t.ER_SP_WRONG_NO_OF_ARGS=1318,t.ER_SP_COND_MISMATCH=1319,t.ER_SP_NORETURN=1320,t.ER_SP_NORETURNEND=1321,t.ER_SP_BAD_CURSOR_QUERY=1322,t.ER_SP_BAD_CURSOR_SELECT=1323,t.ER_SP_CURSOR_MISMATCH=1324,t.ER_SP_CURSOR_ALREADY_OPEN=1325,t.ER_SP_CURSOR_NOT_OPEN=1326,t.ER_SP_UNDECLARED_VAR=1327,t.ER_SP_WRONG_NO_OF_FETCH_ARGS=1328,t.ER_SP_FETCH_NO_DATA=1329,t.ER_SP_DUP_PARAM=1330,t.ER_SP_DUP_VAR=1331,t.ER_SP_DUP_COND=1332,t.ER_SP_DUP_CURS=1333,t.ER_SP_CANT_ALTER=1334,t.ER_SP_SUBSELECT_NYI=1335,t.ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG=1336,t.ER_SP_VARCOND_AFTER_CURSHNDLR=1337,t.ER_SP_CURSOR_AFTER_HANDLER=1338,t.ER_SP_CASE_NOT_FOUND=1339,t.ER_FPARSER_TOO_BIG_FILE=1340,t.ER_FPARSER_BAD_HEADER=1341,t.ER_FPARSER_EOF_IN_COMMENT=1342,t.ER_FPARSER_ERROR_IN_PARAMETER=1343,t.ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER=1344,t.ER_VIEW_NO_EXPLAIN=1345,t.ER_FRM_UNKNOWN_TYPE=1346,t.ER_WRONG_OBJECT=1347,t.ER_NONUPDATEABLE_COLUMN=1348,t.ER_VIEW_SELECT_DERIVED=1349,t.ER_VIEW_SELECT_CLAUSE=1350,t.ER_VIEW_SELECT_VARIABLE=1351,t.ER_VIEW_SELECT_TMPTABLE=1352,t.ER_VIEW_WRONG_LIST=1353,t.ER_WARN_VIEW_MERGE=1354,t.ER_WARN_VIEW_WITHOUT_KEY=1355,t.ER_VIEW_INVALID=1356,t.ER_SP_NO_DROP_SP=1357,t.ER_SP_GOTO_IN_HNDLR=1358,t.ER_TRG_ALREADY_EXISTS=1359,t.ER_TRG_DOES_NOT_EXIST=1360,t.ER_TRG_ON_VIEW_OR_TEMP_TABLE=1361,t.ER_TRG_CANT_CHANGE_ROW=1362,t.ER_TRG_NO_SUCH_ROW_IN_TRG=1363,t.ER_NO_DEFAULT_FOR_FIELD=1364,t.ER_DIVISION_BY_ZERO=1365,t.ER_TRUNCATED_WRONG_VALUE_FOR_FIELD=1366,t.ER_ILLEGAL_VALUE_FOR_TYPE=1367,t.ER_VIEW_NONUPD_CHECK=1368,t.ER_VIEW_CHECK_FAILED=1369,t.ER_PROCACCESS_DENIED_ERROR=1370,t.ER_RELAY_LOG_FAIL=1371,t.ER_PASSWD_LENGTH=1372,t.ER_UNKNOWN_TARGET_BINLOG=1373,t.ER_IO_ERR_LOG_INDEX_READ=1374,t.ER_BINLOG_PURGE_PROHIBITED=1375,t.ER_FSEEK_FAIL=1376,t.ER_BINLOG_PURGE_FATAL_ERR=1377,t.ER_LOG_IN_USE=1378,t.ER_LOG_PURGE_UNKNOWN_ERR=1379,t.ER_RELAY_LOG_INIT=1380,t.ER_NO_BINARY_LOGGING=1381,t.ER_RESERVED_SYNTAX=1382,t.ER_WSAS_FAILED=1383,t.ER_DIFF_GROUPS_PROC=1384,t.ER_NO_GROUP_FOR_PROC=1385,t.ER_ORDER_WITH_PROC=1386,t.ER_LOGGING_PROHIBIT_CHANGING_OF=1387,t.ER_NO_FILE_MAPPING=1388,t.ER_WRONG_MAGIC=1389,t.ER_PS_MANY_PARAM=1390,t.ER_KEY_PART_0=1391,t.ER_VIEW_CHECKSUM=1392,t.ER_VIEW_MULTIUPDATE=1393,t.ER_VIEW_NO_INSERT_FIELD_LIST=1394,t.ER_VIEW_DELETE_MERGE_VIEW=1395,t.ER_CANNOT_USER=1396,t.ER_XAER_NOTA=1397,t.ER_XAER_INVAL=1398,t.ER_XAER_RMFAIL=1399,t.ER_XAER_OUTSIDE=1400,t.ER_XAER_RMERR=1401,t.ER_XA_RBROLLBACK=1402,t.ER_NONEXISTING_PROC_GRANT=1403,t.ER_PROC_AUTO_GRANT_FAIL=1404,t.ER_PROC_AUTO_REVOKE_FAIL=1405,t.ER_DATA_TOO_LONG=1406,t.ER_SP_BAD_SQLSTATE=1407,t.ER_STARTUP=1408,t.ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR=1409,t.ER_CANT_CREATE_USER_WITH_GRANT=1410,t.ER_WRONG_VALUE_FOR_TYPE=1411,t.ER_TABLE_DEF_CHANGED=1412,t.ER_SP_DUP_HANDLER=1413,t.ER_SP_NOT_VAR_ARG=1414,t.ER_SP_NO_RETSET=1415,t.ER_CANT_CREATE_GEOMETRY_OBJECT=1416,t.ER_FAILED_ROUTINE_BREAK_BINLOG=1417,t.ER_BINLOG_UNSAFE_ROUTINE=1418,t.ER_BINLOG_CREATE_ROUTINE_NEED_SUPER=1419,t.ER_EXEC_STMT_WITH_OPEN_CURSOR=1420,t.ER_STMT_HAS_NO_OPEN_CURSOR=1421,t.ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG=1422,t.ER_NO_DEFAULT_FOR_VIEW_FIELD=1423,t.ER_SP_NO_RECURSION=1424,t.ER_TOO_BIG_SCALE=1425,t.ER_TOO_BIG_PRECISION=1426,t.ER_M_BIGGER_THAN_D=1427,t.ER_WRONG_LOCK_OF_SYSTEM_TABLE=1428,t.ER_CONNECT_TO_FOREIGN_DATA_SOURCE=1429,t.ER_QUERY_ON_FOREIGN_DATA_SOURCE=1430,t.ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST=1431,t.ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE=1432,t.ER_FOREIGN_DATA_STRING_INVALID=1433,t.ER_CANT_CREATE_FEDERATED_TABLE=1434,t.ER_TRG_IN_WRONG_SCHEMA=1435,t.ER_STACK_OVERRUN_NEED_MORE=1436,t.ER_TOO_LONG_BODY=1437,t.ER_WARN_CANT_DROP_DEFAULT_KEYCACHE=1438,t.ER_TOO_BIG_DISPLAYWIDTH=1439,t.ER_XAER_DUPID=1440,t.ER_DATETIME_FUNCTION_OVERFLOW=1441,t.ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG=1442,t.ER_VIEW_PREVENT_UPDATE=1443,t.ER_PS_NO_RECURSION=1444,t.ER_SP_CANT_SET_AUTOCOMMIT=1445,t.ER_MALFORMED_DEFINER=1446,t.ER_VIEW_FRM_NO_USER=1447,t.ER_VIEW_OTHER_USER=1448,t.ER_NO_SUCH_USER=1449,t.ER_FORBID_SCHEMA_CHANGE=1450,t.ER_ROW_IS_REFERENCED_2=1451,t.ER_NO_REFERENCED_ROW_2=1452,t.ER_SP_BAD_VAR_SHADOW=1453,t.ER_TRG_NO_DEFINER=1454,t.ER_OLD_FILE_FORMAT=1455,t.ER_SP_RECURSION_LIMIT=1456,t.ER_SP_PROC_TABLE_CORRUPT=1457,t.ER_SP_WRONG_NAME=1458,t.ER_TABLE_NEEDS_UPGRADE=1459,t.ER_SP_NO_AGGREGATE=1460,t.ER_MAX_PREPARED_STMT_COUNT_REACHED=1461,t.ER_VIEW_RECURSIVE=1462,t.ER_NON_GROUPING_FIELD_USED=1463,t.ER_TABLE_CANT_HANDLE_SPKEYS=1464,t.ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA=1465,t.ER_REMOVED_SPACES=1466,t.ER_AUTOINC_READ_FAILED=1467,t.ER_USERNAME=1468,t.ER_HOSTNAME=1469,t.ER_WRONG_STRING_LENGTH=1470,t.ER_NON_INSERTABLE_TABLE=1471,t.ER_ADMIN_WRONG_MRG_TABLE=1472,t.ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT=1473,t.ER_NAME_BECOMES_EMPTY=1474,t.ER_AMBIGUOUS_FIELD_TERM=1475,t.ER_FOREIGN_SERVER_EXISTS=1476,t.ER_FOREIGN_SERVER_DOESNT_EXIST=1477,t.ER_ILLEGAL_HA_CREATE_OPTION=1478,t.ER_PARTITION_REQUIRES_VALUES_ERROR=1479,t.ER_PARTITION_WRONG_VALUES_ERROR=1480,t.ER_PARTITION_MAXVALUE_ERROR=1481,t.ER_PARTITION_SUBPARTITION_ERROR=1482,t.ER_PARTITION_SUBPART_MIX_ERROR=1483,t.ER_PARTITION_WRONG_NO_PART_ERROR=1484,t.ER_PARTITION_WRONG_NO_SUBPART_ERROR=1485,t.ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR=1486,t.ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR=1487,t.ER_FIELD_NOT_FOUND_PART_ERROR=1488,t.ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR=1489,t.ER_INCONSISTENT_PARTITION_INFO_ERROR=1490,t.ER_PARTITION_FUNC_NOT_ALLOWED_ERROR=1491,t.ER_PARTITIONS_MUST_BE_DEFINED_ERROR=1492,t.ER_RANGE_NOT_INCREASING_ERROR=1493,t.ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR=1494,t.ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR=1495,t.ER_PARTITION_ENTRY_ERROR=1496,t.ER_MIX_HANDLER_ERROR=1497,t.ER_PARTITION_NOT_DEFINED_ERROR=1498,t.ER_TOO_MANY_PARTITIONS_ERROR=1499,t.ER_SUBPARTITION_ERROR=1500,t.ER_CANT_CREATE_HANDLER_FILE=1501,t.ER_BLOB_FIELD_IN_PART_FUNC_ERROR=1502,t.ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF=1503,t.ER_NO_PARTS_ERROR=1504,t.ER_PARTITION_MGMT_ON_NONPARTITIONED=1505,t.ER_FOREIGN_KEY_ON_PARTITIONED=1506,t.ER_DROP_PARTITION_NON_EXISTENT=1507,t.ER_DROP_LAST_PARTITION=1508,t.ER_COALESCE_ONLY_ON_HASH_PARTITION=1509,t.ER_REORG_HASH_ONLY_ON_SAME_NO=1510,t.ER_REORG_NO_PARAM_ERROR=1511,t.ER_ONLY_ON_RANGE_LIST_PARTITION=1512,t.ER_ADD_PARTITION_SUBPART_ERROR=1513,t.ER_ADD_PARTITION_NO_NEW_PARTITION=1514,t.ER_COALESCE_PARTITION_NO_PARTITION=1515,t.ER_REORG_PARTITION_NOT_EXIST=1516,t.ER_SAME_NAME_PARTITION=1517,t.ER_NO_BINLOG_ERROR=1518,t.ER_CONSECUTIVE_REORG_PARTITIONS=1519,t.ER_REORG_OUTSIDE_RANGE=1520,t.ER_PARTITION_FUNCTION_FAILURE=1521,t.ER_PART_STATE_ERROR=1522,t.ER_LIMITED_PART_RANGE=1523,t.ER_PLUGIN_IS_NOT_LOADED=1524,t.ER_WRONG_VALUE=1525,t.ER_NO_PARTITION_FOR_GIVEN_VALUE=1526,t.ER_FILEGROUP_OPTION_ONLY_ONCE=1527,t.ER_CREATE_FILEGROUP_FAILED=1528,t.ER_DROP_FILEGROUP_FAILED=1529,t.ER_TABLESPACE_AUTO_EXTEND_ERROR=1530,t.ER_WRONG_SIZE_NUMBER=1531,t.ER_SIZE_OVERFLOW_ERROR=1532,t.ER_ALTER_FILEGROUP_FAILED=1533,t.ER_BINLOG_ROW_LOGGING_FAILED=1534,t.ER_BINLOG_ROW_WRONG_TABLE_DEF=1535,t.ER_BINLOG_ROW_RBR_TO_SBR=1536,t.ER_EVENT_ALREADY_EXISTS=1537,t.ER_EVENT_STORE_FAILED=1538,t.ER_EVENT_DOES_NOT_EXIST=1539,t.ER_EVENT_CANT_ALTER=1540,t.ER_EVENT_DROP_FAILED=1541,t.ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG=1542,t.ER_EVENT_ENDS_BEFORE_STARTS=1543,t.ER_EVENT_EXEC_TIME_IN_THE_PAST=1544,t.ER_EVENT_OPEN_TABLE_FAILED=1545,t.ER_EVENT_NEITHER_M_EXPR_NOR_M_AT=1546,t.ER_COL_COUNT_DOESNT_MATCH_CORRUPTED=1547,t.ER_CANNOT_LOAD_FROM_TABLE=1548,t.ER_EVENT_CANNOT_DELETE=1549,t.ER_EVENT_COMPILE_ERROR=1550,t.ER_EVENT_SAME_NAME=1551,t.ER_EVENT_DATA_TOO_LONG=1552,t.ER_DROP_INDEX_FK=1553,t.ER_WARN_DEPRECATED_SYNTAX_WITH_VER=1554,t.ER_CANT_WRITE_LOCK_LOG_TABLE=1555,t.ER_CANT_LOCK_LOG_TABLE=1556,t.ER_FOREIGN_DUPLICATE_KEY=1557,t.ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE=1558,t.ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR=1559,t.ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT=1560,t.ER_NDB_CANT_SWITCH_BINLOG_FORMAT=1561,t.ER_PARTITION_NO_TEMPORARY=1562,t.ER_PARTITION_CONST_DOMAIN_ERROR=1563,t.ER_PARTITION_FUNCTION_IS_NOT_ALLOWED=1564,t.ER_DDL_LOG_ERROR=1565,t.ER_NULL_IN_VALUES_LESS_THAN=1566,t.ER_WRONG_PARTITION_NAME=1567,t.ER_CANT_CHANGE_TX_ISOLATION=1568,t.ER_DUP_ENTRY_AUTOINCREMENT_CASE=1569,t.ER_EVENT_MODIFY_QUEUE_ERROR=1570,t.ER_EVENT_SET_VAR_ERROR=1571,t.ER_PARTITION_MERGE_ERROR=1572,t.ER_CANT_ACTIVATE_LOG=1573,t.ER_RBR_NOT_AVAILABLE=1574,t.ER_BASE64_DECODE_ERROR=1575,t.ER_EVENT_RECURSION_FORBIDDEN=1576,t.ER_EVENTS_DB_ERROR=1577,t.ER_ONLY_INTEGERS_ALLOWED=1578,t.ER_UNSUPORTED_LOG_ENGINE=1579,t.ER_BAD_LOG_STATEMENT=1580,t.ER_CANT_RENAME_LOG_TABLE=1581,t.ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT=1582,t.ER_WRONG_PARAMETERS_TO_NATIVE_FCT=1583,t.ER_WRONG_PARAMETERS_TO_STORED_FCT=1584,t.ER_NATIVE_FCT_NAME_COLLISION=1585,t.ER_DUP_ENTRY_WITH_KEY_NAME=1586,t.ER_BINLOG_PURGE_EMFILE=1587,t.ER_EVENT_CANNOT_CREATE_IN_THE_PAST=1588,t.ER_EVENT_CANNOT_ALTER_IN_THE_PAST=1589,t.ER_SLAVE_INCIDENT=1590,t.ER_REPLICA_INCIDENT=1590,t.ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT=1591,t.ER_BINLOG_UNSAFE_STATEMENT=1592,t.ER_SLAVE_FATAL_ERROR=1593,t.ER_REPLICA_FATAL_ERROR=1593,t.ER_SLAVE_RELAY_LOG_READ_FAILURE=1594,t.ER_REPLICA_RELAY_LOG_READ_FAILURE=1594,t.ER_SLAVE_RELAY_LOG_WRITE_FAILURE=1595,t.ER_REPLICA_RELAY_LOG_WRITE_FAILURE=1595,t.ER_SLAVE_CREATE_EVENT_FAILURE=1596,t.ER_REPLICA_CREATE_EVENT_FAILURE=1596,t.ER_SLAVE_MASTER_COM_FAILURE=1597,t.ER_REPLICA_SOURCE_COM_FAILURE=1597,t.ER_BINLOG_LOGGING_IMPOSSIBLE=1598,t.ER_VIEW_NO_CREATION_CTX=1599,t.ER_VIEW_INVALID_CREATION_CTX=1600,t.ER_SR_INVALID_CREATION_CTX=1601,t.ER_TRG_CORRUPTED_FILE=1602,t.ER_TRG_NO_CREATION_CTX=1603,t.ER_TRG_INVALID_CREATION_CTX=1604,t.ER_EVENT_INVALID_CREATION_CTX=1605,t.ER_TRG_CANT_OPEN_TABLE=1606,t.ER_CANT_CREATE_SROUTINE=1607,t.ER_NEVER_USED=1608,t.ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT=1609,t.ER_SLAVE_CORRUPT_EVENT=1610,t.ER_REPLICA_CORRUPT_EVENT=1610,t.ER_LOAD_DATA_INVALID_COLUMN=1611,t.ER_LOG_PURGE_NO_FILE=1612,t.ER_XA_RBTIMEOUT=1613,t.ER_XA_RBDEADLOCK=1614,t.ER_NEED_REPREPARE=1615,t.ER_DELAYED_NOT_SUPPORTED=1616,t.WARN_NO_MASTER_INFO=1617,t.WARN_NO_SOURCE_INFO=1617,t.WARN_OPTION_IGNORED=1618,t.WARN_PLUGIN_DELETE_BUILTIN=1619,t.WARN_PLUGIN_BUSY=1620,t.ER_VARIABLE_IS_READONLY=1621,t.ER_WARN_ENGINE_TRANSACTION_ROLLBACK=1622,t.ER_SLAVE_HEARTBEAT_FAILURE=1623,t.ER_REPLICA_HEARTBEAT_FAILURE=1623,t.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE=1624,t.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE=1624,t.ER_NDB_REPLICATION_SCHEMA_ERROR=1625,t.ER_CONFLICT_FN_PARSE_ERROR=1626,t.ER_EXCEPTIONS_WRITE_ERROR=1627,t.ER_TOO_LONG_TABLE_COMMENT=1628,t.ER_TOO_LONG_FIELD_COMMENT=1629,t.ER_FUNC_INEXISTENT_NAME_COLLISION=1630,t.ER_DATABASE_NAME=1631,t.ER_TABLE_NAME=1632,t.ER_PARTITION_NAME=1633,t.ER_SUBPARTITION_NAME=1634,t.ER_TEMPORARY_NAME=1635,t.ER_RENAMED_NAME=1636,t.ER_TOO_MANY_CONCURRENT_TRXS=1637,t.WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED=1638,t.ER_DEBUG_SYNC_TIMEOUT=1639,t.ER_DEBUG_SYNC_HIT_LIMIT=1640,t.ER_DUP_SIGNAL_SET=1641,t.ER_SIGNAL_WARN=1642,t.ER_SIGNAL_NOT_FOUND=1643,t.ER_SIGNAL_EXCEPTION=1644,t.ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER=1645,t.ER_SIGNAL_BAD_CONDITION_TYPE=1646,t.WARN_COND_ITEM_TRUNCATED=1647,t.ER_COND_ITEM_TOO_LONG=1648,t.ER_UNKNOWN_LOCALE=1649,t.ER_SLAVE_IGNORE_SERVER_IDS=1650,t.ER_REPLICA_IGNORE_SERVER_IDS=1650,t.ER_QUERY_CACHE_DISABLED=1651,t.ER_SAME_NAME_PARTITION_FIELD=1652,t.ER_PARTITION_COLUMN_LIST_ERROR=1653,t.ER_WRONG_TYPE_COLUMN_VALUE_ERROR=1654,t.ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR=1655,t.ER_MAXVALUE_IN_VALUES_IN=1656,t.ER_TOO_MANY_VALUES_ERROR=1657,t.ER_ROW_SINGLE_PARTITION_FIELD_ERROR=1658,t.ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD=1659,t.ER_PARTITION_FIELDS_TOO_LONG=1660,t.ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE=1661,t.ER_BINLOG_ROW_MODE_AND_STMT_ENGINE=1662,t.ER_BINLOG_UNSAFE_AND_STMT_ENGINE=1663,t.ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE=1664,t.ER_BINLOG_STMT_MODE_AND_ROW_ENGINE=1665,t.ER_BINLOG_ROW_INJECTION_AND_STMT_MODE=1666,t.ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE=1667,t.ER_BINLOG_UNSAFE_LIMIT=1668;t.ER_BINLOG_UNSAFE_INSERT_DELAYED=1669,t.ER_BINLOG_UNSAFE_SYSTEM_TABLE=1670,t.ER_BINLOG_UNSAFE_AUTOINC_COLUMNS=1671,t.ER_BINLOG_UNSAFE_UDF=1672,t.ER_BINLOG_UNSAFE_SYSTEM_VARIABLE=1673,t.ER_BINLOG_UNSAFE_SYSTEM_FUNCTION=1674,t.ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS=1675,t.ER_MESSAGE_AND_STATEMENT=1676,t.ER_SLAVE_CONVERSION_FAILED=1677,t.ER_REPLICA_CONVERSION_FAILED=1677,t.ER_SLAVE_CANT_CREATE_CONVERSION=1678,t.ER_REPLICA_CANT_CREATE_CONVERSION=1678,t.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT=1679,t.ER_PATH_LENGTH=1680,t.ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT=1681,t.ER_WRONG_NATIVE_TABLE_STRUCTURE=1682,t.ER_WRONG_PERFSCHEMA_USAGE=1683,t.ER_WARN_I_S_SKIPPED_TABLE=1684,t.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT=1685,t.ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT=1686,t.ER_SPATIAL_MUST_HAVE_GEOM_COL=1687,t.ER_TOO_LONG_INDEX_COMMENT=1688,t.ER_LOCK_ABORTED=1689,t.ER_DATA_OUT_OF_RANGE=1690,t.ER_WRONG_SPVAR_TYPE_IN_LIMIT=1691,t.ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE=1692,t.ER_BINLOG_UNSAFE_MIXED_STATEMENT=1693,t.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN=1694,t.ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN=1695,t.ER_FAILED_READ_FROM_PAR_FILE=1696,t.ER_VALUES_IS_NOT_INT_TYPE_ERROR=1697,t.ER_ACCESS_DENIED_NO_PASSWORD_ERROR=1698,t.ER_SET_PASSWORD_AUTH_PLUGIN=1699,t.ER_GRANT_PLUGIN_USER_EXISTS=1700,t.ER_TRUNCATE_ILLEGAL_FK=1701,t.ER_PLUGIN_IS_PERMANENT=1702,t.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN=1703,t.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN=1703,t.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX=1704,t.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX=1704,t.ER_STMT_CACHE_FULL=1705,t.ER_MULTI_UPDATE_KEY_CONFLICT=1706,t.ER_TABLE_NEEDS_REBUILD=1707,t.WARN_OPTION_BELOW_LIMIT=1708,t.ER_INDEX_COLUMN_TOO_LONG=1709,t.ER_ERROR_IN_TRIGGER_BODY=1710,t.ER_ERROR_IN_UNKNOWN_TRIGGER_BODY=1711,t.ER_INDEX_CORRUPT=1712,t.ER_UNDO_RECORD_TOO_BIG=1713,t.ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT=1714,t.ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE=1715,t.ER_BINLOG_UNSAFE_REPLACE_SELECT=1716,t.ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT=1717,t.ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT=1718,t.ER_BINLOG_UNSAFE_UPDATE_IGNORE=1719,t.ER_PLUGIN_NO_UNINSTALL=1720,t.ER_PLUGIN_NO_INSTALL=1721,t.ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT=1722,t.ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC=1723,t.ER_BINLOG_UNSAFE_INSERT_TWO_KEYS=1724,t.ER_TABLE_IN_FK_CHECK=1725,t.ER_UNSUPPORTED_ENGINE=1726,t.ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST=1727,t.ER_CANNOT_LOAD_FROM_TABLE_V2=1728,t.ER_MASTER_DELAY_VALUE_OUT_OF_RANGE=1729,t.ER_SOURCE_DELAY_VALUE_OUT_OF_RANGE=1729,t.ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT=1730,t.ER_PARTITION_EXCHANGE_DIFFERENT_OPTION=1731,t.ER_PARTITION_EXCHANGE_PART_TABLE=1732,t.ER_PARTITION_EXCHANGE_TEMP_TABLE=1733,t.ER_PARTITION_INSTEAD_OF_SUBPARTITION=1734,t.ER_UNKNOWN_PARTITION=1735,t.ER_TABLES_DIFFERENT_METADATA=1736,t.ER_ROW_DOES_NOT_MATCH_PARTITION=1737,t.ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX=1738,t.ER_WARN_INDEX_NOT_APPLICABLE=1739,t.ER_PARTITION_EXCHANGE_FOREIGN_KEY=1740,t.ER_NO_SUCH_KEY_VALUE=1741,t.ER_RPL_INFO_DATA_TOO_LONG=1742,t.ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE=1743,t.ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE=1744,t.ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX=1745,t.ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT=1746,t.ER_PARTITION_CLAUSE_ON_NONPARTITIONED=1747,t.ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET=1748,t.ER_NO_SUCH_PARTITION=1749,t.ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE=1750,t.ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE=1751,t.ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE=1752,t.ER_MTS_FEATURE_IS_NOT_SUPPORTED=1753,t.ER_MTS_UPDATED_DBS_GREATER_MAX=1754,t.ER_MTS_CANT_PARALLEL=1755,t.ER_MTS_INCONSISTENT_DATA=1756,t.ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING=1757,t.ER_DA_INVALID_CONDITION_NUMBER=1758,t.ER_INSECURE_PLAIN_TEXT=1759,t.ER_INSECURE_CHANGE_MASTER=1760,t.ER_INSECURE_CHANGE_SOURCE=1760,t.ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO=1761,t.ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO=1762,t.ER_SQLTHREAD_WITH_SECURE_SLAVE=1763,t.ER_SQLTHREAD_WITH_SECURE_REPLICA=1763,t.ER_TABLE_HAS_NO_FT=1764,t.ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER=1765,t.ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION=1766,t.ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST=1767,t.ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL=1768,t.ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION=1769,t.ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL=1770,t.ER_SKIPPING_LOGGED_TRANSACTION=1771,t.ER_MALFORMED_GTID_SET_SPECIFICATION=1772,t.ER_MALFORMED_GTID_SET_ENCODING=1773,t.ER_MALFORMED_GTID_SPECIFICATION=1774,t.ER_GNO_EXHAUSTED=1775,t.ER_BAD_SLAVE_AUTO_POSITION=1776,t.ER_BAD_REPLICA_AUTO_POSITION=1776,t.ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON=1777,t.ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET=1778,t.ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON=1779,t.ER_GTID_MODE_REQUIRES_BINLOG=1780,t.ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF=1781,t.ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON=1782,t.ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF=1783,t.ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF=1784,t.ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE=1785,t.ER_GTID_UNSAFE_CREATE_SELECT=1786,t.ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION=1787,t.ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME=1788,t.ER_MASTER_HAS_PURGED_REQUIRED_GTIDS=1789,t.ER_SOURCE_HAS_PURGED_REQUIRED_GTIDS=1789,t.ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID=1790,t.ER_UNKNOWN_EXPLAIN_FORMAT=1791,t.ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION=1792,t.ER_TOO_LONG_TABLE_PARTITION_COMMENT=1793,t.ER_SLAVE_CONFIGURATION=1794,t.ER_REPLICA_CONFIGURATION=1794,t.ER_INNODB_FT_LIMIT=1795,t.ER_INNODB_NO_FT_TEMP_TABLE=1796,t.ER_INNODB_FT_WRONG_DOCID_COLUMN=1797,t.ER_INNODB_FT_WRONG_DOCID_INDEX=1798,t.ER_INNODB_ONLINE_LOG_TOO_BIG=1799,t.ER_UNKNOWN_ALTER_ALGORITHM=1800,t.ER_UNKNOWN_ALTER_LOCK=1801,t.ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS=1802,t.ER_MTS_CHANGE_SOURCE_CANT_RUN_WITH_GAPS=1802,t.ER_MTS_RECOVERY_FAILURE=1803,t.ER_MTS_RESET_WORKERS=1804,t.ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2=1805,t.ER_SLAVE_SILENT_RETRY_TRANSACTION=1806,t.ER_REPLICA_SILENT_RETRY_TRANSACTION=1806,t.ER_DISCARD_FK_CHECKS_RUNNING=1807,t.ER_TABLE_SCHEMA_MISMATCH=1808,t.ER_TABLE_IN_SYSTEM_TABLESPACE=1809,t.ER_IO_READ_ERROR=1810,t.ER_IO_WRITE_ERROR=1811,t.ER_TABLESPACE_MISSING=1812,t.ER_TABLESPACE_EXISTS=1813,t.ER_TABLESPACE_DISCARDED=1814,t.ER_INTERNAL_ERROR=1815,t.ER_INNODB_IMPORT_ERROR=1816,t.ER_INNODB_INDEX_CORRUPT=1817,t.ER_INVALID_YEAR_COLUMN_LENGTH=1818,t.ER_NOT_VALID_PASSWORD=1819,t.ER_MUST_CHANGE_PASSWORD=1820,t.ER_FK_NO_INDEX_CHILD=1821,t.ER_FK_NO_INDEX_PARENT=1822,t.ER_FK_FAIL_ADD_SYSTEM=1823,t.ER_FK_CANNOT_OPEN_PARENT=1824,t.ER_FK_INCORRECT_OPTION=1825,t.ER_FK_DUP_NAME=1826,t.ER_PASSWORD_FORMAT=1827,t.ER_FK_COLUMN_CANNOT_DROP=1828,t.ER_FK_COLUMN_CANNOT_DROP_CHILD=1829,t.ER_FK_COLUMN_NOT_NULL=1830,t.ER_DUP_INDEX=1831,t.ER_FK_COLUMN_CANNOT_CHANGE=1832,t.ER_FK_COLUMN_CANNOT_CHANGE_CHILD=1833,t.ER_FK_CANNOT_DELETE_PARENT=1834,t.ER_MALFORMED_PACKET=1835,t.ER_READ_ONLY_MODE=1836,t.ER_GTID_NEXT_TYPE_UNDEFINED_GROUP=1837,t.ER_VARIABLE_NOT_SETTABLE_IN_SP=1838,t.ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF=1839,t.ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY=1840,t.ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY=1841,t.ER_GTID_PURGED_WAS_CHANGED=1842,t.ER_GTID_EXECUTED_WAS_CHANGED=1843,t.ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES=1844,t.ER_ALTER_OPERATION_NOT_SUPPORTED=1845,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON=1846,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY=1847,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION=1848,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME=1849,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE=1850,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK=1851,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE=1852,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK=1853,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC=1854,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS=1855,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS=1856,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS=1857,t.ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE=1858,t.ER_SQL_REPLICA_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE=1858,t.ER_DUP_UNKNOWN_IN_INDEX=1859,t.ER_IDENT_CAUSES_TOO_LONG_PATH=1860,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL=1861,t.ER_MUST_CHANGE_PASSWORD_LOGIN=1862,t.ER_ROW_IN_WRONG_PARTITION=1863,t.ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX=1864,t.ER_INNODB_NO_FT_USES_PARSER=1865,t.ER_BINLOG_LOGICAL_CORRUPTION=1866,t.ER_WARN_PURGE_LOG_IN_USE=1867,t.ER_WARN_PURGE_LOG_IS_ACTIVE=1868,t.ER_AUTO_INCREMENT_CONFLICT=1869,t.WARN_ON_BLOCKHOLE_IN_RBR=1870,t.ER_SLAVE_MI_INIT_REPOSITORY=1871,t.ER_REPLICA_MI_INIT_REPOSITORY=1871,t.ER_SLAVE_RLI_INIT_REPOSITORY=1872,t.ER_REPLICA_RLI_INIT_REPOSITORY=1872,t.ER_ACCESS_DENIED_CHANGE_USER_ERROR=1873,t.ER_INNODB_READ_ONLY=1874,t.ER_STOP_SLAVE_SQL_THREAD_TIMEOUT=1875,t.ER_STOP_REPLICA_SQL_THREAD_TIMEOUT=1875,t.ER_STOP_SLAVE_IO_THREAD_TIMEOUT=1876,t.ER_STOP_REPLICA_IO_THREAD_TIMEOUT=1876,t.ER_TABLE_CORRUPT=1877,t.ER_TEMP_FILE_WRITE_FAILURE=1878,t.ER_INNODB_FT_AUX_NOT_HEX_ID=1879,t.ER_OLD_TEMPORALS_UPGRADED=1880,t.ER_INNODB_FORCED_RECOVERY=1881,t.ER_AES_INVALID_IV=1882,t.ER_FILE_CORRUPT=1883,t.ER_ERROR_ON_SOURCE=1884,t.ER_INCONSISTENT_ERROR=1885,t.ER_STORAGE_ENGINE_NOT_LOADED=1886,t.ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER=1887,t.ER_WARN_LEGACY_SYNTAX_CONVERTED=1888,t.ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN=1889,t.ER_CANNOT_DISCARD_TEMPORARY_TABLE=1890,t.ER_FK_DEPTH_EXCEEDED=1891,t.ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2=1892,t.ER_WARN_TRIGGER_DOESNT_HAVE_CREATED=1893,t.ER_REFERENCED_TRG_DOES_NOT_EXIST=1894,t.ER_EXPLAIN_NOT_SUPPORTED=1895,t.ER_INVALID_FIELD_SIZE=1896,t.ER_MISSING_HA_CREATE_OPTION=1897,t.ER_ENGINE_OUT_OF_MEMORY=1898,t.ER_PASSWORD_EXPIRE_ANONYMOUS_USER=1899,t.ER_REPLICA_SQL_THREAD_MUST_STOP=1900,t.ER_NO_FT_MATERIALIZED_SUBQUERY=1901,t.ER_INNODB_UNDO_LOG_FULL=1902,t.ER_INVALID_ARGUMENT_FOR_LOGARITHM=1903,t.ER_REPLICA_IO_THREAD_MUST_STOP=1904,t.ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO=1905,t.ER_WARN_ONLY_SOURCE_LOG_FILE_NO_POS=1906,t.ER_QUERY_TIMEOUT=1907,t.ER_NON_RO_SELECT_DISABLE_TIMER=1908,t.ER_DUP_LIST_ENTRY=1909,t.ER_SQL_MODE_NO_EFFECT=1910,t.ER_SESSION_WAS_KILLED=3169,t.ER_CLIENT_INTERACTION_TIMEOUT=4031,t[1]="EE_CANTCREATEFILE",t[2]="EE_READ",t[3]="EE_WRITE",t[4]="EE_BADCLOSE",t[5]="EE_OUTOFMEMORY",t[6]="EE_DELETE",t[7]="EE_LINK",t[9]="EE_EOFERR",t[10]="EE_CANTLOCK",t[11]="EE_CANTUNLOCK",t[12]="EE_DIR",t[13]="EE_STAT",t[14]="EE_CANT_CHSIZE",t[15]="EE_CANT_OPEN_STREAM",t[16]="EE_GETWD",t[17]="EE_SETWD",t[18]="EE_LINK_WARNING",t[19]="EE_OPEN_WARNING",t[20]="EE_DISK_FULL",t[21]="EE_CANT_MKDIR",t[22]="EE_UNKNOWN_CHARSET",t[23]="EE_OUT_OF_FILERESOURCES",t[24]="EE_CANT_READLINK",t[25]="EE_CANT_SYMLINK",t[26]="EE_REALPATH",t[27]="EE_SYNC",t[28]="EE_UNKNOWN_COLLATION",t[29]="EE_FILENOTFOUND",t[30]="EE_FILE_NOT_CLOSED",t[31]="EE_CHANGE_OWNERSHIP",t[32]="EE_CHANGE_PERMISSIONS",t[33]="EE_CANT_SEEK",t[120]="HA_ERR_KEY_NOT_FOUND",t[121]="HA_ERR_FOUND_DUPP_KEY",t[122]="HA_ERR_INTERNAL_ERROR",t[123]="HA_ERR_RECORD_CHANGED",t[124]="HA_ERR_WRONG_INDEX",t[126]="HA_ERR_CRASHED",t[127]="HA_ERR_WRONG_IN_RECORD",t[128]="HA_ERR_OUT_OF_MEM",t[130]="HA_ERR_NOT_A_TABLE",t[131]="HA_ERR_WRONG_COMMAND",t[132]="HA_ERR_OLD_FILE",t[133]="HA_ERR_NO_ACTIVE_RECORD",t[134]="HA_ERR_RECORD_DELETED",t[135]="HA_ERR_RECORD_FILE_FULL",t[136]="HA_ERR_INDEX_FILE_FULL",t[137]="HA_ERR_END_OF_FILE",t[138]="HA_ERR_UNSUPPORTED",t[139]="HA_ERR_TO_BIG_ROW",t[140]="HA_WRONG_CREATE_OPTION",t[141]="HA_ERR_FOUND_DUPP_UNIQUE",t[142]="HA_ERR_UNKNOWN_CHARSET",t[143]="HA_ERR_WRONG_MRG_TABLE_DEF",t[144]="HA_ERR_CRASHED_ON_REPAIR",t[145]="HA_ERR_CRASHED_ON_USAGE",t[146]="HA_ERR_LOCK_WAIT_TIMEOUT",t[147]="HA_ERR_LOCK_TABLE_FULL",t[148]="HA_ERR_READ_ONLY_TRANSACTION",t[149]="HA_ERR_LOCK_DEADLOCK",t[150]="HA_ERR_CANNOT_ADD_FOREIGN",t[151]="HA_ERR_NO_REFERENCED_ROW",t[152]="HA_ERR_ROW_IS_REFERENCED",t[153]="HA_ERR_NO_SAVEPOINT",t[154]="HA_ERR_NON_UNIQUE_BLOCK_SIZE",t[155]="HA_ERR_NO_SUCH_TABLE",t[156]="HA_ERR_TABLE_EXIST",t[157]="HA_ERR_NO_CONNECTION",t[158]="HA_ERR_NULL_IN_SPATIAL",t[159]="HA_ERR_TABLE_DEF_CHANGED",t[160]="HA_ERR_NO_PARTITION_FOUND",t[161]="HA_ERR_RBR_LOGGING_FAILED",t[162]="HA_ERR_DROP_INDEX_FK",t[163]="HA_ERR_FOREIGN_DUPLICATE_KEY",t[164]="HA_ERR_TABLE_NEEDS_UPGRADE",t[165]="HA_ERR_TABLE_READONLY",t[166]="HA_ERR_AUTOINC_READ_FAILED",t[167]="HA_ERR_AUTOINC_ERANGE",t[168]="HA_ERR_GENERIC",t[169]="HA_ERR_RECORD_IS_THE_SAME",t[170]="HA_ERR_LOGGING_IMPOSSIBLE",t[171]="HA_ERR_CORRUPT_EVENT",t[172]="HA_ERR_NEW_FILE",t[173]="HA_ERR_ROWS_EVENT_APPLY",t[174]="HA_ERR_INITIALIZATION",t[175]="HA_ERR_FILE_TOO_SHORT",t[176]="HA_ERR_WRONG_CRC",t[177]="HA_ERR_TOO_MANY_CONCURRENT_TRXS",t[178]="HA_ERR_NOT_IN_LOCK_PARTITIONS",t[179]="HA_ERR_INDEX_COL_TOO_LONG",t[180]="HA_ERR_INDEX_CORRUPT",t[181]="HA_ERR_UNDO_REC_TOO_BIG",t[182]="HA_FTS_INVALID_DOCID",t[183]="HA_ERR_TABLE_IN_FK_CHECK",t[184]="HA_ERR_TABLESPACE_EXISTS",t[185]="HA_ERR_TOO_MANY_FIELDS",t[186]="HA_ERR_ROW_IN_WRONG_PARTITION",t[187]="HA_ERR_INNODB_READ_ONLY",t[188]="HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT",t[189]="HA_ERR_TEMP_FILE_WRITE_FAILURE",t[190]="HA_ERR_INNODB_FORCED_RECOVERY",t[191]="HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE",t[1e3]="ER_HASHCHK",t[1001]="ER_NISAMCHK",t[1002]="ER_NO",t[1003]="ER_YES",t[1004]="ER_CANT_CREATE_FILE",t[1005]="ER_CANT_CREATE_TABLE",t[1006]="ER_CANT_CREATE_DB",t[1007]="ER_DB_CREATE_EXISTS",t[1008]="ER_DB_DROP_EXISTS",t[1009]="ER_DB_DROP_DELETE",t[1010]="ER_DB_DROP_RMDIR",t[1011]="ER_CANT_DELETE_FILE",t[1012]="ER_CANT_FIND_SYSTEM_REC",t[1013]="ER_CANT_GET_STAT",t[1014]="ER_CANT_GET_WD",t[1015]="ER_CANT_LOCK",t[1016]="ER_CANT_OPEN_FILE",t[1017]="ER_FILE_NOT_FOUND",t[1018]="ER_CANT_READ_DIR",t[1019]="ER_CANT_SET_WD",t[1020]="ER_CHECKREAD",t[1021]="ER_DISK_FULL",t[1022]="ER_DUP_KEY",t[1023]="ER_ERROR_ON_CLOSE",t[1024]="ER_ERROR_ON_READ",t[1025]="ER_ERROR_ON_RENAME",t[1026]="ER_ERROR_ON_WRITE",t[1027]="ER_FILE_USED",t[1028]="ER_FILSORT_ABORT",t[1029]="ER_FORM_NOT_FOUND",t[1030]="ER_GET_ERRNO",t[1031]="ER_ILLEGAL_HA",t[1032]="ER_KEY_NOT_FOUND",t[1033]="ER_NOT_FORM_FILE",t[1034]="ER_NOT_KEYFILE",t[1035]="ER_OLD_KEYFILE",t[1036]="ER_OPEN_AS_READONLY",t[1037]="ER_OUTOFMEMORY",t[1038]="ER_OUT_OF_SORTMEMORY",t[1039]="ER_UNEXPECTED_EOF",t[1040]="ER_CON_COUNT_ERROR",t[1041]="ER_OUT_OF_RESOURCES",t[1042]="ER_BAD_HOST_ERROR",t[1043]="ER_HANDSHAKE_ERROR",t[1044]="ER_DBACCESS_DENIED_ERROR",t[1045]="ER_ACCESS_DENIED_ERROR",t[1046]="ER_NO_DB_ERROR",t[1047]="ER_UNKNOWN_COM_ERROR",t[1048]="ER_BAD_NULL_ERROR",t[1049]="ER_BAD_DB_ERROR",t[1050]="ER_TABLE_EXISTS_ERROR",t[1051]="ER_BAD_TABLE_ERROR",t[1052]="ER_NON_UNIQ_ERROR",t[1053]="ER_SERVER_SHUTDOWN",t[1054]="ER_BAD_FIELD_ERROR",t[1055]="ER_WRONG_FIELD_WITH_GROUP",t[1056]="ER_WRONG_GROUP_FIELD",t[1057]="ER_WRONG_SUM_SELECT",t[1058]="ER_WRONG_VALUE_COUNT",t[1059]="ER_TOO_LONG_IDENT",t[1060]="ER_DUP_FIELDNAME",t[1061]="ER_DUP_KEYNAME",t[1062]="ER_DUP_ENTRY",t[1063]="ER_WRONG_FIELD_SPEC",t[1064]="ER_PARSE_ERROR",t[1065]="ER_EMPTY_QUERY",t[1066]="ER_NONUNIQ_TABLE",t[1067]="ER_INVALID_DEFAULT",t[1068]="ER_MULTIPLE_PRI_KEY",t[1069]="ER_TOO_MANY_KEYS",t[1070]="ER_TOO_MANY_KEY_PARTS",t[1071]="ER_TOO_LONG_KEY",t[1072]="ER_KEY_COLUMN_DOES_NOT_EXITS",t[1073]="ER_BLOB_USED_AS_KEY",t[1074]="ER_TOO_BIG_FIELDLENGTH",t[1075]="ER_WRONG_AUTO_KEY",t[1076]="ER_READY",t[1077]="ER_NORMAL_SHUTDOWN",t[1078]="ER_GOT_SIGNAL",t[1079]="ER_SHUTDOWN_COMPLETE",t[1080]="ER_FORCING_CLOSE",t[1081]="ER_IPSOCK_ERROR",t[1082]="ER_NO_SUCH_INDEX",t[1083]="ER_WRONG_FIELD_TERMINATORS",t[1084]="ER_BLOBS_AND_NO_TERMINATED",t[1085]="ER_TEXTFILE_NOT_READABLE",t[1086]="ER_FILE_EXISTS_ERROR",t[1087]="ER_LOAD_INFO",t[1088]="ER_ALTER_INFO",t[1089]="ER_WRONG_SUB_KEY",t[1090]="ER_CANT_REMOVE_ALL_FIELDS",t[1091]="ER_CANT_DROP_FIELD_OR_KEY",t[1092]="ER_INSERT_INFO",t[1093]="ER_UPDATE_TABLE_USED",t[1094]="ER_NO_SUCH_THREAD",t[1095]="ER_KILL_DENIED_ERROR",t[1096]="ER_NO_TABLES_USED",t[1097]="ER_TOO_BIG_SET",t[1098]="ER_NO_UNIQUE_LOGFILE",t[1099]="ER_TABLE_NOT_LOCKED_FOR_WRITE",t[1100]="ER_TABLE_NOT_LOCKED",t[1101]="ER_BLOB_CANT_HAVE_DEFAULT",t[1102]="ER_WRONG_DB_NAME",t[1103]="ER_WRONG_TABLE_NAME",t[1104]="ER_TOO_BIG_SELECT",t[1105]="ER_UNKNOWN_ERROR",t[1106]="ER_UNKNOWN_PROCEDURE",t[1107]="ER_WRONG_PARAMCOUNT_TO_PROCEDURE",t[1108]="ER_WRONG_PARAMETERS_TO_PROCEDURE",t[1109]="ER_UNKNOWN_TABLE",t[1110]="ER_FIELD_SPECIFIED_TWICE",t[1111]="ER_INVALID_GROUP_FUNC_USE",t[1112]="ER_UNSUPPORTED_EXTENSION",t[1113]="ER_TABLE_MUST_HAVE_COLUMNS",t[1114]="ER_RECORD_FILE_FULL",t[1115]="ER_UNKNOWN_CHARACTER_SET",t[1116]="ER_TOO_MANY_TABLES",t[1117]="ER_TOO_MANY_FIELDS",t[1118]="ER_TOO_BIG_ROWSIZE",t[1119]="ER_STACK_OVERRUN",t[1120]="ER_WRONG_OUTER_JOIN",t[1121]="ER_NULL_COLUMN_IN_INDEX",t[1122]="ER_CANT_FIND_UDF",t[1123]="ER_CANT_INITIALIZE_UDF",t[1124]="ER_UDF_NO_PATHS",t[1125]="ER_UDF_EXISTS",t[1126]="ER_CANT_OPEN_LIBRARY",t[1127]="ER_CANT_FIND_DL_ENTRY",t[1128]="ER_FUNCTION_NOT_DEFINED",t[1129]="ER_HOST_IS_BLOCKED",t[1130]="ER_HOST_NOT_PRIVILEGED",t[1131]="ER_PASSWORD_ANONYMOUS_USER",t[1132]="ER_PASSWORD_NOT_ALLOWED",t[1133]="ER_PASSWORD_NO_MATCH",t[1134]="ER_UPDATE_INFO",t[1135]="ER_CANT_CREATE_THREAD",t[1136]="ER_WRONG_VALUE_COUNT_ON_ROW",t[1137]="ER_CANT_REOPEN_TABLE",t[1138]="ER_INVALID_USE_OF_NULL",t[1139]="ER_REGEXP_ERROR",t[1140]="ER_MIX_OF_GROUP_FUNC_AND_FIELDS",t[1141]="ER_NONEXISTING_GRANT",t[1142]="ER_TABLEACCESS_DENIED_ERROR",t[1143]="ER_COLUMNACCESS_DENIED_ERROR",t[1144]="ER_ILLEGAL_GRANT_FOR_TABLE",t[1145]="ER_GRANT_WRONG_HOST_OR_USER",t[1146]="ER_NO_SUCH_TABLE",t[1147]="ER_NONEXISTING_TABLE_GRANT",t[1148]="ER_NOT_ALLOWED_COMMAND",t[1149]="ER_SYNTAX_ERROR",t[1150]="ER_DELAYED_CANT_CHANGE_LOCK",t[1151]="ER_TOO_MANY_DELAYED_THREADS",t[1152]="ER_ABORTING_CONNECTION",t[1153]="ER_NET_PACKET_TOO_LARGE",t[1154]="ER_NET_READ_ERROR_FROM_PIPE",t[1155]="ER_NET_FCNTL_ERROR",t[1156]="ER_NET_PACKETS_OUT_OF_ORDER",t[1157]="ER_NET_UNCOMPRESS_ERROR",t[1158]="ER_NET_READ_ERROR",t[1159]="ER_NET_READ_INTERRUPTED",t[1160]="ER_NET_ERROR_ON_WRITE",t[1161]="ER_NET_WRITE_INTERRUPTED",t[1162]="ER_TOO_LONG_STRING",t[1163]="ER_TABLE_CANT_HANDLE_BLOB",t[1164]="ER_TABLE_CANT_HANDLE_AUTO_INCREMENT",t[1165]="ER_DELAYED_INSERT_TABLE_LOCKED",t[1166]="ER_WRONG_COLUMN_NAME",t[1167]="ER_WRONG_KEY_COLUMN",t[1168]="ER_WRONG_MRG_TABLE",t[1169]="ER_DUP_UNIQUE",t[1170]="ER_BLOB_KEY_WITHOUT_LENGTH",t[1171]="ER_PRIMARY_CANT_HAVE_NULL",t[1172]="ER_TOO_MANY_ROWS",t[1173]="ER_REQUIRES_PRIMARY_KEY",t[1174]="ER_NO_RAID_COMPILED",t[1175]="ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE",t[1176]="ER_KEY_DOES_NOT_EXITS",t[1177]="ER_CHECK_NO_SUCH_TABLE",t[1178]="ER_CHECK_NOT_IMPLEMENTED",t[1179]="ER_CANT_DO_THIS_DURING_AN_TRANSACTION",t[1180]="ER_ERROR_DURING_COMMIT",t[1181]="ER_ERROR_DURING_ROLLBACK",t[1182]="ER_ERROR_DURING_FLUSH_LOGS",t[1183]="ER_ERROR_DURING_CHECKPOINT",t[1184]="ER_NEW_ABORTING_CONNECTION",t[1185]="ER_DUMP_NOT_IMPLEMENTED",t[1186]="ER_FLUSH_SOURCE_BINLOG_CLOSED",t[1187]="ER_INDEX_REBUILD",t[1188]="ER_SOURCE",t[1189]="ER_SOURCE_NET_READ",t[1190]="ER_SOURCE_NET_WRITE",t[1191]="ER_FT_MATCHING_KEY_NOT_FOUND",t[1192]="ER_LOCK_OR_ACTIVE_TRANSACTION",t[1193]="ER_UNKNOWN_SYSTEM_VARIABLE",t[1194]="ER_CRASHED_ON_USAGE",t[1195]="ER_CRASHED_ON_REPAIR",t[1196]="ER_WARNING_NOT_COMPLETE_ROLLBACK",t[1197]="ER_TRANS_CACHE_FULL",t[1198]="ER_REPLICA_MUST_STOP",t[1199]="ER_REPLICA_NOT_RUNNING",t[1200]="ER_BAD_REPLICA",t[1201]="ER_SOURCE_INFO",t[1202]="ER_REPLICA_THREAD",t[1203]="ER_TOO_MANY_USER_CONNECTIONS",t[1204]="ER_SET_CONSTANTS_ONLY",t[1205]="ER_LOCK_WAIT_TIMEOUT",t[1206]="ER_LOCK_TABLE_FULL",t[1207]="ER_READ_ONLY_TRANSACTION",t[1208]="ER_DROP_DB_WITH_READ_LOCK",t[1209]="ER_CREATE_DB_WITH_READ_LOCK",t[1210]="ER_WRONG_ARGUMENTS",t[1211]="ER_NO_PERMISSION_TO_CREATE_USER",t[1212]="ER_UNION_TABLES_IN_DIFFERENT_DIR",t[1213]="ER_LOCK_DEADLOCK",t[1214]="ER_TABLE_CANT_HANDLE_FT",t[1215]="ER_CANNOT_ADD_FOREIGN",t[1216]="ER_NO_REFERENCED_ROW",t[1217]="ER_ROW_IS_REFERENCED",t[1218]="ER_CONNECT_TO_SOURCE",t[1219]="ER_QUERY_ON_SOURCE",t[1220]="ER_ERROR_WHEN_EXECUTING_COMMAND",t[1221]="ER_WRONG_USAGE",t[1222]="ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT",t[1223]="ER_CANT_UPDATE_WITH_READLOCK",t[1224]="ER_MIXING_NOT_ALLOWED",t[1225]="ER_DUP_ARGUMENT",t[1226]="ER_USER_LIMIT_REACHED",t[1227]="ER_SPECIFIC_ACCESS_DENIED_ERROR",t[1228]="ER_LOCAL_VARIABLE",t[1229]="ER_GLOBAL_VARIABLE",t[1230]="ER_NO_DEFAULT",t[1231]="ER_WRONG_VALUE_FOR_VAR",t[1232]="ER_WRONG_TYPE_FOR_VAR",t[1233]="ER_VAR_CANT_BE_READ",t[1234]="ER_CANT_USE_OPTION_HERE",t[1235]="ER_NOT_SUPPORTED_YET",t[1236]="ER_SOURCE_FATAL_ERROR_READING_BINLOG",t[1237]="ER_REPLICA_IGNORED_TABLE",t[1238]="ER_INCORRECT_GLOBAL_LOCAL_VAR",t[1239]="ER_WRONG_FK_DEF",t[1240]="ER_KEY_REF_DO_NOT_MATCH_TABLE_REF",t[1241]="ER_OPERAND_COLUMNS",t[1242]="ER_SUBQUERY_NO_1_ROW",t[1243]="ER_UNKNOWN_STMT_HANDLER",t[1244]="ER_CORRUPT_HELP_DB",t[1245]="ER_CYCLIC_REFERENCE",t[1246]="ER_AUTO_CONVERT",t[1247]="ER_ILLEGAL_REFERENCE",t[1248]="ER_DERIVED_MUST_HAVE_ALIAS",t[1249]="ER_SELECT_REDUCED",t[1250]="ER_TABLENAME_NOT_ALLOWED_HERE",t[1251]="ER_NOT_SUPPORTED_AUTH_MODE",t[1252]="ER_SPATIAL_CANT_HAVE_NULL",t[1253]="ER_COLLATION_CHARSET_MISMATCH",t[1254]="ER_REPLICA_WAS_RUNNING",t[1255]="ER_REPLICA_WAS_NOT_RUNNING",t[1256]="ER_TOO_BIG_FOR_UNCOMPRESS",t[1257]="ER_ZLIB_Z_MEM_ERROR",t[1258]="ER_ZLIB_Z_BUF_ERROR",t[1259]="ER_ZLIB_Z_DATA_ERROR",t[1260]="ER_CUT_VALUE_GROUP_CONCAT",t[1261]="ER_WARN_TOO_FEW_RECORDS",t[1262]="ER_WARN_TOO_MANY_RECORDS",t[1263]="ER_WARN_NULL_TO_NOTNULL",t[1264]="ER_WARN_DATA_OUT_OF_RANGE",t[1265]="ER_WARN_DATA_TRUNCATED",t[1266]="ER_WARN_USING_OTHER_HANDLER",t[1267]="ER_CANT_AGGREGATE_2COLLATIONS",t[1268]="ER_DROP_USER",t[1269]="ER_REVOKE_GRANTS",t[1270]="ER_CANT_AGGREGATE_3COLLATIONS",t[1271]="ER_CANT_AGGREGATE_NCOLLATIONS",t[1272]="ER_VARIABLE_IS_NOT_STRUCT",t[1273]="ER_UNKNOWN_COLLATION",t[1274]="ER_REPLICA_IGNORED_SSL_PARAMS",t[1275]="ER_SERVER_IS_IN_SECURE_AUTH_MODE",t[1276]="ER_WARN_FIELD_RESOLVED",t[1277]="ER_BAD_REPLICA_UNTIL_COND",t[1278]="ER_MISSING_SKIP_REPLICA",t[1279]="ER_UNTIL_COND_IGNORED",t[1280]="ER_WRONG_NAME_FOR_INDEX",t[1281]="ER_WRONG_NAME_FOR_CATALOG",t[1282]="ER_WARN_QC_RESIZE",t[1283]="ER_BAD_FT_COLUMN",t[1284]="ER_UNKNOWN_KEY_CACHE",t[1285]="ER_WARN_HOSTNAME_WONT_WORK",t[1286]="ER_UNKNOWN_STORAGE_ENGINE",t[1287]="ER_WARN_DEPRECATED_SYNTAX",t[1288]="ER_NON_UPDATABLE_TABLE",t[1289]="ER_FEATURE_DISABLED",t[1290]="ER_OPTION_PREVENTS_STATEMENT",t[1291]="ER_DUPLICATED_VALUE_IN_TYPE",t[1292]="ER_TRUNCATED_WRONG_VALUE",t[1293]="ER_TOO_MUCH_AUTO_TIMESTAMP_COLS",t[1294]="ER_INVALID_ON_UPDATE",t[1295]="ER_UNSUPPORTED_PS",t[1296]="ER_GET_ERRMSG",t[1297]="ER_GET_TEMPORARY_ERRMSG",t[1298]="ER_UNKNOWN_TIME_ZONE",t[1299]="ER_WARN_INVALID_TIMESTAMP",t[1300]="ER_INVALID_CHARACTER_STRING",t[1301]="ER_WARN_ALLOWED_PACKET_OVERFLOWED",t[1302]="ER_CONFLICTING_DECLARATIONS",t[1303]="ER_SP_NO_RECURSIVE_CREATE",t[1304]="ER_SP_ALREADY_EXISTS",t[1305]="ER_SP_DOES_NOT_EXIST",t[1306]="ER_SP_DROP_FAILED",t[1307]="ER_SP_STORE_FAILED",t[1308]="ER_SP_LILABEL_MISMATCH",t[1309]="ER_SP_LABEL_REDEFINE",t[1310]="ER_SP_LABEL_MISMATCH",t[1311]="ER_SP_UNINIT_VAR",t[1312]="ER_SP_BADSELECT",t[1313]="ER_SP_BADRETURN",t[1314]="ER_SP_BADSTATEMENT",t[1315]="ER_UPDATE_LOG_DEPRECATED_IGNORED",t[1316]="ER_UPDATE_LOG_DEPRECATED_TRANSLATED",t[1317]="ER_QUERY_INTERRUPTED",t[1318]="ER_SP_WRONG_NO_OF_ARGS",t[1319]="ER_SP_COND_MISMATCH",t[1320]="ER_SP_NORETURN",t[1321]="ER_SP_NORETURNEND",t[1322]="ER_SP_BAD_CURSOR_QUERY",t[1323]="ER_SP_BAD_CURSOR_SELECT",t[1324]="ER_SP_CURSOR_MISMATCH",t[1325]="ER_SP_CURSOR_ALREADY_OPEN",t[1326]="ER_SP_CURSOR_NOT_OPEN",t[1327]="ER_SP_UNDECLARED_VAR",t[1328]="ER_SP_WRONG_NO_OF_FETCH_ARGS",t[1329]="ER_SP_FETCH_NO_DATA",t[1330]="ER_SP_DUP_PARAM",t[1331]="ER_SP_DUP_VAR",t[1332]="ER_SP_DUP_COND",t[1333]="ER_SP_DUP_CURS",t[1334]="ER_SP_CANT_ALTER",t[1335]="ER_SP_SUBSELECT_NYI",t[1336]="ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG",t[1337]="ER_SP_VARCOND_AFTER_CURSHNDLR",t[1338]="ER_SP_CURSOR_AFTER_HANDLER",t[1339]="ER_SP_CASE_NOT_FOUND",t[1340]="ER_FPARSER_TOO_BIG_FILE",t[1341]="ER_FPARSER_BAD_HEADER",t[1342]="ER_FPARSER_EOF_IN_COMMENT",t[1343]="ER_FPARSER_ERROR_IN_PARAMETER",t[1344]="ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER",t[1345]="ER_VIEW_NO_EXPLAIN",t[1346]="ER_FRM_UNKNOWN_TYPE",t[1347]="ER_WRONG_OBJECT",t[1348]="ER_NONUPDATEABLE_COLUMN",t[1349]="ER_VIEW_SELECT_DERIVED",t[1350]="ER_VIEW_SELECT_CLAUSE",t[1351]="ER_VIEW_SELECT_VARIABLE",t[1352]="ER_VIEW_SELECT_TMPTABLE",t[1353]="ER_VIEW_WRONG_LIST",t[1354]="ER_WARN_VIEW_MERGE",t[1355]="ER_WARN_VIEW_WITHOUT_KEY",t[1356]="ER_VIEW_INVALID",t[1357]="ER_SP_NO_DROP_SP",t[1358]="ER_SP_GOTO_IN_HNDLR",t[1359]="ER_TRG_ALREADY_EXISTS",t[1360]="ER_TRG_DOES_NOT_EXIST",t[1361]="ER_TRG_ON_VIEW_OR_TEMP_TABLE",t[1362]="ER_TRG_CANT_CHANGE_ROW",t[1363]="ER_TRG_NO_SUCH_ROW_IN_TRG",t[1364]="ER_NO_DEFAULT_FOR_FIELD",t[1365]="ER_DIVISION_BY_ZERO",t[1366]="ER_TRUNCATED_WRONG_VALUE_FOR_FIELD",t[1367]="ER_ILLEGAL_VALUE_FOR_TYPE",t[1368]="ER_VIEW_NONUPD_CHECK",t[1369]="ER_VIEW_CHECK_FAILED",t[1370]="ER_PROCACCESS_DENIED_ERROR",t[1371]="ER_RELAY_LOG_FAIL",t[1372]="ER_PASSWD_LENGTH",t[1373]="ER_UNKNOWN_TARGET_BINLOG",t[1374]="ER_IO_ERR_LOG_INDEX_READ",t[1375]="ER_BINLOG_PURGE_PROHIBITED",t[1376]="ER_FSEEK_FAIL",t[1377]="ER_BINLOG_PURGE_FATAL_ERR",t[1378]="ER_LOG_IN_USE",t[1379]="ER_LOG_PURGE_UNKNOWN_ERR",t[1380]="ER_RELAY_LOG_INIT",t[1381]="ER_NO_BINARY_LOGGING",t[1382]="ER_RESERVED_SYNTAX",t[1383]="ER_WSAS_FAILED",t[1384]="ER_DIFF_GROUPS_PROC",t[1385]="ER_NO_GROUP_FOR_PROC",t[1386]="ER_ORDER_WITH_PROC",t[1387]="ER_LOGGING_PROHIBIT_CHANGING_OF",t[1388]="ER_NO_FILE_MAPPING",t[1389]="ER_WRONG_MAGIC",t[1390]="ER_PS_MANY_PARAM",t[1391]="ER_KEY_PART_0",t[1392]="ER_VIEW_CHECKSUM",t[1393]="ER_VIEW_MULTIUPDATE",t[1394]="ER_VIEW_NO_INSERT_FIELD_LIST",t[1395]="ER_VIEW_DELETE_MERGE_VIEW",t[1396]="ER_CANNOT_USER",t[1397]="ER_XAER_NOTA",t[1398]="ER_XAER_INVAL",t[1399]="ER_XAER_RMFAIL",t[1400]="ER_XAER_OUTSIDE",t[1401]="ER_XA_RMERR",t[1402]="ER_XA_RBROLLBACK",t[1403]="ER_NONEXISTING_PROC_GRANT",t[1404]="ER_PROC_AUTO_GRANT_FAIL",t[1405]="ER_PROC_AUTO_REVOKE_FAIL",t[1406]="ER_DATA_TOO_LONG",t[1407]="ER_SP_BAD_SQLSTATE",t[1408]="ER_STARTUP",t[1409]="ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR",t[1410]="ER_CANT_CREATE_USER_WITH_GRANT",t[1411]="ER_WRONG_VALUE_FOR_TYPE",t[1412]="ER_TABLE_DEF_CHANGED",t[1413]="ER_SP_DUP_HANDLER",t[1414]="ER_SP_NOT_VAR_ARG",t[1415]="ER_SP_NO_RETSET",t[1416]="ER_CANT_CREATE_GEOMETRY_OBJECT",t[1417]="ER_FAILED_ROUTINE_BREAK_BINLOG",t[1418]="ER_BINLOG_UNSAFE_ROUTINE",t[1419]="ER_BINLOG_CREATE_ROUTINE_NEED_SUPER",t[1420]="ER_EXEC_STMT_WITH_OPEN_CURSOR",t[1421]="ER_STMT_HAS_NO_OPEN_CURSOR",t[1422]="ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG",t[1423]="ER_NO_DEFAULT_FOR_VIEW_FIELD",t[1424]="ER_SP_NO_RECURSION",t[1425]="ER_TOO_BIG_SCALE",t[1426]="ER_TOO_BIG_PRECISION",t[1427]="ER_M_BIGGER_THAN_D",t[1428]="ER_WRONG_LOCK_OF_SYSTEM_TABLE",t[1429]="ER_CONNECT_TO_FOREIGN_DATA_SOURCE",t[1430]="ER_QUERY_ON_FOREIGN_DATA_SOURCE",t[1431]="ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST",t[1432]="ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE",t[1433]="ER_FOREIGN_DATA_STRING_INVALID",t[1434]="ER_CANT_CREATE_FEDERATED_TABLE",t[1435]="ER_TRG_IN_WRONG_SCHEMA",t[1436]="ER_STACK_OVERRUN_NEED_MORE";t[1437]="ER_TOO_LONG_BODY",t[1438]="ER_WARN_CANT_DROP_DEFAULT_KEYCACHE",t[1439]="ER_TOO_BIG_DISPLAYWIDTH",t[1440]="ER_XAER_DUPID",t[1441]="ER_DATETIME_FUNCTION_OVERFLOW",t[1442]="ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG",t[1443]="ER_VIEW_PREVENT_UPDATE",t[1444]="ER_PS_NO_RECURSION",t[1445]="ER_SP_CANT_SET_AUTOCOMMIT",t[1446]="ER_MALFORMED_DEFINER",t[1447]="ER_VIEW_FRM_NO_USER",t[1448]="ER_VIEW_OTHER_USER",t[1449]="ER_NO_SUCH_USER",t[1450]="ER_FORBID_SCHEMA_CHANGE",t[1451]="ER_ROW_IS_REFERENCED_2",t[1452]="ER_NO_REFERENCED_ROW_2",t[1453]="ER_SP_BAD_VAR_SHADOW",t[1454]="ER_TRG_NO_DEFINER",t[1455]="ER_OLD_FILE_FORMAT",t[1456]="ER_SP_RECURSION_LIMIT",t[1457]="ER_SP_PROC_TABLE_CORRUPT",t[1458]="ER_SP_WRONG_NAME",t[1459]="ER_TABLE_NEEDS_UPGRADE",t[1460]="ER_SP_NO_AGGREGATE",t[1461]="ER_MAX_PREPARED_STMT_COUNT_REACHED",t[1462]="ER_VIEW_RECURSIVE",t[1463]="ER_NON_GROUPING_FIELD_USED",t[1464]="ER_TABLE_CANT_HANDLE_SPKEYS",t[1465]="ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA",t[1466]="ER_REMOVED_SPACES",t[1467]="ER_AUTOINC_READ_FAILED",t[1468]="ER_USERNAME",t[1469]="ER_HOSTNAME",t[1470]="ER_WRONG_STRING_LENGTH",t[1471]="ER_NON_INSERTABLE_TABLE",t[1472]="ER_ADMIN_WRONG_MRG_TABLE",t[1473]="ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT",t[1474]="ER_NAME_BECOMES_EMPTY",t[1475]="ER_AMBIGUOUS_FIELD_TERM",t[1476]="ER_FOREIGN_SERVER_EXISTS",t[1477]="ER_FOREIGN_SERVER_DOESNT_EXIST",t[1478]="ER_ILLEGAL_HA_CREATE_OPTION",t[1479]="ER_PARTITION_REQUIRES_VALUES_ERROR",t[1480]="ER_PARTITION_WRONG_VALUES_ERROR",t[1481]="ER_PARTITION_MAXVALUE_ERROR",t[1482]="ER_PARTITION_SUBPARTITION_ERROR",t[1483]="ER_PARTITION_SUBPART_MIX_ERROR",t[1484]="ER_PARTITION_WRONG_NO_PART_ERROR",t[1485]="ER_PARTITION_WRONG_NO_SUBPART_ERROR",t[1486]="ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR",t[1487]="ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR",t[1488]="ER_FIELD_NOT_FOUND_PART_ERROR",t[1489]="ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR",t[1490]="ER_INCONSISTENT_PARTITION_INFO_ERROR",t[1491]="ER_PARTITION_FUNC_NOT_ALLOWED_ERROR",t[1492]="ER_PARTITIONS_MUST_BE_DEFINED_ERROR",t[1493]="ER_RANGE_NOT_INCREASING_ERROR",t[1494]="ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR",t[1495]="ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR",t[1496]="ER_PARTITION_ENTRY_ERROR",t[1497]="ER_MIX_HANDLER_ERROR",t[1498]="ER_PARTITION_NOT_DEFINED_ERROR",t[1499]="ER_TOO_MANY_PARTITIONS_ERROR",t[1500]="ER_SUBPARTITION_ERROR",t[1501]="ER_CANT_CREATE_HANDLER_FILE",t[1502]="ER_BLOB_FIELD_IN_PART_FUNC_ERROR",t[1503]="ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF",t[1504]="ER_NO_PARTS_ERROR",t[1505]="ER_PARTITION_MGMT_ON_NONPARTITIONED",t[1506]="ER_FOREIGN_KEY_ON_PARTITIONED",t[1507]="ER_DROP_PARTITION_NON_EXISTENT",t[1508]="ER_DROP_LAST_PARTITION",t[1509]="ER_COALESCE_ONLY_ON_HASH_PARTITION",t[1510]="ER_REORG_HASH_ONLY_ON_SAME_NO",t[1511]="ER_REORG_NO_PARAM_ERROR",t[1512]="ER_ONLY_ON_RANGE_LIST_PARTITION",t[1513]="ER_ADD_PARTITION_SUBPART_ERROR",t[1514]="ER_ADD_PARTITION_NO_NEW_PARTITION",t[1515]="ER_COALESCE_PARTITION_NO_PARTITION",t[1516]="ER_REORG_PARTITION_NOT_EXIST",t[1517]="ER_SAME_NAME_PARTITION",t[1518]="ER_NO_BINLOG_ERROR",t[1519]="ER_CONSECUTIVE_REORG_PARTITIONS",t[1520]="ER_REORG_OUTSIDE_RANGE",t[1521]="ER_PARTITION_FUNCTION_FAILURE",t[1522]="ER_PART_STATE_ERROR",t[1523]="ER_LIMITED_PART_RANGE",t[1524]="ER_PLUGIN_IS_NOT_LOADED",t[1525]="ER_WRONG_VALUE",t[1526]="ER_NO_PARTITION_FOR_GIVEN_VALUE",t[1527]="ER_FILEGROUP_OPTION_ONLY_ONCE",t[1528]="ER_CREATE_FILEGROUP_FAILED",t[1529]="ER_DROP_FILEGROUP_FAILED",t[1530]="ER_TABLESPACE_AUTO_EXTEND_ERROR",t[1531]="ER_WRONG_SIZE_NUMBER",t[1532]="ER_SIZE_OVERFLOW_ERROR",t[1533]="ER_ALTER_FILEGROUP_FAILED",t[1534]="ER_BINLOG_ROW_LOGGING_FAILED",t[1535]="ER_BINLOG_ROW_WRONG_TABLE_DEF",t[1536]="ER_BINLOG_ROW_RBR_TO_SBR",t[1537]="ER_EVENT_ALREADY_EXISTS",t[1538]="ER_EVENT_STORE_FAILED",t[1539]="ER_EVENT_DOES_NOT_EXIST",t[1540]="ER_EVENT_CANT_ALTER",t[1541]="ER_EVENT_DROP_FAILED",t[1542]="ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG",t[1543]="ER_EVENT_ENDS_BEFORE_STARTS",t[1544]="ER_EVENT_EXEC_TIME_IN_THE_PAST",t[1545]="ER_EVENT_OPEN_TABLE_FAILED",t[1546]="ER_EVENT_NEITHER_M_EXPR_NOR_M_AT",t[1547]="ER_COL_COUNT_DOESNT_MATCH_CORRUPTED",t[1548]="ER_CANNOT_LOAD_FROM_TABLE",t[1549]="ER_EVENT_CANNOT_DELETE",t[1550]="ER_EVENT_COMPILE_ERROR",t[1551]="ER_EVENT_SAME_NAME",t[1552]="ER_EVENT_DATA_TOO_LONG",t[1553]="ER_DROP_INDEX_FK",t[1554]="ER_WARN_DEPRECATED_SYNTAX_WITH_VER",t[1555]="ER_CANT_WRITE_LOCK_LOG_TABLE",t[1556]="ER_CANT_LOCK_LOG_TABLE",t[1557]="ER_FOREIGN_DUPLICATE_KEY",t[1558]="ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE",t[1559]="ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR",t[1560]="ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT",t[1561]="ER_NDB_CANT_SWITCH_BINLOG_FORMAT",t[1562]="ER_PARTITION_NO_TEMPORARY",t[1563]="ER_PARTITION_CONST_DOMAIN_ERROR",t[1564]="ER_PARTITION_FUNCTION_IS_NOT_ALLOWED",t[1565]="ER_DDL_LOG_ERROR",t[1566]="ER_NULL_IN_VALUES_LESS_THAN",t[1567]="ER_WRONG_PARTITION_NAME",t[1568]="ER_CANT_CHANGE_TX_ISOLATION",t[1569]="ER_DUP_ENTRY_AUTOINCREMENT_CASE",t[1570]="ER_EVENT_MODIFY_QUEUE_ERROR",t[1571]="ER_EVENT_SET_VAR_ERROR",t[1572]="ER_PARTITION_MERGE_ERROR",t[1573]="ER_CANT_ACTIVATE_LOG",t[1574]="ER_RBR_NOT_AVAILABLE",t[1575]="ER_BASE64_DECODE_ERROR",t[1576]="ER_EVENT_RECURSION_FORBIDDEN",t[1577]="ER_EVENTS_DB_ERROR",t[1578]="ER_ONLY_INTEGERS_ALLOWED",t[1579]="ER_UNSUPORTED_LOG_ENGINE",t[1580]="ER_BAD_LOG_STATEMENT",t[1581]="ER_CANT_RENAME_LOG_TABLE",t[1582]="ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT",t[1583]="ER_WRONG_PARAMETERS_TO_NATIVE_FCT",t[1584]="ER_WRONG_PARAMETERS_TO_STORED_FCT",t[1585]="ER_NATIVE_FCT_NAME_COLLISION",t[1586]="ER_DUP_ENTRY_WITH_KEY_NAME",t[1587]="ER_BINLOG_PURGE_EMFILE",t[1588]="ER_EVENT_CANNOT_CREATE_IN_THE_PAST",t[1589]="ER_EVENT_CANNOT_ALTER_IN_THE_PAST",t[1590]="ER_REPLICA_INCIDENT",t[1591]="ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT",t[1592]="ER_BINLOG_UNSAFE_STATEMENT",t[1593]="ER_REPLICA_FATAL_ERROR",t[1594]="ER_REPLICA_RELAY_LOG_READ_FAILURE",t[1595]="ER_REPLICA_RELAY_LOG_WRITE_FAILURE",t[1596]="ER_REPLICA_CREATE_EVENT_FAILURE",t[1597]="ER_REPLICA_SOURCE_COM_FAILURE",t[1598]="ER_BINLOG_LOGGING_IMPOSSIBLE",t[1599]="ER_VIEW_NO_CREATION_CTX",t[1600]="ER_VIEW_INVALID_CREATION_CTX",t[1601]="ER_SR_INVALID_CREATION_CTX",t[1602]="ER_TRG_CORRUPTED_FILE",t[1603]="ER_TRG_NO_CREATION_CTX",t[1604]="ER_TRG_INVALID_CREATION_CTX",t[1605]="ER_EVENT_INVALID_CREATION_CTX",t[1606]="ER_TRG_CANT_OPEN_TABLE",t[1607]="ER_CANT_CREATE_SROUTINE",t[1608]="ER_NEVER_USED",t[1609]="ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT",t[1610]="ER_REPLICA_CORRUPT_EVENT",t[1611]="ER_LOAD_DATA_INVALID_COLUMN",t[1612]="ER_LOG_PURGE_NO_FILE",t[1613]="ER_XA_RBTIMEOUT",t[1614]="ER_XA_RBDEADLOCK",t[1615]="ER_NEED_REPREPARE",t[1616]="ER_DELAYED_NOT_SUPPORTED",t[1617]="WARN_NO_SOURCE_INFO",t[1618]="WARN_OPTION_IGNORED",t[1619]="WARN_PLUGIN_DELETE_BUILTIN",t[1620]="WARN_PLUGIN_BUSY",t[1621]="ER_VARIABLE_IS_READONLY",t[1622]="ER_WARN_ENGINE_TRANSACTION_ROLLBACK",t[1623]="ER_REPLICA_HEARTBEAT_FAILURE",t[1624]="ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE",t[1625]="ER_NDB_REPLICATION_SCHEMA_ERROR",t[1626]="ER_CONFLICT_FN_PARSE_ERROR",t[1627]="ER_EXCEPTIONS_WRITE_ERROR",t[1628]="ER_TOO_LONG_TABLE_COMMENT",t[1629]="ER_TOO_LONG_FIELD_COMMENT",t[1630]="ER_FUNC_INEXISTENT_NAME_COLLISION",t[1631]="ER_DATABASE_NAME",t[1632]="ER_TABLE_NAME",t[1633]="ER_PARTITION_NAME",t[1634]="ER_SUBPARTITION_NAME",t[1635]="ER_TEMPORARY_NAME",t[1636]="ER_RENAMED_NAME",t[1637]="ER_TOO_MANY_CONCURRENT_TRXS",t[1638]="WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED",t[1639]="ER_DEBUG_SYNC_TIMEOUT",t[1640]="ER_DEBUG_SYNC_HIT_LIMIT",t[1641]="ER_DUP_SIGNAL_SET",t[1642]="ER_SIGNAL_WARN",t[1643]="ER_SIGNAL_NOT_FOUND",t[1644]="ER_SIGNAL_EXCEPTION",t[1645]="ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER",t[1646]="ER_SIGNAL_BAD_CONDITION_TYPE",t[1647]="WARN_COND_ITEM_TRUNCATED",t[1648]="ER_COND_ITEM_TOO_LONG",t[1649]="ER_UNKNOWN_LOCALE",t[1650]="ER_REPLICA_IGNORE_SERVER_IDS",t[1651]="ER_QUERY_CACHE_DISABLED",t[1652]="ER_SAME_NAME_PARTITION_FIELD",t[1653]="ER_PARTITION_COLUMN_LIST_ERROR",t[1654]="ER_WRONG_TYPE_COLUMN_VALUE_ERROR",t[1655]="ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR",t[1656]="ER_MAXVALUE_IN_VALUES_IN",t[1657]="ER_TOO_MANY_VALUES_ERROR",t[1658]="ER_ROW_SINGLE_PARTITION_FIELD_ERROR",t[1659]="ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD",t[1660]="ER_PARTITION_FIELDS_TOO_LONG",t[1661]="ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE",t[1662]="ER_BINLOG_ROW_MODE_AND_STMT_ENGINE",t[1663]="ER_BINLOG_UNSAFE_AND_STMT_ENGINE",t[1664]="ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE",t[1665]="ER_BINLOG_STMT_MODE_AND_ROW_ENGINE",t[1666]="ER_BINLOG_ROW_INJECTION_AND_STMT_MODE",t[1667]="ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE",t[1668]="ER_BINLOG_UNSAFE_LIMIT",t[1669]="ER_BINLOG_UNSAFE_INSERT_DELAYED",t[1670]="ER_BINLOG_UNSAFE_SYSTEM_TABLE",t[1671]="ER_BINLOG_UNSAFE_AUTOINC_COLUMNS",t[1672]="ER_BINLOG_UNSAFE_UDF",t[1673]="ER_BINLOG_UNSAFE_SYSTEM_VARIABLE",t[1674]="ER_BINLOG_UNSAFE_SYSTEM_FUNCTION",t[1675]="ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS",t[1676]="ER_MESSAGE_AND_STATEMENT",t[1677]="ER_REPLICA_CONVERSION_FAILED",t[1678]="ER_REPLICA_CANT_CREATE_CONVERSION",t[1679]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT",t[1680]="ER_PATH_LENGTH",t[1681]="ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT",t[1682]="ER_WRONG_NATIVE_TABLE_STRUCTURE",t[1683]="ER_WRONG_PERFSCHEMA_USAGE",t[1684]="ER_WARN_I_S_SKIPPED_TABLE",t[1685]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT",t[1686]="ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT",t[1687]="ER_SPATIAL_MUST_HAVE_GEOM_COL",t[1688]="ER_TOO_LONG_INDEX_COMMENT",t[1689]="ER_LOCK_ABORTED",t[1690]="ER_DATA_OUT_OF_RANGE",t[1691]="ER_WRONG_SPVAR_TYPE_IN_LIMIT",t[1692]="ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE",t[1693]="ER_BINLOG_UNSAFE_MIXED_STATEMENT",t[1694]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN",t[1695]="ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN",t[1696]="ER_FAILED_READ_FROM_PAR_FILE",t[1697]="ER_VALUES_IS_NOT_INT_TYPE_ERROR",t[1698]="ER_ACCESS_DENIED_NO_PASSWORD_ERROR",t[1699]="ER_SET_PASSWORD_AUTH_PLUGIN",t[1700]="ER_GRANT_PLUGIN_USER_EXISTS",t[1701]="ER_TRUNCATE_ILLEGAL_FK",t[1702]="ER_PLUGIN_IS_PERMANENT",t[1703]="ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN",t[1704]="ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX",t[1705]="ER_STMT_CACHE_FULL",t[1706]="ER_MULTI_UPDATE_KEY_CONFLICT",t[1707]="ER_TABLE_NEEDS_REBUILD",t[1708]="WARN_OPTION_BELOW_LIMIT",t[1709]="ER_INDEX_COLUMN_TOO_LONG",t[1710]="ER_ERROR_IN_TRIGGER_BODY",t[1711]="ER_ERROR_IN_UNKNOWN_TRIGGER_BODY",t[1712]="ER_INDEX_CORRUPT",t[1713]="ER_UNDO_RECORD_TOO_BIG",t[1714]="ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT",t[1715]="ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE",t[1716]="ER_BINLOG_UNSAFE_REPLACE_SELECT",t[1717]="ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT",t[1718]="ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT",t[1719]="ER_BINLOG_UNSAFE_UPDATE_IGNORE",t[1720]="ER_PLUGIN_NO_UNINSTALL",t[1721]="ER_PLUGIN_NO_INSTALL",t[1722]="ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT",t[1723]="ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC",t[1724]="ER_BINLOG_UNSAFE_INSERT_TWO_KEYS",t[1725]="ER_TABLE_IN_FK_CHECK",t[1726]="ER_UNSUPPORTED_ENGINE",t[1727]="ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST",t[1728]="ER_CANNOT_LOAD_FROM_TABLE_V2",t[1729]="ER_SOURCE_DELAY_VALUE_OUT_OF_RANGE",t[1730]="ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT",t[1731]="ER_PARTITION_EXCHANGE_DIFFERENT_OPTION",t[1732]="ER_PARTITION_EXCHANGE_PART_TABLE",t[1733]="ER_PARTITION_EXCHANGE_TEMP_TABLE",t[1734]="ER_PARTITION_INSTEAD_OF_SUBPARTITION",t[1735]="ER_UNKNOWN_PARTITION",t[1736]="ER_TABLES_DIFFERENT_METADATA",t[1737]="ER_ROW_DOES_NOT_MATCH_PARTITION",t[1738]="ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX",t[1739]="ER_WARN_INDEX_NOT_APPLICABLE",t[1740]="ER_PARTITION_EXCHANGE_FOREIGN_KEY",t[1741]="ER_NO_SUCH_KEY_VALUE",t[1742]="ER_RPL_INFO_DATA_TOO_LONG",t[1743]="ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE",t[1744]="ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE",t[1745]="ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX",t[1746]="ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT",t[1747]="ER_PARTITION_CLAUSE_ON_NONPARTITIONED",t[1748]="ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET",t[1749]="ER_NO_SUCH_PARTITION",t[1750]="ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE",t[1751]="ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE",t[1752]="ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE",t[1753]="ER_MTS_FEATURE_IS_NOT_SUPPORTED",t[1754]="ER_MTS_UPDATED_DBS_GREATER_MAX",t[1755]="ER_MTS_CANT_PARALLEL",t[1756]="ER_MTS_INCONSISTENT_DATA",t[1757]="ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING",t[1758]="ER_DA_INVALID_CONDITION_NUMBER",t[1759]="ER_INSECURE_PLAIN_TEXT",t[1760]="ER_INSECURE_CHANGE_SOURCE",t[1761]="ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO",t[1762]="ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO",t[1763]="ER_SQLTHREAD_WITH_SECURE_REPLICA",t[1764]="ER_TABLE_HAS_NO_FT",t[1765]="ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER",t[1766]="ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION",t[1767]="ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST",t[1768]="ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL",t[1769]="ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION",t[1770]="ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL",t[1771]="ER_SKIPPING_LOGGED_TRANSACTION",t[1772]="ER_MALFORMED_GTID_SET_SPECIFICATION",t[1773]="ER_MALFORMED_GTID_SET_ENCODING",t[1774]="ER_MALFORMED_GTID_SPECIFICATION",t[1775]="ER_GNO_EXHAUSTED",t[1776]="ER_BAD_REPLICA_AUTO_POSITION",t[1777]="ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON",t[1778]="ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET",t[1779]="ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON",t[1780]="ER_GTID_MODE_REQUIRES_BINLOG",t[1781]="ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF",t[1782]="ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON",t[1783]="ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF",t[1784]="ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF",t[1785]="ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE",t[1786]="ER_GTID_UNSAFE_CREATE_SELECT",t[1787]="ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION",t[1788]="ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME",t[1789]="ER_SOURCE_HAS_PURGED_REQUIRED_GTIDS",t[1790]="ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID",t[1791]="ER_UNKNOWN_EXPLAIN_FORMAT",t[1792]="ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION",t[1793]="ER_TOO_LONG_TABLE_PARTITION_COMMENT",t[1794]="ER_REPLICA_CONFIGURATION",t[1795]="ER_INNODB_FT_LIMIT",t[1796]="ER_INNODB_NO_FT_TEMP_TABLE",t[1797]="ER_INNODB_FT_WRONG_DOCID_COLUMN",t[1798]="ER_INNODB_FT_WRONG_DOCID_INDEX",t[1799]="ER_INNODB_ONLINE_LOG_TOO_BIG",t[1800]="ER_UNKNOWN_ALTER_ALGORITHM",t[1801]="ER_UNKNOWN_ALTER_LOCK",t[1802]="ER_MTS_CHANGE_SOURCE_CANT_RUN_WITH_GAPS",t[1803]="ER_MTS_RECOVERY_FAILURE",t[1804]="ER_MTS_RESET_WORKERS",t[1805]="ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2",t[1806]="ER_REPLICA_SILENT_RETRY_TRANSACTION",t[1807]="ER_DISCARD_FK_CHECKS_RUNNING",t[1808]="ER_TABLE_SCHEMA_MISMATCH",t[1809]="ER_TABLE_IN_SYSTEM_TABLESPACE",t[1810]="ER_IO_READ_ERROR",t[1811]="ER_IO_WRITE_ERROR",t[1812]="ER_TABLESPACE_MISSING",t[1813]="ER_TABLESPACE_EXISTS",t[1814]="ER_TABLESPACE_DISCARDED",t[1815]="ER_INTERNAL_ERROR",t[1816]="ER_INNODB_IMPORT_ERROR",t[1817]="ER_INNODB_INDEX_CORRUPT",t[1818]="ER_INVALID_YEAR_COLUMN_LENGTH",t[1819]="ER_NOT_VALID_PASSWORD",t[1820]="ER_MUST_CHANGE_PASSWORD",t[1821]="ER_FK_NO_INDEX_CHILD",t[1822]="ER_FK_NO_INDEX_PARENT",t[1823]="ER_FK_FAIL_ADD_SYSTEM",t[1824]="ER_FK_CANNOT_OPEN_PARENT",t[1825]="ER_FK_INCORRECT_OPTION",t[1826]="ER_FK_DUP_NAME",t[1827]="ER_PASSWORD_FORMAT",t[1828]="ER_FK_COLUMN_CANNOT_DROP",t[1829]="ER_FK_COLUMN_CANNOT_DROP_CHILD",t[1830]="ER_FK_COLUMN_NOT_NULL",t[1831]="ER_DUP_INDEX",t[1832]="ER_FK_COLUMN_CANNOT_CHANGE",t[1833]="ER_FK_COLUMN_CANNOT_CHANGE_CHILD",t[1834]="ER_FK_CANNOT_DELETE_PARENT",t[1835]="ER_MALFORMED_PACKET",t[1836]="ER_READ_ONLY_MODE",t[1837]="ER_GTID_NEXT_TYPE_UNDEFINED_GROUP",t[1838]="ER_VARIABLE_NOT_SETTABLE_IN_SP",t[1839]="ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF",t[1840]="ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY",t[1841]="ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY",t[1842]="ER_GTID_PURGED_WAS_CHANGED",t[1843]="ER_GTID_EXECUTED_WAS_CHANGED",t[1844]="ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES",t[1845]="ER_ALTER_OPERATION_NOT_SUPPORTED",t[1846]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON",t[1847]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY",t[1848]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION",t[1849]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME",t[1850]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE",t[1851]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK",t[1852]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE",t[1853]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK",t[1854]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC",t[1855]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS",t[1856]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS",t[1857]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS",t[1858]="ER_SQL_REPLICA_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE",t[1859]="ER_DUP_UNKNOWN_IN_INDEX",t[1860]="ER_IDENT_CAUSES_TOO_LONG_PATH",t[1861]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL",t[1862]="ER_MUST_CHANGE_PASSWORD_LOGIN",t[1863]="ER_ROW_IN_WRONG_PARTITION",t[1864]="ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX",t[1865]="ER_INNODB_NO_FT_USES_PARSER",t[1866]="ER_BINLOG_LOGICAL_CORRUPTION",t[1867]="ER_WARN_PURGE_LOG_IN_USE",t[1868]="ER_WARN_PURGE_LOG_IS_ACTIVE",t[1869]="ER_AUTO_INCREMENT_CONFLICT",t[1870]="WARN_ON_BLOCKHOLE_IN_RBR",t[1871]="ER_REPLICA_MI_INIT_REPOSITORY",t[1872]="ER_REPLICA_RLI_INIT_REPOSITORY",t[1873]="ER_ACCESS_DENIED_CHANGE_USER_ERROR",t[1874]="ER_INNODB_READ_ONLY",t[1875]="ER_STOP_REPLICA_SQL_THREAD_TIMEOUT",t[1876]="ER_STOP_REPLICA_IO_THREAD_TIMEOUT",t[1877]="ER_TABLE_CORRUPT",t[1878]="ER_TEMP_FILE_WRITE_FAILURE",t[1879]="ER_INNODB_FT_AUX_NOT_HEX_ID",t[1880]="ER_OLD_TEMPORALS_UPGRADED",t[1881]="ER_INNODB_FORCED_RECOVERY",t[1882]="ER_AES_INVALID_IV",t[1883]="ER_FILE_CORRUPT",t[1884]="ER_ERROR_ON_SOURCE",t[1885]="ER_INCONSISTENT_ERROR",t[1886]="ER_STORAGE_ENGINE_NOT_LOADED",t[1887]="ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER",t[1888]="ER_WARN_LEGACY_SYNTAX_CONVERTED",t[1889]="ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN",t[1890]="ER_CANNOT_DISCARD_TEMPORARY_TABLE",t[1891]="ER_FK_DEPTH_EXCEEDED",t[1892]="ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2",t[1893]="ER_WARN_TRIGGER_DOESNT_HAVE_CREATED",t[1894]="ER_REFERENCED_TRG_DOES_NOT_EXIST",t[1895]="ER_EXPLAIN_NOT_SUPPORTED",t[1896]="ER_INVALID_FIELD_SIZE",t[1897]="ER_MISSING_HA_CREATE_OPTION",t[1898]="ER_ENGINE_OUT_OF_MEMORY",t[1899]="ER_PASSWORD_EXPIRE_ANONYMOUS_USER",t[1900]="ER_REPLICA_SQL_THREAD_MUST_STOP",t[1901]="ER_NO_FT_MATERIALIZED_SUBQUERY",t[1902]="ER_INNODB_UNDO_LOG_FULL",t[1903]="ER_INVALID_ARGUMENT_FOR_LOGARITHM",t[1904]="ER_REPLICA_IO_THREAD_MUST_STOP",t[1905]="ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO",t[1906]="ER_WARN_ONLY_SOURCE_LOG_FILE_NO_POS",t[1907]="ER_QUERY_TIMEOUT",t[1908]="ER_NON_RO_SELECT_DISABLE_TIMER",t[1909]="ER_DUP_LIST_ENTRY",t[1910]="ER_SQL_MODE_NO_EFFECT",t[3169]="ER_SESSION_WAS_KILLED",t[4031]="ER_CLIENT_INTERACTION_TIMEOUT"},function(e,t){e.exports=require("string_decoder")},function(e){e.exports=JSON.parse('[["a140","",62],["a180","",32],["a240","",62],["a280","",32],["a2ab","",5],["a2e3","€"],["a2ef",""],["a2fd",""],["a340","",62],["a380","",31," "],["a440","",62],["a480","",32],["a4f4","",10],["a540","",62],["a580","",32],["a5f7","",7],["a640","",62],["a680","",32],["a6b9","",7],["a6d9","",6],["a6ec",""],["a6f3",""],["a6f6","",8],["a740","",62],["a780","",32],["a7c2","",14],["a7f2","",12],["a896","",10],["a8bc","ḿ"],["a8bf","ǹ"],["a8c1",""],["a8ea","",20],["a958",""],["a95b",""],["a95d",""],["a989","〾⿰",11],["a997","",12],["a9f0","",14],["aaa1","",93],["aba1","",93],["aca1","",93],["ada1","",93],["aea1","",93],["afa1","",93],["d7fa","",4],["f8a1","",93],["f9a1","",93],["faa1","",93],["fba1","",93],["fca1","",93],["fda1","",93],["fe50","⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"],["fe80","䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓",6,"䶮",93],["8135f437",""]]')},function(e){e.exports=JSON.parse('[["0","\\u0000",127],["a140"," ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"],["a1a1","﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢",4,"~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"],["a240","\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁",7,"▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"],["a2a1","╮╰╯═╞╪╡◢◣◥◤╱╲╳0",9,"Ⅰ",9,"〡",8,"十卄卅A",25,"a",21],["a340","wxyzΑ",16,"Σ",6,"α",16,"σ",6,"ㄅ",10],["a3a1","ㄐ",25,"˙ˉˊˇˋ"],["a3e1","€"],["a440","一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"],["a4a1","丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"],["a540","世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"],["a5a1","央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"],["a640","共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"],["a6a1","式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"],["a740","作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"],["a7a1","均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"],["a840","杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"],["a8a1","芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"],["a940","咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"],["a9a1","屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"],["aa40","昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"],["aaa1","炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"],["ab40","陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"],["aba1","哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"],["ac40","拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"],["aca1","活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"],["ad40","耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"],["ada1","迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"],["ae40","哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"],["aea1","恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"],["af40","浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"],["afa1","砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"],["b040","虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"],["b0a1","陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"],["b140","娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"],["b1a1","情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"],["b240","毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"],["b2a1","瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"],["b340","莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"],["b3a1","部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"],["b440","婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"],["b4a1","插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"],["b540","溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"],["b5a1","窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"],["b640","詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"],["b6a1","間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"],["b740","媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"],["b7a1","楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"],["b840","睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"],["b8a1","腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"],["b940","辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"],["b9a1","飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"],["ba40","愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"],["baa1","滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"],["bb40","罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"],["bba1","說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"],["bc40","劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"],["bca1","慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"],["bd40","瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"],["bda1","翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"],["be40","輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"],["bea1","鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"],["bf40","濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"],["bfa1","縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"],["c040","錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"],["c0a1","嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"],["c140","瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"],["c1a1","薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"],["c240","駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"],["c2a1","癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"],["c340","鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"],["c3a1","獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"],["c440","願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"],["c4a1","纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"],["c540","護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"],["c5a1","禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"],["c640","讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"],["c940","乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"],["c9a1","氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"],["ca40","汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"],["caa1","吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"],["cb40","杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"],["cba1","芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"],["cc40","坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"],["cca1","怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"],["cd40","泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"],["cda1","矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"],["ce40","哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"],["cea1","峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"],["cf40","柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"],["cfa1","洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"],["d040","穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"],["d0a1","苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"],["d140","唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"],["d1a1","恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"],["d240","毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"],["d2a1","牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"],["d340","笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"],["d3a1","荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"],["d440","酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"],["d4a1","唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"],["d540","崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"],["d5a1","捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"],["d640","淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"],["d6a1","痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"],["d740","耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"],["d7a1","蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"],["d840","釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"],["d8a1","堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"],["d940","惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"],["d9a1","晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"],["da40","湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"],["daa1","琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"],["db40","罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"],["dba1","菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"],["dc40","軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"],["dca1","隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"],["dd40","媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"],["dda1","搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"],["de40","毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"],["dea1","煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"],["df40","稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"],["dfa1","腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"],["e040","觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"],["e0a1","遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"],["e140","凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"],["e1a1","寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"],["e240","榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"],["e2a1","漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"],["e340","禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"],["e3a1","耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"],["e440","裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"],["e4a1","銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"],["e540","噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"],["e5a1","憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"],["e640","澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"],["e6a1","獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"],["e740","膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"],["e7a1","蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"],["e840","踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"],["e8a1","銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"],["e940","噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"],["e9a1","憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"],["ea40","澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"],["eaa1","瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"],["eb40","蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"],["eba1","諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"],["ec40","錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"],["eca1","魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"],["ed40","檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"],["eda1","瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"],["ee40","蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"],["eea1","謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"],["ef40","鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"],["efa1","鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"],["f040","璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"],["f0a1","臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"],["f140","蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"],["f1a1","鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"],["f240","徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"],["f2a1","礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"],["f340","譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"],["f3a1","鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"],["f440","嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"],["f4a1","禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"],["f540","鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"],["f5a1","鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"],["f640","蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"],["f6a1","騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"],["f740","糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"],["f7a1","驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"],["f840","讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"],["f8a1","齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"],["f940","纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"],["f9a1","龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"]]')},function(e,t,n){"use strict";t.SERVER_STATUS_IN_TRANS=1,t.SERVER_STATUS_AUTOCOMMIT=2,t.SERVER_MORE_RESULTS_EXISTS=8,t.SERVER_QUERY_NO_GOOD_INDEX_USED=16,t.SERVER_QUERY_NO_INDEX_USED=32,t.SERVER_STATUS_CURSOR_EXISTS=64,t.SERVER_STATUS_LAST_ROW_SENT=128,t.SERVER_STATUS_DB_DROPPED=256,t.SERVER_STATUS_NO_BACKSLASH_ESCAPES=512,t.SERVER_STATUS_METADATA_CHANGED=1024,t.SERVER_QUERY_WAS_SLOW=2048,t.SERVER_PS_OUT_PARAMS=4096,t.SERVER_STATUS_IN_TRANS_READONLY=8192,t.SERVER_SESSION_STATE_CHANGED=16384},function(e,t,n){"use strict";const r=n(20),i=n(19),o=n(38),s=n(27),a=n(45);function u(e){const t=[];for(const n in o)e&o[n]&&t.push(n.replace(/_/g," ").toLowerCase());return t}class c extends r{constructor(e){super(),this.handshake=null,this.clientFlags=e}start(){return c.prototype.handshakeInit}sendSSLRequest(e){const t=new i.SSLRequest(this.clientFlags,e.config.charsetNumber);e.writePacket(t.toPacket())}sendCredentials(e){e.config.debug&&console.log("Sending handshake packet: flags:%d=(%s)",this.clientFlags,u(this.clientFlags).join(", ")),this.user=e.config.user,this.password=e.config.password,this.passwordSha1=e.config.passwordSha1,this.database=e.config.database,this.autPluginName=this.handshake.autPluginName;const t=new i.HandshakeResponse({flags:this.clientFlags,user:this.user,database:this.database,password:this.password,passwordSha1:this.passwordSha1,charsetNumber:e.config.charsetNumber,authPluginData1:this.handshake.authPluginData1,authPluginData2:this.handshake.authPluginData2,compress:e.config.compress,connectAttributes:e.config.connectAttributes});e.writePacket(t.toPacket())}calculateNativePasswordAuthToken(e){const t=e.slice(0,8),n=e.slice(8,20);let r;return r=this.passwordSha1?a.calculateTokenFromPasswordSha(this.passwordSha1,t,n):a.calculateToken(this.password,t,n),r}handshakeInit(e,t){this.on("error",e=>{t._fatalError=e,t._protocolError=e}),this.handshake=i.Handshake.fromPacket(e),t.config.debug&&console.log("Server hello packet: capability flags:%d=(%s)",this.handshake.capabilityFlags,u(this.handshake.capabilityFlags).join(", ")),t.serverCapabilityFlags=this.handshake.capabilityFlags,t.serverEncoding=s[this.handshake.characterSet],t.connectionId=this.handshake.connectionId;const n=this.handshake.capabilityFlags&o.SSL;if(t.config.compress=t.config.compress&&this.handshake.capabilityFlags&o.COMPRESS,this.clientFlags=this.clientFlags|t.config.compress,t.config.ssl){if(!n){const e=new Error("Server does not support secure connnection");return e.code="HANDSHAKE_NO_SSL_SUPPORT",e.fatal=!0,this.emit("error",e),!1}this.clientFlags|=o.SSL,this.sendSSLRequest(t),t.startTLS(e=>{if(e)return e.code="HANDSHAKE_SSL_ERROR",e.fatal=!0,void this.emit("error",e);this.sendCredentials(t)})}else this.sendCredentials(t);return c.prototype.handshakeResult}handshakeResult(e,t){const r=e.peekByte();if(254===r||1===r){const i=n(237);try{return 1===r?i.authSwitchRequestMoreData(e,t,this):i.authSwitchRequest(e,t,this),c.prototype.handshakeResult}catch(e){return e.code="AUTH_SWITCH_PLUGIN_ERROR",e.fatal=!0,this.onResult?this.onResult(e):this.emit("error",e),null}}if(0!==r){const e=new Error("Unexpected packet during handshake phase");return e.code="HANDSHAKE_UNKNOWN_ERROR",e.fatal=!0,this.onResult?this.onResult(e):this.emit("error",e),null}if(!t.authorized&&(t.authorized=!0,t.config.compress)){(0,n(241).enableCompression)(t)}return this.onResult&&this.onResult(null),null}}e.exports=c},function(e,t,n){"use strict";const r=n(63),i=n(78),o=n(37).Readable,s=n(20),a=n(19),u=n(245),c=n(108),l=new a.Packet(0,Buffer.allocUnsafe(4),0,4);class f extends s{constructor(e,t){super(),this.sql=e.sql,this.values=e.values,this._queryOptions=e,this.namedPlaceholders=e.namedPlaceholders||!1,this.onResult=t,this.timeout=e.timeout,this.queryTimeout=null,this._fieldCount=0,this._rowParser=null,this._fields=[],this._rows=[],this._receivedFieldsCount=0,this._resultIndex=0,this._localStream=null,this._unpipeStream=function(){},this._streamFactory=e.infileStreamFactory,this._connection=null}then(){const e="You have tried to call .then(), .catch(), or invoked await on the result of query that is not a promise, which is a programming error. Try calling con.promise().query(), or require('mysql2/promise') instead of 'mysql2' for a promise-compatible version of the query interface. To learn how to use async/await or Promises check out documentation at https://www.npmjs.com/package/mysql2#using-promise-wrapper, or the mysql2 documentation at https://github.com/sidorares/node-mysql2/tree/master/documentation/Promise-Wrapper.md";throw console.log(e),new Error(e)}start(e,t){t.config.debug&&console.log(" Sending query command: %s",this.sql),this._connection=t,this.options=Object.assign({},t.config,this._queryOptions),this._setTimeout();const n=new a.Query(this.sql,t.config.charsetNumber);return t.writePacket(n.toPacket(1)),f.prototype.resultsetHeader}done(){if(this._unpipeStream(),this.timeout&&!this.queryTimeout)return null;if(this.queryTimeout&&(i.clearTimeout(this.queryTimeout),this.queryTimeout=null),this.onResult){let e,t;0===this._resultIndex?(e=this._rows[0],t=this._fields[0]):(e=this._rows,t=this._fields),t?r.nextTick(()=>{this.onResult(null,e,t)}):r.nextTick(()=>{this.onResult(null,e)})}return null}doneInsert(e){return this._localStreamError?(this.onResult?this.onResult(this._localStreamError,e):this.emit("error",this._localStreamError),null):(this._rows.push(e),this._fields.push(void 0),this.emit("fields",void 0),this.emit("result",e),e.serverStatus&c.SERVER_MORE_RESULTS_EXISTS?(this._resultIndex++,this.resultsetHeader):this.done())}resultsetHeader(e,t){const n=new a.ResultSetHeader(e,t);return this._fieldCount=n.fieldCount,t.config.debug&&console.log(` Resultset header received, expecting ${n.fieldCount} column definition packets`),0===this._fieldCount?this.doneInsert(n):null===this._fieldCount?this._streamLocalInfile(t,n.infileName):(this._receivedFieldsCount=0,this._rows.push([]),this._fields.push([]),this.readField)}_streamLocalInfile(e,t){if(!this._streamFactory)return this._localStreamError=new Error(`As a result of LOCAL INFILE command server wants to read ${t} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`),e.writePacket(l),this.infileOk;this._localStream=this._streamFactory(t);const n=()=>{this._unpipeStream()},r=()=>{this._localStream.resume()},i=()=>{this._localStream.pause()},o=function(t){const n=Buffer.allocUnsafe(t.length+4);t.copy(n,4),e.writePacket(new a.Packet(0,n,0,n.length))},s=()=>{e.removeListener("error",n),e.writePacket(l)},u=t=>{this._localStreamError=t,e.removeListener("error",n),e.writePacket(l)};return this._unpipeStream=()=>{e.stream.removeListener("pause",i),e.stream.removeListener("drain",r),this._localStream.removeListener("data",o),this._localStream.removeListener("end",s),this._localStream.removeListener("error",u)},e.stream.on("pause",i),e.stream.on("drain",r),this._localStream.on("data",o),this._localStream.on("end",s),this._localStream.on("error",u),e.once("error",n),this.infileOk}readField(e,t){if(this._receivedFieldsCount++,this._fields[this._resultIndex].length!==this._fieldCount){const n=new a.ColumnDefinition(e,t.clientEncoding);this._fields[this._resultIndex].push(n),t.config.debug&&(console.log(" Column definition:"),console.log(" name: "+n.name),console.log(" type: "+n.columnType),console.log(" flags: "+n.flags))}if(this._receivedFieldsCount===this._fieldCount){const e=this._fields[this._resultIndex];return this.emit("fields",e),this._rowParser=new(u(e,this.options,t.config))(e),f.prototype.fieldsEOF}return f.prototype.readField}fieldsEOF(e,t){return e.isEOF()?this.row:t.protocolError("Expected EOF packet")}row(e,t){if(e.isEOF()){return e.eofStatusFlags()&c.SERVER_MORE_RESULTS_EXISTS?(this._resultIndex++,f.prototype.resultsetHeader):this.done()}let n;try{n=this._rowParser.next(e,this._fields[this._resultIndex],this.options)}catch(e){return this._localStreamError=e,this.doneInsert(null)}return this.onResult?this._rows[this._resultIndex].push(n):this.emit("result",n),f.prototype.row}infileOk(e,t){const n=new a.ResultSetHeader(e,t);return this.doneInsert(n)}stream(e){(e=e||{}).objectMode=!0;const t=new o(e);return t._read=()=>{this._connection&&this._connection.resume()},this.on("result",e=>{t.push(e)||this._connection.pause(),t.emit("result",e)}),this.on("error",e=>{t.emit("error",e)}),this.on("end",()=>{t.push(null),t.emit("close")}),this.on("fields",e=>{t.emit("fields",e)}),t}_setTimeout(){if(this.timeout){const e=this._handleTimeoutError.bind(this);this.queryTimeout=i.setTimeout(e,this.timeout)}}_handleTimeoutError(){this.queryTimeout&&(i.clearTimeout(this.queryTimeout),this.queryTimeout=null);const e=new Error("Query inactivity timeout");e.errorno="PROTOCOL_SEQUENCE_TIMEOUT",e.code="PROTOCOL_SEQUENCE_TIMEOUT",e.syscall="query",this.onResult?this.onResult(e):this.emit("error",e)}}f.prototype.catch=f.prototype.then,e.exports=f},function(e,t,n){"use strict";let r;t.srcEscape=function(e){return JSON.stringify({[e]:1}).slice(1,-3)};let i=!1;try{r=n(!function(){var e=new Error("Cannot find module 'cardinal'");throw e.code="MODULE_NOT_FOUND",e}()).highlight}catch(e){r=e=>(i||(console.log("For nicer debug output consider install cardinal@^2.0.0"),i=!0),e)}t.printDebugWithCode=function(e,t){console.log(`\n\n${e}:\n`),console.log(r(t)+"\n")},t.typeMatch=function(e,t,n){return Array.isArray(t)?t.some(t=>e===n[t]):!!t}},function(e,t,n){for(var r=n(8),i=n(246),o=/[\{\[]/,s=/[\}\]]/,a=["do","if","in","for","let","new","try","var","case","else","enum","eval","null","this","true","void","with","await","break","catch","class","const","false","super","throw","while","yield","delete","export","import","public","return","static","switch","typeof","default","extends","finally","package","private","continue","debugger","function","arguments","interface","protected","implements","instanceof","NaN","undefined"],u={},c=0;c-1)for(var t=e.trim().split("\n"),n=0;ne(new Error("Pool is closed.")));let t;return this._freeConnections.length>0?(t=this._freeConnections.shift(),this.emit("acquire",t),r.nextTick(()=>e(null,t))):0===this.config.connectionLimit||this._allConnections.lengththis._closed?e(new Error("Pool is closed.")):n?e(n):(this.emit("connection",t),this.emit("acquire",t),e(null,t)))):this.config.waitForConnections?this.config.queueLimit&&this._connectionQueue.length>=this.config.queueLimit?e(new Error("Queue limit reached.")):(this.emit("enqueue"),this._connectionQueue.push(e)):r.nextTick(()=>e(new Error("No connections available.")))}releaseConnection(e){let t;e._pool?this._connectionQueue.length?(t=this._connectionQueue.shift(),r.nextTick(t.bind(null,null,e))):(this._freeConnections.push(e),this.emit("release",e)):this._connectionQueue.length&&(t=this._connectionQueue.shift(),r.nextTick(this.getConnection.bind(this,t)))}end(e){this._closed=!0,"function"!=typeof e&&(e=function(e){if(e)throw e});let t,n=!1,r=0;const i=function(t){if(!n)return t||++r>=this._allConnections.length?(n=!0,void e(t)):void 0}.bind(this);if(0!==this._allConnections.length)for(let e=0;e{if(e)"function"==typeof r.onResult?r.onResult(e):r.emit("error",e);else try{t.query(r).once("end",()=>{t.release()})}catch(e){throw t.release(),e}}),r}execute(e,t,n){"function"==typeof t&&(n=t,t=[]),this.getConnection((r,i)=>{if(r)return n(r);try{i.execute(e,t,n).once("end",()=>{i.release()})}catch(e){throw i.release(),e}})}_removeConnection(e){c(this._allConnections,e),c(this._freeConnections,e),this.releaseConnection(e)}format(e,t){return i.format(e,t,this.config.connectionConfig.stringifyObjects,this.config.connectionConfig.timezone)}escape(e){return i.escape(e,this.config.connectionConfig.stringifyObjects,this.config.connectionConfig.timezone)}escapeId(e){return i.escapeId(e,!1)}}},function(e,t,n){"use strict";const r=n(76).Connection;class i extends r{constructor(e,t){super(t),this._pool=e,this.once("end",()=>{this._removeFromPool()}),this.once("error",()=>{this._removeFromPool()})}release(){this._pool&&!this._pool._closed&&this._pool.releaseConnection(this)}promise(e){return new(0,n(36).PromisePoolConnection)(this,e)}end(){const e=new Error("Calling conn.end() to release a pooled connection is deprecated. In next version calling conn.end() will be restored to default conn.end() behavior. Use conn.release() instead.");this.emit("warn",e),console.warn(e.message),this.release()}destroy(){this._removeFromPool(),super.destroy()}_removeFromPool(){if(!this._pool||this._pool._closed)return;const e=this._pool;this._pool=null,e._removeConnection(this)}}i.statementKey=r.statementKey,e.exports=i,i.prototype._realEnd=r.prototype.end},function(e,t,n){"use strict";const r=n(63),i=n(115),o=n(118),s=n(61),a=n(25).EventEmitter,u={RR(){let e=0;return t=>t[e++%t.length]},RANDOM:()=>e=>e[Math.floor(Math.random()*e.length)],ORDER:()=>e=>e[0]};class c{constructor(e,t,n){this._cluster=e,this._pattern=t,this._selector=u[n]()}getConnection(e){const t=this._getClusterNode();return null===t?e(new Error("Pool does Not exists.")):this._cluster._getConnection(t,(t,n)=>t?e(t):"retry"===n?this.getConnection(e):e(null,n))}query(e,t,n){const r=s.createQuery(e,t,n,{});return this.getConnection((e,t)=>{if(e)"function"==typeof r.onResult?r.onResult(e):r.emit("error",e);else try{t.query(r).once("end",()=>{t.release()})}catch(e){throw t.release(),e}}),r}execute(e,t,n){"function"==typeof t&&(n=t,t=[]),this.getConnection((r,i)=>{if(r)return n(r);try{i.execute(e,t,n).once("end",()=>{i.release()})}catch(e){throw i.release(),e}})}_getClusterNode(){const e=this._cluster._findNodeIds(this._pattern);if(0===e.length)return null;const t=1===e.length?e[0]:this._selector(e);return this._cluster._getNode(t)}}e.exports=class extends a{constructor(e){super(),e=e||{},this._canRetry=void 0===e.canRetry||e.canRetry,this._removeNodeErrorCount=e.removeNodeErrorCount||5,this._defaultSelector=e.defaultSelector||"RR",this._closed=!1,this._lastId=0,this._nodes={},this._serviceableNodeIds=[],this._namespaces={},this._findCaches={}}of(e,t){e=e||"*",t=(t=t||this._defaultSelector).toUpperCase(),"undefined"===!u[t]&&(t=this._defaultSelector);const n=e+t;return void 0===this._namespaces[n]&&(this._namespaces[n]=new c(this,e,t)),this._namespaces[n]}add(e,t){"object"==typeof e&&(t=e,e="CLUSTER::"+ ++this._lastId),void 0===this._nodes[e]&&(this._nodes[e]={id:e,errorCount:0,pool:new i({config:new o(t)})},this._serviceableNodeIds.push(e),this._clearFindCaches())}getConnection(e,t,n){let r;"function"==typeof e?(n=e,r=this.of()):("function"==typeof t&&(n=t,t=this._defaultSelector),r=this.of(e,t)),r.getConnection(n)}end(e){const t=void 0!==e?e:e=>{if(e)throw e};if(this._closed)return void r.nextTick(t);this._closed=!0;let n=!1,i=0;const o=e=>{if(!n&&(e||--i<=0))return n=!0,t(e)};for(const e in this._nodes)i++,this._nodes[e].pool.end(o);0===i&&r.nextTick(o)}_findNodeIds(e){if(void 0!==this._findCaches[e])return this._findCaches[e];let t;if("*"===e)t=this._serviceableNodeIds;else if(-1!==this._serviceableNodeIds.indexOf(e))t=[e];else{const n=e.substring(e.length-1,0);t=this._serviceableNodeIds.filter(e=>e.startsWith(n))}return this._findCaches[e]=t,t}_getNode(e){return this._nodes[e]||null}_increaseErrorCount(e){if(++e.errorCount>=this._removeNodeErrorCount){const t=this._serviceableNodeIds.indexOf(e.id);-1!==t&&(this._serviceableNodeIds.splice(t,1),delete this._nodes[e.id],this._clearFindCaches(),e.pool.end(),this.emit("remove",e.id))}}_decreaseErrorCount(e){e.errorCount>0&&--e.errorCount}_getConnection(e,t){e.pool.getConnection((n,r)=>n?(this._increaseErrorCount(e),this._canRetry?(this.emit("warn",n),console.warn("[Error] PoolCluster : "+n),t(null,"retry")):t(n)):(this._decreaseErrorCount(e),r._clusterId=e.id,t(null,r)))}_clearFindCaches(){this._findCaches={}}}},function(e,t,n){"use strict";const r=n(65);e.exports=class{constructor(e){"string"==typeof e&&(e=r.parseUrl(e)),this.connectionConfig=new r(e),this.waitForConnections=void 0===e.waitForConnections||Boolean(e.waitForConnections),this.connectionLimit=isNaN(e.connectionLimit)?10:Number(e.connectionLimit),this.queueLimit=isNaN(e.queueLimit)?0:Number(e.queueLimit)}}},function(e,t,n){"use strict";var r=n(270),i=n(6).configs;t.cli=r.levels(i.cli),t.npm=r.levels(i.npm),t.syslog=r.levels(i.syslog),t.addColors=r.levels},function(e,t,n){"use strict";const{Colorizer:r}=n(66);e.exports=e=>(r.addColors(e.colors||e),e)},function(e,t,n){var r=n(271);e.exports=r},function(e,t,n){"use strict";const r=n(12);e.exports=r(e=>(e.message="\t"+e.message,e))},function(e,t,n){"use strict";const r=n(12),{LEVEL:i,MESSAGE:o}=n(6);e.exports=r((e,{stack:t})=>{if(e instanceof Error){const n=Object.assign({},e,{level:e.level,[i]:e[i]||e.level,message:e.message,[o]:e[o]||e.message});return t&&(n.stack=e.stack),n}if(!(e.message instanceof Error))return e;const n=e.message;return Object.assign(e,n),e.message=n.message,e[o]=n.message,t&&(e.stack=n.stack),e})},function(e,t,n){"use strict";const{Colorizer:r}=n(66),{Padder:i}=n(82),{configs:o,MESSAGE:s}=n(6);class a{constructor(e={}){e.levels||(e.levels=o.npm.levels),this.colorizer=new r(e),this.padder=new i(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[s]=`${e.level}:${e.message}`,e}}e.exports=e=>new a(e),e.exports.Format=a},function(e,t,n){"use strict";const r=n(12);function i(e){if(e.every(o))return t=>{let n=t;for(let t=0;t{const t=r(i(e)),n=t();return n.Format=t.Format,n},e.exports.cascade=i},function(e,t,n){"use strict";const r=n(12);e.exports=r((e,t)=>t.message?(e.message=`[${t.label}] ${e.message}`,e):(e.label=t.label,e))},function(e,t,n){"use strict";const r=n(12),{MESSAGE:i}=n(6),o=n(84);e.exports=r(e=>{const t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e})},function(e,t,n){"use strict";const r=n(12);e.exports=r((e,t={})=>{let n="metadata";t.key&&(n=t.key);let r=[];return t.fillExcept||t.fillWith||(r.push("level"),r.push("message")),t.fillExcept&&(r=t.fillExcept),r.length>0?function(e,t,n){const r=t.reduce((t,n)=>(t[n]=e[n],delete e[n],t),{}),i=Object.keys(e).reduce((t,n)=>(t[n]=e[n],delete e[n],t),{});return Object.assign(e,r,{[n]:i}),e}(e,r,n):t.fillWith?function(e,t,n){return e[n]=t.reduce((t,n)=>(t[n]=e[n],delete e[n],t),{}),e}(e,t.fillWith,n):e})},function(e,t,n){"use strict";const r=n(12),i=n(282);e.exports=r(e=>{const t=+new Date;return this.diff=t-(this.prevTime||t),this.prevTime=t,e.ms="+"+i(this.diff),e})},function(e,t,n){"use strict";const r=n(8).inspect,i=n(12),{LEVEL:o,MESSAGE:s,SPLAT:a}=n(6);e.exports=i((e,t={})=>{const n=Object.assign({},e);return delete n[o],delete n[s],delete n[a],e[s]=r(n,!1,t.depth||null,t.colorize),e})},function(e,t,n){"use strict";const{MESSAGE:r}=n(6);class i{constructor(e){this.template=e}transform(e){return e[r]=this.template(e),e}}e.exports=e=>new i(e),e.exports.Printf=e.exports.Format=i},function(e,t,n){"use strict";const r=n(12),{MESSAGE:i}=n(6),o=n(84);e.exports=r(e=>{const t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),n=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?`${e.level}:${n} ${e.message} ${t}`:`${e.level}:${n} ${e.message}`,e})},function(e,t,n){"use strict";const r=n(8),{SPLAT:i}=n(6),o=/%[scdjifoO%]/g,s=/%%/g;class a{constructor(e){this.options=e}_splat(e,t){const n=e.message,o=e[i]||e.splat||[],a=n.match(s),u=a&&a.length||0,c=t.length-u-o.length,l=c<0?o.splice(c,-1*c):[],f=l.length;if(f)for(let t=0;t1?n.splice(0):n,r=t.length;if(r)for(let n=0;nnew a(e)},function(e,t,n){"use strict";const r=n(283),i=n(12);e.exports=i((e,t={})=>(t.format&&(e.timestamp="function"==typeof t.format?t.format():r.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e))},function(e,t,n){"use strict";const r=n(121),i=n(12),{MESSAGE:o}=n(6);e.exports=i((e,t)=>(!1!==t.level&&(e.level=r.strip(e.level)),!1!==t.message&&(e.message=r.strip(e.message)),!1!==t.raw&&e[o]&&(e[o]=r.strip(e[o])),e))},function(e,t,n){"use strict";var r;e.exports=O,O.ReadableState=I;n(25).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=n(137),s=n(28).Buffer,a=global.Uint8Array||function(){};var u,c=n(8);u=c&&c.debuglog?c.debuglog("stream"):function(){};var l,f,_,d=n(285),E=n(138),h=n(139).getHighWaterMark,p=n(39).codes,R=p.ERR_INVALID_ARG_TYPE,g=p.ERR_STREAM_PUSH_AFTER_EOF,A=p.ERR_METHOD_NOT_IMPLEMENTED,T=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(32)(O,o);var N=E.errorOrDestroy,m=["error","close","destroy","pause","resume"];function I(e,t,i){r=r||n(46),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=h(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n(67).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function O(e){if(r=r||n(46),!(this instanceof O))return new O(e);var t=this instanceof r;this._readableState=new I(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function b(e,t,n,r,i){u("readableAddChunk",t);var o,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?S(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,w(e)))}(e,c);else if(i||(o=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof a||"string"==typeof t||void 0===t||e.objectMode||(n=new R("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(c,t)),o)N(e,o);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)c.endEmitted?N(e,new T):v(e,c,t,!0);else if(c.ended)N(e,new g);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?v(e,c,t,!1):C(e,c)):v(e,c,t,!1)}else r||(c.reading=!1,C(e,c));return!c.ended&&(c.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(w,e))}function w(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,U(e)}function C(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(D,e,t))}function D(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){u("readable nexttick read 0"),e.read(0)}function B(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(G,t,e))}function G(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function x(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):S(this),null;if(0===(e=y(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){N(this,new A("_read()"))},O.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,u("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:h;function s(t,i){u("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),e.removeListener("close",d),e.removeListener("finish",E),e.removeListener("drain",c),e.removeListener("error",_),e.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",h),n.removeListener("data",f),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function a(){u("onend"),e.end()}r.endEmitted?process.nextTick(o):n.once("end",o),e.on("unpipe",s);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,U(e))}}(n);e.on("drain",c);var l=!1;function f(t){u("ondata");var i=e.write(t);u("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==x(r.pipes,e))&&!l&&(u("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function _(t){u("onerror",t),h(),e.removeListener("error",_),0===i(e,"error")&&N(e,t)}function d(){e.removeListener("finish",E),h()}function E(){u("onfinish"),e.removeListener("close",d),h()}function h(){u("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",_),e.once("close",d),e.once("finish",E),e.emit("pipe",n),r.flowing||(u("pipe resume"),n.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u("on readable",r.length,r.reading),r.length?S(this):r.reading||process.nextTick(L,this))),n},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(M,this),n},O.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(M,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(B,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new T(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,n){n(new E("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(e,t){t(e)}},function(e,t,n){e.exports=n(8).deprecate},function(e,t,n){"use strict";e.exports=l;var r=n(39).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,s=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(46);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthnull!==e&&"object"==typeof e&&"function"==typeof e.pipe;r.writable=e=>r(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,r.readable=e=>r(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,r.duplex=e=>r.writable(e)&&r.readable(e),r.transform=e=>r.duplex(e)&&"function"==typeof e._transform,e.exports=r},function(e,t,n){"use strict";var r=n(304);e.exports=function(e){var t,n=0;function i(){return n||(n=1,t=e.apply(this,arguments),e=null),t}return i.displayName=r(e),i}},function(e,t){function n(e){for(var t in e)this[t]=e[t]}t.get=function(e){var n=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(r,e||t.get);var o=r.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=n,o},t.parse=function(e){if(!e.stack)return[];var t=this;return e.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var n=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(n){var r=null,i=null,o=null,s=null,a=null,u="native"===n[5];if(n[1]){var c=(o=n[1]).lastIndexOf(".");if("."==o[c-1]&&c--,c>0){r=o.substr(0,c),i=o.substr(c+1);var l=r.indexOf(".Module");l>0&&(o=o.substr(l+1),r=r.substr(0,l))}s=null}i&&(s=r,a=i),""===i&&(a=null,o=null);var f={fileName:n[2]||null,lineNumber:parseInt(n[3],10)||null,functionName:o,typeName:s,methodName:a,columnNumber:parseInt(n[4],10)||null,native:u};return t._createParsedCallSite(f)}})).filter((function(e){return!!e}))};["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(e){n.prototype[e]=null,n.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),["topLevel","eval","native","constructor"].forEach((function(e){n.prototype[e]=!1,n.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),t._createParsedCallSite=function(e){return new n(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),n(null)},s.prototype._writev=function(e,t){for(let t=0;t-1))throw new T(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,n){n(new E("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(e,t){t(e)}},function(e,t,n){e.exports=n(37)},function(e,t,n){"use strict";function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},function(e,t,n){"use strict";var r=n(56).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateUniquePhoneNumber=void 0;const o=n(16),s=i(n(21)),a=e=>{let t=11;if(e>t)return a(t)+a(e-t);t=Math.pow(10,e+1);const n=t/10;return(""+(Math.floor(Math.random()*(t-n+1))+n)).substr(1)};t.generateUniquePhoneNumber=function e(){return r(this,void 0,void 0,(function*(){const t=`SELECT EXISTS(SELECT * FROM ${o.config.database.playerTable} WHERE ${o.config.database.phoneNumberColumn} = ?)`,n=a(10).replace(/(\d{3})(\d{3})(\d{4})/,"$1-$2-$3"),[r]=yield s.default._rawExec(t,n);return r?n:e()}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Collection",(function(){return o})),n.d(t,"default",(function(){return s}));var r=Object.defineProperty,i=class extends Map{get(e){return super.get(e)}set(e,t){return super.set(e,t)}has(e){return super.has(e)}delete(e){return super.delete(e)}clear(){return super.clear()}hasAll(...e){return e.every(e=>super.has(e))}hasAny(...e){return e.some(e=>super.has(e))}first(e){if(void 0===e)return this.values().next().value;if(e<0)return this.last(-1*e);e=Math.min(this.size,e);let t=this.values();return Array.from({length:e},()=>t.next().value)}firstKey(e){if(void 0===e)return this.keys().next().value;if(e<0)return this.lastKey(-1*e);e=Math.min(this.size,e);let t=this.keys();return Array.from({length:e},()=>t.next().value)}last(e){let t=[...this.values()];return void 0===e?t[t.length-1]:e<0?this.first(-1*e):e?t.slice(-e):[]}lastKey(e){let t=[...this.keys()];return void 0===e?t[t.length-1]:e<0?this.firstKey(-1*e):e?t.slice(-e):[]}random(e){let t=[...this.values()];return void 0===e?t[Math.floor(Math.random()*t.length)]:t.length&&e?Array.from({length:Math.min(e,t.length)},()=>t.splice(Math.floor(Math.random()*t.length),1)[0]):[]}randomKey(e){let t=[...this.keys()];return void 0===e?t[Math.floor(Math.random()*t.length)]:t.length&&e?Array.from({length:Math.min(e,t.length)},()=>t.splice(Math.floor(Math.random()*t.length),1)[0]):[]}find(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this)if(e(n,t,this))return n}findKey(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this)if(e(n,t,this))return t}sweep(e,t){void 0!==t&&(e=e.bind(t));let n=this.size;for(let[t,n]of this)e(n,t,this)&&this.delete(t);return n-this.size}filter(e,t){void 0!==t&&(e=e.bind(t));let n=new this.constructor[Symbol.species];for(let[t,r]of this)e(r,t,this)&&n.set(t,r);return n}partition(e,t){void 0!==t&&(e=e.bind(t));let n=[new this.constructor[Symbol.species],new this.constructor[Symbol.species]];for(let[t,r]of this)e(r,t,this)?n[0].set(t,r):n[1].set(t,r);return n}flatMap(e,t){let n=this.map(e,t);return(new this.constructor[Symbol.species]).concat(...n)}map(e,t){void 0!==t&&(e=e.bind(t));let n=this.entries();return Array.from({length:this.size},()=>{let[t,r]=n.next().value;return e(r,t,this)})}mapValues(e,t){void 0!==t&&(e=e.bind(t));let n=new this.constructor[Symbol.species];for(let[t,r]of this)n.set(t,e(r,t,this));return n}some(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this)if(e(n,t,this))return!0;return!1}every(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this)if(!e(n,t,this))return!1;return!0}reduce(e,t){let n;if(void 0!==t){n=t;for(let[t,r]of this)n=e(n,r,t,this);return n}let r=!0;for(let[t,i]of this)r?(n=i,r=!1):n=e(n,i,t,this);if(r)throw new TypeError("Reduce of empty collection with no initial value");return n}each(e,t){return this.forEach(e,t),this}tap(e,t){return void 0!==t&&(e=e.bind(t)),e(this),this}clone(){return new this.constructor[Symbol.species](this)}concat(...e){let t=this.clone();for(let n of e)for(let[e,r]of n)t.set(e,r);return t}equals(e){if(!e)return!1;if(this===e)return!0;if(this.size!==e.size)return!1;for(let[t,n]of this)if(!e.has(t)||n!==e.get(t))return!1;return!0}sort(e=i.defaultSort){let t=[...this.entries()];t.sort((t,n)=>e(t[1],n[1],t[0],n[0])),super.clear();for(let[e,n]of t)super.set(e,n);return this}intersect(e){let t=new this.constructor[Symbol.species];for(let[n,r]of e)this.has(n)&&t.set(n,r);return t}difference(e){let t=new this.constructor[Symbol.species];for(let[n,r]of e)this.has(n)||t.set(n,r);for(let[n,r]of this)e.has(n)||t.set(n,r);return t}sorted(e=i.defaultSort){return new this.constructor[Symbol.species](this).sort((t,n,r,i)=>e(t,n,r,i))}toJSON(){return[...this.values()]}static defaultSort(e,t){return Number(e>t)||Number(e===t)-1}},o=i;r(o,"name",{value:"Collection",configurable:!0}),o.default=i;var s=o},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(17)),s=n(158),a=i(n(328)),u=n(159),c=n(160),l=n(58);const f=new class{constructor(){this.marketplaceDB=a.default,s.marketplaceLogger.debug("Marketplace service started")}handleAddListing(e,t){return r(this,void 0,void 0,(function*(){s.marketplaceLogger.debug("Handling add listing, listing:"),s.marketplaceLogger.debug(e.data);const n=o.default.getPlayer(e.source),r=n.getIdentifier();try{if(yield this.marketplaceDB.doesListingExist(e.data,r))return t({status:"error",errorMsg:u.MarketplaceResp.DUPLICATE});const i=(0,l.checkAndFilterImage)(e.data.url);if(null==i)return t({status:"error",errorMsg:u.MarketplaceResp.INVALID_IMAGE_HOST});e.data.url=i;const o=yield this.marketplaceDB.addListing(n.getIdentifier(),n.username,n.getName(),n.getPhoneNumber(),e.data);t({status:"ok"});const s={id:o,identifier:n.getIdentifier(),name:n.getName(),number:n.getPhoneNumber(),url:e.data.url,username:n.username,description:e.data.description,title:e.data.title};emitNet(u.MarketplaceEvents.BROADCAST_ADD,-1,{type:"ADD",listing:s})}catch(n){s.marketplaceLogger.error("Failed to add listing "+n.message,{source:e.source}),t({status:"error",errorMsg:u.MarketplaceResp.CREATE_FAILED})}}))}handleFetchListings(e,t){return r(this,void 0,void 0,(function*(){try{const e=yield this.marketplaceDB.fetchListings();t({data:e,status:"ok"})}catch(n){s.marketplaceLogger.error("Failed to fetch listings, "+n.message,{source:e.source}),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleDeleteListing(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.marketplaceDB.deleteListing(e.data.id,n),t({status:"ok"});const r=e.data.id;emitNet(u.MarketplaceEvents.BROADCAST_DELETE,-1,[r])}catch(e){s.marketplaceLogger.error("Error in handleDeleteListing, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleDeleteListingsOnDrop(e){return r(this,void 0,void 0,(function*(){try{const t=yield this.marketplaceDB.getListingIdsByIdentifier(e);emitNet(u.MarketplaceEvents.BROADCAST_DELETE,-1,t),yield this.marketplaceDB.deleteListingsOnDrop(e)}catch(e){s.marketplaceLogger.error("Error when deleting listings on player drop, "+e.message)}}))}handleReportListing(e,t){return r(this,void 0,void 0,(function*(){try{const n=yield this.marketplaceDB.getListing(e.data.id),r=yield this.marketplaceDB.doesReportExist(e.data.id,n.username),i=GetPlayerName(e.source.toString());if(r)return s.marketplaceLogger.error("This listing has already been reported"),void t({status:"error",errorMsg:"REPORT_EXISTS"});yield this.marketplaceDB.reportListing(n),yield(0,c.reportListingToDiscord)(n,i)}catch(n){s.marketplaceLogger.error("Failed to report listing "+n.message,{source:e.source}),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.marketplaceLogger=void 0;const r=n(10);t.marketplaceLogger=r.mainLogger.child({module:"marketplace"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarketplaceEvents=t.MarketplaceResp=t.MarketplaceDatabaseLimits=void 0,function(e){e[e.title=255]="title",e[e.description=255]="description",e[e.url=255]="url"}(t.MarketplaceDatabaseLimits||(t.MarketplaceDatabaseLimits={})),function(e){e.CREATE_FAILED="MARKETPLACE.FEEDBACK.CREATE_LISTING_FAILED",e.DUPLICATE="MARKETPLACE.FEEDBACK.DUPLICATE_LISTING",e.INVALID_IMAGE_HOST="GENERIC_INVALID_IMAGE_HOST"}(t.MarketplaceResp||(t.MarketplaceResp={})),function(e){e.ADD_LISTING="npwd:addListing",e.FETCH_LISTING="npwd:fetchAllListings",e.DELETE_LISTING="npwd:marketplaceDeleteListing",e.DELETE_LISTINGS_ON_DROP="npwd:marketplaceDeleteListingsOnDrop",e.REPORT_LISTING="npwd:reportListing",e.BROADCAST_ADD="npwd:sendMarketplaceBroadcastAdd",e.BROADCAST_DELETE="npwd:sendMarketplaceBroadcastDelete"}(t.MarketplaceEvents||(t.MarketplaceEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.reportListingToDiscord=t.reportTweetToDiscord=void 0;const o=i(n(329)),s=n(10),a=s.mainLogger.child({module:"discord"}),u=GetConvar("NPWD_DISCORD_TOKEN",""),c=e=>r(void 0,void 0,void 0,(function*(){if(!u)return void a.warn("Got a request to report a listing but discord is not configures. See README on how to configure discord endpoints.");const t=yield o.default.post(u,Object.assign({},e));if(t.status<200&&t.status>=300)throw new Error(`Discord Error: ${t.status} Error - ${t.statusText}`)})),l=(e,t,n)=>({username:"NPWD Report",embeds:[{title:e+" REPORT",color:15158332,description:t,timestamp:(new Date).toISOString(),fields:n}]});t.reportTweetToDiscord=function(e,t){return r(this,void 0,void 0,(function*(){const n=[{name:"Reported By:",value:`\`\`\`Profile Name: ${t.profile_name}\nProfile ID: ${t.id}\nUser Identifier: ${t.identifier}\`\`\``},{name:"Reported User Data:",value:`\`\`\`Profile Name: ${e.profile_name}\nProfile ID: ${e.profile_id}\nUser Identifier: ${e.identifier}\`\`\``},{name:"Tweet Message:",value:`\`\`\`Message: ${e.message}\`\`\``}],r=e.images?n.concat({name:"Reported Image:",value:e.images.split("||!||").join("\n")}):n,i=l("TWITTER","Received a report for a tweet",r);try{yield c(i)}catch(e){a.error(e.message)}}))},t.reportListingToDiscord=function(e,t){return r(this,void 0,void 0,(function*(){const n=[{name:"Reported By",value:`\`\`\`Profile Name: ${t}\`\`\``},{name:"Reported User Data",value:`\`\`\`Profile Name: ${e.username}\nProfile ID: ${e.id}\nUser Identifier: ${e.identifier}\`\`\``},{name:"Reported Listing Title",value:`\`\`\`Title: ${e.name}\`\`\``},{name:"Reported Listing Desc.",value:`\`\`\`Description: ${e.description}\`\`\``}],r=e.url?n.concat({name:"Reported Image:",value:e.url.split("||!||").join("\n")}):n,i=l("MARKETPLACE","Received a report for a listing",r);try{yield c(i)}catch(e){a.error(e.message)}}))}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=300&&t<400){if(m(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new d);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],T(/^content-/i,this._options.headers));var i,o=T(/^host$/i,this._options.headers),s=r.parse(this._currentUrl),a=o||s.host,u=/^\w+:/.test(n)?this._currentUrl:r.format(Object.assign(s,{host:a}));try{i=r.resolve(u,n)}catch(e){return void this.emit("error",new _(e))}c("redirecting to",i),this._isRedirect=!0;var l=r.parse(i);if(Object.assign(this._options,l),l.protocol===s.protocol&&function(e,t){if(e===t)return!0;const n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(l.host,a)||T(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var f={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,f)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new _(e))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=R({http:o,https:s}),e.exports.wrap=R},function(e,t){e.exports=require("assert")},function(e,t,n){e.exports=function(e){function t(e){let n,i,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];n=o.call(r,t),e.splice(s,1),s--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;te.id-t.id),t({status:"ok",data:n})}catch(n){t({status:"error",errorMsg:"GENERIC_DB_ERROR"}),u.messagesLogger.error("Failed to fetch messages, "+n.message,{source:e.source})}}))}handleSendMessage(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getPlayer(e.source),r=n.getPhoneNumber(),i=e.data,a=(0,u.getIdentifiersFromParticipants)(i.conversationId),c=n.getIdentifier(),l=yield this.messagesDB.createMessage(c,r,i.conversationId,i.message,i.is_embed,i.embed);yield this.messagesDB.setMessageUnread(i.conversationId,i.tgtPhoneNumber),t({status:"ok",data:Object.assign(Object.assign({},i),{conversation_id:i.conversationId,author:r,id:l,message:i.message,embed:i.embed,is_embed:i.is_embed})});for(const e of a)if(e!==n.getPhoneNumber()){const t=yield o.default.getIdentifierByPhoneNumber(e,!0),r=o.default.getPlayerFromIdentifier(t);r&&(emitNet(s.MessageEvents.SEND_MESSAGE_SUCCESS,r.source,i),emitNet(s.MessageEvents.CREATE_MESSAGE_BROADCAST,r.source,{conversationName:n.getPhoneNumber(),conversationId:i.conversationId,message:i.message,is_embed:i.is_embed,embed:i.embed}))}}catch(n){t({status:"error",errorMsg:n.message}),u.messagesLogger.error("Failed to send message, "+n.message,{source:e.source})}}))}handleOnMessageSendResponse(e){return r(this,void 0,void 0,(function*(){const t=e.data,n=yield this.messagesDB.createMessage(t.author,t.author,t.conversation_id,t.message),r=Object.assign(Object.assign({},t),{id:n});emitNet(s.MessageEvents.SEND_MESSAGE_SUCCESS,e.source,r)}))}handleSetMessageRead(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getPlayer(e).getPhoneNumber();yield this.messagesDB.setMessageRead(t,n)}catch(t){u.messagesLogger.error("Failed to set message as read, "+t.message,{source:e})}}))}handleDeleteConversation(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getPlayer(e.source).getPhoneNumber();for(const t of e.data.conversationsId)yield this.messagesDB.deleteConversation(t,n);t({status:"ok"})}catch(n){t({status:"error",errorMsg:"GENERIC_DB_ERROR"}),u.messagesLogger.error("Failed to delete conversation, "+n.message,{source:e.source})}}))}handleDeleteMessage(e,t){return r(this,void 0,void 0,(function*(){try{yield this.messagesDB.deleteMessage(e.data),t({status:"ok"})}catch(n){t({status:"error",errorMsg:"GENERIC_DB_ERROR"}),u.messagesLogger.error("Failed to delete message, "+n.message,{source:e.source})}}))}};t.default=c},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._MessagesDB=void 0;const o=n(16),s=i(n(21));class a{createMessage(e,t,n,i,o,a){return r(this,void 0,void 0,(function*(){const[r]=yield s.default._rawExec("INSERT INTO npwd_messages (user_identifier, author, message, conversation_id, is_embed, embed)\n VALUES (?, ?, ?, ?, ?, ?)",[e,t,i||"",n,o||!1,a||""]);return r.insertId}))}getMessageConversations(e){return r(this,void 0,void 0,(function*(){const t=`\n SELECT npwd_messages_conversations.unreadCount,\n npwd_messages_conversations.conversation_id,\n npwd_messages_conversations.user_identifier,\n npwd_messages_conversations.participant_identifier,\n npwd_messages_conversations.updatedAt,\n ${o.config.database.playerTable}.${o.config.database.phoneNumberColumn}\n AS phone_number\n FROM (SELECT conversation_id\n FROM npwd_messages_conversations\n WHERE npwd_messages_conversations.participant_identifier = ?) AS t\n LEFT OUTER JOIN npwd_messages_conversations\n ON npwd_messages_conversations.conversation_id = t.conversation_id\n LEFT OUTER JOIN ${o.config.database.playerTable}\n ON ${o.config.database.playerTable}.${o.config.database.phoneNumberColumn} = npwd_messages_conversations.participant_identifier\n\t\t`,[n]=yield s.default._rawExec(t,[e]);return n}))}getMessages(e,t){return r(this,void 0,void 0,(function*(){const n=20*t,[r]=yield s.default._rawExec("SELECT npwd_messages.id,\n npwd_messages.conversation_id,\n npwd_messages.message,\n npwd_messages.author,\n npwd_messages.embed,\n npwd_messages.is_embed\n FROM npwd_messages\n WHERE npwd_messages.conversation_id = ?\n ORDER BY id DESC\n LIMIT ? OFFSET ?",[e,20,n]);return r}))}createMessageGroup(e,t,n){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("\n INSERT\n INTO npwd_messages_conversations\n (user_identifier, conversation_id, participant_identifier)\n VALUES (?, ?, ?)\n\t\t",[e,t,n])}))}getIdentifierFromPhoneNumber(e){return r(this,void 0,void 0,(function*(){const t=`\n SELECT ${o.config.database.identifierColumn}\n FROM ${o.config.database.playerTable}\n WHERE ${o.config.database.phoneNumberColumn} = ?\n LIMIT 1\n\t\t`,[n]=yield s.default._rawExec(t,[e]);return n[0].identifier}))}checkIfMessageGroupExists(e){return r(this,void 0,void 0,(function*(){const[t]=yield s.default._rawExec("\n SELECT COUNT(*) as count\n FROM npwd_messages_conversations\n WHERE conversation_id = ?;\n\t\t",[e]);return t[0].count>0}))}getMessageCountByGroup(e){return r(this,void 0,void 0,(function*(){const[t]=yield s.default._rawExec("\n SELECT COUNT(*) as count\n FROM npwd_messages\n WHERE conversation_id = ?",[e]);return t[0].count}))}setMessageUnread(e,t){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("UPDATE npwd_messages_conversations\n SET unreadCount = unreadCount + 1\n WHERE conversation_id = ?\n AND participant_identifier = ?",[e,t])}))}setMessageRead(e,t){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("UPDATE npwd_messages_conversations\n SET unreadCount = 0\n WHERE conversation_id = ?\n AND participant_identifier = ?",[e,t])}))}deleteConversation(e,t){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("DELETE\n FROM npwd_messages_conversations\n WHERE conversation_id = ?\n AND participant_identifier = ?",[e,t])}))}deleteMessage(e){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("DELETE\n FROM npwd_messages\n WHERE id = ?\n AND conversation_id = ?",[e.id,e.conversation_id])}))}doesConversationExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield s.default._rawExec("SELECT *\n FROM npwd_messages_conversations\n WHERE conversation_id = ?\n AND participant_identifier = ?",[e,t]);return n[0]||null}))}}t._MessagesDB=a;const u=new a;t.default=u},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getIdentifiersFromParticipants=t.createMessageGroupsFromPhoneNumber=t.createGroupHashID=t.getGroupIds=t.getFormattedMessageConversations=t.getConsolidatedMessageGroups=t.messagesLogger=void 0;const o=n(10),s=i(n(181)),a=i(n(17));function u(e){return r(this,void 0,void 0,(function*(){return(yield s.default.getMessageConversations(e)).reduce((t,n)=>{const r=n.conversation_id;return n.participant_identifier!=e&&(t[r]={unread:n.unreadCount,phoneNumber:n.phone_number||n.participant_identifier,display:n.display,conversation_id:n.conversation_id,user_identifier:e,updatedAt:Date.parse(n.updatedAt)}),t},{})}))}function c(e,t){return r(this,void 0,void 0,(function*(){const n=[];for(const r of Object.keys(t)){(t[r].user_identifier=e)&&n.push(r)}return n}))}function l(e){return e.sort(),e.join("+")}t.messagesLogger=o.mainLogger.child({module:"messages"}),t.getConsolidatedMessageGroups=u,t.getFormattedMessageConversations=function(e){return r(this,void 0,void 0,(function*(){const t=yield u(e);return(yield c(e,t)).map(e=>{const n=t[e];return Object.assign({},n)})}))},t.getGroupIds=c,t.createGroupHashID=l,t.createMessageGroupsFromPhoneNumber=function(e,n){return r(this,void 0,void 0,(function*(){const r=yield a.default.getIdentifierFromPhoneNumber(n,!0);r||t.messagesLogger.error("Didn't find a identifier for the phone number, this is probably some service number.");const i=l([e,n]),o=yield s.default.doesConversationExist(i,n);return o?yield s.default.createMessageGroup(o.user_identifier,i,e):(yield s.default.createMessageGroup(e,i,e),yield s.default.createMessageGroup(e,i,n)),{error:!1,doesExist:o,conversationId:i,identifiers:[e,n],phoneNumber:n,participant:r||n}}))},t.getIdentifiersFromParticipants=function(e){return e.split("+")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TwitterEvents=void 0,function(e){e.FETCH_TWEETS="npwd:fetchTweets",e.FETCH_TWEETS_FILTERED="npwd:fetchTweetsFiltered",e.CREATE_PROFILE="npwd:createTwitterProfile",e.GET_OR_CREATE_PROFILE="npwd:getOrCreateTwitterProfile",e.UPDATE_PROFILE="npwd:updateTwitterProfile",e.CREATE_TWEET="npwd:createTweet",e.CREATE_TWEET_BROADCAST="createTweetBroadcast",e.DELETE_TWEET="npwd:deleteTweet",e.TOGGLE_LIKE="npwd:toggleLike",e.RETWEET="npwd:retweet",e.REPORT="npwd:reportTweet"}(t.TwitterEvents||(t.TwitterEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateProfileName=void 0;const o=i(n(17)),s=n(33);t.generateProfileName=function(e,t="_"){return r(this,void 0,void 0,(function*(){const n=o.default.getPlayerFromIdentifier(e),r=(0,s.clean)(n.getFirstName()),i=(0,s.clean)(n.getLastName()),a=(0,s.clean)(n.getPhoneNumber());return r&&i?`${r}${t}${i}`:r||(i||(a||null))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MatchEvents=t.MatchResp=void 0,function(e){e.UPDATE_FAILED="MATCH.FEEDBACK.UPDATE_PROFILE_FAILED"}(t.MatchResp||(t.MatchResp={})),function(e){e.INITIALIZE="phone:initializeMatch",e.GET_PROFILES="phone:getMatchProfiles",e.CREATE_MY_PROFILE="phone:createMyProfile",e.GET_MY_PROFILE="phone:getMyProfile",e.UPDATE_MY_PROFILE="phone:updateMyProfile",e.GET_MATCHES="phone:getMatches",e.SAVE_LIKES="phone:saveLikes"}(t.MatchEvents||(t.MatchEvents={}))},function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(380));function i(e){return new r.default(e)}!function(e){e.HttpsProxyAgent=r.default,e.prototype=r.default.prototype}(i||(i={})),e.exports=i},function(e,t,n){e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){var n=t[s][1][e];return i(n||e)}),c,c.exports,e,t,n,r)}return n[s].exports}for(var o=!1,s=0;s=43)}})).catch((function(){return!1}))}(e).then((function(e){return f=e}))}function h(e){var t=_[e.name],n={};n.promise=new s((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function p(e){var t=_[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function R(e,t){var n=_[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function g(e,t){return new s((function(n,r){if(_[e.name]=_[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);h(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var s=i.open.apply(i,o);t&&(s.onupgradeneeded=function(t){var n=s.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),s.onerror=function(e){e.preventDefault(),r(s.error)},s.onsuccess=function(){n(s.result),p(e)}}))}function A(e){return g(e,!1)}function T(e){return g(e,!0)}function N(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function m(e){return o([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),T(e)})).then((function(){return function(e){h(e);for(var t=_[e.name],n=t.forages,r=0;r>4,l[u++]=(15&r)<<4|i>>2,l[u++]=(3&i)<<6|63&o;return c}function L(e){var t,n=new Uint8Array(e),r="";for(t=0;t>2],r+=y[(3&n[t])<<4|n[t+1]>>4],r+=y[(15&n[t+1])<<2|n[t+2]>>6],r+=y[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var B={serialize:function(e,t){var n="";if(e&&(n=D.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===D.call(e.buffer))){var r,i="__lfsc__:";e instanceof ArrayBuffer?(r=e,i+="arbf"):(r=e.buffer,"[object Int8Array]"===n?i+="si08":"[object Uint8Array]"===n?i+="ui08":"[object Uint8ClampedArray]"===n?i+="uic8":"[object Int16Array]"===n?i+="si16":"[object Uint16Array]"===n?i+="ur16":"[object Int32Array]"===n?i+="si32":"[object Uint32Array]"===n?i+="ui32":"[object Float32Array]"===n?i+="fl32":"[object Float64Array]"===n?i+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(i+L(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+L(this.result);t("__lfsc__:blob"+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,w))return JSON.parse(e);var t,n=e.substring(C),r=e.substring(w,C);if("blob"===r&&S.test(n)){var i=n.match(S);t=i[1],n=n.substring(i[0].length)}var s=M(n);switch(r){case"arbf":return s;case"blob":return o([s],{type:t});case"si08":return new Int8Array(s);case"ui08":return new Uint8Array(s);case"uic8":return new Uint8ClampedArray(s);case"si16":return new Int16Array(s);case"ur16":return new Uint16Array(s);case"si32":return new Int32Array(s);case"ui32":return new Uint32Array(s);case"fl32":return new Float32Array(s);case"fl64":return new Float64Array(s);default:throw new Error("Unkown type: "+r)}},stringToBuffer:M,bufferToString:L};function U(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function P(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,a){a.rows.length?o(e,s):U(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,s)}),o)}function F(e,t,n,r){var i=this;e=c(e);var o=new s((function(o,s){i.ready().then((function(){void 0===t&&(t=null);var a=t,u=i._dbInfo;u.serializer.serialize(t,(function(t,c){c?s(c):u.db.transaction((function(n){P(n,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(a)}),(function(e,t){s(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(F.apply(i,[e,a,n,r-1]));s(t)}}))}))})).catch(s)}));return a(o,n),o}function G(e){return new s((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],o=0;o0}var Q={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=k(e,this._defaultConfig),j()?(this._dbInfo=t,t.serializer=B,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,s=1,a=0;a=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return a(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return a(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return a(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):s.reject("Invalid arguments"),t),r}},H=function(e,t){for(var n,r,i=e.length,o=0;othis.limit&&this.shift(),this)},r.prototype.shift=function(){var e=this.oldest;if(e)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),e[t]=e[n]=void 0,this._keymap.delete(e.key),--this.size,[e.key,e.value]},r.prototype.find=function(e){let t=this._keymap.get(e);return t?t.value:void 0},r.prototype.has=function(e){return this._keymap.has(e)},r.prototype.delete=function(e){var r=this._keymap.get(e);if(r)return this._keymap.delete(r.key),r[t]&&r[n]?(r[n][t]=r[t],r[t][n]=r[n]):r[t]?(r[t][n]=void 0,this.oldest=r[t]):r[n]?(r[n][t]=void 0,this.newest=r[n]):this.oldest=this.newest=void 0,this.size--,r.value},r.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}},s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.key}):{done:!0,value:void 0}},a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.value}):{done:!0,value:void 0}},r.prototype.keys=function(){return new s(this.oldest)},r.prototype.values=function(){return new a(this.oldest)},r.prototype.entries=function(){return this},r.prototype[Symbol.iterator]=function(){return new o(this.oldest)},r.prototype.forEach=function(e,n){"object"!=typeof n&&(n=this);let r=this.oldest;for(;r;)e.call(n,r.value,r.key,this),r=r[t]},r.prototype.toJSON=function(){for(var e=new Array(this.size),n=0,r=this.oldest;r;)e[n++]={key:r.key,value:r.value},r=r[t];return e},r.prototype.toString=function(){for(var e="",n=this.oldest;n;)e+=String(n.key)+":"+n.value,(n=n[t])&&(e+=" < ");return e}}(a),void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(191),i=n(3),o=n(7),s=n(2);function a(){Object(r.a)({callback:u,type:"error"}),Object(r.a)({callback:u,type:"unhandledrejection"})}function u(){var e=Object(s.b)();e&&(i.b.log("[Tracing] Transaction: "+o.a.InternalError+" -> Global error occured"),e.setStatus(o.a.InternalError))}},function(e,t,n){"use strict"; +/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},s=e.split(o),u=i.decode||r,c=0;c2?t[2]:void 0;if(i){var o=r,s=String(i);r=s,p("history",{from:o,to:s})}return e.apply(this,t)}}f.onpopstate=function(){for(var t=[],n=0;n2)){var f=2===l?n.escapeId(t[c]):n.escape(t[c],r,i);u+=e.slice(s,o.index)+f,s=a.lastIndex,c++}}return 0===s?e:s0)for(var n=0,i=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r>>=0)&&e<256)&&(r=s[e])?r:(n=c(e,(0|e)<0?-1:0,!0),i&&(s[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(r=o[e])?r:(n=c(e,e<0?-1:0,!1),i&&(o[e]=n),n)}function u(e,t){if(isNaN(e))return t?g:R;if(t){if(e<0)return g;if(e>=E)return I}else{if(e<=-h)return O;if(e+1>=h)return m}return e<0?u(-e,t).neg():c(e%d|0,e/d|0,t)}function c(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=u,r.fromBits=c;var l=Math.pow;function f(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return R;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return f(e.substring(1),t,n).neg();for(var i=u(l(n,8)),o=R,s=0;s>>0:this.low},b.toNumber=function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},b.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=a).isZero())return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}},b.getHighBits=function(){return this.high},b.getHighBitsUnsigned=function(){return this.high>>>0},b.getLowBits=function(){return this.low},b.getLowBitsUnsigned=function(){return this.low>>>0},b.getNumBitsAbs=function(){if(this.isNegative())return this.eq(O)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},b.isOdd=function(){return 1==(1&this.low)},b.isEven=function(){return 0==(1&this.low)},b.equals=function(e){return i(e)||(e=_(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},b.eq=b.equals,b.notEquals=function(e){return!this.eq(e)},b.neq=b.notEquals,b.ne=b.notEquals,b.lessThan=function(e){return this.comp(e)<0},b.lt=b.lessThan,b.lessThanOrEqual=function(e){return this.comp(e)<=0},b.lte=b.lessThanOrEqual,b.le=b.lessThanOrEqual,b.greaterThan=function(e){return this.comp(e)>0},b.gt=b.greaterThan,b.greaterThanOrEqual=function(e){return this.comp(e)>=0},b.gte=b.greaterThanOrEqual,b.ge=b.greaterThanOrEqual,b.compare=function(e){if(i(e)||(e=_(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},b.comp=b.compare,b.negate=function(){return!this.unsigned&&this.eq(O)?O:this.not().add(A)},b.neg=b.negate,b.add=function(e){i(e)||(e=_(e));var t=this.high>>>16,n=65535&this.high,r=this.low>>>16,o=65535&this.low,s=e.high>>>16,a=65535&e.high,u=e.low>>>16,l=0,f=0,d=0,E=0;return d+=(E+=o+(65535&e.low))>>>16,f+=(d+=r+u)>>>16,l+=(f+=n+a)>>>16,l+=t+s,c((d&=65535)<<16|(E&=65535),(l&=65535)<<16|(f&=65535),this.unsigned)},b.subtract=function(e){return i(e)||(e=_(e)),this.add(e.neg())},b.sub=b.subtract,b.multiply=function(e){if(this.isZero())return R;if(i(e)||(e=_(e)),n)return c(n.mul(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned);if(e.isZero())return R;if(this.eq(O))return e.isOdd()?O:R;if(e.eq(O))return this.isOdd()?O:R;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(p)&&e.lt(p))return u(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,s=65535&this.low,a=e.high>>>16,l=65535&e.high,f=e.low>>>16,d=65535&e.low,E=0,h=0,g=0,A=0;return g+=(A+=s*d)>>>16,h+=(g+=o*d)>>>16,g&=65535,h+=(g+=s*f)>>>16,E+=(h+=r*d)>>>16,h&=65535,E+=(h+=o*f)>>>16,h&=65535,E+=(h+=s*l)>>>16,E+=t*d+r*f+o*l+s*a,c((g&=65535)<<16|(A&=65535),(E&=65535)<<16|(h&=65535),this.unsigned)},b.mul=b.multiply,b.divide=function(e){if(i(e)||(e=_(e)),e.isZero())throw Error("division by zero");var t,r,o;if(n)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?n.div_u:n.div_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?g:R;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return g;if(e.gt(this.shru(1)))return T;o=g}else{if(this.eq(O))return e.eq(A)||e.eq(N)?O:e.eq(O)?A:(t=this.shr(1).div(e).shl(1)).eq(R)?e.isNegative()?A:N:(r=this.sub(e.mul(t)),o=t.add(r.div(e)));if(e.eq(O))return this.unsigned?g:R;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=R}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(t)/Math.LN2),a=s<=48?1:l(2,s-48),f=u(t),d=f.mul(e);d.isNegative()||d.gt(r);)d=(f=u(t-=a,this.unsigned)).mul(e);f.isZero()&&(f=A),o=o.add(f),r=r.sub(d)}return o},b.div=b.divide,b.modulo=function(e){return i(e)||(e=_(e)),n?c((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},b.mod=b.modulo,b.rem=b.modulo,b.not=function(){return c(~this.low,~this.high,this.unsigned)},b.and=function(e){return i(e)||(e=_(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},b.or=function(e){return i(e)||(e=_(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},b.xor=function(e){return i(e)||(e=_(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},b.shiftLeft=function(e){return i(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<>>32-e,this.unsigned):c(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},b.shr=b.shiftRight,b.shiftRightUnsigned=function(e){if(i(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?c(this.low>>>e|t<<32-e,t>>>e,this.unsigned):c(32===e?t:t>>>e-32,0,this.unsigned)},b.shru=b.shiftRightUnsigned,b.shr_u=b.shiftRightUnsigned,b.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},b.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},b.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},b.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},b.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},function(e,t,n){"use strict";var r,i=n(31).Buffer,o=n(198),s=e.exports;s.encodings=null,s.defaultCharUnicode="�",s.defaultCharSingleByte="?",s.encode=function(e,t,n){e=""+(e||"");var r=s.getEncoder(t,n),o=r.write(e),a=r.end();return a&&a.length>0?i.concat([o,a]):o},s.decode=function(e,t,n){"string"==typeof e&&(s.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),s.skipDecodeWarning=!0),e=i.from(""+(e||""),"binary"));var r=s.getDecoder(t,n),o=r.write(e),a=r.end();return a?o+a:o},s.encodingExists=function(e){try{return s.getCodec(e),!0}catch(e){return!1}},s.toEncoding=s.encode,s.fromEncoding=s.decode,s._codecDataCache={},s.getCodec=function(e){s.encodings||(s.encodings=n(199));for(var t=s._canonicalizeEncoding(e),r={};;){var i=s._codecDataCache[t];if(i)return i;var o=s.encodings[t];switch(typeof o){case"string":t=o;break;case"object":for(var a in o)r[a]=o[a];r.encodingName||(r.encodingName=t),t=o.type;break;case"function":return r.encodingName||(r.encodingName=t),i=new o(r,s),s._codecDataCache[r.encodingName]=i,i;default:throw new Error("Encoding not recognized: '"+e+"' (searched as: '"+t+"')")}}},s._canonicalizeEncoding=function(e){return(""+e).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},s.getEncoder=function(e,t){var n=s.getCodec(e),r=new n.encoder(t,n);return n.bomAware&&t&&t.addBOM&&(r=new o.PrependBOM(r,t)),r},s.getDecoder=function(e,t){var n=s.getCodec(e),r=new n.decoder(t,n);return!n.bomAware||t&&!1===t.stripBOM||(r=new o.StripBOM(r,t)),r},s.enableStreamingAPI=function(e){if(!s.supportsStreams){var t=n(214)(e);s.IconvLiteEncoderStream=t.IconvLiteEncoderStream,s.IconvLiteDecoderStream=t.IconvLiteDecoderStream,s.encodeStream=function(e,t){return new s.IconvLiteEncoderStream(s.getEncoder(e,t),t)},s.decodeStream=function(e,t){return new s.IconvLiteDecoderStream(s.getDecoder(e,t),t)},s.supportsStreams=!0}};try{r=n(37)}catch(e){}r&&r.Transform?s.enableStreamingAPI(r):s.encodeStream=s.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},function(e,t,n){"use strict";function r(e,t){this.encoder=e,this.addBOM=!0}function i(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}t.PrependBOM=r,r.prototype.write=function(e){return this.addBOM&&(e="\ufeff"+e,this.addBOM=!1),this.encoder.write(e)},r.prototype.end=function(){return this.encoder.end()},t.StripBOM=i,i.prototype.write=function(e){var t=this.decoder.write(e);return this.pass||!t||("\ufeff"===t[0]&&(t=t.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),t},i.prototype.end=function(){return this.decoder.end()}},function(e,t,n){"use strict";for(var r=[n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208)],i=0;i>>6),t[n++]=128+(63&o)):(t[n++]=224+(o>>>12),t[n++]=128+(o>>>6&63),t[n++]=128+(63&o))}return t.slice(0,n)},c.prototype.end=function(){},l.prototype.write=function(e){for(var t=this.acc,n=this.contBytes,r=this.accBytes,i="",o=0;o0&&(i+=this.defaultCharUnicode,n=0),s<128?i+=String.fromCharCode(s):s<224?(t=31&s,n=1,r=1):s<240?(t=15&s,n=2,r=1):i+=this.defaultCharUnicode):n>0?(t=t<<6|63&s,r++,0===--n&&(i+=2===r&&t<128&&t>0||3===r&&t<2048?this.defaultCharUnicode:String.fromCharCode(t))):i+=this.defaultCharUnicode}return this.acc=t,this.contBytes=n,this.accBytes=r,i},l.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}},function(e,t,n){"use strict";var r=n(31).Buffer;function i(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}function o(e,t){this.isLE=t.isLE,this.highSurrogate=0}function s(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}function a(e,t,n,r){if((n<0||n>1114111)&&(n=r),n>=65536){var i=55296|(n-=65536)>>10;e[t++]=255&i,e[t++]=i>>8;n=56320|1023&n}return e[t++]=255&n,e[t++]=n>>8,t}function u(e,t){this.iconv=t}function c(e,t){void 0===(e=e||{}).addBOM&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}function l(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}function f(e,t){var n=[],r=0,i=0,o=0,s=0,a=0;e:for(var u=0;u16)&&o++,(0!==n[3]||n[2]>16)&&i++,0!==n[0]||0!==n[1]||0===n[2]&&0===n[3]||a++,0===n[0]&&0===n[1]||0!==n[2]||0!==n[3]||s++,n.length=0,++r>=100)break e}return a-o>s-i?"utf-32be":a-o0){for(;t=100)break e}return o>i?"utf-16be":o0&&(e=this.iconv.decode(r.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e},t.utf7imap=E,E.prototype.encoder=h,E.prototype.decoder=p,E.prototype.bomAware=!0,h.prototype.write=function(e){for(var t=this.inBase64,n=this.base64Accum,i=this.base64AccumIdx,o=r.alloc(5*e.length+10),s=0,a=0;a0&&(s+=o.write(n.slice(0,i).toString("base64").replace(/\//g,",").replace(/=+$/,""),s),i=0),o[s++]=_,t=!1),t||(o[s++]=u,u===d&&(o[s++]=_))):(t||(o[s++]=d,t=!0),t&&(n[i++]=u>>8,n[i++]=255&u,i==n.length&&(s+=o.write(n.toString("base64").replace(/\//g,","),s),i=0)))}return this.inBase64=t,this.base64AccumIdx=i,o.slice(0,s)},h.prototype.end=function(){var e=r.alloc(10),t=0;return this.inBase64&&(this.base64AccumIdx>0&&(t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t),this.base64AccumIdx=0),e[t++]=_,this.inBase64=!1),e.slice(0,t)};var R=c.slice();R[",".charCodeAt(0)]=!0,p.prototype.write=function(e){for(var t="",n=0,i=this.inBase64,o=this.base64Accum,s=0;s0&&(e=this.iconv.decode(r.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}},function(e,t,n){"use strict";var r=n(31).Buffer;function i(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||128!==e.chars.length&&256!==e.chars.length)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===e.chars.length){for(var n="",i=0;i<128;i++)n+=String.fromCharCode(i);e.chars=n+e.chars}this.decodeBuf=r.from(e.chars,"ucs2");var o=r.alloc(65536,t.defaultCharSingleByte.charCodeAt(0));for(i=0;i?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},macgreek:{type:"_sbcs",chars:"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macroman:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macromania:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macthai:{type:"_sbcs",chars:"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\ufeff​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"},macturkish:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:"\0ÚỤỪỬỮ\b\t\n\v\f\rỨỰỲỶỸÝỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:"\0ẲẴẪ\b\t\n\v\f\rỶỸỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"},iso646cn:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},iso646jp:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}},function(e,t,n){"use strict";var r=n(31).Buffer;t._dbcs=s;for(var i=new Array(256),o=0;o<256;o++)i[o]=-1;function s(e,t){if(this.encodingName=e.encodingName,!e)throw new Error("DBCS codec is called without the data.");if(!e.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var n=e.table();this.decodeTables=[],this.decodeTables[0]=i.slice(0),this.decodeTableSeq=[];for(var r=0;r-1e3)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[-1e3-u[c]],f=129;f<=254;f++){if(-1===l[f])l[f]=-1e3-s;else{if(l[f]===-1e3-s)continue;if(l[f]>-1e3)throw new Error("gb18030 decode tables conflict at byte 3")}for(var _=this.decodeTables[-1e3-l[f]],d=48;d<=57;d++)-1===_[d]&&(_[d]=-2)}}}this.defaultCharUnicode=t.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var E={};if(e.encodeSkipVals)for(r=0;rt)return-1;for(var n=0,r=e.length;n>1);e[i]<=t?n=i:r=i}return n}s.prototype.encoder=a,s.prototype.decoder=u,s.prototype._getDecodeTrieNode=function(e){for(var t=[];e>0;e>>>=8)t.push(255&e);0==t.length&&t.push(0);for(var n=this.decodeTables[0],r=t.length-1;r>0;r--){var o=n[t[r]];if(-1==o)n[t[r]]=-1e3-this.decodeTables.length,this.decodeTables.push(n=i.slice(0));else{if(!(o<=-1e3))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+e.toString(16));n=this.decodeTables[-1e3-o]}}return n},s.prototype._addDecodeChunk=function(e){var t=parseInt(e[0],16),n=this._getDecodeTrieNode(t);t&=255;for(var r=1;r255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+e[0]+": too long"+t)},s.prototype._getEncodeBucket=function(e){var t=e>>8;return void 0===this.encodeTable[t]&&(this.encodeTable[t]=i.slice(0)),this.encodeTable[t]},s.prototype._setEncodeChar=function(e,t){var n=this._getEncodeBucket(e),r=255&e;n[r]<=-10?this.encodeTableSeq[-10-n[r]][-1]=t:-1==n[r]&&(n[r]=t)},s.prototype._setEncodeSequence=function(e,t){var n,r=e[0],i=this._getEncodeBucket(r),o=255&r;i[o]<=-10?n=this.encodeTableSeq[-10-i[o]]:(n={},-1!==i[o]&&(n[-1]=i[o]),i[o]=-10-this.encodeTableSeq.length,this.encodeTableSeq.push(n));for(var s=1;s=0)this._setEncodeChar(a,u),i=!0;else if(a<=-1e3){var c=-1e3-a;if(!o[c]){var l=u<<8>>>0;this._fillEncodeTable(c,l,n)?i=!0:o[c]=!0}}else a<=-10&&(this._setEncodeSequence(this.decodeTableSeq[-10-a],u),i=!0)}return i},a.prototype.write=function(e){for(var t=r.alloc(e.length*(this.gb18030?4:3)),n=this.leadSurrogate,i=this.seqObj,o=-1,s=0,a=0;;){if(-1===o){if(s==e.length)break;var u=e.charCodeAt(s++)}else{u=o;o=-1}if(55296<=u&&u<57344)if(u<56320){if(-1===n){n=u;continue}n=u,u=-1}else-1!==n?(u=65536+1024*(n-55296)+(u-56320),n=-1):u=-1;else-1!==n&&(o=u,u=-1,n=-1);var l=-1;if(void 0!==i&&-1!=u){var f=i[u];if("object"==typeof f){i=f;continue}"number"==typeof f?l=f:null==f&&void 0!==(f=i[-1])&&(l=f,o=u),i=void 0}else if(u>=0){var _=this.encodeTable[u>>8];if(void 0!==_&&(l=_[255&u]),l<=-10){i=this.encodeTableSeq[-10-l];continue}if(-1==l&&this.gb18030){var d=c(this.gb18030.uChars,u);if(-1!=d){l=this.gb18030.gbChars[d]+(u-this.gb18030.uChars[d]);t[a++]=129+Math.floor(l/12600),l%=12600,t[a++]=48+Math.floor(l/1260),l%=1260,t[a++]=129+Math.floor(l/10),l%=10,t[a++]=48+l;continue}}}-1===l&&(l=this.defaultCharSingleByte),l<256?t[a++]=l:l<65536?(t[a++]=l>>8,t[a++]=255&l):l<16777216?(t[a++]=l>>16,t[a++]=l>>8&255,t[a++]=255&l):(t[a++]=l>>>24,t[a++]=l>>>16&255,t[a++]=l>>>8&255,t[a++]=255&l)}return this.seqObj=i,this.leadSurrogate=n,t.slice(0,a)},a.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var e=r.alloc(10),t=0;if(this.seqObj){var n=this.seqObj[-1];void 0!==n&&(n<256?e[t++]=n:(e[t++]=n>>8,e[t++]=255&n)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(e[t++]=this.defaultCharSingleByte,this.leadSurrogate=-1),e.slice(0,t)}},a.prototype.findIdx=c,u.prototype.write=function(e){for(var t=r.alloc(2*e.length),n=this.nodeIdx,i=this.prevBytes,o=this.prevBytes.length,s=-this.prevBytes.length,a=0,u=0;a=0?e[a]:i[a+o];if((l=this.decodeTables[n][f])>=0);else if(-1===l)l=this.defaultCharUnicode.charCodeAt(0),a=s;else if(-2===l){if(a>=3)var _=12600*(e[a-3]-129)+1260*(e[a-2]-48)+10*(e[a-1]-129)+(f-48);else _=12600*(i[a-3+o]-129)+1260*((a-2>=0?e[a-2]:i[a-2+o])-48)+10*((a-1>=0?e[a-1]:i[a-1+o])-129)+(f-48);var d=c(this.gb18030.gbChars,_);l=this.gb18030.uChars[d]+_-this.gb18030.gbChars[d]}else{if(l<=-1e3){n=-1e3-l;continue}if(!(l<=-10))throw new Error("iconv-lite internal error: invalid decoding table value "+l+" at "+n+"/"+f);for(var E=this.decodeTableSeq[-10-l],h=0;h>8;l=E[E.length-1]}if(l>=65536){var p=55296|(l-=65536)>>10;t[u++]=255&p,t[u++]=p>>8,l=56320|1023&l}t[u++]=255&l,t[u++]=l>>8,n=0,s=a+1}return this.nodeIdx=n,this.prevBytes=s>=0?Array.prototype.slice.call(e,s):i.slice(s+o).concat(Array.prototype.slice.call(e)),t.slice(0,u).toString("ucs2")},u.prototype.end=function(){for(var e="";this.prevBytes.length>0;){e+=this.defaultCharUnicode;var t=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,t.length>0&&(e+=this.write(t))}return this.prevBytes=[],this.nodeIdx=0,e}},function(e,t,n){"use strict";e.exports={shiftjis:{type:"_dbcs",table:function(){return n(209)},encodeAdd:{"¥":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return n(210)},encodeAdd:{"¥":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return n(79)}},gbk:{type:"_dbcs",table:function(){return n(79).concat(n(106))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return n(79).concat(n(106))},gb18030:function(){return n(211)},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return n(212)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return n(107)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return n(107).concat(n(213))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},function(e){e.exports=JSON.parse('[["0","\\u0000",128],["a1","。",62],["8140"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×"],["8180","÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"],["81b8","∈∋⊆⊇⊂⊃∪∩"],["81c8","∧∨¬⇒⇔∀∃"],["81da","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["81f0","ʼn♯♭♪†‡¶"],["81fc","◯"],["824f","0",9],["8260","A",25],["8281","a",25],["829f","ぁ",82],["8340","ァ",62],["8380","ム",22],["839f","Α",16,"Σ",6],["83bf","α",16,"σ",6],["8440","А",5,"ЁЖ",25],["8470","а",5,"ёж",7],["8480","о",17],["849f","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["8740","①",19,"Ⅰ",9],["875f","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["877e","㍻"],["8780","〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["889f","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["8940","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"],["8980","園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["8a40","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"],["8a80","橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["8b40","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"],["8b80","朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["8c40","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"],["8c80","劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["8d40","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"],["8d80","項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["8e40","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"],["8e80","死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["8f40","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"],["8f80","準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["9040","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"],["9080","逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["9140","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"],["9180","操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["9240","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"],["9280","逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["9340","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"],["9380","凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["9440","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"],["9480","楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["9540","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"],["9580","斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["9640","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"],["9680","摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["9740","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"],["9780","沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["9840","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["989f","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["9940","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"],["9980","凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["9a40","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"],["9a80","噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["9b40","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"],["9b80","它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["9c40","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"],["9c80","怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["9d40","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"],["9d80","捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["9e40","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"],["9e80","梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["9f40","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"],["9f80","麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["e040","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"],["e080","烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e140","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"],["e180","痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e240","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"],["e280","窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e340","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"],["e380","縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e440","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"],["e480","艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e540","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"],["e580","蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["e640","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"],["e680","諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["e740","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"],["e780","轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["e840","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"],["e880","閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["e940","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"],["e980","騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["ea40","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"],["ea80","黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"],["ed40","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"],["ed80","塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["ee40","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"],["ee80","蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["eeef","ⅰ",9,"¬¦'""],["f040","",62],["f080","",124],["f140","",62],["f180","",124],["f240","",62],["f280","",124],["f340","",62],["f380","",124],["f440","",62],["f480","",124],["f540","",62],["f580","",124],["f640","",62],["f680","",124],["f740","",62],["f780","",124],["f840","",62],["f880","",124],["f940",""],["fa40","ⅰ",9,"Ⅰ",9,"¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"],["fa80","兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"],["fb40","涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"],["fb80","祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"],["fc40","髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"]]')},function(e){e.exports=JSON.parse('[["0","\\u0000",127],["8ea1","。",62],["a1a1"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"],["a2a1","◆□■△▲▽▼※〒→←↑↓〓"],["a2ba","∈∋⊆⊇⊂⊃∪∩"],["a2ca","∧∨¬⇒⇔∀∃"],["a2dc","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["a2f2","ʼn♯♭♪†‡¶"],["a2fe","◯"],["a3b0","0",9],["a3c1","A",25],["a3e1","a",25],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a8a1","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["ada1","①",19,"Ⅰ",9],["adc0","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["addf","㍻〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["b0a1","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["b1a1","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"],["b2a1","押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["b3a1","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"],["b4a1","粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["b5a1","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"],["b6a1","供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["b7a1","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"],["b8a1","検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["b9a1","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"],["baa1","此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["bba1","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"],["bca1","次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["bda1","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"],["bea1","勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["bfa1","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"],["c0a1","澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["c1a1","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"],["c2a1","臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["c3a1","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"],["c4a1","帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["c5a1","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"],["c6a1","董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["c7a1","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"],["c8a1","函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["c9a1","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"],["caa1","福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["cba1","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"],["cca1","漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["cda1","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"],["cea1","痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["cfa1","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["d0a1","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["d1a1","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"],["d2a1","辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["d3a1","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"],["d4a1","圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["d5a1","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"],["d6a1","屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["d7a1","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"],["d8a1","悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["d9a1","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"],["daa1","據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["dba1","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"],["dca1","棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["dda1","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"],["dea1","沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["dfa1","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"],["e0a1","燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e1a1","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"],["e2a1","癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e3a1","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"],["e4a1","筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e5a1","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"],["e6a1","罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e7a1","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"],["e8a1","茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e9a1","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"],["eaa1","蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["eba1","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"],["eca1","譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["eda1","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"],["eea1","遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["efa1","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"],["f0a1","陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["f1a1","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"],["f2a1","髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["f3a1","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"],["f4a1","堯槇遙瑤凜熙"],["f9a1","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"],["faa1","忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["fba1","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"],["fca1","釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["fcf1","ⅰ",9,"¬¦'""],["8fa2af","˘ˇ¸˙˝¯˛˚~΄΅"],["8fa2c2","¡¦¿"],["8fa2eb","ºª©®™¤№"],["8fa6e1","ΆΈΉΊΪ"],["8fa6e7","Ό"],["8fa6e9","ΎΫ"],["8fa6ec","Ώ"],["8fa6f1","άέήίϊΐόςύϋΰώ"],["8fa7c2","Ђ",10,"ЎЏ"],["8fa7f2","ђ",10,"ўџ"],["8fa9a1","ÆĐ"],["8fa9a4","Ħ"],["8fa9a6","IJ"],["8fa9a8","ŁĿ"],["8fa9ab","ŊØŒ"],["8fa9af","ŦÞ"],["8fa9c1","æđðħıijĸłŀʼnŋøœßŧþ"],["8faaa1","ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"],["8faaba","ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"],["8faba1","áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"],["8fabbd","ġĥíìïîǐ"],["8fabc5","īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"],["8fb0a1","丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"],["8fb1a1","侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"],["8fb2a1","傒傓傔傖傛傜傞",4,"傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"],["8fb3a1","凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"],["8fb4a1","匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"],["8fb5a1","咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"],["8fb6a1","嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍",5,"嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤",4,"囱囫园"],["8fb7a1","囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭",4,"坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"],["8fb8a1","堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"],["8fb9a1","奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"],["8fbaa1","嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖",4,"寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"],["8fbba1","屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"],["8fbca1","巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪",4,"幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"],["8fbda1","彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐",4,"忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"],["8fbea1","悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐",4,"愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"],["8fbfa1","懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"],["8fc0a1","捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"],["8fc1a1","擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"],["8fc2a1","昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"],["8fc3a1","杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮",4,"桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"],["8fc4a1","棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"],["8fc5a1","樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"],["8fc6a1","歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"],["8fc7a1","泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"],["8fc8a1","湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"],["8fc9a1","濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔",4,"炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃",4,"焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"],["8fcaa1","煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"],["8fcba1","狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"],["8fcca1","珿琀琁琄琇琊琑琚琛琤琦琨",9,"琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"],["8fcda1","甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹",5,"疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"],["8fcea1","瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢",6,"皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"],["8fcfa1","睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"],["8fd0a1","碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"],["8fd1a1","秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"],["8fd2a1","笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙",5],["8fd3a1","籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"],["8fd4a1","綞綦綧綪綳綶綷綹緂",4,"緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"],["8fd5a1","罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"],["8fd6a1","胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"],["8fd7a1","艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"],["8fd8a1","荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"],["8fd9a1","蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏",4,"蕖蕙蕜",6,"蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"],["8fdaa1","藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠",4,"虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"],["8fdba1","蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃",6,"螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"],["8fdca1","蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊",4,"裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"],["8fdda1","襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔",4,"觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"],["8fdea1","誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂",4,"譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"],["8fdfa1","貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"],["8fe0a1","踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"],["8fe1a1","轃轇轏轑",4,"轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"],["8fe2a1","郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"],["8fe3a1","釂釃釅釓釔釗釙釚釞釤釥釩釪釬",5,"釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵",4,"鉻鉼鉽鉿銈銉銊銍銎銒銗"],["8fe4a1","銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿",4,"鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"],["8fe5a1","鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉",4,"鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"],["8fe6a1","镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"],["8fe7a1","霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"],["8fe8a1","頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱",4,"餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"],["8fe9a1","馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿",4],["8feaa1","鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪",4,"魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"],["8feba1","鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦",4,"鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"],["8feca1","鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"],["8feda1","黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃",4,"齓齕齖齗齘齚齝齞齨齩齭",4,"齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"]]')},function(e){e.exports=JSON.parse('{"uChars":[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],"gbChars":[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189000]}')},function(e){e.exports=JSON.parse('[["0","\\u0000",127],["8141","갂갃갅갆갋",4,"갘갞갟갡갢갣갥",6,"갮갲갳갴"],["8161","갵갶갷갺갻갽갾갿걁",9,"걌걎",5,"걕"],["8181","걖걗걙걚걛걝",18,"걲걳걵걶걹걻",4,"겂겇겈겍겎겏겑겒겓겕",6,"겞겢",5,"겫겭겮겱",6,"겺겾겿곀곂곃곅곆곇곉곊곋곍",7,"곖곘",7,"곢곣곥곦곩곫곭곮곲곴곷",4,"곾곿괁괂괃괅괇",4,"괎괐괒괓"],["8241","괔괕괖괗괙괚괛괝괞괟괡",7,"괪괫괮",5],["8261","괶괷괹괺괻괽",6,"굆굈굊",5,"굑굒굓굕굖굗"],["8281","굙",7,"굢굤",7,"굮굯굱굲굷굸굹굺굾궀궃",4,"궊궋궍궎궏궑",10,"궞",5,"궥",17,"궸",7,"귂귃귅귆귇귉",6,"귒귔",7,"귝귞귟귡귢귣귥",18],["8341","귺귻귽귾긂",5,"긊긌긎",5,"긕",7],["8361","긝",18,"긲긳긵긶긹긻긼"],["8381","긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗",4,"깞깢깣깤깦깧깪깫깭깮깯깱",6,"깺깾",5,"꺆",5,"꺍",46,"꺿껁껂껃껅",6,"껎껒",5,"껚껛껝",8],["8441","껦껧껩껪껬껮",5,"껵껶껷껹껺껻껽",8],["8461","꼆꼉꼊꼋꼌꼎꼏꼑",18],["8481","꼤",7,"꼮꼯꼱꼳꼵",6,"꼾꽀꽄꽅꽆꽇꽊",5,"꽑",10,"꽞",5,"꽦",18,"꽺",5,"꾁꾂꾃꾅꾆꾇꾉",6,"꾒꾓꾔꾖",5,"꾝",26,"꾺꾻꾽꾾"],["8541","꾿꿁",5,"꿊꿌꿏",4,"꿕",6,"꿝",4],["8561","꿢",5,"꿪",5,"꿲꿳꿵꿶꿷꿹",6,"뀂뀃"],["8581","뀅",6,"뀍뀎뀏뀑뀒뀓뀕",6,"뀞",9,"뀩",26,"끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞",29,"끾끿낁낂낃낅",6,"낎낐낒",5,"낛낝낞낣낤"],["8641","낥낦낧낪낰낲낶낷낹낺낻낽",6,"냆냊",5,"냒"],["8661","냓냕냖냗냙",6,"냡냢냣냤냦",10],["8681","냱",22,"넊넍넎넏넑넔넕넖넗넚넞",4,"넦넧넩넪넫넭",6,"넶넺",5,"녂녃녅녆녇녉",6,"녒녓녖녗녙녚녛녝녞녟녡",22,"녺녻녽녾녿놁놃",4,"놊놌놎놏놐놑놕놖놗놙놚놛놝"],["8741","놞",9,"놩",15],["8761","놹",18,"뇍뇎뇏뇑뇒뇓뇕"],["8781","뇖",5,"뇞뇠",7,"뇪뇫뇭뇮뇯뇱",7,"뇺뇼뇾",5,"눆눇눉눊눍",6,"눖눘눚",5,"눡",18,"눵",6,"눽",26,"뉙뉚뉛뉝뉞뉟뉡",6,"뉪",4],["8841","뉯",4,"뉶",5,"뉽",6,"늆늇늈늊",4],["8861","늏늒늓늕늖늗늛",4,"늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"],["8881","늸",15,"닊닋닍닎닏닑닓",4,"닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉",6,"댒댖",5,"댝",54,"덗덙덚덝덠덡덢덣"],["8941","덦덨덪덬덭덯덲덳덵덶덷덹",6,"뎂뎆",5,"뎍"],["8961","뎎뎏뎑뎒뎓뎕",10,"뎢",5,"뎩뎪뎫뎭"],["8981","뎮",21,"돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩",18,"돽",18,"됑",6,"됙됚됛됝됞됟됡",6,"됪됬",7,"됵",15],["8a41","둅",10,"둒둓둕둖둗둙",6,"둢둤둦"],["8a61","둧",4,"둭",18,"뒁뒂"],["8a81","뒃",4,"뒉",19,"뒞",5,"뒥뒦뒧뒩뒪뒫뒭",7,"뒶뒸뒺",5,"듁듂듃듅듆듇듉",6,"듑듒듓듔듖",5,"듞듟듡듢듥듧",4,"듮듰듲",5,"듹",26,"딖딗딙딚딝"],["8b41","딞",5,"딦딫",4,"딲딳딵딶딷딹",6,"땂땆"],["8b61","땇땈땉땊땎땏땑땒땓땕",6,"땞땢",8],["8b81","땫",52,"떢떣떥떦떧떩떬떭떮떯떲떶",4,"떾떿뗁뗂뗃뗅",6,"뗎뗒",5,"뗙",18,"뗭",18],["8c41","똀",15,"똒똓똕똖똗똙",4],["8c61","똞",6,"똦",5,"똭",6,"똵",5],["8c81","똻",12,"뙉",26,"뙥뙦뙧뙩",50,"뚞뚟뚡뚢뚣뚥",5,"뚭뚮뚯뚰뚲",16],["8d41","뛃",16,"뛕",8],["8d61","뛞",17,"뛱뛲뛳뛵뛶뛷뛹뛺"],["8d81","뛻",4,"뜂뜃뜄뜆",33,"뜪뜫뜭뜮뜱",6,"뜺뜼",7,"띅띆띇띉띊띋띍",6,"띖",9,"띡띢띣띥띦띧띩",6,"띲띴띶",5,"띾띿랁랂랃랅",6,"랎랓랔랕랚랛랝랞"],["8e41","랟랡",6,"랪랮",5,"랶랷랹",8],["8e61","럂",4,"럈럊",19],["8e81","럞",13,"럮럯럱럲럳럵",6,"럾렂",4,"렊렋렍렎렏렑",6,"렚렜렞",5,"렦렧렩렪렫렭",6,"렶렺",5,"롁롂롃롅",11,"롒롔",7,"롞롟롡롢롣롥",6,"롮롰롲",5,"롹롺롻롽",7],["8f41","뢅",7,"뢎",17],["8f61","뢠",7,"뢩",6,"뢱뢲뢳뢵뢶뢷뢹",4],["8f81","뢾뢿룂룄룆",5,"룍룎룏룑룒룓룕",7,"룞룠룢",5,"룪룫룭룮룯룱",6,"룺룼룾",5,"뤅",18,"뤙",6,"뤡",26,"뤾뤿륁륂륃륅",6,"륍륎륐륒",5],["9041","륚륛륝륞륟륡",6,"륪륬륮",5,"륶륷륹륺륻륽"],["9061","륾",5,"릆릈릋릌릏",15],["9081","릟",12,"릮릯릱릲릳릵",6,"릾맀맂",5,"맊맋맍맓",4,"맚맜맟맠맢맦맧맩맪맫맭",6,"맶맻",4,"먂",5,"먉",11,"먖",33,"먺먻먽먾먿멁멃멄멅멆"],["9141","멇멊멌멏멐멑멒멖멗멙멚멛멝",6,"멦멪",5],["9161","멲멳멵멶멷멹",9,"몆몈몉몊몋몍",5],["9181","몓",20,"몪몭몮몯몱몳",4,"몺몼몾",5,"뫅뫆뫇뫉",14,"뫚",33,"뫽뫾뫿묁묂묃묅",7,"묎묐묒",5,"묙묚묛묝묞묟묡",6],["9241","묨묪묬",7,"묷묹묺묿",4,"뭆뭈뭊뭋뭌뭎뭑뭒"],["9261","뭓뭕뭖뭗뭙",7,"뭢뭤",7,"뭭",4],["9281","뭲",21,"뮉뮊뮋뮍뮎뮏뮑",18,"뮥뮦뮧뮩뮪뮫뮭",6,"뮵뮶뮸",7,"믁믂믃믅믆믇믉",6,"믑믒믔",35,"믺믻믽믾밁"],["9341","밃",4,"밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"],["9361","밶밷밹",6,"뱂뱆뱇뱈뱊뱋뱎뱏뱑",8],["9381","뱚뱛뱜뱞",37,"벆벇벉벊벍벏",4,"벖벘벛",4,"벢벣벥벦벩",6,"벲벶",5,"벾벿볁볂볃볅",7,"볎볒볓볔볖볗볙볚볛볝",22,"볷볹볺볻볽"],["9441","볾",5,"봆봈봊",5,"봑봒봓봕",8],["9461","봞",5,"봥",6,"봭",12],["9481","봺",5,"뵁",6,"뵊뵋뵍뵎뵏뵑",6,"뵚",9,"뵥뵦뵧뵩",22,"붂붃붅붆붋",4,"붒붔붖붗붘붛붝",6,"붥",10,"붱",6,"붹",24],["9541","뷒뷓뷖뷗뷙뷚뷛뷝",11,"뷪",5,"뷱"],["9561","뷲뷳뷵뷶뷷뷹",6,"븁븂븄븆",5,"븎븏븑븒븓"],["9581","븕",6,"븞븠",35,"빆빇빉빊빋빍빏",4,"빖빘빜빝빞빟빢빣빥빦빧빩빫",4,"빲빶",4,"빾빿뺁뺂뺃뺅",6,"뺎뺒",5,"뺚",13,"뺩",14],["9641","뺸",23,"뻒뻓"],["9661","뻕뻖뻙",6,"뻡뻢뻦",5,"뻭",8],["9681","뻶",10,"뼂",5,"뼊",13,"뼚뼞",33,"뽂뽃뽅뽆뽇뽉",6,"뽒뽓뽔뽖",44],["9741","뾃",16,"뾕",8],["9761","뾞",17,"뾱",7],["9781","뾹",11,"뿆",5,"뿎뿏뿑뿒뿓뿕",6,"뿝뿞뿠뿢",89,"쀽쀾쀿"],["9841","쁀",16,"쁒",5,"쁙쁚쁛"],["9861","쁝쁞쁟쁡",6,"쁪",15],["9881","쁺",21,"삒삓삕삖삗삙",6,"삢삤삦",5,"삮삱삲삷",4,"삾샂샃샄샆샇샊샋샍샎샏샑",6,"샚샞",5,"샦샧샩샪샫샭",6,"샶샸샺",5,"섁섂섃섅섆섇섉",6,"섑섒섓섔섖",5,"섡섢섥섨섩섪섫섮"],["9941","섲섳섴섵섷섺섻섽섾섿셁",6,"셊셎",5,"셖셗"],["9961","셙셚셛셝",6,"셦셪",5,"셱셲셳셵셶셷셹셺셻"],["9981","셼",8,"솆",5,"솏솑솒솓솕솗",4,"솞솠솢솣솤솦솧솪솫솭솮솯솱",11,"솾",5,"쇅쇆쇇쇉쇊쇋쇍",6,"쇕쇖쇙",6,"쇡쇢쇣쇥쇦쇧쇩",6,"쇲쇴",7,"쇾쇿숁숂숃숅",6,"숎숐숒",5,"숚숛숝숞숡숢숣"],["9a41","숤숥숦숧숪숬숮숰숳숵",16],["9a61","쉆쉇쉉",6,"쉒쉓쉕쉖쉗쉙",6,"쉡쉢쉣쉤쉦"],["9a81","쉧",4,"쉮쉯쉱쉲쉳쉵",6,"쉾슀슂",5,"슊",5,"슑",6,"슙슚슜슞",5,"슦슧슩슪슫슮",5,"슶슸슺",33,"싞싟싡싢싥",5,"싮싰싲싳싴싵싷싺싽싾싿쌁",6,"쌊쌋쌎쌏"],["9b41","쌐쌑쌒쌖쌗쌙쌚쌛쌝",6,"쌦쌧쌪",8],["9b61","쌳",17,"썆",7],["9b81","썎",25,"썪썫썭썮썯썱썳",4,"썺썻썾",5,"쎅쎆쎇쎉쎊쎋쎍",50,"쏁",22,"쏚"],["9c41","쏛쏝쏞쏡쏣",4,"쏪쏫쏬쏮",5,"쏶쏷쏹",5],["9c61","쏿",8,"쐉",6,"쐑",9],["9c81","쐛",8,"쐥",6,"쐭쐮쐯쐱쐲쐳쐵",6,"쐾",9,"쑉",26,"쑦쑧쑩쑪쑫쑭",6,"쑶쑷쑸쑺",5,"쒁",18,"쒕",6,"쒝",12],["9d41","쒪",13,"쒹쒺쒻쒽",8],["9d61","쓆",25],["9d81","쓠",8,"쓪",5,"쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂",9,"씍씎씏씑씒씓씕",6,"씝",10,"씪씫씭씮씯씱",6,"씺씼씾",5,"앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩",6,"앲앶",5,"앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"],["9e41","얖얙얚얛얝얞얟얡",7,"얪",9,"얶"],["9e61","얷얺얿",4,"엋엍엏엒엓엕엖엗엙",6,"엢엤엦엧"],["9e81","엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑",6,"옚옝",6,"옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉",6,"왒왖",5,"왞왟왡",10,"왭왮왰왲",5,"왺왻왽왾왿욁",6,"욊욌욎",5,"욖욗욙욚욛욝",6,"욦"],["9f41","욨욪",5,"욲욳욵욶욷욻",4,"웂웄웆",5,"웎"],["9f61","웏웑웒웓웕",6,"웞웟웢",5,"웪웫웭웮웯웱웲"],["9f81","웳",4,"웺웻웼웾",5,"윆윇윉윊윋윍",6,"윖윘윚",5,"윢윣윥윦윧윩",6,"윲윴윶윸윹윺윻윾윿읁읂읃읅",4,"읋읎읐읙읚읛읝읞읟읡",6,"읩읪읬",7,"읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛",4,"잢잧",4,"잮잯잱잲잳잵잶잷"],["a041","잸잹잺잻잾쟂",5,"쟊쟋쟍쟏쟑",6,"쟙쟚쟛쟜"],["a061","쟞",5,"쟥쟦쟧쟩쟪쟫쟭",13],["a081","쟻",4,"젂젃젅젆젇젉젋",4,"젒젔젗",4,"젞젟젡젢젣젥",6,"젮젰젲",5,"젹젺젻젽젾젿졁",6,"졊졋졎",5,"졕",26,"졲졳졵졶졷졹졻",4,"좂좄좈좉좊좎",5,"좕",7,"좞좠좢좣좤"],["a141","좥좦좧좩",18,"좾좿죀죁"],["a161","죂죃죅죆죇죉죊죋죍",6,"죖죘죚",5,"죢죣죥"],["a181","죦",14,"죶",5,"죾죿줁줂줃줇",4,"줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈",9,"±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"],["a241","줐줒",5,"줙",18],["a261","줭",6,"줵",18],["a281","쥈",7,"쥒쥓쥕쥖쥗쥙",6,"쥢쥤",7,"쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"],["a341","쥱쥲쥳쥵",6,"쥽",10,"즊즋즍즎즏"],["a361","즑",6,"즚즜즞",16],["a381","즯",16,"짂짃짅짆짉짋",4,"짒짔짗짘짛!",58,"₩]",32," ̄"],["a441","짞짟짡짣짥짦짨짩짪짫짮짲",5,"짺짻짽짾짿쨁쨂쨃쨄"],["a461","쨅쨆쨇쨊쨎",5,"쨕쨖쨗쨙",12],["a481","쨦쨧쨨쨪",28,"ㄱ",93],["a541","쩇",4,"쩎쩏쩑쩒쩓쩕",6,"쩞쩢",5,"쩩쩪"],["a561","쩫",17,"쩾",5,"쪅쪆"],["a581","쪇",16,"쪙",14,"ⅰ",9],["a5b0","Ⅰ",9],["a5c1","Α",16,"Σ",6],["a5e1","α",16,"σ",6],["a641","쪨",19,"쪾쪿쫁쫂쫃쫅"],["a661","쫆",5,"쫎쫐쫒쫔쫕쫖쫗쫚",5,"쫡",6],["a681","쫨쫩쫪쫫쫭",6,"쫵",18,"쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃",7],["a741","쬋",4,"쬑쬒쬓쬕쬖쬗쬙",6,"쬢",7],["a761","쬪",22,"쭂쭃쭄"],["a781","쭅쭆쭇쭊쭋쭍쭎쭏쭑",6,"쭚쭛쭜쭞",5,"쭥",7,"㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙",9,"㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰",9,"㎀",4,"㎺",5,"㎐",4,"Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"],["a841","쭭",10,"쭺",14],["a861","쮉",18,"쮝",6],["a881","쮤",19,"쮹",11,"ÆÐªĦ"],["a8a6","IJ"],["a8a8","ĿŁØŒºÞŦŊ"],["a8b1","㉠",27,"ⓐ",25,"①",14,"½⅓⅔¼¾⅛⅜⅝⅞"],["a941","쯅",14,"쯕",10],["a961","쯠쯡쯢쯣쯥쯦쯨쯪",18],["a981","쯽",14,"찎찏찑찒찓찕",6,"찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀",27,"⒜",25,"⑴",14,"¹²³⁴ⁿ₁₂₃₄"],["aa41","찥찦찪찫찭찯찱",6,"찺찿",4,"챆챇챉챊챋챍챎"],["aa61","챏",4,"챖챚",5,"챡챢챣챥챧챩",6,"챱챲"],["aa81","챳챴챶",29,"ぁ",82],["ab41","첔첕첖첗첚첛첝첞첟첡",6,"첪첮",5,"첶첷첹"],["ab61","첺첻첽",6,"쳆쳈쳊",5,"쳑쳒쳓쳕",5],["ab81","쳛",8,"쳥",6,"쳭쳮쳯쳱",12,"ァ",85],["ac41","쳾쳿촀촂",5,"촊촋촍촎촏촑",6,"촚촜촞촟촠"],["ac61","촡촢촣촥촦촧촩촪촫촭",11,"촺",4],["ac81","촿",28,"쵝쵞쵟А",5,"ЁЖ",25],["acd1","а",5,"ёж",25],["ad41","쵡쵢쵣쵥",6,"쵮쵰쵲",5,"쵹",7],["ad61","춁",6,"춉",10,"춖춗춙춚춛춝춞춟"],["ad81","춠춡춢춣춦춨춪",5,"춱",18,"췅"],["ae41","췆",5,"췍췎췏췑",16],["ae61","췢",5,"췩췪췫췭췮췯췱",6,"췺췼췾",4],["ae81","츃츅츆츇츉츊츋츍",6,"츕츖츗츘츚",5,"츢츣츥츦츧츩츪츫"],["af41","츬츭츮츯츲츴츶",19],["af61","칊",13,"칚칛칝칞칢",5,"칪칬"],["af81","칮",5,"칶칷칹칺칻칽",6,"캆캈캊",5,"캒캓캕캖캗캙"],["b041","캚",5,"캢캦",5,"캮",12],["b061","캻",5,"컂",19],["b081","컖",13,"컦컧컩컪컭",6,"컶컺",5,"가각간갇갈갉갊감",7,"같",4,"갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"],["b141","켂켃켅켆켇켉",6,"켒켔켖",5,"켝켞켟켡켢켣"],["b161","켥",6,"켮켲",5,"켹",11],["b181","콅",14,"콖콗콙콚콛콝",6,"콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"],["b241","콭콮콯콲콳콵콶콷콹",6,"쾁쾂쾃쾄쾆",5,"쾍"],["b261","쾎",18,"쾢",5,"쾩"],["b281","쾪",5,"쾱",18,"쿅",6,"깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"],["b341","쿌",19,"쿢쿣쿥쿦쿧쿩"],["b361","쿪",5,"쿲쿴쿶",5,"쿽쿾쿿퀁퀂퀃퀅",5],["b381","퀋",5,"퀒",5,"퀙",19,"끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫",4,"낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"],["b441","퀮",5,"퀶퀷퀹퀺퀻퀽",6,"큆큈큊",5],["b461","큑큒큓큕큖큗큙",6,"큡",10,"큮큯"],["b481","큱큲큳큵",6,"큾큿킀킂",18,"뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫",4,"닳담답닷",4,"닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"],["b541","킕",14,"킦킧킩킪킫킭",5],["b561","킳킶킸킺",5,"탂탃탅탆탇탊",5,"탒탖",4],["b581","탛탞탟탡탢탣탥",6,"탮탲",5,"탹",11,"덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"],["b641","턅",7,"턎",17],["b661","턠",15,"턲턳턵턶턷턹턻턼턽턾"],["b681","턿텂텆",5,"텎텏텑텒텓텕",6,"텞텠텢",5,"텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"],["b741","텮",13,"텽",6,"톅톆톇톉톊"],["b761","톋",20,"톢톣톥톦톧"],["b781","톩",6,"톲톴톶톷톸톹톻톽톾톿퇁",14,"래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"],["b841","퇐",7,"퇙",17],["b861","퇫",8,"퇵퇶퇷퇹",13],["b881","툈툊",5,"툑",24,"륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많",4,"맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"],["b941","툪툫툮툯툱툲툳툵",6,"툾퉀퉂",5,"퉉퉊퉋퉌"],["b961","퉍",14,"퉝",6,"퉥퉦퉧퉨"],["b981","퉩",22,"튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바",4,"받",4,"밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"],["ba41","튍튎튏튒튓튔튖",5,"튝튞튟튡튢튣튥",6,"튭"],["ba61","튮튯튰튲",5,"튺튻튽튾틁틃",4,"틊틌",5],["ba81","틒틓틕틖틗틙틚틛틝",6,"틦",9,"틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"],["bb41","틻",4,"팂팄팆",5,"팏팑팒팓팕팗",4,"팞팢팣"],["bb61","팤팦팧팪팫팭팮팯팱",6,"팺팾",5,"퍆퍇퍈퍉"],["bb81","퍊",31,"빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"],["bc41","퍪",17,"퍾퍿펁펂펃펅펆펇"],["bc61","펈펉펊펋펎펒",5,"펚펛펝펞펟펡",6,"펪펬펮"],["bc81","펯",4,"펵펶펷펹펺펻펽",6,"폆폇폊",5,"폑",5,"샥샨샬샴샵샷샹섀섄섈섐섕서",4,"섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"],["bd41","폗폙",7,"폢폤",7,"폮폯폱폲폳폵폶폷"],["bd61","폸폹폺폻폾퐀퐂",5,"퐉",13],["bd81","퐗",5,"퐞",25,"숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"],["be41","퐸",7,"푁푂푃푅",14],["be61","푔",7,"푝푞푟푡푢푣푥",7,"푮푰푱푲"],["be81","푳",4,"푺푻푽푾풁풃",4,"풊풌풎",5,"풕",8,"쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄",6,"엌엎"],["bf41","풞",10,"풪",14],["bf61","풹",18,"퓍퓎퓏퓑퓒퓓퓕"],["bf81","퓖",5,"퓝퓞퓠",7,"퓩퓪퓫퓭퓮퓯퓱",6,"퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염",5,"옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"],["c041","퓾",5,"픅픆픇픉픊픋픍",6,"픖픘",5],["c061","픞",25],["c081","픸픹픺픻픾픿핁핂핃핅",6,"핎핐핒",5,"핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응",7,"읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"],["c141","핤핦핧핪핬핮",5,"핶핷핹핺핻핽",6,"햆햊햋"],["c161","햌햍햎햏햑",19,"햦햧"],["c181","햨",31,"점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"],["c241","헊헋헍헎헏헑헓",4,"헚헜헞",5,"헦헧헩헪헫헭헮"],["c261","헯",4,"헶헸헺",5,"혂혃혅혆혇혉",6,"혒"],["c281","혖",5,"혝혞혟혡혢혣혥",7,"혮",9,"혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"],["c341","혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝",4],["c361","홢",4,"홨홪",5,"홲홳홵",11],["c381","횁횂횄횆",5,"횎횏횑횒횓횕",7,"횞횠횢",5,"횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"],["c441","횫횭횮횯횱",7,"횺횼",7,"훆훇훉훊훋"],["c461","훍훎훏훐훒훓훕훖훘훚",5,"훡훢훣훥훦훧훩",4],["c481","훮훯훱훲훳훴훶",5,"훾훿휁휂휃휅",11,"휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"],["c541","휕휖휗휚휛휝휞휟휡",6,"휪휬휮",5,"휶휷휹"],["c561","휺휻휽",6,"흅흆흈흊",5,"흒흓흕흚",4],["c581","흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵",6,"흾흿힀힂",5,"힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"],["c641","힍힎힏힑",6,"힚힜힞",5],["c6a1","퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"],["c7a1","퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"],["c8a1","혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"],["caa1","伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"],["cba1","匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"],["cca1","瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"],["cda1","棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"],["cea1","科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"],["cfa1","區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"],["d0a1","鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"],["d1a1","朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩",5,"那樂",4,"諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"],["d2a1","納臘蠟衲囊娘廊",4,"乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧",5,"駑魯",10,"濃籠聾膿農惱牢磊腦賂雷尿壘",7,"嫩訥杻紐勒",5,"能菱陵尼泥匿溺多茶"],["d3a1","丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"],["d4a1","棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"],["d5a1","蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"],["d6a1","煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"],["d7a1","遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"],["d8a1","立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"],["d9a1","蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"],["daa1","汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"],["dba1","發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"],["dca1","碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"],["dda1","孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"],["dea1","脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"],["dfa1","傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"],["e0a1","胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"],["e1a1","聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"],["e2a1","戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"],["e3a1","嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"],["e4a1","沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"],["e5a1","櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"],["e6a1","旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"],["e7a1","簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"],["e8a1","烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"],["e9a1","窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"],["eaa1","運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"],["eba1","濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"],["eca1","議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"],["eda1","立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"],["eea1","障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"],["efa1","煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"],["f0a1","靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"],["f1a1","踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"],["f2a1","咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"],["f3a1","鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"],["f4a1","責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"],["f5a1","椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"],["f6a1","贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"],["f7a1","鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"],["f8a1","阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"],["f9a1","品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"],["faa1","行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"],["fba1","形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"],["fca1","禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"],["fda1","爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"]]')},function(e){e.exports=JSON.parse('[["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"],["8840","㇀",4,"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"],["88a1","ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"],["8940","𪎩𡅅"],["8943","攊"],["8946","丽滝鵎釟"],["894c","𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"],["89a1","琑糼緍楆竉刧"],["89ab","醌碸酞肼"],["89b0","贋胶𠧧"],["89b5","肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"],["89c1","溚舾甙"],["89c5","䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"],["8a40","𧶄唥"],["8a43","𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"],["8a64","𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"],["8a76","䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"],["8aa1","𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"],["8aac","䠋𠆩㿺塳𢶍"],["8ab2","𤗈𠓼𦂗𠽌𠶖啹䂻䎺"],["8abb","䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"],["8ac9","𪘁𠸉𢫏𢳉"],["8ace","𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"],["8adf","𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"],["8af6","𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"],["8b40","𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"],["8b55","𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"],["8ba1","𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"],["8bde","𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"],["8c40","倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"],["8ca1","𣏹椙橃𣱣泿"],["8ca7","爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"],["8cc9","顨杫䉶圽"],["8cce","藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"],["8ce6","峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"],["8d40","𠮟"],["8d42","𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"],["8da1","㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"],["8e40","𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"],["8ea1","繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"],["8f40","蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"],["8fa1","𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"],["9040","趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"],["90a1","𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"],["9140","𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"],["91a1","鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"],["9240","𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"],["92a1","働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"],["9340","媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"],["93a1","摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"],["9440","銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"],["94a1","㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"],["9540","𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"],["95a1","衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"],["9640","桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"],["96a1","𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"],["9740","愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"],["97a1","𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"],["9840","𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"],["98a1","咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"],["9940","䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"],["99a1","䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"],["9a40","鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"],["9aa1","黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"],["9b40","𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"],["9b62","𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"],["9ba1","椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"],["9c40","嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"],["9ca1","㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"],["9d40","𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"],["9da1","辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"],["9e40","𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"],["9ea1","鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"],["9ead","𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"],["9ec5","㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"],["9ef5","噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"],["9f40","籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"],["9f4f","凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"],["9fa1","椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"],["9fae","酙隁酜"],["9fb2","酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"],["9fc1","𤤙盖鮝个𠳔莾衂"],["9fc9","届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"],["9fdb","歒酼龥鮗頮颴骺麨麄煺笔"],["9fe7","毺蠘罸"],["9feb","嘠𪙊蹷齓"],["9ff0","跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"],["a040","𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"],["a055","𡠻𦸅"],["a058","詾𢔛"],["a05b","惽癧髗鵄鍮鮏蟵"],["a063","蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"],["a073","坟慯抦戹拎㩜懢厪𣏵捤栂㗒"],["a0a1","嵗𨯂迚𨸹"],["a0a6","僙𡵆礆匲阸𠼻䁥"],["a0ae","矾"],["a0b0","糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"],["a0d4","覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"],["a0e2","罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"],["a3c0","␀",31,"␡"],["c6a1","①",9,"⑴",9,"ⅰ",9,"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ",23],["c740","す",58,"ァアィイ"],["c7a1","ゥ",81,"А",5,"ЁЖ",4],["c840","Л",26,"ёж",25,"⇧↸↹㇏𠃌乚𠂊刂䒑"],["c8a1","龰冈龱𧘇"],["c8cd","¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"],["c8f5","ʃɐɛɔɵœøŋʊɪ"],["f9fe","■"],["fa40","𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"],["faa1","鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"],["fb40","𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"],["fba1","𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"],["fc40","廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"],["fca1","𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"],["fd40","𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"],["fda1","𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"],["fe40","鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"],["fea1","𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"]]')},function(e,t,n){"use strict";var r=n(31).Buffer;e.exports=function(e){var t=e.Transform;function n(e,n){this.conv=e,(n=n||{}).decodeStrings=!1,t.call(this,n)}function i(e,n){this.conv=e,(n=n||{}).encoding=this.encoding="utf8",t.call(this,n)}return n.prototype=Object.create(t.prototype,{constructor:{value:n}}),n.prototype._transform=function(e,t,n){if("string"!=typeof e)return n(new Error("Iconv encoding stream needs strings as its input."));try{var r=this.conv.write(e);r&&r.length&&this.push(r),n()}catch(e){n(e)}},n.prototype._flush=function(e){try{var t=this.conv.end();t&&t.length&&this.push(t),e()}catch(t){e(t)}},n.prototype.collect=function(e){var t=[];return this.on("error",e),this.on("data",(function(e){t.push(e)})),this.on("end",(function(){e(null,r.concat(t))})),this},i.prototype=Object.create(t.prototype,{constructor:{value:i}}),i.prototype._transform=function(e,t,n){if(!(r.isBuffer(e)||e instanceof Uint8Array))return n(new Error("Iconv decoding stream needs buffers as its input."));try{var i=this.conv.write(e);i&&i.length&&this.push(i,this.encoding),n()}catch(e){n(e)}},i.prototype._flush=function(e){try{var t=this.conv.end();t&&t.length&&this.push(t,this.encoding),e()}catch(t){e(t)}},i.prototype.collect=function(e){var t="";return this.on("error",e),this.on("data",(function(e){t+=e})),this.on("end",(function(){e(null,t)})),this},{IconvLiteEncoderStream:n,IconvLiteDecoderStream:i}}},function(e,t,n){"use strict";const r=n(5);class i{constructor(e){this.pluginName=e.pluginName,this.pluginData=e.pluginData}toPacket(){const e=6+this.pluginName.length+this.pluginData.length,t=Buffer.allocUnsafe(e),n=new r(0,t,0,e);return n.offset=4,n.writeInt8(254),n.writeNullTerminatedString(this.pluginName,"cesu8"),n.writeBuffer(this.pluginData),n}static fromPacket(e){e.readInt8();const t=e.readNullTerminatedString("cesu8"),n=e.readBuffer();return new i({pluginName:t,pluginData:n})}}e.exports=i},function(e,t,n){"use strict";const r=n(5);class i{constructor(e){this.data=e}toPacket(){const e=5+this.data.length,t=Buffer.allocUnsafe(e),n=new r(0,t,0,e);return n.offset=4,n.writeInt8(1),n.writeBuffer(this.data),n}static fromPacket(e){e.readInt8();const t=e.readBuffer();return new i(t)}static verifyMarker(e){return 1===e.peekByte()}}e.exports=i},function(e,t,n){"use strict";const r=n(5);class i{constructor(e){Buffer.isBuffer(e)||(e=Buffer.from(e)),this.data=e}toPacket(){const e=4+this.data.length,t=Buffer.allocUnsafe(e),n=new r(0,t,0,e);return n.offset=4,n.writeBuffer(this.data),n}static fromPacket(e){const t=e.readBuffer();return new i(t)}}e.exports=i},function(e,t,n){"use strict";const r=n(52),i=n(5),o=new Array(256);class s{constructor(e){this.columns=e||[]}toPacket(){throw new Error("Not implemented")}static fromPacket(e,t){const n=new Array(e.length);t.readInt8();const r=Math.floor((e.length+7+2)/8);t.skip(r);for(let r=0;rthis.flags&i[e],n=new o(0,e,0,e.length);n.offset=4;const s=a[this.charsetNumber];if(n.writeInt8(r.CHANGE_USER),n.writeNullTerminatedString(this.user,s),t("SECURE_CONNECTION")?(n.writeInt8(this.authToken.length),n.writeBuffer(this.authToken)):(n.writeBuffer(this.authToken),n.writeInt8(0)),n.writeNullTerminatedString(this.database,s),n.writeInt16(this.charsetNumber),t("PLUGIN_AUTH")&&n.writeNullTerminatedString("mysql_native_password","latin1"),t("CONNECT_ATTRS")){const e=this.connectAttributes,t=Object.keys(e);let r=0;for(let n=0;n{n+=r.lengthCodedStringLength(e[t],o[e.characterSet])});const i=Buffer.allocUnsafe(n),a=new r(t,i,0,n);return a.offset=4,s.forEach((function(t){a.writeLengthCodedString(e[t],o[e.characterSet])})),a.writeInt8(12),a.writeInt16(e.characterSet),a.writeInt32(e.columnLength),a.writeInt8(e.columnType),a.writeInt16(e.flags),a.writeInt8(e.decimals),a.writeInt16(0),a}get db(){return this.schema}}const u=function(e){Object.defineProperty(a.prototype,e,{get:function(){const t=this[`_${e}Start`],n=t+this[`_${e}Length`],r=i.decode(this._buf,"binary"===this.encoding?this._clientEncoding:this.encoding,t,n);return Object.defineProperty(this,e,{value:r,writable:!1,configurable:!1,enumerable:!1}),r}})};u("catalog"),u("schema"),u("table"),u("orgTable"),u("orgName"),e.exports=a},function(e,t,n){"use strict";const r=n(224),i=n(26),o=n(52),s=n(5),a=n(27);function u(e,t,n){let r,i=o.VAR_STRING,a=function(e){return s.prototype.writeLengthCodedString.call(this,e,t)};if(null!==e)switch(typeof e){case"undefined":throw new TypeError("Bind parameters must not contain undefined");case"number":i=o.DOUBLE,r=8,a=s.prototype.writeDouble;break;case"boolean":e|=0,i=o.TINY,r=1,a=s.prototype.writeInt8;break;case"object":"[object Date]"===Object.prototype.toString.call(e)?(i=o.DATETIME,r=12,a=function(e){return s.prototype.writeDate.call(this,e,n)}):!function(e){return Array.isArray(e)||e.constructor===Object||"function"==typeof e.toJSON&&!Buffer.isBuffer(e)}(e)?Buffer.isBuffer(e)&&(r=s.lengthCodedNumberLength(e.length)+e.length,a=s.prototype.writeLengthCodedBuffer):(e=JSON.stringify(e),i=o.JSON);break;default:e=e.toString()}else e="",i=o.NULL;return r||(r=s.lengthCodedStringLength(e,t)),{value:e,type:i,length:r,writer:a}}e.exports=class{constructor(e,t,n,r){this.id=e,this.parameters=t,this.encoding=a[n],this.timezone=r}toPacket(){let e,t=14;this.parameters&&this.parameters.length>0&&(t+=Math.floor((this.parameters.length+7)/8),t+=1,t+=2*this.parameters.length,e=this.parameters.map(e=>u(e,this.encoding,this.timezone)),t+=e.reduce((e,t)=>e+t.length,0));const n=Buffer.allocUnsafe(t),a=new s(0,n,0,t);if(a.offset=4,a.writeInt8(i.STMT_EXECUTE),a.writeInt32(this.id),a.writeInt8(r.NO_CURSOR),a.writeInt32(1),e){let t=0,n=1;e.forEach(e=>{e.type===o.NULL&&(t+=n),n*=2,256===n&&(a.writeInt8(t),t=0,n=1)}),1!==n&&a.writeInt8(t),a.writeInt8(1),e.forEach(e=>{a.writeInt8(e.type),a.writeInt8(0)}),e.forEach(e=>{e.type!==o.NULL&&e.writer.call(a,e.value)})}return a}}},function(e,t,n){"use strict";e.exports={NO_CURSOR:0,READ_ONLY:1,FOR_UPDATE:2,SCROLLABLE:3}},function(e,t,n){"use strict";const r=n(5),i=n(38);class o{constructor(e){this.protocolVersion=e.protocolVersion,this.serverVersion=e.serverVersion,this.capabilityFlags=e.capabilityFlags,this.connectionId=e.connectionId,this.authPluginData1=e.authPluginData1,this.authPluginData2=e.authPluginData2,this.characterSet=e.characterSet,this.statusFlags=e.statusFlags,this.autPluginName=e.autPluginName}setScrambleData(e){n(22).randomBytes(20,(t,n)=>{t?e(t):(this.authPluginData1=n.slice(0,8),this.authPluginData2=n.slice(8,20),e())})}toPacket(e){const t=68+Buffer.byteLength(this.serverVersion,"utf8"),n=Buffer.alloc(t+4,0),i=new r(e,n,0,t+4);i.offset=4,i.writeInt8(this.protocolVersion),i.writeString(this.serverVersion,"cesu8"),i.writeInt8(0),i.writeInt32(this.connectionId),i.writeBuffer(this.authPluginData1),i.writeInt8(0);const o=Buffer.allocUnsafe(4);return o.writeUInt32LE(this.capabilityFlags,0),i.writeBuffer(o.slice(0,2)),i.writeInt8(this.characterSet),i.writeInt16(this.statusFlags),i.writeBuffer(o.slice(2,4)),i.writeInt8(21),i.skip(10),i.writeBuffer(this.authPluginData2),i.writeInt8(0),i.writeString("mysql_native_password","latin1"),i.writeInt8(0),i}static fromPacket(e){const t={};t.protocolVersion=e.readInt8(),t.serverVersion=e.readNullTerminatedString("cesu8"),t.connectionId=e.readInt32(),t.authPluginData1=e.readBuffer(8),e.skip(1);const n=Buffer.allocUnsafe(4);n[0]=e.readInt8(),n[1]=e.readInt8(),e.haveMoreData()?(t.characterSet=e.readInt8(),t.statusFlags=e.readInt16(),n[2]=e.readInt8(),n[3]=e.readInt8(),t.capabilityFlags=n.readUInt32LE(0),t.capabilityFlags&i.PLUGIN_AUTH?t.authPluginDataLength=e.readInt8():(t.authPluginDataLength=0,e.skip(1)),e.skip(10)):t.capabilityFlags=n.readUInt16LE(0);if(t.capabilityFlags&i.SECURE_CONNECTION){const n=t.authPluginDataLength;if(0===n)t.authPluginDataLength=20,t.authPluginData2=e.readBuffer(12),e.skip(1);else{const r=Math.max(13,n-8);t.authPluginData2=e.readBuffer(r)}}return t.capabilityFlags&i.PLUGIN_AUTH&&(t.autPluginName=e.readNullTerminatedString("ascii")),new o(t)}}e.exports=o},function(e,t,n){"use strict";const r=n(38),i=n(27),o=n(5),s=n(45);e.exports=class{constructor(e){let t;this.user=e.user||"",this.database=e.database||"",this.password=e.password||"",this.passwordSha1=e.passwordSha1,this.authPluginData1=e.authPluginData1,this.authPluginData2=e.authPluginData2,this.compress=e.compress,this.clientFlags=e.flags,t=this.passwordSha1?s.calculateTokenFromPasswordSha(this.passwordSha1,this.authPluginData1,this.authPluginData2):s.calculateToken(this.password,this.authPluginData1,this.authPluginData2),this.authToken=t,this.charsetNumber=e.charsetNumber,this.encoding=i[e.charsetNumber],this.connectAttributes=e.connectAttributes}serializeResponse(e){const t=e=>this.clientFlags&r[e],n=new o(0,e,0,e.length);n.offset=4,n.writeInt32(this.clientFlags),n.writeInt32(0),n.writeInt8(this.charsetNumber),n.skip(23);const i=this.encoding;let s;if(n.writeNullTerminatedString(this.user,i),t("PLUGIN_AUTH_LENENC_CLIENT_DATA")?(n.writeLengthCodedNumber(this.authToken.length),n.writeBuffer(this.authToken)):t("SECURE_CONNECTION")?(n.writeInt8(this.authToken.length),n.writeBuffer(this.authToken)):(n.writeBuffer(this.authToken),n.writeInt8(0)),t("CONNECT_WITH_DB")&&n.writeNullTerminatedString(this.database,i),t("PLUGIN_AUTH")&&n.writeNullTerminatedString("mysql_native_password","latin1"),t("CONNECT_ATTRS")){const e=this.connectAttributes||{},t=Object.keys(e);let r=0;for(s=0;s0&&(l={systemVariables:{},schema:null,trackStateChange:null});e.offset{null!=e?n+=r.lengthCodedStringLength(e.toString(10),t):++n});const i=Buffer.allocUnsafe(n+4),o=new r(0,i,0,n+4);return o.offset=4,e.forEach(e=>{null!==e?void 0!==e?o.writeLengthCodedString(e.toString(10),t):o.writeInt8(0):o.writeNull()}),o}}e.exports=i},function(e,t,n){"use strict";const r=n(109),i=n(244),o=n(110),s=n(247),a=n(113),u=n(114),c=n(250),l=n(251),f=n(252),_=n(254),d=n(255);e.exports={ClientHandshake:r,ServerHandshake:i,Query:o,Prepare:s,CloseStatement:a,Execute:u,Ping:c,RegisterSlave:l,BinlogDump:f,ChangeUser:_,Quit:d}},function(e,t,n){"use strict";const r=n(19),i=n(238),o=n(239),s=n(240),a={sha256_password:i({}),caching_sha2_password:o({}),mysql_native_password:s({})};function u(){console.warn("WARNING! authSwitchHandler api is deprecated, please use new authPlugins api")}function c(e,t){e.code="AUTH_SWITCH_PLUGIN_ERROR",e.fatal=!0,t.emit("error",e)}e.exports={authSwitchRequest:function(e,t,n){const{pluginName:i,pluginData:o}=r.AuthSwitchRequest.fromPacket(e);let s=t.config.authPlugins&&t.config.authPlugins[i];if(t.config.authSwitchHandler&&"mysql_native_password"!==i){const e=t.config.authSwitchHandler;return u(),void e({pluginName:i,pluginData:o},(e,i)=>{if(e)return c(e,n);t.writePacket(new r.AuthSwitchResponse(i).toPacket())})}if(s||(s=a[i]),!s)throw new Error(`Server requests authentication using unknown plugin ${i}. See TODO: add plugins doco here on how to configure or author authentication plugins.`);t._authPlugin=s({connection:t,command:n}),Promise.resolve(t._authPlugin(o)).then(e=>{e&&t.writePacket(new r.AuthSwitchResponse(e).toPacket())}).catch(e=>{c(e,n)})},authSwitchRequestMoreData:function(e,t,n){const{data:i}=r.AuthSwitchRequestMoreData.fromPacket(e);if(t.config.authSwitchHandler){const e=t.config.authSwitchHandler;return u(),void e({pluginData:i},(e,i)=>{if(e)return c(e,n);t.writePacket(new r.AuthSwitchResponse(i).toPacket())})}if(!t._authPlugin)throw new Error("AuthPluginMoreData received but no auth plugin instance found");Promise.resolve(t._authPlugin(i)).then(e=>{e&&t.writePacket(new r.AuthSwitchResponse(e).toPacket())}).catch(e=>{c(e,n)})}}},function(e,t,n){"use strict";const r=n(22),{xor:i}=n(45),o=Buffer.from([1]);e.exports=(e={})=>({connection:t})=>{let n=0,s=null;const a=t.config.password,u=e=>{const t=function(e,t,n){const o=i(Buffer.from(e+"\0","utf8").toString("binary"),t.toString("binary"));return r.publicEncrypt(n,o)}(a,s,e);return n=-1,t};return t=>{switch(n){case 0:return s=t.slice(0,20),e.serverPublicKey?u(e.serverPublicKey):(n=1,o);case 1:return e.onServerPublicKey&&e.onServerPublicKey(t),u(t);case-1:throw new Error("Unexpected data in AuthMoreData packet received by sha256_password plugin in STATE_FINAL state.")}throw new Error("Unexpected data in AuthMoreData packet received by sha256_password plugin in state "+n)}}},function(e,t,n){"use strict";const r=n(22),{xor:i,xorRotating:o}=n(45),s=Buffer.from([2]),a=Buffer.from([3]),u=Buffer.from([4]);function c(e){const t=r.createHash("sha256");return t.update(e,"binary"),t.digest("binary")}e.exports=(e={})=>({connection:t})=>{let n=0,l=null;const f=t.config.password,_=e=>{const t=function(e,t,n){const i=o(Buffer.from(e+"\0","utf8").toString("binary"),t.toString("binary"));return r.publicEncrypt(n,i)}(f,l,e);return n=-1,t};return r=>{switch(n){case 0:return l=r.slice(0,20),n=1,function(e,t){if(!e)return Buffer.alloc(0);const n=c(Buffer.from(e,"utf8").toString("binary")),r=c(n),o=c(r+t.toString("binary"));return i(n,o)}(f,l);case 1:if(a.equals(r))return n=-1,null;if(u.equals(r)){return(void 0===e.overrideIsSecure?t.config.ssl||t.config.socketPath:e.overrideIsSecure)?(n=-1,Buffer.from(f+"\0","utf8")):e.serverPublicKey?_(e.serverPublicKey):(n=2,s)}throw new Error("Invalid AuthMoreData packet received by caching_sha2_password plugin in STATE_TOKEN_SENT state.");case 2:return e.onServerPublicKey&&e.onServerPublicKey(r),_(r);case-1:throw new Error("Unexpected data in AuthMoreData packet received by caching_sha2_password plugin in STATE_FINAL state.")}throw new Error("Unexpected data in AuthMoreData packet received by caching_sha2_password plugin in state "+n)}}},function(e,t,n){"use strict";const r=n(45);e.exports=e=>({connection:t,command:n})=>{const i=n.password||e.password||t.config.password,o=n.passwordSha1||e.passwordSha1||t.config.passwordSha1;return e=>{const t=e.slice(0,8),n=e.slice(8,20);let s;return s=o?r.calculateTokenFromPasswordSha(o,t,n):r.calculateToken(i,t,n),s}}},function(e,t,n){"use strict";const r=n(80),i=n(103);function o(e){const t=this,n=e.readInt24(),i=e.readBuffer();0!==n?t.inflateQueue.push(n=>{r.inflate(i,(r,i)=>{r?t._handleNetworkError(r):(t._bumpCompressedSequenceId(e.numPackets),t._inflatedPacketsParser.execute(i),n.done())})}):t.inflateQueue.push(n=>{t._bumpCompressedSequenceId(e.numPackets),t._inflatedPacketsParser.execute(i),n.done()})}function s(e){let t;if(e.length>16777210){for(t=0;t{r.deflate(e,(r,s)=>{if(r)return void n._handleFatalError(r);let u=s.length;u>8,1),o.writeUInt8(a,3),o.writeUInt8(255&i,4),o.writeUInt16LE(i>>8,5),n.writeUncompressed(o),n.writeUncompressed(s)):(u=i,i=0,o.writeUInt8(255&u,0),o.writeUInt16LE(u>>8,1),o.writeUInt8(a,3),o.writeUInt8(255&i,4),o.writeUInt16LE(i>>8,5),n.writeUncompressed(o),n.writeUncompressed(e)),t.done()})}),n._bumpCompressedSequenceId(1)}e.exports={enableCompression:function(e){e._lastWrittenPacketId=0,e._lastReceivedPacketId=0,e._handleCompressedPacket=o,e._inflatedPacketsParser=new i(t=>{e.handlePacket(t)},4),e._inflatedPacketsParser._lastPacket=0,e.packetParser=new i(t=>{e._handleCompressedPacket(t)},7),e.writeUncompressed=e.write,e.write=s;const t=n(242);e.inflateQueue=t.createQueue(),e.deflateQueue=t.createQueue()}}},function(e,t,n){e.exports=n(243)},function(e,t,n){var r=n(25).EventEmitter,i=n(8),o=function(e){r.call(this),this.timeout=e&&e>0?e:3e3,this.status=s.STATUS_IDLE,this.curId=0,this.queue=[]};i.inherits(o,r),o.prototype.push=function(e,t,n){if(this.status!==s.STATUS_IDLE&&this.status!==s.STATUS_BUSY)return!1;if("function"!=typeof e)throw new Error("fn should be a function.");if(this.queue.push({fn:e,ontimeout:t,timeout:n}),this.status===s.STATUS_IDLE){this.status=s.STATUS_BUSY;var r=this;process.nextTick((function(){r._next(r.curId)}))}return!0},o.prototype.close=function(e){this.status!==s.STATUS_IDLE&&this.status!==s.STATUS_BUSY||(e?(this.status=s.STATUS_DRAINED,this.timerId&&(clearTimeout(this.timerId),this.timerId=void 0),this.emit("drained")):(this.status=s.STATUS_CLOSED,this.emit("closed")))},o.prototype._next=function(e){if(e===this.curId&&(this.status===s.STATUS_BUSY||this.status===s.STATUS_CLOSED)){this.timerId&&(clearTimeout(this.timerId),this.timerId=void 0);var t=this.queue.shift();if(t){var n=this;t.id=++this.curId;var r=t.timeout>0?t.timeout:this.timeout;r=r>0?r:3e3,this.timerId=setTimeout((function(){process.nextTick((function(){n._next(t.id)})),n.emit("timeout",t),t.ontimeout&&t.ontimeout()}),r);try{t.fn({done:function(){var e=t.id===n.curId;return process.nextTick((function(){n._next(t.id)})),e}})}catch(e){n.emit("error",e,t),process.nextTick((function(){n._next(t.id)}))}}else this.status===s.STATUS_BUSY?(this.status=s.STATUS_IDLE,this.curId++):(this.status=s.STATUS_DRAINED,this.emit("drained"))}};var s=e.exports;s.STATUS_IDLE=0,s.STATUS_BUSY=1,s.STATUS_CLOSED=2,s.STATUS_DRAINED=3,s.createQueue=function(e){return new o(e)}},function(e,t,n){"use strict";const r=n(26),i=n(104),o=n(20),s=n(19);class a extends o{constructor(e){super(),this.args=e}start(e,t){const n=new s.Handshake(this.args);return this.serverHello=n,n.setScrambleData(e=>{e?t.emit("error",new Error("Error generating random bytes")):t.writePacket(n.toPacket(0))}),a.prototype.readClientReply}readClientReply(e,t){const n=s.HandshakeResponse.fromPacket(e);return t.clientHelloReply=n,this.args.authCallback?this.args.authCallback({user:n.user,database:n.database,address:t.stream.remoteAddress,authPluginData1:this.serverHello.authPluginData1,authPluginData2:this.serverHello.authPluginData2,authToken:n.authToken},(e,n)=>{n?(t.writeError({message:n.message||"",code:n.code||1045}),t.close()):t.writeOk()}):t.writeOk(),a.prototype.dispatchCommands}dispatchCommands(e,t){let n=!0;const o=t.clientHelloReply.encoding,s=e.readInt8();switch(s){case r.QUIT:t.listeners("quit").length?t.emit("quit"):t.stream.end();break;case r.INIT_DB:if(t.listeners("init_db").length){const n=e.readString(void 0,o);t.emit("init_db",n)}else t.writeOk();break;case r.QUERY:if(t.listeners("query").length){const n=e.readString(void 0,o);t.emit("query",n)}else t.writeError({code:i.HA_ERR_INTERNAL_ERROR,message:"No query handler"});break;case r.FIELD_LIST:if(t.listeners("field_list").length){const n=e.readNullTerminatedString(),r=e.readString(void 0,o);t.emit("field_list",n,r)}else t.writeError({code:i.ER_WARN_DEPRECATED_SYNTAX,message:"As of MySQL 5.7.11, COM_FIELD_LIST is deprecated and will be removed in a future version of MySQL."});break;case r.PING:t.listeners("ping").length?t.emit("ping"):t.writeOk();break;default:n=!1}return t.listeners("packet").length?t.emit("packet",e.clone(),n,s):n||console.log("Unknown command:",s),a.prototype.dispatchCommands}}e.exports=a},function(e,t,n){"use strict";const r=n(52),i=n(64),o=n(111),s=n(112),a=n(81),u=[];for(const e in r)u[r[e]]=e;function c(e,t,n,s,a){const u=a.supportBigNumbers||s.supportBigNumbers,c=a.bigNumberStrings||s.bigNumberStrings,l=a.timezone||s.timezone,f=a.dateStrings||s.dateStrings;switch(e){case r.TINY:case r.SHORT:case r.LONG:case r.INT24:case r.YEAR:return"packet.parseLengthCodedIntNoBigCheck()";case r.LONGLONG:return u&&c?"packet.parseLengthCodedIntString()":`packet.parseLengthCodedInt(${u})`;case r.FLOAT:case r.DOUBLE:return"packet.parseLengthCodedFloat()";case r.NULL:return"packet.readLengthCodedNumber()";case r.DECIMAL:case r.NEWDECIMAL:return s.decimalNumbers?"packet.parseLengthCodedFloat()":'packet.readLengthCodedString("ascii")';case r.DATE:return o.typeMatch(e,f,r)?'packet.readLengthCodedString("ascii")':`packet.parseDate('${l}')`;case r.DATETIME:case r.TIMESTAMP:return o.typeMatch(e,f,r)?'packet.readLengthCodedString("ascii")':`packet.parseDateTime('${l}')`;case r.TIME:return'packet.readLengthCodedString("ascii")';case r.GEOMETRY:return"packet.parseGeometryValue()";case r.JSON:return'JSON.parse(packet.readLengthCodedString("utf8"))';default:return t===i.BINARY?"packet.readLengthCodedBuffer()":`packet.readLengthCodedString(${n})`}}function l(e,t,n){"function"==typeof n.typeCast&&"function"!=typeof t.typeCast&&(t.typeCast=n.typeCast);const r=s();r("(function () {")("return class TextRow {"),r("constructor(fields) {"),"function"==typeof t.typeCast&&(r("const _this = this;"),r("for(let i=0; i0?u.prototype.readParameter:this.fieldCount>0?u.prototype.readField:this.prepareDone(t)}readParameter(e,t){const n=new r.ColumnDefinition(e,t.clientEncoding);return this.parameterDefinitions.push(n),this.parameterDefinitions.length===this.parameterCount?u.prototype.parametersEOF:this.readParameter}readField(e,t){const n=new r.ColumnDefinition(e,t.clientEncoding);return this.fields.push(n),this.fields.length===this.fieldCount?u.prototype.fieldsEOF:u.prototype.readField}parametersEOF(e,t){return e.isEOF()?this.fieldCount>0?u.prototype.readField:this.prepareDone(t):t.protocolError("Expected EOF packet after parameters")}fieldsEOF(e,t){return e.isEOF()?this.prepareDone(t):t.protocolError("Expected EOF packet after fields")}prepareDone(e){const t=new a(this.query,this.id,this.fields,this.parameterDefinitions,e);return e._statements.set(this.key,t),this.onResult&&this.onResult(null,t),null}}e.exports=u},function(e,t,n){"use strict";const r=n(249),i=n(64),o=n(52),s=n(111),a=n(112),u=n(81),c=[];for(const e in o)c[o[e]]=e;function l(e,t,n,a){const u=n.supportBigNumbers||t.supportBigNumbers,c=n.bigNumberStrings||t.bigNumberStrings,l=n.timezone||t.timezone,f=n.dateStrings||t.dateStrings,_=e.flags&r.UNSIGNED;switch(e.columnType){case o.TINY:return _?"packet.readInt8();":"packet.readSInt8();";case o.SHORT:return _?"packet.readInt16();":"packet.readSInt16();";case o.LONG:case o.INT24:return _?"packet.readInt32();":"packet.readSInt32();";case o.YEAR:return"packet.readInt16()";case o.FLOAT:return"packet.readFloat();";case o.DOUBLE:return"packet.readDouble();";case o.NULL:return"null;";case o.DATE:case o.DATETIME:case o.TIMESTAMP:case o.NEWDATE:return s.typeMatch(e.columnType,f,o)?`packet.readDateTimeString(${e.decimals});`:`packet.readDateTime('${l}');`;case o.TIME:return"packet.readTimeString()";case o.DECIMAL:case o.NEWDECIMAL:return t.decimalNumbers?"packet.parseLengthCodedFloat();":'packet.readLengthCodedString("ascii");';case o.GEOMETRY:return"packet.parseGeometryValue();";case o.JSON:return'JSON.parse(packet.readLengthCodedString("utf8"));';case o.LONGLONG:return u?c?_?"packet.readInt64String();":"packet.readSInt64String();":_?"packet.readInt64();":"packet.readSInt64();":_?"packet.readInt64JSNumber();":"packet.readSInt64JSNumber();";default:return e.characterSet===i.BINARY?"packet.readLengthCodedBuffer();":`packet.readLengthCodedString(fields[${a}].encoding)`}}function f(e,t,n){const r=a();let i=0;const o=Math.floor((e.length+7+2)/8);r("(function(){"),r("return class BinaryRow {"),r("constructor() {"),r("}"),r("next(packet, fields, options) {"),t.rowsAsArray?r(`const result = new Array(${e.length});`):r("const result = {};");const u={};let f=[];if(!0===t.nestTables){for(i=0;i{};e.exports=function(e){e||(e={}),e.placeholder||(e.placeholder="?");let t,r=100;function s(e,t){const n=[];if(1==e.length)return[e[0],[]];if(void 0===t)throw new Error("Named query contains placeholders, but parameters object is undefined");const r=e[1];for(let e=0;et[e])]}},function(e,t,n){"use strict";e.exports=R;var r,i=n(259),o=n(8),s=n(261),a=(r="function"==typeof Symbol&&"1"!==process.env._nodeLRUCacheForceNoSymbol?function(e){return Symbol(e)}:function(e){return"_"+e})("max"),u=r("length"),c=r("lengthCalculator"),l=r("allowStale"),f=r("maxAge"),_=r("dispose"),d=r("noDisposeOnSet"),E=r("lruList"),h=r("cache");function p(){return 1}function R(e){if(!(this instanceof R))return new R(e);"number"==typeof e&&(e={max:e}),e||(e={});var t=this[a]=e.max;(!t||"number"!=typeof t||t<=0)&&(this[a]=1/0);var n=e.length||p;"function"!=typeof n&&(n=p),this[c]=n,this[l]=e.stale||!1,this[f]=e.maxAge||0,this[_]=e.dispose,this[d]=e.noDisposeOnSet||!1,this.reset()}function g(e,t,n,r){var i=n.value;T(e,i)&&(m(e,n),e[l]||(i=void 0)),i&&t.call(r,i.value,i.key,e)}function A(e,t,n){var r=e[h].get(t);if(r){var i=r.value;T(e,i)?(m(e,r),e[l]||(i=void 0)):n&&e[E].unshiftNode(r),i&&(i=i.value)}return i}function T(e,t){if(!t||!t.maxAge&&!e[f])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[f]&&n>e[f]}function N(e){if(e[u]>e[a])for(var t=e[E].tail;e[u]>e[a]&&null!==t;){var n=t.prev;m(e,t),t=n}}function m(e,t){if(t){var n=t.value;e[_]&&e[_](n.key,n.value),e[u]-=n.length,e[h].delete(n.key),e[E].removeNode(t)}}function I(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}Object.defineProperty(R.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[a]=e,N(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(R.prototype,"allowStale",{set:function(e){this[l]=!!e},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(R.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[f]=e,N(this)},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(R.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=p),e!==this[c]&&(this[c]=e,this[u]=0,this[E].forEach((function(e){e.length=this[c](e.value,e.key),this[u]+=e.length}),this)),N(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(R.prototype,"length",{get:function(){return this[u]},enumerable:!0}),Object.defineProperty(R.prototype,"itemCount",{get:function(){return this[E].length},enumerable:!0}),R.prototype.rforEach=function(e,t){t=t||this;for(var n=this[E].tail;null!==n;){var r=n.prev;g(this,e,n,t),n=r}},R.prototype.forEach=function(e,t){t=t||this;for(var n=this[E].head;null!==n;){var r=n.next;g(this,e,n,t),n=r}},R.prototype.keys=function(){return this[E].toArray().map((function(e){return e.key}),this)},R.prototype.values=function(){return this[E].toArray().map((function(e){return e.value}),this)},R.prototype.reset=function(){this[_]&&this[E]&&this[E].length&&this[E].forEach((function(e){this[_](e.key,e.value)}),this),this[h]=new i,this[E]=new s,this[u]=0},R.prototype.dump=function(){return this[E].map((function(e){if(!T(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}),this).toArray().filter((function(e){return e}))},R.prototype.dumpLru=function(){return this[E]},R.prototype.inspect=function(e,t){var n="LRUCache {",r=!1;this[l]&&(n+="\n allowStale: true",r=!0);var i=this[a];i&&i!==1/0&&(r&&(n+=","),n+="\n max: "+o.inspect(i,t),r=!0);var s=this[f];s&&(r&&(n+=","),n+="\n maxAge: "+o.inspect(s,t),r=!0);var _=this[c];_&&_!==p&&(r&&(n+=","),n+="\n length: "+o.inspect(this[u],t),r=!0);var d=!1;return this[E].forEach((function(e){d?n+=",\n ":(r&&(n+=",\n"),d=!0,n+="\n ");var i=o.inspect(e.key).split("\n").join("\n "),a={value:e.value};e.maxAge!==s&&(a.maxAge=e.maxAge),_!==p&&(a.length=e.length),T(this,e)&&(a.stale=!0),a=o.inspect(a,t).split("\n").join("\n "),n+=i+" => "+a})),(d||r)&&(n+="\n"),n+="}"},R.prototype.set=function(e,t,n){var r=(n=n||this[f])?Date.now():0,i=this[c](t,e);if(this[h].has(e)){if(i>this[a])return m(this,this[h].get(e)),!1;var o=this[h].get(e).value;return this[_]&&(this[d]||this[_](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[u]+=i-o.length,o.length=i,this.get(e),N(this),!0}var s=new I(e,t,i,r,n);return s.length>this[a]?(this[_]&&this[_](e,t),!1):(this[u]+=s.length,this[E].unshift(s),this[h].set(e,this[E].head),N(this),!0)},R.prototype.has=function(e){return!!this[h].has(e)&&!T(this,this[h].get(e).value)},R.prototype.get=function(e){return A(this,e,!0)},R.prototype.peek=function(e){return A(this,e,!1)},R.prototype.pop=function(){var e=this[E].tail;return e?(m(this,e),e.value):null},R.prototype.del=function(e){m(this,this[h].get(e))},R.prototype.load=function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{var o=i-t;o>0&&this.set(r.k,r.v,o)}}},R.prototype.prune=function(){var e=this;this[h].forEach((function(t,n){A(e,n,!1)}))}},function(e,t,n){"pseudomap"===process.env.npm_package_name&&"test"===process.env.npm_lifecycle_script&&(process.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||process.env.TEST_PSEUDOMAP?e.exports=n(260):e.exports=Map},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){if(!(this instanceof r))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof r||"function"==typeof Map&&e instanceof Map)e.forEach((function(e,t){this.set(t,e)}),this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach((function(e){this.set(e[0],e[1])}),this)}}function i(e,t){return e===t||e!=e&&t!=t}function o(e,t,n){this.key=e,this.value=t,this._index=n}function s(e,t){for(var r=0,o="_"+t,s=o;n.call(e,s);s=o+r++)if(i(e[s].key,t))return e[s]}e.exports=r,r.prototype.forEach=function(e,t){t=t||this,Object.keys(this._data).forEach((function(n){"size"!==n&&e.call(t,this._data[n].value,this._data[n].key)}),this)},r.prototype.has=function(e){return!!s(this._data,e)},r.prototype.get=function(e){var t=s(this._data,e);return t&&t.value},r.prototype.set=function(e,t){!function(e,t,r){for(var s=0,a="_"+t,u=a;n.call(e,u);u=a+s++)if(i(e[u].key,t))return void(e[u].value=r);e.size++,e[u]=new o(t,r,u)}(this._data,e,t)},r.prototype.delete=function(e){var t=s(this._data,e);t&&(delete this._data[t._index],this._data.size--)},r.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(r.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),r.prototype.values=r.prototype.keys=r.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},function(e,t){function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},n.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this}},function(e,t,n){"use strict";const r=n(77),i=n(25).EventEmitter,o=n(61),s=n(65);e.exports=class extends i{constructor(){super(),this.connections=[],this._server=r.createServer(this._handleConnection.bind(this))}_handleConnection(e){const t=new s({stream:e,isServer:!0}),n=new o({config:t});this.emit("connection",n)}listen(e){return this._port=e,this._server.listen.apply(this._server,arguments),this}close(e){this._server.close(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSemiColonFormat=t.CONNECTION_STRING=void 0,t.CONNECTION_STRING="mysql_connection_string",t.parseSemiColonFormat=function(e){const t=e.replace(/(?:host(?:name)|ip|server|data\s?source|addr(?:ess)?)=/gi,"host=").replace(/(?:user\s?(?:id|name)?|uid)=/gi,"user=").replace(/(?:pwd|pass)=/gi,"password=").replace(/(?:db)=/gi,"database=").split(";");if(1===t.length)throw new Error(`Connection string ${e} is in the incorrect format. Please follow the README.`);return t.reduce((e,t)=>{const[n,r]=t.split("=");return r&&(e[n]=r),e},{})}},function(e,t,n){const r=n(265),i=n(313),o=n(12),s=n(120);o.align=n(122),o.errors=n(123),o.cli=n(124),o.combine=n(125),o.colorize=n(66),o.json=n(83),o.label=n(126),o.logstash=n(127),o.metadata=n(128),o.ms=n(129),o.padLevels=n(82),o.prettyPrint=n(130),o.printf=n(131),o.simple=n(132),o.splat=n(133),o.timestamp=n(134),o.uncolorize=n(135),e.exports={createLogger:r,transports:i,format:o,levels:s}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};e.levels=e.levels||d.npm.levels;var t=function(e){a(n,e);var t=c(n);function n(e){return s(this,n),t.call(this,e)}return o(n)}(E),n=new t(e);return Object.keys(e.levels).forEach((function(e){h('Define prototype method for "%s"',e),"log"!==e?(t.prototype[e]=function(){for(var t=this||n,r=arguments.length,i=new Array(r),o=0;ot(),configurable:!0})}t.levels=n(120),i("align",(function(){return n(122)})),i("errors",(function(){return n(123)})),i("cli",(function(){return n(124)})),i("combine",(function(){return n(125)})),i("colorize",(function(){return n(66)})),i("json",(function(){return n(83)})),i("label",(function(){return n(126)})),i("logstash",(function(){return n(127)})),i("metadata",(function(){return n(128)})),i("ms",(function(){return n(129)})),i("padLevels",(function(){return n(82)})),i("prettyPrint",(function(){return n(130)})),i("printf",(function(){return n(131)})),i("simple",(function(){return n(132)})),i("splat",(function(){return n(133)})),i("timestamp",(function(){return n(134)})),i("uncolorize",(function(){return n(135)}))},function(e,t,n){var r={};e.exports=r,r.themes={};var i=n(8),o=r.styles=n(272),s=Object.defineProperties,a=new RegExp(/[\r\n]+/g);r.supportsColor=n(273).supportsColor,void 0===r.enabled&&(r.enabled=!1!==r.supportsColor()),r.enable=function(){r.enabled=!0},r.disable=function(){r.enabled=!1},r.stripColors=r.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};r.stylize=function(e,t){if(!r.enabled)return e+"";var n=o[t];return!n&&t in r?r[t](e):n.open+e+n.close};var u=/[|\\{}()[\]^$+*?.]/g;function c(e){var t=function e(){return d.apply(e,arguments)};return t._styles=e,t.__proto__=_,t}var l,f=(l={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(u,"\\$&")}(o[e].close),"g"),l[e]={get:function(){return c(this._styles.concat(e))}}})),l),_=s((function(){}),f);function d(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!r.enabled||!t)return t;for(var n=-1!=t.indexOf("\n"),s=this._styles,u=s.length;u--;){var c=o[s[u]];t=c.open+t.replace(c.closeRe,c.open)+c.close,n&&(t=t.replace(a,(function(e){return c.close+e+c.open})))}return t}r.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){r[t]=function(n){if("object"==typeof e[t]){var i=n;for(var o in e[t])i=r[e[t][o]](i);return i}return r[e[t]](n)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var E=function(e,t){var n=t.split("");return(n=n.map(e)).join("")};for(var h in r.trap=n(275),r.zalgo=n(276),r.maps={},r.maps.america=n(277)(r),r.maps.zebra=n(278)(r),r.maps.rainbow=n(279)(r),r.maps.random=n(280)(r),r.maps)!function(e){r[e]=function(t){return E(r.maps[e],t)}}(h);s(r,function(){var e={};return Object.keys(f).forEach((function(t){e[t]={get:function(){return c([t])}}})),e}())},function(e,t){var n={};e.exports=n;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var t=r[e],i=n[e]=[];i.open="["+t[0]+"m",i.close="["+t[1]+"m"}))},function(e,t,n){"use strict";var r=n(29),i=n(274),o=process.env,s=void 0;function a(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var n=r.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e))}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=(t=t||process.argv).indexOf("--"),r=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(r+e);return-1!==i&&(-1===n||i1){if("number"==typeof n)for(i=0;i100)return e.replace(o,a);for(var t="",n=0,r=0;rr;)e[n]=e[n-1],n--;e[n]=r}return e}},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return s(e,t,o,"day");if(t>=i)return s(e,t,i,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";n.r(t),n.d(t,"assign",(function(){return u})),n.d(t,"format",(function(){return v})),n.d(t,"parse",(function(){return y})),n.d(t,"defaultI18n",(function(){return _})),n.d(t,"setGlobalDateI18n",(function(){return E})),n.d(t,"setGlobalDateMasks",(function(){return b}));var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",o=/\[([^]*?)\]/gm;function s(e,t){for(var n=[],r=0,i=e.length;r-1?r:null}};function u(e){for(var t=[],n=1;n3?0:(e-e%10!=10?1:0)*e%10]}},d=u({},_),E=function(e){return d=u(d,e)},h=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},p=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length0?"-":"+")+p(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+p(Math.floor(Math.abs(t)/60),2)+":"+p(Math.abs(t)%60,2)}},g=function(e){return+e-1},A=[null,"[1-9]\\d?"],T=[null,i],N=["isPm",i,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],m=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],I={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+i,function(e){return parseInt(e,10)}],M:["month","[1-9]\\d?",g],MM:["month","\\d\\d",g],YY:["year","\\d\\d",function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond","\\d\\d",function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:A,dd:A,ddd:T,dddd:T,MMM:["month",i,a("monthNamesShort")],MMMM:["month",i,a("monthNames")],a:N,A:N,ZZ:m,Z:m},O={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},b=function(e){return u(O,e)},v=function(e,t,n){if(void 0===t&&(t=O.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var i=[];t=(t=O[t]||t).replace(o,(function(e,t){return i.push(t),"@@@"}));var s=u(u({},d),n);return(t=t.replace(r,(function(t){return R[t](e,s)}))).replace(/@@@/g,(function(){return i.shift()}))};function y(e,t,n){if(void 0===n&&(n={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=O[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],a=[],c=t.replace(o,(function(e,t){return a.push(h(t)),"@@@"})),l={},f={};c=h(c).replace(r,(function(e){var t=I[e],n=t[0],r=t[1],i=t[3];if(l[n])throw new Error("Invalid format. "+n+" specified twice in format");return l[n]=!0,i&&(f[i]=!0),s.push(t),"("+r+")"})),Object.keys(f).forEach((function(e){if(!l[e])throw new Error("Invalid format. "+e+" is required in specified format")})),c=c.replace(/@@@/g,(function(){return a.shift()}));var _=e.match(new RegExp(c,"i"));if(!_)return null;for(var E=u(u({},d),n),p=1;p<_.length;p++){var R=s[p-1],g=R[0],A=R[2],T=A?A(_[p],E):+_[p];if(null==T)return null;i[g]=T}1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0);for(var N=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond),m=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],b=(p=0,m.length);p0&&void 0!==arguments[0]?arguments[0]:{},r=t.silent,i=t.format,o=t.defaultMeta,s=t.levels,a=t.level,u=void 0===a?"info":a,c=t.exitOnError,l=void 0===c||c,f=t.transports,_=t.colors,d=t.emitErrs,E=t.formatters,h=t.padLevels,p=t.rewriters,R=t.stripColors,T=t.exceptionHandlers,N=t.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=r,this.format=i||this.format||n(83)(),this.defaultMeta=o||null,this.levels=s||this.levels||I.npm.levels,this.level=u,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new g(this),this.rejections=new A(this),this.profilers={},this.exitOnError=l,f&&(f=Array.isArray(f)?f:[f]).forEach((function(t){return e.add(t)})),_||d||E||h||p||R)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"));T&&this.exceptions.handle(T),N&&this.rejections.handle(N)}},{key:"isLevelEnabled",value:function(e){var t=this,n=v(this.levels,e);if(null===n)return!1;var r=v(this.levels,this.level);return null!==r&&(this.transports&&0!==this.transports.length?-1!==this.transports.findIndex((function(e){var i=v(t.levels,e.level);return null===i&&(i=r),i>=n})):r>=n)}},{key:"log",value:function(e,t){for(var n,o,s=arguments.length,a=new Array(s>2?s-2:0),u=2;u2?new T({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(e){if(!e)return this;var t=e;return(!R(e)||e.log.length>2)&&(t=this.transports.filter((function(t){return t.transport===e}))[0]),t&&this.unpipe(t),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){m.deprecated("setLevels")}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};var n={},r=Object.assign({},e.query||{});d(this.transports.filter((function(e){return!!e.query})),(function(t,i){!function(t,n){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(r)),t.query(e,(function(r,i){if(r)return n(r);"function"==typeof t.formatResults&&(i=t.formatResults(i,e.format)),n(null,i)}))}(t,(function(e,r){i&&((r=e||r)&&(n[t.name]=r),i()),i=null}))}),(function(){return t(null,n)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new f,n=[];return t._streams=n,t.destroy=function(){for(var e=n.length;e--;)n[e].destroy()},this.transports.filter((function(e){return!!e.stream})).forEach((function(r){var i=r.stream(e);i&&(n.push(i),i.on("log",(function(e){e.transport=e.transport||[],e.transport.push(r.name),t.emit("log",e)})),i.on("error",(function(e){e.transport=e.transport||[],e.transport.push(r.name),t.emit("error",e)})))})),t}},{key:"startTimer",value:function(){return new N(this)}},{key:"profile",value:function(e){var t=Date.now();if(this.profilers[e]){var n=this.profilers[e];delete this.profilers[e];for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,n,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=i,r=a,s.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return a(this,function(e){for(var t=1;t */ +var r=n(28),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(85),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),_=Symbol("stream");function d(e,t){return{value:e,done:t}}function E(e){var t=e[s];if(null!==t){var n=e[_].read();null!==n&&(e[l]=null,e[s]=null,e[a]=null,t(d(n,!1)))}}function h(e){process.nextTick(E,e)}var p=Object.getPrototypeOf((function(){})),R=Object.setPrototypeOf((i(r={get stream(){return this[_]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(d(void 0,!0));if(this[_].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[u]?n(e[u]):t(d(void 0,!0))}))}));var n,r=this[l];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(d(void 0,!0)):t[f](n,r)}),r)}}(r,this));else{var i=this[_].read();if(null!==i)return Promise.resolve(d(i,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[_].destroy(null,(function(e){e?n(e):t(d(void 0,!0))}))}))})),r),p);e.exports=function(e){var t,n=Object.create(R,(i(t={},_,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var r=n[_].read();r?(n[l]=null,n[s]=null,n[a]=null,e(d(r,!1))):(n[s]=e,n[a]=t)},writable:!0}),t));return n[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[a];return null!==t&&(n[l]=null,n[s]=null,n[a]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[l]=null,n[s]=null,n[a]=null,r(d(void 0,!0))),n[c]=!0})),e.on("readable",h.bind(null,n)),n}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,u,"next",e)}function u(e){r(s,i,o,a,u,"throw",e)}a(void 0)}))}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(39).codes.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,n){var r;if(t&&"function"==typeof t.next)r=t;else if(t&&t[Symbol.asyncIterator])r=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new a("iterable",["Iterable"],t);r=t[Symbol.iterator]()}var u=new e(function(e){for(var t=1;t0,(function(e){r||(r=e),e&&s.forEach(c),o||(s.forEach(c),i(r))}))}));return t.reduce(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(87)),i=l(n(88)),o=l(n(143)),s=l(n(144)),a=l(n(145)),u=l(n(47)),c=l(n(54));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){n=(0,s.default)(n);var r=0,o=0,{length:u}=e,c=!1;function l(e,t){!1===e&&(c=!0),!0!==c&&(e?n(e):++o!==u&&t!==i.default||n(null))}for(0===u&&n(null);r(t,n,c)=>{if(c=(0,r.default)(c),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return c(null);if((0,s.isAsyncGenerator)(t))return(0,a.default)(t,e,n,c);if((0,s.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,n,c);var l=(0,i.default)(t),f=!1,_=!1,d=0,E=!1;function h(e,t){if(!_)if(d-=1,e)f=!0,c(e);else if(!1===e)f=!0,_=!0;else{if(t===u.default||f&&d<=0)return f=!0,c(null);E||p()}}function p(){for(E=!0;d{u(t,null,e)},e=>{u(t,e&&e.message?e:new Error(e))})}function u(e,t,n){try{e(t,n)}catch(e){(0,i.default)(e=>{throw e},e)}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var n=t.pop();return e.call(this,t,n)}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=a,t.wrap=u;var r,i=t.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,o=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,s=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function a(e){setTimeout(e,0)}function u(e){return(t,...n)=>e(()=>t(...n))}r=i?queueMicrotask:o?setImmediate:s?process.nextTick:a,t.default=u(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){let i=!1,s=!1,a=!1,u=0,c=0;function l(){u>=t||a||i||(a=!0,e.next().then(({value:e,done:t})=>{if(!s&&!i){if(a=!1,t)return i=!0,void(u<=0&&r(null));u++,n(e,c,f),c++,l()}}).catch(_))}function f(e,t){if(u-=1,!s)return e?_(e):!1===e?(i=!0,void(s=!0)):t===o.default||i&&u<=0?(i=!0,r(null)):void l()}function _(e){s||(a=!1,i=!0,r(e))}l()};var r,i=n(88),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,n,r)=>e(t,r)},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){for(var n=0;n0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)c.endEmitted?N(e,new T):v(e,c,t,!0);else if(c.ended)N(e,new g);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?v(e,c,t,!1):C(e,c)):v(e,c,t,!1)}else r||(c.reading=!1,C(e,c));return!c.ended&&(c.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(w,e))}function w(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,U(e)}function C(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(D,e,t))}function D(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){u("readable nexttick read 0"),e.read(0)}function B(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(G,t,e))}function G(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function x(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):S(this),null;if(0===(e=y(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){N(this,new A("_read()"))},O.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,u("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:h;function s(t,i){u("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),e.removeListener("close",d),e.removeListener("finish",E),e.removeListener("drain",c),e.removeListener("error",_),e.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",h),n.removeListener("data",f),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function a(){u("onend"),e.end()}r.endEmitted?process.nextTick(o):n.once("end",o),e.on("unpipe",s);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,U(e))}}(n);e.on("drain",c);var l=!1;function f(t){u("ondata");var i=e.write(t);u("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==x(r.pipes,e))&&!l&&(u("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function _(t){u("onerror",t),h(),e.removeListener("error",_),0===i(e,"error")&&N(e,t)}function d(){e.removeListener("finish",E),h()}function E(){u("onfinish"),e.removeListener("close",d),h()}function h(){u("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",_),e.once("close",d),e.once("finish",E),e.emit("pipe",n),r.flowing||(u("pipe resume"),n.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u("on readable",r.length,r.reading),r.length?S(this):r.reading||process.nextTick(L,this))),n},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(M,this),n},O.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(M,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(B,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,n,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=i,r=a,s.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return a(this,function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return i(this,c),(e=u.call(this,t)).name=t.name||"console",e.stderrLevels=e._stringArrayToSet(t.stderrLevels),e.consoleWarnLevels=e._stringArrayToSet(t.consoleWarnLevels),e.eol="string"==typeof t.eol?t.eol:l.EOL,e.setMaxListeners(30),e}return t=c,(n=[{key:"log",value:function(e,t){var n=this;return setImmediate((function(){return n.emit("logged",e)})),this.stderrLevels[e[_]]?(console._stderr?console._stderr.write("".concat(e[d]).concat(this.eol)):console.error(e[d]),void(t&&t())):this.consoleWarnLevels[e[_]]?(console._stderr?console._stderr.write("".concat(e[d]).concat(this.eol)):console.warn(e[d]),void(t&&t())):(console._stdout?console._stdout.write("".concat(e[d]).concat(this.eol)):console.log(e[d]),void(t&&t()))}},{key:"_stringArrayToSet",value:function(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce((function(e,n){if("string"!=typeof n)throw new Error(t);return e[n]=!0,e}),{})}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(E)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};function n(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:function(){};if(this.silent)return n(),!0;if(this._drain)this._stream.once("drain",(function(){t._drain=!1,t.log(e,n)}));else{if(!this._rotate){var r="".concat(e[h]).concat(this.eol),i=Buffer.byteLength(r);this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var o=this._stream.write(r,s.bind(this));return o?n():(this._drain=!0,this._stream.once("drain",(function(){t._drain=!1,n()}))),T("written",o,this._drain),this.finishIfEnding(),o}this._stream.once("rotate",(function(){t._rotate=!1,t.log(e,n)}))}function s(){var t=this;this._size+=i,this._pendingSize-=i,T("logged %s %s",this._size,r),this.emit("logged",e),this._opening||this._needsNewFile()&&(this._rotate=!0,this._endStream((function(){return t._rotateFile()})))}}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={}),e=function(e){return(e=e||{}).rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,"object"!==r(e.until)&&(e.until=new Date(e.until)),e.from=e.from||e.until-864e5,"object"!==r(e.from)&&(e.from=new Date(e.from)),e.order=e.order||"desc",e}(e);var n=_.join(this.dirname,this.filename),i="",o=[],s=0,a=f.createReadStream(n,{encoding:"utf8"});function u(t,n){try{var i=JSON.parse(t);(function(t){if(t&&"object"===r(t)){var n=new Date(t.timestamp);if(!(e.from&&ne.until||e.level&&e.level!==t.level))return!0}})(i)&&function(t){e.rows&&o.length>=e.rows&&"desc"!==e.order?a.readable&&a.destroy():(e.fields&&(t=e.fields.reduce((function(e,n){return e[n]=t[n],e}),{})),"desc"===e.order&&o.length>=e.rows&&o.shift(),o.push(t))}(i)}catch(e){n||a.emit("error",e)}}a.on("error",(function(e){if(a.readable&&a.destroy(),t)return"ENOENT"!==e.code?t(e):t(null,o)})),a.on("data",(function(t){for(var n=(t=(i+t).split(/\n+/)).length-1,r=0;r=e.start)&&u(t[r]),s++;i=t[n]})),a.on("close",(function(){i&&u(i,!0),"desc"===e.order&&(o=o.reverse()),t&&t(null,o)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=_.join(this.dirname,this.filename),n=new R,r={file:t,start:e.start};return n.destroy=m(r,(function(e,t){if(e)return n.emit("error",e);try{n.emit("data",t),t=JSON.parse(t),n.emit("log",t)}catch(e){n.emit("error",e)}})),n}},{key:"open",value:function(){var e=this;this.filename&&(this._opening||(this._opening=!0,this.stat((function(t,n){if(t)return e.emit("error",t);T("stat done: %s { size: %s }",e.filename,n),e._size=n,e._dest=e._createStream(e._stream),e._opening=!1,e.once("open",(function(){e._stream.eventNames().includes("rotate")?e._stream.emit("rotate"):e._rotate=!1}))}))))}},{key:"stat",value:function(e){var t=this,n=this._getFile(),r=_.join(this.dirname,n);f.stat(r,(function(i,o){return i&&"ENOENT"===i.code?(T("ENOENT ok",r),t.filename=n,e(null,0)):i?(T("err ".concat(i.code," ").concat(r)),e(i)):!o||t._needsNewFile(o.size)?t._incFile((function(){return t.stat(e)})):(t.filename=n,void e(null,o.size))}))}},{key:"close",value:function(e){var t=this;this._stream&&this._stream.end((function(){e&&e(),t.emit("flush"),t.emit("closed")}))}},{key:"_needsNewFile",value:function(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}},{key:"_onError",value:function(e){this.emit("error",e)}},{key:"_setupStream",value:function(e){return e.on("error",this._onError),e}},{key:"_cleanupStream",value:function(e){return e.removeListener("error",this._onError),e}},{key:"_rotateFile",value:function(){var e=this;this._incFile((function(){return e.open()}))}},{key:"_endStream",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end((function(){e._cleanupStream(e._dest),t()}))):t()}},{key:"_createStream",value:function(e){var t=this,n=_.join(this.dirname,this.filename);T("create stream start",n,this.options);var r=f.createWriteStream(n,this.options).on("error",(function(e){return T(e)})).on("close",(function(){return T("close",r.path,r.bytesWritten)})).on("open",(function(){T("file open ok",n),t.emit("open",n),e.pipe(r),t.rotatedWhileOpening&&(t._stream=new g,t._stream.setMaxListeners(30),t._rotateFile(),t.rotatedWhileOpening=!1,t._cleanupStream(r),e.end())}));if(T("create stream ok",n),this.zippedArchive){var i=E.createGzip();return i.pipe(r),i}return r}},{key:"_incFile",value:function(e){T("_incFile",this.filename);var t=_.extname(this._basename),n=_.basename(this._basename,t);this.tailable?this._checkMaxFilesTailable(t,n,e):(this._created+=1,this._checkMaxFilesIncrementing(t,n,e))}},{key:"_getFile",value:function(){var e=_.extname(this._basename),t=_.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created,r=!this.tailable&&this._created?"".concat(t).concat(n).concat(e):"".concat(t).concat(e);return this.zippedArchive&&!this.tailable?"".concat(r,".gz"):r}},{key:"_checkMaxFilesIncrementing",value:function(e,t,n){if(!this.maxFiles||this._created1;s--)i.push(function(n,r){var i=this,s="".concat(t).concat(n-1).concat(e).concat(o),a=_.join(this.dirname,s);f.exists(a,(function(u){if(!u)return r(null);s="".concat(t).concat(n).concat(e).concat(o),f.rename(a,_.join(i.dirname,s),r)}))}.bind(this,s));d(i,(function(){f.rename(_.join(r.dirname,"".concat(t).concat(e)),_.join(r.dirname,"".concat(t,"1").concat(e).concat(o)),n)}))}}},{key:"_createLogDirIfNotExist",value:function(e){f.existsSync(e)||f.mkdirSync(e,{recursive:!0})}}])&&o(t.prototype,n),u&&o(t,u),Object.defineProperty(t,"prototype",{writable:!1}),p}(A)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(i.default,e,t)};var r=o(n(317)),i=o(n(318));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(87)),i=s(n(47)),o=s(n(54));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((e,t,n)=>{var o=(0,r.default)(t)?[]:{};e(t,(e,t,n)=>{(0,i.default)(e)((e,...r)=>{r.length<2&&([r]=r),o[t]=r,n(e)})},e=>n(e,o))},3),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(143)),i=o(n(54));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,n){return(0,r.default)(e,1,t,n)}),3),e.exports=t.default},function(e,t,n){"use strict";var r=n(14),i=n(105).StringDecoder,o=n(53).Stream;function s(){}e.exports=function(e,t){var n=Buffer.alloc(65536),a=new i("utf8"),u=new o,c="",l=0,f=0;return-1===e.start&&delete e.start,u.readable=!0,u.destroy=function(){u.destroyed=!0,u.emit("end"),u.emit("close")},r.open(e.file,"a+","0644",(function(i,o){if(i)return t?t(i):u.emit("error",i),void u.destroy();!function i(){if(!u.destroyed)return r.read(o,n,0,n.length,l,(function(r,o){if(r)return t?t(r):u.emit("error",r),void u.destroy();if(!o)return c&&((null==e.start||f>e.start)&&(t?t(null,c):u.emit("line",c)),f++,c=""),setTimeout(i,1e3);var s=a.write(n.slice(0,o));t||u.emit("data",s);for(var _=(s=(c+s).split(/\n+/)).length-1,d=0;d<_;d++)(null==e.start||f>e.start)&&(t?t(null,s[d]):u.emit("line",s[d])),f++;return c=s[_],l+=o,i()}));r.close(o,s)}()})),t?u.destroy:u}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return a(this,s),(e=i.call(this,t)).options=t,e.name=t.name||"http",e.ssl=!!t.ssl,e.host=t.host||"localhost",e.port=t.port,e.auth=t.auth,e.path=t.path||"",e.agent=t.agent,e.headers=t.headers||{},e.headers["content-type"]="application/json",e.port||(e.port=e.ssl?443:80),e}return t=s,(n=[{key:"log",value:function(e,t){var n=this;this._request(e,(function(t,r){r&&200!==r.statusCode&&(t=new Error("Invalid HTTP Status Code: ".concat(r.statusCode))),t?n.emit("warn",t):n.emit("logged",e)})),t&&setImmediate(t)}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={}),(e={method:"query",params:this.normalizeQuery(e)}).params.path&&(e.path=e.params.path,delete e.params.path),e.params.auth&&(e.auth=e.params.auth,delete e.params.auth),this._request(e,(function(e,n,r){if(n&&200!==n.statusCode&&(e=new Error("Invalid HTTP Status Code: ".concat(n.statusCode))),e)return t(e);if("string"==typeof r)try{r=JSON.parse(r)}catch(e){return t(e)}t(null,r)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new h;(e={method:"stream",params:e}).params.path&&(e.path=e.params.path,delete e.params.path),e.params.auth&&(e.auth=e.params.auth,delete e.params.auth);var n="",r=this._request(e);return t.destroy=function(){return r.destroy()},r.on("data",(function(e){for(var r=(e=(n+e).split(/\n+/)).length-1,i=0;i0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,c),e=u.call(this,t),!t.stream||!l(t.stream))throw new Error("options.stream is required.");return e._stream=t.stream,e._stream.setMaxListeners(1/0),e.isObjectMode=t.stream._writableState.objectMode,e.eol="string"==typeof t.eol?t.eol:_.EOL,e}return t=c,(n=[{key:"log",value:function(e,t){var n=this;if(setImmediate((function(){return n.emit("logged",e)})),this.isObjectMode)return this._stream.write(e),void(t&&t());this._stream.write("".concat(e[f]).concat(this.eol)),t&&t()}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(d)},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(33),s=i(n(17)),a=n(16),u=n(57),c=n(89);onNet(c.PhoneEvents.FETCH_CREDENTIALS,()=>{const e=(0,o.getSource)(),t=s.default.getPlayer(e).getPhoneNumber();emitNet(c.PhoneEvents.SEND_CREDENTIALS,e,t)}),a.config.general.useResourceIntegration||on("playerJoining",()=>r(void 0,void 0,void 0,(function*(){const e=(0,o.getSource)();yield s.default.handleNewPlayerJoined(e)}))),on("playerDropped",()=>r(void 0,void 0,void 0,(function*(){const e=(0,o.getSource)();try{yield s.default.handleUnloadPlayerEvent(e)}catch(t){u.playerLogger.debug(e+" failed to unload, likely was never loaded in the first place.")}}))),a.config.general.useResourceIntegration||on("onServerResourceStart",e=>r(void 0,void 0,void 0,(function*(){if(e===GetCurrentResourceName()){const e=getPlayers();for(const t of e)yield s.default.handleNewPlayerJoined(parseInt(t))}})))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.findOrGeneratePhoneNumber=void 0;const o=n(16),s=i(n(21)),a=n(155),u=n(57);t.findOrGeneratePhoneNumber=function(e){return r(this,void 0,void 0,(function*(){const t=`SELECT ${o.config.database.phoneNumberColumn} FROM ${o.config.database.playerTable} WHERE ${o.config.database.identifierColumn} = ? LIMIT 1`,[n]=yield s.default._rawExec(t,[e]);u.playerLogger.debug("Find user for number generation data >"),u.playerLogger.debug(n);const r=n;if(r&&r[0]&&null!==r[0][o.config.database.phoneNumberColumn])return r[0][o.config.database.phoneNumberColumn];u.playerLogger.debug("Phone number was returned as null, generating new number");const i=yield(0,a.generateUniquePhoneNumber)();u.playerLogger.debug("Phone number generated > "+i);const c=`UPDATE ${o.config.database.playerTable} SET ${o.config.database.phoneNumberColumn} = ? WHERE ${o.config.database.identifierColumn} = ?`,l=yield s.default._rawExec(c,[i,e]);return l&&l[0]&&l[0].affectedRows||(u.playerLogger.error("Failed to store phone number in database"),u.playerLogger.error(`UPDATE ${o.config.database.playerTable} SET ${o.config.database.phoneNumberColumn} = ${i} WHERE ${o.config.database.identifierColumn} = ${e}`)),i}))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withProfile=void 0;const i=n(10).mainLogger.child({module:"profiler"}),o=GetCurrentResourceName();t.withProfile=(e,...t)=>r(void 0,void 0,void 0,(function*(){const n=process.hrtime.bigint();ScheduleResourceTick(o);const r=yield e(...t),s=process.hrtime.bigint(),a=Number(s-n)/1e6;return i.info(`Executed '${e.name} (${[...t].join(", ")}) in ${a}ms'`),r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Player=void 0;t.Player=class{constructor({source:e,identifier:t,phoneNumber:n,username:r}){this.source=e,this._identifier=t,this._phoneNumber=n,this.username=r}getIdentifier(){return this._identifier}setIdentifier(e){return this._identifier=e,this}getFirstName(){return this._firstname}setFirstName(e){return this._firstname=e,this}getLastName(){return this._lastname}setLastName(e){return this._lastname=e,this}getName(){return this._firstname&&this._lastname?`${this._firstname} ${this._lastname}`:null}getPhoneNumber(){return this._phoneNumber}setPhoneNumber(e){return this._phoneNumber=e,this}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPlayerGameLicense=void 0;const r=n(16);t.getPlayerGameLicense=e=>{const t=getPlayerIdentifiers(e.toString());let n;for(const e of t)e.includes(r.config.database.identifierType+":")&&(n=r.config.database.useIdentifierPrefix?e:e.split(":")[1]);return n||null}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerRepo=void 0;const o=n(75),s=i(n(21));class a{fetchIdentifierFromPhoneNumber(e){return r(this,void 0,void 0,(function*(){const t=`SELECT ${o.config.database.identifierColumn} FROM ${o.config.database.playerTable} WHERE ${o.config.database.phoneNumberColumn} = ?`,[n]=yield s.default._rawExec(t,[e]);return n[0][o.config.database.identifierColumn]||null}))}}t.PlayerRepo=a,t.default=new a},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._MarketplaceDB=void 0;const o=i(n(21));class s{addListing(e,t,n,i,s){return r(this,void 0,void 0,(function*(){const[r]=yield o.default._rawExec("INSERT INTO npwd_marketplace_listings (identifier, username, name, number, title, url, description) VALUES (?, ?, ?, ?, ?, ?, ?)",[e,t,n,i,s.title,s.url,s.description]);return r.insertId}))}fetchListings(){return r(this,void 0,void 0,(function*(){const[e]=yield o.default._rawExec("SELECT * FROM npwd_marketplace_listings WHERE reported = 0 ORDER BY id DESC");return e}))}deleteListing(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_marketplace_listings WHERE id = ? AND identifier = ?",[e,t])}))}deleteListingsOnDrop(e){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_marketplace_listings WHERE identifier = ? AND reported = 0",[e])}))}getListing(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT * FROM npwd_marketplace_listings WHERE id = ?",[e]);return t[0]}))}getListingIdsByIdentifier(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT id FROM npwd_marketplace_listings WHERE identifier = ?",[e]);return t}))}reportListing(e){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("UPDATE npwd_marketplace_listings SET reported = 1 WHERE id = ?",[e.id])}))}doesListingExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield o.default._rawExec("SELECT * FROM npwd_marketplace_listings WHERE title = ? AND identifier = ?",[e.title,t]);return n.length>0}))}doesReportExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield o.default._rawExec("SELECT * FROM npwd_marketplace_listings WHERE id = ? AND username = ? AND reported = 1",[e,t]);return n.length>0}))}}t._MarketplaceDB=s;const a=new s;t.default=a},function(e,t,n){e.exports=n(330)},function(e,t,n){"use strict";var r=n(13),i=n(161),o=n(331),s=n(170);function a(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=a(n(91));u.Axios=o,u.create=function(e){return a(s(u.defaults,e))},u.Cancel=n(171),u.CancelToken=n(350),u.isCancel=n(169),u.all=function(e){return Promise.all(e)},u.spread=n(351),u.isAxiosError=n(352),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(13),i=n(90),o=n(332),s=n(333),a=n(170),u=n(349),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var l=[s,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(o),i=Promise.resolve(e);l.length;)i=i.then(l.shift(),l.shift());return i}for(var f=e;n.length;){var _=n.shift(),d=n.shift();try{f=_(f)}catch(e){d(e);break}}try{i=s(f)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},l.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=l},function(e,t,n){"use strict";var r=n(13);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(13),i=n(334),o=n(169),s=n(91);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(13),i=n(91);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},function(e,t,n){"use strict";var r=n(13);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(13),i=n(162),o=n(337),s=n(90),a=n(163),u=n(340),c=n(341),l=n(93);e.exports=function(e){return new Promise((function(t,n){var f=e.data,_=e.headers,d=e.responseType;r.isFormData(f)&&delete _["Content-Type"];var E=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";_.Authorization="Basic "+btoa(h+":"+p)}var R=a(e.baseURL,e.url);function g(){if(E){var r="getAllResponseHeaders"in E?u(E.getAllResponseHeaders()):null,o={data:d&&"text"!==d&&"json"!==d?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:r,config:e,request:E};i(t,n,o),E=null}}if(E.open(e.method.toUpperCase(),s(R,e.params,e.paramsSerializer),!0),E.timeout=e.timeout,"onloadend"in E?E.onloadend=g:E.onreadystatechange=function(){E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))&&setTimeout(g)},E.onabort=function(){E&&(n(l("Request aborted",e,"ECONNABORTED",E)),E=null)},E.onerror=function(){n(l("Network Error",e,null,E)),E=null},E.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E)),E=null},r.isStandardBrowserEnv()){var A=(e.withCredentials||c(R))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;A&&(_[e.xsrfHeaderName]=A)}"setRequestHeader"in E&&r.forEach(_,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete _[t]:E.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(E.withCredentials=!!e.withCredentials),d&&"json"!==d&&(E.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&E.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){E&&(E.abort(),n(e),E=null)})),f||(f=null),E.send(f)}))}},function(e,t,n){"use strict";var r=n(13);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(13),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){"use strict";var r=n(13);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(13),i=n(162),o=n(163),s=n(90),a=n(40),u=n(41),c=n(164).http,l=n(164).https,f=n(23),_=n(80),d=n(168),E=n(93),h=n(92),p=/https:?/;e.exports=function(e){return new Promise((function(t,n){var R=function(e){t(e)},g=function(e){n(e)},A=e.data,T=e.headers;if("User-Agent"in T||"user-agent"in T?T["User-Agent"]||T["user-agent"]||(delete T["User-Agent"],delete T["user-agent"]):T["User-Agent"]="axios/"+d.version,A&&!r.isStream(A)){if(Buffer.isBuffer(A));else if(r.isArrayBuffer(A))A=Buffer.from(new Uint8Array(A));else{if(!r.isString(A))return g(E("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));A=Buffer.from(A,"utf-8")}T["Content-Length"]=A.length}var N=void 0;e.auth&&(N=(e.auth.username||"")+":"+(e.auth.password||""));var m=o(e.baseURL,e.url),I=f.parse(m),O=I.protocol||"http:";if(!N&&I.auth){var b=I.auth.split(":");N=(b[0]||"")+":"+(b[1]||"")}N&&delete T.Authorization;var v=p.test(O),y=v?e.httpsAgent:e.httpAgent,S={path:s(I.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:T,agent:y,agents:{http:e.httpAgent,https:e.httpsAgent},auth:N};e.socketPath?S.socketPath=e.socketPath:(S.hostname=I.hostname,S.port=I.port);var w,C=e.proxy;if(!C&&!1!==C){var D=O.slice(0,-1)+"_proxy",M=process.env[D]||process.env[D.toUpperCase()];if(M){var L=f.parse(M),B=process.env.no_proxy||process.env.NO_PROXY,U=!0;if(B)U=!B.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||("."===e[0]&&I.hostname.substr(I.hostname.length-e.length)===e||I.hostname===e))}));if(U&&(C={host:L.hostname,port:L.port,protocol:L.protocol},L.auth)){var P=L.auth.split(":");C.auth={username:P[0],password:P[1]}}}}C&&(S.headers.host=I.hostname+(I.port?":"+I.port:""),function e(t,n,r){if(t.hostname=n.host,t.host=n.host,t.port=n.port,t.path=r,n.auth){var i=Buffer.from(n.auth.username+":"+n.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.beforeRedirect=function(t){t.headers.host=t.host,e(t,n,t.href)}}(S,C,O+"//"+I.hostname+(I.port?":"+I.port:"")+S.path));var F=v&&(!C||p.test(C.protocol));e.transport?w=e.transport:0===e.maxRedirects?w=F?u:a:(e.maxRedirects&&(S.maxRedirects=e.maxRedirects),w=F?l:c),e.maxBodyLength>-1&&(S.maxBodyLength=e.maxBodyLength);var G=w.request(S,(function(t){if(!G.aborted){var n=t,o=t.req||G;if(204!==t.statusCode&&"HEAD"!==o.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(_.createUnzip()),delete t.headers["content-encoding"]}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:o};if("stream"===e.responseType)s.data=n,i(R,g,s);else{var a=[],u=0;n.on("data",(function(t){a.push(t),u+=t.length,e.maxContentLength>-1&&u>e.maxContentLength&&(n.destroy(),g(E("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o)))})),n.on("error",(function(t){G.aborted||g(h(t,e,null,o))})),n.on("end",(function(){var t=Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=r.stripBOM(t))),s.data=t,i(R,g,s)}))}}}));if(G.on("error",(function(t){G.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||g(h(t,e,null,G))})),e.timeout){var x=parseInt(e.timeout,10);if(isNaN(x))return void g(E("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",G));G.setTimeout(x,(function(){G.abort(),g(E("timeout of "+x+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",G))}))}e.cancelToken&&e.cancelToken.promise.then((function(e){G.aborted||(G.abort(),g(e))})),r.isStream(A)?A.on("error",(function(t){g(h(t,e,null,G))})).pipe(G):G.end(A)}))}},function(e,t,n){var r;e.exports=function(){if(!r){try{r=n(70)("follow-redirects")}catch(e){}"function"!=typeof r&&(r=function(){})}r.apply(null,arguments)}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(166)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return s(e,t,o,"day");if(t>=i)return s(e,t,i,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){const r=n(167),i=n(8);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(347);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),e.exports=n(166)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},function(e,t,n){"use strict";const r=n(29),i=n(167),o=n(348),{env:s}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(0===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const n=a||0;if("dumb"===s.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in s)||"codeship"===s.CI_NAME?1:n;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:n}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?a=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=1),"FORCE_COLOR"in s&&(a="true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(parseInt(s.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(c(e,e&&e.isTTY))},stdout:u(c(!0,i.isatty(1))),stderr:u(c(!0,i.isatty(2)))}},function(e,t,n){"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||rr[i])return!0;if(n[i]0;){var o=r[i],s=t[o];if(s){var a=e[o],u=void 0===a||s(a,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},function(e,t,n){"use strict";var r=n(171);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=t.Delay=void 0;t.Delay=e=>new Promise(t=>setTimeout(t,e));t.uuidv4=()=>{let e="";for(let t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(172),o=n(33),s=r(n(355)),a=n(173),u=n(34);(0,u.onNetPromise)(i.CallEvents.INITIALIZE_CALL,(e,t)=>{s.default.handleInitializeCall(e,t).catch(e=>{t({status:"error",errorMsg:"SERVER_ERROR"}),a.callLogger.error("Error occured handling init call: "+e.message)})}),(0,o.onNetTyped)(i.CallEvents.ACCEPT_CALL,({transmitterNumber:e})=>{const t=(0,o.getSource)();s.default.handleAcceptCall(t,e).catch(t=>a.callLogger.error(`Error occured in accept call event (${e}), Error: ${t.message}`))}),(0,o.onNetTyped)(i.CallEvents.REJECTED,e=>{const t=(0,o.getSource)();s.default.handleRejectCall(t,e.transmitterNumber).catch(t=>a.callLogger.error(`Error occured in rejectcall event (${e.transmitterNumber}), Error: ${t.message}`))}),(0,u.onNetPromise)(i.CallEvents.END_CALL,(e,t)=>{s.default.handleEndCall(e,t).catch(n=>{a.callLogger.error(`Error occured in end call event (${e.data.transmitterNumber}), Error: ${n.message}`),t({status:"error",errorMsg:"SERVER_ERROR"})})}),(0,u.onNetPromise)(i.CallEvents.FETCH_CALLS,(e,t)=>{s.default.handleFetchCalls(e,t).catch(e=>{t({status:"error",errorMsg:"SERVER_ERROR"}),a.callLogger.error("Error occured in fetch call event, Error: "+e.message)})})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(156)),s=n(172),a=i(n(356)),u=n(385),c=i(n(17)),l=n(173),f=n(33),_=n(10);t.default=new class{constructor(){this.callMap=new o.default,this.callsDB=a.default,l.callLogger.debug("Call service started")}setCallInMap(e,t){this.callMap.set(e,t),l.callLogger.debug(`Call obj set with key ${e}, value:`),l.callLogger.debug(t)}handleInitializeCall(e,t){return r(this,void 0,void 0,(function*(){const n=c.default.getPlayer(e.source),r=n.getPhoneNumber(),i=yield c.default.getIdentifierFromPhoneNumber(e.data.receiverNumber,!0),o=Math.floor((new Date).getTime()/1e3),a=(0,u.v4)(),_={identifier:a,transmitter:r,receiver:e.data.receiverNumber,is_accepted:!1,start:o.toString()};if(!i)return yield this.callsDB.saveCall(_),t({status:"ok",data:{transmitter:r,isTransmitter:!0,receiver:e.data.receiverNumber,isUnavailable:!0,is_accepted:!1,start:o.toString(),identifier:a}});const d=c.default.getPlayerFromIdentifier(i);if(!d)return yield this.callsDB.saveCall(_),t({status:"ok",data:{is_accepted:!1,transmitter:r,isTransmitter:!0,receiver:e.data.receiverNumber,isUnavailable:!0,start:o.toString(),identifier:a}});l.callLogger.debug("Receiving Identifier: "+i),l.callLogger.debug(`Receiving source: ${d.source} `);const E={identifier:a,transmitter:r,transmitterSource:n.source,receiver:e.data.receiverNumber,receiverSource:d.source,start:o.toString(),is_accepted:!1};this.setCallInMap(E.transmitter,E);try{yield this.callsDB.saveCall(E)}catch(e){l.callLogger.error(`Unable to save call object for transmitter number ${r}. Error: ${e.message}`),t({status:"error",errorMsg:"DATABASE_ERROR"})}t({status:"ok",data:{is_accepted:!1,transmitter:r,receiver:e.data.receiverNumber,isTransmitter:!0,start:o.toString(),identifier:a}}),(0,f.emitNetTyped)(s.CallEvents.START_CALL,{is_accepted:!1,transmitter:r,receiver:e.data.receiverNumber,isTransmitter:!1},d.source)}))}handleAcceptCall(e,t){return r(this,void 0,void 0,(function*(){const n=this.callMap.get(t);n.is_accepted=!0;const r=e;yield this.callsDB.updateCall(n,!0,null),l.callLogger.debug(`Call with key ${t} was updated to be accepted`),(0,f.emitNetTyped)(s.CallEvents.WAS_ACCEPTED,{is_accepted:!0,transmitter:t,receiver:n.receiver,isTransmitter:!1,channelId:r},n.receiverSource),_.mainLogger.debug(n),(0,f.emitNetTyped)(s.CallEvents.WAS_ACCEPTED,{is_accepted:!0,transmitter:t,receiver:n.receiver,isTransmitter:!0,channelId:r},n.transmitterSource)}))}handleFetchCalls(e,t){return r(this,void 0,void 0,(function*(){try{const n=c.default.getPlayer(e.source).getPhoneNumber(),r=yield this.callsDB.fetchCalls(n);t({status:"ok",data:r})}catch(e){t({status:"error",errorMsg:"DATABASE_ERROR"}),console.error("Error while fetching calls, "+e.message)}}))}handleRejectCall(e,t){return r(this,void 0,void 0,(function*(){const e=this.callMap.get(t),n=Math.floor((new Date).getTime()/1e3);e?(emitNet(s.CallEvents.WAS_REJECTED,e.transmitterSource),emitNet(s.CallEvents.WAS_REJECTED,e.receiverSource),yield this.callsDB.updateCall(e,!1,n),this.callMap.delete(t)):l.callLogger.error(`Call with transmitter number ${t} does not exist in current calls map!`)}))}handleEndCall(e,t){return r(this,void 0,void 0,(function*(){const n=e.data.transmitterNumber,r=Math.floor((new Date).getTime()/1e3);if(e.data.isUnavailable)return emitNet(s.CallEvents.WAS_ENDED,e.source),void t({status:"ok"});const i=this.callMap.get(n);if(!i)return l.callLogger.error(`Call with transmitter number ${n} does not exist in current calls map!`),t({status:"error",errorMsg:"DOES_NOT_EXIST"});i&&(emitNet(s.CallEvents.WAS_ENDED,i.receiverSource),emitNet(s.CallEvents.WAS_ENDED,i.transmitterSource)),t({status:"ok"}),yield this.callsDB.updateCall(i,null==i?void 0:i.is_accepted,r),this.callMap.delete(n)}))}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsRepo=void 0;const o=n(357),s=i(n(21));class a{saveCall(e){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("INSERT INTO npwd_calls (identifier, transmitter, receiver, `start`) VALUES (?, ?, ?, ?)",[e.identifier,e.transmitter,e.receiver,e.start])}))}updateCall(e,t,n){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("UPDATE npwd_calls SET is_accepted=?, end=? WHERE identifier = ?",[t,n,e.identifier])}))}fetchCalls(e,t=o.FetchDefaultLimits.CALLS_FETCH_LIMIT){return r(this,void 0,void 0,(function*(){const[n]=yield s.default._rawExec("SELECT * FROM npwd_calls WHERE receiver = ? OR transmitter = ? ORDER BY id DESC LIMIT ?",[e,e,t]);return n}))}}t.CallsRepo=a,t.default=new a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchDefaultLimits=void 0,function(e){e[e.NOTES_FETCH_LIMIT=20]="NOTES_FETCH_LIMIT",e[e.CALLS_FETCH_LIMIT=50]="CALLS_FETCH_LIMIT",e[e.CONTACTS_FETCH_LIMIT=20]="CONTACTS_FETCH_LIMIT"}(t.FetchDefaultLimits||(t.FetchDefaultLimits={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(359),s=i(n(360)),a=n(174),u=n(34);(0,u.onNetPromise)(o.NotesEvents.ADD_NOTE,(e,t)=>{s.default.handleAddNote(e,t).catch(n=>{a.notesLogger.error(`Error occured in add note event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"UNKNOWN_ERROR"})})}),(0,u.onNetPromise)(o.NotesEvents.FETCH_ALL_NOTES,(e,t)=>{s.default.handleFetchNotes(e,t).catch(n=>{a.notesLogger.error(`Error occurred in fetch note event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"UNKNOWN_ERROR"})})}),(0,u.onNetPromise)(o.NotesEvents.DELETE_NOTE,(e,t)=>r(void 0,void 0,void 0,(function*(){s.default.handleDeleteNote(e,t).catch(n=>{a.notesLogger.error(`Error occured in delete note event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"UNKNOWN_ERROR"})})}))),(0,u.onNetPromise)(o.NotesEvents.UPDATE_NOTE,(e,t)=>r(void 0,void 0,void 0,(function*(){s.default.handleUpdateNote(e,t).catch(n=>{a.notesLogger.error(`Error occured in fetch note event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"UNKNOWN_ERROR"})})})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotesEvents=void 0,function(e){e.ADD_NOTE="npwd:addNote",e.FETCH_ALL_NOTES="npwd:fetchAllNotes",e.DELETE_NOTE="npwd:deleteNote",e.UPDATE_NOTE="npwd:updateNote",e.ADD_NOTE_EXPORT="npwd:addNoteExport"}(t.NotesEvents||(t.NotesEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(17)),s=i(n(361)),a=n(174);const u=new class{constructor(){this.notesDB=s.default,a.notesLogger.debug("Notes service started")}handleAddNote(e,t){return r(this,void 0,void 0,(function*(){a.notesLogger.debug("Handling add note, note:"),a.notesLogger.debug(e.data);const n=o.default.getIdentifier(e.source);try{const r=yield this.notesDB.addNote(n,e.data);t({status:"ok",data:{id:r,content:e.data.content,title:e.data.title}})}catch(e){a.notesLogger.error("Error in handleAddNote, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleFetchNotes(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{const e=yield this.notesDB.fetchNotes(n);t({status:"ok",data:e})}catch(e){a.notesLogger.error("Error in handleFetchNote, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleUpdateNote(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.notesDB.updateNote(e.data,n),t({status:"ok"})}catch(e){a.notesLogger.error("Error in handleUpdateNote, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleDeleteNote(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.notesDB.deleteNote(e.data.id,n),t({status:"ok",data:e.data})}catch(e){a.notesLogger.error("Error in handleDeleteNote, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}};t.default=u},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._NotesDB=void 0;const o=i(n(21));class s{addNote(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield o.default._rawExec("INSERT INTO npwd_notes (identifier, title, content) VALUES (?, ?, ?)",[e,t.title,t.content]);return n.insertId}))}fetchNotes(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT * FROM npwd_notes WHERE identifier = ? ORDER BY id DESC",[e]);return t}))}deleteNote(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_notes WHERE id = ? AND identifier = ?",[e,t])}))}updateNote(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("UPDATE npwd_notes SET title = ?, content = ? WHERE id = ? AND identifier = ?",[e.title,e.content,e.id,t])}))}}t._NotesDB=s;const a=new s;t.default=a},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(175),o=r(n(363)),s=n(176),a=n(34);(0,a.onNetPromise)(i.ContactEvents.GET_CONTACTS,(e,t)=>{o.default.handleFetchContacts(e,t).catch(n=>{s.contactsLogger.error(`Error occured in fetch contacts event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.ContactEvents.ADD_CONTACT,(e,t)=>{o.default.handleAddContact(e,t).catch(n=>{s.contactsLogger.error(`Error occured in fetch contacts event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.ContactEvents.UPDATE_CONTACT,(e,t)=>{o.default.handleUpdateContact(e,t).catch(n=>{s.contactsLogger.error(`Error occured in update contact event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.ContactEvents.DELETE_CONTACT,(e,t)=>{o.default.handleDeleteContact(e,t).catch(n=>{s.contactsLogger.error(`Error occured in delete contact event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(17)),s=n(176),a=i(n(364)),u=n(175),c=n(58);const l=new class{constructor(){this.contactsDB=a.default,s.contactsLogger.debug("Contacts service started")}handleUpdateContact(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{const r=(0,c.checkAndFilterImage)(e.data.avatar);if(null==r)return t({status:"error",errorMsg:"GENERIC_INVALID_IMAGE_HOST"});e.data.avatar=r,yield this.contactsDB.updateContact(e.data,n),t({status:"ok"})}catch(e){s.contactsLogger.error(`Error in handleUpdateContact (${n}), ${e.message}`),t({status:"error",errorMsg:u.ContactResp.UPDATE_FAILED})}}))}handleDeleteContact(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.contactsDB.deleteContact(e.data.id,n),t({status:"ok"})}catch(e){t({status:"error",errorMsg:"GENERIC_DB_ERROR"}),s.contactsLogger.error(`Error in handleDeleteContact (${n}), ${e.message}`)}}))}handleAddContact(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{const r=(0,c.checkAndFilterImage)(e.data.avatar);if(null==r)return t({status:"error",errorMsg:"GENERIC_INVALID_IMAGE_HOST"});e.data.avatar=r;const i=yield this.contactsDB.addContact(n,e.data);t({status:"ok",data:i})}catch(e){s.contactsLogger.error("Error in handleAddContact, "+e.message),t({status:"error",errorMsg:u.ContactResp.ADD_FAILED})}}))}handleFetchContacts(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{const e=yield this.contactsDB.fetchAllContacts(n);t({status:"ok",data:e})}catch(e){t({status:"error",errorMsg:"GENERIC_DB_ERROR"}),s.contactsLogger.error(`Error in handleFetchContact (${n}), ${e.message}`)}}))}};t.default=l},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._ContactsDB=void 0;const o=i(n(21));class s{fetchAllContacts(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT * FROM npwd_phone_contacts WHERE identifier = ? ORDER BY display ASC",[e]);return t}))}addContact(e,{display:t,avatar:n,number:i}){return r(this,void 0,void 0,(function*(){const[r]=yield o.default._rawExec("INSERT INTO npwd_phone_contacts (identifier, number, display, avatar) VALUES (?, ?, ?, ?)",[e,i,t,n]);return{id:r.insertId,number:i,avatar:n,display:t}}))}updateContact(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("UPDATE npwd_phone_contacts SET number = ?, display = ?, avatar = ? WHERE id = ? AND identifier = ?",[e.number,e.display,e.avatar,e.id,t])}))}deleteContact(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_phone_contacts WHERE id = ? AND identifier = ?",[e,t])}))}}t._ContactsDB=s;const a=new s;t.default=a},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(177),o=r(n(366)),s=n(178),a=n(34);(0,a.onNetPromise)(i.PhotoEvents.UPLOAD_PHOTO,(e,t)=>{o.default.handleUploadPhoto(e,t).catch(n=>{s.photoLogger.error(`Error occurred in upload photo event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.PhotoEvents.FETCH_PHOTOS,(e,t)=>{o.default.handleFetchPhotos(e,t).catch(n=>{s.photoLogger.error(`Error occurred in upload photo event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.PhotoEvents.DELETE_PHOTO,(e,t)=>{o.default.handleDeletePhoto(e,t).catch(n=>{s.photoLogger.error(`Error occurred in delete photo event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(17)),s=n(177),a=i(n(367)),u=n(178),c=n(58);const l=new class{constructor(){this.photoDB=a.default,u.photoLogger.debug("Photo service started")}handleUploadPhoto(e,t){return r(this,void 0,void 0,(function*(){try{if(!e.data)return t({status:"error",errorMsg:s.PhotoResp.GENERIC});const n=(0,c.checkAndFilterImage)(e.data);if(null==n)return t({status:"error",errorMsg:s.PhotoResp.INVALID_IMAGE_HOST});const r=o.default.getIdentifier(e.source),i=yield this.photoDB.uploadPhoto(r,n);t({status:"ok",data:i})}catch(n){u.photoLogger.error("Failed to upload photo, "+n.message,{source:e.source}),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleFetchPhotos(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.photoDB.getPhotosByIdentifier(n);t({status:"ok",data:r})}catch(n){u.photoLogger.error("Failed to fetch photos, "+n.message,{source:e.source}),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleDeletePhoto(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source);yield this.photoDB.deletePhoto(e.data,n),t({status:"ok"})}catch(n){u.photoLogger.error("Failed to delete photo, "+n.message,{source:e.source}),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}};t.default=l},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._PhotoDB=void 0;const o=i(n(21));class s{uploadPhoto(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield o.default._rawExec("INSERT INTO npwd_phone_gallery (identifier, image) VALUES (?, ?)",[e,t]);return{id:n.insertId,image:t}}))}getPhotosByIdentifier(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT id, image FROM npwd_phone_gallery WHERE identifier = ? ORDER BY id DESC",[e]);return t}))}deletePhoto(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_phone_gallery WHERE image = ? AND identifier = ?",[e.image,t])}))}}t._PhotoDB=s;const a=new s;t.default=a},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(33),s=n(179),a=i(n(180)),u=n(182),c=n(34),l=n(369);(0,c.onNetPromise)(s.MessageEvents.FETCH_MESSAGE_CONVERSATIONS,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleFetchMessageConversations(e,t).catch(n=>{u.messagesLogger.error(`Error occurred in fetch message conversations (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.CREATE_MESSAGE_CONVERSATION,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleCreateMessageConversation(e,t).catch(n=>{u.messagesLogger.error(`Error occurred on creating messsage converations (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.FETCH_MESSAGES,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleFetchMessages(e,t).catch(n=>{u.messagesLogger.error(`Error occurred in fetch messages (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.SEND_MESSAGE,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleSendMessage(e,t).then(()=>r(void 0,void 0,void 0,(function*(){const t=l.OnMessageExportMap.get(e.data.tgtPhoneNumber);if(t)try{yield t({data:e.data,source:e.source})}catch(e){u.messagesLogger.error("Failed to find a callback reference for onMessage. Probably because the resource(s) using the export was stopped or restarted. Please restart said resource(s). Error: "+e.message)}}))).catch(n=>{u.messagesLogger.error(`Error occurred while sending message (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.DELETE_CONVERSATION,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleDeleteConversation(e,t).catch(n=>{u.messagesLogger.error(`Error occurred while deleting conversation (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.DELETE_MESSAGE,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleDeleteMessage(e,t).catch(n=>{u.messagesLogger.error(`Error occurred while deleting message (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),onNet(s.MessageEvents.SET_MESSAGE_READ,e=>r(void 0,void 0,void 0,(function*(){const t=(0,o.getSource)();a.default.handleSetMessageRead(t,e).catch(e=>u.messagesLogger.error(`Error occurred in set message read event (${t}), Error: ${e.message}`))})))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.onMessageRespond=t.OnMessageExportMap=void 0;const o=i(n(180)),s=global.exports;t.OnMessageExportMap=new Map,s("onMessage",(e,n)=>{t.OnMessageExportMap.set(e,n)});t.onMessageRespond=(e,t)=>r(void 0,void 0,void 0,(function*(){const n={source:e.source,data:{message:t,conversation_id:e.data.conversationId,author:e.data.tgtPhoneNumber,embed:!1,is_embed:!1}};yield o.default.handleOnMessageSendResponse(n)}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(159),s=n(158),a=i(n(157)),u=n(34);(0,u.onNetPromise)(o.MarketplaceEvents.FETCH_LISTING,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleFetchListings(e,t).catch(n=>{s.marketplaceLogger.error(`Error occurred in fetch listing event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,u.onNetPromise)(o.MarketplaceEvents.ADD_LISTING,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleAddListing(e,t).catch(n=>{s.marketplaceLogger.error(`Error occurred in add listing event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,u.onNetPromise)(o.MarketplaceEvents.DELETE_LISTING,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleDeleteListing(e,t).catch(n=>{s.marketplaceLogger.error(`Error occurred in delete listing event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,u.onNetPromise)(o.MarketplaceEvents.REPORT_LISTING,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleReportListing(e,t).catch(n=>{s.marketplaceLogger.error(`Error occurred in report listing event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),on(o.MarketplaceEvents.DELETE_LISTINGS_ON_DROP,e=>{a.default.handleDeleteListingsOnDrop(e).catch(e=>{s.marketplaceLogger.error("Error occurred when deleting listing on player drop event, Error: "+e.message)})})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(75),s=n(94),a=n(183),u=n(33),c=i(n(372)),l=n(34);if((0,l.onNetPromise)(a.TwitterEvents.GET_OR_CREATE_PROFILE,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleGetOrCreateProfile(e,t).catch(e=>{s.twitterLogger.error(`Error occurred in getOrCreateProfile event (${n}), Error: ${e.message}`)})}))),(0,l.onNetPromise)(a.TwitterEvents.CREATE_PROFILE,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleCreateProfile(e,t).catch(e=>s.twitterLogger.error(`Error occurred in createProfile event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.UPDATE_PROFILE,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleUpdateProfile(e,t).catch(e=>s.twitterLogger.error(`Error occurred in updateProfile event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.FETCH_TWEETS_FILTERED,(e,t)=>r(void 0,void 0,void 0,(function*(){console.log("getting some filtered tweets");const n=(0,u.getSource)();c.default.handleFetchTweetsFiltered(e,t).catch(e=>s.twitterLogger.error(`Error occurred in fetchTweetsFiltered event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.CREATE_TWEET,(e,t)=>r(void 0,void 0,void 0,(function*(){c.default.handleCreateTweet(e,t).catch(t=>{s.twitterLogger.error(`Error occurred in createTweet event (${e.source}), Error: ${t.message}`)})}))),(0,l.onNetPromise)(a.TwitterEvents.DELETE_TWEET,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleDeleteTweet(e,t).catch(e=>{s.twitterLogger.error(`Error occurred in deleteTweet event (${n}), Error: ${e.message}`)})}))),(0,l.onNetPromise)(a.TwitterEvents.TOGGLE_LIKE,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleToggleLike(e,t).catch(e=>{s.twitterLogger.error(`Error occurred in toggleEvent event (${n}), Error: ${e.message}`)})}))),(0,l.onNetPromise)(a.TwitterEvents.RETWEET,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleRetweet(e,t).catch(e=>s.twitterLogger.error(`Error occurred in retweet event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.REPORT,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleReport(e,t).catch(e=>s.twitterLogger.error(`Error occurred in report event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.FETCH_TWEETS,(e,t)=>{c.default.handleFetchTweets(e.source,e.data.pageId,t).catch(t=>s.twitterLogger.error(`Error occurred in fetchTweets event (${e.source}), Error: ${t.message}`))}),!o.config.twitter.allowEditableProfileName&&!o.config.twitter.generateProfileNameFromUsers){const e="Both allowEdtiableProfileName and generateProfileNameFromUsers are set false - this means users will likely not have profile names for the Twitter App and won't be able to use it!";s.twitterLogger.warn(e)}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(17)),s=i(n(373)),a=n(183),u=n(94),c=n(160),l=n(57),f=n(58);const _=new class{constructor(){this.twitterDB=s.default,u.twitterLogger.debug("Twitter service started")}handleGetOrCreateProfile(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{if(!n)return;const r=yield this.twitterDB.getOrCreateProfile(n);if(r)t({status:"ok",data:r});else{if(!(yield(0,l.getDefaultProfileNames)(e.source)))return}}catch(n){t({status:"error",errorMsg:n.message}),u.twitterLogger.error("Failed to get or create profile, "+n.message,{source:e.source})}}))}handleCreateProfile(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.twitterDB.createProfile(n,e.data.profile_name);t({status:"ok",data:r})}catch(n){u.twitterLogger.error("Failed to create twitter profile: "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleUpdateProfile(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=(0,f.checkAndFilterImage)(e.data.avatar_url);if(null==r)return t({status:"error",errorMsg:"GENERIC_INVALID_IMAGE_HOST"});e.data.avatar_url=r;const i=yield this.twitterDB.updateProfile(n,e.data);t({status:"ok",data:i})}catch(n){u.twitterLogger.error("Failed to update twitter profile: "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleFetchTweets(e,t,n){return r(this,void 0,void 0,(function*(){try{const r=o.default.getIdentifier(e),i=yield this.twitterDB.getProfile(r);if(!i)return u.twitterLogger.warn(`Aborted fetching tweets for user ${r} because they do not have a profile.`);const s=yield this.twitterDB.fetchAllTweets(i.id,t);n({data:s,status:"ok"})}catch(t){u.twitterLogger.error("Fetching tweets failed, "+t.message,{source:e}),n({status:"error",errorMsg:t.message})}}))}handleFetchTweetsFiltered(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.twitterDB.getProfile(n),i=yield this.twitterDB.fetchTweetsFiltered(r.id,e.data.searchValue);t({status:"ok",data:i})}catch(n){u.twitterLogger.error("Fetch filtered tweets failed, "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleCreateTweet(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source);let r="";const i=e.data.images.split("||!||");for(let e=0;et=>Object.assign(Object.assign({},t),{isMine:t.profile_id===e,isRetweet:1===t.isRetweet});class _{fetchAllTweets(e,t){return r(this,void 0,void 0,(function*(){const n=25*(t="number"==typeof t?t:1),r=`\n SELECT ${l}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n WHERE npwd_twitter_tweets.visible = 1\n ORDER BY id DESC\n LIMIT ? OFFSET ?\n\t\t`,[i]=yield c.default._rawExec(r,[e,e,25,n]);return i.map(f(e))}))}fetchTweetsFiltered(e,t){return r(this,void 0,void 0,(function*(){const n=`%${t}%`,r=`\n SELECT ${l}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n WHERE npwd_twitter_tweets.visible = 1\n AND (npwd_twitter_profiles.profile_name LIKE ? OR npwd_twitter_tweets.message LIKE ?)\n ORDER BY npwd_twitter_tweets.id DESC\n LIMIT 25\n\t\t`,[i]=yield c.default._rawExec(r,[e,e,n,n]);return i.map(f(e))}))}getTweet(e,t){return r(this,void 0,void 0,(function*(){const n=`\n SELECT ${l}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n WHERE npwd_twitter_tweets.id = ?\n\t\t`,[r]=yield c.default._rawExec(n,[e,e,t]);return r.map(f(e))[0]}))}createTweet(e,t){return r(this,void 0,void 0,(function*(){const n=yield this.getProfile(e),[r]=yield c.default._rawExec("\n INSERT INTO npwd_twitter_tweets (identifier, message, images, retweet)\n VALUES (?, ?, ?, ?)\n\t\t",[e,t.message,t.images,t.retweet]),i=r;return yield this.getTweet(n.id,i.insertId)}))}createTweetReport(e,t){return r(this,void 0,void 0,(function*(){yield o.pool.execute("\n INSERT INTO npwd_twitter_reports (tweet_id, profile_id)\n VALUES (?, ?)\n\t\t",[e,t])}))}getProfile(e){return r(this,void 0,void 0,(function*(){const[t]=yield c.default._rawExec("\n SELECT *\n FROM npwd_twitter_profiles\n WHERE identifier = ?\n LIMIT 1\n\t\t",[e]),n=t;return n.length>0?n[0]:null}))}createProfile(e,t){return r(this,void 0,void 0,(function*(){return yield o.pool.execute("\n INSERT INTO npwd_twitter_profiles (identifier, profile_name)\n VALUES (?, ?)\n\t\t",[e,t]),yield this.getProfile(e)}))}createDefaultProfile(e){return r(this,void 0,void 0,(function*(){if(!s.config.twitter.generateProfileNameFromUsers)return null;const t=yield(0,a.generateProfileName)(e);return t?(u.twitterLogger.info(`Creating default Twitter profile ${t} for ${e}`),yield this.createProfile(e,t)):null}))}getOrCreateProfile(e){return r(this,void 0,void 0,(function*(){return(yield this.getProfile(e))||(yield this.createDefaultProfile(e))}))}updateProfile(e,t){return r(this,void 0,void 0,(function*(){const{avatar_url:n,profile_name:r}=t;return yield o.pool.execute("\n UPDATE npwd_twitter_profiles\n SET avatar_url = ?,\n profile_name = ?\n WHERE identifier = ?\n\t\t",[n,r,e]),t}))}createLike(e,t){return r(this,void 0,void 0,(function*(){yield o.pool.execute("\n INSERT INTO npwd_twitter_likes (profile_id, tweet_id)\n VALUES (?, ?)\n\t\t",[e,t])}))}deleteLike(e,t){return r(this,void 0,void 0,(function*(){yield o.pool.execute("\n DELETE\n FROM npwd_twitter_likes\n WHERE profile_id = ?\n AND tweet_id = ?\n\t\t",[e,t])}))}deleteTweet(e,t){return r(this,void 0,void 0,(function*(){if(!s.config.twitter.allowDeleteTweets)return;yield o.pool.execute("\n DELETE\n FROM npwd_twitter_tweets\n WHERE identifier = ?\n AND id = ?\n\t\t",[e,t])}))}doesLikeExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield c.default._rawExec("\n SELECT *\n FROM npwd_twitter_likes\n WHERE profile_id = ?\n AND tweet_id = ?\n LIMIT 1\n\t\t",[e,t]);return n.length>0}))}doesReportExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield c.default._rawExec("\n SELECT *\n FROM npwd_twitter_reports\n WHERE tweet_id = ?\n AND profile_id = ?\n LIMIT 1\n\t\t",[e,t]);return n.length>0}))}doesRetweetExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield c.default._rawExec("\n SELECT COUNT(id) as count\n FROM npwd_twitter_tweets\n WHERE (id = ? OR retweet = ?)\n AND identifier = ?\n\t\t",[e,e,t]);return n[0].count>0}))}}t._TwitterDB=_;const d=new _;t.default=d},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(185),o=r(n(375)),s=n(33),a=n(95),u=n(16),c=n(34);if((0,c.onNetPromise)(i.MatchEvents.GET_PROFILES,(e,t)=>{o.default.handleGetProfiles(e,t).catch(n=>{a.matchLogger.error(`Error occurred in fetch profiles event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.GET_MY_PROFILE,(e,t)=>{o.default.handleGetMyProfile(e,t).catch(n=>{a.matchLogger.error(`Error occurred in fetch my profile event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.GET_MATCHES,(e,t)=>{o.default.handleGetMatches(e,t).catch(n=>{a.matchLogger.error(`Error occurred in fetch matches event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.SAVE_LIKES,(e,t)=>{o.default.handleSaveLikes(e,t).catch(n=>{a.matchLogger.error(`Error occurred in save likes event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.CREATE_MY_PROFILE,(e,t)=>{o.default.handleCreateMyProfile(e,t).catch(n=>{a.matchLogger.error(`Error occurred in create my profile event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.UPDATE_MY_PROFILE,(e,t)=>{o.default.handleUpdateMyProfile(e,t).catch(n=>{a.matchLogger.error(`Error occurred in update my profile event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),onNet(i.MatchEvents.INITIALIZE,()=>{const e=(0,s.getSource)();o.default.handleInitialize(e).catch(t=>a.matchLogger.error(`Error occurred in initialize event (${e}), Error: ${t.message}`))}),!u.config.match.allowEditableProfileName&&!u.config.match.generateProfileNameFromUsers){const e="Both allowEdtiableProfileName and generateProfileNameFromUsers are set false - this means users will likely not have profile names for the Match App and won't be able to use it!";a.matchLogger.warn(e)}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(95),s=i(n(377)),a=n(185),u=i(n(17)),c=n(58);const l=new class{constructor(){this.matchDB=s.default,o.matchLogger.debug("Match service started")}handleGetProfiles(e,t){return r(this,void 0,void 0,(function*(){const n=u.default.getIdentifier(e.source);try{const e=yield this.dispatchProfiles(n);t({status:"ok",data:e})}catch(e){o.matchLogger.error("Error in handleGetProfiles, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleGetMyProfile(e,t){return r(this,void 0,void 0,(function*(){const n=u.default.getIdentifier(e.source);try{const e=yield this.dispatchPlayerProfile(n);t({status:"ok",data:e})}catch(e){o.matchLogger.error("Error in handleGetMyProfile, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleSaveLikes(e,t){return r(this,void 0,void 0,(function*(){const n=u.default.getIdentifier(e.source);o.matchLogger.debug("Saving likes for identifier "+n);try{yield this.matchDB.saveLikes(n,e.data)}catch(e){o.matchLogger.error("Failed to save likes, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}try{(yield this.matchDB.findNewMatches(n,e.data)).length>0?t({status:"ok",data:!0}):t({status:"ok",data:!1})}catch(e){o.matchLogger.error("Failed to find new matches, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleGetMatches(e,t){return r(this,void 0,void 0,(function*(){const n=u.default.getIdentifier(e.source);try{const e=(yield this.matchDB.findAllMatches(n)).map(o.formatMatches);t({status:"ok",data:e})}catch(e){o.matchLogger.error("Failed to retrieve matches, "+e.message),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleCreateMyProfile(e,t){return r(this,void 0,void 0,(function*(){const n=u.default.getIdentifier(e.source),r=e.data;o.matchLogger.debug("Creating profile for identifier: "+n),o.matchLogger.debug(r);try{if(!r.name||!r.name.trim())throw new Error("Profile name must not be blank");const e=yield this.matchDB.createProfile(n,r),i=(0,o.formatProfile)(e);t({status:"ok",data:i})}catch(e){o.matchLogger.error(`Failed to update profile for identifier ${n}, ${e.message}`),t({status:"error",errorMsg:"GENERIC_DB_ERROR"})}}))}handleUpdateMyProfile(e,t){return r(this,void 0,void 0,(function*(){const n=u.default.getIdentifier(e.source),r=e.data;o.matchLogger.debug("Updating profile for identifier: "+n),o.matchLogger.debug(r);try{if(!r.name||!r.name.trim())throw new Error("Profile name must not be blank");const i=(0,c.checkAndFilterImage)(e.data.image);if(null==i)return t({status:"error",errorMsg:"GENERIC_INVALID_IMAGE_HOST"});e.data.image=i;const s=yield this.matchDB.updateProfile(n,r),a=(0,o.formatProfile)(s);t({status:"ok",data:a})}catch(e){o.matchLogger.error(`Failed to update profile for identifier ${n}, ${e.message}`),t({status:"error",errorMsg:a.MatchResp.UPDATE_FAILED})}}))}dispatchPlayerProfile(e){return r(this,void 0,void 0,(function*(){try{const t=yield this.matchDB.getOrCreateProfile(e);return(0,o.formatProfile)(t)}catch(e){o.matchLogger.error("Failed to get player profile, "+e.message)}}))}dispatchProfiles(e){return r(this,void 0,void 0,(function*(){try{return(yield this.matchDB.getPotentialProfiles(e)).map(o.formatProfile)}catch(e){o.matchLogger.error("Failed to retrieve profiles, "+e.message)}}))}handleInitialize(e){return r(this,void 0,void 0,(function*(){const t=u.default.getIdentifier(e);o.matchLogger.debug("Initializing match for identifier: "+t),yield this.matchDB.updateLastActive(t)}))}};t.default=l},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",s="day",a="week",u="month",c="quarter",l="year",f="date",_="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},R={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+p(r,2,"0")+":"+p(i,2,"0")},m:function e(t,n){if(t.date()[e,t.id,t.liked]);return yield c.default._rawExec("INSERT INTO npwd_match_views (identifier, profile, liked)\n VALUES ?",[n])}))}checkForMatchById(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield c.default._rawExec("\n SELECT targetProfile.*,\n UNIX_TIMESTAMP(targetProfile.updatedAt) AS lastActive\n FROM npwd_match_views\n LEFT OUTER JOIN npwd_match_profiles AS playerProfile ON npwd_match_views.profile = playerProfile.id\n LEFT OUTER JOIN npwd_match_profiles AS targetProfile\n ON npwd_match_views.identifier = targetProfile.identifier\n WHERE playerProfile.identifier = ?\n AND targetProfile.id = ?\n AND Liked = 1\n\t\t",[e,t]);return n}))}findAllMatches(e){return r(this,void 0,void 0,(function*(){const t=`\n SELECT targetProfile.*,\n UNIX_TIMESTAMP(targetProfile.updatedAt) AS lastActive,\n UNIX_TIMESTAMP(GREATEST(npwd_match_views.createdAt, targetViews.createdAt)) AS matchedAt,\n targetUser.${s.config.database.phoneNumberColumn} AS phoneNumber\n FROM npwd_match_views\n LEFT OUTER JOIN npwd_match_profiles AS targetProfile ON npwd_match_views.profile = targetProfile.id\n LEFT OUTER JOIN npwd_match_profiles AS myProfile ON npwd_match_views.identifier = myProfile.identifier\n LEFT OUTER JOIN npwd_match_views AS targetViews\n ON targetProfile.identifier = targetViews.identifier AND\n targetViews.profile = myProfile.id\n LEFT OUTER JOIN ${s.config.database.playerTable} AS targetUser ON targetProfile.identifier = targetUser.${s.config.database.identifierColumn}\n WHERE npwd_match_views.identifier = ?\n AND npwd_match_views.liked = 1\n AND targetViews.liked = 1\n ORDER BY matchedAt DESC\n\t\t`,[n]=yield c.default._rawExec(t,[e]);return n}))}getPlayerProfile(e){return r(this,void 0,void 0,(function*(){const[t]=yield c.default._rawExec("\n SELECT *,\n UNIX_TIMESTAMP(updatedAt) AS lastActive\n FROM npwd_match_profiles\n WHERE identifier = ?\n LIMIT 1\n\t\t",[e]);return t[0]}))}createProfile(e,t){return r(this,void 0,void 0,(function*(){const{name:n,image:r,bio:i,location:s,job:a,tags:u}=t;return yield o.pool.execute("\n INSERT INTO npwd_match_profiles (identifier, name, image, bio, location, job, tags)\n VALUES (?, ?, ?, ?, ?, ?, ?)\n ",[e,n,r,i,s,a,u]),yield this.getPlayerProfile(e)}))}updateProfile(e,t){return r(this,void 0,void 0,(function*(){const{image:n,name:r,bio:i,location:s,job:a,tags:u}=t;return yield o.pool.execute("\n UPDATE npwd_match_profiles\n SET image = ?, name = ?, bio = ?, location = ?, job = ?, tags = ?\n WHERE identifier = ?\n ",[n,r,i,s,a,u,e]),yield this.getPlayerProfile(e)}))}createDefaultProfile(e){return r(this,void 0,void 0,(function*(){if(!s.config.match.generateProfileNameFromUsers)return null;const t=yield(0,a.generateProfileName)(e," ");if(!t)return null;const n={name:t,image:"https://upload.wikimedia.org/wikipedia/commons/a/ac/No_image_available.svg",bio:"",location:"",job:"",tags:""};return u.matchLogger.info(`Creating default match profile ${t} for ${e}`),yield this.createProfile(e,n)}))}findNewMatches(e,t){return r(this,void 0,void 0,(function*(){let n=[];for(const r of t){if(!r.liked)continue;const t=yield this.checkForMatchById(e,r.id);n=n.concat(t)}return n}))}getOrCreateProfile(e){return r(this,void 0,void 0,(function*(){return(yield this.getPlayerProfile(e))||(yield this.createDefaultProfile(e))}))}updateLastActive(e){return r(this,void 0,void 0,(function*(){yield o.pool.execute("\n UPDATE npwd_match_profiles\n SET updatedAt = CURRENT_TIMESTAMP()\n WHERE identifier = ?\n ",[e])}))}}t._MatchDB=l;const f=new l;t.default=f},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(155),s=n(379),a=n(16),u=n(57),c=i(n(17)),l=n(89),f=global.exports;f("generatePhoneNumber",()=>r(void 0,void 0,void 0,(function*(){const e=yield(0,o.generateUniquePhoneNumber)();var t,n;return t="generatePhoneNumber",n=e,s.bridgeLogger.debug(`[${t}] ${n}`),e}))),a.config.general.useResourceIntegration&&(f("newPlayer",e=>r(void 0,void 0,void 0,(function*(){if("number"!=typeof e.source)return u.playerLogger.error("Source must be passed as a number when loading a player");yield c.default.handleNewPlayerEvent(e),emitNet(l.PhoneEvents.SET_PLAYER_LOADED,e.source,!0)}))),f("unloadPlayer",e=>r(void 0,void 0,void 0,(function*(){if("number"!=typeof e)return u.playerLogger.error("Source must be passed as a number when unloading a player");u.playerLogger.debug("Received unloadPlayer event for "+e),yield c.default.handleUnloadPlayerEvent(e)}))))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bridgeLogger=void 0;const r=n(10);t.bridgeLogger=r.mainLogger.child({module:"bridge"})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(77)),s=i(n(100)),a=i(n(23)),u=i(n(165)),c=i(n(70)),l=n(381),f=i(n(383)),_=c.default("https-proxy-agent:agent");class d extends l.Agent{constructor(e){let t;if(t="string"==typeof e?a.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");_("creating new HttpsProxyAgent instance: %o",t),super(t);const n=Object.assign({},t);var r;this.secureProxy=t.secureProxy||"string"==typeof(r=n.protocol)&&/^https:?$/i.test(r),n.host=n.hostname||n.host,"string"==typeof n.port&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,t){return r(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:r}=this;let i;r?(_("Creating `tls.Socket`: %o",n),i=s.default.connect(n)):(_("Creating `net.Socket`: %o",n),i=o.default.connect(n));const a=Object.assign({},n.headers);let c=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r\n`;n.auth&&(a["Proxy-Authorization"]="Basic "+Buffer.from(n.auth).toString("base64"));let{host:l,port:d,secureEndpoint:h}=t;(function(e,t){return Boolean(!t&&80===e||t&&443===e)})(d,h)||(l+=":"+d),a.Host=l,a.Connection="close";for(const e of Object.keys(a))c+=`${e}: ${a[e]}\r\n`;const p=f.default(i);i.write(c+"\r\n");const{statusCode:R,buffered:g}=yield p;if(200===R){if(e.once("socket",E),t.secureEndpoint){const e=t.servername||t.host;if(!e)throw new Error('Could not determine "servername"');return _("Upgrading socket connection to TLS"),s.default.connect(Object.assign(Object.assign({},function(e,...t){const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}(t,"host","hostname","path","port")),{socket:i,servername:e}))}return i}i.destroy();const A=new o.default.Socket;return A.readable=!0,e.once("socket",e=>{_("replaying proxy buffer for failed request"),u.default(e.listenerCount("data")>0),e.push(g),e.push(null)}),A}))}}function E(e){e.resume()}t.default=d},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(25),o=r(n(70)),s=r(n(382)),a=o.default("agent-base");function u(){const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}function c(e,t){return new c.Agent(e,t)}!function(e){class t extends i.EventEmitter{constructor(e,t){super();let n=t;"function"==typeof e?this.callback=e:e&&(n=e),this.timeout=null,n&&"number"==typeof n.timeout&&(this.timeout=n.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:u()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:u()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const n=Object.assign({},t);"boolean"!=typeof n.secureEndpoint&&(n.secureEndpoint=u()),null==n.host&&(n.host="localhost"),null==n.port&&(n.port=n.secureEndpoint?443:80),null==n.protocol&&(n.protocol=n.secureEndpoint?"https:":"http:"),n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let r=!1,i=null;const o=n.timeout||this.timeout,c=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},l=()=>{i=null,r=!0;const e=new Error(`A "socket" was not created for HTTP request before ${o}ms`);e.code="ETIMEOUT",c(e)},f=e=>{r||(null!==i&&(clearTimeout(i),i=null),c(e))},_=t=>{if(r)return;if(null!=i&&(clearTimeout(i),i=null),o=t,Boolean(o)&&"function"==typeof o.addRequest)return a("Callback returned another Agent instance %o",t.constructor.name),void t.addRequest(e,n);var o;if(t)return t.once("free",()=>{this.freeSocket(t,n)}),void e.onSocket(t);const s=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);c(s)};if("function"==typeof this.callback){this.promisifiedCallback||(this.callback.length>=3?(a("Converting legacy callback function to promise"),this.promisifiedCallback=s.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof o&&o>0&&(i=setTimeout(l,o)),"port"in n&&"number"!=typeof n.port&&(n.port=Number(n.port));try{a("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(_,f)}catch(e){Promise.reject(e).catch(f)}}else c(new Error("`callback` is not defined"))}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype}(c||(c={})),e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){return new Promise((r,i)=>{e.call(this,t,n,(e,t)=>{e?i(e):r(t)})})}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(70)).default("https-proxy-agent:parse-proxy-response");t.default=function(e){return new Promise((t,n)=>{let r=0;const o=[];function s(){const n=e.read();n?function(e){o.push(e),r+=e.length;const n=Buffer.concat(o,r);if(-1===n.indexOf("\r\n\r\n"))return i("have not received end of HTTP headers yet..."),void s();const a=n.toString("ascii",0,n.indexOf("\r\n")),u=+a.split(" ")[1];i("got proxy server response: %o",a),t({statusCode:u,buffered:n})}(n):e.once("readable",s)}function a(e){i("onclose had error %o",e)}function u(){i("onend")}function c(t){e.removeListener("end",u),e.removeListener("error",c),e.removeListener("close",a),e.removeListener("readable",s),i("onerror %o",t),n(t)}e.on("error",c),e.on("close",a),e.on("end",u),s()})}},function(e,t,n){"use strict";n.r(t),n.d(t,"Severity",(function(){return l.a})),n.d(t,"Status",(function(){return u})),n.d(t,"addGlobalEventProcessor",(function(){return f.b})),n.d(t,"addBreadcrumb",(function(){return g})),n.d(t,"captureException",(function(){return E})),n.d(t,"captureEvent",(function(){return p})),n.d(t,"captureMessage",(function(){return h})),n.d(t,"configureScope",(function(){return R})),n.d(t,"getHubFromCarrier",(function(){return _.c})),n.d(t,"getCurrentHub",(function(){return _.b})),n.d(t,"Hub",(function(){return _.a})),n.d(t,"makeMain",(function(){return _.e})),n.d(t,"Scope",(function(){return f.a})),n.d(t,"startTransaction",(function(){return v})),n.d(t,"SDK_VERSION",(function(){return y})),n.d(t,"setContext",(function(){return A})),n.d(t,"setExtra",(function(){return m})),n.d(t,"setExtras",(function(){return T})),n.d(t,"setTag",(function(){return I})),n.d(t,"setTags",(function(){return N})),n.d(t,"setUser",(function(){return O})),n.d(t,"withScope",(function(){return b})),n.d(t,"NodeBackend",(function(){return ce})),n.d(t,"NodeClient",(function(){return Ne})),n.d(t,"defaultIntegrations",(function(){return Ke})),n.d(t,"init",(function(){return qe})),n.d(t,"lastEventId",(function(){return Xe})),n.d(t,"flush",(function(){return ze})),n.d(t,"close",(function(){return Ze})),n.d(t,"getSentryRelease",(function(){return $e})),n.d(t,"deepReadDirSync",(function(){return et})),n.d(t,"SDK_NAME",(function(){return J})),n.d(t,"Integrations",(function(){return Yt})),n.d(t,"Transports",(function(){return r})),n.d(t,"Handlers",(function(){return a}));var r={};n.r(r),n.d(r,"BaseTransport",(function(){return ee})),n.d(r,"HTTPTransport",(function(){return se})),n.d(r,"HTTPSTransport",(function(){return ue}));var i={};n.r(i),n.d(i,"FunctionToString",(function(){return me})),n.d(i,"InboundFilters",(function(){return Oe}));var o={};n.r(o),n.d(o,"Console",(function(){return Se})),n.d(o,"Http",(function(){return Fe})),n.d(o,"OnUncaughtException",(function(){return je})),n.d(o,"OnUnhandledRejection",(function(){return Qe})),n.d(o,"LinkedErrors",(function(){return He})),n.d(o,"Modules",(function(){return Ye}));var s={};n.r(s),n.d(s,"Express",(function(){return yt})),n.d(s,"Postgres",(function(){return Ct})),n.d(s,"Mysql",(function(){return Dt})),n.d(s,"Mongo",(function(){return Bt}));var a={};n.r(a),n.d(a,"tracingHandler",(function(){return Ft})),n.d(a,"extractRequestData",(function(){return jt})),n.d(a,"parseRequest",(function(){return Qt})),n.d(a,"requestHandler",(function(){return Ht})),n.d(a,"errorHandler",(function(){return Wt}));var u,c=n(0),l=n(388);!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(u||(u={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(u||(u={}));var f=n(72),_=n(35);function d(e){for(var t=[],n=1;n1&&(f=d.slice(0,-1).join("/"),_=d.pop()),_){var E=_.match(/^\d+/);E&&(_=E[0])}this._fromComponents({host:a,pass:s,path:f,projectId:_,port:l,protocol:r,publicKey:i})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new C("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new C("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new C("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new C("Invalid Dsn: Invalid port "+this.port)},e}(),x=n(389),k=n(14),j=n(188);var Q=new j.LRUMap(100);function H(e){try{return e.functionName||e.typeName+"."+(e.methodName||"")}catch(e){return""}}var V=(n.c[n.s]&&n.c[n.s].filename&&Object(x.b)(n.c[n.s].filename)||global.process.cwd())+"/";function W(e){var t,n=(t=e).stack?t.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return{columnNumber:null,fileName:e,functionName:null,lineNumber:null,methodName:null,native:null,typeName:null};var t=e.match(/at (?:(.+?)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(t){var n=null,r=null,i=null,o=null,s=null,a="native"===t[5];if(t[1]){var u=(i=t[1]).lastIndexOf(".");if("."===i[u-1]&&u--,u>0){n=i.substr(0,u),r=i.substr(u+1);var c=n.indexOf(".Module");c>0&&(i=i.substr(c+1),n=n.substr(0,c))}o=null}return r&&(o=n,s=r),""===r&&(s=null,i=null),{columnNumber:parseInt(t[4],10)||null,fileName:t[2]||null,functionName:i,lineNumber:parseInt(t[3],10)||null,methodName:s,native:a,typeName:o}}})).filter((function(e){return!!e})):[];return n||[]}function Y(e,t){var n=[],r=t&&void 0!==t.frameContextLines?t.frameContextLines:7,i=e.map((function(e){var t,i={colno:e.columnNumber,filename:(null===(t=e.fileName)||void 0===t?void 0:t.startsWith("file://"))?e.fileName.substr(7):e.fileName||"",function:H(e),lineno:e.lineNumber},o=e.native||i.filename&&!i.filename.startsWith("/")&&!i.filename.startsWith(".")&&1!==i.filename.indexOf(":\\");return i.in_app=!o&&void 0!==i.filename&&-1===i.filename.indexOf("node_modules/"),i.filename&&(i.module=function(e,t){t||(t=V);var n=Object(x.a)(e,".js"),r=(e=Object(x.b)(e)).lastIndexOf("/node_modules/");if(r>-1)return e.substr(r+14).replace(/\//g,".")+":"+n;if(0===(r=(e+"/").lastIndexOf(t,0))){var i=e.substr(t.length).replace(/\//g,".");return i&&(i+=":"),i+=n}return n}(i.filename),!o&&r>0&&-1===n.indexOf(i.filename)&&n.push(i.filename)),i}));if(r<=0)return D.a.resolve(i);try{return function(e,t,n){return new D.a((function(r){return(i=e,0===i.length?D.a.resolve({}):new D.a((function(e){for(var t={},n=0,r=function(r){var o=i[r],s=Q.get(o);if(void 0!==s)return null!==s&&(t[o]=s),++n===i.length&&e(t),"continue";Object(k.readFile)(o,(function(r,s){var a=r?null:s.toString();t[o]=a,Q.set(o,a),++n===i.length&&e(t)}))},o=0;o0&&n(!1)}),e);D.a.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),Z=n(23),J="sentry.javascript.node",$={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},ee=function(){function e(e){this.options=e,this._buffer=new z(30),this._rateLimits={},this.urlParser=function(e){return new Z.URL(e)},this._api=new X(e.dsn,e._metadata,e.tunnel)}return e.prototype.sendEvent=function(e){throw new C("Transport Class has to implement `sendEvent` method.")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._getProxy=function(e){var t,n,r=process.env,i=r.no_proxy,o=r.http_proxy,s=r.https_proxy,a=this.options,u=a.httpProxy,l=a.httpsProxy,f="http"===e?u||o:l||u||s||o;if(!i)return f;var _=this._api.getDsn(),d=_.host,E=_.port;try{for(var h=Object(c.h)(i.split(",")),p=h.next();!p.done;p=h.next()){var R=p.value;if(d.endsWith(R)||(d+":"+E).endsWith(R))return}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return f},e.prototype._getRequestOptions=function(e){var t=Object(c.a)(Object(c.a)({},this._api.getRequestHeaders(J,y)),this.options.headers),n=e.hostname,r=e.pathname,i=e.port,o=e.protocol,s=""+r;return Object(c.a)({agent:this.client,headers:t,hostname:n,method:"POST",path:s,port:i,protocol:o},this.options.caCerts&&{ca:k.readFileSync(this.options.caCerts)})},e.prototype._disabledUntil=function(e){var t=$[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,i,o=Date.now(),s=e["x-sentry-rate-limits"],a=e["retry-after"];if(s){try{for(var u=Object(c.h)(s.trim().split(",")),l=u.next();!l.done;l=u.next()){var f=l.value.split(":",2),_=parseInt(f[0],10),d=1e3*(isNaN(_)?60:_);try{for(var E=(r=void 0,Object(c.h)(f[1]&&f[1].split(";")||["all"])),h=E.next();!h.done;h=E.next()){var p=h.value;Object(c.g)(Object.keys($).map((function(e){return $[e]})),["all"]).includes(p)&&(this._rateLimits[p]=new Date(o+d))}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=E.return)&&i.call(E)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return!0}return!!a&&(this._rateLimits.all=new Date(o+Object(P.f)(o,a)),!0)},e.prototype._send=function(e,t){return Object(c.b)(this,void 0,void 0,(function(){var n=this;return Object(c.d)(this,(function(r){if(!this.module)throw new C("No module available");return t&&this._isRateLimited(e.type)?[2,Promise.reject({payload:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})]:[2,this._buffer.add((function(){return new Promise((function(t,r){if(!n.module)throw new C("No module available");var i=n._getRequestOptions(n.urlParser(e.url)),o=n.module.request(i,(function(i){var o=i.statusCode||500,s=u.fromHttpCode(o);i.setEncoding("utf8");var a=i.headers?i.headers["retry-after"]:"";a=Array.isArray(a)?a[0]:a;var c=i.headers?i.headers["x-sentry-rate-limits"]:"",l={"x-sentry-rate-limits":c=Array.isArray(c)?c[0]:c,"retry-after":a};if(n._handleRateLimit(l)&&S.b.warn("Too many "+e.type+" requests, backing off until: "+n._disabledUntil(e.type)),s===u.Success)t({status:s});else{var f="HTTP Error ("+o+")";i.headers&&i.headers["x-sentry-error"]&&(f+=": "+i.headers["x-sentry-error"]),r(new C(f))}i.on("data",(function(){})),i.on("end",(function(){}))}));o.on("error",r),o.end(e.body)}))}))]}))}))},e}();function te(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function ne(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=Object(c.g)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=Object(c.g)(e.sdk.packages||[],t.packages||[]),e):e}function re(e,t){var n=te(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(Object(c.a)(Object(c.a)({sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function ie(e,t){var n=te(t),r=e.type||"event",i="transaction"===r||t.forceEnvelope(),o=e.debug_meta||{},s=o.transactionSampling,a=Object(c.f)(o,["transactionSampling"]),u=s||{},l=u.method,f=u.rate;0===Object.keys(a).length?delete e.debug_meta:e.debug_meta=a;var _={body:JSON.stringify(n?ne(e,t.metadata.sdk):e),type:r,url:i?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(i){var d=JSON.stringify(Object(c.a)(Object(c.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:l,rate:f}]})+"\n"+_.body;_.body=d}return _}var oe=n(40),se=function(e){function t(t){var r=e.call(this,t)||this;r.options=t;var i=r._getProxy("http");return r.module=oe,r.client=i?new(n(186))(i):new oe.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),r}return Object(c.c)(t,e),t.prototype.sendEvent=function(e){return this._send(ie(e,this._api),e)},t.prototype.sendSession=function(e){return this._send(re(e,this._api),e)},t}(ee),ae=n(41),ue=function(e){function t(t){var r=e.call(this,t)||this;r.options=t;var i=r._getProxy("https");return r.module=ae,r.client=i?new(n(186))(i):new ae.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),r}return Object(c.c)(t,e),t.prototype.sendEvent=function(e){return this._send(ie(e,this._api),e)},t.prototype.sendSession=function(e){return this._send(re(e,this._api),e)},t}(ee),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.c)(t,e),t.prototype.eventFromException=function(e,t){var n=this,r=e,i=t&&t.data&&t.data.mechanism||{handled:!0,type:"generic"};if(!Object(B.b)(e)){if(Object(B.e)(e)){var o="Non-Error exception captured with keys: "+Object(U.b)(e);Object(_.b)().configureScope((function(t){t.setExtra("__serialized__",Object(U.e)(e))})),(r=t&&t.syntheticException||new Error(o)).message=o}else(r=t&&t.syntheticException||new Error(e)).message=e;i.synthetic=!0}return new D.a((function(e,o){return(s=r,a=n._options,new D.a((function(e){return K(s,a).then((function(t){e({exception:{values:[t]}})}))}))).then((function(n){Object(P.c)(n,void 0,void 0),Object(P.b)(n,i),e(Object(c.a)(Object(c.a)({},n),{event_id:t&&t.event_id}))})).then(null,o);var s,a}))},t.prototype.eventFromMessage=function(e,t,n){var r=this;void 0===t&&(t=l.a.Info);var i={event_id:n&&n.event_id,level:t,message:e};return new D.a((function(e){r._options.attachStacktrace&&n&&n.syntheticException?Y(n.syntheticException?W(n.syntheticException):[],r._options).then((function(t){i.stacktrace={frames:q(t)},e(i)})).then(null,(function(){e(i)})):e(i)}))},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=new G(this._options.dsn),n=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},this._options.transportOptions),this._options.httpProxy&&{httpProxy:this._options.httpProxy}),this._options.httpsProxy&&{httpsProxy:this._options.httpsProxy}),this._options.caCerts&&{caCerts:this._options.caCerts}),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(n):"http"===t.protocol?new se(n):new ue(n)},t}(L),le=n(390),fe=n(387),_e=n(51),de=n(44),Ee=[];function he(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function pe(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(c.g)(e.defaultIntegrations)||[],n=e.integrations,r=Object(c.g)(he(t));Array.isArray(n)?r=Object(c.g)(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),he(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((function(e){return e.name}));return-1!==i.indexOf("Debug")&&r.push.apply(r,Object(c.g)(r.splice(i.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Ee.indexOf(e.name)&&(e.setupOnce(f.b,_.b),Ee.push(e.name),S.b.log("Integration installed: "+e.name))}(e)})),Object.defineProperty(t,"initialized",{value:!0}),t}var Re,ge="Not capturing exception because it's already been captured.",Ae=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new G(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!Object(P.d)(e)){var i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i}S.b.log(ge)},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,s=Object(B.f)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r;if(!(null===(r=t)||void 0===r?void 0:r.originalException)||!Object(P.d)(t.originalException)){var i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){i=e}))),i}S.b.log(ge)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?S.b.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):S.b.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=pe(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return S.b.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i=!1,o=!1,s=t.exception&&t.exception.values;if(s){o=!0;try{for(var a=Object(c.h)(s),u=a.next();!u.done;u=a.next()){var l=u.value.mechanism;if(l&&!1===l.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var f=e.status===le.b.Ok;(f&&0===e.errors||f&&i)&&(e.update(Object(c.a)(Object(c.a)({},i&&{status:le.b.Crashed}),{errors:e.errors||Number(o||i)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new D.a((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,s=Object(c.a)(Object(c.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(P.i)()),timestamp:e.timestamp||Object(_e.b)()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var a=t;n&&n.captureContext&&(a=f.a.clone(a).update(n.captureContext));var u=D.a.resolve(s);return a&&(u=a.applyToEvent(s,n)),u.then((function(e){return"number"==typeof o&&o>0?r._normalizeEvent(e,o):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(c.a)(Object(c.a)({},e),e.data&&{data:Object(U.d)(e.data,t)})}))}),e.user&&{user:Object(U.d)(e.user,t)}),e.contexts&&{contexts:Object(U.d)(e.contexts,t)}),e.extra&&{extra:Object(U.d)(e.extra,t)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var r=this.getOptions()._experiments;return(void 0===r?{}:r).ensureNoCircularStructures?Object(U.d)(n):n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,s=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Object(de.d)(e.message,s));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Object(de.d)(a.value,s));var u=e.request;u&&u.url&&(u.url=Object(de.d)(u.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Object(c.g)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){S.b.error(e)}))},e.prototype._processEvent=function(e,t,n){var r,i,o=this,s=this.getOptions(),a=s.beforeSend,u=s.sampleRate,c=this.getTransport();if(!this._isEnabled())return D.a.reject(new C("SDK not enabled, will not capture event."));var l="transaction"===e.type;return!l&&"number"==typeof u&&Math.random()>u?(null===(i=(r=c).recordLostEvent)||void 0===i||i.call(r,fe.a.SampleRate,"event"),D.a.reject(new C("Discarding event because it's not included in the random sample (sampling rate = "+u+")"))):this._prepareEvent(e,n,t).then((function(n){var r,i;if(null===n)throw null===(i=(r=c).recordLostEvent)||void 0===i||i.call(r,fe.a.EventProcessor,e.type||"event"),new C("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||l||!a)return n;var s=a(n,t);return o._ensureBeforeSendRv(s)})).then((function(t){var r,i;if(null===t)throw null===(i=(r=c).recordLostEvent)||void 0===i||i.call(r,fe.a.BeforeSend,e.type||"event"),new C("`beforeSend` returned `null`, will not send event.");var s=n&&n.getSession&&n.getSession();return!l&&s&&o._updateSessionFromEvent(s,t),o._sendEvent(t),t})).then(null,(function(e){if(e instanceof C)throw e;throw o.captureException(e,{data:{__sentry__:!0},originalException:e}),new C("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e.prototype._ensureBeforeSendRv=function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Object(B.j)(e))return e.then((function(e){if(!Object(B.e)(e)&&null!==e)throw new C(t);return e}),(function(e){throw new C("beforeSend rejected with "+e)}));if(!Object(B.e)(e)&&null!==e)throw new C(t);return e},e}(),Te=function(){function e(e,t){var n=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=e,this._intervalId=setInterval((function(){return n.flush()}),1e3*this.flushTimeout),this._sessionAttrs=t}return e.prototype.sendSessionAggregates=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){S.b.error("Error while sending session: "+e)})):S.b.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.flush=function(){var e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this.sendSessionAggregates(e))},e.prototype.getSessionAggregates=function(){var e=this,t=Object.keys(this._pendingAggregates).map((function(t){return e._pendingAggregates[parseInt(t)]})),n={attrs:this._sessionAttrs,aggregates:t};return Object(U.a)(n)},e.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},e.prototype.incrementSessionStatusCount=function(){var e,t;if(this._isEnabled){var n=Object(_.b)().getScope(),r=null===(e=n)||void 0===e?void 0:e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),null===(t=n)||void 0===t||t.setRequestSession(void 0))}},e.prototype._incrementSessionStatusCount=function(e,t){var n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};var r=this._pendingAggregates[n];switch(r.started||(r.started=new Date(n).toISOString()),e){case le.a.Errored:return r.errored=(r.errored||0)+1,r.errored;case le.a.Ok:return r.exited=(r.exited||0)+1,r.exited;case le.a.Crashed:return r.crashed=(r.crashed||0)+1,r.crashed}},e}(),Ne=function(e){function t(t){return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.node",packages:[{name:"npm:@sentry/node",version:y}],version:y},e.call(this,ce,t)||this}return Object(c.c)(t,e),t.prototype.captureException=function(t,n,r){if(this._options.autoSessionTracking&&this._sessionFlusher&&r){var i=r.getRequestSession();i&&i.status===le.a.Ok&&(i.status=le.a.Errored)}return e.prototype.captureException.call(this,t,n,r)},t.prototype.captureEvent=function(t,n,r){if(this._options.autoSessionTracking&&this._sessionFlusher&&r&&("exception"===(t.type||"exception")&&t.exception&&t.exception.values&&t.exception.values.length>0)){var i=r.getRequestSession();i&&i.status===le.a.Ok&&(i.status=le.a.Errored)}return e.prototype.captureEvent.call(this,t,n,r)},t.prototype.close=function(t){var n;return null===(n=this._sessionFlusher)||void 0===n||n.close(),e.prototype.close.call(this,t)},t.prototype.initSessionFlusher=function(){var e=this._options,t=e.release,n=e.environment;t?this._sessionFlusher=new Te(this.getTransport(),{release:t,environment:n}):S.b.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"node",this.getOptions().serverName&&(t.server_name=this.getOptions().serverName),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._captureRequestSession=function(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():S.b.warn("Discarded request mode session because autoSessionTracking option was disabled")},t}(Ae),me=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Re=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t=0;r--){var i=e[r];if(""!==(null===(t=i)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(n=i)||void 0===n?void 0:n.filename))return i.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return this._getLastValidUrl(t)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(t){return S.b.error("Cannot extract url for event "+Object(P.e)(e)),null}},e.id="InboundFilters",e}();var be=n(9),ve=n(50),ye=n(8),Se=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){var e,t;try{for(var n=Object(c.h)(["debug","info","warn","error","log"]),r=n.next();!r.done;r=n.next()){var i=r.value;Object(U.c)(console,i,we(i))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.id="Console",e}();function we(e){return function(t){var n;switch(e){case"debug":n=l.a.Debug;break;case"error":n=l.a.Error;break;case"info":n=l.a.Info;break;case"warn":n=l.a.Warning;break;default:n=l.a.Log}return function(){Object(_.b)().getIntegration(Se)&&Object(_.b)().addBreadcrumb({category:"console",level:n,message:ye.format.apply(void 0,arguments)},{input:Object(c.g)(arguments),level:e}),t.apply(this,arguments)}}}var Ce=Object(P.g)(process.versions.node);function De(e){var t,n=null===(t=Object(_.b)().getClient())||void 0===t?void 0:t.getDsn();return!!n&&e.includes(n.host)}function Me(e){return(e.protocol||"")+"//"+(e.hostname||e.host||"")+(e.port&&80!==e.port&&443!==e.port?":"+e.port:"")+(e.path?e.path:"/")}function Le(e,t,n){var r,i,o;if(!e)return e;var s=Object(c.e)(e.split(" "),2),a=s[0],u=s[1];return t.host&&!t.protocol&&(t.protocol=null===(i=null===(r=n)||void 0===r?void 0:r.agent)||void 0===i?void 0:i.protocol,u=Me(t)),(null===(o=u)||void 0===o?void 0:o.startsWith("///"))&&(u=u.slice(2)),a+" "+u}function Be(e){var t={protocol:e.protocol,hostname:"string"==typeof e.hostname&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:""+(e.pathname||"")+(e.search||""),href:e.href};return""!==e.port&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=e.username+":"+e.password),t}function Ue(e,t){var n,r,i,o,s,a,u,l,f,_;return"function"==typeof t[t.length-1]&&(f=t.pop()),_="string"==typeof t[0]?Be(new Z.URL(t[0])):t[0]instanceof Z.URL?Be(t[0]):t[0],2===t.length&&(_=Object(c.a)(Object(c.a)({},_),t[1])),void 0===_.protocol&&(Ce.major&&Ce.major>8?_.protocol=(null===(r=null===(n=e)||void 0===n?void 0:n.globalAgent)||void 0===r?void 0:r.protocol)||(null===(i=_.agent)||void 0===i?void 0:i.protocol)||(null===(o=_._defaultAgent)||void 0===o?void 0:o.protocol):_.protocol=(null===(s=_.agent)||void 0===s?void 0:s.protocol)||(null===(a=_._defaultAgent)||void 0===a?void 0:a.protocol)||(null===(l=null===(u=e)||void 0===u?void 0:u.globalAgent)||void 0===l?void 0:l.protocol)),f?[_,f]:[_]}var Pe=Object(P.g)(process.versions.node),Fe=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._breadcrumbs=void 0===t.breadcrumbs||t.breadcrumbs,this._tracing=void 0!==t.tracing&&t.tracing}return e.prototype.setupOnce=function(){if(this._breadcrumbs||this._tracing){var e,t,r=(e=this._breadcrumbs,t=this._tracing,function(n){return function(){for(var r=[],i=0;i8){var o=n(41);Object(U.c)(o,"get",r),Object(U.c)(o,"request",r)}}},e.id="Http",e}();function Ge(e,t,n,r){Object(_.b)().getIntegration(Fe)&&Object(_.b)().addBreadcrumb({category:"http",data:{method:n.method,status_code:r&&r.statusCode,url:t},type:"http"},{event:e,request:n,response:r})}function xe(e){console.error(e&&e.stack?e.stack:e);var t=Object(_.b)().getClient();if(void 0===t)return S.b.warn("No NodeClient was defined, we are exiting the process now."),void global.process.exit(1);var n=t.getOptions(),r=n&&n.shutdownTimeout&&n.shutdownTimeout>0&&n.shutdownTimeout||2e3;t.close(r).then((function(e){e||S.b.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)})).then(null,(function(e){console.error(e)}))}var ke,je=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id,this.handler=this._makeErrorHandler()}return e.prototype.setupOnce=function(){global.process.on("uncaughtException",this.handler.bind(this))},e.prototype._makeErrorHandler=function(){var t,n=this,r=!1,i=!1,o=!1;return function(s){var a=xe,u=Object(_.b)().getClient();if(n._options.onFatalError?a=n._options.onFatalError:u&&u.getOptions().onFatalError&&(a=u.getOptions().onFatalError),r)o?(S.b.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),xe(s)):i||(i=!0,setTimeout((function(){o||(o=!0,a(t,s))}),2e3));else{var c=Object(_.b)();t=s,r=!0,c.getIntegration(e)?c.withScope((function(e){e.setLevel(l.a.Fatal),c.captureException(s,{originalException:s,data:{mechanism:{handled:!1,type:"onuncaughtexception"}}}),o||(o=!0,a(s))})):o||(o=!0,a(s))}}},e.id="OnUncaughtException",e}(),Qe=function(){function e(t){void 0===t&&(t={mode:"warn"}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){global.process.on("unhandledRejection",this.sendUnhandledPromise.bind(this))},e.prototype.sendUnhandledPromise=function(t,n){var r=Object(_.b)();if(r.getIntegration(e)){var i=n.domain&&n.domain.sentryContext||{};r.withScope((function(e){e.setExtra("unhandledPromiseRejection",!0),i.user&&e.setUser(i.user),i.tags&&e.setTags(i.tags),i.extra&&e.setExtras(i.extra),r.captureException(t,{originalException:n,data:{mechanism:{handled:!1,type:"onunhandledrejection"}}})})),this._handleRejection(t)}else this._handleRejection(t)},e.prototype._handleRejection=function(e){var t="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";"warn"===this._options.mode?Object(S.a)((function(){console.warn(t),console.error(e&&e.stack?e.stack:e)})):"strict"===this._options.mode&&(Object(S.a)((function(){console.warn(t)})),xe(e))},e.id="OnUnhandledRejection",e}(),He=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Object(f.b)((function(t,n){var r=Object(_.b)().getIntegration(e);if(r){var i=r._handler&&r._handler.bind(r);return"function"==typeof i?i(t,n):t}return t}))},e.prototype._handler=function(e,t){var n=this;return e.exception&&e.exception.values&&t&&Object(B.d)(t.originalException,Error)?new D.a((function(r){n._walkErrorTree(t.originalException,n._key).then((function(t){e&&e.exception&&e.exception.values&&(e.exception.values=Object(c.g)(t,e.exception.values)),r(e)})).then(null,(function(){r(e)}))})):D.a.resolve(e)},e.prototype._walkErrorTree=function(e,t,n){var r=this;return void 0===n&&(n=[]),!Object(B.d)(e[t],Error)||n.length+1>=this._limit?D.a.resolve(n):new D.a((function(i,o){K(e[t]).then((function(s){r._walkErrorTree(e[t],t,Object(c.g)([s],n)).then(i).then(null,(function(){o()}))})).then(null,(function(){o()}))}))},e.id="LinkedErrors",e}(),Ve=n(30);function We(){var e=n.c[n.s]&&n.c[n.s].paths||[],t=function(){try{return n.c?Object.keys(n.c):[]}catch(e){return[]}}(),r={},i={};return t.forEach((function(t){var n=t,o=function(){var t=n;if((n=Object(Ve.dirname)(t))&&t!==n&&!i[t]){if(e.indexOf(n)<0)return o();var s=Object(Ve.join)(t,"package.json");if(i[t]=!0,!Object(k.existsSync)(s))return o();try{var a=JSON.parse(Object(k.readFileSync)(s,"utf8"));r[a.name]=a.version}catch(e){}}};o()})),r}var Ye=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){var r=this;t((function(t){return n().getIntegration(e)?Object(c.a)(Object(c.a)({},t),{modules:r._getModules()}):t}))},e.prototype._getModules=function(){return ke||(ke=We()),ke},e.id="Modules",e}(),Ke=[new i.InboundFilters,new i.FunctionToString,new Se,new Fe,new je,new Qe,new He];function qe(e){var t;void 0===e&&(e={});var n,r=Object(_.d)(),i=(null===(t=r.__SENTRY__)||void 0===t?void 0:t.integrations)||[];if(e.defaultIntegrations=!1===e.defaultIntegrations?[]:Object(c.g)(Array.isArray(e.defaultIntegrations)?e.defaultIntegrations:Ke,i),void 0===e.dsn&&process.env.SENTRY_DSN&&(e.dsn=process.env.SENTRY_DSN),void 0===e.tracesSampleRate&&process.env.SENTRY_TRACES_SAMPLE_RATE){var o=parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);isFinite(o)&&(e.tracesSampleRate=o)}if(void 0===e.release){var s=$e();void 0!==s?e.release=s:e.autoSessionTracking=!1}void 0===e.environment&&process.env.SENTRY_ENVIRONMENT&&(e.environment=process.env.SENTRY_ENVIRONMENT),void 0===e.autoSessionTracking&&void 0!==e.dsn&&(e.autoSessionTracking=!0),ve.active&&Object(_.f)(r,Object(_.b)()),function(e,t){var n;!0===t.debug&&S.b.enable();var r=Object(_.b)();null===(n=r.getScope())||void 0===n||n.update(t.initialScope);var i=new e(t);r.bindClient(i)}(Ne,e),e.autoSessionTracking&&((n=Object(_.b)()).startSession(),process.on("beforeExit",(function(){var e,t=null===(e=n.getScope())||void 0===e?void 0:e.getSession(),r=[le.b.Exited,le.b.Crashed];t&&!r.includes(t.status)&&n.endSession()})))}function Xe(){return Object(_.b)().lastEventId()}function ze(e){return Object(c.b)(this,void 0,void 0,(function(){var t;return Object(c.d)(this,(function(n){return(t=Object(_.b)().getClient())?[2,t.flush(e)]:(S.b.warn("Cannot flush events. No client defined."),[2,Promise.resolve(!1)])}))}))}function Ze(e){return Object(c.b)(this,void 0,void 0,(function(){var t;return Object(c.d)(this,(function(n){return(t=Object(_.b)().getClient())?[2,t.close(e)]:(S.b.warn("Cannot flush events and disable SDK. No client defined."),[2,Promise.resolve(!1)])}))}))}function Je(e){if(void 0===e)return!1;var t=e&&e.getOptions();return!(!t||void 0===t.autoSessionTracking)&&t.autoSessionTracking}function $e(e){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;var t=Object(be.a)();return t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id?t.SENTRY_RELEASE.id:process.env.GITHUB_SHA||process.env.COMMIT_REF||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA||e}function et(e){var t=Ve.resolve(e);if(!k.existsSync(t))throw new Error("Cannot read contents of "+t+". Directory does not exist.");if(!k.statSync(t).isDirectory())throw new Error("Cannot read contents of "+t+", because it is not a directory.");var n=function(e){return k.readdirSync(e).reduce((function(t,r){var i=Ve.join(e,r);return k.statSync(i).isDirectory()?Object(c.g)(t,n(i)):Object(c.g)(t,[i])}),[])};return n(t).map((function(e){return Ve.relative(t,e)}))}var tt=n(42),nt=n(48),rt=n(7),it=n(2),ot=Object(be.a)();var st=n(24),at=n(96),ut=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},ct=function(e,t){return{name:e,value:null!=t?t:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},lt=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},ft=function(e,t){var n=function(r){"pagehide"!==r.type&&"hidden"!==Object(be.a)().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},_t=-1,dt=function(){return _t<0&&(_t="hidden"===Object(be.a)().document.visibilityState?0:1/0,ft((function(e){var t=e.timeStamp;_t=t}),!0)),{get firstHiddenTime(){return _t}}},Et={},ht=Object(be.a)(),pt={_reportAllChanges:!1},Rt=function(){function e(e){var t,n;this._measurements={},this._performanceCursor=0,!Object(st.b)()&&(null===(t=ht)||void 0===t?void 0:t.performance)&&(null===(n=ht)||void 0===n?void 0:n.document)&&(ht.performance.mark&&ht.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(e._reportAllChanges),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(ht&&ht.performance&&ht.performance.getEntries&&_e.a){S.b.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i,o,s,a=Object(it.d)(_e.a);if(ht.document&&ht.document.scripts)for(var u=0;u-1&&(r=h)}})),void 0!==r&&void 0!==i&&At(e,{description:"evaluation",endTimestamp:i,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var c=Object(it.d)(_e.a);"number"==typeof o&&(S.b.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(o-e.startTimestamp)},"number"==typeof s&&s<=o&&(this._measurements["ttfb.requestTime"]={value:1e3*(o-s)})),["fcp","fp","lcp"].forEach((function(n){if(t._measurements[n]&&!(c>=e.startTimestamp)){var r=t._measurements[n].value,i=c+Object(it.d)(r),o=Math.abs(1e3*(i-e.startTimestamp)),s=o-r;S.b.log("[Measurements] Normalized "+n+" from "+r+" to "+o+" ("+s+")"),t._measurements[n].value=o}})),this._measurements["mark.fid"]&&this._measurements.fid&&At(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+Object(it.d)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),this._tagMetricInfo(e)}}},e.prototype._tagMetricInfo=function(e){this._lcpEntry&&(S.b.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&e.setTag("lcp.element",Object(at.a)(this._lcpEntry.element)),this._lcpEntry.id&&e.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&e.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),e.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&this._clsEntry.sources&&(S.b.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.forEach((function(t,n){return e.setTag("cls.source."+(n+1),Object(at.a)(t.node))})))},e.prototype._trackCLS=function(){var e=this;!function(e,t){var n,r=ct("CLS",0),i=0,o=[],s=function(e){if(e&&!e.hadRecentInput){var t=o[0],s=o[o.length-1];i&&0!==o.length&&e.startTime-s.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>r.value&&(r.value=i,r.entries=o,n&&n())}},a=lt("layout-shift",s);a&&(n=ut(e,r,t),ft((function(){a.takeRecords().map(s),n(!0)})))}((function(t){var n=t.entries.pop();n&&(S.b.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value},e._clsEntry=n)}))},e.prototype._trackNavigator=function(e){var t=ht.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Tt(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),Tt(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),Tt(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),Tt(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(e){var t=this;!function(e,t){var n,r=dt(),i=ct("LCP"),o=function(e){var t=e.startTime;tn&&(e.startTimestamp=n),e.startChild(Object(c.a)({startTimestamp:n},r))}function Tt(e){return"number"==typeof e&&isFinite(e)}var Nt=n(191),mt={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function It(e){var t=Object(c.a)(Object(c.a)({},mt),e),n=t.traceFetch,r=t.traceXHR,i=t.tracingOrigins,o=t.shouldCreateSpanForRequest,s={},a=function(e){if(s[e])return s[e];var t=i;return s[e]=t.some((function(t){return Object(de.a)(e,t)}))&&!Object(de.a)(e,"sentry_key"),s[e]},u=a;"function"==typeof o&&(u=function(e){return a(e)&&o(e)});var l={};n&&Object(Nt.a)({callback:function(e){!function(e,t,n){if(!Object(it.c)()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp&&e.fetchData.__span){return void((i=n[e.fetchData.__span])&&(e.response?i.setHttpStatus(e.response.status):e.error&&i.setStatus(rt.a.InternalError),i.finish(),delete n[e.fetchData.__span]))}var r=Object(it.b)();if(r){var i=r.startChild({data:Object(c.a)(Object(c.a)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http.client"});e.fetchData.__span=i.spanId,n[i.spanId]=i;var o=e.args[0]=e.args[0],s=e.args[1]=e.args[1]||{},a=s.headers;Object(B.d)(o,Request)&&(a=o.headers),a?"function"==typeof a.append?a.append("sentry-trace",i.toTraceparent()):a=Array.isArray(a)?Object(c.g)(a,[["sentry-trace",i.toTraceparent()]]):Object(c.a)(Object(c.a)({},a),{"sentry-trace":i.toTraceparent()}):a={"sentry-trace":i.toTraceparent()},s.headers=a}}(e,u,l)},type:"fetch"}),r&&Object(Nt.a)({callback:function(e){!function(e,t,n){var r,i;if(!Object(it.c)()||(null===(r=e.xhr)||void 0===r?void 0:r.__sentry_own_request__)||!(null===(i=e.xhr)||void 0===i?void 0:i.__sentry_xhr__)||!t(e.xhr.__sentry_xhr__.url))return;var o=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__){return void((a=n[e.xhr.__sentry_xhr_span_id__])&&(a.setHttpStatus(o.status_code),a.finish(),delete n[e.xhr.__sentry_xhr_span_id__]))}var s=Object(it.b)();if(s){var a=s.startChild({data:Object(c.a)(Object(c.a)({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=a.spanId,n[e.xhr.__sentry_xhr_span_id__]=a,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",a.toTraceparent())}catch(e){}}}(e,u,l)},type:"xhr"})}var Ot=Object(be.a)();var bt=Object(c.a)({idleTimeout:nt.a,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),Ot&&Ot.location){var r,i=Ot.location.href;t&&(r=e({name:Ot.location.pathname,op:"pageload"})),n&&Object(Nt.a)({callback:function(t){var n=t.to,o=t.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(S.b.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:Ot.location.pathname,op:"navigation"}))},type:"history"})}else S.b.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},mt),vt=function(){function e(t){this.name=e.id,this._emitOptionsWarning=!1;var n=mt.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=Object(c.a)(Object(c.a)(Object(c.a)({},bt),t),{tracingOrigins:n}),this._metrics=new Rt(Object(c.a)(Object(c.a)({},pt),this.options._metricOptions))}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(S.b.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),S.b.warn("[Tracing] We added a reasonable default for you: "+mt.tracingOrigins));var r=this.options,i=r.routingInstrumentation,o=r.startTransactionOnLocationChange,s=r.startTransactionOnPageLoad,a=r.markBackgroundTransactions,u=r.traceFetch,c=r.traceXHR,l=r.tracingOrigins,f=r.shouldCreateSpanForRequest;i((function(e){return n._createRouteTransaction(e)}),s,o),a&&(ot&&ot.document?ot.document.addEventListener("visibilitychange",(function(){var e=Object(it.b)();ot.document.hidden&&e&&(S.b.log("[Tracing] Transaction: "+rt.a.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(rt.a.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):S.b.warn("[Tracing] Could not set up background tab detection due to lack of global document")),It({traceFetch:u,traceXHR:c,tracingOrigins:l,shouldCreateSpanForRequest:f})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,i=n.idleTimeout,o=n.maxTransactionDuration,s="pageload"===e.op?function(){var e=(t="sentry-trace",n=Object(be.a)().document.querySelector("meta[name="+t+"]"),n?n.getAttribute("content"):null);var t,n;if(e)return Object(it.a)(e);return}():void 0,a=Object(c.a)(Object(c.a)(Object(c.a)({},e),s),{trimEnd:!0}),u="function"==typeof r?r(a):a,l=void 0===u?Object(c.a)(Object(c.a)({},a),{sampled:!1}):u;!1===l.sampled&&S.b.log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate."),S.b.log("[Tracing] Starting "+l.op+" transaction on scope");var f=this._getCurrentHub(),_=Object(be.a)().location,d=Object(tt.b)(f,l,i,!0,{location:_});return d.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus(rt.a.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}(Object(it.e)(o),e,n)})),d}S.b.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();var yt=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){this._router?function(e,t){void 0===t&&(t=[]);t.forEach((function(t){return function(e,t){var n=e[t];return e[t]=function(){for(var e=[],r=0;r",r[o[1]]="string"==typeof l?l:l.name||""}else for(var f=0;f",s="https"===e.protocol||e.secure||(e.socket||{}).encrypted?"https":"http",a=e.originalUrl||e.url||"",u=s+"://"+o+a;return t.forEach((function(t){switch(t){case"headers":n.headers=r;break;case"method":n.method=i;break;case"url":n.url=u;break;case"cookies":n.cookies=e.cookies||Ut.parse(r.cookie||"");break;case"query_string":n.query_string=e.query||Z.parse(a||"",!1).query;break;case"data":if("GET"===i||"HEAD"===i)break;void 0!==e.body&&(n.data=Object(B.h)(e.body)?e.body:JSON.stringify(Object(U.d)(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}})),n}function Qt(e,t,n){if((n=Object(c.a)({ip:!1,request:!0,serverName:!0,transaction:!0,user:!0,version:!0},n)).version&&(e.contexts=Object(c.a)(Object(c.a)({},e.contexts),{runtime:{name:"node",version:global.process.version}})),n.request){var r=Array.isArray(n.request)?jt(t,n.request):jt(t);e.request=Object(c.a)(Object(c.a)({},e.request),r)}if(n.serverName&&!e.server_name&&(e.server_name=global.process.env.SENTRY_NAME||Pt.hostname()),n.user){var i=t.user&&Object(B.e)(t.user)?function(e,t){var n={};return(Array.isArray(t)?t:xt).forEach((function(t){e&&t in e&&(n[t]=e[t])})),n}(t.user,n.user):{};Object.keys(i)&&(e.user=Object(c.a)(Object(c.a)({},e.user),i))}if(n.ip){var o=t.ip||t.connection&&t.connection.remoteAddress;o&&(e.user=Object(c.a)(Object(c.a)({},e.user),{ip_address:o}))}return n.transaction&&!e.transaction&&(e.transaction=function(e,t){var n;switch(t){case"path":return Gt(e,{path:!0});case"handler":return(null===(n=e.route)||void 0===n?void 0:n.stack[0].name)||"";case"methodPath":default:return Gt(e,{path:!0,method:!0})}}(t,n.transaction)),e}function Ht(e){var t=Object(_.b)(),n=t.getClient();if(n&&Je(n)){n.initSessionFlusher();var r=t.getScope();r&&r.getSession()&&r.setSession()}return function(t,n,r){if(e&&e.flushTimeout&&e.flushTimeout>0){var i=n.end;n.end=function(t,n,r){var o=this;ze(e.flushTimeout).then((function(){i.call(o,t,n,r)})).then(null,(function(e){S.b.error(e)}))}}var o=ve.create();o.add(t),o.add(n),o.on("error",r),o.run((function(){var i=Object(_.b)();i.configureScope((function(n){if(n.addEventProcessor((function(n){return Qt(n,t,e)})),Je(i.getClient())){var r=i.getScope();r&&r.setRequestSession({status:le.a.Ok})}})),n.once("finish",(function(){var e=i.getClient();Je(e)&&setImmediate((function(){e&&e._captureRequestSession&&e._captureRequestSession()}))})),r()}))}}function Vt(e){return function(e){var t=e.status||e.statusCode||e.status_code||e.output&&e.output.statusCode;return t?parseInt(t,10):500}(e)>=500}function Wt(e){return function(t,n,r,i){(e&&e.shouldHandleError||Vt)(t)?b((function(e){var n=r.__sentry_transaction;n&&void 0===e.getSpan()&&e.setSpan(n);var o=Object(_.b)().getClient();if(o&&Je(o)&&void 0!==o._sessionFlusher){var s=e.getRequestSession();s&&void 0!==s.status&&(s.status=le.a.Crashed)}var a=E(t);r.sentry=a,i(t)})):i(t)}}var Yt=Object(c.a)(Object(c.a)({},i),o),Kt=Object(_.d)();Kt.__SENTRY__&&(Kt.__SENTRY__.extensions=Kt.__SENTRY__.extensions||{},Kt.__SENTRY__.extensions.domain=Kt.__SENTRY__.extensions.domain||ve)},function(e,t,n){"use strict";n.r(t),n.d(t,"v1",(function(){return p})),n.d(t,"v3",(function(){return A})),n.d(t,"v4",(function(){return T})),n.d(t,"v5",(function(){return N})),n.d(t,"NIL",(function(){return m})),n.d(t,"version",(function(){return I})),n.d(t,"validate",(function(){return c})),n.d(t,"stringify",(function(){return f})),n.d(t,"parse",(function(){return R}));var r=n(22),i=n.n(r);const o=new Uint8Array(256);let s=o.length;function a(){return s>o.length-16&&(i.a.randomFillSync(o),s=0),o.slice(s,s+=16)}var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;var c=function(e){return"string"==typeof e&&u.test(e)};const l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).substr(1));var f=function(e,t=0){const n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!c(n))throw TypeError("Stringified UUID is invalid");return n};let _,d,E=0,h=0;var p=function(e,t,n){let r=t&&n||0;const i=t||new Array(16);let o=(e=e||{}).node||_,s=void 0!==e.clockseq?e.clockseq:d;if(null==o||null==s){const t=e.random||(e.rng||a)();null==o&&(o=_=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==s&&(s=d=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:h+1;const l=u-E+(c-h)/1e4;if(l<0&&void 0===e.clockseq&&(s=s+1&16383),(l<0||u>E)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");E=u,h=c,d=s,u+=122192928e5;const p=(1e4*(268435455&u)+c)%4294967296;i[r++]=p>>>24&255,i[r++]=p>>>16&255,i[r++]=p>>>8&255,i[r++]=255&p;const R=u/4294967296*1e4&268435455;i[r++]=R>>>8&255,i[r++]=255&R,i[r++]=R>>>24&15|16,i[r++]=R>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(let e=0;e<6;++e)i[r+e]=o[e];return t||f(i)};var R=function(e){if(!c(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var g=function(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n=0;n--){var r=t[n];if(!0===r.in_app){e.transaction=this._getTransaction(r);break}}return e},e.prototype._getFramesFromEvent=function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];return t&&t.stacktrace&&t.stacktrace.frames||[]},e.prototype._getTransaction=function(e){return e.module||e.function?(e.module||"?")+"/"+(e.function||"?"):""},e.id="Transaction",e}(),w=n(51),C={id:"Tracing"},D={id:"BrowserTracing"},M={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},L=/(?:^|[-_/])(\w)/g,B=function(){function e(t){var n=this;this.name=e.id,this._componentsCache={},this._applyTracingHooks=function(e,t){if(!e.$options.$_sentryPerfHook){e.$options.$_sentryPerfHook=!0;var r=n._getComponentName(e),s="root"===r,a={},u=function(r){var i=Object(w.d)();n._rootSpan?n._finishRootSpan(i,t):e.$once("hook:"+r,(function(){var e=t().getIntegration(C);if(e){n._tracingActivity=e.constructor.pushActivity("Vue Application Render");var r=e.constructor.getTransaction();r&&(n._rootSpan=r.startChild({description:"Application Render",op:"vue"}))}else{var i=function(e){if(e&&e.getScope){var t=e.getScope();if(t)return t.getTransaction()}return}(t());i&&(n._rootSpan=i.startChild({description:"Application Render",op:"vue"}))}}))},c=function(i,o){var s=Array.isArray(n._options.tracingOptions.trackComponents)?n._options.tracingOptions.trackComponents.indexOf(r)>-1:n._options.tracingOptions.trackComponents;if(n._rootSpan&&s){var u=Object(w.d)(),c=a[o];c?(c.finish(),n._finishRootSpan(u,t)):e.$once("hook:"+i,(function(){n._rootSpan&&(a[o]=n._rootSpan.startChild({description:"Vue <"+r+">",op:o}))}))}};n._options.tracingOptions.hooks.forEach((function(t){var r=M[t];r?r.forEach((function(r){var o=s?u.bind(n,r):c.bind(n,r,t),a=e.$options[r];Array.isArray(a)?e.$options[r]=Object(i.g)([o],a):e.$options[r]="function"==typeof a?[o,a]:[o]})):o.b.warn("Unknown hook: "+t)}))}},o.b.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=Object(i.a)(Object(i.a)({Vue:Object(s.a)().Vue,attachProps:!0,logErrors:!1,tracing:!1},t),{tracingOptions:Object(i.a)({hooks:["mount","update"],timeout:2e3,trackComponents:!1},t.tracingOptions)})}return e.prototype.setupOnce=function(e,t){this._options.Vue?(this._attachErrorHandler(t),this._options.tracing&&this._startTracing(t)):o.b.error("Vue integration is missing a Vue instance")},e.prototype._getComponentName=function(e){if(!e)return"anonymous component";if(e.$root===e)return"root";if(!e.$options)return"anonymous component";if(e.$options.name)return e.$options.name;if(e.$options._componentTag)return e.$options._componentTag;if(e.$options.__file){var t=e.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),n=Object(b.a)(t,".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(L,(function(e,t){return t?t.toUpperCase():""})))}return"anonymous component"},e.prototype._finishRootSpan=function(e,t){var n=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout((function(){if(n._tracingActivity){var r=t().getIntegration(C);r&&r.constructor.popActivity(n._tracingActivity)}n._rootSpan&&n._rootSpan.finish(e)}),this._options.tracingOptions.timeout)},e.prototype._startTracing=function(e){var t=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){e().getIntegration(C)||e().getIntegration(D)?t(this,e):o.b.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},e.prototype._attachErrorHandler=function(t){var n=this,r=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(i,s,a){var u={};if(s)try{u.componentName=n._getComponentName(s),n._options.attachProps&&(u.propsData=s.$options.propsData)}catch(e){o.b.warn("Unable to extract metadata from Vue component.")}a&&(u.lifecycleHook=a),t().getIntegration(e)&&setTimeout((function(){t().withScope((function(e){e.setContext("vue",u),t().captureException(i)}))})),"function"==typeof r&&r.call(n._options.Vue,i,s,a),n._options.logErrors&&(n._options.Vue.util&&n._options.Vue.util.warn("Error in "+a+': "'+(i&&i.toString())+'"',s),console.error(i))}},e.id="Vue",e}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.BeforeSend="before_send",e.EventProcessor="event_processor",e.NetworkError="network_error",e.QueueOverflow="queue_overflow",e.RateLimitBackoff="ratelimit_backoff",e.SampleRate="sample_rate"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(r||(r={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(r||(r={}))},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function o(e){var t=i.exec(e);return t?t.slice(1):[]}function s(){for(var e=[],t=0;t=-1&&!i;o--){var s=o>=0?e[o]:"/";s&&(n=s+"/"+n,i="/"===s.charAt(0))}return(i?"/":"")+(n=r(n.split("/").filter((function(e){return!!e})),!i).join("/"))||"."}function a(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function u(e,t){e=s(e).substr(1),t=s(t).substr(1);for(var n=a(e.split("/")),r=a(t.split("/")),i=Math.min(n.length,r.length),o=i,u=0;u= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { getCurrentHub } from '@sentry/hub';\nexport var TRACEPARENT_REGEXP = new RegExp('^[ \\\\t]*' + // whitespace\n '([0-9a-f]{32})?' + // trace_id\n '-?([0-9a-f]{16})?' + // span_id\n '-?([01])?' + // sampled\n '[ \\\\t]*$');\n/**\n * Determines if tracing is currently enabled.\n *\n * Tracing is enabled when at least one of `tracesSampleRate` and `tracesSampler` is defined in the SDK config.\n */\nexport function hasTracingEnabled(options) {\n if (options === void 0) { options = (_a = getCurrentHub()\n .getClient()) === null || _a === void 0 ? void 0 : _a.getOptions(); }\n var _a;\n if (!options) {\n return false;\n }\n return 'tracesSampleRate' in options || 'tracesSampler' in options;\n}\n/**\n * Extract transaction context data from a `sentry-trace` header.\n *\n * @param traceparent Traceparent string\n *\n * @returns Object containing data from the header, or undefined if traceparent string is malformed\n */\nexport function extractTraceparentData(traceparent) {\n var matches = traceparent.match(TRACEPARENT_REGEXP);\n if (matches) {\n var parentSampled = void 0;\n if (matches[3] === '1') {\n parentSampled = true;\n }\n else if (matches[3] === '0') {\n parentSampled = false;\n }\n return {\n traceId: matches[1],\n parentSampled: parentSampled,\n parentSpanId: matches[2],\n };\n }\n return undefined;\n}\n/** Grabs active transaction off scope, if any */\nexport function getActiveTransaction(hub) {\n if (hub === void 0) { hub = getCurrentHub(); }\n var _a, _b;\n return (_b = (_a = hub) === null || _a === void 0 ? void 0 : _a.getScope()) === null || _b === void 0 ? void 0 : _b.getTransaction();\n}\n/**\n * Converts from milliseconds to seconds\n * @param time time in ms\n */\nexport function msToSec(time) {\n return time / 1000;\n}\n/**\n * Converts from seconds to milliseconds\n * @param time time in seconds\n */\nexport function secToMs(time) {\n return time * 1000;\n}\n// so it can be used in manual instrumentation without necessitating a hard dependency on @sentry/utils\nexport { stripUrlQueryAndFragment } from '@sentry/utils';\n//# sourceMappingURL=utils.js.map","import { getGlobalObject } from './global';\n// TODO: Implement different loggers for different environments\nvar global = getGlobalObject();\n/** Prefix for logging strings */\nvar PREFIX = 'Sentry Logger ';\n/**\n * Temporarily unwrap `console.log` and friends in order to perform the given callback using the original methods.\n * Restores wrapping after the callback completes.\n *\n * @param callback The function to run against the original `console` messages\n * @returns The results of the callback\n */\nexport function consoleSandbox(callback) {\n var global = getGlobalObject();\n var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert'];\n if (!('console' in global)) {\n return callback();\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var originalConsole = global.console;\n var wrappedLevels = {};\n // Restore all wrapped console methods\n levels.forEach(function (level) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (level in global.console && originalConsole[level].__sentry_original__) {\n wrappedLevels[level] = originalConsole[level];\n originalConsole[level] = originalConsole[level].__sentry_original__;\n }\n });\n // Perform callback manipulations\n var result = callback();\n // Revert restoration to wrapped state\n Object.keys(wrappedLevels).forEach(function (level) {\n originalConsole[level] = wrappedLevels[level];\n });\n return result;\n}\n/** JSDoc */\nvar Logger = /** @class */ (function () {\n /** JSDoc */\n function Logger() {\n this._enabled = false;\n }\n /** JSDoc */\n Logger.prototype.disable = function () {\n this._enabled = false;\n };\n /** JSDoc */\n Logger.prototype.enable = function () {\n this._enabled = true;\n };\n /** JSDoc */\n Logger.prototype.log = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (!this._enabled) {\n return;\n }\n consoleSandbox(function () {\n global.console.log(PREFIX + \"[Log]: \" + args.join(' '));\n });\n };\n /** JSDoc */\n Logger.prototype.warn = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (!this._enabled) {\n return;\n }\n consoleSandbox(function () {\n global.console.warn(PREFIX + \"[Warn]: \" + args.join(' '));\n });\n };\n /** JSDoc */\n Logger.prototype.error = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (!this._enabled) {\n return;\n }\n consoleSandbox(function () {\n global.console.error(PREFIX + \"[Error]: \" + args.join(' '));\n });\n };\n return Logger;\n}());\n// Ensure we only have a single logger instance, even if multiple versions of @sentry/utils are being used\nglobal.__SENTRY__ = global.__SENTRY__ || {};\nvar logger = global.__SENTRY__.logger || (global.__SENTRY__.logger = new Logger());\nexport { logger };\n//# sourceMappingURL=logger.js.map","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat) {\n switch (Object.prototype.toString.call(wat)) {\n case '[object Error]':\n return true;\n case '[object Exception]':\n return true;\n case '[object DOMException]':\n return true;\n default:\n return isInstanceOf(wat, Error);\n }\n}\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat) {\n return Object.prototype.toString.call(wat) === '[object ErrorEvent]';\n}\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat) {\n return Object.prototype.toString.call(wat) === '[object DOMError]';\n}\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat) {\n return Object.prototype.toString.call(wat) === '[object DOMException]';\n}\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat) {\n return Object.prototype.toString.call(wat) === '[object String]';\n}\n/**\n * Checks whether given value's is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat) {\n return wat === null || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n/**\n * Checks whether given value's type is an object literal\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat) {\n return Object.prototype.toString.call(wat) === '[object Object]';\n}\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat) {\n return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isElement(wat) {\n return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat) {\n return Object.prototype.toString.call(wat) === '[object RegExp]';\n}\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n}\n/**\n * Checks whether given value's type is a SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isSyntheticEvent(wat) {\n return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\nexport function isInstanceOf(wat, base) {\n try {\n return wat instanceof base;\n }\n catch (_e) {\n return false;\n }\n}\n//# sourceMappingURL=is.js.map","// This file was modified by Oracle on June 1, 2021.\n// A comment describing some changes in the strict default SQL mode regarding\n// non-standard dates was introduced.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst ErrorCodeToName = require('../constants/errors.js');\nconst NativeBuffer = require('buffer').Buffer;\nconst Long = require('long');\nconst StringParser = require('../parsers/string.js');\n\nconst INVALID_DATE = new Date(NaN);\n\n// this is nearly duplicate of previous function so generated code is not slower\n// due to \"if (dateStrings)\" branching\nconst pad = '000000000000';\nfunction leftPad(num, value) {\n const s = value.toString();\n // if we don't need to pad\n if (s.length >= num) {\n return s;\n }\n return (pad + s).slice(-num);\n}\n\n// The whole reason parse* function below exist\n// is because String creation is relatively expensive (at least with V8), and if we have\n// a buffer with \"12345\" content ideally we would like to bypass intermediate\n// \"12345\" string creation and directly build 12345 number out of\n// data.\n// In my benchmarks the difference is ~25M 8-digit numbers per second vs\n// 4.5 M using Number(packet.readLengthCodedString())\n// not used when size is close to max precision as series of *10 accumulate error\n// and approximate result mihgt be diffreent from (approximate as well) Number(bigNumStringValue))\n// In the futire node version if speed difference is smaller parse* functions might be removed\n// don't consider them as Packet public API\n\nconst minus = '-'.charCodeAt(0);\nconst plus = '+'.charCodeAt(0);\n\n// TODO: handle E notation\nconst dot = '.'.charCodeAt(0);\nconst exponent = 'e'.charCodeAt(0);\nconst exponentCapital = 'E'.charCodeAt(0);\n\nclass Packet {\n constructor(id, buffer, start, end) {\n // hot path, enable checks when testing only\n // if (!Buffer.isBuffer(buffer) || typeof start == 'undefined' || typeof end == 'undefined')\n // throw new Error('invalid packet');\n this.sequenceId = id;\n this.numPackets = 1;\n this.buffer = buffer;\n this.start = start;\n this.offset = start + 4;\n this.end = end;\n }\n\n // ==============================\n // readers\n // ==============================\n reset() {\n this.offset = this.start + 4;\n }\n\n length() {\n return this.end - this.start;\n }\n\n slice() {\n return this.buffer.slice(this.start, this.end);\n }\n\n dump() {\n // eslint-disable-next-line no-console\n console.log(\n [this.buffer.asciiSlice(this.start, this.end)],\n this.buffer.slice(this.start, this.end),\n this.length(),\n this.sequenceId\n );\n }\n\n haveMoreData() {\n return this.end > this.offset;\n }\n\n skip(num) {\n this.offset += num;\n }\n\n readInt8() {\n return this.buffer[this.offset++];\n }\n\n readInt16() {\n this.offset += 2;\n return this.buffer.readUInt16LE(this.offset - 2);\n }\n\n readInt24() {\n return this.readInt16() + (this.readInt8() << 16);\n }\n\n readInt32() {\n this.offset += 4;\n return this.buffer.readUInt32LE(this.offset - 4);\n }\n\n readSInt8() {\n return this.buffer.readInt8(this.offset++);\n }\n\n readSInt16() {\n this.offset += 2;\n return this.buffer.readInt16LE(this.offset - 2);\n }\n\n readSInt32() {\n this.offset += 4;\n return this.buffer.readInt32LE(this.offset - 4);\n }\n\n readInt64JSNumber() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n const l = new Long(word0, word1, true);\n return l.toNumber();\n }\n\n readSInt64JSNumber() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n if (!(word1 & 0x80000000)) {\n return word0 + 0x100000000 * word1;\n }\n const l = new Long(word0, word1, false);\n return l.toNumber();\n }\n\n readInt64String() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n const res = new Long(word0, word1, true);\n return res.toString();\n }\n\n readSInt64String() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n const res = new Long(word0, word1, false);\n return res.toString();\n }\n\n readInt64() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n let res = new Long(word0, word1, true);\n const resNumber = res.toNumber();\n const resString = res.toString();\n res = resNumber.toString() === resString ? resNumber : resString;\n return res;\n }\n\n readSInt64() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n let res = new Long(word0, word1, false);\n const resNumber = res.toNumber();\n const resString = res.toString();\n res = resNumber.toString() === resString ? resNumber : resString;\n return res;\n }\n\n isEOF() {\n return this.buffer[this.offset] === 0xfe && this.length() < 13;\n }\n\n eofStatusFlags() {\n return this.buffer.readInt16LE(this.offset + 3);\n }\n\n eofWarningCount() {\n return this.buffer.readInt16LE(this.offset + 1);\n }\n\n readLengthCodedNumber(bigNumberStrings, signed) {\n const byte1 = this.buffer[this.offset++];\n if (byte1 < 251) {\n return byte1;\n }\n return this.readLengthCodedNumberExt(byte1, bigNumberStrings, signed);\n }\n\n readLengthCodedNumberSigned(bigNumberStrings) {\n return this.readLengthCodedNumber(bigNumberStrings, true);\n }\n\n readLengthCodedNumberExt(tag, bigNumberStrings, signed) {\n let word0, word1;\n let res;\n if (tag === 0xfb) {\n return null;\n }\n if (tag === 0xfc) {\n return this.readInt8() + (this.readInt8() << 8);\n }\n if (tag === 0xfd) {\n return this.readInt8() + (this.readInt8() << 8) + (this.readInt8() << 16);\n }\n if (tag === 0xfe) {\n // TODO: check version\n // Up to MySQL 3.22, 0xfe was followed by a 4-byte integer.\n word0 = this.readInt32();\n word1 = this.readInt32();\n if (word1 === 0) {\n return word0; // don't convert to float if possible\n }\n if (word1 < 2097152) {\n // max exact float point int, 2^52 / 2^32\n return word1 * 0x100000000 + word0;\n }\n res = new Long(word0, word1, !signed); // Long need unsigned\n const resNumber = res.toNumber();\n const resString = res.toString();\n res = resNumber.toString() === resString ? resNumber : resString;\n return bigNumberStrings ? resString : res;\n }\n // eslint-disable-next-line no-console\n console.trace();\n throw new Error(`Should not reach here: ${tag}`);\n }\n\n readFloat() {\n const res = this.buffer.readFloatLE(this.offset);\n this.offset += 4;\n return res;\n }\n\n readDouble() {\n const res = this.buffer.readDoubleLE(this.offset);\n this.offset += 8;\n return res;\n }\n\n readBuffer(len) {\n if (typeof len === 'undefined') {\n len = this.end - this.offset;\n }\n this.offset += len;\n return this.buffer.slice(this.offset - len, this.offset);\n }\n\n // DATE, DATETIME and TIMESTAMP\n readDateTime(timezone) {\n if (!timezone || timezone === 'Z' || timezone === 'local') {\n const length = this.readInt8();\n if (length === 0xfb) {\n return null;\n }\n let y = 0;\n let m = 0;\n let d = 0;\n let H = 0;\n let M = 0;\n let S = 0;\n let ms = 0;\n if (length > 3) {\n y = this.readInt16();\n m = this.readInt8();\n d = this.readInt8();\n }\n if (length > 6) {\n H = this.readInt8();\n M = this.readInt8();\n S = this.readInt8();\n }\n if (length > 10) {\n ms = this.readInt32() / 1000;\n }\n // NO_ZERO_DATE mode and NO_ZERO_IN_DATE mode are part of the strict\n // default SQL mode used by MySQL 8.0. This means that non-standard\n // dates like '0000-00-00' become NULL. For older versions and other\n // possible MySQL flavours we still need to account for the\n // non-standard behaviour.\n if (y + m + d + H + M + S + ms === 0) {\n return INVALID_DATE;\n }\n if (timezone === 'Z') {\n return new Date(Date.UTC(y, m - 1, d, H, M, S, ms));\n }\n return new Date(y, m - 1, d, H, M, S, ms);\n }\n let str = this.readDateTimeString(6, 'T');\n if (str.length === 10) {\n str += 'T00:00:00';\n }\n return new Date(str + timezone);\n }\n\n readDateTimeString(decimals, timeSep) {\n const length = this.readInt8();\n let y = 0;\n let m = 0;\n let d = 0;\n let H = 0;\n let M = 0;\n let S = 0;\n let ms = 0;\n let str;\n if (length > 3) {\n y = this.readInt16();\n m = this.readInt8();\n d = this.readInt8();\n str = [leftPad(4, y), leftPad(2, m), leftPad(2, d)].join('-');\n }\n if (length > 6) {\n H = this.readInt8();\n M = this.readInt8();\n S = this.readInt8();\n str += `${timeSep || ' '}${[\n leftPad(2, H),\n leftPad(2, M),\n leftPad(2, S)\n ].join(':')}`;\n }\n if (length > 10) {\n ms = this.readInt32();\n str += '.';\n if (decimals) {\n ms = leftPad(6, ms);\n if (ms.length > decimals) {\n ms = ms.substring(0, decimals); // rounding is done at the MySQL side, only 0 are here\n }\n }\n str += ms;\n }\n return str;\n }\n\n // TIME - value as a string, Can be negative\n readTimeString(convertTtoMs) {\n const length = this.readInt8();\n if (length === 0) {\n return '00:00:00';\n }\n const sign = this.readInt8() ? -1 : 1; // 'isNegative' flag byte\n let d = 0;\n let H = 0;\n let M = 0;\n let S = 0;\n let ms = 0;\n if (length > 6) {\n d = this.readInt32();\n H = this.readInt8();\n M = this.readInt8();\n S = this.readInt8();\n }\n if (length > 10) {\n ms = this.readInt32();\n }\n if (convertTtoMs) {\n H += d * 24;\n M += H * 60;\n S += M * 60;\n ms += S * 1000;\n ms *= sign;\n return ms;\n }\n // Format follows mySQL TIME format ([-][h]hh:mm:ss[.u[u[u[u[u[u]]]]]])\n // For positive times below 24 hours, this makes it equal to ISO 8601 times\n return (\n (sign === -1 ? '-' : '') +\n [leftPad(2, d * 24 + H), leftPad(2, M), leftPad(2, S)].join(':') +\n (ms ? `.${ms}`.replace(/0+$/, '') : '')\n );\n }\n\n readLengthCodedString(encoding) {\n const len = this.readLengthCodedNumber();\n // TODO: check manually first byte here to avoid polymorphic return type?\n if (len === null) {\n return null;\n }\n this.offset += len;\n // TODO: Use characterSetCode to get proper encoding\n // https://github.com/sidorares/node-mysql2/pull/374\n return StringParser.decode(\n this.buffer,\n encoding,\n this.offset - len,\n this.offset\n );\n }\n\n readLengthCodedBuffer() {\n const len = this.readLengthCodedNumber();\n if (len === null) {\n return null;\n }\n return this.readBuffer(len);\n }\n\n readNullTerminatedString(encoding) {\n const start = this.offset;\n let end = this.offset;\n while (this.buffer[end]) {\n end = end + 1; // TODO: handle OOB check\n }\n this.offset = end + 1;\n return StringParser.decode(this.buffer, encoding, start, end);\n }\n\n // TODO reuse?\n readString(len, encoding) {\n if (typeof len === 'string' && typeof encoding === 'undefined') {\n encoding = len;\n len = undefined;\n }\n if (typeof len === 'undefined') {\n len = this.end - this.offset;\n }\n this.offset += len;\n return StringParser.decode(\n this.buffer,\n encoding,\n this.offset - len, \n this.offset\n );\n }\n\n parseInt(len, supportBigNumbers) {\n if (len === null) {\n return null;\n }\n if (len >= 14 && !supportBigNumbers) {\n const s = this.buffer.toString('ascii', this.offset, this.offset + len);\n this.offset += len;\n return Number(s);\n }\n let result = 0;\n const start = this.offset;\n const end = this.offset + len;\n let sign = 1;\n if (len === 0) {\n return 0; // TODO: assert? exception?\n }\n if (this.buffer[this.offset] === minus) {\n this.offset++;\n sign = -1;\n }\n // max precise int is 9007199254740992\n let str;\n const numDigits = end - this.offset;\n if (supportBigNumbers) {\n if (numDigits >= 15) {\n str = this.readString(end - this.offset, 'binary');\n result = parseInt(str, 10);\n if (result.toString() === str) {\n return sign * result;\n }\n return sign === -1 ? `-${str}` : str;\n }\n if (numDigits > 16) {\n str = this.readString(end - this.offset);\n return sign === -1 ? `-${str}` : str;\n }\n }\n if (this.buffer[this.offset] === plus) {\n this.offset++; // just ignore\n }\n while (this.offset < end) {\n result *= 10;\n result += this.buffer[this.offset] - 48;\n this.offset++;\n }\n const num = result * sign;\n if (!supportBigNumbers) {\n return num;\n }\n str = this.buffer.toString('ascii', start, end);\n if (num.toString() === str) {\n return num;\n }\n return str;\n }\n\n // note that if value of inputNumberAsString is bigger than MAX_SAFE_INTEGER\n // ( or smaller than MIN_SAFE_INTEGER ) the parseIntNoBigCheck result might be\n // different from what you would get from Number(inputNumberAsString)\n // String(parseIntNoBigCheck) <> String(Number(inputNumberAsString)) <> inputNumberAsString\n parseIntNoBigCheck(len) {\n if (len === null) {\n return null;\n }\n let result = 0;\n const end = this.offset + len;\n let sign = 1;\n if (len === 0) {\n return 0; // TODO: assert? exception?\n }\n if (this.buffer[this.offset] === minus) {\n this.offset++;\n sign = -1;\n }\n if (this.buffer[this.offset] === plus) {\n this.offset++; // just ignore\n }\n while (this.offset < end) {\n result *= 10;\n result += this.buffer[this.offset] - 48;\n this.offset++;\n }\n return result * sign;\n }\n\n // copy-paste from https://github.com/mysqljs/mysql/blob/master/lib/protocol/Parser.js\n parseGeometryValue() {\n const buffer = this.readLengthCodedBuffer();\n let offset = 4;\n if (buffer === null || !buffer.length) {\n return null;\n }\n function parseGeometry() {\n let x, y, i, j, numPoints, line;\n let result = null;\n const byteOrder = buffer.readUInt8(offset);\n offset += 1;\n const wkbType = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n switch (wkbType) {\n case 1: // WKBPoint\n x = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n y = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n result = { x: x, y: y };\n break;\n case 2: // WKBLineString\n numPoints = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n result = [];\n for (i = numPoints; i > 0; i--) {\n x = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n y = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n result.push({ x: x, y: y });\n }\n break;\n case 3: // WKBPolygon\n // eslint-disable-next-line no-case-declarations\n const numRings = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n result = [];\n for (i = numRings; i > 0; i--) {\n numPoints = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n line = [];\n for (j = numPoints; j > 0; j--) {\n x = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n y = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n line.push({ x: x, y: y });\n }\n result.push(line);\n }\n break;\n case 4: // WKBMultiPoint\n case 5: // WKBMultiLineString\n case 6: // WKBMultiPolygon\n case 7: // WKBGeometryCollection\n // eslint-disable-next-line no-case-declarations\n const num = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n result = [];\n for (i = num; i > 0; i--) {\n result.push(parseGeometry());\n }\n break;\n }\n return result;\n }\n return parseGeometry();\n }\n\n parseDate(timezone) {\n const strLen = this.readLengthCodedNumber();\n if (strLen === null) {\n return null;\n }\n if (strLen !== 10) {\n // we expect only YYYY-MM-DD here.\n // if for some reason it's not the case return invalid date\n return new Date(NaN);\n }\n const y = this.parseInt(4);\n this.offset++; // -\n const m = this.parseInt(2);\n this.offset++; // -\n const d = this.parseInt(2);\n if (!timezone || timezone === 'local') {\n return new Date(y, m - 1, d);\n }\n if (timezone === 'Z') {\n return new Date(Date.UTC(y, m - 1, d));\n }\n return new Date(\n `${leftPad(4, y)}-${leftPad(2, m)}-${leftPad(2, d)}T00:00:00${timezone}`\n );\n }\n\n parseDateTime(timezone) {\n const str = this.readLengthCodedString('binary');\n if (str === null) {\n return null;\n }\n if (!timezone || timezone === 'local') {\n return new Date(str);\n }\n return new Date(`${str}${timezone}`);\n }\n\n parseFloat(len) {\n if (len === null) {\n return null;\n }\n let result = 0;\n const end = this.offset + len;\n let factor = 1;\n let pastDot = false;\n let charCode = 0;\n if (len === 0) {\n return 0; // TODO: assert? exception?\n }\n if (this.buffer[this.offset] === minus) {\n this.offset++;\n factor = -1;\n }\n if (this.buffer[this.offset] === plus) {\n this.offset++; // just ignore\n }\n while (this.offset < end) {\n charCode = this.buffer[this.offset];\n if (charCode === dot) {\n pastDot = true;\n this.offset++;\n } else if (charCode === exponent || charCode === exponentCapital) {\n this.offset++;\n const exponentValue = this.parseInt(end - this.offset);\n return (result / factor) * Math.pow(10, exponentValue);\n } else {\n result *= 10;\n result += this.buffer[this.offset] - 48;\n this.offset++;\n if (pastDot) {\n factor = factor * 10;\n }\n }\n }\n return result / factor;\n }\n\n parseLengthCodedIntNoBigCheck() {\n return this.parseIntNoBigCheck(this.readLengthCodedNumber());\n }\n\n parseLengthCodedInt(supportBigNumbers) {\n return this.parseInt(this.readLengthCodedNumber(), supportBigNumbers);\n }\n\n parseLengthCodedIntString() {\n return this.readLengthCodedString('binary');\n }\n\n parseLengthCodedFloat() {\n return this.parseFloat(this.readLengthCodedNumber());\n }\n\n peekByte() {\n return this.buffer[this.offset];\n }\n\n // OxFE is often used as \"Alt\" flag - not ok, not error.\n // For example, it's first byte of AuthSwitchRequest\n isAlt() {\n return this.peekByte() === 0xfe;\n }\n\n isError() {\n return this.peekByte() === 0xff;\n }\n\n asError(encoding) {\n this.reset();\n this.readInt8(); // fieldCount\n const errorCode = this.readInt16();\n let sqlState = '';\n if (this.buffer[this.offset] === 0x23) {\n this.skip(1);\n sqlState = this.readBuffer(5).toString();\n }\n const message = this.readString(undefined, encoding);\n const err = new Error(message);\n err.code = ErrorCodeToName[errorCode];\n err.errno = errorCode;\n err.sqlState = sqlState;\n err.sqlMessage = message;\n return err;\n }\n\n writeInt32(n) {\n this.buffer.writeUInt32LE(n, this.offset);\n this.offset += 4;\n }\n\n writeInt24(n) {\n this.writeInt8(n & 0xff);\n this.writeInt16(n >> 8);\n }\n\n writeInt16(n) {\n this.buffer.writeUInt16LE(n, this.offset);\n this.offset += 2;\n }\n\n writeInt8(n) {\n this.buffer.writeUInt8(n, this.offset);\n this.offset++;\n }\n\n writeDouble(n) {\n this.buffer.writeDoubleLE(n, this.offset);\n this.offset += 8;\n }\n\n writeBuffer(b) {\n b.copy(this.buffer, this.offset);\n this.offset += b.length;\n }\n\n writeNull() {\n this.buffer[this.offset] = 0xfb;\n this.offset++;\n }\n\n // TODO: refactor following three?\n writeNullTerminatedString(s, encoding) {\n const buf = StringParser.encode(s, encoding);\n this.buffer.length && buf.copy(this.buffer, this.offset);\n this.offset += buf.length;\n this.writeInt8(0);\n }\n\n writeString(s, encoding) {\n if (s === null) {\n this.writeInt8(0xfb);\n return;\n }\n if (s.length === 0) {\n return;\n }\n // const bytes = Buffer.byteLength(s, 'utf8');\n // this.buffer.write(s, this.offset, bytes, 'utf8');\n // this.offset += bytes;\n const buf = StringParser.encode(s, encoding);\n this.buffer.length && buf.copy(this.buffer, this.offset);\n this.offset += buf.length;\n }\n\n writeLengthCodedString(s, encoding) {\n const buf = StringParser.encode(s, encoding);\n this.writeLengthCodedNumber(buf.length);\n this.buffer.length && buf.copy(this.buffer, this.offset);\n this.offset += buf.length;\n }\n\n writeLengthCodedBuffer(b) {\n this.writeLengthCodedNumber(b.length);\n b.copy(this.buffer, this.offset);\n this.offset += b.length;\n }\n\n writeLengthCodedNumber(n) {\n if (n < 0xfb) {\n return this.writeInt8(n);\n }\n if (n < 0xffff) {\n this.writeInt8(0xfc);\n return this.writeInt16(n);\n }\n if (n < 0xffffff) {\n this.writeInt8(0xfd);\n return this.writeInt24(n);\n }\n if (n === null) {\n return this.writeInt8(0xfb);\n }\n // TODO: check that n is out of int precision\n this.writeInt8(0xfe);\n this.buffer.writeUInt32LE(n, this.offset);\n this.offset += 4;\n this.buffer.writeUInt32LE(n >> 32, this.offset);\n this.offset += 4;\n return this.offset;\n }\n\n writeDate(d, timezone) {\n this.buffer.writeUInt8(11, this.offset);\n if (!timezone || timezone === 'local') {\n this.buffer.writeUInt16LE(d.getFullYear(), this.offset + 1);\n this.buffer.writeUInt8(d.getMonth() + 1, this.offset + 3);\n this.buffer.writeUInt8(d.getDate(), this.offset + 4);\n this.buffer.writeUInt8(d.getHours(), this.offset + 5);\n this.buffer.writeUInt8(d.getMinutes(), this.offset + 6);\n this.buffer.writeUInt8(d.getSeconds(), this.offset + 7);\n this.buffer.writeUInt32LE(d.getMilliseconds() * 1000, this.offset + 8);\n } else {\n if (timezone !== 'Z') {\n const offset =\n (timezone[0] === '-' ? -1 : 1) *\n (parseInt(timezone.substring(1, 3), 10) * 60 +\n parseInt(timezone.substring(4), 10));\n if (offset !== 0) {\n d = new Date(d.getTime() + 60000 * offset);\n }\n }\n this.buffer.writeUInt16LE(d.getUTCFullYear(), this.offset + 1);\n this.buffer.writeUInt8(d.getUTCMonth() + 1, this.offset + 3);\n this.buffer.writeUInt8(d.getUTCDate(), this.offset + 4);\n this.buffer.writeUInt8(d.getUTCHours(), this.offset + 5);\n this.buffer.writeUInt8(d.getUTCMinutes(), this.offset + 6);\n this.buffer.writeUInt8(d.getUTCSeconds(), this.offset + 7);\n this.buffer.writeUInt32LE(d.getUTCMilliseconds() * 1000, this.offset + 8);\n }\n this.offset += 12;\n }\n\n writeHeader(sequenceId) {\n const offset = this.offset;\n this.offset = 0;\n this.writeInt24(this.buffer.length - 4);\n this.writeInt8(sequenceId);\n this.offset = offset;\n }\n\n clone() {\n return new Packet(this.sequenceId, this.buffer, this.start, this.end);\n }\n\n type() {\n if (this.isEOF()) {\n return 'EOF';\n }\n if (this.isError()) {\n return 'Error';\n }\n if (this.buffer[this.offset] === 0) {\n return 'maybeOK'; // could be other packet types as well\n }\n return '';\n }\n\n static lengthCodedNumberLength(n) {\n if (n < 0xfb) {\n return 1;\n }\n if (n < 0xffff) {\n return 3;\n }\n if (n < 0xffffff) {\n return 5;\n }\n return 9;\n }\n\n static lengthCodedStringLength(str, encoding) {\n const buf = StringParser.encode(str, encoding);\n const slen = buf.length;\n return Packet.lengthCodedNumberLength(slen) + slen;\n }\n\n static MockBuffer() {\n const noop = function () {};\n const res = Buffer.alloc(0);\n for (const op in NativeBuffer.prototype) {\n if (typeof res[op] === 'function') {\n res[op] = noop;\n }\n }\n return res;\n }\n}\n\nmodule.exports = Packet;\n","'use strict';\n\n/**\n * A shareable symbol constant that can be used\n * as a non-enumerable / semi-hidden level identifier\n * to allow the readable level property to be mutable for\n * operations like colorization\n *\n * @type {Symbol}\n */\nObject.defineProperty(exports, 'LEVEL', {\n value: Symbol.for('level')\n});\n\n/**\n * A shareable symbol constant that can be used\n * as a non-enumerable / semi-hidden message identifier\n * to allow the final message property to not have\n * side effects on another.\n *\n * @type {Symbol}\n */\nObject.defineProperty(exports, 'MESSAGE', {\n value: Symbol.for('message')\n});\n\n/**\n * A shareable symbol constant that can be used\n * as a non-enumerable / semi-hidden message identifier\n * to allow the extracted splat property be hidden\n *\n * @type {Symbol}\n */\nObject.defineProperty(exports, 'SPLAT', {\n value: Symbol.for('splat')\n});\n\n/**\n * A shareable object constant that can be used\n * as a standard configuration for winston@3.\n *\n * @type {Object}\n */\nObject.defineProperty(exports, 'configs', {\n value: require('./config')\n});\n","/** The status of an Span. */\n// eslint-disable-next-line import/export\nexport var SpanStatus;\n(function (SpanStatus) {\n /** The operation completed successfully. */\n SpanStatus[\"Ok\"] = \"ok\";\n /** Deadline expired before operation could complete. */\n SpanStatus[\"DeadlineExceeded\"] = \"deadline_exceeded\";\n /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */\n SpanStatus[\"Unauthenticated\"] = \"unauthenticated\";\n /** 403 Forbidden */\n SpanStatus[\"PermissionDenied\"] = \"permission_denied\";\n /** 404 Not Found. Some requested entity (file or directory) was not found. */\n SpanStatus[\"NotFound\"] = \"not_found\";\n /** 429 Too Many Requests */\n SpanStatus[\"ResourceExhausted\"] = \"resource_exhausted\";\n /** Client specified an invalid argument. 4xx. */\n SpanStatus[\"InvalidArgument\"] = \"invalid_argument\";\n /** 501 Not Implemented */\n SpanStatus[\"Unimplemented\"] = \"unimplemented\";\n /** 503 Service Unavailable */\n SpanStatus[\"Unavailable\"] = \"unavailable\";\n /** Other/generic 5xx. */\n SpanStatus[\"InternalError\"] = \"internal_error\";\n /** Unknown. Any non-standard HTTP status code. */\n SpanStatus[\"UnknownError\"] = \"unknown_error\";\n /** The operation was cancelled (typically by the user). */\n SpanStatus[\"Cancelled\"] = \"cancelled\";\n /** Already exists (409) */\n SpanStatus[\"AlreadyExists\"] = \"already_exists\";\n /** Operation was rejected because the system is not in a state required for the operation's */\n SpanStatus[\"FailedPrecondition\"] = \"failed_precondition\";\n /** The operation was aborted, typically due to a concurrency issue. */\n SpanStatus[\"Aborted\"] = \"aborted\";\n /** Operation was attempted past the valid range. */\n SpanStatus[\"OutOfRange\"] = \"out_of_range\";\n /** Unrecoverable data loss or corruption */\n SpanStatus[\"DataLoss\"] = \"data_loss\";\n})(SpanStatus || (SpanStatus = {}));\n// eslint-disable-next-line @typescript-eslint/no-namespace, import/export\n(function (SpanStatus) {\n /**\n * Converts a HTTP status code into a {@link SpanStatus}.\n *\n * @param httpStatus The HTTP response status code.\n * @returns The span status or {@link SpanStatus.UnknownError}.\n */\n function fromHttpCode(httpStatus) {\n if (httpStatus < 400) {\n return SpanStatus.Ok;\n }\n if (httpStatus >= 400 && httpStatus < 500) {\n switch (httpStatus) {\n case 401:\n return SpanStatus.Unauthenticated;\n case 403:\n return SpanStatus.PermissionDenied;\n case 404:\n return SpanStatus.NotFound;\n case 409:\n return SpanStatus.AlreadyExists;\n case 413:\n return SpanStatus.FailedPrecondition;\n case 429:\n return SpanStatus.ResourceExhausted;\n default:\n return SpanStatus.InvalidArgument;\n }\n }\n if (httpStatus >= 500 && httpStatus < 600) {\n switch (httpStatus) {\n case 501:\n return SpanStatus.Unimplemented;\n case 503:\n return SpanStatus.Unavailable;\n case 504:\n return SpanStatus.DeadlineExceeded;\n default:\n return SpanStatus.InternalError;\n }\n }\n return SpanStatus.UnknownError;\n }\n SpanStatus.fromHttpCode = fromHttpCode;\n})(SpanStatus || (SpanStatus = {}));\n//# sourceMappingURL=spanstatus.js.map","module.exports = require(\"util\");","/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the logger, or b) put your function elsewhere.\n */\nimport { isNodeEnv } from './node';\nvar fallbackGlobalObject = {};\n/**\n * Safely get global scope object\n *\n * @returns Global scope object\n */\nexport function getGlobalObject() {\n return (isNodeEnv()\n ? global\n : typeof window !== 'undefined' // eslint-disable-line no-restricted-globals\n ? window // eslint-disable-line no-restricted-globals\n : typeof self !== 'undefined'\n ? self\n : fallbackGlobalObject);\n}\n//# sourceMappingURL=global.js.map","// eslint-disable-next-line @typescript-eslint/no-var-requires\nimport { config } from './server';\nimport path from 'path';\nconst { createLogger, transports, format } = require('./logform');\n\n// Needed to manually apply a color to componenent property of log\nconst manualColorize = (strToColor: string): string => `[\\x1b[35m${strToColor}\\x1b[0m]`;\n\n// Format handler passed to winston\nconst formatLogs = (log: any): string => {\n if (log.module)\n return `${log.label} ${manualColorize(log.module)} [${log.level}]: ${log.message}`;\n\n return `${log.label} [${log.level}]: ${log.message}`;\n};\n\nconst findLogPath = () => `${path.join(GetResourcePath(GetCurrentResourceName()), 'sv_npwd.log')}`;\n// Initiate the main logger for NPWD\n\nexport const mainLogger = createLogger({\n level: config.debug.level ?? 'info',\n silent: !config.debug.enabled ?? false,\n transports: [\n new transports.File({\n filename: findLogPath(),\n format: format.combine(format.errors({ stack: true }), format.timestamp(), format.json()),\n }),\n new transports.Console({\n format: format.combine(\n format.label({ label: '[NPWD]' }),\n format.colorize({ all: true }),\n format.printf(formatLogs),\n ),\n }),\n ],\n});\n","'use strict';\n\n/*\n * Displays a helpful message and the source of\n * the format when it is invalid.\n */\nclass InvalidFormatError extends Error {\n constructor(formatFn) {\n super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${formatFn.toString().split('\\n')[0]}\\n`);\n\n Error.captureStackTrace(this, InvalidFormatError);\n }\n}\n\n/*\n * function format (formatFn)\n * Returns a create function for the `formatFn`.\n */\nmodule.exports = formatFn => {\n if (formatFn.length > 2) {\n throw new InvalidFormatError(formatFn);\n }\n\n /*\n * function Format (options)\n * Base prototype which calls a `_format`\n * function and pushes the result.\n */\n function Format(options = {}) {\n this.options = options;\n }\n\n Format.prototype.transform = formatFn;\n\n //\n // Create a function which returns new instances of\n // FormatWrap for simple syntax like:\n //\n // require('winston').formats.json();\n //\n function createFormatWrap(opts) {\n return new Format(opts);\n }\n\n //\n // Expose the FormatWrap through the create function\n // for testability.\n //\n createFormatWrap.Format = Format;\n return createFormatWrap;\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n","module.exports = require(\"fs\");","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/**\n * Memo class used for decycle json objects. Uses WeakSet if available otherwise array.\n */\nvar Memo = /** @class */ (function () {\n function Memo() {\n this._hasWeakSet = typeof WeakSet === 'function';\n this._inner = this._hasWeakSet ? new WeakSet() : [];\n }\n /**\n * Sets obj to remember.\n * @param obj Object to remember\n */\n Memo.prototype.memoize = function (obj) {\n if (this._hasWeakSet) {\n if (this._inner.has(obj)) {\n return true;\n }\n this._inner.add(obj);\n return false;\n }\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < this._inner.length; i++) {\n var value = this._inner[i];\n if (value === obj) {\n return true;\n }\n }\n this._inner.push(obj);\n return false;\n };\n /**\n * Removes object from internal storage.\n * @param obj Object to forget\n */\n Memo.prototype.unmemoize = function (obj) {\n if (this._hasWeakSet) {\n this._inner.delete(obj);\n }\n else {\n for (var i = 0; i < this._inner.length; i++) {\n if (this._inner[i] === obj) {\n this._inner.splice(i, 1);\n break;\n }\n }\n }\n };\n return Memo;\n}());\nexport { Memo };\n//# sourceMappingURL=memo.js.map","import { __values } from \"tslib\";\nimport { htmlTreeAsString } from './browser';\nimport { isElement, isError, isEvent, isInstanceOf, isPlainObject, isPrimitive, isSyntheticEvent } from './is';\nimport { Memo } from './memo';\nimport { getFunctionName } from './stacktrace';\nimport { truncate } from './string';\n/**\n * Replace a method in an object with a wrapped version of itself.\n *\n * @param source An object that contains a method to be wrapped.\n * @param name The name of the method to be wrapped.\n * @param replacementFactory A higher-order function that takes the original version of the given method and returns a\n * wrapped version. Note: The function returned by `replacementFactory` needs to be a non-arrow function, in order to\n * preserve the correct value of `this`, and the original method must be called using `origMethod.call(this, )` or `origMethod.apply(this, [])` (rather than being called directly), again to preserve `this`.\n * @returns void\n */\nexport function fill(source, name, replacementFactory) {\n if (!(name in source)) {\n return;\n }\n var original = source[name];\n var wrapped = replacementFactory(original);\n // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n if (typeof wrapped === 'function') {\n try {\n wrapped.prototype = wrapped.prototype || {};\n Object.defineProperties(wrapped, {\n __sentry_original__: {\n enumerable: false,\n value: original,\n },\n });\n }\n catch (_Oo) {\n // This can throw if multiple fill happens on a global object like XMLHttpRequest\n // Fixes https://github.com/getsentry/sentry-javascript/issues/2043\n }\n }\n source[name] = wrapped;\n}\n/**\n * Encodes given object into url-friendly format\n *\n * @param object An object that contains serializable values\n * @returns string Encoded\n */\nexport function urlEncode(object) {\n return Object.keys(object)\n .map(function (key) { return encodeURIComponent(key) + \"=\" + encodeURIComponent(object[key]); })\n .join('&');\n}\n/**\n * Transforms any object into an object literal with all its attributes\n * attached to it.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n */\nfunction getWalkSource(value) {\n if (isError(value)) {\n var error = value;\n var err = {\n message: error.message,\n name: error.name,\n stack: error.stack,\n };\n for (var i in error) {\n if (Object.prototype.hasOwnProperty.call(error, i)) {\n err[i] = error[i];\n }\n }\n return err;\n }\n if (isEvent(value)) {\n var event_1 = value;\n var source = {};\n // Accessing event attributes can throw (see https://github.com/getsentry/sentry-javascript/issues/768 and\n // https://github.com/getsentry/sentry-javascript/issues/838), but accessing `type` hasn't been wrapped in a\n // try-catch in at least two years and no one's complained, so that's likely not an issue anymore\n source.type = event_1.type;\n try {\n source.target = isElement(event_1.target)\n ? htmlTreeAsString(event_1.target)\n : Object.prototype.toString.call(event_1.target);\n }\n catch (_oO) {\n source.target = '';\n }\n try {\n source.currentTarget = isElement(event_1.currentTarget)\n ? htmlTreeAsString(event_1.currentTarget)\n : Object.prototype.toString.call(event_1.currentTarget);\n }\n catch (_oO) {\n source.currentTarget = '';\n }\n if (typeof CustomEvent !== 'undefined' && isInstanceOf(value, CustomEvent)) {\n source.detail = event_1.detail;\n }\n for (var attr in event_1) {\n if (Object.prototype.hasOwnProperty.call(event_1, attr)) {\n source[attr] = event_1[attr];\n }\n }\n return source;\n }\n return value;\n}\n/** Calculates bytes size of input string */\nfunction utf8Length(value) {\n // eslint-disable-next-line no-bitwise\n return ~-encodeURI(value).split(/%..|./).length;\n}\n/** Calculates bytes size of input object */\nfunction jsonSize(value) {\n return utf8Length(JSON.stringify(value));\n}\n/** JSDoc */\nexport function normalizeToSize(object, \n// Default Node.js REPL depth\ndepth, \n// 100kB, as 200kB is max payload size, so half sounds reasonable\nmaxSize) {\n if (depth === void 0) { depth = 3; }\n if (maxSize === void 0) { maxSize = 100 * 1024; }\n var serialized = normalize(object, depth);\n if (jsonSize(serialized) > maxSize) {\n return normalizeToSize(object, depth - 1, maxSize);\n }\n return serialized;\n}\n/**\n * Transform any non-primitive, BigInt, or Symbol-type value into a string. Acts as a no-op on strings, numbers,\n * booleans, null, and undefined.\n *\n * @param value The value to stringify\n * @returns For non-primitive, BigInt, and Symbol-type values, a string denoting the value's type, type and value, or\n * type and `description` property, respectively. For non-BigInt, non-Symbol primitives, returns the original value,\n * unchanged.\n */\nfunction serializeValue(value) {\n var type = Object.prototype.toString.call(value);\n // Node.js REPL notation\n if (typeof value === 'string') {\n return value;\n }\n if (type === '[object Object]') {\n return '[Object]';\n }\n if (type === '[object Array]') {\n return '[Array]';\n }\n var normalized = normalizeValue(value);\n return isPrimitive(normalized) ? normalized : type;\n}\n/**\n * normalizeValue()\n *\n * Takes unserializable input and make it serializable friendly\n *\n * - translates undefined/NaN values to \"[undefined]\"/\"[NaN]\" respectively,\n * - serializes Error objects\n * - filter global objects\n */\nfunction normalizeValue(value, key) {\n if (key === 'domain' && value && typeof value === 'object' && value._events) {\n return '[Domain]';\n }\n if (key === 'domainEmitter') {\n return '[DomainEmitter]';\n }\n if (typeof global !== 'undefined' && value === global) {\n return '[Global]';\n }\n // It's safe to use `window` and `document` here in this manner, as we are asserting using `typeof` first\n // which won't throw if they are not present.\n // eslint-disable-next-line no-restricted-globals\n if (typeof window !== 'undefined' && value === window) {\n return '[Window]';\n }\n // eslint-disable-next-line no-restricted-globals\n if (typeof document !== 'undefined' && value === document) {\n return '[Document]';\n }\n // React's SyntheticEvent thingy\n if (isSyntheticEvent(value)) {\n return '[SyntheticEvent]';\n }\n if (typeof value === 'number' && value !== value) {\n return '[NaN]';\n }\n if (value === void 0) {\n return '[undefined]';\n }\n if (typeof value === 'function') {\n return \"[Function: \" + getFunctionName(value) + \"]\";\n }\n // symbols and bigints are considered primitives by TS, but aren't natively JSON-serilaizable\n if (typeof value === 'symbol') {\n return \"[\" + String(value) + \"]\";\n }\n if (typeof value === 'bigint') {\n return \"[BigInt: \" + String(value) + \"]\";\n }\n return value;\n}\n/**\n * Walks an object to perform a normalization on it\n *\n * @param key of object that's walked in current iteration\n * @param value object to be walked\n * @param depth Optional number indicating how deep should walking be performed\n * @param memo Optional Memo class handling decycling\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function walk(key, value, depth, memo) {\n if (depth === void 0) { depth = +Infinity; }\n if (memo === void 0) { memo = new Memo(); }\n // If we reach the maximum depth, serialize whatever has left\n if (depth === 0) {\n return serializeValue(value);\n }\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // If value implements `toJSON` method, call it and return early\n if (value !== null && value !== undefined && typeof value.toJSON === 'function') {\n return value.toJSON();\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n // If normalized value is a primitive, there are no branches left to walk, so we can just bail out, as theres no point in going down that branch any further\n var normalized = normalizeValue(value, key);\n if (isPrimitive(normalized)) {\n return normalized;\n }\n // Create source that we will use for next itterations, either objectified error object (Error type with extracted keys:value pairs) or the input itself\n var source = getWalkSource(value);\n // Create an accumulator that will act as a parent for all future itterations of that branch\n var acc = Array.isArray(value) ? [] : {};\n // If we already walked that branch, bail out, as it's circular reference\n if (memo.memoize(value)) {\n return '[Circular ~]';\n }\n // Walk all keys of the source\n for (var innerKey in source) {\n // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.\n if (!Object.prototype.hasOwnProperty.call(source, innerKey)) {\n continue;\n }\n // Recursively walk through all the child nodes\n acc[innerKey] = walk(innerKey, source[innerKey], depth - 1, memo);\n }\n // Once walked through all the branches, remove the parent from memo storage\n memo.unmemoize(value);\n // Return accumulated values\n return acc;\n}\n/**\n * normalize()\n *\n * - Creates a copy to prevent original input mutation\n * - Skip non-enumerablers\n * - Calls `toJSON` if implemented\n * - Removes circular references\n * - Translates non-serializeable values (undefined/NaN/Functions) to serializable format\n * - Translates known global objects/Classes to a string representations\n * - Takes care of Error objects serialization\n * - Optionally limit depth of final output\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function normalize(input, depth) {\n try {\n return JSON.parse(JSON.stringify(input, function (key, value) { return walk(key, value, depth); }));\n }\n catch (_oO) {\n return '**non-serializable**';\n }\n}\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function extractExceptionKeysForMessage(exception, maxLength) {\n if (maxLength === void 0) { maxLength = 40; }\n var keys = Object.keys(getWalkSource(exception));\n keys.sort();\n if (!keys.length) {\n return '[object has no keys]';\n }\n if (keys[0].length >= maxLength) {\n return truncate(keys[0], maxLength);\n }\n for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n var serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return truncate(serialized, maxLength);\n }\n return '';\n}\n/**\n * Given any object, return the new object with removed keys that value was `undefined`.\n * Works recursively on objects and arrays.\n */\nexport function dropUndefinedKeys(val) {\n var e_1, _a;\n if (isPlainObject(val)) {\n var obj = val;\n var rv = {};\n try {\n for (var _b = __values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var key = _c.value;\n if (typeof obj[key] !== 'undefined') {\n rv[key] = dropUndefinedKeys(obj[key]);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return rv;\n }\n if (Array.isArray(val)) {\n return val.map(dropUndefinedKeys);\n }\n return val;\n}\n/**\n * Ensure that something is an object.\n *\n * Turns `undefined` and `null` into `String`s and all other primitives into instances of their respective wrapper\n * classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.\n *\n * @param wat The subject of the objectification\n * @returns A version of `wat` which can safely be used with `Object` class methods\n */\nexport function objectify(wat) {\n var objectified;\n switch (true) {\n case wat === undefined || wat === null:\n objectified = new String(wat);\n break;\n // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n // an object in order to wrap it.\n case typeof wat === 'symbol' || typeof wat === 'bigint':\n objectified = Object(wat);\n break;\n // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n case isPrimitive(wat):\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n objectified = new wat.constructor(wat);\n break;\n // by process of elimination, at this point we know that `wat` must already be an object\n default:\n objectified = wat;\n break;\n }\n return objectified;\n}\n//# sourceMappingURL=object.js.map","import { RewriteFrames } from '@sentry/integrations';\nimport { config as resourceConfig } from './config';\nexport const config = resourceConfig;\n\n// Setup controllers\nimport './db/pool';\nimport './players/player.controller';\nimport './calls/calls.controller';\nimport './notes/notes.controller';\nimport './contacts/contacts.controller';\nimport './photo/photo.controller';\nimport './messages/messages.controller';\nimport './marketplace/marketplace.controller';\nimport './twitter/twitter.controller';\nimport './match/match.controller';\n\n// setup exports\nimport './bridge/sv_exports';\n\nimport { mainLogger } from './sv_logger';\nimport * as Sentry from '@sentry/node';\n\n// Setup sentry tracing\nif (config.debug.sentryEnabled && process.env.NODE_ENV === 'production') {\n Sentry.init({\n dsn: 'https://5c5da180a57e4db1acb617ef2c6cb59f@sentry.projecterror.dev/3',\n integrations: [new RewriteFrames()],\n release: process.env.SENTRY_RELEASE || '0.0.0',\n // Set tracesSampleRate to 1.0 to capture 100%\n // of transactions for performance monitoring.\n // We recommend adjusting this value in production\n tracesSampleRate: 1.0,\n });\n}\n\non('onServerResourceStart', (resource: string) => {\n if (resource === GetCurrentResourceName()) {\n mainLogger.info('Sucessfully started');\n }\n});\n","import { findOrGeneratePhoneNumber } from '../misc/functions';\nimport { PhoneEvents } from '../../../typings/phone';\nimport { Player } from './player.class';\nimport { PlayerAddData } from './player.interfaces';\nimport Collection from '@discordjs/collection';\nimport { getPlayerGameLicense } from '../utils/getPlayerGameLicense';\nimport playerDB, { PlayerRepo } from './player.db';\nimport { playerLogger } from './player.utils';\nimport MarketplaceService from '../marketplace/marketplace.service';\nimport { Delay } from '../../utils/fivem';\n\nclass _PlayerService {\n private readonly playersBySource: Collection;\n private readonly playersByIdentifier: Collection;\n private readonly playerDB: PlayerRepo;\n\n constructor() {\n this.playersBySource = new Collection();\n this.playersByIdentifier = new Collection();\n this.playerDB = playerDB;\n playerLogger.debug('Player Service started');\n }\n\n /**\n * Adds a Player instance to the source & identifier maps\n * @param source - The player's source\n * @param player - The player instance to use as a value\n */\n\n addPlayerToMaps(source: number, player: Player) {\n this.playersBySource.set(source, player);\n this.playersByIdentifier.set(player.getIdentifier(), player);\n }\n\n /**\n * Deletes a player from both map by source & identifier\n * @param source - The player's source\n */\n deletePlayerFromMaps(source: number) {\n const identifier = this.playersBySource.get(source).getIdentifier();\n this.playersByIdentifier.delete(identifier);\n this.playersBySource.delete(source);\n }\n /**\n * Returns the player instance for a given source\n * Will return null if no player is found online with that source\n **/\n getPlayer(source: number): Player | null {\n const player = this.playersBySource.get(source);\n if (!player) return null;\n return player;\n }\n\n /**\n * Returns the player identifier for a given source\n * Will return null if no player is found online with that source\n **/\n getIdentifier(source: number): string {\n return this.getPlayer(source).getIdentifier();\n }\n\n /**\n * Returns the player phoneNumber for a passed identifier\n * @param identifier The players phone number\n */\n getPlayerFromIdentifier(identifier: string): Player | null {\n const player = this.playersByIdentifier.get(identifier);\n if (!player) {\n return null;\n }\n return player;\n }\n\n /**\n * Will return the given identifier from a phone number\n * @param phoneNumber - The phone number of the player\n * @param fetch - Whether to fetch for the identifier if they are offline\n **/\n async getIdentifierFromPhoneNumber(phoneNumber: string, fetch?: boolean): Promise {\n const onlinePlayer = this.playersBySource.find(\n (player: Player) => player.getPhoneNumber() === phoneNumber,\n );\n // Return the player if they are online\n if (onlinePlayer) return onlinePlayer.getIdentifier();\n if (fetch) {\n const fetchResult: string | null = await this.playerDB\n .fetchIdentifierFromPhoneNumber(phoneNumber)\n .catch((e) => {\n playerLogger.error(\n `Failed to fetch identifier from phone number for ${phoneNumber}, error: ${e.message}`,\n );\n return null;\n });\n\n return fetchResult;\n }\n // Return null if all else doesn't return\n return null;\n }\n\n /**\n * We call this function on the event `playerJoined`,\n * only if the multicharacter option is set to false in the config.\n * @param pSource - The source of the player to handle\n */\n async handleNewPlayerJoined(pSource: number) {\n const playerIdentifier = getPlayerGameLicense(pSource);\n\n if (!playerIdentifier) {\n throw new Error(`License identifier could not be found for source (${pSource})`);\n }\n\n const username = GetPlayerName(pSource.toString());\n playerLogger.info(`Started loading for ${username} (${pSource})`);\n // Ensure phone number exists or generate\n\n const phone_number = await findOrGeneratePhoneNumber(playerIdentifier);\n\n const newPlayer = new Player({\n identifier: playerIdentifier,\n source: pSource,\n username,\n phoneNumber: phone_number,\n });\n\n this.addPlayerToMaps(pSource, newPlayer);\n\n playerLogger.info('NPWD Player Loaded!');\n playerLogger.debug(newPlayer);\n\n // This is a stupid hack for development reloading\n // Client handlers are experiencing a race condition where the event\n // is sent out before the client handlers can load.\n if (process.env.NODE_ENV === 'development') {\n await Delay(100);\n }\n\n emitNet(PhoneEvents.SET_PLAYER_LOADED, pSource, true);\n }\n\n /**\n * Instantiate a basic Player instance from the constructor\n * @param src - The player source\n * @param identifier - The primary identifier\n *\n */\n\n async createNewPlayer({\n src,\n identifier,\n phoneNumber,\n }: {\n src: number;\n identifier: string;\n phoneNumber: string;\n }): Promise {\n const username = GetPlayerName(src.toString());\n\n if (!phoneNumber) {\n phoneNumber = await findOrGeneratePhoneNumber(identifier);\n if (!phoneNumber) return null;\n }\n\n return new Player({\n source: src,\n identifier,\n phoneNumber,\n username,\n });\n }\n\n /**\n * We call this function whenever we receive a `npwd:newPlayer`\n * event while multichar is enabled.\n * @param NewPlayerDTO - A DTO with all the new info required to instantiate a new player\n *\n */\n async handleNewPlayerEvent({\n source: src,\n identifier,\n phoneNumber,\n firstname,\n lastname,\n }: PlayerAddData) {\n const player = await this.createNewPlayer({\n src,\n identifier: identifier.toString(),\n phoneNumber,\n });\n\n if (firstname) player.setFirstName(firstname);\n if (lastname) player.setLastName(lastname);\n\n this.addPlayerToMaps(src, player);\n\n playerLogger.info(`New NPWD Player added through event (${src}) (${identifier})`);\n playerLogger.debug(player);\n\n emitNet(PhoneEvents.SET_PLAYER_LOADED, src, true);\n }\n\n /**\n * Return the attached identifier for a given phone number\n * @param phoneNumber The phone number to return identifier for\n * @param fetch Whether or not to query the database if a given player is offline\n **/\n async getIdentifierByPhoneNumber(phoneNumber: string, fetch?: boolean): Promise {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n for (const [_, player] of this.playersBySource) {\n if (player.getPhoneNumber() === phoneNumber) return player.getIdentifier();\n }\n // Whether we fetch from database if not found in online players\n if (fetch) {\n return await this.playerDB.fetchIdentifierFromPhoneNumber(phoneNumber);\n }\n }\n\n /**\n * Clear all data from the database we don't want to stored after the player as disconnected.\n */\n async clearPlayerData(src: number) {\n const identifier = this.getIdentifier(src);\n try {\n await MarketplaceService.handleDeleteListingsOnDrop(identifier);\n } catch (e) {\n playerLogger.error(`Failed to clear player data when dropped, Error: ${e.message}`);\n }\n }\n\n /**\n * Unload event handler\n * @param src - Source of player being unloaded\n **/\n async handleUnloadPlayerEvent(src: number) {\n await this.clearPlayerData(src);\n\n this.deletePlayerFromMaps(src);\n emitNet(PhoneEvents.SET_PLAYER_LOADED, src, false);\n playerLogger.info(`Unloaded NPWD Player, source: (${src})`);\n }\n}\n\nconst PlayerService = new _PlayerService();\n\nexport default PlayerService;\n","// This file was modified by Oracle on June 1, 2021.\n// A utility method was introduced to generate an Error instance from a\n// binary server packet.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst process = require('process');\n\nconst AuthSwitchRequest = require('./auth_switch_request');\nconst AuthSwitchRequestMoreData = require('./auth_switch_request_more_data');\nconst AuthSwitchResponse = require('./auth_switch_response');\nconst BinaryRow = require('./binary_row');\nconst BinlogDump = require('./binlog_dump');\nconst ChangeUser = require('./change_user');\nconst CloseStatement = require('./close_statement');\nconst ColumnDefinition = require('./column_definition');\nconst Execute = require('./execute');\nconst Handshake = require('./handshake');\nconst HandshakeResponse = require('./handshake_response');\nconst PrepareStatement = require('./prepare_statement');\nconst PreparedStatementHeader = require('./prepared_statement_header');\nconst Query = require('./query');\nconst RegisterSlave = require('./register_slave');\nconst ResultSetHeader = require('./resultset_header');\nconst SSLRequest = require('./ssl_request');\nconst TextRow = require('./text_row');\n\nconst ctorMap = {\n AuthSwitchRequest,\n AuthSwitchRequestMoreData,\n AuthSwitchResponse,\n BinaryRow,\n BinlogDump,\n ChangeUser,\n CloseStatement,\n ColumnDefinition,\n Execute,\n Handshake,\n HandshakeResponse,\n PrepareStatement,\n PreparedStatementHeader,\n Query,\n RegisterSlave,\n ResultSetHeader,\n SSLRequest,\n TextRow\n};\nObject.entries(ctorMap).forEach(([name, ctor]) => {\n module.exports[name] = ctor;\n // monkey-patch it to include name if debug is on\n if (process.env.NODE_DEBUG) {\n if (ctor.prototype.toPacket) {\n const old = ctor.prototype.toPacket;\n ctor.prototype.toPacket = function() {\n const p = old.call(this);\n p._name = name;\n return p;\n };\n }\n }\n});\n\n// simple packets:\nconst Packet = require('./packet');\nexports.Packet = Packet;\n\nclass OK {\n static toPacket(args, encoding) {\n args = args || {};\n const affectedRows = args.affectedRows || 0;\n const insertId = args.insertId || 0;\n const serverStatus = args.serverStatus || 0;\n const warningCount = args.warningCount || 0;\n const message = args.message || '';\n\n let length = 9 + Packet.lengthCodedNumberLength(affectedRows);\n length += Packet.lengthCodedNumberLength(insertId);\n\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(0);\n packet.writeLengthCodedNumber(affectedRows);\n packet.writeLengthCodedNumber(insertId);\n packet.writeInt16(serverStatus);\n packet.writeInt16(warningCount);\n packet.writeString(message, encoding);\n packet._name = 'OK';\n return packet;\n }\n}\n\nexports.OK = OK;\n\n// warnings, statusFlags\nclass EOF {\n static toPacket(warnings, statusFlags) {\n if (typeof warnings === 'undefined') {\n warnings = 0;\n }\n if (typeof statusFlags === 'undefined') {\n statusFlags = 0;\n }\n const packet = new Packet(0, Buffer.allocUnsafe(9), 0, 9);\n packet.offset = 4;\n packet.writeInt8(0xfe);\n packet.writeInt16(warnings);\n packet.writeInt16(statusFlags);\n packet._name = 'EOF';\n return packet;\n }\n}\n\nexports.EOF = EOF;\n\nclass Error {\n static toPacket(args, encoding) {\n const length = 13 + Buffer.byteLength(args.message, 'utf8');\n const packet = new Packet(0, Buffer.allocUnsafe(length), 0, length);\n packet.offset = 4;\n packet.writeInt8(0xff);\n packet.writeInt16(args.code);\n // TODO: sql state parameter\n packet.writeString('#_____', encoding);\n packet.writeString(args.message, encoding);\n packet._name = 'Error';\n return packet;\n }\n\n static fromPacket(packet) {\n packet.readInt8(); // marker\n const code = packet.readInt16();\n packet.readString(1, 'ascii'); // sql state marker\n // The SQL state of the ERR_Packet which is always 5 bytes long.\n // https://dev.mysql.com/doc/dev/mysql-server/8.0.11/page_protocol_basic_dt_strings.html#sect_protocol_basic_dt_string_fix\n packet.readString(5, 'ascii'); // sql state (ignore for now)\n const message = packet.readNullTerminatedString('utf8');\n const error = new Error();\n error.message = message;\n error.code = code;\n return error;\n }\n}\n\nexports.Error = Error;\n","'use strict';\n\nconst EventEmitter = require('events').EventEmitter;\nconst Timers = require('timers');\n\nclass Command extends EventEmitter {\n constructor() {\n super();\n this.next = null;\n }\n\n // slow. debug only\n stateName() {\n const state = this.next;\n for (const i in this) {\n if (this[i] === state && i !== 'next') {\n return i;\n }\n }\n return 'unknown name';\n }\n\n execute(packet, connection) {\n if (!this.next) {\n this.next = this.start;\n connection._resetSequenceId();\n }\n if (packet && packet.isError()) {\n const err = packet.asError(connection.clientEncoding);\n err.sql = this.sql || this.query;\n if (this.queryTimeout) {\n Timers.clearTimeout(this.queryTimeout);\n this.queryTimeout = null;\n }\n if (this.onResult) {\n this.onResult(err);\n this.emit('end');\n } else {\n this.emit('error', err);\n this.emit('end');\n }\n return true;\n }\n // TODO: don't return anything from execute, it's ugly and error-prone. Listen for 'end' event in connection\n this.next = this.next(packet, connection);\n if (this.next) {\n return false;\n } \n this.emit('end');\n return true;\n \n }\n}\n\nmodule.exports = Command;\n","import { pool } from './pool';\nimport { mainLogger } from '../sv_logger';\nimport { ResultSetHeader } from 'mysql2';\nimport { config } from '../server';\nimport { withProfile } from '../utils/withProfile';\n\nconst RESOURCE_NAME = GetCurrentResourceName();\n\n// Replicates ghmattimysql API\nclass _DbInterface {\n private readonly logger = mainLogger.child({ module: 'DBInterface' });\n\n private async _internalQuery(query: string, values?: unknown) {\n try {\n if (config.database.profileQueries) return await withProfile(pool.execute, query, values);\n\n ScheduleResourceTick(RESOURCE_NAME);\n return await pool.query(query, values);\n } catch (e) {\n this.logger.error(`Error executing ${query} with error message ${e.message}`);\n }\n }\n\n /**\n * This shouldn't be used but we keep it public just in case we need to do a\n * raw query with no wrappers whatsoever.\n * @todo This was a fast way of easily porting all our existing queries but should be moved away from\n * @deprecated\n */\n public _rawExec(query: string, values?: unknown) {\n ScheduleResourceTick(RESOURCE_NAME);\n return pool.query(query, values);\n }\n\n /**\n * Will execute a query and return the affected rows\n * @param query Query template\n * @param values Variable definition\n **/\n public async exec(query: string, values?: unknown) {\n const [res] = await this._internalQuery(query, values);\n return (res).affectedRows;\n }\n\n /**\n * Will insert a row and return the insertId\n * @param query Query template\n * @param values Variable definition\n **/\n public async insert(query: string, values?: unknown) {\n const [res] = await this._internalQuery(query, values);\n return (res).insertId;\n }\n\n /**\n * Will exec and return results\n * @todo Type safety can be improved\n */\n public async fetch(query: string, values?: unknown): Promise {\n const [res] = await this._internalQuery(query, values);\n const castRes = res;\n return castRes;\n }\n}\nconst DbInterface = new _DbInterface();\n\nexport default DbInterface;\n","module.exports = require(\"crypto\");","module.exports = require(\"url\");","/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the logger, or b) put your function elsewhere.\n */\n/**\n * Checks whether we're in the Node.js or Browser environment\n *\n * @returns Answer to given question\n */\nexport function isNodeEnv() {\n return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\n}\n/**\n * Requires a module which is protected against bundler minification.\n *\n * @param request The module path to resolve\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any\nexport function dynamicRequire(mod, request) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n}\n/**\n * Helper for dynamically loading module that should work with linked dependencies.\n * The problem is that we _should_ be using `require(require.resolve(moduleName, { paths: [cwd()] }))`\n * However it's _not possible_ to do that with Webpack, as it has to know all the dependencies during\n * build time. `require.resolve` is also not available in any other way, so we cannot create,\n * a fake helper like we do with `dynamicRequire`.\n *\n * We always prefer to use local package, thus the value is not returned early from each `try/catch` block.\n * That is to mimic the behavior of `require.resolve` exactly.\n *\n * @param moduleName module name to require\n * @returns possibly required module\n */\nexport function loadModule(moduleName) {\n var mod;\n try {\n mod = dynamicRequire(module, moduleName);\n }\n catch (e) {\n // no-empty\n }\n try {\n var cwd = dynamicRequire(module, 'process').cwd;\n mod = dynamicRequire(module, cwd() + \"/node_modules/\" + moduleName);\n }\n catch (e) {\n // no-empty\n }\n return mod;\n}\n//# sourceMappingURL=node.js.map","module.exports = require(\"events\");","'use strict';\n\nmodule.exports = {\n SLEEP: 0x00, // deprecated\n QUIT: 0x01,\n INIT_DB: 0x02,\n QUERY: 0x03,\n FIELD_LIST: 0x04,\n CREATE_DB: 0x05,\n DROP_DB: 0x06,\n REFRESH: 0x07,\n SHUTDOWN: 0x08,\n STATISTICS: 0x09,\n PROCESS_INFO: 0x0a, // deprecated\n CONNECT: 0x0b, // deprecated\n PROCESS_KILL: 0x0c,\n DEBUG: 0x0d,\n PING: 0x0e,\n TIME: 0x0f, // deprecated\n DELAYED_INSERT: 0x10, // deprecated\n CHANGE_USER: 0x11,\n BINLOG_DUMP: 0x12,\n TABLE_DUMP: 0x13,\n CONNECT_OUT: 0x14,\n REGISTER_SLAVE: 0x15,\n STMT_PREPARE: 0x16,\n STMT_EXECUTE: 0x17,\n STMT_SEND_LONG_DATA: 0x18,\n STMT_CLOSE: 0x19,\n STMT_RESET: 0x1a,\n SET_OPTION: 0x1b,\n STMT_FETCH: 0x1c,\n DAEMON: 0x1d, // deprecated\n BINLOG_DUMP_GTID: 0x1e,\n UNKNOWN: 0xff // bad!\n};\n","'use strict';\n\n// see tools/generate-charset-mapping.js\n// basicalliy result of \"SHOW COLLATION\" query\n\nmodule.exports = [\n 'utf8',\n 'big5',\n 'latin2',\n 'dec8',\n 'cp850',\n 'latin1',\n 'hp8',\n 'koi8r',\n 'latin1',\n 'latin2',\n 'swe7',\n 'ascii',\n 'eucjp',\n 'sjis',\n 'cp1251',\n 'latin1',\n 'hebrew',\n 'utf8',\n 'tis620',\n 'euckr',\n 'latin7',\n 'latin2',\n 'koi8u',\n 'cp1251',\n 'gb2312',\n 'greek',\n 'cp1250',\n 'latin2',\n 'gbk',\n 'cp1257',\n 'latin5',\n 'latin1',\n 'armscii8',\n 'cesu8',\n 'cp1250',\n 'ucs2',\n 'cp866',\n 'keybcs2',\n 'macintosh',\n 'macroman',\n 'cp852',\n 'latin7',\n 'latin7',\n 'macintosh',\n 'cp1250',\n 'utf8',\n 'utf8',\n 'latin1',\n 'latin1',\n 'latin1',\n 'cp1251',\n 'cp1251',\n 'cp1251',\n 'macroman',\n 'utf16',\n 'utf16',\n 'utf16-le',\n 'cp1256',\n 'cp1257',\n 'cp1257',\n 'utf32',\n 'utf32',\n 'utf16-le',\n 'binary',\n 'armscii8',\n 'ascii',\n 'cp1250',\n 'cp1256',\n 'cp866',\n 'dec8',\n 'greek',\n 'hebrew',\n 'hp8',\n 'keybcs2',\n 'koi8r',\n 'koi8u',\n 'cesu8',\n 'latin2',\n 'latin5',\n 'latin7',\n 'cp850',\n 'cp852',\n 'swe7',\n 'cesu8',\n 'big5',\n 'euckr',\n 'gb2312',\n 'gbk',\n 'sjis',\n 'tis620',\n 'ucs2',\n 'eucjp',\n 'geostd8',\n 'geostd8',\n 'latin1',\n 'cp932',\n 'cp932',\n 'eucjpms',\n 'eucjpms',\n 'cp1250',\n 'utf8',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf8',\n 'utf8',\n 'utf8',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'ucs2',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'cesu8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'gb18030',\n 'gb18030',\n 'gb18030',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8'\n];\n","module.exports = require(\"buffer\");","module.exports = require(\"os\");","module.exports = require(\"path\");","/* eslint-disable node/no-deprecated-api */\n\n'use strict'\n\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\nvar safer = {}\n\nvar key\n\nfor (key in buffer) {\n if (!buffer.hasOwnProperty(key)) continue\n if (key === 'SlowBuffer' || key === 'Buffer') continue\n safer[key] = buffer[key]\n}\n\nvar Safer = safer.Buffer = {}\nfor (key in Buffer) {\n if (!Buffer.hasOwnProperty(key)) continue\n if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue\n Safer[key] = Buffer[key]\n}\n\nsafer.Buffer.prototype = Buffer.prototype\n\nif (!Safer.from || Safer.from === Uint8Array.from) {\n Safer.from = function (value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('The \"value\" argument must not be of type number. Received type ' + typeof value)\n }\n if (value && typeof value.length === 'undefined') {\n throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value)\n }\n return Buffer(value, encodingOrOffset, length)\n }\n}\n\nif (!Safer.alloc) {\n Safer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('The \"size\" argument must be of type number. Received type ' + typeof size)\n }\n if (size < 0 || size >= 2 * (1 << 30)) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n var buf = Buffer(size)\n if (!fill || fill.length === 0) {\n buf.fill(0)\n } else if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n return buf\n }\n}\n\nif (!safer.kStringMaxLength) {\n try {\n safer.kStringMaxLength = process.binding('buffer').kStringMaxLength\n } catch (e) {\n // we can't determine kStringMaxLength in environments where process.binding\n // is unsupported, so let's not set it\n }\n}\n\nif (!safer.constants) {\n safer.constants = {\n MAX_LENGTH: safer.kMaxLength\n }\n if (safer.kStringMaxLength) {\n safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength\n }\n}\n\nmodule.exports = safer\n","try {\n var util = require('util');\n /* istanbul ignore next */\n if (typeof util.inherits !== 'function') throw '';\n module.exports = util.inherits;\n} catch (e) {\n /* istanbul ignore next */\n module.exports = require('./inherits_browser.js');\n}\n","// Will apply any type to source\nexport const getSource = (): number => global.source;\n\n// Will clean string of any character that isn't 0-9, or a-z\nexport const clean = (input: string): string => (input ? input.replace(/[^0-9a-z]/gi, '') : input);\n\ntype onNetTypedCB = (data: T) => void;\n\n// Simple generic wrapper around onNet for type safety\nexport const onNetTyped = (eventName: string, cb: onNetTypedCB) => onNet(eventName, cb);\n\n// Simple generic wrapper around emitNet, except that we switch src and first arg if on server.\n// source is defined using the third arg\nexport const emitNetTyped = (eventName: string, data: T, src?: number) => {\n if (src) {\n return emitNet(eventName, src, data);\n }\n\n emitNet(eventName, data);\n};\n","import { getSource } from '../../utils/miscUtils';\nimport { mainLogger } from '../../sv_logger';\nimport { CBSignature, PromiseEventResp, PromiseRequest } from './promise.types';\nimport { ServerPromiseResp } from '../../../../typings/common';\n\nconst netEventLogger = mainLogger.child({ module: 'events' });\n\nexport function onNetPromise(eventName: string, cb: CBSignature): void {\n onNet(eventName, async (respEventName: string, data: T) => {\n const startTime = process.hrtime.bigint();\n const src = getSource();\n\n if (!respEventName) {\n return netEventLogger.warn(\n `Promise event (${eventName}) was called with wrong struct by ${src} (maybe originator wasn't a promiseEvent`,\n );\n }\n\n const promiseRequest: PromiseRequest = {\n source: src,\n data,\n };\n\n netEventLogger.silly(`netPromise > ${eventName} > RequestObj`);\n netEventLogger.silly(promiseRequest);\n\n const promiseResp: PromiseEventResp

= (data: ServerPromiseResp

) => {\n const endTime = process.hrtime.bigint();\n const totalTime = Number(endTime - startTime) / 1e6;\n emitNet(respEventName, src, data);\n netEventLogger.silly(`Response Promise Event ${respEventName} (${totalTime}ms), Data >>`);\n netEventLogger.silly(data);\n };\n\n // In case the cb is a promise, we use Promise.resolve\n Promise.resolve(cb(promiseRequest, promiseResp)).catch((e) => {\n netEventLogger.error(\n `An error occured for a onNetPromise (${eventName}), Error: ${e.message}`,\n );\n\n promiseResp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n });\n}\n","import { SessionStatus } from '@sentry/types';\nimport { dropUndefinedKeys, timestampInSeconds, uuid4 } from '@sentry/utils';\n/**\n * @inheritdoc\n */\nvar Session = /** @class */ (function () {\n function Session(context) {\n this.errors = 0;\n this.sid = uuid4();\n this.duration = 0;\n this.status = SessionStatus.Ok;\n this.init = true;\n this.ignoreDuration = false;\n // Both timestamp and started are in seconds since the UNIX epoch.\n var startingTime = timestampInSeconds();\n this.timestamp = startingTime;\n this.started = startingTime;\n if (context) {\n this.update(context);\n }\n }\n /** JSDoc */\n // eslint-disable-next-line complexity\n Session.prototype.update = function (context) {\n if (context === void 0) { context = {}; }\n if (context.user) {\n if (!this.ipAddress && context.user.ip_address) {\n this.ipAddress = context.user.ip_address;\n }\n if (!this.did && !context.did) {\n this.did = context.user.id || context.user.email || context.user.username;\n }\n }\n this.timestamp = context.timestamp || timestampInSeconds();\n if (context.ignoreDuration) {\n this.ignoreDuration = context.ignoreDuration;\n }\n if (context.sid) {\n // Good enough uuid validation. — Kamil\n this.sid = context.sid.length === 32 ? context.sid : uuid4();\n }\n if (context.init !== undefined) {\n this.init = context.init;\n }\n if (!this.did && context.did) {\n this.did = \"\" + context.did;\n }\n if (typeof context.started === 'number') {\n this.started = context.started;\n }\n if (this.ignoreDuration) {\n this.duration = undefined;\n }\n else if (typeof context.duration === 'number') {\n this.duration = context.duration;\n }\n else {\n var duration = this.timestamp - this.started;\n this.duration = duration >= 0 ? duration : 0;\n }\n if (context.release) {\n this.release = context.release;\n }\n if (context.environment) {\n this.environment = context.environment;\n }\n if (!this.ipAddress && context.ipAddress) {\n this.ipAddress = context.ipAddress;\n }\n if (!this.userAgent && context.userAgent) {\n this.userAgent = context.userAgent;\n }\n if (typeof context.errors === 'number') {\n this.errors = context.errors;\n }\n if (context.status) {\n this.status = context.status;\n }\n };\n /** JSDoc */\n Session.prototype.close = function (status) {\n if (status) {\n this.update({ status: status });\n }\n else if (this.status === SessionStatus.Ok) {\n this.update({ status: SessionStatus.Exited });\n }\n else {\n this.update();\n }\n };\n /** JSDoc */\n Session.prototype.toJSON = function () {\n return dropUndefinedKeys({\n sid: \"\" + this.sid,\n init: this.init,\n // Make sure that sec is converted to ms for date constructor\n started: new Date(this.started * 1000).toISOString(),\n timestamp: new Date(this.timestamp * 1000).toISOString(),\n status: this.status,\n errors: this.errors,\n did: typeof this.did === 'number' || typeof this.did === 'string' ? \"\" + this.did : undefined,\n duration: this.duration,\n attrs: dropUndefinedKeys({\n release: this.release,\n environment: this.environment,\n ip_address: this.ipAddress,\n user_agent: this.userAgent,\n }),\n });\n };\n return Session;\n}());\nexport { Session };\n//# sourceMappingURL=session.js.map","import { __assign, __read, __spread } from \"tslib\";\n/* eslint-disable max-lines */\nimport { SessionStatus, } from '@sentry/types';\nimport { consoleSandbox, dateTimestampInSeconds, getGlobalObject, isNodeEnv, logger, uuid4 } from '@sentry/utils';\nimport { Scope } from './scope';\nimport { Session } from './session';\n/**\n * API compatibility version of this hub.\n *\n * WARNING: This number should only be increased when the global interface\n * changes and new methods are introduced.\n *\n * @hidden\n */\nexport var API_VERSION = 4;\n/**\n * Default maximum number of breadcrumbs added to an event. Can be overwritten\n * with {@link Options.maxBreadcrumbs}.\n */\nvar DEFAULT_BREADCRUMBS = 100;\n/**\n * @inheritDoc\n */\nvar Hub = /** @class */ (function () {\n /**\n * Creates a new instance of the hub, will push one {@link Layer} into the\n * internal stack on creation.\n *\n * @param client bound to the hub.\n * @param scope bound to the hub.\n * @param version number, higher number means higher priority.\n */\n function Hub(client, scope, _version) {\n if (scope === void 0) { scope = new Scope(); }\n if (_version === void 0) { _version = API_VERSION; }\n this._version = _version;\n /** Is a {@link Layer}[] containing the client and scope */\n this._stack = [{}];\n this.getStackTop().scope = scope;\n if (client) {\n this.bindClient(client);\n }\n }\n /**\n * @inheritDoc\n */\n Hub.prototype.isOlderThan = function (version) {\n return this._version < version;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.bindClient = function (client) {\n var top = this.getStackTop();\n top.client = client;\n if (client && client.setupIntegrations) {\n client.setupIntegrations();\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.pushScope = function () {\n // We want to clone the content of prev scope\n var scope = Scope.clone(this.getScope());\n this.getStack().push({\n client: this.getClient(),\n scope: scope,\n });\n return scope;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.popScope = function () {\n if (this.getStack().length <= 1)\n return false;\n return !!this.getStack().pop();\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.withScope = function (callback) {\n var scope = this.pushScope();\n try {\n callback(scope);\n }\n finally {\n this.popScope();\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.getClient = function () {\n return this.getStackTop().client;\n };\n /** Returns the scope of the top stack. */\n Hub.prototype.getScope = function () {\n return this.getStackTop().scope;\n };\n /** Returns the scope stack for domains or the process. */\n Hub.prototype.getStack = function () {\n return this._stack;\n };\n /** Returns the topmost scope layer in the order domain > local > process. */\n Hub.prototype.getStackTop = function () {\n return this._stack[this._stack.length - 1];\n };\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n Hub.prototype.captureException = function (exception, hint) {\n var eventId = (this._lastEventId = uuid4());\n var finalHint = hint;\n // If there's no explicit hint provided, mimic the same thing that would happen\n // in the minimal itself to create a consistent behavior.\n // We don't do this in the client, as it's the lowest level API, and doing this,\n // would prevent user from having full control over direct calls.\n if (!hint) {\n var syntheticException = void 0;\n try {\n throw new Error('Sentry syntheticException');\n }\n catch (exception) {\n syntheticException = exception;\n }\n finalHint = {\n originalException: exception,\n syntheticException: syntheticException,\n };\n }\n this._invokeClient('captureException', exception, __assign(__assign({}, finalHint), { event_id: eventId }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.captureMessage = function (message, level, hint) {\n var eventId = (this._lastEventId = uuid4());\n var finalHint = hint;\n // If there's no explicit hint provided, mimic the same thing that would happen\n // in the minimal itself to create a consistent behavior.\n // We don't do this in the client, as it's the lowest level API, and doing this,\n // would prevent user from having full control over direct calls.\n if (!hint) {\n var syntheticException = void 0;\n try {\n throw new Error(message);\n }\n catch (exception) {\n syntheticException = exception;\n }\n finalHint = {\n originalException: message,\n syntheticException: syntheticException,\n };\n }\n this._invokeClient('captureMessage', message, level, __assign(__assign({}, finalHint), { event_id: eventId }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.captureEvent = function (event, hint) {\n var eventId = uuid4();\n if (event.type !== 'transaction') {\n this._lastEventId = eventId;\n }\n this._invokeClient('captureEvent', event, __assign(__assign({}, hint), { event_id: eventId }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.lastEventId = function () {\n return this._lastEventId;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.addBreadcrumb = function (breadcrumb, hint) {\n var _a = this.getStackTop(), scope = _a.scope, client = _a.client;\n if (!scope || !client)\n return;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _b = (client.getOptions && client.getOptions()) || {}, _c = _b.beforeBreadcrumb, beforeBreadcrumb = _c === void 0 ? null : _c, _d = _b.maxBreadcrumbs, maxBreadcrumbs = _d === void 0 ? DEFAULT_BREADCRUMBS : _d;\n if (maxBreadcrumbs <= 0)\n return;\n var timestamp = dateTimestampInSeconds();\n var mergedBreadcrumb = __assign({ timestamp: timestamp }, breadcrumb);\n var finalBreadcrumb = beforeBreadcrumb\n ? consoleSandbox(function () { return beforeBreadcrumb(mergedBreadcrumb, hint); })\n : mergedBreadcrumb;\n if (finalBreadcrumb === null)\n return;\n scope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setUser = function (user) {\n var scope = this.getScope();\n if (scope)\n scope.setUser(user);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setTags = function (tags) {\n var scope = this.getScope();\n if (scope)\n scope.setTags(tags);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setExtras = function (extras) {\n var scope = this.getScope();\n if (scope)\n scope.setExtras(extras);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setTag = function (key, value) {\n var scope = this.getScope();\n if (scope)\n scope.setTag(key, value);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setExtra = function (key, extra) {\n var scope = this.getScope();\n if (scope)\n scope.setExtra(key, extra);\n };\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Hub.prototype.setContext = function (name, context) {\n var scope = this.getScope();\n if (scope)\n scope.setContext(name, context);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.configureScope = function (callback) {\n var _a = this.getStackTop(), scope = _a.scope, client = _a.client;\n if (scope && client) {\n callback(scope);\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.run = function (callback) {\n var oldHub = makeMain(this);\n try {\n callback(this);\n }\n finally {\n makeMain(oldHub);\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.getIntegration = function (integration) {\n var client = this.getClient();\n if (!client)\n return null;\n try {\n return client.getIntegration(integration);\n }\n catch (_oO) {\n logger.warn(\"Cannot retrieve integration \" + integration.id + \" from the current Hub\");\n return null;\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.startSpan = function (context) {\n return this._callExtensionMethod('startSpan', context);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.startTransaction = function (context, customSamplingContext) {\n return this._callExtensionMethod('startTransaction', context, customSamplingContext);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.traceHeaders = function () {\n return this._callExtensionMethod('traceHeaders');\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.captureSession = function (endSession) {\n if (endSession === void 0) { endSession = false; }\n // both send the update and pull the session from the scope\n if (endSession) {\n return this.endSession();\n }\n // only send the update\n this._sendSessionUpdate();\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.endSession = function () {\n var _a, _b, _c, _d, _e;\n (_c = (_b = (_a = this.getStackTop()) === null || _a === void 0 ? void 0 : _a.scope) === null || _b === void 0 ? void 0 : _b.getSession()) === null || _c === void 0 ? void 0 : _c.close();\n this._sendSessionUpdate();\n // the session is over; take it off of the scope\n (_e = (_d = this.getStackTop()) === null || _d === void 0 ? void 0 : _d.scope) === null || _e === void 0 ? void 0 : _e.setSession();\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.startSession = function (context) {\n var _a = this.getStackTop(), scope = _a.scope, client = _a.client;\n var _b = (client && client.getOptions()) || {}, release = _b.release, environment = _b.environment;\n // Will fetch userAgent if called from browser sdk\n var global = getGlobalObject();\n var userAgent = (global.navigator || {}).userAgent;\n var session = new Session(__assign(__assign(__assign({ release: release,\n environment: environment }, (scope && { user: scope.getUser() })), (userAgent && { userAgent: userAgent })), context));\n if (scope) {\n // End existing session if there's one\n var currentSession = scope.getSession && scope.getSession();\n if (currentSession && currentSession.status === SessionStatus.Ok) {\n currentSession.update({ status: SessionStatus.Exited });\n }\n this.endSession();\n // Afterwards we set the new session on the scope\n scope.setSession(session);\n }\n return session;\n };\n /**\n * Sends the current Session on the scope\n */\n Hub.prototype._sendSessionUpdate = function () {\n var _a = this.getStackTop(), scope = _a.scope, client = _a.client;\n if (!scope)\n return;\n var session = scope.getSession && scope.getSession();\n if (session) {\n if (client && client.captureSession) {\n client.captureSession(session);\n }\n }\n };\n /**\n * Internal helper function to call a method on the top client if it exists.\n *\n * @param method The method to call on the client.\n * @param args Arguments to pass to the client function.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Hub.prototype._invokeClient = function (method) {\n var _a;\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var _b = this.getStackTop(), scope = _b.scope, client = _b.client;\n if (client && client[method]) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n (_a = client)[method].apply(_a, __spread(args, [scope]));\n }\n };\n /**\n * Calls global extension method and binding current instance to the function call\n */\n // @ts-ignore Function lacks ending return statement and return type does not include 'undefined'. ts(2366)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Hub.prototype._callExtensionMethod = function (method) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var carrier = getMainCarrier();\n var sentry = carrier.__SENTRY__;\n if (sentry && sentry.extensions && typeof sentry.extensions[method] === 'function') {\n return sentry.extensions[method].apply(this, args);\n }\n logger.warn(\"Extension method \" + method + \" couldn't be found, doing nothing.\");\n };\n return Hub;\n}());\nexport { Hub };\n/**\n * Returns the global shim registry.\n *\n * FIXME: This function is problematic, because despite always returning a valid Carrier,\n * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check\n * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.\n **/\nexport function getMainCarrier() {\n var carrier = getGlobalObject();\n carrier.__SENTRY__ = carrier.__SENTRY__ || {\n extensions: {},\n hub: undefined,\n };\n return carrier;\n}\n/**\n * Replaces the current main hub with the passed one on the global object\n *\n * @returns The old replaced hub\n */\nexport function makeMain(hub) {\n var registry = getMainCarrier();\n var oldHub = getHubFromCarrier(registry);\n setHubOnCarrier(registry, hub);\n return oldHub;\n}\n/**\n * Returns the default hub instance.\n *\n * If a hub is already registered in the global carrier but this module\n * contains a more recent version, it replaces the registered version.\n * Otherwise, the currently registered hub will be returned.\n */\nexport function getCurrentHub() {\n // Get main carrier (global for every environment)\n var registry = getMainCarrier();\n // If there's no hub, or its an old API, assign a new one\n if (!hasHubOnCarrier(registry) || getHubFromCarrier(registry).isOlderThan(API_VERSION)) {\n setHubOnCarrier(registry, new Hub());\n }\n // Prefer domains over global if they are there (applicable only to Node environment)\n if (isNodeEnv()) {\n return getHubFromActiveDomain(registry);\n }\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n}\n/**\n * Returns the active domain, if one exists\n * @deprecated No longer used; remove in v7\n * @returns The domain, or undefined if there is no active domain\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function getActiveDomain() {\n logger.warn('Function `getActiveDomain` is deprecated and will be removed in a future version.');\n var sentry = getMainCarrier().__SENTRY__;\n return sentry && sentry.extensions && sentry.extensions.domain && sentry.extensions.domain.active;\n}\n/**\n * Try to read the hub from an active domain, and fallback to the registry if one doesn't exist\n * @returns discovered hub\n */\nfunction getHubFromActiveDomain(registry) {\n var _a, _b, _c;\n try {\n var activeDomain = (_c = (_b = (_a = getMainCarrier().__SENTRY__) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.domain) === null || _c === void 0 ? void 0 : _c.active;\n // If there's no active domain, just return global hub\n if (!activeDomain) {\n return getHubFromCarrier(registry);\n }\n // If there's no hub on current domain, or it's an old API, assign a new one\n if (!hasHubOnCarrier(activeDomain) || getHubFromCarrier(activeDomain).isOlderThan(API_VERSION)) {\n var registryHubTopStack = getHubFromCarrier(registry).getStackTop();\n setHubOnCarrier(activeDomain, new Hub(registryHubTopStack.client, Scope.clone(registryHubTopStack.scope)));\n }\n // Return hub that lives on a domain\n return getHubFromCarrier(activeDomain);\n }\n catch (_Oo) {\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n }\n}\n/**\n * This will tell whether a carrier has a hub on it or not\n * @param carrier object\n */\nfunction hasHubOnCarrier(carrier) {\n return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);\n}\n/**\n * This will create a new {@link Hub} and add to the passed object on\n * __SENTRY__.hub.\n * @param carrier object\n * @hidden\n */\nexport function getHubFromCarrier(carrier) {\n if (carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub)\n return carrier.__SENTRY__.hub;\n carrier.__SENTRY__ = carrier.__SENTRY__ || {};\n carrier.__SENTRY__.hub = new Hub();\n return carrier.__SENTRY__.hub;\n}\n/**\n * This will set passed {@link Hub} on the passed object's __SENTRY__.hub attribute\n * @param carrier object\n * @param hub Hub\n * @returns A boolean indicating success or failure\n */\nexport function setHubOnCarrier(carrier, hub) {\n if (!carrier)\n return false;\n carrier.__SENTRY__ = carrier.__SENTRY__ || {};\n carrier.__SENTRY__.hub = hub;\n return true;\n}\n//# sourceMappingURL=hub.js.map","'use strict';\n\nconst core = require('./index.js');\nconst EventEmitter = require('events').EventEmitter;\n\nfunction makeDoneCb(resolve, reject, localErr) {\n return function (err, rows, fields) {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sql = err.sql;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve([rows, fields]);\n }\n };\n}\n\nfunction inheritEvents(source, target, events) {\n const listeners = {};\n target\n .on('newListener', eventName => {\n if (events.indexOf(eventName) >= 0 && !target.listenerCount(eventName)) {\n source.on(\n eventName,\n (listeners[eventName] = function () {\n const args = [].slice.call(arguments);\n args.unshift(eventName);\n\n target.emit.apply(target, args);\n })\n );\n }\n })\n .on('removeListener', eventName => {\n if (events.indexOf(eventName) >= 0 && !target.listenerCount(eventName)) {\n source.removeListener(eventName, listeners[eventName]);\n delete listeners[eventName];\n }\n });\n}\n\nclass PromisePreparedStatementInfo {\n constructor(statement, promiseImpl) {\n this.statement = statement;\n this.Promise = promiseImpl;\n }\n\n execute(parameters) {\n const s = this.statement;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (parameters) {\n s.execute(parameters, done);\n } else {\n s.execute(done);\n }\n });\n }\n\n close() {\n return new this.Promise(resolve => {\n this.statement.close();\n resolve();\n });\n }\n}\n\nclass PromiseConnection extends EventEmitter {\n constructor(connection, promiseImpl) {\n super();\n this.connection = connection;\n this.Promise = promiseImpl || Promise;\n inheritEvents(connection, this, [\n 'error',\n 'drain',\n 'connect',\n 'end',\n 'enqueue'\n ]);\n }\n\n release() {\n this.connection.release();\n }\n\n query(query, params) {\n const c = this.connection;\n const localErr = new Error();\n if (typeof params === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (params !== undefined) {\n c.query(query, params, done);\n } else {\n c.query(query, done);\n }\n });\n }\n\n execute(query, params) {\n const c = this.connection;\n const localErr = new Error();\n if (typeof params === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (params !== undefined) {\n c.execute(query, params, done);\n } else {\n c.execute(query, done);\n }\n });\n }\n\n end() {\n return new this.Promise(resolve => {\n this.connection.end(resolve);\n });\n }\n\n beginTransaction() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n c.beginTransaction(done);\n });\n }\n\n commit() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n c.commit(done);\n });\n }\n\n rollback() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n c.rollback(done);\n });\n }\n\n ping() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n c.ping(done);\n });\n }\n\n connect() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n c.connect((err, param) => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve(param);\n }\n });\n });\n }\n\n prepare(options) {\n const c = this.connection;\n const promiseImpl = this.Promise;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n c.prepare(options, (err, statement) => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n const wrappedStatement = new PromisePreparedStatementInfo(\n statement,\n promiseImpl\n );\n resolve(wrappedStatement);\n }\n });\n });\n }\n\n changeUser(options) {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n c.changeUser(options, err => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve();\n }\n });\n });\n }\n\n get config() {\n return this.connection.config;\n }\n\n get threadId() {\n return this.connection.threadId;\n }\n}\n\nfunction createConnection(opts) {\n const coreConnection = core.createConnection(opts);\n const createConnectionErr = new Error();\n const thePromise = opts.Promise || Promise;\n if (!thePromise) {\n throw new Error(\n 'no Promise implementation available.' +\n 'Use promise-enabled node version or pass userland Promise' +\n \" implementation as parameter, for example: { Promise: require('bluebird') }\"\n );\n }\n return new thePromise((resolve, reject) => {\n coreConnection.once('connect', () => {\n resolve(new PromiseConnection(coreConnection, thePromise));\n });\n coreConnection.once('error', err => {\n createConnectionErr.message = err.message;\n createConnectionErr.code = err.code;\n createConnectionErr.errno = err.errno;\n createConnectionErr.sqlState = err.sqlState;\n reject(createConnectionErr);\n });\n });\n}\n\n// note: the callback of \"changeUser\" is not called on success\n// hence there is no possibility to call \"resolve\"\n\n// patching PromiseConnection\n// create facade functions for prototype functions on \"Connection\" that are not yet\n// implemented with PromiseConnection\n\n// proxy synchronous functions only\n(function (functionsToWrap) {\n for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {\n const func = functionsToWrap[i];\n\n if (\n typeof core.Connection.prototype[func] === 'function' &&\n PromiseConnection.prototype[func] === undefined\n ) {\n PromiseConnection.prototype[func] = (function factory(funcName) {\n return function () {\n return core.Connection.prototype[funcName].apply(\n this.connection,\n arguments\n );\n };\n })(func);\n }\n }\n})([\n // synchronous functions\n 'close',\n 'createBinlogStream',\n 'destroy',\n 'escape',\n 'escapeId',\n 'format',\n 'pause',\n 'pipe',\n 'resume',\n 'unprepare'\n]);\n\nclass PromisePoolConnection extends PromiseConnection {\n constructor(connection, promiseImpl) {\n super(connection, promiseImpl);\n }\n\n destroy() {\n return core.PoolConnection.prototype.destroy.apply(\n this.connection,\n arguments\n );\n }\n}\n\nclass PromisePool extends EventEmitter {\n constructor(pool, thePromise) {\n super();\n this.pool = pool;\n this.Promise = thePromise || Promise;\n inheritEvents(pool, this, ['acquire', 'connection', 'enqueue', 'release']);\n }\n\n getConnection() {\n const corePool = this.pool;\n return new this.Promise((resolve, reject) => {\n corePool.getConnection((err, coreConnection) => {\n if (err) {\n reject(err);\n } else {\n resolve(new PromisePoolConnection(coreConnection, this.Promise));\n }\n });\n });\n }\n\n query(sql, args) {\n const corePool = this.pool;\n const localErr = new Error();\n if (typeof args === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (args !== undefined) {\n corePool.query(sql, args, done);\n } else {\n corePool.query(sql, done);\n }\n });\n }\n\n execute(sql, args) {\n const corePool = this.pool;\n const localErr = new Error();\n if (typeof args === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (args) {\n corePool.execute(sql, args, done);\n } else {\n corePool.execute(sql, done);\n }\n });\n }\n\n end() {\n const corePool = this.pool;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n corePool.end(err => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve();\n }\n });\n });\n }\n}\n\nfunction createPool(opts) {\n const corePool = core.createPool(opts);\n const thePromise = opts.Promise || Promise;\n if (!thePromise) {\n throw new Error(\n 'no Promise implementation available.' +\n 'Use promise-enabled node version or pass userland Promise' +\n \" implementation as parameter, for example: { Promise: require('bluebird') }\"\n );\n }\n\n return new PromisePool(corePool, thePromise);\n}\n\n(function (functionsToWrap) {\n for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {\n const func = functionsToWrap[i];\n\n if (\n typeof core.Pool.prototype[func] === 'function' &&\n PromisePool.prototype[func] === undefined\n ) {\n PromisePool.prototype[func] = (function factory(funcName) {\n return function () {\n return core.Pool.prototype[funcName].apply(this.pool, arguments);\n };\n })(func);\n }\n }\n})([\n // synchronous functions\n 'escape',\n 'escapeId',\n 'format'\n]);\n\nclass PromisePoolCluster extends EventEmitter {\n constructor(poolCluster, thePromise) {\n super();\n this.poolCluster = poolCluster;\n this.Promise = thePromise || Promise;\n inheritEvents(poolCluster, this, ['acquire', 'connection', 'enqueue', 'release']);\n }\n\n getConnection() {\n const corePoolCluster = this.poolCluster;\n return new this.Promise((resolve, reject) => {\n corePoolCluster.getConnection((err, coreConnection) => {\n if (err) {\n reject(err);\n } else {\n resolve(new PromisePoolConnection(coreConnection, this.Promise));\n }\n });\n });\n }\n\n query(sql, args) {\n const corePoolCluster = this.poolCluster;\n const localErr = new Error();\n if (typeof args === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n corePoolCluster.query(sql, args, done);\n });\n }\n\n execute(sql, args) {\n const corePoolCluster = this.poolCluster;\n const localErr = new Error();\n if (typeof args === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n corePoolCluster.execute(sql, args, done);\n });\n }\n\n of(pattern, selector) {\n return new PromisePoolCluster(\n this.poolCluster.of(pattern, selector),\n this.Promise\n );\n }\n\n end() {\n const corePoolCluster = this.poolCluster;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n corePoolCluster.end(err => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve();\n }\n });\n });\n }\n}\n\n/**\n * proxy poolCluster synchronous functions\n */\n(function (functionsToWrap) {\n for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {\n const func = functionsToWrap[i];\n\n if (\n typeof core.PoolCluster.prototype[func] === 'function' &&\n PromisePoolCluster.prototype[func] === undefined\n ) {\n PromisePoolCluster.prototype[func] = (function factory(funcName) {\n return function () {\n return core.PoolCluster.prototype[funcName].apply(this.poolCluster, arguments);\n };\n })(func);\n }\n }\n})([\n 'add'\n]);\n\nfunction createPoolCluster(opts) {\n const corePoolCluster = core.createPoolCluster(opts);\n const thePromise = (opts && opts.Promise) || Promise;\n if (!thePromise) {\n throw new Error(\n 'no Promise implementation available.' +\n 'Use promise-enabled node version or pass userland Promise' +\n \" implementation as parameter, for example: { Promise: require('bluebird') }\"\n );\n }\n return new PromisePoolCluster(corePoolCluster, thePromise);\n}\n\nexports.createConnection = createConnection;\nexports.createPool = createPool;\nexports.createPoolCluster = createPoolCluster;\nexports.escape = core.escape;\nexports.escapeId = core.escapeId;\nexports.format = core.format;\nexports.raw = core.raw;\nexports.PromisePool = PromisePool;\nexports.PromiseConnection = PromiseConnection;\nexports.PromisePoolConnection = PromisePoolConnection;\n","module.exports = require(\"stream\");","'use strict';\n\n// Manually extracted from mysql-5.5.23/include/mysql_com.h\nexports.LONG_PASSWORD = 0x00000001; /* new more secure passwords */\nexports.FOUND_ROWS = 0x00000002; /* found instead of affected rows */\nexports.LONG_FLAG = 0x00000004; /* get all column flags */\nexports.CONNECT_WITH_DB = 0x00000008; /* one can specify db on connect */\nexports.NO_SCHEMA = 0x00000010; /* don't allow database.table.column */\nexports.COMPRESS = 0x00000020; /* can use compression protocol */\nexports.ODBC = 0x00000040; /* odbc client */\nexports.LOCAL_FILES = 0x00000080; /* can use LOAD DATA LOCAL */\nexports.IGNORE_SPACE = 0x00000100; /* ignore spaces before '' */\nexports.PROTOCOL_41 = 0x00000200; /* new 4.1 protocol */\nexports.INTERACTIVE = 0x00000400; /* this is an interactive client */\nexports.SSL = 0x00000800; /* switch to ssl after handshake */\nexports.IGNORE_SIGPIPE = 0x00001000; /* IGNORE sigpipes */\nexports.TRANSACTIONS = 0x00002000; /* client knows about transactions */\nexports.RESERVED = 0x00004000; /* old flag for 4.1 protocol */\nexports.SECURE_CONNECTION = 0x00008000; /* new 4.1 authentication */\nexports.MULTI_STATEMENTS = 0x00010000; /* enable/disable multi-stmt support */\nexports.MULTI_RESULTS = 0x00020000; /* enable/disable multi-results */\nexports.PS_MULTI_RESULTS = 0x00040000; /* multi-results in ps-protocol */\nexports.PLUGIN_AUTH = 0x00080000; /* client supports plugin authentication */\nexports.CONNECT_ATTRS = 0x00100000; /* permits connection attributes */\nexports.PLUGIN_AUTH_LENENC_CLIENT_DATA = 0x00200000; /* Understands length-encoded integer for auth response data in Protocol::HandshakeResponse41. */\nexports.CAN_HANDLE_EXPIRED_PASSWORDS = 0x00400000; /* Announces support for expired password extension. */\nexports.SESSION_TRACK = 0x00800000; /* Can set SERVER_SESSION_STATE_CHANGED in the Status Flags and send session-state change data after a OK packet. */\nexports.DEPRECATE_EOF = 0x01000000; /* Can send OK after a Text Resultset. */\n\nexports.SSL_VERIFY_SERVER_CERT = 0x40000000;\nexports.REMEMBER_OPTIONS = 0x80000000;\n","'use strict';\n\nconst codes = {};\n\nfunction createErrorType(code, message, Base) {\n if (!Base) {\n Base = Error\n }\n\n function getMessage (arg1, arg2, arg3) {\n if (typeof message === 'string') {\n return message\n } else {\n return message(arg1, arg2, arg3)\n }\n }\n\n class NodeError extends Base {\n constructor (arg1, arg2, arg3) {\n super(getMessage(arg1, arg2, arg3));\n }\n }\n\n NodeError.prototype.name = Base.name;\n NodeError.prototype.code = code;\n\n codes[code] = NodeError;\n}\n\n// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js\nfunction oneOf(expected, thing) {\n if (Array.isArray(expected)) {\n const len = expected.length;\n expected = expected.map((i) => String(i));\n if (len > 2) {\n return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` +\n expected[len - 1];\n } else if (len === 2) {\n return `one of ${thing} ${expected[0]} or ${expected[1]}`;\n } else {\n return `of ${thing} ${expected[0]}`;\n }\n } else {\n return `of ${thing} ${String(expected)}`;\n }\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith\nfunction startsWith(str, search, pos) {\n\treturn str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\nfunction endsWith(str, search, this_len) {\n\tif (this_len === undefined || this_len > str.length) {\n\t\tthis_len = str.length;\n\t}\n\treturn str.substring(this_len - search.length, this_len) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes\nfunction includes(str, search, start) {\n if (typeof start !== 'number') {\n start = 0;\n }\n\n if (start + search.length > str.length) {\n return false;\n } else {\n return str.indexOf(search, start) !== -1;\n }\n}\n\ncreateErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {\n return 'The value \"' + value + '\" is invalid for option \"' + name + '\"'\n}, TypeError);\ncreateErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {\n // determiner: 'must be' or 'must not be'\n let determiner;\n if (typeof expected === 'string' && startsWith(expected, 'not ')) {\n determiner = 'must not be';\n expected = expected.replace(/^not /, '');\n } else {\n determiner = 'must be';\n }\n\n let msg;\n if (endsWith(name, ' argument')) {\n // For cases like 'first argument'\n msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`;\n } else {\n const type = includes(name, '.') ? 'property' : 'argument';\n msg = `The \"${name}\" ${type} ${determiner} ${oneOf(expected, 'type')}`;\n }\n\n msg += `. Received type ${typeof actual}`;\n return msg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');\ncreateErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {\n return 'The ' + name + ' method is not implemented'\n});\ncreateErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');\ncreateErrorType('ERR_STREAM_DESTROYED', function (name) {\n return 'Cannot call ' + name + ' after a stream was destroyed';\n});\ncreateErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');\ncreateErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');\ncreateErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');\ncreateErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);\ncreateErrorType('ERR_UNKNOWN_ENCODING', function (arg) {\n return 'Unknown encoding: ' + arg\n}, TypeError);\ncreateErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');\n\nmodule.exports.codes = codes;\n","module.exports = require(\"http\");","module.exports = require(\"https\");","import { __assign, __read, __spread } from \"tslib\";\nimport { getMainCarrier } from '@sentry/hub';\nimport { TransactionSamplingMethod, } from '@sentry/types';\nimport { dynamicRequire, isNodeEnv, loadModule, logger } from '@sentry/utils';\nimport { registerErrorInstrumentation } from './errors';\nimport { IdleTransaction } from './idletransaction';\nimport { Transaction } from './transaction';\nimport { hasTracingEnabled } from './utils';\n/** Returns all trace headers that are currently on the top scope. */\nfunction traceHeaders() {\n var scope = this.getScope();\n if (scope) {\n var span = scope.getSpan();\n if (span) {\n return {\n 'sentry-trace': span.toTraceparent(),\n };\n }\n }\n return {};\n}\n/**\n * Makes a sampling decision for the given transaction and stores it on the transaction.\n *\n * Called every time a transaction is created. Only transactions which emerge with a `sampled` value of `true` will be\n * sent to Sentry.\n *\n * @param hub: The hub off of which to read config options\n * @param transaction: The transaction needing a sampling decision\n * @param samplingContext: Default and user-provided data which may be used to help make the decision\n *\n * @returns The given transaction with its `sampled` value set\n */\nfunction sample(transaction, options, samplingContext) {\n // nothing to do if tracing is not enabled\n if (!hasTracingEnabled(options)) {\n transaction.sampled = false;\n return transaction;\n }\n // if the user has forced a sampling decision by passing a `sampled` value in their transaction context, go with that\n if (transaction.sampled !== undefined) {\n transaction.setMetadata({\n transactionSampling: { method: TransactionSamplingMethod.Explicit },\n });\n return transaction;\n }\n // we would have bailed already if neither `tracesSampler` nor `tracesSampleRate` were defined, so one of these should\n // work; prefer the hook if so\n var sampleRate;\n if (typeof options.tracesSampler === 'function') {\n sampleRate = options.tracesSampler(samplingContext);\n transaction.setMetadata({\n transactionSampling: {\n method: TransactionSamplingMethod.Sampler,\n // cast to number in case it's a boolean\n rate: Number(sampleRate),\n },\n });\n }\n else if (samplingContext.parentSampled !== undefined) {\n sampleRate = samplingContext.parentSampled;\n transaction.setMetadata({\n transactionSampling: { method: TransactionSamplingMethod.Inheritance },\n });\n }\n else {\n sampleRate = options.tracesSampleRate;\n transaction.setMetadata({\n transactionSampling: {\n method: TransactionSamplingMethod.Rate,\n // cast to number in case it's a boolean\n rate: Number(sampleRate),\n },\n });\n }\n // Since this is coming from the user (or from a function provided by the user), who knows what we might get. (The\n // only valid values are booleans or numbers between 0 and 1.)\n if (!isValidSampleRate(sampleRate)) {\n logger.warn(\"[Tracing] Discarding transaction because of invalid sample rate.\");\n transaction.sampled = false;\n return transaction;\n }\n // if the function returned 0 (or false), or if `tracesSampleRate` is 0, it's a sign the transaction should be dropped\n if (!sampleRate) {\n logger.log(\"[Tracing] Discarding transaction because \" + (typeof options.tracesSampler === 'function'\n ? 'tracesSampler returned 0 or false'\n : 'a negative sampling decision was inherited or tracesSampleRate is set to 0'));\n transaction.sampled = false;\n return transaction;\n }\n // Now we roll the dice. Math.random is inclusive of 0, but not of 1, so strict < is safe here. In case sampleRate is\n // a boolean, the < comparison will cause it to be automatically cast to 1 if it's true and 0 if it's false.\n transaction.sampled = Math.random() < sampleRate;\n // if we're not going to keep it, we're done\n if (!transaction.sampled) {\n logger.log(\"[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = \" + Number(sampleRate) + \")\");\n return transaction;\n }\n logger.log(\"[Tracing] starting \" + transaction.op + \" transaction - \" + transaction.name);\n return transaction;\n}\n/**\n * Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1).\n */\nfunction isValidSampleRate(rate) {\n // we need to check NaN explicitly because it's of type 'number' and therefore wouldn't get caught by this typecheck\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isNaN(rate) || !(typeof rate === 'number' || typeof rate === 'boolean')) {\n logger.warn(\"[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got \" + JSON.stringify(rate) + \" of type \" + JSON.stringify(typeof rate) + \".\");\n return false;\n }\n // in case sampleRate is a boolean, it will get automatically cast to 1 if it's true and 0 if it's false\n if (rate < 0 || rate > 1) {\n logger.warn(\"[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got \" + rate + \".\");\n return false;\n }\n return true;\n}\n/**\n * Creates a new transaction and adds a sampling decision if it doesn't yet have one.\n *\n * The Hub.startTransaction method delegates to this method to do its work, passing the Hub instance in as `this`, as if\n * it had been called on the hub directly. Exists as a separate function so that it can be injected into the class as an\n * \"extension method.\"\n *\n * @param this: The Hub starting the transaction\n * @param transactionContext: Data used to configure the transaction\n * @param CustomSamplingContext: Optional data to be provided to the `tracesSampler` function (if any)\n *\n * @returns The new transaction\n *\n * @see {@link Hub.startTransaction}\n */\nfunction _startTransaction(transactionContext, customSamplingContext) {\n var _a, _b;\n var options = ((_a = this.getClient()) === null || _a === void 0 ? void 0 : _a.getOptions()) || {};\n var transaction = new Transaction(transactionContext, this);\n transaction = sample(transaction, options, __assign({ parentSampled: transactionContext.parentSampled, transactionContext: transactionContext }, customSamplingContext));\n if (transaction.sampled) {\n transaction.initSpanRecorder((_b = options._experiments) === null || _b === void 0 ? void 0 : _b.maxSpans);\n }\n return transaction;\n}\n/**\n * Create new idle transaction.\n */\nexport function startIdleTransaction(hub, transactionContext, idleTimeout, onScope, customSamplingContext) {\n var _a, _b;\n var options = ((_a = hub.getClient()) === null || _a === void 0 ? void 0 : _a.getOptions()) || {};\n var transaction = new IdleTransaction(transactionContext, hub, idleTimeout, onScope);\n transaction = sample(transaction, options, __assign({ parentSampled: transactionContext.parentSampled, transactionContext: transactionContext }, customSamplingContext));\n if (transaction.sampled) {\n transaction.initSpanRecorder((_b = options._experiments) === null || _b === void 0 ? void 0 : _b.maxSpans);\n }\n return transaction;\n}\n/**\n * @private\n */\nexport function _addTracingExtensions() {\n var carrier = getMainCarrier();\n if (!carrier.__SENTRY__) {\n return;\n }\n carrier.__SENTRY__.extensions = carrier.__SENTRY__.extensions || {};\n if (!carrier.__SENTRY__.extensions.startTransaction) {\n carrier.__SENTRY__.extensions.startTransaction = _startTransaction;\n }\n if (!carrier.__SENTRY__.extensions.traceHeaders) {\n carrier.__SENTRY__.extensions.traceHeaders = traceHeaders;\n }\n}\n/**\n * @private\n */\nfunction _autoloadDatabaseIntegrations() {\n var carrier = getMainCarrier();\n if (!carrier.__SENTRY__) {\n return;\n }\n var packageToIntegrationMapping = {\n mongodb: function () {\n var integration = dynamicRequire(module, './integrations/node/mongo');\n return new integration.Mongo();\n },\n mongoose: function () {\n var integration = dynamicRequire(module, './integrations/node/mongo');\n return new integration.Mongo({ mongoose: true });\n },\n mysql: function () {\n var integration = dynamicRequire(module, './integrations/node/mysql');\n return new integration.Mysql();\n },\n pg: function () {\n var integration = dynamicRequire(module, './integrations/node/postgres');\n return new integration.Postgres();\n },\n };\n var mappedPackages = Object.keys(packageToIntegrationMapping)\n .filter(function (moduleName) { return !!loadModule(moduleName); })\n .map(function (pkg) {\n try {\n return packageToIntegrationMapping[pkg]();\n }\n catch (e) {\n return undefined;\n }\n })\n .filter(function (p) { return p; });\n if (mappedPackages.length > 0) {\n carrier.__SENTRY__.integrations = __spread((carrier.__SENTRY__.integrations || []), mappedPackages);\n }\n}\n/**\n * This patches the global object and injects the Tracing extensions methods\n */\nexport function addExtensionMethods() {\n _addTracingExtensions();\n // Detect and automatically load specified integrations.\n if (isNodeEnv()) {\n _autoloadDatabaseIntegrations();\n }\n // If an error happens globally, we should make sure transaction status is set to error.\n registerErrorInstrumentation();\n}\n//# sourceMappingURL=hubextensions.js.map","import { __assign } from \"tslib\";\nimport { dropUndefinedKeys, timestampWithMs, uuid4 } from '@sentry/utils';\nimport { SpanStatus } from './spanstatus';\n/**\n * Keeps track of finished spans for a given transaction\n * @internal\n * @hideconstructor\n * @hidden\n */\nvar SpanRecorder = /** @class */ (function () {\n function SpanRecorder(maxlen) {\n if (maxlen === void 0) { maxlen = 1000; }\n this.spans = [];\n this._maxlen = maxlen;\n }\n /**\n * This is just so that we don't run out of memory while recording a lot\n * of spans. At some point we just stop and flush out the start of the\n * trace tree (i.e.the first n spans with the smallest\n * start_timestamp).\n */\n SpanRecorder.prototype.add = function (span) {\n if (this.spans.length > this._maxlen) {\n span.spanRecorder = undefined;\n }\n else {\n this.spans.push(span);\n }\n };\n return SpanRecorder;\n}());\nexport { SpanRecorder };\n/**\n * Span contains all data about a span\n */\nvar Span = /** @class */ (function () {\n /**\n * You should never call the constructor manually, always use `Sentry.startTransaction()`\n * or call `startChild()` on an existing span.\n * @internal\n * @hideconstructor\n * @hidden\n */\n function Span(spanContext) {\n /**\n * @inheritDoc\n */\n this.traceId = uuid4();\n /**\n * @inheritDoc\n */\n this.spanId = uuid4().substring(16);\n /**\n * Timestamp in seconds when the span was created.\n */\n this.startTimestamp = timestampWithMs();\n /**\n * @inheritDoc\n */\n this.tags = {};\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.data = {};\n if (!spanContext) {\n return this;\n }\n if (spanContext.traceId) {\n this.traceId = spanContext.traceId;\n }\n if (spanContext.spanId) {\n this.spanId = spanContext.spanId;\n }\n if (spanContext.parentSpanId) {\n this.parentSpanId = spanContext.parentSpanId;\n }\n // We want to include booleans as well here\n if ('sampled' in spanContext) {\n this.sampled = spanContext.sampled;\n }\n if (spanContext.op) {\n this.op = spanContext.op;\n }\n if (spanContext.description) {\n this.description = spanContext.description;\n }\n if (spanContext.data) {\n this.data = spanContext.data;\n }\n if (spanContext.tags) {\n this.tags = spanContext.tags;\n }\n if (spanContext.status) {\n this.status = spanContext.status;\n }\n if (spanContext.startTimestamp) {\n this.startTimestamp = spanContext.startTimestamp;\n }\n if (spanContext.endTimestamp) {\n this.endTimestamp = spanContext.endTimestamp;\n }\n }\n /**\n * @inheritDoc\n * @deprecated\n */\n Span.prototype.child = function (spanContext) {\n return this.startChild(spanContext);\n };\n /**\n * @inheritDoc\n */\n Span.prototype.startChild = function (spanContext) {\n var childSpan = new Span(__assign(__assign({}, spanContext), { parentSpanId: this.spanId, sampled: this.sampled, traceId: this.traceId }));\n childSpan.spanRecorder = this.spanRecorder;\n if (childSpan.spanRecorder) {\n childSpan.spanRecorder.add(childSpan);\n }\n childSpan.transaction = this.transaction;\n return childSpan;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.setTag = function (key, value) {\n var _a;\n this.tags = __assign(__assign({}, this.tags), (_a = {}, _a[key] = value, _a));\n return this;\n };\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n Span.prototype.setData = function (key, value) {\n var _a;\n this.data = __assign(__assign({}, this.data), (_a = {}, _a[key] = value, _a));\n return this;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.setStatus = function (value) {\n this.status = value;\n return this;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.setHttpStatus = function (httpStatus) {\n this.setTag('http.status_code', String(httpStatus));\n var spanStatus = SpanStatus.fromHttpCode(httpStatus);\n if (spanStatus !== SpanStatus.UnknownError) {\n this.setStatus(spanStatus);\n }\n return this;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.isSuccess = function () {\n return this.status === SpanStatus.Ok;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.finish = function (endTimestamp) {\n this.endTimestamp = typeof endTimestamp === 'number' ? endTimestamp : timestampWithMs();\n };\n /**\n * @inheritDoc\n */\n Span.prototype.toTraceparent = function () {\n var sampledString = '';\n if (this.sampled !== undefined) {\n sampledString = this.sampled ? '-1' : '-0';\n }\n return this.traceId + \"-\" + this.spanId + sampledString;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.toContext = function () {\n return dropUndefinedKeys({\n data: this.data,\n description: this.description,\n endTimestamp: this.endTimestamp,\n op: this.op,\n parentSpanId: this.parentSpanId,\n sampled: this.sampled,\n spanId: this.spanId,\n startTimestamp: this.startTimestamp,\n status: this.status,\n tags: this.tags,\n traceId: this.traceId,\n });\n };\n /**\n * @inheritDoc\n */\n Span.prototype.updateWithContext = function (spanContext) {\n var _a, _b, _c, _d, _e;\n this.data = (_a = spanContext.data, (_a !== null && _a !== void 0 ? _a : {}));\n this.description = spanContext.description;\n this.endTimestamp = spanContext.endTimestamp;\n this.op = spanContext.op;\n this.parentSpanId = spanContext.parentSpanId;\n this.sampled = spanContext.sampled;\n this.spanId = (_b = spanContext.spanId, (_b !== null && _b !== void 0 ? _b : this.spanId));\n this.startTimestamp = (_c = spanContext.startTimestamp, (_c !== null && _c !== void 0 ? _c : this.startTimestamp));\n this.status = spanContext.status;\n this.tags = (_d = spanContext.tags, (_d !== null && _d !== void 0 ? _d : {}));\n this.traceId = (_e = spanContext.traceId, (_e !== null && _e !== void 0 ? _e : this.traceId));\n return this;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.getTraceContext = function () {\n return dropUndefinedKeys({\n data: Object.keys(this.data).length > 0 ? this.data : undefined,\n description: this.description,\n op: this.op,\n parent_span_id: this.parentSpanId,\n span_id: this.spanId,\n status: this.status,\n tags: Object.keys(this.tags).length > 0 ? this.tags : undefined,\n trace_id: this.traceId,\n });\n };\n /**\n * @inheritDoc\n */\n Span.prototype.toJSON = function () {\n return dropUndefinedKeys({\n data: Object.keys(this.data).length > 0 ? this.data : undefined,\n description: this.description,\n op: this.op,\n parent_span_id: this.parentSpanId,\n span_id: this.spanId,\n start_timestamp: this.startTimestamp,\n status: this.status,\n tags: Object.keys(this.tags).length > 0 ? this.tags : undefined,\n timestamp: this.endTimestamp,\n trace_id: this.traceId,\n });\n };\n return Span;\n}());\nexport { Span };\n//# sourceMappingURL=span.js.map","import { isRegExp, isString } from './is';\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str, max) {\n if (max === void 0) { max = 0; }\n if (typeof str !== 'string' || max === 0) {\n return str;\n }\n return str.length <= max ? str : str.substr(0, max) + \"...\";\n}\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line, colno) {\n var newLine = line;\n var ll = newLine.length;\n if (ll <= 150) {\n return newLine;\n }\n if (colno > ll) {\n // eslint-disable-next-line no-param-reassign\n colno = ll;\n }\n var start = Math.max(colno - 60, 0);\n if (start < 5) {\n start = 0;\n }\n var end = Math.min(start + 140, ll);\n if (end > ll - 5) {\n end = ll;\n }\n if (end === ll) {\n start = Math.max(end - 140, 0);\n }\n newLine = newLine.slice(start, end);\n if (start > 0) {\n newLine = \"'{snip} \" + newLine;\n }\n if (end < ll) {\n newLine += ' {snip}';\n }\n return newLine;\n}\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function safeJoin(input, delimiter) {\n if (!Array.isArray(input)) {\n return '';\n }\n var output = [];\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < input.length; i++) {\n var value = input[i];\n try {\n output.push(String(value));\n }\n catch (e) {\n output.push('[value cannot be serialized]');\n }\n }\n return output.join(delimiter);\n}\n/**\n * Checks if the value matches a regex or includes the string\n * @param value The string value to be checked against\n * @param pattern Either a regex or a string that must be contained in value\n */\nexport function isMatchingPattern(value, pattern) {\n if (!isString(value)) {\n return false;\n }\n if (isRegExp(pattern)) {\n return pattern.test(value);\n }\n if (typeof pattern === 'string') {\n return value.indexOf(pattern) !== -1;\n }\n return false;\n}\n/**\n * Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to\n * `new RegExp()`.\n *\n * Based on https://github.com/sindresorhus/escape-string-regexp. Vendored to a) reduce the size by skipping the runtime\n * type-checking, and b) ensure it gets down-compiled for old versions of Node (the published package only supports Node\n * 12+).\n *\n * @param regexString The string to escape\n * @returns An version of the string with all special regex characters escaped\n */\nexport function escapeStringForRegex(regexString) {\n // escape the hyphen separately so we can also replace it with a unicode literal hyphen, to avoid the problems\n // discussed in https://github.com/sindresorhus/escape-string-regexp/issues/20.\n return regexString.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&').replace(/-/g, '\\\\x2d');\n}\n//# sourceMappingURL=string.js.map","'use strict';\n\n/*\n4.1 authentication: (http://bazaar.launchpad.net/~mysql/mysql-server/5.5/view/head:/sql/password.c)\n\n SERVER: public_seed=create_random_string()\n send(public_seed)\n\n CLIENT: recv(public_seed)\n hash_stage1=sha1(\"password\")\n hash_stage2=sha1(hash_stage1)\n reply=xor(hash_stage1, sha1(public_seed,hash_stage2)\n\n // this three steps are done in scramble()\n\n send(reply)\n\n\n SERVER: recv(reply)\n hash_stage1=xor(reply, sha1(public_seed,hash_stage2))\n candidate_hash2=sha1(hash_stage1)\n check(candidate_hash2==hash_stage2)\n\nserver stores sha1(sha1(password)) ( hash_stag2)\n*/\n\nconst crypto = require('crypto');\n\nfunction sha1(msg, msg1, msg2) {\n const hash = crypto.createHash('sha1');\n hash.update(msg);\n if (msg1) {\n hash.update(msg1);\n }\n\n if (msg2) {\n hash.update(msg2);\n }\n\n return hash.digest();\n}\n\nfunction xor(a, b) {\n if (!Buffer.isBuffer(a)) {\n a = Buffer.from(a, 'binary');\n }\n\n if (!Buffer.isBuffer(b)) {\n b = Buffer.from(b, 'binary');\n }\n\n const result = Buffer.allocUnsafe(a.length);\n\n for (let i = 0; i < a.length; i++) {\n result[i] = a[i] ^ b[i];\n }\n return result;\n}\n\nexports.xor = xor;\n\nfunction token(password, scramble1, scramble2) {\n // TODO: use buffers (not sure why strings here)\n if (!password) {\n return Buffer.alloc(0);\n }\n const stage1 = sha1(password);\n return exports.calculateTokenFromPasswordSha(stage1, scramble1, scramble2);\n}\n\nexports.calculateTokenFromPasswordSha = function(\n passwordSha,\n scramble1,\n scramble2\n) {\n // we use AUTH 41 here, and we need only the bytes we just need.\n const authPluginData1 = scramble1.slice(0, 8);\n const authPluginData2 = scramble2.slice(0, 12);\n const stage2 = sha1(passwordSha);\n const stage3 = sha1(authPluginData1, authPluginData2, stage2);\n return xor(stage3, passwordSha);\n};\n\nexports.calculateToken = token;\n\nexports.verifyToken = function(publicSeed1, publicSeed2, token, doubleSha) {\n const hashStage1 = xor(token, sha1(publicSeed1, publicSeed2, doubleSha));\n const candidateHash2 = sha1(hashStage1);\n return candidateHash2.compare(doubleSha) === 0;\n};\n\nexports.doubleSha1 = function(password) {\n return sha1(sha1(password));\n};\n\nfunction xorRotating(a, seed) {\n if (!Buffer.isBuffer(a)) {\n a = Buffer.from(a, 'binary');\n }\n\n if (!Buffer.isBuffer(seed)) {\n seed = Buffer.from(seed, 'binary');\n }\n\n const result = Buffer.allocUnsafe(a.length);\n const seedLen = seed.length;\n\n for (let i = 0; i < a.length; i++) {\n result[i] = a[i] ^ seed[i % seedLen];\n }\n return result;\n}\nexports.xorRotating = xorRotating;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n'use strict';\n/**/\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n\n for (var key in obj) {\n keys.push(key);\n }\n\n return keys;\n};\n/**/\n\n\nmodule.exports = Duplex;\n\nvar Readable = require('./_stream_readable');\n\nvar Writable = require('./_stream_writable');\n\nrequire('inherits')(Duplex, Readable);\n\n{\n // Allow the keys array to be GC'ed.\n var keys = objectKeys(Writable.prototype);\n\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n this.allowHalfOpen = true;\n\n if (options) {\n if (options.readable === false) this.readable = false;\n if (options.writable === false) this.writable = false;\n\n if (options.allowHalfOpen === false) {\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n }\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n}); // the no-half-open enforcer\n\nfunction onend() {\n // If the writable side ended, then we're ok.\n if (this._writableState.ended) return; // no more data can be written.\n // But allow more writes to happen in this tick.\n\n process.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isAsyncIterable = exports.isAsyncGenerator = exports.isAsync = undefined;\n\nvar _asyncify = require('../asyncify.js');\n\nvar _asyncify2 = _interopRequireDefault(_asyncify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isAsync(fn) {\n return fn[Symbol.toStringTag] === 'AsyncFunction';\n}\n\nfunction isAsyncGenerator(fn) {\n return fn[Symbol.toStringTag] === 'AsyncGenerator';\n}\n\nfunction isAsyncIterable(obj) {\n return typeof obj[Symbol.asyncIterator] === 'function';\n}\n\nfunction wrapAsync(asyncFn) {\n if (typeof asyncFn !== 'function') throw new Error('expected a function');\n return isAsync(asyncFn) ? (0, _asyncify2.default)(asyncFn) : asyncFn;\n}\n\nexports.default = wrapAsync;\nexports.isAsync = isAsync;\nexports.isAsyncGenerator = isAsyncGenerator;\nexports.isAsyncIterable = isAsyncIterable;","import { __extends, __values } from \"tslib\";\nimport { logger, timestampWithMs } from '@sentry/utils';\nimport { SpanRecorder } from './span';\nimport { SpanStatus } from './spanstatus';\nimport { Transaction } from './transaction';\nexport var DEFAULT_IDLE_TIMEOUT = 1000;\nexport var HEARTBEAT_INTERVAL = 5000;\n/**\n * @inheritDoc\n */\nvar IdleTransactionSpanRecorder = /** @class */ (function (_super) {\n __extends(IdleTransactionSpanRecorder, _super);\n function IdleTransactionSpanRecorder(_pushActivity, _popActivity, transactionSpanId, maxlen) {\n if (transactionSpanId === void 0) { transactionSpanId = ''; }\n var _this = _super.call(this, maxlen) || this;\n _this._pushActivity = _pushActivity;\n _this._popActivity = _popActivity;\n _this.transactionSpanId = transactionSpanId;\n return _this;\n }\n /**\n * @inheritDoc\n */\n IdleTransactionSpanRecorder.prototype.add = function (span) {\n var _this = this;\n // We should make sure we do not push and pop activities for\n // the transaction that this span recorder belongs to.\n if (span.spanId !== this.transactionSpanId) {\n // We patch span.finish() to pop an activity after setting an endTimestamp.\n span.finish = function (endTimestamp) {\n span.endTimestamp = typeof endTimestamp === 'number' ? endTimestamp : timestampWithMs();\n _this._popActivity(span.spanId);\n };\n // We should only push new activities if the span does not have an end timestamp.\n if (span.endTimestamp === undefined) {\n this._pushActivity(span.spanId);\n }\n }\n _super.prototype.add.call(this, span);\n };\n return IdleTransactionSpanRecorder;\n}(SpanRecorder));\nexport { IdleTransactionSpanRecorder };\n/**\n * An IdleTransaction is a transaction that automatically finishes. It does this by tracking child spans as activities.\n * You can have multiple IdleTransactions active, but if the `onScope` option is specified, the idle transaction will\n * put itself on the scope on creation.\n */\nvar IdleTransaction = /** @class */ (function (_super) {\n __extends(IdleTransaction, _super);\n function IdleTransaction(transactionContext, _idleHub, \n /**\n * The time to wait in ms until the idle transaction will be finished.\n * @default 1000\n */\n _idleTimeout, \n // If an idle transaction should be put itself on and off the scope automatically.\n _onScope) {\n if (_idleTimeout === void 0) { _idleTimeout = DEFAULT_IDLE_TIMEOUT; }\n if (_onScope === void 0) { _onScope = false; }\n var _this = _super.call(this, transactionContext, _idleHub) || this;\n _this._idleHub = _idleHub;\n _this._idleTimeout = _idleTimeout;\n _this._onScope = _onScope;\n // Activities store a list of active spans\n _this.activities = {};\n // Amount of times heartbeat has counted. Will cause transaction to finish after 3 beats.\n _this._heartbeatCounter = 0;\n // We should not use heartbeat if we finished a transaction\n _this._finished = false;\n _this._beforeFinishCallbacks = [];\n if (_idleHub && _onScope) {\n // There should only be one active transaction on the scope\n clearActiveTransaction(_idleHub);\n // We set the transaction here on the scope so error events pick up the trace\n // context and attach it to the error.\n logger.log(\"Setting idle transaction on scope. Span ID: \" + _this.spanId);\n _idleHub.configureScope(function (scope) { return scope.setSpan(_this); });\n }\n _this._initTimeout = setTimeout(function () {\n if (!_this._finished) {\n _this.finish();\n }\n }, _this._idleTimeout);\n return _this;\n }\n /** {@inheritDoc} */\n IdleTransaction.prototype.finish = function (endTimestamp) {\n var e_1, _a;\n var _this = this;\n if (endTimestamp === void 0) { endTimestamp = timestampWithMs(); }\n this._finished = true;\n this.activities = {};\n if (this.spanRecorder) {\n logger.log('[Tracing] finishing IdleTransaction', new Date(endTimestamp * 1000).toISOString(), this.op);\n try {\n for (var _b = __values(this._beforeFinishCallbacks), _c = _b.next(); !_c.done; _c = _b.next()) {\n var callback = _c.value;\n callback(this, endTimestamp);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n this.spanRecorder.spans = this.spanRecorder.spans.filter(function (span) {\n // If we are dealing with the transaction itself, we just return it\n if (span.spanId === _this.spanId) {\n return true;\n }\n // We cancel all pending spans with status \"cancelled\" to indicate the idle transaction was finished early\n if (!span.endTimestamp) {\n span.endTimestamp = endTimestamp;\n span.setStatus(SpanStatus.Cancelled);\n logger.log('[Tracing] cancelling span since transaction ended early', JSON.stringify(span, undefined, 2));\n }\n var keepSpan = span.startTimestamp < endTimestamp;\n if (!keepSpan) {\n logger.log('[Tracing] discarding Span since it happened after Transaction was finished', JSON.stringify(span, undefined, 2));\n }\n return keepSpan;\n });\n logger.log('[Tracing] flushing IdleTransaction');\n }\n else {\n logger.log('[Tracing] No active IdleTransaction');\n }\n // this._onScope is true if the transaction was previously on the scope.\n if (this._onScope) {\n clearActiveTransaction(this._idleHub);\n }\n return _super.prototype.finish.call(this, endTimestamp);\n };\n /**\n * Register a callback function that gets excecuted before the transaction finishes.\n * Useful for cleanup or if you want to add any additional spans based on current context.\n *\n * This is exposed because users have no other way of running something before an idle transaction\n * finishes.\n */\n IdleTransaction.prototype.registerBeforeFinishCallback = function (callback) {\n this._beforeFinishCallbacks.push(callback);\n };\n /**\n * @inheritDoc\n */\n IdleTransaction.prototype.initSpanRecorder = function (maxlen) {\n var _this = this;\n if (!this.spanRecorder) {\n var pushActivity = function (id) {\n if (_this._finished) {\n return;\n }\n _this._pushActivity(id);\n };\n var popActivity = function (id) {\n if (_this._finished) {\n return;\n }\n _this._popActivity(id);\n };\n this.spanRecorder = new IdleTransactionSpanRecorder(pushActivity, popActivity, this.spanId, maxlen);\n // Start heartbeat so that transactions do not run forever.\n logger.log('Starting heartbeat');\n this._pingHeartbeat();\n }\n this.spanRecorder.add(this);\n };\n /**\n * Start tracking a specific activity.\n * @param spanId The span id that represents the activity\n */\n IdleTransaction.prototype._pushActivity = function (spanId) {\n if (this._initTimeout) {\n clearTimeout(this._initTimeout);\n this._initTimeout = undefined;\n }\n logger.log(\"[Tracing] pushActivity: \" + spanId);\n this.activities[spanId] = true;\n logger.log('[Tracing] new activities count', Object.keys(this.activities).length);\n };\n /**\n * Remove an activity from usage\n * @param spanId The span id that represents the activity\n */\n IdleTransaction.prototype._popActivity = function (spanId) {\n var _this = this;\n if (this.activities[spanId]) {\n logger.log(\"[Tracing] popActivity \" + spanId);\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this.activities[spanId];\n logger.log('[Tracing] new activities count', Object.keys(this.activities).length);\n }\n if (Object.keys(this.activities).length === 0) {\n var timeout = this._idleTimeout;\n // We need to add the timeout here to have the real endtimestamp of the transaction\n // Remember timestampWithMs is in seconds, timeout is in ms\n var end_1 = timestampWithMs() + timeout / 1000;\n setTimeout(function () {\n if (!_this._finished) {\n _this.finish(end_1);\n }\n }, timeout);\n }\n };\n /**\n * Checks when entries of this.activities are not changing for 3 beats.\n * If this occurs we finish the transaction.\n */\n IdleTransaction.prototype._beat = function () {\n // We should not be running heartbeat if the idle transaction is finished.\n if (this._finished) {\n return;\n }\n var heartbeatString = Object.keys(this.activities).join('');\n if (heartbeatString === this._prevHeartbeatString) {\n this._heartbeatCounter += 1;\n }\n else {\n this._heartbeatCounter = 1;\n }\n this._prevHeartbeatString = heartbeatString;\n if (this._heartbeatCounter >= 3) {\n logger.log(\"[Tracing] Transaction finished because of no change for 3 heart beats\");\n this.setStatus(SpanStatus.DeadlineExceeded);\n this.setTag('heartbeat', 'failed');\n this.finish();\n }\n else {\n this._pingHeartbeat();\n }\n };\n /**\n * Pings the heartbeat\n */\n IdleTransaction.prototype._pingHeartbeat = function () {\n var _this = this;\n logger.log(\"pinging Heartbeat -> current counter: \" + this._heartbeatCounter);\n setTimeout(function () {\n _this._beat();\n }, HEARTBEAT_INTERVAL);\n };\n return IdleTransaction;\n}(Transaction));\nexport { IdleTransaction };\n/**\n * Reset active transaction on scope\n */\nfunction clearActiveTransaction(hub) {\n if (hub) {\n var scope = hub.getScope();\n if (scope) {\n var transaction = scope.getTransaction();\n if (transaction) {\n scope.setSpan(undefined);\n }\n }\n }\n}\n//# sourceMappingURL=idletransaction.js.map","import { __assign, __extends } from \"tslib\";\nimport { getCurrentHub, Hub } from '@sentry/hub';\nimport { Outcome, } from '@sentry/types';\nimport { dropUndefinedKeys, isInstanceOf, logger } from '@sentry/utils';\nimport { Span as SpanClass, SpanRecorder } from './span';\n/** JSDoc */\nvar Transaction = /** @class */ (function (_super) {\n __extends(Transaction, _super);\n /**\n * This constructor should never be called manually. Those instrumenting tracing should use\n * `Sentry.startTransaction()`, and internal methods should use `hub.startTransaction()`.\n * @internal\n * @hideconstructor\n * @hidden\n */\n function Transaction(transactionContext, hub) {\n var _this = _super.call(this, transactionContext) || this;\n _this._measurements = {};\n /**\n * The reference to the current hub.\n */\n _this._hub = getCurrentHub();\n if (isInstanceOf(hub, Hub)) {\n _this._hub = hub;\n }\n _this.name = transactionContext.name || '';\n _this.metadata = transactionContext.metadata || {};\n _this._trimEnd = transactionContext.trimEnd;\n // this is because transactions are also spans, and spans have a transaction pointer\n _this.transaction = _this;\n return _this;\n }\n /**\n * JSDoc\n */\n Transaction.prototype.setName = function (name) {\n this.name = name;\n };\n /**\n * Attaches SpanRecorder to the span itself\n * @param maxlen maximum number of spans that can be recorded\n */\n Transaction.prototype.initSpanRecorder = function (maxlen) {\n if (maxlen === void 0) { maxlen = 1000; }\n if (!this.spanRecorder) {\n this.spanRecorder = new SpanRecorder(maxlen);\n }\n this.spanRecorder.add(this);\n };\n /**\n * Set observed measurements for this transaction.\n * @hidden\n */\n Transaction.prototype.setMeasurements = function (measurements) {\n this._measurements = __assign({}, measurements);\n };\n /**\n * Set metadata for this transaction.\n * @hidden\n */\n Transaction.prototype.setMetadata = function (newMetadata) {\n this.metadata = __assign(__assign({}, this.metadata), newMetadata);\n };\n /**\n * @inheritDoc\n */\n Transaction.prototype.finish = function (endTimestamp) {\n var _this = this;\n var _a, _b, _c, _d, _e;\n // This transaction is already finished, so we should not flush it again.\n if (this.endTimestamp !== undefined) {\n return undefined;\n }\n if (!this.name) {\n logger.warn('Transaction has no name, falling back to ``.');\n this.name = '';\n }\n // just sets the end timestamp\n _super.prototype.finish.call(this, endTimestamp);\n if (this.sampled !== true) {\n // At this point if `sampled !== true` we want to discard the transaction.\n logger.log('[Tracing] Discarding transaction because its trace was not chosen to be sampled.');\n (_e = (_c = (_a = this._hub\n .getClient()) === null || _a === void 0 ? void 0 : (_b = _a).getTransport) === null || _c === void 0 ? void 0 : (_d = _c.call(_b)).recordLostEvent) === null || _e === void 0 ? void 0 : _e.call(_d, Outcome.SampleRate, 'transaction');\n return undefined;\n }\n var finishedSpans = this.spanRecorder ? this.spanRecorder.spans.filter(function (s) { return s !== _this && s.endTimestamp; }) : [];\n if (this._trimEnd && finishedSpans.length > 0) {\n this.endTimestamp = finishedSpans.reduce(function (prev, current) {\n if (prev.endTimestamp && current.endTimestamp) {\n return prev.endTimestamp > current.endTimestamp ? prev : current;\n }\n return prev;\n }).endTimestamp;\n }\n var transaction = {\n contexts: {\n trace: this.getTraceContext(),\n },\n spans: finishedSpans,\n start_timestamp: this.startTimestamp,\n tags: this.tags,\n timestamp: this.endTimestamp,\n transaction: this.name,\n type: 'transaction',\n debug_meta: this.metadata,\n };\n var hasMeasurements = Object.keys(this._measurements).length > 0;\n if (hasMeasurements) {\n logger.log('[Measurements] Adding measurements to transaction', JSON.stringify(this._measurements, undefined, 2));\n transaction.measurements = this._measurements;\n }\n logger.log(\"[Tracing] Finishing \" + this.op + \" transaction: \" + this.name + \".\");\n return this._hub.captureEvent(transaction);\n };\n /**\n * @inheritDoc\n */\n Transaction.prototype.toContext = function () {\n var spanContext = _super.prototype.toContext.call(this);\n return dropUndefinedKeys(__assign(__assign({}, spanContext), { name: this.name, trimEnd: this._trimEnd }));\n };\n /**\n * @inheritDoc\n */\n Transaction.prototype.updateWithContext = function (transactionContext) {\n var _a;\n _super.prototype.updateWithContext.call(this, transactionContext);\n this.name = (_a = transactionContext.name, (_a !== null && _a !== void 0 ? _a : ''));\n this._trimEnd = transactionContext.trimEnd;\n return this;\n };\n return Transaction;\n}(SpanClass));\nexport { Transaction };\n//# sourceMappingURL=transaction.js.map","module.exports = require(\"domain\");","import { getGlobalObject } from './global';\nimport { dynamicRequire, isNodeEnv } from './node';\n/**\n * A TimestampSource implementation for environments that do not support the Performance Web API natively.\n *\n * Note that this TimestampSource does not use a monotonic clock. A call to `nowSeconds` may return a timestamp earlier\n * than a previously returned value. We do not try to emulate a monotonic behavior in order to facilitate debugging. It\n * is more obvious to explain \"why does my span have negative duration\" than \"why my spans have zero duration\".\n */\nvar dateTimestampSource = {\n nowSeconds: function () { return Date.now() / 1000; },\n};\n/**\n * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not\n * support the API.\n *\n * Wrapping the native API works around differences in behavior from different browsers.\n */\nfunction getBrowserPerformance() {\n var performance = getGlobalObject().performance;\n if (!performance || !performance.now) {\n return undefined;\n }\n // Replace performance.timeOrigin with our own timeOrigin based on Date.now().\n //\n // This is a partial workaround for browsers reporting performance.timeOrigin such that performance.timeOrigin +\n // performance.now() gives a date arbitrarily in the past.\n //\n // Additionally, computing timeOrigin in this way fills the gap for browsers where performance.timeOrigin is\n // undefined.\n //\n // The assumption that performance.timeOrigin + performance.now() ~= Date.now() is flawed, but we depend on it to\n // interact with data coming out of performance entries.\n //\n // Note that despite recommendations against it in the spec, browsers implement the Performance API with a clock that\n // might stop when the computer is asleep (and perhaps under other circumstances). Such behavior causes\n // performance.timeOrigin + performance.now() to have an arbitrary skew over Date.now(). In laptop computers, we have\n // observed skews that can be as long as days, weeks or months.\n //\n // See https://github.com/getsentry/sentry-javascript/issues/2590.\n //\n // BUG: despite our best intentions, this workaround has its limitations. It mostly addresses timings of pageload\n // transactions, but ignores the skew built up over time that can aversely affect timestamps of navigation\n // transactions of long-lived web pages.\n var timeOrigin = Date.now() - performance.now();\n return {\n now: function () { return performance.now(); },\n timeOrigin: timeOrigin,\n };\n}\n/**\n * Returns the native Performance API implementation from Node.js. Returns undefined in old Node.js versions that don't\n * implement the API.\n */\nfunction getNodePerformance() {\n try {\n var perfHooks = dynamicRequire(module, 'perf_hooks');\n return perfHooks.performance;\n }\n catch (_) {\n return undefined;\n }\n}\n/**\n * The Performance API implementation for the current platform, if available.\n */\nvar platformPerformance = isNodeEnv() ? getNodePerformance() : getBrowserPerformance();\nvar timestampSource = platformPerformance === undefined\n ? dateTimestampSource\n : {\n nowSeconds: function () { return (platformPerformance.timeOrigin + platformPerformance.now()) / 1000; },\n };\n/**\n * Returns a timestamp in seconds since the UNIX epoch using the Date API.\n */\nexport var dateTimestampInSeconds = dateTimestampSource.nowSeconds.bind(dateTimestampSource);\n/**\n * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the\n * availability of the Performance API.\n *\n * See `usingPerformanceAPI` to test whether the Performance API is used.\n *\n * BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is\n * asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The\n * skew can grow to arbitrary amounts like days, weeks or months.\n * See https://github.com/getsentry/sentry-javascript/issues/2590.\n */\nexport var timestampInSeconds = timestampSource.nowSeconds.bind(timestampSource);\n// Re-exported with an old name for backwards-compatibility.\nexport var timestampWithMs = timestampInSeconds;\n/**\n * A boolean that is true when timestampInSeconds uses the Performance API to produce monotonic timestamps.\n */\nexport var usingPerformanceAPI = platformPerformance !== undefined;\n/**\n * Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only.\n */\nexport var _browserPerformanceTimeOriginMode;\n/**\n * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the\n * performance API is available.\n */\nexport var browserPerformanceTimeOrigin = (function () {\n // Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or\n // performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin\n // data as reliable if they are within a reasonable threshold of the current time.\n var performance = getGlobalObject().performance;\n if (!performance || !performance.now) {\n _browserPerformanceTimeOriginMode = 'none';\n return undefined;\n }\n var threshold = 3600 * 1000;\n var performanceNow = performance.now();\n var dateNow = Date.now();\n // if timeOrigin isn't available set delta to threshold so it isn't used\n var timeOriginDelta = performance.timeOrigin\n ? Math.abs(performance.timeOrigin + performanceNow - dateNow)\n : threshold;\n var timeOriginIsReliable = timeOriginDelta < threshold;\n // While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin\n // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing.\n // Also as of writing, performance.timing is not available in Web Workers in mainstream browsers, so it is not always\n // a valid fallback. In the absence of an initial time provided by the browser, fallback to the current time from the\n // Date API.\n // eslint-disable-next-line deprecation/deprecation\n var navigationStart = performance.timing && performance.timing.navigationStart;\n var hasNavigationStart = typeof navigationStart === 'number';\n // if navigationStart isn't available set delta to threshold so it isn't used\n var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold;\n var navigationStartIsReliable = navigationStartDelta < threshold;\n if (timeOriginIsReliable || navigationStartIsReliable) {\n // Use the more reliable time origin\n if (timeOriginDelta <= navigationStartDelta) {\n _browserPerformanceTimeOriginMode = 'timeOrigin';\n return performance.timeOrigin;\n }\n else {\n _browserPerformanceTimeOriginMode = 'navigationStart';\n return navigationStart;\n }\n }\n // Either both timeOrigin and navigationStart are skewed or neither is available, fallback to Date.\n _browserPerformanceTimeOriginMode = 'dateNow';\n return dateNow;\n})();\n//# sourceMappingURL=time.js.map","'use strict';\n\n// Manually extracted from mysql-5.5.23/include/mysql_com.h\n// some more info here: http://dev.mysql.com/doc/refman/5.5/en/c-api-prepared-statement-type-codes.html\nexports.DECIMAL = 0x00; // aka DECIMAL (http://dev.mysql.com/doc/refman/5.0/en/precision-math-decimal-changes.html)\nexports.TINY = 0x01; // aka TINYINT, 1 byte\nexports.SHORT = 0x02; // aka SMALLINT, 2 bytes\nexports.LONG = 0x03; // aka INT, 4 bytes\nexports.FLOAT = 0x04; // aka FLOAT, 4-8 bytes\nexports.DOUBLE = 0x05; // aka DOUBLE, 8 bytes\nexports.NULL = 0x06; // NULL (used for prepared statements, I think)\nexports.TIMESTAMP = 0x07; // aka TIMESTAMP\nexports.LONGLONG = 0x08; // aka BIGINT, 8 bytes\nexports.INT24 = 0x09; // aka MEDIUMINT, 3 bytes\nexports.DATE = 0x0a; // aka DATE\nexports.TIME = 0x0b; // aka TIME\nexports.DATETIME = 0x0c; // aka DATETIME\nexports.YEAR = 0x0d; // aka YEAR, 1 byte (don't ask)\nexports.NEWDATE = 0x0e; // aka ?\nexports.VARCHAR = 0x0f; // aka VARCHAR (?)\nexports.BIT = 0x10; // aka BIT, 1-8 byte\nexports.JSON = 0xf5;\nexports.NEWDECIMAL = 0xf6; // aka DECIMAL\nexports.ENUM = 0xf7; // aka ENUM\nexports.SET = 0xf8; // aka SET\nexports.TINY_BLOB = 0xf9; // aka TINYBLOB, TINYTEXT\nexports.MEDIUM_BLOB = 0xfa; // aka MEDIUMBLOB, MEDIUMTEXT\nexports.LONG_BLOB = 0xfb; // aka LONGBLOG, LONGTEXT\nexports.BLOB = 0xfc; // aka BLOB, TEXT\nexports.VAR_STRING = 0xfd; // aka VARCHAR, VARBINARY\nexports.STRING = 0xfe; // aka CHAR, BINARY\nexports.GEOMETRY = 0xff; // aka GEOMETRY\n","var Stream = require('stream');\nif (process.env.READABLE_STREAM === 'disable' && Stream) {\n module.exports = Stream.Readable;\n Object.assign(module.exports, Stream);\n module.exports.Stream = Stream;\n} else {\n exports = module.exports = require('./lib/_stream_readable.js');\n exports.Stream = Stream || exports;\n exports.Readable = exports;\n exports.Writable = require('./lib/_stream_writable.js');\n exports.Duplex = require('./lib/_stream_duplex.js');\n exports.Transform = require('./lib/_stream_transform.js');\n exports.PassThrough = require('./lib/_stream_passthrough.js');\n exports.finished = require('./lib/internal/streams/end-of-stream.js');\n exports.pipeline = require('./lib/internal/streams/pipeline.js');\n}\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = awaitify;\n// conditionally promisify a function.\n// only return a promise if a callback is omitted\nfunction awaitify(asyncFn, arity = asyncFn.length) {\n if (!arity) throw new Error('arity is undefined');\n function awaitable(...args) {\n if (typeof args[arity - 1] === 'function') {\n return asyncFn.apply(this, args);\n }\n\n return new Promise((resolve, reject) => {\n args[arity - 1] = (err, ...cbArgs) => {\n if (err) return reject(err);\n resolve(cbArgs.length > 1 ? cbArgs : cbArgs[0]);\n };\n asyncFn.apply(this, args);\n });\n }\n\n return awaitable;\n}\nmodule.exports = exports['default'];","'use strict';\n\nconst util = require('util');\nconst Writable = require('readable-stream/lib/_stream_writable.js');\nconst { LEVEL } = require('triple-beam');\n\n/**\n * Constructor function for the TransportStream. This is the base prototype\n * that all `winston >= 3` transports should inherit from.\n * @param {Object} options - Options for this TransportStream instance\n * @param {String} options.level - Highest level according to RFC5424.\n * @param {Boolean} options.handleExceptions - If true, info with\n * { exception: true } will be written.\n * @param {Function} options.log - Custom log function for simple Transport\n * creation\n * @param {Function} options.close - Called on \"unpipe\" from parent.\n */\nconst TransportStream = module.exports = function TransportStream(options = {}) {\n Writable.call(this, { objectMode: true, highWaterMark: options.highWaterMark });\n\n this.format = options.format;\n this.level = options.level;\n this.handleExceptions = options.handleExceptions;\n this.handleRejections = options.handleRejections;\n this.silent = options.silent;\n\n if (options.log) this.log = options.log;\n if (options.logv) this.logv = options.logv;\n if (options.close) this.close = options.close;\n\n // Get the levels from the source we are piped from.\n this.once('pipe', logger => {\n // Remark (indexzero): this bookkeeping can only support multiple\n // Logger parents with the same `levels`. This comes into play in\n // the `winston.Container` code in which `container.add` takes\n // a fully realized set of options with pre-constructed TransportStreams.\n this.levels = logger.levels;\n this.parent = logger;\n });\n\n // If and/or when the transport is removed from this instance\n this.once('unpipe', src => {\n // Remark (indexzero): this bookkeeping can only support multiple\n // Logger parents with the same `levels`. This comes into play in\n // the `winston.Container` code in which `container.add` takes\n // a fully realized set of options with pre-constructed TransportStreams.\n if (src === this.parent) {\n this.parent = null;\n if (this.close) {\n this.close();\n }\n }\n });\n};\n\n/*\n * Inherit from Writeable using Node.js built-ins\n */\nutil.inherits(TransportStream, Writable);\n\n/**\n * Writes the info object to our transport instance.\n * @param {mixed} info - TODO: add param description.\n * @param {mixed} enc - TODO: add param description.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n * @private\n */\nTransportStream.prototype._write = function _write(info, enc, callback) {\n if (this.silent || (info.exception === true && !this.handleExceptions)) {\n return callback(null);\n }\n\n // Remark: This has to be handled in the base transport now because we\n // cannot conditionally write to our pipe targets as stream. We always\n // prefer any explicit level set on the Transport itself falling back to\n // any level set on the parent.\n const level = this.level || (this.parent && this.parent.level);\n\n if (!level || this.levels[level] >= this.levels[info[LEVEL]]) {\n if (info && !this.format) {\n return this.log(info, callback);\n }\n\n let errState;\n let transformed;\n\n // We trap(and re-throw) any errors generated by the user-provided format, but also\n // guarantee that the streams callback is invoked so that we can continue flowing.\n try {\n transformed = this.format.transform(Object.assign({}, info), this.format.options);\n } catch (err) {\n errState = err;\n }\n\n if (errState || !transformed) {\n // eslint-disable-next-line callback-return\n callback();\n if (errState) throw errState;\n return;\n }\n\n return this.log(transformed, callback);\n }\n\n return callback(null);\n};\n\n/**\n * Writes the batch of info objects (i.e. \"object chunks\") to our transport\n * instance after performing any necessary filtering.\n * @param {mixed} chunks - TODO: add params description.\n * @param {function} callback - TODO: add params description.\n * @returns {mixed} - TODO: add returns description.\n * @private\n */\nTransportStream.prototype._writev = function _writev(chunks, callback) {\n if (this.logv) {\n const infos = chunks.filter(this._accept, this);\n if (!infos.length) {\n return callback(null);\n }\n\n // Remark (indexzero): from a performance perspective if Transport\n // implementers do choose to implement logv should we make it their\n // responsibility to invoke their format?\n return this.logv(infos, callback);\n }\n\n for (let i = 0; i < chunks.length; i++) {\n if (!this._accept(chunks[i])) continue;\n\n if (chunks[i].chunk && !this.format) {\n this.log(chunks[i].chunk, chunks[i].callback);\n continue;\n }\n\n let errState;\n let transformed;\n\n // We trap(and re-throw) any errors generated by the user-provided format, but also\n // guarantee that the streams callback is invoked so that we can continue flowing.\n try {\n transformed = this.format.transform(\n Object.assign({}, chunks[i].chunk),\n this.format.options\n );\n } catch (err) {\n errState = err;\n }\n\n if (errState || !transformed) {\n // eslint-disable-next-line callback-return\n chunks[i].callback();\n if (errState) {\n // eslint-disable-next-line callback-return\n callback(null);\n throw errState;\n }\n } else {\n this.log(transformed, chunks[i].callback);\n }\n }\n\n return callback(null);\n};\n\n/**\n * Predicate function that returns true if the specfied `info` on the\n * WriteReq, `write`, should be passed down into the derived\n * TransportStream's I/O via `.log(info, callback)`.\n * @param {WriteReq} write - winston@3 Node.js WriteReq for the `info` object\n * representing the log message.\n * @returns {Boolean} - Value indicating if the `write` should be accepted &\n * logged.\n */\nTransportStream.prototype._accept = function _accept(write) {\n const info = write.chunk;\n if (this.silent) {\n return false;\n }\n\n // We always prefer any explicit level set on the Transport itself\n // falling back to any level set on the parent.\n const level = this.level || (this.parent && this.parent.level);\n\n // Immediately check the average case: log level filtering.\n if (\n info.exception === true ||\n !level ||\n this.levels[level] >= this.levels[info[LEVEL]]\n ) {\n // Ensure the info object is valid based on `{ exception }`:\n // 1. { handleExceptions: true }: all `info` objects are valid\n // 2. { exception: false }: accepted by all transports.\n if (this.handleExceptions || info.exception !== true) {\n return true;\n }\n }\n\n return false;\n};\n\n/**\n * _nop is short for \"No operation\"\n * @returns {Boolean} Intentionally false.\n */\nTransportStream.prototype._nop = function _nop() {\n // eslint-disable-next-line no-undefined\n return void undefined;\n};\n\n\n// Expose legacy stream\nmodule.exports.LegacyTransportStream = require('./legacy');\n","'use strict';\n\nconst codes = {};\n\nfunction createErrorType(code, message, Base) {\n if (!Base) {\n Base = Error\n }\n\n function getMessage (arg1, arg2, arg3) {\n if (typeof message === 'string') {\n return message\n } else {\n return message(arg1, arg2, arg3)\n }\n }\n\n class NodeError extends Base {\n constructor (arg1, arg2, arg3) {\n super(getMessage(arg1, arg2, arg3));\n }\n }\n\n NodeError.prototype.name = Base.name;\n NodeError.prototype.code = code;\n\n codes[code] = NodeError;\n}\n\n// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js\nfunction oneOf(expected, thing) {\n if (Array.isArray(expected)) {\n const len = expected.length;\n expected = expected.map((i) => String(i));\n if (len > 2) {\n return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` +\n expected[len - 1];\n } else if (len === 2) {\n return `one of ${thing} ${expected[0]} or ${expected[1]}`;\n } else {\n return `of ${thing} ${expected[0]}`;\n }\n } else {\n return `of ${thing} ${String(expected)}`;\n }\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith\nfunction startsWith(str, search, pos) {\n\treturn str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\nfunction endsWith(str, search, this_len) {\n\tif (this_len === undefined || this_len > str.length) {\n\t\tthis_len = str.length;\n\t}\n\treturn str.substring(this_len - search.length, this_len) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes\nfunction includes(str, search, start) {\n if (typeof start !== 'number') {\n start = 0;\n }\n\n if (start + search.length > str.length) {\n return false;\n } else {\n return str.indexOf(search, start) !== -1;\n }\n}\n\ncreateErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {\n return 'The value \"' + value + '\" is invalid for option \"' + name + '\"'\n}, TypeError);\ncreateErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {\n // determiner: 'must be' or 'must not be'\n let determiner;\n if (typeof expected === 'string' && startsWith(expected, 'not ')) {\n determiner = 'must not be';\n expected = expected.replace(/^not /, '');\n } else {\n determiner = 'must be';\n }\n\n let msg;\n if (endsWith(name, ' argument')) {\n // For cases like 'first argument'\n msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`;\n } else {\n const type = includes(name, '.') ? 'property' : 'argument';\n msg = `The \"${name}\" ${type} ${determiner} ${oneOf(expected, 'type')}`;\n }\n\n msg += `. Received type ${typeof actual}`;\n return msg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');\ncreateErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {\n return 'The ' + name + ' method is not implemented'\n});\ncreateErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');\ncreateErrorType('ERR_STREAM_DESTROYED', function (name) {\n return 'Cannot call ' + name + ' after a stream was destroyed';\n});\ncreateErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');\ncreateErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');\ncreateErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');\ncreateErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);\ncreateErrorType('ERR_UNKNOWN_ENCODING', function (arg) {\n return 'Unknown encoding: ' + arg\n}, TypeError);\ncreateErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');\n\nmodule.exports.codes = codes;\n","import { mainLogger } from '../sv_logger';\nimport PlayerService from './player.service';\n\nexport const playerLogger = mainLogger.child({\n module: 'player',\n});\n\nconst clean = (input: string) => (input ? input.replace(/[^0-9a-z]/gi, '') : input);\n\nexport async function getDefaultProfileNames(source: number): Promise {\n const defaultProfileNames: string[] = [];\n const player = PlayerService.getPlayer(source);\n\n if (player.getFirstName() && player.getLastName()) {\n defaultProfileNames.push(`${player.getFirstName()}_${player.getLastName()}`);\n } else if (player.getFirstName()) {\n defaultProfileNames.push(player.getFirstName());\n } else if (player.getLastName()) {\n defaultProfileNames.push(player.getLastName());\n }\n\n if (player.getPhoneNumber()) {\n defaultProfileNames.push(player.getPhoneNumber());\n }\n return defaultProfileNames;\n}\n","import { config } from '../server';\n\nconst imageRegex = new RegExp(config.imageSafety.safeImageUrls.join('|'));\n\nexport const checkAndFilterImage = (imageUrl: string): string | null => {\n const image = imageUrl.trim();\n if (image == '') {\n return image;\n }\n\n // If we don't care about filtering images just return the image\n if (!config.imageSafety.filterUnsafeImageUrls) return image;\n\n // We have an allowed image url!\n if (imageRegex.test(image)) return image;\n\n // Embed unsafe urls so we don't accidentally expose our users IP address\n if (config.imageSafety.embedUnsafeImages) return `${config.imageSafety.embedUrl}?url=${imageUrl}`;\n\n return null;\n};\n","/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable @typescript-eslint/typedef */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { isThenable } from './is';\n/** SyncPromise internal states */\nvar States;\n(function (States) {\n /** Pending */\n States[\"PENDING\"] = \"PENDING\";\n /** Resolved / OK */\n States[\"RESOLVED\"] = \"RESOLVED\";\n /** Rejected / Error */\n States[\"REJECTED\"] = \"REJECTED\";\n})(States || (States = {}));\n/**\n * Thenable class that behaves like a Promise and follows it's interface\n * but is not async internally\n */\nvar SyncPromise = /** @class */ (function () {\n function SyncPromise(executor) {\n var _this = this;\n this._state = States.PENDING;\n this._handlers = [];\n /** JSDoc */\n this._resolve = function (value) {\n _this._setResult(States.RESOLVED, value);\n };\n /** JSDoc */\n this._reject = function (reason) {\n _this._setResult(States.REJECTED, reason);\n };\n /** JSDoc */\n this._setResult = function (state, value) {\n if (_this._state !== States.PENDING) {\n return;\n }\n if (isThenable(value)) {\n void value.then(_this._resolve, _this._reject);\n return;\n }\n _this._state = state;\n _this._value = value;\n _this._executeHandlers();\n };\n // TODO: FIXME\n /** JSDoc */\n this._attachHandler = function (handler) {\n _this._handlers = _this._handlers.concat(handler);\n _this._executeHandlers();\n };\n /** JSDoc */\n this._executeHandlers = function () {\n if (_this._state === States.PENDING) {\n return;\n }\n var cachedHandlers = _this._handlers.slice();\n _this._handlers = [];\n cachedHandlers.forEach(function (handler) {\n if (handler.done) {\n return;\n }\n if (_this._state === States.RESOLVED) {\n if (handler.onfulfilled) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n handler.onfulfilled(_this._value);\n }\n }\n if (_this._state === States.REJECTED) {\n if (handler.onrejected) {\n handler.onrejected(_this._value);\n }\n }\n handler.done = true;\n });\n };\n try {\n executor(this._resolve, this._reject);\n }\n catch (e) {\n this._reject(e);\n }\n }\n /** JSDoc */\n SyncPromise.resolve = function (value) {\n return new SyncPromise(function (resolve) {\n resolve(value);\n });\n };\n /** JSDoc */\n SyncPromise.reject = function (reason) {\n return new SyncPromise(function (_, reject) {\n reject(reason);\n });\n };\n /** JSDoc */\n SyncPromise.all = function (collection) {\n return new SyncPromise(function (resolve, reject) {\n if (!Array.isArray(collection)) {\n reject(new TypeError(\"Promise.all requires an array as input.\"));\n return;\n }\n if (collection.length === 0) {\n resolve([]);\n return;\n }\n var counter = collection.length;\n var resolvedCollection = [];\n collection.forEach(function (item, index) {\n void SyncPromise.resolve(item)\n .then(function (value) {\n resolvedCollection[index] = value;\n counter -= 1;\n if (counter !== 0) {\n return;\n }\n resolve(resolvedCollection);\n })\n .then(null, reject);\n });\n });\n };\n /** JSDoc */\n SyncPromise.prototype.then = function (onfulfilled, onrejected) {\n var _this = this;\n return new SyncPromise(function (resolve, reject) {\n _this._attachHandler({\n done: false,\n onfulfilled: function (result) {\n if (!onfulfilled) {\n // TODO: ¯\\_(ツ)_/¯\n // TODO: FIXME\n resolve(result);\n return;\n }\n try {\n resolve(onfulfilled(result));\n return;\n }\n catch (e) {\n reject(e);\n return;\n }\n },\n onrejected: function (reason) {\n if (!onrejected) {\n reject(reason);\n return;\n }\n try {\n resolve(onrejected(reason));\n return;\n }\n catch (e) {\n reject(e);\n return;\n }\n },\n });\n });\n };\n /** JSDoc */\n SyncPromise.prototype.catch = function (onrejected) {\n return this.then(function (val) { return val; }, onrejected);\n };\n /** JSDoc */\n SyncPromise.prototype.finally = function (onfinally) {\n var _this = this;\n return new SyncPromise(function (resolve, reject) {\n var val;\n var isRejected;\n return _this.then(function (value) {\n isRejected = false;\n val = value;\n if (onfinally) {\n onfinally();\n }\n }, function (reason) {\n isRejected = true;\n val = reason;\n if (onfinally) {\n onfinally();\n }\n }).then(function () {\n if (isRejected) {\n reject(val);\n return;\n }\n resolve(val);\n });\n });\n };\n /** JSDoc */\n SyncPromise.prototype.toString = function () {\n return '[object SyncPromise]';\n };\n return SyncPromise;\n}());\nexport { SyncPromise };\n//# sourceMappingURL=syncpromise.js.map","import mysql from 'mysql2/promise';\nimport { CONNECTION_STRING, parseSemiColonFormat } from './db_utils';\nimport { mainLogger } from '../sv_logger';\n\n// we require set mysql_connection_string to be set in the config\nconst mysqlConnectionString = GetConvar(CONNECTION_STRING, 'none');\nif (mysqlConnectionString === 'none') {\n const error = new Error(\n `No connection string provided. make sure \"${CONNECTION_STRING}\" is set in your config.`,\n );\n mainLogger.error(error.message);\n throw error;\n}\n\n/**\n * Most fivem servers utilize fivem-mysql-async (https://brouznouf.github.io/fivem-mysql-async/) and\n * define a environment variable \"mysql_connection_string\" in their configurations. We will try to\n * maintain backwards compatibility with this.\n *\n * fivem-mysql-async allows for two different connection string formats defined here:\n * https://brouznouf.github.io/fivem-mysql-async/config/ and we need to handle both of them.\n */\nexport function generateConnectionPool() {\n try {\n const config = mysqlConnectionString.includes('mysql://')\n ? { uri: mysqlConnectionString }\n : parseSemiColonFormat(mysqlConnectionString);\n\n return mysql.createPool({\n connectTimeout: 60000,\n ...config,\n });\n } catch (e) {\n mainLogger.error(`SQL Connection Pool Error: ${e.message}`, {\n connection: mysqlConnectionString,\n });\n }\n}\n\nexport const pool = generateConnectionPool();\n\nexport async function withTransaction(queries: Promise[]): Promise {\n const connection = await pool.getConnection();\n connection.beginTransaction();\n\n try {\n const results = await Promise.all(queries);\n await connection.commit();\n await connection.release();\n return results;\n } catch (err) {\n mainLogger.warn(`Error when submitting queries in transaction, ${err.message}`);\n await connection.rollback();\n await connection.release();\n return Promise.reject(err);\n }\n}\n","// This file was modified by Oracle on June 1, 2021.\n// The changes involve new logic to handle an additional ERR Packet sent by\n// the MySQL server when the connection is closed unexpectedly.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n// This file was modified by Oracle on June 17, 2021.\n// The changes involve logic to ensure the socket connection is closed when\n// there is a fatal error.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst Net = require('net');\nconst Tls = require('tls');\nconst Timers = require('timers');\nconst EventEmitter = require('events').EventEmitter;\nconst Readable = require('stream').Readable;\nconst Queue = require('denque');\nconst SqlString = require('sqlstring');\nconst LRU = require('lru-cache');\n\nconst PacketParser = require('./packet_parser.js');\nconst Packets = require('./packets/index.js');\nconst Commands = require('./commands/index.js');\nconst ConnectionConfig = require('./connection_config.js');\nconst CharsetToEncoding = require('./constants/charset_encodings.js');\n\nlet _connectionId = 0;\n\nlet convertNamedPlaceholders = null;\n\nclass Connection extends EventEmitter {\n constructor(opts) {\n super();\n this.config = opts.config;\n // TODO: fill defaults\n // if no params, connect to /var/lib/mysql/mysql.sock ( /tmp/mysql.sock on OSX )\n // if host is given, connect to host:3306\n // TODO: use `/usr/local/mysql/bin/mysql_config --socket` output? as default socketPath\n // if there is no host/port and no socketPath parameters?\n if (!opts.config.stream) {\n if (opts.config.socketPath) {\n this.stream = Net.connect(opts.config.socketPath);\n } else {\n this.stream = Net.connect(\n opts.config.port,\n opts.config.host\n );\n\n // Enable keep-alive on the socket. It's disabled by default, but the\n // user can enable it and supply an initial delay.\n this.stream.setKeepAlive(true, this.config.keepAliveInitialDelay);\n }\n // if stream is a function, treat it as \"stream agent / factory\"\n } else if (typeof opts.config.stream === 'function') {\n this.stream = opts.config.stream(opts);\n } else {\n this.stream = opts.config.stream;\n }\n\n this._internalId = _connectionId++;\n this._commands = new Queue();\n this._command = null;\n this._paused = false;\n this._paused_packets = new Queue();\n this._statements = new LRU({\n max: this.config.maxPreparedStatements,\n dispose: function(key, statement) {\n statement.close();\n }\n });\n this.serverCapabilityFlags = 0;\n this.authorized = false;\n this.sequenceId = 0;\n this.compressedSequenceId = 0;\n this.threadId = null;\n this._handshakePacket = null;\n this._fatalError = null;\n this._protocolError = null;\n this._outOfOrderPackets = [];\n this.clientEncoding = CharsetToEncoding[this.config.charsetNumber];\n this.stream.on('error', this._handleNetworkError.bind(this));\n // see https://gist.github.com/khoomeister/4985691#use-that-instead-of-bind\n this.packetParser = new PacketParser(p => {\n this.handlePacket(p);\n });\n this.stream.on('data', data => {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n this.packetParser.execute(data);\n });\n this.stream.on('close', () => {\n // we need to set this flag everywhere where we want connection to close\n if (this._closing) {\n return;\n }\n if (!this._protocolError) {\n // no particular error message before disconnect\n this._protocolError = new Error(\n 'Connection lost: The server closed the connection.'\n );\n this._protocolError.fatal = true;\n this._protocolError.code = 'PROTOCOL_CONNECTION_LOST';\n }\n this._notifyError(this._protocolError);\n });\n let handshakeCommand;\n if (!this.config.isServer) {\n handshakeCommand = new Commands.ClientHandshake(this.config.clientFlags);\n handshakeCommand.on('end', () => {\n // this happens when handshake finishes early either because there was\n // some fatal error or the server sent an error packet instead of\n // an hello packet (for example, 'Too many connactions' error)\n if (!handshakeCommand.handshake || this._fatalError || this._protocolError) {\n return;\n }\n this._handshakePacket = handshakeCommand.handshake;\n this.threadId = handshakeCommand.handshake.connectionId;\n this.emit('connect', handshakeCommand.handshake);\n });\n handshakeCommand.on('error', err => {\n this._closing = true;\n this._notifyError(err);\n });\n this.addCommand(handshakeCommand);\n }\n // in case there was no initiall handshake but we need to read sting, assume it utf-8\n // most common example: \"Too many connections\" error ( packet is sent immediately on connection attempt, we don't know server encoding yet)\n // will be overwrittedn with actial encoding value as soon as server handshake packet is received\n this.serverEncoding = 'utf8';\n if (this.config.connectTimeout) {\n const timeoutHandler = this._handleTimeoutError.bind(this);\n this.connectTimeout = Timers.setTimeout(\n timeoutHandler,\n this.config.connectTimeout\n );\n }\n }\n\n promise(promiseImpl) {\n const PromiseConnection = require('../promise').PromiseConnection;\n return new PromiseConnection(this, promiseImpl);\n }\n\n _addCommandClosedState(cmd) {\n const err = new Error(\n \"Can't add new command when connection is in closed state\"\n );\n err.fatal = true;\n if (cmd.onResult) {\n cmd.onResult(err);\n } else {\n this.emit('error', err);\n }\n }\n\n _handleFatalError(err) {\n err.fatal = true;\n // stop receiving packets\n this.stream.removeAllListeners('data');\n this.addCommand = this._addCommandClosedState;\n this.write = () => {\n this.emit('error', new Error(\"Can't write in closed state\"));\n };\n this._notifyError(err);\n this._fatalError = err;\n }\n\n _handleNetworkError(err) {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n // Do not throw an error when a connection ends with a RST,ACK packet\n if (err.errno === 'ECONNRESET' && this._closing) {\n return;\n }\n this._handleFatalError(err);\n }\n\n _handleTimeoutError() {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n this.stream.destroy && this.stream.destroy();\n const err = new Error('connect ETIMEDOUT');\n err.errorno = 'ETIMEDOUT';\n err.code = 'ETIMEDOUT';\n err.syscall = 'connect';\n this._handleNetworkError(err);\n }\n\n // notify all commands in the queue and bubble error as connection \"error\"\n // called on stream error or unexpected termination\n _notifyError(err) {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n // prevent from emitting 'PROTOCOL_CONNECTION_LOST' after EPIPE or ECONNRESET\n if (this._fatalError) {\n return;\n }\n let command;\n // if there is no active command, notify connection\n // if there are commands and all of them have callbacks, pass error via callback\n let bubbleErrorToConnection = !this._command;\n if (this._command && this._command.onResult) {\n this._command.onResult(err);\n this._command = null;\n // connection handshake is special because we allow it to be implicit\n // if error happened during handshake, but there are others commands in queue\n // then bubble error to other commands and not to connection\n } else if (\n !(\n this._command &&\n this._command.constructor === Commands.ClientHandshake &&\n this._commands.length > 0\n )\n ) {\n bubbleErrorToConnection = true;\n }\n while ((command = this._commands.shift())) {\n if (command.onResult) {\n command.onResult(err);\n } else {\n bubbleErrorToConnection = true;\n }\n }\n // notify connection if some comands in the queue did not have callbacks\n // or if this is pool connection ( so it can be removed from pool )\n if (bubbleErrorToConnection || this._pool) {\n this.emit('error', err);\n }\n // close connection after emitting the event in case of a fatal error\n if (err.fatal) {\n this.close();\n }\n }\n\n write(buffer) {\n const result = this.stream.write(buffer, err => {\n if (err) {\n this._handleNetworkError(err);\n }\n });\n\n if (!result) {\n this.stream.emit('pause');\n }\n }\n\n // http://dev.mysql.com/doc/internals/en/sequence-id.html\n //\n // The sequence-id is incremented with each packet and may wrap around.\n // It starts at 0 and is reset to 0 when a new command\n // begins in the Command Phase.\n // http://dev.mysql.com/doc/internals/en/example-several-mysql-packets.html\n _resetSequenceId() {\n this.sequenceId = 0;\n this.compressedSequenceId = 0;\n }\n\n _bumpCompressedSequenceId(numPackets) {\n this.compressedSequenceId += numPackets;\n this.compressedSequenceId %= 256;\n }\n\n _bumpSequenceId(numPackets) {\n this.sequenceId += numPackets;\n this.sequenceId %= 256;\n }\n\n writePacket(packet) {\n const MAX_PACKET_LENGTH = 16777215;\n const length = packet.length();\n let chunk, offset, header;\n if (length < MAX_PACKET_LENGTH) {\n packet.writeHeader(this.sequenceId);\n if (this.config.debug) {\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} <== ${this._command._commandName}#${this._command.stateName()}(${[this.sequenceId, packet._name, packet.length()].join(',')})`\n );\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} <== ${packet.buffer.toString('hex')}`\n );\n }\n this._bumpSequenceId(1);\n this.write(packet.buffer);\n } else {\n if (this.config.debug) {\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} <== Writing large packet, raw content not written:`\n );\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} <== ${this._command._commandName}#${this._command.stateName()}(${[this.sequenceId, packet._name, packet.length()].join(',')})`\n );\n }\n for (offset = 4; offset < 4 + length; offset += MAX_PACKET_LENGTH) {\n chunk = packet.buffer.slice(offset, offset + MAX_PACKET_LENGTH);\n if (chunk.length === MAX_PACKET_LENGTH) {\n header = Buffer.from([0xff, 0xff, 0xff, this.sequenceId]);\n } else {\n header = Buffer.from([\n chunk.length & 0xff,\n (chunk.length >> 8) & 0xff,\n (chunk.length >> 16) & 0xff,\n this.sequenceId\n ]);\n }\n this._bumpSequenceId(1);\n this.write(header);\n this.write(chunk);\n }\n }\n }\n\n // 0.11+ environment\n startTLS(onSecure) {\n if (this.config.debug) {\n // eslint-disable-next-line no-console\n console.log('Upgrading connection to TLS');\n }\n const secureContext = Tls.createSecureContext({\n ca: this.config.ssl.ca,\n cert: this.config.ssl.cert,\n ciphers: this.config.ssl.ciphers,\n key: this.config.ssl.key,\n passphrase: this.config.ssl.passphrase,\n minVersion: this.config.ssl.minVersion\n });\n const rejectUnauthorized = this.config.ssl.rejectUnauthorized;\n let secureEstablished = false;\n const secureSocket = new Tls.TLSSocket(this.stream, {\n rejectUnauthorized: rejectUnauthorized,\n requestCert: true,\n secureContext: secureContext,\n isServer: false\n });\n // error handler for secure socket\n secureSocket.on('_tlsError', err => {\n if (secureEstablished) {\n this._handleNetworkError(err);\n } else {\n onSecure(err);\n }\n });\n secureSocket.on('secure', () => {\n secureEstablished = true;\n onSecure(rejectUnauthorized ? secureSocket.ssl.verifyError() : null);\n });\n secureSocket.on('data', data => {\n this.packetParser.execute(data);\n });\n this.write = buffer => {\n secureSocket.write(buffer);\n };\n // start TLS communications\n secureSocket._start();\n }\n\n pipe() {\n if (this.stream instanceof Net.Stream) {\n this.stream.ondata = (data, start, end) => {\n this.packetParser.execute(data, start, end);\n };\n } else {\n this.stream.on('data', data => {\n this.packetParser.execute(\n data.parent,\n data.offset,\n data.offset + data.length\n );\n });\n }\n }\n\n protocolError(message, code) {\n // Starting with MySQL 8.0.24, if the client closes the connection\n // unexpectedly, the server will send a last ERR Packet, which we can\n // safely ignore.\n // https://dev.mysql.com/worklog/task/?id=12999\n if (this._closing) {\n return;\n }\n\n const err = new Error(message);\n err.fatal = true;\n err.code = code || 'PROTOCOL_ERROR';\n this.emit('error', err);\n }\n\n handlePacket(packet) {\n if (this._paused) {\n this._paused_packets.push(packet);\n return;\n }\n if (packet) {\n if (this.sequenceId !== packet.sequenceId) {\n const err = new Error(\n `Warning: got packets out of order. Expected ${this.sequenceId} but received ${packet.sequenceId}`\n );\n err.expected = this.sequenceId;\n err.received = packet.sequenceId;\n this.emit('warn', err); // REVIEW\n // eslint-disable-next-line no-console\n console.error(err.message);\n }\n this._bumpSequenceId(packet.numPackets);\n }\n if (this.config.debug) {\n if (packet) {\n // eslint-disable-next-line no-console\n console.log(\n ` raw: ${packet.buffer\n .slice(packet.offset, packet.offset + packet.length())\n .toString('hex')}`\n );\n // eslint-disable-next-line no-console\n console.trace();\n const commandName = this._command\n ? this._command._commandName\n : '(no command)';\n const stateName = this._command\n ? this._command.stateName()\n : '(no command)';\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} ==> ${commandName}#${stateName}(${[packet.sequenceId, packet.type(), packet.length()].join(',')})`\n );\n }\n }\n if (!this._command) {\n const marker = packet.peekByte();\n // If it's an Err Packet, we should use it.\n if (marker === 0xff) {\n const error = Packets.Error.fromPacket(packet);\n this.protocolError(error.message, error.code);\n } else {\n // Otherwise, it means it's some other unexpected packet.\n this.protocolError(\n 'Unexpected packet while no commands in the queue',\n 'PROTOCOL_UNEXPECTED_PACKET'\n );\n }\n this.close();\n return;\n }\n const done = this._command.execute(packet, this);\n if (done) {\n this._command = this._commands.shift();\n if (this._command) {\n this.sequenceId = 0;\n this.compressedSequenceId = 0;\n this.handlePacket();\n }\n }\n }\n\n addCommand(cmd) {\n // this.compressedSequenceId = 0;\n // this.sequenceId = 0;\n if (this.config.debug) {\n const commandName = cmd.constructor.name;\n // eslint-disable-next-line no-console\n console.log(`Add command: ${commandName}`);\n cmd._commandName = commandName;\n }\n if (!this._command) {\n this._command = cmd;\n this.handlePacket();\n } else {\n this._commands.push(cmd);\n }\n return cmd;\n }\n\n format(sql, values) {\n if (typeof this.config.queryFormat === 'function') {\n return this.config.queryFormat.call(\n this,\n sql,\n values,\n this.config.timezone\n );\n }\n const opts = {\n sql: sql,\n values: values\n };\n this._resolveNamedPlaceholders(opts);\n return SqlString.format(\n opts.sql,\n opts.values,\n this.config.stringifyObjects,\n this.config.timezone\n );\n }\n\n escape(value) {\n return SqlString.escape(value, false, this.config.timezone);\n }\n\n escapeId(value) {\n return SqlString.escapeId(value, false);\n }\n\n raw(sql) {\n return SqlString.raw(sql);\n }\n\n _resolveNamedPlaceholders(options) {\n let unnamed;\n if (this.config.namedPlaceholders || options.namedPlaceholders) {\n if (Array.isArray(options.values)) {\n // if an array is provided as the values, assume the conversion is not necessary.\n // this allows the usage of unnamed placeholders even if the namedPlaceholders flag is enabled.\n return\n }\n if (convertNamedPlaceholders === null) {\n convertNamedPlaceholders = require('named-placeholders')();\n }\n unnamed = convertNamedPlaceholders(options.sql, options.values);\n options.sql = unnamed[0];\n options.values = unnamed[1];\n }\n }\n\n query(sql, values, cb) {\n let cmdQuery;\n if (sql.constructor === Commands.Query) {\n cmdQuery = sql;\n } else {\n cmdQuery = Connection.createQuery(sql, values, cb, this.config);\n }\n this._resolveNamedPlaceholders(cmdQuery);\n const rawSql = this.format(cmdQuery.sql, cmdQuery.values !== undefined ? cmdQuery.values : []);\n cmdQuery.sql = rawSql;\n return this.addCommand(cmdQuery);\n }\n\n pause() {\n this._paused = true;\n this.stream.pause();\n }\n\n resume() {\n let packet;\n this._paused = false;\n while ((packet = this._paused_packets.shift())) {\n this.handlePacket(packet);\n // don't resume if packet hander paused connection\n if (this._paused) {\n return;\n }\n }\n this.stream.resume();\n }\n\n // TODO: named placeholders support\n prepare(options, cb) {\n if (typeof options === 'string') {\n options = { sql: options };\n }\n return this.addCommand(new Commands.Prepare(options, cb));\n }\n\n unprepare(sql) {\n let options = {};\n if (typeof sql === 'object') {\n options = sql;\n } else {\n options.sql = sql;\n }\n const key = Connection.statementKey(options);\n const stmt = this._statements.get(key);\n if (stmt) {\n this._statements.del(key);\n stmt.close();\n }\n return stmt;\n }\n\n execute(sql, values, cb) {\n let options = {};\n if (typeof sql === 'object') {\n // execute(options, cb)\n options = sql;\n if (typeof values === 'function') {\n cb = values;\n } else {\n options.values = options.values || values;\n }\n } else if (typeof values === 'function') {\n // execute(sql, cb)\n cb = values;\n options.sql = sql;\n options.values = undefined;\n } else {\n // execute(sql, values, cb)\n options.sql = sql;\n options.values = values;\n }\n this._resolveNamedPlaceholders(options);\n // check for values containing undefined\n if (options.values) {\n //If namedPlaceholder is not enabled and object is passed as bind parameters\n if (!Array.isArray(options.values)) {\n throw new TypeError(\n 'Bind parameters must be array if namedPlaceholders parameter is not enabled'\n );\n }\n options.values.forEach(val => {\n //If namedPlaceholder is not enabled and object is passed as bind parameters\n if (!Array.isArray(options.values)) {\n throw new TypeError(\n 'Bind parameters must be array if namedPlaceholders parameter is not enabled'\n );\n }\n if (val === undefined) {\n throw new TypeError(\n 'Bind parameters must not contain undefined. To pass SQL NULL specify JS null'\n );\n }\n if (typeof val === 'function') {\n throw new TypeError(\n 'Bind parameters must not contain function(s). To pass the body of a function as a string call .toString() first'\n );\n }\n });\n }\n const executeCommand = new Commands.Execute(options, cb);\n const prepareCommand = new Commands.Prepare(options, (err, stmt) => {\n if (err) {\n // skip execute command if prepare failed, we have main\n // combined callback here\n executeCommand.start = function() {\n return null;\n };\n if (cb) {\n cb(err);\n } else {\n executeCommand.emit('error', err);\n }\n executeCommand.emit('end');\n return;\n }\n executeCommand.statement = stmt;\n });\n this.addCommand(prepareCommand);\n this.addCommand(executeCommand);\n return executeCommand;\n }\n\n changeUser(options, callback) {\n if (!callback && typeof options === 'function') {\n callback = options;\n options = {};\n }\n const charsetNumber = options.charset\n ? ConnectionConfig.getCharsetNumber(options.charset)\n : this.config.charsetNumber;\n return this.addCommand(\n new Commands.ChangeUser(\n {\n user: options.user || this.config.user,\n password: options.password || this.config.password,\n passwordSha1: options.passwordSha1 || this.config.passwordSha1,\n database: options.database || this.config.database,\n timeout: options.timeout,\n charsetNumber: charsetNumber,\n currentConfig: this.config\n },\n err => {\n if (err) {\n err.fatal = true;\n }\n if (callback) {\n callback(err);\n }\n }\n )\n );\n }\n\n // transaction helpers\n beginTransaction(cb) {\n return this.query('START TRANSACTION', cb);\n }\n\n commit(cb) {\n return this.query('COMMIT', cb);\n }\n\n rollback(cb) {\n return this.query('ROLLBACK', cb);\n }\n\n ping(cb) {\n return this.addCommand(new Commands.Ping(cb));\n }\n\n _registerSlave(opts, cb) {\n return this.addCommand(new Commands.RegisterSlave(opts, cb));\n }\n\n _binlogDump(opts, cb) {\n return this.addCommand(new Commands.BinlogDump(opts, cb));\n }\n\n // currently just alias to close\n destroy() {\n this.close();\n }\n\n close() {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n this._closing = true;\n this.stream.end();\n this.addCommand = this._addCommandClosedState;\n }\n\n createBinlogStream(opts) {\n // TODO: create proper stream class\n // TODO: use through2\n let test = 1;\n const stream = new Readable({ objectMode: true });\n stream._read = function() {\n return {\n data: test++\n };\n };\n this._registerSlave(opts, () => {\n const dumpCmd = this._binlogDump(opts);\n dumpCmd.on('event', ev => {\n stream.push(ev);\n });\n dumpCmd.on('eof', () => {\n stream.push(null);\n // if non-blocking, then close stream to prevent errors\n if (opts.flags && opts.flags & 0x01) {\n this.close();\n }\n });\n // TODO: pipe errors as well\n });\n return stream;\n }\n\n connect(cb) {\n if (!cb) {\n return;\n }\n if (this._fatalError || this._protocolError) {\n return cb(this._fatalError || this._protocolError);\n }\n if (this._handshakePacket) {\n return cb(null, this);\n }\n let connectCalled = 0;\n function callbackOnce(isErrorHandler) {\n return function(param) {\n if (!connectCalled) {\n if (isErrorHandler) {\n cb(param);\n } else {\n cb(null, param);\n }\n }\n connectCalled = 1;\n };\n }\n this.once('error', callbackOnce(true));\n this.once('connect', callbackOnce(false));\n }\n\n // ===================================\n // outgoing server connection methods\n // ===================================\n writeColumns(columns) {\n this.writePacket(Packets.ResultSetHeader.toPacket(columns.length));\n columns.forEach(column => {\n this.writePacket(\n Packets.ColumnDefinition.toPacket(column, this.serverConfig.encoding)\n );\n });\n this.writeEof();\n }\n\n // row is array of columns, not hash\n writeTextRow(column) {\n this.writePacket(\n Packets.TextRow.toPacket(column, this.serverConfig.encoding)\n );\n }\n\n writeTextResult(rows, columns) {\n this.writeColumns(columns);\n rows.forEach(row => {\n const arrayRow = new Array(columns.length);\n columns.forEach(column => {\n arrayRow.push(row[column.name]);\n });\n this.writeTextRow(arrayRow);\n });\n this.writeEof();\n }\n\n writeEof(warnings, statusFlags) {\n this.writePacket(Packets.EOF.toPacket(warnings, statusFlags));\n }\n\n writeOk(args) {\n if (!args) {\n args = { affectedRows: 0 };\n }\n this.writePacket(Packets.OK.toPacket(args, this.serverConfig.encoding));\n }\n\n writeError(args) {\n // if we want to send error before initial hello was sent, use default encoding\n const encoding = this.serverConfig ? this.serverConfig.encoding : 'cesu8';\n this.writePacket(Packets.Error.toPacket(args, encoding));\n }\n\n serverHandshake(args) {\n this.serverConfig = args;\n this.serverConfig.encoding =\n CharsetToEncoding[this.serverConfig.characterSet];\n return this.addCommand(new Commands.ServerHandshake(args));\n }\n\n // ===============================================================\n end(callback) {\n if (this.config.isServer) {\n this._closing = true;\n const quitCmd = new EventEmitter();\n setImmediate(() => {\n this.stream.end();\n quitCmd.emit('end');\n });\n return quitCmd;\n }\n // trigger error if more commands enqueued after end command\n const quitCmd = this.addCommand(new Commands.Quit(callback));\n this.addCommand = this._addCommandClosedState;\n return quitCmd;\n }\n\n static createQuery(sql, values, cb, config) {\n let options = {\n rowsAsArray: config.rowsAsArray\n };\n if (typeof sql === 'object') {\n // query(options, cb)\n options = sql;\n if (typeof values === 'function') {\n cb = values;\n } else if (values !== undefined) {\n options.values = values;\n }\n } else if (typeof values === 'function') {\n // query(sql, cb)\n cb = values;\n options.sql = sql;\n options.values = undefined;\n } else {\n // query(sql, values, cb)\n options.sql = sql;\n options.values = values;\n }\n return new Commands.Query(options, cb);\n }\n\n static statementKey(options) {\n return (\n `${typeof options.nestTables}/${options.nestTables}/${options.rowsAsArray}${options.sql}`\n );\n }\n}\n\nif (Tls.TLSSocket) {\n // not supported\n} else {\n Connection.prototype.startTLS = function _startTLS(onSecure) {\n if (this.config.debug) {\n // eslint-disable-next-line no-console\n console.log('Upgrading connection to TLS');\n }\n const crypto = require('crypto');\n const config = this.config;\n const stream = this.stream;\n const rejectUnauthorized = this.config.ssl.rejectUnauthorized;\n const credentials = crypto.createCredentials({\n key: config.ssl.key,\n cert: config.ssl.cert,\n passphrase: config.ssl.passphrase,\n ca: config.ssl.ca,\n ciphers: config.ssl.ciphers\n });\n const securePair = Tls.createSecurePair(\n credentials,\n false,\n true,\n rejectUnauthorized\n );\n\n if (stream.ondata) {\n stream.ondata = null;\n }\n stream.removeAllListeners('data');\n stream.pipe(securePair.encrypted);\n securePair.encrypted.pipe(stream);\n securePair.cleartext.on('data', data => {\n this.packetParser.execute(data);\n });\n this.write = function(buffer) {\n securePair.cleartext.write(buffer);\n };\n securePair.on('secure', () => {\n onSecure(rejectUnauthorized ? securePair.ssl.verifyError() : null);\n });\n };\n}\n\nmodule.exports = Connection;\n","'use strict';\n\nconst Iconv = require('iconv-lite');\n\nexports.decode = function(buffer, encoding, start, end, options) {\n if (Buffer.isEncoding(encoding)) {\n return buffer.toString(encoding, start, end);\n }\n\n const decoder = Iconv.getDecoder(encoding, options || {});\n\n const res = decoder.write(buffer.slice(start, end));\n const trail = decoder.end();\n\n return trail ? res + trail : res;\n};\n\nexports.encode = function(string, encoding, options) {\n if (Buffer.isEncoding(encoding)) {\n return Buffer.from(string, encoding);\n }\n\n const encoder = Iconv.getEncoder(encoding, options || {});\n\n const res = encoder.write(string);\n const trail = encoder.end();\n\n return trail && trail.length > 0 ? Buffer.concat([res, trail]) : res;\n};\n","module.exports = require(\"process\");","'use strict';\n\nexports.BIG5_CHINESE_CI = 1;\nexports.LATIN2_CZECH_CS = 2;\nexports.DEC8_SWEDISH_CI = 3;\nexports.CP850_GENERAL_CI = 4;\nexports.LATIN1_GERMAN1_CI = 5;\nexports.HP8_ENGLISH_CI = 6;\nexports.KOI8R_GENERAL_CI = 7;\nexports.LATIN1_SWEDISH_CI = 8;\nexports.LATIN2_GENERAL_CI = 9;\nexports.SWE7_SWEDISH_CI = 10;\nexports.ASCII_GENERAL_CI = 11;\nexports.UJIS_JAPANESE_CI = 12;\nexports.SJIS_JAPANESE_CI = 13;\nexports.CP1251_BULGARIAN_CI = 14;\nexports.LATIN1_DANISH_CI = 15;\nexports.HEBREW_GENERAL_CI = 16;\nexports.TIS620_THAI_CI = 18;\nexports.EUCKR_KOREAN_CI = 19;\nexports.LATIN7_ESTONIAN_CS = 20;\nexports.LATIN2_HUNGARIAN_CI = 21;\nexports.KOI8U_GENERAL_CI = 22;\nexports.CP1251_UKRAINIAN_CI = 23;\nexports.GB2312_CHINESE_CI = 24;\nexports.GREEK_GENERAL_CI = 25;\nexports.CP1250_GENERAL_CI = 26;\nexports.LATIN2_CROATIAN_CI = 27;\nexports.GBK_CHINESE_CI = 28;\nexports.CP1257_LITHUANIAN_CI = 29;\nexports.LATIN5_TURKISH_CI = 30;\nexports.LATIN1_GERMAN2_CI = 31;\nexports.ARMSCII8_GENERAL_CI = 32;\nexports.UTF8_GENERAL_CI = 33;\nexports.CP1250_CZECH_CS = 34;\nexports.UCS2_GENERAL_CI = 35;\nexports.CP866_GENERAL_CI = 36;\nexports.KEYBCS2_GENERAL_CI = 37;\nexports.MACCE_GENERAL_CI = 38;\nexports.MACROMAN_GENERAL_CI = 39;\nexports.CP852_GENERAL_CI = 40;\nexports.LATIN7_GENERAL_CI = 41;\nexports.LATIN7_GENERAL_CS = 42;\nexports.MACCE_BIN = 43;\nexports.CP1250_CROATIAN_CI = 44;\nexports.UTF8MB4_GENERAL_CI = 45;\nexports.UTF8MB4_BIN = 46;\nexports.LATIN1_BIN = 47;\nexports.LATIN1_GENERAL_CI = 48;\nexports.LATIN1_GENERAL_CS = 49;\nexports.CP1251_BIN = 50;\nexports.CP1251_GENERAL_CI = 51;\nexports.CP1251_GENERAL_CS = 52;\nexports.MACROMAN_BIN = 53;\nexports.UTF16_GENERAL_CI = 54;\nexports.UTF16_BIN = 55;\nexports.UTF16LE_GENERAL_CI = 56;\nexports.CP1256_GENERAL_CI = 57;\nexports.CP1257_BIN = 58;\nexports.CP1257_GENERAL_CI = 59;\nexports.UTF32_GENERAL_CI = 60;\nexports.UTF32_BIN = 61;\nexports.UTF16LE_BIN = 62;\nexports.BINARY = 63;\nexports.ARMSCII8_BIN = 64;\nexports.ASCII_BIN = 65;\nexports.CP1250_BIN = 66;\nexports.CP1256_BIN = 67;\nexports.CP866_BIN = 68;\nexports.DEC8_BIN = 69;\nexports.GREEK_BIN = 70;\nexports.HEBREW_BIN = 71;\nexports.HP8_BIN = 72;\nexports.KEYBCS2_BIN = 73;\nexports.KOI8R_BIN = 74;\nexports.KOI8U_BIN = 75;\nexports.UTF8_TOLOWER_CI = 76;\nexports.LATIN2_BIN = 77;\nexports.LATIN5_BIN = 78;\nexports.LATIN7_BIN = 79;\nexports.CP850_BIN = 80;\nexports.CP852_BIN = 81;\nexports.SWE7_BIN = 82;\nexports.UTF8_BIN = 83;\nexports.BIG5_BIN = 84;\nexports.EUCKR_BIN = 85;\nexports.GB2312_BIN = 86;\nexports.GBK_BIN = 87;\nexports.SJIS_BIN = 88;\nexports.TIS620_BIN = 89;\nexports.UCS2_BIN = 90;\nexports.UJIS_BIN = 91;\nexports.GEOSTD8_GENERAL_CI = 92;\nexports.GEOSTD8_BIN = 93;\nexports.LATIN1_SPANISH_CI = 94;\nexports.CP932_JAPANESE_CI = 95;\nexports.CP932_BIN = 96;\nexports.EUCJPMS_JAPANESE_CI = 97;\nexports.EUCJPMS_BIN = 98;\nexports.CP1250_POLISH_CI = 99;\nexports.UTF16_UNICODE_CI = 101;\nexports.UTF16_ICELANDIC_CI = 102;\nexports.UTF16_LATVIAN_CI = 103;\nexports.UTF16_ROMANIAN_CI = 104;\nexports.UTF16_SLOVENIAN_CI = 105;\nexports.UTF16_POLISH_CI = 106;\nexports.UTF16_ESTONIAN_CI = 107;\nexports.UTF16_SPANISH_CI = 108;\nexports.UTF16_SWEDISH_CI = 109;\nexports.UTF16_TURKISH_CI = 110;\nexports.UTF16_CZECH_CI = 111;\nexports.UTF16_DANISH_CI = 112;\nexports.UTF16_LITHUANIAN_CI = 113;\nexports.UTF16_SLOVAK_CI = 114;\nexports.UTF16_SPANISH2_CI = 115;\nexports.UTF16_ROMAN_CI = 116;\nexports.UTF16_PERSIAN_CI = 117;\nexports.UTF16_ESPERANTO_CI = 118;\nexports.UTF16_HUNGARIAN_CI = 119;\nexports.UTF16_SINHALA_CI = 120;\nexports.UTF16_GERMAN2_CI = 121;\nexports.UTF16_CROATIAN_CI = 122;\nexports.UTF16_UNICODE_520_CI = 123;\nexports.UTF16_VIETNAMESE_CI = 124;\nexports.UCS2_UNICODE_CI = 128;\nexports.UCS2_ICELANDIC_CI = 129;\nexports.UCS2_LATVIAN_CI = 130;\nexports.UCS2_ROMANIAN_CI = 131;\nexports.UCS2_SLOVENIAN_CI = 132;\nexports.UCS2_POLISH_CI = 133;\nexports.UCS2_ESTONIAN_CI = 134;\nexports.UCS2_SPANISH_CI = 135;\nexports.UCS2_SWEDISH_CI = 136;\nexports.UCS2_TURKISH_CI = 137;\nexports.UCS2_CZECH_CI = 138;\nexports.UCS2_DANISH_CI = 139;\nexports.UCS2_LITHUANIAN_CI = 140;\nexports.UCS2_SLOVAK_CI = 141;\nexports.UCS2_SPANISH2_CI = 142;\nexports.UCS2_ROMAN_CI = 143;\nexports.UCS2_PERSIAN_CI = 144;\nexports.UCS2_ESPERANTO_CI = 145;\nexports.UCS2_HUNGARIAN_CI = 146;\nexports.UCS2_SINHALA_CI = 147;\nexports.UCS2_GERMAN2_CI = 148;\nexports.UCS2_CROATIAN_CI = 149;\nexports.UCS2_UNICODE_520_CI = 150;\nexports.UCS2_VIETNAMESE_CI = 151;\nexports.UCS2_GENERAL_MYSQL500_CI = 159;\nexports.UTF32_UNICODE_CI = 160;\nexports.UTF32_ICELANDIC_CI = 161;\nexports.UTF32_LATVIAN_CI = 162;\nexports.UTF32_ROMANIAN_CI = 163;\nexports.UTF32_SLOVENIAN_CI = 164;\nexports.UTF32_POLISH_CI = 165;\nexports.UTF32_ESTONIAN_CI = 166;\nexports.UTF32_SPANISH_CI = 167;\nexports.UTF32_SWEDISH_CI = 168;\nexports.UTF32_TURKISH_CI = 169;\nexports.UTF32_CZECH_CI = 170;\nexports.UTF32_DANISH_CI = 171;\nexports.UTF32_LITHUANIAN_CI = 172;\nexports.UTF32_SLOVAK_CI = 173;\nexports.UTF32_SPANISH2_CI = 174;\nexports.UTF32_ROMAN_CI = 175;\nexports.UTF32_PERSIAN_CI = 176;\nexports.UTF32_ESPERANTO_CI = 177;\nexports.UTF32_HUNGARIAN_CI = 178;\nexports.UTF32_SINHALA_CI = 179;\nexports.UTF32_GERMAN2_CI = 180;\nexports.UTF32_CROATIAN_CI = 181;\nexports.UTF32_UNICODE_520_CI = 182;\nexports.UTF32_VIETNAMESE_CI = 183;\nexports.UTF8_UNICODE_CI = 192;\nexports.UTF8_ICELANDIC_CI = 193;\nexports.UTF8_LATVIAN_CI = 194;\nexports.UTF8_ROMANIAN_CI = 195;\nexports.UTF8_SLOVENIAN_CI = 196;\nexports.UTF8_POLISH_CI = 197;\nexports.UTF8_ESTONIAN_CI = 198;\nexports.UTF8_SPANISH_CI = 199;\nexports.UTF8_SWEDISH_CI = 200;\nexports.UTF8_TURKISH_CI = 201;\nexports.UTF8_CZECH_CI = 202;\nexports.UTF8_DANISH_CI = 203;\nexports.UTF8_LITHUANIAN_CI = 204;\nexports.UTF8_SLOVAK_CI = 205;\nexports.UTF8_SPANISH2_CI = 206;\nexports.UTF8_ROMAN_CI = 207;\nexports.UTF8_PERSIAN_CI = 208;\nexports.UTF8_ESPERANTO_CI = 209;\nexports.UTF8_HUNGARIAN_CI = 210;\nexports.UTF8_SINHALA_CI = 211;\nexports.UTF8_GERMAN2_CI = 212;\nexports.UTF8_CROATIAN_CI = 213;\nexports.UTF8_UNICODE_520_CI = 214;\nexports.UTF8_VIETNAMESE_CI = 215;\nexports.UTF8_GENERAL_MYSQL500_CI = 223;\nexports.UTF8MB4_UNICODE_CI = 224;\nexports.UTF8MB4_ICELANDIC_CI = 225;\nexports.UTF8MB4_LATVIAN_CI = 226;\nexports.UTF8MB4_ROMANIAN_CI = 227;\nexports.UTF8MB4_SLOVENIAN_CI = 228;\nexports.UTF8MB4_POLISH_CI = 229;\nexports.UTF8MB4_ESTONIAN_CI = 230;\nexports.UTF8MB4_SPANISH_CI = 231;\nexports.UTF8MB4_SWEDISH_CI = 232;\nexports.UTF8MB4_TURKISH_CI = 233;\nexports.UTF8MB4_CZECH_CI = 234;\nexports.UTF8MB4_DANISH_CI = 235;\nexports.UTF8MB4_LITHUANIAN_CI = 236;\nexports.UTF8MB4_SLOVAK_CI = 237;\nexports.UTF8MB4_SPANISH2_CI = 238;\nexports.UTF8MB4_ROMAN_CI = 239;\nexports.UTF8MB4_PERSIAN_CI = 240;\nexports.UTF8MB4_ESPERANTO_CI = 241;\nexports.UTF8MB4_HUNGARIAN_CI = 242;\nexports.UTF8MB4_SINHALA_CI = 243;\nexports.UTF8MB4_GERMAN2_CI = 244;\nexports.UTF8MB4_CROATIAN_CI = 245;\nexports.UTF8MB4_UNICODE_520_CI = 246;\nexports.UTF8MB4_VIETNAMESE_CI = 247;\nexports.GB18030_CHINESE_CI = 248;\nexports.GB18030_BIN = 249;\nexports.GB18030_UNICODE_520_CI = 250;\nexports.UTF8_GENERAL50_CI = 253;\nexports.UTF8MB4_0900_AI_CI = 255;\nexports.UTF8MB4_CS_0900_AI_CI = 266;\nexports.UTF8MB4_DA_0900_AI_CI = 267;\nexports.UTF8MB4_DE_PB_0900_AI_CI = 256;\nexports.UTF8MB4_EO_0900_AI_CI = 273;\nexports.UTF8MB4_ES_0900_AI_CI = 263;\nexports.UTF8MB4_ES_TRAD_0900_AI_CI = 270;\nexports.UTF8MB4_ET_0900_AI_CI = 262;\nexports.UTF8MB4_HR_0900_AI_CI = 275;\nexports.UTF8MB4_HU_0900_AI_CI = 274;\nexports.UTF8MB4_IS_0900_AI_CI = 257;\nexports.UTF8MB4_LA_0900_AI_CI = 271;\nexports.UTF8MB4_LT_0900_AI_CI = 268;\nexports.UTF8MB4_LV_0900_AI_CI = 258;\nexports.UTF8MB4_PL_0900_AI_CI = 261;\nexports.UTF8MB4_RO_0900_AI_CI = 259;\nexports.UTF8MB4_SK_0900_AI_CI = 269;\nexports.UTF8MB4_SL_0900_AI_CI = 260;\nexports.UTF8MB4_SV_0900_AI_CI = 264;\nexports.UTF8MB4_TR_0900_AI_CI = 265;\nexports.UTF8MB4_VI_0900_AI_CI = 277;\n\n// short aliases\nexports.BIG5 = exports.BIG5_CHINESE_CI;\nexports.DEC8 = exports.DEC8_SWEDISH_CI;\nexports.CP850 = exports.CP850_GENERAL_CI;\nexports.HP8 = exports.HP8_ENGLISH_CI;\nexports.KOI8R = exports.KOI8R_GENERAL_CI;\nexports.LATIN1 = exports.LATIN1_SWEDISH_CI;\nexports.LATIN2 = exports.LATIN2_GENERAL_CI;\nexports.SWE7 = exports.SWE7_SWEDISH_CI;\nexports.ASCII = exports.ASCII_GENERAL_CI;\nexports.UJIS = exports.UJIS_JAPANESE_CI;\nexports.SJIS = exports.SJIS_JAPANESE_CI;\nexports.HEBREW = exports.HEBREW_GENERAL_CI;\nexports.TIS620 = exports.TIS620_THAI_CI;\nexports.EUCKR = exports.EUCKR_KOREAN_CI;\nexports.KOI8U = exports.KOI8U_GENERAL_CI;\nexports.GB2312 = exports.GB2312_CHINESE_CI;\nexports.GREEK = exports.GREEK_GENERAL_CI;\nexports.CP1250 = exports.CP1250_GENERAL_CI;\nexports.GBK = exports.GBK_CHINESE_CI;\nexports.LATIN5 = exports.LATIN5_TURKISH_CI;\nexports.ARMSCII8 = exports.ARMSCII8_GENERAL_CI;\nexports.UTF8 = exports.UTF8_GENERAL_CI;\nexports.UCS2 = exports.UCS2_GENERAL_CI;\nexports.CP866 = exports.CP866_GENERAL_CI;\nexports.KEYBCS2 = exports.KEYBCS2_GENERAL_CI;\nexports.MACCE = exports.MACCE_GENERAL_CI;\nexports.MACROMAN = exports.MACROMAN_GENERAL_CI;\nexports.CP852 = exports.CP852_GENERAL_CI;\nexports.LATIN7 = exports.LATIN7_GENERAL_CI;\nexports.UTF8MB4 = exports.UTF8MB4_GENERAL_CI;\nexports.CP1251 = exports.CP1251_GENERAL_CI;\nexports.UTF16 = exports.UTF16_GENERAL_CI;\nexports.UTF16LE = exports.UTF16LE_GENERAL_CI;\nexports.CP1256 = exports.CP1256_GENERAL_CI;\nexports.CP1257 = exports.CP1257_GENERAL_CI;\nexports.UTF32 = exports.UTF32_GENERAL_CI;\nexports.CP932 = exports.CP932_JAPANESE_CI;\nexports.EUCJPMS = exports.EUCJPMS_JAPANESE_CI;\nexports.GB18030 = exports.GB18030_CHINESE_CI;\nexports.GEOSTD8 = exports.GEOSTD8_GENERAL_CI;\n","'use strict';\n\nconst { URL } = require('url');\nconst ClientConstants = require('./constants/client');\nconst Charsets = require('./constants/charsets');\nlet SSLProfiles = null;\n\nconst validOptions = {\n authPlugins: 1,\n authSwitchHandler: 1,\n bigNumberStrings: 1,\n charset: 1,\n charsetNumber: 1,\n compress: 1,\n connectAttributes: 1,\n connectTimeout: 1,\n database: 1,\n dateStrings: 1,\n debug: 1,\n decimalNumbers: 1,\n enableKeepAlive: 1,\n flags: 1,\n host: 1,\n insecureAuth: 1,\n isServer: 1,\n keepAliveInitialDelay: 1,\n localAddress: 1,\n maxPreparedStatements: 1,\n multipleStatements: 1,\n namedPlaceholders: 1,\n nestTables: 1,\n password: 1,\n passwordSha1: 1,\n pool: 1,\n port: 1,\n queryFormat: 1,\n rowsAsArray: 1,\n socketPath: 1,\n ssl: 1,\n stream: 1,\n stringifyObjects: 1,\n supportBigNumbers: 1,\n timezone: 1,\n trace: 1,\n typeCast: 1,\n uri: 1,\n user: 1,\n // These options are used for Pool\n connectionLimit: 1,\n Promise: 1,\n queueLimit: 1,\n waitForConnections: 1\n};\n\nclass ConnectionConfig {\n constructor(options) {\n if (typeof options === 'string') {\n options = ConnectionConfig.parseUrl(options);\n } else if (options && options.uri) {\n const uriOptions = ConnectionConfig.parseUrl(options.uri);\n for (const key in uriOptions) {\n if (!Object.prototype.hasOwnProperty.call(uriOptions, key)) continue;\n if (options[key]) continue;\n options[key] = uriOptions[key];\n }\n }\n for (const key in options) {\n if (!Object.prototype.hasOwnProperty.call(options, key)) continue;\n if (validOptions[key] !== 1) {\n // REVIEW: Should this be emitted somehow?\n // eslint-disable-next-line no-console\n console.error(\n `Ignoring invalid configuration option passed to Connection: ${key}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`\n );\n }\n }\n this.isServer = options.isServer;\n this.stream = options.stream;\n this.host = options.host || 'localhost';\n this.port = options.port || 3306;\n this.localAddress = options.localAddress;\n this.socketPath = options.socketPath;\n this.user = options.user || undefined;\n this.password = options.password || undefined;\n this.passwordSha1 = options.passwordSha1 || undefined;\n this.database = options.database;\n this.connectTimeout = isNaN(options.connectTimeout)\n ? 10 * 1000\n : options.connectTimeout;\n this.insecureAuth = options.insecureAuth || false;\n this.supportBigNumbers = options.supportBigNumbers || false;\n this.bigNumberStrings = options.bigNumberStrings || false;\n this.decimalNumbers = options.decimalNumbers || false;\n this.dateStrings = options.dateStrings || false;\n this.debug = options.debug;\n this.trace = options.trace !== false;\n this.stringifyObjects = options.stringifyObjects || false;\n this.enableKeepAlive = !!options.enableKeepAlive;\n this.keepAliveInitialDelay = options.keepAliveInitialDelay || 0;\n if (\n options.timezone &&\n !/^(?:local|Z|[ +-]\\d\\d:\\d\\d)$/.test(options.timezone)\n ) {\n // strictly supports timezones specified by mysqljs/mysql:\n // https://github.com/mysqljs/mysql#user-content-connection-options\n // eslint-disable-next-line no-console\n console.error(\n `Ignoring invalid timezone passed to Connection: ${options.timezone}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`\n );\n // SqlStrings falls back to UTC on invalid timezone\n this.timezone = 'Z';\n } else {\n this.timezone = options.timezone || 'local';\n }\n this.queryFormat = options.queryFormat;\n this.pool = options.pool || undefined;\n this.ssl =\n typeof options.ssl === 'string'\n ? ConnectionConfig.getSSLProfile(options.ssl)\n : options.ssl || false;\n this.multipleStatements = options.multipleStatements || false;\n this.rowsAsArray = options.rowsAsArray || false;\n this.namedPlaceholders = options.namedPlaceholders || false;\n this.nestTables =\n options.nestTables === undefined ? undefined : options.nestTables;\n this.typeCast = options.typeCast === undefined ? true : options.typeCast;\n if (this.timezone[0] === ' ') {\n // \"+\" is a url encoded char for space so it\n // gets translated to space when giving a\n // connection string..\n this.timezone = `+${this.timezone.substr(1)}`;\n }\n if (this.ssl) {\n if (typeof this.ssl !== 'object') {\n throw new TypeError(\n `SSL profile must be an object, instead it's a ${typeof this.ssl}`\n );\n }\n // Default rejectUnauthorized to true\n this.ssl.rejectUnauthorized = this.ssl.rejectUnauthorized !== false;\n }\n this.maxPacketSize = 0;\n this.charsetNumber = options.charset\n ? ConnectionConfig.getCharsetNumber(options.charset)\n : options.charsetNumber || Charsets.UTF8MB4_UNICODE_CI;\n this.compress = options.compress || false;\n this.authPlugins = options.authPlugins;\n this.authSwitchHandler = options.authSwitchHandler;\n this.clientFlags = ConnectionConfig.mergeFlags(\n ConnectionConfig.getDefaultFlags(options),\n options.flags || ''\n );\n this.connectAttributes = options.connectAttributes;\n this.maxPreparedStatements = options.maxPreparedStatements || 16000;\n }\n\n static mergeFlags(default_flags, user_flags) {\n let flags = 0x0,\n i;\n if (!Array.isArray(user_flags)) {\n user_flags = String(user_flags || '')\n .toUpperCase()\n .split(/\\s*,+\\s*/);\n }\n // add default flags unless \"blacklisted\"\n for (i in default_flags) {\n if (user_flags.indexOf(`-${default_flags[i]}`) >= 0) {\n continue;\n }\n flags |= ClientConstants[default_flags[i]] || 0x0;\n }\n // add user flags unless already already added\n for (i in user_flags) {\n if (user_flags[i][0] === '-') {\n continue;\n }\n if (default_flags.indexOf(user_flags[i]) >= 0) {\n continue;\n }\n flags |= ClientConstants[user_flags[i]] || 0x0;\n }\n return flags;\n }\n\n static getDefaultFlags(options) {\n const defaultFlags = [\n 'LONG_PASSWORD',\n 'FOUND_ROWS',\n 'LONG_FLAG',\n 'CONNECT_WITH_DB',\n 'ODBC',\n 'LOCAL_FILES',\n 'IGNORE_SPACE',\n 'PROTOCOL_41',\n 'IGNORE_SIGPIPE',\n 'TRANSACTIONS',\n 'RESERVED',\n 'SECURE_CONNECTION',\n 'MULTI_RESULTS',\n 'TRANSACTIONS',\n 'SESSION_TRACK'\n ];\n if (options && options.multipleStatements) {\n defaultFlags.push('MULTI_STATEMENTS');\n }\n defaultFlags.push('PLUGIN_AUTH');\n defaultFlags.push('PLUGIN_AUTH_LENENC_CLIENT_DATA');\n\n if (options && options.connectAttributes) {\n defaultFlags.push('CONNECT_ATTRS');\n }\n return defaultFlags;\n }\n\n static getCharsetNumber(charset) {\n const num = Charsets[charset.toUpperCase()];\n if (num === undefined) {\n throw new TypeError(`Unknown charset '${charset}'`);\n }\n return num;\n }\n\n static getSSLProfile(name) {\n if (!SSLProfiles) {\n SSLProfiles = require('./constants/ssl_profiles.js');\n }\n const ssl = SSLProfiles[name];\n if (ssl === undefined) {\n throw new TypeError(`Unknown SSL profile '${name}'`);\n }\n return ssl;\n }\n\n static parseUrl(url) {\n const parsedUrl = new URL(url);\n const options = {\n host: parsedUrl.hostname,\n port: parsedUrl.port,\n database: parsedUrl.pathname.substr(1),\n user: parsedUrl.username,\n password: parsedUrl.password\n };\n parsedUrl.searchParams.forEach((value, key) => {\n try {\n // Try to parse this as a JSON expression first\n options[key] = JSON.parse(value);\n } catch (err) {\n // Otherwise assume it is a plain string\n options[key] = value;\n }\n });\n return options;\n }\n}\n\nmodule.exports = ConnectionConfig;\n","'use strict';\n\nconst colors = require('colors/safe');\nconst { LEVEL, MESSAGE } = require('triple-beam');\n\n//\n// Fix colors not appearing in non-tty environments\n//\ncolors.enabled = true;\n\n/**\n * @property {RegExp} hasSpace\n * Simple regex to check for presence of spaces.\n */\nconst hasSpace = /\\s+/;\n\n/*\n * Colorizer format. Wraps the `level` and/or `message` properties\n * of the `info` objects with ANSI color codes based on a few options.\n */\nclass Colorizer {\n constructor(opts = {}) {\n if (opts.colors) {\n this.addColors(opts.colors);\n }\n\n this.options = opts;\n }\n\n /*\n * Adds the colors Object to the set of allColors\n * known by the Colorizer\n *\n * @param {Object} colors Set of color mappings to add.\n */\n static addColors(clrs) {\n const nextColors = Object.keys(clrs).reduce((acc, level) => {\n acc[level] = hasSpace.test(clrs[level])\n ? clrs[level].split(hasSpace)\n : clrs[level];\n\n return acc;\n }, {});\n\n Colorizer.allColors = Object.assign({}, Colorizer.allColors || {}, nextColors);\n return Colorizer.allColors;\n }\n\n /*\n * Adds the colors Object to the set of allColors\n * known by the Colorizer\n *\n * @param {Object} colors Set of color mappings to add.\n */\n addColors(clrs) {\n return Colorizer.addColors(clrs);\n }\n\n /*\n * function colorize (lookup, level, message)\n * Performs multi-step colorization using colors/safe\n */\n colorize(lookup, level, message) {\n if (typeof message === 'undefined') {\n message = level;\n }\n\n //\n // If the color for the level is just a string\n // then attempt to colorize the message with it.\n //\n if (!Array.isArray(Colorizer.allColors[lookup])) {\n return colors[Colorizer.allColors[lookup]](message);\n }\n\n //\n // If it is an Array then iterate over that Array, applying\n // the colors function for each item.\n //\n for (let i = 0, len = Colorizer.allColors[lookup].length; i < len; i++) {\n message = colors[Colorizer.allColors[lookup][i]](message);\n }\n\n return message;\n }\n\n /*\n * function transform (info, opts)\n * Attempts to colorize the { level, message } of the given\n * `logform` info object.\n */\n transform(info, opts) {\n if (opts.all && typeof info[MESSAGE] === 'string') {\n info[MESSAGE] = this.colorize(info[LEVEL], info.level, info[MESSAGE]);\n }\n\n if (opts.level || opts.all || !opts.message) {\n info.level = this.colorize(info[LEVEL], info.level);\n }\n\n if (opts.all || opts.message) {\n info.message = this.colorize(info[LEVEL], info.level, info.message);\n }\n\n return info;\n }\n}\n\n/*\n * function colorize (info)\n * Returns a new instance of the colorize Format that applies\n * level colors to `info` objects. This was previously exposed\n * as { colorize: true } to transports in `winston < 3.0.0`.\n */\nmodule.exports = opts => new Colorizer(opts);\n\n//\n// Attach the Colorizer for registration purposes\n//\nmodule.exports.Colorizer\n = module.exports.Format\n = Colorizer;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","//\n// Select the correct build version depending on the environment.\n//\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./production.js');\n} else {\n module.exports = require('./development.js');\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n'use strict';\n/**/\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n\n for (var key in obj) {\n keys.push(key);\n }\n\n return keys;\n};\n/**/\n\n\nmodule.exports = Duplex;\n\nvar Readable = require('./_stream_readable');\n\nvar Writable = require('./_stream_writable');\n\nrequire('inherits')(Duplex, Readable);\n\n{\n // Allow the keys array to be GC'ed.\n var keys = objectKeys(Writable.prototype);\n\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n this.allowHalfOpen = true;\n\n if (options) {\n if (options.readable === false) this.readable = false;\n if (options.writable === false) this.writable = false;\n\n if (options.allowHalfOpen === false) {\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n }\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n}); // the no-half-open enforcer\n\nfunction onend() {\n // If the writable side ended, then we're ok.\n if (this._writableState.ended) return; // no more data can be written.\n // But allow more writes to happen in this tick.\n\n process.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});","/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n","var defaultFunctionName = '';\n/**\n * Safely extract function name from itself\n */\nexport function getFunctionName(fn) {\n try {\n if (!fn || typeof fn !== 'function') {\n return defaultFunctionName;\n }\n return fn.name || defaultFunctionName;\n }\n catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n return defaultFunctionName;\n }\n}\n//# sourceMappingURL=stacktrace.js.map","import { __assign, __read, __spread } from \"tslib\";\nimport { dateTimestampInSeconds, getGlobalObject, isPlainObject, isThenable, SyncPromise } from '@sentry/utils';\n/**\n * Absolute maximum number of breadcrumbs added to an event.\n * The `maxBreadcrumbs` option cannot be higher than this value.\n */\nvar MAX_BREADCRUMBS = 100;\n/**\n * Holds additional event information. {@link Scope.applyToEvent} will be\n * called by the client before an event will be sent.\n */\nvar Scope = /** @class */ (function () {\n function Scope() {\n /** Flag if notifying is happening. */\n this._notifyingListeners = false;\n /** Callback for client to receive scope changes. */\n this._scopeListeners = [];\n /** Callback list that will be called after {@link applyToEvent}. */\n this._eventProcessors = [];\n /** Array of breadcrumbs. */\n this._breadcrumbs = [];\n /** User */\n this._user = {};\n /** Tags */\n this._tags = {};\n /** Extra */\n this._extra = {};\n /** Contexts */\n this._contexts = {};\n }\n /**\n * Inherit values from the parent scope.\n * @param scope to clone.\n */\n Scope.clone = function (scope) {\n var newScope = new Scope();\n if (scope) {\n newScope._breadcrumbs = __spread(scope._breadcrumbs);\n newScope._tags = __assign({}, scope._tags);\n newScope._extra = __assign({}, scope._extra);\n newScope._contexts = __assign({}, scope._contexts);\n newScope._user = scope._user;\n newScope._level = scope._level;\n newScope._span = scope._span;\n newScope._session = scope._session;\n newScope._transactionName = scope._transactionName;\n newScope._fingerprint = scope._fingerprint;\n newScope._eventProcessors = __spread(scope._eventProcessors);\n newScope._requestSession = scope._requestSession;\n }\n return newScope;\n };\n /**\n * Add internal on change listener. Used for sub SDKs that need to store the scope.\n * @hidden\n */\n Scope.prototype.addScopeListener = function (callback) {\n this._scopeListeners.push(callback);\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.addEventProcessor = function (callback) {\n this._eventProcessors.push(callback);\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setUser = function (user) {\n this._user = user || {};\n if (this._session) {\n this._session.update({ user: user });\n }\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getUser = function () {\n return this._user;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getRequestSession = function () {\n return this._requestSession;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setRequestSession = function (requestSession) {\n this._requestSession = requestSession;\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setTags = function (tags) {\n this._tags = __assign(__assign({}, this._tags), tags);\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setTag = function (key, value) {\n var _a;\n this._tags = __assign(__assign({}, this._tags), (_a = {}, _a[key] = value, _a));\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setExtras = function (extras) {\n this._extra = __assign(__assign({}, this._extra), extras);\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setExtra = function (key, extra) {\n var _a;\n this._extra = __assign(__assign({}, this._extra), (_a = {}, _a[key] = extra, _a));\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setFingerprint = function (fingerprint) {\n this._fingerprint = fingerprint;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setLevel = function (level) {\n this._level = level;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setTransactionName = function (name) {\n this._transactionName = name;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * Can be removed in major version.\n * @deprecated in favor of {@link this.setTransactionName}\n */\n Scope.prototype.setTransaction = function (name) {\n return this.setTransactionName(name);\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setContext = function (key, context) {\n var _a;\n if (context === null) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._contexts[key];\n }\n else {\n this._contexts = __assign(__assign({}, this._contexts), (_a = {}, _a[key] = context, _a));\n }\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setSpan = function (span) {\n this._span = span;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getSpan = function () {\n return this._span;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getTransaction = function () {\n var _a, _b, _c, _d;\n // often, this span will be a transaction, but it's not guaranteed to be\n var span = this.getSpan();\n // try it the new way first\n if ((_a = span) === null || _a === void 0 ? void 0 : _a.transaction) {\n return (_b = span) === null || _b === void 0 ? void 0 : _b.transaction;\n }\n // fallback to the old way (known bug: this only finds transactions with sampled = true)\n if ((_d = (_c = span) === null || _c === void 0 ? void 0 : _c.spanRecorder) === null || _d === void 0 ? void 0 : _d.spans[0]) {\n return span.spanRecorder.spans[0];\n }\n // neither way found a transaction\n return undefined;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setSession = function (session) {\n if (!session) {\n delete this._session;\n }\n else {\n this._session = session;\n }\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getSession = function () {\n return this._session;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.update = function (captureContext) {\n if (!captureContext) {\n return this;\n }\n if (typeof captureContext === 'function') {\n var updatedScope = captureContext(this);\n return updatedScope instanceof Scope ? updatedScope : this;\n }\n if (captureContext instanceof Scope) {\n this._tags = __assign(__assign({}, this._tags), captureContext._tags);\n this._extra = __assign(__assign({}, this._extra), captureContext._extra);\n this._contexts = __assign(__assign({}, this._contexts), captureContext._contexts);\n if (captureContext._user && Object.keys(captureContext._user).length) {\n this._user = captureContext._user;\n }\n if (captureContext._level) {\n this._level = captureContext._level;\n }\n if (captureContext._fingerprint) {\n this._fingerprint = captureContext._fingerprint;\n }\n if (captureContext._requestSession) {\n this._requestSession = captureContext._requestSession;\n }\n }\n else if (isPlainObject(captureContext)) {\n // eslint-disable-next-line no-param-reassign\n captureContext = captureContext;\n this._tags = __assign(__assign({}, this._tags), captureContext.tags);\n this._extra = __assign(__assign({}, this._extra), captureContext.extra);\n this._contexts = __assign(__assign({}, this._contexts), captureContext.contexts);\n if (captureContext.user) {\n this._user = captureContext.user;\n }\n if (captureContext.level) {\n this._level = captureContext.level;\n }\n if (captureContext.fingerprint) {\n this._fingerprint = captureContext.fingerprint;\n }\n if (captureContext.requestSession) {\n this._requestSession = captureContext.requestSession;\n }\n }\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.clear = function () {\n this._breadcrumbs = [];\n this._tags = {};\n this._extra = {};\n this._user = {};\n this._contexts = {};\n this._level = undefined;\n this._transactionName = undefined;\n this._fingerprint = undefined;\n this._requestSession = undefined;\n this._span = undefined;\n this._session = undefined;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.addBreadcrumb = function (breadcrumb, maxBreadcrumbs) {\n var maxCrumbs = typeof maxBreadcrumbs === 'number' ? Math.min(maxBreadcrumbs, MAX_BREADCRUMBS) : MAX_BREADCRUMBS;\n // No data has been changed, so don't notify scope listeners\n if (maxCrumbs <= 0) {\n return this;\n }\n var mergedBreadcrumb = __assign({ timestamp: dateTimestampInSeconds() }, breadcrumb);\n this._breadcrumbs = __spread(this._breadcrumbs, [mergedBreadcrumb]).slice(-maxCrumbs);\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.clearBreadcrumbs = function () {\n this._breadcrumbs = [];\n this._notifyScopeListeners();\n return this;\n };\n /**\n * Applies the current context and fingerprint to the event.\n * Note that breadcrumbs will be added by the client.\n * Also if the event has already breadcrumbs on it, we do not merge them.\n * @param event Event\n * @param hint May contain additional information about the original exception.\n * @hidden\n */\n Scope.prototype.applyToEvent = function (event, hint) {\n var _a;\n if (this._extra && Object.keys(this._extra).length) {\n event.extra = __assign(__assign({}, this._extra), event.extra);\n }\n if (this._tags && Object.keys(this._tags).length) {\n event.tags = __assign(__assign({}, this._tags), event.tags);\n }\n if (this._user && Object.keys(this._user).length) {\n event.user = __assign(__assign({}, this._user), event.user);\n }\n if (this._contexts && Object.keys(this._contexts).length) {\n event.contexts = __assign(__assign({}, this._contexts), event.contexts);\n }\n if (this._level) {\n event.level = this._level;\n }\n if (this._transactionName) {\n event.transaction = this._transactionName;\n }\n // We want to set the trace context for normal events only if there isn't already\n // a trace context on the event. There is a product feature in place where we link\n // errors with transaction and it relies on that.\n if (this._span) {\n event.contexts = __assign({ trace: this._span.getTraceContext() }, event.contexts);\n var transactionName = (_a = this._span.transaction) === null || _a === void 0 ? void 0 : _a.name;\n if (transactionName) {\n event.tags = __assign({ transaction: transactionName }, event.tags);\n }\n }\n this._applyFingerprint(event);\n event.breadcrumbs = __spread((event.breadcrumbs || []), this._breadcrumbs);\n event.breadcrumbs = event.breadcrumbs.length > 0 ? event.breadcrumbs : undefined;\n return this._notifyEventProcessors(__spread(getGlobalEventProcessors(), this._eventProcessors), event, hint);\n };\n /**\n * This will be called after {@link applyToEvent} is finished.\n */\n Scope.prototype._notifyEventProcessors = function (processors, event, hint, index) {\n var _this = this;\n if (index === void 0) { index = 0; }\n return new SyncPromise(function (resolve, reject) {\n var processor = processors[index];\n if (event === null || typeof processor !== 'function') {\n resolve(event);\n }\n else {\n var result = processor(__assign({}, event), hint);\n if (isThenable(result)) {\n void result\n .then(function (final) { return _this._notifyEventProcessors(processors, final, hint, index + 1).then(resolve); })\n .then(null, reject);\n }\n else {\n void _this._notifyEventProcessors(processors, result, hint, index + 1)\n .then(resolve)\n .then(null, reject);\n }\n }\n });\n };\n /**\n * This will be called on every set call.\n */\n Scope.prototype._notifyScopeListeners = function () {\n var _this = this;\n // We need this check for this._notifyingListeners to be able to work on scope during updates\n // If this check is not here we'll produce endless recursion when something is done with the scope\n // during the callback.\n if (!this._notifyingListeners) {\n this._notifyingListeners = true;\n this._scopeListeners.forEach(function (callback) {\n callback(_this);\n });\n this._notifyingListeners = false;\n }\n };\n /**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\n Scope.prototype._applyFingerprint = function (event) {\n // Make sure it's an array first and we actually have something in place\n event.fingerprint = event.fingerprint\n ? Array.isArray(event.fingerprint)\n ? event.fingerprint\n : [event.fingerprint]\n : [];\n // If we have something on the scope, then merge it with event\n if (this._fingerprint) {\n event.fingerprint = event.fingerprint.concat(this._fingerprint);\n }\n // If we have no data at all, remove empty array default\n if (event.fingerprint && !event.fingerprint.length) {\n delete event.fingerprint;\n }\n };\n return Scope;\n}());\nexport { Scope };\n/**\n * Returns the global event processors.\n */\nfunction getGlobalEventProcessors() {\n /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */\n var global = getGlobalObject();\n global.__SENTRY__ = global.__SENTRY__ || {};\n global.__SENTRY__.globalEventProcessors = global.__SENTRY__.globalEventProcessors || [];\n return global.__SENTRY__.globalEventProcessors;\n /* eslint-enable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */\n}\n/**\n * Add a EventProcessor to be kept globally.\n * @param callback EventProcessor to add\n */\nexport function addGlobalEventProcessor(callback) {\n getGlobalEventProcessors().push(callback);\n}\n//# sourceMappingURL=scope.js.map","export var TransactionSamplingMethod;\n(function (TransactionSamplingMethod) {\n TransactionSamplingMethod[\"Explicit\"] = \"explicitly_set\";\n TransactionSamplingMethod[\"Sampler\"] = \"client_sampler\";\n TransactionSamplingMethod[\"Rate\"] = \"client_rate\";\n TransactionSamplingMethod[\"Inheritance\"] = \"inheritance\";\n})(TransactionSamplingMethod || (TransactionSamplingMethod = {}));\n//# sourceMappingURL=transaction.js.map","module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","// Setup and export config loaded at runtime\nimport { ResourceConfig } from '../../typings/config';\n\nexport const config = (() => {\n let config: ResourceConfig = JSON.parse(\n LoadResourceFile(GetCurrentResourceName(), 'config.json'),\n );\n\n let database = GetConvar('npwd:database', '') as string;\n if (database !== '') {\n database = JSON.parse(database) as any;\n Object.entries(config.database).forEach(([key, value]) => {\n // @ts-ignore\n if (database[key] && typeof value === typeof database[key]) {\n // @ts-ignore\n config.database[key] = database[key];\n }\n });\n }\n\n if (GetConvar('npwd:useResourceIntegration', '') == 'true') {\n config.general.useResourceIntegration = true;\n }\n\n return config;\n})();\n","'use strict';\n\nconst SqlString = require('sqlstring');\n\nconst Connection = require('./lib/connection.js');\nconst ConnectionConfig = require('./lib/connection_config.js');\nconst parserCache = require('./lib/parsers/parser_cache');\n\nexports.createConnection = function(opts) {\n return new Connection({ config: new ConnectionConfig(opts) });\n};\n\nexports.connect = exports.createConnection;\nexports.Connection = Connection;\n\nconst Pool = require('./lib/pool.js');\nconst PoolCluster = require('./lib/pool_cluster.js');\n\nexports.createPool = function(config) {\n const PoolConfig = require('./lib/pool_config.js');\n return new Pool({ config: new PoolConfig(config) });\n};\n\nexports.createPoolCluster = function(config) {\n const PoolCluster = require('./lib/pool_cluster.js');\n return new PoolCluster(config);\n};\n\nexports.createQuery = Connection.createQuery;\n\nexports.Pool = Pool;\n\nexports.PoolCluster = PoolCluster;\n\nexports.createServer = function(handler) {\n const Server = require('./lib/server.js');\n const s = new Server();\n if (handler) {\n s.on('connection', handler);\n }\n return s;\n};\n\nexports.PoolConnection = require('./lib/pool_connection');\nexports.escape = SqlString.escape;\nexports.escapeId = SqlString.escapeId;\nexports.format = SqlString.format;\nexports.raw = SqlString.raw;\n\nexports.__defineGetter__(\n 'createConnectionPromise',\n () => require('./promise.js').createConnection\n);\n\nexports.__defineGetter__(\n 'createPoolPromise',\n () => require('./promise.js').createPool\n);\n\nexports.__defineGetter__(\n 'createPoolClusterPromise',\n () => require('./promise.js').createPoolCluster\n);\n\nexports.__defineGetter__('Types', () => require('./lib/constants/types.js'));\n\nexports.__defineGetter__('Charsets', () =>\n require('./lib/constants/charsets.js')\n);\n\nexports.__defineGetter__('CharsetToEncoding', () =>\n require('./lib/constants/charset_encodings.js')\n);\n\nexports.setMaxParserCache = function(max) {\n parserCache.setMaxCache(max);\n};\n\nexports.clearParserCache = function() {\n parserCache.clearCache();\n};\n","module.exports = require(\"net\");","module.exports = require(\"timers\");","module.exports = require(\"zlib\");","'use strict';\n\nconst LRU = require('lru-cache');\n\nconst parserCache = new LRU({\n max: 15000\n});\n\nfunction keyFromFields(type, fields, options, config) {\n let res =\n `${type}` +\n `/${typeof options.nestTables}` +\n `/${options.nestTables}` +\n `/${options.rowsAsArray}` +\n `/${options.supportBigNumbers || config.supportBigNumbers}` +\n `/${options.bigNumberStrings || config.bigNumberStrings}` +\n `/${typeof options.typeCast}` +\n `/${options.timezone || config.timezone}` +\n `/${options.decimalNumbers}` +\n `/${options.dateStrings}`;\n for (let i = 0; i < fields.length; ++i) {\n const field = fields[i];\n res += `/${field.name}:${field.columnType}:${field.length}:${field.schema}:${field.table}:${field.flags}:${field.characterSet}`;\n }\n return res;\n}\n\nfunction getParser(type, fields, options, config, compiler) {\n const key = keyFromFields(type, fields, options, config);\n let parser = parserCache.get(key);\n\n if (parser) {\n return parser;\n }\n\n parser = compiler(fields, options, config);\n parserCache.set(key, parser);\n return parser;\n}\n\nfunction setMaxCache(max) {\n parserCache.max = max;\n}\n\nfunction clearCache() {\n parserCache.reset();\n}\n\nmodule.exports = {\n getParser: getParser,\n setMaxCache: setMaxCache,\n clearCache: clearCache\n};\n","/* eslint no-unused-vars: 0 */\n'use strict';\n\nconst { configs, LEVEL, MESSAGE } = require('triple-beam');\n\nclass Padder {\n constructor(opts = { levels: configs.npm.levels }) {\n this.paddings = Padder.paddingForLevels(opts.levels, opts.filler);\n this.options = opts;\n }\n\n /**\n * Returns the maximum length of keys in the specified `levels` Object.\n * @param {Object} levels Set of all levels to calculate longest level against.\n * @returns {Number} Maximum length of the longest level string.\n */\n static getLongestLevel(levels) {\n const lvls = Object.keys(levels).map(level => level.length);\n return Math.max(...lvls);\n }\n\n /**\n * Returns the padding for the specified `level` assuming that the\n * maximum length of all levels it's associated with is `maxLength`.\n * @param {String} level Level to calculate padding for.\n * @param {String} filler Repeatable text to use for padding.\n * @param {Number} maxLength Length of the longest level\n * @returns {String} Padding string for the `level`\n */\n static paddingForLevel(level, filler, maxLength) {\n const targetLen = maxLength + 1 - level.length;\n const rep = Math.floor(targetLen / filler.length);\n const padding = `${filler}${filler.repeat(rep)}`;\n return padding.slice(0, targetLen);\n }\n\n /**\n * Returns an object with the string paddings for the given `levels`\n * using the specified `filler`.\n * @param {Object} levels Set of all levels to calculate padding for.\n * @param {String} filler Repeatable text to use for padding.\n * @returns {Object} Mapping of level to desired padding.\n */\n static paddingForLevels(levels, filler = ' ') {\n const maxLength = Padder.getLongestLevel(levels);\n return Object.keys(levels).reduce((acc, level) => {\n acc[level] = Padder.paddingForLevel(level, filler, maxLength);\n return acc;\n }, {});\n }\n\n /**\n * Prepends the padding onto the `message` based on the `LEVEL` of\n * the `info`. This is based on the behavior of `winston@2` which also\n * prepended the level onto the message.\n *\n * See: https://github.com/winstonjs/winston/blob/2.x/lib/winston/logger.js#L198-L201\n *\n * @param {Info} info Logform info object\n * @param {Object} opts Options passed along to this instance.\n * @returns {Info} Modified logform info object.\n */\n transform(info, opts) {\n info.message = `${this.paddings[info[LEVEL]]}${info.message}`;\n if (info[MESSAGE]) {\n info[MESSAGE] = `${this.paddings[info[LEVEL]]}${info[MESSAGE]}`;\n }\n\n return info;\n }\n}\n\n/*\n * function padLevels (info)\n * Returns a new instance of the padLevels Format which pads\n * levels to be the same length. This was previously exposed as\n * { padLevels: true } to transports in `winston < 3.0.0`.\n */\nmodule.exports = opts => new Padder(opts);\n\nmodule.exports.Padder\n = module.exports.Format\n = Padder;\n","'use strict';\n\nconst format = require('./format');\nconst { MESSAGE } = require('triple-beam');\nconst jsonStringify = require('safe-stable-stringify');\n\n/*\n * function replacer (key, value)\n * Handles proper stringification of Buffer and bigint output.\n */\nfunction replacer(key, value) {\n if (value instanceof Buffer)\n return value.toString('base64');\n // eslint-disable-next-line valid-typeof\n if (typeof value === 'bigint')\n return value.toString();\n return value;\n}\n\n/*\n * function json (info)\n * Returns a new instance of the JSON format that turns a log `info`\n * object into pure JSON. This was previously exposed as { json: true }\n * to transports in `winston < 3.0.0`.\n */\nmodule.exports = format((info, opts = {}) => {\n info[MESSAGE] = jsonStringify(info, opts.replacer || replacer, opts.space);\n return info;\n});\n","'use strict'\n\nconst stringify = require('./stable')\n\nmodule.exports = stringify\nstringify.default = stringify\n","// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n callback.apply(this, args);\n };\n}\n\nfunction noop() {}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction eos(stream, opts, callback) {\n if (typeof opts === 'function') return eos(stream, null, opts);\n if (!opts) opts = {};\n callback = once(callback || noop);\n var readable = opts.readable || opts.readable !== false && stream.readable;\n var writable = opts.writable || opts.writable !== false && stream.writable;\n\n var onlegacyfinish = function onlegacyfinish() {\n if (!stream.writable) onfinish();\n };\n\n var writableEnded = stream._writableState && stream._writableState.finished;\n\n var onfinish = function onfinish() {\n writable = false;\n writableEnded = true;\n if (!readable) callback.call(stream);\n };\n\n var readableEnded = stream._readableState && stream._readableState.endEmitted;\n\n var onend = function onend() {\n readable = false;\n readableEnded = true;\n if (!writable) callback.call(stream);\n };\n\n var onerror = function onerror(err) {\n callback.call(stream, err);\n };\n\n var onclose = function onclose() {\n var err;\n\n if (readable && !readableEnded) {\n if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n\n if (writable && !writableEnded) {\n if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n };\n\n var onrequest = function onrequest() {\n stream.req.on('finish', onfinish);\n };\n\n if (isRequest(stream)) {\n stream.on('complete', onfinish);\n stream.on('abort', onclose);\n if (stream.req) onrequest();else stream.on('request', onrequest);\n } else if (writable && !stream._writableState) {\n // legacy streams\n stream.on('end', onlegacyfinish);\n stream.on('close', onlegacyfinish);\n }\n\n stream.on('end', onend);\n stream.on('finish', onfinish);\n if (opts.error !== false) stream.on('error', onerror);\n stream.on('close', onclose);\n return function () {\n stream.removeListener('complete', onfinish);\n stream.removeListener('abort', onclose);\n stream.removeListener('request', onrequest);\n if (stream.req) stream.req.removeListener('finish', onfinish);\n stream.removeListener('end', onlegacyfinish);\n stream.removeListener('close', onlegacyfinish);\n stream.removeListener('finish', onfinish);\n stream.removeListener('end', onend);\n stream.removeListener('error', onerror);\n stream.removeListener('close', onclose);\n };\n}\n\nmodule.exports = eos;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _eachOf = require('./eachOf.js');\n\nvar _eachOf2 = _interopRequireDefault(_eachOf);\n\nvar _withoutIndex = require('./internal/withoutIndex.js');\n\nvar _withoutIndex2 = _interopRequireDefault(_withoutIndex);\n\nvar _wrapAsync = require('./internal/wrapAsync.js');\n\nvar _wrapAsync2 = _interopRequireDefault(_wrapAsync);\n\nvar _awaitify = require('./internal/awaitify.js');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Applies the function `iteratee` to each item in `coll`, in parallel.\n * The `iteratee` is called with an item from the list, and a callback for when\n * it has finished. If the `iteratee` passes an error to its `callback`, the\n * main `callback` (for the `each` function) is immediately called with the\n * error.\n *\n * Note, that since this function applies `iteratee` to each item in parallel,\n * there is no guarantee that the iteratee functions will complete in order.\n *\n * @name each\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEach\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to\n * each item in `coll`. Invoked with (item, callback).\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOf`.\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * const fileList = [ 'dir1/file2.txt', 'dir2/file3.txt', 'dir/file5.txt'];\n * const withMissingFileList = ['dir1/file1.txt', 'dir4/file2.txt'];\n *\n * // asynchronous function that deletes a file\n * const deleteFile = function(file, callback) {\n * fs.unlink(file, callback);\n * };\n *\n * // Using callbacks\n * async.each(fileList, deleteFile, function(err) {\n * if( err ) {\n * console.log(err);\n * } else {\n * console.log('All files have been deleted successfully');\n * }\n * });\n *\n * // Error Handling\n * async.each(withMissingFileList, deleteFile, function(err){\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * });\n *\n * // Using Promises\n * async.each(fileList, deleteFile)\n * .then( () => {\n * console.log('All files have been deleted successfully');\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.each(fileList, deleteFile)\n * .then( () => {\n * console.log('All files have been deleted successfully');\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * await async.each(files, deleteFile);\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * await async.each(withMissingFileList, deleteFile);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * }\n * }\n *\n */\nfunction eachLimit(coll, iteratee, callback) {\n return (0, _eachOf2.default)(coll, (0, _withoutIndex2.default)((0, _wrapAsync2.default)(iteratee)), callback);\n}\n\nexports.default = (0, _awaitify2.default)(eachLimit, 3);\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isArrayLike;\nfunction isArrayLike(value) {\n return value && typeof value.length === 'number' && value.length >= 0 && value.length % 1 === 0;\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n// A temporary value used to identify if the loop should be broken.\n// See #1064, #1293\nconst breakLoop = {};\nexports.default = breakLoop;\nmodule.exports = exports[\"default\"];","export const PHONE_NUMBER_REGEX = /^([0-9]{3}-[0-9]{4})|([0-9]{7})$/;\nexport interface ScriptMessage {\n method: string;\n app: string;\n data: T;\n}\n\nexport enum PhoneEvents {\n OPEN_APP = 'npwd:openApp',\n OPEN_PHONE = 'npwd:open',\n CLOSE_PHONE = 'npwd:close',\n UNLOAD_CHARACTER = 'npwd:unloadCharacter',\n SET_VISIBILITY = 'npwd:setVisibility',\n ADD_SNACKBAR_ALERT = 'npwd:setSnackarAlert',\n SET_NUMBER = 'npwd:setNumber',\n SET_PHONE_READY = 'npwd:phoneReady',\n SET_CONFIG = 'npwd:setPhoneConfig',\n SET_TIME = 'npwd:setGameTime',\n SEND_CREDENTIALS = 'npwd:sendCredentials',\n FETCH_CREDENTIALS = 'npwd:getCredentials',\n TOGGLE_KEYS = 'npwd:toggleAllControls',\n SET_PLAYER_LOADED = 'npwd:setPlayerLoaded',\n IS_PHONE_DISABLED = 'npwd:isPhoneDisabled',\n}\n\n// Used to standardize the server response\nexport enum ErrorStringKeys {\n SERVER_ERROR = 'GENERAL_SERVER_ERROR',\n DELETE_FAILED = 'DELETE_FAILED',\n ADD_FAILED = 'ADD_FAILED',\n UPDATE_FAILED = 'UPDATED_FAILED',\n FETCH_FAILED = 'FETCH_FAILED',\n}\n\nexport interface FxServerRespError {\n errorCode: ErrorStringKeys;\n message: string;\n}\n\nexport interface FxServerResponse {\n data?: unknown;\n action: string;\n status: 'success' | 'failure';\n app: string;\n error?: FxServerRespError;\n}\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","import { mainLogger } from '../sv_logger';\n\nexport const twitterLogger = mainLogger.child({ module: 'twitter' });\n","import { mainLogger } from '../sv_logger';\nimport { FormattedMatch, FormattedProfile, Match, Profile } from '../../../typings/match';\nimport dayjs from 'dayjs';\n\nexport const matchLogger = mainLogger.child({ module: 'match' });\n\nexport function formatProfile(profile: Profile): FormattedProfile | null {\n return {\n ...profile,\n tagList: profile.tags.split(',').filter((t) => t), // remove any empty tags\n lastActiveFormatted: dayjs.unix(profile.lastActive).toString(),\n viewed: false,\n };\n}\n\nexport function formatMatches(match: Match): FormattedMatch | null {\n return {\n ...match,\n tagList: match.tags.split(',').filter((t) => t), // remove any empty tags\n lastActiveFormatted: dayjs.unix(match.lastActive).toString(),\n matchedAtFormatted: dayjs.unix(match.matchedAt).toString(),\n };\n}\n","import { getGlobalObject } from './global';\nimport { isString } from './is';\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nexport function htmlTreeAsString(elem, keyAttrs) {\n // try/catch both:\n // - accessing event.target (see getsentry/raven-js#838, #768)\n // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n // - can throw an exception in some circumstances.\n try {\n var currentElem = elem;\n var MAX_TRAVERSE_HEIGHT = 5;\n var MAX_OUTPUT_LEN = 80;\n var out = [];\n var height = 0;\n var len = 0;\n var separator = ' > ';\n var sepLength = separator.length;\n var nextStr = void 0;\n // eslint-disable-next-line no-plusplus\n while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n nextStr = _htmlElementAsString(currentElem, keyAttrs);\n // bail out if\n // - nextStr is the 'html' element\n // - the length of the string that would be created exceeds MAX_OUTPUT_LEN\n // (ignore this limit if we are on the first iteration)\n if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) {\n break;\n }\n out.push(nextStr);\n len += nextStr.length;\n currentElem = currentElem.parentNode;\n }\n return out.reverse().join(separator);\n }\n catch (_oO) {\n return '';\n }\n}\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction _htmlElementAsString(el, keyAttrs) {\n var _a, _b;\n var elem = el;\n var out = [];\n var className;\n var classes;\n var key;\n var attr;\n var i;\n if (!elem || !elem.tagName) {\n return '';\n }\n out.push(elem.tagName.toLowerCase());\n // Pairs of attribute keys defined in `serializeAttribute` and their values on element.\n var keyAttrPairs = ((_a = keyAttrs) === null || _a === void 0 ? void 0 : _a.length) ? keyAttrs.filter(function (keyAttr) { return elem.getAttribute(keyAttr); }).map(function (keyAttr) { return [keyAttr, elem.getAttribute(keyAttr)]; })\n : null;\n if ((_b = keyAttrPairs) === null || _b === void 0 ? void 0 : _b.length) {\n keyAttrPairs.forEach(function (keyAttrPair) {\n out.push(\"[\" + keyAttrPair[0] + \"=\\\"\" + keyAttrPair[1] + \"\\\"]\");\n });\n }\n else {\n if (elem.id) {\n out.push(\"#\" + elem.id);\n }\n // eslint-disable-next-line prefer-const\n className = elem.className;\n if (className && isString(className)) {\n classes = className.split(/\\s+/);\n for (i = 0; i < classes.length; i++) {\n out.push(\".\" + classes[i]);\n }\n }\n }\n var allowedAttrs = ['type', 'name', 'title', 'alt'];\n for (i = 0; i < allowedAttrs.length; i++) {\n key = allowedAttrs[i];\n attr = elem.getAttribute(key);\n if (attr) {\n out.push(\"[\" + key + \"=\\\"\" + attr + \"\\\"]\");\n }\n }\n return out.join('');\n}\n/**\n * A safe form of location.href\n */\nexport function getLocationHref() {\n var global = getGlobalObject();\n try {\n return global.document.location.href;\n }\n catch (oO) {\n return '';\n }\n}\n//# sourceMappingURL=browser.js.map","import { __assign } from \"tslib\";\nimport { getGlobalObject } from './global';\nimport { snipLine } from './string';\n/**\n * UUID4 generator\n *\n * @returns string Generated UUID4.\n */\nexport function uuid4() {\n var global = getGlobalObject();\n var crypto = global.crypto || global.msCrypto;\n if (!(crypto === void 0) && crypto.getRandomValues) {\n // Use window.crypto API if available\n var arr = new Uint16Array(8);\n crypto.getRandomValues(arr);\n // set 4 in byte 7\n // eslint-disable-next-line no-bitwise\n arr[3] = (arr[3] & 0xfff) | 0x4000;\n // set 2 most significant bits of byte 9 to '10'\n // eslint-disable-next-line no-bitwise\n arr[4] = (arr[4] & 0x3fff) | 0x8000;\n var pad = function (num) {\n var v = num.toString(16);\n while (v.length < 4) {\n v = \"0\" + v;\n }\n return v;\n };\n return (pad(arr[0]) + pad(arr[1]) + pad(arr[2]) + pad(arr[3]) + pad(arr[4]) + pad(arr[5]) + pad(arr[6]) + pad(arr[7]));\n }\n // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n // eslint-disable-next-line no-bitwise\n var r = (Math.random() * 16) | 0;\n // eslint-disable-next-line no-bitwise\n var v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n/**\n * Parses string form of URL into an object\n * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B\n * // intentionally using regex and not href parsing trick because React Native and other\n * // environments where DOM might not be available\n * @returns parsed URL object\n */\nexport function parseUrl(url) {\n if (!url) {\n return {};\n }\n var match = url.match(/^(([^:/?#]+):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/);\n if (!match) {\n return {};\n }\n // coerce to undefined values to empty string so we don't get 'undefined'\n var query = match[6] || '';\n var fragment = match[8] || '';\n return {\n host: match[4],\n path: match[5],\n protocol: match[2],\n relative: match[5] + query + fragment,\n };\n}\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nexport function getEventDescription(event) {\n if (event.message) {\n return event.message;\n }\n if (event.exception && event.exception.values && event.exception.values[0]) {\n var exception = event.exception.values[0];\n if (exception.type && exception.value) {\n return exception.type + \": \" + exception.value;\n }\n return exception.type || exception.value || event.event_id || '';\n }\n return event.event_id || '';\n}\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nexport function addExceptionTypeValue(event, value, type) {\n event.exception = event.exception || {};\n event.exception.values = event.exception.values || [];\n event.exception.values[0] = event.exception.values[0] || {};\n event.exception.values[0].value = event.exception.values[0].value || value || '';\n event.exception.values[0].type = event.exception.values[0].type || type || 'Error';\n}\n/**\n * Adds exception mechanism data to a given event. Uses defaults if the second parameter is not passed.\n *\n * @param event The event to modify.\n * @param newMechanism Mechanism data to add to the event.\n * @hidden\n */\nexport function addExceptionMechanism(event, newMechanism) {\n var _a;\n if (!event.exception || !event.exception.values) {\n return;\n }\n var exceptionValue0 = event.exception.values[0];\n var defaultMechanism = { type: 'generic', handled: true };\n var currentMechanism = exceptionValue0.mechanism;\n exceptionValue0.mechanism = __assign(__assign(__assign({}, defaultMechanism), currentMechanism), newMechanism);\n if (newMechanism && 'data' in newMechanism) {\n var mergedData = __assign(__assign({}, (_a = currentMechanism) === null || _a === void 0 ? void 0 : _a.data), newMechanism.data);\n exceptionValue0.mechanism.data = mergedData;\n }\n}\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nvar SEMVER_REGEXP = /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input) {\n var match = input.match(SEMVER_REGEXP) || [];\n var major = parseInt(match[1], 10);\n var minor = parseInt(match[2], 10);\n var patch = parseInt(match[3], 10);\n return {\n buildmetadata: match[5],\n major: isNaN(major) ? undefined : major,\n minor: isNaN(minor) ? undefined : minor,\n patch: isNaN(patch) ? undefined : patch,\n prerelease: match[4],\n };\n}\nvar defaultRetryAfter = 60 * 1000; // 60 seconds\n/**\n * Extracts Retry-After value from the request header or returns default value\n * @param now current unix timestamp\n * @param header string representation of 'Retry-After' header\n */\nexport function parseRetryAfterHeader(now, header) {\n if (!header) {\n return defaultRetryAfter;\n }\n var headerDelay = parseInt(\"\" + header, 10);\n if (!isNaN(headerDelay)) {\n return headerDelay * 1000;\n }\n var headerDate = Date.parse(\"\" + header);\n if (!isNaN(headerDate)) {\n return headerDate - now;\n }\n return defaultRetryAfter;\n}\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines, frame, linesOfContext) {\n if (linesOfContext === void 0) { linesOfContext = 5; }\n var lineno = frame.lineno || 0;\n var maxLines = lines.length;\n var sourceLine = Math.max(Math.min(maxLines, lineno - 1), 0);\n frame.pre_context = lines\n .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n .map(function (line) { return snipLine(line, 0); });\n frame.context_line = snipLine(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);\n frame.post_context = lines\n .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n .map(function (line) { return snipLine(line, 0); });\n}\n/**\n * Strip the query string and fragment off of a given URL or path (if present)\n *\n * @param urlPath Full URL or path, including possible query string and/or fragment\n * @returns URL or path without query string or fragment\n */\nexport function stripUrlQueryAndFragment(urlPath) {\n // eslint-disable-next-line no-useless-escape\n return urlPath.split(/[\\?#]/, 1)[0];\n}\n/**\n * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object\n * in question), and marks it captured if not.\n *\n * This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and\n * record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so\n * that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because\n * the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not\n * caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This\n * function helps us ensure that even if we encounter the same error more than once, we only record it the first time we\n * see it.\n *\n * Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on\n * them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent\n * object wrapper forms so that this check will always work. However, because we need to flag the exact object which\n * will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification\n * must be done before the exception captured.\n *\n * @param A thrown exception to check or flag as having been seen\n * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)\n */\nexport function checkOrSetAlreadyCaught(exception) {\n var _a;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if ((_a = exception) === null || _a === void 0 ? void 0 : _a.__sentry_captured__) {\n return true;\n }\n try {\n // set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the\n // `ExtraErrorData` integration\n Object.defineProperty(exception, '__sentry_captured__', {\n value: true,\n });\n }\n catch (err) {\n // `exception` is a primitive, so we can't mark it seen\n }\n return false;\n}\n//# sourceMappingURL=misc.js.map","import { getGlobalObject } from './global';\nimport { logger } from './logger';\n/**\n * Tells whether current environment supports ErrorEvent objects\n * {@link supportsErrorEvent}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsErrorEvent() {\n try {\n new ErrorEvent('');\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * Tells whether current environment supports DOMError objects\n * {@link supportsDOMError}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMError() {\n try {\n // Chrome: VM89:1 Uncaught TypeError: Failed to construct 'DOMError':\n // 1 argument required, but only 0 present.\n // @ts-ignore It really needs 1 argument, not 0.\n new DOMError('');\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * Tells whether current environment supports DOMException objects\n * {@link supportsDOMException}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMException() {\n try {\n new DOMException('');\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * Tells whether current environment supports Fetch API\n * {@link supportsFetch}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsFetch() {\n if (!('fetch' in getGlobalObject())) {\n return false;\n }\n try {\n new Headers();\n new Request('');\n new Response();\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * isNativeFetch checks if the given function is a native implementation of fetch()\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isNativeFetch(func) {\n return func && /^function fetch\\(\\)\\s+\\{\\s+\\[native code\\]\\s+\\}$/.test(func.toString());\n}\n/**\n * Tells whether current environment supports Fetch API natively\n * {@link supportsNativeFetch}.\n *\n * @returns true if `window.fetch` is natively implemented, false otherwise\n */\nexport function supportsNativeFetch() {\n if (!supportsFetch()) {\n return false;\n }\n var global = getGlobalObject();\n // Fast path to avoid DOM I/O\n // eslint-disable-next-line @typescript-eslint/unbound-method\n if (isNativeFetch(global.fetch)) {\n return true;\n }\n // window.fetch is implemented, but is polyfilled or already wrapped (e.g: by a chrome extension)\n // so create a \"pure\" iframe to see if that has native fetch\n var result = false;\n var doc = global.document;\n // eslint-disable-next-line deprecation/deprecation\n if (doc && typeof doc.createElement === \"function\") {\n try {\n var sandbox = doc.createElement('iframe');\n sandbox.hidden = true;\n doc.head.appendChild(sandbox);\n if (sandbox.contentWindow && sandbox.contentWindow.fetch) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n result = isNativeFetch(sandbox.contentWindow.fetch);\n }\n doc.head.removeChild(sandbox);\n }\n catch (err) {\n logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);\n }\n }\n return result;\n}\n/**\n * Tells whether current environment supports ReportingObserver API\n * {@link supportsReportingObserver}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReportingObserver() {\n return 'ReportingObserver' in getGlobalObject();\n}\n/**\n * Tells whether current environment supports Referrer Policy API\n * {@link supportsReferrerPolicy}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReferrerPolicy() {\n // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default\n // https://caniuse.com/#feat=referrer-policy\n // It doesn't. And it throw exception instead of ignoring this parameter...\n // REF: https://github.com/getsentry/raven-js/issues/1233\n if (!supportsFetch()) {\n return false;\n }\n try {\n new Request('_', {\n referrerPolicy: 'origin',\n });\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * Tells whether current environment supports History API\n * {@link supportsHistory}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsHistory() {\n // NOTE: in Chrome App environment, touching history.pushState, *even inside\n // a try/catch block*, will cause Chrome to output an error to console.error\n // borrowed from: https://github.com/angular/angular.js/pull/13945/files\n var global = getGlobalObject();\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var chrome = global.chrome;\n var isChromePackagedApp = chrome && chrome.app && chrome.app.runtime;\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n var hasHistoryApi = 'history' in global && !!global.history.pushState && !!global.history.replaceState;\n return !isChromePackagedApp && hasHistoryApi;\n}\n//# sourceMappingURL=supports.js.map","module.exports = require('./lib/SqlString');\n","module.exports = require(\"tls\");","'use strict';\n\n/**\n * Custom implementation of a double ended queue.\n */\nfunction Denque(array, options) {\n var options = options || {};\n\n this._head = 0;\n this._tail = 0;\n this._capacity = options.capacity;\n this._capacityMask = 0x3;\n this._list = new Array(4);\n if (Array.isArray(array)) {\n this._fromArray(array);\n }\n}\n\n/**\n * --------------\n * PUBLIC API\n * -------------\n */\n\n/**\n * Returns the item at the specified index from the list.\n * 0 is the first element, 1 is the second, and so on...\n * Elements at negative values are that many from the end: -1 is one before the end\n * (the last element), -2 is two before the end (one before last), etc.\n * @param index\n * @returns {*}\n */\nDenque.prototype.peekAt = function peekAt(index) {\n var i = index;\n // expect a number or return undefined\n if ((i !== (i | 0))) {\n return void 0;\n }\n var len = this.size();\n if (i >= len || i < -len) return undefined;\n if (i < 0) i += len;\n i = (this._head + i) & this._capacityMask;\n return this._list[i];\n};\n\n/**\n * Alias for peekAt()\n * @param i\n * @returns {*}\n */\nDenque.prototype.get = function get(i) {\n return this.peekAt(i);\n};\n\n/**\n * Returns the first item in the list without removing it.\n * @returns {*}\n */\nDenque.prototype.peek = function peek() {\n if (this._head === this._tail) return undefined;\n return this._list[this._head];\n};\n\n/**\n * Alias for peek()\n * @returns {*}\n */\nDenque.prototype.peekFront = function peekFront() {\n return this.peek();\n};\n\n/**\n * Returns the item that is at the back of the queue without removing it.\n * Uses peekAt(-1)\n */\nDenque.prototype.peekBack = function peekBack() {\n return this.peekAt(-1);\n};\n\n/**\n * Returns the current length of the queue\n * @return {Number}\n */\nObject.defineProperty(Denque.prototype, 'length', {\n get: function length() {\n return this.size();\n }\n});\n\n/**\n * Return the number of items on the list, or 0 if empty.\n * @returns {number}\n */\nDenque.prototype.size = function size() {\n if (this._head === this._tail) return 0;\n if (this._head < this._tail) return this._tail - this._head;\n else return this._capacityMask + 1 - (this._head - this._tail);\n};\n\n/**\n * Add an item at the beginning of the list.\n * @param item\n */\nDenque.prototype.unshift = function unshift(item) {\n if (arguments.length === 0) return this.size();\n var len = this._list.length;\n this._head = (this._head - 1 + len) & this._capacityMask;\n this._list[this._head] = item;\n if (this._tail === this._head) this._growArray();\n if (this._capacity && this.size() > this._capacity) this.pop();\n if (this._head < this._tail) return this._tail - this._head;\n else return this._capacityMask + 1 - (this._head - this._tail);\n};\n\n/**\n * Remove and return the first item on the list,\n * Returns undefined if the list is empty.\n * @returns {*}\n */\nDenque.prototype.shift = function shift() {\n var head = this._head;\n if (head === this._tail) return undefined;\n var item = this._list[head];\n this._list[head] = undefined;\n this._head = (head + 1) & this._capacityMask;\n if (head < 2 && this._tail > 10000 && this._tail <= this._list.length >>> 2) this._shrinkArray();\n return item;\n};\n\n/**\n * Add an item to the bottom of the list.\n * @param item\n */\nDenque.prototype.push = function push(item) {\n if (arguments.length === 0) return this.size();\n var tail = this._tail;\n this._list[tail] = item;\n this._tail = (tail + 1) & this._capacityMask;\n if (this._tail === this._head) {\n this._growArray();\n }\n if (this._capacity && this.size() > this._capacity) {\n this.shift();\n }\n if (this._head < this._tail) return this._tail - this._head;\n else return this._capacityMask + 1 - (this._head - this._tail);\n};\n\n/**\n * Remove and return the last item on the list.\n * Returns undefined if the list is empty.\n * @returns {*}\n */\nDenque.prototype.pop = function pop() {\n var tail = this._tail;\n if (tail === this._head) return undefined;\n var len = this._list.length;\n this._tail = (tail - 1 + len) & this._capacityMask;\n var item = this._list[this._tail];\n this._list[this._tail] = undefined;\n if (this._head < 2 && tail > 10000 && tail <= len >>> 2) this._shrinkArray();\n return item;\n};\n\n/**\n * Remove and return the item at the specified index from the list.\n * Returns undefined if the list is empty.\n * @param index\n * @returns {*}\n */\nDenque.prototype.removeOne = function removeOne(index) {\n var i = index;\n // expect a number or return undefined\n if ((i !== (i | 0))) {\n return void 0;\n }\n if (this._head === this._tail) return void 0;\n var size = this.size();\n var len = this._list.length;\n if (i >= size || i < -size) return void 0;\n if (i < 0) i += size;\n i = (this._head + i) & this._capacityMask;\n var item = this._list[i];\n var k;\n if (index < size / 2) {\n for (k = index; k > 0; k--) {\n this._list[i] = this._list[i = (i - 1 + len) & this._capacityMask];\n }\n this._list[i] = void 0;\n this._head = (this._head + 1 + len) & this._capacityMask;\n } else {\n for (k = size - 1 - index; k > 0; k--) {\n this._list[i] = this._list[i = (i + 1 + len) & this._capacityMask];\n }\n this._list[i] = void 0;\n this._tail = (this._tail - 1 + len) & this._capacityMask;\n }\n return item;\n};\n\n/**\n * Remove number of items from the specified index from the list.\n * Returns array of removed items.\n * Returns undefined if the list is empty.\n * @param index\n * @param count\n * @returns {array}\n */\nDenque.prototype.remove = function remove(index, count) {\n var i = index;\n var removed;\n var del_count = count;\n // expect a number or return undefined\n if ((i !== (i | 0))) {\n return void 0;\n }\n if (this._head === this._tail) return void 0;\n var size = this.size();\n var len = this._list.length;\n if (i >= size || i < -size || count < 1) return void 0;\n if (i < 0) i += size;\n if (count === 1 || !count) {\n removed = new Array(1);\n removed[0] = this.removeOne(i);\n return removed;\n }\n if (i === 0 && i + count >= size) {\n removed = this.toArray();\n this.clear();\n return removed;\n }\n if (i + count > size) count = size - i;\n var k;\n removed = new Array(count);\n for (k = 0; k < count; k++) {\n removed[k] = this._list[(this._head + i + k) & this._capacityMask];\n }\n i = (this._head + i) & this._capacityMask;\n if (index + count === size) {\n this._tail = (this._tail - count + len) & this._capacityMask;\n for (k = count; k > 0; k--) {\n this._list[i = (i + 1 + len) & this._capacityMask] = void 0;\n }\n return removed;\n }\n if (index === 0) {\n this._head = (this._head + count + len) & this._capacityMask;\n for (k = count - 1; k > 0; k--) {\n this._list[i = (i + 1 + len) & this._capacityMask] = void 0;\n }\n return removed;\n }\n if (i < size / 2) {\n this._head = (this._head + index + count + len) & this._capacityMask;\n for (k = index; k > 0; k--) {\n this.unshift(this._list[i = (i - 1 + len) & this._capacityMask]);\n }\n i = (this._head - 1 + len) & this._capacityMask;\n while (del_count > 0) {\n this._list[i = (i - 1 + len) & this._capacityMask] = void 0;\n del_count--;\n }\n if (index < 0) this._tail = i;\n } else {\n this._tail = i;\n i = (i + count + len) & this._capacityMask;\n for (k = size - (count + index); k > 0; k--) {\n this.push(this._list[i++]);\n }\n i = this._tail;\n while (del_count > 0) {\n this._list[i = (i + 1 + len) & this._capacityMask] = void 0;\n del_count--;\n }\n }\n if (this._head < 2 && this._tail > 10000 && this._tail <= len >>> 2) this._shrinkArray();\n return removed;\n};\n\n/**\n * Native splice implementation.\n * Remove number of items from the specified index from the list and/or add new elements.\n * Returns array of removed items or empty array if count == 0.\n * Returns undefined if the list is empty.\n *\n * @param index\n * @param count\n * @param {...*} [elements]\n * @returns {array}\n */\nDenque.prototype.splice = function splice(index, count) {\n var i = index;\n // expect a number or return undefined\n if ((i !== (i | 0))) {\n return void 0;\n }\n var size = this.size();\n if (i < 0) i += size;\n if (i > size) return void 0;\n if (arguments.length > 2) {\n var k;\n var temp;\n var removed;\n var arg_len = arguments.length;\n var len = this._list.length;\n var arguments_index = 2;\n if (!size || i < size / 2) {\n temp = new Array(i);\n for (k = 0; k < i; k++) {\n temp[k] = this._list[(this._head + k) & this._capacityMask];\n }\n if (count === 0) {\n removed = [];\n if (i > 0) {\n this._head = (this._head + i + len) & this._capacityMask;\n }\n } else {\n removed = this.remove(i, count);\n this._head = (this._head + i + len) & this._capacityMask;\n }\n while (arg_len > arguments_index) {\n this.unshift(arguments[--arg_len]);\n }\n for (k = i; k > 0; k--) {\n this.unshift(temp[k - 1]);\n }\n } else {\n temp = new Array(size - (i + count));\n var leng = temp.length;\n for (k = 0; k < leng; k++) {\n temp[k] = this._list[(this._head + i + count + k) & this._capacityMask];\n }\n if (count === 0) {\n removed = [];\n if (i != size) {\n this._tail = (this._head + i + len) & this._capacityMask;\n }\n } else {\n removed = this.remove(i, count);\n this._tail = (this._tail - leng + len) & this._capacityMask;\n }\n while (arguments_index < arg_len) {\n this.push(arguments[arguments_index++]);\n }\n for (k = 0; k < leng; k++) {\n this.push(temp[k]);\n }\n }\n return removed;\n } else {\n return this.remove(i, count);\n }\n};\n\n/**\n * Soft clear - does not reset capacity.\n */\nDenque.prototype.clear = function clear() {\n this._head = 0;\n this._tail = 0;\n};\n\n/**\n * Returns true or false whether the list is empty.\n * @returns {boolean}\n */\nDenque.prototype.isEmpty = function isEmpty() {\n return this._head === this._tail;\n};\n\n/**\n * Returns an array of all queue items.\n * @returns {Array}\n */\nDenque.prototype.toArray = function toArray() {\n return this._copyArray(false);\n};\n\n/**\n * -------------\n * INTERNALS\n * -------------\n */\n\n/**\n * Fills the queue with items from an array\n * For use in the constructor\n * @param array\n * @private\n */\nDenque.prototype._fromArray = function _fromArray(array) {\n for (var i = 0; i < array.length; i++) this.push(array[i]);\n};\n\n/**\n *\n * @param fullCopy\n * @returns {Array}\n * @private\n */\nDenque.prototype._copyArray = function _copyArray(fullCopy) {\n var newArray = [];\n var list = this._list;\n var len = list.length;\n var i;\n if (fullCopy || this._head > this._tail) {\n for (i = this._head; i < len; i++) newArray.push(list[i]);\n for (i = 0; i < this._tail; i++) newArray.push(list[i]);\n } else {\n for (i = this._head; i < this._tail; i++) newArray.push(list[i]);\n }\n return newArray;\n};\n\n/**\n * Grows the internal list array.\n * @private\n */\nDenque.prototype._growArray = function _growArray() {\n if (this._head) {\n // copy existing data, head to end, then beginning to tail.\n this._list = this._copyArray(true);\n this._head = 0;\n }\n\n // head is at 0 and array is now full, safe to extend\n this._tail = this._list.length;\n\n this._list.length <<= 1;\n this._capacityMask = (this._capacityMask << 1) | 1;\n};\n\n/**\n * Shrinks the internal list array.\n * @private\n */\nDenque.prototype._shrinkArray = function _shrinkArray() {\n this._list.length >>>= 1;\n this._capacityMask >>>= 1;\n};\n\n\nmodule.exports = Denque;\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict';\n\nconst Packet = require('./packets/packet.js');\n\nconst MAX_PACKET_LENGTH = 16777215;\n\nfunction readPacketLength(b, off) {\n const b0 = b[off];\n const b1 = b[off + 1];\n const b2 = b[off + 2];\n if (b1 + b2 === 0) {\n return b0;\n }\n return b0 + (b1 << 8) + (b2 << 16);\n}\n\nclass PacketParser {\n constructor(onPacket, packetHeaderLength) {\n // 4 for normal packets, 7 for comprssed protocol packets\n if (typeof packetHeaderLength === 'undefined') {\n packetHeaderLength = 4;\n }\n // array of last payload chunks\n // only used when current payload is not complete\n this.buffer = [];\n // total length of chunks on buffer\n this.bufferLength = 0;\n this.packetHeaderLength = packetHeaderLength;\n // incomplete header state: number of header bytes received\n this.headerLen = 0;\n // expected payload length\n this.length = 0;\n this.largePacketParts = [];\n this.firstPacketSequenceId = 0;\n this.onPacket = onPacket;\n this.execute = PacketParser.prototype.executeStart;\n this._flushLargePacket =\n packetHeaderLength === 7\n ? this._flushLargePacket7\n : this._flushLargePacket4;\n }\n\n _flushLargePacket4() {\n const numPackets = this.largePacketParts.length;\n this.largePacketParts.unshift(Buffer.from([0, 0, 0, 0])); // insert header\n const body = Buffer.concat(this.largePacketParts);\n const packet = new Packet(this.firstPacketSequenceId, body, 0, body.length);\n this.largePacketParts.length = 0;\n packet.numPackets = numPackets;\n this.onPacket(packet);\n }\n\n _flushLargePacket7() {\n const numPackets = this.largePacketParts.length;\n this.largePacketParts.unshift(Buffer.from([0, 0, 0, 0, 0, 0, 0])); // insert header\n const body = Buffer.concat(this.largePacketParts);\n this.largePacketParts.length = 0;\n const packet = new Packet(this.firstPacketSequenceId, body, 0, body.length);\n packet.numPackets = numPackets;\n this.onPacket(packet);\n }\n\n executeStart(chunk) {\n let start = 0;\n const end = chunk.length;\n while (end - start >= 3) {\n this.length = readPacketLength(chunk, start);\n if (end - start >= this.length + this.packetHeaderLength) {\n // at least one full packet\n const sequenceId = chunk[start + 3];\n if (\n this.length < MAX_PACKET_LENGTH &&\n this.largePacketParts.length === 0\n ) {\n this.onPacket(\n new Packet(\n sequenceId,\n chunk,\n start,\n start + this.packetHeaderLength + this.length\n )\n );\n } else {\n // first large packet - remember it's id\n if (this.largePacketParts.length === 0) {\n this.firstPacketSequenceId = sequenceId;\n }\n this.largePacketParts.push(\n chunk.slice(\n start + this.packetHeaderLength,\n start + this.packetHeaderLength + this.length\n )\n );\n if (this.length < MAX_PACKET_LENGTH) {\n this._flushLargePacket();\n }\n }\n start += this.packetHeaderLength + this.length;\n } else {\n // payload is incomplete\n this.buffer = [chunk.slice(start + 3, end)];\n this.bufferLength = end - start - 3;\n this.execute = PacketParser.prototype.executePayload;\n return;\n }\n }\n if (end - start > 0) {\n // there is start of length header, but it's not full 3 bytes\n this.headerLen = end - start; // 1 or 2 bytes\n this.length = chunk[start];\n if (this.headerLen === 2) {\n this.length = chunk[start] + (chunk[start + 1] << 8);\n this.execute = PacketParser.prototype.executeHeader3;\n } else {\n this.execute = PacketParser.prototype.executeHeader2;\n }\n }\n }\n\n executePayload(chunk) {\n let start = 0;\n const end = chunk.length;\n const remainingPayload =\n this.length - this.bufferLength + this.packetHeaderLength - 3;\n if (end - start >= remainingPayload) {\n // last chunk for payload\n const payload = Buffer.allocUnsafe(this.length + this.packetHeaderLength);\n let offset = 3;\n for (let i = 0; i < this.buffer.length; ++i) {\n this.buffer[i].copy(payload, offset);\n offset += this.buffer[i].length;\n }\n chunk.copy(payload, offset, start, start + remainingPayload);\n const sequenceId = payload[3];\n if (\n this.length < MAX_PACKET_LENGTH &&\n this.largePacketParts.length === 0\n ) {\n this.onPacket(\n new Packet(\n sequenceId,\n payload,\n 0,\n this.length + this.packetHeaderLength\n )\n );\n } else {\n // first large packet - remember it's id\n if (this.largePacketParts.length === 0) {\n this.firstPacketSequenceId = sequenceId;\n }\n this.largePacketParts.push(\n payload.slice(\n this.packetHeaderLength,\n this.packetHeaderLength + this.length\n )\n );\n if (this.length < MAX_PACKET_LENGTH) {\n this._flushLargePacket();\n }\n }\n this.buffer = [];\n this.bufferLength = 0;\n this.execute = PacketParser.prototype.executeStart;\n start += remainingPayload;\n if (end - start > 0) {\n return this.execute(chunk.slice(start, end));\n }\n } else {\n this.buffer.push(chunk);\n this.bufferLength += chunk.length;\n }\n return null;\n }\n\n executeHeader2(chunk) {\n this.length += chunk[0] << 8;\n if (chunk.length > 1) {\n this.length += chunk[1] << 16;\n this.execute = PacketParser.prototype.executePayload;\n return this.executePayload(chunk.slice(2));\n } \n this.execute = PacketParser.prototype.executeHeader3;\n \n return null;\n }\n\n executeHeader3(chunk) {\n this.length += chunk[0] << 16;\n this.execute = PacketParser.prototype.executePayload;\n return this.executePayload(chunk.slice(1));\n }\n}\n\nmodule.exports = PacketParser;\n","// This file was modified by Oracle on June 1, 2021.\n// An entry was created for a new error reported by the MySQL server due to\n// client inactivity.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\n// copy from https://raw.githubusercontent.com/mysqljs/mysql/7770ee5bb13260c56a160b91fe480d9165dbeeba/lib/protocol/constants/errors.js\n// (c) node-mysql authors\n\n/**\n * MySQL error constants\n *\n * !! Generated by generate-error-constants.js, do not modify by hand !!\n */\n\nexports.EE_CANTCREATEFILE = 1;\nexports.EE_READ = 2;\nexports.EE_WRITE = 3;\nexports.EE_BADCLOSE = 4;\nexports.EE_OUTOFMEMORY = 5;\nexports.EE_DELETE = 6;\nexports.EE_LINK = 7;\nexports.EE_EOFERR = 9;\nexports.EE_CANTLOCK = 10;\nexports.EE_CANTUNLOCK = 11;\nexports.EE_DIR = 12;\nexports.EE_STAT = 13;\nexports.EE_CANT_CHSIZE = 14;\nexports.EE_CANT_OPEN_STREAM = 15;\nexports.EE_GETWD = 16;\nexports.EE_SETWD = 17;\nexports.EE_LINK_WARNING = 18;\nexports.EE_OPEN_WARNING = 19;\nexports.EE_DISK_FULL = 20;\nexports.EE_CANT_MKDIR = 21;\nexports.EE_UNKNOWN_CHARSET = 22;\nexports.EE_OUT_OF_FILERESOURCES = 23;\nexports.EE_CANT_READLINK = 24;\nexports.EE_CANT_SYMLINK = 25;\nexports.EE_REALPATH = 26;\nexports.EE_SYNC = 27;\nexports.EE_UNKNOWN_COLLATION = 28;\nexports.EE_FILENOTFOUND = 29;\nexports.EE_FILE_NOT_CLOSED = 30;\nexports.EE_CHANGE_OWNERSHIP = 31;\nexports.EE_CHANGE_PERMISSIONS = 32;\nexports.EE_CANT_SEEK = 33;\nexports.HA_ERR_KEY_NOT_FOUND = 120;\nexports.HA_ERR_FOUND_DUPP_KEY = 121;\nexports.HA_ERR_INTERNAL_ERROR = 122;\nexports.HA_ERR_RECORD_CHANGED = 123;\nexports.HA_ERR_WRONG_INDEX = 124;\nexports.HA_ERR_CRASHED = 126;\nexports.HA_ERR_WRONG_IN_RECORD = 127;\nexports.HA_ERR_OUT_OF_MEM = 128;\nexports.HA_ERR_NOT_A_TABLE = 130;\nexports.HA_ERR_WRONG_COMMAND = 131;\nexports.HA_ERR_OLD_FILE = 132;\nexports.HA_ERR_NO_ACTIVE_RECORD = 133;\nexports.HA_ERR_RECORD_DELETED = 134;\nexports.HA_ERR_RECORD_FILE_FULL = 135;\nexports.HA_ERR_INDEX_FILE_FULL = 136;\nexports.HA_ERR_END_OF_FILE = 137;\nexports.HA_ERR_UNSUPPORTED = 138;\nexports.HA_ERR_TO_BIG_ROW = 139;\nexports.HA_WRONG_CREATE_OPTION = 140;\nexports.HA_ERR_FOUND_DUPP_UNIQUE = 141;\nexports.HA_ERR_UNKNOWN_CHARSET = 142;\nexports.HA_ERR_WRONG_MRG_TABLE_DEF = 143;\nexports.HA_ERR_CRASHED_ON_REPAIR = 144;\nexports.HA_ERR_CRASHED_ON_USAGE = 145;\nexports.HA_ERR_LOCK_WAIT_TIMEOUT = 146;\nexports.HA_ERR_LOCK_TABLE_FULL = 147;\nexports.HA_ERR_READ_ONLY_TRANSACTION = 148;\nexports.HA_ERR_LOCK_DEADLOCK = 149;\nexports.HA_ERR_CANNOT_ADD_FOREIGN = 150;\nexports.HA_ERR_NO_REFERENCED_ROW = 151;\nexports.HA_ERR_ROW_IS_REFERENCED = 152;\nexports.HA_ERR_NO_SAVEPOINT = 153;\nexports.HA_ERR_NON_UNIQUE_BLOCK_SIZE = 154;\nexports.HA_ERR_NO_SUCH_TABLE = 155;\nexports.HA_ERR_TABLE_EXIST = 156;\nexports.HA_ERR_NO_CONNECTION = 157;\nexports.HA_ERR_NULL_IN_SPATIAL = 158;\nexports.HA_ERR_TABLE_DEF_CHANGED = 159;\nexports.HA_ERR_NO_PARTITION_FOUND = 160;\nexports.HA_ERR_RBR_LOGGING_FAILED = 161;\nexports.HA_ERR_DROP_INDEX_FK = 162;\nexports.HA_ERR_FOREIGN_DUPLICATE_KEY = 163;\nexports.HA_ERR_TABLE_NEEDS_UPGRADE = 164;\nexports.HA_ERR_TABLE_READONLY = 165;\nexports.HA_ERR_AUTOINC_READ_FAILED = 166;\nexports.HA_ERR_AUTOINC_ERANGE = 167;\nexports.HA_ERR_GENERIC = 168;\nexports.HA_ERR_RECORD_IS_THE_SAME = 169;\nexports.HA_ERR_LOGGING_IMPOSSIBLE = 170;\nexports.HA_ERR_CORRUPT_EVENT = 171;\nexports.HA_ERR_NEW_FILE = 172;\nexports.HA_ERR_ROWS_EVENT_APPLY = 173;\nexports.HA_ERR_INITIALIZATION = 174;\nexports.HA_ERR_FILE_TOO_SHORT = 175;\nexports.HA_ERR_WRONG_CRC = 176;\nexports.HA_ERR_TOO_MANY_CONCURRENT_TRXS = 177;\nexports.HA_ERR_NOT_IN_LOCK_PARTITIONS = 178;\nexports.HA_ERR_INDEX_COL_TOO_LONG = 179;\nexports.HA_ERR_INDEX_CORRUPT = 180;\nexports.HA_ERR_UNDO_REC_TOO_BIG = 181;\nexports.HA_FTS_INVALID_DOCID = 182;\nexports.HA_ERR_TABLE_IN_FK_CHECK = 183;\nexports.HA_ERR_TABLESPACE_EXISTS = 184;\nexports.HA_ERR_TOO_MANY_FIELDS = 185;\nexports.HA_ERR_ROW_IN_WRONG_PARTITION = 186;\nexports.HA_ERR_INNODB_READ_ONLY = 187;\nexports.HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT = 188;\nexports.HA_ERR_TEMP_FILE_WRITE_FAILURE = 189;\nexports.HA_ERR_INNODB_FORCED_RECOVERY = 190;\nexports.HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE = 191;\nexports.ER_HASHCHK = 1000;\nexports.ER_NISAMCHK = 1001;\nexports.ER_NO = 1002;\nexports.ER_YES = 1003;\nexports.ER_CANT_CREATE_FILE = 1004;\nexports.ER_CANT_CREATE_TABLE = 1005;\nexports.ER_CANT_CREATE_DB = 1006;\nexports.ER_DB_CREATE_EXISTS = 1007;\nexports.ER_DB_DROP_EXISTS = 1008;\nexports.ER_DB_DROP_DELETE = 1009;\nexports.ER_DB_DROP_RMDIR = 1010;\nexports.ER_CANT_DELETE_FILE = 1011;\nexports.ER_CANT_FIND_SYSTEM_REC = 1012;\nexports.ER_CANT_GET_STAT = 1013;\nexports.ER_CANT_GET_WD = 1014;\nexports.ER_CANT_LOCK = 1015;\nexports.ER_CANT_OPEN_FILE = 1016;\nexports.ER_FILE_NOT_FOUND = 1017;\nexports.ER_CANT_READ_DIR = 1018;\nexports.ER_CANT_SET_WD = 1019;\nexports.ER_CHECKREAD = 1020;\nexports.ER_DISK_FULL = 1021;\nexports.ER_DUP_KEY = 1022;\nexports.ER_ERROR_ON_CLOSE = 1023;\nexports.ER_ERROR_ON_READ = 1024;\nexports.ER_ERROR_ON_RENAME = 1025;\nexports.ER_ERROR_ON_WRITE = 1026;\nexports.ER_FILE_USED = 1027;\nexports.ER_FILSORT_ABORT = 1028;\nexports.ER_FORM_NOT_FOUND = 1029;\nexports.ER_GET_ERRNO = 1030;\nexports.ER_ILLEGAL_HA = 1031;\nexports.ER_KEY_NOT_FOUND = 1032;\nexports.ER_NOT_FORM_FILE = 1033;\nexports.ER_NOT_KEYFILE = 1034;\nexports.ER_OLD_KEYFILE = 1035;\nexports.ER_OPEN_AS_READONLY = 1036;\nexports.ER_OUTOFMEMORY = 1037;\nexports.ER_OUT_OF_SORTMEMORY = 1038;\nexports.ER_UNEXPECTED_EOF = 1039;\nexports.ER_CON_COUNT_ERROR = 1040;\nexports.ER_OUT_OF_RESOURCES = 1041;\nexports.ER_BAD_HOST_ERROR = 1042;\nexports.ER_HANDSHAKE_ERROR = 1043;\nexports.ER_DBACCESS_DENIED_ERROR = 1044;\nexports.ER_ACCESS_DENIED_ERROR = 1045;\nexports.ER_NO_DB_ERROR = 1046;\nexports.ER_UNKNOWN_COM_ERROR = 1047;\nexports.ER_BAD_NULL_ERROR = 1048;\nexports.ER_BAD_DB_ERROR = 1049;\nexports.ER_TABLE_EXISTS_ERROR = 1050;\nexports.ER_BAD_TABLE_ERROR = 1051;\nexports.ER_NON_UNIQ_ERROR = 1052;\nexports.ER_SERVER_SHUTDOWN = 1053;\nexports.ER_BAD_FIELD_ERROR = 1054;\nexports.ER_WRONG_FIELD_WITH_GROUP = 1055;\nexports.ER_WRONG_GROUP_FIELD = 1056;\nexports.ER_WRONG_SUM_SELECT = 1057;\nexports.ER_WRONG_VALUE_COUNT = 1058;\nexports.ER_TOO_LONG_IDENT = 1059;\nexports.ER_DUP_FIELDNAME = 1060;\nexports.ER_DUP_KEYNAME = 1061;\nexports.ER_DUP_ENTRY = 1062;\nexports.ER_WRONG_FIELD_SPEC = 1063;\nexports.ER_PARSE_ERROR = 1064;\nexports.ER_EMPTY_QUERY = 1065;\nexports.ER_NONUNIQ_TABLE = 1066;\nexports.ER_INVALID_DEFAULT = 1067;\nexports.ER_MULTIPLE_PRI_KEY = 1068;\nexports.ER_TOO_MANY_KEYS = 1069;\nexports.ER_TOO_MANY_KEY_PARTS = 1070;\nexports.ER_TOO_LONG_KEY = 1071;\nexports.ER_KEY_COLUMN_DOES_NOT_EXITS = 1072;\nexports.ER_BLOB_USED_AS_KEY = 1073;\nexports.ER_TOO_BIG_FIELDLENGTH = 1074;\nexports.ER_WRONG_AUTO_KEY = 1075;\nexports.ER_READY = 1076;\nexports.ER_NORMAL_SHUTDOWN = 1077;\nexports.ER_GOT_SIGNAL = 1078;\nexports.ER_SHUTDOWN_COMPLETE = 1079;\nexports.ER_FORCING_CLOSE = 1080;\nexports.ER_IPSOCK_ERROR = 1081;\nexports.ER_NO_SUCH_INDEX = 1082;\nexports.ER_WRONG_FIELD_TERMINATORS = 1083;\nexports.ER_BLOBS_AND_NO_TERMINATED = 1084;\nexports.ER_TEXTFILE_NOT_READABLE = 1085;\nexports.ER_FILE_EXISTS_ERROR = 1086;\nexports.ER_LOAD_INFO = 1087;\nexports.ER_ALTER_INFO = 1088;\nexports.ER_WRONG_SUB_KEY = 1089;\nexports.ER_CANT_REMOVE_ALL_FIELDS = 1090;\nexports.ER_CANT_DROP_FIELD_OR_KEY = 1091;\nexports.ER_INSERT_INFO = 1092;\nexports.ER_UPDATE_TABLE_USED = 1093;\nexports.ER_NO_SUCH_THREAD = 1094;\nexports.ER_KILL_DENIED_ERROR = 1095;\nexports.ER_NO_TABLES_USED = 1096;\nexports.ER_TOO_BIG_SET = 1097;\nexports.ER_NO_UNIQUE_LOGFILE = 1098;\nexports.ER_TABLE_NOT_LOCKED_FOR_WRITE = 1099;\nexports.ER_TABLE_NOT_LOCKED = 1100;\nexports.ER_BLOB_CANT_HAVE_DEFAULT = 1101;\nexports.ER_WRONG_DB_NAME = 1102;\nexports.ER_WRONG_TABLE_NAME = 1103;\nexports.ER_TOO_BIG_SELECT = 1104;\nexports.ER_UNKNOWN_ERROR = 1105;\nexports.ER_UNKNOWN_PROCEDURE = 1106;\nexports.ER_WRONG_PARAMCOUNT_TO_PROCEDURE = 1107;\nexports.ER_WRONG_PARAMETERS_TO_PROCEDURE = 1108;\nexports.ER_UNKNOWN_TABLE = 1109;\nexports.ER_FIELD_SPECIFIED_TWICE = 1110;\nexports.ER_INVALID_GROUP_FUNC_USE = 1111;\nexports.ER_UNSUPPORTED_EXTENSION = 1112;\nexports.ER_TABLE_MUST_HAVE_COLUMNS = 1113;\nexports.ER_RECORD_FILE_FULL = 1114;\nexports.ER_UNKNOWN_CHARACTER_SET = 1115;\nexports.ER_TOO_MANY_TABLES = 1116;\nexports.ER_TOO_MANY_FIELDS = 1117;\nexports.ER_TOO_BIG_ROWSIZE = 1118;\nexports.ER_STACK_OVERRUN = 1119;\nexports.ER_WRONG_OUTER_JOIN = 1120;\nexports.ER_NULL_COLUMN_IN_INDEX = 1121;\nexports.ER_CANT_FIND_UDF = 1122;\nexports.ER_CANT_INITIALIZE_UDF = 1123;\nexports.ER_UDF_NO_PATHS = 1124;\nexports.ER_UDF_EXISTS = 1125;\nexports.ER_CANT_OPEN_LIBRARY = 1126;\nexports.ER_CANT_FIND_DL_ENTRY = 1127;\nexports.ER_FUNCTION_NOT_DEFINED = 1128;\nexports.ER_HOST_IS_BLOCKED = 1129;\nexports.ER_HOST_NOT_PRIVILEGED = 1130;\nexports.ER_PASSWORD_ANONYMOUS_USER = 1131;\nexports.ER_PASSWORD_NOT_ALLOWED = 1132;\nexports.ER_PASSWORD_NO_MATCH = 1133;\nexports.ER_UPDATE_INFO = 1134;\nexports.ER_CANT_CREATE_THREAD = 1135;\nexports.ER_WRONG_VALUE_COUNT_ON_ROW = 1136;\nexports.ER_CANT_REOPEN_TABLE = 1137;\nexports.ER_INVALID_USE_OF_NULL = 1138;\nexports.ER_REGEXP_ERROR = 1139;\nexports.ER_MIX_OF_GROUP_FUNC_AND_FIELDS = 1140;\nexports.ER_NONEXISTING_GRANT = 1141;\nexports.ER_TABLEACCESS_DENIED_ERROR = 1142;\nexports.ER_COLUMNACCESS_DENIED_ERROR = 1143;\nexports.ER_ILLEGAL_GRANT_FOR_TABLE = 1144;\nexports.ER_GRANT_WRONG_HOST_OR_USER = 1145;\nexports.ER_NO_SUCH_TABLE = 1146;\nexports.ER_NONEXISTING_TABLE_GRANT = 1147;\nexports.ER_NOT_ALLOWED_COMMAND = 1148;\nexports.ER_SYNTAX_ERROR = 1149;\nexports.ER_DELAYED_CANT_CHANGE_LOCK = 1150;\nexports.ER_TOO_MANY_DELAYED_THREADS = 1151;\nexports.ER_ABORTING_CONNECTION = 1152;\nexports.ER_NET_PACKET_TOO_LARGE = 1153;\nexports.ER_NET_READ_ERROR_FROM_PIPE = 1154;\nexports.ER_NET_FCNTL_ERROR = 1155;\nexports.ER_NET_PACKETS_OUT_OF_ORDER = 1156;\nexports.ER_NET_UNCOMPRESS_ERROR = 1157;\nexports.ER_NET_READ_ERROR = 1158;\nexports.ER_NET_READ_INTERRUPTED = 1159;\nexports.ER_NET_ERROR_ON_WRITE = 1160;\nexports.ER_NET_WRITE_INTERRUPTED = 1161;\nexports.ER_TOO_LONG_STRING = 1162;\nexports.ER_TABLE_CANT_HANDLE_BLOB = 1163;\nexports.ER_TABLE_CANT_HANDLE_AUTO_INCREMENT = 1164;\nexports.ER_DELAYED_INSERT_TABLE_LOCKED = 1165;\nexports.ER_WRONG_COLUMN_NAME = 1166;\nexports.ER_WRONG_KEY_COLUMN = 1167;\nexports.ER_WRONG_MRG_TABLE = 1168;\nexports.ER_DUP_UNIQUE = 1169;\nexports.ER_BLOB_KEY_WITHOUT_LENGTH = 1170;\nexports.ER_PRIMARY_CANT_HAVE_NULL = 1171;\nexports.ER_TOO_MANY_ROWS = 1172;\nexports.ER_REQUIRES_PRIMARY_KEY = 1173;\nexports.ER_NO_RAID_COMPILED = 1174;\nexports.ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE = 1175;\nexports.ER_KEY_DOES_NOT_EXITS = 1176;\nexports.ER_CHECK_NO_SUCH_TABLE = 1177;\nexports.ER_CHECK_NOT_IMPLEMENTED = 1178;\nexports.ER_CANT_DO_THIS_DURING_AN_TRANSACTION = 1179;\nexports.ER_ERROR_DURING_COMMIT = 1180;\nexports.ER_ERROR_DURING_ROLLBACK = 1181;\nexports.ER_ERROR_DURING_FLUSH_LOGS = 1182;\nexports.ER_ERROR_DURING_CHECKPOINT = 1183;\nexports.ER_NEW_ABORTING_CONNECTION = 1184;\nexports.ER_DUMP_NOT_IMPLEMENTED = 1185;\nexports.ER_FLUSH_MASTER_BINLOG_CLOSED = 1186; // deprecated\nexports.ER_FLUSH_SOURCE_BINLOG_CLOSED = 1186;\nexports.ER_INDEX_REBUILD = 1187;\nexports.ER_MASTER = 1188; // deprecated\nexports.ER_SOURCE = 1188;\nexports.ER_MASTER_NET_READ = 1189; // deprecated\nexports.ER_SOURCE_NET_READ = 1189;\nexports.ER_MASTER_NET_WRITE = 1190; // deprecated\nexports.ER_SOURCE_NET_WRITE = 1190;\nexports.ER_FT_MATCHING_KEY_NOT_FOUND = 1191;\nexports.ER_LOCK_OR_ACTIVE_TRANSACTION = 1192;\nexports.ER_UNKNOWN_SYSTEM_VARIABLE = 1193;\nexports.ER_CRASHED_ON_USAGE = 1194;\nexports.ER_CRASHED_ON_REPAIR = 1195;\nexports.ER_WARNING_NOT_COMPLETE_ROLLBACK = 1196;\nexports.ER_TRANS_CACHE_FULL = 1197;\nexports.ER_SLAVE_MUST_STOP = 1198; // deprecated\nexports.ER_REPLICA_MUST_STOP = 1198;\nexports.ER_SLAVE_NOT_RUNNING = 1199; // deprecated\nexports.ER_REPLICA_NOT_RUNNING = 1199;\nexports.ER_BAD_SLAVE = 1200; // deprecated\nexports.ER_BAD_REPLICA = 1200;\nexports.ER_MASTER_INFO = 1201; // deprecated\nexports.ER_SOURCE_INFO = 1201;\nexports.ER_SLAVE_THREAD = 1202; // deprecated\nexports.ER_REPLICA_THREAD = 1202;\nexports.ER_TOO_MANY_USER_CONNECTIONS = 1203;\nexports.ER_SET_CONSTANTS_ONLY = 1204;\nexports.ER_LOCK_WAIT_TIMEOUT = 1205;\nexports.ER_LOCK_TABLE_FULL = 1206;\nexports.ER_READ_ONLY_TRANSACTION = 1207;\nexports.ER_DROP_DB_WITH_READ_LOCK = 1208;\nexports.ER_CREATE_DB_WITH_READ_LOCK = 1209;\nexports.ER_WRONG_ARGUMENTS = 1210;\nexports.ER_NO_PERMISSION_TO_CREATE_USER = 1211;\nexports.ER_UNION_TABLES_IN_DIFFERENT_DIR = 1212;\nexports.ER_LOCK_DEADLOCK = 1213;\nexports.ER_TABLE_CANT_HANDLE_FT = 1214;\nexports.ER_CANNOT_ADD_FOREIGN = 1215;\nexports.ER_NO_REFERENCED_ROW = 1216;\nexports.ER_ROW_IS_REFERENCED = 1217;\nexports.ER_CONNECT_TO_MASTER = 1218; // deprecated\nexports.ER_CONNECT_TO_SOURCE = 1218;\nexports.ER_QUERY_ON_MASTER = 1219; // deprecated\nexports.ER_QUERY_ON_SOURCE = 1219;\nexports.ER_ERROR_WHEN_EXECUTING_COMMAND = 1220;\nexports.ER_WRONG_USAGE = 1221;\nexports.ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT = 1222;\nexports.ER_CANT_UPDATE_WITH_READLOCK = 1223;\nexports.ER_MIXING_NOT_ALLOWED = 1224;\nexports.ER_DUP_ARGUMENT = 1225;\nexports.ER_USER_LIMIT_REACHED = 1226;\nexports.ER_SPECIFIC_ACCESS_DENIED_ERROR = 1227;\nexports.ER_LOCAL_VARIABLE = 1228;\nexports.ER_GLOBAL_VARIABLE = 1229;\nexports.ER_NO_DEFAULT = 1230;\nexports.ER_WRONG_VALUE_FOR_VAR = 1231;\nexports.ER_WRONG_TYPE_FOR_VAR = 1232;\nexports.ER_VAR_CANT_BE_READ = 1233;\nexports.ER_CANT_USE_OPTION_HERE = 1234;\nexports.ER_NOT_SUPPORTED_YET = 1235;\nexports.ER_MASTER_FATAL_ERROR_READING_BINLOG = 1236; // deprecated\nexports.ER_SOURCE_FATAL_ERROR_READING_BINLOG = 1236;\nexports.ER_SLAVE_IGNORED_TABLE = 1237; // deprecated\nexports.ER_REPLICA_IGNORED_TABLE = 1237;\nexports.ER_INCORRECT_GLOBAL_LOCAL_VAR = 1238;\nexports.ER_WRONG_FK_DEF = 1239;\nexports.ER_KEY_REF_DO_NOT_MATCH_TABLE_REF = 1240;\nexports.ER_OPERAND_COLUMNS = 1241;\nexports.ER_SUBQUERY_NO_1_ROW = 1242;\nexports.ER_UNKNOWN_STMT_HANDLER = 1243;\nexports.ER_CORRUPT_HELP_DB = 1244;\nexports.ER_CYCLIC_REFERENCE = 1245;\nexports.ER_AUTO_CONVERT = 1246;\nexports.ER_ILLEGAL_REFERENCE = 1247;\nexports.ER_DERIVED_MUST_HAVE_ALIAS = 1248;\nexports.ER_SELECT_REDUCED = 1249;\nexports.ER_TABLENAME_NOT_ALLOWED_HERE = 1250;\nexports.ER_NOT_SUPPORTED_AUTH_MODE = 1251;\nexports.ER_SPATIAL_CANT_HAVE_NULL = 1252;\nexports.ER_COLLATION_CHARSET_MISMATCH = 1253;\nexports.ER_SLAVE_WAS_RUNNING = 1254; // deprecated\nexports.ER_REPLICA_WAS_RUNNING = 1254;\nexports.ER_SLAVE_WAS_NOT_RUNNING = 1255; // deprecated\nexports.ER_REPLICA_WAS_NOT_RUNNING = 1255;\nexports.ER_TOO_BIG_FOR_UNCOMPRESS = 1256;\nexports.ER_ZLIB_Z_MEM_ERROR = 1257;\nexports.ER_ZLIB_Z_BUF_ERROR = 1258;\nexports.ER_ZLIB_Z_DATA_ERROR = 1259;\nexports.ER_CUT_VALUE_GROUP_CONCAT = 1260;\nexports.ER_WARN_TOO_FEW_RECORDS = 1261;\nexports.ER_WARN_TOO_MANY_RECORDS = 1262;\nexports.ER_WARN_NULL_TO_NOTNULL = 1263;\nexports.ER_WARN_DATA_OUT_OF_RANGE = 1264;\nexports.ER_WARN_DATA_TRUNCATED = 1265;\nexports.ER_WARN_USING_OTHER_HANDLER = 1266;\nexports.ER_CANT_AGGREGATE_2COLLATIONS = 1267;\nexports.ER_DROP_USER = 1268;\nexports.ER_REVOKE_GRANTS = 1269;\nexports.ER_CANT_AGGREGATE_3COLLATIONS = 1270;\nexports.ER_CANT_AGGREGATE_NCOLLATIONS = 1271;\nexports.ER_VARIABLE_IS_NOT_STRUCT = 1272;\nexports.ER_UNKNOWN_COLLATION = 1273;\nexports.ER_SLAVE_IGNORED_SSL_PARAMS = 1274; // deprecated\nexports.ER_REPLICA_IGNORED_SSL_PARAMS = 1274;\nexports.ER_SERVER_IS_IN_SECURE_AUTH_MODE = 1275;\nexports.ER_WARN_FIELD_RESOLVED = 1276;\nexports.ER_BAD_SLAVE_UNTIL_COND = 1277; // deprecated\nexports.ER_BAD_REPLICA_UNTIL_COND = 1277;\nexports.ER_MISSING_SKIP_SLAVE = 1278; // deprecated\nexports.ER_MISSING_SKIP_REPLICA = 1278;\nexports.ER_UNTIL_COND_IGNORED = 1279;\nexports.ER_WRONG_NAME_FOR_INDEX = 1280;\nexports.ER_WRONG_NAME_FOR_CATALOG = 1281;\nexports.ER_WARN_QC_RESIZE = 1282;\nexports.ER_BAD_FT_COLUMN = 1283;\nexports.ER_UNKNOWN_KEY_CACHE = 1284;\nexports.ER_WARN_HOSTNAME_WONT_WORK = 1285;\nexports.ER_UNKNOWN_STORAGE_ENGINE = 1286;\nexports.ER_WARN_DEPRECATED_SYNTAX = 1287;\nexports.ER_NON_UPDATABLE_TABLE = 1288;\nexports.ER_FEATURE_DISABLED = 1289;\nexports.ER_OPTION_PREVENTS_STATEMENT = 1290;\nexports.ER_DUPLICATED_VALUE_IN_TYPE = 1291;\nexports.ER_TRUNCATED_WRONG_VALUE = 1292;\nexports.ER_TOO_MUCH_AUTO_TIMESTAMP_COLS = 1293;\nexports.ER_INVALID_ON_UPDATE = 1294;\nexports.ER_UNSUPPORTED_PS = 1295;\nexports.ER_GET_ERRMSG = 1296;\nexports.ER_GET_TEMPORARY_ERRMSG = 1297;\nexports.ER_UNKNOWN_TIME_ZONE = 1298;\nexports.ER_WARN_INVALID_TIMESTAMP = 1299;\nexports.ER_INVALID_CHARACTER_STRING = 1300;\nexports.ER_WARN_ALLOWED_PACKET_OVERFLOWED = 1301;\nexports.ER_CONFLICTING_DECLARATIONS = 1302;\nexports.ER_SP_NO_RECURSIVE_CREATE = 1303;\nexports.ER_SP_ALREADY_EXISTS = 1304;\nexports.ER_SP_DOES_NOT_EXIST = 1305;\nexports.ER_SP_DROP_FAILED = 1306;\nexports.ER_SP_STORE_FAILED = 1307;\nexports.ER_SP_LILABEL_MISMATCH = 1308;\nexports.ER_SP_LABEL_REDEFINE = 1309;\nexports.ER_SP_LABEL_MISMATCH = 1310;\nexports.ER_SP_UNINIT_VAR = 1311;\nexports.ER_SP_BADSELECT = 1312;\nexports.ER_SP_BADRETURN = 1313;\nexports.ER_SP_BADSTATEMENT = 1314;\nexports.ER_UPDATE_LOG_DEPRECATED_IGNORED = 1315;\nexports.ER_UPDATE_LOG_DEPRECATED_TRANSLATED = 1316;\nexports.ER_QUERY_INTERRUPTED = 1317;\nexports.ER_SP_WRONG_NO_OF_ARGS = 1318;\nexports.ER_SP_COND_MISMATCH = 1319;\nexports.ER_SP_NORETURN = 1320;\nexports.ER_SP_NORETURNEND = 1321;\nexports.ER_SP_BAD_CURSOR_QUERY = 1322;\nexports.ER_SP_BAD_CURSOR_SELECT = 1323;\nexports.ER_SP_CURSOR_MISMATCH = 1324;\nexports.ER_SP_CURSOR_ALREADY_OPEN = 1325;\nexports.ER_SP_CURSOR_NOT_OPEN = 1326;\nexports.ER_SP_UNDECLARED_VAR = 1327;\nexports.ER_SP_WRONG_NO_OF_FETCH_ARGS = 1328;\nexports.ER_SP_FETCH_NO_DATA = 1329;\nexports.ER_SP_DUP_PARAM = 1330;\nexports.ER_SP_DUP_VAR = 1331;\nexports.ER_SP_DUP_COND = 1332;\nexports.ER_SP_DUP_CURS = 1333;\nexports.ER_SP_CANT_ALTER = 1334;\nexports.ER_SP_SUBSELECT_NYI = 1335;\nexports.ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG = 1336;\nexports.ER_SP_VARCOND_AFTER_CURSHNDLR = 1337;\nexports.ER_SP_CURSOR_AFTER_HANDLER = 1338;\nexports.ER_SP_CASE_NOT_FOUND = 1339;\nexports.ER_FPARSER_TOO_BIG_FILE = 1340;\nexports.ER_FPARSER_BAD_HEADER = 1341;\nexports.ER_FPARSER_EOF_IN_COMMENT = 1342;\nexports.ER_FPARSER_ERROR_IN_PARAMETER = 1343;\nexports.ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER = 1344;\nexports.ER_VIEW_NO_EXPLAIN = 1345;\nexports.ER_FRM_UNKNOWN_TYPE = 1346;\nexports.ER_WRONG_OBJECT = 1347;\nexports.ER_NONUPDATEABLE_COLUMN = 1348;\nexports.ER_VIEW_SELECT_DERIVED = 1349;\nexports.ER_VIEW_SELECT_CLAUSE = 1350;\nexports.ER_VIEW_SELECT_VARIABLE = 1351;\nexports.ER_VIEW_SELECT_TMPTABLE = 1352;\nexports.ER_VIEW_WRONG_LIST = 1353;\nexports.ER_WARN_VIEW_MERGE = 1354;\nexports.ER_WARN_VIEW_WITHOUT_KEY = 1355;\nexports.ER_VIEW_INVALID = 1356;\nexports.ER_SP_NO_DROP_SP = 1357;\nexports.ER_SP_GOTO_IN_HNDLR = 1358;\nexports.ER_TRG_ALREADY_EXISTS = 1359;\nexports.ER_TRG_DOES_NOT_EXIST = 1360;\nexports.ER_TRG_ON_VIEW_OR_TEMP_TABLE = 1361;\nexports.ER_TRG_CANT_CHANGE_ROW = 1362;\nexports.ER_TRG_NO_SUCH_ROW_IN_TRG = 1363;\nexports.ER_NO_DEFAULT_FOR_FIELD = 1364;\nexports.ER_DIVISION_BY_ZERO = 1365;\nexports.ER_TRUNCATED_WRONG_VALUE_FOR_FIELD = 1366;\nexports.ER_ILLEGAL_VALUE_FOR_TYPE = 1367;\nexports.ER_VIEW_NONUPD_CHECK = 1368;\nexports.ER_VIEW_CHECK_FAILED = 1369;\nexports.ER_PROCACCESS_DENIED_ERROR = 1370;\nexports.ER_RELAY_LOG_FAIL = 1371;\nexports.ER_PASSWD_LENGTH = 1372;\nexports.ER_UNKNOWN_TARGET_BINLOG = 1373;\nexports.ER_IO_ERR_LOG_INDEX_READ = 1374;\nexports.ER_BINLOG_PURGE_PROHIBITED = 1375;\nexports.ER_FSEEK_FAIL = 1376;\nexports.ER_BINLOG_PURGE_FATAL_ERR = 1377;\nexports.ER_LOG_IN_USE = 1378;\nexports.ER_LOG_PURGE_UNKNOWN_ERR = 1379;\nexports.ER_RELAY_LOG_INIT = 1380;\nexports.ER_NO_BINARY_LOGGING = 1381;\nexports.ER_RESERVED_SYNTAX = 1382;\nexports.ER_WSAS_FAILED = 1383;\nexports.ER_DIFF_GROUPS_PROC = 1384;\nexports.ER_NO_GROUP_FOR_PROC = 1385;\nexports.ER_ORDER_WITH_PROC = 1386;\nexports.ER_LOGGING_PROHIBIT_CHANGING_OF = 1387;\nexports.ER_NO_FILE_MAPPING = 1388;\nexports.ER_WRONG_MAGIC = 1389;\nexports.ER_PS_MANY_PARAM = 1390;\nexports.ER_KEY_PART_0 = 1391;\nexports.ER_VIEW_CHECKSUM = 1392;\nexports.ER_VIEW_MULTIUPDATE = 1393;\nexports.ER_VIEW_NO_INSERT_FIELD_LIST = 1394;\nexports.ER_VIEW_DELETE_MERGE_VIEW = 1395;\nexports.ER_CANNOT_USER = 1396;\nexports.ER_XAER_NOTA = 1397;\nexports.ER_XAER_INVAL = 1398;\nexports.ER_XAER_RMFAIL = 1399;\nexports.ER_XAER_OUTSIDE = 1400;\nexports.ER_XAER_RMERR = 1401;\nexports.ER_XA_RBROLLBACK = 1402;\nexports.ER_NONEXISTING_PROC_GRANT = 1403;\nexports.ER_PROC_AUTO_GRANT_FAIL = 1404;\nexports.ER_PROC_AUTO_REVOKE_FAIL = 1405;\nexports.ER_DATA_TOO_LONG = 1406;\nexports.ER_SP_BAD_SQLSTATE = 1407;\nexports.ER_STARTUP = 1408;\nexports.ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR = 1409;\nexports.ER_CANT_CREATE_USER_WITH_GRANT = 1410;\nexports.ER_WRONG_VALUE_FOR_TYPE = 1411;\nexports.ER_TABLE_DEF_CHANGED = 1412;\nexports.ER_SP_DUP_HANDLER = 1413;\nexports.ER_SP_NOT_VAR_ARG = 1414;\nexports.ER_SP_NO_RETSET = 1415;\nexports.ER_CANT_CREATE_GEOMETRY_OBJECT = 1416;\nexports.ER_FAILED_ROUTINE_BREAK_BINLOG = 1417;\nexports.ER_BINLOG_UNSAFE_ROUTINE = 1418;\nexports.ER_BINLOG_CREATE_ROUTINE_NEED_SUPER = 1419;\nexports.ER_EXEC_STMT_WITH_OPEN_CURSOR = 1420;\nexports.ER_STMT_HAS_NO_OPEN_CURSOR = 1421;\nexports.ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG = 1422;\nexports.ER_NO_DEFAULT_FOR_VIEW_FIELD = 1423;\nexports.ER_SP_NO_RECURSION = 1424;\nexports.ER_TOO_BIG_SCALE = 1425;\nexports.ER_TOO_BIG_PRECISION = 1426;\nexports.ER_M_BIGGER_THAN_D = 1427;\nexports.ER_WRONG_LOCK_OF_SYSTEM_TABLE = 1428;\nexports.ER_CONNECT_TO_FOREIGN_DATA_SOURCE = 1429;\nexports.ER_QUERY_ON_FOREIGN_DATA_SOURCE = 1430;\nexports.ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST = 1431;\nexports.ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE = 1432;\nexports.ER_FOREIGN_DATA_STRING_INVALID = 1433;\nexports.ER_CANT_CREATE_FEDERATED_TABLE = 1434;\nexports.ER_TRG_IN_WRONG_SCHEMA = 1435;\nexports.ER_STACK_OVERRUN_NEED_MORE = 1436;\nexports.ER_TOO_LONG_BODY = 1437;\nexports.ER_WARN_CANT_DROP_DEFAULT_KEYCACHE = 1438;\nexports.ER_TOO_BIG_DISPLAYWIDTH = 1439;\nexports.ER_XAER_DUPID = 1440;\nexports.ER_DATETIME_FUNCTION_OVERFLOW = 1441;\nexports.ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG = 1442;\nexports.ER_VIEW_PREVENT_UPDATE = 1443;\nexports.ER_PS_NO_RECURSION = 1444;\nexports.ER_SP_CANT_SET_AUTOCOMMIT = 1445;\nexports.ER_MALFORMED_DEFINER = 1446;\nexports.ER_VIEW_FRM_NO_USER = 1447;\nexports.ER_VIEW_OTHER_USER = 1448;\nexports.ER_NO_SUCH_USER = 1449;\nexports.ER_FORBID_SCHEMA_CHANGE = 1450;\nexports.ER_ROW_IS_REFERENCED_2 = 1451;\nexports.ER_NO_REFERENCED_ROW_2 = 1452;\nexports.ER_SP_BAD_VAR_SHADOW = 1453;\nexports.ER_TRG_NO_DEFINER = 1454;\nexports.ER_OLD_FILE_FORMAT = 1455;\nexports.ER_SP_RECURSION_LIMIT = 1456;\nexports.ER_SP_PROC_TABLE_CORRUPT = 1457;\nexports.ER_SP_WRONG_NAME = 1458;\nexports.ER_TABLE_NEEDS_UPGRADE = 1459;\nexports.ER_SP_NO_AGGREGATE = 1460;\nexports.ER_MAX_PREPARED_STMT_COUNT_REACHED = 1461;\nexports.ER_VIEW_RECURSIVE = 1462;\nexports.ER_NON_GROUPING_FIELD_USED = 1463;\nexports.ER_TABLE_CANT_HANDLE_SPKEYS = 1464;\nexports.ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA = 1465;\nexports.ER_REMOVED_SPACES = 1466;\nexports.ER_AUTOINC_READ_FAILED = 1467;\nexports.ER_USERNAME = 1468;\nexports.ER_HOSTNAME = 1469;\nexports.ER_WRONG_STRING_LENGTH = 1470;\nexports.ER_NON_INSERTABLE_TABLE = 1471;\nexports.ER_ADMIN_WRONG_MRG_TABLE = 1472;\nexports.ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT = 1473;\nexports.ER_NAME_BECOMES_EMPTY = 1474;\nexports.ER_AMBIGUOUS_FIELD_TERM = 1475;\nexports.ER_FOREIGN_SERVER_EXISTS = 1476;\nexports.ER_FOREIGN_SERVER_DOESNT_EXIST = 1477;\nexports.ER_ILLEGAL_HA_CREATE_OPTION = 1478;\nexports.ER_PARTITION_REQUIRES_VALUES_ERROR = 1479;\nexports.ER_PARTITION_WRONG_VALUES_ERROR = 1480;\nexports.ER_PARTITION_MAXVALUE_ERROR = 1481;\nexports.ER_PARTITION_SUBPARTITION_ERROR = 1482;\nexports.ER_PARTITION_SUBPART_MIX_ERROR = 1483;\nexports.ER_PARTITION_WRONG_NO_PART_ERROR = 1484;\nexports.ER_PARTITION_WRONG_NO_SUBPART_ERROR = 1485;\nexports.ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR = 1486;\nexports.ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR = 1487;\nexports.ER_FIELD_NOT_FOUND_PART_ERROR = 1488;\nexports.ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR = 1489;\nexports.ER_INCONSISTENT_PARTITION_INFO_ERROR = 1490;\nexports.ER_PARTITION_FUNC_NOT_ALLOWED_ERROR = 1491;\nexports.ER_PARTITIONS_MUST_BE_DEFINED_ERROR = 1492;\nexports.ER_RANGE_NOT_INCREASING_ERROR = 1493;\nexports.ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR = 1494;\nexports.ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR = 1495;\nexports.ER_PARTITION_ENTRY_ERROR = 1496;\nexports.ER_MIX_HANDLER_ERROR = 1497;\nexports.ER_PARTITION_NOT_DEFINED_ERROR = 1498;\nexports.ER_TOO_MANY_PARTITIONS_ERROR = 1499;\nexports.ER_SUBPARTITION_ERROR = 1500;\nexports.ER_CANT_CREATE_HANDLER_FILE = 1501;\nexports.ER_BLOB_FIELD_IN_PART_FUNC_ERROR = 1502;\nexports.ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF = 1503;\nexports.ER_NO_PARTS_ERROR = 1504;\nexports.ER_PARTITION_MGMT_ON_NONPARTITIONED = 1505;\nexports.ER_FOREIGN_KEY_ON_PARTITIONED = 1506;\nexports.ER_DROP_PARTITION_NON_EXISTENT = 1507;\nexports.ER_DROP_LAST_PARTITION = 1508;\nexports.ER_COALESCE_ONLY_ON_HASH_PARTITION = 1509;\nexports.ER_REORG_HASH_ONLY_ON_SAME_NO = 1510;\nexports.ER_REORG_NO_PARAM_ERROR = 1511;\nexports.ER_ONLY_ON_RANGE_LIST_PARTITION = 1512;\nexports.ER_ADD_PARTITION_SUBPART_ERROR = 1513;\nexports.ER_ADD_PARTITION_NO_NEW_PARTITION = 1514;\nexports.ER_COALESCE_PARTITION_NO_PARTITION = 1515;\nexports.ER_REORG_PARTITION_NOT_EXIST = 1516;\nexports.ER_SAME_NAME_PARTITION = 1517;\nexports.ER_NO_BINLOG_ERROR = 1518;\nexports.ER_CONSECUTIVE_REORG_PARTITIONS = 1519;\nexports.ER_REORG_OUTSIDE_RANGE = 1520;\nexports.ER_PARTITION_FUNCTION_FAILURE = 1521;\nexports.ER_PART_STATE_ERROR = 1522;\nexports.ER_LIMITED_PART_RANGE = 1523;\nexports.ER_PLUGIN_IS_NOT_LOADED = 1524;\nexports.ER_WRONG_VALUE = 1525;\nexports.ER_NO_PARTITION_FOR_GIVEN_VALUE = 1526;\nexports.ER_FILEGROUP_OPTION_ONLY_ONCE = 1527;\nexports.ER_CREATE_FILEGROUP_FAILED = 1528;\nexports.ER_DROP_FILEGROUP_FAILED = 1529;\nexports.ER_TABLESPACE_AUTO_EXTEND_ERROR = 1530;\nexports.ER_WRONG_SIZE_NUMBER = 1531;\nexports.ER_SIZE_OVERFLOW_ERROR = 1532;\nexports.ER_ALTER_FILEGROUP_FAILED = 1533;\nexports.ER_BINLOG_ROW_LOGGING_FAILED = 1534;\nexports.ER_BINLOG_ROW_WRONG_TABLE_DEF = 1535;\nexports.ER_BINLOG_ROW_RBR_TO_SBR = 1536;\nexports.ER_EVENT_ALREADY_EXISTS = 1537;\nexports.ER_EVENT_STORE_FAILED = 1538;\nexports.ER_EVENT_DOES_NOT_EXIST = 1539;\nexports.ER_EVENT_CANT_ALTER = 1540;\nexports.ER_EVENT_DROP_FAILED = 1541;\nexports.ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG = 1542;\nexports.ER_EVENT_ENDS_BEFORE_STARTS = 1543;\nexports.ER_EVENT_EXEC_TIME_IN_THE_PAST = 1544;\nexports.ER_EVENT_OPEN_TABLE_FAILED = 1545;\nexports.ER_EVENT_NEITHER_M_EXPR_NOR_M_AT = 1546;\nexports.ER_COL_COUNT_DOESNT_MATCH_CORRUPTED = 1547;\nexports.ER_CANNOT_LOAD_FROM_TABLE = 1548;\nexports.ER_EVENT_CANNOT_DELETE = 1549;\nexports.ER_EVENT_COMPILE_ERROR = 1550;\nexports.ER_EVENT_SAME_NAME = 1551;\nexports.ER_EVENT_DATA_TOO_LONG = 1552;\nexports.ER_DROP_INDEX_FK = 1553;\nexports.ER_WARN_DEPRECATED_SYNTAX_WITH_VER = 1554;\nexports.ER_CANT_WRITE_LOCK_LOG_TABLE = 1555;\nexports.ER_CANT_LOCK_LOG_TABLE = 1556;\nexports.ER_FOREIGN_DUPLICATE_KEY = 1557;\nexports.ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE = 1558;\nexports.ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR = 1559;\nexports.ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1560;\nexports.ER_NDB_CANT_SWITCH_BINLOG_FORMAT = 1561;\nexports.ER_PARTITION_NO_TEMPORARY = 1562;\nexports.ER_PARTITION_CONST_DOMAIN_ERROR = 1563;\nexports.ER_PARTITION_FUNCTION_IS_NOT_ALLOWED = 1564;\nexports.ER_DDL_LOG_ERROR = 1565;\nexports.ER_NULL_IN_VALUES_LESS_THAN = 1566;\nexports.ER_WRONG_PARTITION_NAME = 1567;\nexports.ER_CANT_CHANGE_TX_ISOLATION = 1568;\nexports.ER_DUP_ENTRY_AUTOINCREMENT_CASE = 1569;\nexports.ER_EVENT_MODIFY_QUEUE_ERROR = 1570;\nexports.ER_EVENT_SET_VAR_ERROR = 1571;\nexports.ER_PARTITION_MERGE_ERROR = 1572;\nexports.ER_CANT_ACTIVATE_LOG = 1573;\nexports.ER_RBR_NOT_AVAILABLE = 1574;\nexports.ER_BASE64_DECODE_ERROR = 1575;\nexports.ER_EVENT_RECURSION_FORBIDDEN = 1576;\nexports.ER_EVENTS_DB_ERROR = 1577;\nexports.ER_ONLY_INTEGERS_ALLOWED = 1578;\nexports.ER_UNSUPORTED_LOG_ENGINE = 1579;\nexports.ER_BAD_LOG_STATEMENT = 1580;\nexports.ER_CANT_RENAME_LOG_TABLE = 1581;\nexports.ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT = 1582;\nexports.ER_WRONG_PARAMETERS_TO_NATIVE_FCT = 1583;\nexports.ER_WRONG_PARAMETERS_TO_STORED_FCT = 1584;\nexports.ER_NATIVE_FCT_NAME_COLLISION = 1585;\nexports.ER_DUP_ENTRY_WITH_KEY_NAME = 1586;\nexports.ER_BINLOG_PURGE_EMFILE = 1587;\nexports.ER_EVENT_CANNOT_CREATE_IN_THE_PAST = 1588;\nexports.ER_EVENT_CANNOT_ALTER_IN_THE_PAST = 1589;\nexports.ER_SLAVE_INCIDENT = 1590; // deprecated\nexports.ER_REPLICA_INCIDENT = 1590;\nexports.ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT = 1591;\nexports.ER_BINLOG_UNSAFE_STATEMENT = 1592;\nexports.ER_SLAVE_FATAL_ERROR = 1593; // deprecated\nexports.ER_REPLICA_FATAL_ERROR = 1593;\nexports.ER_SLAVE_RELAY_LOG_READ_FAILURE = 1594; //deprecated\nexports.ER_REPLICA_RELAY_LOG_READ_FAILURE = 1594;\nexports.ER_SLAVE_RELAY_LOG_WRITE_FAILURE = 1595; // deprecated\nexports.ER_REPLICA_RELAY_LOG_WRITE_FAILURE = 1595;\nexports.ER_SLAVE_CREATE_EVENT_FAILURE = 1596; // deprecated\nexports.ER_REPLICA_CREATE_EVENT_FAILURE = 1596;\nexports.ER_SLAVE_MASTER_COM_FAILURE = 1597; // deprecated\nexports.ER_REPLICA_SOURCE_COM_FAILURE = 1597;\nexports.ER_BINLOG_LOGGING_IMPOSSIBLE = 1598;\nexports.ER_VIEW_NO_CREATION_CTX = 1599;\nexports.ER_VIEW_INVALID_CREATION_CTX = 1600;\nexports.ER_SR_INVALID_CREATION_CTX = 1601;\nexports.ER_TRG_CORRUPTED_FILE = 1602;\nexports.ER_TRG_NO_CREATION_CTX = 1603;\nexports.ER_TRG_INVALID_CREATION_CTX = 1604;\nexports.ER_EVENT_INVALID_CREATION_CTX = 1605;\nexports.ER_TRG_CANT_OPEN_TABLE = 1606;\nexports.ER_CANT_CREATE_SROUTINE = 1607;\nexports.ER_NEVER_USED = 1608;\nexports.ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT = 1609;\nexports.ER_SLAVE_CORRUPT_EVENT = 1610; // deprecated\nexports.ER_REPLICA_CORRUPT_EVENT = 1610;\nexports.ER_LOAD_DATA_INVALID_COLUMN = 1611;\nexports.ER_LOG_PURGE_NO_FILE = 1612;\nexports.ER_XA_RBTIMEOUT = 1613;\nexports.ER_XA_RBDEADLOCK = 1614;\nexports.ER_NEED_REPREPARE = 1615;\nexports.ER_DELAYED_NOT_SUPPORTED = 1616;\nexports.WARN_NO_MASTER_INFO = 1617; // deprecated\nexports.WARN_NO_SOURCE_INFO = 1617;\nexports.WARN_OPTION_IGNORED = 1618;\nexports.WARN_PLUGIN_DELETE_BUILTIN = 1619;\nexports.WARN_PLUGIN_BUSY = 1620;\nexports.ER_VARIABLE_IS_READONLY = 1621;\nexports.ER_WARN_ENGINE_TRANSACTION_ROLLBACK = 1622;\nexports.ER_SLAVE_HEARTBEAT_FAILURE = 1623; // deprecated\nexports.ER_REPLICA_HEARTBEAT_FAILURE = 1623;\nexports.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE = 1624; // deprecated\nexports.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE = 1624;\nexports.ER_NDB_REPLICATION_SCHEMA_ERROR = 1625;\nexports.ER_CONFLICT_FN_PARSE_ERROR = 1626;\nexports.ER_EXCEPTIONS_WRITE_ERROR = 1627;\nexports.ER_TOO_LONG_TABLE_COMMENT = 1628;\nexports.ER_TOO_LONG_FIELD_COMMENT = 1629;\nexports.ER_FUNC_INEXISTENT_NAME_COLLISION = 1630;\nexports.ER_DATABASE_NAME = 1631;\nexports.ER_TABLE_NAME = 1632;\nexports.ER_PARTITION_NAME = 1633;\nexports.ER_SUBPARTITION_NAME = 1634;\nexports.ER_TEMPORARY_NAME = 1635;\nexports.ER_RENAMED_NAME = 1636;\nexports.ER_TOO_MANY_CONCURRENT_TRXS = 1637;\nexports.WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED = 1638;\nexports.ER_DEBUG_SYNC_TIMEOUT = 1639;\nexports.ER_DEBUG_SYNC_HIT_LIMIT = 1640;\nexports.ER_DUP_SIGNAL_SET = 1641;\nexports.ER_SIGNAL_WARN = 1642;\nexports.ER_SIGNAL_NOT_FOUND = 1643;\nexports.ER_SIGNAL_EXCEPTION = 1644;\nexports.ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER = 1645;\nexports.ER_SIGNAL_BAD_CONDITION_TYPE = 1646;\nexports.WARN_COND_ITEM_TRUNCATED = 1647;\nexports.ER_COND_ITEM_TOO_LONG = 1648;\nexports.ER_UNKNOWN_LOCALE = 1649;\nexports.ER_SLAVE_IGNORE_SERVER_IDS = 1650; // deprecated\nexports.ER_REPLICA_IGNORE_SERVER_IDS = 1650;\nexports.ER_QUERY_CACHE_DISABLED = 1651;\nexports.ER_SAME_NAME_PARTITION_FIELD = 1652;\nexports.ER_PARTITION_COLUMN_LIST_ERROR = 1653;\nexports.ER_WRONG_TYPE_COLUMN_VALUE_ERROR = 1654;\nexports.ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR = 1655;\nexports.ER_MAXVALUE_IN_VALUES_IN = 1656;\nexports.ER_TOO_MANY_VALUES_ERROR = 1657;\nexports.ER_ROW_SINGLE_PARTITION_FIELD_ERROR = 1658;\nexports.ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD = 1659;\nexports.ER_PARTITION_FIELDS_TOO_LONG = 1660;\nexports.ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE = 1661;\nexports.ER_BINLOG_ROW_MODE_AND_STMT_ENGINE = 1662;\nexports.ER_BINLOG_UNSAFE_AND_STMT_ENGINE = 1663;\nexports.ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE = 1664;\nexports.ER_BINLOG_STMT_MODE_AND_ROW_ENGINE = 1665;\nexports.ER_BINLOG_ROW_INJECTION_AND_STMT_MODE = 1666;\nexports.ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1667;\nexports.ER_BINLOG_UNSAFE_LIMIT = 1668;\nexports.ER_BINLOG_UNSAFE_INSERT_DELAYED = 1669;\nexports.ER_BINLOG_UNSAFE_SYSTEM_TABLE = 1670;\nexports.ER_BINLOG_UNSAFE_AUTOINC_COLUMNS = 1671;\nexports.ER_BINLOG_UNSAFE_UDF = 1672;\nexports.ER_BINLOG_UNSAFE_SYSTEM_VARIABLE = 1673;\nexports.ER_BINLOG_UNSAFE_SYSTEM_FUNCTION = 1674;\nexports.ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS = 1675;\nexports.ER_MESSAGE_AND_STATEMENT = 1676;\nexports.ER_SLAVE_CONVERSION_FAILED = 1677; // deprecated\nexports.ER_REPLICA_CONVERSION_FAILED = 1677;\nexports.ER_SLAVE_CANT_CREATE_CONVERSION = 1678; // deprecated\nexports.ER_REPLICA_CANT_CREATE_CONVERSION = 1678;\nexports.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1679;\nexports.ER_PATH_LENGTH = 1680;\nexports.ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT = 1681;\nexports.ER_WRONG_NATIVE_TABLE_STRUCTURE = 1682;\nexports.ER_WRONG_PERFSCHEMA_USAGE = 1683;\nexports.ER_WARN_I_S_SKIPPED_TABLE = 1684;\nexports.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1685;\nexports.ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1686;\nexports.ER_SPATIAL_MUST_HAVE_GEOM_COL = 1687;\nexports.ER_TOO_LONG_INDEX_COMMENT = 1688;\nexports.ER_LOCK_ABORTED = 1689;\nexports.ER_DATA_OUT_OF_RANGE = 1690;\nexports.ER_WRONG_SPVAR_TYPE_IN_LIMIT = 1691;\nexports.ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1692;\nexports.ER_BINLOG_UNSAFE_MIXED_STATEMENT = 1693;\nexports.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1694;\nexports.ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1695;\nexports.ER_FAILED_READ_FROM_PAR_FILE = 1696;\nexports.ER_VALUES_IS_NOT_INT_TYPE_ERROR = 1697;\nexports.ER_ACCESS_DENIED_NO_PASSWORD_ERROR = 1698;\nexports.ER_SET_PASSWORD_AUTH_PLUGIN = 1699;\nexports.ER_GRANT_PLUGIN_USER_EXISTS = 1700;\nexports.ER_TRUNCATE_ILLEGAL_FK = 1701;\nexports.ER_PLUGIN_IS_PERMANENT = 1702;\nexports.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN = 1703; // deprecated\nexports.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN = 1703;\nexports.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX = 1704; // deprecated\nexports.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX = 1704;\nexports.ER_STMT_CACHE_FULL = 1705;\nexports.ER_MULTI_UPDATE_KEY_CONFLICT = 1706;\nexports.ER_TABLE_NEEDS_REBUILD = 1707;\nexports.WARN_OPTION_BELOW_LIMIT = 1708;\nexports.ER_INDEX_COLUMN_TOO_LONG = 1709;\nexports.ER_ERROR_IN_TRIGGER_BODY = 1710;\nexports.ER_ERROR_IN_UNKNOWN_TRIGGER_BODY = 1711;\nexports.ER_INDEX_CORRUPT = 1712;\nexports.ER_UNDO_RECORD_TOO_BIG = 1713;\nexports.ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT = 1714;\nexports.ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE = 1715;\nexports.ER_BINLOG_UNSAFE_REPLACE_SELECT = 1716;\nexports.ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT = 1717;\nexports.ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT = 1718;\nexports.ER_BINLOG_UNSAFE_UPDATE_IGNORE = 1719;\nexports.ER_PLUGIN_NO_UNINSTALL = 1720;\nexports.ER_PLUGIN_NO_INSTALL = 1721;\nexports.ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT = 1722;\nexports.ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC = 1723;\nexports.ER_BINLOG_UNSAFE_INSERT_TWO_KEYS = 1724;\nexports.ER_TABLE_IN_FK_CHECK = 1725;\nexports.ER_UNSUPPORTED_ENGINE = 1726;\nexports.ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST = 1727;\nexports.ER_CANNOT_LOAD_FROM_TABLE_V2 = 1728;\nexports.ER_MASTER_DELAY_VALUE_OUT_OF_RANGE = 1729; // deprecated\nexports.ER_SOURCE_DELAY_VALUE_OUT_OF_RANGE = 1729;\nexports.ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT = 1730;\nexports.ER_PARTITION_EXCHANGE_DIFFERENT_OPTION = 1731;\nexports.ER_PARTITION_EXCHANGE_PART_TABLE = 1732;\nexports.ER_PARTITION_EXCHANGE_TEMP_TABLE = 1733;\nexports.ER_PARTITION_INSTEAD_OF_SUBPARTITION = 1734;\nexports.ER_UNKNOWN_PARTITION = 1735;\nexports.ER_TABLES_DIFFERENT_METADATA = 1736;\nexports.ER_ROW_DOES_NOT_MATCH_PARTITION = 1737;\nexports.ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX = 1738;\nexports.ER_WARN_INDEX_NOT_APPLICABLE = 1739;\nexports.ER_PARTITION_EXCHANGE_FOREIGN_KEY = 1740;\nexports.ER_NO_SUCH_KEY_VALUE = 1741;\nexports.ER_RPL_INFO_DATA_TOO_LONG = 1742;\nexports.ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE = 1743;\nexports.ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE = 1744;\nexports.ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX = 1745;\nexports.ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT = 1746;\nexports.ER_PARTITION_CLAUSE_ON_NONPARTITIONED = 1747;\nexports.ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET = 1748;\nexports.ER_NO_SUCH_PARTITION = 1749;\nexports.ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE = 1750;\nexports.ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE = 1751;\nexports.ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE = 1752;\nexports.ER_MTS_FEATURE_IS_NOT_SUPPORTED = 1753;\nexports.ER_MTS_UPDATED_DBS_GREATER_MAX = 1754;\nexports.ER_MTS_CANT_PARALLEL = 1755;\nexports.ER_MTS_INCONSISTENT_DATA = 1756;\nexports.ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING = 1757;\nexports.ER_DA_INVALID_CONDITION_NUMBER = 1758;\nexports.ER_INSECURE_PLAIN_TEXT = 1759;\nexports.ER_INSECURE_CHANGE_MASTER = 1760; // deprecated\nexports.ER_INSECURE_CHANGE_SOURCE = 1760;\nexports.ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO = 1761;\nexports.ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO = 1762;\nexports.ER_SQLTHREAD_WITH_SECURE_SLAVE = 1763; // deprecated\nexports.ER_SQLTHREAD_WITH_SECURE_REPLICA = 1763;\nexports.ER_TABLE_HAS_NO_FT = 1764;\nexports.ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER = 1765;\nexports.ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION = 1766;\nexports.ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST = 1767;\nexports.ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL = 1768;\nexports.ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION = 1769;\nexports.ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL = 1770;\nexports.ER_SKIPPING_LOGGED_TRANSACTION = 1771;\nexports.ER_MALFORMED_GTID_SET_SPECIFICATION = 1772;\nexports.ER_MALFORMED_GTID_SET_ENCODING = 1773;\nexports.ER_MALFORMED_GTID_SPECIFICATION = 1774;\nexports.ER_GNO_EXHAUSTED = 1775;\nexports.ER_BAD_SLAVE_AUTO_POSITION = 1776; // deprecated\nexports.ER_BAD_REPLICA_AUTO_POSITION = 1776;\nexports.ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON = 1777;\nexports.ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET = 1778;\nexports.ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON = 1779;\nexports.ER_GTID_MODE_REQUIRES_BINLOG = 1780;\nexports.ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF = 1781;\nexports.ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON = 1782;\nexports.ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF = 1783;\nexports.ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF = 1784;\nexports.ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE = 1785;\nexports.ER_GTID_UNSAFE_CREATE_SELECT = 1786;\nexports.ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION = 1787;\nexports.ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME = 1788;\nexports.ER_MASTER_HAS_PURGED_REQUIRED_GTIDS = 1789; // deprecated\nexports.ER_SOURCE_HAS_PURGED_REQUIRED_GTIDS = 1789;\nexports.ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID = 1790;\nexports.ER_UNKNOWN_EXPLAIN_FORMAT = 1791;\nexports.ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION = 1792;\nexports.ER_TOO_LONG_TABLE_PARTITION_COMMENT = 1793;\nexports.ER_SLAVE_CONFIGURATION = 1794; // deprecated\nexports.ER_REPLICA_CONFIGURATION = 1794;\nexports.ER_INNODB_FT_LIMIT = 1795;\nexports.ER_INNODB_NO_FT_TEMP_TABLE = 1796;\nexports.ER_INNODB_FT_WRONG_DOCID_COLUMN = 1797;\nexports.ER_INNODB_FT_WRONG_DOCID_INDEX = 1798;\nexports.ER_INNODB_ONLINE_LOG_TOO_BIG = 1799;\nexports.ER_UNKNOWN_ALTER_ALGORITHM = 1800;\nexports.ER_UNKNOWN_ALTER_LOCK = 1801;\nexports.ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS = 1802; // deprecated\nexports.ER_MTS_CHANGE_SOURCE_CANT_RUN_WITH_GAPS = 1802;\nexports.ER_MTS_RECOVERY_FAILURE = 1803;\nexports.ER_MTS_RESET_WORKERS = 1804;\nexports.ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2 = 1805;\nexports.ER_SLAVE_SILENT_RETRY_TRANSACTION = 1806; // deprecated\nexports.ER_REPLICA_SILENT_RETRY_TRANSACTION = 1806;\nexports.ER_DISCARD_FK_CHECKS_RUNNING = 1807;\nexports.ER_TABLE_SCHEMA_MISMATCH = 1808;\nexports.ER_TABLE_IN_SYSTEM_TABLESPACE = 1809;\nexports.ER_IO_READ_ERROR = 1810;\nexports.ER_IO_WRITE_ERROR = 1811;\nexports.ER_TABLESPACE_MISSING = 1812;\nexports.ER_TABLESPACE_EXISTS = 1813;\nexports.ER_TABLESPACE_DISCARDED = 1814;\nexports.ER_INTERNAL_ERROR = 1815;\nexports.ER_INNODB_IMPORT_ERROR = 1816;\nexports.ER_INNODB_INDEX_CORRUPT = 1817;\nexports.ER_INVALID_YEAR_COLUMN_LENGTH = 1818;\nexports.ER_NOT_VALID_PASSWORD = 1819;\nexports.ER_MUST_CHANGE_PASSWORD = 1820;\nexports.ER_FK_NO_INDEX_CHILD = 1821;\nexports.ER_FK_NO_INDEX_PARENT = 1822;\nexports.ER_FK_FAIL_ADD_SYSTEM = 1823;\nexports.ER_FK_CANNOT_OPEN_PARENT = 1824;\nexports.ER_FK_INCORRECT_OPTION = 1825;\nexports.ER_FK_DUP_NAME = 1826;\nexports.ER_PASSWORD_FORMAT = 1827;\nexports.ER_FK_COLUMN_CANNOT_DROP = 1828;\nexports.ER_FK_COLUMN_CANNOT_DROP_CHILD = 1829;\nexports.ER_FK_COLUMN_NOT_NULL = 1830;\nexports.ER_DUP_INDEX = 1831;\nexports.ER_FK_COLUMN_CANNOT_CHANGE = 1832;\nexports.ER_FK_COLUMN_CANNOT_CHANGE_CHILD = 1833;\nexports.ER_FK_CANNOT_DELETE_PARENT = 1834;\nexports.ER_MALFORMED_PACKET = 1835;\nexports.ER_READ_ONLY_MODE = 1836;\nexports.ER_GTID_NEXT_TYPE_UNDEFINED_GROUP = 1837;\nexports.ER_VARIABLE_NOT_SETTABLE_IN_SP = 1838;\nexports.ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF = 1839;\nexports.ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY = 1840;\nexports.ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY = 1841;\nexports.ER_GTID_PURGED_WAS_CHANGED = 1842;\nexports.ER_GTID_EXECUTED_WAS_CHANGED = 1843;\nexports.ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES = 1844;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED = 1845;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON = 1846;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY = 1847;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION = 1848;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME = 1849;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE = 1850;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK = 1851;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE = 1852;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK = 1853;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC = 1854;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS = 1855;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS = 1856;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS = 1857;\nexports.ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE = 1858; // deprecated\nexports.ER_SQL_REPLICA_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE = 1858;\nexports.ER_DUP_UNKNOWN_IN_INDEX = 1859;\nexports.ER_IDENT_CAUSES_TOO_LONG_PATH = 1860;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL = 1861;\nexports.ER_MUST_CHANGE_PASSWORD_LOGIN = 1862;\nexports.ER_ROW_IN_WRONG_PARTITION = 1863;\nexports.ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX = 1864;\nexports.ER_INNODB_NO_FT_USES_PARSER = 1865;\nexports.ER_BINLOG_LOGICAL_CORRUPTION = 1866;\nexports.ER_WARN_PURGE_LOG_IN_USE = 1867;\nexports.ER_WARN_PURGE_LOG_IS_ACTIVE = 1868;\nexports.ER_AUTO_INCREMENT_CONFLICT = 1869;\nexports.WARN_ON_BLOCKHOLE_IN_RBR = 1870;\nexports.ER_SLAVE_MI_INIT_REPOSITORY = 1871; // deprecated\nexports.ER_REPLICA_MI_INIT_REPOSITORY = 1871;\nexports.ER_SLAVE_RLI_INIT_REPOSITORY = 1872; // deprecated\nexports.ER_REPLICA_RLI_INIT_REPOSITORY = 1872;\nexports.ER_ACCESS_DENIED_CHANGE_USER_ERROR = 1873;\nexports.ER_INNODB_READ_ONLY = 1874;\nexports.ER_STOP_SLAVE_SQL_THREAD_TIMEOUT = 1875; // deprecated\nexports.ER_STOP_REPLICA_SQL_THREAD_TIMEOUT = 1875;\nexports.ER_STOP_SLAVE_IO_THREAD_TIMEOUT = 1876; // deprecated\nexports.ER_STOP_REPLICA_IO_THREAD_TIMEOUT = 1876;\nexports.ER_TABLE_CORRUPT = 1877;\nexports.ER_TEMP_FILE_WRITE_FAILURE = 1878;\nexports.ER_INNODB_FT_AUX_NOT_HEX_ID = 1879;\nexports.ER_OLD_TEMPORALS_UPGRADED = 1880;\nexports.ER_INNODB_FORCED_RECOVERY = 1881;\nexports.ER_AES_INVALID_IV = 1882;\nexports.ER_FILE_CORRUPT = 1883;\nexports.ER_ERROR_ON_SOURCE = 1884;\nexports.ER_INCONSISTENT_ERROR = 1885;\nexports.ER_STORAGE_ENGINE_NOT_LOADED = 1886;\nexports.ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER = 1887;\nexports.ER_WARN_LEGACY_SYNTAX_CONVERTED = 1888;\nexports.ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN = 1889;\nexports.ER_CANNOT_DISCARD_TEMPORARY_TABLE = 1890;\nexports.ER_FK_DEPTH_EXCEEDED = 1891;\nexports.ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2 = 1892;\nexports.ER_WARN_TRIGGER_DOESNT_HAVE_CREATED = 1893;\nexports.ER_REFERENCED_TRG_DOES_NOT_EXIST = 1894;\nexports.ER_EXPLAIN_NOT_SUPPORTED = 1895;\nexports.ER_INVALID_FIELD_SIZE = 1896;\nexports.ER_MISSING_HA_CREATE_OPTION = 1897;\nexports.ER_ENGINE_OUT_OF_MEMORY = 1898;\nexports.ER_PASSWORD_EXPIRE_ANONYMOUS_USER = 1899;\nexports.ER_REPLICA_SQL_THREAD_MUST_STOP = 1900;\nexports.ER_NO_FT_MATERIALIZED_SUBQUERY = 1901;\nexports.ER_INNODB_UNDO_LOG_FULL = 1902;\nexports.ER_INVALID_ARGUMENT_FOR_LOGARITHM = 1903;\nexports.ER_REPLICA_IO_THREAD_MUST_STOP = 1904;\nexports.ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO = 1905;\nexports.ER_WARN_ONLY_SOURCE_LOG_FILE_NO_POS = 1906;\nexports.ER_QUERY_TIMEOUT = 1907;\nexports.ER_NON_RO_SELECT_DISABLE_TIMER = 1908;\nexports.ER_DUP_LIST_ENTRY = 1909;\nexports.ER_SQL_MODE_NO_EFFECT = 1910;\nexports.ER_SESSION_WAS_KILLED = 3169;\nexports.ER_CLIENT_INTERACTION_TIMEOUT = 4031;\n\n// Lookup-by-number table\nexports[1] = 'EE_CANTCREATEFILE';\nexports[2] = 'EE_READ';\nexports[3] = 'EE_WRITE';\nexports[4] = 'EE_BADCLOSE';\nexports[5] = 'EE_OUTOFMEMORY';\nexports[6] = 'EE_DELETE';\nexports[7] = 'EE_LINK';\nexports[9] = 'EE_EOFERR';\nexports[10] = 'EE_CANTLOCK';\nexports[11] = 'EE_CANTUNLOCK';\nexports[12] = 'EE_DIR';\nexports[13] = 'EE_STAT';\nexports[14] = 'EE_CANT_CHSIZE';\nexports[15] = 'EE_CANT_OPEN_STREAM';\nexports[16] = 'EE_GETWD';\nexports[17] = 'EE_SETWD';\nexports[18] = 'EE_LINK_WARNING';\nexports[19] = 'EE_OPEN_WARNING';\nexports[20] = 'EE_DISK_FULL';\nexports[21] = 'EE_CANT_MKDIR';\nexports[22] = 'EE_UNKNOWN_CHARSET';\nexports[23] = 'EE_OUT_OF_FILERESOURCES';\nexports[24] = 'EE_CANT_READLINK';\nexports[25] = 'EE_CANT_SYMLINK';\nexports[26] = 'EE_REALPATH';\nexports[27] = 'EE_SYNC';\nexports[28] = 'EE_UNKNOWN_COLLATION';\nexports[29] = 'EE_FILENOTFOUND';\nexports[30] = 'EE_FILE_NOT_CLOSED';\nexports[31] = 'EE_CHANGE_OWNERSHIP';\nexports[32] = 'EE_CHANGE_PERMISSIONS';\nexports[33] = 'EE_CANT_SEEK';\nexports[120] = 'HA_ERR_KEY_NOT_FOUND';\nexports[121] = 'HA_ERR_FOUND_DUPP_KEY';\nexports[122] = 'HA_ERR_INTERNAL_ERROR';\nexports[123] = 'HA_ERR_RECORD_CHANGED';\nexports[124] = 'HA_ERR_WRONG_INDEX';\nexports[126] = 'HA_ERR_CRASHED';\nexports[127] = 'HA_ERR_WRONG_IN_RECORD';\nexports[128] = 'HA_ERR_OUT_OF_MEM';\nexports[130] = 'HA_ERR_NOT_A_TABLE';\nexports[131] = 'HA_ERR_WRONG_COMMAND';\nexports[132] = 'HA_ERR_OLD_FILE';\nexports[133] = 'HA_ERR_NO_ACTIVE_RECORD';\nexports[134] = 'HA_ERR_RECORD_DELETED';\nexports[135] = 'HA_ERR_RECORD_FILE_FULL';\nexports[136] = 'HA_ERR_INDEX_FILE_FULL';\nexports[137] = 'HA_ERR_END_OF_FILE';\nexports[138] = 'HA_ERR_UNSUPPORTED';\nexports[139] = 'HA_ERR_TO_BIG_ROW';\nexports[140] = 'HA_WRONG_CREATE_OPTION';\nexports[141] = 'HA_ERR_FOUND_DUPP_UNIQUE';\nexports[142] = 'HA_ERR_UNKNOWN_CHARSET';\nexports[143] = 'HA_ERR_WRONG_MRG_TABLE_DEF';\nexports[144] = 'HA_ERR_CRASHED_ON_REPAIR';\nexports[145] = 'HA_ERR_CRASHED_ON_USAGE';\nexports[146] = 'HA_ERR_LOCK_WAIT_TIMEOUT';\nexports[147] = 'HA_ERR_LOCK_TABLE_FULL';\nexports[148] = 'HA_ERR_READ_ONLY_TRANSACTION';\nexports[149] = 'HA_ERR_LOCK_DEADLOCK';\nexports[150] = 'HA_ERR_CANNOT_ADD_FOREIGN';\nexports[151] = 'HA_ERR_NO_REFERENCED_ROW';\nexports[152] = 'HA_ERR_ROW_IS_REFERENCED';\nexports[153] = 'HA_ERR_NO_SAVEPOINT';\nexports[154] = 'HA_ERR_NON_UNIQUE_BLOCK_SIZE';\nexports[155] = 'HA_ERR_NO_SUCH_TABLE';\nexports[156] = 'HA_ERR_TABLE_EXIST';\nexports[157] = 'HA_ERR_NO_CONNECTION';\nexports[158] = 'HA_ERR_NULL_IN_SPATIAL';\nexports[159] = 'HA_ERR_TABLE_DEF_CHANGED';\nexports[160] = 'HA_ERR_NO_PARTITION_FOUND';\nexports[161] = 'HA_ERR_RBR_LOGGING_FAILED';\nexports[162] = 'HA_ERR_DROP_INDEX_FK';\nexports[163] = 'HA_ERR_FOREIGN_DUPLICATE_KEY';\nexports[164] = 'HA_ERR_TABLE_NEEDS_UPGRADE';\nexports[165] = 'HA_ERR_TABLE_READONLY';\nexports[166] = 'HA_ERR_AUTOINC_READ_FAILED';\nexports[167] = 'HA_ERR_AUTOINC_ERANGE';\nexports[168] = 'HA_ERR_GENERIC';\nexports[169] = 'HA_ERR_RECORD_IS_THE_SAME';\nexports[170] = 'HA_ERR_LOGGING_IMPOSSIBLE';\nexports[171] = 'HA_ERR_CORRUPT_EVENT';\nexports[172] = 'HA_ERR_NEW_FILE';\nexports[173] = 'HA_ERR_ROWS_EVENT_APPLY';\nexports[174] = 'HA_ERR_INITIALIZATION';\nexports[175] = 'HA_ERR_FILE_TOO_SHORT';\nexports[176] = 'HA_ERR_WRONG_CRC';\nexports[177] = 'HA_ERR_TOO_MANY_CONCURRENT_TRXS';\nexports[178] = 'HA_ERR_NOT_IN_LOCK_PARTITIONS';\nexports[179] = 'HA_ERR_INDEX_COL_TOO_LONG';\nexports[180] = 'HA_ERR_INDEX_CORRUPT';\nexports[181] = 'HA_ERR_UNDO_REC_TOO_BIG';\nexports[182] = 'HA_FTS_INVALID_DOCID';\nexports[183] = 'HA_ERR_TABLE_IN_FK_CHECK';\nexports[184] = 'HA_ERR_TABLESPACE_EXISTS';\nexports[185] = 'HA_ERR_TOO_MANY_FIELDS';\nexports[186] = 'HA_ERR_ROW_IN_WRONG_PARTITION';\nexports[187] = 'HA_ERR_INNODB_READ_ONLY';\nexports[188] = 'HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT';\nexports[189] = 'HA_ERR_TEMP_FILE_WRITE_FAILURE';\nexports[190] = 'HA_ERR_INNODB_FORCED_RECOVERY';\nexports[191] = 'HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE';\nexports[1000] = 'ER_HASHCHK';\nexports[1001] = 'ER_NISAMCHK';\nexports[1002] = 'ER_NO';\nexports[1003] = 'ER_YES';\nexports[1004] = 'ER_CANT_CREATE_FILE';\nexports[1005] = 'ER_CANT_CREATE_TABLE';\nexports[1006] = 'ER_CANT_CREATE_DB';\nexports[1007] = 'ER_DB_CREATE_EXISTS';\nexports[1008] = 'ER_DB_DROP_EXISTS';\nexports[1009] = 'ER_DB_DROP_DELETE';\nexports[1010] = 'ER_DB_DROP_RMDIR';\nexports[1011] = 'ER_CANT_DELETE_FILE';\nexports[1012] = 'ER_CANT_FIND_SYSTEM_REC';\nexports[1013] = 'ER_CANT_GET_STAT';\nexports[1014] = 'ER_CANT_GET_WD';\nexports[1015] = 'ER_CANT_LOCK';\nexports[1016] = 'ER_CANT_OPEN_FILE';\nexports[1017] = 'ER_FILE_NOT_FOUND';\nexports[1018] = 'ER_CANT_READ_DIR';\nexports[1019] = 'ER_CANT_SET_WD';\nexports[1020] = 'ER_CHECKREAD';\nexports[1021] = 'ER_DISK_FULL';\nexports[1022] = 'ER_DUP_KEY';\nexports[1023] = 'ER_ERROR_ON_CLOSE';\nexports[1024] = 'ER_ERROR_ON_READ';\nexports[1025] = 'ER_ERROR_ON_RENAME';\nexports[1026] = 'ER_ERROR_ON_WRITE';\nexports[1027] = 'ER_FILE_USED';\nexports[1028] = 'ER_FILSORT_ABORT';\nexports[1029] = 'ER_FORM_NOT_FOUND';\nexports[1030] = 'ER_GET_ERRNO';\nexports[1031] = 'ER_ILLEGAL_HA';\nexports[1032] = 'ER_KEY_NOT_FOUND';\nexports[1033] = 'ER_NOT_FORM_FILE';\nexports[1034] = 'ER_NOT_KEYFILE';\nexports[1035] = 'ER_OLD_KEYFILE';\nexports[1036] = 'ER_OPEN_AS_READONLY';\nexports[1037] = 'ER_OUTOFMEMORY';\nexports[1038] = 'ER_OUT_OF_SORTMEMORY';\nexports[1039] = 'ER_UNEXPECTED_EOF';\nexports[1040] = 'ER_CON_COUNT_ERROR';\nexports[1041] = 'ER_OUT_OF_RESOURCES';\nexports[1042] = 'ER_BAD_HOST_ERROR';\nexports[1043] = 'ER_HANDSHAKE_ERROR';\nexports[1044] = 'ER_DBACCESS_DENIED_ERROR';\nexports[1045] = 'ER_ACCESS_DENIED_ERROR';\nexports[1046] = 'ER_NO_DB_ERROR';\nexports[1047] = 'ER_UNKNOWN_COM_ERROR';\nexports[1048] = 'ER_BAD_NULL_ERROR';\nexports[1049] = 'ER_BAD_DB_ERROR';\nexports[1050] = 'ER_TABLE_EXISTS_ERROR';\nexports[1051] = 'ER_BAD_TABLE_ERROR';\nexports[1052] = 'ER_NON_UNIQ_ERROR';\nexports[1053] = 'ER_SERVER_SHUTDOWN';\nexports[1054] = 'ER_BAD_FIELD_ERROR';\nexports[1055] = 'ER_WRONG_FIELD_WITH_GROUP';\nexports[1056] = 'ER_WRONG_GROUP_FIELD';\nexports[1057] = 'ER_WRONG_SUM_SELECT';\nexports[1058] = 'ER_WRONG_VALUE_COUNT';\nexports[1059] = 'ER_TOO_LONG_IDENT';\nexports[1060] = 'ER_DUP_FIELDNAME';\nexports[1061] = 'ER_DUP_KEYNAME';\nexports[1062] = 'ER_DUP_ENTRY';\nexports[1063] = 'ER_WRONG_FIELD_SPEC';\nexports[1064] = 'ER_PARSE_ERROR';\nexports[1065] = 'ER_EMPTY_QUERY';\nexports[1066] = 'ER_NONUNIQ_TABLE';\nexports[1067] = 'ER_INVALID_DEFAULT';\nexports[1068] = 'ER_MULTIPLE_PRI_KEY';\nexports[1069] = 'ER_TOO_MANY_KEYS';\nexports[1070] = 'ER_TOO_MANY_KEY_PARTS';\nexports[1071] = 'ER_TOO_LONG_KEY';\nexports[1072] = 'ER_KEY_COLUMN_DOES_NOT_EXITS';\nexports[1073] = 'ER_BLOB_USED_AS_KEY';\nexports[1074] = 'ER_TOO_BIG_FIELDLENGTH';\nexports[1075] = 'ER_WRONG_AUTO_KEY';\nexports[1076] = 'ER_READY';\nexports[1077] = 'ER_NORMAL_SHUTDOWN';\nexports[1078] = 'ER_GOT_SIGNAL';\nexports[1079] = 'ER_SHUTDOWN_COMPLETE';\nexports[1080] = 'ER_FORCING_CLOSE';\nexports[1081] = 'ER_IPSOCK_ERROR';\nexports[1082] = 'ER_NO_SUCH_INDEX';\nexports[1083] = 'ER_WRONG_FIELD_TERMINATORS';\nexports[1084] = 'ER_BLOBS_AND_NO_TERMINATED';\nexports[1085] = 'ER_TEXTFILE_NOT_READABLE';\nexports[1086] = 'ER_FILE_EXISTS_ERROR';\nexports[1087] = 'ER_LOAD_INFO';\nexports[1088] = 'ER_ALTER_INFO';\nexports[1089] = 'ER_WRONG_SUB_KEY';\nexports[1090] = 'ER_CANT_REMOVE_ALL_FIELDS';\nexports[1091] = 'ER_CANT_DROP_FIELD_OR_KEY';\nexports[1092] = 'ER_INSERT_INFO';\nexports[1093] = 'ER_UPDATE_TABLE_USED';\nexports[1094] = 'ER_NO_SUCH_THREAD';\nexports[1095] = 'ER_KILL_DENIED_ERROR';\nexports[1096] = 'ER_NO_TABLES_USED';\nexports[1097] = 'ER_TOO_BIG_SET';\nexports[1098] = 'ER_NO_UNIQUE_LOGFILE';\nexports[1099] = 'ER_TABLE_NOT_LOCKED_FOR_WRITE';\nexports[1100] = 'ER_TABLE_NOT_LOCKED';\nexports[1101] = 'ER_BLOB_CANT_HAVE_DEFAULT';\nexports[1102] = 'ER_WRONG_DB_NAME';\nexports[1103] = 'ER_WRONG_TABLE_NAME';\nexports[1104] = 'ER_TOO_BIG_SELECT';\nexports[1105] = 'ER_UNKNOWN_ERROR';\nexports[1106] = 'ER_UNKNOWN_PROCEDURE';\nexports[1107] = 'ER_WRONG_PARAMCOUNT_TO_PROCEDURE';\nexports[1108] = 'ER_WRONG_PARAMETERS_TO_PROCEDURE';\nexports[1109] = 'ER_UNKNOWN_TABLE';\nexports[1110] = 'ER_FIELD_SPECIFIED_TWICE';\nexports[1111] = 'ER_INVALID_GROUP_FUNC_USE';\nexports[1112] = 'ER_UNSUPPORTED_EXTENSION';\nexports[1113] = 'ER_TABLE_MUST_HAVE_COLUMNS';\nexports[1114] = 'ER_RECORD_FILE_FULL';\nexports[1115] = 'ER_UNKNOWN_CHARACTER_SET';\nexports[1116] = 'ER_TOO_MANY_TABLES';\nexports[1117] = 'ER_TOO_MANY_FIELDS';\nexports[1118] = 'ER_TOO_BIG_ROWSIZE';\nexports[1119] = 'ER_STACK_OVERRUN';\nexports[1120] = 'ER_WRONG_OUTER_JOIN';\nexports[1121] = 'ER_NULL_COLUMN_IN_INDEX';\nexports[1122] = 'ER_CANT_FIND_UDF';\nexports[1123] = 'ER_CANT_INITIALIZE_UDF';\nexports[1124] = 'ER_UDF_NO_PATHS';\nexports[1125] = 'ER_UDF_EXISTS';\nexports[1126] = 'ER_CANT_OPEN_LIBRARY';\nexports[1127] = 'ER_CANT_FIND_DL_ENTRY';\nexports[1128] = 'ER_FUNCTION_NOT_DEFINED';\nexports[1129] = 'ER_HOST_IS_BLOCKED';\nexports[1130] = 'ER_HOST_NOT_PRIVILEGED';\nexports[1131] = 'ER_PASSWORD_ANONYMOUS_USER';\nexports[1132] = 'ER_PASSWORD_NOT_ALLOWED';\nexports[1133] = 'ER_PASSWORD_NO_MATCH';\nexports[1134] = 'ER_UPDATE_INFO';\nexports[1135] = 'ER_CANT_CREATE_THREAD';\nexports[1136] = 'ER_WRONG_VALUE_COUNT_ON_ROW';\nexports[1137] = 'ER_CANT_REOPEN_TABLE';\nexports[1138] = 'ER_INVALID_USE_OF_NULL';\nexports[1139] = 'ER_REGEXP_ERROR';\nexports[1140] = 'ER_MIX_OF_GROUP_FUNC_AND_FIELDS';\nexports[1141] = 'ER_NONEXISTING_GRANT';\nexports[1142] = 'ER_TABLEACCESS_DENIED_ERROR';\nexports[1143] = 'ER_COLUMNACCESS_DENIED_ERROR';\nexports[1144] = 'ER_ILLEGAL_GRANT_FOR_TABLE';\nexports[1145] = 'ER_GRANT_WRONG_HOST_OR_USER';\nexports[1146] = 'ER_NO_SUCH_TABLE';\nexports[1147] = 'ER_NONEXISTING_TABLE_GRANT';\nexports[1148] = 'ER_NOT_ALLOWED_COMMAND';\nexports[1149] = 'ER_SYNTAX_ERROR';\nexports[1150] = 'ER_DELAYED_CANT_CHANGE_LOCK';\nexports[1151] = 'ER_TOO_MANY_DELAYED_THREADS';\nexports[1152] = 'ER_ABORTING_CONNECTION';\nexports[1153] = 'ER_NET_PACKET_TOO_LARGE';\nexports[1154] = 'ER_NET_READ_ERROR_FROM_PIPE';\nexports[1155] = 'ER_NET_FCNTL_ERROR';\nexports[1156] = 'ER_NET_PACKETS_OUT_OF_ORDER';\nexports[1157] = 'ER_NET_UNCOMPRESS_ERROR';\nexports[1158] = 'ER_NET_READ_ERROR';\nexports[1159] = 'ER_NET_READ_INTERRUPTED';\nexports[1160] = 'ER_NET_ERROR_ON_WRITE';\nexports[1161] = 'ER_NET_WRITE_INTERRUPTED';\nexports[1162] = 'ER_TOO_LONG_STRING';\nexports[1163] = 'ER_TABLE_CANT_HANDLE_BLOB';\nexports[1164] = 'ER_TABLE_CANT_HANDLE_AUTO_INCREMENT';\nexports[1165] = 'ER_DELAYED_INSERT_TABLE_LOCKED';\nexports[1166] = 'ER_WRONG_COLUMN_NAME';\nexports[1167] = 'ER_WRONG_KEY_COLUMN';\nexports[1168] = 'ER_WRONG_MRG_TABLE';\nexports[1169] = 'ER_DUP_UNIQUE';\nexports[1170] = 'ER_BLOB_KEY_WITHOUT_LENGTH';\nexports[1171] = 'ER_PRIMARY_CANT_HAVE_NULL';\nexports[1172] = 'ER_TOO_MANY_ROWS';\nexports[1173] = 'ER_REQUIRES_PRIMARY_KEY';\nexports[1174] = 'ER_NO_RAID_COMPILED';\nexports[1175] = 'ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE';\nexports[1176] = 'ER_KEY_DOES_NOT_EXITS';\nexports[1177] = 'ER_CHECK_NO_SUCH_TABLE';\nexports[1178] = 'ER_CHECK_NOT_IMPLEMENTED';\nexports[1179] = 'ER_CANT_DO_THIS_DURING_AN_TRANSACTION';\nexports[1180] = 'ER_ERROR_DURING_COMMIT';\nexports[1181] = 'ER_ERROR_DURING_ROLLBACK';\nexports[1182] = 'ER_ERROR_DURING_FLUSH_LOGS';\nexports[1183] = 'ER_ERROR_DURING_CHECKPOINT';\nexports[1184] = 'ER_NEW_ABORTING_CONNECTION';\nexports[1185] = 'ER_DUMP_NOT_IMPLEMENTED';\nexports[1186] = 'ER_FLUSH_SOURCE_BINLOG_CLOSED';\nexports[1187] = 'ER_INDEX_REBUILD';\nexports[1188] = 'ER_SOURCE';\nexports[1189] = 'ER_SOURCE_NET_READ';\nexports[1190] = 'ER_SOURCE_NET_WRITE';\nexports[1191] = 'ER_FT_MATCHING_KEY_NOT_FOUND';\nexports[1192] = 'ER_LOCK_OR_ACTIVE_TRANSACTION';\nexports[1193] = 'ER_UNKNOWN_SYSTEM_VARIABLE';\nexports[1194] = 'ER_CRASHED_ON_USAGE';\nexports[1195] = 'ER_CRASHED_ON_REPAIR';\nexports[1196] = 'ER_WARNING_NOT_COMPLETE_ROLLBACK';\nexports[1197] = 'ER_TRANS_CACHE_FULL';\nexports[1198] = 'ER_REPLICA_MUST_STOP';\nexports[1199] = 'ER_REPLICA_NOT_RUNNING';\nexports[1200] = 'ER_BAD_REPLICA';\nexports[1201] = 'ER_SOURCE_INFO';\nexports[1202] = 'ER_REPLICA_THREAD';\nexports[1203] = 'ER_TOO_MANY_USER_CONNECTIONS';\nexports[1204] = 'ER_SET_CONSTANTS_ONLY';\nexports[1205] = 'ER_LOCK_WAIT_TIMEOUT';\nexports[1206] = 'ER_LOCK_TABLE_FULL';\nexports[1207] = 'ER_READ_ONLY_TRANSACTION';\nexports[1208] = 'ER_DROP_DB_WITH_READ_LOCK';\nexports[1209] = 'ER_CREATE_DB_WITH_READ_LOCK';\nexports[1210] = 'ER_WRONG_ARGUMENTS';\nexports[1211] = 'ER_NO_PERMISSION_TO_CREATE_USER';\nexports[1212] = 'ER_UNION_TABLES_IN_DIFFERENT_DIR';\nexports[1213] = 'ER_LOCK_DEADLOCK';\nexports[1214] = 'ER_TABLE_CANT_HANDLE_FT';\nexports[1215] = 'ER_CANNOT_ADD_FOREIGN';\nexports[1216] = 'ER_NO_REFERENCED_ROW';\nexports[1217] = 'ER_ROW_IS_REFERENCED';\nexports[1218] = 'ER_CONNECT_TO_SOURCE';\nexports[1219] = 'ER_QUERY_ON_SOURCE';\nexports[1220] = 'ER_ERROR_WHEN_EXECUTING_COMMAND';\nexports[1221] = 'ER_WRONG_USAGE';\nexports[1222] = 'ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT';\nexports[1223] = 'ER_CANT_UPDATE_WITH_READLOCK';\nexports[1224] = 'ER_MIXING_NOT_ALLOWED';\nexports[1225] = 'ER_DUP_ARGUMENT';\nexports[1226] = 'ER_USER_LIMIT_REACHED';\nexports[1227] = 'ER_SPECIFIC_ACCESS_DENIED_ERROR';\nexports[1228] = 'ER_LOCAL_VARIABLE';\nexports[1229] = 'ER_GLOBAL_VARIABLE';\nexports[1230] = 'ER_NO_DEFAULT';\nexports[1231] = 'ER_WRONG_VALUE_FOR_VAR';\nexports[1232] = 'ER_WRONG_TYPE_FOR_VAR';\nexports[1233] = 'ER_VAR_CANT_BE_READ';\nexports[1234] = 'ER_CANT_USE_OPTION_HERE';\nexports[1235] = 'ER_NOT_SUPPORTED_YET';\nexports[1236] = 'ER_SOURCE_FATAL_ERROR_READING_BINLOG';\nexports[1237] = 'ER_REPLICA_IGNORED_TABLE';\nexports[1238] = 'ER_INCORRECT_GLOBAL_LOCAL_VAR';\nexports[1239] = 'ER_WRONG_FK_DEF';\nexports[1240] = 'ER_KEY_REF_DO_NOT_MATCH_TABLE_REF';\nexports[1241] = 'ER_OPERAND_COLUMNS';\nexports[1242] = 'ER_SUBQUERY_NO_1_ROW';\nexports[1243] = 'ER_UNKNOWN_STMT_HANDLER';\nexports[1244] = 'ER_CORRUPT_HELP_DB';\nexports[1245] = 'ER_CYCLIC_REFERENCE';\nexports[1246] = 'ER_AUTO_CONVERT';\nexports[1247] = 'ER_ILLEGAL_REFERENCE';\nexports[1248] = 'ER_DERIVED_MUST_HAVE_ALIAS';\nexports[1249] = 'ER_SELECT_REDUCED';\nexports[1250] = 'ER_TABLENAME_NOT_ALLOWED_HERE';\nexports[1251] = 'ER_NOT_SUPPORTED_AUTH_MODE';\nexports[1252] = 'ER_SPATIAL_CANT_HAVE_NULL';\nexports[1253] = 'ER_COLLATION_CHARSET_MISMATCH';\nexports[1254] = 'ER_REPLICA_WAS_RUNNING';\nexports[1255] = 'ER_REPLICA_WAS_NOT_RUNNING';\nexports[1256] = 'ER_TOO_BIG_FOR_UNCOMPRESS';\nexports[1257] = 'ER_ZLIB_Z_MEM_ERROR';\nexports[1258] = 'ER_ZLIB_Z_BUF_ERROR';\nexports[1259] = 'ER_ZLIB_Z_DATA_ERROR';\nexports[1260] = 'ER_CUT_VALUE_GROUP_CONCAT';\nexports[1261] = 'ER_WARN_TOO_FEW_RECORDS';\nexports[1262] = 'ER_WARN_TOO_MANY_RECORDS';\nexports[1263] = 'ER_WARN_NULL_TO_NOTNULL';\nexports[1264] = 'ER_WARN_DATA_OUT_OF_RANGE';\nexports[1265] = 'ER_WARN_DATA_TRUNCATED';\nexports[1266] = 'ER_WARN_USING_OTHER_HANDLER';\nexports[1267] = 'ER_CANT_AGGREGATE_2COLLATIONS';\nexports[1268] = 'ER_DROP_USER';\nexports[1269] = 'ER_REVOKE_GRANTS';\nexports[1270] = 'ER_CANT_AGGREGATE_3COLLATIONS';\nexports[1271] = 'ER_CANT_AGGREGATE_NCOLLATIONS';\nexports[1272] = 'ER_VARIABLE_IS_NOT_STRUCT';\nexports[1273] = 'ER_UNKNOWN_COLLATION';\nexports[1274] = 'ER_REPLICA_IGNORED_SSL_PARAMS';\nexports[1275] = 'ER_SERVER_IS_IN_SECURE_AUTH_MODE';\nexports[1276] = 'ER_WARN_FIELD_RESOLVED';\nexports[1277] = 'ER_BAD_REPLICA_UNTIL_COND';\nexports[1278] = 'ER_MISSING_SKIP_REPLICA';\nexports[1279] = 'ER_UNTIL_COND_IGNORED';\nexports[1280] = 'ER_WRONG_NAME_FOR_INDEX';\nexports[1281] = 'ER_WRONG_NAME_FOR_CATALOG';\nexports[1282] = 'ER_WARN_QC_RESIZE';\nexports[1283] = 'ER_BAD_FT_COLUMN';\nexports[1284] = 'ER_UNKNOWN_KEY_CACHE';\nexports[1285] = 'ER_WARN_HOSTNAME_WONT_WORK';\nexports[1286] = 'ER_UNKNOWN_STORAGE_ENGINE';\nexports[1287] = 'ER_WARN_DEPRECATED_SYNTAX';\nexports[1288] = 'ER_NON_UPDATABLE_TABLE';\nexports[1289] = 'ER_FEATURE_DISABLED';\nexports[1290] = 'ER_OPTION_PREVENTS_STATEMENT';\nexports[1291] = 'ER_DUPLICATED_VALUE_IN_TYPE';\nexports[1292] = 'ER_TRUNCATED_WRONG_VALUE';\nexports[1293] = 'ER_TOO_MUCH_AUTO_TIMESTAMP_COLS';\nexports[1294] = 'ER_INVALID_ON_UPDATE';\nexports[1295] = 'ER_UNSUPPORTED_PS';\nexports[1296] = 'ER_GET_ERRMSG';\nexports[1297] = 'ER_GET_TEMPORARY_ERRMSG';\nexports[1298] = 'ER_UNKNOWN_TIME_ZONE';\nexports[1299] = 'ER_WARN_INVALID_TIMESTAMP';\nexports[1300] = 'ER_INVALID_CHARACTER_STRING';\nexports[1301] = 'ER_WARN_ALLOWED_PACKET_OVERFLOWED';\nexports[1302] = 'ER_CONFLICTING_DECLARATIONS';\nexports[1303] = 'ER_SP_NO_RECURSIVE_CREATE';\nexports[1304] = 'ER_SP_ALREADY_EXISTS';\nexports[1305] = 'ER_SP_DOES_NOT_EXIST';\nexports[1306] = 'ER_SP_DROP_FAILED';\nexports[1307] = 'ER_SP_STORE_FAILED';\nexports[1308] = 'ER_SP_LILABEL_MISMATCH';\nexports[1309] = 'ER_SP_LABEL_REDEFINE';\nexports[1310] = 'ER_SP_LABEL_MISMATCH';\nexports[1311] = 'ER_SP_UNINIT_VAR';\nexports[1312] = 'ER_SP_BADSELECT';\nexports[1313] = 'ER_SP_BADRETURN';\nexports[1314] = 'ER_SP_BADSTATEMENT';\nexports[1315] = 'ER_UPDATE_LOG_DEPRECATED_IGNORED';\nexports[1316] = 'ER_UPDATE_LOG_DEPRECATED_TRANSLATED';\nexports[1317] = 'ER_QUERY_INTERRUPTED';\nexports[1318] = 'ER_SP_WRONG_NO_OF_ARGS';\nexports[1319] = 'ER_SP_COND_MISMATCH';\nexports[1320] = 'ER_SP_NORETURN';\nexports[1321] = 'ER_SP_NORETURNEND';\nexports[1322] = 'ER_SP_BAD_CURSOR_QUERY';\nexports[1323] = 'ER_SP_BAD_CURSOR_SELECT';\nexports[1324] = 'ER_SP_CURSOR_MISMATCH';\nexports[1325] = 'ER_SP_CURSOR_ALREADY_OPEN';\nexports[1326] = 'ER_SP_CURSOR_NOT_OPEN';\nexports[1327] = 'ER_SP_UNDECLARED_VAR';\nexports[1328] = 'ER_SP_WRONG_NO_OF_FETCH_ARGS';\nexports[1329] = 'ER_SP_FETCH_NO_DATA';\nexports[1330] = 'ER_SP_DUP_PARAM';\nexports[1331] = 'ER_SP_DUP_VAR';\nexports[1332] = 'ER_SP_DUP_COND';\nexports[1333] = 'ER_SP_DUP_CURS';\nexports[1334] = 'ER_SP_CANT_ALTER';\nexports[1335] = 'ER_SP_SUBSELECT_NYI';\nexports[1336] = 'ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG';\nexports[1337] = 'ER_SP_VARCOND_AFTER_CURSHNDLR';\nexports[1338] = 'ER_SP_CURSOR_AFTER_HANDLER';\nexports[1339] = 'ER_SP_CASE_NOT_FOUND';\nexports[1340] = 'ER_FPARSER_TOO_BIG_FILE';\nexports[1341] = 'ER_FPARSER_BAD_HEADER';\nexports[1342] = 'ER_FPARSER_EOF_IN_COMMENT';\nexports[1343] = 'ER_FPARSER_ERROR_IN_PARAMETER';\nexports[1344] = 'ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER';\nexports[1345] = 'ER_VIEW_NO_EXPLAIN';\nexports[1346] = 'ER_FRM_UNKNOWN_TYPE';\nexports[1347] = 'ER_WRONG_OBJECT';\nexports[1348] = 'ER_NONUPDATEABLE_COLUMN';\nexports[1349] = 'ER_VIEW_SELECT_DERIVED';\nexports[1350] = 'ER_VIEW_SELECT_CLAUSE';\nexports[1351] = 'ER_VIEW_SELECT_VARIABLE';\nexports[1352] = 'ER_VIEW_SELECT_TMPTABLE';\nexports[1353] = 'ER_VIEW_WRONG_LIST';\nexports[1354] = 'ER_WARN_VIEW_MERGE';\nexports[1355] = 'ER_WARN_VIEW_WITHOUT_KEY';\nexports[1356] = 'ER_VIEW_INVALID';\nexports[1357] = 'ER_SP_NO_DROP_SP';\nexports[1358] = 'ER_SP_GOTO_IN_HNDLR';\nexports[1359] = 'ER_TRG_ALREADY_EXISTS';\nexports[1360] = 'ER_TRG_DOES_NOT_EXIST';\nexports[1361] = 'ER_TRG_ON_VIEW_OR_TEMP_TABLE';\nexports[1362] = 'ER_TRG_CANT_CHANGE_ROW';\nexports[1363] = 'ER_TRG_NO_SUCH_ROW_IN_TRG';\nexports[1364] = 'ER_NO_DEFAULT_FOR_FIELD';\nexports[1365] = 'ER_DIVISION_BY_ZERO';\nexports[1366] = 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD';\nexports[1367] = 'ER_ILLEGAL_VALUE_FOR_TYPE';\nexports[1368] = 'ER_VIEW_NONUPD_CHECK';\nexports[1369] = 'ER_VIEW_CHECK_FAILED';\nexports[1370] = 'ER_PROCACCESS_DENIED_ERROR';\nexports[1371] = 'ER_RELAY_LOG_FAIL';\nexports[1372] = 'ER_PASSWD_LENGTH';\nexports[1373] = 'ER_UNKNOWN_TARGET_BINLOG';\nexports[1374] = 'ER_IO_ERR_LOG_INDEX_READ';\nexports[1375] = 'ER_BINLOG_PURGE_PROHIBITED';\nexports[1376] = 'ER_FSEEK_FAIL';\nexports[1377] = 'ER_BINLOG_PURGE_FATAL_ERR';\nexports[1378] = 'ER_LOG_IN_USE';\nexports[1379] = 'ER_LOG_PURGE_UNKNOWN_ERR';\nexports[1380] = 'ER_RELAY_LOG_INIT';\nexports[1381] = 'ER_NO_BINARY_LOGGING';\nexports[1382] = 'ER_RESERVED_SYNTAX';\nexports[1383] = 'ER_WSAS_FAILED';\nexports[1384] = 'ER_DIFF_GROUPS_PROC';\nexports[1385] = 'ER_NO_GROUP_FOR_PROC';\nexports[1386] = 'ER_ORDER_WITH_PROC';\nexports[1387] = 'ER_LOGGING_PROHIBIT_CHANGING_OF';\nexports[1388] = 'ER_NO_FILE_MAPPING';\nexports[1389] = 'ER_WRONG_MAGIC';\nexports[1390] = 'ER_PS_MANY_PARAM';\nexports[1391] = 'ER_KEY_PART_0';\nexports[1392] = 'ER_VIEW_CHECKSUM';\nexports[1393] = 'ER_VIEW_MULTIUPDATE';\nexports[1394] = 'ER_VIEW_NO_INSERT_FIELD_LIST';\nexports[1395] = 'ER_VIEW_DELETE_MERGE_VIEW';\nexports[1396] = 'ER_CANNOT_USER';\nexports[1397] = 'ER_XAER_NOTA';\nexports[1398] = 'ER_XAER_INVAL';\nexports[1399] = 'ER_XAER_RMFAIL';\nexports[1400] = 'ER_XAER_OUTSIDE';\nexports[1401] = 'ER_XA_RMERR';\nexports[1402] = 'ER_XA_RBROLLBACK';\nexports[1403] = 'ER_NONEXISTING_PROC_GRANT';\nexports[1404] = 'ER_PROC_AUTO_GRANT_FAIL';\nexports[1405] = 'ER_PROC_AUTO_REVOKE_FAIL';\nexports[1406] = 'ER_DATA_TOO_LONG';\nexports[1407] = 'ER_SP_BAD_SQLSTATE';\nexports[1408] = 'ER_STARTUP';\nexports[1409] = 'ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR';\nexports[1410] = 'ER_CANT_CREATE_USER_WITH_GRANT';\nexports[1411] = 'ER_WRONG_VALUE_FOR_TYPE';\nexports[1412] = 'ER_TABLE_DEF_CHANGED';\nexports[1413] = 'ER_SP_DUP_HANDLER';\nexports[1414] = 'ER_SP_NOT_VAR_ARG';\nexports[1415] = 'ER_SP_NO_RETSET';\nexports[1416] = 'ER_CANT_CREATE_GEOMETRY_OBJECT';\nexports[1417] = 'ER_FAILED_ROUTINE_BREAK_BINLOG';\nexports[1418] = 'ER_BINLOG_UNSAFE_ROUTINE';\nexports[1419] = 'ER_BINLOG_CREATE_ROUTINE_NEED_SUPER';\nexports[1420] = 'ER_EXEC_STMT_WITH_OPEN_CURSOR';\nexports[1421] = 'ER_STMT_HAS_NO_OPEN_CURSOR';\nexports[1422] = 'ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG';\nexports[1423] = 'ER_NO_DEFAULT_FOR_VIEW_FIELD';\nexports[1424] = 'ER_SP_NO_RECURSION';\nexports[1425] = 'ER_TOO_BIG_SCALE';\nexports[1426] = 'ER_TOO_BIG_PRECISION';\nexports[1427] = 'ER_M_BIGGER_THAN_D';\nexports[1428] = 'ER_WRONG_LOCK_OF_SYSTEM_TABLE';\nexports[1429] = 'ER_CONNECT_TO_FOREIGN_DATA_SOURCE';\nexports[1430] = 'ER_QUERY_ON_FOREIGN_DATA_SOURCE';\nexports[1431] = 'ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST';\nexports[1432] = 'ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE';\nexports[1433] = 'ER_FOREIGN_DATA_STRING_INVALID';\nexports[1434] = 'ER_CANT_CREATE_FEDERATED_TABLE';\nexports[1435] = 'ER_TRG_IN_WRONG_SCHEMA';\nexports[1436] = 'ER_STACK_OVERRUN_NEED_MORE';\nexports[1437] = 'ER_TOO_LONG_BODY';\nexports[1438] = 'ER_WARN_CANT_DROP_DEFAULT_KEYCACHE';\nexports[1439] = 'ER_TOO_BIG_DISPLAYWIDTH';\nexports[1440] = 'ER_XAER_DUPID';\nexports[1441] = 'ER_DATETIME_FUNCTION_OVERFLOW';\nexports[1442] = 'ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG';\nexports[1443] = 'ER_VIEW_PREVENT_UPDATE';\nexports[1444] = 'ER_PS_NO_RECURSION';\nexports[1445] = 'ER_SP_CANT_SET_AUTOCOMMIT';\nexports[1446] = 'ER_MALFORMED_DEFINER';\nexports[1447] = 'ER_VIEW_FRM_NO_USER';\nexports[1448] = 'ER_VIEW_OTHER_USER';\nexports[1449] = 'ER_NO_SUCH_USER';\nexports[1450] = 'ER_FORBID_SCHEMA_CHANGE';\nexports[1451] = 'ER_ROW_IS_REFERENCED_2';\nexports[1452] = 'ER_NO_REFERENCED_ROW_2';\nexports[1453] = 'ER_SP_BAD_VAR_SHADOW';\nexports[1454] = 'ER_TRG_NO_DEFINER';\nexports[1455] = 'ER_OLD_FILE_FORMAT';\nexports[1456] = 'ER_SP_RECURSION_LIMIT';\nexports[1457] = 'ER_SP_PROC_TABLE_CORRUPT';\nexports[1458] = 'ER_SP_WRONG_NAME';\nexports[1459] = 'ER_TABLE_NEEDS_UPGRADE';\nexports[1460] = 'ER_SP_NO_AGGREGATE';\nexports[1461] = 'ER_MAX_PREPARED_STMT_COUNT_REACHED';\nexports[1462] = 'ER_VIEW_RECURSIVE';\nexports[1463] = 'ER_NON_GROUPING_FIELD_USED';\nexports[1464] = 'ER_TABLE_CANT_HANDLE_SPKEYS';\nexports[1465] = 'ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA';\nexports[1466] = 'ER_REMOVED_SPACES';\nexports[1467] = 'ER_AUTOINC_READ_FAILED';\nexports[1468] = 'ER_USERNAME';\nexports[1469] = 'ER_HOSTNAME';\nexports[1470] = 'ER_WRONG_STRING_LENGTH';\nexports[1471] = 'ER_NON_INSERTABLE_TABLE';\nexports[1472] = 'ER_ADMIN_WRONG_MRG_TABLE';\nexports[1473] = 'ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT';\nexports[1474] = 'ER_NAME_BECOMES_EMPTY';\nexports[1475] = 'ER_AMBIGUOUS_FIELD_TERM';\nexports[1476] = 'ER_FOREIGN_SERVER_EXISTS';\nexports[1477] = 'ER_FOREIGN_SERVER_DOESNT_EXIST';\nexports[1478] = 'ER_ILLEGAL_HA_CREATE_OPTION';\nexports[1479] = 'ER_PARTITION_REQUIRES_VALUES_ERROR';\nexports[1480] = 'ER_PARTITION_WRONG_VALUES_ERROR';\nexports[1481] = 'ER_PARTITION_MAXVALUE_ERROR';\nexports[1482] = 'ER_PARTITION_SUBPARTITION_ERROR';\nexports[1483] = 'ER_PARTITION_SUBPART_MIX_ERROR';\nexports[1484] = 'ER_PARTITION_WRONG_NO_PART_ERROR';\nexports[1485] = 'ER_PARTITION_WRONG_NO_SUBPART_ERROR';\nexports[1486] = 'ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR';\nexports[1487] = 'ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR';\nexports[1488] = 'ER_FIELD_NOT_FOUND_PART_ERROR';\nexports[1489] = 'ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR';\nexports[1490] = 'ER_INCONSISTENT_PARTITION_INFO_ERROR';\nexports[1491] = 'ER_PARTITION_FUNC_NOT_ALLOWED_ERROR';\nexports[1492] = 'ER_PARTITIONS_MUST_BE_DEFINED_ERROR';\nexports[1493] = 'ER_RANGE_NOT_INCREASING_ERROR';\nexports[1494] = 'ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR';\nexports[1495] = 'ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR';\nexports[1496] = 'ER_PARTITION_ENTRY_ERROR';\nexports[1497] = 'ER_MIX_HANDLER_ERROR';\nexports[1498] = 'ER_PARTITION_NOT_DEFINED_ERROR';\nexports[1499] = 'ER_TOO_MANY_PARTITIONS_ERROR';\nexports[1500] = 'ER_SUBPARTITION_ERROR';\nexports[1501] = 'ER_CANT_CREATE_HANDLER_FILE';\nexports[1502] = 'ER_BLOB_FIELD_IN_PART_FUNC_ERROR';\nexports[1503] = 'ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF';\nexports[1504] = 'ER_NO_PARTS_ERROR';\nexports[1505] = 'ER_PARTITION_MGMT_ON_NONPARTITIONED';\nexports[1506] = 'ER_FOREIGN_KEY_ON_PARTITIONED';\nexports[1507] = 'ER_DROP_PARTITION_NON_EXISTENT';\nexports[1508] = 'ER_DROP_LAST_PARTITION';\nexports[1509] = 'ER_COALESCE_ONLY_ON_HASH_PARTITION';\nexports[1510] = 'ER_REORG_HASH_ONLY_ON_SAME_NO';\nexports[1511] = 'ER_REORG_NO_PARAM_ERROR';\nexports[1512] = 'ER_ONLY_ON_RANGE_LIST_PARTITION';\nexports[1513] = 'ER_ADD_PARTITION_SUBPART_ERROR';\nexports[1514] = 'ER_ADD_PARTITION_NO_NEW_PARTITION';\nexports[1515] = 'ER_COALESCE_PARTITION_NO_PARTITION';\nexports[1516] = 'ER_REORG_PARTITION_NOT_EXIST';\nexports[1517] = 'ER_SAME_NAME_PARTITION';\nexports[1518] = 'ER_NO_BINLOG_ERROR';\nexports[1519] = 'ER_CONSECUTIVE_REORG_PARTITIONS';\nexports[1520] = 'ER_REORG_OUTSIDE_RANGE';\nexports[1521] = 'ER_PARTITION_FUNCTION_FAILURE';\nexports[1522] = 'ER_PART_STATE_ERROR';\nexports[1523] = 'ER_LIMITED_PART_RANGE';\nexports[1524] = 'ER_PLUGIN_IS_NOT_LOADED';\nexports[1525] = 'ER_WRONG_VALUE';\nexports[1526] = 'ER_NO_PARTITION_FOR_GIVEN_VALUE';\nexports[1527] = 'ER_FILEGROUP_OPTION_ONLY_ONCE';\nexports[1528] = 'ER_CREATE_FILEGROUP_FAILED';\nexports[1529] = 'ER_DROP_FILEGROUP_FAILED';\nexports[1530] = 'ER_TABLESPACE_AUTO_EXTEND_ERROR';\nexports[1531] = 'ER_WRONG_SIZE_NUMBER';\nexports[1532] = 'ER_SIZE_OVERFLOW_ERROR';\nexports[1533] = 'ER_ALTER_FILEGROUP_FAILED';\nexports[1534] = 'ER_BINLOG_ROW_LOGGING_FAILED';\nexports[1535] = 'ER_BINLOG_ROW_WRONG_TABLE_DEF';\nexports[1536] = 'ER_BINLOG_ROW_RBR_TO_SBR';\nexports[1537] = 'ER_EVENT_ALREADY_EXISTS';\nexports[1538] = 'ER_EVENT_STORE_FAILED';\nexports[1539] = 'ER_EVENT_DOES_NOT_EXIST';\nexports[1540] = 'ER_EVENT_CANT_ALTER';\nexports[1541] = 'ER_EVENT_DROP_FAILED';\nexports[1542] = 'ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG';\nexports[1543] = 'ER_EVENT_ENDS_BEFORE_STARTS';\nexports[1544] = 'ER_EVENT_EXEC_TIME_IN_THE_PAST';\nexports[1545] = 'ER_EVENT_OPEN_TABLE_FAILED';\nexports[1546] = 'ER_EVENT_NEITHER_M_EXPR_NOR_M_AT';\nexports[1547] = 'ER_COL_COUNT_DOESNT_MATCH_CORRUPTED';\nexports[1548] = 'ER_CANNOT_LOAD_FROM_TABLE';\nexports[1549] = 'ER_EVENT_CANNOT_DELETE';\nexports[1550] = 'ER_EVENT_COMPILE_ERROR';\nexports[1551] = 'ER_EVENT_SAME_NAME';\nexports[1552] = 'ER_EVENT_DATA_TOO_LONG';\nexports[1553] = 'ER_DROP_INDEX_FK';\nexports[1554] = 'ER_WARN_DEPRECATED_SYNTAX_WITH_VER';\nexports[1555] = 'ER_CANT_WRITE_LOCK_LOG_TABLE';\nexports[1556] = 'ER_CANT_LOCK_LOG_TABLE';\nexports[1557] = 'ER_FOREIGN_DUPLICATE_KEY';\nexports[1558] = 'ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE';\nexports[1559] = 'ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR';\nexports[1560] = 'ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT';\nexports[1561] = 'ER_NDB_CANT_SWITCH_BINLOG_FORMAT';\nexports[1562] = 'ER_PARTITION_NO_TEMPORARY';\nexports[1563] = 'ER_PARTITION_CONST_DOMAIN_ERROR';\nexports[1564] = 'ER_PARTITION_FUNCTION_IS_NOT_ALLOWED';\nexports[1565] = 'ER_DDL_LOG_ERROR';\nexports[1566] = 'ER_NULL_IN_VALUES_LESS_THAN';\nexports[1567] = 'ER_WRONG_PARTITION_NAME';\nexports[1568] = 'ER_CANT_CHANGE_TX_ISOLATION';\nexports[1569] = 'ER_DUP_ENTRY_AUTOINCREMENT_CASE';\nexports[1570] = 'ER_EVENT_MODIFY_QUEUE_ERROR';\nexports[1571] = 'ER_EVENT_SET_VAR_ERROR';\nexports[1572] = 'ER_PARTITION_MERGE_ERROR';\nexports[1573] = 'ER_CANT_ACTIVATE_LOG';\nexports[1574] = 'ER_RBR_NOT_AVAILABLE';\nexports[1575] = 'ER_BASE64_DECODE_ERROR';\nexports[1576] = 'ER_EVENT_RECURSION_FORBIDDEN';\nexports[1577] = 'ER_EVENTS_DB_ERROR';\nexports[1578] = 'ER_ONLY_INTEGERS_ALLOWED';\nexports[1579] = 'ER_UNSUPORTED_LOG_ENGINE';\nexports[1580] = 'ER_BAD_LOG_STATEMENT';\nexports[1581] = 'ER_CANT_RENAME_LOG_TABLE';\nexports[1582] = 'ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT';\nexports[1583] = 'ER_WRONG_PARAMETERS_TO_NATIVE_FCT';\nexports[1584] = 'ER_WRONG_PARAMETERS_TO_STORED_FCT';\nexports[1585] = 'ER_NATIVE_FCT_NAME_COLLISION';\nexports[1586] = 'ER_DUP_ENTRY_WITH_KEY_NAME';\nexports[1587] = 'ER_BINLOG_PURGE_EMFILE';\nexports[1588] = 'ER_EVENT_CANNOT_CREATE_IN_THE_PAST';\nexports[1589] = 'ER_EVENT_CANNOT_ALTER_IN_THE_PAST';\nexports[1590] = 'ER_REPLICA_INCIDENT';\nexports[1591] = 'ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT';\nexports[1592] = 'ER_BINLOG_UNSAFE_STATEMENT';\nexports[1593] = 'ER_REPLICA_FATAL_ERROR';\nexports[1594] = 'ER_REPLICA_RELAY_LOG_READ_FAILURE';\nexports[1595] = 'ER_REPLICA_RELAY_LOG_WRITE_FAILURE';\nexports[1596] = 'ER_REPLICA_CREATE_EVENT_FAILURE';\nexports[1597] = 'ER_REPLICA_SOURCE_COM_FAILURE';\nexports[1598] = 'ER_BINLOG_LOGGING_IMPOSSIBLE';\nexports[1599] = 'ER_VIEW_NO_CREATION_CTX';\nexports[1600] = 'ER_VIEW_INVALID_CREATION_CTX';\nexports[1601] = 'ER_SR_INVALID_CREATION_CTX';\nexports[1602] = 'ER_TRG_CORRUPTED_FILE';\nexports[1603] = 'ER_TRG_NO_CREATION_CTX';\nexports[1604] = 'ER_TRG_INVALID_CREATION_CTX';\nexports[1605] = 'ER_EVENT_INVALID_CREATION_CTX';\nexports[1606] = 'ER_TRG_CANT_OPEN_TABLE';\nexports[1607] = 'ER_CANT_CREATE_SROUTINE';\nexports[1608] = 'ER_NEVER_USED';\nexports[1609] = 'ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT';\nexports[1610] = 'ER_REPLICA_CORRUPT_EVENT';\nexports[1611] = 'ER_LOAD_DATA_INVALID_COLUMN';\nexports[1612] = 'ER_LOG_PURGE_NO_FILE';\nexports[1613] = 'ER_XA_RBTIMEOUT';\nexports[1614] = 'ER_XA_RBDEADLOCK';\nexports[1615] = 'ER_NEED_REPREPARE';\nexports[1616] = 'ER_DELAYED_NOT_SUPPORTED';\nexports[1617] = 'WARN_NO_SOURCE_INFO';\nexports[1618] = 'WARN_OPTION_IGNORED';\nexports[1619] = 'WARN_PLUGIN_DELETE_BUILTIN';\nexports[1620] = 'WARN_PLUGIN_BUSY';\nexports[1621] = 'ER_VARIABLE_IS_READONLY';\nexports[1622] = 'ER_WARN_ENGINE_TRANSACTION_ROLLBACK';\nexports[1623] = 'ER_REPLICA_HEARTBEAT_FAILURE';\nexports[1624] = 'ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE';\nexports[1625] = 'ER_NDB_REPLICATION_SCHEMA_ERROR';\nexports[1626] = 'ER_CONFLICT_FN_PARSE_ERROR';\nexports[1627] = 'ER_EXCEPTIONS_WRITE_ERROR';\nexports[1628] = 'ER_TOO_LONG_TABLE_COMMENT';\nexports[1629] = 'ER_TOO_LONG_FIELD_COMMENT';\nexports[1630] = 'ER_FUNC_INEXISTENT_NAME_COLLISION';\nexports[1631] = 'ER_DATABASE_NAME';\nexports[1632] = 'ER_TABLE_NAME';\nexports[1633] = 'ER_PARTITION_NAME';\nexports[1634] = 'ER_SUBPARTITION_NAME';\nexports[1635] = 'ER_TEMPORARY_NAME';\nexports[1636] = 'ER_RENAMED_NAME';\nexports[1637] = 'ER_TOO_MANY_CONCURRENT_TRXS';\nexports[1638] = 'WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED';\nexports[1639] = 'ER_DEBUG_SYNC_TIMEOUT';\nexports[1640] = 'ER_DEBUG_SYNC_HIT_LIMIT';\nexports[1641] = 'ER_DUP_SIGNAL_SET';\nexports[1642] = 'ER_SIGNAL_WARN';\nexports[1643] = 'ER_SIGNAL_NOT_FOUND';\nexports[1644] = 'ER_SIGNAL_EXCEPTION';\nexports[1645] = 'ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER';\nexports[1646] = 'ER_SIGNAL_BAD_CONDITION_TYPE';\nexports[1647] = 'WARN_COND_ITEM_TRUNCATED';\nexports[1648] = 'ER_COND_ITEM_TOO_LONG';\nexports[1649] = 'ER_UNKNOWN_LOCALE';\nexports[1650] = 'ER_REPLICA_IGNORE_SERVER_IDS';\nexports[1651] = 'ER_QUERY_CACHE_DISABLED';\nexports[1652] = 'ER_SAME_NAME_PARTITION_FIELD';\nexports[1653] = 'ER_PARTITION_COLUMN_LIST_ERROR';\nexports[1654] = 'ER_WRONG_TYPE_COLUMN_VALUE_ERROR';\nexports[1655] = 'ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR';\nexports[1656] = 'ER_MAXVALUE_IN_VALUES_IN';\nexports[1657] = 'ER_TOO_MANY_VALUES_ERROR';\nexports[1658] = 'ER_ROW_SINGLE_PARTITION_FIELD_ERROR';\nexports[1659] = 'ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD';\nexports[1660] = 'ER_PARTITION_FIELDS_TOO_LONG';\nexports[1661] = 'ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE';\nexports[1662] = 'ER_BINLOG_ROW_MODE_AND_STMT_ENGINE';\nexports[1663] = 'ER_BINLOG_UNSAFE_AND_STMT_ENGINE';\nexports[1664] = 'ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE';\nexports[1665] = 'ER_BINLOG_STMT_MODE_AND_ROW_ENGINE';\nexports[1666] = 'ER_BINLOG_ROW_INJECTION_AND_STMT_MODE';\nexports[1667] = 'ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE';\nexports[1668] = 'ER_BINLOG_UNSAFE_LIMIT';\nexports[1669] = 'ER_BINLOG_UNSAFE_INSERT_DELAYED';\nexports[1670] = 'ER_BINLOG_UNSAFE_SYSTEM_TABLE';\nexports[1671] = 'ER_BINLOG_UNSAFE_AUTOINC_COLUMNS';\nexports[1672] = 'ER_BINLOG_UNSAFE_UDF';\nexports[1673] = 'ER_BINLOG_UNSAFE_SYSTEM_VARIABLE';\nexports[1674] = 'ER_BINLOG_UNSAFE_SYSTEM_FUNCTION';\nexports[1675] = 'ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS';\nexports[1676] = 'ER_MESSAGE_AND_STATEMENT';\nexports[1677] = 'ER_REPLICA_CONVERSION_FAILED';\nexports[1678] = 'ER_REPLICA_CANT_CREATE_CONVERSION';\nexports[1679] = 'ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT';\nexports[1680] = 'ER_PATH_LENGTH';\nexports[1681] = 'ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT';\nexports[1682] = 'ER_WRONG_NATIVE_TABLE_STRUCTURE';\nexports[1683] = 'ER_WRONG_PERFSCHEMA_USAGE';\nexports[1684] = 'ER_WARN_I_S_SKIPPED_TABLE';\nexports[1685] = 'ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT';\nexports[1686] = 'ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT';\nexports[1687] = 'ER_SPATIAL_MUST_HAVE_GEOM_COL';\nexports[1688] = 'ER_TOO_LONG_INDEX_COMMENT';\nexports[1689] = 'ER_LOCK_ABORTED';\nexports[1690] = 'ER_DATA_OUT_OF_RANGE';\nexports[1691] = 'ER_WRONG_SPVAR_TYPE_IN_LIMIT';\nexports[1692] = 'ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE';\nexports[1693] = 'ER_BINLOG_UNSAFE_MIXED_STATEMENT';\nexports[1694] = 'ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN';\nexports[1695] = 'ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN';\nexports[1696] = 'ER_FAILED_READ_FROM_PAR_FILE';\nexports[1697] = 'ER_VALUES_IS_NOT_INT_TYPE_ERROR';\nexports[1698] = 'ER_ACCESS_DENIED_NO_PASSWORD_ERROR';\nexports[1699] = 'ER_SET_PASSWORD_AUTH_PLUGIN';\nexports[1700] = 'ER_GRANT_PLUGIN_USER_EXISTS';\nexports[1701] = 'ER_TRUNCATE_ILLEGAL_FK';\nexports[1702] = 'ER_PLUGIN_IS_PERMANENT';\nexports[1703] = 'ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN';\nexports[1704] = 'ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX';\nexports[1705] = 'ER_STMT_CACHE_FULL';\nexports[1706] = 'ER_MULTI_UPDATE_KEY_CONFLICT';\nexports[1707] = 'ER_TABLE_NEEDS_REBUILD';\nexports[1708] = 'WARN_OPTION_BELOW_LIMIT';\nexports[1709] = 'ER_INDEX_COLUMN_TOO_LONG';\nexports[1710] = 'ER_ERROR_IN_TRIGGER_BODY';\nexports[1711] = 'ER_ERROR_IN_UNKNOWN_TRIGGER_BODY';\nexports[1712] = 'ER_INDEX_CORRUPT';\nexports[1713] = 'ER_UNDO_RECORD_TOO_BIG';\nexports[1714] = 'ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT';\nexports[1715] = 'ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE';\nexports[1716] = 'ER_BINLOG_UNSAFE_REPLACE_SELECT';\nexports[1717] = 'ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT';\nexports[1718] = 'ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT';\nexports[1719] = 'ER_BINLOG_UNSAFE_UPDATE_IGNORE';\nexports[1720] = 'ER_PLUGIN_NO_UNINSTALL';\nexports[1721] = 'ER_PLUGIN_NO_INSTALL';\nexports[1722] = 'ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT';\nexports[1723] = 'ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC';\nexports[1724] = 'ER_BINLOG_UNSAFE_INSERT_TWO_KEYS';\nexports[1725] = 'ER_TABLE_IN_FK_CHECK';\nexports[1726] = 'ER_UNSUPPORTED_ENGINE';\nexports[1727] = 'ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST';\nexports[1728] = 'ER_CANNOT_LOAD_FROM_TABLE_V2';\nexports[1729] = 'ER_SOURCE_DELAY_VALUE_OUT_OF_RANGE';\nexports[1730] = 'ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT';\nexports[1731] = 'ER_PARTITION_EXCHANGE_DIFFERENT_OPTION';\nexports[1732] = 'ER_PARTITION_EXCHANGE_PART_TABLE';\nexports[1733] = 'ER_PARTITION_EXCHANGE_TEMP_TABLE';\nexports[1734] = 'ER_PARTITION_INSTEAD_OF_SUBPARTITION';\nexports[1735] = 'ER_UNKNOWN_PARTITION';\nexports[1736] = 'ER_TABLES_DIFFERENT_METADATA';\nexports[1737] = 'ER_ROW_DOES_NOT_MATCH_PARTITION';\nexports[1738] = 'ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX';\nexports[1739] = 'ER_WARN_INDEX_NOT_APPLICABLE';\nexports[1740] = 'ER_PARTITION_EXCHANGE_FOREIGN_KEY';\nexports[1741] = 'ER_NO_SUCH_KEY_VALUE';\nexports[1742] = 'ER_RPL_INFO_DATA_TOO_LONG';\nexports[1743] = 'ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE';\nexports[1744] = 'ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE';\nexports[1745] = 'ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX';\nexports[1746] = 'ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT';\nexports[1747] = 'ER_PARTITION_CLAUSE_ON_NONPARTITIONED';\nexports[1748] = 'ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET';\nexports[1749] = 'ER_NO_SUCH_PARTITION';\nexports[1750] = 'ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE';\nexports[1751] = 'ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE';\nexports[1752] = 'ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE';\nexports[1753] = 'ER_MTS_FEATURE_IS_NOT_SUPPORTED';\nexports[1754] = 'ER_MTS_UPDATED_DBS_GREATER_MAX';\nexports[1755] = 'ER_MTS_CANT_PARALLEL';\nexports[1756] = 'ER_MTS_INCONSISTENT_DATA';\nexports[1757] = 'ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING';\nexports[1758] = 'ER_DA_INVALID_CONDITION_NUMBER';\nexports[1759] = 'ER_INSECURE_PLAIN_TEXT';\nexports[1760] = 'ER_INSECURE_CHANGE_SOURCE';\nexports[1761] = 'ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO';\nexports[1762] = 'ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO';\nexports[1763] = 'ER_SQLTHREAD_WITH_SECURE_REPLICA';\nexports[1764] = 'ER_TABLE_HAS_NO_FT';\nexports[1765] = 'ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER';\nexports[1766] = 'ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION';\nexports[1767] = 'ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST';\nexports[1768] = 'ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL';\nexports[1769] = 'ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION';\nexports[1770] = 'ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL';\nexports[1771] = 'ER_SKIPPING_LOGGED_TRANSACTION';\nexports[1772] = 'ER_MALFORMED_GTID_SET_SPECIFICATION';\nexports[1773] = 'ER_MALFORMED_GTID_SET_ENCODING';\nexports[1774] = 'ER_MALFORMED_GTID_SPECIFICATION';\nexports[1775] = 'ER_GNO_EXHAUSTED';\nexports[1776] = 'ER_BAD_REPLICA_AUTO_POSITION';\nexports[1777] = 'ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON';\nexports[1778] = 'ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET';\nexports[1779] = 'ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON';\nexports[1780] = 'ER_GTID_MODE_REQUIRES_BINLOG';\nexports[1781] = 'ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF';\nexports[1782] = 'ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON';\nexports[1783] = 'ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF';\nexports[1784] = 'ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF';\nexports[1785] = 'ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE';\nexports[1786] = 'ER_GTID_UNSAFE_CREATE_SELECT';\nexports[1787] = 'ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION';\nexports[1788] = 'ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME';\nexports[1789] = 'ER_SOURCE_HAS_PURGED_REQUIRED_GTIDS';\nexports[1790] = 'ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID';\nexports[1791] = 'ER_UNKNOWN_EXPLAIN_FORMAT';\nexports[1792] = 'ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION';\nexports[1793] = 'ER_TOO_LONG_TABLE_PARTITION_COMMENT';\nexports[1794] = 'ER_REPLICA_CONFIGURATION';\nexports[1795] = 'ER_INNODB_FT_LIMIT';\nexports[1796] = 'ER_INNODB_NO_FT_TEMP_TABLE';\nexports[1797] = 'ER_INNODB_FT_WRONG_DOCID_COLUMN';\nexports[1798] = 'ER_INNODB_FT_WRONG_DOCID_INDEX';\nexports[1799] = 'ER_INNODB_ONLINE_LOG_TOO_BIG';\nexports[1800] = 'ER_UNKNOWN_ALTER_ALGORITHM';\nexports[1801] = 'ER_UNKNOWN_ALTER_LOCK';\nexports[1802] = 'ER_MTS_CHANGE_SOURCE_CANT_RUN_WITH_GAPS';\nexports[1803] = 'ER_MTS_RECOVERY_FAILURE';\nexports[1804] = 'ER_MTS_RESET_WORKERS';\nexports[1805] = 'ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2';\nexports[1806] = 'ER_REPLICA_SILENT_RETRY_TRANSACTION';\nexports[1807] = 'ER_DISCARD_FK_CHECKS_RUNNING';\nexports[1808] = 'ER_TABLE_SCHEMA_MISMATCH';\nexports[1809] = 'ER_TABLE_IN_SYSTEM_TABLESPACE';\nexports[1810] = 'ER_IO_READ_ERROR';\nexports[1811] = 'ER_IO_WRITE_ERROR';\nexports[1812] = 'ER_TABLESPACE_MISSING';\nexports[1813] = 'ER_TABLESPACE_EXISTS';\nexports[1814] = 'ER_TABLESPACE_DISCARDED';\nexports[1815] = 'ER_INTERNAL_ERROR';\nexports[1816] = 'ER_INNODB_IMPORT_ERROR';\nexports[1817] = 'ER_INNODB_INDEX_CORRUPT';\nexports[1818] = 'ER_INVALID_YEAR_COLUMN_LENGTH';\nexports[1819] = 'ER_NOT_VALID_PASSWORD';\nexports[1820] = 'ER_MUST_CHANGE_PASSWORD';\nexports[1821] = 'ER_FK_NO_INDEX_CHILD';\nexports[1822] = 'ER_FK_NO_INDEX_PARENT';\nexports[1823] = 'ER_FK_FAIL_ADD_SYSTEM';\nexports[1824] = 'ER_FK_CANNOT_OPEN_PARENT';\nexports[1825] = 'ER_FK_INCORRECT_OPTION';\nexports[1826] = 'ER_FK_DUP_NAME';\nexports[1827] = 'ER_PASSWORD_FORMAT';\nexports[1828] = 'ER_FK_COLUMN_CANNOT_DROP';\nexports[1829] = 'ER_FK_COLUMN_CANNOT_DROP_CHILD';\nexports[1830] = 'ER_FK_COLUMN_NOT_NULL';\nexports[1831] = 'ER_DUP_INDEX';\nexports[1832] = 'ER_FK_COLUMN_CANNOT_CHANGE';\nexports[1833] = 'ER_FK_COLUMN_CANNOT_CHANGE_CHILD';\nexports[1834] = 'ER_FK_CANNOT_DELETE_PARENT';\nexports[1835] = 'ER_MALFORMED_PACKET';\nexports[1836] = 'ER_READ_ONLY_MODE';\nexports[1837] = 'ER_GTID_NEXT_TYPE_UNDEFINED_GROUP';\nexports[1838] = 'ER_VARIABLE_NOT_SETTABLE_IN_SP';\nexports[1839] = 'ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF';\nexports[1840] = 'ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY';\nexports[1841] = 'ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY';\nexports[1842] = 'ER_GTID_PURGED_WAS_CHANGED';\nexports[1843] = 'ER_GTID_EXECUTED_WAS_CHANGED';\nexports[1844] = 'ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES';\nexports[1845] = 'ER_ALTER_OPERATION_NOT_SUPPORTED';\nexports[1846] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON';\nexports[1847] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY';\nexports[1848] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION';\nexports[1849] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME';\nexports[1850] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE';\nexports[1851] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK';\nexports[1852] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE';\nexports[1853] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK';\nexports[1854] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC';\nexports[1855] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS';\nexports[1856] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS';\nexports[1857] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS';\nexports[1858] = 'ER_SQL_REPLICA_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE';\nexports[1859] = 'ER_DUP_UNKNOWN_IN_INDEX';\nexports[1860] = 'ER_IDENT_CAUSES_TOO_LONG_PATH';\nexports[1861] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL';\nexports[1862] = 'ER_MUST_CHANGE_PASSWORD_LOGIN';\nexports[1863] = 'ER_ROW_IN_WRONG_PARTITION';\nexports[1864] = 'ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX';\nexports[1865] = 'ER_INNODB_NO_FT_USES_PARSER';\nexports[1866] = 'ER_BINLOG_LOGICAL_CORRUPTION';\nexports[1867] = 'ER_WARN_PURGE_LOG_IN_USE';\nexports[1868] = 'ER_WARN_PURGE_LOG_IS_ACTIVE';\nexports[1869] = 'ER_AUTO_INCREMENT_CONFLICT';\nexports[1870] = 'WARN_ON_BLOCKHOLE_IN_RBR';\nexports[1871] = 'ER_REPLICA_MI_INIT_REPOSITORY';\nexports[1872] = 'ER_REPLICA_RLI_INIT_REPOSITORY';\nexports[1873] = 'ER_ACCESS_DENIED_CHANGE_USER_ERROR';\nexports[1874] = 'ER_INNODB_READ_ONLY';\nexports[1875] = 'ER_STOP_REPLICA_SQL_THREAD_TIMEOUT';\nexports[1876] = 'ER_STOP_REPLICA_IO_THREAD_TIMEOUT';\nexports[1877] = 'ER_TABLE_CORRUPT';\nexports[1878] = 'ER_TEMP_FILE_WRITE_FAILURE';\nexports[1879] = 'ER_INNODB_FT_AUX_NOT_HEX_ID';\nexports[1880] = 'ER_OLD_TEMPORALS_UPGRADED';\nexports[1881] = 'ER_INNODB_FORCED_RECOVERY';\nexports[1882] = 'ER_AES_INVALID_IV';\nexports[1883] = 'ER_FILE_CORRUPT';\nexports[1884] = 'ER_ERROR_ON_SOURCE';\nexports[1885] = 'ER_INCONSISTENT_ERROR';\nexports[1886] = 'ER_STORAGE_ENGINE_NOT_LOADED';\nexports[1887] = 'ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER';\nexports[1888] = 'ER_WARN_LEGACY_SYNTAX_CONVERTED';\nexports[1889] = 'ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN';\nexports[1890] = 'ER_CANNOT_DISCARD_TEMPORARY_TABLE';\nexports[1891] = 'ER_FK_DEPTH_EXCEEDED';\nexports[1892] = 'ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2';\nexports[1893] = 'ER_WARN_TRIGGER_DOESNT_HAVE_CREATED';\nexports[1894] = 'ER_REFERENCED_TRG_DOES_NOT_EXIST';\nexports[1895] = 'ER_EXPLAIN_NOT_SUPPORTED';\nexports[1896] = 'ER_INVALID_FIELD_SIZE';\nexports[1897] = 'ER_MISSING_HA_CREATE_OPTION';\nexports[1898] = 'ER_ENGINE_OUT_OF_MEMORY';\nexports[1899] = 'ER_PASSWORD_EXPIRE_ANONYMOUS_USER';\nexports[1900] = 'ER_REPLICA_SQL_THREAD_MUST_STOP';\nexports[1901] = 'ER_NO_FT_MATERIALIZED_SUBQUERY';\nexports[1902] = 'ER_INNODB_UNDO_LOG_FULL';\nexports[1903] = 'ER_INVALID_ARGUMENT_FOR_LOGARITHM';\nexports[1904] = 'ER_REPLICA_IO_THREAD_MUST_STOP';\nexports[1905] = 'ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO';\nexports[1906] = 'ER_WARN_ONLY_SOURCE_LOG_FILE_NO_POS';\nexports[1907] = 'ER_QUERY_TIMEOUT';\nexports[1908] = 'ER_NON_RO_SELECT_DISABLE_TIMER';\nexports[1909] = 'ER_DUP_LIST_ENTRY';\nexports[1910] = 'ER_SQL_MODE_NO_EFFECT';\nexports[3169] = 'ER_SESSION_WAS_KILLED';\nexports[4031] = 'ER_CLIENT_INTERACTION_TIMEOUT';\n","module.exports = require(\"string_decoder\");","'use strict';\n\n// Manually extracted from mysql-5.5.23/include/mysql_com.h\n\n/**\n Is raised when a multi-statement transaction\n has been started, either explicitly, by means\n of BEGIN or COMMIT AND CHAIN, or\n implicitly, by the first transactional\n statement, when autocommit=off.\n*/\nexports.SERVER_STATUS_IN_TRANS = 1;\nexports.SERVER_STATUS_AUTOCOMMIT = 2; /* Server in auto_commit mode */\nexports.SERVER_MORE_RESULTS_EXISTS = 8; /* Multi query - next query exists */\nexports.SERVER_QUERY_NO_GOOD_INDEX_USED = 16;\nexports.SERVER_QUERY_NO_INDEX_USED = 32;\n/**\n The server was able to fulfill the clients request and opened a\n read-only non-scrollable cursor for a query. This flag comes\n in reply to COM_STMT_EXECUTE and COM_STMT_FETCH commands.\n*/\nexports.SERVER_STATUS_CURSOR_EXISTS = 64;\n/**\n This flag is sent when a read-only cursor is exhausted, in reply to\n COM_STMT_FETCH command.\n*/\nexports.SERVER_STATUS_LAST_ROW_SENT = 128;\nexports.SERVER_STATUS_DB_DROPPED = 256; /* A database was dropped */\nexports.SERVER_STATUS_NO_BACKSLASH_ESCAPES = 512;\n/**\n Sent to the client if after a prepared statement reprepare\n we discovered that the new statement returns a different\n number of result set columns.\n*/\nexports.SERVER_STATUS_METADATA_CHANGED = 1024;\nexports.SERVER_QUERY_WAS_SLOW = 2048;\n\n/**\n To mark ResultSet containing output parameter values.\n*/\nexports.SERVER_PS_OUT_PARAMS = 4096;\n\nexports.SERVER_STATUS_IN_TRANS_READONLY = 0x2000; // in a read-only transaction\nexports.SERVER_SESSION_STATE_CHANGED = 0x4000;\n","// This file was modified by Oracle on June 17, 2021.\n// Handshake errors are now maked as fatal and the corresponding events are\n// emitted in the command instance itself.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst Command = require('./command.js');\nconst Packets = require('../packets/index.js');\nconst ClientConstants = require('../constants/client.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\nconst auth41 = require('../auth_41.js');\n\nfunction flagNames(flags) {\n const res = [];\n for (const c in ClientConstants) {\n if (flags & ClientConstants[c]) {\n res.push(c.replace(/_/g, ' ').toLowerCase());\n }\n }\n return res;\n}\n\nclass ClientHandshake extends Command {\n constructor(clientFlags) {\n super();\n this.handshake = null;\n this.clientFlags = clientFlags;\n }\n\n start() {\n return ClientHandshake.prototype.handshakeInit;\n }\n\n sendSSLRequest(connection) {\n const sslRequest = new Packets.SSLRequest(\n this.clientFlags,\n connection.config.charsetNumber\n );\n connection.writePacket(sslRequest.toPacket());\n }\n\n sendCredentials(connection) {\n if (connection.config.debug) {\n // eslint-disable-next-line\n console.log(\n 'Sending handshake packet: flags:%d=(%s)',\n this.clientFlags,\n flagNames(this.clientFlags).join(', ')\n );\n }\n this.user = connection.config.user;\n this.password = connection.config.password;\n this.passwordSha1 = connection.config.passwordSha1;\n this.database = connection.config.database;\n this.autPluginName = this.handshake.autPluginName;\n const handshakeResponse = new Packets.HandshakeResponse({\n flags: this.clientFlags,\n user: this.user,\n database: this.database,\n password: this.password,\n passwordSha1: this.passwordSha1,\n charsetNumber: connection.config.charsetNumber,\n authPluginData1: this.handshake.authPluginData1,\n authPluginData2: this.handshake.authPluginData2,\n compress: connection.config.compress,\n connectAttributes: connection.config.connectAttributes\n });\n connection.writePacket(handshakeResponse.toPacket());\n }\n\n calculateNativePasswordAuthToken(authPluginData) {\n // TODO: dont split into authPluginData1 and authPluginData2, instead join when 1 & 2 received\n const authPluginData1 = authPluginData.slice(0, 8);\n const authPluginData2 = authPluginData.slice(8, 20);\n let authToken;\n if (this.passwordSha1) {\n authToken = auth41.calculateTokenFromPasswordSha(\n this.passwordSha1,\n authPluginData1,\n authPluginData2\n );\n } else {\n authToken = auth41.calculateToken(\n this.password,\n authPluginData1,\n authPluginData2\n );\n }\n return authToken;\n }\n\n handshakeInit(helloPacket, connection) {\n this.on('error', e => {\n connection._fatalError = e;\n connection._protocolError = e;\n });\n this.handshake = Packets.Handshake.fromPacket(helloPacket);\n if (connection.config.debug) {\n // eslint-disable-next-line\n console.log(\n 'Server hello packet: capability flags:%d=(%s)',\n this.handshake.capabilityFlags,\n flagNames(this.handshake.capabilityFlags).join(', ')\n );\n }\n connection.serverCapabilityFlags = this.handshake.capabilityFlags;\n connection.serverEncoding = CharsetToEncoding[this.handshake.characterSet];\n connection.connectionId = this.handshake.connectionId;\n const serverSSLSupport =\n this.handshake.capabilityFlags & ClientConstants.SSL;\n // use compression only if requested by client and supported by server\n connection.config.compress =\n connection.config.compress &&\n this.handshake.capabilityFlags & ClientConstants.COMPRESS;\n this.clientFlags = this.clientFlags | connection.config.compress;\n if (connection.config.ssl) {\n // client requires SSL but server does not support it\n if (!serverSSLSupport) {\n const err = new Error('Server does not support secure connnection');\n err.code = 'HANDSHAKE_NO_SSL_SUPPORT';\n err.fatal = true;\n this.emit('error', err);\n return false;\n }\n // send ssl upgrade request and immediately upgrade connection to secure\n this.clientFlags |= ClientConstants.SSL;\n this.sendSSLRequest(connection);\n connection.startTLS(err => {\n // after connection is secure\n if (err) {\n // SSL negotiation error are fatal\n err.code = 'HANDSHAKE_SSL_ERROR';\n err.fatal = true;\n this.emit('error', err);\n return;\n }\n // rest of communication is encrypted\n this.sendCredentials(connection);\n });\n } else {\n this.sendCredentials(connection);\n }\n return ClientHandshake.prototype.handshakeResult;\n }\n\n handshakeResult(packet, connection) {\n const marker = packet.peekByte();\n if (marker === 0xfe || marker === 1) {\n const authSwitch = require('./auth_switch');\n try {\n if (marker === 1) {\n authSwitch.authSwitchRequestMoreData(packet, connection, this);\n } else {\n authSwitch.authSwitchRequest(packet, connection, this);\n }\n return ClientHandshake.prototype.handshakeResult;\n } catch (err) {\n // Authentication errors are fatal\n err.code = 'AUTH_SWITCH_PLUGIN_ERROR';\n err.fatal = true;\n\n if (this.onResult) {\n this.onResult(err);\n } else {\n this.emit('error', err);\n }\n return null;\n }\n }\n if (marker !== 0) {\n const err = new Error('Unexpected packet during handshake phase');\n // Unknown handshake errors are fatal\n err.code = 'HANDSHAKE_UNKNOWN_ERROR';\n err.fatal = true;\n\n if (this.onResult) {\n this.onResult(err);\n } else {\n this.emit('error', err);\n }\n return null;\n }\n // this should be called from ClientHandshake command only\n // and skipped when called from ChangeUser command\n if (!connection.authorized) {\n connection.authorized = true;\n if (connection.config.compress) {\n const enableCompression = require('../compressed_protocol.js')\n .enableCompression;\n enableCompression(connection);\n }\n }\n if (this.onResult) {\n this.onResult(null);\n }\n return null;\n }\n}\nmodule.exports = ClientHandshake;\n","'use strict';\n\nconst process = require('process');\nconst Timers = require('timers');\n\nconst Readable = require('stream').Readable;\n\nconst Command = require('./command.js');\nconst Packets = require('../packets/index.js');\nconst getTextParser = require('../parsers/text_parser.js');\nconst ServerStatus = require('../constants/server_status.js');\n\nconst EmptyPacket = new Packets.Packet(0, Buffer.allocUnsafe(4), 0, 4);\n\n// http://dev.mysql.com/doc/internals/en/com-query.html\nclass Query extends Command {\n constructor(options, callback) {\n super();\n this.sql = options.sql;\n this.values = options.values;\n this._queryOptions = options;\n this.namedPlaceholders = options.namedPlaceholders || false;\n this.onResult = callback;\n this.timeout = options.timeout;\n this.queryTimeout = null;\n this._fieldCount = 0;\n this._rowParser = null;\n this._fields = [];\n this._rows = [];\n this._receivedFieldsCount = 0;\n this._resultIndex = 0;\n this._localStream = null;\n this._unpipeStream = function() {};\n this._streamFactory = options.infileStreamFactory;\n this._connection = null;\n }\n\n then() {\n const err =\n \"You have tried to call .then(), .catch(), or invoked await on the result of query that is not a promise, which is a programming error. Try calling con.promise().query(), or require('mysql2/promise') instead of 'mysql2' for a promise-compatible version of the query interface. To learn how to use async/await or Promises check out documentation at https://www.npmjs.com/package/mysql2#using-promise-wrapper, or the mysql2 documentation at https://github.com/sidorares/node-mysql2/tree/master/documentation/Promise-Wrapper.md\";\n // eslint-disable-next-line\n console.log(err);\n throw new Error(err);\n }\n\n /* eslint no-unused-vars: [\"error\", { \"argsIgnorePattern\": \"^_\" }] */\n start(_packet, connection) {\n if (connection.config.debug) {\n // eslint-disable-next-line\n console.log(' Sending query command: %s', this.sql);\n }\n this._connection = connection;\n this.options = Object.assign({}, connection.config, this._queryOptions);\n this._setTimeout();\n\n const cmdPacket = new Packets.Query(\n this.sql,\n connection.config.charsetNumber\n );\n connection.writePacket(cmdPacket.toPacket(1));\n return Query.prototype.resultsetHeader;\n }\n\n done() {\n this._unpipeStream();\n // if all ready timeout, return null directly\n if (this.timeout && !this.queryTimeout) {\n return null;\n }\n // else clear timer\n if (this.queryTimeout) {\n Timers.clearTimeout(this.queryTimeout);\n this.queryTimeout = null;\n }\n if (this.onResult) {\n let rows, fields;\n if (this._resultIndex === 0) {\n rows = this._rows[0];\n fields = this._fields[0];\n } else {\n rows = this._rows;\n fields = this._fields;\n }\n if (fields) {\n process.nextTick(() => {\n this.onResult(null, rows, fields);\n });\n } else {\n process.nextTick(() => {\n this.onResult(null, rows);\n });\n }\n }\n return null;\n }\n\n doneInsert(rs) {\n if (this._localStreamError) {\n if (this.onResult) {\n this.onResult(this._localStreamError, rs);\n } else {\n this.emit('error', this._localStreamError);\n }\n return null;\n }\n this._rows.push(rs);\n this._fields.push(void 0);\n this.emit('fields', void 0);\n this.emit('result', rs);\n if (rs.serverStatus & ServerStatus.SERVER_MORE_RESULTS_EXISTS) {\n this._resultIndex++;\n return this.resultsetHeader;\n }\n return this.done();\n }\n\n resultsetHeader(packet, connection) {\n const rs = new Packets.ResultSetHeader(packet, connection);\n this._fieldCount = rs.fieldCount;\n if (connection.config.debug) {\n // eslint-disable-next-line\n console.log(\n ` Resultset header received, expecting ${rs.fieldCount} column definition packets`\n );\n }\n if (this._fieldCount === 0) {\n return this.doneInsert(rs);\n }\n if (this._fieldCount === null) {\n return this._streamLocalInfile(connection, rs.infileName);\n }\n this._receivedFieldsCount = 0;\n this._rows.push([]);\n this._fields.push([]);\n return this.readField;\n }\n\n _streamLocalInfile(connection, path) {\n if (this._streamFactory) {\n this._localStream = this._streamFactory(path);\n } else {\n this._localStreamError = new Error(\n `As a result of LOCAL INFILE command server wants to read ${path} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`\n );\n connection.writePacket(EmptyPacket);\n return this.infileOk;\n }\n\n const onConnectionError = () => {\n this._unpipeStream();\n };\n const onDrain = () => {\n this._localStream.resume();\n };\n const onPause = () => {\n this._localStream.pause();\n };\n const onData = function(data) {\n const dataWithHeader = Buffer.allocUnsafe(data.length + 4);\n data.copy(dataWithHeader, 4);\n connection.writePacket(\n new Packets.Packet(0, dataWithHeader, 0, dataWithHeader.length)\n );\n };\n const onEnd = () => {\n connection.removeListener('error', onConnectionError);\n connection.writePacket(EmptyPacket);\n };\n const onError = err => {\n this._localStreamError = err;\n connection.removeListener('error', onConnectionError);\n connection.writePacket(EmptyPacket);\n };\n this._unpipeStream = () => {\n connection.stream.removeListener('pause', onPause);\n connection.stream.removeListener('drain', onDrain);\n this._localStream.removeListener('data', onData);\n this._localStream.removeListener('end', onEnd);\n this._localStream.removeListener('error', onError);\n };\n connection.stream.on('pause', onPause);\n connection.stream.on('drain', onDrain);\n this._localStream.on('data', onData);\n this._localStream.on('end', onEnd);\n this._localStream.on('error', onError);\n connection.once('error', onConnectionError);\n return this.infileOk;\n }\n\n readField(packet, connection) {\n this._receivedFieldsCount++;\n // Often there is much more data in the column definition than in the row itself\n // If you set manually _fields[0] to array of ColumnDefinition's (from previous call)\n // you can 'cache' result of parsing. Field packets still received, but ignored in that case\n // this is the reason _receivedFieldsCount exist (otherwise we could just use current length of fields array)\n if (this._fields[this._resultIndex].length !== this._fieldCount) {\n const field = new Packets.ColumnDefinition(\n packet,\n connection.clientEncoding\n );\n this._fields[this._resultIndex].push(field);\n if (connection.config.debug) {\n /* eslint-disable no-console */\n console.log(' Column definition:');\n console.log(` name: ${field.name}`);\n console.log(` type: ${field.columnType}`);\n console.log(` flags: ${field.flags}`);\n /* eslint-enable no-console */\n }\n }\n // last field received\n if (this._receivedFieldsCount === this._fieldCount) {\n const fields = this._fields[this._resultIndex];\n this.emit('fields', fields);\n this._rowParser = new (getTextParser(fields, this.options, connection.config))(fields);\n return Query.prototype.fieldsEOF;\n }\n return Query.prototype.readField;\n }\n\n fieldsEOF(packet, connection) {\n // check EOF\n if (!packet.isEOF()) {\n return connection.protocolError('Expected EOF packet');\n }\n return this.row;\n }\n\n /* eslint no-unused-vars: [\"error\", { \"argsIgnorePattern\": \"^_\" }] */\n row(packet, _connection) { \n if (packet.isEOF()) {\n const status = packet.eofStatusFlags();\n const moreResults = status & ServerStatus.SERVER_MORE_RESULTS_EXISTS;\n if (moreResults) {\n this._resultIndex++;\n return Query.prototype.resultsetHeader;\n }\n return this.done();\n }\n let row;\n try {\n row = this._rowParser.next(\n packet,\n this._fields[this._resultIndex],\n this.options\n );\n } catch (err) {\n this._localStreamError = err;\n return this.doneInsert(null);\n }\n if (this.onResult) {\n this._rows[this._resultIndex].push(row);\n } else {\n this.emit('result', row);\n }\n return Query.prototype.row;\n }\n\n infileOk(packet, connection) {\n const rs = new Packets.ResultSetHeader(packet, connection);\n return this.doneInsert(rs);\n }\n\n stream(options) {\n options = options || {};\n options.objectMode = true;\n const stream = new Readable(options);\n stream._read = () => {\n this._connection && this._connection.resume();\n };\n this.on('result', row => {\n if (!stream.push(row)) {\n this._connection.pause();\n }\n stream.emit('result', row); // replicate old emitter\n });\n this.on('error', err => {\n stream.emit('error', err); // Pass on any errors\n });\n this.on('end', () => {\n stream.push(null); // pushing null, indicating EOF\n stream.emit('close'); // notify readers that query has completed\n });\n this.on('fields', fields => {\n stream.emit('fields', fields); // replicate old emitter\n });\n return stream;\n }\n\n _setTimeout() {\n if (this.timeout) {\n const timeoutHandler = this._handleTimeoutError.bind(this);\n this.queryTimeout = Timers.setTimeout(\n timeoutHandler,\n this.timeout\n );\n }\n }\n\n _handleTimeoutError() {\n if (this.queryTimeout) {\n Timers.clearTimeout(this.queryTimeout);\n this.queryTimeout = null;\n }\n \n const err = new Error('Query inactivity timeout');\n err.errorno = 'PROTOCOL_SEQUENCE_TIMEOUT';\n err.code = 'PROTOCOL_SEQUENCE_TIMEOUT';\n err.syscall = 'query';\n\n if (this.onResult) {\n this.onResult(err);\n } else {\n this.emit('error', err);\n }\n }\n}\n\nQuery.prototype.catch = Query.prototype.then;\n\nmodule.exports = Query;\n","'use strict';\n\n/*\n\n this seems to be not only shorter, but faster than\n string.replace(/\\\\/g, '\\\\\\\\').\n replace(/\\u0008/g, '\\\\b').\n replace(/\\t/g, '\\\\t').\n replace(/\\n/g, '\\\\n').\n replace(/\\f/g, '\\\\f').\n replace(/\\r/g, '\\\\r').\n replace(/'/g, '\\\\\\'').\n replace(/\"/g, '\\\\\"');\n or string.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, \"\\\\$&\")\n see http://jsperf.com/string-escape-regexp-vs-json-stringify\n */\nfunction srcEscape(str) {\n return JSON.stringify({\n [str]: 1\n }).slice(1, -3);\n}\n\nexports.srcEscape = srcEscape;\n\nlet highlightFn;\nlet cardinalRecommended = false;\ntry {\n highlightFn = require('cardinal').highlight;\n} catch (err) {\n highlightFn = text => {\n if (!cardinalRecommended) {\n // eslint-disable-next-line no-console\n console.log('For nicer debug output consider install cardinal@^2.0.0');\n cardinalRecommended = true;\n }\n return text;\n };\n}\n\n/**\n * Prints debug message with code frame, will try to use `cardinal` if available.\n */\nfunction printDebugWithCode(msg, code) {\n // eslint-disable-next-line no-console\n console.log(`\\n\\n${msg}:\\n`);\n // eslint-disable-next-line no-console\n console.log(`${highlightFn(code)}\\n`);\n}\n\nexports.printDebugWithCode = printDebugWithCode;\n\n/**\n * checks whether the `type` is in the `list`\n */\nfunction typeMatch(type, list, Types) {\n if (Array.isArray(list)) {\n return list.some(t => type === Types[t]);\n }\n\n return !!list;\n}\n\nexports.typeMatch = typeMatch;\n","var util = require('util')\nvar isProperty = require('is-property')\n\nvar INDENT_START = /[\\{\\[]/\nvar INDENT_END = /[\\}\\]]/\n\n// from https://mathiasbynens.be/notes/reserved-keywords\nvar RESERVED = [\n 'do',\n 'if',\n 'in',\n 'for',\n 'let',\n 'new',\n 'try',\n 'var',\n 'case',\n 'else',\n 'enum',\n 'eval',\n 'null',\n 'this',\n 'true',\n 'void',\n 'with',\n 'await',\n 'break',\n 'catch',\n 'class',\n 'const',\n 'false',\n 'super',\n 'throw',\n 'while',\n 'yield',\n 'delete',\n 'export',\n 'import',\n 'public',\n 'return',\n 'static',\n 'switch',\n 'typeof',\n 'default',\n 'extends',\n 'finally',\n 'package',\n 'private',\n 'continue',\n 'debugger',\n 'function',\n 'arguments',\n 'interface',\n 'protected',\n 'implements',\n 'instanceof',\n 'NaN',\n 'undefined'\n]\n\nvar RESERVED_MAP = {}\n\nfor (var i = 0; i < RESERVED.length; i++) {\n RESERVED_MAP[RESERVED[i]] = true\n}\n\nvar isVariable = function (name) {\n return isProperty(name) && !RESERVED_MAP.hasOwnProperty(name)\n}\n\nvar formats = {\n s: function(s) {\n return '' + s\n },\n d: function(d) {\n return '' + Number(d)\n },\n o: function(o) {\n return JSON.stringify(o)\n }\n}\n\nvar genfun = function() {\n var lines = []\n var indent = 0\n var vars = {}\n\n var push = function(str) {\n var spaces = ''\n while (spaces.length < indent*2) spaces += ' '\n lines.push(spaces+str)\n }\n\n var pushLine = function(line) {\n if (INDENT_END.test(line.trim()[0]) && INDENT_START.test(line[line.length-1])) {\n indent--\n push(line)\n indent++\n return\n }\n if (INDENT_START.test(line[line.length-1])) {\n push(line)\n indent++\n return\n }\n if (INDENT_END.test(line.trim()[0])) {\n indent--\n push(line)\n return\n }\n\n push(line)\n }\n\n var line = function(fmt) {\n if (!fmt) return line\n\n if (arguments.length === 1 && fmt.indexOf('\\n') > -1) {\n var lines = fmt.trim().split('\\n')\n for (var i = 0; i < lines.length; i++) {\n pushLine(lines[i].trim())\n }\n } else {\n pushLine(util.format.apply(util, arguments))\n }\n\n return line\n }\n\n line.scope = {}\n line.formats = formats\n\n line.sym = function(name) {\n if (!name || !isVariable(name)) name = 'tmp'\n if (!vars[name]) vars[name] = 0\n return name + (vars[name]++ || '')\n }\n\n line.property = function(obj, name) {\n if (arguments.length === 1) {\n name = obj\n obj = ''\n }\n\n name = name + ''\n\n if (isProperty(name)) return (obj ? obj + '.' + name : name)\n return obj ? obj + '[' + JSON.stringify(name) + ']' : JSON.stringify(name)\n }\n\n line.toString = function() {\n return lines.join('\\n')\n }\n\n line.toFunction = function(scope) {\n if (!scope) scope = {}\n\n var src = 'return ('+line.toString()+')'\n\n Object.keys(line.scope).forEach(function (key) {\n if (!scope[key]) scope[key] = line.scope[key]\n })\n\n var keys = Object.keys(scope).map(function(key) {\n return key\n })\n\n var vals = keys.map(function(key) {\n return scope[key]\n })\n\n return Function.apply(null, keys.concat(src)).apply(null, vals)\n }\n\n if (arguments.length) line.apply(null, arguments)\n\n return line\n}\n\ngenfun.formats = formats\nmodule.exports = genfun\n","'use strict';\n\nconst Command = require('./command');\nconst Packets = require('../packets/index.js');\n\nclass CloseStatement extends Command {\n constructor(id) {\n super();\n this.id = id;\n }\n\n start(packet, connection) {\n connection.writePacket(new Packets.CloseStatement(this.id).toPacket(1));\n return null;\n }\n}\n\nmodule.exports = CloseStatement;\n","'use strict';\n\nconst Command = require('./command.js');\nconst Query = require('./query.js');\nconst Packets = require('../packets/index.js');\n\nconst getBinaryParser = require('../parsers/binary_parser.js');\n\nclass Execute extends Command {\n constructor(options, callback) {\n super();\n this.statement = options.statement;\n this.sql = options.sql;\n this.values = options.values;\n this.onResult = callback;\n this.parameters = options.values;\n this.insertId = 0;\n this.timeout = options.timeout;\n this.queryTimeout = null;\n this._rows = [];\n this._fields = [];\n this._result = [];\n this._fieldCount = 0;\n this._rowParser = null;\n this._executeOptions = options;\n this._resultIndex = 0;\n this._localStream = null;\n this._unpipeStream = function() {};\n this._streamFactory = options.infileStreamFactory;\n this._connection = null;\n }\n\n buildParserFromFields(fields, connection) {\n return getBinaryParser(fields, this.options, connection.config);\n }\n\n start(packet, connection) {\n this._connection = connection;\n this.options = Object.assign({}, connection.config, this._executeOptions);\n this._setTimeout();\n const executePacket = new Packets.Execute(\n this.statement.id,\n this.parameters,\n connection.config.charsetNumber,\n connection.config.timezone\n );\n //For reasons why this try-catch is here, please see\n // https://github.com/sidorares/node-mysql2/pull/689\n //For additional discussion, see\n // 1. https://github.com/sidorares/node-mysql2/issues/493\n // 2. https://github.com/sidorares/node-mysql2/issues/187\n // 3. https://github.com/sidorares/node-mysql2/issues/480\n try {\n connection.writePacket(executePacket.toPacket(1));\n } catch (error) {\n this.onResult(error);\n }\n return Execute.prototype.resultsetHeader;\n }\n\n readField(packet, connection) {\n let fields;\n // disabling for now, but would be great to find reliable way to parse fields only once\n // fields reported by prepare can be empty at all or just incorrect - see #169\n //\n // perfomance optimisation: if we already have this field parsed in statement header, use one from header\n // const field = this.statement.columns.length == this._fieldCount ?\n // this.statement.columns[this._receivedFieldsCount] : new Packets.ColumnDefinition(packet);\n const field = new Packets.ColumnDefinition(\n packet,\n connection.clientEncoding\n );\n this._receivedFieldsCount++;\n this._fields[this._resultIndex].push(field);\n if (this._receivedFieldsCount === this._fieldCount) {\n fields = this._fields[this._resultIndex];\n this.emit('fields', fields, this._resultIndex);\n return Execute.prototype.fieldsEOF;\n }\n return Execute.prototype.readField;\n }\n\n fieldsEOF(packet, connection) {\n // check EOF\n if (!packet.isEOF()) {\n return connection.protocolError('Expected EOF packet');\n }\n this._rowParser = new (this.buildParserFromFields(\n this._fields[this._resultIndex],\n connection\n ))();\n return Execute.prototype.row;\n }\n}\n\nExecute.prototype.done = Query.prototype.done;\nExecute.prototype.doneInsert = Query.prototype.doneInsert;\nExecute.prototype.resultsetHeader = Query.prototype.resultsetHeader;\nExecute.prototype._findOrCreateReadStream =\n Query.prototype._findOrCreateReadStream;\nExecute.prototype._streamLocalInfile = Query.prototype._streamLocalInfile;\nExecute.prototype._setTimeout = Query.prototype._setTimeout;\nExecute.prototype._handleTimeoutError = Query.prototype._handleTimeoutError;\nExecute.prototype.row = Query.prototype.row;\nExecute.prototype.stream = Query.prototype.stream;\n\nmodule.exports = Execute;\n","'use strict';\n\nconst process = require('process');\nconst mysql = require('../index.js');\n\nconst EventEmitter = require('events').EventEmitter;\nconst PoolConnection = require('./pool_connection.js');\nconst Queue = require('denque');\nconst Connection = require('./connection.js');\n\nfunction spliceConnection(queue, connection) {\n const len = queue.length;\n for (let i = 0; i < len; i++) {\n if (queue.get(i) === connection) {\n queue.removeOne(i);\n break;\n }\n }\n}\n\nclass Pool extends EventEmitter {\n constructor(options) {\n super();\n this.config = options.config;\n this.config.connectionConfig.pool = this;\n this._allConnections = new Queue();\n this._freeConnections = new Queue();\n this._connectionQueue = new Queue();\n this._closed = false;\n }\n\n promise(promiseImpl) {\n const PromisePool = require('../promise').PromisePool;\n return new PromisePool(this, promiseImpl);\n }\n\n getConnection(cb) {\n if (this._closed) {\n return process.nextTick(() => cb(new Error('Pool is closed.')));\n }\n let connection;\n if (this._freeConnections.length > 0) {\n connection = this._freeConnections.shift();\n this.emit('acquire', connection);\n return process.nextTick(() => cb(null, connection));\n }\n if (\n this.config.connectionLimit === 0 ||\n this._allConnections.length < this.config.connectionLimit\n ) {\n connection = new PoolConnection(this, {\n config: this.config.connectionConfig\n });\n this._allConnections.push(connection);\n return connection.connect(err => {\n if (this._closed) {\n return cb(new Error('Pool is closed.'));\n }\n if (err) {\n return cb(err);\n }\n this.emit('connection', connection);\n this.emit('acquire', connection);\n return cb(null, connection);\n });\n }\n if (!this.config.waitForConnections) {\n return process.nextTick(() => cb(new Error('No connections available.')));\n }\n if (\n this.config.queueLimit &&\n this._connectionQueue.length >= this.config.queueLimit\n ) {\n return cb(new Error('Queue limit reached.'));\n }\n this.emit('enqueue');\n return this._connectionQueue.push(cb);\n }\n\n releaseConnection(connection) {\n let cb;\n if (!connection._pool) {\n // The connection has been removed from the pool and is no longer good.\n if (this._connectionQueue.length) {\n cb = this._connectionQueue.shift();\n process.nextTick(this.getConnection.bind(this, cb));\n }\n } else if (this._connectionQueue.length) {\n cb = this._connectionQueue.shift();\n process.nextTick(cb.bind(null, null, connection));\n } else {\n this._freeConnections.push(connection);\n this.emit('release', connection);\n }\n }\n\n end(cb) {\n this._closed = true;\n if (typeof cb !== 'function') {\n cb = function(err) {\n if (err) {\n throw err;\n }\n };\n }\n let calledBack = false;\n let closedConnections = 0;\n let connection;\n const endCB = function(err) {\n if (calledBack) {\n return;\n }\n if (err || ++closedConnections >= this._allConnections.length) {\n calledBack = true;\n cb(err);\n return;\n }\n }.bind(this);\n if (this._allConnections.length === 0) {\n endCB();\n return;\n }\n for (let i = 0; i < this._allConnections.length; i++) {\n connection = this._allConnections.get(i);\n connection._realEnd(endCB);\n }\n }\n\n query(sql, values, cb) {\n const cmdQuery = Connection.createQuery(\n sql,\n values,\n cb,\n this.config.connectionConfig\n );\n if (typeof cmdQuery.namedPlaceholders === 'undefined') {\n cmdQuery.namedPlaceholders = this.config.connectionConfig.namedPlaceholders;\n }\n this.getConnection((err, conn) => {\n if (err) {\n if (typeof cmdQuery.onResult === 'function') {\n cmdQuery.onResult(err);\n } else {\n cmdQuery.emit('error', err);\n }\n return;\n }\n try {\n conn.query(cmdQuery).once('end', () => {\n conn.release();\n });\n } catch (e) {\n conn.release();\n throw e;\n }\n });\n return cmdQuery;\n }\n\n execute(sql, values, cb) {\n // TODO construct execute command first here and pass it to connection.execute\n // so that polymorphic arguments logic is there in one place\n if (typeof values === 'function') {\n cb = values;\n values = [];\n }\n this.getConnection((err, conn) => {\n if (err) {\n return cb(err);\n }\n try {\n conn.execute(sql, values, cb).once('end', () => {\n conn.release();\n });\n } catch (e) {\n conn.release();\n throw e;\n }\n });\n }\n\n _removeConnection(connection) {\n // Remove connection from all connections\n spliceConnection(this._allConnections, connection);\n // Remove connection from free connections\n spliceConnection(this._freeConnections, connection);\n this.releaseConnection(connection);\n }\n\n format(sql, values) {\n return mysql.format(\n sql,\n values,\n this.config.connectionConfig.stringifyObjects,\n this.config.connectionConfig.timezone\n );\n }\n\n escape(value) {\n return mysql.escape(\n value,\n this.config.connectionConfig.stringifyObjects,\n this.config.connectionConfig.timezone\n );\n }\n\n escapeId(value) {\n return mysql.escapeId(value, false);\n }\n}\n\nmodule.exports = Pool;\n","'use strict';\n\nconst Connection = require('../index.js').Connection;\n\nclass PoolConnection extends Connection {\n constructor(pool, options) {\n super(options);\n this._pool = pool;\n // When a fatal error occurs the connection's protocol ends, which will cause\n // the connection to end as well, thus we only need to watch for the end event\n // and we will be notified of disconnects.\n // REVIEW: Moved to `once`\n this.once('end', () => {\n this._removeFromPool();\n });\n this.once('error', () => {\n this._removeFromPool();\n });\n }\n\n release() {\n if (!this._pool || this._pool._closed) {\n return;\n }\n this._pool.releaseConnection(this);\n }\n\n promise(promiseImpl) {\n const PromisePoolConnection = require('../promise').PromisePoolConnection;\n return new PromisePoolConnection(this, promiseImpl);\n }\n\n end() {\n const err = new Error(\n 'Calling conn.end() to release a pooled connection is ' +\n 'deprecated. In next version calling conn.end() will be ' +\n 'restored to default conn.end() behavior. Use ' +\n 'conn.release() instead.'\n );\n this.emit('warn', err);\n // eslint-disable-next-line no-console\n console.warn(err.message);\n this.release();\n }\n\n destroy() {\n this._removeFromPool();\n super.destroy();\n }\n\n _removeFromPool() {\n if (!this._pool || this._pool._closed) {\n return;\n }\n const pool = this._pool;\n this._pool = null;\n pool._removeConnection(this);\n }\n}\n\nPoolConnection.statementKey = Connection.statementKey;\nmodule.exports = PoolConnection;\n\n// TODO: Remove this when we are removing PoolConnection#end\nPoolConnection.prototype._realEnd = Connection.prototype.end;\n","'use strict';\n\nconst process = require('process');\n\nconst Pool = require('./pool.js');\nconst PoolConfig = require('./pool_config.js');\nconst Connection = require('./connection.js');\nconst EventEmitter = require('events').EventEmitter;\n\n/**\n * Selector\n */\nconst makeSelector = {\n RR() {\n let index = 0;\n return clusterIds => clusterIds[index++ % clusterIds.length];\n },\n RANDOM() {\n return clusterIds =>\n clusterIds[Math.floor(Math.random() * clusterIds.length)];\n },\n ORDER() {\n return clusterIds => clusterIds[0];\n }\n};\n\nclass PoolNamespace {\n constructor(cluster, pattern, selector) {\n this._cluster = cluster;\n this._pattern = pattern;\n this._selector = makeSelector[selector]();\n }\n\n getConnection(cb) {\n const clusterNode = this._getClusterNode();\n if (clusterNode === null) {\n return cb(new Error('Pool does Not exists.'));\n }\n return this._cluster._getConnection(clusterNode, (err, connection) => {\n if (err) {\n return cb(err);\n }\n if (connection === 'retry') {\n return this.getConnection(cb);\n }\n return cb(null, connection);\n });\n }\n\n /**\n * pool cluster query\n * @param {*} sql\n * @param {*} values\n * @param {*} cb\n * @returns query\n */\n query(sql, values, cb) {\n const query = Connection.createQuery(sql, values, cb, {});\n this.getConnection((err, conn) => {\n if (err) {\n if (typeof query.onResult === 'function') {\n query.onResult(err);\n } else {\n query.emit('error', err);\n }\n return;\n }\n try {\n conn.query(query).once('end', () => {\n conn.release();\n });\n } catch (e) {\n conn.release();\n throw e;\n }\n });\n return query;\n }\n\n /**\n * pool cluster execute\n * @param {*} sql \n * @param {*} values \n * @param {*} cb \n */\n execute(sql, values, cb) {\n if (typeof values === 'function') {\n cb = values;\n values = [];\n }\n this.getConnection((err, conn) => {\n if (err) {\n return cb(err);\n }\n try {\n conn.execute(sql, values, cb).once('end', () => {\n conn.release();\n });\n } catch (e) {\n conn.release();\n throw e;\n }\n });\n }\n\n _getClusterNode() {\n const foundNodeIds = this._cluster._findNodeIds(this._pattern);\n if (foundNodeIds.length === 0) {\n return null;\n }\n const nodeId =\n foundNodeIds.length === 1\n ? foundNodeIds[0]\n : this._selector(foundNodeIds);\n return this._cluster._getNode(nodeId);\n }\n}\n\nclass PoolCluster extends EventEmitter {\n constructor(config) {\n super();\n config = config || {};\n this._canRetry =\n typeof config.canRetry === 'undefined' ? true : config.canRetry;\n this._removeNodeErrorCount = config.removeNodeErrorCount || 5;\n this._defaultSelector = config.defaultSelector || 'RR';\n this._closed = false;\n this._lastId = 0;\n this._nodes = {};\n this._serviceableNodeIds = [];\n this._namespaces = {};\n this._findCaches = {};\n }\n\n of(pattern, selector) {\n pattern = pattern || '*';\n selector = selector || this._defaultSelector;\n selector = selector.toUpperCase();\n if (!makeSelector[selector] === 'undefined') {\n selector = this._defaultSelector;\n }\n const key = pattern + selector;\n if (typeof this._namespaces[key] === 'undefined') {\n this._namespaces[key] = new PoolNamespace(this, pattern, selector);\n }\n return this._namespaces[key];\n }\n\n add(id, config) {\n if (typeof id === 'object') {\n config = id;\n id = `CLUSTER::${++this._lastId}`;\n }\n if (typeof this._nodes[id] === 'undefined') {\n this._nodes[id] = {\n id: id,\n errorCount: 0,\n pool: new Pool({ config: new PoolConfig(config) })\n };\n this._serviceableNodeIds.push(id);\n this._clearFindCaches();\n }\n }\n\n getConnection(pattern, selector, cb) {\n let namespace;\n if (typeof pattern === 'function') {\n cb = pattern;\n namespace = this.of();\n } else {\n if (typeof selector === 'function') {\n cb = selector;\n selector = this._defaultSelector;\n }\n namespace = this.of(pattern, selector);\n }\n namespace.getConnection(cb);\n }\n\n end(callback) {\n const cb =\n callback !== undefined\n ? callback\n : err => {\n if (err) {\n throw err;\n }\n };\n if (this._closed) {\n process.nextTick(cb);\n return;\n }\n this._closed = true;\n\n let calledBack = false;\n let waitingClose = 0;\n const onEnd = err => {\n if (!calledBack && (err || --waitingClose <= 0)) {\n calledBack = true;\n return cb(err);\n }\n };\n\n for (const id in this._nodes) {\n waitingClose++;\n this._nodes[id].pool.end(onEnd);\n }\n if (waitingClose === 0) {\n process.nextTick(onEnd);\n }\n }\n\n _findNodeIds(pattern) {\n if (typeof this._findCaches[pattern] !== 'undefined') {\n return this._findCaches[pattern];\n }\n let foundNodeIds;\n if (pattern === '*') {\n // all\n foundNodeIds = this._serviceableNodeIds;\n } else if (this._serviceableNodeIds.indexOf(pattern) !== -1) {\n // one\n foundNodeIds = [pattern];\n } else {\n // wild matching\n const keyword = pattern.substring(pattern.length - 1, 0);\n foundNodeIds = this._serviceableNodeIds.filter(id =>\n id.startsWith(keyword)\n );\n }\n this._findCaches[pattern] = foundNodeIds;\n return foundNodeIds;\n }\n\n _getNode(id) {\n return this._nodes[id] || null;\n }\n\n _increaseErrorCount(node) {\n if (++node.errorCount >= this._removeNodeErrorCount) {\n const index = this._serviceableNodeIds.indexOf(node.id);\n if (index !== -1) {\n this._serviceableNodeIds.splice(index, 1);\n delete this._nodes[node.id];\n this._clearFindCaches();\n node.pool.end();\n this.emit('remove', node.id);\n }\n }\n }\n\n _decreaseErrorCount(node) {\n if (node.errorCount > 0) {\n --node.errorCount;\n }\n }\n\n _getConnection(node, cb) {\n node.pool.getConnection((err, connection) => {\n if (err) {\n this._increaseErrorCount(node);\n if (this._canRetry) {\n // REVIEW: this seems wrong?\n this.emit('warn', err);\n // eslint-disable-next-line no-console\n console.warn(`[Error] PoolCluster : ${err}`);\n return cb(null, 'retry');\n }\n return cb(err);\n }\n this._decreaseErrorCount(node);\n\n connection._clusterId = node.id;\n return cb(null, connection);\n });\n }\n\n _clearFindCaches() {\n this._findCaches = {};\n }\n}\n\nmodule.exports = PoolCluster;\n","'use strict';\n\nconst ConnectionConfig = require('./connection_config.js');\n\nclass PoolConfig {\n constructor(options) {\n if (typeof options === 'string') {\n options = ConnectionConfig.parseUrl(options);\n }\n this.connectionConfig = new ConnectionConfig(options);\n this.waitForConnections =\n options.waitForConnections === undefined\n ? true\n : Boolean(options.waitForConnections);\n this.connectionLimit = isNaN(options.connectionLimit)\n ? 10\n : Number(options.connectionLimit);\n this.queueLimit = isNaN(options.queueLimit)\n ? 0\n : Number(options.queueLimit);\n }\n}\n\nmodule.exports = PoolConfig;\n","/**\n * index.js: Default settings for all levels that winston knows about.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nvar logform = require('logform');\n\nvar _require = require('triple-beam'),\n configs = _require.configs;\n/**\n * Export config set for the CLI.\n * @type {Object}\n */\n\n\nexports.cli = logform.levels(configs.cli);\n/**\n * Export config set for npm.\n * @type {Object}\n */\n\nexports.npm = logform.levels(configs.npm);\n/**\n * Export config set for the syslog.\n * @type {Object}\n */\n\nexports.syslog = logform.levels(configs.syslog);\n/**\n * Hoist addColors from logform where it was refactored into in winston@3.\n * @type {Object}\n */\n\nexports.addColors = logform.levels;","'use strict';\n\nconst { Colorizer } = require('./colorize');\n\n/*\n * Simple method to register colors with a simpler require\n * path within the module.\n */\nmodule.exports = config => {\n Colorizer.addColors(config.colors || config);\n return config;\n};\n","//\n// Remark: Requiring this file will use the \"safe\" colors API,\n// which will not touch String.prototype.\n//\n// var colors = require('colors/safe');\n// colors.red(\"foo\")\n//\n//\nvar colors = require('./lib/colors');\nmodule['exports'] = colors;\n","'use strict';\n\nconst format = require('./format');\n\n/*\n * function align (info)\n * Returns a new instance of the align Format which adds a `\\t`\n * delimiter before the message to properly align it in the same place.\n * It was previously { align: true } in winston < 3.0.0\n */\nmodule.exports = format(info => {\n info.message = `\\t${info.message}`;\n return info;\n});\n","/* eslint no-undefined: 0 */\n'use strict';\n\nconst format = require('./format');\nconst { LEVEL, MESSAGE } = require('triple-beam');\n\n/*\n * function errors (info)\n * If the `message` property of the `info` object is an instance of `Error`,\n * replace the `Error` object its own `message` property.\n *\n * Optionally, the Error's `stack` property can also be appended to the `info` object.\n */\nmodule.exports = format((einfo, { stack }) => {\n if (einfo instanceof Error) {\n const info = Object.assign({}, einfo, {\n level: einfo.level,\n [LEVEL]: einfo[LEVEL] || einfo.level,\n message: einfo.message,\n [MESSAGE]: einfo[MESSAGE] || einfo.message\n });\n\n if (stack) info.stack = einfo.stack;\n return info;\n }\n\n if (!(einfo.message instanceof Error)) return einfo;\n\n // Assign all enumerable properties and the\n // message property from the error provided.\n const err = einfo.message;\n Object.assign(einfo, err);\n einfo.message = err.message;\n einfo[MESSAGE] = err.message;\n\n // Assign the stack if requested.\n if (stack) einfo.stack = err.stack;\n return einfo;\n});\n","'use strict';\n\nconst { Colorizer } = require('./colorize');\nconst { Padder } = require('./pad-levels');\nconst { configs, MESSAGE } = require('triple-beam');\n\n\n/**\n * Cli format class that handles initial state for a a separate\n * Colorizer and Padder instance.\n */\nclass CliFormat {\n constructor(opts = {}) {\n if (!opts.levels) {\n opts.levels = configs.npm.levels;\n }\n\n this.colorizer = new Colorizer(opts);\n this.padder = new Padder(opts);\n this.options = opts;\n }\n\n /*\n * function transform (info, opts)\n * Attempts to both:\n * 1. Pad the { level }\n * 2. Colorize the { level, message }\n * of the given `logform` info object depending on the `opts`.\n */\n transform(info, opts) {\n this.colorizer.transform(\n this.padder.transform(info, opts),\n opts\n );\n\n info[MESSAGE] = `${info.level}:${info.message}`;\n return info;\n }\n}\n\n/*\n * function cli (opts)\n * Returns a new instance of the CLI format that turns a log\n * `info` object into the same format previously available\n * in `winston.cli()` in `winston < 3.0.0`.\n */\nmodule.exports = opts => new CliFormat(opts);\n\n//\n// Attach the CliFormat for registration purposes\n//\nmodule.exports.Format = CliFormat;\n","'use strict';\n\nconst format = require('./format');\n\n/*\n * function cascade(formats)\n * Returns a function that invokes the `._format` function in-order\n * for the specified set of `formats`. In this manner we say that Formats\n * are \"pipe-like\", but not a pure pumpify implementation. Since there is no back\n * pressure we can remove all of the \"readable\" plumbing in Node streams.\n */\nfunction cascade(formats) {\n if (!formats.every(isValidFormat)) {\n return;\n }\n\n return info => {\n let obj = info;\n for (let i = 0; i < formats.length; i++) {\n obj = formats[i].transform(obj, formats[i].options);\n if (!obj) {\n return false;\n }\n }\n\n return obj;\n };\n}\n\n/*\n * function isValidFormat(format)\n * If the format does not define a `transform` function throw an error\n * with more detailed usage.\n */\nfunction isValidFormat(fmt) {\n if (typeof fmt.transform !== 'function') {\n throw new Error([\n 'No transform function found on format. Did you create a format instance?',\n 'const myFormat = format(formatFn);',\n 'const instance = myFormat();'\n ].join('\\n'));\n }\n\n return true;\n}\n\n/*\n * function combine (info)\n * Returns a new instance of the combine Format which combines the specified\n * formats into a new format. This is similar to a pipe-chain in transform streams.\n * We choose to combine the prototypes this way because there is no back pressure in\n * an in-memory transform chain.\n */\nmodule.exports = (...formats) => {\n const combinedFormat = format(cascade(formats));\n const instance = combinedFormat();\n instance.Format = combinedFormat.Format;\n return instance;\n};\n\n//\n// Export the cascade method for use in cli and other\n// combined formats that should not be assumed to be\n// singletons.\n//\nmodule.exports.cascade = cascade;\n","'use strict';\n\nconst format = require('./format');\n\n/*\n * function label (info)\n * Returns a new instance of the label Format which adds the specified\n * `opts.label` before the message. This was previously exposed as\n * { label: 'my label' } to transports in `winston < 3.0.0`.\n */\nmodule.exports = format((info, opts) => {\n if (opts.message) {\n info.message = `[${opts.label}] ${info.message}`;\n return info;\n }\n\n info.label = opts.label;\n return info;\n});\n","'use strict';\n\nconst format = require('./format');\nconst { MESSAGE } = require('triple-beam');\nconst jsonStringify = require('safe-stable-stringify');\n\n/*\n * function logstash (info)\n * Returns a new instance of the LogStash Format that turns a\n * log `info` object into pure JSON with the appropriate logstash\n * options. This was previously exposed as { logstash: true }\n * to transports in `winston < 3.0.0`.\n */\nmodule.exports = format(info => {\n const logstash = {};\n if (info.message) {\n logstash['@message'] = info.message;\n delete info.message;\n }\n\n if (info.timestamp) {\n logstash['@timestamp'] = info.timestamp;\n delete info.timestamp;\n }\n\n logstash['@fields'] = info;\n info[MESSAGE] = jsonStringify(logstash);\n return info;\n});\n","'use strict';\n\nconst format = require('./format');\n\nfunction fillExcept(info, fillExceptKeys, metadataKey) {\n const savedKeys = fillExceptKeys.reduce((acc, key) => {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n const metadata = Object.keys(info).reduce((acc, key) => {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n\n Object.assign(info, savedKeys, {\n [metadataKey]: metadata\n });\n return info;\n}\n\nfunction fillWith(info, fillWithKeys, metadataKey) {\n info[metadataKey] = fillWithKeys.reduce((acc, key) => {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n return info;\n}\n\n/**\n * Adds in a \"metadata\" object to collect extraneous data, similar to the metadata\n * object in winston 2.x.\n */\nmodule.exports = format((info, opts = {}) => {\n let metadataKey = 'metadata';\n if (opts.key) {\n metadataKey = opts.key;\n }\n\n let fillExceptKeys = [];\n if (!opts.fillExcept && !opts.fillWith) {\n fillExceptKeys.push('level');\n fillExceptKeys.push('message');\n }\n\n if (opts.fillExcept) {\n fillExceptKeys = opts.fillExcept;\n }\n\n if (fillExceptKeys.length > 0) {\n return fillExcept(info, fillExceptKeys, metadataKey);\n }\n\n if (opts.fillWith) {\n return fillWith(info, opts.fillWith, metadataKey);\n }\n\n return info;\n});\n","'use strict';\n\nconst format = require('./format');\nconst ms = require('ms');\n\n/*\n * function ms (info)\n * Returns an `info` with a `ms` property. The `ms` property holds the Value\n * of the time difference between two calls in milliseconds.\n */\nmodule.exports = format(info => {\n const curr = +new Date();\n this.diff = curr - (this.prevTime || curr);\n this.prevTime = curr;\n info.ms = `+${ms(this.diff)}`;\n\n return info;\n});\n","'use strict';\n\nconst inspect = require('util').inspect;\nconst format = require('./format');\nconst { LEVEL, MESSAGE, SPLAT } = require('triple-beam');\n\n/*\n * function prettyPrint (info)\n * Returns a new instance of the prettyPrint Format that \"prettyPrint\"\n * serializes `info` objects. This was previously exposed as\n * { prettyPrint: true } to transports in `winston < 3.0.0`.\n */\nmodule.exports = format((info, opts = {}) => {\n //\n // info[{LEVEL, MESSAGE, SPLAT}] are enumerable here. Since they\n // are internal, we remove them before util.inspect so they\n // are not printed.\n //\n const stripped = Object.assign({}, info);\n\n // Remark (indexzero): update this technique in April 2019\n // when node@6 is EOL\n delete stripped[LEVEL];\n delete stripped[MESSAGE];\n delete stripped[SPLAT];\n\n info[MESSAGE] = inspect(stripped, false, opts.depth || null, opts.colorize);\n return info;\n});\n","'use strict';\n\nconst { MESSAGE } = require('triple-beam');\n\nclass Printf {\n constructor(templateFn) {\n this.template = templateFn;\n }\n\n transform(info) {\n info[MESSAGE] = this.template(info);\n return info;\n }\n}\n\n/*\n * function printf (templateFn)\n * Returns a new instance of the printf Format that creates an\n * intermediate prototype to store the template string-based formatter\n * function.\n */\nmodule.exports = opts => new Printf(opts);\n\nmodule.exports.Printf\n = module.exports.Format\n = Printf;\n","/* eslint no-undefined: 0 */\n'use strict';\n\nconst format = require('./format');\nconst { MESSAGE } = require('triple-beam');\nconst jsonStringify = require('safe-stable-stringify');\n\n/*\n * function simple (info)\n * Returns a new instance of the simple format TransformStream\n * which writes a simple representation of logs.\n *\n * const { level, message, splat, ...rest } = info;\n *\n * ${level}: ${message} if rest is empty\n * ${level}: ${message} ${JSON.stringify(rest)} otherwise\n */\nmodule.exports = format(info => {\n const stringifiedRest = jsonStringify(Object.assign({}, info, {\n level: undefined,\n message: undefined,\n splat: undefined\n }));\n\n const padding = info.padding && info.padding[info.level] || '';\n if (stringifiedRest !== '{}') {\n info[MESSAGE] = `${info.level}:${padding} ${info.message} ${stringifiedRest}`;\n } else {\n info[MESSAGE] = `${info.level}:${padding} ${info.message}`;\n }\n\n return info;\n});\n","'use strict';\n\nconst util = require('util');\nconst { SPLAT } = require('triple-beam');\n\n/**\n * Captures the number of format (i.e. %s strings) in a given string.\n * Based on `util.format`, see Node.js source:\n * https://github.com/nodejs/node/blob/b1c8f15c5f169e021f7c46eb7b219de95fe97603/lib/util.js#L201-L230\n * @type {RegExp}\n */\nconst formatRegExp = /%[scdjifoO%]/g;\n\n/**\n * Captures the number of escaped % signs in a format string (i.e. %s strings).\n * @type {RegExp}\n */\nconst escapedPercent = /%%/g;\n\nclass Splatter {\n constructor(opts) {\n this.options = opts;\n }\n\n /**\n * Check to see if tokens <= splat.length, assign { splat, meta } into the\n * `info` accordingly, and write to this instance.\n *\n * @param {Info} info Logform info message.\n * @param {String[]} tokens Set of string interpolation tokens.\n * @returns {Info} Modified info message\n * @private\n */\n _splat(info, tokens) {\n const msg = info.message;\n const splat = info[SPLAT] || info.splat || [];\n const percents = msg.match(escapedPercent);\n const escapes = percents && percents.length || 0;\n\n // The expected splat is the number of tokens minus the number of escapes\n // e.g.\n // - { expectedSplat: 3 } '%d %s %j'\n // - { expectedSplat: 5 } '[%s] %d%% %d%% %s %j'\n //\n // Any \"meta\" will be arugments in addition to the expected splat size\n // regardless of type. e.g.\n //\n // logger.log('info', '%d%% %s %j', 100, 'wow', { such: 'js' }, { thisIsMeta: true });\n // would result in splat of four (4), but only three (3) are expected. Therefore:\n //\n // extraSplat = 3 - 4 = -1\n // metas = [100, 'wow', { such: 'js' }, { thisIsMeta: true }].splice(-1, -1 * -1);\n // splat = [100, 'wow', { such: 'js' }]\n const expectedSplat = tokens.length - escapes;\n const extraSplat = expectedSplat - splat.length;\n const metas = extraSplat < 0\n ? splat.splice(extraSplat, -1 * extraSplat)\n : [];\n\n // Now that { splat } has been separated from any potential { meta }. we\n // can assign this to the `info` object and write it to our format stream.\n // If the additional metas are **NOT** objects or **LACK** enumerable properties\n // you are going to have a bad time.\n const metalen = metas.length;\n if (metalen) {\n for (let i = 0; i < metalen; i++) {\n Object.assign(info, metas[i]);\n }\n }\n\n info.message = util.format(msg, ...splat);\n return info;\n }\n\n /**\n * Transforms the `info` message by using `util.format` to complete\n * any `info.message` provided it has string interpolation tokens.\n * If no tokens exist then `info` is immutable.\n *\n * @param {Info} info Logform info message.\n * @param {Object} opts Options for this instance.\n * @returns {Info} Modified info message\n */\n transform(info) {\n const msg = info.message;\n const splat = info[SPLAT] || info.splat;\n\n // No need to process anything if splat is undefined\n if (!splat || !splat.length) {\n return info;\n }\n\n // Extract tokens, if none available default to empty array to\n // ensure consistancy in expected results\n const tokens = msg && msg.match && msg.match(formatRegExp);\n\n // This condition will take care of inputs with info[SPLAT]\n // but no tokens present\n if (!tokens && (splat || splat.length)) {\n const metas = splat.length > 1\n ? splat.splice(0)\n : splat;\n\n // Now that { splat } has been separated from any potential { meta }. we\n // can assign this to the `info` object and write it to our format stream.\n // If the additional metas are **NOT** objects or **LACK** enumerable properties\n // you are going to have a bad time.\n const metalen = metas.length;\n if (metalen) {\n for (let i = 0; i < metalen; i++) {\n Object.assign(info, metas[i]);\n }\n }\n\n return info;\n }\n\n if (tokens) {\n return this._splat(info, tokens);\n }\n\n return info;\n }\n}\n\n/*\n * function splat (info)\n * Returns a new instance of the splat format TransformStream\n * which performs string interpolation from `info` objects. This was\n * previously exposed implicitly in `winston < 3.0.0`.\n */\nmodule.exports = opts => new Splatter(opts);\n","'use strict';\n\nconst fecha = require('fecha');\nconst format = require('./format');\n\n/*\n * function timestamp (info)\n * Returns a new instance of the timestamp Format which adds a timestamp\n * to the info. It was previously available in winston < 3.0.0 as:\n *\n * - { timestamp: true } // `new Date.toISOString()`\n * - { timestamp: function:String } // Value returned by `timestamp()`\n */\nmodule.exports = format((info, opts = {}) => {\n if (opts.format) {\n info.timestamp = typeof opts.format === 'function'\n ? opts.format()\n : fecha.format(new Date(), opts.format);\n }\n\n if (!info.timestamp) {\n info.timestamp = new Date().toISOString();\n }\n\n if (opts.alias) {\n info[opts.alias] = info.timestamp;\n }\n\n return info;\n});\n","'use strict';\n\nconst colors = require('colors/safe');\nconst format = require('./format');\nconst { MESSAGE } = require('triple-beam');\n\n/*\n * function uncolorize (info)\n * Returns a new instance of the uncolorize Format that strips colors\n * from `info` objects. This was previously exposed as { stripColors: true }\n * to transports in `winston < 3.0.0`.\n */\nmodule.exports = format((info, opts) => {\n if (opts.level !== false) {\n info.level = colors.strip(info.level);\n }\n\n if (opts.message !== false) {\n info.message = colors.strip(info.message);\n }\n\n if (opts.raw !== false && info[MESSAGE]) {\n info[MESSAGE] = colors.strip(info[MESSAGE]);\n }\n\n return info;\n});\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n\nmodule.exports = Readable;\n/**/\n\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n/**/\n\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function EElistenerCount(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\n\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n/**/\n\n\nvar debugUtil = require('util');\n\nvar debug;\n\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function debug() {};\n}\n/**/\n\n\nvar BufferList = require('./internal/streams/buffer_list');\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance.\n\n\nvar StringDecoder;\nvar createReadableStreamAsyncIterator;\nvar from;\n\nrequire('inherits')(Readable, Stream);\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n\n this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n\n this.sync = true; // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this.paused = true; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish')\n\n this.autoDestroy = !!options.autoDestroy; // has it been destroyed\n\n this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s\n\n this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled\n\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n this._readableState = new ReadableState(options, this, isDuplex); // legacy\n\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n }\n});\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\n\nReadable.prototype._destroy = function (err, cb) {\n cb(err);\n}; // Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\n\n\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n}; // Unshift should *always* be something directly out of read()\n\n\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n debug('readableAddChunk', chunk);\n var state = stream._readableState;\n\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n\n if (er) {\n errorOrDestroy(stream, er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());\n } else if (state.destroyed) {\n return false;\n } else {\n state.reading = false;\n\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n maybeReadMore(stream, state);\n }\n } // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n\n\n return !state.ended && (state.length < state.highWaterMark || state.length === 0);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n state.awaitDrain = 0;\n stream.emit('data', chunk);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n if (state.needReadable) emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);\n }\n\n return er;\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n}; // backwards compatibility.\n\n\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n var decoder = new StringDecoder(enc);\n this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8\n\n this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers:\n\n var p = this._readableState.buffer.head;\n var content = '';\n\n while (p !== null) {\n content += decoder.write(p.data);\n p = p.next;\n }\n\n this._readableState.buffer.clear();\n\n if (content !== '') this._readableState.buffer.push(content);\n this._readableState.length = content.length;\n return this;\n}; // Don't raise the hwm > 1GB\n\n\nvar MAX_HWM = 0x40000000;\n\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n\n return n;\n} // This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n } // If we're asking for more than the current hwm, then raise the hwm.\n\n\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n; // Don't have enough\n\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n\n return state.length;\n} // you can override either this method, or the async _read(n) below.\n\n\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n\n if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.\n\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n } // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n // if we need a readable event, then we need to do some reading.\n\n\n var doRead = state.needReadable;\n debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some\n\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n } // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n\n\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true; // if the length is currently zero, then we *need* a readable event.\n\n if (state.length === 0) state.needReadable = true; // call internal read method\n\n this._read(state.highWaterMark);\n\n state.sync = false; // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark;\n n = 0;\n } else {\n state.length -= n;\n state.awaitDrain = 0;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.\n\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n debug('onEofChunk');\n if (state.ended) return;\n\n if (state.decoder) {\n var chunk = state.decoder.end();\n\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n\n state.ended = true;\n\n if (state.sync) {\n // if we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call\n emitReadable(stream);\n } else {\n // emit 'readable' now to make sure it gets picked up.\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n state.emittedReadable = true;\n emitReadable_(stream);\n }\n }\n} // Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\n\n\nfunction emitReadable(stream) {\n var state = stream._readableState;\n debug('emitReadable', state.needReadable, state.emittedReadable);\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n process.nextTick(emitReadable_, stream);\n }\n}\n\nfunction emitReadable_(stream) {\n var state = stream._readableState;\n debug('emitReadable_', state.destroyed, state.length, state.ended);\n\n if (!state.destroyed && (state.length || state.ended)) {\n stream.emit('readable');\n state.emittedReadable = false;\n } // The stream needs another readable event if\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n\n\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;\n flow(stream);\n} // at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\n\n\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {\n var len = state.length;\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length) // didn't get any data, stop spinning.\n break;\n }\n\n state.readingMore = false;\n} // abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\n\n\nReadable.prototype._read = function (n) {\n errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n\n default:\n state.pipes.push(dest);\n break;\n }\n\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n } // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n\n\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n\n function cleanup() {\n debug('cleanup'); // cleanup event handlers once the pipe is broken\n\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n cleanedUp = true; // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n src.on('data', ondata);\n\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n debug('dest.write', ret);\n\n if (ret === false) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n }\n\n src.pause();\n }\n } // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n\n\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);\n } // Make sure our error handler is attached before userland ones.\n\n\n prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.\n\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n\n dest.once('close', onclose);\n\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n } // tell the dest that it's being piped to\n\n\n dest.emit('pipe', src); // start the flow if it hasn't been started already.\n\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function pipeOnDrainFunctionResult() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = {\n hasUnpiped: false\n }; // if we're not piping anywhere, then do nothing.\n\n if (state.pipesCount === 0) return this; // just one destination. most common case.\n\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n if (!dest) dest = state.pipes; // got a match.\n\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n } // slow case. multiple pipe destinations.\n\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, {\n hasUnpiped: false\n });\n }\n\n return this;\n } // try to find the right one.\n\n\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n dest.emit('unpipe', this, unpipeInfo);\n return this;\n}; // set up data events if they are asked for\n// Ensure readable listeners eventually get something\n\n\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n var state = this._readableState;\n\n if (ev === 'data') {\n // update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused\n\n if (state.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.flowing = false;\n state.emittedReadable = false;\n debug('on readable', state.length, state.reading);\n\n if (state.length) {\n emitReadable(this);\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this);\n }\n }\n }\n\n return res;\n};\n\nReadable.prototype.addListener = Readable.prototype.on;\n\nReadable.prototype.removeListener = function (ev, fn) {\n var res = Stream.prototype.removeListener.call(this, ev, fn);\n\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nReadable.prototype.removeAllListeners = function (ev) {\n var res = Stream.prototype.removeAllListeners.apply(this, arguments);\n\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nfunction updateReadableListening(self) {\n var state = self._readableState;\n state.readableListening = self.listenerCount('readable') > 0;\n\n if (state.resumeScheduled && !state.paused) {\n // flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true; // crude way to check if we should resume\n } else if (self.listenerCount('data') > 0) {\n self.resume();\n }\n}\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n} // pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\n\n\nReadable.prototype.resume = function () {\n var state = this._readableState;\n\n if (!state.flowing) {\n debug('resume'); // we flow only if there is no one listening\n // for readable, but we still have to call\n // resume()\n\n state.flowing = !state.readableListening;\n resume(this, state);\n }\n\n state.paused = false;\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n debug('resume', state.reading);\n\n if (!state.reading) {\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n\n if (this._readableState.flowing !== false) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n\n this._readableState.paused = true;\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n\n while (state.flowing && stream.read() !== null) {\n ;\n }\n} // wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\n\n\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n stream.on('end', function () {\n debug('wrapped end');\n\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode\n\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n\n if (!ret) {\n paused = true;\n stream.pause();\n }\n }); // proxy all the other methods.\n // important when wrapping filters and duplexes.\n\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function methodWrap(method) {\n return function methodWrapReturnFunction() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n } // proxy certain important events.\n\n\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n } // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n\n\n this._read = function (n) {\n debug('wrapped _read', n);\n\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nif (typeof Symbol === 'function') {\n Readable.prototype[Symbol.asyncIterator] = function () {\n if (createReadableStreamAsyncIterator === undefined) {\n createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');\n }\n\n return createReadableStreamAsyncIterator(this);\n };\n}\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.highWaterMark;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState && this._readableState.buffer;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableFlowing', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.flowing;\n },\n set: function set(state) {\n if (this._readableState) {\n this._readableState.flowing = state;\n }\n }\n}); // exposed for testing purposes only.\n\nReadable._fromList = fromList;\nObject.defineProperty(Readable.prototype, 'readableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.length;\n }\n}); // Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = state.buffer.consume(n, state.decoder);\n }\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n debug('endReadable', state.endEmitted);\n\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.\n\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well\n var wState = stream._writableState;\n\n if (!wState || wState.autoDestroy && wState.finished) {\n stream.destroy();\n }\n }\n }\n}\n\nif (typeof Symbol === 'function') {\n Readable.from = function (iterable, opts) {\n if (from === undefined) {\n from = require('./internal/streams/from');\n }\n\n return from(Readable, iterable, opts);\n };\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n\n return -1;\n}","module.exports = require('stream');\n","'use strict'; // undocumented cb() API, needed for core, not for public API\n\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n process.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n process.nextTick(emitErrorNT, this, err);\n }\n }\n\n return this;\n } // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n } // if this is a duplex stream mark the writable part as destroyed as well\n\n\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n } else if (cb) {\n process.nextTick(emitCloseNT, _this);\n cb(err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n });\n\n return this;\n}\n\nfunction emitErrorAndCloseNT(self, err) {\n emitErrorNT(self, err);\n emitCloseNT(self);\n}\n\nfunction emitCloseNT(self) {\n if (self._writableState && !self._writableState.emitClose) return;\n if (self._readableState && !self._readableState.emitClose) return;\n self.emit('close');\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nfunction errorOrDestroy(stream, err) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n var rState = stream._readableState;\n var wState = stream._writableState;\n if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy,\n errorOrDestroy: errorOrDestroy\n};","'use strict';\n\nvar ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;\n\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;\n}\n\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);\n\n if (hwm != null) {\n if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {\n var name = isDuplex ? duplexKey : 'highWaterMark';\n throw new ERR_INVALID_OPT_VALUE(name, hwm);\n }\n\n return Math.floor(hwm);\n } // Default value\n\n\n return state.objectMode ? 16 : 16 * 1024;\n}\n\nmodule.exports = {\n getHighWaterMark: getHighWaterMark\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n'use strict';\n\nmodule.exports = Writable;\n/* */\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n} // It seems a linked list but it is not\n// there will be only 2 of these for each stream\n\n\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\n\n\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n/**/\n\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,\n ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\n\nrequire('inherits')(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n\n this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called\n\n this.finalCalled = false; // drain event flag.\n\n this.needDrain = false; // at the start of calling end()\n\n this.ending = false; // when end() has been called, and returned\n\n this.ended = false; // when 'finish' is emitted\n\n this.finished = false; // has it been destroyed\n\n this.destroyed = false; // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n\n this.length = 0; // a flag to see when we're in the middle of a write.\n\n this.writing = false; // when true all writes will be buffered until .uncork() call\n\n this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n\n this.sync = true; // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n\n this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)\n\n this.onwrite = function (er) {\n onwrite(stream, er);\n }; // the callback that the user supplies to write(chunk,encoding,cb)\n\n\n this.writecb = null; // the amount that is being written when _write is called.\n\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null; // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n\n this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n\n this.prefinished = false; // True if the error was already emitted and should not be thrown again\n\n this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end')\n\n this.autoDestroy = !!options.autoDestroy; // count buffered requests\n\n this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n\n while (current) {\n out.push(current);\n current = current.next;\n }\n\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function writableStateBufferGetter() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})(); // Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\n\n\nvar realHasInstance;\n\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function value(object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function realHasInstance(object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);\n this._writableState = new WritableState(options, this, isDuplex); // legacy.\n\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n if (typeof options.writev === 'function') this._writev = options.writev;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n} // Otherwise people can pipe Writable streams, which is just wrong.\n\n\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb\n\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n} // Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\n\n\nfunction validChunk(stream, state, chunk, cb) {\n var er;\n\n if (chunk === null) {\n er = new ERR_STREAM_NULL_VALUES();\n } else if (typeof chunk !== 'string' && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);\n }\n\n if (er) {\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n return false;\n }\n\n return true;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n if (typeof cb !== 'function') cb = nop;\n if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n return ret;\n};\n\nWritable.prototype.cork = function () {\n this._writableState.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n}); // if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\n\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.\n\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n process.nextTick(cb, er); // this can emit finish, and it will always happen\n // after error\n\n process.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er); // this can emit finish, but finish must\n // always follow error\n\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();\n onwriteStateUpdate(state);\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state) || stream.destroyed;\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n process.nextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n} // Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\n\n\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n} // if there's something in the buffer waiting, then process it\n\n\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n var allBuffers = true;\n\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n\n buffer.allBuffers = allBuffers;\n doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n\n state.pendingcb++;\n state.lastBufferedRequest = null;\n\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks\n\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n } // ignore unnecessary end() calls.\n\n\n if (!state.ending) endWritable(this, state, cb);\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n});\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\n\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n\n if (err) {\n errorOrDestroy(stream, err);\n }\n\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.pendingcb++;\n state.finalCalled = true;\n process.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n\n if (need) {\n prefinish(stream, state);\n\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well\n var rState = stream._readableState;\n\n if (!rState || rState.autoDestroy && rState.endEmitted) {\n stream.destroy();\n }\n }\n }\n }\n\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n\n if (cb) {\n if (state.finished) process.nextTick(cb);else stream.once('finish', cb);\n }\n\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n } // reuse the free corkReq.\n\n\n state.corkedRequestsFree.next = corkReq;\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._writableState === undefined) {\n return false;\n }\n\n return this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._writableState.destroyed = value;\n }\n});\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\n\nWritable.prototype._destroy = function (err, cb) {\n cb(err);\n};","\n/**\n * For Node.js, simply re-export the core `util.deprecate` function.\n */\n\nmodule.exports = require('util').deprecate;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n'use strict';\n\nmodule.exports = Transform;\n\nvar _require$codes = require('../errors').codes,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,\n ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;\n\nvar Duplex = require('./_stream_duplex');\n\nrequire('inherits')(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n\n if (cb === null) {\n return this.emit('error', new ERR_MULTIPLE_CALLBACK());\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n cb(er);\n var rs = this._readableState;\n rs.reading = false;\n\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n Duplex.call(this, options);\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n }; // start out asking for a readable event once data is transformed.\n\n this._readableState.needReadable = true; // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n if (typeof options.flush === 'function') this._flush = options.flush;\n } // When the writable side finishes, then flush out anything remaining.\n\n\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function' && !this._readableState.destroyed) {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n}; // This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\n\n\nTransform.prototype._transform = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n}; // Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\n\n\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && !ts.transforming) {\n ts.transforming = true;\n\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data); // TODO(BridgeAR): Write a test for these two error cases\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n\n if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();\n if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();\n return stream.push(null);\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _eachOfLimit2 = require('./internal/eachOfLimit.js');\n\nvar _eachOfLimit3 = _interopRequireDefault(_eachOfLimit2);\n\nvar _wrapAsync = require('./internal/wrapAsync.js');\n\nvar _wrapAsync2 = _interopRequireDefault(_wrapAsync);\n\nvar _awaitify = require('./internal/awaitify.js');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name eachOfLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`. The `key` is the item's key, or index in the case of an\n * array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\nfunction eachOfLimit(coll, limit, iteratee, callback) {\n return (0, _eachOfLimit3.default)(limit)(coll, (0, _wrapAsync2.default)(iteratee), callback);\n}\n\nexports.default = (0, _awaitify2.default)(eachOfLimit, 4);\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = once;\nfunction once(fn) {\n function wrapper(...args) {\n if (fn === null) return;\n var callFn = fn;\n fn = null;\n callFn.apply(this, args);\n }\n Object.assign(wrapper, fn);\n return wrapper;\n}\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = onlyOnce;\nfunction onlyOnce(fn) {\n return function (...args) {\n if (fn === null) throw new Error(\"Callback was already called.\");\n var callFn = fn;\n fn = null;\n callFn.apply(this, args);\n };\n}\nmodule.exports = exports[\"default\"];","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","'use strict';\n\nvar name = require('fn.name');\n\n/**\n * Wrap callbacks to prevent double execution.\n *\n * @param {Function} fn Function that should only be called once.\n * @returns {Function} A wrapped callback which prevents multiple executions.\n * @public\n */\nmodule.exports = function one(fn) {\n var called = 0\n , value;\n\n /**\n * The function that prevents double execution.\n *\n * @private\n */\n function onetime() {\n if (called) return value;\n\n called = 1;\n value = fn.apply(this, arguments);\n fn = null;\n\n return value;\n }\n\n //\n // To make debugging more easy we want to use the name of the supplied\n // function. So when you look at the functions that are assigned to event\n // listeners you don't see a load of `onetime` functions but actually the\n // names of the functions that this module will call.\n //\n // NOTE: We cannot override the `name` property, as that is `readOnly`\n // property, so displayName will have to do.\n //\n onetime.displayName = name(fn);\n return onetime;\n};\n","exports.get = function(belowFn) {\n var oldLimit = Error.stackTraceLimit;\n Error.stackTraceLimit = Infinity;\n\n var dummyObject = {};\n\n var v8Handler = Error.prepareStackTrace;\n Error.prepareStackTrace = function(dummyObject, v8StackTrace) {\n return v8StackTrace;\n };\n Error.captureStackTrace(dummyObject, belowFn || exports.get);\n\n var v8StackTrace = dummyObject.stack;\n Error.prepareStackTrace = v8Handler;\n Error.stackTraceLimit = oldLimit;\n\n return v8StackTrace;\n};\n\nexports.parse = function(err) {\n if (!err.stack) {\n return [];\n }\n\n var self = this;\n var lines = err.stack.split('\\n').slice(1);\n\n return lines\n .map(function(line) {\n if (line.match(/^\\s*[-]{4,}$/)) {\n return self._createParsedCallSite({\n fileName: line,\n lineNumber: null,\n functionName: null,\n typeName: null,\n methodName: null,\n columnNumber: null,\n 'native': null,\n });\n }\n\n var lineMatch = line.match(/at (?:(.+)\\s+\\()?(?:(.+?):(\\d+)(?::(\\d+))?|([^)]+))\\)?/);\n if (!lineMatch) {\n return;\n }\n\n var object = null;\n var method = null;\n var functionName = null;\n var typeName = null;\n var methodName = null;\n var isNative = (lineMatch[5] === 'native');\n\n if (lineMatch[1]) {\n functionName = lineMatch[1];\n var methodStart = functionName.lastIndexOf('.');\n if (functionName[methodStart-1] == '.')\n methodStart--;\n if (methodStart > 0) {\n object = functionName.substr(0, methodStart);\n method = functionName.substr(methodStart + 1);\n var objectEnd = object.indexOf('.Module');\n if (objectEnd > 0) {\n functionName = functionName.substr(objectEnd + 1);\n object = object.substr(0, objectEnd);\n }\n }\n typeName = null;\n }\n\n if (method) {\n typeName = object;\n methodName = method;\n }\n\n if (method === '') {\n methodName = null;\n functionName = null;\n }\n\n var properties = {\n fileName: lineMatch[2] || null,\n lineNumber: parseInt(lineMatch[3], 10) || null,\n functionName: functionName,\n typeName: typeName,\n methodName: methodName,\n columnNumber: parseInt(lineMatch[4], 10) || null,\n 'native': isNative,\n };\n\n return self._createParsedCallSite(properties);\n })\n .filter(function(callSite) {\n return !!callSite;\n });\n};\n\nfunction CallSite(properties) {\n for (var property in properties) {\n this[property] = properties[property];\n }\n}\n\nvar strProperties = [\n 'this',\n 'typeName',\n 'functionName',\n 'methodName',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'function',\n 'evalOrigin'\n];\nvar boolProperties = [\n 'topLevel',\n 'eval',\n 'native',\n 'constructor'\n];\nstrProperties.forEach(function (property) {\n CallSite.prototype[property] = null;\n CallSite.prototype['get' + property[0].toUpperCase() + property.substr(1)] = function () {\n return this[property];\n }\n});\nboolProperties.forEach(function (property) {\n CallSite.prototype[property] = false;\n CallSite.prototype['is' + property[0].toUpperCase() + property.substr(1)] = function () {\n return this[property];\n }\n});\n\nexports._createParsedCallSite = function(properties) {\n return new CallSite(properties);\n};\n","/**\n * exception-stream.js: TODO: add file header handler.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar _require = require('readable-stream'),\n Writable = _require.Writable;\n/**\n * TODO: add class description.\n * @type {ExceptionStream}\n * @extends {Writable}\n */\n\n\nmodule.exports = /*#__PURE__*/function (_Writable) {\n _inherits(ExceptionStream, _Writable);\n\n var _super = _createSuper(ExceptionStream);\n\n /**\n * Constructor function for the ExceptionStream responsible for wrapping a\n * TransportStream; only allowing writes of `info` objects with\n * `info.exception` set to true.\n * @param {!TransportStream} transport - Stream to filter to exceptions\n */\n function ExceptionStream(transport) {\n var _this;\n\n _classCallCheck(this, ExceptionStream);\n\n _this = _super.call(this, {\n objectMode: true\n });\n\n if (!transport) {\n throw new Error('ExceptionStream requires a TransportStream instance.');\n } // Remark (indexzero): we set `handleExceptions` here because it's the\n // predicate checked in ExceptionHandler.prototype.__getExceptionHandlers\n\n\n _this.handleExceptions = true;\n _this.transport = transport;\n return _this;\n }\n /**\n * Writes the info object to our transport instance if (and only if) the\n * `exception` property is set on the info.\n * @param {mixed} info - TODO: add param description.\n * @param {mixed} enc - TODO: add param description.\n * @param {mixed} callback - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n * @private\n */\n\n\n _createClass(ExceptionStream, [{\n key: \"_write\",\n value: function _write(info, enc, callback) {\n if (info.exception) {\n return this.transport.log(info, callback);\n }\n\n callback();\n return true;\n }\n }]);\n\n return ExceptionStream;\n}(Writable);","'use strict';\n\nconst util = require('util');\nconst { LEVEL } = require('triple-beam');\nconst TransportStream = require('./');\n\n/**\n * Constructor function for the LegacyTransportStream. This is an internal\n * wrapper `winston >= 3` uses to wrap older transports implementing\n * log(level, message, meta).\n * @param {Object} options - Options for this TransportStream instance.\n * @param {Transpot} options.transport - winston@2 or older Transport to wrap.\n */\n\nconst LegacyTransportStream = module.exports = function LegacyTransportStream(options = {}) {\n TransportStream.call(this, options);\n if (!options.transport || typeof options.transport.log !== 'function') {\n throw new Error('Invalid transport, must be an object with a log method.');\n }\n\n this.transport = options.transport;\n this.level = this.level || options.transport.level;\n this.handleExceptions = this.handleExceptions || options.transport.handleExceptions;\n\n // Display our deprecation notice.\n this._deprecated();\n\n // Properly bubble up errors from the transport to the\n // LegacyTransportStream instance, but only once no matter how many times\n // this transport is shared.\n function transportError(err) {\n this.emit('error', err, this.transport);\n }\n\n if (!this.transport.__winstonError) {\n this.transport.__winstonError = transportError.bind(this);\n this.transport.on('error', this.transport.__winstonError);\n }\n};\n\n/*\n * Inherit from TransportStream using Node.js built-ins\n */\nutil.inherits(LegacyTransportStream, TransportStream);\n\n/**\n * Writes the info object to our transport instance.\n * @param {mixed} info - TODO: add param description.\n * @param {mixed} enc - TODO: add param description.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n * @private\n */\nLegacyTransportStream.prototype._write = function _write(info, enc, callback) {\n if (this.silent || (info.exception === true && !this.handleExceptions)) {\n return callback(null);\n }\n\n // Remark: This has to be handled in the base transport now because we\n // cannot conditionally write to our pipe targets as stream.\n if (!this.level || this.levels[this.level] >= this.levels[info[LEVEL]]) {\n this.transport.log(info[LEVEL], info.message, info, this._nop);\n }\n\n callback(null);\n};\n\n/**\n * Writes the batch of info objects (i.e. \"object chunks\") to our transport\n * instance after performing any necessary filtering.\n * @param {mixed} chunks - TODO: add params description.\n * @param {function} callback - TODO: add params description.\n * @returns {mixed} - TODO: add returns description.\n * @private\n */\nLegacyTransportStream.prototype._writev = function _writev(chunks, callback) {\n for (let i = 0; i < chunks.length; i++) {\n if (this._accept(chunks[i])) {\n this.transport.log(\n chunks[i].chunk[LEVEL],\n chunks[i].chunk.message,\n chunks[i].chunk,\n this._nop\n );\n chunks[i].callback();\n }\n }\n\n return callback(null);\n};\n\n/**\n * Displays a deprecation notice. Defined as a function so it can be\n * overriden in tests.\n * @returns {undefined}\n */\nLegacyTransportStream.prototype._deprecated = function _deprecated() {\n // eslint-disable-next-line no-console\n console.error([\n `${this.transport.name} is a legacy winston transport. Consider upgrading: `,\n '- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md'\n ].join('\\n'));\n};\n\n/**\n * Clean up error handling state on the legacy transport associated\n * with this instance.\n * @returns {undefined}\n */\nLegacyTransportStream.prototype.close = function close() {\n if (this.transport.close) {\n this.transport.close();\n }\n\n if (this.transport.__winstonError) {\n this.transport.removeListener('error', this.transport.__winstonError);\n this.transport.__winstonError = null;\n }\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n'use strict';\n\nmodule.exports = Writable;\n/* */\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n} // It seems a linked list but it is not\n// there will be only 2 of these for each stream\n\n\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\n\n\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n/**/\n\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,\n ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\n\nrequire('inherits')(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n\n this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called\n\n this.finalCalled = false; // drain event flag.\n\n this.needDrain = false; // at the start of calling end()\n\n this.ending = false; // when end() has been called, and returned\n\n this.ended = false; // when 'finish' is emitted\n\n this.finished = false; // has it been destroyed\n\n this.destroyed = false; // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n\n this.length = 0; // a flag to see when we're in the middle of a write.\n\n this.writing = false; // when true all writes will be buffered until .uncork() call\n\n this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n\n this.sync = true; // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n\n this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)\n\n this.onwrite = function (er) {\n onwrite(stream, er);\n }; // the callback that the user supplies to write(chunk,encoding,cb)\n\n\n this.writecb = null; // the amount that is being written when _write is called.\n\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null; // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n\n this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n\n this.prefinished = false; // True if the error was already emitted and should not be thrown again\n\n this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end')\n\n this.autoDestroy = !!options.autoDestroy; // count buffered requests\n\n this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n\n while (current) {\n out.push(current);\n current = current.next;\n }\n\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function writableStateBufferGetter() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})(); // Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\n\n\nvar realHasInstance;\n\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function value(object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function realHasInstance(object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);\n this._writableState = new WritableState(options, this, isDuplex); // legacy.\n\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n if (typeof options.writev === 'function') this._writev = options.writev;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n} // Otherwise people can pipe Writable streams, which is just wrong.\n\n\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb\n\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n} // Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\n\n\nfunction validChunk(stream, state, chunk, cb) {\n var er;\n\n if (chunk === null) {\n er = new ERR_STREAM_NULL_VALUES();\n } else if (typeof chunk !== 'string' && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);\n }\n\n if (er) {\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n return false;\n }\n\n return true;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n if (typeof cb !== 'function') cb = nop;\n if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n return ret;\n};\n\nWritable.prototype.cork = function () {\n this._writableState.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n}); // if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\n\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.\n\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n process.nextTick(cb, er); // this can emit finish, and it will always happen\n // after error\n\n process.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er); // this can emit finish, but finish must\n // always follow error\n\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();\n onwriteStateUpdate(state);\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state) || stream.destroyed;\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n process.nextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n} // Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\n\n\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n} // if there's something in the buffer waiting, then process it\n\n\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n var allBuffers = true;\n\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n\n buffer.allBuffers = allBuffers;\n doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n\n state.pendingcb++;\n state.lastBufferedRequest = null;\n\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks\n\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n } // ignore unnecessary end() calls.\n\n\n if (!state.ending) endWritable(this, state, cb);\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n});\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\n\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n\n if (err) {\n errorOrDestroy(stream, err);\n }\n\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.pendingcb++;\n state.finalCalled = true;\n process.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n\n if (need) {\n prefinish(stream, state);\n\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well\n var rState = stream._readableState;\n\n if (!rState || rState.autoDestroy && rState.endEmitted) {\n stream.destroy();\n }\n }\n }\n }\n\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n\n if (cb) {\n if (state.finished) process.nextTick(cb);else stream.once('finish', cb);\n }\n\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n } // reuse the free corkReq.\n\n\n state.corkedRequestsFree.next = corkReq;\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._writableState === undefined) {\n return false;\n }\n\n return this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._writableState.destroyed = value;\n }\n});\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\n\nWritable.prototype._destroy = function (err, cb) {\n cb(err);\n};","module.exports = require('stream');\n","'use strict'; // undocumented cb() API, needed for core, not for public API\n\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n process.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n process.nextTick(emitErrorNT, this, err);\n }\n }\n\n return this;\n } // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n } // if this is a duplex stream mark the writable part as destroyed as well\n\n\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n } else if (cb) {\n process.nextTick(emitCloseNT, _this);\n cb(err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n });\n\n return this;\n}\n\nfunction emitErrorAndCloseNT(self, err) {\n emitErrorNT(self, err);\n emitCloseNT(self);\n}\n\nfunction emitCloseNT(self) {\n if (self._writableState && !self._writableState.emitClose) return;\n if (self._readableState && !self._readableState.emitClose) return;\n self.emit('close');\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nfunction errorOrDestroy(stream, err) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n var rState = stream._readableState;\n var wState = stream._writableState;\n if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy,\n errorOrDestroy: errorOrDestroy\n};","'use strict';\n\nvar ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;\n\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;\n}\n\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);\n\n if (hwm != null) {\n if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {\n var name = isDuplex ? duplexKey : 'highWaterMark';\n throw new ERR_INVALID_OPT_VALUE(name, hwm);\n }\n\n return Math.floor(hwm);\n } // Default value\n\n\n return state.objectMode ? 16 : 16 * 1024;\n}\n\nmodule.exports = {\n getHighWaterMark: getHighWaterMark\n};","import { config } from '../server';\nimport DbInterface from '../db/db_wrapper';\n\nconst genNumber = (length: number): string => {\n const addAmount = 1;\n let localMax = 11;\n\n if (length > localMax) {\n return genNumber(localMax) + genNumber(length - localMax);\n }\n\n localMax = Math.pow(10, length + addAmount);\n const min = localMax / 10;\n const number = Math.floor(Math.random() * (localMax - min + 1)) + min;\n\n const strNumber = '' + number;\n\n return strNumber.substr(addAmount);\n};\n\nconst generateUsNumber = (): string => {\n const rawNumber = genNumber(10);\n return rawNumber.replace(/(\\d{3})(\\d{3})(\\d{4})/, '$1-$2-$3');\n};\n\n/**/\nexport async function generateUniquePhoneNumber(): Promise {\n const query = `SELECT EXISTS(SELECT * FROM ${config.database.playerTable} WHERE ${config.database.phoneNumberColumn} = ?)`;\n const dashNumber = generateUsNumber();\n\n const [results] = await DbInterface._rawExec(query, dashNumber);\n\n if (!results) return generateUniquePhoneNumber();\n\n return dashNumber;\n}\n","var h=Object.defineProperty;var r=(u,e)=>h(u,\"name\",{value:e,configurable:!0});var o=class extends Map{get(e){return super.get(e)}set(e,i){return super.set(e,i)}has(e){return super.has(e)}delete(e){return super.delete(e)}clear(){return super.clear()}hasAll(...e){return e.every(i=>super.has(i))}hasAny(...e){return e.some(i=>super.has(i))}first(e){if(typeof e==\"undefined\")return this.values().next().value;if(e<0)return this.last(e*-1);e=Math.min(this.size,e);let i=this.values();return Array.from({length:e},()=>i.next().value)}firstKey(e){if(typeof e==\"undefined\")return this.keys().next().value;if(e<0)return this.lastKey(e*-1);e=Math.min(this.size,e);let i=this.keys();return Array.from({length:e},()=>i.next().value)}last(e){let i=[...this.values()];return typeof e==\"undefined\"?i[i.length-1]:e<0?this.first(e*-1):e?i.slice(-e):[]}lastKey(e){let i=[...this.keys()];return typeof e==\"undefined\"?i[i.length-1]:e<0?this.firstKey(e*-1):e?i.slice(-e):[]}random(e){let i=[...this.values()];return typeof e==\"undefined\"?i[Math.floor(Math.random()*i.length)]:!i.length||!e?[]:Array.from({length:Math.min(e,i.length)},()=>i.splice(Math.floor(Math.random()*i.length),1)[0])}randomKey(e){let i=[...this.keys()];return typeof e==\"undefined\"?i[Math.floor(Math.random()*i.length)]:!i.length||!e?[]:Array.from({length:Math.min(e,i.length)},()=>i.splice(Math.floor(Math.random()*i.length),1)[0])}find(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));for(let[t,l]of this)if(e(l,t,this))return l}findKey(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));for(let[t,l]of this)if(e(l,t,this))return t}sweep(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=this.size;for(let[l,n]of this)e(n,l,this)&&this.delete(l);return t-this.size}filter(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=new this.constructor[Symbol.species];for(let[l,n]of this)e(n,l,this)&&t.set(l,n);return t}partition(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=[new this.constructor[Symbol.species],new this.constructor[Symbol.species]];for(let[l,n]of this)e(n,l,this)?t[0].set(l,n):t[1].set(l,n);return t}flatMap(e,i){let t=this.map(e,i);return new this.constructor[Symbol.species]().concat(...t)}map(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=this.entries();return Array.from({length:this.size},()=>{let[l,n]=t.next().value;return e(n,l,this)})}mapValues(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=new this.constructor[Symbol.species];for(let[l,n]of this)t.set(l,e(n,l,this));return t}some(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));for(let[t,l]of this)if(e(l,t,this))return!0;return!1}every(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));for(let[t,l]of this)if(!e(l,t,this))return!1;return!0}reduce(e,i){let t;if(typeof i!=\"undefined\"){t=i;for(let[n,s]of this)t=e(t,s,n,this);return t}let l=!0;for(let[n,s]of this){if(l){t=s,l=!1;continue}t=e(t,s,n,this)}if(l)throw new TypeError(\"Reduce of empty collection with no initial value\");return t}each(e,i){return this.forEach(e,i),this}tap(e,i){return typeof i!=\"undefined\"&&(e=e.bind(i)),e(this),this}clone(){return new this.constructor[Symbol.species](this)}concat(...e){let i=this.clone();for(let t of e)for(let[l,n]of t)i.set(l,n);return i}equals(e){if(!e)return!1;if(this===e)return!0;if(this.size!==e.size)return!1;for(let[i,t]of this)if(!e.has(i)||t!==e.get(i))return!1;return!0}sort(e=o.defaultSort){let i=[...this.entries()];i.sort((t,l)=>e(t[1],l[1],t[0],l[0])),super.clear();for(let[t,l]of i)super.set(t,l);return this}intersect(e){let i=new this.constructor[Symbol.species];for(let[t,l]of e)this.has(t)&&i.set(t,l);return i}difference(e){let i=new this.constructor[Symbol.species];for(let[t,l]of e)this.has(t)||i.set(t,l);for(let[t,l]of this)e.has(t)||i.set(t,l);return i}sorted(e=o.defaultSort){return new this.constructor[Symbol.species](this).sort((i,t,l,n)=>e(i,t,l,n))}toJSON(){return[...this.values()]}static defaultSort(e,i){return Number(e>i)||Number(e===i)-1}},c=o;r(c,\"Collection\"),\"constructor\",c.default=o;var f=c;export{c as Collection,f as default};\n//# sourceMappingURL=index.mjs.map\n","import PlayerService from '../players/player.service';\nimport { marketplaceLogger } from './marketplace.utils';\nimport MarketplaceDB, { _MarketplaceDB } from './marketplace.db';\nimport {\n MarketplaceResp,\n MarketplaceDeleteDTO,\n MarketplaceEvents,\n MarketplaceListing,\n MarketplaceListingBase,\n MarketplaceReportDTO,\n} from '../../../typings/marketplace';\nimport { reportListingToDiscord } from '../misc/discord';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\nimport { checkAndFilterImage } from './../utils/imageFiltering';\n\nclass _MarketplaceService {\n private readonly marketplaceDB: _MarketplaceDB;\n\n constructor() {\n this.marketplaceDB = MarketplaceDB;\n marketplaceLogger.debug('Marketplace service started');\n }\n\n async handleAddListing(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n marketplaceLogger.debug('Handling add listing, listing:');\n marketplaceLogger.debug(reqObj.data);\n\n const player = PlayerService.getPlayer(reqObj.source);\n const identifier = player.getIdentifier();\n\n try {\n const doesListingExist = await this.marketplaceDB.doesListingExist(reqObj.data, identifier);\n if (doesListingExist) return resp({ status: 'error', errorMsg: MarketplaceResp.DUPLICATE });\n const imageUrl = checkAndFilterImage(reqObj.data.url);\n if (imageUrl == null) {\n return resp({ status: 'error', errorMsg: MarketplaceResp.INVALID_IMAGE_HOST });\n }\n reqObj.data.url = imageUrl;\n\n const listingId = await this.marketplaceDB.addListing(\n player.getIdentifier(),\n player.username,\n player.getName(),\n player.getPhoneNumber(),\n reqObj.data,\n );\n // Respond with success to original source\n resp({ status: 'ok' });\n\n const returnObj: MarketplaceListing = {\n id: listingId,\n identifier: player.getIdentifier(),\n name: player.getName(),\n number: player.getPhoneNumber(),\n url: reqObj.data.url,\n username: player.username,\n description: reqObj.data.description,\n title: reqObj.data.title,\n };\n // Broadcast to everyone we are adding a listing\n emitNet(MarketplaceEvents.BROADCAST_ADD, -1, { type: 'ADD', listing: returnObj });\n } catch (e) {\n marketplaceLogger.error(`Failed to add listing ${e.message}`, {\n source: reqObj.source,\n });\n\n resp({ status: 'error', errorMsg: MarketplaceResp.CREATE_FAILED });\n }\n }\n\n async handleFetchListings(\n req: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n try {\n const listings = await this.marketplaceDB.fetchListings();\n\n resp({ data: listings, status: 'ok' });\n } catch (e) {\n marketplaceLogger.error(`Failed to fetch listings, ${e.message}`, {\n source: req.source,\n });\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleDeleteListing(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.marketplaceDB.deleteListing(reqObj.data.id, identifier);\n\n resp({ status: 'ok' });\n\n const returnObj = reqObj.data.id;\n\n emitNet(MarketplaceEvents.BROADCAST_DELETE, -1, [returnObj]);\n } catch (e) {\n marketplaceLogger.error(`Error in handleDeleteListing, ${e.message}`);\n\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleDeleteListingsOnDrop(identifier: string) {\n try {\n const listingIds = await this.marketplaceDB.getListingIdsByIdentifier(identifier);\n\n emitNet(MarketplaceEvents.BROADCAST_DELETE, -1, listingIds);\n\n await this.marketplaceDB.deleteListingsOnDrop(identifier);\n } catch (e) {\n marketplaceLogger.error(`Error when deleting listings on player drop, ${e.message}`);\n }\n }\n\n async handleReportListing(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n const rListing = await this.marketplaceDB.getListing(reqObj.data.id);\n const reportExists = await this.marketplaceDB.doesReportExist(\n reqObj.data.id,\n rListing.username,\n );\n\n const reportingPlayer = GetPlayerName(reqObj.source.toString());\n\n if (reportExists) {\n marketplaceLogger.error(`This listing has already been reported`);\n resp({ status: 'error', errorMsg: 'REPORT_EXISTS' });\n return;\n }\n\n await this.marketplaceDB.reportListing(rListing);\n await reportListingToDiscord(rListing, reportingPlayer);\n } catch (e) {\n marketplaceLogger.error(`Failed to report listing ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n}\n\nconst MarketplaceService = new _MarketplaceService();\nexport default MarketplaceService;\n","import { mainLogger } from '../sv_logger';\n\nexport const marketplaceLogger = mainLogger.child({ module: 'marketplace' });\n","export interface MarketplaceListing extends MarketplaceListingBase {\n id: number;\n identifier?: string;\n username: string;\n name: string;\n number: string;\n}\n\nexport interface MarketplaceListingBase {\n title: string;\n url: string;\n description: string;\n}\n\nexport enum MarketplaceDatabaseLimits {\n title = 255,\n description = 255,\n url = 255,\n}\n\nexport enum MarketplaceResp {\n CREATE_FAILED = 'MARKETPLACE.FEEDBACK.CREATE_LISTING_FAILED',\n DUPLICATE = 'MARKETPLACE.FEEDBACK.DUPLICATE_LISTING',\n INVALID_IMAGE_HOST = 'GENERIC_INVALID_IMAGE_HOST',\n}\n\nexport enum MarketplaceEvents {\n ADD_LISTING = 'npwd:addListing',\n FETCH_LISTING = 'npwd:fetchAllListings',\n DELETE_LISTING = 'npwd:marketplaceDeleteListing',\n DELETE_LISTINGS_ON_DROP = 'npwd:marketplaceDeleteListingsOnDrop',\n REPORT_LISTING = 'npwd:reportListing',\n BROADCAST_ADD = 'npwd:sendMarketplaceBroadcastAdd',\n BROADCAST_DELETE = 'npwd:sendMarketplaceBroadcastDelete',\n}\n\nexport interface MarketplaceBroadcastAddDTO {\n listing: MarketplaceListing;\n}\n\nexport interface MarketplaceDeleteDTO {\n id: number;\n}\n\nexport interface MarketplaceReportDTO {\n id: number;\n}\n\nexport type ReportListingDTO = {\n id: number;\n title: string;\n description: string;\n url: string;\n};\n","import axios, { AxiosResponse } from 'axios';\n\nimport { Tweet, Profile } from '../../../typings/twitter';\n\nimport { mainLogger } from '../sv_logger';\nimport { MarketplaceListing } from '../../../typings/marketplace';\n\nconst IMAGE_DELIMITER = '||!||';\nconst discordLogger = mainLogger.child({ module: 'discord' });\n\nconst DISCORD_WEBHOOK = GetConvar('NPWD_DISCORD_TOKEN', '');\n/**\n * https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure\n */\ninterface DiscordEmbedField {\n name: string;\n value: string;\n inline?: boolean;\n}\n\ninterface DiscordEmbed {\n title: string;\n color: number;\n description: string;\n timestamp: string;\n fields: DiscordEmbedField[];\n}\n\ninterface DiscordMessage {\n username: string;\n embeds: DiscordEmbed[];\n}\n\nconst postToWebhook = async (content: DiscordMessage): Promise => {\n // If convar isnt set\n if (!DISCORD_WEBHOOK) {\n discordLogger.warn(\n 'Got a request to report a listing but discord is not configures. See README on how to configure discord endpoints.',\n );\n return;\n }\n const resp = await axios.post(DISCORD_WEBHOOK, { ...content });\n // If we get a bad request throw error\n if (resp.status < 200 && resp.status >= 300)\n throw new Error(`Discord Error: ${resp.status} Error - ${resp.statusText}`);\n};\n\nconst createDiscordMsgObj = (type: string, message: string, fields: DiscordEmbedField[]) => {\n // Get ISO 8601 as its required by Discord API\n const curTime = new Date().toISOString();\n\n return {\n username: 'NPWD Report',\n embeds: [\n {\n title: `${type} REPORT`,\n color: 0xe74c3c,\n description: message,\n timestamp: curTime,\n fields,\n },\n ],\n };\n};\n\nexport async function reportTweetToDiscord(tweet: Tweet, reportingProfile: Profile): Promise {\n const guaranteedFields = [\n {\n name: 'Reported By:',\n value: `\\`\\`\\`Profile Name: ${reportingProfile.profile_name}\\nProfile ID: ${reportingProfile.id}\\nUser Identifier: ${reportingProfile.identifier}\\`\\`\\``,\n },\n {\n name: 'Reported User Data:',\n value: `\\`\\`\\`Profile Name: ${tweet.profile_name}\\nProfile ID: ${tweet.profile_id}\\nUser Identifier: ${tweet.identifier}\\`\\`\\``,\n },\n {\n name: 'Tweet Message:',\n value: `\\`\\`\\`Message: ${tweet.message}\\`\\`\\``,\n },\n ];\n\n const finalFields = tweet.images\n ? guaranteedFields.concat({\n name: 'Reported Image:',\n value: tweet.images.split(IMAGE_DELIMITER).join('\\n'),\n })\n : guaranteedFields;\n\n const msgObj = createDiscordMsgObj('TWITTER', `Received a report for a tweet`, finalFields);\n try {\n await postToWebhook(msgObj);\n } catch (e) {\n discordLogger.error(e.message);\n }\n}\n\nexport async function reportListingToDiscord(\n listing: MarketplaceListing,\n reportingProfile: string,\n): Promise {\n const guaranteedFields = [\n {\n name: 'Reported By',\n value: `\\`\\`\\`Profile Name: ${reportingProfile}\\`\\`\\``,\n },\n {\n name: 'Reported User Data',\n value: `\\`\\`\\`Profile Name: ${listing.username}\\nProfile ID: ${listing.id}\\nUser Identifier: ${listing.identifier}\\`\\`\\``,\n },\n {\n name: 'Reported Listing Title',\n value: `\\`\\`\\`Title: ${listing.name}\\`\\`\\``,\n },\n {\n name: 'Reported Listing Desc.',\n value: `\\`\\`\\`Description: ${listing.description}\\`\\`\\``,\n },\n ];\n\n const finalFields = listing.url\n ? guaranteedFields.concat({\n name: 'Reported Image:',\n value: listing.url.split(IMAGE_DELIMITER).join('\\n'),\n })\n : guaranteedFields;\n\n const msgObj = createDiscordMsgObj('MARKETPLACE', `Received a report for a listing`, finalFields);\n try {\n await postToWebhook(msgObj);\n } catch (e) {\n discordLogger.error(e.message);\n }\n}\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","var url = require(\"url\");\nvar URL = url.URL;\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar Writable = require(\"stream\").Writable;\nvar assert = require(\"assert\");\nvar debug = require(\"./debug\");\n\n// Create handlers that pass events from native requests\nvar events = [\"abort\", \"aborted\", \"connect\", \"error\", \"socket\", \"timeout\"];\nvar eventHandlers = Object.create(null);\nevents.forEach(function (event) {\n eventHandlers[event] = function (arg1, arg2, arg3) {\n this._redirectable.emit(event, arg1, arg2, arg3);\n };\n});\n\n// Error types with codes\nvar RedirectionError = createErrorType(\n \"ERR_FR_REDIRECTION_FAILURE\",\n \"Redirected request failed\"\n);\nvar TooManyRedirectsError = createErrorType(\n \"ERR_FR_TOO_MANY_REDIRECTS\",\n \"Maximum number of redirects exceeded\"\n);\nvar MaxBodyLengthExceededError = createErrorType(\n \"ERR_FR_MAX_BODY_LENGTH_EXCEEDED\",\n \"Request body larger than maxBodyLength limit\"\n);\nvar WriteAfterEndError = createErrorType(\n \"ERR_STREAM_WRITE_AFTER_END\",\n \"write after end\"\n);\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n this._sanitizeOptions(options);\n this._options = options;\n this._ended = false;\n this._ending = false;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n self._processResponse(response);\n };\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\nRedirectableRequest.prototype.abort = function () {\n abortRequest(this._currentRequest);\n this.emit(\"abort\");\n};\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Writing is not allowed if end has been called\n if (this._ending) {\n throw new WriteAfterEndError();\n }\n\n // Validate input and shift parameters if necessary\n if (!(typeof data === \"string\" || typeof data === \"object\" && (\"length\" in data))) {\n throw new TypeError(\"data should be a string, Buffer or Uint8Array\");\n }\n if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new MaxBodyLengthExceededError());\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (typeof data === \"function\") {\n callback = data;\n data = encoding = null;\n }\n else if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Write data if needed and end\n if (!data) {\n this._ended = this._ending = true;\n this._currentRequest.end(null, null, callback);\n }\n else {\n var self = this;\n var currentRequest = this._currentRequest;\n this.write(data, encoding, function () {\n self._ended = true;\n currentRequest.end(null, null, callback);\n });\n this._ending = true;\n }\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Global timeout for all underlying requests\nRedirectableRequest.prototype.setTimeout = function (msecs, callback) {\n var self = this;\n\n // Destroys the socket on timeout\n function destroyOnTimeout(socket) {\n socket.setTimeout(msecs);\n socket.removeListener(\"timeout\", socket.destroy);\n socket.addListener(\"timeout\", socket.destroy);\n }\n\n // Sets up a timer to trigger a timeout event\n function startTimer(socket) {\n if (self._timeout) {\n clearTimeout(self._timeout);\n }\n self._timeout = setTimeout(function () {\n self.emit(\"timeout\");\n clearTimer();\n }, msecs);\n destroyOnTimeout(socket);\n }\n\n // Stops a timeout from triggering\n function clearTimer() {\n // Clear the timeout\n if (self._timeout) {\n clearTimeout(self._timeout);\n self._timeout = null;\n }\n\n // Clean up all attached listeners\n self.removeListener(\"abort\", clearTimer);\n self.removeListener(\"error\", clearTimer);\n self.removeListener(\"response\", clearTimer);\n if (callback) {\n self.removeListener(\"timeout\", callback);\n }\n if (!self.socket) {\n self._currentRequest.removeListener(\"socket\", startTimer);\n }\n }\n\n // Attach callback if passed\n if (callback) {\n this.on(\"timeout\", callback);\n }\n\n // Start the timer if or when the socket is opened\n if (this.socket) {\n startTimer(this.socket);\n }\n else {\n this._currentRequest.once(\"socket\", startTimer);\n }\n\n // Clean up on events\n this.on(\"socket\", destroyOnTimeout);\n this.on(\"abort\", clearTimer);\n this.on(\"error\", clearTimer);\n this.on(\"response\", clearTimer);\n\n return this;\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\nRedirectableRequest.prototype._sanitizeOptions = function (options) {\n // Ensure headers are always present\n if (!options.headers) {\n options.headers = {};\n }\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n};\n\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n this.emit(\"error\", new TypeError(\"Unsupported protocol \" + protocol));\n return;\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.substr(0, protocol.length - 1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n this._currentUrl = url.format(this._options);\n\n // Set up event handlers\n request._redirectable = this;\n for (var e = 0; e < events.length; e++) {\n request.on(events[e], eventHandlers[events[e]]);\n }\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end.\n var i = 0;\n var self = this;\n var buffers = this._requestBodyBuffers;\n (function writeNext(error) {\n // Only write if this request has not been redirected yet\n /* istanbul ignore else */\n if (request === self._currentRequest) {\n // Report any write errors\n /* istanbul ignore if */\n if (error) {\n self.emit(\"error\", error);\n }\n // Write the next buffer if there are still left\n else if (i < buffers.length) {\n var buffer = buffers[i++];\n /* istanbul ignore else */\n if (!request.finished) {\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n }\n // End the request if `end` has been called on us\n else if (self._ended) {\n request.end();\n }\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n var statusCode = response.statusCode;\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: statusCode,\n });\n }\n\n // RFC7231§6.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n var location = response.headers.location;\n if (location && this._options.followRedirects !== false &&\n statusCode >= 300 && statusCode < 400) {\n // Abort the current request\n abortRequest(this._currentRequest);\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n\n // RFC7231§6.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n this.emit(\"error\", new TooManyRedirectsError());\n return;\n }\n\n // RFC7231§6.4: Automatic redirection needs to done with\n // care for methods not known to be safe, […]\n // RFC7231§6.4.2–3: For historical reasons, a user agent MAY change\n // the request method from POST to GET for the subsequent request.\n if ((statusCode === 301 || statusCode === 302) && this._options.method === \"POST\" ||\n // RFC7231§6.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource […]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) […]\n (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n removeMatchingHeaders(/^content-/i, this._options.headers);\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);\n\n // If the redirect is relative, carry over the host of the last request\n var currentUrlParts = url.parse(this._currentUrl);\n var currentHost = currentHostHeader || currentUrlParts.host;\n var currentUrl = /^\\w+:/.test(location) ? this._currentUrl :\n url.format(Object.assign(currentUrlParts, { host: currentHost }));\n\n // Determine the URL of the redirection\n var redirectUrl;\n try {\n redirectUrl = url.resolve(currentUrl, location);\n }\n catch (cause) {\n this.emit(\"error\", new RedirectionError(cause));\n return;\n }\n\n // Create the redirected request\n debug(\"redirecting to\", redirectUrl);\n this._isRedirect = true;\n var redirectUrlParts = url.parse(redirectUrl);\n Object.assign(this._options, redirectUrlParts);\n\n // Drop confidential headers when redirecting to another scheme:domain\n if (redirectUrlParts.protocol !== currentUrlParts.protocol ||\n !isSameOrSubdomain(redirectUrlParts.host, currentHost)) {\n removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);\n }\n\n // Evaluate the beforeRedirect callback\n if (typeof this._options.beforeRedirect === \"function\") {\n var responseDetails = { headers: response.headers };\n try {\n this._options.beforeRedirect.call(null, this._options, responseDetails);\n }\n catch (err) {\n this.emit(\"error\", err);\n return;\n }\n this._sanitizeOptions(this._options);\n }\n\n // Perform the redirected request\n try {\n this._performRequest();\n }\n catch (cause) {\n this.emit(\"error\", new RedirectionError(cause));\n }\n }\n else {\n // The response is not a redirect; return it as-is\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n }\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n function request(input, options, callback) {\n // Parse parameters\n if (typeof input === \"string\") {\n var urlStr = input;\n try {\n input = urlToOptions(new URL(urlStr));\n }\n catch (err) {\n /* istanbul ignore next */\n input = url.parse(urlStr);\n }\n }\n else if (URL && (input instanceof URL)) {\n input = urlToOptions(input);\n }\n else {\n callback = options;\n options = input;\n input = { protocol: protocol };\n }\n if (typeof options === \"function\") {\n callback = options;\n options = null;\n }\n\n // Set defaults\n options = Object.assign({\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, input, options);\n options.nativeProtocols = nativeProtocols;\n\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n }\n\n // Executes a GET request, following redirects\n function get(input, options, callback) {\n var wrappedRequest = wrappedProtocol.request(input, options, callback);\n wrappedRequest.end();\n return wrappedRequest;\n }\n\n // Expose the properties on the wrapped protocol\n Object.defineProperties(wrappedProtocol, {\n request: { value: request, configurable: true, enumerable: true, writable: true },\n get: { value: get, configurable: true, enumerable: true, writable: true },\n });\n });\n return exports;\n}\n\n/* istanbul ignore next */\nfunction noop() { /* empty */ }\n\n// from https://github.com/nodejs/node/blob/master/lib/internal/url.js\nfunction urlToOptions(urlObject) {\n var options = {\n protocol: urlObject.protocol,\n hostname: urlObject.hostname.startsWith(\"[\") ?\n /* istanbul ignore next */\n urlObject.hostname.slice(1, -1) :\n urlObject.hostname,\n hash: urlObject.hash,\n search: urlObject.search,\n pathname: urlObject.pathname,\n path: urlObject.pathname + urlObject.search,\n href: urlObject.href,\n };\n if (urlObject.port !== \"\") {\n options.port = Number(urlObject.port);\n }\n return options;\n}\n\nfunction removeMatchingHeaders(regex, headers) {\n var lastValue;\n for (var header in headers) {\n if (regex.test(header)) {\n lastValue = headers[header];\n delete headers[header];\n }\n }\n return (lastValue === null || typeof lastValue === \"undefined\") ?\n undefined : String(lastValue).trim();\n}\n\nfunction createErrorType(code, defaultMessage) {\n function CustomError(cause) {\n Error.captureStackTrace(this, this.constructor);\n if (!cause) {\n this.message = defaultMessage;\n }\n else {\n this.message = defaultMessage + \": \" + cause.message;\n this.cause = cause;\n }\n }\n CustomError.prototype = new Error();\n CustomError.prototype.constructor = CustomError;\n CustomError.prototype.name = \"Error [\" + code + \"]\";\n CustomError.prototype.code = code;\n return CustomError;\n}\n\nfunction abortRequest(request) {\n for (var e = 0; e < events.length; e++) {\n request.removeListener(events[e], eventHandlers[events[e]]);\n }\n request.on(\"error\", noop);\n request.abort();\n}\n\nfunction isSameOrSubdomain(subdomain, domain) {\n if (subdomain === domain) {\n return true;\n }\n const dot = subdomain.length - domain.length - 1;\n return dot > 0 && subdomain[dot] === \".\" && subdomain.endsWith(domain);\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n","module.exports = require(\"assert\");","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","module.exports = require(\"tty\");","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export interface ActiveCall {\n is_accepted: boolean;\n isTransmitter: boolean;\n transmitter: string;\n receiver: string;\n channelId?: number;\n isUnavailable?: boolean;\n start?: string;\n identifier?: string;\n}\n\nexport interface InitializeCallDTO {\n receiverNumber: string;\n}\n\nexport interface StartCallEventData {\n transmitter: string;\n receiver: string;\n isTransmitter: boolean;\n isUnavailable?: boolean;\n}\n\nexport interface EndCallDTO {\n transmitterNumber: string;\n isTransmitter: boolean;\n isUnavailable: boolean;\n}\n\nexport interface TransmitterNumDTO {\n transmitterNumber: string;\n}\n\nexport interface CallWasAcceptedEvent {\n channelId: number;\n currentCall: CallHistoryItem;\n isTransmitter: boolean;\n}\n\nexport interface ActiveCallRaw {\n identifier: string;\n transmitter: string;\n transmitterSource: number;\n receiver: string;\n receiverSource: number;\n start: string;\n is_accepted: boolean;\n}\n\nexport interface CallHistoryItem {\n id?: number | string;\n identifier?: string;\n transmitter: string;\n transmitterSource?: number;\n receiver: string;\n receiverSource?: number;\n start: string;\n end?: number;\n is_accepted: boolean;\n}\n\nexport enum CallRejectReasons {\n DECLINED,\n BUSY_LINE,\n}\n\nexport enum CallEvents {\n INITIALIZE_CALL = 'npwd:beginCall',\n START_CALL = 'npwd:startCall',\n ACCEPT_CALL = 'npwd:acceptCall',\n END_CALL = 'npwd:endCall',\n WAS_ENDED = 'npwd:callEnded',\n WAS_ACCEPTED = 'npwd:callAccepted',\n REJECTED = 'npwd:rejectCall',\n WAS_REJECTED = 'npwd:callRejected',\n FETCH_CALLS = 'npwd:fetchCalls',\n SET_CALL_INFO = 'npwd:setCaller',\n SET_CALL_MODAL = 'npwd:callModal',\n SEND_ALERT = 'npwd:callSetAlert',\n SAVE_CALL = 'npwd:saveCall',\n}\n","import { mainLogger } from '../sv_logger';\n\nexport const callLogger = mainLogger.child({ module: 'calls' });\n","import { mainLogger } from '../sv_logger';\n\nexport const notesLogger = mainLogger.child({ module: 'notes' });\n","export type AlertCategory =\n | 'CONTACT_ADD_SUCCESS'\n | 'CONTACT_ADD_FAILED'\n | 'CONTACT_UPDATE_SUCCESS'\n | 'CONTACT_UPDATE_FAILED'\n | 'CONTACT_DELETE_SUCCESS'\n | 'CONTACT_DELETE_FAILED';\n\nexport interface PreDBContact {\n display: string;\n number: string;\n avatar?: string;\n}\n\nexport interface Contact extends PreDBContact {\n id: number;\n}\n\nexport interface ContactDeleteDTO {\n id: number;\n}\n\nexport enum ContactResp {\n ADD_FAILED = 'CONTACT.FEEDBACK.ADD_FAILED',\n UPDATE_FAILED = 'CONTACT.FEEDBACK.UPDATE_FAILED',\n INVALID_HOST = 'GENERIC_INVALID_IMAGE_HOST',\n}\n\nexport enum ContactsDatabaseLimits {\n avatar = 255,\n number = 20,\n display = 255,\n}\n\nexport enum ContactEvents {\n GET_CONTACTS = 'npwd:getContacts',\n ADD_CONTACT = 'npwd:addContacts',\n UPDATE_CONTACT = 'npwd:updateContact',\n DELETE_CONTACT = 'npwd:deleteContact',\n // Used to fill in information through an export event\n ADD_CONTACT_EXPORT = 'npwd:addContactExport',\n}\n\nexport interface AddContactExportData {\n name?: string;\n number: string;\n avatar?: string;\n}\n","import { mainLogger } from '../sv_logger';\n\nexport const contactsLogger = mainLogger.child({ module: 'contact' });\n","export interface GalleryPhoto {\n image: string;\n id: number;\n}\n\nexport enum PhotoResp {\n GENERIC = 'CAMERA.FAILED_TO_TAKE_PHOTO',\n INVALID_IMAGE_HOST = 'GENERIC_INVALID_IMAGE_HOST',\n}\n\nexport enum PhotoEvents {\n TAKE_PHOTO = 'npwd:TakePhoto',\n CAMERA_EXITED = 'npwd:cameraExited',\n NPWD_PHOTO_MODE_STARTED = 'npwd:PhotoModeStarted',\n NPWD_PHOTO_MODE_ENDED = 'npwd:PhotoModeEnded',\n TAKE_PHOTO_SUCCESS = 'npwd:TakePhotoSuccess',\n UPLOAD_PHOTO = 'npwd:UploadPhoto',\n FETCH_PHOTOS = 'npwd:FetchPhotos',\n DELETE_PHOTO = 'npwd:deletePhoto',\n}\n","import { mainLogger } from '../sv_logger';\n\nexport const photoLogger = mainLogger.child({ module: 'photo' });\n","export interface Message {\n id: number;\n message: string;\n conversation_id?: string;\n author: string;\n is_embed?: boolean;\n embed?: any;\n}\n\nexport interface PreDBMessage {\n conversationId: string;\n tgtPhoneNumber: string;\n sourcePhoneNumber?: string;\n message?: string;\n is_embed?: boolean;\n embed?: any;\n}\n\nexport interface MessageConversation {\n conversation_id: string;\n avatar: string;\n display: string;\n phoneNumber: string;\n updatedAt: number;\n unread: number;\n}\n\nexport interface FormattedMessageConversation {\n conversation_id: string;\n phoneNumber: string;\n}\n\n/**\n * Used for the raw npwd_messages_groups row responses\n */\nexport interface UnformattedMessageConversation {\n conversation_id: string;\n user_identifier: string;\n participant_identifier: string;\n phone_number: string;\n avatar?: string;\n display?: string;\n updatedAt?: string;\n unread: number;\n}\n\n/**\n * Used to help consolidate raw npwd_messages_groups rows into\n * a mapping of a single message group\n */\nexport interface MessageGroupMapping {\n [groupId: string]: {\n user_identifier: string;\n // Participant displays\n participants: string[];\n phoneNumbers: string[];\n label?: string;\n avatar?: string;\n updatedAt: string;\n unreadCount: number;\n };\n}\n\nexport interface CreateMessageGroupResult {\n error?: boolean;\n phoneNumber?: string;\n duplicate?: boolean;\n conversationId?: string;\n mine?: boolean;\n participant: string;\n identifiers: string[];\n doesExist: UnformattedMessageConversation | null;\n}\n\nexport interface CreateMessageBroadcast {\n message: string;\n groupName: string;\n groupId: string;\n}\n\nexport interface SetMessageRead {\n groupId: string;\n}\n\nexport interface MessageConversationResponse {\n conversation_id: string;\n phoneNumber: string;\n updatedAt: number;\n}\n\nexport interface OnMessageExportCtx {\n /**\n * The incoming message object\n */\n data: PreDBMessage;\n\n source: number;\n\n /**\n * Reponds with a message to the source\n * @param message\n */\n respond: (ctx: any, message: string) => void;\n}\n\nexport enum MessageEvents {\n FETCH_MESSAGE_CONVERSATIONS = 'npwd:fetchMessageGroups',\n FETCH_MESSAGE_GROUPS_SUCCESS = 'npwd:fetchMessageGroupsSuccess',\n FETCH_MESSAGE_GROUPS_FAILED = 'npwd:fetchMessageGroupsFailed',\n CREATE_MESSAGE_CONVERSATION = 'npwd:createMessageGroup',\n CREATE_MESSAGE_CONVERSATION_SUCCESS = 'npwd:createMessageConversationSuccess',\n CREATE_MESSAGE_GROUP_SUCCESS = 'npwd:createMessageGroupSuccess',\n CREATE_MESSAGE_GROUP_FAILED = 'npwd:createMessageGroupFailed',\n SEND_MESSAGE = 'npwd:sendMessage',\n SEND_EMBED_MESSAGE = 'npwd:sendEmbedMessage',\n SEND_MESSAGE_SUCCESS = 'npwd:sendMessageSuccess',\n SEND_MESSAGE_FAILED = 'npwd:sendMessageFailed',\n DELETE_MESSAGE = 'npwd:deleteMessage',\n FETCH_MESSAGES = 'npwd:fetchMessages',\n FETCH_MESSAGES_SUCCESS = 'npwd:fetchMessagesSuccess',\n FETCH_MESSAGES_FAILED = 'npwd:fetchMessagesFailed',\n FETCH_INITIAL_MESSAGES = 'npwd:fetchInitialMessages',\n ACTION_RESULT = 'npwd:setMessagesAlert',\n CREATE_MESSAGE_BROADCAST = 'npwd:createMessagesBroadcast',\n SET_MESSAGE_READ = 'npwd:setReadMessages',\n DELETE_CONVERSATION = 'nwpd:deleteConversation',\n}\n","import PlayerService from '../players/player.service';\nimport {\n Message,\n MessageConversationResponse,\n MessageEvents,\n PreDBMessage,\n} from '../../../typings/messages';\nimport MessagesDB, { _MessagesDB } from './messages.db';\nimport {\n createMessageGroupsFromPhoneNumber,\n getFormattedMessageConversations,\n getIdentifiersFromParticipants,\n messagesLogger,\n} from './messages.utils';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\n\nclass _MessagesService {\n private readonly messagesDB: _MessagesDB;\n\n constructor() {\n this.messagesDB = MessagesDB;\n messagesLogger.debug('Messages service started');\n }\n\n async handleFetchMessageConversations(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const phoneNumber = PlayerService.getPlayer(reqObj.source).getPhoneNumber();\n const messageConversations = await getFormattedMessageConversations(phoneNumber);\n\n resp({ status: 'ok', data: messageConversations });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n messagesLogger.error(`Failed to fetch messages groups, ${e.message}`);\n }\n }\n\n async handleCreateMessageConversation(\n reqObj: PromiseRequest<{ targetNumber: string }>,\n resp: PromiseEventResp,\n ) {\n try {\n const sourcePlayer = PlayerService.getPlayer(reqObj.source);\n\n const result = await createMessageGroupsFromPhoneNumber(\n sourcePlayer.getPhoneNumber(),\n reqObj.data.targetNumber,\n );\n\n if (result.error) {\n return resp({ status: 'error' });\n }\n\n if (!result.doesExist) {\n try {\n const participant = PlayerService.getPlayerFromIdentifier(result.participant);\n\n if (participant) {\n emitNet(MessageEvents.CREATE_MESSAGE_CONVERSATION_SUCCESS, participant.source, {\n conversation_id: result.conversationId,\n phoneNumber: sourcePlayer.getPhoneNumber(),\n });\n }\n } catch (e) {\n resp({ status: 'error', errorMsg: e.message });\n messagesLogger.error(e.message);\n }\n }\n\n resp({\n status: 'ok',\n data: {\n conversation_id: result.conversationId,\n phoneNumber: result.phoneNumber,\n updatedAt: Date.now(),\n },\n });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n\n messagesLogger.error(`Failed to create message group, ${e.message}`, {\n source: reqObj.source,\n e,\n });\n }\n }\n\n async handleFetchMessages(\n reqObj: PromiseRequest<{ conversationId: string; page: number }>,\n resp: PromiseEventResp,\n ) {\n try {\n const messages = await this.messagesDB.getMessages(\n reqObj.data.conversationId,\n reqObj.data.page,\n );\n\n await this.handleSetMessageRead(reqObj.source, reqObj.data.conversationId);\n\n messages.sort((a, b) => a.id - b.id);\n\n resp({ status: 'ok', data: messages });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n messagesLogger.error(`Failed to fetch messages, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n\n async handleSendMessage(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const player = PlayerService.getPlayer(reqObj.source);\n const authorPhoneNumber = player.getPhoneNumber();\n const messageData = reqObj.data;\n const participants = getIdentifiersFromParticipants(messageData.conversationId);\n const userIdentifier = player.getIdentifier();\n\n const messageId = await this.messagesDB.createMessage(\n userIdentifier,\n authorPhoneNumber,\n messageData.conversationId,\n messageData.message,\n messageData.is_embed,\n messageData.embed,\n );\n\n await this.messagesDB.setMessageUnread(\n messageData.conversationId,\n messageData.tgtPhoneNumber,\n );\n\n resp({\n status: 'ok',\n data: {\n ...messageData,\n conversation_id: messageData.conversationId,\n author: authorPhoneNumber,\n id: messageId,\n message: messageData.message,\n embed: messageData.embed,\n is_embed: messageData.is_embed,\n },\n });\n\n // participantId is the participants phone number\n for (const participantId of participants) {\n if (participantId !== player.getPhoneNumber()) {\n const participantIdentifier = await PlayerService.getIdentifierByPhoneNumber(\n participantId,\n true,\n );\n\n const participantPlayer = PlayerService.getPlayerFromIdentifier(participantIdentifier);\n\n if (participantPlayer) {\n emitNet(MessageEvents.SEND_MESSAGE_SUCCESS, participantPlayer.source, messageData);\n emitNet(MessageEvents.CREATE_MESSAGE_BROADCAST, participantPlayer.source, {\n conversationName: player.getPhoneNumber(),\n conversationId: messageData.conversationId,\n message: messageData.message,\n is_embed: messageData.is_embed,\n embed: messageData.embed,\n });\n }\n }\n }\n } catch (e) {\n resp({ status: 'error', errorMsg: e.message });\n messagesLogger.error(`Failed to send message, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n\n // I didn't bother creating a new interface. Will do it soonTM.\n async handleOnMessageSendResponse(reqObj: any) {\n const messageData = reqObj.data;\n\n const messageId = await this.messagesDB.createMessage(\n messageData.author,\n messageData.author,\n messageData.conversation_id,\n messageData.message,\n );\n\n const respData = {\n ...messageData,\n id: messageId,\n };\n\n emitNet(MessageEvents.SEND_MESSAGE_SUCCESS, reqObj.source, respData);\n }\n\n async handleSetMessageRead(src: number, groupId: string) {\n try {\n const identifier = PlayerService.getPlayer(src).getPhoneNumber();\n await this.messagesDB.setMessageRead(groupId, identifier);\n } catch (e) {\n messagesLogger.error(`Failed to set message as read, ${e.message}`, {\n source: src,\n });\n }\n }\n\n async handleDeleteConversation(\n reqObj: PromiseRequest<{ conversationsId: string[] }>,\n resp: PromiseEventResp,\n ) {\n try {\n const sourcePhoneNumber = PlayerService.getPlayer(reqObj.source).getPhoneNumber();\n\n for (const id of reqObj.data.conversationsId) {\n await this.messagesDB.deleteConversation(id, sourcePhoneNumber);\n }\n resp({ status: 'ok' });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n messagesLogger.error(`Failed to delete conversation, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n\n async handleDeleteMessage(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n await this.messagesDB.deleteMessage(reqObj.data);\n resp({ status: 'ok' });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n messagesLogger.error(`Failed to delete message, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n}\n\nconst MessagesService = new _MessagesService();\n\nexport default MessagesService;\n","import { Message, UnformattedMessageConversation } from '../../../typings/messages';\nimport { config } from '../server';\nimport { ResultSetHeader } from 'mysql2';\nimport DbInterface from '../db/db_wrapper';\n\nconst MESSAGES_PER_PAGE = 20;\n\n// not sure whats going on here.\nexport class _MessagesDB {\n /**\n * Create a message in the database\n * @param userIdentifier - the identifier to the author\n * @param author - the phoneNumber to the player who sent the message\n * @param conversationId - the message conversation ID to attach this message to\n * @param message - content of the message\n * @param isEmbed\n * @param embed\n */\n async createMessage(\n userIdentifier: string,\n author: string,\n conversationId: string,\n message: string,\n isEmbed?: boolean,\n embed?: any,\n ): Promise {\n const query = `INSERT INTO npwd_messages (user_identifier, author, message, conversation_id, is_embed, embed)\n VALUES (?, ?, ?, ?, ?, ?)`;\n\n const [results] = await DbInterface._rawExec(query, [\n userIdentifier,\n author,\n message || '',\n conversationId,\n isEmbed || false,\n embed || '',\n ]);\n\n return (results).insertId;\n }\n\n // Not sure if we're going to query this exactly as its done here.\n /**\n * Retrieve all message conversations associated with a user. This will\n * populate the list of message conversations on the UI\n * @param phoneNumber - phoneNumber of the user to get message conversations for\n */\n async getMessageConversations(phoneNumber: string): Promise {\n const query = `\n SELECT npwd_messages_conversations.unreadCount,\n npwd_messages_conversations.conversation_id,\n npwd_messages_conversations.user_identifier,\n npwd_messages_conversations.participant_identifier,\n npwd_messages_conversations.updatedAt,\n ${config.database.playerTable}.${config.database.phoneNumberColumn}\n AS phone_number\n FROM (SELECT conversation_id\n FROM npwd_messages_conversations\n WHERE npwd_messages_conversations.participant_identifier = ?) AS t\n LEFT OUTER JOIN npwd_messages_conversations\n ON npwd_messages_conversations.conversation_id = t.conversation_id\n LEFT OUTER JOIN ${config.database.playerTable}\n ON ${config.database.playerTable}.${config.database.phoneNumberColumn} = npwd_messages_conversations.participant_identifier\n\t\t`;\n\n const [results] = await DbInterface._rawExec(query, [phoneNumber]);\n return results;\n }\n\n async getMessages(conversationId: string, page: number): Promise {\n const offset = page * MESSAGES_PER_PAGE;\n\n const query = `SELECT npwd_messages.id,\n npwd_messages.conversation_id,\n npwd_messages.message,\n npwd_messages.author,\n npwd_messages.embed,\n npwd_messages.is_embed\n FROM npwd_messages\n WHERE npwd_messages.conversation_id = ?\n ORDER BY id DESC\n LIMIT ? OFFSET ?`;\n\n const [results] = await DbInterface._rawExec(query, [\n conversationId,\n MESSAGES_PER_PAGE,\n offset,\n ]);\n\n return results;\n }\n\n /**\n * Create a message group\n * @param userIdentifier - the user creating the message group\n * @param conversationId - the unique group ID this corresponds to\n * @param participantIdentifier - the participant user identifier. This identifier is what attaches\n * other players to the message group\n */\n async createMessageGroup(\n userIdentifier: string,\n conversationId: string,\n participantIdentifier: string,\n ): Promise {\n const query = `\n INSERT\n INTO npwd_messages_conversations\n (user_identifier, conversation_id, participant_identifier)\n VALUES (?, ?, ?)\n\t\t`;\n await DbInterface._rawExec(query, [userIdentifier, conversationId, participantIdentifier]);\n }\n\n /**\n * Find a players identifier from their phone number\n * @param phoneNumber - the phone number to search for\n */\n async getIdentifierFromPhoneNumber(phoneNumber: string): Promise {\n const query = `\n SELECT ${config.database.identifierColumn}\n FROM ${config.database.playerTable}\n WHERE ${config.database.phoneNumberColumn} = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [phoneNumber]);\n const result = results;\n return result[0].identifier;\n }\n\n /**\n * This method checks if the input groupId already exists in\n * the database. As long as the groupId is derived from the input\n * identifiers this means that the user is trying to create a\n * duplicate!\n * @param groupId - group Id to check that it exists\n */\n async checkIfMessageGroupExists(groupId: string): Promise {\n const query = `\n SELECT COUNT(*) as count\n FROM npwd_messages_conversations\n WHERE conversation_id = ?;\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [groupId]);\n const result = results;\n const count = result[0].count;\n return count > 0;\n }\n\n async getMessageCountByGroup(groupId: string): Promise {\n const query = `\n SELECT COUNT(*) as count\n FROM npwd_messages\n WHERE conversation_id = ?`;\n const [results] = await DbInterface._rawExec(query, [groupId]);\n const result = results;\n return result[0].count;\n }\n /**\n * Adds an unread to the specified group id\n * @param groupId The unique group ID for the message\n * @param phoneNumber The phone number of the player to ignore\n */\n async setMessageUnread(groupId: string, phoneNumber: string) {\n const query = `UPDATE npwd_messages_conversations\n SET unreadCount = unreadCount + 1\n WHERE conversation_id = ?\n AND participant_identifier = ?`;\n await DbInterface._rawExec(query, [groupId, phoneNumber]);\n }\n /**\n * Sets the current message isRead to 0 for said player\n * @param groupId The unique group ID for the message\n * @param phoneNumber The phone number for the player\n */\n async setMessageRead(groupId: string, phoneNumber: string) {\n const query = `UPDATE npwd_messages_conversations\n SET unreadCount = 0\n WHERE conversation_id = ?\n AND participant_identifier = ?`;\n await DbInterface._rawExec(query, [groupId, phoneNumber]);\n }\n\n async deleteConversation(conversationId: string, sourcePhoneNumber: string) {\n const query = `DELETE\n FROM npwd_messages_conversations\n WHERE conversation_id = ?\n AND participant_identifier = ?`;\n await DbInterface._rawExec(query, [conversationId, sourcePhoneNumber]);\n }\n\n async deleteMessage(message: Message) {\n const query = `DELETE\n FROM npwd_messages\n WHERE id = ?\n AND conversation_id = ?`;\n\n await DbInterface._rawExec(query, [message.id, message.conversation_id]);\n }\n\n async doesConversationExist(\n conversationId: string,\n identifier: string,\n ): Promise {\n const query = `SELECT *\n FROM npwd_messages_conversations\n WHERE conversation_id = ?\n AND participant_identifier = ?`;\n const [results] = await DbInterface._rawExec(query, [conversationId, identifier]);\n const conversations = results;\n return conversations[0] || null;\n }\n}\n\nconst MessagesDB = new _MessagesDB();\n\nexport default MessagesDB;\n","import { CreateMessageGroupResult, MessageConversation } from '../../../typings/messages';\nimport { mainLogger } from '../sv_logger';\nimport MessagesDB from './messages.db';\nimport PlayerService from '../players/player.service';\n\nexport const messagesLogger = mainLogger.child({ module: 'messages' });\n\n// Functions\nexport async function getConsolidatedMessageGroups(identifier: string): Promise {\n const messageConversations = await MessagesDB.getMessageConversations(identifier);\n return messageConversations.reduce((mapping: any, conversation: any) => {\n const groupId = conversation.conversation_id;\n\n if (conversation.participant_identifier != identifier) {\n mapping[groupId] = {\n unread: conversation.unreadCount,\n phoneNumber: conversation.phone_number || conversation.participant_identifier,\n display: conversation.display,\n conversation_id: conversation.conversation_id,\n user_identifier: identifier,\n updatedAt: Date.parse(conversation.updatedAt),\n };\n }\n\n return mapping;\n }, {});\n}\n\nexport async function getFormattedMessageConversations(\n identifier: string,\n): Promise {\n const conversationMapping = await getConsolidatedMessageGroups(identifier);\n const conversationIds = await getGroupIds(identifier, conversationMapping);\n\n return conversationIds.map((conversationId) => {\n const conversation = conversationMapping[conversationId];\n\n return {\n ...conversation,\n };\n });\n}\n\nexport async function getGroupIds(userIdentifier: string, groupMapping: any): Promise {\n const groupIds: string[] = [];\n for (const groupId of Object.keys(groupMapping)) {\n const isMine = (groupMapping[groupId].user_identifier = userIdentifier);\n if (isMine) {\n groupIds.push(groupId);\n }\n }\n return groupIds;\n}\n\n/**\n * Create the same unique ID from an identifiers array.\n * They will be always be sorted to ensure always the same ID.\n * @param participants array of player identifiers\n */\nexport function createGroupHashID(participants: string[]) {\n // make sure we are always in a consistent order. It is very important\n // that this not change! Changing this order can result in the ability\n // of duplicate message groups being created.\n participants.sort();\n return participants.join('+');\n // we don't need this to be secure. Its purpose is to create a unique\n // string derived from the identifiers. In this way we can check\n // that this groupId isn't used before. If it has then it means\n // we are trying to create a duplicate message group!\n}\n\n/**\n * Main method to handle creation of new message groups. First\n * we retrieve identifiers for each submitted phone number and\n * then rows in npwd_messages_groups are created for each of them\n * bound to a unique groupId. The groupId is any unique string - we\n * use hashes here.\n *\n * These queries are batched with a transaction so that if any of\n * them fail the queries are not committed to the database. This helps\n * avoid situations where some participants get added to the group but\n * one fails resulting in a partial group which would be very confusing\n * to the player.\n * @param sourcePhoneNumber - user who is creating the group\n * @param tgtPhoneNumber - list of phone numbers to add to the grup\n */\nexport async function createMessageGroupsFromPhoneNumber(\n sourcePhoneNumber: string,\n tgtPhoneNumber: string,\n): Promise {\n // we check that each phoneNumber exists before we create the group\n\n const tgtIdentifier = await PlayerService.getIdentifierFromPhoneNumber(tgtPhoneNumber, true);\n\n if (!tgtIdentifier) {\n messagesLogger.error(\n \"Didn't find a identifier for the phone number, this is probably some service number.\",\n );\n }\n\n const conversationId = createGroupHashID([sourcePhoneNumber, tgtPhoneNumber]);\n const existingConversation = await MessagesDB.doesConversationExist(\n conversationId,\n tgtPhoneNumber,\n );\n\n if (existingConversation) {\n await MessagesDB.createMessageGroup(\n existingConversation.user_identifier,\n conversationId,\n sourcePhoneNumber,\n );\n } else {\n await MessagesDB.createMessageGroup(sourcePhoneNumber, conversationId, sourcePhoneNumber);\n await MessagesDB.createMessageGroup(sourcePhoneNumber, conversationId, tgtPhoneNumber);\n }\n\n // wrap this in a transaction to make sure ALL of these INSERTs succeed\n // so we are not left in a situation where only some of the member of the\n // group exist while other are left off.\n\n return {\n error: false,\n doesExist: existingConversation,\n conversationId,\n identifiers: [sourcePhoneNumber, tgtPhoneNumber],\n phoneNumber: tgtPhoneNumber,\n participant: tgtIdentifier || tgtPhoneNumber,\n };\n}\n\n// getting the participants from groupId.\n// this should return the source or and array of identifiers\nexport function getIdentifiersFromParticipants(conversationId: string) {\n return conversationId.split('+');\n}\n","export interface NewTweet {\n message: string;\n images?: string;\n retweet?: number;\n}\n\nexport type SETTING_MENTIONS = 'mentions';\nexport type SETTINGS_ALL_TWEETS = 'all';\n\nexport interface Tweet extends NewTweet {\n profile_name: string;\n profile_id: number;\n id: number;\n identifier: string;\n isMine: boolean;\n isLiked: boolean;\n isReported: boolean;\n avatar_url: string;\n isRetweet: number | boolean;\n isRetweetedByPlayer?: boolean;\n retweetIdentifier: string;\n retweetId: string;\n seconds_since_tweet: number;\n retweetProfileName: string;\n retweetAvatarUrl: string;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface Image {\n id: string;\n link: string;\n}\nexport interface FormattedTweet extends Omit {\n images: Image[];\n}\n\nexport interface Profile {\n id: number;\n profile_name: string;\n identifier: string;\n avatar_url?: string;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface UpdateProfileProps {\n avatar_url: string;\n profile_name: string;\n}\n\nexport enum TwitterEvents {\n FETCH_TWEETS = 'npwd:fetchTweets',\n FETCH_TWEETS_FILTERED = 'npwd:fetchTweetsFiltered',\n CREATE_PROFILE = 'npwd:createTwitterProfile',\n GET_OR_CREATE_PROFILE = 'npwd:getOrCreateTwitterProfile',\n UPDATE_PROFILE = 'npwd:updateTwitterProfile',\n CREATE_TWEET = 'npwd:createTweet',\n CREATE_TWEET_BROADCAST = 'createTweetBroadcast',\n DELETE_TWEET = 'npwd:deleteTweet',\n TOGGLE_LIKE = 'npwd:toggleLike',\n RETWEET = 'npwd:retweet',\n REPORT = 'npwd:reportTweet',\n}\n","import PlayerService from '../players/player.service';\nimport { clean } from './miscUtils';\n/**\n * Generate a profile name by the player's name and/or phone number\n * @param identifier - player's identifier\n * @param delimiter - What we split the profile name by, defaults to -\n */\nexport async function generateProfileName(\n identifier: string,\n delimiter = '_',\n): Promise {\n const player = PlayerService.getPlayerFromIdentifier(identifier);\n\n const firstname = clean(player.getFirstName());\n const lastname = clean(player.getLastName());\n const phone_number = clean(player.getPhoneNumber());\n\n if (firstname && lastname) {\n return `${firstname}${delimiter}${lastname}`;\n } else if (firstname) {\n return firstname;\n } else if (lastname) {\n return lastname;\n } else if (phone_number) {\n return phone_number;\n }\n return null;\n}\n","export interface NewProfile {\n name: string;\n image: string;\n bio: string;\n job: string;\n location: string;\n tags: string;\n}\n\nexport interface Profile extends NewProfile {\n id: number;\n identifier: string;\n phoneNumber: string;\n viewed: boolean;\n createdAt: number;\n updatedAt: number;\n lastActive: number;\n}\n\nexport interface FormattedProfile extends Profile {\n lastActiveFormatted: string;\n tagList: string[];\n}\n\nexport interface Match extends Profile {\n matchedAt: number;\n}\n\nexport interface FormattedMatch extends FormattedProfile {\n matchedAtFormatted: string;\n}\n\nexport interface Like {\n id: number; // profile id\n liked: boolean;\n}\n\nexport enum MatchResp {\n UPDATE_FAILED = 'MATCH.FEEDBACK.UPDATE_PROFILE_FAILED',\n}\n\nexport enum MatchEvents {\n INITIALIZE = 'phone:initializeMatch',\n GET_PROFILES = 'phone:getMatchProfiles',\n CREATE_MY_PROFILE = 'phone:createMyProfile',\n GET_MY_PROFILE = 'phone:getMyProfile',\n UPDATE_MY_PROFILE = 'phone:updateMyProfile',\n GET_MATCHES = 'phone:getMatches',\n SAVE_LIKES = 'phone:saveLikes',\n}\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nconst agent_1 = __importDefault(require(\"./agent\"));\nfunction createHttpsProxyAgent(opts) {\n return new agent_1.default(opts);\n}\n(function (createHttpsProxyAgent) {\n createHttpsProxyAgent.HttpsProxyAgent = agent_1.default;\n createHttpsProxyAgent.prototype = agent_1.default.prototype;\n})(createHttpsProxyAgent || (createHttpsProxyAgent = {}));\nmodule.exports = createHttpsProxyAgent;\n//# sourceMappingURL=index.js.map","/*!\n localForage -- Offline Storage, Improved\n Version 1.9.0\n https://localforage.github.io/localForage\n (c) 2013-2017 Mozilla, Apache License 2.0\n*/\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.localforage = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw (f.code=\"MODULE_NOT_FOUND\", f)}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o element; its readystatechange event will be fired asynchronously once it is inserted\n // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\n var scriptEl = global.document.createElement('script');\n scriptEl.onreadystatechange = function () {\n nextTick();\n\n scriptEl.onreadystatechange = null;\n scriptEl.parentNode.removeChild(scriptEl);\n scriptEl = null;\n };\n global.document.documentElement.appendChild(scriptEl);\n };\n } else {\n scheduleDrain = function () {\n setTimeout(nextTick, 0);\n };\n }\n}\n\nvar draining;\nvar queue = [];\n//named nextTick for less confusing stack traces\nfunction nextTick() {\n draining = true;\n var i, oldQueue;\n var len = queue.length;\n while (len) {\n oldQueue = queue;\n queue = [];\n i = -1;\n while (++i < len) {\n oldQueue[i]();\n }\n len = queue.length;\n }\n draining = false;\n}\n\nmodule.exports = immediate;\nfunction immediate(task) {\n if (queue.push(task) === 1 && !draining) {\n scheduleDrain();\n }\n}\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}],2:[function(_dereq_,module,exports){\n'use strict';\nvar immediate = _dereq_(1);\n\n/* istanbul ignore next */\nfunction INTERNAL() {}\n\nvar handlers = {};\n\nvar REJECTED = ['REJECTED'];\nvar FULFILLED = ['FULFILLED'];\nvar PENDING = ['PENDING'];\n\nmodule.exports = Promise;\n\nfunction Promise(resolver) {\n if (typeof resolver !== 'function') {\n throw new TypeError('resolver must be a function');\n }\n this.state = PENDING;\n this.queue = [];\n this.outcome = void 0;\n if (resolver !== INTERNAL) {\n safelyResolveThenable(this, resolver);\n }\n}\n\nPromise.prototype[\"catch\"] = function (onRejected) {\n return this.then(null, onRejected);\n};\nPromise.prototype.then = function (onFulfilled, onRejected) {\n if (typeof onFulfilled !== 'function' && this.state === FULFILLED ||\n typeof onRejected !== 'function' && this.state === REJECTED) {\n return this;\n }\n var promise = new this.constructor(INTERNAL);\n if (this.state !== PENDING) {\n var resolver = this.state === FULFILLED ? onFulfilled : onRejected;\n unwrap(promise, resolver, this.outcome);\n } else {\n this.queue.push(new QueueItem(promise, onFulfilled, onRejected));\n }\n\n return promise;\n};\nfunction QueueItem(promise, onFulfilled, onRejected) {\n this.promise = promise;\n if (typeof onFulfilled === 'function') {\n this.onFulfilled = onFulfilled;\n this.callFulfilled = this.otherCallFulfilled;\n }\n if (typeof onRejected === 'function') {\n this.onRejected = onRejected;\n this.callRejected = this.otherCallRejected;\n }\n}\nQueueItem.prototype.callFulfilled = function (value) {\n handlers.resolve(this.promise, value);\n};\nQueueItem.prototype.otherCallFulfilled = function (value) {\n unwrap(this.promise, this.onFulfilled, value);\n};\nQueueItem.prototype.callRejected = function (value) {\n handlers.reject(this.promise, value);\n};\nQueueItem.prototype.otherCallRejected = function (value) {\n unwrap(this.promise, this.onRejected, value);\n};\n\nfunction unwrap(promise, func, value) {\n immediate(function () {\n var returnValue;\n try {\n returnValue = func(value);\n } catch (e) {\n return handlers.reject(promise, e);\n }\n if (returnValue === promise) {\n handlers.reject(promise, new TypeError('Cannot resolve promise with itself'));\n } else {\n handlers.resolve(promise, returnValue);\n }\n });\n}\n\nhandlers.resolve = function (self, value) {\n var result = tryCatch(getThen, value);\n if (result.status === 'error') {\n return handlers.reject(self, result.value);\n }\n var thenable = result.value;\n\n if (thenable) {\n safelyResolveThenable(self, thenable);\n } else {\n self.state = FULFILLED;\n self.outcome = value;\n var i = -1;\n var len = self.queue.length;\n while (++i < len) {\n self.queue[i].callFulfilled(value);\n }\n }\n return self;\n};\nhandlers.reject = function (self, error) {\n self.state = REJECTED;\n self.outcome = error;\n var i = -1;\n var len = self.queue.length;\n while (++i < len) {\n self.queue[i].callRejected(error);\n }\n return self;\n};\n\nfunction getThen(obj) {\n // Make sure we only access the accessor once as required by the spec\n var then = obj && obj.then;\n if (obj && (typeof obj === 'object' || typeof obj === 'function') && typeof then === 'function') {\n return function appyThen() {\n then.apply(obj, arguments);\n };\n }\n}\n\nfunction safelyResolveThenable(self, thenable) {\n // Either fulfill, reject or reject with error\n var called = false;\n function onError(value) {\n if (called) {\n return;\n }\n called = true;\n handlers.reject(self, value);\n }\n\n function onSuccess(value) {\n if (called) {\n return;\n }\n called = true;\n handlers.resolve(self, value);\n }\n\n function tryToUnwrap() {\n thenable(onSuccess, onError);\n }\n\n var result = tryCatch(tryToUnwrap);\n if (result.status === 'error') {\n onError(result.value);\n }\n}\n\nfunction tryCatch(func, value) {\n var out = {};\n try {\n out.value = func(value);\n out.status = 'success';\n } catch (e) {\n out.status = 'error';\n out.value = e;\n }\n return out;\n}\n\nPromise.resolve = resolve;\nfunction resolve(value) {\n if (value instanceof this) {\n return value;\n }\n return handlers.resolve(new this(INTERNAL), value);\n}\n\nPromise.reject = reject;\nfunction reject(reason) {\n var promise = new this(INTERNAL);\n return handlers.reject(promise, reason);\n}\n\nPromise.all = all;\nfunction all(iterable) {\n var self = this;\n if (Object.prototype.toString.call(iterable) !== '[object Array]') {\n return this.reject(new TypeError('must be an array'));\n }\n\n var len = iterable.length;\n var called = false;\n if (!len) {\n return this.resolve([]);\n }\n\n var values = new Array(len);\n var resolved = 0;\n var i = -1;\n var promise = new this(INTERNAL);\n\n while (++i < len) {\n allResolver(iterable[i], i);\n }\n return promise;\n function allResolver(value, i) {\n self.resolve(value).then(resolveFromAll, function (error) {\n if (!called) {\n called = true;\n handlers.reject(promise, error);\n }\n });\n function resolveFromAll(outValue) {\n values[i] = outValue;\n if (++resolved === len && !called) {\n called = true;\n handlers.resolve(promise, values);\n }\n }\n }\n}\n\nPromise.race = race;\nfunction race(iterable) {\n var self = this;\n if (Object.prototype.toString.call(iterable) !== '[object Array]') {\n return this.reject(new TypeError('must be an array'));\n }\n\n var len = iterable.length;\n var called = false;\n if (!len) {\n return this.resolve([]);\n }\n\n var i = -1;\n var promise = new this(INTERNAL);\n\n while (++i < len) {\n resolver(iterable[i]);\n }\n return promise;\n function resolver(value) {\n self.resolve(value).then(function (response) {\n if (!called) {\n called = true;\n handlers.resolve(promise, response);\n }\n }, function (error) {\n if (!called) {\n called = true;\n handlers.reject(promise, error);\n }\n });\n }\n}\n\n},{\"1\":1}],3:[function(_dereq_,module,exports){\n(function (global){\n'use strict';\nif (typeof global.Promise !== 'function') {\n global.Promise = _dereq_(2);\n}\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"2\":2}],4:[function(_dereq_,module,exports){\n'use strict';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction getIDB() {\n /* global indexedDB,webkitIndexedDB,mozIndexedDB,OIndexedDB,msIndexedDB */\n try {\n if (typeof indexedDB !== 'undefined') {\n return indexedDB;\n }\n if (typeof webkitIndexedDB !== 'undefined') {\n return webkitIndexedDB;\n }\n if (typeof mozIndexedDB !== 'undefined') {\n return mozIndexedDB;\n }\n if (typeof OIndexedDB !== 'undefined') {\n return OIndexedDB;\n }\n if (typeof msIndexedDB !== 'undefined') {\n return msIndexedDB;\n }\n } catch (e) {\n return;\n }\n}\n\nvar idb = getIDB();\n\nfunction isIndexedDBValid() {\n try {\n // Initialize IndexedDB; fall back to vendor-prefixed versions\n // if needed.\n if (!idb || !idb.open) {\n return false;\n }\n // We mimic PouchDB here;\n //\n // We test for openDatabase because IE Mobile identifies itself\n // as Safari. Oh the lulz...\n var isSafari = typeof openDatabase !== 'undefined' && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform);\n\n var hasFetch = typeof fetch === 'function' && fetch.toString().indexOf('[native code') !== -1;\n\n // Safari <10.1 does not meet our requirements for IDB support\n // (see: https://github.com/pouchdb/pouchdb/issues/5572).\n // Safari 10.1 shipped with fetch, we can use that to detect it.\n // Note: this creates issues with `window.fetch` polyfills and\n // overrides; see:\n // https://github.com/localForage/localForage/issues/856\n return (!isSafari || hasFetch) && typeof indexedDB !== 'undefined' &&\n // some outdated implementations of IDB that appear on Samsung\n // and HTC Android devices <4.4 are missing IDBKeyRange\n // See: https://github.com/mozilla/localForage/issues/128\n // See: https://github.com/mozilla/localForage/issues/272\n typeof IDBKeyRange !== 'undefined';\n } catch (e) {\n return false;\n }\n}\n\n// Abstracts constructing a Blob object, so it also works in older\n// browsers that don't support the native Blob constructor. (i.e.\n// old QtWebKit versions, at least).\n// Abstracts constructing a Blob object, so it also works in older\n// browsers that don't support the native Blob constructor. (i.e.\n// old QtWebKit versions, at least).\nfunction createBlob(parts, properties) {\n /* global BlobBuilder,MSBlobBuilder,MozBlobBuilder,WebKitBlobBuilder */\n parts = parts || [];\n properties = properties || {};\n try {\n return new Blob(parts, properties);\n } catch (e) {\n if (e.name !== 'TypeError') {\n throw e;\n }\n var Builder = typeof BlobBuilder !== 'undefined' ? BlobBuilder : typeof MSBlobBuilder !== 'undefined' ? MSBlobBuilder : typeof MozBlobBuilder !== 'undefined' ? MozBlobBuilder : WebKitBlobBuilder;\n var builder = new Builder();\n for (var i = 0; i < parts.length; i += 1) {\n builder.append(parts[i]);\n }\n return builder.getBlob(properties.type);\n }\n}\n\n// This is CommonJS because lie is an external dependency, so Rollup\n// can just ignore it.\nif (typeof Promise === 'undefined') {\n // In the \"nopromises\" build this will just throw if you don't have\n // a global promise object, but it would throw anyway later.\n _dereq_(3);\n}\nvar Promise$1 = Promise;\n\nfunction executeCallback(promise, callback) {\n if (callback) {\n promise.then(function (result) {\n callback(null, result);\n }, function (error) {\n callback(error);\n });\n }\n}\n\nfunction executeTwoCallbacks(promise, callback, errorCallback) {\n if (typeof callback === 'function') {\n promise.then(callback);\n }\n\n if (typeof errorCallback === 'function') {\n promise[\"catch\"](errorCallback);\n }\n}\n\nfunction normalizeKey(key) {\n // Cast the key to a string, as that's all we can set as a key.\n if (typeof key !== 'string') {\n console.warn(key + ' used as a key, but it is not a string.');\n key = String(key);\n }\n\n return key;\n}\n\nfunction getCallback() {\n if (arguments.length && typeof arguments[arguments.length - 1] === 'function') {\n return arguments[arguments.length - 1];\n }\n}\n\n// Some code originally from async_storage.js in\n// [Gaia](https://github.com/mozilla-b2g/gaia).\n\nvar DETECT_BLOB_SUPPORT_STORE = 'local-forage-detect-blob-support';\nvar supportsBlobs = void 0;\nvar dbContexts = {};\nvar toString = Object.prototype.toString;\n\n// Transaction Modes\nvar READ_ONLY = 'readonly';\nvar READ_WRITE = 'readwrite';\n\n// Transform a binary string to an array buffer, because otherwise\n// weird stuff happens when you try to work with the binary string directly.\n// It is known.\n// From http://stackoverflow.com/questions/14967647/ (continues on next line)\n// encode-decode-image-with-base64-breaks-image (2013-04-21)\nfunction _binStringToArrayBuffer(bin) {\n var length = bin.length;\n var buf = new ArrayBuffer(length);\n var arr = new Uint8Array(buf);\n for (var i = 0; i < length; i++) {\n arr[i] = bin.charCodeAt(i);\n }\n return buf;\n}\n\n//\n// Blobs are not supported in all versions of IndexedDB, notably\n// Chrome <37 and Android <5. In those versions, storing a blob will throw.\n//\n// Various other blob bugs exist in Chrome v37-42 (inclusive).\n// Detecting them is expensive and confusing to users, and Chrome 37-42\n// is at very low usage worldwide, so we do a hacky userAgent check instead.\n//\n// content-type bug: https://code.google.com/p/chromium/issues/detail?id=408120\n// 404 bug: https://code.google.com/p/chromium/issues/detail?id=447916\n// FileReader bug: https://code.google.com/p/chromium/issues/detail?id=447836\n//\n// Code borrowed from PouchDB. See:\n// https://github.com/pouchdb/pouchdb/blob/master/packages/node_modules/pouchdb-adapter-idb/src/blobSupport.js\n//\nfunction _checkBlobSupportWithoutCaching(idb) {\n return new Promise$1(function (resolve) {\n var txn = idb.transaction(DETECT_BLOB_SUPPORT_STORE, READ_WRITE);\n var blob = createBlob(['']);\n txn.objectStore(DETECT_BLOB_SUPPORT_STORE).put(blob, 'key');\n\n txn.onabort = function (e) {\n // If the transaction aborts now its due to not being able to\n // write to the database, likely due to the disk being full\n e.preventDefault();\n e.stopPropagation();\n resolve(false);\n };\n\n txn.oncomplete = function () {\n var matchedChrome = navigator.userAgent.match(/Chrome\\/(\\d+)/);\n var matchedEdge = navigator.userAgent.match(/Edge\\//);\n // MS Edge pretends to be Chrome 42:\n // https://msdn.microsoft.com/en-us/library/hh869301%28v=vs.85%29.aspx\n resolve(matchedEdge || !matchedChrome || parseInt(matchedChrome[1], 10) >= 43);\n };\n })[\"catch\"](function () {\n return false; // error, so assume unsupported\n });\n}\n\nfunction _checkBlobSupport(idb) {\n if (typeof supportsBlobs === 'boolean') {\n return Promise$1.resolve(supportsBlobs);\n }\n return _checkBlobSupportWithoutCaching(idb).then(function (value) {\n supportsBlobs = value;\n return supportsBlobs;\n });\n}\n\nfunction _deferReadiness(dbInfo) {\n var dbContext = dbContexts[dbInfo.name];\n\n // Create a deferred object representing the current database operation.\n var deferredOperation = {};\n\n deferredOperation.promise = new Promise$1(function (resolve, reject) {\n deferredOperation.resolve = resolve;\n deferredOperation.reject = reject;\n });\n\n // Enqueue the deferred operation.\n dbContext.deferredOperations.push(deferredOperation);\n\n // Chain its promise to the database readiness.\n if (!dbContext.dbReady) {\n dbContext.dbReady = deferredOperation.promise;\n } else {\n dbContext.dbReady = dbContext.dbReady.then(function () {\n return deferredOperation.promise;\n });\n }\n}\n\nfunction _advanceReadiness(dbInfo) {\n var dbContext = dbContexts[dbInfo.name];\n\n // Dequeue a deferred operation.\n var deferredOperation = dbContext.deferredOperations.pop();\n\n // Resolve its promise (which is part of the database readiness\n // chain of promises).\n if (deferredOperation) {\n deferredOperation.resolve();\n return deferredOperation.promise;\n }\n}\n\nfunction _rejectReadiness(dbInfo, err) {\n var dbContext = dbContexts[dbInfo.name];\n\n // Dequeue a deferred operation.\n var deferredOperation = dbContext.deferredOperations.pop();\n\n // Reject its promise (which is part of the database readiness\n // chain of promises).\n if (deferredOperation) {\n deferredOperation.reject(err);\n return deferredOperation.promise;\n }\n}\n\nfunction _getConnection(dbInfo, upgradeNeeded) {\n return new Promise$1(function (resolve, reject) {\n dbContexts[dbInfo.name] = dbContexts[dbInfo.name] || createDbContext();\n\n if (dbInfo.db) {\n if (upgradeNeeded) {\n _deferReadiness(dbInfo);\n dbInfo.db.close();\n } else {\n return resolve(dbInfo.db);\n }\n }\n\n var dbArgs = [dbInfo.name];\n\n if (upgradeNeeded) {\n dbArgs.push(dbInfo.version);\n }\n\n var openreq = idb.open.apply(idb, dbArgs);\n\n if (upgradeNeeded) {\n openreq.onupgradeneeded = function (e) {\n var db = openreq.result;\n try {\n db.createObjectStore(dbInfo.storeName);\n if (e.oldVersion <= 1) {\n // Added when support for blob shims was added\n db.createObjectStore(DETECT_BLOB_SUPPORT_STORE);\n }\n } catch (ex) {\n if (ex.name === 'ConstraintError') {\n console.warn('The database \"' + dbInfo.name + '\"' + ' has been upgraded from version ' + e.oldVersion + ' to version ' + e.newVersion + ', but the storage \"' + dbInfo.storeName + '\" already exists.');\n } else {\n throw ex;\n }\n }\n };\n }\n\n openreq.onerror = function (e) {\n e.preventDefault();\n reject(openreq.error);\n };\n\n openreq.onsuccess = function () {\n resolve(openreq.result);\n _advanceReadiness(dbInfo);\n };\n });\n}\n\nfunction _getOriginalConnection(dbInfo) {\n return _getConnection(dbInfo, false);\n}\n\nfunction _getUpgradedConnection(dbInfo) {\n return _getConnection(dbInfo, true);\n}\n\nfunction _isUpgradeNeeded(dbInfo, defaultVersion) {\n if (!dbInfo.db) {\n return true;\n }\n\n var isNewStore = !dbInfo.db.objectStoreNames.contains(dbInfo.storeName);\n var isDowngrade = dbInfo.version < dbInfo.db.version;\n var isUpgrade = dbInfo.version > dbInfo.db.version;\n\n if (isDowngrade) {\n // If the version is not the default one\n // then warn for impossible downgrade.\n if (dbInfo.version !== defaultVersion) {\n console.warn('The database \"' + dbInfo.name + '\"' + \" can't be downgraded from version \" + dbInfo.db.version + ' to version ' + dbInfo.version + '.');\n }\n // Align the versions to prevent errors.\n dbInfo.version = dbInfo.db.version;\n }\n\n if (isUpgrade || isNewStore) {\n // If the store is new then increment the version (if needed).\n // This will trigger an \"upgradeneeded\" event which is required\n // for creating a store.\n if (isNewStore) {\n var incVersion = dbInfo.db.version + 1;\n if (incVersion > dbInfo.version) {\n dbInfo.version = incVersion;\n }\n }\n\n return true;\n }\n\n return false;\n}\n\n// encode a blob for indexeddb engines that don't support blobs\nfunction _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}\n\n// decode an encoded blob\nfunction _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}\n\n// is this one of our fancy encoded blobs?\nfunction _isEncodedBlob(value) {\n return value && value.__local_forage_encoded_blob;\n}\n\n// Specialize the default `ready()` function by making it dependent\n// on the current database operations. Thus, the driver will be actually\n// ready when it's been initialized (default) *and* there are no pending\n// operations on the database (initiated by some other instances).\nfunction _fullyReady(callback) {\n var self = this;\n\n var promise = self._initReady().then(function () {\n var dbContext = dbContexts[self._dbInfo.name];\n\n if (dbContext && dbContext.dbReady) {\n return dbContext.dbReady;\n }\n });\n\n executeTwoCallbacks(promise, callback, callback);\n return promise;\n}\n\n// Try to establish a new db connection to replace the\n// current one which is broken (i.e. experiencing\n// InvalidStateError while creating a transaction).\nfunction _tryReconnect(dbInfo) {\n _deferReadiness(dbInfo);\n\n var dbContext = dbContexts[dbInfo.name];\n var forages = dbContext.forages;\n\n for (var i = 0; i < forages.length; i++) {\n var forage = forages[i];\n if (forage._dbInfo.db) {\n forage._dbInfo.db.close();\n forage._dbInfo.db = null;\n }\n }\n dbInfo.db = null;\n\n return _getOriginalConnection(dbInfo).then(function (db) {\n dbInfo.db = db;\n if (_isUpgradeNeeded(dbInfo)) {\n // Reopen the database for upgrading.\n return _getUpgradedConnection(dbInfo);\n }\n return db;\n }).then(function (db) {\n // store the latest db reference\n // in case the db was upgraded\n dbInfo.db = dbContext.db = db;\n for (var i = 0; i < forages.length; i++) {\n forages[i]._dbInfo.db = db;\n }\n })[\"catch\"](function (err) {\n _rejectReadiness(dbInfo, err);\n throw err;\n });\n}\n\n// FF doesn't like Promises (micro-tasks) and IDDB store operations,\n// so we have to do it with callbacks\nfunction createTransaction(dbInfo, mode, callback, retries) {\n if (retries === undefined) {\n retries = 1;\n }\n\n try {\n var tx = dbInfo.db.transaction(dbInfo.storeName, mode);\n callback(null, tx);\n } catch (err) {\n if (retries > 0 && (!dbInfo.db || err.name === 'InvalidStateError' || err.name === 'NotFoundError')) {\n return Promise$1.resolve().then(function () {\n if (!dbInfo.db || err.name === 'NotFoundError' && !dbInfo.db.objectStoreNames.contains(dbInfo.storeName) && dbInfo.version <= dbInfo.db.version) {\n // increase the db version, to create the new ObjectStore\n if (dbInfo.db) {\n dbInfo.version = dbInfo.db.version + 1;\n }\n // Reopen the database for upgrading.\n return _getUpgradedConnection(dbInfo);\n }\n }).then(function () {\n return _tryReconnect(dbInfo).then(function () {\n createTransaction(dbInfo, mode, callback, retries - 1);\n });\n })[\"catch\"](callback);\n }\n\n callback(err);\n }\n}\n\nfunction createDbContext() {\n return {\n // Running localForages sharing a database.\n forages: [],\n // Shared database.\n db: null,\n // Database readiness (promise).\n dbReady: null,\n // Deferred operations on the database.\n deferredOperations: []\n };\n}\n\n// Open the IndexedDB database (automatically creates one if one didn't\n// previously exist), using any options set in the config.\nfunction _initStorage(options) {\n var self = this;\n var dbInfo = {\n db: null\n };\n\n if (options) {\n for (var i in options) {\n dbInfo[i] = options[i];\n }\n }\n\n // Get the current context of the database;\n var dbContext = dbContexts[dbInfo.name];\n\n // ...or create a new context.\n if (!dbContext) {\n dbContext = createDbContext();\n // Register the new context in the global container.\n dbContexts[dbInfo.name] = dbContext;\n }\n\n // Register itself as a running localForage in the current context.\n dbContext.forages.push(self);\n\n // Replace the default `ready()` function with the specialized one.\n if (!self._initReady) {\n self._initReady = self.ready;\n self.ready = _fullyReady;\n }\n\n // Create an array of initialization states of the related localForages.\n var initPromises = [];\n\n function ignoreErrors() {\n // Don't handle errors here,\n // just makes sure related localForages aren't pending.\n return Promise$1.resolve();\n }\n\n for (var j = 0; j < dbContext.forages.length; j++) {\n var forage = dbContext.forages[j];\n if (forage !== self) {\n // Don't wait for itself...\n initPromises.push(forage._initReady()[\"catch\"](ignoreErrors));\n }\n }\n\n // Take a snapshot of the related localForages.\n var forages = dbContext.forages.slice(0);\n\n // Initialize the connection process only when\n // all the related localForages aren't pending.\n return Promise$1.all(initPromises).then(function () {\n dbInfo.db = dbContext.db;\n // Get the connection or open a new one without upgrade.\n return _getOriginalConnection(dbInfo);\n }).then(function (db) {\n dbInfo.db = db;\n if (_isUpgradeNeeded(dbInfo, self._defaultConfig.version)) {\n // Reopen the database for upgrading.\n return _getUpgradedConnection(dbInfo);\n }\n return db;\n }).then(function (db) {\n dbInfo.db = dbContext.db = db;\n self._dbInfo = dbInfo;\n // Share the final connection amongst related localForages.\n for (var k = 0; k < forages.length; k++) {\n var forage = forages[k];\n if (forage !== self) {\n // Self is already up-to-date.\n forage._dbInfo.db = dbInfo.db;\n forage._dbInfo.version = dbInfo.version;\n }\n }\n });\n}\n\nfunction getItem(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.get(key);\n\n req.onsuccess = function () {\n var value = req.result;\n if (value === undefined) {\n value = null;\n }\n if (_isEncodedBlob(value)) {\n value = _decodeBlob(value);\n }\n resolve(value);\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Iterate over all items stored in database.\nfunction iterate(iterator, callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.openCursor();\n var iterationNumber = 1;\n\n req.onsuccess = function () {\n var cursor = req.result;\n\n if (cursor) {\n var value = cursor.value;\n if (_isEncodedBlob(value)) {\n value = _decodeBlob(value);\n }\n var result = iterator(value, cursor.key, iterationNumber++);\n\n // when the iterator callback returns any\n // (non-`undefined`) value, then we stop\n // the iteration immediately\n if (result !== void 0) {\n resolve(result);\n } else {\n cursor[\"continue\"]();\n }\n } else {\n resolve();\n }\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n\n return promise;\n}\n\nfunction setItem(key, value, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n var dbInfo;\n self.ready().then(function () {\n dbInfo = self._dbInfo;\n if (toString.call(value) === '[object Blob]') {\n return _checkBlobSupport(dbInfo.db).then(function (blobSupport) {\n if (blobSupport) {\n return value;\n }\n return _encodeBlob(value);\n });\n }\n return value;\n }).then(function (value) {\n createTransaction(self._dbInfo, READ_WRITE, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n\n // The reason we don't _save_ null is because IE 10 does\n // not support saving the `null` type in IndexedDB. How\n // ironic, given the bug below!\n // See: https://github.com/mozilla/localForage/issues/161\n if (value === null) {\n value = undefined;\n }\n\n var req = store.put(value, key);\n\n transaction.oncomplete = function () {\n // Cast to undefined so the value passed to\n // callback/promise is the same as what one would get out\n // of `getItem()` later. This leads to some weirdness\n // (setItem('foo', undefined) will return `null`), but\n // it's not my fault localStorage is our baseline and that\n // it's weird.\n if (value === undefined) {\n value = null;\n }\n\n resolve(value);\n };\n transaction.onabort = transaction.onerror = function () {\n var err = req.error ? req.error : req.transaction.error;\n reject(err);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction removeItem(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_WRITE, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n // We use a Grunt task to make this safe for IE and some\n // versions of Android (including those used by Cordova).\n // Normally IE won't like `.delete()` and will insist on\n // using `['delete']()`, but we have a build step that\n // fixes this for us now.\n var req = store[\"delete\"](key);\n transaction.oncomplete = function () {\n resolve();\n };\n\n transaction.onerror = function () {\n reject(req.error);\n };\n\n // The request will be also be aborted if we've exceeded our storage\n // space.\n transaction.onabort = function () {\n var err = req.error ? req.error : req.transaction.error;\n reject(err);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction clear(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_WRITE, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.clear();\n\n transaction.oncomplete = function () {\n resolve();\n };\n\n transaction.onabort = transaction.onerror = function () {\n var err = req.error ? req.error : req.transaction.error;\n reject(err);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction length(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.count();\n\n req.onsuccess = function () {\n resolve(req.result);\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction key(n, callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n if (n < 0) {\n resolve(null);\n\n return;\n }\n\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var advanced = false;\n var req = store.openKeyCursor();\n\n req.onsuccess = function () {\n var cursor = req.result;\n if (!cursor) {\n // this means there weren't enough keys\n resolve(null);\n\n return;\n }\n\n if (n === 0) {\n // We have the first key, return it if that's what they\n // wanted.\n resolve(cursor.key);\n } else {\n if (!advanced) {\n // Otherwise, ask the cursor to skip ahead n\n // records.\n advanced = true;\n cursor.advance(n);\n } else {\n // When we get here, we've got the nth key.\n resolve(cursor.key);\n }\n }\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction keys(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.openKeyCursor();\n var keys = [];\n\n req.onsuccess = function () {\n var cursor = req.result;\n\n if (!cursor) {\n resolve(keys);\n return;\n }\n\n keys.push(cursor.key);\n cursor[\"continue\"]();\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction dropInstance(options, callback) {\n callback = getCallback.apply(this, arguments);\n\n var currentConfig = this.config();\n options = typeof options !== 'function' && options || {};\n if (!options.name) {\n options.name = options.name || currentConfig.name;\n options.storeName = options.storeName || currentConfig.storeName;\n }\n\n var self = this;\n var promise;\n if (!options.name) {\n promise = Promise$1.reject('Invalid arguments');\n } else {\n var isCurrentDb = options.name === currentConfig.name && self._dbInfo.db;\n\n var dbPromise = isCurrentDb ? Promise$1.resolve(self._dbInfo.db) : _getOriginalConnection(options).then(function (db) {\n var dbContext = dbContexts[options.name];\n var forages = dbContext.forages;\n dbContext.db = db;\n for (var i = 0; i < forages.length; i++) {\n forages[i]._dbInfo.db = db;\n }\n return db;\n });\n\n if (!options.storeName) {\n promise = dbPromise.then(function (db) {\n _deferReadiness(options);\n\n var dbContext = dbContexts[options.name];\n var forages = dbContext.forages;\n\n db.close();\n for (var i = 0; i < forages.length; i++) {\n var forage = forages[i];\n forage._dbInfo.db = null;\n }\n\n var dropDBPromise = new Promise$1(function (resolve, reject) {\n var req = idb.deleteDatabase(options.name);\n\n req.onerror = req.onblocked = function (err) {\n var db = req.result;\n if (db) {\n db.close();\n }\n reject(err);\n };\n\n req.onsuccess = function () {\n var db = req.result;\n if (db) {\n db.close();\n }\n resolve(db);\n };\n });\n\n return dropDBPromise.then(function (db) {\n dbContext.db = db;\n for (var i = 0; i < forages.length; i++) {\n var _forage = forages[i];\n _advanceReadiness(_forage._dbInfo);\n }\n })[\"catch\"](function (err) {\n (_rejectReadiness(options, err) || Promise$1.resolve())[\"catch\"](function () {});\n throw err;\n });\n });\n } else {\n promise = dbPromise.then(function (db) {\n if (!db.objectStoreNames.contains(options.storeName)) {\n return;\n }\n\n var newVersion = db.version + 1;\n\n _deferReadiness(options);\n\n var dbContext = dbContexts[options.name];\n var forages = dbContext.forages;\n\n db.close();\n for (var i = 0; i < forages.length; i++) {\n var forage = forages[i];\n forage._dbInfo.db = null;\n forage._dbInfo.version = newVersion;\n }\n\n var dropObjectPromise = new Promise$1(function (resolve, reject) {\n var req = idb.open(options.name, newVersion);\n\n req.onerror = function (err) {\n var db = req.result;\n db.close();\n reject(err);\n };\n\n req.onupgradeneeded = function () {\n var db = req.result;\n db.deleteObjectStore(options.storeName);\n };\n\n req.onsuccess = function () {\n var db = req.result;\n db.close();\n resolve(db);\n };\n });\n\n return dropObjectPromise.then(function (db) {\n dbContext.db = db;\n for (var j = 0; j < forages.length; j++) {\n var _forage2 = forages[j];\n _forage2._dbInfo.db = db;\n _advanceReadiness(_forage2._dbInfo);\n }\n })[\"catch\"](function (err) {\n (_rejectReadiness(options, err) || Promise$1.resolve())[\"catch\"](function () {});\n throw err;\n });\n });\n }\n }\n\n executeCallback(promise, callback);\n return promise;\n}\n\nvar asyncStorage = {\n _driver: 'asyncStorage',\n _initStorage: _initStorage,\n _support: isIndexedDBValid(),\n iterate: iterate,\n getItem: getItem,\n setItem: setItem,\n removeItem: removeItem,\n clear: clear,\n length: length,\n key: key,\n keys: keys,\n dropInstance: dropInstance\n};\n\nfunction isWebSQLValid() {\n return typeof openDatabase === 'function';\n}\n\n// Sadly, the best way to save binary data in WebSQL/localStorage is serializing\n// it to Base64, so this is how we store it to prevent very strange errors with less\n// verbose ways of binary <-> string data storage.\nvar BASE_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\nvar BLOB_TYPE_PREFIX = '~~local_forage_type~';\nvar BLOB_TYPE_PREFIX_REGEX = /^~~local_forage_type~([^~]+)~/;\n\nvar SERIALIZED_MARKER = '__lfsc__:';\nvar SERIALIZED_MARKER_LENGTH = SERIALIZED_MARKER.length;\n\n// OMG the serializations!\nvar TYPE_ARRAYBUFFER = 'arbf';\nvar TYPE_BLOB = 'blob';\nvar TYPE_INT8ARRAY = 'si08';\nvar TYPE_UINT8ARRAY = 'ui08';\nvar TYPE_UINT8CLAMPEDARRAY = 'uic8';\nvar TYPE_INT16ARRAY = 'si16';\nvar TYPE_INT32ARRAY = 'si32';\nvar TYPE_UINT16ARRAY = 'ur16';\nvar TYPE_UINT32ARRAY = 'ui32';\nvar TYPE_FLOAT32ARRAY = 'fl32';\nvar TYPE_FLOAT64ARRAY = 'fl64';\nvar TYPE_SERIALIZED_MARKER_LENGTH = SERIALIZED_MARKER_LENGTH + TYPE_ARRAYBUFFER.length;\n\nvar toString$1 = Object.prototype.toString;\n\nfunction stringToBuffer(serializedString) {\n // Fill the string into a ArrayBuffer.\n var bufferLength = serializedString.length * 0.75;\n var len = serializedString.length;\n var i;\n var p = 0;\n var encoded1, encoded2, encoded3, encoded4;\n\n if (serializedString[serializedString.length - 1] === '=') {\n bufferLength--;\n if (serializedString[serializedString.length - 2] === '=') {\n bufferLength--;\n }\n }\n\n var buffer = new ArrayBuffer(bufferLength);\n var bytes = new Uint8Array(buffer);\n\n for (i = 0; i < len; i += 4) {\n encoded1 = BASE_CHARS.indexOf(serializedString[i]);\n encoded2 = BASE_CHARS.indexOf(serializedString[i + 1]);\n encoded3 = BASE_CHARS.indexOf(serializedString[i + 2]);\n encoded4 = BASE_CHARS.indexOf(serializedString[i + 3]);\n\n /*jslint bitwise: true */\n bytes[p++] = encoded1 << 2 | encoded2 >> 4;\n bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2;\n bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63;\n }\n return buffer;\n}\n\n// Converts a buffer to a string to store, serialized, in the backend\n// storage library.\nfunction bufferToString(buffer) {\n // base64-arraybuffer\n var bytes = new Uint8Array(buffer);\n var base64String = '';\n var i;\n\n for (i = 0; i < bytes.length; i += 3) {\n /*jslint bitwise: true */\n base64String += BASE_CHARS[bytes[i] >> 2];\n base64String += BASE_CHARS[(bytes[i] & 3) << 4 | bytes[i + 1] >> 4];\n base64String += BASE_CHARS[(bytes[i + 1] & 15) << 2 | bytes[i + 2] >> 6];\n base64String += BASE_CHARS[bytes[i + 2] & 63];\n }\n\n if (bytes.length % 3 === 2) {\n base64String = base64String.substring(0, base64String.length - 1) + '=';\n } else if (bytes.length % 3 === 1) {\n base64String = base64String.substring(0, base64String.length - 2) + '==';\n }\n\n return base64String;\n}\n\n// Serialize a value, afterwards executing a callback (which usually\n// instructs the `setItem()` callback/promise to be executed). This is how\n// we store binary data with localStorage.\nfunction serialize(value, callback) {\n var valueType = '';\n if (value) {\n valueType = toString$1.call(value);\n }\n\n // Cannot use `value instanceof ArrayBuffer` or such here, as these\n // checks fail when running the tests using casper.js...\n //\n // TODO: See why those tests fail and use a better solution.\n if (value && (valueType === '[object ArrayBuffer]' || value.buffer && toString$1.call(value.buffer) === '[object ArrayBuffer]')) {\n // Convert binary arrays to a string and prefix the string with\n // a special marker.\n var buffer;\n var marker = SERIALIZED_MARKER;\n\n if (value instanceof ArrayBuffer) {\n buffer = value;\n marker += TYPE_ARRAYBUFFER;\n } else {\n buffer = value.buffer;\n\n if (valueType === '[object Int8Array]') {\n marker += TYPE_INT8ARRAY;\n } else if (valueType === '[object Uint8Array]') {\n marker += TYPE_UINT8ARRAY;\n } else if (valueType === '[object Uint8ClampedArray]') {\n marker += TYPE_UINT8CLAMPEDARRAY;\n } else if (valueType === '[object Int16Array]') {\n marker += TYPE_INT16ARRAY;\n } else if (valueType === '[object Uint16Array]') {\n marker += TYPE_UINT16ARRAY;\n } else if (valueType === '[object Int32Array]') {\n marker += TYPE_INT32ARRAY;\n } else if (valueType === '[object Uint32Array]') {\n marker += TYPE_UINT32ARRAY;\n } else if (valueType === '[object Float32Array]') {\n marker += TYPE_FLOAT32ARRAY;\n } else if (valueType === '[object Float64Array]') {\n marker += TYPE_FLOAT64ARRAY;\n } else {\n callback(new Error('Failed to get type for BinaryArray'));\n }\n }\n\n callback(marker + bufferToString(buffer));\n } else if (valueType === '[object Blob]') {\n // Conver the blob to a binaryArray and then to a string.\n var fileReader = new FileReader();\n\n fileReader.onload = function () {\n // Backwards-compatible prefix for the blob type.\n var str = BLOB_TYPE_PREFIX + value.type + '~' + bufferToString(this.result);\n\n callback(SERIALIZED_MARKER + TYPE_BLOB + str);\n };\n\n fileReader.readAsArrayBuffer(value);\n } else {\n try {\n callback(JSON.stringify(value));\n } catch (e) {\n console.error(\"Couldn't convert value into a JSON string: \", value);\n\n callback(null, e);\n }\n }\n}\n\n// Deserialize data we've inserted into a value column/field. We place\n// special markers into our strings to mark them as encoded; this isn't\n// as nice as a meta field, but it's the only sane thing we can do whilst\n// keeping localStorage support intact.\n//\n// Oftentimes this will just deserialize JSON content, but if we have a\n// special marker (SERIALIZED_MARKER, defined above), we will extract\n// some kind of arraybuffer/binary data/typed array out of the string.\nfunction deserialize(value) {\n // If we haven't marked this string as being specially serialized (i.e.\n // something other than serialized JSON), we can just return it and be\n // done with it.\n if (value.substring(0, SERIALIZED_MARKER_LENGTH) !== SERIALIZED_MARKER) {\n return JSON.parse(value);\n }\n\n // The following code deals with deserializing some kind of Blob or\n // TypedArray. First we separate out the type of data we're dealing\n // with from the data itself.\n var serializedString = value.substring(TYPE_SERIALIZED_MARKER_LENGTH);\n var type = value.substring(SERIALIZED_MARKER_LENGTH, TYPE_SERIALIZED_MARKER_LENGTH);\n\n var blobType;\n // Backwards-compatible blob type serialization strategy.\n // DBs created with older versions of localForage will simply not have the blob type.\n if (type === TYPE_BLOB && BLOB_TYPE_PREFIX_REGEX.test(serializedString)) {\n var matcher = serializedString.match(BLOB_TYPE_PREFIX_REGEX);\n blobType = matcher[1];\n serializedString = serializedString.substring(matcher[0].length);\n }\n var buffer = stringToBuffer(serializedString);\n\n // Return the right type based on the code/type set during\n // serialization.\n switch (type) {\n case TYPE_ARRAYBUFFER:\n return buffer;\n case TYPE_BLOB:\n return createBlob([buffer], { type: blobType });\n case TYPE_INT8ARRAY:\n return new Int8Array(buffer);\n case TYPE_UINT8ARRAY:\n return new Uint8Array(buffer);\n case TYPE_UINT8CLAMPEDARRAY:\n return new Uint8ClampedArray(buffer);\n case TYPE_INT16ARRAY:\n return new Int16Array(buffer);\n case TYPE_UINT16ARRAY:\n return new Uint16Array(buffer);\n case TYPE_INT32ARRAY:\n return new Int32Array(buffer);\n case TYPE_UINT32ARRAY:\n return new Uint32Array(buffer);\n case TYPE_FLOAT32ARRAY:\n return new Float32Array(buffer);\n case TYPE_FLOAT64ARRAY:\n return new Float64Array(buffer);\n default:\n throw new Error('Unkown type: ' + type);\n }\n}\n\nvar localforageSerializer = {\n serialize: serialize,\n deserialize: deserialize,\n stringToBuffer: stringToBuffer,\n bufferToString: bufferToString\n};\n\n/*\n * Includes code from:\n *\n * base64-arraybuffer\n * https://github.com/niklasvh/base64-arraybuffer\n *\n * Copyright (c) 2012 Niklas von Hertzen\n * Licensed under the MIT license.\n */\n\nfunction createDbTable(t, dbInfo, callback, errorCallback) {\n t.executeSql('CREATE TABLE IF NOT EXISTS ' + dbInfo.storeName + ' ' + '(id INTEGER PRIMARY KEY, key unique, value)', [], callback, errorCallback);\n}\n\n// Open the WebSQL database (automatically creates one if one didn't\n// previously exist), using any options set in the config.\nfunction _initStorage$1(options) {\n var self = this;\n var dbInfo = {\n db: null\n };\n\n if (options) {\n for (var i in options) {\n dbInfo[i] = typeof options[i] !== 'string' ? options[i].toString() : options[i];\n }\n }\n\n var dbInfoPromise = new Promise$1(function (resolve, reject) {\n // Open the database; the openDatabase API will automatically\n // create it for us if it doesn't exist.\n try {\n dbInfo.db = openDatabase(dbInfo.name, String(dbInfo.version), dbInfo.description, dbInfo.size);\n } catch (e) {\n return reject(e);\n }\n\n // Create our key/value table if it doesn't exist.\n dbInfo.db.transaction(function (t) {\n createDbTable(t, dbInfo, function () {\n self._dbInfo = dbInfo;\n resolve();\n }, function (t, error) {\n reject(error);\n });\n }, reject);\n });\n\n dbInfo.serializer = localforageSerializer;\n return dbInfoPromise;\n}\n\nfunction tryExecuteSql(t, dbInfo, sqlStatement, args, callback, errorCallback) {\n t.executeSql(sqlStatement, args, callback, function (t, error) {\n if (error.code === error.SYNTAX_ERR) {\n t.executeSql('SELECT name FROM sqlite_master ' + \"WHERE type='table' AND name = ?\", [dbInfo.storeName], function (t, results) {\n if (!results.rows.length) {\n // if the table is missing (was deleted)\n // re-create it table and retry\n createDbTable(t, dbInfo, function () {\n t.executeSql(sqlStatement, args, callback, errorCallback);\n }, errorCallback);\n } else {\n errorCallback(t, error);\n }\n }, errorCallback);\n } else {\n errorCallback(t, error);\n }\n }, errorCallback);\n}\n\nfunction getItem$1(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'SELECT * FROM ' + dbInfo.storeName + ' WHERE key = ? LIMIT 1', [key], function (t, results) {\n var result = results.rows.length ? results.rows.item(0).value : null;\n\n // Check to see if this is serialized content we need to\n // unpack.\n if (result) {\n result = dbInfo.serializer.deserialize(result);\n }\n\n resolve(result);\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction iterate$1(iterator, callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'SELECT * FROM ' + dbInfo.storeName, [], function (t, results) {\n var rows = results.rows;\n var length = rows.length;\n\n for (var i = 0; i < length; i++) {\n var item = rows.item(i);\n var result = item.value;\n\n // Check to see if this is serialized content\n // we need to unpack.\n if (result) {\n result = dbInfo.serializer.deserialize(result);\n }\n\n result = iterator(result, item.key, i + 1);\n\n // void(0) prevents problems with redefinition\n // of `undefined`.\n if (result !== void 0) {\n resolve(result);\n return;\n }\n }\n\n resolve();\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction _setItem(key, value, callback, retriesLeft) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n // The localStorage API doesn't return undefined values in an\n // \"expected\" way, so undefined is always cast to null in all\n // drivers. See: https://github.com/mozilla/localForage/pull/42\n if (value === undefined) {\n value = null;\n }\n\n // Save the original value to pass to the callback.\n var originalValue = value;\n\n var dbInfo = self._dbInfo;\n dbInfo.serializer.serialize(value, function (value, error) {\n if (error) {\n reject(error);\n } else {\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'INSERT OR REPLACE INTO ' + dbInfo.storeName + ' ' + '(key, value) VALUES (?, ?)', [key, value], function () {\n resolve(originalValue);\n }, function (t, error) {\n reject(error);\n });\n }, function (sqlError) {\n // The transaction failed; check\n // to see if it's a quota error.\n if (sqlError.code === sqlError.QUOTA_ERR) {\n // We reject the callback outright for now, but\n // it's worth trying to re-run the transaction.\n // Even if the user accepts the prompt to use\n // more storage on Safari, this error will\n // be called.\n //\n // Try to re-run the transaction.\n if (retriesLeft > 0) {\n resolve(_setItem.apply(self, [key, originalValue, callback, retriesLeft - 1]));\n return;\n }\n reject(sqlError);\n }\n });\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction setItem$1(key, value, callback) {\n return _setItem.apply(this, [key, value, callback, 1]);\n}\n\nfunction removeItem$1(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'DELETE FROM ' + dbInfo.storeName + ' WHERE key = ?', [key], function () {\n resolve();\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Deletes every item in the table.\n// TODO: Find out if this resets the AUTO_INCREMENT number.\nfunction clear$1(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'DELETE FROM ' + dbInfo.storeName, [], function () {\n resolve();\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Does a simple `COUNT(key)` to get the number of items stored in\n// localForage.\nfunction length$1(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n // Ahhh, SQL makes this one soooooo easy.\n tryExecuteSql(t, dbInfo, 'SELECT COUNT(key) as c FROM ' + dbInfo.storeName, [], function (t, results) {\n var result = results.rows.item(0).c;\n resolve(result);\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Return the key located at key index X; essentially gets the key from a\n// `WHERE id = ?`. This is the most efficient way I can think to implement\n// this rarely-used (in my experience) part of the API, but it can seem\n// inconsistent, because we do `INSERT OR REPLACE INTO` on `setItem()`, so\n// the ID of each key will change every time it's updated. Perhaps a stored\n// procedure for the `setItem()` SQL would solve this problem?\n// TODO: Don't change ID on `setItem()`.\nfunction key$1(n, callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'SELECT key FROM ' + dbInfo.storeName + ' WHERE id = ? LIMIT 1', [n + 1], function (t, results) {\n var result = results.rows.length ? results.rows.item(0).key : null;\n resolve(result);\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction keys$1(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'SELECT key FROM ' + dbInfo.storeName, [], function (t, results) {\n var keys = [];\n\n for (var i = 0; i < results.rows.length; i++) {\n keys.push(results.rows.item(i).key);\n }\n\n resolve(keys);\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// https://www.w3.org/TR/webdatabase/#databases\n// > There is no way to enumerate or delete the databases available for an origin from this API.\nfunction getAllStoreNames(db) {\n return new Promise$1(function (resolve, reject) {\n db.transaction(function (t) {\n t.executeSql('SELECT name FROM sqlite_master ' + \"WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'\", [], function (t, results) {\n var storeNames = [];\n\n for (var i = 0; i < results.rows.length; i++) {\n storeNames.push(results.rows.item(i).name);\n }\n\n resolve({\n db: db,\n storeNames: storeNames\n });\n }, function (t, error) {\n reject(error);\n });\n }, function (sqlError) {\n reject(sqlError);\n });\n });\n}\n\nfunction dropInstance$1(options, callback) {\n callback = getCallback.apply(this, arguments);\n\n var currentConfig = this.config();\n options = typeof options !== 'function' && options || {};\n if (!options.name) {\n options.name = options.name || currentConfig.name;\n options.storeName = options.storeName || currentConfig.storeName;\n }\n\n var self = this;\n var promise;\n if (!options.name) {\n promise = Promise$1.reject('Invalid arguments');\n } else {\n promise = new Promise$1(function (resolve) {\n var db;\n if (options.name === currentConfig.name) {\n // use the db reference of the current instance\n db = self._dbInfo.db;\n } else {\n db = openDatabase(options.name, '', '', 0);\n }\n\n if (!options.storeName) {\n // drop all database tables\n resolve(getAllStoreNames(db));\n } else {\n resolve({\n db: db,\n storeNames: [options.storeName]\n });\n }\n }).then(function (operationInfo) {\n return new Promise$1(function (resolve, reject) {\n operationInfo.db.transaction(function (t) {\n function dropTable(storeName) {\n return new Promise$1(function (resolve, reject) {\n t.executeSql('DROP TABLE IF EXISTS ' + storeName, [], function () {\n resolve();\n }, function (t, error) {\n reject(error);\n });\n });\n }\n\n var operations = [];\n for (var i = 0, len = operationInfo.storeNames.length; i < len; i++) {\n operations.push(dropTable(operationInfo.storeNames[i]));\n }\n\n Promise$1.all(operations).then(function () {\n resolve();\n })[\"catch\"](function (e) {\n reject(e);\n });\n }, function (sqlError) {\n reject(sqlError);\n });\n });\n });\n }\n\n executeCallback(promise, callback);\n return promise;\n}\n\nvar webSQLStorage = {\n _driver: 'webSQLStorage',\n _initStorage: _initStorage$1,\n _support: isWebSQLValid(),\n iterate: iterate$1,\n getItem: getItem$1,\n setItem: setItem$1,\n removeItem: removeItem$1,\n clear: clear$1,\n length: length$1,\n key: key$1,\n keys: keys$1,\n dropInstance: dropInstance$1\n};\n\nfunction isLocalStorageValid() {\n try {\n return typeof localStorage !== 'undefined' && 'setItem' in localStorage &&\n // in IE8 typeof localStorage.setItem === 'object'\n !!localStorage.setItem;\n } catch (e) {\n return false;\n }\n}\n\nfunction _getKeyPrefix(options, defaultConfig) {\n var keyPrefix = options.name + '/';\n\n if (options.storeName !== defaultConfig.storeName) {\n keyPrefix += options.storeName + '/';\n }\n return keyPrefix;\n}\n\n// Check if localStorage throws when saving an item\nfunction checkIfLocalStorageThrows() {\n var localStorageTestKey = '_localforage_support_test';\n\n try {\n localStorage.setItem(localStorageTestKey, true);\n localStorage.removeItem(localStorageTestKey);\n\n return false;\n } catch (e) {\n return true;\n }\n}\n\n// Check if localStorage is usable and allows to save an item\n// This method checks if localStorage is usable in Safari Private Browsing\n// mode, or in any other case where the available quota for localStorage\n// is 0 and there wasn't any saved items yet.\nfunction _isLocalStorageUsable() {\n return !checkIfLocalStorageThrows() || localStorage.length > 0;\n}\n\n// Config the localStorage backend, using options set in the config.\nfunction _initStorage$2(options) {\n var self = this;\n var dbInfo = {};\n if (options) {\n for (var i in options) {\n dbInfo[i] = options[i];\n }\n }\n\n dbInfo.keyPrefix = _getKeyPrefix(options, self._defaultConfig);\n\n if (!_isLocalStorageUsable()) {\n return Promise$1.reject();\n }\n\n self._dbInfo = dbInfo;\n dbInfo.serializer = localforageSerializer;\n\n return Promise$1.resolve();\n}\n\n// Remove all keys from the datastore, effectively destroying all data in\n// the app's key/value store!\nfunction clear$2(callback) {\n var self = this;\n var promise = self.ready().then(function () {\n var keyPrefix = self._dbInfo.keyPrefix;\n\n for (var i = localStorage.length - 1; i >= 0; i--) {\n var key = localStorage.key(i);\n\n if (key.indexOf(keyPrefix) === 0) {\n localStorage.removeItem(key);\n }\n }\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Retrieve an item from the store. Unlike the original async_storage\n// library in Gaia, we don't modify return values at all. If a key's value\n// is `undefined`, we pass that value to the callback function.\nfunction getItem$2(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n var result = localStorage.getItem(dbInfo.keyPrefix + key);\n\n // If a result was found, parse it from the serialized\n // string into a JS object. If result isn't truthy, the key\n // is likely undefined and we'll pass it straight to the\n // callback.\n if (result) {\n result = dbInfo.serializer.deserialize(result);\n }\n\n return result;\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Iterate over all items in the store.\nfunction iterate$2(iterator, callback) {\n var self = this;\n\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n var keyPrefix = dbInfo.keyPrefix;\n var keyPrefixLength = keyPrefix.length;\n var length = localStorage.length;\n\n // We use a dedicated iterator instead of the `i` variable below\n // so other keys we fetch in localStorage aren't counted in\n // the `iterationNumber` argument passed to the `iterate()`\n // callback.\n //\n // See: github.com/mozilla/localForage/pull/435#discussion_r38061530\n var iterationNumber = 1;\n\n for (var i = 0; i < length; i++) {\n var key = localStorage.key(i);\n if (key.indexOf(keyPrefix) !== 0) {\n continue;\n }\n var value = localStorage.getItem(key);\n\n // If a result was found, parse it from the serialized\n // string into a JS object. If result isn't truthy, the\n // key is likely undefined and we'll pass it straight\n // to the iterator.\n if (value) {\n value = dbInfo.serializer.deserialize(value);\n }\n\n value = iterator(value, key.substring(keyPrefixLength), iterationNumber++);\n\n if (value !== void 0) {\n return value;\n }\n }\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Same as localStorage's key() method, except takes a callback.\nfunction key$2(n, callback) {\n var self = this;\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n var result;\n try {\n result = localStorage.key(n);\n } catch (error) {\n result = null;\n }\n\n // Remove the prefix from the key, if a key is found.\n if (result) {\n result = result.substring(dbInfo.keyPrefix.length);\n }\n\n return result;\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction keys$2(callback) {\n var self = this;\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n var length = localStorage.length;\n var keys = [];\n\n for (var i = 0; i < length; i++) {\n var itemKey = localStorage.key(i);\n if (itemKey.indexOf(dbInfo.keyPrefix) === 0) {\n keys.push(itemKey.substring(dbInfo.keyPrefix.length));\n }\n }\n\n return keys;\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Supply the number of keys in the datastore to the callback function.\nfunction length$2(callback) {\n var self = this;\n var promise = self.keys().then(function (keys) {\n return keys.length;\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Remove an item from the store, nice and simple.\nfunction removeItem$2(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n localStorage.removeItem(dbInfo.keyPrefix + key);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Set a key's value and run an optional callback once the value is set.\n// Unlike Gaia's implementation, the callback function is passed the value,\n// in case you want to operate on that value only after you're sure it\n// saved, or something like that.\nfunction setItem$2(key, value, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = self.ready().then(function () {\n // Convert undefined values to null.\n // https://github.com/mozilla/localForage/pull/42\n if (value === undefined) {\n value = null;\n }\n\n // Save the original value to pass to the callback.\n var originalValue = value;\n\n return new Promise$1(function (resolve, reject) {\n var dbInfo = self._dbInfo;\n dbInfo.serializer.serialize(value, function (value, error) {\n if (error) {\n reject(error);\n } else {\n try {\n localStorage.setItem(dbInfo.keyPrefix + key, value);\n resolve(originalValue);\n } catch (e) {\n // localStorage capacity exceeded.\n // TODO: Make this a specific error/event.\n if (e.name === 'QuotaExceededError' || e.name === 'NS_ERROR_DOM_QUOTA_REACHED') {\n reject(e);\n }\n reject(e);\n }\n }\n });\n });\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction dropInstance$2(options, callback) {\n callback = getCallback.apply(this, arguments);\n\n options = typeof options !== 'function' && options || {};\n if (!options.name) {\n var currentConfig = this.config();\n options.name = options.name || currentConfig.name;\n options.storeName = options.storeName || currentConfig.storeName;\n }\n\n var self = this;\n var promise;\n if (!options.name) {\n promise = Promise$1.reject('Invalid arguments');\n } else {\n promise = new Promise$1(function (resolve) {\n if (!options.storeName) {\n resolve(options.name + '/');\n } else {\n resolve(_getKeyPrefix(options, self._defaultConfig));\n }\n }).then(function (keyPrefix) {\n for (var i = localStorage.length - 1; i >= 0; i--) {\n var key = localStorage.key(i);\n\n if (key.indexOf(keyPrefix) === 0) {\n localStorage.removeItem(key);\n }\n }\n });\n }\n\n executeCallback(promise, callback);\n return promise;\n}\n\nvar localStorageWrapper = {\n _driver: 'localStorageWrapper',\n _initStorage: _initStorage$2,\n _support: isLocalStorageValid(),\n iterate: iterate$2,\n getItem: getItem$2,\n setItem: setItem$2,\n removeItem: removeItem$2,\n clear: clear$2,\n length: length$2,\n key: key$2,\n keys: keys$2,\n dropInstance: dropInstance$2\n};\n\nvar sameValue = function sameValue(x, y) {\n return x === y || typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y);\n};\n\nvar includes = function includes(array, searchElement) {\n var len = array.length;\n var i = 0;\n while (i < len) {\n if (sameValue(array[i], searchElement)) {\n return true;\n }\n i++;\n }\n\n return false;\n};\n\nvar isArray = Array.isArray || function (arg) {\n return Object.prototype.toString.call(arg) === '[object Array]';\n};\n\n// Drivers are stored here when `defineDriver()` is called.\n// They are shared across all instances of localForage.\nvar DefinedDrivers = {};\n\nvar DriverSupport = {};\n\nvar DefaultDrivers = {\n INDEXEDDB: asyncStorage,\n WEBSQL: webSQLStorage,\n LOCALSTORAGE: localStorageWrapper\n};\n\nvar DefaultDriverOrder = [DefaultDrivers.INDEXEDDB._driver, DefaultDrivers.WEBSQL._driver, DefaultDrivers.LOCALSTORAGE._driver];\n\nvar OptionalDriverMethods = ['dropInstance'];\n\nvar LibraryMethods = ['clear', 'getItem', 'iterate', 'key', 'keys', 'length', 'removeItem', 'setItem'].concat(OptionalDriverMethods);\n\nvar DefaultConfig = {\n description: '',\n driver: DefaultDriverOrder.slice(),\n name: 'localforage',\n // Default DB size is _JUST UNDER_ 5MB, as it's the highest size\n // we can use without a prompt.\n size: 4980736,\n storeName: 'keyvaluepairs',\n version: 1.0\n};\n\nfunction callWhenReady(localForageInstance, libraryMethod) {\n localForageInstance[libraryMethod] = function () {\n var _args = arguments;\n return localForageInstance.ready().then(function () {\n return localForageInstance[libraryMethod].apply(localForageInstance, _args);\n });\n };\n}\n\nfunction extend() {\n for (var i = 1; i < arguments.length; i++) {\n var arg = arguments[i];\n\n if (arg) {\n for (var _key in arg) {\n if (arg.hasOwnProperty(_key)) {\n if (isArray(arg[_key])) {\n arguments[0][_key] = arg[_key].slice();\n } else {\n arguments[0][_key] = arg[_key];\n }\n }\n }\n }\n }\n\n return arguments[0];\n}\n\nvar LocalForage = function () {\n function LocalForage(options) {\n _classCallCheck(this, LocalForage);\n\n for (var driverTypeKey in DefaultDrivers) {\n if (DefaultDrivers.hasOwnProperty(driverTypeKey)) {\n var driver = DefaultDrivers[driverTypeKey];\n var driverName = driver._driver;\n this[driverTypeKey] = driverName;\n\n if (!DefinedDrivers[driverName]) {\n // we don't need to wait for the promise,\n // since the default drivers can be defined\n // in a blocking manner\n this.defineDriver(driver);\n }\n }\n }\n\n this._defaultConfig = extend({}, DefaultConfig);\n this._config = extend({}, this._defaultConfig, options);\n this._driverSet = null;\n this._initDriver = null;\n this._ready = false;\n this._dbInfo = null;\n\n this._wrapLibraryMethodsWithReady();\n this.setDriver(this._config.driver)[\"catch\"](function () {});\n }\n\n // Set any config values for localForage; can be called anytime before\n // the first API call (e.g. `getItem`, `setItem`).\n // We loop through options so we don't overwrite existing config\n // values.\n\n\n LocalForage.prototype.config = function config(options) {\n // If the options argument is an object, we use it to set values.\n // Otherwise, we return either a specified config value or all\n // config values.\n if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\n // If localforage is ready and fully initialized, we can't set\n // any new configuration values. Instead, we return an error.\n if (this._ready) {\n return new Error(\"Can't call config() after localforage \" + 'has been used.');\n }\n\n for (var i in options) {\n if (i === 'storeName') {\n options[i] = options[i].replace(/\\W/g, '_');\n }\n\n if (i === 'version' && typeof options[i] !== 'number') {\n return new Error('Database version must be a number.');\n }\n\n this._config[i] = options[i];\n }\n\n // after all config options are set and\n // the driver option is used, try setting it\n if ('driver' in options && options.driver) {\n return this.setDriver(this._config.driver);\n }\n\n return true;\n } else if (typeof options === 'string') {\n return this._config[options];\n } else {\n return this._config;\n }\n };\n\n // Used to define a custom driver, shared across all instances of\n // localForage.\n\n\n LocalForage.prototype.defineDriver = function defineDriver(driverObject, callback, errorCallback) {\n var promise = new Promise$1(function (resolve, reject) {\n try {\n var driverName = driverObject._driver;\n var complianceError = new Error('Custom driver not compliant; see ' + 'https://mozilla.github.io/localForage/#definedriver');\n\n // A driver name should be defined and not overlap with the\n // library-defined, default drivers.\n if (!driverObject._driver) {\n reject(complianceError);\n return;\n }\n\n var driverMethods = LibraryMethods.concat('_initStorage');\n for (var i = 0, len = driverMethods.length; i < len; i++) {\n var driverMethodName = driverMethods[i];\n\n // when the property is there,\n // it should be a method even when optional\n var isRequired = !includes(OptionalDriverMethods, driverMethodName);\n if ((isRequired || driverObject[driverMethodName]) && typeof driverObject[driverMethodName] !== 'function') {\n reject(complianceError);\n return;\n }\n }\n\n var configureMissingMethods = function configureMissingMethods() {\n var methodNotImplementedFactory = function methodNotImplementedFactory(methodName) {\n return function () {\n var error = new Error('Method ' + methodName + ' is not implemented by the current driver');\n var promise = Promise$1.reject(error);\n executeCallback(promise, arguments[arguments.length - 1]);\n return promise;\n };\n };\n\n for (var _i = 0, _len = OptionalDriverMethods.length; _i < _len; _i++) {\n var optionalDriverMethod = OptionalDriverMethods[_i];\n if (!driverObject[optionalDriverMethod]) {\n driverObject[optionalDriverMethod] = methodNotImplementedFactory(optionalDriverMethod);\n }\n }\n };\n\n configureMissingMethods();\n\n var setDriverSupport = function setDriverSupport(support) {\n if (DefinedDrivers[driverName]) {\n console.info('Redefining LocalForage driver: ' + driverName);\n }\n DefinedDrivers[driverName] = driverObject;\n DriverSupport[driverName] = support;\n // don't use a then, so that we can define\n // drivers that have simple _support methods\n // in a blocking manner\n resolve();\n };\n\n if ('_support' in driverObject) {\n if (driverObject._support && typeof driverObject._support === 'function') {\n driverObject._support().then(setDriverSupport, reject);\n } else {\n setDriverSupport(!!driverObject._support);\n }\n } else {\n setDriverSupport(true);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n executeTwoCallbacks(promise, callback, errorCallback);\n return promise;\n };\n\n LocalForage.prototype.driver = function driver() {\n return this._driver || null;\n };\n\n LocalForage.prototype.getDriver = function getDriver(driverName, callback, errorCallback) {\n var getDriverPromise = DefinedDrivers[driverName] ? Promise$1.resolve(DefinedDrivers[driverName]) : Promise$1.reject(new Error('Driver not found.'));\n\n executeTwoCallbacks(getDriverPromise, callback, errorCallback);\n return getDriverPromise;\n };\n\n LocalForage.prototype.getSerializer = function getSerializer(callback) {\n var serializerPromise = Promise$1.resolve(localforageSerializer);\n executeTwoCallbacks(serializerPromise, callback);\n return serializerPromise;\n };\n\n LocalForage.prototype.ready = function ready(callback) {\n var self = this;\n\n var promise = self._driverSet.then(function () {\n if (self._ready === null) {\n self._ready = self._initDriver();\n }\n\n return self._ready;\n });\n\n executeTwoCallbacks(promise, callback, callback);\n return promise;\n };\n\n LocalForage.prototype.setDriver = function setDriver(drivers, callback, errorCallback) {\n var self = this;\n\n if (!isArray(drivers)) {\n drivers = [drivers];\n }\n\n var supportedDrivers = this._getSupportedDrivers(drivers);\n\n function setDriverToConfig() {\n self._config.driver = self.driver();\n }\n\n function extendSelfWithDriver(driver) {\n self._extend(driver);\n setDriverToConfig();\n\n self._ready = self._initStorage(self._config);\n return self._ready;\n }\n\n function initDriver(supportedDrivers) {\n return function () {\n var currentDriverIndex = 0;\n\n function driverPromiseLoop() {\n while (currentDriverIndex < supportedDrivers.length) {\n var driverName = supportedDrivers[currentDriverIndex];\n currentDriverIndex++;\n\n self._dbInfo = null;\n self._ready = null;\n\n return self.getDriver(driverName).then(extendSelfWithDriver)[\"catch\"](driverPromiseLoop);\n }\n\n setDriverToConfig();\n var error = new Error('No available storage method found.');\n self._driverSet = Promise$1.reject(error);\n return self._driverSet;\n }\n\n return driverPromiseLoop();\n };\n }\n\n // There might be a driver initialization in progress\n // so wait for it to finish in order to avoid a possible\n // race condition to set _dbInfo\n var oldDriverSetDone = this._driverSet !== null ? this._driverSet[\"catch\"](function () {\n return Promise$1.resolve();\n }) : Promise$1.resolve();\n\n this._driverSet = oldDriverSetDone.then(function () {\n var driverName = supportedDrivers[0];\n self._dbInfo = null;\n self._ready = null;\n\n return self.getDriver(driverName).then(function (driver) {\n self._driver = driver._driver;\n setDriverToConfig();\n self._wrapLibraryMethodsWithReady();\n self._initDriver = initDriver(supportedDrivers);\n });\n })[\"catch\"](function () {\n setDriverToConfig();\n var error = new Error('No available storage method found.');\n self._driverSet = Promise$1.reject(error);\n return self._driverSet;\n });\n\n executeTwoCallbacks(this._driverSet, callback, errorCallback);\n return this._driverSet;\n };\n\n LocalForage.prototype.supports = function supports(driverName) {\n return !!DriverSupport[driverName];\n };\n\n LocalForage.prototype._extend = function _extend(libraryMethodsAndProperties) {\n extend(this, libraryMethodsAndProperties);\n };\n\n LocalForage.prototype._getSupportedDrivers = function _getSupportedDrivers(drivers) {\n var supportedDrivers = [];\n for (var i = 0, len = drivers.length; i < len; i++) {\n var driverName = drivers[i];\n if (this.supports(driverName)) {\n supportedDrivers.push(driverName);\n }\n }\n return supportedDrivers;\n };\n\n LocalForage.prototype._wrapLibraryMethodsWithReady = function _wrapLibraryMethodsWithReady() {\n // Add a stub for each driver API method that delays the call to the\n // corresponding driver method until localForage is ready. These stubs\n // will be replaced by the driver methods as soon as the driver is\n // loaded, so there is no performance impact.\n for (var i = 0, len = LibraryMethods.length; i < len; i++) {\n callWhenReady(this, LibraryMethods[i]);\n }\n };\n\n LocalForage.prototype.createInstance = function createInstance(options) {\n return new LocalForage(options);\n };\n\n return LocalForage;\n}();\n\n// The actual localForage object that we expose as a module or via a\n// global. It's extended by pulling in one of our other libraries.\n\n\nvar localforage_js = new LocalForage();\n\nmodule.exports = localforage_js;\n\n},{\"3\":3}]},{},[4])(4)\n});\n","/**\n * A doubly linked list-based Least Recently Used (LRU) cache. Will keep most\n * recently used items while discarding least recently used items when its limit\n * is reached.\n *\n * Licensed under MIT. Copyright (c) 2010 Rasmus Andersson \n * See README.md for details.\n *\n * Illustration of the design:\n *\n * entry entry entry entry\n * ______ ______ ______ ______\n * | head |.newer => | |.newer => | |.newer => | tail |\n * | A | | B | | C | | D |\n * |______| <= older.|______| <= older.|______| <= older.|______|\n *\n * removed <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- added\n */\n(function(g,f){\n const e = typeof exports == 'object' ? exports : typeof g == 'object' ? g : {};\n f(e);\n if (typeof define == 'function' && define.amd) { define('lru', e); }\n})(this, function(exports) {\n\nconst NEWER = Symbol('newer');\nconst OLDER = Symbol('older');\n\nfunction LRUMap(limit, entries) {\n if (typeof limit !== 'number') {\n // called as (entries)\n entries = limit;\n limit = 0;\n }\n\n this.size = 0;\n this.limit = limit;\n this.oldest = this.newest = undefined;\n this._keymap = new Map();\n\n if (entries) {\n this.assign(entries);\n if (limit < 1) {\n this.limit = this.size;\n }\n }\n}\n\nexports.LRUMap = LRUMap;\n\nfunction Entry(key, value) {\n this.key = key;\n this.value = value;\n this[NEWER] = undefined;\n this[OLDER] = undefined;\n}\n\n\nLRUMap.prototype._markEntryAsUsed = function(entry) {\n if (entry === this.newest) {\n // Already the most recenlty used entry, so no need to update the list\n return;\n }\n // HEAD--------------TAIL\n // <.older .newer>\n // <--- add direction --\n // A B C E\n if (entry[NEWER]) {\n if (entry === this.oldest) {\n this.oldest = entry[NEWER];\n }\n entry[NEWER][OLDER] = entry[OLDER]; // C <-- E.\n }\n if (entry[OLDER]) {\n entry[OLDER][NEWER] = entry[NEWER]; // C. --> E\n }\n entry[NEWER] = undefined; // D --x\n entry[OLDER] = this.newest; // D. --> E\n if (this.newest) {\n this.newest[NEWER] = entry; // E. <-- D\n }\n this.newest = entry;\n};\n\nLRUMap.prototype.assign = function(entries) {\n let entry, limit = this.limit || Number.MAX_VALUE;\n this._keymap.clear();\n let it = entries[Symbol.iterator]();\n for (let itv = it.next(); !itv.done; itv = it.next()) {\n let e = new Entry(itv.value[0], itv.value[1]);\n this._keymap.set(e.key, e);\n if (!entry) {\n this.oldest = e;\n } else {\n entry[NEWER] = e;\n e[OLDER] = entry;\n }\n entry = e;\n if (limit-- == 0) {\n throw new Error('overflow');\n }\n }\n this.newest = entry;\n this.size = this._keymap.size;\n};\n\nLRUMap.prototype.get = function(key) {\n // First, find our cache entry\n var entry = this._keymap.get(key);\n if (!entry) return; // Not cached. Sorry.\n // As was found in the cache, register it as being requested recently\n this._markEntryAsUsed(entry);\n return entry.value;\n};\n\nLRUMap.prototype.set = function(key, value) {\n var entry = this._keymap.get(key);\n\n if (entry) {\n // update existing\n entry.value = value;\n this._markEntryAsUsed(entry);\n return this;\n }\n\n // new entry\n this._keymap.set(key, (entry = new Entry(key, value)));\n\n if (this.newest) {\n // link previous tail to the new tail (entry)\n this.newest[NEWER] = entry;\n entry[OLDER] = this.newest;\n } else {\n // we're first in -- yay\n this.oldest = entry;\n }\n\n // add new entry to the end of the linked list -- it's now the freshest entry.\n this.newest = entry;\n ++this.size;\n if (this.size > this.limit) {\n // we hit the limit -- remove the head\n this.shift();\n }\n\n return this;\n};\n\nLRUMap.prototype.shift = function() {\n // todo: handle special case when limit == 1\n var entry = this.oldest;\n if (entry) {\n if (this.oldest[NEWER]) {\n // advance the list\n this.oldest = this.oldest[NEWER];\n this.oldest[OLDER] = undefined;\n } else {\n // the cache is exhausted\n this.oldest = undefined;\n this.newest = undefined;\n }\n // Remove last strong reference to and remove links from the purged\n // entry being returned:\n entry[NEWER] = entry[OLDER] = undefined;\n this._keymap.delete(entry.key);\n --this.size;\n return [entry.key, entry.value];\n }\n};\n\n// ----------------------------------------------------------------------------\n// Following code is optional and can be removed without breaking the core\n// functionality.\n\nLRUMap.prototype.find = function(key) {\n let e = this._keymap.get(key);\n return e ? e.value : undefined;\n};\n\nLRUMap.prototype.has = function(key) {\n return this._keymap.has(key);\n};\n\nLRUMap.prototype['delete'] = function(key) {\n var entry = this._keymap.get(key);\n if (!entry) return;\n this._keymap.delete(entry.key);\n if (entry[NEWER] && entry[OLDER]) {\n // relink the older entry with the newer entry\n entry[OLDER][NEWER] = entry[NEWER];\n entry[NEWER][OLDER] = entry[OLDER];\n } else if (entry[NEWER]) {\n // remove the link to us\n entry[NEWER][OLDER] = undefined;\n // link the newer entry to head\n this.oldest = entry[NEWER];\n } else if (entry[OLDER]) {\n // remove the link to us\n entry[OLDER][NEWER] = undefined;\n // link the newer entry to head\n this.newest = entry[OLDER];\n } else {// if(entry[OLDER] === undefined && entry.newer === undefined) {\n this.oldest = this.newest = undefined;\n }\n\n this.size--;\n return entry.value;\n};\n\nLRUMap.prototype.clear = function() {\n // Not clearing links should be safe, as we don't expose live links to user\n this.oldest = this.newest = undefined;\n this.size = 0;\n this._keymap.clear();\n};\n\n\nfunction EntryIterator(oldestEntry) { this.entry = oldestEntry; }\nEntryIterator.prototype[Symbol.iterator] = function() { return this; }\nEntryIterator.prototype.next = function() {\n let ent = this.entry;\n if (ent) {\n this.entry = ent[NEWER];\n return { done: false, value: [ent.key, ent.value] };\n } else {\n return { done: true, value: undefined };\n }\n};\n\n\nfunction KeyIterator(oldestEntry) { this.entry = oldestEntry; }\nKeyIterator.prototype[Symbol.iterator] = function() { return this; }\nKeyIterator.prototype.next = function() {\n let ent = this.entry;\n if (ent) {\n this.entry = ent[NEWER];\n return { done: false, value: ent.key };\n } else {\n return { done: true, value: undefined };\n }\n};\n\nfunction ValueIterator(oldestEntry) { this.entry = oldestEntry; }\nValueIterator.prototype[Symbol.iterator] = function() { return this; }\nValueIterator.prototype.next = function() {\n let ent = this.entry;\n if (ent) {\n this.entry = ent[NEWER];\n return { done: false, value: ent.value };\n } else {\n return { done: true, value: undefined };\n }\n};\n\n\nLRUMap.prototype.keys = function() {\n return new KeyIterator(this.oldest);\n};\n\nLRUMap.prototype.values = function() {\n return new ValueIterator(this.oldest);\n};\n\nLRUMap.prototype.entries = function() {\n return this;\n};\n\nLRUMap.prototype[Symbol.iterator] = function() {\n return new EntryIterator(this.oldest);\n};\n\nLRUMap.prototype.forEach = function(fun, thisObj) {\n if (typeof thisObj !== 'object') {\n thisObj = this;\n }\n let entry = this.oldest;\n while (entry) {\n fun.call(thisObj, entry.value, entry.key, this);\n entry = entry[NEWER];\n }\n};\n\n/** Returns a JSON (array) representation */\nLRUMap.prototype.toJSON = function() {\n var s = new Array(this.size), i = 0, entry = this.oldest;\n while (entry) {\n s[i++] = { key: entry.key, value: entry.value };\n entry = entry[NEWER];\n }\n return s;\n};\n\n/** Returns a String representation */\nLRUMap.prototype.toString = function() {\n var s = '', entry = this.oldest;\n while (entry) {\n s += String(entry.key)+':'+entry.value;\n entry = entry[NEWER];\n if (entry) {\n s += ' < ';\n }\n }\n return s;\n};\n\n});\n","import { addInstrumentationHandler, logger } from '@sentry/utils';\nimport { SpanStatus } from './spanstatus';\nimport { getActiveTransaction } from './utils';\n/**\n * Configures global error listeners\n */\nexport function registerErrorInstrumentation() {\n addInstrumentationHandler({\n callback: errorCallback,\n type: 'error',\n });\n addInstrumentationHandler({\n callback: errorCallback,\n type: 'unhandledrejection',\n });\n}\n/**\n * If an error or unhandled promise occurs, we mark the active transaction as failed\n */\nfunction errorCallback() {\n var activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n logger.log(\"[Tracing] Transaction: \" + SpanStatus.InternalError + \" -> Global error occured\");\n activeTransaction.setStatus(SpanStatus.InternalError);\n }\n}\n//# sourceMappingURL=errors.js.map","/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n\n/**\n * Module variables.\n * @private\n */\n\nvar decode = decodeURIComponent;\nvar encode = encodeURIComponent;\nvar pairSplitRegExp = /; */;\n\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {}\n var opt = options || {};\n var pairs = str.split(pairSplitRegExp);\n var dec = opt.decode || decode;\n\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n var eq_idx = pair.indexOf('=');\n\n // skip things that don't look like key=value\n if (eq_idx < 0) {\n continue;\n }\n\n var key = pair.substr(0, eq_idx).trim()\n var val = pair.substr(++eq_idx, pair.length).trim();\n\n // quoted values\n if ('\"' == val[0]) {\n val = val.slice(1, -1);\n }\n\n // only assign once\n if (undefined == obj[key]) {\n obj[key] = tryDecode(val, dec);\n }\n }\n\n return obj;\n}\n\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid')\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string'\n ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n","import { __assign, __values } from \"tslib\";\nimport { getGlobalObject } from './global';\nimport { isInstanceOf, isString } from './is';\nimport { logger } from './logger';\nimport { fill } from './object';\nimport { getFunctionName } from './stacktrace';\nimport { supportsHistory, supportsNativeFetch } from './supports';\nvar global = getGlobalObject();\n/**\n * Instrument native APIs to call handlers that can be used to create breadcrumbs, APM spans etc.\n * - Console API\n * - Fetch API\n * - XHR API\n * - History API\n * - DOM API (click/typing)\n * - Error API\n * - UnhandledRejection API\n */\nvar handlers = {};\nvar instrumented = {};\n/** Instruments given API */\nfunction instrument(type) {\n if (instrumented[type]) {\n return;\n }\n instrumented[type] = true;\n switch (type) {\n case 'console':\n instrumentConsole();\n break;\n case 'dom':\n instrumentDOM();\n break;\n case 'xhr':\n instrumentXHR();\n break;\n case 'fetch':\n instrumentFetch();\n break;\n case 'history':\n instrumentHistory();\n break;\n case 'error':\n instrumentError();\n break;\n case 'unhandledrejection':\n instrumentUnhandledRejection();\n break;\n default:\n logger.warn('unknown instrumentation type:', type);\n }\n}\n/**\n * Add handler that will be called when given type of instrumentation triggers.\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addInstrumentationHandler(handler) {\n if (!handler || typeof handler.type !== 'string' || typeof handler.callback !== 'function') {\n return;\n }\n handlers[handler.type] = handlers[handler.type] || [];\n handlers[handler.type].push(handler.callback);\n instrument(handler.type);\n}\n/** JSDoc */\nfunction triggerHandlers(type, data) {\n var e_1, _a;\n if (!type || !handlers[type]) {\n return;\n }\n try {\n for (var _b = __values(handlers[type] || []), _c = _b.next(); !_c.done; _c = _b.next()) {\n var handler = _c.value;\n try {\n handler(data);\n }\n catch (e) {\n logger.error(\"Error while triggering instrumentation handler.\\nType: \" + type + \"\\nName: \" + getFunctionName(handler) + \"\\nError: \" + e);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n}\n/** JSDoc */\nfunction instrumentConsole() {\n if (!('console' in global)) {\n return;\n }\n ['debug', 'info', 'warn', 'error', 'log', 'assert'].forEach(function (level) {\n if (!(level in global.console)) {\n return;\n }\n fill(global.console, level, function (originalConsoleLevel) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n triggerHandlers('console', { args: args, level: level });\n // this fails for some browsers. :(\n if (originalConsoleLevel) {\n Function.prototype.apply.call(originalConsoleLevel, global.console, args);\n }\n };\n });\n });\n}\n/** JSDoc */\nfunction instrumentFetch() {\n if (!supportsNativeFetch()) {\n return;\n }\n fill(global, 'fetch', function (originalFetch) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var handlerData = {\n args: args,\n fetchData: {\n method: getFetchMethod(args),\n url: getFetchUrl(args),\n },\n startTimestamp: Date.now(),\n };\n triggerHandlers('fetch', __assign({}, handlerData));\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalFetch.apply(global, args).then(function (response) {\n triggerHandlers('fetch', __assign(__assign({}, handlerData), { endTimestamp: Date.now(), response: response }));\n return response;\n }, function (error) {\n triggerHandlers('fetch', __assign(__assign({}, handlerData), { endTimestamp: Date.now(), error: error }));\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the sentry.javascript SDK caught an error invoking your application code.\n // This is expected behavior and NOT indicative of a bug with sentry.javascript.\n throw error;\n });\n };\n });\n}\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/** Extract `method` from fetch call arguments */\nfunction getFetchMethod(fetchArgs) {\n if (fetchArgs === void 0) { fetchArgs = []; }\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request) && fetchArgs[0].method) {\n return String(fetchArgs[0].method).toUpperCase();\n }\n if (fetchArgs[1] && fetchArgs[1].method) {\n return String(fetchArgs[1].method).toUpperCase();\n }\n return 'GET';\n}\n/** Extract `url` from fetch call arguments */\nfunction getFetchUrl(fetchArgs) {\n if (fetchArgs === void 0) { fetchArgs = []; }\n if (typeof fetchArgs[0] === 'string') {\n return fetchArgs[0];\n }\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request)) {\n return fetchArgs[0].url;\n }\n return String(fetchArgs[0]);\n}\n/* eslint-enable @typescript-eslint/no-unsafe-member-access */\n/** JSDoc */\nfunction instrumentXHR() {\n if (!('XMLHttpRequest' in global)) {\n return;\n }\n // Poor man's implementation of ES6 `Map`, tracking and keeping in sync key and value separately.\n var requestKeys = [];\n var requestValues = [];\n var xhrproto = XMLHttpRequest.prototype;\n fill(xhrproto, 'open', function (originalOpen) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var xhr = this;\n var url = args[1];\n xhr.__sentry_xhr__ = {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n method: isString(args[0]) ? args[0].toUpperCase() : args[0],\n url: args[1],\n };\n // if Sentry key appears in URL, don't capture it as a request\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (isString(url) && xhr.__sentry_xhr__.method === 'POST' && url.match(/sentry_key/)) {\n xhr.__sentry_own_request__ = true;\n }\n var onreadystatechangeHandler = function () {\n if (xhr.readyState === 4) {\n try {\n // touching statusCode in some platforms throws\n // an exception\n if (xhr.__sentry_xhr__) {\n xhr.__sentry_xhr__.status_code = xhr.status;\n }\n }\n catch (e) {\n /* do nothing */\n }\n try {\n var requestPos = requestKeys.indexOf(xhr);\n if (requestPos !== -1) {\n // Make sure to pop both key and value to keep it in sync.\n requestKeys.splice(requestPos);\n var args_1 = requestValues.splice(requestPos)[0];\n if (xhr.__sentry_xhr__ && args_1[0] !== undefined) {\n xhr.__sentry_xhr__.body = args_1[0];\n }\n }\n }\n catch (e) {\n /* do nothing */\n }\n triggerHandlers('xhr', {\n args: args,\n endTimestamp: Date.now(),\n startTimestamp: Date.now(),\n xhr: xhr,\n });\n }\n };\n if ('onreadystatechange' in xhr && typeof xhr.onreadystatechange === 'function') {\n fill(xhr, 'onreadystatechange', function (original) {\n return function () {\n var readyStateArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n readyStateArgs[_i] = arguments[_i];\n }\n onreadystatechangeHandler();\n return original.apply(xhr, readyStateArgs);\n };\n });\n }\n else {\n xhr.addEventListener('readystatechange', onreadystatechangeHandler);\n }\n return originalOpen.apply(xhr, args);\n };\n });\n fill(xhrproto, 'send', function (originalSend) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n requestKeys.push(this);\n requestValues.push(args);\n triggerHandlers('xhr', {\n args: args,\n startTimestamp: Date.now(),\n xhr: this,\n });\n return originalSend.apply(this, args);\n };\n });\n}\nvar lastHref;\n/** JSDoc */\nfunction instrumentHistory() {\n if (!supportsHistory()) {\n return;\n }\n var oldOnPopState = global.onpopstate;\n global.onpopstate = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var to = global.location.href;\n // keep track of the current URL state, as we always receive only the updated state\n var from = lastHref;\n lastHref = to;\n triggerHandlers('history', {\n from: from,\n to: to,\n });\n if (oldOnPopState) {\n // Apparently this can throw in Firefox when incorrectly implemented plugin is installed.\n // https://github.com/getsentry/sentry-javascript/issues/3344\n // https://github.com/bugsnag/bugsnag-js/issues/469\n try {\n return oldOnPopState.apply(this, args);\n }\n catch (_oO) {\n // no-empty\n }\n }\n };\n /** @hidden */\n function historyReplacementFunction(originalHistoryFunction) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var url = args.length > 2 ? args[2] : undefined;\n if (url) {\n // coerce to string (this is what pushState does)\n var from = lastHref;\n var to = String(url);\n // keep track of the current URL state, as we always receive only the updated state\n lastHref = to;\n triggerHandlers('history', {\n from: from,\n to: to,\n });\n }\n return originalHistoryFunction.apply(this, args);\n };\n }\n fill(global.history, 'pushState', historyReplacementFunction);\n fill(global.history, 'replaceState', historyReplacementFunction);\n}\nvar debounceDuration = 1000;\nvar debounceTimerID;\nvar lastCapturedEvent;\n/**\n * Decide whether the current event should finish the debounce of previously captured one.\n * @param previous previously captured event\n * @param current event to be captured\n */\nfunction shouldShortcircuitPreviousDebounce(previous, current) {\n // If there was no previous event, it should always be swapped for the new one.\n if (!previous) {\n return true;\n }\n // If both events have different type, then user definitely performed two separate actions. e.g. click + keypress.\n if (previous.type !== current.type) {\n return true;\n }\n try {\n // If both events have the same type, it's still possible that actions were performed on different targets.\n // e.g. 2 clicks on different buttons.\n if (previous.target !== current.target) {\n return true;\n }\n }\n catch (e) {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n // If both events have the same type _and_ same `target` (an element which triggered an event, _not necessarily_\n // to which an event listener was attached), we treat them as the same action, as we want to capture\n // only one breadcrumb. e.g. multiple clicks on the same button, or typing inside a user input box.\n return false;\n}\n/**\n * Decide whether an event should be captured.\n * @param event event to be captured\n */\nfunction shouldSkipDOMEvent(event) {\n // We are only interested in filtering `keypress` events for now.\n if (event.type !== 'keypress') {\n return false;\n }\n try {\n var target = event.target;\n if (!target || !target.tagName) {\n return true;\n }\n // Only consider keypress events on actual input elements. This will disregard keypresses targeting body\n // e.g.tabbing through elements, hotkeys, etc.\n if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {\n return false;\n }\n }\n catch (e) {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n return true;\n}\n/**\n * Wraps addEventListener to capture UI breadcrumbs\n * @param handler function that will be triggered\n * @param globalListener indicates whether event was captured by the global event listener\n * @returns wrapped breadcrumb events handler\n * @hidden\n */\nfunction makeDOMEventHandler(handler, globalListener) {\n if (globalListener === void 0) { globalListener = false; }\n return function (event) {\n // It's possible this handler might trigger multiple times for the same\n // event (e.g. event propagation through node ancestors).\n // Ignore if we've already captured that event.\n if (!event || lastCapturedEvent === event) {\n return;\n }\n // We always want to skip _some_ events.\n if (shouldSkipDOMEvent(event)) {\n return;\n }\n var name = event.type === 'keypress' ? 'input' : event.type;\n // If there is no debounce timer, it means that we can safely capture the new event and store it for future comparisons.\n if (debounceTimerID === undefined) {\n handler({\n event: event,\n name: name,\n global: globalListener,\n });\n lastCapturedEvent = event;\n }\n // If there is a debounce awaiting, see if the new event is different enough to treat it as a unique one.\n // If that's the case, emit the previous event and store locally the newly-captured DOM event.\n else if (shouldShortcircuitPreviousDebounce(lastCapturedEvent, event)) {\n handler({\n event: event,\n name: name,\n global: globalListener,\n });\n lastCapturedEvent = event;\n }\n // Start a new debounce timer that will prevent us from capturing multiple events that should be grouped together.\n clearTimeout(debounceTimerID);\n debounceTimerID = global.setTimeout(function () {\n debounceTimerID = undefined;\n }, debounceDuration);\n };\n}\n/** JSDoc */\nfunction instrumentDOM() {\n if (!('document' in global)) {\n return;\n }\n // Make it so that any click or keypress that is unhandled / bubbled up all the way to the document triggers our dom\n // handlers. (Normally we have only one, which captures a breadcrumb for each click or keypress.) Do this before\n // we instrument `addEventListener` so that we don't end up attaching this handler twice.\n var triggerDOMHandler = triggerHandlers.bind(null, 'dom');\n var globalDOMEventHandler = makeDOMEventHandler(triggerDOMHandler, true);\n global.document.addEventListener('click', globalDOMEventHandler, false);\n global.document.addEventListener('keypress', globalDOMEventHandler, false);\n // After hooking into click and keypress events bubbled up to `document`, we also hook into user-handled\n // clicks & keypresses, by adding an event listener of our own to any element to which they add a listener. That\n // way, whenever one of their handlers is triggered, ours will be, too. (This is needed because their handler\n // could potentially prevent the event from bubbling up to our global listeners. This way, our handler are still\n // guaranteed to fire at least once.)\n ['EventTarget', 'Node'].forEach(function (target) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var proto = global[target] && global[target].prototype;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n fill(proto, 'addEventListener', function (originalAddEventListener) {\n return function (type, listener, options) {\n if (type === 'click' || type == 'keypress') {\n try {\n var el = this;\n var handlers_1 = (el.__sentry_instrumentation_handlers__ = el.__sentry_instrumentation_handlers__ || {});\n var handlerForType = (handlers_1[type] = handlers_1[type] || { refCount: 0 });\n if (!handlerForType.handler) {\n var handler = makeDOMEventHandler(triggerDOMHandler);\n handlerForType.handler = handler;\n originalAddEventListener.call(this, type, handler, options);\n }\n handlerForType.refCount += 1;\n }\n catch (e) {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n return originalAddEventListener.call(this, type, listener, options);\n };\n });\n fill(proto, 'removeEventListener', function (originalRemoveEventListener) {\n return function (type, listener, options) {\n if (type === 'click' || type == 'keypress') {\n try {\n var el = this;\n var handlers_2 = el.__sentry_instrumentation_handlers__ || {};\n var handlerForType = handlers_2[type];\n if (handlerForType) {\n handlerForType.refCount -= 1;\n // If there are no longer any custom handlers of the current type on this element, we can remove ours, too.\n if (handlerForType.refCount <= 0) {\n originalRemoveEventListener.call(this, type, handlerForType.handler, options);\n handlerForType.handler = undefined;\n delete handlers_2[type]; // eslint-disable-line @typescript-eslint/no-dynamic-delete\n }\n // If there are no longer any custom handlers of any type on this element, cleanup everything.\n if (Object.keys(handlers_2).length === 0) {\n delete el.__sentry_instrumentation_handlers__;\n }\n }\n }\n catch (e) {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n return originalRemoveEventListener.call(this, type, listener, options);\n };\n });\n });\n}\nvar _oldOnErrorHandler = null;\n/** JSDoc */\nfunction instrumentError() {\n _oldOnErrorHandler = global.onerror;\n global.onerror = function (msg, url, line, column, error) {\n triggerHandlers('error', {\n column: column,\n error: error,\n line: line,\n msg: msg,\n url: url,\n });\n if (_oldOnErrorHandler) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnErrorHandler.apply(this, arguments);\n }\n return false;\n };\n}\nvar _oldOnUnhandledRejectionHandler = null;\n/** JSDoc */\nfunction instrumentUnhandledRejection() {\n _oldOnUnhandledRejectionHandler = global.onunhandledrejection;\n global.onunhandledrejection = function (e) {\n triggerHandlers('unhandledrejection', e);\n if (_oldOnUnhandledRejectionHandler) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnUnhandledRejectionHandler.apply(this, arguments);\n }\n return true;\n };\n}\n//# sourceMappingURL=instrument.js.map","var SqlString = exports;\n\nvar ID_GLOBAL_REGEXP = /`/g;\nvar QUAL_GLOBAL_REGEXP = /\\./g;\nvar CHARS_GLOBAL_REGEXP = /[\\0\\b\\t\\n\\r\\x1a\\\"\\'\\\\]/g; // eslint-disable-line no-control-regex\nvar CHARS_ESCAPE_MAP = {\n '\\0' : '\\\\0',\n '\\b' : '\\\\b',\n '\\t' : '\\\\t',\n '\\n' : '\\\\n',\n '\\r' : '\\\\r',\n '\\x1a' : '\\\\Z',\n '\"' : '\\\\\"',\n '\\'' : '\\\\\\'',\n '\\\\' : '\\\\\\\\'\n};\n\nSqlString.escapeId = function escapeId(val, forbidQualified) {\n if (Array.isArray(val)) {\n var sql = '';\n\n for (var i = 0; i < val.length; i++) {\n sql += (i === 0 ? '' : ', ') + SqlString.escapeId(val[i], forbidQualified);\n }\n\n return sql;\n } else if (forbidQualified) {\n return '`' + String(val).replace(ID_GLOBAL_REGEXP, '``') + '`';\n } else {\n return '`' + String(val).replace(ID_GLOBAL_REGEXP, '``').replace(QUAL_GLOBAL_REGEXP, '`.`') + '`';\n }\n};\n\nSqlString.escape = function escape(val, stringifyObjects, timeZone) {\n if (val === undefined || val === null) {\n return 'NULL';\n }\n\n switch (typeof val) {\n case 'boolean': return (val) ? 'true' : 'false';\n case 'number': return val + '';\n case 'object':\n if (val instanceof Date) {\n return SqlString.dateToString(val, timeZone || 'local');\n } else if (Array.isArray(val)) {\n return SqlString.arrayToList(val, timeZone);\n } else if (Buffer.isBuffer(val)) {\n return SqlString.bufferToString(val);\n } else if (typeof val.toSqlString === 'function') {\n return String(val.toSqlString());\n } else if (stringifyObjects) {\n return escapeString(val.toString());\n } else {\n return SqlString.objectToValues(val, timeZone);\n }\n default: return escapeString(val);\n }\n};\n\nSqlString.arrayToList = function arrayToList(array, timeZone) {\n var sql = '';\n\n for (var i = 0; i < array.length; i++) {\n var val = array[i];\n\n if (Array.isArray(val)) {\n sql += (i === 0 ? '' : ', ') + '(' + SqlString.arrayToList(val, timeZone) + ')';\n } else {\n sql += (i === 0 ? '' : ', ') + SqlString.escape(val, true, timeZone);\n }\n }\n\n return sql;\n};\n\nSqlString.format = function format(sql, values, stringifyObjects, timeZone) {\n if (values == null) {\n return sql;\n }\n\n if (!Array.isArray(values)) {\n values = [values];\n }\n\n var chunkIndex = 0;\n var placeholdersRegex = /\\?+/g;\n var result = '';\n var valuesIndex = 0;\n var match;\n\n while (valuesIndex < values.length && (match = placeholdersRegex.exec(sql))) {\n var len = match[0].length;\n\n if (len > 2) {\n continue;\n }\n\n var value = len === 2\n ? SqlString.escapeId(values[valuesIndex])\n : SqlString.escape(values[valuesIndex], stringifyObjects, timeZone);\n\n result += sql.slice(chunkIndex, match.index) + value;\n chunkIndex = placeholdersRegex.lastIndex;\n valuesIndex++;\n }\n\n if (chunkIndex === 0) {\n // Nothing was replaced\n return sql;\n }\n\n if (chunkIndex < sql.length) {\n return result + sql.slice(chunkIndex);\n }\n\n return result;\n};\n\nSqlString.dateToString = function dateToString(date, timeZone) {\n var dt = new Date(date);\n\n if (isNaN(dt.getTime())) {\n return 'NULL';\n }\n\n var year;\n var month;\n var day;\n var hour;\n var minute;\n var second;\n var millisecond;\n\n if (timeZone === 'local') {\n year = dt.getFullYear();\n month = dt.getMonth() + 1;\n day = dt.getDate();\n hour = dt.getHours();\n minute = dt.getMinutes();\n second = dt.getSeconds();\n millisecond = dt.getMilliseconds();\n } else {\n var tz = convertTimezone(timeZone);\n\n if (tz !== false && tz !== 0) {\n dt.setTime(dt.getTime() + (tz * 60000));\n }\n\n year = dt.getUTCFullYear();\n month = dt.getUTCMonth() + 1;\n day = dt.getUTCDate();\n hour = dt.getUTCHours();\n minute = dt.getUTCMinutes();\n second = dt.getUTCSeconds();\n millisecond = dt.getUTCMilliseconds();\n }\n\n // YYYY-MM-DD HH:mm:ss.mmm\n var str = zeroPad(year, 4) + '-' + zeroPad(month, 2) + '-' + zeroPad(day, 2) + ' ' +\n zeroPad(hour, 2) + ':' + zeroPad(minute, 2) + ':' + zeroPad(second, 2) + '.' +\n zeroPad(millisecond, 3);\n\n return escapeString(str);\n};\n\nSqlString.bufferToString = function bufferToString(buffer) {\n return 'X' + escapeString(buffer.toString('hex'));\n};\n\nSqlString.objectToValues = function objectToValues(object, timeZone) {\n var sql = '';\n\n for (var key in object) {\n var val = object[key];\n\n if (typeof val === 'function') {\n continue;\n }\n\n sql += (sql.length === 0 ? '' : ', ') + SqlString.escapeId(key) + ' = ' + SqlString.escape(val, true, timeZone);\n }\n\n return sql;\n};\n\nSqlString.raw = function raw(sql) {\n if (typeof sql !== 'string') {\n throw new TypeError('argument sql must be a string');\n }\n\n return {\n toSqlString: function toSqlString() { return sql; }\n };\n};\n\nfunction escapeString(val) {\n var chunkIndex = CHARS_GLOBAL_REGEXP.lastIndex = 0;\n var escapedVal = '';\n var match;\n\n while ((match = CHARS_GLOBAL_REGEXP.exec(val))) {\n escapedVal += val.slice(chunkIndex, match.index) + CHARS_ESCAPE_MAP[match[0]];\n chunkIndex = CHARS_GLOBAL_REGEXP.lastIndex;\n }\n\n if (chunkIndex === 0) {\n // Nothing was escaped\n return \"'\" + val + \"'\";\n }\n\n if (chunkIndex < val.length) {\n return \"'\" + escapedVal + val.slice(chunkIndex) + \"'\";\n }\n\n return \"'\" + escapedVal + \"'\";\n}\n\nfunction zeroPad(number, length) {\n number = number.toString();\n while (number.length < length) {\n number = '0' + number;\n }\n\n return number;\n}\n\nfunction convertTimezone(tz) {\n if (tz === 'Z') {\n return 0;\n }\n\n var m = tz.match(/([\\+\\-\\s])(\\d\\d):?(\\d\\d)?/);\n if (m) {\n return (m[1] === '-' ? -1 : 1) * (parseInt(m[2], 10) + ((m[3] ? parseInt(m[3], 10) : 0) / 60)) * 60;\n }\n return false;\n}\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","module.exports = Long;\r\n\r\n/**\r\n * wasm optimizations, to do native i64 multiplication and divide\r\n */\r\nvar wasm = null;\r\n\r\ntry {\r\n wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([\r\n 0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11\r\n ])), {}).exports;\r\n} catch (e) {\r\n // no wasm support :(\r\n}\r\n\r\n/**\r\n * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.\r\n * See the from* functions below for more convenient ways of constructing Longs.\r\n * @exports Long\r\n * @class A Long class for representing a 64 bit two's-complement integer value.\r\n * @param {number} low The low (signed) 32 bits of the long\r\n * @param {number} high The high (signed) 32 bits of the long\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @constructor\r\n */\r\nfunction Long(low, high, unsigned) {\r\n\r\n /**\r\n * The low 32 bits as a signed value.\r\n * @type {number}\r\n */\r\n this.low = low | 0;\r\n\r\n /**\r\n * The high 32 bits as a signed value.\r\n * @type {number}\r\n */\r\n this.high = high | 0;\r\n\r\n /**\r\n * Whether unsigned or not.\r\n * @type {boolean}\r\n */\r\n this.unsigned = !!unsigned;\r\n}\r\n\r\n// The internal representation of a long is the two given signed, 32-bit values.\r\n// We use 32-bit pieces because these are the size of integers on which\r\n// Javascript performs bit-operations. For operations like addition and\r\n// multiplication, we split each number into 16 bit pieces, which can easily be\r\n// multiplied within Javascript's floating-point representation without overflow\r\n// or change in sign.\r\n//\r\n// In the algorithms below, we frequently reduce the negative case to the\r\n// positive case by negating the input(s) and then post-processing the result.\r\n// Note that we must ALWAYS check specially whether those values are MIN_VALUE\r\n// (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as\r\n// a positive number, it overflows back into a negative). Not handling this\r\n// case would often result in infinite recursion.\r\n//\r\n// Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*\r\n// methods on which they depend.\r\n\r\n/**\r\n * An indicator used to reliably determine if an object is a Long or not.\r\n * @type {boolean}\r\n * @const\r\n * @private\r\n */\r\nLong.prototype.__isLong__;\r\n\r\nObject.defineProperty(Long.prototype, \"__isLong__\", { value: true });\r\n\r\n/**\r\n * @function\r\n * @param {*} obj Object\r\n * @returns {boolean}\r\n * @inner\r\n */\r\nfunction isLong(obj) {\r\n return (obj && obj[\"__isLong__\"]) === true;\r\n}\r\n\r\n/**\r\n * Tests if the specified object is a Long.\r\n * @function\r\n * @param {*} obj Object\r\n * @returns {boolean}\r\n */\r\nLong.isLong = isLong;\r\n\r\n/**\r\n * A cache of the Long representations of small integer values.\r\n * @type {!Object}\r\n * @inner\r\n */\r\nvar INT_CACHE = {};\r\n\r\n/**\r\n * A cache of the Long representations of small unsigned integer values.\r\n * @type {!Object}\r\n * @inner\r\n */\r\nvar UINT_CACHE = {};\r\n\r\n/**\r\n * @param {number} value\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromInt(value, unsigned) {\r\n var obj, cachedObj, cache;\r\n if (unsigned) {\r\n value >>>= 0;\r\n if (cache = (0 <= value && value < 256)) {\r\n cachedObj = UINT_CACHE[value];\r\n if (cachedObj)\r\n return cachedObj;\r\n }\r\n obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);\r\n if (cache)\r\n UINT_CACHE[value] = obj;\r\n return obj;\r\n } else {\r\n value |= 0;\r\n if (cache = (-128 <= value && value < 128)) {\r\n cachedObj = INT_CACHE[value];\r\n if (cachedObj)\r\n return cachedObj;\r\n }\r\n obj = fromBits(value, value < 0 ? -1 : 0, false);\r\n if (cache)\r\n INT_CACHE[value] = obj;\r\n return obj;\r\n }\r\n}\r\n\r\n/**\r\n * Returns a Long representing the given 32 bit integer value.\r\n * @function\r\n * @param {number} value The 32 bit integer in question\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromInt = fromInt;\r\n\r\n/**\r\n * @param {number} value\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromNumber(value, unsigned) {\r\n if (isNaN(value))\r\n return unsigned ? UZERO : ZERO;\r\n if (unsigned) {\r\n if (value < 0)\r\n return UZERO;\r\n if (value >= TWO_PWR_64_DBL)\r\n return MAX_UNSIGNED_VALUE;\r\n } else {\r\n if (value <= -TWO_PWR_63_DBL)\r\n return MIN_VALUE;\r\n if (value + 1 >= TWO_PWR_63_DBL)\r\n return MAX_VALUE;\r\n }\r\n if (value < 0)\r\n return fromNumber(-value, unsigned).neg();\r\n return fromBits((value % TWO_PWR_32_DBL) | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);\r\n}\r\n\r\n/**\r\n * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.\r\n * @function\r\n * @param {number} value The number in question\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromNumber = fromNumber;\r\n\r\n/**\r\n * @param {number} lowBits\r\n * @param {number} highBits\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromBits(lowBits, highBits, unsigned) {\r\n return new Long(lowBits, highBits, unsigned);\r\n}\r\n\r\n/**\r\n * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is\r\n * assumed to use 32 bits.\r\n * @function\r\n * @param {number} lowBits The low 32 bits\r\n * @param {number} highBits The high 32 bits\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromBits = fromBits;\r\n\r\n/**\r\n * @function\r\n * @param {number} base\r\n * @param {number} exponent\r\n * @returns {number}\r\n * @inner\r\n */\r\nvar pow_dbl = Math.pow; // Used 4 times (4*8 to 15+4)\r\n\r\n/**\r\n * @param {string} str\r\n * @param {(boolean|number)=} unsigned\r\n * @param {number=} radix\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromString(str, unsigned, radix) {\r\n if (str.length === 0)\r\n throw Error('empty string');\r\n if (str === \"NaN\" || str === \"Infinity\" || str === \"+Infinity\" || str === \"-Infinity\")\r\n return ZERO;\r\n if (typeof unsigned === 'number') {\r\n // For goog.math.long compatibility\r\n radix = unsigned,\r\n unsigned = false;\r\n } else {\r\n unsigned = !! unsigned;\r\n }\r\n radix = radix || 10;\r\n if (radix < 2 || 36 < radix)\r\n throw RangeError('radix');\r\n\r\n var p;\r\n if ((p = str.indexOf('-')) > 0)\r\n throw Error('interior hyphen');\r\n else if (p === 0) {\r\n return fromString(str.substring(1), unsigned, radix).neg();\r\n }\r\n\r\n // Do several (8) digits each time through the loop, so as to\r\n // minimize the calls to the very expensive emulated div.\r\n var radixToPower = fromNumber(pow_dbl(radix, 8));\r\n\r\n var result = ZERO;\r\n for (var i = 0; i < str.length; i += 8) {\r\n var size = Math.min(8, str.length - i),\r\n value = parseInt(str.substring(i, i + size), radix);\r\n if (size < 8) {\r\n var power = fromNumber(pow_dbl(radix, size));\r\n result = result.mul(power).add(fromNumber(value));\r\n } else {\r\n result = result.mul(radixToPower);\r\n result = result.add(fromNumber(value));\r\n }\r\n }\r\n result.unsigned = unsigned;\r\n return result;\r\n}\r\n\r\n/**\r\n * Returns a Long representation of the given string, written using the specified radix.\r\n * @function\r\n * @param {string} str The textual representation of the Long\r\n * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed\r\n * @param {number=} radix The radix in which the text is written (2-36), defaults to 10\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromString = fromString;\r\n\r\n/**\r\n * @function\r\n * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromValue(val, unsigned) {\r\n if (typeof val === 'number')\r\n return fromNumber(val, unsigned);\r\n if (typeof val === 'string')\r\n return fromString(val, unsigned);\r\n // Throws for non-objects, converts non-instanceof Long:\r\n return fromBits(val.low, val.high, typeof unsigned === 'boolean' ? unsigned : val.unsigned);\r\n}\r\n\r\n/**\r\n * Converts the specified value to a Long using the appropriate from* function for its type.\r\n * @function\r\n * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val Value\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long}\r\n */\r\nLong.fromValue = fromValue;\r\n\r\n// NOTE: the compiler should inline these constant values below and then remove these variables, so there should be\r\n// no runtime penalty for these.\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_16_DBL = 1 << 16;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_24_DBL = 1 << 24;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;\r\n\r\n/**\r\n * @type {!Long}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar ZERO = fromInt(0);\r\n\r\n/**\r\n * Signed zero.\r\n * @type {!Long}\r\n */\r\nLong.ZERO = ZERO;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar UZERO = fromInt(0, true);\r\n\r\n/**\r\n * Unsigned zero.\r\n * @type {!Long}\r\n */\r\nLong.UZERO = UZERO;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar ONE = fromInt(1);\r\n\r\n/**\r\n * Signed one.\r\n * @type {!Long}\r\n */\r\nLong.ONE = ONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar UONE = fromInt(1, true);\r\n\r\n/**\r\n * Unsigned one.\r\n * @type {!Long}\r\n */\r\nLong.UONE = UONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar NEG_ONE = fromInt(-1);\r\n\r\n/**\r\n * Signed negative one.\r\n * @type {!Long}\r\n */\r\nLong.NEG_ONE = NEG_ONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MAX_VALUE = fromBits(0xFFFFFFFF|0, 0x7FFFFFFF|0, false);\r\n\r\n/**\r\n * Maximum signed value.\r\n * @type {!Long}\r\n */\r\nLong.MAX_VALUE = MAX_VALUE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MAX_UNSIGNED_VALUE = fromBits(0xFFFFFFFF|0, 0xFFFFFFFF|0, true);\r\n\r\n/**\r\n * Maximum unsigned value.\r\n * @type {!Long}\r\n */\r\nLong.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MIN_VALUE = fromBits(0, 0x80000000|0, false);\r\n\r\n/**\r\n * Minimum signed value.\r\n * @type {!Long}\r\n */\r\nLong.MIN_VALUE = MIN_VALUE;\r\n\r\n/**\r\n * @alias Long.prototype\r\n * @inner\r\n */\r\nvar LongPrototype = Long.prototype;\r\n\r\n/**\r\n * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.\r\n * @returns {number}\r\n */\r\nLongPrototype.toInt = function toInt() {\r\n return this.unsigned ? this.low >>> 0 : this.low;\r\n};\r\n\r\n/**\r\n * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).\r\n * @returns {number}\r\n */\r\nLongPrototype.toNumber = function toNumber() {\r\n if (this.unsigned)\r\n return ((this.high >>> 0) * TWO_PWR_32_DBL) + (this.low >>> 0);\r\n return this.high * TWO_PWR_32_DBL + (this.low >>> 0);\r\n};\r\n\r\n/**\r\n * Converts the Long to a string written in the specified radix.\r\n * @param {number=} radix Radix (2-36), defaults to 10\r\n * @returns {string}\r\n * @override\r\n * @throws {RangeError} If `radix` is out of range\r\n */\r\nLongPrototype.toString = function toString(radix) {\r\n radix = radix || 10;\r\n if (radix < 2 || 36 < radix)\r\n throw RangeError('radix');\r\n if (this.isZero())\r\n return '0';\r\n if (this.isNegative()) { // Unsigned Longs are never negative\r\n if (this.eq(MIN_VALUE)) {\r\n // We need to change the Long value before it can be negated, so we remove\r\n // the bottom-most digit in this base and then recurse to do the rest.\r\n var radixLong = fromNumber(radix),\r\n div = this.div(radixLong),\r\n rem1 = div.mul(radixLong).sub(this);\r\n return div.toString(radix) + rem1.toInt().toString(radix);\r\n } else\r\n return '-' + this.neg().toString(radix);\r\n }\r\n\r\n // Do several (6) digits each time through the loop, so as to\r\n // minimize the calls to the very expensive emulated div.\r\n var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned),\r\n rem = this;\r\n var result = '';\r\n while (true) {\r\n var remDiv = rem.div(radixToPower),\r\n intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0,\r\n digits = intval.toString(radix);\r\n rem = remDiv;\r\n if (rem.isZero())\r\n return digits + result;\r\n else {\r\n while (digits.length < 6)\r\n digits = '0' + digits;\r\n result = '' + digits + result;\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * Gets the high 32 bits as a signed integer.\r\n * @returns {number} Signed high bits\r\n */\r\nLongPrototype.getHighBits = function getHighBits() {\r\n return this.high;\r\n};\r\n\r\n/**\r\n * Gets the high 32 bits as an unsigned integer.\r\n * @returns {number} Unsigned high bits\r\n */\r\nLongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {\r\n return this.high >>> 0;\r\n};\r\n\r\n/**\r\n * Gets the low 32 bits as a signed integer.\r\n * @returns {number} Signed low bits\r\n */\r\nLongPrototype.getLowBits = function getLowBits() {\r\n return this.low;\r\n};\r\n\r\n/**\r\n * Gets the low 32 bits as an unsigned integer.\r\n * @returns {number} Unsigned low bits\r\n */\r\nLongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {\r\n return this.low >>> 0;\r\n};\r\n\r\n/**\r\n * Gets the number of bits needed to represent the absolute value of this Long.\r\n * @returns {number}\r\n */\r\nLongPrototype.getNumBitsAbs = function getNumBitsAbs() {\r\n if (this.isNegative()) // Unsigned Longs are never negative\r\n return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();\r\n var val = this.high != 0 ? this.high : this.low;\r\n for (var bit = 31; bit > 0; bit--)\r\n if ((val & (1 << bit)) != 0)\r\n break;\r\n return this.high != 0 ? bit + 33 : bit + 1;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals zero.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isZero = function isZero() {\r\n return this.high === 0 && this.low === 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.eqz = LongPrototype.isZero;\r\n\r\n/**\r\n * Tests if this Long's value is negative.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isNegative = function isNegative() {\r\n return !this.unsigned && this.high < 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is positive.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isPositive = function isPositive() {\r\n return this.unsigned || this.high >= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is odd.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isOdd = function isOdd() {\r\n return (this.low & 1) === 1;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is even.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isEven = function isEven() {\r\n return (this.low & 1) === 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.equals = function equals(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n if (this.unsigned !== other.unsigned && (this.high >>> 31) === 1 && (other.high >>> 31) === 1)\r\n return false;\r\n return this.high === other.high && this.low === other.low;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.eq = LongPrototype.equals;\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.notEquals = function notEquals(other) {\r\n return !this.eq(/* validates */ other);\r\n};\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.neq = LongPrototype.notEquals;\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.ne = LongPrototype.notEquals;\r\n\r\n/**\r\n * Tests if this Long's value is less than the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lessThan = function lessThan(other) {\r\n return this.comp(/* validates */ other) < 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lt = LongPrototype.lessThan;\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {\r\n return this.comp(/* validates */ other) <= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lte = LongPrototype.lessThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.le = LongPrototype.lessThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is greater than the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.greaterThan = function greaterThan(other) {\r\n return this.comp(/* validates */ other) > 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.gt = LongPrototype.greaterThan;\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {\r\n return this.comp(/* validates */ other) >= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.gte = LongPrototype.greaterThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.ge = LongPrototype.greaterThanOrEqual;\r\n\r\n/**\r\n * Compares this Long's value with the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\r\n * if the given one is greater\r\n */\r\nLongPrototype.compare = function compare(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n if (this.eq(other))\r\n return 0;\r\n var thisNeg = this.isNegative(),\r\n otherNeg = other.isNegative();\r\n if (thisNeg && !otherNeg)\r\n return -1;\r\n if (!thisNeg && otherNeg)\r\n return 1;\r\n // At this point the sign bits are the same\r\n if (!this.unsigned)\r\n return this.sub(other).isNegative() ? -1 : 1;\r\n // Both are positive if at least one is unsigned\r\n return (other.high >>> 0) > (this.high >>> 0) || (other.high === this.high && (other.low >>> 0) > (this.low >>> 0)) ? -1 : 1;\r\n};\r\n\r\n/**\r\n * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\r\n * if the given one is greater\r\n */\r\nLongPrototype.comp = LongPrototype.compare;\r\n\r\n/**\r\n * Negates this Long's value.\r\n * @returns {!Long} Negated Long\r\n */\r\nLongPrototype.negate = function negate() {\r\n if (!this.unsigned && this.eq(MIN_VALUE))\r\n return MIN_VALUE;\r\n return this.not().add(ONE);\r\n};\r\n\r\n/**\r\n * Negates this Long's value. This is an alias of {@link Long#negate}.\r\n * @function\r\n * @returns {!Long} Negated Long\r\n */\r\nLongPrototype.neg = LongPrototype.negate;\r\n\r\n/**\r\n * Returns the sum of this and the specified Long.\r\n * @param {!Long|number|string} addend Addend\r\n * @returns {!Long} Sum\r\n */\r\nLongPrototype.add = function add(addend) {\r\n if (!isLong(addend))\r\n addend = fromValue(addend);\r\n\r\n // Divide each number into 4 chunks of 16 bits, and then sum the chunks.\r\n\r\n var a48 = this.high >>> 16;\r\n var a32 = this.high & 0xFFFF;\r\n var a16 = this.low >>> 16;\r\n var a00 = this.low & 0xFFFF;\r\n\r\n var b48 = addend.high >>> 16;\r\n var b32 = addend.high & 0xFFFF;\r\n var b16 = addend.low >>> 16;\r\n var b00 = addend.low & 0xFFFF;\r\n\r\n var c48 = 0, c32 = 0, c16 = 0, c00 = 0;\r\n c00 += a00 + b00;\r\n c16 += c00 >>> 16;\r\n c00 &= 0xFFFF;\r\n c16 += a16 + b16;\r\n c32 += c16 >>> 16;\r\n c16 &= 0xFFFF;\r\n c32 += a32 + b32;\r\n c48 += c32 >>> 16;\r\n c32 &= 0xFFFF;\r\n c48 += a48 + b48;\r\n c48 &= 0xFFFF;\r\n return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the difference of this and the specified Long.\r\n * @param {!Long|number|string} subtrahend Subtrahend\r\n * @returns {!Long} Difference\r\n */\r\nLongPrototype.subtract = function subtract(subtrahend) {\r\n if (!isLong(subtrahend))\r\n subtrahend = fromValue(subtrahend);\r\n return this.add(subtrahend.neg());\r\n};\r\n\r\n/**\r\n * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.\r\n * @function\r\n * @param {!Long|number|string} subtrahend Subtrahend\r\n * @returns {!Long} Difference\r\n */\r\nLongPrototype.sub = LongPrototype.subtract;\r\n\r\n/**\r\n * Returns the product of this and the specified Long.\r\n * @param {!Long|number|string} multiplier Multiplier\r\n * @returns {!Long} Product\r\n */\r\nLongPrototype.multiply = function multiply(multiplier) {\r\n if (this.isZero())\r\n return ZERO;\r\n if (!isLong(multiplier))\r\n multiplier = fromValue(multiplier);\r\n\r\n // use wasm support if present\r\n if (wasm) {\r\n var low = wasm.mul(this.low,\r\n this.high,\r\n multiplier.low,\r\n multiplier.high);\r\n return fromBits(low, wasm.get_high(), this.unsigned);\r\n }\r\n\r\n if (multiplier.isZero())\r\n return ZERO;\r\n if (this.eq(MIN_VALUE))\r\n return multiplier.isOdd() ? MIN_VALUE : ZERO;\r\n if (multiplier.eq(MIN_VALUE))\r\n return this.isOdd() ? MIN_VALUE : ZERO;\r\n\r\n if (this.isNegative()) {\r\n if (multiplier.isNegative())\r\n return this.neg().mul(multiplier.neg());\r\n else\r\n return this.neg().mul(multiplier).neg();\r\n } else if (multiplier.isNegative())\r\n return this.mul(multiplier.neg()).neg();\r\n\r\n // If both longs are small, use float multiplication\r\n if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))\r\n return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);\r\n\r\n // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.\r\n // We can skip products that would overflow.\r\n\r\n var a48 = this.high >>> 16;\r\n var a32 = this.high & 0xFFFF;\r\n var a16 = this.low >>> 16;\r\n var a00 = this.low & 0xFFFF;\r\n\r\n var b48 = multiplier.high >>> 16;\r\n var b32 = multiplier.high & 0xFFFF;\r\n var b16 = multiplier.low >>> 16;\r\n var b00 = multiplier.low & 0xFFFF;\r\n\r\n var c48 = 0, c32 = 0, c16 = 0, c00 = 0;\r\n c00 += a00 * b00;\r\n c16 += c00 >>> 16;\r\n c00 &= 0xFFFF;\r\n c16 += a16 * b00;\r\n c32 += c16 >>> 16;\r\n c16 &= 0xFFFF;\r\n c16 += a00 * b16;\r\n c32 += c16 >>> 16;\r\n c16 &= 0xFFFF;\r\n c32 += a32 * b00;\r\n c48 += c32 >>> 16;\r\n c32 &= 0xFFFF;\r\n c32 += a16 * b16;\r\n c48 += c32 >>> 16;\r\n c32 &= 0xFFFF;\r\n c32 += a00 * b32;\r\n c48 += c32 >>> 16;\r\n c32 &= 0xFFFF;\r\n c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;\r\n c48 &= 0xFFFF;\r\n return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.\r\n * @function\r\n * @param {!Long|number|string} multiplier Multiplier\r\n * @returns {!Long} Product\r\n */\r\nLongPrototype.mul = LongPrototype.multiply;\r\n\r\n/**\r\n * Returns this Long divided by the specified. The result is signed if this Long is signed or\r\n * unsigned if this Long is unsigned.\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Quotient\r\n */\r\nLongPrototype.divide = function divide(divisor) {\r\n if (!isLong(divisor))\r\n divisor = fromValue(divisor);\r\n if (divisor.isZero())\r\n throw Error('division by zero');\r\n\r\n // use wasm support if present\r\n if (wasm) {\r\n // guard against signed division overflow: the largest\r\n // negative number / -1 would be 1 larger than the largest\r\n // positive number, due to two's complement.\r\n if (!this.unsigned &&\r\n this.high === -0x80000000 &&\r\n divisor.low === -1 && divisor.high === -1) {\r\n // be consistent with non-wasm code path\r\n return this;\r\n }\r\n var low = (this.unsigned ? wasm.div_u : wasm.div_s)(\r\n this.low,\r\n this.high,\r\n divisor.low,\r\n divisor.high\r\n );\r\n return fromBits(low, wasm.get_high(), this.unsigned);\r\n }\r\n\r\n if (this.isZero())\r\n return this.unsigned ? UZERO : ZERO;\r\n var approx, rem, res;\r\n if (!this.unsigned) {\r\n // This section is only relevant for signed longs and is derived from the\r\n // closure library as a whole.\r\n if (this.eq(MIN_VALUE)) {\r\n if (divisor.eq(ONE) || divisor.eq(NEG_ONE))\r\n return MIN_VALUE; // recall that -MIN_VALUE == MIN_VALUE\r\n else if (divisor.eq(MIN_VALUE))\r\n return ONE;\r\n else {\r\n // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.\r\n var halfThis = this.shr(1);\r\n approx = halfThis.div(divisor).shl(1);\r\n if (approx.eq(ZERO)) {\r\n return divisor.isNegative() ? ONE : NEG_ONE;\r\n } else {\r\n rem = this.sub(divisor.mul(approx));\r\n res = approx.add(rem.div(divisor));\r\n return res;\r\n }\r\n }\r\n } else if (divisor.eq(MIN_VALUE))\r\n return this.unsigned ? UZERO : ZERO;\r\n if (this.isNegative()) {\r\n if (divisor.isNegative())\r\n return this.neg().div(divisor.neg());\r\n return this.neg().div(divisor).neg();\r\n } else if (divisor.isNegative())\r\n return this.div(divisor.neg()).neg();\r\n res = ZERO;\r\n } else {\r\n // The algorithm below has not been made for unsigned longs. It's therefore\r\n // required to take special care of the MSB prior to running it.\r\n if (!divisor.unsigned)\r\n divisor = divisor.toUnsigned();\r\n if (divisor.gt(this))\r\n return UZERO;\r\n if (divisor.gt(this.shru(1))) // 15 >>> 1 = 7 ; with divisor = 8 ; true\r\n return UONE;\r\n res = UZERO;\r\n }\r\n\r\n // Repeat the following until the remainder is less than other: find a\r\n // floating-point that approximates remainder / other *from below*, add this\r\n // into the result, and subtract it from the remainder. It is critical that\r\n // the approximate value is less than or equal to the real value so that the\r\n // remainder never becomes negative.\r\n rem = this;\r\n while (rem.gte(divisor)) {\r\n // Approximate the result of division. This may be a little greater or\r\n // smaller than the actual value.\r\n approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));\r\n\r\n // We will tweak the approximate result by changing it in the 48-th digit or\r\n // the smallest non-fractional digit, whichever is larger.\r\n var log2 = Math.ceil(Math.log(approx) / Math.LN2),\r\n delta = (log2 <= 48) ? 1 : pow_dbl(2, log2 - 48),\r\n\r\n // Decrease the approximation until it is smaller than the remainder. Note\r\n // that if it is too large, the product overflows and is negative.\r\n approxRes = fromNumber(approx),\r\n approxRem = approxRes.mul(divisor);\r\n while (approxRem.isNegative() || approxRem.gt(rem)) {\r\n approx -= delta;\r\n approxRes = fromNumber(approx, this.unsigned);\r\n approxRem = approxRes.mul(divisor);\r\n }\r\n\r\n // We know the answer can't be zero... and actually, zero would cause\r\n // infinite recursion since we would make no progress.\r\n if (approxRes.isZero())\r\n approxRes = ONE;\r\n\r\n res = res.add(approxRes);\r\n rem = rem.sub(approxRem);\r\n }\r\n return res;\r\n};\r\n\r\n/**\r\n * Returns this Long divided by the specified. This is an alias of {@link Long#divide}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Quotient\r\n */\r\nLongPrototype.div = LongPrototype.divide;\r\n\r\n/**\r\n * Returns this Long modulo the specified.\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.modulo = function modulo(divisor) {\r\n if (!isLong(divisor))\r\n divisor = fromValue(divisor);\r\n\r\n // use wasm support if present\r\n if (wasm) {\r\n var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(\r\n this.low,\r\n this.high,\r\n divisor.low,\r\n divisor.high\r\n );\r\n return fromBits(low, wasm.get_high(), this.unsigned);\r\n }\r\n\r\n return this.sub(this.div(divisor).mul(divisor));\r\n};\r\n\r\n/**\r\n * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.mod = LongPrototype.modulo;\r\n\r\n/**\r\n * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.rem = LongPrototype.modulo;\r\n\r\n/**\r\n * Returns the bitwise NOT of this Long.\r\n * @returns {!Long}\r\n */\r\nLongPrototype.not = function not() {\r\n return fromBits(~this.low, ~this.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise AND of this Long and the specified.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.and = function and(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n return fromBits(this.low & other.low, this.high & other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise OR of this Long and the specified.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.or = function or(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n return fromBits(this.low | other.low, this.high | other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise XOR of this Long and the given one.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.xor = function xor(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits shifted to the left by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftLeft = function shiftLeft(numBits) {\r\n if (isLong(numBits))\r\n numBits = numBits.toInt();\r\n if ((numBits &= 63) === 0)\r\n return this;\r\n else if (numBits < 32)\r\n return fromBits(this.low << numBits, (this.high << numBits) | (this.low >>> (32 - numBits)), this.unsigned);\r\n else\r\n return fromBits(0, this.low << (numBits - 32), this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shl = LongPrototype.shiftLeft;\r\n\r\n/**\r\n * Returns this Long with bits arithmetically shifted to the right by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftRight = function shiftRight(numBits) {\r\n if (isLong(numBits))\r\n numBits = numBits.toInt();\r\n if ((numBits &= 63) === 0)\r\n return this;\r\n else if (numBits < 32)\r\n return fromBits((this.low >>> numBits) | (this.high << (32 - numBits)), this.high >> numBits, this.unsigned);\r\n else\r\n return fromBits(this.high >> (numBits - 32), this.high >= 0 ? 0 : -1, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shr = LongPrototype.shiftRight;\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {\r\n if (isLong(numBits))\r\n numBits = numBits.toInt();\r\n numBits &= 63;\r\n if (numBits === 0)\r\n return this;\r\n else {\r\n var high = this.high;\r\n if (numBits < 32) {\r\n var low = this.low;\r\n return fromBits((low >>> numBits) | (high << (32 - numBits)), high >>> numBits, this.unsigned);\r\n } else if (numBits === 32)\r\n return fromBits(high, 0, this.unsigned);\r\n else\r\n return fromBits(high >>> (numBits - 32), 0, this.unsigned);\r\n }\r\n};\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shru = LongPrototype.shiftRightUnsigned;\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shr_u = LongPrototype.shiftRightUnsigned;\r\n\r\n/**\r\n * Converts this Long to signed.\r\n * @returns {!Long} Signed long\r\n */\r\nLongPrototype.toSigned = function toSigned() {\r\n if (!this.unsigned)\r\n return this;\r\n return fromBits(this.low, this.high, false);\r\n};\r\n\r\n/**\r\n * Converts this Long to unsigned.\r\n * @returns {!Long} Unsigned long\r\n */\r\nLongPrototype.toUnsigned = function toUnsigned() {\r\n if (this.unsigned)\r\n return this;\r\n return fromBits(this.low, this.high, true);\r\n};\r\n\r\n/**\r\n * Converts this Long to its byte representation.\r\n * @param {boolean=} le Whether little or big endian, defaults to big endian\r\n * @returns {!Array.} Byte representation\r\n */\r\nLongPrototype.toBytes = function toBytes(le) {\r\n return le ? this.toBytesLE() : this.toBytesBE();\r\n};\r\n\r\n/**\r\n * Converts this Long to its little endian byte representation.\r\n * @returns {!Array.} Little endian byte representation\r\n */\r\nLongPrototype.toBytesLE = function toBytesLE() {\r\n var hi = this.high,\r\n lo = this.low;\r\n return [\r\n lo & 0xff,\r\n lo >>> 8 & 0xff,\r\n lo >>> 16 & 0xff,\r\n lo >>> 24 ,\r\n hi & 0xff,\r\n hi >>> 8 & 0xff,\r\n hi >>> 16 & 0xff,\r\n hi >>> 24\r\n ];\r\n};\r\n\r\n/**\r\n * Converts this Long to its big endian byte representation.\r\n * @returns {!Array.} Big endian byte representation\r\n */\r\nLongPrototype.toBytesBE = function toBytesBE() {\r\n var hi = this.high,\r\n lo = this.low;\r\n return [\r\n hi >>> 24 ,\r\n hi >>> 16 & 0xff,\r\n hi >>> 8 & 0xff,\r\n hi & 0xff,\r\n lo >>> 24 ,\r\n lo >>> 16 & 0xff,\r\n lo >>> 8 & 0xff,\r\n lo & 0xff\r\n ];\r\n};\r\n\r\n/**\r\n * Creates a Long from its byte representation.\r\n * @param {!Array.} bytes Byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @param {boolean=} le Whether little or big endian, defaults to big endian\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytes = function fromBytes(bytes, unsigned, le) {\r\n return le ? Long.fromBytesLE(bytes, unsigned) : Long.fromBytesBE(bytes, unsigned);\r\n};\r\n\r\n/**\r\n * Creates a Long from its little endian byte representation.\r\n * @param {!Array.} bytes Little endian byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytesLE = function fromBytesLE(bytes, unsigned) {\r\n return new Long(\r\n bytes[0] |\r\n bytes[1] << 8 |\r\n bytes[2] << 16 |\r\n bytes[3] << 24,\r\n bytes[4] |\r\n bytes[5] << 8 |\r\n bytes[6] << 16 |\r\n bytes[7] << 24,\r\n unsigned\r\n );\r\n};\r\n\r\n/**\r\n * Creates a Long from its big endian byte representation.\r\n * @param {!Array.} bytes Big endian byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytesBE = function fromBytesBE(bytes, unsigned) {\r\n return new Long(\r\n bytes[4] << 24 |\r\n bytes[5] << 16 |\r\n bytes[6] << 8 |\r\n bytes[7],\r\n bytes[0] << 24 |\r\n bytes[1] << 16 |\r\n bytes[2] << 8 |\r\n bytes[3],\r\n unsigned\r\n );\r\n};\r\n","\"use strict\";\n\nvar Buffer = require(\"safer-buffer\").Buffer;\n\nvar bomHandling = require(\"./bom-handling\"),\n iconv = module.exports;\n\n// All codecs and aliases are kept here, keyed by encoding name/alias.\n// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.\niconv.encodings = null;\n\n// Characters emitted in case of error.\niconv.defaultCharUnicode = '�';\niconv.defaultCharSingleByte = '?';\n\n// Public API.\niconv.encode = function encode(str, encoding, options) {\n str = \"\" + (str || \"\"); // Ensure string.\n\n var encoder = iconv.getEncoder(encoding, options);\n\n var res = encoder.write(str);\n var trail = encoder.end();\n \n return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res;\n}\n\niconv.decode = function decode(buf, encoding, options) {\n if (typeof buf === 'string') {\n if (!iconv.skipDecodeWarning) {\n console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding');\n iconv.skipDecodeWarning = true;\n }\n\n buf = Buffer.from(\"\" + (buf || \"\"), \"binary\"); // Ensure buffer.\n }\n\n var decoder = iconv.getDecoder(encoding, options);\n\n var res = decoder.write(buf);\n var trail = decoder.end();\n\n return trail ? (res + trail) : res;\n}\n\niconv.encodingExists = function encodingExists(enc) {\n try {\n iconv.getCodec(enc);\n return true;\n } catch (e) {\n return false;\n }\n}\n\n// Legacy aliases to convert functions\niconv.toEncoding = iconv.encode;\niconv.fromEncoding = iconv.decode;\n\n// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.\niconv._codecDataCache = {};\niconv.getCodec = function getCodec(encoding) {\n if (!iconv.encodings)\n iconv.encodings = require(\"../encodings\"); // Lazy load all encoding definitions.\n \n // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.\n var enc = iconv._canonicalizeEncoding(encoding);\n\n // Traverse iconv.encodings to find actual codec.\n var codecOptions = {};\n while (true) {\n var codec = iconv._codecDataCache[enc];\n if (codec)\n return codec;\n\n var codecDef = iconv.encodings[enc];\n\n switch (typeof codecDef) {\n case \"string\": // Direct alias to other encoding.\n enc = codecDef;\n break;\n\n case \"object\": // Alias with options. Can be layered.\n for (var key in codecDef)\n codecOptions[key] = codecDef[key];\n\n if (!codecOptions.encodingName)\n codecOptions.encodingName = enc;\n \n enc = codecDef.type;\n break;\n\n case \"function\": // Codec itself.\n if (!codecOptions.encodingName)\n codecOptions.encodingName = enc;\n\n // The codec function must load all tables and return object with .encoder and .decoder methods.\n // It'll be called only once (for each different options object).\n codec = new codecDef(codecOptions, iconv);\n\n iconv._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later.\n return codec;\n\n default:\n throw new Error(\"Encoding not recognized: '\" + encoding + \"' (searched as: '\"+enc+\"')\");\n }\n }\n}\n\niconv._canonicalizeEncoding = function(encoding) {\n // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.\n return (''+encoding).toLowerCase().replace(/:\\d{4}$|[^0-9a-z]/g, \"\");\n}\n\niconv.getEncoder = function getEncoder(encoding, options) {\n var codec = iconv.getCodec(encoding),\n encoder = new codec.encoder(options, codec);\n\n if (codec.bomAware && options && options.addBOM)\n encoder = new bomHandling.PrependBOM(encoder, options);\n\n return encoder;\n}\n\niconv.getDecoder = function getDecoder(encoding, options) {\n var codec = iconv.getCodec(encoding),\n decoder = new codec.decoder(options, codec);\n\n if (codec.bomAware && !(options && options.stripBOM === false))\n decoder = new bomHandling.StripBOM(decoder, options);\n\n return decoder;\n}\n\n// Streaming API\n// NOTE: Streaming API naturally depends on 'stream' module from Node.js. Unfortunately in browser environments this module can add\n// up to 100Kb to the output bundle. To avoid unnecessary code bloat, we don't enable Streaming API in browser by default.\n// If you would like to enable it explicitly, please add the following code to your app:\n// > iconv.enableStreamingAPI(require('stream'));\niconv.enableStreamingAPI = function enableStreamingAPI(stream_module) {\n if (iconv.supportsStreams)\n return;\n\n // Dependency-inject stream module to create IconvLite stream classes.\n var streams = require(\"./streams\")(stream_module);\n\n // Not public API yet, but expose the stream classes.\n iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;\n iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;\n\n // Streaming API.\n iconv.encodeStream = function encodeStream(encoding, options) {\n return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);\n }\n\n iconv.decodeStream = function decodeStream(encoding, options) {\n return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);\n }\n\n iconv.supportsStreams = true;\n}\n\n// Enable Streaming API automatically if 'stream' module is available and non-empty (the majority of environments).\nvar stream_module;\ntry {\n stream_module = require(\"stream\");\n} catch (e) {}\n\nif (stream_module && stream_module.Transform) {\n iconv.enableStreamingAPI(stream_module);\n\n} else {\n // In rare cases where 'stream' module is not available by default, throw a helpful exception.\n iconv.encodeStream = iconv.decodeStream = function() {\n throw new Error(\"iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.\");\n };\n}\n\nif (\"Ā\" != \"\\u0100\") {\n console.error(\"iconv-lite warning: js files use non-utf8 encoding. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info.\");\n}\n","\"use strict\";\n\nvar BOMChar = '\\uFEFF';\n\nexports.PrependBOM = PrependBOMWrapper\nfunction PrependBOMWrapper(encoder, options) {\n this.encoder = encoder;\n this.addBOM = true;\n}\n\nPrependBOMWrapper.prototype.write = function(str) {\n if (this.addBOM) {\n str = BOMChar + str;\n this.addBOM = false;\n }\n\n return this.encoder.write(str);\n}\n\nPrependBOMWrapper.prototype.end = function() {\n return this.encoder.end();\n}\n\n\n//------------------------------------------------------------------------------\n\nexports.StripBOM = StripBOMWrapper;\nfunction StripBOMWrapper(decoder, options) {\n this.decoder = decoder;\n this.pass = false;\n this.options = options || {};\n}\n\nStripBOMWrapper.prototype.write = function(buf) {\n var res = this.decoder.write(buf);\n if (this.pass || !res)\n return res;\n\n if (res[0] === BOMChar) {\n res = res.slice(1);\n if (typeof this.options.stripBOM === 'function')\n this.options.stripBOM();\n }\n\n this.pass = true;\n return res;\n}\n\nStripBOMWrapper.prototype.end = function() {\n return this.decoder.end();\n}\n\n","\"use strict\";\n\n// Update this array if you add/rename/remove files in this directory.\n// We support Browserify by skipping automatic module discovery and requiring modules directly.\nvar modules = [\n require(\"./internal\"),\n require(\"./utf32\"),\n require(\"./utf16\"),\n require(\"./utf7\"),\n require(\"./sbcs-codec\"),\n require(\"./sbcs-data\"),\n require(\"./sbcs-data-generated\"),\n require(\"./dbcs-codec\"),\n require(\"./dbcs-data\"),\n];\n\n// Put all encoding/alias/codec definitions to single object and export it.\nfor (var i = 0; i < modules.length; i++) {\n var module = modules[i];\n for (var enc in module)\n if (Object.prototype.hasOwnProperty.call(module, enc))\n exports[enc] = module[enc];\n}\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Export Node.js internal encodings.\n\nmodule.exports = {\n // Encodings\n utf8: { type: \"_internal\", bomAware: true},\n cesu8: { type: \"_internal\", bomAware: true},\n unicode11utf8: \"utf8\",\n\n ucs2: { type: \"_internal\", bomAware: true},\n utf16le: \"ucs2\",\n\n binary: { type: \"_internal\" },\n base64: { type: \"_internal\" },\n hex: { type: \"_internal\" },\n\n // Codec.\n _internal: InternalCodec,\n};\n\n//------------------------------------------------------------------------------\n\nfunction InternalCodec(codecOptions, iconv) {\n this.enc = codecOptions.encodingName;\n this.bomAware = codecOptions.bomAware;\n\n if (this.enc === \"base64\")\n this.encoder = InternalEncoderBase64;\n else if (this.enc === \"cesu8\") {\n this.enc = \"utf8\"; // Use utf8 for decoding.\n this.encoder = InternalEncoderCesu8;\n\n // Add decoder for versions of Node not supporting CESU-8\n if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') {\n this.decoder = InternalDecoderCesu8;\n this.defaultCharUnicode = iconv.defaultCharUnicode;\n }\n }\n}\n\nInternalCodec.prototype.encoder = InternalEncoder;\nInternalCodec.prototype.decoder = InternalDecoder;\n\n//------------------------------------------------------------------------------\n\n// We use node.js internal decoder. Its signature is the same as ours.\nvar StringDecoder = require('string_decoder').StringDecoder;\n\nif (!StringDecoder.prototype.end) // Node v0.8 doesn't have this method.\n StringDecoder.prototype.end = function() {};\n\n\nfunction InternalDecoder(options, codec) {\n this.decoder = new StringDecoder(codec.enc);\n}\n\nInternalDecoder.prototype.write = function(buf) {\n if (!Buffer.isBuffer(buf)) {\n buf = Buffer.from(buf);\n }\n\n return this.decoder.write(buf);\n}\n\nInternalDecoder.prototype.end = function() {\n return this.decoder.end();\n}\n\n\n//------------------------------------------------------------------------------\n// Encoder is mostly trivial\n\nfunction InternalEncoder(options, codec) {\n this.enc = codec.enc;\n}\n\nInternalEncoder.prototype.write = function(str) {\n return Buffer.from(str, this.enc);\n}\n\nInternalEncoder.prototype.end = function() {\n}\n\n\n//------------------------------------------------------------------------------\n// Except base64 encoder, which must keep its state.\n\nfunction InternalEncoderBase64(options, codec) {\n this.prevStr = '';\n}\n\nInternalEncoderBase64.prototype.write = function(str) {\n str = this.prevStr + str;\n var completeQuads = str.length - (str.length % 4);\n this.prevStr = str.slice(completeQuads);\n str = str.slice(0, completeQuads);\n\n return Buffer.from(str, \"base64\");\n}\n\nInternalEncoderBase64.prototype.end = function() {\n return Buffer.from(this.prevStr, \"base64\");\n}\n\n\n//------------------------------------------------------------------------------\n// CESU-8 encoder is also special.\n\nfunction InternalEncoderCesu8(options, codec) {\n}\n\nInternalEncoderCesu8.prototype.write = function(str) {\n var buf = Buffer.alloc(str.length * 3), bufIdx = 0;\n for (var i = 0; i < str.length; i++) {\n var charCode = str.charCodeAt(i);\n // Naive implementation, but it works because CESU-8 is especially easy\n // to convert from UTF-16 (which all JS strings are encoded in).\n if (charCode < 0x80)\n buf[bufIdx++] = charCode;\n else if (charCode < 0x800) {\n buf[bufIdx++] = 0xC0 + (charCode >>> 6);\n buf[bufIdx++] = 0x80 + (charCode & 0x3f);\n }\n else { // charCode will always be < 0x10000 in javascript.\n buf[bufIdx++] = 0xE0 + (charCode >>> 12);\n buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f);\n buf[bufIdx++] = 0x80 + (charCode & 0x3f);\n }\n }\n return buf.slice(0, bufIdx);\n}\n\nInternalEncoderCesu8.prototype.end = function() {\n}\n\n//------------------------------------------------------------------------------\n// CESU-8 decoder is not implemented in Node v4.0+\n\nfunction InternalDecoderCesu8(options, codec) {\n this.acc = 0;\n this.contBytes = 0;\n this.accBytes = 0;\n this.defaultCharUnicode = codec.defaultCharUnicode;\n}\n\nInternalDecoderCesu8.prototype.write = function(buf) {\n var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, \n res = '';\n for (var i = 0; i < buf.length; i++) {\n var curByte = buf[i];\n if ((curByte & 0xC0) !== 0x80) { // Leading byte\n if (contBytes > 0) { // Previous code is invalid\n res += this.defaultCharUnicode;\n contBytes = 0;\n }\n\n if (curByte < 0x80) { // Single-byte code\n res += String.fromCharCode(curByte);\n } else if (curByte < 0xE0) { // Two-byte code\n acc = curByte & 0x1F;\n contBytes = 1; accBytes = 1;\n } else if (curByte < 0xF0) { // Three-byte code\n acc = curByte & 0x0F;\n contBytes = 2; accBytes = 1;\n } else { // Four or more are not supported for CESU-8.\n res += this.defaultCharUnicode;\n }\n } else { // Continuation byte\n if (contBytes > 0) { // We're waiting for it.\n acc = (acc << 6) | (curByte & 0x3f);\n contBytes--; accBytes++;\n if (contBytes === 0) {\n // Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80)\n if (accBytes === 2 && acc < 0x80 && acc > 0)\n res += this.defaultCharUnicode;\n else if (accBytes === 3 && acc < 0x800)\n res += this.defaultCharUnicode;\n else\n // Actually add character.\n res += String.fromCharCode(acc);\n }\n } else { // Unexpected continuation byte\n res += this.defaultCharUnicode;\n }\n }\n }\n this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes;\n return res;\n}\n\nInternalDecoderCesu8.prototype.end = function() {\n var res = 0;\n if (this.contBytes > 0)\n res += this.defaultCharUnicode;\n return res;\n}\n","'use strict';\n\nvar Buffer = require('safer-buffer').Buffer;\n\n// == UTF32-LE/BE codec. ==========================================================\n\nexports._utf32 = Utf32Codec;\n\nfunction Utf32Codec(codecOptions, iconv) {\n this.iconv = iconv;\n this.bomAware = true;\n this.isLE = codecOptions.isLE;\n}\n\nexports.utf32le = { type: '_utf32', isLE: true };\nexports.utf32be = { type: '_utf32', isLE: false };\n\n// Aliases\nexports.ucs4le = 'utf32le';\nexports.ucs4be = 'utf32be';\n\nUtf32Codec.prototype.encoder = Utf32Encoder;\nUtf32Codec.prototype.decoder = Utf32Decoder;\n\n// -- Encoding\n\nfunction Utf32Encoder(options, codec) {\n this.isLE = codec.isLE;\n this.highSurrogate = 0;\n}\n\nUtf32Encoder.prototype.write = function(str) {\n var src = Buffer.from(str, 'ucs2');\n var dst = Buffer.alloc(src.length * 2);\n var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;\n var offset = 0;\n\n for (var i = 0; i < src.length; i += 2) {\n var code = src.readUInt16LE(i);\n var isHighSurrogate = (0xD800 <= code && code < 0xDC00);\n var isLowSurrogate = (0xDC00 <= code && code < 0xE000);\n\n if (this.highSurrogate) {\n if (isHighSurrogate || !isLowSurrogate) {\n // There shouldn't be two high surrogates in a row, nor a high surrogate which isn't followed by a low\n // surrogate. If this happens, keep the pending high surrogate as a stand-alone semi-invalid character\n // (technically wrong, but expected by some applications, like Windows file names).\n write32.call(dst, this.highSurrogate, offset);\n offset += 4;\n }\n else {\n // Create 32-bit value from high and low surrogates;\n var codepoint = (((this.highSurrogate - 0xD800) << 10) | (code - 0xDC00)) + 0x10000;\n\n write32.call(dst, codepoint, offset);\n offset += 4;\n this.highSurrogate = 0;\n\n continue;\n }\n }\n\n if (isHighSurrogate)\n this.highSurrogate = code;\n else {\n // Even if the current character is a low surrogate, with no previous high surrogate, we'll\n // encode it as a semi-invalid stand-alone character for the same reasons expressed above for\n // unpaired high surrogates.\n write32.call(dst, code, offset);\n offset += 4;\n this.highSurrogate = 0;\n }\n }\n\n if (offset < dst.length)\n dst = dst.slice(0, offset);\n\n return dst;\n};\n\nUtf32Encoder.prototype.end = function() {\n // Treat any leftover high surrogate as a semi-valid independent character.\n if (!this.highSurrogate)\n return;\n\n var buf = Buffer.alloc(4);\n\n if (this.isLE)\n buf.writeUInt32LE(this.highSurrogate, 0);\n else\n buf.writeUInt32BE(this.highSurrogate, 0);\n\n this.highSurrogate = 0;\n\n return buf;\n};\n\n// -- Decoding\n\nfunction Utf32Decoder(options, codec) {\n this.isLE = codec.isLE;\n this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0);\n this.overflow = [];\n}\n\nUtf32Decoder.prototype.write = function(src) {\n if (src.length === 0)\n return '';\n\n var i = 0;\n var codepoint = 0;\n var dst = Buffer.alloc(src.length + 4);\n var offset = 0;\n var isLE = this.isLE;\n var overflow = this.overflow;\n var badChar = this.badChar;\n\n if (overflow.length > 0) {\n for (; i < src.length && overflow.length < 4; i++)\n overflow.push(src[i]);\n \n if (overflow.length === 4) {\n // NOTE: codepoint is a signed int32 and can be negative.\n // NOTE: We copied this block from below to help V8 optimize it (it works with array, not buffer).\n if (isLE) {\n codepoint = overflow[i] | (overflow[i+1] << 8) | (overflow[i+2] << 16) | (overflow[i+3] << 24);\n } else {\n codepoint = overflow[i+3] | (overflow[i+2] << 8) | (overflow[i+1] << 16) | (overflow[i] << 24);\n }\n overflow.length = 0;\n\n offset = _writeCodepoint(dst, offset, codepoint, badChar);\n }\n }\n\n // Main loop. Should be as optimized as possible.\n for (; i < src.length - 3; i += 4) {\n // NOTE: codepoint is a signed int32 and can be negative.\n if (isLE) {\n codepoint = src[i] | (src[i+1] << 8) | (src[i+2] << 16) | (src[i+3] << 24);\n } else {\n codepoint = src[i+3] | (src[i+2] << 8) | (src[i+1] << 16) | (src[i] << 24);\n }\n offset = _writeCodepoint(dst, offset, codepoint, badChar);\n }\n\n // Keep overflowing bytes.\n for (; i < src.length; i++) {\n overflow.push(src[i]);\n }\n\n return dst.slice(0, offset).toString('ucs2');\n};\n\nfunction _writeCodepoint(dst, offset, codepoint, badChar) {\n // NOTE: codepoint is signed int32 and can be negative. We keep it that way to help V8 with optimizations.\n if (codepoint < 0 || codepoint > 0x10FFFF) {\n // Not a valid Unicode codepoint\n codepoint = badChar;\n } \n\n // Ephemeral Planes: Write high surrogate.\n if (codepoint >= 0x10000) {\n codepoint -= 0x10000;\n\n var high = 0xD800 | (codepoint >> 10);\n dst[offset++] = high & 0xff;\n dst[offset++] = high >> 8;\n\n // Low surrogate is written below.\n var codepoint = 0xDC00 | (codepoint & 0x3FF);\n }\n\n // Write BMP char or low surrogate.\n dst[offset++] = codepoint & 0xff;\n dst[offset++] = codepoint >> 8;\n\n return offset;\n};\n\nUtf32Decoder.prototype.end = function() {\n this.overflow.length = 0;\n};\n\n// == UTF-32 Auto codec =============================================================\n// Decoder chooses automatically from UTF-32LE and UTF-32BE using BOM and space-based heuristic.\n// Defaults to UTF-32LE. http://en.wikipedia.org/wiki/UTF-32\n// Encoder/decoder default can be changed: iconv.decode(buf, 'utf32', {defaultEncoding: 'utf-32be'});\n\n// Encoder prepends BOM (which can be overridden with (addBOM: false}).\n\nexports.utf32 = Utf32AutoCodec;\nexports.ucs4 = 'utf32';\n\nfunction Utf32AutoCodec(options, iconv) {\n this.iconv = iconv;\n}\n\nUtf32AutoCodec.prototype.encoder = Utf32AutoEncoder;\nUtf32AutoCodec.prototype.decoder = Utf32AutoDecoder;\n\n// -- Encoding\n\nfunction Utf32AutoEncoder(options, codec) {\n options = options || {};\n\n if (options.addBOM === undefined)\n options.addBOM = true;\n\n this.encoder = codec.iconv.getEncoder(options.defaultEncoding || 'utf-32le', options);\n}\n\nUtf32AutoEncoder.prototype.write = function(str) {\n return this.encoder.write(str);\n};\n\nUtf32AutoEncoder.prototype.end = function() {\n return this.encoder.end();\n};\n\n// -- Decoding\n\nfunction Utf32AutoDecoder(options, codec) {\n this.decoder = null;\n this.initialBufs = [];\n this.initialBufsLen = 0;\n this.options = options || {};\n this.iconv = codec.iconv;\n}\n\nUtf32AutoDecoder.prototype.write = function(buf) {\n if (!this.decoder) { \n // Codec is not chosen yet. Accumulate initial bytes.\n this.initialBufs.push(buf);\n this.initialBufsLen += buf.length;\n\n if (this.initialBufsLen < 32) // We need more bytes to use space heuristic (see below)\n return '';\n\n // We have enough bytes -> detect endianness.\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.write(buf);\n};\n\nUtf32AutoDecoder.prototype.end = function() {\n if (!this.decoder) {\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n var trail = this.decoder.end();\n if (trail)\n resStr += trail;\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.end();\n};\n\nfunction detectEncoding(bufs, defaultEncoding) {\n var b = [];\n var charsProcessed = 0;\n var invalidLE = 0, invalidBE = 0; // Number of invalid chars when decoded as LE or BE.\n var bmpCharsLE = 0, bmpCharsBE = 0; // Number of BMP chars when decoded as LE or BE.\n\n outer_loop:\n for (var i = 0; i < bufs.length; i++) {\n var buf = bufs[i];\n for (var j = 0; j < buf.length; j++) {\n b.push(buf[j]);\n if (b.length === 4) {\n if (charsProcessed === 0) {\n // Check BOM first.\n if (b[0] === 0xFF && b[1] === 0xFE && b[2] === 0 && b[3] === 0) {\n return 'utf-32le';\n }\n if (b[0] === 0 && b[1] === 0 && b[2] === 0xFE && b[3] === 0xFF) {\n return 'utf-32be';\n }\n }\n\n if (b[0] !== 0 || b[1] > 0x10) invalidBE++;\n if (b[3] !== 0 || b[2] > 0x10) invalidLE++;\n\n if (b[0] === 0 && b[1] === 0 && (b[2] !== 0 || b[3] !== 0)) bmpCharsBE++;\n if ((b[0] !== 0 || b[1] !== 0) && b[2] === 0 && b[3] === 0) bmpCharsLE++;\n\n b.length = 0;\n charsProcessed++;\n\n if (charsProcessed >= 100) {\n break outer_loop;\n }\n }\n }\n }\n\n // Make decisions.\n if (bmpCharsBE - invalidBE > bmpCharsLE - invalidLE) return 'utf-32be';\n if (bmpCharsBE - invalidBE < bmpCharsLE - invalidLE) return 'utf-32le';\n\n // Couldn't decide (likely all zeros or not enough data).\n return defaultEncoding || 'utf-32le';\n}\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js\n\n// == UTF16-BE codec. ==========================================================\n\nexports.utf16be = Utf16BECodec;\nfunction Utf16BECodec() {\n}\n\nUtf16BECodec.prototype.encoder = Utf16BEEncoder;\nUtf16BECodec.prototype.decoder = Utf16BEDecoder;\nUtf16BECodec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nfunction Utf16BEEncoder() {\n}\n\nUtf16BEEncoder.prototype.write = function(str) {\n var buf = Buffer.from(str, 'ucs2');\n for (var i = 0; i < buf.length; i += 2) {\n var tmp = buf[i]; buf[i] = buf[i+1]; buf[i+1] = tmp;\n }\n return buf;\n}\n\nUtf16BEEncoder.prototype.end = function() {\n}\n\n\n// -- Decoding\n\nfunction Utf16BEDecoder() {\n this.overflowByte = -1;\n}\n\nUtf16BEDecoder.prototype.write = function(buf) {\n if (buf.length == 0)\n return '';\n\n var buf2 = Buffer.alloc(buf.length + 1),\n i = 0, j = 0;\n\n if (this.overflowByte !== -1) {\n buf2[0] = buf[0];\n buf2[1] = this.overflowByte;\n i = 1; j = 2;\n }\n\n for (; i < buf.length-1; i += 2, j+= 2) {\n buf2[j] = buf[i+1];\n buf2[j+1] = buf[i];\n }\n\n this.overflowByte = (i == buf.length-1) ? buf[buf.length-1] : -1;\n\n return buf2.slice(0, j).toString('ucs2');\n}\n\nUtf16BEDecoder.prototype.end = function() {\n this.overflowByte = -1;\n}\n\n\n// == UTF-16 codec =============================================================\n// Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic.\n// Defaults to UTF-16LE, as it's prevalent and default in Node.\n// http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le\n// Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'});\n\n// Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false).\n\nexports.utf16 = Utf16Codec;\nfunction Utf16Codec(codecOptions, iconv) {\n this.iconv = iconv;\n}\n\nUtf16Codec.prototype.encoder = Utf16Encoder;\nUtf16Codec.prototype.decoder = Utf16Decoder;\n\n\n// -- Encoding (pass-through)\n\nfunction Utf16Encoder(options, codec) {\n options = options || {};\n if (options.addBOM === undefined)\n options.addBOM = true;\n this.encoder = codec.iconv.getEncoder('utf-16le', options);\n}\n\nUtf16Encoder.prototype.write = function(str) {\n return this.encoder.write(str);\n}\n\nUtf16Encoder.prototype.end = function() {\n return this.encoder.end();\n}\n\n\n// -- Decoding\n\nfunction Utf16Decoder(options, codec) {\n this.decoder = null;\n this.initialBufs = [];\n this.initialBufsLen = 0;\n\n this.options = options || {};\n this.iconv = codec.iconv;\n}\n\nUtf16Decoder.prototype.write = function(buf) {\n if (!this.decoder) {\n // Codec is not chosen yet. Accumulate initial bytes.\n this.initialBufs.push(buf);\n this.initialBufsLen += buf.length;\n \n if (this.initialBufsLen < 16) // We need more bytes to use space heuristic (see below)\n return '';\n\n // We have enough bytes -> detect endianness.\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.write(buf);\n}\n\nUtf16Decoder.prototype.end = function() {\n if (!this.decoder) {\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n var trail = this.decoder.end();\n if (trail)\n resStr += trail;\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n return this.decoder.end();\n}\n\nfunction detectEncoding(bufs, defaultEncoding) {\n var b = [];\n var charsProcessed = 0;\n var asciiCharsLE = 0, asciiCharsBE = 0; // Number of ASCII chars when decoded as LE or BE.\n\n outer_loop:\n for (var i = 0; i < bufs.length; i++) {\n var buf = bufs[i];\n for (var j = 0; j < buf.length; j++) {\n b.push(buf[j]);\n if (b.length === 2) {\n if (charsProcessed === 0) {\n // Check BOM first.\n if (b[0] === 0xFF && b[1] === 0xFE) return 'utf-16le';\n if (b[0] === 0xFE && b[1] === 0xFF) return 'utf-16be';\n }\n\n if (b[0] === 0 && b[1] !== 0) asciiCharsBE++;\n if (b[0] !== 0 && b[1] === 0) asciiCharsLE++;\n\n b.length = 0;\n charsProcessed++;\n\n if (charsProcessed >= 100) {\n break outer_loop;\n }\n }\n }\n }\n\n // Make decisions.\n // Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon.\n // So, we count ASCII as if it was LE or BE, and decide from that.\n if (asciiCharsBE > asciiCharsLE) return 'utf-16be';\n if (asciiCharsBE < asciiCharsLE) return 'utf-16le';\n\n // Couldn't decide (likely all zeros or not enough data).\n return defaultEncoding || 'utf-16le';\n}\n\n\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152\n// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3\n\nexports.utf7 = Utf7Codec;\nexports.unicode11utf7 = 'utf7'; // Alias UNICODE-1-1-UTF-7\nfunction Utf7Codec(codecOptions, iconv) {\n this.iconv = iconv;\n};\n\nUtf7Codec.prototype.encoder = Utf7Encoder;\nUtf7Codec.prototype.decoder = Utf7Decoder;\nUtf7Codec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nvar nonDirectChars = /[^A-Za-z0-9'\\(\\),-\\.\\/:\\? \\n\\r\\t]+/g;\n\nfunction Utf7Encoder(options, codec) {\n this.iconv = codec.iconv;\n}\n\nUtf7Encoder.prototype.write = function(str) {\n // Naive implementation.\n // Non-direct chars are encoded as \"+-\"; single \"+\" char is encoded as \"+-\".\n return Buffer.from(str.replace(nonDirectChars, function(chunk) {\n return \"+\" + (chunk === '+' ? '' : \n this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, '')) \n + \"-\";\n }.bind(this)));\n}\n\nUtf7Encoder.prototype.end = function() {\n}\n\n\n// -- Decoding\n\nfunction Utf7Decoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = '';\n}\n\nvar base64Regex = /[A-Za-z0-9\\/+]/;\nvar base64Chars = [];\nfor (var i = 0; i < 256; i++)\n base64Chars[i] = base64Regex.test(String.fromCharCode(i));\n\nvar plusChar = '+'.charCodeAt(0), \n minusChar = '-'.charCodeAt(0),\n andChar = '&'.charCodeAt(0);\n\nUtf7Decoder.prototype.write = function(buf) {\n var res = \"\", lastI = 0,\n inBase64 = this.inBase64,\n base64Accum = this.base64Accum;\n\n // The decoder is more involved as we must handle chunks in stream.\n\n for (var i = 0; i < buf.length; i++) {\n if (!inBase64) { // We're in direct mode.\n // Write direct chars until '+'\n if (buf[i] == plusChar) {\n res += this.iconv.decode(buf.slice(lastI, i), \"ascii\"); // Write direct chars.\n lastI = i+1;\n inBase64 = true;\n }\n } else { // We decode base64.\n if (!base64Chars[buf[i]]) { // Base64 ended.\n if (i == lastI && buf[i] == minusChar) {// \"+-\" -> \"+\"\n res += \"+\";\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), \"ascii\");\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n if (buf[i] != minusChar) // Minus is absorbed after base64.\n i--;\n\n lastI = i+1;\n inBase64 = false;\n base64Accum = '';\n }\n }\n }\n\n if (!inBase64) {\n res += this.iconv.decode(buf.slice(lastI), \"ascii\"); // Write direct chars.\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), \"ascii\");\n\n var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.\n base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.\n b64str = b64str.slice(0, canBeDecoded);\n\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n this.inBase64 = inBase64;\n this.base64Accum = base64Accum;\n\n return res;\n}\n\nUtf7Decoder.prototype.end = function() {\n var res = \"\";\n if (this.inBase64 && this.base64Accum.length > 0)\n res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), \"utf16-be\");\n\n this.inBase64 = false;\n this.base64Accum = '';\n return res;\n}\n\n\n// UTF-7-IMAP codec.\n// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)\n// Differences:\n// * Base64 part is started by \"&\" instead of \"+\"\n// * Direct characters are 0x20-0x7E, except \"&\" (0x26)\n// * In Base64, \",\" is used instead of \"/\"\n// * Base64 must not be used to represent direct characters.\n// * No implicit shift back from Base64 (should always end with '-')\n// * String must end in non-shifted position.\n// * \"-&\" while in base64 is not allowed.\n\n\nexports.utf7imap = Utf7IMAPCodec;\nfunction Utf7IMAPCodec(codecOptions, iconv) {\n this.iconv = iconv;\n};\n\nUtf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;\nUtf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;\nUtf7IMAPCodec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nfunction Utf7IMAPEncoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = Buffer.alloc(6);\n this.base64AccumIdx = 0;\n}\n\nUtf7IMAPEncoder.prototype.write = function(str) {\n var inBase64 = this.inBase64,\n base64Accum = this.base64Accum,\n base64AccumIdx = this.base64AccumIdx,\n buf = Buffer.alloc(str.length*5 + 10), bufIdx = 0;\n\n for (var i = 0; i < str.length; i++) {\n var uChar = str.charCodeAt(i);\n if (0x20 <= uChar && uChar <= 0x7E) { // Direct character or '&'.\n if (inBase64) {\n if (base64AccumIdx > 0) {\n bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString('base64').replace(/\\//g, ',').replace(/=+$/, ''), bufIdx);\n base64AccumIdx = 0;\n }\n\n buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.\n inBase64 = false;\n }\n\n if (!inBase64) {\n buf[bufIdx++] = uChar; // Write direct character\n\n if (uChar === andChar) // Ampersand -> '&-'\n buf[bufIdx++] = minusChar;\n }\n\n } else { // Non-direct character\n if (!inBase64) {\n buf[bufIdx++] = andChar; // Write '&', then go to base64 mode.\n inBase64 = true;\n }\n if (inBase64) {\n base64Accum[base64AccumIdx++] = uChar >> 8;\n base64Accum[base64AccumIdx++] = uChar & 0xFF;\n\n if (base64AccumIdx == base64Accum.length) {\n bufIdx += buf.write(base64Accum.toString('base64').replace(/\\//g, ','), bufIdx);\n base64AccumIdx = 0;\n }\n }\n }\n }\n\n this.inBase64 = inBase64;\n this.base64AccumIdx = base64AccumIdx;\n\n return buf.slice(0, bufIdx);\n}\n\nUtf7IMAPEncoder.prototype.end = function() {\n var buf = Buffer.alloc(10), bufIdx = 0;\n if (this.inBase64) {\n if (this.base64AccumIdx > 0) {\n bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString('base64').replace(/\\//g, ',').replace(/=+$/, ''), bufIdx);\n this.base64AccumIdx = 0;\n }\n\n buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.\n this.inBase64 = false;\n }\n\n return buf.slice(0, bufIdx);\n}\n\n\n// -- Decoding\n\nfunction Utf7IMAPDecoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = '';\n}\n\nvar base64IMAPChars = base64Chars.slice();\nbase64IMAPChars[','.charCodeAt(0)] = true;\n\nUtf7IMAPDecoder.prototype.write = function(buf) {\n var res = \"\", lastI = 0,\n inBase64 = this.inBase64,\n base64Accum = this.base64Accum;\n\n // The decoder is more involved as we must handle chunks in stream.\n // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).\n\n for (var i = 0; i < buf.length; i++) {\n if (!inBase64) { // We're in direct mode.\n // Write direct chars until '&'\n if (buf[i] == andChar) {\n res += this.iconv.decode(buf.slice(lastI, i), \"ascii\"); // Write direct chars.\n lastI = i+1;\n inBase64 = true;\n }\n } else { // We decode base64.\n if (!base64IMAPChars[buf[i]]) { // Base64 ended.\n if (i == lastI && buf[i] == minusChar) { // \"&-\" -> \"&\"\n res += \"&\";\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), \"ascii\").replace(/,/g, '/');\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n if (buf[i] != minusChar) // Minus may be absorbed after base64.\n i--;\n\n lastI = i+1;\n inBase64 = false;\n base64Accum = '';\n }\n }\n }\n\n if (!inBase64) {\n res += this.iconv.decode(buf.slice(lastI), \"ascii\"); // Write direct chars.\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), \"ascii\").replace(/,/g, '/');\n\n var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.\n base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.\n b64str = b64str.slice(0, canBeDecoded);\n\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n this.inBase64 = inBase64;\n this.base64Accum = base64Accum;\n\n return res;\n}\n\nUtf7IMAPDecoder.prototype.end = function() {\n var res = \"\";\n if (this.inBase64 && this.base64Accum.length > 0)\n res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), \"utf16-be\");\n\n this.inBase64 = false;\n this.base64Accum = '';\n return res;\n}\n\n\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that\n// correspond to encoded bytes (if 128 - then lower half is ASCII). \n\nexports._sbcs = SBCSCodec;\nfunction SBCSCodec(codecOptions, iconv) {\n if (!codecOptions)\n throw new Error(\"SBCS codec is called without the data.\")\n \n // Prepare char buffer for decoding.\n if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256))\n throw new Error(\"Encoding '\"+codecOptions.type+\"' has incorrect 'chars' (must be of len 128 or 256)\");\n \n if (codecOptions.chars.length === 128) {\n var asciiString = \"\";\n for (var i = 0; i < 128; i++)\n asciiString += String.fromCharCode(i);\n codecOptions.chars = asciiString + codecOptions.chars;\n }\n\n this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2');\n \n // Encoding buffer.\n var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));\n\n for (var i = 0; i < codecOptions.chars.length; i++)\n encodeBuf[codecOptions.chars.charCodeAt(i)] = i;\n\n this.encodeBuf = encodeBuf;\n}\n\nSBCSCodec.prototype.encoder = SBCSEncoder;\nSBCSCodec.prototype.decoder = SBCSDecoder;\n\n\nfunction SBCSEncoder(options, codec) {\n this.encodeBuf = codec.encodeBuf;\n}\n\nSBCSEncoder.prototype.write = function(str) {\n var buf = Buffer.alloc(str.length);\n for (var i = 0; i < str.length; i++)\n buf[i] = this.encodeBuf[str.charCodeAt(i)];\n \n return buf;\n}\n\nSBCSEncoder.prototype.end = function() {\n}\n\n\nfunction SBCSDecoder(options, codec) {\n this.decodeBuf = codec.decodeBuf;\n}\n\nSBCSDecoder.prototype.write = function(buf) {\n // Strings are immutable in JS -> we use ucs2 buffer to speed up computations.\n var decodeBuf = this.decodeBuf;\n var newBuf = Buffer.alloc(buf.length*2);\n var idx1 = 0, idx2 = 0;\n for (var i = 0; i < buf.length; i++) {\n idx1 = buf[i]*2; idx2 = i*2;\n newBuf[idx2] = decodeBuf[idx1];\n newBuf[idx2+1] = decodeBuf[idx1+1];\n }\n return newBuf.toString('ucs2');\n}\n\nSBCSDecoder.prototype.end = function() {\n}\n","\"use strict\";\n\n// Manually added data to be used by sbcs codec in addition to generated one.\n\nmodule.exports = {\n // Not supported by iconv, not sure why.\n \"10029\": \"maccenteuro\",\n \"maccenteuro\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\"\n },\n\n \"808\": \"cp808\",\n \"ibm808\": \"cp808\",\n \"cp808\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ \"\n },\n\n \"mik\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n\n \"cp720\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\x80\\x81éâ\\x84à\\x86çêëèïî\\x8d\\x8e\\x8f\\x90\\u0651\\u0652ô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡\\u064b\\u064c\\u064d\\u064e\\u064f\\u0650≈°∙·√ⁿ²■\\u00a0\"\n },\n\n // Aliases of generated encodings.\n \"ascii8bit\": \"ascii\",\n \"usascii\": \"ascii\",\n \"ansix34\": \"ascii\",\n \"ansix341968\": \"ascii\",\n \"ansix341986\": \"ascii\",\n \"csascii\": \"ascii\",\n \"cp367\": \"ascii\",\n \"ibm367\": \"ascii\",\n \"isoir6\": \"ascii\",\n \"iso646us\": \"ascii\",\n \"iso646irv\": \"ascii\",\n \"us\": \"ascii\",\n\n \"latin1\": \"iso88591\",\n \"latin2\": \"iso88592\",\n \"latin3\": \"iso88593\",\n \"latin4\": \"iso88594\",\n \"latin5\": \"iso88599\",\n \"latin6\": \"iso885910\",\n \"latin7\": \"iso885913\",\n \"latin8\": \"iso885914\",\n \"latin9\": \"iso885915\",\n \"latin10\": \"iso885916\",\n\n \"csisolatin1\": \"iso88591\",\n \"csisolatin2\": \"iso88592\",\n \"csisolatin3\": \"iso88593\",\n \"csisolatin4\": \"iso88594\",\n \"csisolatincyrillic\": \"iso88595\",\n \"csisolatinarabic\": \"iso88596\",\n \"csisolatingreek\" : \"iso88597\",\n \"csisolatinhebrew\": \"iso88598\",\n \"csisolatin5\": \"iso88599\",\n \"csisolatin6\": \"iso885910\",\n\n \"l1\": \"iso88591\",\n \"l2\": \"iso88592\",\n \"l3\": \"iso88593\",\n \"l4\": \"iso88594\",\n \"l5\": \"iso88599\",\n \"l6\": \"iso885910\",\n \"l7\": \"iso885913\",\n \"l8\": \"iso885914\",\n \"l9\": \"iso885915\",\n \"l10\": \"iso885916\",\n\n \"isoir14\": \"iso646jp\",\n \"isoir57\": \"iso646cn\",\n \"isoir100\": \"iso88591\",\n \"isoir101\": \"iso88592\",\n \"isoir109\": \"iso88593\",\n \"isoir110\": \"iso88594\",\n \"isoir144\": \"iso88595\",\n \"isoir127\": \"iso88596\",\n \"isoir126\": \"iso88597\",\n \"isoir138\": \"iso88598\",\n \"isoir148\": \"iso88599\",\n \"isoir157\": \"iso885910\",\n \"isoir166\": \"tis620\",\n \"isoir179\": \"iso885913\",\n \"isoir199\": \"iso885914\",\n \"isoir203\": \"iso885915\",\n \"isoir226\": \"iso885916\",\n\n \"cp819\": \"iso88591\",\n \"ibm819\": \"iso88591\",\n\n \"cyrillic\": \"iso88595\",\n\n \"arabic\": \"iso88596\",\n \"arabic8\": \"iso88596\",\n \"ecma114\": \"iso88596\",\n \"asmo708\": \"iso88596\",\n\n \"greek\" : \"iso88597\",\n \"greek8\" : \"iso88597\",\n \"ecma118\" : \"iso88597\",\n \"elot928\" : \"iso88597\",\n\n \"hebrew\": \"iso88598\",\n \"hebrew8\": \"iso88598\",\n\n \"turkish\": \"iso88599\",\n \"turkish8\": \"iso88599\",\n\n \"thai\": \"iso885911\",\n \"thai8\": \"iso885911\",\n\n \"celtic\": \"iso885914\",\n \"celtic8\": \"iso885914\",\n \"isoceltic\": \"iso885914\",\n\n \"tis6200\": \"tis620\",\n \"tis62025291\": \"tis620\",\n \"tis62025330\": \"tis620\",\n\n \"10000\": \"macroman\",\n \"10006\": \"macgreek\",\n \"10007\": \"maccyrillic\",\n \"10079\": \"maciceland\",\n \"10081\": \"macturkish\",\n\n \"cspc8codepage437\": \"cp437\",\n \"cspc775baltic\": \"cp775\",\n \"cspc850multilingual\": \"cp850\",\n \"cspcp852\": \"cp852\",\n \"cspc862latinhebrew\": \"cp862\",\n \"cpgr\": \"cp869\",\n\n \"msee\": \"cp1250\",\n \"mscyrl\": \"cp1251\",\n \"msansi\": \"cp1252\",\n \"msgreek\": \"cp1253\",\n \"msturk\": \"cp1254\",\n \"mshebr\": \"cp1255\",\n \"msarab\": \"cp1256\",\n \"winbaltrim\": \"cp1257\",\n\n \"cp20866\": \"koi8r\",\n \"20866\": \"koi8r\",\n \"ibm878\": \"koi8r\",\n \"cskoi8r\": \"koi8r\",\n\n \"cp21866\": \"koi8u\",\n \"21866\": \"koi8u\",\n \"ibm1168\": \"koi8u\",\n\n \"strk10482002\": \"rk1048\",\n\n \"tcvn5712\": \"tcvn\",\n \"tcvn57121\": \"tcvn\",\n\n \"gb198880\": \"iso646cn\",\n \"cn\": \"iso646cn\",\n\n \"csiso14jisc6220ro\": \"iso646jp\",\n \"jisc62201969ro\": \"iso646jp\",\n \"jp\": \"iso646jp\",\n\n \"cshproman8\": \"hproman8\",\n \"r8\": \"hproman8\",\n \"roman8\": \"hproman8\",\n \"xroman8\": \"hproman8\",\n \"ibm1051\": \"hproman8\",\n\n \"mac\": \"macintosh\",\n \"csmacintosh\": \"macintosh\",\n};\n\n","\"use strict\";\n\n// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.\nmodule.exports = {\n \"437\": \"cp437\",\n \"737\": \"cp737\",\n \"775\": \"cp775\",\n \"850\": \"cp850\",\n \"852\": \"cp852\",\n \"855\": \"cp855\",\n \"856\": \"cp856\",\n \"857\": \"cp857\",\n \"858\": \"cp858\",\n \"860\": \"cp860\",\n \"861\": \"cp861\",\n \"862\": \"cp862\",\n \"863\": \"cp863\",\n \"864\": \"cp864\",\n \"865\": \"cp865\",\n \"866\": \"cp866\",\n \"869\": \"cp869\",\n \"874\": \"windows874\",\n \"922\": \"cp922\",\n \"1046\": \"cp1046\",\n \"1124\": \"cp1124\",\n \"1125\": \"cp1125\",\n \"1129\": \"cp1129\",\n \"1133\": \"cp1133\",\n \"1161\": \"cp1161\",\n \"1162\": \"cp1162\",\n \"1163\": \"cp1163\",\n \"1250\": \"windows1250\",\n \"1251\": \"windows1251\",\n \"1252\": \"windows1252\",\n \"1253\": \"windows1253\",\n \"1254\": \"windows1254\",\n \"1255\": \"windows1255\",\n \"1256\": \"windows1256\",\n \"1257\": \"windows1257\",\n \"1258\": \"windows1258\",\n \"28591\": \"iso88591\",\n \"28592\": \"iso88592\",\n \"28593\": \"iso88593\",\n \"28594\": \"iso88594\",\n \"28595\": \"iso88595\",\n \"28596\": \"iso88596\",\n \"28597\": \"iso88597\",\n \"28598\": \"iso88598\",\n \"28599\": \"iso88599\",\n \"28600\": \"iso885910\",\n \"28601\": \"iso885911\",\n \"28603\": \"iso885913\",\n \"28604\": \"iso885914\",\n \"28605\": \"iso885915\",\n \"28606\": \"iso885916\",\n \"windows874\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"win874\": \"windows874\",\n \"cp874\": \"windows874\",\n \"windows1250\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙\"\n },\n \"win1250\": \"windows1250\",\n \"cp1250\": \"windows1250\",\n \"windows1251\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"win1251\": \"windows1251\",\n \"cp1251\": \"windows1251\",\n \"windows1252\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"win1252\": \"windows1252\",\n \"cp1252\": \"windows1252\",\n \"windows1253\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�\"\n },\n \"win1253\": \"windows1253\",\n \"cp1253\": \"windows1253\",\n \"windows1254\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ\"\n },\n \"win1254\": \"windows1254\",\n \"cp1254\": \"windows1254\",\n \"windows1255\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�\"\n },\n \"win1255\": \"windows1255\",\n \"cp1255\": \"windows1255\",\n \"windows1256\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے\"\n },\n \"win1256\": \"windows1256\",\n \"cp1256\": \"windows1256\",\n \"windows1257\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙\"\n },\n \"win1257\": \"windows1257\",\n \"cp1257\": \"windows1257\",\n \"windows1258\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"win1258\": \"windows1258\",\n \"cp1258\": \"windows1258\",\n \"iso88591\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"cp28591\": \"iso88591\",\n \"iso88592\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙\"\n },\n \"cp28592\": \"iso88592\",\n \"iso88593\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙\"\n },\n \"cp28593\": \"iso88593\",\n \"iso88594\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙\"\n },\n \"cp28594\": \"iso88594\",\n \"iso88595\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ\"\n },\n \"cp28595\": \"iso88595\",\n \"iso88596\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������\"\n },\n \"cp28596\": \"iso88596\",\n \"iso88597\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�\"\n },\n \"cp28597\": \"iso88597\",\n \"iso88598\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�\"\n },\n \"cp28598\": \"iso88598\",\n \"iso88599\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ\"\n },\n \"cp28599\": \"iso88599\",\n \"iso885910\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ\"\n },\n \"cp28600\": \"iso885910\",\n \"iso885911\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"cp28601\": \"iso885911\",\n \"iso885913\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’\"\n },\n \"cp28603\": \"iso885913\",\n \"iso885914\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ\"\n },\n \"cp28604\": \"iso885914\",\n \"iso885915\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"cp28605\": \"iso885915\",\n \"iso885916\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ\"\n },\n \"cp28606\": \"iso885916\",\n \"cp437\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm437\": \"cp437\",\n \"csibm437\": \"cp437\",\n \"cp737\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ \"\n },\n \"ibm737\": \"cp737\",\n \"csibm737\": \"cp737\",\n \"cp775\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ \"\n },\n \"ibm775\": \"cp775\",\n \"csibm775\": \"cp775\",\n \"cp850\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm850\": \"cp850\",\n \"csibm850\": \"cp850\",\n \"cp852\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ \"\n },\n \"ibm852\": \"cp852\",\n \"csibm852\": \"cp852\",\n \"cp855\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ \"\n },\n \"ibm855\": \"cp855\",\n \"csibm855\": \"cp855\",\n \"cp856\": {\n \"type\": \"_sbcs\",\n \"chars\": \"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm856\": \"cp856\",\n \"csibm856\": \"cp856\",\n \"cp857\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm857\": \"cp857\",\n \"csibm857\": \"cp857\",\n \"cp858\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm858\": \"cp858\",\n \"csibm858\": \"cp858\",\n \"cp860\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm860\": \"cp860\",\n \"csibm860\": \"cp860\",\n \"cp861\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm861\": \"cp861\",\n \"csibm861\": \"cp861\",\n \"cp862\": {\n \"type\": \"_sbcs\",\n \"chars\": \"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm862\": \"cp862\",\n \"csibm862\": \"cp862\",\n \"cp863\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm863\": \"cp863\",\n \"csibm863\": \"cp863\",\n \"cp864\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�\"\n },\n \"ibm864\": \"cp864\",\n \"csibm864\": \"cp864\",\n \"cp865\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm865\": \"cp865\",\n \"csibm865\": \"cp865\",\n \"cp866\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ \"\n },\n \"ibm866\": \"cp866\",\n \"csibm866\": \"cp866\",\n \"cp869\": {\n \"type\": \"_sbcs\",\n \"chars\": \"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ \"\n },\n \"ibm869\": \"cp869\",\n \"csibm869\": \"cp869\",\n \"cp922\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ\"\n },\n \"ibm922\": \"cp922\",\n \"csibm922\": \"cp922\",\n \"cp1046\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�\"\n },\n \"ibm1046\": \"cp1046\",\n \"csibm1046\": \"cp1046\",\n \"cp1124\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ\"\n },\n \"ibm1124\": \"cp1124\",\n \"csibm1124\": \"cp1124\",\n \"cp1125\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ \"\n },\n \"ibm1125\": \"cp1125\",\n \"csibm1125\": \"cp1125\",\n \"cp1129\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"ibm1129\": \"cp1129\",\n \"csibm1129\": \"cp1129\",\n \"cp1133\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�\"\n },\n \"ibm1133\": \"cp1133\",\n \"csibm1133\": \"cp1133\",\n \"cp1161\": {\n \"type\": \"_sbcs\",\n \"chars\": \"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ \"\n },\n \"ibm1161\": \"cp1161\",\n \"csibm1161\": \"cp1161\",\n \"cp1162\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"ibm1162\": \"cp1162\",\n \"csibm1162\": \"cp1162\",\n \"cp1163\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"ibm1163\": \"cp1163\",\n \"csibm1163\": \"cp1163\",\n \"maccroatian\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\"\n },\n \"maccyrillic\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤\"\n },\n \"macgreek\": {\n \"type\": \"_sbcs\",\n \"chars\": \"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�\"\n },\n \"maciceland\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macroman\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macromania\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macthai\": {\n \"type\": \"_sbcs\",\n \"chars\": \"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����\"\n },\n \"macturkish\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macukraine\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤\"\n },\n \"koi8r\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8u\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8ru\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8t\": {\n \"type\": \"_sbcs\",\n \"chars\": \"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"armscii8\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�\"\n },\n \"rk1048\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"tcvn\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000ÚỤ\\u0003ỪỬỮ\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010ỨỰỲỶỸÝỴ\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ\"\n },\n \"georgianacademy\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"georgianps\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"pt154\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"viscii\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001Ẳ\\u0003\\u0004ẴẪ\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013Ỷ\\u0015\\u0016\\u0017\\u0018Ỹ\\u001a\\u001b\\u001c\\u001dỴ\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ\"\n },\n \"iso646cn\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"iso646jp\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"hproman8\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�\"\n },\n \"macintosh\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"ascii\": {\n \"type\": \"_sbcs\",\n \"chars\": \"��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"tis620\": {\n \"type\": \"_sbcs\",\n \"chars\": \"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n }\n}","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.\n// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.\n// To save memory and loading time, we read table files only when requested.\n\nexports._dbcs = DBCSCodec;\n\nvar UNASSIGNED = -1,\n GB18030_CODE = -2,\n SEQ_START = -10,\n NODE_START = -1000,\n UNASSIGNED_NODE = new Array(0x100),\n DEF_CHAR = -1;\n\nfor (var i = 0; i < 0x100; i++)\n UNASSIGNED_NODE[i] = UNASSIGNED;\n\n\n// Class DBCSCodec reads and initializes mapping tables.\nfunction DBCSCodec(codecOptions, iconv) {\n this.encodingName = codecOptions.encodingName;\n if (!codecOptions)\n throw new Error(\"DBCS codec is called without the data.\")\n if (!codecOptions.table)\n throw new Error(\"Encoding '\" + this.encodingName + \"' has no data.\");\n\n // Load tables.\n var mappingTable = codecOptions.table();\n\n\n // Decode tables: MBCS -> Unicode.\n\n // decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.\n // Trie root is decodeTables[0].\n // Values: >= 0 -> unicode character code. can be > 0xFFFF\n // == UNASSIGNED -> unknown/unassigned sequence.\n // == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.\n // <= NODE_START -> index of the next node in our trie to process next byte.\n // <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq.\n this.decodeTables = [];\n this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.\n\n // Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here. \n this.decodeTableSeq = [];\n\n // Actual mapping tables consist of chunks. Use them to fill up decode tables.\n for (var i = 0; i < mappingTable.length; i++)\n this._addDecodeChunk(mappingTable[i]);\n\n // Load & create GB18030 tables when needed.\n if (typeof codecOptions.gb18030 === 'function') {\n this.gb18030 = codecOptions.gb18030(); // Load GB18030 ranges.\n\n // Add GB18030 common decode nodes.\n var commonThirdByteNodeIdx = this.decodeTables.length;\n this.decodeTables.push(UNASSIGNED_NODE.slice(0));\n\n var commonFourthByteNodeIdx = this.decodeTables.length;\n this.decodeTables.push(UNASSIGNED_NODE.slice(0));\n\n // Fill out the tree\n var firstByteNode = this.decodeTables[0];\n for (var i = 0x81; i <= 0xFE; i++) {\n var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]];\n for (var j = 0x30; j <= 0x39; j++) {\n if (secondByteNode[j] === UNASSIGNED) {\n secondByteNode[j] = NODE_START - commonThirdByteNodeIdx;\n } else if (secondByteNode[j] > NODE_START) {\n throw new Error(\"gb18030 decode tables conflict at byte 2\");\n }\n\n var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]];\n for (var k = 0x81; k <= 0xFE; k++) {\n if (thirdByteNode[k] === UNASSIGNED) {\n thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx;\n } else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) {\n continue;\n } else if (thirdByteNode[k] > NODE_START) {\n throw new Error(\"gb18030 decode tables conflict at byte 3\");\n }\n\n var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];\n for (var l = 0x30; l <= 0x39; l++) {\n if (fourthByteNode[l] === UNASSIGNED)\n fourthByteNode[l] = GB18030_CODE;\n }\n }\n }\n }\n }\n\n this.defaultCharUnicode = iconv.defaultCharUnicode;\n\n \n // Encode tables: Unicode -> DBCS.\n\n // `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.\n // Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.\n // Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).\n // == UNASSIGNED -> no conversion found. Output a default char.\n // <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.\n this.encodeTable = [];\n \n // `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of\n // objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key\n // means end of sequence (needed when one sequence is a strict subsequence of another).\n // Objects are kept separately from encodeTable to increase performance.\n this.encodeTableSeq = [];\n\n // Some chars can be decoded, but need not be encoded.\n var skipEncodeChars = {};\n if (codecOptions.encodeSkipVals)\n for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {\n var val = codecOptions.encodeSkipVals[i];\n if (typeof val === 'number')\n skipEncodeChars[val] = true;\n else\n for (var j = val.from; j <= val.to; j++)\n skipEncodeChars[j] = true;\n }\n \n // Use decode trie to recursively fill out encode tables.\n this._fillEncodeTable(0, 0, skipEncodeChars);\n\n // Add more encoding pairs when needed.\n if (codecOptions.encodeAdd) {\n for (var uChar in codecOptions.encodeAdd)\n if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))\n this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);\n }\n\n this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];\n if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?'];\n if (this.defCharSB === UNASSIGNED) this.defCharSB = \"?\".charCodeAt(0);\n}\n\nDBCSCodec.prototype.encoder = DBCSEncoder;\nDBCSCodec.prototype.decoder = DBCSDecoder;\n\n// Decoder helpers\nDBCSCodec.prototype._getDecodeTrieNode = function(addr) {\n var bytes = [];\n for (; addr > 0; addr >>>= 8)\n bytes.push(addr & 0xFF);\n if (bytes.length == 0)\n bytes.push(0);\n\n var node = this.decodeTables[0];\n for (var i = bytes.length-1; i > 0; i--) { // Traverse nodes deeper into the trie.\n var val = node[bytes[i]];\n\n if (val == UNASSIGNED) { // Create new node.\n node[bytes[i]] = NODE_START - this.decodeTables.length;\n this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));\n }\n else if (val <= NODE_START) { // Existing node.\n node = this.decodeTables[NODE_START - val];\n }\n else\n throw new Error(\"Overwrite byte in \" + this.encodingName + \", addr: \" + addr.toString(16));\n }\n return node;\n}\n\n\nDBCSCodec.prototype._addDecodeChunk = function(chunk) {\n // First element of chunk is the hex mbcs code where we start.\n var curAddr = parseInt(chunk[0], 16);\n\n // Choose the decoding node where we'll write our chars.\n var writeTable = this._getDecodeTrieNode(curAddr);\n curAddr = curAddr & 0xFF;\n\n // Write all other elements of the chunk to the table.\n for (var k = 1; k < chunk.length; k++) {\n var part = chunk[k];\n if (typeof part === \"string\") { // String, write as-is.\n for (var l = 0; l < part.length;) {\n var code = part.charCodeAt(l++);\n if (0xD800 <= code && code < 0xDC00) { // Decode surrogate\n var codeTrail = part.charCodeAt(l++);\n if (0xDC00 <= codeTrail && codeTrail < 0xE000)\n writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);\n else\n throw new Error(\"Incorrect surrogate pair in \" + this.encodingName + \" at chunk \" + chunk[0]);\n }\n else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used)\n var len = 0xFFF - code + 2;\n var seq = [];\n for (var m = 0; m < len; m++)\n seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq.\n\n writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;\n this.decodeTableSeq.push(seq);\n }\n else\n writeTable[curAddr++] = code; // Basic char\n }\n } \n else if (typeof part === \"number\") { // Integer, meaning increasing sequence starting with prev character.\n var charCode = writeTable[curAddr - 1] + 1;\n for (var l = 0; l < part; l++)\n writeTable[curAddr++] = charCode++;\n }\n else\n throw new Error(\"Incorrect type '\" + typeof part + \"' given in \" + this.encodingName + \" at chunk \" + chunk[0]);\n }\n if (curAddr > 0xFF)\n throw new Error(\"Incorrect chunk in \" + this.encodingName + \" at addr \" + chunk[0] + \": too long\" + curAddr);\n}\n\n// Encoder helpers\nDBCSCodec.prototype._getEncodeBucket = function(uCode) {\n var high = uCode >> 8; // This could be > 0xFF because of astral characters.\n if (this.encodeTable[high] === undefined)\n this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand.\n return this.encodeTable[high];\n}\n\nDBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {\n var bucket = this._getEncodeBucket(uCode);\n var low = uCode & 0xFF;\n if (bucket[low] <= SEQ_START)\n this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode; // There's already a sequence, set a single-char subsequence of it.\n else if (bucket[low] == UNASSIGNED)\n bucket[low] = dbcsCode;\n}\n\nDBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {\n \n // Get the root of character tree according to first character of the sequence.\n var uCode = seq[0];\n var bucket = this._getEncodeBucket(uCode);\n var low = uCode & 0xFF;\n\n var node;\n if (bucket[low] <= SEQ_START) {\n // There's already a sequence with - use it.\n node = this.encodeTableSeq[SEQ_START-bucket[low]];\n }\n else {\n // There was no sequence object - allocate a new one.\n node = {};\n if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; // If a char was set before - make it a single-char subsequence.\n bucket[low] = SEQ_START - this.encodeTableSeq.length;\n this.encodeTableSeq.push(node);\n }\n\n // Traverse the character tree, allocating new nodes as needed.\n for (var j = 1; j < seq.length-1; j++) {\n var oldVal = node[uCode];\n if (typeof oldVal === 'object')\n node = oldVal;\n else {\n node = node[uCode] = {}\n if (oldVal !== undefined)\n node[DEF_CHAR] = oldVal\n }\n }\n\n // Set the leaf to given dbcsCode.\n uCode = seq[seq.length-1];\n node[uCode] = dbcsCode;\n}\n\nDBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {\n var node = this.decodeTables[nodeIdx];\n var hasValues = false;\n var subNodeEmpty = {};\n for (var i = 0; i < 0x100; i++) {\n var uCode = node[i];\n var mbCode = prefix + i;\n if (skipEncodeChars[mbCode])\n continue;\n\n if (uCode >= 0) {\n this._setEncodeChar(uCode, mbCode);\n hasValues = true;\n } else if (uCode <= NODE_START) {\n var subNodeIdx = NODE_START - uCode;\n if (!subNodeEmpty[subNodeIdx]) { // Skip empty subtrees (they are too large in gb18030).\n var newPrefix = (mbCode << 8) >>> 0; // NOTE: '>>> 0' keeps 32-bit num positive.\n if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))\n hasValues = true;\n else\n subNodeEmpty[subNodeIdx] = true;\n }\n } else if (uCode <= SEQ_START) {\n this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);\n hasValues = true;\n }\n }\n return hasValues;\n}\n\n\n\n// == Encoder ==================================================================\n\nfunction DBCSEncoder(options, codec) {\n // Encoder state\n this.leadSurrogate = -1;\n this.seqObj = undefined;\n \n // Static data\n this.encodeTable = codec.encodeTable;\n this.encodeTableSeq = codec.encodeTableSeq;\n this.defaultCharSingleByte = codec.defCharSB;\n this.gb18030 = codec.gb18030;\n}\n\nDBCSEncoder.prototype.write = function(str) {\n var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),\n leadSurrogate = this.leadSurrogate,\n seqObj = this.seqObj, nextChar = -1,\n i = 0, j = 0;\n\n while (true) {\n // 0. Get next character.\n if (nextChar === -1) {\n if (i == str.length) break;\n var uCode = str.charCodeAt(i++);\n }\n else {\n var uCode = nextChar;\n nextChar = -1; \n }\n\n // 1. Handle surrogates.\n if (0xD800 <= uCode && uCode < 0xE000) { // Char is one of surrogates.\n if (uCode < 0xDC00) { // We've got lead surrogate.\n if (leadSurrogate === -1) {\n leadSurrogate = uCode;\n continue;\n } else {\n leadSurrogate = uCode;\n // Double lead surrogate found.\n uCode = UNASSIGNED;\n }\n } else { // We've got trail surrogate.\n if (leadSurrogate !== -1) {\n uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00);\n leadSurrogate = -1;\n } else {\n // Incomplete surrogate pair - only trail surrogate found.\n uCode = UNASSIGNED;\n }\n \n }\n }\n else if (leadSurrogate !== -1) {\n // Incomplete surrogate pair - only lead surrogate found.\n nextChar = uCode; uCode = UNASSIGNED; // Write an error, then current char.\n leadSurrogate = -1;\n }\n\n // 2. Convert uCode character.\n var dbcsCode = UNASSIGNED;\n if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence\n var resCode = seqObj[uCode];\n if (typeof resCode === 'object') { // Sequence continues.\n seqObj = resCode;\n continue;\n\n } else if (typeof resCode == 'number') { // Sequence finished. Write it.\n dbcsCode = resCode;\n\n } else if (resCode == undefined) { // Current character is not part of the sequence.\n\n // Try default character for this sequence\n resCode = seqObj[DEF_CHAR];\n if (resCode !== undefined) {\n dbcsCode = resCode; // Found. Write it.\n nextChar = uCode; // Current character will be written too in the next iteration.\n\n } else {\n // TODO: What if we have no default? (resCode == undefined)\n // Then, we should write first char of the sequence as-is and try the rest recursively.\n // Didn't do it for now because no encoding has this situation yet.\n // Currently, just skip the sequence and write current char.\n }\n }\n seqObj = undefined;\n }\n else if (uCode >= 0) { // Regular character\n var subtable = this.encodeTable[uCode >> 8];\n if (subtable !== undefined)\n dbcsCode = subtable[uCode & 0xFF];\n \n if (dbcsCode <= SEQ_START) { // Sequence start\n seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];\n continue;\n }\n\n if (dbcsCode == UNASSIGNED && this.gb18030) {\n // Use GB18030 algorithm to find character(s) to write.\n var idx = findIdx(this.gb18030.uChars, uCode);\n if (idx != -1) {\n var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);\n newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;\n newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;\n newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;\n newBuf[j++] = 0x30 + dbcsCode;\n continue;\n }\n }\n }\n\n // 3. Write dbcsCode character.\n if (dbcsCode === UNASSIGNED)\n dbcsCode = this.defaultCharSingleByte;\n \n if (dbcsCode < 0x100) {\n newBuf[j++] = dbcsCode;\n }\n else if (dbcsCode < 0x10000) {\n newBuf[j++] = dbcsCode >> 8; // high byte\n newBuf[j++] = dbcsCode & 0xFF; // low byte\n }\n else if (dbcsCode < 0x1000000) {\n newBuf[j++] = dbcsCode >> 16;\n newBuf[j++] = (dbcsCode >> 8) & 0xFF;\n newBuf[j++] = dbcsCode & 0xFF;\n } else {\n newBuf[j++] = dbcsCode >>> 24;\n newBuf[j++] = (dbcsCode >>> 16) & 0xFF;\n newBuf[j++] = (dbcsCode >>> 8) & 0xFF;\n newBuf[j++] = dbcsCode & 0xFF;\n }\n }\n\n this.seqObj = seqObj;\n this.leadSurrogate = leadSurrogate;\n return newBuf.slice(0, j);\n}\n\nDBCSEncoder.prototype.end = function() {\n if (this.leadSurrogate === -1 && this.seqObj === undefined)\n return; // All clean. Most often case.\n\n var newBuf = Buffer.alloc(10), j = 0;\n\n if (this.seqObj) { // We're in the sequence.\n var dbcsCode = this.seqObj[DEF_CHAR];\n if (dbcsCode !== undefined) { // Write beginning of the sequence.\n if (dbcsCode < 0x100) {\n newBuf[j++] = dbcsCode;\n }\n else {\n newBuf[j++] = dbcsCode >> 8; // high byte\n newBuf[j++] = dbcsCode & 0xFF; // low byte\n }\n } else {\n // See todo above.\n }\n this.seqObj = undefined;\n }\n\n if (this.leadSurrogate !== -1) {\n // Incomplete surrogate pair - only lead surrogate found.\n newBuf[j++] = this.defaultCharSingleByte;\n this.leadSurrogate = -1;\n }\n \n return newBuf.slice(0, j);\n}\n\n// Export for testing\nDBCSEncoder.prototype.findIdx = findIdx;\n\n\n// == Decoder ==================================================================\n\nfunction DBCSDecoder(options, codec) {\n // Decoder state\n this.nodeIdx = 0;\n this.prevBytes = [];\n\n // Static data\n this.decodeTables = codec.decodeTables;\n this.decodeTableSeq = codec.decodeTableSeq;\n this.defaultCharUnicode = codec.defaultCharUnicode;\n this.gb18030 = codec.gb18030;\n}\n\nDBCSDecoder.prototype.write = function(buf) {\n var newBuf = Buffer.alloc(buf.length*2),\n nodeIdx = this.nodeIdx, \n prevBytes = this.prevBytes, prevOffset = this.prevBytes.length,\n seqStart = -this.prevBytes.length, // idx of the start of current parsed sequence.\n uCode;\n\n for (var i = 0, j = 0; i < buf.length; i++) {\n var curByte = (i >= 0) ? buf[i] : prevBytes[i + prevOffset];\n\n // Lookup in current trie node.\n var uCode = this.decodeTables[nodeIdx][curByte];\n\n if (uCode >= 0) { \n // Normal character, just use it.\n }\n else if (uCode === UNASSIGNED) { // Unknown char.\n // TODO: Callback with seq.\n uCode = this.defaultCharUnicode.charCodeAt(0);\n i = seqStart; // Skip one byte ('i' will be incremented by the for loop) and try to parse again.\n }\n else if (uCode === GB18030_CODE) {\n if (i >= 3) {\n var ptr = (buf[i-3]-0x81)*12600 + (buf[i-2]-0x30)*1260 + (buf[i-1]-0x81)*10 + (curByte-0x30);\n } else {\n var ptr = (prevBytes[i-3+prevOffset]-0x81)*12600 + \n (((i-2 >= 0) ? buf[i-2] : prevBytes[i-2+prevOffset])-0x30)*1260 + \n (((i-1 >= 0) ? buf[i-1] : prevBytes[i-1+prevOffset])-0x81)*10 + \n (curByte-0x30);\n }\n var idx = findIdx(this.gb18030.gbChars, ptr);\n uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];\n }\n else if (uCode <= NODE_START) { // Go to next trie node.\n nodeIdx = NODE_START - uCode;\n continue;\n }\n else if (uCode <= SEQ_START) { // Output a sequence of chars.\n var seq = this.decodeTableSeq[SEQ_START - uCode];\n for (var k = 0; k < seq.length - 1; k++) {\n uCode = seq[k];\n newBuf[j++] = uCode & 0xFF;\n newBuf[j++] = uCode >> 8;\n }\n uCode = seq[seq.length-1];\n }\n else\n throw new Error(\"iconv-lite internal error: invalid decoding table value \" + uCode + \" at \" + nodeIdx + \"/\" + curByte);\n\n // Write the character to buffer, handling higher planes using surrogate pair.\n if (uCode >= 0x10000) { \n uCode -= 0x10000;\n var uCodeLead = 0xD800 | (uCode >> 10);\n newBuf[j++] = uCodeLead & 0xFF;\n newBuf[j++] = uCodeLead >> 8;\n\n uCode = 0xDC00 | (uCode & 0x3FF);\n }\n newBuf[j++] = uCode & 0xFF;\n newBuf[j++] = uCode >> 8;\n\n // Reset trie node.\n nodeIdx = 0; seqStart = i+1;\n }\n\n this.nodeIdx = nodeIdx;\n this.prevBytes = (seqStart >= 0)\n ? Array.prototype.slice.call(buf, seqStart)\n : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf));\n\n return newBuf.slice(0, j).toString('ucs2');\n}\n\nDBCSDecoder.prototype.end = function() {\n var ret = '';\n\n // Try to parse all remaining chars.\n while (this.prevBytes.length > 0) {\n // Skip 1 character in the buffer.\n ret += this.defaultCharUnicode;\n var bytesArr = this.prevBytes.slice(1);\n\n // Parse remaining as usual.\n this.prevBytes = [];\n this.nodeIdx = 0;\n if (bytesArr.length > 0)\n ret += this.write(bytesArr);\n }\n\n this.prevBytes = [];\n this.nodeIdx = 0;\n return ret;\n}\n\n// Binary search for GB18030. Returns largest i such that table[i] <= val.\nfunction findIdx(table, val) {\n if (table[0] > val)\n return -1;\n\n var l = 0, r = table.length;\n while (l < r-1) { // always table[l] <= val < table[r]\n var mid = l + ((r-l+1) >> 1);\n if (table[mid] <= val)\n l = mid;\n else\n r = mid;\n }\n return l;\n}\n\n","\"use strict\";\n\n// Description of supported double byte encodings and aliases.\n// Tables are not require()-d until they are needed to speed up library load.\n// require()-s are direct to support Browserify.\n\nmodule.exports = {\n \n // == Japanese/ShiftJIS ====================================================\n // All japanese encodings are based on JIS X set of standards:\n // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.\n // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes. \n // Has several variations in 1978, 1983, 1990 and 1997.\n // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.\n // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.\n // 2 planes, first is superset of 0208, second - revised 0212.\n // Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx)\n\n // Byte encodings are:\n // * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte\n // encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC.\n // Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI.\n // * EUC-JP: Up to 3 bytes per character. Used mostly on *nixes.\n // 0x00-0x7F - lower part of 0201\n // 0x8E, 0xA1-0xDF - upper part of 0201\n // (0xA1-0xFE)x2 - 0208 plane (94x94).\n // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).\n // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.\n // Used as-is in ISO2022 family.\n // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII, \n // 0201-1976 Roman, 0208-1978, 0208-1983.\n // * ISO2022-JP-1: Adds esc seq for 0212-1990.\n // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.\n // * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2.\n // * ISO2022-JP-2004: Adds 0213-2004 Plane 1.\n //\n // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.\n //\n // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html\n\n 'shiftjis': {\n type: '_dbcs',\n table: function() { return require('./tables/shiftjis.json') },\n encodeAdd: {'\\u00a5': 0x5C, '\\u203E': 0x7E},\n encodeSkipVals: [{from: 0xED40, to: 0xF940}],\n },\n 'csshiftjis': 'shiftjis',\n 'mskanji': 'shiftjis',\n 'sjis': 'shiftjis',\n 'windows31j': 'shiftjis',\n 'ms31j': 'shiftjis',\n 'xsjis': 'shiftjis',\n 'windows932': 'shiftjis',\n 'ms932': 'shiftjis',\n '932': 'shiftjis',\n 'cp932': 'shiftjis',\n\n 'eucjp': {\n type: '_dbcs',\n table: function() { return require('./tables/eucjp.json') },\n encodeAdd: {'\\u00a5': 0x5C, '\\u203E': 0x7E},\n },\n\n // TODO: KDDI extension to Shift_JIS\n // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.\n // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.\n\n\n // == Chinese/GBK ==========================================================\n // http://en.wikipedia.org/wiki/GBK\n // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder\n\n // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936\n 'gb2312': 'cp936',\n 'gb231280': 'cp936',\n 'gb23121980': 'cp936',\n 'csgb2312': 'cp936',\n 'csiso58gb231280': 'cp936',\n 'euccn': 'cp936',\n\n // Microsoft's CP936 is a subset and approximation of GBK.\n 'windows936': 'cp936',\n 'ms936': 'cp936',\n '936': 'cp936',\n 'cp936': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json') },\n },\n\n // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.\n 'gbk': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json').concat(require('./tables/gbk-added.json')) },\n },\n 'xgbk': 'gbk',\n 'isoir58': 'gbk',\n\n // GB18030 is an algorithmic extension of GBK.\n // Main source: https://www.w3.org/TR/encoding/#gbk-encoder\n // http://icu-project.org/docs/papers/gb18030.html\n // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml\n // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0\n 'gb18030': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json').concat(require('./tables/gbk-added.json')) },\n gb18030: function() { return require('./tables/gb18030-ranges.json') },\n encodeSkipVals: [0x80],\n encodeAdd: {'€': 0xA2E3},\n },\n\n 'chinese': 'gb18030',\n\n\n // == Korean ===============================================================\n // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.\n 'windows949': 'cp949',\n 'ms949': 'cp949',\n '949': 'cp949',\n 'cp949': {\n type: '_dbcs',\n table: function() { return require('./tables/cp949.json') },\n },\n\n 'cseuckr': 'cp949',\n 'csksc56011987': 'cp949',\n 'euckr': 'cp949',\n 'isoir149': 'cp949',\n 'korean': 'cp949',\n 'ksc56011987': 'cp949',\n 'ksc56011989': 'cp949',\n 'ksc5601': 'cp949',\n\n\n // == Big5/Taiwan/Hong Kong ================================================\n // There are lots of tables for Big5 and cp950. Please see the following links for history:\n // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html\n // Variations, in roughly number of defined chars:\n // * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT\n // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/\n // * Big5-2003 (Taiwan standard) almost superset of cp950.\n // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.\n // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard. \n // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.\n // Plus, it has 4 combining sequences.\n // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299\n // because big5-hkscs is the only encoding to include astral characters in non-algorithmic way.\n // Implementations are not consistent within browsers; sometimes labeled as just big5.\n // MS Internet Explorer switches from big5 to big5-hkscs when a patch applied.\n // Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31\n // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.\n // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt\n // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt\n // \n // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder\n // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.\n\n 'windows950': 'cp950',\n 'ms950': 'cp950',\n '950': 'cp950',\n 'cp950': {\n type: '_dbcs',\n table: function() { return require('./tables/cp950.json') },\n },\n\n // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.\n 'big5': 'big5hkscs',\n 'big5hkscs': {\n type: '_dbcs',\n table: function() { return require('./tables/cp950.json').concat(require('./tables/big5-added.json')) },\n encodeSkipVals: [\n // Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of\n // https://encoding.spec.whatwg.org/#index-big5-pointer), we still do it to increase compatibility with ICU.\n // But if a single unicode point can be encoded both as HKSCS and regular Big5, we prefer the latter.\n 0x8e69, 0x8e6f, 0x8e7e, 0x8eab, 0x8eb4, 0x8ecd, 0x8ed0, 0x8f57, 0x8f69, 0x8f6e, 0x8fcb, 0x8ffe,\n 0x906d, 0x907a, 0x90c4, 0x90dc, 0x90f1, 0x91bf, 0x92af, 0x92b0, 0x92b1, 0x92b2, 0x92d1, 0x9447, 0x94ca,\n 0x95d9, 0x96fc, 0x9975, 0x9b76, 0x9b78, 0x9b7b, 0x9bc6, 0x9bde, 0x9bec, 0x9bf6, 0x9c42, 0x9c53, 0x9c62,\n 0x9c68, 0x9c6b, 0x9c77, 0x9cbc, 0x9cbd, 0x9cd0, 0x9d57, 0x9d5a, 0x9dc4, 0x9def, 0x9dfb, 0x9ea9, 0x9eef,\n 0x9efd, 0x9f60, 0x9fcb, 0xa077, 0xa0dc, 0xa0df, 0x8fcc, 0x92c8, 0x9644, 0x96ed,\n\n // Step 2 of https://encoding.spec.whatwg.org/#index-big5-pointer: Use last pointer for U+2550, U+255E, U+2561, U+256A, U+5341, or U+5345\n 0xa2a4, 0xa2a5, 0xa2a7, 0xa2a6, 0xa2cc, 0xa2ce,\n ],\n },\n\n 'cnbig5': 'big5hkscs',\n 'csbig5': 'big5hkscs',\n 'xxbig5': 'big5hkscs',\n};\n","\"use strict\";\n\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// NOTE: Due to 'stream' module being pretty large (~100Kb, significant in browser environments), \n// we opt to dependency-inject it instead of creating a hard dependency.\nmodule.exports = function(stream_module) {\n var Transform = stream_module.Transform;\n\n // == Encoder stream =======================================================\n\n function IconvLiteEncoderStream(conv, options) {\n this.conv = conv;\n options = options || {};\n options.decodeStrings = false; // We accept only strings, so we don't need to decode them.\n Transform.call(this, options);\n }\n\n IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {\n constructor: { value: IconvLiteEncoderStream }\n });\n\n IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {\n if (typeof chunk != 'string')\n return done(new Error(\"Iconv encoding stream needs strings as its input.\"));\n try {\n var res = this.conv.write(chunk);\n if (res && res.length) this.push(res);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteEncoderStream.prototype._flush = function(done) {\n try {\n var res = this.conv.end();\n if (res && res.length) this.push(res);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteEncoderStream.prototype.collect = function(cb) {\n var chunks = [];\n this.on('error', cb);\n this.on('data', function(chunk) { chunks.push(chunk); });\n this.on('end', function() {\n cb(null, Buffer.concat(chunks));\n });\n return this;\n }\n\n\n // == Decoder stream =======================================================\n\n function IconvLiteDecoderStream(conv, options) {\n this.conv = conv;\n options = options || {};\n options.encoding = this.encoding = 'utf8'; // We output strings.\n Transform.call(this, options);\n }\n\n IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {\n constructor: { value: IconvLiteDecoderStream }\n });\n\n IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {\n if (!Buffer.isBuffer(chunk) && !(chunk instanceof Uint8Array))\n return done(new Error(\"Iconv decoding stream needs buffers as its input.\"));\n try {\n var res = this.conv.write(chunk);\n if (res && res.length) this.push(res, this.encoding);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteDecoderStream.prototype._flush = function(done) {\n try {\n var res = this.conv.end();\n if (res && res.length) this.push(res, this.encoding); \n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteDecoderStream.prototype.collect = function(cb) {\n var res = '';\n this.on('error', cb);\n this.on('data', function(chunk) { res += chunk; });\n this.on('end', function() {\n cb(null, res);\n });\n return this;\n }\n\n return {\n IconvLiteEncoderStream: IconvLiteEncoderStream,\n IconvLiteDecoderStream: IconvLiteDecoderStream,\n };\n};\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest\n\nconst Packet = require('../packets/packet');\n\nclass AuthSwitchRequest {\n constructor(opts) {\n this.pluginName = opts.pluginName;\n this.pluginData = opts.pluginData;\n }\n\n toPacket() {\n const length = 6 + this.pluginName.length + this.pluginData.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(0xfe);\n // TODO: use server encoding\n packet.writeNullTerminatedString(this.pluginName, 'cesu8');\n packet.writeBuffer(this.pluginData);\n return packet;\n }\n\n static fromPacket(packet) {\n packet.readInt8(); // marker\n // assert marker == 0xfe?\n // TODO: use server encoding\n const name = packet.readNullTerminatedString('cesu8');\n const data = packet.readBuffer();\n return new AuthSwitchRequest({\n pluginName: name,\n pluginData: data\n });\n }\n}\n\nmodule.exports = AuthSwitchRequest;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest\n\nconst Packet = require('../packets/packet');\n\nclass AuthSwitchRequestMoreData {\n constructor(data) {\n this.data = data;\n }\n\n toPacket() {\n const length = 5 + this.data.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(0x01);\n packet.writeBuffer(this.data);\n return packet;\n }\n\n static fromPacket(packet) {\n packet.readInt8(); // marker\n const data = packet.readBuffer();\n return new AuthSwitchRequestMoreData(data);\n }\n\n static verifyMarker(packet) {\n return packet.peekByte() === 0x01;\n }\n}\n\nmodule.exports = AuthSwitchRequestMoreData;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest\n\nconst Packet = require('../packets/packet');\n\nclass AuthSwitchResponse {\n constructor(data) {\n if (!Buffer.isBuffer(data)) {\n data = Buffer.from(data);\n }\n this.data = data;\n }\n\n toPacket() {\n const length = 4 + this.data.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeBuffer(this.data);\n return packet;\n }\n\n static fromPacket(packet) {\n const data = packet.readBuffer();\n return new AuthSwitchResponse(data);\n }\n}\n\nmodule.exports = AuthSwitchResponse;\n","'use strict';\n\nconst Types = require('../constants/types');\nconst Packet = require('../packets/packet');\n\nconst binaryReader = new Array(256);\n\nclass BinaryRow {\n constructor(columns) {\n this.columns = columns || [];\n }\n\n toPacket() {\n throw new Error('Not implemented');\n }\n\n // TODO: complete list of types...\n static fromPacket(fields, packet) {\n const columns = new Array(fields.length);\n packet.readInt8(); // TODO check it's 0\n const nullBitmapLength = Math.floor((fields.length + 7 + 2) / 8);\n // TODO: read and interpret null bitmap\n packet.skip(nullBitmapLength);\n for (let i = 0; i < columns.length; ++i) {\n columns[i] = binaryReader[fields[i].columnType].apply(packet);\n }\n return new BinaryRow(columns);\n }\n}\n\n// TODO: replace with constants.MYSQL_TYPE_*\nbinaryReader[Types.DECIMAL] = Packet.prototype.readLengthCodedString;\nbinaryReader[1] = Packet.prototype.readInt8; // tiny\nbinaryReader[2] = Packet.prototype.readInt16; // short\nbinaryReader[3] = Packet.prototype.readInt32; // long\nbinaryReader[4] = Packet.prototype.readFloat; // float\nbinaryReader[5] = Packet.prototype.readDouble; // double\nbinaryReader[6] = Packet.prototype.assertInvalid; // null, should be skipped vie null bitmap\nbinaryReader[7] = Packet.prototype.readTimestamp; // timestamp, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_TIMESTAMP\nbinaryReader[8] = Packet.prototype.readInt64; // long long\nbinaryReader[9] = Packet.prototype.readInt32; // int24\nbinaryReader[10] = Packet.prototype.readTimestamp; // date\nbinaryReader[11] = Packet.prototype.readTime; // time, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_TIME\nbinaryReader[12] = Packet.prototype.readDateTime; // datetime, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_DATETIME\nbinaryReader[13] = Packet.prototype.readInt16; // year\nbinaryReader[Types.VAR_STRING] = Packet.prototype.readLengthCodedString; // var string\n\nmodule.exports = BinaryRow;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/com-binlog-dump.html#packet-COM_BINLOG_DUMP\n\nconst Packet = require('../packets/packet');\nconst CommandCodes = require('../constants/commands');\n\n// TODO: add flag to constants\n// 0x01 - BINLOG_DUMP_NON_BLOCK\n// send EOF instead of blocking\nclass BinlogDump {\n constructor(opts) {\n this.binlogPos = opts.binlogPos || 0;\n this.serverId = opts.serverId || 0;\n this.flags = opts.flags || 0;\n this.filename = opts.filename || '';\n }\n\n toPacket() {\n const length = 15 + Buffer.byteLength(this.filename, 'utf8'); // TODO: should be ascii?\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.BINLOG_DUMP);\n packet.writeInt32(this.binlogPos);\n packet.writeInt16(this.flags);\n packet.writeInt32(this.serverId);\n packet.writeString(this.filename);\n return packet;\n }\n}\n\nmodule.exports = BinlogDump;\n","'use strict';\n\nconst CommandCode = require('../constants/commands.js');\nconst ClientConstants = require('../constants/client.js');\nconst Packet = require('../packets/packet.js');\nconst auth41 = require('../auth_41.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\n// https://dev.mysql.com/doc/internals/en/com-change-user.html#packet-COM_CHANGE_USER\nclass ChangeUser {\n constructor(opts) {\n this.flags = opts.flags;\n this.user = opts.user || '';\n this.database = opts.database || '';\n this.password = opts.password || '';\n this.passwordSha1 = opts.passwordSha1;\n this.authPluginData1 = opts.authPluginData1;\n this.authPluginData2 = opts.authPluginData2;\n this.connectAttributes = opts.connectAttrinutes || {};\n let authToken;\n if (this.passwordSha1) {\n authToken = auth41.calculateTokenFromPasswordSha(\n this.passwordSha1,\n this.authPluginData1,\n this.authPluginData2\n );\n } else {\n authToken = auth41.calculateToken(\n this.password,\n this.authPluginData1,\n this.authPluginData2\n );\n }\n this.authToken = authToken;\n this.charsetNumber = opts.charsetNumber;\n }\n\n // TODO\n // ChangeUser.fromPacket = function(packet)\n // };\n serializeToBuffer(buffer) {\n const isSet = flag => this.flags & ClientConstants[flag];\n const packet = new Packet(0, buffer, 0, buffer.length);\n packet.offset = 4;\n const encoding = CharsetToEncoding[this.charsetNumber];\n packet.writeInt8(CommandCode.CHANGE_USER);\n packet.writeNullTerminatedString(this.user, encoding);\n if (isSet('SECURE_CONNECTION')) {\n packet.writeInt8(this.authToken.length);\n packet.writeBuffer(this.authToken);\n } else {\n packet.writeBuffer(this.authToken);\n packet.writeInt8(0);\n }\n packet.writeNullTerminatedString(this.database, encoding);\n packet.writeInt16(this.charsetNumber);\n if (isSet('PLUGIN_AUTH')) {\n // TODO: read this from parameters\n packet.writeNullTerminatedString('mysql_native_password', 'latin1');\n }\n if (isSet('CONNECT_ATTRS')) {\n const connectAttributes = this.connectAttributes;\n const attrNames = Object.keys(connectAttributes);\n let keysLength = 0;\n for (let k = 0; k < attrNames.length; ++k) {\n keysLength += Packet.lengthCodedStringLength(attrNames[k], encoding);\n keysLength += Packet.lengthCodedStringLength(\n connectAttributes[attrNames[k]],\n encoding\n );\n }\n packet.writeLengthCodedNumber(keysLength);\n for (let k = 0; k < attrNames.length; ++k) {\n packet.writeLengthCodedString(attrNames[k], encoding);\n packet.writeLengthCodedString(\n connectAttributes[attrNames[k]],\n encoding\n );\n }\n }\n return packet;\n }\n\n toPacket() {\n if (typeof this.user !== 'string') {\n throw new Error('\"user\" connection config property must be a string');\n }\n if (typeof this.database !== 'string') {\n throw new Error('\"database\" connection config property must be a string');\n }\n // dry run: calculate resulting packet length\n const p = this.serializeToBuffer(Packet.MockBuffer());\n return this.serializeToBuffer(Buffer.allocUnsafe(p.offset));\n }\n}\n\nmodule.exports = ChangeUser;\n","'use strict';\n\nconst Packet = require('../packets/packet');\nconst CommandCodes = require('../constants/commands');\n\nclass CloseStatement {\n constructor(id) {\n this.id = id;\n }\n\n // note: no response sent back\n toPacket() {\n const packet = new Packet(0, Buffer.allocUnsafe(9), 0, 9);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.STMT_CLOSE);\n packet.writeInt32(this.id);\n return packet;\n }\n}\n\nmodule.exports = CloseStatement;\n","'use strict';\n\nconst Packet = require('../packets/packet');\nconst StringParser = require('../parsers/string');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nconst fields = ['catalog', 'schema', 'table', 'orgTable', 'name', 'orgName'];\n\n// creating JS string is relatively expensive (compared to\n// reading few bytes from buffer) because all string properties\n// except for name are unlikely to be used we postpone\n// string conversion until property access\n//\n// TODO: watch for integration benchmarks (one with real network buffer)\n// there could be bad side effect as keeping reference to a buffer makes it\n// sit in the memory longer (usually until final .query() callback)\n// Latest v8 perform much better in regard to bufferer -> string conversion,\n// at some point of time this optimisation might become unnecessary\n// see https://github.com/sidorares/node-mysql2/pull/137\n//\nclass ColumnDefinition {\n constructor(packet, clientEncoding) {\n this._buf = packet.buffer;\n this._clientEncoding = clientEncoding;\n this._catalogLength = packet.readLengthCodedNumber();\n this._catalogStart = packet.offset;\n packet.offset += this._catalogLength;\n this._schemaLength = packet.readLengthCodedNumber();\n this._schemaStart = packet.offset;\n packet.offset += this._schemaLength;\n this._tableLength = packet.readLengthCodedNumber();\n this._tableStart = packet.offset;\n packet.offset += this._tableLength;\n this._orgTableLength = packet.readLengthCodedNumber();\n this._orgTableStart = packet.offset;\n packet.offset += this._orgTableLength;\n // name is always used, don't make it lazy\n const _nameLength = packet.readLengthCodedNumber();\n const _nameStart = packet.offset;\n packet.offset += _nameLength;\n this._orgNameLength = packet.readLengthCodedNumber();\n this._orgNameStart = packet.offset;\n packet.offset += this._orgNameLength;\n packet.skip(1); // length of the following fields (always 0x0c)\n this.characterSet = packet.readInt16();\n this.encoding = CharsetToEncoding[this.characterSet];\n this.name = StringParser.decode(\n this._buf,\n this.encoding === 'binary' ? this._clientEncoding : this.encoding,\n _nameStart, \n _nameStart + _nameLength\n );\n this.columnLength = packet.readInt32();\n this.columnType = packet.readInt8();\n this.flags = packet.readInt16();\n this.decimals = packet.readInt8();\n }\n\n inspect() {\n return {\n catalog: this.catalog,\n schema: this.schema,\n name: this.name,\n orgName: this.orgName,\n table: this.table,\n orgTable: this.orgTable,\n characterSet: this.characterSet,\n columnLength: this.columnLength,\n columnType: this.columnType,\n flags: this.flags,\n decimals: this.decimals\n };\n }\n\n static toPacket(column, sequenceId) {\n let length = 17; // = 4 padding + 1 + 12 for the rest\n fields.forEach(field => {\n length += Packet.lengthCodedStringLength(\n column[field],\n CharsetToEncoding[column.characterSet]\n );\n });\n const buffer = Buffer.allocUnsafe(length);\n\n const packet = new Packet(sequenceId, buffer, 0, length);\n function writeField(name) {\n packet.writeLengthCodedString(\n column[name],\n CharsetToEncoding[column.characterSet]\n );\n }\n packet.offset = 4;\n fields.forEach(writeField);\n packet.writeInt8(0x0c);\n packet.writeInt16(column.characterSet);\n packet.writeInt32(column.columnLength);\n packet.writeInt8(column.columnType);\n packet.writeInt16(column.flags);\n packet.writeInt8(column.decimals);\n packet.writeInt16(0); // filler\n return packet;\n }\n\n // node-mysql compatibility: alias \"db\" to \"schema\"\n get db() {\n return this.schema;\n }\n}\n\nconst addString = function(name) {\n Object.defineProperty(ColumnDefinition.prototype, name, {\n get: function() {\n const start = this[`_${name}Start`];\n const end = start + this[`_${name}Length`];\n const val = StringParser.decode(\n this._buf,\n this.encoding === 'binary' ? this._clientEncoding : this.encoding,\n start, \n end\n );\n \n Object.defineProperty(this, name, {\n value: val,\n writable: false,\n configurable: false,\n enumerable: false\n });\n\n return val;\n }\n });\n};\n\naddString('catalog');\naddString('schema');\naddString('table');\naddString('orgTable');\naddString('orgName');\n\nmodule.exports = ColumnDefinition;\n","'use strict';\n\nconst CursorType = require('../constants/cursor');\nconst CommandCodes = require('../constants/commands');\nconst Types = require('../constants/types');\nconst Packet = require('../packets/packet');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nfunction isJSON(value) {\n return (\n Array.isArray(value) ||\n value.constructor === Object ||\n (typeof value.toJSON === 'function' && !Buffer.isBuffer(value))\n );\n}\n\n/**\n * Converts a value to an object describing type, String/Buffer representation and length\n * @param {*} value\n */\nfunction toParameter(value, encoding, timezone) {\n let type = Types.VAR_STRING;\n let length;\n let writer = function(value) {\n // eslint-disable-next-line no-invalid-this\n return Packet.prototype.writeLengthCodedString.call(this, value, encoding);\n };\n if (value !== null) {\n switch (typeof value) {\n case 'undefined':\n throw new TypeError('Bind parameters must not contain undefined');\n\n case 'number':\n type = Types.DOUBLE;\n length = 8;\n writer = Packet.prototype.writeDouble;\n break;\n\n case 'boolean':\n value = value | 0;\n type = Types.TINY;\n length = 1;\n writer = Packet.prototype.writeInt8;\n break;\n\n case 'object':\n if (Object.prototype.toString.call(value) === '[object Date]') {\n type = Types.DATETIME;\n length = 12;\n writer = function(value) {\n // eslint-disable-next-line no-invalid-this\n return Packet.prototype.writeDate.call(this, value, timezone);\n };\n } else if (isJSON(value)) {\n value = JSON.stringify(value);\n type = Types.JSON;\n } else if (Buffer.isBuffer(value)) {\n length = Packet.lengthCodedNumberLength(value.length) + value.length;\n writer = Packet.prototype.writeLengthCodedBuffer;\n }\n break;\n\n default:\n value = value.toString();\n }\n } else {\n value = '';\n type = Types.NULL;\n }\n if (!length) {\n length = Packet.lengthCodedStringLength(value, encoding);\n }\n return { value, type, length, writer };\n}\n\nclass Execute {\n constructor(id, parameters, charsetNumber, timezone) {\n this.id = id;\n this.parameters = parameters;\n this.encoding = CharsetToEncoding[charsetNumber];\n this.timezone = timezone;\n }\n\n toPacket() {\n // TODO: don't try to calculate packet length in advance, allocate some big buffer in advance (header + 256 bytes?)\n // and copy + reallocate if not enough\n // 0 + 4 - length, seqId\n // 4 + 1 - COM_EXECUTE\n // 5 + 4 - stmtId\n // 9 + 1 - flags\n // 10 + 4 - iteration-count (always 1)\n let length = 14;\n let parameters;\n if (this.parameters && this.parameters.length > 0) {\n length += Math.floor((this.parameters.length + 7) / 8);\n length += 1; // new-params-bound-flag\n length += 2 * this.parameters.length; // type byte for each parameter if new-params-bound-flag is set\n parameters = this.parameters.map(value =>\n toParameter(value, this.encoding, this.timezone)\n );\n length += parameters.reduce(\n (accumulator, parameter) => accumulator + parameter.length,\n 0\n );\n }\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.STMT_EXECUTE);\n packet.writeInt32(this.id);\n packet.writeInt8(CursorType.NO_CURSOR); // flags\n packet.writeInt32(1); // iteration-count, always 1\n if (parameters) {\n let bitmap = 0;\n let bitValue = 1;\n parameters.forEach(parameter => {\n if (parameter.type === Types.NULL) {\n bitmap += bitValue;\n }\n bitValue *= 2;\n if (bitValue === 256) {\n packet.writeInt8(bitmap);\n bitmap = 0;\n bitValue = 1;\n }\n });\n if (bitValue !== 1) {\n packet.writeInt8(bitmap);\n }\n // TODO: explain meaning of the flag\n // afaik, if set n*2 bytes with type of parameter are sent before parameters\n // if not, previous execution types are used (TODO prooflink)\n packet.writeInt8(1); // new-params-bound-flag\n // Write parameter types\n parameters.forEach(parameter => {\n packet.writeInt8(parameter.type); // field type\n packet.writeInt8(0); // parameter flag\n });\n // Write parameter values\n parameters.forEach(parameter => {\n if (parameter.type !== Types.NULL) {\n parameter.writer.call(packet, parameter.value);\n }\n });\n }\n return packet;\n }\n}\n\nmodule.exports = Execute;\n","'use strict';\n\nmodule.exports = {\n NO_CURSOR: 0,\n READ_ONLY: 1,\n FOR_UPDATE: 2,\n SCROLLABLE: 3\n};\n","'use strict';\n\nconst Packet = require('../packets/packet');\nconst ClientConstants = require('../constants/client.js');\n\n// https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::Handshake\n\nclass Handshake {\n constructor(args) {\n this.protocolVersion = args.protocolVersion;\n this.serverVersion = args.serverVersion;\n this.capabilityFlags = args.capabilityFlags;\n this.connectionId = args.connectionId;\n this.authPluginData1 = args.authPluginData1;\n this.authPluginData2 = args.authPluginData2;\n this.characterSet = args.characterSet;\n this.statusFlags = args.statusFlags;\n this.autPluginName = args.autPluginName;\n }\n\n setScrambleData(cb) {\n require('crypto').randomBytes(20, (err, data) => {\n if (err) {\n cb(err);\n return;\n }\n this.authPluginData1 = data.slice(0, 8);\n this.authPluginData2 = data.slice(8, 20);\n cb();\n });\n }\n\n toPacket(sequenceId) {\n const length = 68 + Buffer.byteLength(this.serverVersion, 'utf8');\n const buffer = Buffer.alloc(length + 4, 0); // zero fill, 10 bytes filler later needs to contain zeros\n const packet = new Packet(sequenceId, buffer, 0, length + 4);\n packet.offset = 4;\n packet.writeInt8(this.protocolVersion);\n packet.writeString(this.serverVersion, 'cesu8');\n packet.writeInt8(0);\n packet.writeInt32(this.connectionId);\n packet.writeBuffer(this.authPluginData1);\n packet.writeInt8(0);\n const capabilityFlagsBuffer = Buffer.allocUnsafe(4);\n capabilityFlagsBuffer.writeUInt32LE(this.capabilityFlags, 0);\n packet.writeBuffer(capabilityFlagsBuffer.slice(0, 2));\n packet.writeInt8(this.characterSet);\n packet.writeInt16(this.statusFlags);\n packet.writeBuffer(capabilityFlagsBuffer.slice(2, 4));\n packet.writeInt8(21); // authPluginDataLength\n packet.skip(10);\n packet.writeBuffer(this.authPluginData2);\n packet.writeInt8(0);\n packet.writeString('mysql_native_password', 'latin1');\n packet.writeInt8(0);\n return packet;\n }\n\n static fromPacket(packet) {\n const args = {};\n args.protocolVersion = packet.readInt8();\n args.serverVersion = packet.readNullTerminatedString('cesu8');\n args.connectionId = packet.readInt32();\n args.authPluginData1 = packet.readBuffer(8);\n packet.skip(1);\n const capabilityFlagsBuffer = Buffer.allocUnsafe(4);\n capabilityFlagsBuffer[0] = packet.readInt8();\n capabilityFlagsBuffer[1] = packet.readInt8();\n if (packet.haveMoreData()) {\n args.characterSet = packet.readInt8();\n args.statusFlags = packet.readInt16();\n // upper 2 bytes\n capabilityFlagsBuffer[2] = packet.readInt8();\n capabilityFlagsBuffer[3] = packet.readInt8();\n args.capabilityFlags = capabilityFlagsBuffer.readUInt32LE(0);\n if (args.capabilityFlags & ClientConstants.PLUGIN_AUTH) {\n args.authPluginDataLength = packet.readInt8();\n } else {\n args.authPluginDataLength = 0;\n packet.skip(1);\n }\n packet.skip(10);\n } else {\n args.capabilityFlags = capabilityFlagsBuffer.readUInt16LE(0);\n }\n\n const isSecureConnection =\n args.capabilityFlags & ClientConstants.SECURE_CONNECTION;\n if (isSecureConnection) {\n const authPluginDataLength = args.authPluginDataLength;\n if (authPluginDataLength === 0) {\n // for Secure Password Authentication\n args.authPluginDataLength = 20;\n args.authPluginData2 = packet.readBuffer(12);\n packet.skip(1);\n } else {\n // length > 0\n // for Custom Auth Plugin (PLUGIN_AUTH)\n const len = Math.max(13, authPluginDataLength - 8);\n args.authPluginData2 = packet.readBuffer(len);\n }\n }\n\n if (args.capabilityFlags & ClientConstants.PLUGIN_AUTH) {\n args.autPluginName = packet.readNullTerminatedString('ascii');\n }\n\n return new Handshake(args);\n }\n}\n\nmodule.exports = Handshake;\n","'use strict';\n\nconst ClientConstants = require('../constants/client.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\nconst Packet = require('../packets/packet.js');\n\nconst auth41 = require('../auth_41.js');\n\nclass HandshakeResponse {\n constructor(handshake) {\n this.user = handshake.user || '';\n this.database = handshake.database || '';\n this.password = handshake.password || '';\n this.passwordSha1 = handshake.passwordSha1;\n this.authPluginData1 = handshake.authPluginData1;\n this.authPluginData2 = handshake.authPluginData2;\n this.compress = handshake.compress;\n this.clientFlags = handshake.flags;\n // TODO: pre-4.1 auth support\n let authToken;\n if (this.passwordSha1) {\n authToken = auth41.calculateTokenFromPasswordSha(\n this.passwordSha1,\n this.authPluginData1,\n this.authPluginData2\n );\n } else {\n authToken = auth41.calculateToken(\n this.password,\n this.authPluginData1,\n this.authPluginData2\n );\n }\n this.authToken = authToken;\n this.charsetNumber = handshake.charsetNumber;\n this.encoding = CharsetToEncoding[handshake.charsetNumber];\n this.connectAttributes = handshake.connectAttributes;\n }\n\n serializeResponse(buffer) {\n const isSet = flag => this.clientFlags & ClientConstants[flag];\n const packet = new Packet(0, buffer, 0, buffer.length);\n packet.offset = 4;\n packet.writeInt32(this.clientFlags);\n packet.writeInt32(0); // max packet size. todo: move to config\n packet.writeInt8(this.charsetNumber);\n packet.skip(23);\n const encoding = this.encoding;\n packet.writeNullTerminatedString(this.user, encoding);\n let k;\n if (isSet('PLUGIN_AUTH_LENENC_CLIENT_DATA')) {\n packet.writeLengthCodedNumber(this.authToken.length);\n packet.writeBuffer(this.authToken);\n } else if (isSet('SECURE_CONNECTION')) {\n packet.writeInt8(this.authToken.length);\n packet.writeBuffer(this.authToken);\n } else {\n packet.writeBuffer(this.authToken);\n packet.writeInt8(0);\n }\n if (isSet('CONNECT_WITH_DB')) {\n packet.writeNullTerminatedString(this.database, encoding);\n }\n if (isSet('PLUGIN_AUTH')) {\n // TODO: pass from config\n packet.writeNullTerminatedString('mysql_native_password', 'latin1');\n }\n if (isSet('CONNECT_ATTRS')) {\n const connectAttributes = this.connectAttributes || {};\n const attrNames = Object.keys(connectAttributes);\n let keysLength = 0;\n for (k = 0; k < attrNames.length; ++k) {\n keysLength += Packet.lengthCodedStringLength(attrNames[k], encoding);\n keysLength += Packet.lengthCodedStringLength(\n connectAttributes[attrNames[k]],\n encoding\n );\n }\n packet.writeLengthCodedNumber(keysLength);\n for (k = 0; k < attrNames.length; ++k) {\n packet.writeLengthCodedString(attrNames[k], encoding);\n packet.writeLengthCodedString(\n connectAttributes[attrNames[k]],\n encoding\n );\n }\n }\n return packet;\n }\n\n toPacket() {\n if (typeof this.user !== 'string') {\n throw new Error('\"user\" connection config property must be a string');\n }\n if (typeof this.database !== 'string') {\n throw new Error('\"database\" connection config property must be a string');\n }\n // dry run: calculate resulting packet length\n const p = this.serializeResponse(Packet.MockBuffer());\n return this.serializeResponse(Buffer.alloc(p.offset));\n }\n static fromPacket(packet) {\n const args = {};\n args.clientFlags = packet.readInt32();\n function isSet(flag) {\n return args.clientFlags & ClientConstants[flag];\n }\n args.maxPacketSize = packet.readInt32();\n args.charsetNumber = packet.readInt8();\n const encoding = CharsetToEncoding[args.charsetNumber];\n args.encoding = encoding;\n packet.skip(23);\n args.user = packet.readNullTerminatedString(encoding);\n let authTokenLength;\n if (isSet('PLUGIN_AUTH_LENENC_CLIENT_DATA')) {\n authTokenLength = packet.readLengthCodedNumber(encoding);\n args.authToken = packet.readBuffer(authTokenLength);\n } else if (isSet('SECURE_CONNECTION')) {\n authTokenLength = packet.readInt8();\n args.authToken = packet.readBuffer(authTokenLength);\n } else {\n args.authToken = packet.readNullTerminatedString(encoding);\n }\n if (isSet('CONNECT_WITH_DB')) {\n args.database = packet.readNullTerminatedString(encoding);\n }\n if (isSet('PLUGIN_AUTH')) {\n args.authPluginName = packet.readNullTerminatedString(encoding);\n }\n if (isSet('CONNECT_ATTRS')) {\n const keysLength = packet.readLengthCodedNumber(encoding);\n const keysEnd = packet.offset + keysLength;\n const attrs = {};\n while (packet.offset < keysEnd) {\n attrs[\n packet.readLengthCodedString(encoding)\n ] = packet.readLengthCodedString(encoding);\n }\n args.connectAttributes = attrs;\n }\n return args;\n }\n}\n\nmodule.exports = HandshakeResponse;\n","'use strict';\n\nconst Packet = require('../packets/packet');\nconst CommandCodes = require('../constants/commands');\nconst StringParser = require('../parsers/string.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nclass PrepareStatement {\n constructor(sql, charsetNumber) {\n this.query = sql;\n this.charsetNumber = charsetNumber;\n this.encoding = CharsetToEncoding[charsetNumber];\n }\n\n toPacket() {\n const buf = StringParser.encode(this.query, this.encoding);\n const length = 5 + buf.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.STMT_PREPARE);\n packet.writeBuffer(buf);\n return packet;\n }\n}\n\nmodule.exports = PrepareStatement;\n","'use strict';\n\nclass PreparedStatementHeader {\n constructor(packet) {\n packet.skip(1); // should be 0\n this.id = packet.readInt32();\n this.fieldCount = packet.readInt16();\n this.parameterCount = packet.readInt16();\n packet.skip(1); // should be 0\n this.warningCount = packet.readInt16();\n }\n}\n\n// TODO: toPacket\n\nmodule.exports = PreparedStatementHeader;\n","'use strict';\n\nconst Packet = require('../packets/packet.js');\nconst CommandCode = require('../constants/commands.js');\nconst StringParser = require('../parsers/string.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nclass Query {\n constructor(sql, charsetNumber) {\n this.query = sql;\n this.charsetNumber = charsetNumber;\n this.encoding = CharsetToEncoding[charsetNumber];\n }\n\n toPacket() {\n const buf = StringParser.encode(this.query, this.encoding);\n const length = 5 + buf.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCode.QUERY);\n packet.writeBuffer(buf);\n return packet;\n }\n}\n\nmodule.exports = Query;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/com-register-slave.html\n// note that documentation is incorrect, for example command code is actually 0x15 but documented as 0x14\n\nconst Packet = require('../packets/packet');\nconst CommandCodes = require('../constants/commands');\n\nclass RegisterSlave {\n constructor(opts) {\n this.serverId = opts.serverId || 0;\n this.slaveHostname = opts.slaveHostname || '';\n this.slaveUser = opts.slaveUser || '';\n this.slavePassword = opts.slavePassword || '';\n this.slavePort = opts.slavePort || 0;\n this.replicationRank = opts.replicationRank || 0;\n this.masterId = opts.masterId || 0;\n }\n\n toPacket() {\n const length =\n 15 + // TODO: should be ascii?\n Buffer.byteLength(this.slaveHostname, 'utf8') +\n Buffer.byteLength(this.slaveUser, 'utf8') +\n Buffer.byteLength(this.slavePassword, 'utf8') +\n 3 +\n 4;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.REGISTER_SLAVE);\n packet.writeInt32(this.serverId);\n packet.writeInt8(Buffer.byteLength(this.slaveHostname, 'utf8'));\n packet.writeString(this.slaveHostname);\n packet.writeInt8(Buffer.byteLength(this.slaveUser, 'utf8'));\n packet.writeString(this.slaveUser);\n packet.writeInt8(Buffer.byteLength(this.slavePassword, 'utf8'));\n packet.writeString(this.slavePassword);\n packet.writeInt16(this.slavePort);\n packet.writeInt32(this.replicationRank);\n packet.writeInt32(this.masterId);\n return packet;\n }\n}\n\nmodule.exports = RegisterSlave;\n","'use strict';\n\n// TODO: rename to OK packet\n// https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html\n\nconst Packet = require('./packet.js');\nconst ClientConstants = require('../constants/client.js');\nconst ServerSatusFlags = require('../constants/server_status.js');\n\nconst EncodingToCharset = require('../constants/encoding_charset.js');\nconst sessionInfoTypes = require('../constants/session_track.js');\n\nclass ResultSetHeader {\n constructor(packet, connection) {\n const bigNumberStrings = connection.config.bigNumberStrings;\n const encoding = connection.serverEncoding;\n const flags = connection._handshakePacket.capabilityFlags;\n const isSet = function(flag) {\n return flags & ClientConstants[flag];\n };\n if (packet.buffer[packet.offset] !== 0) {\n this.fieldCount = packet.readLengthCodedNumber();\n if (this.fieldCount === null) {\n this.infileName = packet.readString(undefined, encoding);\n }\n return;\n }\n this.fieldCount = packet.readInt8(); // skip OK byte\n this.affectedRows = packet.readLengthCodedNumber(bigNumberStrings);\n this.insertId = packet.readLengthCodedNumberSigned(bigNumberStrings);\n this.info = '';\n if (isSet('PROTOCOL_41')) {\n this.serverStatus = packet.readInt16();\n this.warningStatus = packet.readInt16();\n } else if (isSet('TRANSACTIONS')) {\n this.serverStatus = packet.readInt16();\n }\n let stateChanges = null;\n if (isSet('SESSION_TRACK') && packet.offset < packet.end) {\n this.info = packet.readLengthCodedString(encoding);\n\n if (this.serverStatus && ServerSatusFlags.SERVER_SESSION_STATE_CHANGED) {\n // session change info record - see\n // https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html#cs-sect-packet-ok-sessioninfo\n let len =\n packet.offset < packet.end ? packet.readLengthCodedNumber() : 0;\n const end = packet.offset + len;\n let type, key, stateEnd;\n if (len > 0) {\n stateChanges = {\n systemVariables: {},\n schema: null,\n trackStateChange: null\n };\n }\n while (packet.offset < end) {\n type = packet.readInt8();\n len = packet.readLengthCodedNumber();\n stateEnd = packet.offset + len;\n if (type === sessionInfoTypes.SYSTEM_VARIABLES) {\n key = packet.readLengthCodedString(encoding);\n const val = packet.readLengthCodedString(encoding);\n stateChanges.systemVariables[key] = val;\n if (key === 'character_set_client') {\n const charsetNumber = EncodingToCharset[val];\n connection.config.charsetNumber = charsetNumber;\n }\n } else if (type === sessionInfoTypes.SCHEMA) {\n key = packet.readLengthCodedString(encoding);\n stateChanges.schema = key;\n } else if (type === sessionInfoTypes.STATE_CHANGE) {\n stateChanges.trackStateChange = packet.readLengthCodedString(\n encoding\n );\n } else {\n // unsupported session track type. For now just ignore\n }\n packet.offset = stateEnd;\n }\n }\n } else {\n this.info = packet.readString(undefined, encoding);\n }\n if (stateChanges) {\n this.stateChanges = stateChanges;\n }\n const m = this.info.match(/\\schanged:\\s*(\\d+)/i);\n if (m !== null) {\n this.changedRows = parseInt(m[1], 10);\n }\n }\n\n // TODO: should be consistent instance member, but it's just easier here to have just function\n static toPacket(fieldCount, insertId) {\n let length = 4 + Packet.lengthCodedNumberLength(fieldCount);\n if (typeof insertId !== 'undefined') {\n length += Packet.lengthCodedNumberLength(insertId);\n }\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeLengthCodedNumber(fieldCount);\n if (typeof insertId !== 'undefined') {\n packet.writeLengthCodedNumber(insertId);\n }\n return packet;\n }\n}\n\nmodule.exports = ResultSetHeader;\n","'use strict';\n\n// inverse of charset_encodings\n// given encoding, get matching mysql charset number\n\nmodule.exports = {\n big5: 1,\n latin2: 2,\n dec8: 3,\n cp850: 4,\n latin1: 5,\n hp8: 6,\n koi8r: 7,\n swe7: 10,\n ascii: 11,\n eucjp: 12,\n sjis: 13,\n cp1251: 14,\n hebrew: 16,\n tis620: 18,\n euckr: 19,\n latin7: 20,\n koi8u: 22,\n gb2312: 24,\n greek: 25,\n cp1250: 26,\n gbk: 28,\n cp1257: 29,\n latin5: 30,\n armscii8: 32,\n cesu8: 33,\n ucs2: 35,\n cp866: 36,\n keybcs2: 37,\n macintosh: 38,\n macroman: 39,\n cp852: 40,\n utf8: 45,\n utf8mb4: 45,\n utf16: 54,\n utf16le: 56,\n cp1256: 57,\n utf32: 60,\n binary: 63,\n geostd8: 92,\n cp932: 95,\n eucjpms: 97,\n gb18030: 248\n};\n","'use strict';\n\nexports.SYSTEM_VARIABLES = 0;\nexports.SCHEMA = 1;\nexports.STATE_CHANGE = 2;\nexports.STATE_GTIDS = 3;\nexports.TRANSACTION_CHARACTERISTICS = 4;\nexports.TRANSACTION_STATE = 5;\n\nexports.FIRST_KEY = exports.SYSTEM_VARIABLES;\nexports.LAST_KEY = exports.TRANSACTION_STATE;\n","'use strict';\n\nconst ClientConstants = require('../constants/client');\nconst Packet = require('../packets/packet');\n\nclass SSLRequest {\n constructor(flags, charset) {\n this.clientFlags = flags | ClientConstants.SSL;\n this.charset = charset;\n }\n\n toPacket() {\n const length = 36;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n buffer.fill(0);\n packet.offset = 4;\n packet.writeInt32(this.clientFlags);\n packet.writeInt32(0); // max packet size. todo: move to config\n packet.writeInt8(this.charset);\n return packet;\n }\n}\n\nmodule.exports = SSLRequest;\n","'use strict';\n\nconst Packet = require('../packets/packet');\n\nclass TextRow {\n constructor(columns) {\n this.columns = columns || [];\n }\n\n static fromPacket(packet) {\n // packet.reset(); // set offset to starting point?\n const columns = [];\n while (packet.haveMoreData()) {\n columns.push(packet.readLengthCodedString());\n }\n return new TextRow(columns);\n }\n\n static toPacket(columns, encoding) {\n const sequenceId = 0; // TODO remove, this is calculated now in connecton\n let length = 0;\n columns.forEach(val => {\n if (val === null || typeof val === 'undefined') {\n ++length;\n return;\n }\n length += Packet.lengthCodedStringLength(val.toString(10), encoding);\n });\n const buffer = Buffer.allocUnsafe(length + 4);\n const packet = new Packet(sequenceId, buffer, 0, length + 4);\n packet.offset = 4;\n columns.forEach(val => {\n if (val === null) {\n packet.writeNull();\n return;\n }\n if (typeof val === 'undefined') {\n packet.writeInt8(0);\n return;\n }\n packet.writeLengthCodedString(val.toString(10), encoding);\n });\n return packet;\n }\n}\n\nmodule.exports = TextRow;\n","'use strict';\n\nconst ClientHandshake = require('./client_handshake.js');\nconst ServerHandshake = require('./server_handshake.js');\nconst Query = require('./query.js');\nconst Prepare = require('./prepare.js');\nconst CloseStatement = require('./close_statement.js');\nconst Execute = require('./execute.js');\nconst Ping = require('./ping.js');\nconst RegisterSlave = require('./register_slave.js');\nconst BinlogDump = require('./binlog_dump.js');\nconst ChangeUser = require('./change_user.js');\nconst Quit = require('./quit.js');\n\nmodule.exports = {\n ClientHandshake,\n ServerHandshake,\n Query,\n Prepare,\n CloseStatement,\n Execute,\n Ping,\n RegisterSlave,\n BinlogDump,\n ChangeUser,\n Quit\n};\n","// This file was modified by Oracle on July 5, 2021.\n// Errors generated by asynchronous authentication plugins are now being\n// handled and subsequently emitted at the command level.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst Packets = require('../packets/index.js');\nconst sha256_password = require('../auth_plugins/sha256_password');\nconst caching_sha2_password = require('../auth_plugins/caching_sha2_password.js');\nconst mysql_native_password = require('../auth_plugins/mysql_native_password.js');\n\nconst standardAuthPlugins = {\n sha256_password: sha256_password({}),\n caching_sha2_password: caching_sha2_password({}),\n mysql_native_password: mysql_native_password({})\n};\n\nfunction warnLegacyAuthSwitch() {\n console.warn(\n 'WARNING! authSwitchHandler api is deprecated, please use new authPlugins api'\n );\n}\n\nfunction authSwitchPluginError(error, command) {\n // Authentication errors are fatal\n error.code = 'AUTH_SWITCH_PLUGIN_ERROR';\n error.fatal = true;\n\n command.emit('error', error);\n}\n\nfunction authSwitchRequest(packet, connection, command) {\n const { pluginName, pluginData } = Packets.AuthSwitchRequest.fromPacket(\n packet\n );\n let authPlugin =\n connection.config.authPlugins && connection.config.authPlugins[pluginName];\n\n // legacy plugin api don't allow to override mysql_native_password\n // if pluginName is mysql_native_password it's using standard auth4.1 auth\n if (\n connection.config.authSwitchHandler &&\n pluginName !== 'mysql_native_password'\n ) {\n const legacySwitchHandler = connection.config.authSwitchHandler;\n warnLegacyAuthSwitch();\n legacySwitchHandler({ pluginName, pluginData }, (err, data) => {\n if (err) {\n return authSwitchPluginError(err, command);\n }\n connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());\n });\n return;\n }\n if (!authPlugin) {\n authPlugin = standardAuthPlugins[pluginName];\n }\n if (!authPlugin) {\n throw new Error(\n `Server requests authentication using unknown plugin ${pluginName}. See ${'TODO: add plugins doco here'} on how to configure or author authentication plugins.`\n );\n }\n connection._authPlugin = authPlugin({ connection, command });\n Promise.resolve(connection._authPlugin(pluginData)).then(data => {\n if (data) {\n connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());\n }\n }).catch(err => {\n authSwitchPluginError(err, command);\n });\n}\n\nfunction authSwitchRequestMoreData(packet, connection, command) {\n const { data } = Packets.AuthSwitchRequestMoreData.fromPacket(packet);\n\n if (connection.config.authSwitchHandler) {\n const legacySwitchHandler = connection.config.authSwitchHandler;\n warnLegacyAuthSwitch();\n legacySwitchHandler({ pluginData: data }, (err, data) => {\n if (err) {\n return authSwitchPluginError(err, command);\n }\n connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());\n });\n return;\n }\n\n if (!connection._authPlugin) {\n throw new Error(\n 'AuthPluginMoreData received but no auth plugin instance found'\n );\n }\n Promise.resolve(connection._authPlugin(data)).then(data => {\n if (data) {\n connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());\n }\n }).catch(err => {\n authSwitchPluginError(err, command);\n });\n}\n\nmodule.exports = {\n authSwitchRequest,\n authSwitchRequestMoreData\n};\n","'use strict';\n\nconst PLUGIN_NAME = 'sha256_password';\nconst crypto = require('crypto');\nconst { xor } = require('../auth_41');\n\nconst REQUEST_SERVER_KEY_PACKET = Buffer.from([1]);\n\nconst STATE_INITIAL = 0;\nconst STATE_WAIT_SERVER_KEY = 1;\nconst STATE_FINAL = -1;\n\nfunction encrypt(password, scramble, key) {\n const stage1 = xor(\n Buffer.from(`${password}\\0`, 'utf8').toString('binary'),\n scramble.toString('binary')\n );\n return crypto.publicEncrypt(key, stage1);\n}\n\nmodule.exports = (pluginOptions = {}) => ({ connection }) => {\n let state = 0;\n let scramble = null;\n\n const password = connection.config.password;\n\n const authWithKey = serverKey => {\n const _password = encrypt(password, scramble, serverKey);\n state = STATE_FINAL;\n return _password;\n };\n\n return data => {\n switch (state) {\n case STATE_INITIAL:\n scramble = data.slice(0, 20);\n // if client provides key we can save one extra roundrip on first connection\n if (pluginOptions.serverPublicKey) {\n return authWithKey(pluginOptions.serverPublicKey);\n }\n\n state = STATE_WAIT_SERVER_KEY;\n return REQUEST_SERVER_KEY_PACKET;\n\n case STATE_WAIT_SERVER_KEY:\n if (pluginOptions.onServerPublicKey) {\n pluginOptions.onServerPublicKey(data);\n }\n return authWithKey(data);\n case STATE_FINAL:\n throw new Error(\n `Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in STATE_FINAL state.`\n );\n }\n\n throw new Error(\n `Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in state ${state}`\n );\n };\n};\n","'use strict';\n\n// https://mysqlserverteam.com/mysql-8-0-4-new-default-authentication-plugin-caching_sha2_password/\n\nconst PLUGIN_NAME = 'caching_sha2_password';\nconst crypto = require('crypto');\nconst { xor, xorRotating } = require('../auth_41');\n\nconst REQUEST_SERVER_KEY_PACKET = Buffer.from([2]);\nconst FAST_AUTH_SUCCESS_PACKET = Buffer.from([3]);\nconst PERFORM_FULL_AUTHENTICATION_PACKET = Buffer.from([4]);\n\nconst STATE_INITIAL = 0;\nconst STATE_TOKEN_SENT = 1;\nconst STATE_WAIT_SERVER_KEY = 2;\nconst STATE_FINAL = -1;\n\nfunction sha256(msg) {\n const hash = crypto.createHash('sha256');\n hash.update(msg, 'binary');\n return hash.digest('binary');\n}\n\nfunction calculateToken(password, scramble) {\n if (!password) {\n return Buffer.alloc(0);\n }\n const stage1 = sha256(Buffer.from(password, 'utf8').toString('binary'));\n const stage2 = sha256(stage1);\n const stage3 = sha256(stage2 + scramble.toString('binary'));\n return xor(stage1, stage3);\n}\n\nfunction encrypt(password, scramble, key) {\n const stage1 = xorRotating(\n Buffer.from(`${password}\\0`, 'utf8').toString('binary'),\n scramble.toString('binary')\n );\n return crypto.publicEncrypt(key, stage1);\n}\n\nmodule.exports = (pluginOptions = {}) => ({ connection }) => {\n let state = 0;\n let scramble = null;\n\n const password = connection.config.password;\n\n const authWithKey = serverKey => {\n const _password = encrypt(password, scramble, serverKey);\n state = STATE_FINAL;\n return _password;\n };\n\n return data => {\n switch (state) {\n case STATE_INITIAL:\n scramble = data.slice(0, 20);\n state = STATE_TOKEN_SENT;\n return calculateToken(password, scramble);\n\n case STATE_TOKEN_SENT:\n if (FAST_AUTH_SUCCESS_PACKET.equals(data)) {\n state = STATE_FINAL;\n return null;\n }\n\n if (PERFORM_FULL_AUTHENTICATION_PACKET.equals(data)) {\n const isSecureConnection =\n typeof pluginOptions.overrideIsSecure === 'undefined'\n ? connection.config.ssl || connection.config.socketPath\n : pluginOptions.overrideIsSecure;\n if (isSecureConnection) {\n state = STATE_FINAL;\n return Buffer.from(`${password}\\0`, 'utf8');\n }\n\n // if client provides key we can save one extra roundrip on first connection\n if (pluginOptions.serverPublicKey) {\n return authWithKey(pluginOptions.serverPublicKey);\n }\n\n state = STATE_WAIT_SERVER_KEY;\n return REQUEST_SERVER_KEY_PACKET;\n }\n throw new Error(\n `Invalid AuthMoreData packet received by ${PLUGIN_NAME} plugin in STATE_TOKEN_SENT state.`\n );\n case STATE_WAIT_SERVER_KEY:\n if (pluginOptions.onServerPublicKey) {\n pluginOptions.onServerPublicKey(data);\n }\n return authWithKey(data);\n case STATE_FINAL:\n throw new Error(\n `Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in STATE_FINAL state.`\n );\n }\n\n throw new Error(\n `Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in state ${state}`\n );\n };\n};\n","'use strict';\n\n//const PLUGIN_NAME = 'mysql_native_password';\nconst auth41 = require('../auth_41.js');\n\nmodule.exports = pluginOptions => ({ connection, command }) => {\n const password =\n command.password || pluginOptions.password || connection.config.password;\n const passwordSha1 =\n command.passwordSha1 ||\n pluginOptions.passwordSha1 ||\n connection.config.passwordSha1;\n return data => {\n const authPluginData1 = data.slice(0, 8);\n const authPluginData2 = data.slice(8, 20);\n let authToken;\n if (passwordSha1) {\n authToken = auth41.calculateTokenFromPasswordSha(\n passwordSha1,\n authPluginData1,\n authPluginData2\n );\n } else {\n authToken = auth41.calculateToken(\n password,\n authPluginData1,\n authPluginData2\n );\n }\n return authToken;\n };\n};\n","'use strict';\n\n// connection mixins\n// implementation of http://dev.mysql.com/doc/internals/en/compression.html\n\nconst zlib = require('zlib');\nconst PacketParser = require('./packet_parser.js');\n\nfunction handleCompressedPacket(packet) {\n // eslint-disable-next-line consistent-this, no-invalid-this\n const connection = this;\n const deflatedLength = packet.readInt24();\n const body = packet.readBuffer();\n\n if (deflatedLength !== 0) {\n connection.inflateQueue.push(task => {\n zlib.inflate(body, (err, data) => {\n if (err) {\n connection._handleNetworkError(err);\n return;\n }\n connection._bumpCompressedSequenceId(packet.numPackets);\n connection._inflatedPacketsParser.execute(data);\n task.done();\n });\n });\n } else {\n connection.inflateQueue.push(task => {\n connection._bumpCompressedSequenceId(packet.numPackets);\n connection._inflatedPacketsParser.execute(body);\n task.done();\n });\n }\n}\n\nfunction writeCompressed(buffer) {\n // http://dev.mysql.com/doc/internals/en/example-several-mysql-packets.html\n // note: sending a MySQL Packet of the size 2^24−5 to 2^24−1 via compression\n // leads to at least one extra compressed packet.\n // (this is because \"length of the packet before compression\" need to fit\n // into 3 byte unsigned int. \"length of the packet before compression\" includes\n // 4 byte packet header, hence 2^24−5)\n const MAX_COMPRESSED_LENGTH = 16777210;\n let start;\n if (buffer.length > MAX_COMPRESSED_LENGTH) {\n for (start = 0; start < buffer.length; start += MAX_COMPRESSED_LENGTH) {\n writeCompressed.call(\n // eslint-disable-next-line no-invalid-this\n this,\n buffer.slice(start, start + MAX_COMPRESSED_LENGTH)\n );\n }\n return;\n }\n\n // eslint-disable-next-line no-invalid-this, consistent-this\n const connection = this;\n\n let packetLen = buffer.length;\n const compressHeader = Buffer.allocUnsafe(7);\n\n // seqqueue is used here because zlib async execution is routed via thread pool\n // internally and when we have multiple compressed packets arriving we need\n // to assemble uncompressed result sequentially\n (function(seqId) {\n connection.deflateQueue.push(task => {\n zlib.deflate(buffer, (err, compressed) => {\n if (err) {\n connection._handleFatalError(err);\n return;\n }\n let compressedLength = compressed.length;\n\n if (compressedLength < packetLen) {\n compressHeader.writeUInt8(compressedLength & 0xff, 0);\n compressHeader.writeUInt16LE(compressedLength >> 8, 1);\n compressHeader.writeUInt8(seqId, 3);\n compressHeader.writeUInt8(packetLen & 0xff, 4);\n compressHeader.writeUInt16LE(packetLen >> 8, 5);\n connection.writeUncompressed(compressHeader);\n connection.writeUncompressed(compressed);\n } else {\n // http://dev.mysql.com/doc/internals/en/uncompressed-payload.html\n // To send an uncompressed payload:\n // - set length of payload before compression to 0\n // - the compressed payload contains the uncompressed payload instead.\n compressedLength = packetLen;\n packetLen = 0;\n compressHeader.writeUInt8(compressedLength & 0xff, 0);\n compressHeader.writeUInt16LE(compressedLength >> 8, 1);\n compressHeader.writeUInt8(seqId, 3);\n compressHeader.writeUInt8(packetLen & 0xff, 4);\n compressHeader.writeUInt16LE(packetLen >> 8, 5);\n connection.writeUncompressed(compressHeader);\n connection.writeUncompressed(buffer);\n }\n task.done();\n });\n });\n })(connection.compressedSequenceId);\n connection._bumpCompressedSequenceId(1);\n}\n\nfunction enableCompression(connection) {\n connection._lastWrittenPacketId = 0;\n connection._lastReceivedPacketId = 0;\n\n connection._handleCompressedPacket = handleCompressedPacket;\n connection._inflatedPacketsParser = new PacketParser(p => {\n connection.handlePacket(p);\n }, 4);\n connection._inflatedPacketsParser._lastPacket = 0;\n connection.packetParser = new PacketParser(packet => {\n connection._handleCompressedPacket(packet);\n }, 7);\n\n connection.writeUncompressed = connection.write;\n connection.write = writeCompressed;\n\n const seqqueue = require('seq-queue');\n connection.inflateQueue = seqqueue.createQueue();\n connection.deflateQueue = seqqueue.createQueue();\n}\n\nmodule.exports = {\n enableCompression: enableCompression\n};\n","module.exports = require('./lib/seq-queue');","var EventEmitter = require('events').EventEmitter;\nvar util = require('util');\n\nvar DEFAULT_TIMEOUT = 3000;\nvar INIT_ID = 0;\nvar EVENT_CLOSED = 'closed';\nvar EVENT_DRAINED = 'drained';\n\n/**\n * Instance a new queue\n *\n * @param {Number} timeout a global timeout for new queue\n * @class\n * @constructor\n */\nvar SeqQueue = function(timeout) {\n\tEventEmitter.call(this);\n\t\n\tif(timeout && timeout > 0) {\n\t\tthis.timeout = timeout;\n\t} else {\n\t\tthis.timeout = DEFAULT_TIMEOUT;\n\t}\n\t\n\tthis.status = SeqQueueManager.STATUS_IDLE;\n\tthis.curId = INIT_ID;\n\tthis.queue = [];\n};\nutil.inherits(SeqQueue, EventEmitter);\n\n/**\n * Add a task into queue.\n * \n * @param fn new request\n * @param ontimeout callback when task timeout\n * @param timeout timeout for current request. take the global timeout if this is invalid\n * @returns true or false\n */\nSeqQueue.prototype.push = function(fn, ontimeout, timeout) {\n\tif(this.status !== SeqQueueManager.STATUS_IDLE && this.status !== SeqQueueManager.STATUS_BUSY) {\n\t\t//ignore invalid status\n\t\treturn false;\n\t}\n\t\n\tif(typeof fn !== 'function') {\n\t\tthrow new Error('fn should be a function.');\n\t}\n\tthis.queue.push({fn: fn, ontimeout: ontimeout, timeout: timeout});\n\n\tif(this.status === SeqQueueManager.STATUS_IDLE) {\n\t\tthis.status = SeqQueueManager.STATUS_BUSY;\n\t\tvar self = this;\n\t\tprocess.nextTick(function() {\n\t\t\tself._next(self.curId);\n\t\t});\n\t}\n\treturn true;\n};\n\n/**\n * Close queue\n * \n * @param {Boolean} force if true will close the queue immediately else will execute the rest task in queue\n */\nSeqQueue.prototype.close = function(force) {\n\tif(this.status !== SeqQueueManager.STATUS_IDLE && this.status !== SeqQueueManager.STATUS_BUSY) {\n\t\t//ignore invalid status\n\t\treturn;\n\t}\n\t\n\tif(force) {\n\t\tthis.status = SeqQueueManager.STATUS_DRAINED;\n\t\tif(this.timerId) {\n\t\t\tclearTimeout(this.timerId);\n\t\t\tthis.timerId = undefined;\n\t\t}\n\t\tthis.emit(EVENT_DRAINED);\n\t} else {\n\t\tthis.status = SeqQueueManager.STATUS_CLOSED;\n\t\tthis.emit(EVENT_CLOSED);\n\t}\n};\n\n/**\n * Invoke next task\n * \n * @param {String|Number} tid last executed task id\n * @api private\n */\nSeqQueue.prototype._next = function(tid) {\n\tif(tid !== this.curId || this.status !== SeqQueueManager.STATUS_BUSY && this.status !== SeqQueueManager.STATUS_CLOSED) {\n\t\t//ignore invalid next call\n\t\treturn;\n\t}\n\t\n\tif(this.timerId) {\n\t\tclearTimeout(this.timerId);\n\t\tthis.timerId = undefined;\n\t}\n\t\n\tvar task = this.queue.shift();\n\tif(!task) {\n\t\tif(this.status === SeqQueueManager.STATUS_BUSY) {\n\t\t\tthis.status = SeqQueueManager.STATUS_IDLE;\n\t\t\tthis.curId++;\t//modify curId to invalidate timeout task\n\t\t} else {\n\t\t\tthis.status = SeqQueueManager.STATUS_DRAINED;\n\t\t\tthis.emit(EVENT_DRAINED);\n\t\t}\n\t\treturn;\n\t}\n\t\n\tvar self = this;\n\ttask.id = ++this.curId;\n\n\tvar timeout = task.timeout > 0 ? task.timeout : this.timeout;\n\ttimeout = timeout > 0 ? timeout : DEFAULT_TIMEOUT;\n\tthis.timerId = setTimeout(function() {\n\t\tprocess.nextTick(function() {\n\t\t\tself._next(task.id);\n\t\t});\n\t\tself.emit('timeout', task);\n\t\tif(task.ontimeout) {\n\t\t\ttask.ontimeout();\n\t\t}\n\t}, timeout);\n\n\ttry {\n\t\ttask.fn({\n\t\t\tdone: function() {\n\t\t\t\tvar res = task.id === self.curId;\n\t\t\t\tprocess.nextTick(function() {\n\t\t\t\t\tself._next(task.id);\n\t\t\t\t});\n\t\t\t\treturn res;\n\t\t\t}\n\t\t});\n\t} catch(err) {\n\t\tself.emit('error', err, task);\n\t\tprocess.nextTick(function() {\n\t\t\tself._next(task.id);\n\t\t});\n\t}\n};\n\n/**\n * Queue manager.\n * \n * @module\n */\nvar SeqQueueManager = module.exports;\n\n/**\n * Queue status: idle, welcome new tasks\n *\n * @const\n * @type {Number}\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.STATUS_IDLE = 0;\n\n/**\n * Queue status: busy, queue is working for some tasks now\n *\n * @const\n * @type {Number}\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.STATUS_BUSY = 1;\n\n/**\n * Queue status: closed, queue has closed and would not receive task any more \n * \t\t\t\t\tand is processing the remaining tasks now.\n *\n * @const\n * @type {Number}\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.STATUS_CLOSED = 2; \n\n/**\n * Queue status: drained, queue is ready to be destroy\n *\n * @const\n * @type {Number}\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.STATUS_DRAINED = 3;\n\n/**\n * Create Sequence queue\n * \n * @param {Number} timeout a global timeout for the new queue instance\n * @return {Object} new queue instance\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.createQueue = function(timeout) {\n\treturn new SeqQueue(timeout);\n};","'use strict';\n\nconst CommandCode = require('../constants/commands.js');\nconst Errors = require('../constants/errors.js');\n\nconst Command = require('./command.js');\nconst Packets = require('../packets/index.js');\n\nclass ServerHandshake extends Command {\n constructor(args) {\n super();\n this.args = args;\n /*\n this.protocolVersion = args.protocolVersion || 10;\n this.serverVersion = args.serverVersion;\n this.connectionId = args.connectionId,\n this.statusFlags = args.statusFlags,\n this.characterSet = args.characterSet,\n this.capabilityFlags = args.capabilityFlags || 512;\n */\n }\n\n start(packet, connection) {\n const serverHelloPacket = new Packets.Handshake(this.args);\n this.serverHello = serverHelloPacket;\n serverHelloPacket.setScrambleData(err => {\n if (err) {\n connection.emit('error', new Error('Error generating random bytes'));\n return;\n }\n connection.writePacket(serverHelloPacket.toPacket(0));\n });\n return ServerHandshake.prototype.readClientReply;\n }\n\n readClientReply(packet, connection) {\n // check auth here\n const clientHelloReply = Packets.HandshakeResponse.fromPacket(packet);\n // TODO check we don't have something similar already\n connection.clientHelloReply = clientHelloReply;\n if (this.args.authCallback) {\n this.args.authCallback(\n {\n user: clientHelloReply.user,\n database: clientHelloReply.database,\n address: connection.stream.remoteAddress,\n authPluginData1: this.serverHello.authPluginData1,\n authPluginData2: this.serverHello.authPluginData2,\n authToken: clientHelloReply.authToken\n },\n (err, mysqlError) => {\n // if (err)\n if (!mysqlError) {\n connection.writeOk();\n } else {\n // TODO create constants / errorToCode\n // 1045 = ER_ACCESS_DENIED_ERROR\n connection.writeError({\n message: mysqlError.message || '',\n code: mysqlError.code || 1045\n });\n connection.close();\n }\n }\n );\n } else {\n connection.writeOk();\n }\n return ServerHandshake.prototype.dispatchCommands;\n }\n\n dispatchCommands(packet, connection) {\n // command from client to server\n let knownCommand = true;\n const encoding = connection.clientHelloReply.encoding;\n const commandCode = packet.readInt8();\n switch (commandCode) {\n case CommandCode.QUIT:\n if (connection.listeners('quit').length) {\n connection.emit('quit');\n } else {\n connection.stream.end();\n }\n break;\n case CommandCode.INIT_DB:\n if (connection.listeners('init_db').length) {\n const schemaName = packet.readString(undefined, encoding);\n connection.emit('init_db', schemaName);\n } else {\n connection.writeOk();\n }\n break;\n case CommandCode.QUERY:\n if (connection.listeners('query').length) {\n const query = packet.readString(undefined, encoding);\n connection.emit('query', query);\n } else {\n connection.writeError({\n code: Errors.HA_ERR_INTERNAL_ERROR,\n message: 'No query handler'\n });\n }\n break;\n case CommandCode.FIELD_LIST:\n if (connection.listeners('field_list').length) {\n const table = packet.readNullTerminatedString();\n const fields = packet.readString(undefined, encoding);\n connection.emit('field_list', table, fields);\n } else {\n connection.writeError({\n code: Errors.ER_WARN_DEPRECATED_SYNTAX,\n message:\n 'As of MySQL 5.7.11, COM_FIELD_LIST is deprecated and will be removed in a future version of MySQL.'\n });\n }\n break;\n case CommandCode.PING:\n if (connection.listeners('ping').length) {\n connection.emit('ping');\n } else {\n connection.writeOk();\n }\n break;\n default:\n knownCommand = false;\n }\n if (connection.listeners('packet').length) {\n connection.emit('packet', packet.clone(), knownCommand, commandCode);\n } else if (!knownCommand) {\n // eslint-disable-next-line no-console\n console.log('Unknown command:', commandCode);\n }\n return ServerHandshake.prototype.dispatchCommands;\n }\n}\n\nmodule.exports = ServerHandshake;\n\n// TODO: implement server-side 4.1 authentication\n/*\n4.1 authentication: (http://bazaar.launchpad.net/~mysql/mysql-server/5.5/view/head:/sql/password.c)\n\n SERVER: public_seed=create_random_string()\n send(public_seed)\n\n CLIENT: recv(public_seed)\n hash_stage1=sha1(\"password\")\n hash_stage2=sha1(hash_stage1)\n reply=xor(hash_stage1, sha1(public_seed,hash_stage2)\n\n // this three steps are done in scramble()\n\n send(reply)\n\n\n SERVER: recv(reply)\n hash_stage1=xor(reply, sha1(public_seed,hash_stage2))\n candidate_hash2=sha1(hash_stage1)\n check(candidate_hash2==hash_stage2)\n\nserver stores sha1(sha1(password)) ( hash_stag2)\n*/\n","'use strict';\n\nconst Types = require('../constants/types.js');\nconst Charsets = require('../constants/charsets.js');\nconst helpers = require('../helpers');\nconst genFunc = require('generate-function');\nconst parserCache = require('./parser_cache.js');\n\nconst typeNames = [];\nfor (const t in Types) {\n typeNames[Types[t]] = t;\n}\n\nfunction readCodeFor(type, charset, encodingExpr, config, options) {\n const supportBigNumbers =\n options.supportBigNumbers || config.supportBigNumbers;\n const bigNumberStrings = options.bigNumberStrings || config.bigNumberStrings;\n const timezone = options.timezone || config.timezone;\n const dateStrings = options.dateStrings || config.dateStrings;\n\n switch (type) {\n case Types.TINY:\n case Types.SHORT:\n case Types.LONG:\n case Types.INT24:\n case Types.YEAR:\n return 'packet.parseLengthCodedIntNoBigCheck()';\n case Types.LONGLONG:\n if (supportBigNumbers && bigNumberStrings) {\n return 'packet.parseLengthCodedIntString()';\n }\n return `packet.parseLengthCodedInt(${supportBigNumbers})`;\n case Types.FLOAT:\n case Types.DOUBLE:\n return 'packet.parseLengthCodedFloat()';\n case Types.NULL:\n return 'packet.readLengthCodedNumber()';\n case Types.DECIMAL:\n case Types.NEWDECIMAL:\n if (config.decimalNumbers) {\n return 'packet.parseLengthCodedFloat()';\n }\n return 'packet.readLengthCodedString(\"ascii\")';\n case Types.DATE:\n if (helpers.typeMatch(type, dateStrings, Types)) {\n return 'packet.readLengthCodedString(\"ascii\")';\n }\n return `packet.parseDate('${timezone}')`;\n case Types.DATETIME:\n case Types.TIMESTAMP:\n if (helpers.typeMatch(type, dateStrings, Types)) {\n return 'packet.readLengthCodedString(\"ascii\")';\n }\n return `packet.parseDateTime('${timezone}')`;\n case Types.TIME:\n return 'packet.readLengthCodedString(\"ascii\")';\n case Types.GEOMETRY:\n return 'packet.parseGeometryValue()';\n case Types.JSON:\n // Since for JSON columns mysql always returns charset 63 (BINARY),\n // we have to handle it according to JSON specs and use \"utf8\",\n // see https://github.com/sidorares/node-mysql2/issues/409\n return 'JSON.parse(packet.readLengthCodedString(\"utf8\"))';\n default:\n if (charset === Charsets.BINARY) {\n return 'packet.readLengthCodedBuffer()';\n }\n return `packet.readLengthCodedString(${encodingExpr})`;\n }\n}\n\nfunction compile(fields, options, config) {\n // use global typeCast if current query doesn't specify one\n if (\n typeof config.typeCast === 'function' &&\n typeof options.typeCast !== 'function'\n ) {\n options.typeCast = config.typeCast;\n }\n\n function wrap(field, _this) {\n return {\n type: typeNames[field.columnType],\n length: field.columnLength,\n db: field.schema,\n table: field.table,\n name: field.name,\n string: function() {\n return _this.packet.readLengthCodedString(field.encoding);\n },\n buffer: function() {\n return _this.packet.readLengthCodedBuffer();\n },\n geometry: function() {\n return _this.packet.parseGeometryValue();\n }\n };\n }\n\n const parserFn = genFunc();\n\n /* eslint-disable no-trailing-spaces */\n /* eslint-disable no-spaced-func */\n /* eslint-disable no-unexpected-multiline */\n parserFn('(function () {')(\n 'return class TextRow {'\n );\n\n // constructor method\n parserFn('constructor(fields) {');\n // node-mysql typeCast compatibility wrapper\n // see https://github.com/mysqljs/mysql/blob/96fdd0566b654436624e2375c7b6604b1f50f825/lib/protocol/packets/Field.js\n if (typeof options.typeCast === 'function') {\n parserFn('const _this = this;');\n parserFn('for(let i=0; i 0) {\n return Prepare.prototype.readParameter;\n } if (this.fieldCount > 0) {\n return Prepare.prototype.readField;\n } \n return this.prepareDone(connection);\n \n }\n\n readParameter(packet, connection) {\n const def = new Packets.ColumnDefinition(packet, connection.clientEncoding);\n this.parameterDefinitions.push(def);\n if (this.parameterDefinitions.length === this.parameterCount) {\n return Prepare.prototype.parametersEOF;\n }\n return this.readParameter;\n }\n\n readField(packet, connection) {\n const def = new Packets.ColumnDefinition(packet, connection.clientEncoding);\n this.fields.push(def);\n if (this.fields.length === this.fieldCount) {\n return Prepare.prototype.fieldsEOF;\n }\n return Prepare.prototype.readField;\n }\n\n parametersEOF(packet, connection) {\n if (!packet.isEOF()) {\n return connection.protocolError('Expected EOF packet after parameters');\n }\n if (this.fieldCount > 0) {\n return Prepare.prototype.readField;\n } \n return this.prepareDone(connection);\n \n }\n\n fieldsEOF(packet, connection) {\n if (!packet.isEOF()) {\n return connection.protocolError('Expected EOF packet after fields');\n }\n return this.prepareDone(connection);\n }\n\n prepareDone(connection) {\n const statement = new PreparedStatementInfo(\n this.query,\n this.id,\n this.fields,\n this.parameterDefinitions,\n connection\n );\n connection._statements.set(this.key, statement);\n if (this.onResult) {\n this.onResult(null, statement);\n }\n return null;\n }\n}\n\nmodule.exports = Prepare;\n","'use strict';\n\nconst FieldFlags = require('../constants/field_flags.js');\nconst Charsets = require('../constants/charsets.js');\nconst Types = require('../constants/types.js');\nconst helpers = require('../helpers');\nconst genFunc = require('generate-function');\nconst parserCache = require('./parser_cache.js');\nconst typeNames = [];\nfor (const t in Types) {\n typeNames[Types[t]] = t;\n}\n\nfunction readCodeFor(field, config, options, fieldNum) {\n const supportBigNumbers =\n options.supportBigNumbers || config.supportBigNumbers;\n const bigNumberStrings = options.bigNumberStrings || config.bigNumberStrings;\n const timezone = options.timezone || config.timezone;\n const dateStrings = options.dateStrings || config.dateStrings;\n const unsigned = field.flags & FieldFlags.UNSIGNED;\n switch (field.columnType) {\n case Types.TINY:\n return unsigned ? 'packet.readInt8();' : 'packet.readSInt8();';\n case Types.SHORT:\n return unsigned ? 'packet.readInt16();' : 'packet.readSInt16();';\n case Types.LONG:\n case Types.INT24: // in binary protocol int24 is encoded in 4 bytes int32\n return unsigned ? 'packet.readInt32();' : 'packet.readSInt32();';\n case Types.YEAR:\n return 'packet.readInt16()';\n case Types.FLOAT:\n return 'packet.readFloat();';\n case Types.DOUBLE:\n return 'packet.readDouble();';\n case Types.NULL:\n return 'null;';\n case Types.DATE:\n case Types.DATETIME:\n case Types.TIMESTAMP:\n case Types.NEWDATE:\n if (helpers.typeMatch(field.columnType, dateStrings, Types)) {\n return `packet.readDateTimeString(${field.decimals});`;\n }\n return `packet.readDateTime('${timezone}');`;\n case Types.TIME:\n return 'packet.readTimeString()';\n case Types.DECIMAL:\n case Types.NEWDECIMAL:\n if (config.decimalNumbers) {\n return 'packet.parseLengthCodedFloat();';\n }\n return 'packet.readLengthCodedString(\"ascii\");';\n case Types.GEOMETRY:\n return 'packet.parseGeometryValue();';\n case Types.JSON:\n // Since for JSON columns mysql always returns charset 63 (BINARY),\n // we have to handle it according to JSON specs and use \"utf8\",\n // see https://github.com/sidorares/node-mysql2/issues/409\n return 'JSON.parse(packet.readLengthCodedString(\"utf8\"));';\n case Types.LONGLONG:\n if (!supportBigNumbers) {\n return unsigned\n ? 'packet.readInt64JSNumber();'\n : 'packet.readSInt64JSNumber();';\n }\n if (bigNumberStrings) {\n return unsigned\n ? 'packet.readInt64String();'\n : 'packet.readSInt64String();';\n }\n return unsigned ? 'packet.readInt64();' : 'packet.readSInt64();';\n\n default:\n if (field.characterSet === Charsets.BINARY) {\n return 'packet.readLengthCodedBuffer();';\n }\n return `packet.readLengthCodedString(fields[${fieldNum}].encoding)`;\n }\n}\n\nfunction compile(fields, options, config) {\n const parserFn = genFunc();\n let i = 0;\n const nullBitmapLength = Math.floor((fields.length + 7 + 2) / 8);\n\n /* eslint-disable no-trailing-spaces */\n /* eslint-disable no-spaced-func */\n /* eslint-disable no-unexpected-multiline */\n\n parserFn('(function(){');\n parserFn('return class BinaryRow {');\n parserFn('constructor() {');\n parserFn('}');\n\n parserFn('next(packet, fields, options) {');\n if (options.rowsAsArray) {\n parserFn(`const result = new Array(${fields.length});`);\n } else {\n parserFn(\"const result = {};\");\n }\n\n const resultTables = {};\n let resultTablesArray = [];\n\n if (options.nestTables === true) {\n for (i = 0; i < fields.length; i++) {\n resultTables[fields[i].table] = 1;\n }\n resultTablesArray = Object.keys(resultTables);\n for (i = 0; i < resultTablesArray.length; i++) {\n parserFn(`result[${helpers.srcEscape(resultTablesArray[i])}] = {};`);\n }\n }\n\n parserFn('packet.readInt8();'); // status byte\n for (i = 0; i < nullBitmapLength; ++i) {\n parserFn(`const nullBitmaskByte${i} = packet.readInt8();`);\n }\n\n let lvalue = '';\n let currentFieldNullBit = 4;\n let nullByteIndex = 0;\n let fieldName = '';\n let tableName = '';\n\n for (i = 0; i < fields.length; i++) {\n fieldName = helpers.srcEscape(fields[i].name);\n parserFn(`// ${fieldName}: ${typeNames[fields[i].columnType]}`);\n\n if (typeof options.nestTables === 'string') {\n tableName = helpers.srcEscape(fields[i].table);\n lvalue = `result[${helpers.srcEscape(\n fields[i].table + options.nestTables + fields[i].name\n )}]`;\n } else if (options.nestTables === true) {\n tableName = helpers.srcEscape(fields[i].table);\n lvalue = `result[${tableName}][${fieldName}]`;\n } else if (options.rowsAsArray) {\n lvalue = `result[${i.toString(10)}]`;\n } else {\n lvalue = `result[${helpers.srcEscape(fields[i].name)}]`;\n }\n\n // TODO: this used to be an optimisation ( if column marked as NOT_NULL don't include code to check null\n // bitmap at all, but it seems that we can't rely on this flag, see #178\n // TODO: benchmark performance difference\n //\n // if (fields[i].flags & FieldFlags.NOT_NULL) { // don't need to check null bitmap if field can't be null.\n // result.push(lvalue + ' = ' + readCodeFor(fields[i], config));\n // } else if (fields[i].columnType == Types.NULL) {\n // result.push(lvalue + ' = null;');\n // } else {\n parserFn(`if (nullBitmaskByte${nullByteIndex} & ${currentFieldNullBit})`);\n parserFn(`${lvalue} = null;`);\n parserFn('else');\n parserFn(`${lvalue} = ${readCodeFor(fields[i], config, options, i)}`);\n // }\n currentFieldNullBit *= 2;\n if (currentFieldNullBit === 0x100) {\n currentFieldNullBit = 1;\n nullByteIndex++;\n }\n }\n\n parserFn('return result;');\n parserFn('}');\n parserFn('};')('})()');\n\n /* eslint-enable no-trailing-spaces */\n /* eslint-enable no-spaced-func */\n /* eslint-enable no-unexpected-multiline */\n\n if (config.debug) {\n helpers.printDebugWithCode(\n 'Compiled binary protocol row parser',\n parserFn.toString()\n );\n }\n return parserFn.toFunction();\n}\n\nfunction getBinaryParser(fields, options, config) {\n return parserCache.getParser('binary', fields, options, config, compile);\n}\n\nmodule.exports = getBinaryParser;\n","'use strict';\n\n// Manually extracted from mysql-5.5.23/include/mysql_com.h\nexports.NOT_NULL = 1; /* Field can't be NULL */\nexports.PRI_KEY = 2; /* Field is part of a primary key */\nexports.UNIQUE_KEY = 4; /* Field is part of a unique key */\nexports.MULTIPLE_KEY = 8; /* Field is part of a key */\nexports.BLOB = 16; /* Field is a blob */\nexports.UNSIGNED = 32; /* Field is unsigned */\nexports.ZEROFILL = 64; /* Field is zerofill */\nexports.BINARY = 128; /* Field is binary */\n\n/* The following are only sent to new clients */\nexports.ENUM = 256; /* field is an enum */\nexports.AUTO_INCREMENT = 512; /* field is a autoincrement field */\nexports.TIMESTAMP = 1024; /* Field is a timestamp */\nexports.SET = 2048; /* field is a set */\nexports.NO_DEFAULT_VALUE = 4096; /* Field doesn't have default value */\nexports.ON_UPDATE_NOW = 8192; /* Field is set to NOW on UPDATE */\nexports.NUM = 32768; /* Field is num (for clients) */\n","'use strict';\n\nconst Command = require('./command');\nconst CommandCode = require('../constants/commands');\nconst Packet = require('../packets/packet');\n\n// TODO: time statistics?\n// usefull for queue size and network latency monitoring\n// store created,sent,reply timestamps\nclass Ping extends Command {\n constructor(callback) {\n super();\n this.onResult = callback;\n }\n\n start(packet, connection) {\n const ping = new Packet(\n 0,\n Buffer.from([1, 0, 0, 0, CommandCode.PING]),\n 0,\n 5\n );\n connection.writePacket(ping);\n return Ping.prototype.pingResponse;\n }\n\n pingResponse() {\n // TODO: check it's OK packet. error check already done in caller\n if (this.onResult) {\n process.nextTick(this.onResult.bind(this));\n }\n return null;\n }\n}\n\nmodule.exports = Ping;\n","'use strict';\n\nconst Command = require('./command');\nconst Packets = require('../packets');\n\nclass RegisterSlave extends Command {\n constructor(opts, callback) {\n super();\n this.onResult = callback;\n this.opts = opts;\n }\n\n start(packet, connection) {\n const newPacket = new Packets.RegisterSlave(this.opts);\n connection.writePacket(newPacket.toPacket(1));\n return RegisterSlave.prototype.registerResponse;\n }\n\n registerResponse() {\n if (this.onResult) {\n process.nextTick(this.onResult.bind(this));\n }\n return null;\n }\n}\n\nmodule.exports = RegisterSlave;\n","'use strict';\n\nconst Command = require('./command');\nconst Packets = require('../packets');\n\nconst eventParsers = [];\n\nclass BinlogEventHeader {\n constructor(packet) {\n this.timestamp = packet.readInt32();\n this.eventType = packet.readInt8();\n this.serverId = packet.readInt32();\n this.eventSize = packet.readInt32();\n this.logPos = packet.readInt32();\n this.flags = packet.readInt16();\n }\n}\n\nclass BinlogDump extends Command {\n constructor(opts) {\n super();\n // this.onResult = callback;\n this.opts = opts;\n }\n\n start(packet, connection) {\n const newPacket = new Packets.BinlogDump(this.opts);\n connection.writePacket(newPacket.toPacket(1));\n return BinlogDump.prototype.binlogData;\n }\n\n binlogData(packet) {\n // ok - continue consuming events\n // error - error\n // eof - end of binlog\n if (packet.isEOF()) {\n this.emit('eof');\n return null;\n }\n // binlog event header\n packet.readInt8();\n const header = new BinlogEventHeader(packet);\n const EventParser = eventParsers[header.eventType];\n let event;\n if (EventParser) {\n event = new EventParser(packet);\n } else {\n event = {\n name: 'UNKNOWN'\n };\n }\n event.header = header;\n this.emit('event', event);\n return BinlogDump.prototype.binlogData;\n }\n}\n\nclass RotateEvent {\n constructor(packet) {\n this.pposition = packet.readInt32();\n // TODO: read uint64 here\n packet.readInt32(); // positionDword2\n this.nextBinlog = packet.readString();\n this.name = 'RotateEvent';\n }\n}\n\nclass FormatDescriptionEvent {\n constructor(packet) {\n this.binlogVersion = packet.readInt16();\n this.serverVersion = packet.readString(50).replace(/\\u0000.*/, ''); // eslint-disable-line no-control-regex\n this.createTimestamp = packet.readInt32();\n this.eventHeaderLength = packet.readInt8(); // should be 19\n this.eventsLength = packet.readBuffer();\n this.name = 'FormatDescriptionEvent';\n }\n}\n\nclass QueryEvent {\n constructor(packet) {\n const parseStatusVars = require('../packets/binlog_query_statusvars.js');\n this.slaveProxyId = packet.readInt32();\n this.executionTime = packet.readInt32();\n const schemaLength = packet.readInt8();\n this.errorCode = packet.readInt16();\n const statusVarsLength = packet.readInt16();\n const statusVars = packet.readBuffer(statusVarsLength);\n this.schema = packet.readString(schemaLength);\n packet.readInt8(); // should be zero\n this.statusVars = parseStatusVars(statusVars);\n this.query = packet.readString();\n this.name = 'QueryEvent';\n }\n}\n\nclass XidEvent {\n constructor(packet) {\n this.binlogVersion = packet.readInt16();\n this.xid = packet.readInt64();\n this.name = 'XidEvent';\n }\n}\n\neventParsers[2] = QueryEvent;\neventParsers[4] = RotateEvent;\neventParsers[15] = FormatDescriptionEvent;\neventParsers[16] = XidEvent;\n\nmodule.exports = BinlogDump;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/query-event.html\n\nconst keys = {\n FLAGS2: 0,\n SQL_MODE: 1,\n CATALOG: 2,\n AUTO_INCREMENT: 3,\n CHARSET: 4,\n TIME_ZONE: 5,\n CATALOG_NZ: 6,\n LC_TIME_NAMES: 7,\n CHARSET_DATABASE: 8,\n TABLE_MAP_FOR_UPDATE: 9,\n MASTER_DATA_WRITTEN: 10,\n INVOKERS: 11,\n UPDATED_DB_NAMES: 12,\n MICROSECONDS: 3\n};\n\nmodule.exports = function parseStatusVars(buffer) {\n const result = {};\n let offset = 0;\n let key, length, prevOffset;\n while (offset < buffer.length) {\n key = buffer[offset++];\n switch (key) {\n case keys.FLAGS2:\n result.flags = buffer.readUInt32LE(offset);\n offset += 4;\n break;\n case keys.SQL_MODE:\n // value is 8 bytes, but all dcumented flags are in first 4 bytes\n result.sqlMode = buffer.readUInt32LE(offset);\n offset += 8;\n break;\n case keys.CATALOG:\n length = buffer[offset++];\n result.catalog = buffer.toString('utf8', offset, offset + length);\n offset += length + 1; // null byte after string\n break;\n case keys.CHARSET:\n result.clientCharset = buffer.readUInt16LE(offset);\n result.connectionCollation = buffer.readUInt16LE(offset + 2);\n result.serverCharset = buffer.readUInt16LE(offset + 4);\n offset += 6;\n break;\n case keys.TIME_ZONE:\n length = buffer[offset++];\n result.timeZone = buffer.toString('utf8', offset, offset + length);\n offset += length; // no null byte\n break;\n case keys.CATALOG_NZ:\n length = buffer[offset++];\n result.catalogNz = buffer.toString('utf8', offset, offset + length);\n offset += length; // no null byte\n break;\n case keys.LC_TIME_NAMES:\n result.lcTimeNames = buffer.readUInt16LE(offset);\n offset += 2;\n break;\n case keys.CHARSET_DATABASE:\n result.schemaCharset = buffer.readUInt16LE(offset);\n offset += 2;\n break;\n case keys.TABLE_MAP_FOR_UPDATE:\n result.mapForUpdate1 = buffer.readUInt32LE(offset);\n result.mapForUpdate2 = buffer.readUInt32LE(offset + 4);\n offset += 8;\n break;\n case keys.MASTER_DATA_WRITTEN:\n result.masterDataWritten = buffer.readUInt32LE(offset);\n offset += 4;\n break;\n case keys.INVOKERS:\n length = buffer[offset++];\n result.invokerUsername = buffer.toString(\n 'utf8',\n offset,\n offset + length\n );\n offset += length;\n length = buffer[offset++];\n result.invokerHostname = buffer.toString(\n 'utf8',\n offset,\n offset + length\n );\n offset += length;\n break;\n case keys.UPDATED_DB_NAMES:\n length = buffer[offset++];\n // length - number of null-terminated strings\n result.updatedDBs = []; // we'll store them as array here\n for (; length; --length) {\n prevOffset = offset;\n // fast forward to null terminating byte\n while (buffer[offset++] && offset < buffer.length) {\n // empty body, everything inside while condition\n }\n result.updatedDBs.push(\n buffer.toString('utf8', prevOffset, offset - 1)\n );\n }\n break;\n case keys.MICROSECONDS:\n result.microseconds =\n // REVIEW: INVALID UNKNOWN VARIABLE!\n buffer.readInt16LE(offset) + (buffer[offset + 2] << 16);\n offset += 3;\n }\n }\n return result;\n};\n","'use strict';\n\nconst Command = require('./command.js');\nconst Packets = require('../packets/index.js');\nconst ClientHandshake = require('./client_handshake.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nclass ChangeUser extends Command {\n constructor(options, callback) {\n super();\n this.onResult = callback;\n this.user = options.user;\n this.password = options.password;\n this.database = options.database;\n this.passwordSha1 = options.passwordSha1;\n this.charsetNumber = options.charsetNumber;\n this.currentConfig = options.currentConfig;\n }\n start(packet, connection) {\n const newPacket = new Packets.ChangeUser({\n flags: connection.config.clientFlags,\n user: this.user,\n database: this.database,\n charsetNumber: this.charsetNumber,\n password: this.password,\n passwordSha1: this.passwordSha1,\n authPluginData1: connection._handshakePacket.authPluginData1,\n authPluginData2: connection._handshakePacket.authPluginData2\n });\n this.currentConfig.user = this.user;\n this.currentConfig.password = this.password;\n this.currentConfig.database = this.database;\n this.currentConfig.charsetNumber = this.charsetNumber;\n connection.clientEncoding = CharsetToEncoding[this.charsetNumber];\n // reset prepared statements cache as all statements become invalid after changeUser\n connection._statements.reset();\n connection.writePacket(newPacket.toPacket());\n return ChangeUser.prototype.handshakeResult;\n }\n}\n\nChangeUser.prototype.handshakeResult =\n ClientHandshake.prototype.handshakeResult;\nChangeUser.prototype.calculateNativePasswordAuthToken =\n ClientHandshake.prototype.calculateNativePasswordAuthToken;\n\nmodule.exports = ChangeUser;\n","'use strict';\n\nconst Command = require('./command.js');\nconst CommandCode = require('../constants/commands.js');\nconst Packet = require('../packets/packet.js');\n\nclass Quit extends Command {\n constructor(callback) {\n super();\n this.done = callback;\n }\n\n start(packet, connection) {\n connection._closing = true;\n const quit = new Packet(\n 0,\n Buffer.from([1, 0, 0, 0, CommandCode.QUIT]),\n 0,\n 5\n );\n if (this.done) {\n this.done();\n }\n connection.writePacket(quit);\n return null;\n }\n}\n\nmodule.exports = Quit;\n","'use strict';\n\n// Certificate for Amazon RDS (Updated for 2019)\n// https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html\n// https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.tls\nexports['Amazon RDS'] = {\n ca: [\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID9DCCAtygAwIBAgIBQjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUwOTExMzFaFw0y\\n' +\n 'MDAzMDUwOTExMzFaMIGKMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEbMBkGA1UEAwwSQW1hem9uIFJE\\n' +\n 'UyBSb290IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuD8nrZ8V\\n' +\n 'u+VA8yVlUipCZIKPTDcOILYpUe8Tct0YeQQr0uyl018StdBsa3CjBgvwpDRq1HgF\\n' +\n 'Ji2N3+39+shCNspQeE6aYU+BHXhKhIIStt3r7gl/4NqYiDDMWKHxHq0nsGDFfArf\\n' +\n 'AOcjZdJagOMqb3fF46flc8k2E7THTm9Sz4L7RY1WdABMuurpICLFE3oHcGdapOb9\\n' +\n 'T53pQR+xpHW9atkcf3pf7gbO0rlKVSIoUenBlZipUlp1VZl/OD/E+TtRhDDNdI2J\\n' +\n 'P/DSMM3aEsq6ZQkfbz/Ilml+Lx3tJYXUDmp+ZjzMPLk/+3beT8EhrwtcG3VPpvwp\\n' +\n 'BIOqsqVVTvw/CwIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw\\n' +\n 'AwEB/zAdBgNVHQ4EFgQUTgLurD72FchM7Sz1BcGPnIQISYMwHwYDVR0jBBgwFoAU\\n' +\n 'TgLurD72FchM7Sz1BcGPnIQISYMwDQYJKoZIhvcNAQEFBQADggEBAHZcgIio8pAm\\n' +\n 'MjHD5cl6wKjXxScXKtXygWH2BoDMYBJF9yfyKO2jEFxYKbHePpnXB1R04zJSWAw5\\n' +\n '2EUuDI1pSBh9BA82/5PkuNlNeSTB3dXDD2PEPdzVWbSKvUB8ZdooV+2vngL0Zm4r\\n' +\n '47QPyd18yPHrRIbtBtHR/6CwKevLZ394zgExqhnekYKIqqEX41xsUV0Gm6x4vpjf\\n' +\n '2u6O/+YE2U+qyyxHE5Wd5oqde0oo9UUpFETJPVb6Q2cEeQib8PBAyi0i6KnF+kIV\\n' +\n 'A9dY7IHSubtCK/i8wxMVqfd5GtbA8mmpeJFwnDvm9rBEsHybl08qlax9syEwsUYr\\n' +\n '/40NawZfTUU=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBRDANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMDZaFw0y\\n' +\n 'MDAzMDUyMjAzMDZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1ub3J0aGVhc3QtMSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBAMmM2B4PfTXCZjbZMWiDPyxvk/eeNwIRJAhfzesiGUiLozX6CRy3rwC1ZOPV\\n' +\n 'AcQf0LB+O8wY88C/cV+d4Q2nBDmnk+Vx7o2MyMh343r5rR3Na+4izd89tkQVt0WW\\n' +\n 'vO21KRH5i8EuBjinboOwAwu6IJ+HyiQiM0VjgjrmEr/YzFPL8MgHD/YUHehqjACn\\n' +\n 'C0+B7/gu7W4qJzBL2DOf7ub2qszGtwPE+qQzkCRDwE1A4AJmVE++/FLH2Zx78Egg\\n' +\n 'fV1sUxPtYgjGH76VyyO6GNKM6rAUMD/q5mnPASQVIXgKbupr618bnH+SWHFjBqZq\\n' +\n 'HvDGPMtiiWII41EmGUypyt5AbysCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFIiKM0Q6n1K4EmLxs3ZXxINbwEwR\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQBezGbE9Rw/k2e25iGjj5n8r+M3dlye8ORfCE/dijHtxqAKasXHgKX8I9Tw\\n' +\n 'JkBiGWiuzqn7gO5MJ0nMMro1+gq29qjZnYX1pDHPgsRjUX8R+juRhgJ3JSHijRbf\\n' +\n '4qNJrnwga7pj94MhcLq9u0f6dxH6dXbyMv21T4TZMTmcFduf1KgaiVx1PEyJjC6r\\n' +\n 'M+Ru+A0eM+jJ7uCjUoZKcpX8xkj4nmSnz9NMPog3wdOSB9cAW7XIc5mHa656wr7I\\n' +\n 'WJxVcYNHTXIjCcng2zMKd1aCcl2KSFfy56sRfT7J5Wp69QSr+jq8KM55gw8uqAwi\\n' +\n 'VPrXn2899T1rcTtFYFP16WXjGuc0\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBRTANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMTlaFw0y\\n' +\n 'MDAzMDUyMjAzMTlaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1zb3V0aGVhc3QtMSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBANaXElmSEYt/UtxHFsARFhSUahTf1KNJzR0Dmay6hqOXQuRVbKRwPd19u5vx\\n' +\n 'DdF1sLT7D69IK3VDnUiQScaCv2Dpu9foZt+rLx+cpx1qiQd1UHrvqq8xPzQOqCdC\\n' +\n 'RFStq6yVYZ69yfpfoI67AjclMOjl2Vph3ftVnqP0IgVKZdzeC7fd+umGgR9xY0Qr\\n' +\n 'Ubhd/lWdsbNvzK3f1TPWcfIKQnpvSt85PIEDJir6/nuJUKMtmJRwTymJf0i+JZ4x\\n' +\n '7dJa341p2kHKcHMgOPW7nJQklGBA70ytjUV6/qebS3yIugr/28mwReflg3TJzVDl\\n' +\n 'EOvi6pqbqNbkMuEwGDCmEQIVqgkCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFAu93/4k5xbWOsgdCdn+/KdiRuit\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQBlcjSyscpPjf5+MgzMuAsCxByqUt+WFspwcMCpwdaBeHOPSQrXNqX2Sk6P\\n' +\n 'kth6oCivA64trWo8tFMvPYlUA1FYVD5WpN0kCK+P5pD4KHlaDsXhuhClJzp/OP8t\\n' +\n 'pOyUr5109RHLxqoKB5J5m1XA7rgcFjnMxwBSWFe3/4uMk/+4T53YfCVXuc6QV3i7\\n' +\n 'I/2LAJwFf//pTtt6fZenYfCsahnr2nvrNRNyAxcfvGZ/4Opn/mJtR6R/AjvQZHiR\\n' +\n 'bkRNKF2GW0ueK5W4FkZVZVhhX9xh1Aj2Ollb+lbOqADaVj+AT3PoJPZ3MPQHKCXm\\n' +\n 'xwG0LOLlRr/TfD6li1AfOVTAJXv9\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBRjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMjRaFw0y\\n' +\n 'MDAzMDUyMjAzMjRaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1zb3V0aGVhc3QtMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBAJqBAJutz69hFOh3BtLHZTbwE8eejGGKayn9hu98YMDPzWzGXWCmW+ZYWELA\\n' +\n 'cY3cNWNF8K4FqKXFr2ssorBYim1UtYFX8yhydT2hMD5zgQ2sCGUpuidijuPA6zaq\\n' +\n 'Z3tdhVR94f0q8mpwpv2zqR9PcqaGDx2VR1x773FupRPRo7mEW1vC3IptHCQlP/zE\\n' +\n '7jQiLl28bDIH2567xg7e7E9WnZToRnhlYdTaDaJsHTzi5mwILi4cihSok7Shv/ME\\n' +\n 'hnukvxeSPUpaVtFaBhfBqq055ePq9I+Ns4KGreTKMhU0O9fkkaBaBmPaFgmeX/XO\\n' +\n 'n2AX7gMouo3mtv34iDTZ0h6YCGkCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFIlQnY0KHYWn1jYumSdJYfwj/Nfw\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQA0wVU6/l41cTzHc4azc4CDYY2Wd90DFWiH9C/mw0SgToYfCJ/5Cfi0NT/Y\\n' +\n 'PRnk3GchychCJgoPA/k9d0//IhYEAIiIDjyFVgjbTkKV3sh4RbdldKVOUB9kumz/\\n' +\n 'ZpShplsGt3z4QQiVnKfrAgqxWDjR0I0pQKkxXa6Sjkicos9LQxVtJ0XA4ieG1E7z\\n' +\n 'zJr+6t80wmzxvkInSaWP3xNJK9azVRTrgQZQlvkbpDbExl4mNTG66VD3bAp6t3Wa\\n' +\n 'B49//uDdfZmPkqqbX+hsxp160OH0rxJppwO3Bh869PkDnaPEd/Pxw7PawC+li0gi\\n' +\n 'NRV8iCEx85aFxcyOhqn0WZOasxee\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/zCCAuegAwIBAgIBRzANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMzFaFw0y\\n' +\n 'MDAzMDUyMjAzMzFaMIGSMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEjMCEGA1UEAwwaQW1hem9uIFJE\\n' +\n 'UyBldS1jZW50cmFsLTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\\n' +\n 'AQDFtP2dhSLuaPOI4ZrrPWsK4OY9ocQBp3yApH1KJYmI9wpQKZG/KCH2E6Oo7JAw\\n' +\n 'QORU519r033T+FO2Z7pFPlmz1yrxGXyHpJs8ySx3Yo5S8ncDCdZJCLmtPiq/hahg\\n' +\n '5/0ffexMFUCQaYicFZsrJ/cStdxUV+tSw2JQLD7UxS9J97LQWUPyyG+ZrjYVTVq+\\n' +\n 'zudnFmNSe4QoecXMhAFTGJFQXxP7nhSL9Ao5FGgdXy7/JWeWdQIAj8ku6cBDKPa6\\n' +\n 'Y6kP+ak+In+Lye8z9qsCD/afUozfWjPR2aA4JoIZVF8dNRShIMo8l0XfgfM2q0+n\\n' +\n 'ApZWZ+BjhIO5XuoUgHS3D2YFAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNV\\n' +\n 'HRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBRm4GsWIA/M6q+tK8WGHWDGh2gcyTAf\\n' +\n 'BgNVHSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOC\\n' +\n 'AQEAHpMmeVQNqcxgfQdbDIi5UIy+E7zZykmtAygN1XQrvga9nXTis4kOTN6g5/+g\\n' +\n 'HCx7jIXeNJzAbvg8XFqBN84Quqgpl/tQkbpco9Jh1HDs558D5NnZQxNqH5qXQ3Mm\\n' +\n 'uPgCw0pYcPOa7bhs07i+MdVwPBsX27CFDtsgAIru8HvKxY1oTZrWnyIRo93tt/pk\\n' +\n 'WuItVMVHjaQZVfTCow0aDUbte6Vlw82KjUFq+n2NMSCJDiDKsDDHT6BJc4AJHIq3\\n' +\n '/4Z52MSC9KMr0yAaaoWfW/yMEj9LliQauAgwVjArF4q78rxpfKTG9Rfd8U1BZANP\\n' +\n '7FrFMN0ThjfA1IvmOYcgskY5bQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBSDANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMzVaFw0y\\n' +\n 'MDAzMDUyMjAzMzVaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyBldS13ZXN0LTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx\\n' +\n 'PdbqQ0HKRj79Pmocxvjc+P6i4Ux24kgFIl+ckiir1vzkmesc3a58gjrMlCksEObt\\n' +\n 'Yihs5IhzEq1ePT0gbfS9GYFp34Uj/MtPwlrfCBWG4d2TcrsKRHr1/EXUYhWqmdrb\\n' +\n 'RhX8XqoRhVkbF/auzFSBhTzcGGvZpQ2KIaxRcQfcXlMVhj/pxxAjh8U4F350Fb0h\\n' +\n 'nX1jw4/KvEreBL0Xb2lnlGTkwVxaKGSgXEnOgIyOFdOQc61vdome0+eeZsP4jqeR\\n' +\n 'TGYJA9izJsRbe2YJxHuazD+548hsPlM3vFzKKEVURCha466rAaYAHy3rKur3HYQx\\n' +\n 'Yt+SoKcEz9PXuSGj96ejAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBTebg//h2oeXbZjQ4uuoiuLYzuiPDAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'TikPaGeZasTPw+4RBemlsyPAjtFFQLo7ddaFdORLgdEysVf8aBqndvbA6MT/v4lj\\n' +\n 'GtEtUdF59ZcbWOrVm+fBZ2h/jYJ59dYF/xzb09nyRbdMSzB9+mkSsnOMqluq5y8o\\n' +\n 'DY/PfP2vGhEg/2ZncRC7nlQU1Dm8F4lFWEiQ2fi7O1cW852Vmbq61RIfcYsH/9Ma\\n' +\n 'kpgk10VZ75b8m3UhmpZ/2uRY+JEHImH5WpcTJ7wNiPNJsciZMznGtrgOnPzYco8L\\n' +\n 'cDleOASIZifNMQi9PKOJKvi0ITz0B/imr8KBsW0YjZVJ54HMa7W1lwugSM7aMAs+\\n' +\n 'E3Sd5lS+SHwWaOCHwhOEVA==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBSTANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzNDBaFw0y\\n' +\n 'MDAzMDUyMjAzNDBaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyBzYS1lYXN0LTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCU\\n' +\n 'X4OBnQ5xA6TLJAiFEI6l7bUWjoVJBa/VbMdCCSs2i2dOKmqUaXu2ix2zcPILj3lZ\\n' +\n 'GMk3d/2zvTK/cKhcFrewHUBamTeVHdEmynhMQamqNmkM4ptYzFcvEUw1TGxHT4pV\\n' +\n 'Q6gSN7+/AJewQvyHexHo8D0+LDN0/Wa9mRm4ixCYH2CyYYJNKaZt9+EZfNu+PPS4\\n' +\n '8iB0TWH0DgQkbWMBfCRgolLLitAZklZ4dvdlEBS7evN1/7ttBxUK6SvkeeSx3zBl\\n' +\n 'ww3BlXqc3bvTQL0A+RRysaVyFbvtp9domFaDKZCpMmDFAN/ntx215xmQdrSt+K3F\\n' +\n 'cXdGQYHx5q410CAclGnbAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBT6iVWnm/uakS+tEX2mzIfw+8JL0zAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'FmDD+QuDklXn2EgShwQxV13+txPRuVdOSrutHhoCgMwFWCMtPPtBAKs6KPY7Guvw\\n' +\n 'DpJoZSehDiOfsgMirjOWjvfkeWSNvKfjWTVneX7pZD9W5WPnsDBvTbCGezm+v87z\\n' +\n 'b+ZM2ZMo98m/wkMcIEAgdSKilR2fuw8rLkAjhYFfs0A7tDgZ9noKwgHvoE4dsrI0\\n' +\n 'KZYco6DlP/brASfHTPa2puBLN9McK3v+h0JaSqqm5Ro2Bh56tZkQh8AWy/miuDuK\\n' +\n '3+hNEVdxosxlkM1TPa1DGj0EzzK0yoeerXuH2HX7LlCrrxf6/wdKnjR12PMrLQ4A\\n' +\n 'pCqkcWw894z6bV9MAvKe6A==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBQzANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMTU0MDRaFw0y\\n' +\n 'MDAzMDUyMTU0MDRaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyB1cy1lYXN0LTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDI\\n' +\n 'UIuwh8NusKHk1SqPXcP7OqxY3S/M2ZyQWD3w7Bfihpyyy/fc1w0/suIpX3kbMhAV\\n' +\n '2ESwged2/2zSx4pVnjp/493r4luhSqQYzru78TuPt9bhJIJ51WXunZW2SWkisSaf\\n' +\n 'USYUzVN9ezR/bjXTumSUQaLIouJt3OHLX49s+3NAbUyOI8EdvgBQWD68H1epsC0n\\n' +\n 'CI5s+pIktyOZ59c4DCDLQcXErQ+tNbDC++oct1ANd/q8p9URonYwGCGOBy7sbCYq\\n' +\n '9eVHh1Iy2M+SNXddVOGw5EuruvHoCIQyOz5Lz4zSuZA9dRbrfztNOpezCNYu6NKM\\n' +\n 'n+hzcvdiyxv77uNm8EaxAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBQSQG3TmMe6Sa3KufaPBa72v4QFDzAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'L/mOZfB3187xTmjOHMqN2G2oSKHBKiQLM9uv8+97qT+XR+TVsBT6b3yoPpMAGhHA\\n' +\n 'Pc7nxAF5gPpuzatx0OTLPcmYucFmfqT/1qA5WlgCnMNtczyNMH97lKFTNV7Njtek\\n' +\n 'jWEzAEQSyEWrkNpNlC4j6kMYyPzVXQeXUeZTgJ9FNnVZqmvfjip2N22tawMjrCn5\\n' +\n '7KN/zN65EwY2oO9XsaTwwWmBu3NrDdMbzJnbxoWcFWj4RBwanR1XjQOVNhDwmCOl\\n' +\n '/1Et13b8CPyj69PC8BOVU6cfTSx8WUVy0qvYOKHNY9Bqa5BDnIL3IVmUkeTlM1mt\\n' +\n 'enRpyBj+Bk9rh/ICdiRKmA==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBSjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzNDVaFw0y\\n' +\n 'MDAzMDUyMjAzNDVaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyB1cy13ZXN0LTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDE\\n' +\n 'Dhw+uw/ycaiIhhyu2pXFRimq0DlB8cNtIe8hdqndH8TV/TFrljNgR8QdzOgZtZ9C\\n' +\n 'zzQ2GRpInN/qJF6slEd6wO+6TaDBQkPY+07TXNt52POFUhdVkhJXHpE2BS7Xn6J7\\n' +\n '7RFAOeG1IZmc2DDt+sR1BgXzUqHslQGfFYNS0/MBO4P+ya6W7IhruB1qfa4HiYQS\\n' +\n 'dbe4MvGWnv0UzwAqdR7OF8+8/5c58YXZIXCO9riYF2ql6KNSL5cyDPcYK5VK0+Q9\\n' +\n 'VI6vuJHSMYcF7wLePw8jtBktqAFE/wbdZiIHhZvNyiNWPPNTGUmQbaJ+TzQEHDs5\\n' +\n '8en+/W7JKnPyBOkxxENbAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBS0nw/tFR9bCjgqWTPJkyy4oOD8bzAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'CXGAY3feAak6lHdqj6+YWjy6yyUnLK37bRxZDsyDVXrPRQaXRzPTzx79jvDwEb/H\\n' +\n 'Q/bdQ7zQRWqJcbivQlwhuPJ4kWPUZgSt3JUUuqkMsDzsvj/bwIjlrEFDOdHGh0mi\\n' +\n 'eVIngFEjUXjMh+5aHPEF9BlQnB8LfVtKj18e15UDTXFa+xJPFxUR7wDzCfo4WI1m\\n' +\n 'sUMG4q1FkGAZgsoyFPZfF8IVvgCuGdR8z30VWKklFxttlK0eGLlPAyIO0CQxPQlo\\n' +\n 'saNJrHf4tLOgZIWk+LpDhNd9Et5EzvJ3aURUsKY4pISPPF5WdvM9OE59bERwUErd\\n' +\n 'nuOuQWQeeadMceZnauRzJQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBSzANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzNTBaFw0y\\n' +\n 'MDAzMDUyMjAzNTBaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyB1cy13ZXN0LTIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDM\\n' +\n 'H58SR48U6jyERC1vYTnub34smf5EQVXyzaTmspWGWGzT31NLNZGSDFaa7yef9kdO\\n' +\n 'mzJsgebR5tXq6LdwlIoWkKYQ7ycUaadtVKVYdI40QcI3cHn0qLFlg2iBXmWp/B+i\\n' +\n 'Z34VuVlCh31Uj5WmhaBoz8t/GRqh1V/aCsf3Wc6jCezH3QfuCjBpzxdOOHN6Ie2v\\n' +\n 'xX09O5qmZTvMoRBAvPkxdaPg/Mi7fxueWTbEVk78kuFbF1jHYw8U1BLILIAhcqlq\\n' +\n 'x4u8nl73t3O3l/soNUcIwUDK0/S+Kfqhwn9yQyPlhb4Wy3pfnZLJdkyHldktnQav\\n' +\n '9TB9u7KH5Lk0aAYslMLxAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBT8roM4lRnlFHWMPWRz0zkwFZog1jAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'JwrxwgwmPtcdaU7O7WDdYa4hprpOMamI49NDzmE0s10oGrqmLwZygcWU0jT+fJ+Y\\n' +\n 'pJe1w0CVfKaeLYNsOBVW3X4ZPmffYfWBheZiaiEflq/P6t7/Eg81gaKYnZ/x1Dfa\\n' +\n 'sUYkzPvCkXe9wEz5zdUTOCptDt89rBR9CstL9vE7WYUgiVVmBJffWbHQLtfjv6OF\\n' +\n 'NMb0QME981kGRzc2WhgP71YS2hHd1kXtsoYP1yTu4vThSKsoN4bkiHsaC1cRkLoy\\n' +\n '0fFA4wpB3WloMEvCDaUvvH1LZlBXTNlwi9KtcwD4tDxkkBt4tQczKLGpQ/nF/W9n\\n' +\n '8YDWk3IIc1sd0bkZqoau2Q==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBTDANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTExMDYwMDA1NDZaFw0y\\n' +\n 'MDAzMDUwMDA1NDZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1ub3J0aGVhc3QtMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBAKSwd+RVUzTRH0FgnbwoTK8TMm/zMT4+2BvALpAUe6YXbkisg2goycWuuWLg\\n' +\n 'jOpFBB3GtyvXZnkqi7MkDWUmj1a2kf8l2oLyoaZ+Hm9x/sV+IJzOqPvj1XVUGjP6\\n' +\n 'yYYnPJmUYqvZeI7fEkIGdFkP2m4/sgsSGsFvpD9FK1bL1Kx2UDpYX0kHTtr18Zm/\\n' +\n '1oN6irqWALSmXMDydb8hE0FB2A1VFyeKE6PnoDj/Y5cPHwPPdEi6/3gkDkSaOG30\\n' +\n 'rWeQfL3pOcKqzbHaWTxMphd0DSL/quZ64Nr+Ly65Q5PRcTrtr55ekOUziuqXwk+o\\n' +\n '9QpACMwcJ7ROqOznZTqTzSFVXFECAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFM6Nox/QWbhzWVvzoJ/y0kGpNPK+\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQCTkWBqNvyRf3Y/W21DwFx3oT/AIWrHt0BdGZO34tavummXemTH9LZ/mqv9\\n' +\n 'aljt6ZuDtf5DEQjdsAwXMsyo03ffnP7doWm8iaF1+Mui77ot0TmTsP/deyGwukvJ\\n' +\n 'tkxX8bZjDh+EaNauWKr+CYnniNxCQLfFtXYJsfOdVBzK3xNL+Z3ucOQRhr2helWc\\n' +\n 'CDQgwfhP1+3pRVKqHvWCPC4R3fT7RZHuRmZ38kndv476GxRntejh+ePffif78bFI\\n' +\n '3rIZCPBGobrrUMycafSbyXteoGca/kA+/IqrAPlk0pWQ4aEL0yTWN2h2dnjoD7oX\\n' +\n 'byIuL/g9AGRh97+ssn7D6bDRPTbW\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/TCCAuWgAwIBAgIBTTANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNjA1MDMyMTI5MjJaFw0y\\n' +\n 'MDAzMDUyMTI5MjJaMIGQMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEhMB8GA1UEAwwYQW1hem9uIFJE\\n' +\n 'UyBhcC1zb3V0aC0xIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA\\n' +\n '06eWGLE0TeqL9kyWOLkS8q0fXO97z+xyBV3DKSB2lg2GkgBz3B98MkmkeB0SZy3G\\n' +\n 'Ce4uCpCPbFKiFEdiUclOlhZsrBuCeaimxLM3Ig2wuenElO/7TqgaYHYUbT3d+VQW\\n' +\n 'GUbLn5GRZJZe1OAClYdOWm7A1CKpuo+cVV1vxbY2nGUQSJPpVn2sT9gnwvjdE60U\\n' +\n 'JGYU/RLCTm8zmZBvlWaNIeKDnreIc4rKn6gUnJ2cQn1ryCVleEeyc3xjYDSrjgdn\\n' +\n 'FLYGcp9mphqVT0byeQMOk0c7RHpxrCSA0V5V6/CreFV2LteK50qcDQzDSM18vWP/\\n' +\n 'p09FoN8O7QrtOeZJzH/lmwIDAQABo2YwZDAOBgNVHQ8BAf8EBAMCAQYwEgYDVR0T\\n' +\n 'AQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU2i83QHuEl/d0keXF+69HNJph7cMwHwYD\\n' +\n 'VR0jBBgwFoAUTgLurD72FchM7Sz1BcGPnIQISYMwDQYJKoZIhvcNAQELBQADggEB\\n' +\n 'ACqnH2VjApoDqoSQOky52QBwsGaj+xWYHW5Gm7EvCqvQuhWMkeBuD6YJmMvNyA9G\\n' +\n 'I2lh6/o+sUk/RIsbYbxPRdhNPTOgDR9zsNRw6qxaHztq/CEC+mxDCLa3O1hHBaDV\\n' +\n 'BmB3nCZb93BvO0EQSEk7aytKq/f+sjyxqOcs385gintdHGU9uM7gTZHnU9vByJsm\\n' +\n '/TL07Miq67X0NlhIoo3jAk+xHaeKJdxdKATQp0448P5cY20q4b8aMk1twcNaMvCP\\n' +\n 'dG4M5doaoUA8OQ/0ukLLae/LBxLeTw04q1/a2SyFaVUX2Twbb1S3xVWwLA8vsyGr\\n' +\n 'igXx7B5GgP+IHb6DTjPJAi0=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBTjANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNjA4MTExOTU4NDVaFw0y\\n' +\n 'MDAzMDUxOTU4NDVaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyB1cy1lYXN0LTIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCp\\n' +\n 'WnnUX7wM0zzstccX+4iXKJa9GR0a2PpvB1paEX4QRCgfhEdQWDaSqyrWNgdVCKkt\\n' +\n '1aQkWu5j6VAC2XIG7kKoonm1ZdBVyBLqW5lXNywlaiU9yhJkwo8BR+/OqgE+PLt/\\n' +\n 'EO1mlN0PQudja/XkExCXTO29TG2j7F/O7hox6vTyHNHc0H88zS21uPuBE+jivViS\\n' +\n 'yzj/BkyoQ85hnkues3f9R6gCGdc+J51JbZnmgzUkvXjAEuKhAm9JksVOxcOKUYe5\\n' +\n 'ERhn0U9zjzpfbAITIkul97VVa5IxskFFTHIPJbvRKHJkiF6wTJww/tc9wm+fSCJ1\\n' +\n '+DbQTGZgkQ3bJrqRN29/AgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBSAHQzUYYZbepwKEMvGdHp8wzHnfDAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQsFAAOCAQEA\\n' +\n 'MbaEzSYZ+aZeTBxf8yi0ta8K4RdwEJsEmP6IhFFQHYUtva2Cynl4Q9tZg3RMsybT\\n' +\n '9mlnSQQlbN/wqIIXbkrcgFcHoXG9Odm/bDtUwwwDaiEhXVfeQom3G77QHOWMTCGK\\n' +\n 'qadwuh5msrb17JdXZoXr4PYHDKP7j0ONfAyFNER2+uecblHfRSpVq5UeF3L6ZJb8\\n' +\n 'fSw/GtAV6an+/0r+Qm+PiI2H5XuZ4GmRJYnGMhqWhBYrY7p3jtVnKcsh39wgfUnW\\n' +\n 'AvZEZG/yhFyAZW0Essa39LiL5VSq14Y1DOj0wgnhSY/9WHxaAo1HB1T9OeZknYbD\\n' +\n 'fl/EGSZ0TEvZkENrXcPlVA==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/zCCAuegAwIBAgIBTzANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNjA5MTUwMDEwMTFaFw0y\\n' +\n 'MDAzMDUwMDEwMTFaMIGSMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEjMCEGA1UEAwwaQW1hem9uIFJE\\n' +\n 'UyBjYS1jZW50cmFsLTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\\n' +\n 'AQCZYI/iQ6DrS3ny3t1EwX1wAD+3LMgh7Fd01EW5LIuaK2kYIIQpsVKhxLCit/V5\\n' +\n 'AGc/1qiJS1Qz9ODLTh0Na6bZW6EakRzuHJLe32KJtoFYPC7Z09UqzXrpA/XL+1hM\\n' +\n 'P0ZmCWsU7Nn/EmvfBp9zX3dZp6P6ATrvDuYaVFr+SA7aT3FXpBroqBS1fyzUPs+W\\n' +\n 'c6zTR6+yc4zkHX0XQxC5RH6xjgpeRkoOajA/sNo7AQF7KlWmKHbdVF44cvvAhRKZ\\n' +\n 'XaoVs/C4GjkaAEPTCbopYdhzg+KLx9eB2BQnYLRrIOQZtRfbQI2Nbj7p3VsRuOW1\\n' +\n 'tlcks2w1Gb0YC6w6SuIMFkl1AgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNV\\n' +\n 'HRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBToYWxE1lawl6Ks6NsvpbHQ3GKEtzAf\\n' +\n 'BgNVHSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQsFAAOC\\n' +\n 'AQEAG/8tQ0ooi3hoQpa5EJz0/E5VYBsAz3YxA2HoIonn0jJyG16bzB4yZt4vNQMA\\n' +\n 'KsNlQ1uwDWYL1nz63axieUUFIxqxl1KmwfhsmLgZ0Hd2mnTPIl2Hw3uj5+wdgGBg\\n' +\n 'agnAZ0bajsBYgD2VGQbqjdk2Qn7Fjy3LEWIvGZx4KyZ99OJ2QxB7JOPdauURAtWA\\n' +\n 'DKYkP4LLJxtj07DSzG8kuRWb9B47uqUD+eKDIyjfjbnzGtd9HqqzYFau7EX3HVD9\\n' +\n '9Qhnjl7bTZ6YfAEZ3nH2t3Vc0z76XfGh47rd0pNRhMV+xpok75asKf/lNh5mcUrr\\n' +\n 'VKwflyMkQpSbDCmcdJ90N2xEXQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBUDANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNjEwMTAxNzQ0NDJaFw0y\\n' +\n 'MDAzMDUxNzQ0NDJaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyBldS13ZXN0LTIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDO\\n' +\n 'cttLJfubB4XMMIGWNfJISkIdCMGJyOzLiMJaiWB5GYoXKhEl7YGotpy0qklwW3BQ\\n' +\n 'a0fmVdcCLX+dIuVQ9iFK+ZcK7zwm7HtdDTCHOCKeOh2IcnU4c/VIokFi6Gn8udM6\\n' +\n 'N/Zi5M5OGpVwLVALQU7Yctsn3c95el6MdVx6mJiIPVu7tCVZn88Z2koBQ2gq9P4O\\n' +\n 'Sb249SHFqOb03lYDsaqy1NDsznEOhaRBw7DPJFpvmw1lA3/Y6qrExRI06H2VYR2i\\n' +\n '7qxwDV50N58fs10n7Ye1IOxTVJsgEA7X6EkRRXqYaM39Z76R894548WHfwXWjUsi\\n' +\n 'MEX0RS0/t1GmnUQjvevDAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBQBxmcuRSxERYCtNnSr5xNfySokHjAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQsFAAOCAQEA\\n' +\n 'UyCUQjsF3nUAABjfEZmpksTuUo07aT3KGYt+EMMFdejnBQ0+2lJJFGtT+CDAk1SD\\n' +\n 'RSgfEBon5vvKEtlnTf9a3pv8WXOAkhfxnryr9FH6NiB8obISHNQNPHn0ljT2/T+I\\n' +\n 'Y6ytfRvKHa0cu3V0NXbJm2B4KEOt4QCDiFxUIX9z6eB4Kditwu05OgQh6KcogOiP\\n' +\n 'JesWxBMXXGoDC1rIYTFO7szwDyOHlCcVXJDNsTJhc32oDWYdeIbW7o/5I+aQsrXZ\\n' +\n 'C96HykZcgWzz6sElrQxUaT3IoMw/5nmw4uWKKnZnxgI9bY4fpQwMeBZ96iHfFxvH\\n' +\n 'mqfEEuC7uUoPofXdBp2ObQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBUTANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNzA4MjUyMTM5MjZaFw0y\\n' +\n 'MDAzMDUyMTM5MjZaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyBldS13ZXN0LTMgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC+\\n' +\n 'xmlEC/3a4cJH+UPwXCE02lC7Zq5NHd0dn6peMeLN8agb6jW4VfSY0NydjRj2DJZ8\\n' +\n 'K7wV6sub5NUGT1NuFmvSmdbNR2T59KX0p2dVvxmXHHtIpQ9Y8Aq3ZfhmC5q5Bqgw\\n' +\n 'tMA1xayDi7HmoPX3R8kk9ktAZQf6lDeksCvok8idjTu9tiSpDiMwds5BjMsWfyjZ\\n' +\n 'd13PTGGNHYVdP692BSyXzSP1Vj84nJKnciW8tAqwIiadreJt5oXyrCXi8ekUMs80\\n' +\n 'cUTuGm3aA3Q7PB5ljJMPqz0eVddaiIvmTJ9O3Ez3Du/HpImyMzXjkFaf+oNXf/Hx\\n' +\n '/EW5jCRR6vEiXJcDRDS7AgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBRZ9mRtS5fHk3ZKhG20Oack4cAqMTAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQsFAAOCAQEA\\n' +\n 'F/u/9L6ExQwD73F/bhCw7PWcwwqsK1mypIdrjdIsu0JSgwWwGCXmrIspA3n3Dqxq\\n' +\n 'sMhAJD88s9Em7337t+naar2VyLO63MGwjj+vA4mtvQRKq8ScIpiEc7xN6g8HUMsd\\n' +\n 'gPG9lBGfNjuAZsrGJflrko4HyuSM7zHExMjXLH+CXcv/m3lWOZwnIvlVMa4x0Tz0\\n' +\n 'A4fklaawryngzeEjuW6zOiYCzjZtPlP8Fw0SpzppJ8VpQfrZ751RDo4yudmPqoPK\\n' +\n '5EUe36L8U+oYBXnC5TlYs9bpVv9o5wJQI5qA9oQE2eFWxF1E0AyZ4V5sgGUBStaX\\n' +\n 'BjDDWul0wSo7rt1Tq7XpnA==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBTjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNzEyMDEwMDU1NDJaFw0y\\n' +\n 'MDAzMDUwMDU1NDJaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1ub3J0aGVhc3QtMyBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBAMZtQNnm/XT19mTa10ftHLzg5UhajoI65JHv4TQNdGXdsv+CQdGYU49BJ9Eu\\n' +\n '3bYgiEtTzR2lQe9zGMvtuJobLhOWuavzp7IixoIQcHkFHN6wJ1CvqrxgvJfBq6Hy\\n' +\n 'EuCDCiU+PPDLUNA6XM6Qx3IpHd1wrJkjRB80dhmMSpxmRmx849uFafhN+P1QybsM\\n' +\n 'TI0o48VON2+vj+mNuQTyLMMP8D4odSQHjaoG+zyJfJGZeAyqQyoOUOFEyQaHC3TT\\n' +\n '3IDSNCQlpxb9LerbCoKu79WFBBq3CS5cYpg8/fsnV2CniRBFFUumBt5z4dhw9RJU\\n' +\n 'qlUXXO1ZyzpGd+c5v6FtrfXtnIUCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFETv7ELNplYy/xTeIOInl6nzeiHg\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQCpKxOQcd0tEKb3OtsOY8q/MPwTyustGk2Rt7t9G68idADp8IytB7M0SDRo\\n' +\n 'wWZqynEq7orQVKdVOanhEWksNDzGp0+FPAf/KpVvdYCd7ru3+iI+V4ZEp2JFdjuZ\\n' +\n 'Zz0PIjS6AgsZqE5Ri1J+NmfmjGZCPhsHnGZiBaenX6K5VRwwwmLN6xtoqrrfR5zL\\n' +\n 'QfBeeZNJG6KiM3R/DxJ5rAa6Fz+acrhJ60L7HprhB7SFtj1RCijau3+ZwiGmUOMr\\n' +\n 'yKlMv+VgmzSw7o4Hbxy1WVrA6zQsTHHSGf+vkQn2PHvnFMUEu/ZLbTDYFNmTLK91\\n' +\n 'K6o4nMsEvhBKgo4z7H1EqqxXhvN2\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBDCCAuygAwIBAgIBTTANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNzEyMDYyMjQyMjdaFw0y\\n' +\n 'MDAzMDQyMjQyMjdaMIGXMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEoMCYGA1UEAwwfQW1hem9uIFJE\\n' +\n 'UyBwcmV2aWV3LXVzLWVhc3QtMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC\\n' +\n 'AQoCggEBAMw0E8k8URanS0c/i1S7wzFf5+XC9H2bm+4pENdElGP5s9rVCybrzJaw\\n' +\n '6zZgVLpOFnS9mJ+sDHIMUexPjj0X4+r7wZ4+hPfy7Rmrgbt23IQwr+PIBxsKAVjj\\n' +\n 'iaQ3bSm5WQ79an5elfQqEDdZ13ckUcLBJDA8bUDthI8m7gnteGtx0M1D0VS5PDs9\\n' +\n 'cf96QlBia9Lx3VcNo3cc0PzP30E4j3h/Ywlb0jXUgB6oVlTxK70BjD3kZa+2xlea\\n' +\n 'vKmm4NqGVhPY7BWd4XNdbSYsPDeZ9HxHNWXZxoHcQ7vSU8RKYVPtoBK/zIp3eWOi\\n' +\n 'gzZlm5vYPvlkYh2pshttPPVyhZqlEZ8CAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEG\\n' +\n 'MBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFI93K+FRhste6w3MiD+IK3Tc\\n' +\n 'g/BsMB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEB\\n' +\n 'BQUAA4IBAQAs4RsC8MJVOvrlRi5sgKC9LJ4BvSrrbR5V8CdIEwlPqrVOSsU5t7Py\\n' +\n 'j8CHoPUY/ya1azlBSO62BqdZxipFuAR06NdxNG2Gy0fGl71N2udxokwEPW+IEZ81\\n' +\n 'G6JeX8HNFjnna8ehimz1VJDDW7qborhg3dCAgEWkgv5PDR9/zoUu6bbmHPV77zbx\\n' +\n 'Gq7Sybz5OiagC7Nj9N1WgjNXUEmlfY2DHXnJmIVgUGEVrBgu5tGcIU/bQCRznH1N\\n' +\n 'JsBH0SalneCbSzMBhQdnzL+L5KOERibWAZvS6ebmomTBwa03kgo/T0DfEccgobTs\\n' +\n 'rV6T9/8Vg9T18vEeqURL+LOGs7+lIKmN\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/TCCAuWgAwIBAgIBUjANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xODA5MjgxNzM0NTJaFw0y\\n' +\n 'MDAzMDUxNzM0NTJaMIGQMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEhMB8GA1UEAwwYQW1hem9uIFJE\\n' +\n 'UyBldS1ub3J0aC0xIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA\\n' +\n 'wvHfpoixHNy1jvcq/WNhXDHlsFVbEOX7mp01YQeK0wWqlpFvjs2HFJ1sRnnmyhdT\\n' +\n 'sv4VQuXnQw2V2iFAO2HveDi8pcJ+eIXY+wloSVBytgYLTMcNpn5LmqIeyGO+Lr6p\\n' +\n 'KUr78I4uE0mnabxyILA96CYrYtgwpLCtpEXSdSJPwOSK9nX9++molxLcJ5v4fiPS\\n' +\n 'j46PETsbFoFdXXwYCdiJKpzO4zUAkKzzvzbF7cXg9R4noJuytjEKbluxugDHdnwl\\n' +\n 'SctGZ3moju2I0OpPbJKUI3wHsUMtY5v15X74MOED5lbtaW5+/6JIERggve0b23Ni\\n' +\n '4nlYSt0Bb3z3Zwc83twCUwIDAQABo2YwZDAOBgNVHQ8BAf8EBAMCAQYwEgYDVR0T\\n' +\n 'AQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU4stOy1OAFRyvZCSKNfCiPRD+rPowHwYD\\n' +\n 'VR0jBBgwFoAUTgLurD72FchM7Sz1BcGPnIQISYMwDQYJKoZIhvcNAQELBQADggEB\\n' +\n 'AHpRIlKh1fqbMHl0+VnJ/52XQy1F5gM2hnw3lYkOLsDyzj9W4V6D1v2EDgYW+ZVH\\n' +\n '0wWqo8m0jS6CDn14W2HqNlyXyHpJK3eh3088zxvJgKqzKS4ghNzafN7axwYIwRN6\\n' +\n '9rrhRWy9MaFHaSPKtgiuTxw9fOekqyJdO+OYpBVEp7KEEyEG9/W5xZcU64zGb6UT\\n' +\n '8/g4+5t+HlT0nYBMvt8HW7w2XbFBetfKKK4WaoPKloOMN+RLO/JgJ6pVWvxM8nhC\\n' +\n 'PbVtr43OI1sQAXYk0an7aUDgXT98vGwovWNHI6lFCMGRG+WXhauLtKRsIr4hR1LV\\n' +\n 'fES7Q9MWPzPYHQoKELF9Jhk=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwgZQxCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSUwIwYDVQQDDBxBbWF6b24gUkRTIGFwLWVhc3QtMSBSb290IENBMB4XDTE5MDIx\\n' +\n 'NzAyNDcwMFoXDTIyMDYwMTEyMDAwMFowgY8xCzAJBgNVBAYTAlVTMRMwEQYDVQQI\\n' +\n 'DApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMSIwIAYDVQQKDBlBbWF6b24g\\n' +\n 'V2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRTMSAwHgYDVQQD\\n' +\n 'DBdBbWF6b24gUkRTIGFwLWVhc3QtMSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAOcJAUofyJuBuPr5ISHi/Ha5ed8h3eGdzn4MBp6rytPOg9NVGRQs\\n' +\n 'O93fNGCIKsUT6gPuk+1f1ncMTV8Y0Fdf4aqGWme+Khm3ZOP3V1IiGnVq0U2xiOmn\\n' +\n 'SQ4Q7LoeQC4lC6zpoCHVJyDjZ4pAknQQfsXb77Togdt/tK5ahev0D+Q3gCwAoBoO\\n' +\n 'DHKJ6t820qPi63AeGbJrsfNjLKiXlFPDUj4BGir4dUzjEeH7/hx37na1XG/3EcxP\\n' +\n '399cT5k7sY/CR9kctMlUyEEUNQOmhi/ly1Lgtihm3QfjL6K9aGLFNwX35Bkh9aL2\\n' +\n 'F058u+n8DP/dPeKUAcJKiQZUmzuen5n57x8CAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFFlqgF4FQlb9yP6c+Q3E\\n' +\n 'O3tXv+zOMB8GA1UdIwQYMBaAFK9T6sY/PBZVbnHcNcQXf58P4OuPMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQDeXiS3v1z4jWAo1UvVyKDeHjtrtEH1Rida1eOXauFuEQa5tuOk\\n' +\n 'E53Os4haZCW4mOlKjigWs4LN+uLIAe1aFXGo92nGIqyJISHJ1L+bopx/JmIbHMCZ\\n' +\n '0lTNJfR12yBma5VQy7vzeFku/SisKwX0Lov1oHD4MVhJoHbUJYkmAjxorcIHORvh\\n' +\n 'I3Vj5XrgDWtLDPL8/Id/roul/L+WX5ir+PGScKBfQIIN2lWdZoqdsx8YWqhm/ikL\\n' +\n 'C6qNieSwcvWL7C03ri0DefTQMY54r5wP33QU5hJ71JoaZI3YTeT0Nf+NRL4hM++w\\n' +\n 'Q0veeNzBQXg1f/JxfeA39IDIX1kiCf71tGlT\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEEDCCAvigAwIBAgIJAJF3HxEqKM4lMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJEUyBhcC1lYXN0LTEgUm9vdCBDQTAe\\n' +\n 'Fw0xOTAyMTcwMjQ2MTFaFw0yNDAyMTYwMjQ2MTFaMIGUMQswCQYDVQQGEwJVUzEQ\\n' +\n 'MA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UECgwZ\\n' +\n 'QW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEl\\n' +\n 'MCMGA1UEAwwcQW1hem9uIFJEUyBhcC1lYXN0LTEgUm9vdCBDQTCCASIwDQYJKoZI\\n' +\n 'hvcNAQEBBQADggEPADCCAQoCggEBAOCVr1Yj5IW4XWa9QOLGJDSz4pqIM6BAbqQp\\n' +\n 'gYvzIO4Lv8c8dEnuuuCY8M/zOrJ1iQJ3cDiKGa32HVBVcH+nUdXzw4Jq5jw0hsb6\\n' +\n '/WW2RD2aUe4jCkRD5wNzmeHM4gTgtMZnXNVHpELgKR4wVhSHEfWFTiMsZi35y8mj\\n' +\n 'PL98Mz/m/nMnB/59EjMvcJMrsUljHO6B9BMEcvNkwvre9xza0BQWKyiVRcbOpoj1\\n' +\n 'w4BPtYYZ+dW2QKw9AmYXwAmCLeATsxrHIJ/IbzS7obxv2QN2Eh4pJ3ghRCFv1XM9\\n' +\n 'XVkm13oiCjj7jsxAwF7o+VggPl/GG+/Gwk+TLuaTFNAtROpPxL8CAwEAAaNjMGEw\\n' +\n 'DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFK9T6sY/\\n' +\n 'PBZVbnHcNcQXf58P4OuPMB8GA1UdIwQYMBaAFK9T6sY/PBZVbnHcNcQXf58P4OuP\\n' +\n 'MA0GCSqGSIb3DQEBCwUAA4IBAQBBY+KATaT7ndYT3Ky0VWaiwNfyl1u3aDxr+MKP\\n' +\n 'VeDhtOhlob5u0E+edOXUvEXd4A+ntS+U0HmwvtMXtQbQ2EJbsNRqZnS8KG9YB2Yc\\n' +\n 'Q99auphW3wMjwHRtflLO5h14aa9SspqJJgcM1R7Z3pAYeq6bpBDxZSGrYtWI64q4\\n' +\n 'h4i67qWAGDFcXSTW1kJ00GMlBCIGTeYiu8LYutdsDWzYKkeezJRjx9VR4w7A7e1G\\n' +\n 'WmY4aUg/8aPxCioY2zEQKNl55Ghg6Dwy+6BxaV6RlV9r9EaSCai11p1bgS568WQn\\n' +\n '4WNQK36EGe37l2SOpDB6STrq57/rjREvmq803Ylg/Gf6qqzK\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECTCCAvGgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwgZUxCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSYwJAYDVQQDDB1BbWF6b24gUkRTIG1lLXNvdXRoLTEgUm9vdCBDQTAeFw0xOTA1\\n' +\n 'MTAyMTU4NDNaFw0yNTA2MDExMjAwMDBaMIGQMQswCQYDVQQGEwJVUzETMBEGA1UE\\n' +\n 'CAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9u\\n' +\n 'IFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEhMB8GA1UE\\n' +\n 'AwwYQW1hem9uIFJEUyBtZS1zb3V0aC0xIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC\\n' +\n 'AQ8AMIIBCgKCAQEAudOYPZH+ihJAo6hNYMB5izPVBe3TYhnZm8+X3IoaaYiKtsp1\\n' +\n 'JJhkTT0CEejYIQ58Fh4QrMUyWvU8qsdK3diNyQRoYLbctsBPgxBR1u07eUJDv38/\\n' +\n 'C1JlqgHmMnMi4y68Iy7ymv50QgAMuaBqgEBRI1R6Lfbyrb2YvH5txjJyTVMwuCfd\\n' +\n 'YPAtZVouRz0JxmnfsHyxjE+So56uOKTDuw++Ho4HhZ7Qveej7XB8b+PIPuroknd3\\n' +\n 'FQB5RVbXRvt5ZcVD4F2fbEdBniF7FAF4dEiofVCQGQ2nynT7dZdEIPfPdH3n7ZmE\\n' +\n 'lAOmwHQ6G83OsiHRBLnbp+QZRgOsjkHJxT20bQIDAQABo2YwZDAOBgNVHQ8BAf8E\\n' +\n 'BAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUOEVDM7VomRH4HVdA\\n' +\n 'QvIMNq2tXOcwHwYDVR0jBBgwFoAU54cfDjgwBx4ycBH8+/r8WXdaiqYwDQYJKoZI\\n' +\n 'hvcNAQELBQADggEBAHhvMssj+Th8IpNePU6RH0BiL6o9c437R3Q4IEJeFdYL+nZz\\n' +\n 'PW/rELDPvLRUNMfKM+KzduLZ+l29HahxefejYPXtvXBlq/E/9czFDD4fWXg+zVou\\n' +\n 'uDXhyrV4kNmP4S0eqsAP/jQHPOZAMFA4yVwO9hlqmePhyDnszCh9c1PfJSBh49+b\\n' +\n '4w7i/L3VBOMt8j3EKYvqz0gVfpeqhJwL4Hey8UbVfJRFJMJzfNHpePqtDRAY7yjV\\n' +\n 'PYquRaV2ab/E+/7VFkWMM4tazYz/qsYA2jSH+4xDHvYk8LnsbcrF9iuidQmEc5sb\\n' +\n 'FgcWaSKG4DJjcI5k7AJLWcXyTDt21Ci43LE+I9Q=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEEjCCAvqgAwIBAgIJANew34ehz5l8MA0GCSqGSIb3DQEBCwUAMIGVMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzEmMCQGA1UEAwwdQW1hem9uIFJEUyBtZS1zb3V0aC0xIFJvb3QgQ0Ew\\n' +\n 'HhcNMTkwNTEwMjE0ODI3WhcNMjQwNTA4MjE0ODI3WjCBlTELMAkGA1UEBhMCVVMx\\n' +\n 'EDAOBgNVBAcMB1NlYXR0bGUxEzARBgNVBAgMCldhc2hpbmd0b24xIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'JjAkBgNVBAMMHUFtYXpvbiBSRFMgbWUtc291dGgtMSBSb290IENBMIIBIjANBgkq\\n' +\n 'hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp7BYV88MukcY+rq0r79+C8UzkT30fEfT\\n' +\n 'aPXbx1d6M7uheGN4FMaoYmL+JE1NZPaMRIPTHhFtLSdPccInvenRDIatcXX+jgOk\\n' +\n 'UA6lnHQ98pwN0pfDUyz/Vph4jBR9LcVkBbe0zdoKKp+HGbMPRU0N2yNrog9gM5O8\\n' +\n 'gkU/3O2csJ/OFQNnj4c2NQloGMUpEmedwJMOyQQfcUyt9CvZDfIPNnheUS29jGSw\\n' +\n 'ERpJe/AENu8Pxyc72jaXQuD+FEi2Ck6lBkSlWYQFhTottAeGvVFNCzKszCntrtqd\\n' +\n 'rdYUwurYsLTXDHv9nW2hfDUQa0mhXf9gNDOBIVAZugR9NqNRNyYLHQIDAQABo2Mw\\n' +\n 'YTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU54cf\\n' +\n 'DjgwBx4ycBH8+/r8WXdaiqYwHwYDVR0jBBgwFoAU54cfDjgwBx4ycBH8+/r8WXda\\n' +\n 'iqYwDQYJKoZIhvcNAQELBQADggEBAIIMTSPx/dR7jlcxggr+O6OyY49Rlap2laKA\\n' +\n 'eC/XI4ySP3vQkIFlP822U9Kh8a9s46eR0uiwV4AGLabcu0iKYfXjPkIprVCqeXV7\\n' +\n 'ny9oDtrbflyj7NcGdZLvuzSwgl9SYTJp7PVCZtZutsPYlbJrBPHwFABvAkMvRtDB\\n' +\n 'hitIg4AESDGPoCl94sYHpfDfjpUDMSrAMDUyO6DyBdZH5ryRMAs3lGtsmkkNUrso\\n' +\n 'aTW6R05681Z0mvkRdb+cdXtKOSuDZPoe2wJJIaz3IlNQNSrB5TImMYgmt6iAsFhv\\n' +\n '3vfTSTKrZDNTJn4ybG6pq1zWExoXsktZPylJly6R3RBwV6nwqBM=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEETCCAvmgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwgZQxCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSUwIwYDVQQDDBxBbWF6b24gUkRTIEJldGEgUm9vdCAyMDE5IENBMB4XDTE5MDgy\\n' +\n 'MDE3MTAwN1oXDTI0MDgxOTE3MzgyNlowgZkxCzAJBgNVBAYTAlVTMRMwEQYDVQQI\\n' +\n 'DApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMSIwIAYDVQQKDBlBbWF6b24g\\n' +\n 'V2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRTMSowKAYDVQQD\\n' +\n 'DCFBbWF6b24gUkRTIEJldGEgdXMtZWFzdC0xIDIwMTkgQ0EwggEiMA0GCSqGSIb3\\n' +\n 'DQEBAQUAA4IBDwAwggEKAoIBAQDTNCOlotQcLP8TP82U2+nk0bExVuuMVOgFeVMx\\n' +\n 'vbUHZQeIj9ikjk+jm6eTDnnkhoZcmJiJgRy+5Jt69QcRbb3y3SAU7VoHgtraVbxF\\n' +\n 'QDh7JEHI9tqEEVOA5OvRrDRcyeEYBoTDgh76ROco2lR+/9uCvGtHVrMCtG7BP7ZB\\n' +\n 'sSVNAr1IIRZZqKLv2skKT/7mzZR2ivcw9UeBBTUf8xsfiYVBvMGoEsXEycjYdf6w\\n' +\n 'WV+7XS7teNOc9UgsFNN+9AhIBc1jvee5E//72/4F8pAttAg/+mmPUyIKtekNJ4gj\\n' +\n 'OAR2VAzGx1ybzWPwIgOudZFHXFduxvq4f1hIRPH0KbQ/gkRrAgMBAAGjZjBkMA4G\\n' +\n 'A1UdDwEB/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBTkvpCD\\n' +\n '6C43rar9TtJoXr7q8dkrrjAfBgNVHSMEGDAWgBStoQwVpbGx87fxB3dEGDqKKnBT\\n' +\n '4TANBgkqhkiG9w0BAQsFAAOCAQEAJd9fOSkwB3uVdsS+puj6gCER8jqmhd3g/J5V\\n' +\n 'Zjk9cKS8H0e8pq/tMxeJ8kpurPAzUk5RkCspGt2l0BSwmf3ahr8aJRviMX6AuW3/\\n' +\n 'g8aKplTvq/WMNGKLXONa3Sq8591J+ce8gtOX/1rDKmFI4wQ/gUzOSYiT991m7QKS\\n' +\n 'Fr6HMgFuz7RNJbb3Fy5cnurh8eYWA7mMv7laiLwTNsaro5qsqErD5uXuot6o9beT\\n' +\n 'a+GiKinEur35tNxAr47ax4IRubuIzyfCrezjfKc5raVV2NURJDyKP0m0CCaffAxE\\n' +\n 'qn2dNfYc3v1D8ypg3XjHlOzRo32RB04o8ALHMD9LSwsYDLpMag==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEEDCCAvigAwIBAgIJAKFMXyltvuRdMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJEUyBCZXRhIFJvb3QgMjAxOSBDQTAe\\n' +\n 'Fw0xOTA4MTkxNzM4MjZaFw0yNDA4MTkxNzM4MjZaMIGUMQswCQYDVQQGEwJVUzEQ\\n' +\n 'MA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UECgwZ\\n' +\n 'QW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEl\\n' +\n 'MCMGA1UEAwwcQW1hem9uIFJEUyBCZXRhIFJvb3QgMjAxOSBDQTCCASIwDQYJKoZI\\n' +\n 'hvcNAQEBBQADggEPADCCAQoCggEBAMkZdnIH9ndatGAcFo+DppGJ1HUt4x+zeO+0\\n' +\n 'ZZ29m0sfGetVulmTlv2d5b66e+QXZFWpcPQMouSxxYTW08TbrQiZngKr40JNXftA\\n' +\n 'atvzBqIImD4II0ZX5UEVj2h98qe/ypW5xaDN7fEa5e8FkYB1TEemPaWIbNXqchcL\\n' +\n 'tV7IJPr3Cd7Z5gZJlmujIVDPpMuSiNaal9/6nT9oqN+JSM1fx5SzrU5ssg1Vp1vv\\n' +\n '5Xab64uOg7wCJRB9R2GC9XD04odX6VcxUAGrZo6LR64ZSifupo3l+R5sVOc5i8NH\\n' +\n 'skdboTzU9H7+oSdqoAyhIU717PcqeDum23DYlPE2nGBWckE+eT8CAwEAAaNjMGEw\\n' +\n 'DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFK2hDBWl\\n' +\n 'sbHzt/EHd0QYOooqcFPhMB8GA1UdIwQYMBaAFK2hDBWlsbHzt/EHd0QYOooqcFPh\\n' +\n 'MA0GCSqGSIb3DQEBCwUAA4IBAQAO/718k8EnOqJDx6wweUscGTGL/QdKXUzTVRAx\\n' +\n 'JUsjNUv49mH2HQVEW7oxszfH6cPCaupNAddMhQc4C/af6GHX8HnqfPDk27/yBQI+\\n' +\n 'yBBvIanGgxv9c9wBbmcIaCEWJcsLp3HzXSYHmjiqkViXwCpYfkoV3Ns2m8bp+KCO\\n' +\n 'y9XmcCKRaXkt237qmoxoh2sGmBHk2UlQtOsMC0aUQ4d7teAJG0q6pbyZEiPyKZY1\\n' +\n 'XR/UVxMJL0Q4iVpcRS1kaNCMfqS2smbLJeNdsan8pkw1dvPhcaVTb7CvjhJtjztF\\n' +\n 'YfDzAI5794qMlWxwilKMmUvDlPPOTen8NNHkLwWvyFCH7Doh\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEFzCCAv+gAwIBAgICFSUwDQYJKoZIhvcNAQELBQAwgZcxCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSgwJgYDVQQDDB9BbWF6b24gUkRTIFByZXZpZXcgUm9vdCAyMDE5IENBMB4XDTE5\\n' +\n 'MDgyMTIyMzk0N1oXDTI0MDgyMTIyMjk0OVowgZwxCzAJBgNVBAYTAlVTMRMwEQYD\\n' +\n 'VQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMSIwIAYDVQQKDBlBbWF6\\n' +\n 'b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRTMS0wKwYD\\n' +\n 'VQQDDCRBbWF6b24gUkRTIFByZXZpZXcgdXMtZWFzdC0yIDIwMTkgQ0EwggEiMA0G\\n' +\n 'CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD0dB/U7qRnSf05wOi7m10Pa2uPMTJv\\n' +\n 'r6U/3Y17a5prq5Zr4++CnSUYarG51YuIf355dKs+7Lpzs782PIwCmLpzAHKWzix6\\n' +\n 'pOaTQ+WZ0+vUMTxyqgqWbsBgSCyP7pVBiyqnmLC/L4az9XnscrbAX4pNaoJxsuQe\\n' +\n 'mzBo6yofjQaAzCX69DuqxFkVTRQnVy7LCFkVaZtjNAftnAHJjVgQw7lIhdGZp9q9\\n' +\n 'IafRt2gteihYfpn+EAQ/t/E4MnhrYs4CPLfS7BaYXBycEKC5Muj1l4GijNNQ0Efo\\n' +\n 'xG8LSZz7SNgUvfVwiNTaqfLP3AtEAWiqxyMyh3VO+1HpCjT7uNBFtmF3AgMBAAGj\\n' +\n 'ZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQW\\n' +\n 'BBQtinkdrj+0B2+qdXngV2tgHnPIujAfBgNVHSMEGDAWgBRp0xqULkNh/w2ZVzEI\\n' +\n 'o2RIY7O03TANBgkqhkiG9w0BAQsFAAOCAQEAtJdqbCxDeMc8VN1/RzCabw9BIL/z\\n' +\n '73Auh8eFTww/sup26yn8NWUkfbckeDYr1BrXa+rPyLfHpg06kwR8rBKyrs5mHwJx\\n' +\n 'bvOzXD/5WTdgreB+2Fb7mXNvWhenYuji1MF+q1R2DXV3I05zWHteKX6Dajmx+Uuq\\n' +\n 'Yq78oaCBSV48hMxWlp8fm40ANCL1+gzQ122xweMFN09FmNYFhwuW+Ao+Vv90ZfQG\\n' +\n 'PYwTvN4n/gegw2TYcifGZC2PNX74q3DH03DXe5fvNgRW5plgz/7f+9mS+YHd5qa9\\n' +\n 'tYTPUvoRbi169ou6jicsMKUKPORHWhiTpSCWR1FMMIbsAcsyrvtIsuaGCQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEFjCCAv6gAwIBAgIJAMzYZJ+R9NBVMA0GCSqGSIb3DQEBCwUAMIGXMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzEoMCYGA1UEAwwfQW1hem9uIFJEUyBQcmV2aWV3IFJvb3QgMjAxOSBD\\n' +\n 'QTAeFw0xOTA4MjEyMjI5NDlaFw0yNDA4MjEyMjI5NDlaMIGXMQswCQYDVQQGEwJV\\n' +\n 'UzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UE\\n' +\n 'CgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJE\\n' +\n 'UzEoMCYGA1UEAwwfQW1hem9uIFJEUyBQcmV2aWV3IFJvb3QgMjAxOSBDQTCCASIw\\n' +\n 'DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM7kkS6vjgKKQTPynC2NjdN5aPPV\\n' +\n 'O71G0JJS/2ARVBVJd93JLiGovVJilfWYfwZCs4gTRSSjrUD4D4HyqCd6A+eEEtJq\\n' +\n 'M0DEC7i0dC+9WNTsPszuB206Jy2IUmxZMIKJAA1NHSbIMjB+b6/JhbSUi7nKdbR/\\n' +\n 'brj83bF+RoSA+ogrgX7mQbxhmFcoZN9OGaJgYKsKWUt5Wqv627KkGodUK8mDepgD\\n' +\n 'S3ZfoRQRx3iceETpcmHJvaIge6+vyDX3d9Z22jmvQ4AKv3py2CmU2UwuhOltFDwB\\n' +\n '0ddtb39vgwrJxaGfiMRHpEP1DfNLWHAnA69/pgZPwIggidS+iBPUhgucMp8CAwEA\\n' +\n 'AaNjMGEwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE\\n' +\n 'FGnTGpQuQ2H/DZlXMQijZEhjs7TdMB8GA1UdIwQYMBaAFGnTGpQuQ2H/DZlXMQij\\n' +\n 'ZEhjs7TdMA0GCSqGSIb3DQEBCwUAA4IBAQC3xz1vQvcXAfpcZlngiRWeqU8zQAMQ\\n' +\n 'LZPCFNv7PVk4pmqX+ZiIRo4f9Zy7TrOVcboCnqmP/b/mNq0gVF4O+88jwXJZD+f8\\n' +\n '/RnABMZcnGU+vK0YmxsAtYU6TIb1uhRFmbF8K80HHbj9vSjBGIQdPCbvmR2zY6VJ\\n' +\n 'BYM+w9U9hp6H4DVMLKXPc1bFlKA5OBTgUtgkDibWJKFOEPW3UOYwp9uq6pFoN0AO\\n' +\n 'xMTldqWFsOF3bJIlvOY0c/1EFZXu3Ns6/oCP//Ap9vumldYMUZWmbK+gK33FPOXV\\n' +\n '8BQ6jNC29icv7lLDpRPwjibJBXX+peDR5UK4FdYcswWEB1Tix5X8dYu6\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECDCCAvCgAwIBAgICVIYwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MDQxNzEz\\n' +\n 'MDRaFw0yNDA4MjIxNzA4NTBaMIGVMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEmMCQGA1UEAwwdQW1h\\n' +\n 'em9uIFJEUyBhcC1zb3V0aC0xIDIwMTkgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IB\\n' +\n 'DwAwggEKAoIBAQDUYOz1hGL42yUCrcsMSOoU8AeD/3KgZ4q7gP+vAz1WnY9K/kim\\n' +\n 'eWN/2Qqzlo3+mxSFQFyD4MyV3+CnCPnBl9Sh1G/F6kThNiJ7dEWSWBQGAB6HMDbC\\n' +\n 'BaAsmUc1UIz8sLTL3fO+S9wYhA63Wun0Fbm/Rn2yk/4WnJAaMZcEtYf6e0KNa0LM\\n' +\n 'p/kN/70/8cD3iz3dDR8zOZFpHoCtf0ek80QqTich0A9n3JLxR6g6tpwoYviVg89e\\n' +\n 'qCjQ4axxOkWWeusLeTJCcY6CkVyFvDAKvcUl1ytM5AiaUkXblE7zDFXRM4qMMRdt\\n' +\n 'lPm8d3pFxh0fRYk8bIKnpmtOpz3RIctDrZZxAgMBAAGjZjBkMA4GA1UdDwEB/wQE\\n' +\n 'AwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBT99wKJftD3jb4sHoHG\\n' +\n 'i3uGlH6W6TAfBgNVHSMEGDAWgBRzX2DYvMsDmPQrFzQuNlqmYP+8HzANBgkqhkiG\\n' +\n '9w0BAQsFAAOCAQEAZ17hhr3dII3hUfuHQ1hPWGrpJOX/G9dLzkprEIcCidkmRYl+\\n' +\n 'hu1Pe3caRMh/17+qsoEErmnVq5jNY9X1GZL04IZH8YbHc7iRHw3HcWAdhN8633+K\\n' +\n 'jYEB2LbJ3vluCGnCejq9djDb6alOugdLMJzxOkHDhMZ6/gYbECOot+ph1tQuZXzD\\n' +\n 'tZ7prRsrcuPBChHlPjmGy8M9z8u+kF196iNSUGC4lM8vLkHM7ycc1/ZOwRq9aaTe\\n' +\n 'iOghbQQyAEe03MWCyDGtSmDfr0qEk+CHN+6hPiaL8qKt4s+V9P7DeK4iW08ny8Ox\\n' +\n 'AVS7u0OK/5+jKMAMrKwpYrBydOjTUTHScocyNw==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBjCCAu6gAwIBAgIJAMc0ZzaSUK51MA0GCSqGSIb3DQEBCwUAMIGPMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJEUyBSb290IDIwMTkgQ0EwHhcNMTkw\\n' +\n 'ODIyMTcwODUwWhcNMjQwODIyMTcwODUwWjCBjzELMAkGA1UEBhMCVVMxEDAOBgNV\\n' +\n 'BAcMB1NlYXR0bGUxEzARBgNVBAgMCldhc2hpbmd0b24xIjAgBgNVBAoMGUFtYXpv\\n' +\n 'biBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMxIDAeBgNV\\n' +\n 'BAMMF0FtYXpvbiBSRFMgUm9vdCAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEFAAOC\\n' +\n 'AQ8AMIIBCgKCAQEArXnF/E6/Qh+ku3hQTSKPMhQQlCpoWvnIthzX6MK3p5a0eXKZ\\n' +\n 'oWIjYcNNG6UwJjp4fUXl6glp53Jobn+tWNX88dNH2n8DVbppSwScVE2LpuL+94vY\\n' +\n '0EYE/XxN7svKea8YvlrqkUBKyxLxTjh+U/KrGOaHxz9v0l6ZNlDbuaZw3qIWdD/I\\n' +\n '6aNbGeRUVtpM6P+bWIoxVl/caQylQS6CEYUk+CpVyJSkopwJlzXT07tMoDL5WgX9\\n' +\n 'O08KVgDNz9qP/IGtAcRduRcNioH3E9v981QO1zt/Gpb2f8NqAjUUCUZzOnij6mx9\\n' +\n 'McZ+9cWX88CRzR0vQODWuZscgI08NvM69Fn2SQIDAQABo2MwYTAOBgNVHQ8BAf8E\\n' +\n 'BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUc19g2LzLA5j0Kxc0LjZa\\n' +\n 'pmD/vB8wHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJKoZIhvcN\\n' +\n 'AQELBQADggEBAHAG7WTmyjzPRIM85rVj+fWHsLIvqpw6DObIjMWokpliCeMINZFV\\n' +\n 'ynfgBKsf1ExwbvJNzYFXW6dihnguDG9VMPpi2up/ctQTN8tm9nDKOy08uNZoofMc\\n' +\n 'NUZxKCEkVKZv+IL4oHoeayt8egtv3ujJM6V14AstMQ6SwvwvA93EP/Ug2e4WAXHu\\n' +\n 'cbI1NAbUgVDqp+DRdfvZkgYKryjTWd/0+1fS8X1bBZVWzl7eirNVnHbSH2ZDpNuY\\n' +\n '0SBd8dj5F6ld3t58ydZbrTHze7JJOd8ijySAp4/kiu9UfZWuTPABzDa/DSdz9Dk/\\n' +\n 'zPW4CXXvhLmE02TA9/HeCw3KEHIwicNuEfw=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICQ2QwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MDUxODQ2\\n' +\n 'MjlaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyBzYS1lYXN0LTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAMMvR+ReRnOzqJzoaPipNTt1Z2VA968jlN1+SYKUrYM3No+Vpz0H\\n' +\n 'M6Tn0oYB66ByVsXiGc28ulsqX1HbHsxqDPwvQTKvO7SrmDokoAkjJgLocOLUAeld\\n' +\n '5AwvUjxGRP6yY90NV7X786MpnYb2Il9DIIaV9HjCmPt+rjy2CZjS0UjPjCKNfB8J\\n' +\n 'bFjgW6GGscjeyGb/zFwcom5p4j0rLydbNaOr9wOyQrtt3ZQWLYGY9Zees/b8pmcc\\n' +\n 'Jt+7jstZ2UMV32OO/kIsJ4rMUn2r/uxccPwAc1IDeRSSxOrnFKhW3Cu69iB3bHp7\\n' +\n 'JbawY12g7zshE4I14sHjv3QoXASoXjx4xgMCAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFI1Fc/Ql2jx+oJPgBVYq\\n' +\n 'ccgP0pQ8MB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQB4VVVabVp70myuYuZ3vltQIWqSUMhkaTzehMgGcHjMf9iLoZ/I\\n' +\n '93KiFUSGnek5cRePyS9wcpp0fcBT3FvkjpUdCjVtdttJgZFhBxgTd8y26ImdDDMR\\n' +\n '4+BUuhI5msvjL08f+Vkkpu1GQcGmyFVPFOy/UY8iefu+QyUuiBUnUuEDd49Hw0Fn\\n' +\n '/kIPII6Vj82a2mWV/Q8e+rgN8dIRksRjKI03DEoP8lhPlsOkhdwU6Uz9Vu6NOB2Q\\n' +\n 'Ls1kbcxAc7cFSyRVJEhh12Sz9d0q/CQSTFsVJKOjSNQBQfVnLz1GwO/IieUEAr4C\\n' +\n 'jkTntH0r1LX5b/GwN4R887LvjAEdTbg1his7\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECDCCAvCgAwIBAgIDAIkHMA0GCSqGSIb3DQEBCwUAMIGPMQswCQYDVQQGEwJV\\n' +\n 'UzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UE\\n' +\n 'CgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJE\\n' +\n 'UzEgMB4GA1UEAwwXQW1hem9uIFJEUyBSb290IDIwMTkgQ0EwHhcNMTkwOTA2MTc0\\n' +\n 'MDIxWhcNMjQwODIyMTcwODUwWjCBlDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldh\\n' +\n 'c2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoMGUFtYXpvbiBXZWIg\\n' +\n 'U2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMxJTAjBgNVBAMMHEFt\\n' +\n 'YXpvbiBSRFMgdXMtd2VzdC0xIDIwMTkgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IB\\n' +\n 'DwAwggEKAoIBAQDD2yzbbAl77OofTghDMEf624OvU0eS9O+lsdO0QlbfUfWa1Kd6\\n' +\n '0WkgjkLZGfSRxEHMCnrv4UPBSK/Qwn6FTjkDLgemhqBtAnplN4VsoDL+BkRX4Wwq\\n' +\n '/dSQJE2b+0hm9w9UMVGFDEq1TMotGGTD2B71eh9HEKzKhGzqiNeGsiX4VV+LJzdH\\n' +\n 'uM23eGisNqmd4iJV0zcAZ+Gbh2zK6fqTOCvXtm7Idccv8vZZnyk1FiWl3NR4WAgK\\n' +\n 'AkvWTIoFU3Mt7dIXKKClVmvssG8WHCkd3Xcb4FHy/G756UZcq67gMMTX/9fOFM/v\\n' +\n 'l5C0+CHl33Yig1vIDZd+fXV1KZD84dEJfEvHAgMBAAGjZjBkMA4GA1UdDwEB/wQE\\n' +\n 'AwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBR+ap20kO/6A7pPxo3+\\n' +\n 'T3CfqZpQWjAfBgNVHSMEGDAWgBRzX2DYvMsDmPQrFzQuNlqmYP+8HzANBgkqhkiG\\n' +\n '9w0BAQsFAAOCAQEAHCJky2tPjPttlDM/RIqExupBkNrnSYnOK4kr9xJ3sl8UF2DA\\n' +\n 'PAnYsjXp3rfcjN/k/FVOhxwzi3cXJF/2Tjj39Bm/OEfYTOJDNYtBwB0VVH4ffa/6\\n' +\n 'tZl87jaIkrxJcreeeHqYMnIxeN0b/kliyA+a5L2Yb0VPjt9INq34QDc1v74FNZ17\\n' +\n '4z8nr1nzg4xsOWu0Dbjo966lm4nOYIGBRGOKEkHZRZ4mEiMgr3YLkv8gSmeitx57\\n' +\n 'Z6dVemNtUic/LVo5Iqw4n3TBS0iF2C1Q1xT/s3h+0SXZlfOWttzSluDvoMv5PvCd\\n' +\n 'pFjNn+aXLAALoihL1MJSsxydtsLjOBro5eK0Vw==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICOFAwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTAxNzQ2\\n' +\n 'MjFaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1ub3J0aGVhc3QtMiAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEAzU72e6XbaJbi4HjJoRNjKxzUEuChKQIt7k3CWzNnmjc5\\n' +\n '8I1MjCpa2W1iw1BYVysXSNSsLOtUsfvBZxi/1uyMn5ZCaf9aeoA9UsSkFSZBjOCN\\n' +\n 'DpKPCmfV1zcEOvJz26+1m8WDg+8Oa60QV0ou2AU1tYcw98fOQjcAES0JXXB80P2s\\n' +\n '3UfkNcnDz+l4k7j4SllhFPhH6BQ4lD2NiFAP4HwoG6FeJUn45EPjzrydxjq6v5Fc\\n' +\n 'cQ8rGuHADVXotDbEhaYhNjIrsPL+puhjWfhJjheEw8c4whRZNp6gJ/b6WEes/ZhZ\\n' +\n 'h32DwsDsZw0BfRDUMgUn8TdecNexHUw8vQWeC181hwIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUwW9bWgkWkr0U\\n' +\n 'lrOsq2kvIdrECDgwHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBAEugF0Gj7HVhX0ehPZoGRYRt3PBuI2YjfrrJRTZ9X5wc\\n' +\n '9T8oHmw07mHmNy1qqWvooNJg09bDGfB0k5goC2emDiIiGfc/kvMLI7u+eQOoMKj6\\n' +\n 'mkfCncyRN3ty08Po45vTLBFZGUvtQmjM6yKewc4sXiASSBmQUpsMbiHRCL72M5qV\\n' +\n 'obcJOjGcIdDTmV1BHdWT+XcjynsGjUqOvQWWhhLPrn4jWe6Xuxll75qlrpn3IrIx\\n' +\n 'CRBv/5r7qbcQJPOgwQsyK4kv9Ly8g7YT1/vYBlR3cRsYQjccw5ceWUj2DrMVWhJ4\\n' +\n 'prf+E3Aa4vYmLLOUUvKnDQ1k3RGNu56V0tonsQbfsaM=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECjCCAvKgAwIBAgICEzUwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTAyMDUy\\n' +\n 'MjVaFw0yNDA4MjIxNzA4NTBaMIGXMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEoMCYGA1UEAwwfQW1h\\n' +\n 'em9uIFJEUyBjYS1jZW50cmFsLTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQAD\\n' +\n 'ggEPADCCAQoCggEBAOxHqdcPSA2uBjsCP4DLSlqSoPuQ/X1kkJLusVRKiQE2zayB\\n' +\n 'viuCBt4VB9Qsh2rW3iYGM+usDjltGnI1iUWA5KHcvHszSMkWAOYWLiMNKTlg6LCp\\n' +\n 'XnE89tvj5dIH6U8WlDvXLdjB/h30gW9JEX7S8supsBSci2GxEzb5mRdKaDuuF/0O\\n' +\n 'qvz4YE04pua3iZ9QwmMFuTAOYzD1M72aOpj+7Ac+YLMM61qOtU+AU6MndnQkKoQi\\n' +\n 'qmUN2A9IFaqHFzRlSdXwKCKUA4otzmz+/N3vFwjb5F4DSsbsrMfjeHMo6o/nb6Nh\\n' +\n 'YDb0VJxxPee6TxSuN7CQJ2FxMlFUezcoXqwqXD0CAwEAAaNmMGQwDgYDVR0PAQH/\\n' +\n 'BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDGGpon9WfIpsggE\\n' +\n 'CxHq8hZ7E2ESMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqG\\n' +\n 'SIb3DQEBCwUAA4IBAQAvpeQYEGZvoTVLgV9rd2+StPYykMsmFjWQcyn3dBTZRXC2\\n' +\n 'lKq7QhQczMAOhEaaN29ZprjQzsA2X/UauKzLR2Uyqc2qOeO9/YOl0H3qauo8C/W9\\n' +\n 'r8xqPbOCDLEXlOQ19fidXyyEPHEq5WFp8j+fTh+s8WOx2M7IuC0ANEetIZURYhSp\\n' +\n 'xl9XOPRCJxOhj7JdelhpweX0BJDNHeUFi0ClnFOws8oKQ7sQEv66d5ddxqqZ3NVv\\n' +\n 'RbCvCtEutQMOUMIuaygDlMn1anSM8N7Wndx8G6+Uy67AnhjGx7jw/0YPPxopEj6x\\n' +\n 'JXP8j0sJbcT9K/9/fPVLNT25RvQ/93T2+IQL4Ca2\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICYpgwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTExNzMx\\n' +\n 'NDhaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyBldS13ZXN0LTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAMk3YdSZ64iAYp6MyyKtYJtNzv7zFSnnNf6vv0FB4VnfITTMmOyZ\\n' +\n 'LXqKAT2ahZ00hXi34ewqJElgU6eUZT/QlzdIu359TEZyLVPwURflL6SWgdG01Q5X\\n' +\n 'O++7fSGcBRyIeuQWs9FJNIIqK8daF6qw0Rl5TXfu7P9dBc3zkgDXZm2DHmxGDD69\\n' +\n '7liQUiXzoE1q2Z9cA8+jirDioJxN9av8hQt12pskLQumhlArsMIhjhHRgF03HOh5\\n' +\n 'tvi+RCfihVOxELyIRTRpTNiIwAqfZxxTWFTgfn+gijTmd0/1DseAe82aYic8JbuS\\n' +\n 'EMbrDduAWsqrnJ4GPzxHKLXX0JasCUcWyMECAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFPLtsq1NrwJXO13C9eHt\\n' +\n 'sLY11AGwMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQAnWBKj5xV1A1mYd0kIgDdkjCwQkiKF5bjIbGkT3YEFFbXoJlSP\\n' +\n '0lZZ/hDaOHI8wbLT44SzOvPEEmWF9EE7SJzkvSdQrUAWR9FwDLaU427ALI3ngNHy\\n' +\n 'lGJ2hse1fvSRNbmg8Sc9GBv8oqNIBPVuw+AJzHTacZ1OkyLZrz1c1QvwvwN2a+Jd\\n' +\n 'vH0V0YIhv66llKcYDMUQJAQi4+8nbRxXWv6Gq3pvrFoorzsnkr42V3JpbhnYiK+9\\n' +\n 'nRKd4uWl62KRZjGkfMbmsqZpj2fdSWMY1UGyN1k+kDmCSWYdrTRDP0xjtIocwg+A\\n' +\n 'J116n4hV/5mbA0BaPiS2krtv17YAeHABZcvz\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECjCCAvKgAwIBAgICV2YwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTExOTM2\\n' +\n 'MjBaFw0yNDA4MjIxNzA4NTBaMIGXMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEoMCYGA1UEAwwfQW1h\\n' +\n 'em9uIFJEUyBldS1jZW50cmFsLTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQAD\\n' +\n 'ggEPADCCAQoCggEBAMEx54X2pHVv86APA0RWqxxRNmdkhAyp2R1cFWumKQRofoFv\\n' +\n 'n+SPXdkpIINpMuEIGJANozdiEz7SPsrAf8WHyD93j/ZxrdQftRcIGH41xasetKGl\\n' +\n 'I67uans8d+pgJgBKGb/Z+B5m+UsIuEVekpvgpwKtmmaLFC/NCGuSsJoFsRqoa6Gh\\n' +\n 'm34W6yJoY87UatddCqLY4IIXaBFsgK9Q/wYzYLbnWM6ZZvhJ52VMtdhcdzeTHNW0\\n' +\n '5LGuXJOF7Ahb4JkEhoo6TS2c0NxB4l4MBfBPgti+O7WjR3FfZHpt18A6Zkq6A2u6\\n' +\n 'D/oTSL6c9/3sAaFTFgMyL3wHb2YlW0BPiljZIqECAwEAAaNmMGQwDgYDVR0PAQH/\\n' +\n 'BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFOcAToAc6skWffJa\\n' +\n 'TnreaswAfrbcMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqG\\n' +\n 'SIb3DQEBCwUAA4IBAQA1d0Whc1QtspK496mFWfFEQNegLh0a9GWYlJm+Htcj5Nxt\\n' +\n 'DAIGXb+8xrtOZFHmYP7VLCT5Zd2C+XytqseK/+s07iAr0/EPF+O2qcyQWMN5KhgE\\n' +\n 'cXw2SwuP9FPV3i+YAm11PBVeenrmzuk9NrdHQ7TxU4v7VGhcsd2C++0EisrmquWH\\n' +\n 'mgIfmVDGxphwoES52cY6t3fbnXmTkvENvR+h3rj+fUiSz0aSo+XZUGHPgvuEKM/W\\n' +\n 'CBD9Smc9CBoBgvy7BgHRgRUmwtABZHFUIEjHI5rIr7ZvYn+6A0O6sogRfvVYtWFc\\n' +\n 'qpyrW1YX8mD0VlJ8fGKM3G+aCOsiiPKDV/Uafrm+\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECDCCAvCgAwIBAgICGAcwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTIxODE5\\n' +\n 'NDRaFw0yNDA4MjIxNzA4NTBaMIGVMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEmMCQGA1UEAwwdQW1h\\n' +\n 'em9uIFJEUyBldS1ub3J0aC0xIDIwMTkgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IB\\n' +\n 'DwAwggEKAoIBAQCiIYnhe4UNBbdBb/nQxl5giM0XoVHWNrYV5nB0YukA98+TPn9v\\n' +\n 'Aoj1RGYmtryjhrf01Kuv8SWO+Eom95L3zquoTFcE2gmxCfk7bp6qJJ3eHOJB+QUO\\n' +\n 'XsNRh76fwDzEF1yTeZWH49oeL2xO13EAx4PbZuZpZBttBM5zAxgZkqu4uWQczFEs\\n' +\n 'JXfla7z2fvWmGcTagX10O5C18XaFroV0ubvSyIi75ue9ykg/nlFAeB7O0Wxae88e\\n' +\n 'uhiBEFAuLYdqWnsg3459NfV8Yi1GnaitTym6VI3tHKIFiUvkSiy0DAlAGV2iiyJE\\n' +\n 'q+DsVEO4/hSINJEtII4TMtysOsYPpINqeEzRAgMBAAGjZjBkMA4GA1UdDwEB/wQE\\n' +\n 'AwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBRR0UpnbQyjnHChgmOc\\n' +\n 'hnlc0PogzTAfBgNVHSMEGDAWgBRzX2DYvMsDmPQrFzQuNlqmYP+8HzANBgkqhkiG\\n' +\n '9w0BAQsFAAOCAQEAKJD4xVzSf4zSGTBJrmamo86jl1NHQxXUApAZuBZEc8tqC6TI\\n' +\n 'T5CeoSr9CMuVC8grYyBjXblC4OsM5NMvmsrXl/u5C9dEwtBFjo8mm53rOOIm1fxl\\n' +\n 'I1oYB/9mtO9ANWjkykuLzWeBlqDT/i7ckaKwalhLODsRDO73vRhYNjsIUGloNsKe\\n' +\n 'pxw3dzHwAZx4upSdEVG4RGCZ1D0LJ4Gw40OfD69hfkDfRVVxKGrbEzqxXRvovmDc\\n' +\n 'tKLdYZO/6REoca36v4BlgIs1CbUXJGLSXUwtg7YXGLSVBJ/U0+22iGJmBSNcoyUN\\n' +\n 'cjPFD9JQEhDDIYYKSGzIYpvslvGc4T5ISXFiuQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICZIEwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTIyMTMy\\n' +\n 'MzJaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyBldS13ZXN0LTIgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBALGiwqjiF7xIjT0Sx7zB3764K2T2a1DHnAxEOr+/EIftWKxWzT3u\\n' +\n 'PFwS2eEZcnKqSdRQ+vRzonLBeNLO4z8aLjQnNbkizZMBuXGm4BqRm1Kgq3nlLDQn\\n' +\n '7YqdijOq54SpShvR/8zsO4sgMDMmHIYAJJOJqBdaus2smRt0NobIKc0liy7759KB\\n' +\n '6kmQ47Gg+kfIwxrQA5zlvPLeQImxSoPi9LdbRoKvu7Iot7SOa+jGhVBh3VdqndJX\\n' +\n '7tm/saj4NE375csmMETFLAOXjat7zViMRwVorX4V6AzEg1vkzxXpA9N7qywWIT5Y\\n' +\n 'fYaq5M8i6vvLg0CzrH9fHORtnkdjdu1y+0MCAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFFOhOx1yt3Z7mvGB9jBv\\n' +\n '2ymdZwiOMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQBehqY36UGDvPVU9+vtaYGr38dBbp+LzkjZzHwKT1XJSSUc2wqM\\n' +\n 'hnCIQKilonrTIvP1vmkQi8qHPvDRtBZKqvz/AErW/ZwQdZzqYNFd+BmOXaeZWV0Q\\n' +\n 'oHtDzXmcwtP8aUQpxN0e1xkWb1E80qoy+0uuRqb/50b/R4Q5qqSfJhkn6z8nwB10\\n' +\n '7RjLtJPrK8igxdpr3tGUzfAOyiPrIDncY7UJaL84GFp7WWAkH0WG3H8Y8DRcRXOU\\n' +\n 'mqDxDLUP3rNuow3jnGxiUY+gGX5OqaZg4f4P6QzOSmeQYs6nLpH0PiN00+oS1BbD\\n' +\n 'bpWdZEttILPI+vAYkU4QuBKKDjJL6HbSd+cn\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECDCCAvCgAwIBAgIDAIVCMA0GCSqGSIb3DQEBCwUAMIGPMQswCQYDVQQGEwJV\\n' +\n 'UzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UE\\n' +\n 'CgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJE\\n' +\n 'UzEgMB4GA1UEAwwXQW1hem9uIFJEUyBSb290IDIwMTkgQ0EwHhcNMTkwOTEzMTcw\\n' +\n 'NjQxWhcNMjQwODIyMTcwODUwWjCBlDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldh\\n' +\n 'c2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoMGUFtYXpvbiBXZWIg\\n' +\n 'U2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMxJTAjBgNVBAMMHEFt\\n' +\n 'YXpvbiBSRFMgdXMtZWFzdC0yIDIwMTkgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IB\\n' +\n 'DwAwggEKAoIBAQDE+T2xYjUbxOp+pv+gRA3FO24+1zCWgXTDF1DHrh1lsPg5k7ht\\n' +\n '2KPYzNc+Vg4E+jgPiW0BQnA6jStX5EqVh8BU60zELlxMNvpg4KumniMCZ3krtMUC\\n' +\n 'au1NF9rM7HBh+O+DYMBLK5eSIVt6lZosOb7bCi3V6wMLA8YqWSWqabkxwN4w0vXI\\n' +\n '8lu5uXXFRemHnlNf+yA/4YtN4uaAyd0ami9+klwdkZfkrDOaiy59haOeBGL8EB/c\\n' +\n 'dbJJlguHH5CpCscs3RKtOOjEonXnKXldxarFdkMzi+aIIjQ8GyUOSAXHtQHb3gZ4\\n' +\n 'nS6Ey0CMlwkB8vUObZU9fnjKJcL5QCQqOfwvAgMBAAGjZjBkMA4GA1UdDwEB/wQE\\n' +\n 'AwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBQUPuRHohPxx4VjykmH\\n' +\n '6usGrLL1ETAfBgNVHSMEGDAWgBRzX2DYvMsDmPQrFzQuNlqmYP+8HzANBgkqhkiG\\n' +\n '9w0BAQsFAAOCAQEAUdR9Vb3y33Yj6X6KGtuthZ08SwjImVQPtknzpajNE5jOJAh8\\n' +\n 'quvQnU9nlnMO85fVDU1Dz3lLHGJ/YG1pt1Cqq2QQ200JcWCvBRgdvH6MjHoDQpqZ\\n' +\n 'HvQ3vLgOGqCLNQKFuet9BdpsHzsctKvCVaeBqbGpeCtt3Hh/26tgx0rorPLw90A2\\n' +\n 'V8QSkZJjlcKkLa58N5CMM8Xz8KLWg3MZeT4DmlUXVCukqK2RGuP2L+aME8dOxqNv\\n' +\n 'OnOz1zrL5mR2iJoDpk8+VE/eBDmJX40IJk6jBjWoxAO/RXq+vBozuF5YHN1ujE92\\n' +\n 'tO8HItgTp37XT8bJBAiAnt5mxw+NLSqtxk2QdQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICY4kwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTMyMDEx\\n' +\n 'NDJaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1zb3V0aGVhc3QtMSAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEAr5u9OuLL/OF/fBNUX2kINJLzFl4DnmrhnLuSeSnBPgbb\\n' +\n 'qddjf5EFFJBfv7IYiIWEFPDbDG5hoBwgMup5bZDbas+ZTJTotnnxVJTQ6wlhTmns\\n' +\n 'eHECcg2pqGIKGrxZfbQhlj08/4nNAPvyYCTS0bEcmQ1emuDPyvJBYDDLDU6AbCB5\\n' +\n '6Z7YKFQPTiCBblvvNzchjLWF9IpkqiTsPHiEt21sAdABxj9ityStV3ja/W9BfgxH\\n' +\n 'wzABSTAQT6FbDwmQMo7dcFOPRX+hewQSic2Rn1XYjmNYzgEHisdUsH7eeXREAcTw\\n' +\n '61TRvaLH8AiOWBnTEJXPAe6wYfrcSd1pD0MXpoB62wIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUytwMiomQOgX5\\n' +\n 'Ichd+2lDWRUhkikwHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBACf6lRDpfCD7BFRqiWM45hqIzffIaysmVfr+Jr+fBTjP\\n' +\n 'uYe/ba1omSrNGG23bOcT9LJ8hkQJ9d+FxUwYyICQNWOy6ejicm4z0C3VhphbTPqj\\n' +\n 'yjpt9nG56IAcV8BcRJh4o/2IfLNzC/dVuYJV8wj7XzwlvjysenwdrJCoLadkTr1h\\n' +\n 'eIdG6Le07sB9IxrGJL9e04afk37h7c8ESGSE4E+oS4JQEi3ATq8ne1B9DQ9SasXi\\n' +\n 'IRmhNAaISDzOPdyLXi9N9V9Lwe/DHcja7hgLGYx3UqfjhLhOKwp8HtoZORixAmOI\\n' +\n 'HfILgNmwyugAbuZoCazSKKBhQ0wgO0WZ66ZKTMG8Oho=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICUYkwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTYxODIx\\n' +\n 'MTVaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyB1cy13ZXN0LTIgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBANCEZBZyu6yJQFZBJmSUZfSZd3Ui2gitczMKC4FLr0QzkbxY+cLa\\n' +\n 'uVONIOrPt4Rwi+3h/UdnUg917xao3S53XDf1TDMFEYp4U8EFPXqCn/GXBIWlU86P\\n' +\n 'PvBN+gzw3nS+aco7WXb+woTouvFVkk8FGU7J532llW8o/9ydQyDIMtdIkKTuMfho\\n' +\n 'OiNHSaNc+QXQ32TgvM9A/6q7ksUoNXGCP8hDOkSZ/YOLiI5TcdLh/aWj00ziL5bj\\n' +\n 'pvytiMZkilnc9dLY9QhRNr0vGqL0xjmWdoEXz9/OwjmCihHqJq+20MJPsvFm7D6a\\n' +\n '2NKybR9U+ddrjb8/iyLOjURUZnj5O+2+OPcCAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFEBxMBdv81xuzqcK5TVu\\n' +\n 'pHj+Aor8MB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQBZkfiVqGoJjBI37aTlLOSjLcjI75L5wBrwO39q+B4cwcmpj58P\\n' +\n '3sivv+jhYfAGEbQnGRzjuFoyPzWnZ1DesRExX+wrmHsLLQbF2kVjLZhEJMHF9eB7\\n' +\n 'GZlTPdTzHErcnuXkwA/OqyXMpj9aghcQFuhCNguEfnROY9sAoK2PTfnTz9NJHL+Q\\n' +\n 'UpDLEJEUfc0GZMVWYhahc0x38ZnSY2SKacIPECQrTI0KpqZv/P+ijCEcMD9xmYEb\\n' +\n 'jL4en+XKS1uJpw5fIU5Sj0MxhdGstH6S84iAE5J3GM3XHklGSFwwqPYvuTXvANH6\\n' +\n 'uboynxRgSae59jIlAK6Jrr6GWMwQRbgcaAlW\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICEkYwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTYxOTUz\\n' +\n 'NDdaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1zb3V0aGVhc3QtMiAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEAufodI2Flker8q7PXZG0P0vmFSlhQDw907A6eJuF/WeMo\\n' +\n 'GHnll3b4S6nC3oRS3nGeRMHbyU2KKXDwXNb3Mheu+ox+n5eb/BJ17eoj9HbQR1cd\\n' +\n 'gEkIciiAltf8gpMMQH4anP7TD+HNFlZnP7ii3geEJB2GGXSxgSWvUzH4etL67Zmn\\n' +\n 'TpGDWQMB0T8lK2ziLCMF4XAC/8xDELN/buHCNuhDpxpPebhct0T+f6Arzsiswt2j\\n' +\n '7OeNeLLZwIZvVwAKF7zUFjC6m7/VmTQC8nidVY559D6l0UhhU0Co/txgq3HVsMOH\\n' +\n 'PbxmQUwJEKAzQXoIi+4uZzHFZrvov/nDTNJUhC6DqwIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUwaZpaCme+EiV\\n' +\n 'M5gcjeHZSTgOn4owHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBAAR6a2meCZuXO2TF9bGqKGtZmaah4pH2ETcEVUjkvXVz\\n' +\n 'sl+ZKbYjrun+VkcMGGKLUjS812e7eDF726ptoku9/PZZIxlJB0isC/0OyixI8N4M\\n' +\n 'NsEyvp52XN9QundTjkl362bomPnHAApeU0mRbMDRR2JdT70u6yAzGLGsUwMkoNnw\\n' +\n '1VR4XKhXHYGWo7KMvFrZ1KcjWhubxLHxZWXRulPVtGmyWg/MvE6KF+2XMLhojhUL\\n' +\n '+9jB3Fpn53s6KMx5tVq1x8PukHmowcZuAF8k+W4gk8Y68wIwynrdZrKRyRv6CVtR\\n' +\n 'FZ8DeJgoNZT3y/GT254VqMxxfuy2Ccb/RInd16tEvVk=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICOYIwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTcyMDA1\\n' +\n 'MjlaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1ub3J0aGVhc3QtMyAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEA4dMak8W+XW8y/2F6nRiytFiA4XLwePadqWebGtlIgyCS\\n' +\n 'kbug8Jv5w7nlMkuxOxoUeD4WhI6A9EkAn3r0REM/2f0aYnd2KPxeqS2MrtdxxHw1\\n' +\n 'xoOxk2x0piNSlOz6yog1idsKR5Wurf94fvM9FdTrMYPPrDabbGqiBMsZZmoHLvA3\\n' +\n 'Z+57HEV2tU0Ei3vWeGIqnNjIekS+E06KhASxrkNU5vi611UsnYZlSi0VtJsH4UGV\\n' +\n 'LhnHl53aZL0YFO5mn/fzuNG/51qgk/6EFMMhaWInXX49Dia9FnnuWXwVwi6uX1Wn\\n' +\n '7kjoHi5VtmC8ZlGEHroxX2DxEr6bhJTEpcLMnoQMqwIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUsUI5Cb3SWB8+\\n' +\n 'gv1YLN/ABPMdxSAwHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBAJAF3E9PM1uzVL8YNdzb6fwJrxxqI2shvaMVmC1mXS+w\\n' +\n 'G0zh4v2hBZOf91l1EO0rwFD7+fxoI6hzQfMxIczh875T6vUXePKVOCOKI5wCrDad\\n' +\n 'zQbVqbFbdhsBjF4aUilOdtw2qjjs9JwPuB0VXN4/jY7m21oKEOcnpe36+7OiSPjN\\n' +\n 'xngYewCXKrSRqoj3mw+0w/+exYj3Wsush7uFssX18av78G+ehKPIVDXptOCP/N7W\\n' +\n '8iKVNeQ2QGTnu2fzWsGUSvMGyM7yqT+h1ILaT//yQS8er511aHMLc142bD4D9VSy\\n' +\n 'DgactwPDTShK/PXqhvNey9v/sKXm4XatZvwcc8KYlW4=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICcEUwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTgxNjU2\\n' +\n 'MjBaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1ub3J0aGVhc3QtMSAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEAndtkldmHtk4TVQAyqhAvtEHSMb6pLhyKrIFved1WO3S7\\n' +\n '+I+bWwv9b2W/ljJxLq9kdT43bhvzonNtI4a1LAohS6bqyirmk8sFfsWT3akb+4Sx\\n' +\n '1sjc8Ovc9eqIWJCrUiSvv7+cS7ZTA9AgM1PxvHcsqrcUXiK3Jd/Dax9jdZE1e15s\\n' +\n 'BEhb2OEPE+tClFZ+soj8h8Pl2Clo5OAppEzYI4LmFKtp1X/BOf62k4jviXuCSst3\\n' +\n 'UnRJzE/CXtjmN6oZySVWSe0rQYuyqRl6//9nK40cfGKyxVnimB8XrrcxUN743Vud\\n' +\n 'QQVU0Esm8OVTX013mXWQXJHP2c0aKkog8LOga0vobQIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQULmoOS1mFSjj+\\n' +\n 'snUPx4DgS3SkLFYwHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBAAkVL2P1M2/G9GM3DANVAqYOwmX0Xk58YBHQu6iiQg4j\\n' +\n 'b4Ky/qsZIsgT7YBsZA4AOcPKQFgGTWhe9pvhmXqoN3RYltN8Vn7TbUm/ZVDoMsrM\\n' +\n 'gwv0+TKxW1/u7s8cXYfHPiTzVSJuOogHx99kBW6b2f99GbP7O1Sv3sLq4j6lVvBX\\n' +\n 'Fiacf5LAWC925nvlTzLlBgIc3O9xDtFeAGtZcEtxZJ4fnGXiqEnN4539+nqzIyYq\\n' +\n 'nvlgCzyvcfRAxwltrJHuuRu6Maw5AGcd2Y0saMhqOVq9KYKFKuD/927BTrbd2JVf\\n' +\n '2sGWyuPZPCk3gq+5pCjbD0c6DkhcMGI6WwxvM5V/zSM=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICJDQwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTgxNzAz\\n' +\n 'MTVaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyBldS13ZXN0LTMgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAL9bL7KE0n02DLVtlZ2PL+g/BuHpMYFq2JnE2RgompGurDIZdjmh\\n' +\n '1pxfL3nT+QIVMubuAOy8InRfkRxfpxyjKYdfLJTPJG+jDVL+wDcPpACFVqoV7Prg\\n' +\n 'pVYEV0lc5aoYw4bSeYFhdzgim6F8iyjoPnObjll9mo4XsHzSoqJLCd0QC+VG9Fw2\\n' +\n 'q+GDRZrLRmVM2oNGDRbGpGIFg77aRxRapFZa8SnUgs2AqzuzKiprVH5i0S0M6dWr\\n' +\n 'i+kk5epmTtkiDHceX+dP/0R1NcnkCPoQ9TglyXyPdUdTPPRfKCq12dftqll+u4mV\\n' +\n 'ARdN6WFjovxax8EAP2OAUTi1afY+1JFMj+sCAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFLfhrbrO5exkCVgxW0x3\\n' +\n 'Y2mAi8lNMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQAigQ5VBNGyw+OZFXwxeJEAUYaXVoP/qrhTOJ6mCE2DXUVEoJeV\\n' +\n 'SxScy/TlFA9tJXqmit8JH8VQ/xDL4ubBfeMFAIAo4WzNWDVoeVMqphVEcDWBHsI1\\n' +\n 'AETWzfsapRS9yQekOMmxg63d/nV8xewIl8aNVTHdHYXMqhhik47VrmaVEok1UQb3\\n' +\n 'O971RadLXIEbVd9tjY5bMEHm89JsZDnDEw1hQXBb67Elu64OOxoKaHBgUH8AZn/2\\n' +\n 'zFsL1ynNUjOhCSAA15pgd1vjwc0YsBbAEBPcHBWYBEyME6NLNarjOzBl4FMtATSF\\n' +\n 'wWCKRGkvqN8oxYhwR2jf2rR5Mu4DWkK5Q8Ep\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICJVUwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTkxODE2\\n' +\n 'NTNaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyB1cy1lYXN0LTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAM3i/k2u6cqbMdcISGRvh+m+L0yaSIoOXjtpNEoIftAipTUYoMhL\\n' +\n 'InXGlQBVA4shkekxp1N7HXe1Y/iMaPEyb3n+16pf3vdjKl7kaSkIhjdUz3oVUEYt\\n' +\n 'i8Z/XeJJ9H2aEGuiZh3kHixQcZczn8cg3dA9aeeyLSEnTkl/npzLf//669Ammyhs\\n' +\n 'XcAo58yvT0D4E0D/EEHf2N7HRX7j/TlyWvw/39SW0usiCrHPKDLxByLojxLdHzso\\n' +\n 'QIp/S04m+eWn6rmD+uUiRteN1hI5ncQiA3wo4G37mHnUEKo6TtTUh+sd/ku6a8HK\\n' +\n 'glMBcgqudDI90s1OpuIAWmuWpY//8xEG2YECAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFPqhoWZcrVY9mU7tuemR\\n' +\n 'RBnQIj1jMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQB6zOLZ+YINEs72heHIWlPZ8c6WY8MDU+Be5w1M+BK2kpcVhCUK\\n' +\n 'PJO4nMXpgamEX8DIiaO7emsunwJzMSvavSPRnxXXTKIc0i/g1EbiDjnYX9d85DkC\\n' +\n 'E1LaAUCmCZBVi9fIe0H2r9whIh4uLWZA41oMnJx/MOmo3XyMfQoWcqaSFlMqfZM4\\n' +\n '0rNoB/tdHLNuV4eIdaw2mlHxdWDtF4oH+HFm+2cVBUVC1jXKrFv/euRVtsTT+A6i\\n' +\n 'h2XBHKxQ1Y4HgAn0jACP2QSPEmuoQEIa57bEKEcZsBR8SDY6ZdTd2HLRIApcCOSF\\n' +\n 'MRM8CKLeF658I0XgF8D5EsYoKPsA+74Z+jDH\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF\\n' +\n 'ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\\n' +\n 'b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL\\n' +\n 'MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv\\n' +\n 'b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj\\n' +\n 'ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM\\n' +\n '9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw\\n' +\n 'IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6\\n' +\n 'VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L\\n' +\n '93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm\\n' +\n 'jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC\\n' +\n 'AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA\\n' +\n 'A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI\\n' +\n 'U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs\\n' +\n 'N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv\\n' +\n 'o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU\\n' +\n '5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy\\n' +\n 'rqXRfboQnoZsG4q5WTP468SQvvG5\\n' +\n '-----END CERTIFICATE-----\\n'\n ]\n};\n","'use strict';\r\n\r\n// based on code from Brian White @mscdex mariasql library - https://github.com/mscdex/node-mariasql/blob/master/lib/Client.js#L272-L332\r\n// License: https://github.com/mscdex/node-mariasql/blob/master/LICENSE\r\n\r\nconst RE_PARAM = /(?:\\?)|(?::(\\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g,\r\nDQUOTE = 34,\r\nSQUOTE = 39,\r\nBSLASH = 92;\r\n\r\nfunction parse(query) {\r\n let ppos = RE_PARAM.exec(query);\r\n let curpos = 0;\r\n let start = 0;\r\n let end;\r\n const parts = [];\r\n let inQuote = false;\r\n let escape = false;\r\n let qchr;\r\n const tokens = [];\r\n let qcnt = 0;\r\n let lastTokenEndPos = 0;\r\n let i;\r\n\r\n if (ppos) {\r\n do {\r\n for (i=curpos,end=ppos.index; i {};\r\n\r\nfunction createCompiler(config) {\r\n if (!config)\r\n config = {};\r\n if (!config.placeholder) {\r\n config.placeholder = '?';\r\n }\r\n let ncache = 100;\r\n let cache;\r\n if (typeof config.cache === 'number') {\r\n ncache = config.cache;\r\n }\r\n if (typeof config.cache === 'object') {\r\n cache = config.cache;\r\n }\r\n if (config.cache !== false && !cache) {\r\n cache = require('lru-cache')({ max: ncache, dispose: EMPTY_LRU_FN });\r\n }\r\n\r\n function toArrayParams(tree, params) {\r\n const arr = [];\r\n if (tree.length == 1) {\r\n return [tree[0], []];\r\n }\r\n\r\n if (typeof params == 'undefined')\r\n throw new Error('Named query contains placeholders, but parameters object is undefined');\r\n\r\n const tokens = tree[1];\r\n for (let i=0; i < tokens.length; ++i) {\r\n arr.push(params[tokens[i]]);\r\n }\r\n return [tree[0], arr];\r\n }\r\n\r\n function noTailingSemicolon(s) {\r\n if (s.slice(-1) == ':') {\r\n return s.slice(0, -1);\r\n }\r\n return s;\r\n }\r\n\r\n function join(tree) {\r\n if (tree.length == 1) {\r\n return tree;\r\n }\r\n\r\n let unnamed = noTailingSemicolon(tree[0][0]);\r\n for (let i=1; i < tree[0].length; ++i) {\r\n if (tree[0][i-1].slice(-1) == ':') {\r\n unnamed += config.placeholder;\r\n }\r\n unnamed += config.placeholder;\r\n unnamed += noTailingSemicolon(tree[0][i]);\r\n }\r\n\r\n const last = tree[0][tree[0].length -1];\r\n if (tree[0].length == tree[1].length) {\r\n if (last.slice(-1) == ':') {\r\n unnamed += config.placeholder;\r\n }\r\n unnamed += config.placeholder;\r\n }\r\n return [unnamed, tree[1]];\r\n }\r\n\r\n function compile(query, paramsObj) {\r\n let tree;\r\n if (cache && (tree = cache.get(query))) {\r\n return toArrayParams(tree, paramsObj)\r\n }\r\n tree = join(parse(query));\r\n if(cache) {\r\n cache.set(query, tree);\r\n }\r\n return toArrayParams(tree, paramsObj);\r\n }\r\n\r\n compile.parse = parse;\r\n return compile;\r\n}\r\n\r\n// named :one :two to postgres-style numbered $1 $2 $3\r\nfunction toNumbered(q, params) {\r\n const tree = parse(q);\r\n const paramsArr = [];\r\n if (tree.length == 1) {\r\n return [tree[0], paramsArr];\r\n }\r\n\r\n const pIndexes = {};\r\n let pLastIndex = 0;\r\n let qs = '';\r\n let varIndex;\r\n const varNames = [];\r\n for (let i=0; i < tree[0].length; ++i) {\r\n varIndex = pIndexes[tree[1][i]];\r\n if (!varIndex) {\r\n varIndex = ++pLastIndex;\r\n pIndexes[tree[1][i]] = varIndex;\r\n }\r\n if (tree[1][i]) {\r\n varNames[varIndex - 1] = tree[1][i];\r\n qs += tree[0][i] + '$' + varIndex;\r\n } else {\r\n qs += tree[0][i];\r\n }\r\n }\r\n return [qs, varNames.map(n => params[n])];\r\n}\r\n\r\nmodule.exports = createCompiler;\r\nmodule.exports.toNumbered = toNumbered;\r\n","'use strict'\n\nmodule.exports = LRUCache\n\n// This will be a proper iterable 'Map' in engines that support it,\n// or a fakey-fake PseudoMap in older versions.\nvar Map = require('pseudomap')\nvar util = require('util')\n\n// A linked list to keep track of recently-used-ness\nvar Yallist = require('yallist')\n\n// use symbols if possible, otherwise just _props\nvar hasSymbol = typeof Symbol === 'function' && process.env._nodeLRUCacheForceNoSymbol !== '1'\nvar makeSymbol\nif (hasSymbol) {\n makeSymbol = function (key) {\n return Symbol(key)\n }\n} else {\n makeSymbol = function (key) {\n return '_' + key\n }\n}\n\nvar MAX = makeSymbol('max')\nvar LENGTH = makeSymbol('length')\nvar LENGTH_CALCULATOR = makeSymbol('lengthCalculator')\nvar ALLOW_STALE = makeSymbol('allowStale')\nvar MAX_AGE = makeSymbol('maxAge')\nvar DISPOSE = makeSymbol('dispose')\nvar NO_DISPOSE_ON_SET = makeSymbol('noDisposeOnSet')\nvar LRU_LIST = makeSymbol('lruList')\nvar CACHE = makeSymbol('cache')\n\nfunction naiveLength () { return 1 }\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nfunction LRUCache (options) {\n if (!(this instanceof LRUCache)) {\n return new LRUCache(options)\n }\n\n if (typeof options === 'number') {\n options = { max: options }\n }\n\n if (!options) {\n options = {}\n }\n\n var max = this[MAX] = options.max\n // Kind of weird to have a default max of Infinity, but oh well.\n if (!max ||\n !(typeof max === 'number') ||\n max <= 0) {\n this[MAX] = Infinity\n }\n\n var lc = options.length || naiveLength\n if (typeof lc !== 'function') {\n lc = naiveLength\n }\n this[LENGTH_CALCULATOR] = lc\n\n this[ALLOW_STALE] = options.stale || false\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this.reset()\n}\n\n// resize the cache when the max changes.\nObject.defineProperty(LRUCache.prototype, 'max', {\n set: function (mL) {\n if (!mL || !(typeof mL === 'number') || mL <= 0) {\n mL = Infinity\n }\n this[MAX] = mL\n trim(this)\n },\n get: function () {\n return this[MAX]\n },\n enumerable: true\n})\n\nObject.defineProperty(LRUCache.prototype, 'allowStale', {\n set: function (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n },\n get: function () {\n return this[ALLOW_STALE]\n },\n enumerable: true\n})\n\nObject.defineProperty(LRUCache.prototype, 'maxAge', {\n set: function (mA) {\n if (!mA || !(typeof mA === 'number') || mA < 0) {\n mA = 0\n }\n this[MAX_AGE] = mA\n trim(this)\n },\n get: function () {\n return this[MAX_AGE]\n },\n enumerable: true\n})\n\n// resize the cache when the lengthCalculator changes.\nObject.defineProperty(LRUCache.prototype, 'lengthCalculator', {\n set: function (lC) {\n if (typeof lC !== 'function') {\n lC = naiveLength\n }\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(function (hit) {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n }, this)\n }\n trim(this)\n },\n get: function () { return this[LENGTH_CALCULATOR] },\n enumerable: true\n})\n\nObject.defineProperty(LRUCache.prototype, 'length', {\n get: function () { return this[LENGTH] },\n enumerable: true\n})\n\nObject.defineProperty(LRUCache.prototype, 'itemCount', {\n get: function () { return this[LRU_LIST].length },\n enumerable: true\n})\n\nLRUCache.prototype.rforEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this[LRU_LIST].tail; walker !== null;) {\n var prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n}\n\nfunction forEachStep (self, fn, node, thisp) {\n var hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE]) {\n hit = undefined\n }\n }\n if (hit) {\n fn.call(thisp, hit.value, hit.key, self)\n }\n}\n\nLRUCache.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this[LRU_LIST].head; walker !== null;) {\n var next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n}\n\nLRUCache.prototype.keys = function () {\n return this[LRU_LIST].toArray().map(function (k) {\n return k.key\n }, this)\n}\n\nLRUCache.prototype.values = function () {\n return this[LRU_LIST].toArray().map(function (k) {\n return k.value\n }, this)\n}\n\nLRUCache.prototype.reset = function () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(function (hit) {\n this[DISPOSE](hit.key, hit.value)\n }, this)\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n}\n\nLRUCache.prototype.dump = function () {\n return this[LRU_LIST].map(function (hit) {\n if (!isStale(this, hit)) {\n return {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }\n }\n }, this).toArray().filter(function (h) {\n return h\n })\n}\n\nLRUCache.prototype.dumpLru = function () {\n return this[LRU_LIST]\n}\n\n/* istanbul ignore next */\nLRUCache.prototype.inspect = function (n, opts) {\n var str = 'LRUCache {'\n var extras = false\n\n var as = this[ALLOW_STALE]\n if (as) {\n str += '\\n allowStale: true'\n extras = true\n }\n\n var max = this[MAX]\n if (max && max !== Infinity) {\n if (extras) {\n str += ','\n }\n str += '\\n max: ' + util.inspect(max, opts)\n extras = true\n }\n\n var maxAge = this[MAX_AGE]\n if (maxAge) {\n if (extras) {\n str += ','\n }\n str += '\\n maxAge: ' + util.inspect(maxAge, opts)\n extras = true\n }\n\n var lc = this[LENGTH_CALCULATOR]\n if (lc && lc !== naiveLength) {\n if (extras) {\n str += ','\n }\n str += '\\n length: ' + util.inspect(this[LENGTH], opts)\n extras = true\n }\n\n var didFirst = false\n this[LRU_LIST].forEach(function (item) {\n if (didFirst) {\n str += ',\\n '\n } else {\n if (extras) {\n str += ',\\n'\n }\n didFirst = true\n str += '\\n '\n }\n var key = util.inspect(item.key).split('\\n').join('\\n ')\n var val = { value: item.value }\n if (item.maxAge !== maxAge) {\n val.maxAge = item.maxAge\n }\n if (lc !== naiveLength) {\n val.length = item.length\n }\n if (isStale(this, item)) {\n val.stale = true\n }\n\n val = util.inspect(val, opts).split('\\n').join('\\n ')\n str += key + ' => ' + val\n })\n\n if (didFirst || extras) {\n str += '\\n'\n }\n str += '}'\n\n return str\n}\n\nLRUCache.prototype.set = function (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n var now = maxAge ? Date.now() : 0\n var len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n var node = this[CACHE].get(key)\n var item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET]) {\n this[DISPOSE](key, item.value)\n }\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n var hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE]) {\n this[DISPOSE](key, value)\n }\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n}\n\nLRUCache.prototype.has = function (key) {\n if (!this[CACHE].has(key)) return false\n var hit = this[CACHE].get(key).value\n if (isStale(this, hit)) {\n return false\n }\n return true\n}\n\nLRUCache.prototype.get = function (key) {\n return get(this, key, true)\n}\n\nLRUCache.prototype.peek = function (key) {\n return get(this, key, false)\n}\n\nLRUCache.prototype.pop = function () {\n var node = this[LRU_LIST].tail\n if (!node) return null\n del(this, node)\n return node.value\n}\n\nLRUCache.prototype.del = function (key) {\n del(this, this[CACHE].get(key))\n}\n\nLRUCache.prototype.load = function (arr) {\n // reset the cache\n this.reset()\n\n var now = Date.now()\n // A previous serialized cache has the most recent items first\n for (var l = arr.length - 1; l >= 0; l--) {\n var hit = arr[l]\n var expiresAt = hit.e || 0\n if (expiresAt === 0) {\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n } else {\n var maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n}\n\nLRUCache.prototype.prune = function () {\n var self = this\n this[CACHE].forEach(function (value, key) {\n get(self, key, false)\n })\n}\n\nfunction get (self, key, doUse) {\n var node = self[CACHE].get(key)\n if (node) {\n var hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE]) hit = undefined\n } else {\n if (doUse) {\n self[LRU_LIST].unshiftNode(node)\n }\n }\n if (hit) hit = hit.value\n }\n return hit\n}\n\nfunction isStale (self, hit) {\n if (!hit || (!hit.maxAge && !self[MAX_AGE])) {\n return false\n }\n var stale = false\n var diff = Date.now() - hit.now\n if (hit.maxAge) {\n stale = diff > hit.maxAge\n } else {\n stale = self[MAX_AGE] && (diff > self[MAX_AGE])\n }\n return stale\n}\n\nfunction trim (self) {\n if (self[LENGTH] > self[MAX]) {\n for (var walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n var prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nfunction del (self, node) {\n if (node) {\n var hit = node.value\n if (self[DISPOSE]) {\n self[DISPOSE](hit.key, hit.value)\n }\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\n// classy, since V8 prefers predictable objects.\nfunction Entry (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n}\n","if (process.env.npm_package_name === 'pseudomap' &&\n process.env.npm_lifecycle_script === 'test')\n process.env.TEST_PSEUDOMAP = 'true'\n\nif (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) {\n module.exports = Map\n} else {\n module.exports = require('./pseudomap')\n}\n","var hasOwnProperty = Object.prototype.hasOwnProperty\n\nmodule.exports = PseudoMap\n\nfunction PseudoMap (set) {\n if (!(this instanceof PseudoMap)) // whyyyyyyy\n throw new TypeError(\"Constructor PseudoMap requires 'new'\")\n\n this.clear()\n\n if (set) {\n if ((set instanceof PseudoMap) ||\n (typeof Map === 'function' && set instanceof Map))\n set.forEach(function (value, key) {\n this.set(key, value)\n }, this)\n else if (Array.isArray(set))\n set.forEach(function (kv) {\n this.set(kv[0], kv[1])\n }, this)\n else\n throw new TypeError('invalid argument')\n }\n}\n\nPseudoMap.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n Object.keys(this._data).forEach(function (k) {\n if (k !== 'size')\n fn.call(thisp, this._data[k].value, this._data[k].key)\n }, this)\n}\n\nPseudoMap.prototype.has = function (k) {\n return !!find(this._data, k)\n}\n\nPseudoMap.prototype.get = function (k) {\n var res = find(this._data, k)\n return res && res.value\n}\n\nPseudoMap.prototype.set = function (k, v) {\n set(this._data, k, v)\n}\n\nPseudoMap.prototype.delete = function (k) {\n var res = find(this._data, k)\n if (res) {\n delete this._data[res._index]\n this._data.size--\n }\n}\n\nPseudoMap.prototype.clear = function () {\n var data = Object.create(null)\n data.size = 0\n\n Object.defineProperty(this, '_data', {\n value: data,\n enumerable: false,\n configurable: true,\n writable: false\n })\n}\n\nObject.defineProperty(PseudoMap.prototype, 'size', {\n get: function () {\n return this._data.size\n },\n set: function (n) {},\n enumerable: true,\n configurable: true\n})\n\nPseudoMap.prototype.values =\nPseudoMap.prototype.keys =\nPseudoMap.prototype.entries = function () {\n throw new Error('iterators are not implemented in this version')\n}\n\n// Either identical, or both NaN\nfunction same (a, b) {\n return a === b || a !== a && b !== b\n}\n\nfunction Entry (k, v, i) {\n this.key = k\n this.value = v\n this._index = i\n}\n\nfunction find (data, k) {\n for (var i = 0, s = '_' + k, key = s;\n hasOwnProperty.call(data, key);\n key = s + i++) {\n if (same(data[key].key, k))\n return data[key]\n }\n}\n\nfunction set (data, k, v) {\n for (var i = 0, s = '_' + k, key = s;\n hasOwnProperty.call(data, key);\n key = s + i++) {\n if (same(data[key].key, k)) {\n data[key].value = v\n return\n }\n }\n data.size++\n data[key] = new Entry(k, v, key)\n}\n","module.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n","'use strict';\n\nconst net = require('net');\nconst EventEmitter = require('events').EventEmitter;\n\nconst Connection = require('./connection');\nconst ConnectionConfig = require('./connection_config');\n\n// TODO: inherit Server from net.Server\nclass Server extends EventEmitter {\n constructor() {\n super();\n this.connections = [];\n this._server = net.createServer(this._handleConnection.bind(this));\n }\n\n _handleConnection(socket) {\n const connectionConfig = new ConnectionConfig({\n stream: socket,\n isServer: true\n });\n const connection = new Connection({ config: connectionConfig });\n this.emit('connection', connection);\n }\n\n listen(port) {\n this._port = port;\n this._server.listen.apply(this._server, arguments);\n return this;\n }\n\n close(cb) {\n this._server.close(cb);\n }\n}\n\nmodule.exports = Server;\n","export const CONNECTION_STRING = 'mysql_connection_string';\ninterface Map {\n [key: string]: string;\n}\n\n/**\n * parse the connection string from the format server=127.0.0.1;database=es_extended;userid=user;password=pass\n * @param connectionString - mysql_connection_string value\n */\nexport function parseSemiColonFormat(connectionString: string): Map {\n const parts = connectionString\n .replace(/(?:host(?:name)|ip|server|data\\s?source|addr(?:ess)?)=/gi, 'host=')\n .replace(/(?:user\\s?(?:id|name)?|uid)=/gi, 'user=')\n .replace(/(?:pwd|pass)=/gi, 'password=')\n .replace(/(?:db)=/gi, 'database=')\n .split(';');\n\n if (parts.length === 1) {\n throw new Error(\n `Connection string ${connectionString} is in the incorrect format. Please follow the README.`,\n );\n }\n\n return parts.reduce>((connectionInfo, parameter) => {\n const [key, value] = parameter.split('=');\n if (value) connectionInfo[key] = value;\n return connectionInfo;\n }, {});\n}\n","const createLogger = require('winston/dist/winston/create-logger');\nconst transports = require('winston/dist/winston/transports/index');\n\nconst format = require('logform/format.js');\nconst levels = require('logform/levels.js');\n\nformat.align = require('logform/align.js');\nformat.errors = require('logform/errors.js');\nformat.cli = require('logform/cli.js');\nformat.combine = require('logform/combine.js');\nformat.colorize = require('logform/colorize.js');\nformat.json = require('logform/json.js');\nformat.label = require('logform/label.js');\nformat.logstash = require('logform/logstash.js');\nformat.metadata = require('logform/metadata.js');\nformat.ms = require('logform/ms.js');\nformat.padLevels = require('logform/pad-levels.js');\nformat.prettyPrint = require('logform/pretty-print.js');\nformat.printf = require('logform/printf.js');\nformat.simple = require('logform/simple.js');\nformat.splat = require('logform/splat.js');\nformat.timestamp = require('logform/timestamp.js');\nformat.uncolorize = require('logform/uncolorize.js');\n\nmodule.exports = { createLogger, transports, format, levels };\n","/**\n * create-logger.js: Logger factory for winston logger instances.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar _require = require('triple-beam'),\n LEVEL = _require.LEVEL;\n\nvar config = require('./config');\n\nvar Logger = require('./logger');\n\nvar debug = require('@dabh/diagnostics')('winston:create-logger');\n\nfunction isLevelEnabledFunctionName(level) {\n return 'is' + level.charAt(0).toUpperCase() + level.slice(1) + 'Enabled';\n}\n/**\n * Create a new instance of a winston Logger. Creates a new\n * prototype for each instance.\n * @param {!Object} opts - Options for the created logger.\n * @returns {Logger} - A newly created logger instance.\n */\n\n\nmodule.exports = function () {\n var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n //\n // Default levels: npm\n //\n opts.levels = opts.levels || config.npm.levels;\n /**\n * DerivedLogger to attach the logs level methods.\n * @type {DerivedLogger}\n * @extends {Logger}\n */\n\n var DerivedLogger = /*#__PURE__*/function (_Logger) {\n _inherits(DerivedLogger, _Logger);\n\n var _super = _createSuper(DerivedLogger);\n\n /**\n * Create a new class derived logger for which the levels can be attached to\n * the prototype of. This is a V8 optimization that is well know to increase\n * performance of prototype functions.\n * @param {!Object} options - Options for the created logger.\n */\n function DerivedLogger(options) {\n _classCallCheck(this, DerivedLogger);\n\n return _super.call(this, options);\n }\n\n return _createClass(DerivedLogger);\n }(Logger);\n\n var logger = new DerivedLogger(opts); //\n // Create the log level methods for the derived logger.\n //\n\n Object.keys(opts.levels).forEach(function (level) {\n debug('Define prototype method for \"%s\"', level);\n\n if (level === 'log') {\n // eslint-disable-next-line no-console\n console.warn('Level \"log\" not defined: conflicts with the method \"log\". Use a different level name.');\n return;\n } //\n // Define prototype methods for each log level e.g.:\n // logger.log('info', msg) implies these methods are defined:\n // - logger.info(msg)\n // - logger.isInfoEnabled()\n //\n // Remark: to support logger.child this **MUST** be a function\n // so it'll always be called on the instance instead of a fixed\n // place in the prototype chain.\n //\n\n\n DerivedLogger.prototype[level] = function () {\n // Prefer any instance scope, but default to \"root\" logger\n var self = this || logger; // Optimize the hot-path which is the single object.\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (args.length === 1) {\n var msg = args[0];\n var info = msg && msg.message && msg || {\n message: msg\n };\n info.level = info[LEVEL] = level;\n\n self._addDefaultMeta(info);\n\n self.write(info);\n return this || logger;\n } // When provided nothing assume the empty string\n\n\n if (args.length === 0) {\n self.log(level, '');\n return self;\n } // Otherwise build argument list which could potentially conform to\n // either:\n // . v3 API: log(obj)\n // 2. v1/v2 API: log(level, msg, ... [string interpolate], [{metadata}], [callback])\n\n\n return self.log.apply(self, [level].concat(args));\n };\n\n DerivedLogger.prototype[isLevelEnabledFunctionName(level)] = function () {\n return (this || logger).isLevelEnabled(level);\n };\n });\n return logger;\n};","/**\n * index.js: Default settings for all levels that winston knows about.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * Export config set for the CLI.\n * @type {Object}\n */\nObject.defineProperty(exports, 'cli', {\n value: require('./cli')\n});\n\n/**\n * Export config set for npm.\n * @type {Object}\n */\nObject.defineProperty(exports, 'npm', {\n value: require('./npm')\n});\n\n/**\n * Export config set for the syslog.\n * @type {Object}\n */\nObject.defineProperty(exports, 'syslog', {\n value: require('./syslog')\n});\n","/**\n * cli.js: Config that conform to commonly used CLI logging levels.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * Default levels for the CLI configuration.\n * @type {Object}\n */\nexports.levels = {\n error: 0,\n warn: 1,\n help: 2,\n data: 3,\n info: 4,\n debug: 5,\n prompt: 6,\n verbose: 7,\n input: 8,\n silly: 9\n};\n\n/**\n * Default colors for the CLI configuration.\n * @type {Object}\n */\nexports.colors = {\n error: 'red',\n warn: 'yellow',\n help: 'cyan',\n data: 'grey',\n info: 'green',\n debug: 'blue',\n prompt: 'grey',\n verbose: 'cyan',\n input: 'grey',\n silly: 'magenta'\n};\n","/**\n * npm.js: Config that conform to npm logging levels.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * Default levels for the npm configuration.\n * @type {Object}\n */\nexports.levels = {\n error: 0,\n warn: 1,\n info: 2,\n http: 3,\n verbose: 4,\n debug: 5,\n silly: 6\n};\n\n/**\n * Default levels for the npm configuration.\n * @type {Object}\n */\nexports.colors = {\n error: 'red',\n warn: 'yellow',\n info: 'green',\n http: 'green',\n verbose: 'cyan',\n debug: 'blue',\n silly: 'magenta'\n};\n","/**\n * syslog.js: Config that conform to syslog logging levels.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * Default levels for the syslog configuration.\n * @type {Object}\n */\nexports.levels = {\n emerg: 0,\n alert: 1,\n crit: 2,\n error: 3,\n warning: 4,\n notice: 5,\n info: 6,\n debug: 7\n};\n\n/**\n * Default levels for the syslog configuration.\n * @type {Object}\n */\nexports.colors = {\n emerg: 'red',\n alert: 'yellow',\n crit: 'red',\n error: 'red',\n warning: 'red',\n notice: 'yellow',\n info: 'green',\n debug: 'blue'\n};\n","'use strict';\n\n/*\n * @api public\n * @property {function} format\n * Both the construction method and set of exposed\n * formats.\n */\nconst format = exports.format = require('./format');\n\n/*\n * @api public\n * @method {function} levels\n * Registers the specified levels with logform.\n */\nexports.levels = require('./levels');\n\n/*\n * @api private\n * method {function} exposeFormat\n * Exposes a sub-format on the main format object\n * as a lazy-loaded getter.\n */\nfunction exposeFormat(name, requireFormat) {\n Object.defineProperty(format, name, {\n get() {\n return requireFormat();\n },\n configurable: true\n });\n}\n\n//\n// Setup all transports as lazy-loaded getters.\n//\nexposeFormat('align', function () { return require('./align'); });\nexposeFormat('errors', function () { return require('./errors'); });\nexposeFormat('cli', function () { return require('./cli'); });\nexposeFormat('combine', function () { return require('./combine'); });\nexposeFormat('colorize', function () { return require('./colorize'); });\nexposeFormat('json', function () { return require('./json'); });\nexposeFormat('label', function () { return require('./label'); });\nexposeFormat('logstash', function () { return require('./logstash'); });\nexposeFormat('metadata', function () { return require('./metadata'); });\nexposeFormat('ms', function () { return require('./ms'); });\nexposeFormat('padLevels', function () { return require('./pad-levels'); });\nexposeFormat('prettyPrint', function () { return require('./pretty-print'); });\nexposeFormat('printf', function () { return require('./printf'); });\nexposeFormat('simple', function () { return require('./simple'); });\nexposeFormat('splat', function () { return require('./splat'); });\nexposeFormat('timestamp', function () { return require('./timestamp'); });\nexposeFormat('uncolorize', function () { return require('./uncolorize'); });\n","/*\n\nThe MIT License (MIT)\n\nOriginal Library\n - Copyright (c) Marak Squires\n\nAdditional functionality\n - Copyright (c) Sindre Sorhus (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n*/\n\nvar colors = {};\nmodule['exports'] = colors;\n\ncolors.themes = {};\n\nvar util = require('util');\nvar ansiStyles = colors.styles = require('./styles');\nvar defineProps = Object.defineProperties;\nvar newLineRegex = new RegExp(/[\\r\\n]+/g);\n\ncolors.supportsColor = require('./system/supports-colors').supportsColor;\n\nif (typeof colors.enabled === 'undefined') {\n colors.enabled = colors.supportsColor() !== false;\n}\n\ncolors.enable = function() {\n colors.enabled = true;\n};\n\ncolors.disable = function() {\n colors.enabled = false;\n};\n\ncolors.stripColors = colors.strip = function(str) {\n return ('' + str).replace(/\\x1B\\[\\d+m/g, '');\n};\n\n// eslint-disable-next-line no-unused-vars\nvar stylize = colors.stylize = function stylize(str, style) {\n if (!colors.enabled) {\n return str+'';\n }\n\n var styleMap = ansiStyles[style];\n\n // Stylize should work for non-ANSI styles, too\n if(!styleMap && style in colors){\n // Style maps like trap operate as functions on strings;\n // they don't have properties like open or close.\n return colors[style](str);\n }\n\n return styleMap.open + str + styleMap.close;\n};\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\nvar escapeStringRegexp = function(str) {\n if (typeof str !== 'string') {\n throw new TypeError('Expected a string');\n }\n return str.replace(matchOperatorsRe, '\\\\$&');\n};\n\nfunction build(_styles) {\n var builder = function builder() {\n return applyStyle.apply(builder, arguments);\n };\n builder._styles = _styles;\n // __proto__ is used because we must return a function, but there is\n // no way to create a function with a different prototype.\n builder.__proto__ = proto;\n return builder;\n}\n\nvar styles = (function() {\n var ret = {};\n ansiStyles.grey = ansiStyles.gray;\n Object.keys(ansiStyles).forEach(function(key) {\n ansiStyles[key].closeRe =\n new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');\n ret[key] = {\n get: function() {\n return build(this._styles.concat(key));\n },\n };\n });\n return ret;\n})();\n\nvar proto = defineProps(function colors() {}, styles);\n\nfunction applyStyle() {\n var args = Array.prototype.slice.call(arguments);\n\n var str = args.map(function(arg) {\n // Use weak equality check so we can colorize null/undefined in safe mode\n if (arg != null && arg.constructor === String) {\n return arg;\n } else {\n return util.inspect(arg);\n }\n }).join(' ');\n\n if (!colors.enabled || !str) {\n return str;\n }\n\n var newLinesPresent = str.indexOf('\\n') != -1;\n\n var nestedStyles = this._styles;\n\n var i = nestedStyles.length;\n while (i--) {\n var code = ansiStyles[nestedStyles[i]];\n str = code.open + str.replace(code.closeRe, code.open) + code.close;\n if (newLinesPresent) {\n str = str.replace(newLineRegex, function(match) {\n return code.close + match + code.open;\n });\n }\n }\n\n return str;\n}\n\ncolors.setTheme = function(theme) {\n if (typeof theme === 'string') {\n console.log('colors.setTheme now only accepts an object, not a string. ' +\n 'If you are trying to set a theme from a file, it is now your (the ' +\n 'caller\\'s) responsibility to require the file. The old syntax ' +\n 'looked like colors.setTheme(__dirname + ' +\n '\\'/../themes/generic-logging.js\\'); The new syntax looks like '+\n 'colors.setTheme(require(__dirname + ' +\n '\\'/../themes/generic-logging.js\\'));');\n return;\n }\n for (var style in theme) {\n (function(style) {\n colors[style] = function(str) {\n if (typeof theme[style] === 'object') {\n var out = str;\n for (var i in theme[style]) {\n out = colors[theme[style][i]](out);\n }\n return out;\n }\n return colors[theme[style]](str);\n };\n })(style);\n }\n};\n\nfunction init() {\n var ret = {};\n Object.keys(styles).forEach(function(name) {\n ret[name] = {\n get: function() {\n return build([name]);\n },\n };\n });\n return ret;\n}\n\nvar sequencer = function sequencer(map, str) {\n var exploded = str.split('');\n exploded = exploded.map(map);\n return exploded.join('');\n};\n\n// custom formatter methods\ncolors.trap = require('./custom/trap');\ncolors.zalgo = require('./custom/zalgo');\n\n// maps\ncolors.maps = {};\ncolors.maps.america = require('./maps/america')(colors);\ncolors.maps.zebra = require('./maps/zebra')(colors);\ncolors.maps.rainbow = require('./maps/rainbow')(colors);\ncolors.maps.random = require('./maps/random')(colors);\n\nfor (var map in colors.maps) {\n (function(map) {\n colors[map] = function(str) {\n return sequencer(colors.maps[map], str);\n };\n })(map);\n}\n\ndefineProps(colors, init());\n","/*\nThe MIT License (MIT)\n\nCopyright (c) Sindre Sorhus (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n*/\n\nvar styles = {};\nmodule['exports'] = styles;\n\nvar codes = {\n reset: [0, 0],\n\n bold: [1, 22],\n dim: [2, 22],\n italic: [3, 23],\n underline: [4, 24],\n inverse: [7, 27],\n hidden: [8, 28],\n strikethrough: [9, 29],\n\n black: [30, 39],\n red: [31, 39],\n green: [32, 39],\n yellow: [33, 39],\n blue: [34, 39],\n magenta: [35, 39],\n cyan: [36, 39],\n white: [37, 39],\n gray: [90, 39],\n grey: [90, 39],\n\n brightRed: [91, 39],\n brightGreen: [92, 39],\n brightYellow: [93, 39],\n brightBlue: [94, 39],\n brightMagenta: [95, 39],\n brightCyan: [96, 39],\n brightWhite: [97, 39],\n\n bgBlack: [40, 49],\n bgRed: [41, 49],\n bgGreen: [42, 49],\n bgYellow: [43, 49],\n bgBlue: [44, 49],\n bgMagenta: [45, 49],\n bgCyan: [46, 49],\n bgWhite: [47, 49],\n bgGray: [100, 49],\n bgGrey: [100, 49],\n\n bgBrightRed: [101, 49],\n bgBrightGreen: [102, 49],\n bgBrightYellow: [103, 49],\n bgBrightBlue: [104, 49],\n bgBrightMagenta: [105, 49],\n bgBrightCyan: [106, 49],\n bgBrightWhite: [107, 49],\n\n // legacy styles for colors pre v1.0.0\n blackBG: [40, 49],\n redBG: [41, 49],\n greenBG: [42, 49],\n yellowBG: [43, 49],\n blueBG: [44, 49],\n magentaBG: [45, 49],\n cyanBG: [46, 49],\n whiteBG: [47, 49],\n\n};\n\nObject.keys(codes).forEach(function(key) {\n var val = codes[key];\n var style = styles[key] = [];\n style.open = '\\u001b[' + val[0] + 'm';\n style.close = '\\u001b[' + val[1] + 'm';\n});\n","/*\nThe MIT License (MIT)\n\nCopyright (c) Sindre Sorhus (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n*/\n\n'use strict';\n\nvar os = require('os');\nvar hasFlag = require('./has-flag.js');\n\nvar env = process.env;\n\nvar forceColor = void 0;\nif (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false')) {\n forceColor = false;\n} else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true')\n || hasFlag('color=always')) {\n forceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n forceColor = env.FORCE_COLOR.length === 0\n || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n if (level === 0) {\n return false;\n }\n\n return {\n level: level,\n hasBasic: true,\n has256: level >= 2,\n has16m: level >= 3,\n };\n}\n\nfunction supportsColor(stream) {\n if (forceColor === false) {\n return 0;\n }\n\n if (hasFlag('color=16m') || hasFlag('color=full')\n || hasFlag('color=truecolor')) {\n return 3;\n }\n\n if (hasFlag('color=256')) {\n return 2;\n }\n\n if (stream && !stream.isTTY && forceColor !== true) {\n return 0;\n }\n\n var min = forceColor ? 1 : 0;\n\n if (process.platform === 'win32') {\n // Node.js 7.5.0 is the first version of Node.js to include a patch to\n // libuv that enables 256 color output on Windows. Anything earlier and it\n // won't work. However, here we target Node.js 8 at minimum as it is an LTS\n // release, and Node.js 7 is not. Windows 10 build 10586 is the first\n // Windows release that supports 256 colors. Windows 10 build 14931 is the\n // first release that supports 16m/TrueColor.\n var osRelease = os.release().split('.');\n if (Number(process.versions.node.split('.')[0]) >= 8\n && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {\n return Number(osRelease[2]) >= 14931 ? 3 : 2;\n }\n\n return 1;\n }\n\n if ('CI' in env) {\n if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(function(sign) {\n return sign in env;\n }) || env.CI_NAME === 'codeship') {\n return 1;\n }\n\n return min;\n }\n\n if ('TEAMCITY_VERSION' in env) {\n return (/^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0\n );\n }\n\n if ('TERM_PROGRAM' in env) {\n var version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n switch (env.TERM_PROGRAM) {\n case 'iTerm.app':\n return version >= 3 ? 3 : 2;\n case 'Hyper':\n return 3;\n case 'Apple_Terminal':\n return 2;\n // No default\n }\n }\n\n if (/-256(color)?$/i.test(env.TERM)) {\n return 2;\n }\n\n if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n return 1;\n }\n\n if ('COLORTERM' in env) {\n return 1;\n }\n\n if (env.TERM === 'dumb') {\n return min;\n }\n\n return min;\n}\n\nfunction getSupportLevel(stream) {\n var level = supportsColor(stream);\n return translateLevel(level);\n}\n\nmodule.exports = {\n supportsColor: getSupportLevel,\n stdout: getSupportLevel(process.stdout),\n stderr: getSupportLevel(process.stderr),\n};\n","/*\nMIT License\n\nCopyright (c) Sindre Sorhus (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\n'use strict';\n\nmodule.exports = function(flag, argv) {\n argv = argv || process.argv;\n\n var terminatorPos = argv.indexOf('--');\n var prefix = /^-{1,2}/.test(flag) ? '' : '--';\n var pos = argv.indexOf(prefix + flag);\n\n return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n","module['exports'] = function runTheTrap(text, options) {\n var result = '';\n text = text || 'Run the trap, drop the bass';\n text = text.split('');\n var trap = {\n a: ['\\u0040', '\\u0104', '\\u023a', '\\u0245', '\\u0394', '\\u039b', '\\u0414'],\n b: ['\\u00df', '\\u0181', '\\u0243', '\\u026e', '\\u03b2', '\\u0e3f'],\n c: ['\\u00a9', '\\u023b', '\\u03fe'],\n d: ['\\u00d0', '\\u018a', '\\u0500', '\\u0501', '\\u0502', '\\u0503'],\n e: ['\\u00cb', '\\u0115', '\\u018e', '\\u0258', '\\u03a3', '\\u03be', '\\u04bc',\n '\\u0a6c'],\n f: ['\\u04fa'],\n g: ['\\u0262'],\n h: ['\\u0126', '\\u0195', '\\u04a2', '\\u04ba', '\\u04c7', '\\u050a'],\n i: ['\\u0f0f'],\n j: ['\\u0134'],\n k: ['\\u0138', '\\u04a0', '\\u04c3', '\\u051e'],\n l: ['\\u0139'],\n m: ['\\u028d', '\\u04cd', '\\u04ce', '\\u0520', '\\u0521', '\\u0d69'],\n n: ['\\u00d1', '\\u014b', '\\u019d', '\\u0376', '\\u03a0', '\\u048a'],\n o: ['\\u00d8', '\\u00f5', '\\u00f8', '\\u01fe', '\\u0298', '\\u047a', '\\u05dd',\n '\\u06dd', '\\u0e4f'],\n p: ['\\u01f7', '\\u048e'],\n q: ['\\u09cd'],\n r: ['\\u00ae', '\\u01a6', '\\u0210', '\\u024c', '\\u0280', '\\u042f'],\n s: ['\\u00a7', '\\u03de', '\\u03df', '\\u03e8'],\n t: ['\\u0141', '\\u0166', '\\u0373'],\n u: ['\\u01b1', '\\u054d'],\n v: ['\\u05d8'],\n w: ['\\u0428', '\\u0460', '\\u047c', '\\u0d70'],\n x: ['\\u04b2', '\\u04fe', '\\u04fc', '\\u04fd'],\n y: ['\\u00a5', '\\u04b0', '\\u04cb'],\n z: ['\\u01b5', '\\u0240'],\n };\n text.forEach(function(c) {\n c = c.toLowerCase();\n var chars = trap[c] || [' '];\n var rand = Math.floor(Math.random() * chars.length);\n if (typeof trap[c] !== 'undefined') {\n result += trap[c][rand];\n } else {\n result += c;\n }\n });\n return result;\n};\n","// please no\nmodule['exports'] = function zalgo(text, options) {\n text = text || ' he is here ';\n var soul = {\n 'up': [\n '̍', '̎', '̄', '̅',\n '̿', '̑', '̆', '̐',\n '͒', '͗', '͑', '̇',\n '̈', '̊', '͂', '̓',\n '̈', '͊', '͋', '͌',\n '̃', '̂', '̌', '͐',\n '̀', '́', '̋', '̏',\n '̒', '̓', '̔', '̽',\n '̉', 'ͣ', 'ͤ', 'ͥ',\n 'ͦ', 'ͧ', 'ͨ', 'ͩ',\n 'ͪ', 'ͫ', 'ͬ', 'ͭ',\n 'ͮ', 'ͯ', '̾', '͛',\n '͆', '̚',\n ],\n 'down': [\n '̖', '̗', '̘', '̙',\n '̜', '̝', '̞', '̟',\n '̠', '̤', '̥', '̦',\n '̩', '̪', '̫', '̬',\n '̭', '̮', '̯', '̰',\n '̱', '̲', '̳', '̹',\n '̺', '̻', '̼', 'ͅ',\n '͇', '͈', '͉', '͍',\n '͎', '͓', '͔', '͕',\n '͖', '͙', '͚', '̣',\n ],\n 'mid': [\n '̕', '̛', '̀', '́',\n '͘', '̡', '̢', '̧',\n '̨', '̴', '̵', '̶',\n '͜', '͝', '͞',\n '͟', '͠', '͢', '̸',\n '̷', '͡', ' ҉',\n ],\n };\n var all = [].concat(soul.up, soul.down, soul.mid);\n\n function randomNumber(range) {\n var r = Math.floor(Math.random() * range);\n return r;\n }\n\n function isChar(character) {\n var bool = false;\n all.filter(function(i) {\n bool = (i === character);\n });\n return bool;\n }\n\n\n function heComes(text, options) {\n var result = '';\n var counts;\n var l;\n options = options || {};\n options['up'] =\n typeof options['up'] !== 'undefined' ? options['up'] : true;\n options['mid'] =\n typeof options['mid'] !== 'undefined' ? options['mid'] : true;\n options['down'] =\n typeof options['down'] !== 'undefined' ? options['down'] : true;\n options['size'] =\n typeof options['size'] !== 'undefined' ? options['size'] : 'maxi';\n text = text.split('');\n for (l in text) {\n if (isChar(l)) {\n continue;\n }\n result = result + text[l];\n counts = {'up': 0, 'down': 0, 'mid': 0};\n switch (options.size) {\n case 'mini':\n counts.up = randomNumber(8);\n counts.mid = randomNumber(2);\n counts.down = randomNumber(8);\n break;\n case 'maxi':\n counts.up = randomNumber(16) + 3;\n counts.mid = randomNumber(4) + 1;\n counts.down = randomNumber(64) + 3;\n break;\n default:\n counts.up = randomNumber(8) + 1;\n counts.mid = randomNumber(6) / 2;\n counts.down = randomNumber(8) + 1;\n break;\n }\n\n var arr = ['up', 'mid', 'down'];\n for (var d in arr) {\n var index = arr[d];\n for (var i = 0; i <= counts[index]; i++) {\n if (options[index]) {\n result = result + soul[index][randomNumber(soul[index].length)];\n }\n }\n }\n }\n return result;\n }\n // don't summon him\n return heComes(text, options);\n};\n\n","module['exports'] = function(colors) {\n return function(letter, i, exploded) {\n if (letter === ' ') return letter;\n switch (i%3) {\n case 0: return colors.red(letter);\n case 1: return colors.white(letter);\n case 2: return colors.blue(letter);\n }\n };\n};\n","module['exports'] = function(colors) {\n return function(letter, i, exploded) {\n return i % 2 === 0 ? letter : colors.inverse(letter);\n };\n};\n","module['exports'] = function(colors) {\n // RoY G BiV\n var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta'];\n return function(letter, i, exploded) {\n if (letter === ' ') {\n return letter;\n } else {\n return colors[rainbowColors[i++ % rainbowColors.length]](letter);\n }\n };\n};\n\n","module['exports'] = function(colors) {\n var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green',\n 'blue', 'white', 'cyan', 'magenta', 'brightYellow', 'brightRed',\n 'brightGreen', 'brightBlue', 'brightWhite', 'brightCyan', 'brightMagenta'];\n return function(letter, i, exploded) {\n return letter === ' ' ? letter :\n colors[\n available[Math.round(Math.random() * (available.length - 2))]\n ](letter);\n };\n};\n","'use strict'\n\nmodule.exports = stringify\n\nvar indentation = ''\n// eslint-disable-next-line\nconst strEscapeSequencesRegExp = /[\\x00-\\x1f\\x22\\x5c]/\n// eslint-disable-next-line\nconst strEscapeSequencesReplacer = /[\\x00-\\x1f\\x22\\x5c]/g\n\n// Escaped special characters. Use empty strings to fill up unused entries.\nconst meta = [\n '\\\\u0000', '\\\\u0001', '\\\\u0002', '\\\\u0003', '\\\\u0004',\n '\\\\u0005', '\\\\u0006', '\\\\u0007', '\\\\b', '\\\\t',\n '\\\\n', '\\\\u000b', '\\\\f', '\\\\r', '\\\\u000e',\n '\\\\u000f', '\\\\u0010', '\\\\u0011', '\\\\u0012', '\\\\u0013',\n '\\\\u0014', '\\\\u0015', '\\\\u0016', '\\\\u0017', '\\\\u0018',\n '\\\\u0019', '\\\\u001a', '\\\\u001b', '\\\\u001c', '\\\\u001d',\n '\\\\u001e', '\\\\u001f', '', '', '\\\\\"',\n '', '', '', '', '', '', '', '', '', '',\n '', '', '', '', '', '', '', '', '', '',\n '', '', '', '', '', '', '', '', '', '',\n '', '', '', '', '', '', '', '', '', '',\n '', '', '', '', '', '', '', '', '', '',\n '', '', '', '', '', '', '', '\\\\\\\\'\n]\n\nfunction escapeFn (str) {\n return meta[str.charCodeAt(0)]\n}\n\n// Escape control characters, double quotes and the backslash.\n// Note: it is faster to run this only once for a big string instead of only for\n// the parts that it is necessary for. But this is only true if we do not add\n// extra indentation to the string before.\nfunction strEscape (str) {\n // Some magic numbers that worked out fine while benchmarking with v8 6.0\n if (str.length < 5000 && !strEscapeSequencesRegExp.test(str)) {\n return str\n }\n if (str.length > 100) {\n return str.replace(strEscapeSequencesReplacer, escapeFn)\n }\n var result = ''\n var last = 0\n for (var i = 0; i < str.length; i++) {\n const point = str.charCodeAt(i)\n if (point === 34 || point === 92 || point < 32) {\n if (last === i) {\n result += meta[point]\n } else {\n result += `${str.slice(last, i)}${meta[point]}`\n }\n last = i + 1\n }\n }\n if (last === 0) {\n result = str\n } else if (last !== i) {\n result += str.slice(last)\n }\n return result\n}\n\n// Full version: supports all options\nfunction stringifyFullFn (key, parent, stack, replacer, indent) {\n var i, res, join\n const originalIndentation = indentation\n var value = parent[key]\n\n if (typeof value === 'object' && value !== null && typeof value.toJSON === 'function') {\n value = value.toJSON(key)\n }\n value = replacer.call(parent, key, value)\n\n switch (typeof value) {\n case 'object':\n if (value === null) {\n return 'null'\n }\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === value) {\n return '\"[Circular]\"'\n }\n }\n if (Array.isArray(value)) {\n if (value.length === 0) {\n return '[]'\n }\n stack.push(value)\n res = '['\n indentation += indent\n res += `\\n${indentation}`\n join = `,\\n${indentation}`\n // Use null as placeholder for non-JSON values.\n for (i = 0; i < value.length - 1; i++) {\n const tmp = stringifyFullFn(i, value, stack, replacer, indent)\n res += tmp !== undefined ? tmp : 'null'\n res += join\n }\n const tmp = stringifyFullFn(i, value, stack, replacer, indent)\n res += tmp !== undefined ? tmp : 'null'\n if (indentation !== '') {\n res += `\\n${originalIndentation}`\n }\n res += ']'\n stack.pop()\n indentation = originalIndentation\n return res\n }\n\n var keys = insertSort(Object.keys(value))\n if (keys.length === 0) {\n return '{}'\n }\n stack.push(value)\n res = '{'\n indentation += indent\n res += `\\n${indentation}`\n join = `,\\n${indentation}`\n var separator = ''\n for (i = 0; i < keys.length; i++) {\n key = keys[i]\n const tmp = stringifyFullFn(key, value, stack, replacer, indent)\n if (tmp !== undefined) {\n res += `${separator}\"${strEscape(key)}\": ${tmp}`\n separator = join\n }\n }\n if (separator !== '') {\n res += `\\n${originalIndentation}`\n } else {\n res = '{'\n }\n res += '}'\n stack.pop()\n indentation = originalIndentation\n return res\n case 'string':\n return `\"${strEscape(value)}\"`\n case 'number':\n // JSON numbers must be finite. Encode non-finite numbers as null.\n return isFinite(value) ? String(value) : 'null'\n case 'boolean':\n return value === true ? 'true' : 'false'\n }\n}\n\nfunction stringifyFullArr (key, value, stack, replacer, indent) {\n var i, res, join\n const originalIndentation = indentation\n\n if (typeof value === 'object' && value !== null && typeof value.toJSON === 'function') {\n value = value.toJSON(key)\n }\n\n switch (typeof value) {\n case 'object':\n if (value === null) {\n return 'null'\n }\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === value) {\n return '\"[Circular]\"'\n }\n }\n if (Array.isArray(value)) {\n if (value.length === 0) {\n return '[]'\n }\n stack.push(value)\n res = '['\n indentation += indent\n res += `\\n${indentation}`\n join = `,\\n${indentation}`\n // Use null as placeholder for non-JSON values.\n for (i = 0; i < value.length - 1; i++) {\n const tmp = stringifyFullArr(i, value[i], stack, replacer, indent)\n res += tmp !== undefined ? tmp : 'null'\n res += join\n }\n const tmp = stringifyFullArr(i, value[i], stack, replacer, indent)\n res += tmp !== undefined ? tmp : 'null'\n if (indentation !== '') {\n res += `\\n${originalIndentation}`\n }\n res += ']'\n stack.pop()\n indentation = originalIndentation\n return res\n }\n\n if (replacer.length === 0) {\n return '{}'\n }\n stack.push(value)\n res = '{'\n indentation += indent\n res += `\\n${indentation}`\n join = `,\\n${indentation}`\n var separator = ''\n for (i = 0; i < replacer.length; i++) {\n if (typeof replacer[i] === 'string' || typeof replacer[i] === 'number') {\n key = replacer[i]\n const tmp = stringifyFullArr(key, value[key], stack, replacer, indent)\n if (tmp !== undefined) {\n res += `${separator}\"${strEscape(key)}\": ${tmp}`\n separator = join\n }\n }\n }\n if (separator !== '') {\n res += `\\n${originalIndentation}`\n } else {\n res = '{'\n }\n res += '}'\n stack.pop()\n indentation = originalIndentation\n return res\n case 'string':\n return `\"${strEscape(value)}\"`\n case 'number':\n // JSON numbers must be finite. Encode non-finite numbers as null.\n return isFinite(value) ? String(value) : 'null'\n case 'boolean':\n return value === true ? 'true' : 'false'\n }\n}\n\n// Supports only the spacer option\nfunction stringifyIndent (key, value, stack, indent) {\n var i, res, join\n const originalIndentation = indentation\n\n switch (typeof value) {\n case 'object':\n if (value === null) {\n return 'null'\n }\n if (typeof value.toJSON === 'function') {\n value = value.toJSON(key)\n // Prevent calling `toJSON` again.\n if (typeof value !== 'object') {\n return stringifyIndent(key, value, stack, indent)\n }\n if (value === null) {\n return 'null'\n }\n }\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === value) {\n return '\"[Circular]\"'\n }\n }\n\n if (Array.isArray(value)) {\n if (value.length === 0) {\n return '[]'\n }\n stack.push(value)\n res = '['\n indentation += indent\n res += `\\n${indentation}`\n join = `,\\n${indentation}`\n // Use null as placeholder for non-JSON values.\n for (i = 0; i < value.length - 1; i++) {\n const tmp = stringifyIndent(i, value[i], stack, indent)\n res += tmp !== undefined ? tmp : 'null'\n res += join\n }\n const tmp = stringifyIndent(i, value[i], stack, indent)\n res += tmp !== undefined ? tmp : 'null'\n if (indentation !== '') {\n res += `\\n${originalIndentation}`\n }\n res += ']'\n stack.pop()\n indentation = originalIndentation\n return res\n }\n\n var keys = insertSort(Object.keys(value))\n if (keys.length === 0) {\n return '{}'\n }\n stack.push(value)\n res = '{'\n indentation += indent\n res += `\\n${indentation}`\n join = `,\\n${indentation}`\n var separator = ''\n for (i = 0; i < keys.length; i++) {\n key = keys[i]\n const tmp = stringifyIndent(key, value[key], stack, indent)\n if (tmp !== undefined) {\n res += `${separator}\"${strEscape(key)}\": ${tmp}`\n separator = join\n }\n }\n if (separator !== '') {\n res += `\\n${originalIndentation}`\n } else {\n res = '{'\n }\n res += '}'\n stack.pop()\n indentation = originalIndentation\n return res\n case 'string':\n return `\"${strEscape(value)}\"`\n case 'number':\n // JSON numbers must be finite. Encode non-finite numbers as null.\n return isFinite(value) ? String(value) : 'null'\n case 'boolean':\n return value === true ? 'true' : 'false'\n }\n}\n\n// Supports only the replacer option\nfunction stringifyReplacerArr (key, value, stack, replacer) {\n var i, res\n // If the value has a toJSON method, call it to obtain a replacement value.\n if (typeof value === 'object' && value !== null && typeof value.toJSON === 'function') {\n value = value.toJSON(key)\n }\n\n switch (typeof value) {\n case 'object':\n if (value === null) {\n return 'null'\n }\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === value) {\n return '\"[Circular]\"'\n }\n }\n if (Array.isArray(value)) {\n if (value.length === 0) {\n return '[]'\n }\n stack.push(value)\n res = '['\n // Use null as placeholder for non-JSON values.\n for (i = 0; i < value.length - 1; i++) {\n const tmp = stringifyReplacerArr(i, value[i], stack, replacer)\n res += tmp !== undefined ? tmp : 'null'\n res += ','\n }\n const tmp = stringifyReplacerArr(i, value[i], stack, replacer)\n res += tmp !== undefined ? tmp : 'null'\n res += ']'\n stack.pop()\n return res\n }\n\n if (replacer.length === 0) {\n return '{}'\n }\n stack.push(value)\n res = '{'\n var separator = ''\n for (i = 0; i < replacer.length; i++) {\n if (typeof replacer[i] === 'string' || typeof replacer[i] === 'number') {\n key = replacer[i]\n const tmp = stringifyReplacerArr(key, value[key], stack, replacer)\n if (tmp !== undefined) {\n res += `${separator}\"${strEscape(key)}\":${tmp}`\n separator = ','\n }\n }\n }\n res += '}'\n stack.pop()\n return res\n case 'string':\n return `\"${strEscape(value)}\"`\n case 'number':\n // JSON numbers must be finite. Encode non-finite numbers as null.\n return isFinite(value) ? String(value) : 'null'\n case 'boolean':\n return value === true ? 'true' : 'false'\n }\n}\n\nfunction stringifyReplacerFn (key, parent, stack, replacer) {\n var i, res\n var value = parent[key]\n // If the value has a toJSON method, call it to obtain a replacement value.\n if (typeof value === 'object' && value !== null && typeof value.toJSON === 'function') {\n value = value.toJSON(key)\n }\n value = replacer.call(parent, key, value)\n\n switch (typeof value) {\n case 'object':\n if (value === null) {\n return 'null'\n }\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === value) {\n return '\"[Circular]\"'\n }\n }\n if (Array.isArray(value)) {\n if (value.length === 0) {\n return '[]'\n }\n stack.push(value)\n res = '['\n // Use null as placeholder for non-JSON values.\n for (i = 0; i < value.length - 1; i++) {\n const tmp = stringifyReplacerFn(i, value, stack, replacer)\n res += tmp !== undefined ? tmp : 'null'\n res += ','\n }\n const tmp = stringifyReplacerFn(i, value, stack, replacer)\n res += tmp !== undefined ? tmp : 'null'\n res += ']'\n stack.pop()\n return res\n }\n\n var keys = insertSort(Object.keys(value))\n if (keys.length === 0) {\n return '{}'\n }\n stack.push(value)\n res = '{'\n var separator = ''\n for (i = 0; i < keys.length; i++) {\n key = keys[i]\n const tmp = stringifyReplacerFn(key, value, stack, replacer)\n if (tmp !== undefined) {\n res += `${separator}\"${strEscape(key)}\":${tmp}`\n separator = ','\n }\n }\n res += '}'\n stack.pop()\n return res\n case 'string':\n return `\"${strEscape(value)}\"`\n case 'number':\n // JSON numbers must be finite. Encode non-finite numbers as null.\n return isFinite(value) ? String(value) : 'null'\n case 'boolean':\n return value === true ? 'true' : 'false'\n }\n}\n\n// Simple without any options\nfunction stringifySimple (key, value, stack) {\n var i, res\n switch (typeof value) {\n case 'object':\n if (value === null) {\n return 'null'\n }\n if (typeof value.toJSON === 'function') {\n value = value.toJSON(key)\n // Prevent calling `toJSON` again\n if (typeof value !== 'object') {\n return stringifySimple(key, value, stack)\n }\n if (value === null) {\n return 'null'\n }\n }\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === value) {\n return '\"[Circular]\"'\n }\n }\n\n if (Array.isArray(value)) {\n if (value.length === 0) {\n return '[]'\n }\n stack.push(value)\n res = '['\n // Use null as placeholder for non-JSON values.\n for (i = 0; i < value.length - 1; i++) {\n const tmp = stringifySimple(i, value[i], stack)\n res += tmp !== undefined ? tmp : 'null'\n res += ','\n }\n const tmp = stringifySimple(i, value[i], stack)\n res += tmp !== undefined ? tmp : 'null'\n res += ']'\n stack.pop()\n return res\n }\n\n var keys = insertSort(Object.keys(value))\n if (keys.length === 0) {\n return '{}'\n }\n stack.push(value)\n var separator = ''\n res = '{'\n for (i = 0; i < keys.length; i++) {\n key = keys[i]\n const tmp = stringifySimple(key, value[key], stack)\n if (tmp !== undefined) {\n res += `${separator}\"${strEscape(key)}\":${tmp}`\n separator = ','\n }\n }\n res += '}'\n stack.pop()\n return res\n case 'string':\n return `\"${strEscape(value)}\"`\n case 'number':\n // JSON numbers must be finite. Encode non-finite numbers as null.\n // Convert the numbers implicit to a string instead of explicit.\n return isFinite(value) ? String(value) : 'null'\n case 'boolean':\n return value === true ? 'true' : 'false'\n }\n}\n\nfunction insertSort (arr) {\n for (var i = 1; i < arr.length; i++) {\n const tmp = arr[i]\n var j = i\n while (j !== 0 && arr[j - 1] > tmp) {\n arr[j] = arr[j - 1]\n j--\n }\n arr[j] = tmp\n }\n\n return arr\n}\n\nfunction stringify (value, replacer, spacer) {\n var i\n var indent = ''\n indentation = ''\n\n if (arguments.length > 1) {\n // If the spacer parameter is a number, make an indent string containing that\n // many spaces.\n if (typeof spacer === 'number') {\n for (i = 0; i < spacer; i += 1) {\n indent += ' '\n }\n // If the spacer parameter is a string, it will be used as the indent string.\n } else if (typeof spacer === 'string') {\n indent = spacer\n }\n if (indent !== '') {\n if (replacer !== undefined && replacer !== null) {\n if (typeof replacer === 'function') {\n return stringifyFullFn('', { '': value }, [], replacer, indent)\n }\n if (Array.isArray(replacer)) {\n return stringifyFullArr('', value, [], replacer, indent)\n }\n }\n return stringifyIndent('', value, [], indent)\n }\n if (typeof replacer === 'function') {\n return stringifyReplacerFn('', { '': value }, [], replacer)\n }\n if (Array.isArray(replacer)) {\n return stringifyReplacerArr('', value, [], replacer)\n }\n }\n return stringifySimple('', value, [])\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","var token = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\\1?|[aA]|\"[^\"]*\"|'[^']*'/g;\nvar twoDigitsOptional = \"[1-9]\\\\d?\";\nvar twoDigits = \"\\\\d\\\\d\";\nvar threeDigits = \"\\\\d{3}\";\nvar fourDigits = \"\\\\d{4}\";\nvar word = \"[^\\\\s]+\";\nvar literal = /\\[([^]*?)\\]/gm;\nfunction shorten(arr, sLen) {\n var newArr = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n newArr.push(arr[i].substr(0, sLen));\n }\n return newArr;\n}\nvar monthUpdate = function (arrName) { return function (v, i18n) {\n var lowerCaseArr = i18n[arrName].map(function (v) { return v.toLowerCase(); });\n var index = lowerCaseArr.indexOf(v.toLowerCase());\n if (index > -1) {\n return index;\n }\n return null;\n}; };\nfunction assign(origObj) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n var obj = args_1[_a];\n for (var key in obj) {\n // @ts-ignore ex\n origObj[key] = obj[key];\n }\n }\n return origObj;\n}\nvar dayNames = [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\"\n];\nvar monthNames = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n];\nvar monthNamesShort = shorten(monthNames, 3);\nvar dayNamesShort = shorten(dayNames, 3);\nvar defaultI18n = {\n dayNamesShort: dayNamesShort,\n dayNames: dayNames,\n monthNamesShort: monthNamesShort,\n monthNames: monthNames,\n amPm: [\"am\", \"pm\"],\n DoFn: function (dayOfMonth) {\n return (dayOfMonth +\n [\"th\", \"st\", \"nd\", \"rd\"][dayOfMonth % 10 > 3\n ? 0\n : ((dayOfMonth - (dayOfMonth % 10) !== 10 ? 1 : 0) * dayOfMonth) % 10]);\n }\n};\nvar globalI18n = assign({}, defaultI18n);\nvar setGlobalDateI18n = function (i18n) {\n return (globalI18n = assign(globalI18n, i18n));\n};\nvar regexEscape = function (str) {\n return str.replace(/[|\\\\{()[^$+*?.-]/g, \"\\\\$&\");\n};\nvar pad = function (val, len) {\n if (len === void 0) { len = 2; }\n val = String(val);\n while (val.length < len) {\n val = \"0\" + val;\n }\n return val;\n};\nvar formatFlags = {\n D: function (dateObj) { return String(dateObj.getDate()); },\n DD: function (dateObj) { return pad(dateObj.getDate()); },\n Do: function (dateObj, i18n) {\n return i18n.DoFn(dateObj.getDate());\n },\n d: function (dateObj) { return String(dateObj.getDay()); },\n dd: function (dateObj) { return pad(dateObj.getDay()); },\n ddd: function (dateObj, i18n) {\n return i18n.dayNamesShort[dateObj.getDay()];\n },\n dddd: function (dateObj, i18n) {\n return i18n.dayNames[dateObj.getDay()];\n },\n M: function (dateObj) { return String(dateObj.getMonth() + 1); },\n MM: function (dateObj) { return pad(dateObj.getMonth() + 1); },\n MMM: function (dateObj, i18n) {\n return i18n.monthNamesShort[dateObj.getMonth()];\n },\n MMMM: function (dateObj, i18n) {\n return i18n.monthNames[dateObj.getMonth()];\n },\n YY: function (dateObj) {\n return pad(String(dateObj.getFullYear()), 4).substr(2);\n },\n YYYY: function (dateObj) { return pad(dateObj.getFullYear(), 4); },\n h: function (dateObj) { return String(dateObj.getHours() % 12 || 12); },\n hh: function (dateObj) { return pad(dateObj.getHours() % 12 || 12); },\n H: function (dateObj) { return String(dateObj.getHours()); },\n HH: function (dateObj) { return pad(dateObj.getHours()); },\n m: function (dateObj) { return String(dateObj.getMinutes()); },\n mm: function (dateObj) { return pad(dateObj.getMinutes()); },\n s: function (dateObj) { return String(dateObj.getSeconds()); },\n ss: function (dateObj) { return pad(dateObj.getSeconds()); },\n S: function (dateObj) {\n return String(Math.round(dateObj.getMilliseconds() / 100));\n },\n SS: function (dateObj) {\n return pad(Math.round(dateObj.getMilliseconds() / 10), 2);\n },\n SSS: function (dateObj) { return pad(dateObj.getMilliseconds(), 3); },\n a: function (dateObj, i18n) {\n return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];\n },\n A: function (dateObj, i18n) {\n return dateObj.getHours() < 12\n ? i18n.amPm[0].toUpperCase()\n : i18n.amPm[1].toUpperCase();\n },\n ZZ: function (dateObj) {\n var offset = dateObj.getTimezoneOffset();\n return ((offset > 0 ? \"-\" : \"+\") +\n pad(Math.floor(Math.abs(offset) / 60) * 100 + (Math.abs(offset) % 60), 4));\n },\n Z: function (dateObj) {\n var offset = dateObj.getTimezoneOffset();\n return ((offset > 0 ? \"-\" : \"+\") +\n pad(Math.floor(Math.abs(offset) / 60), 2) +\n \":\" +\n pad(Math.abs(offset) % 60, 2));\n }\n};\nvar monthParse = function (v) { return +v - 1; };\nvar emptyDigits = [null, twoDigitsOptional];\nvar emptyWord = [null, word];\nvar amPm = [\n \"isPm\",\n word,\n function (v, i18n) {\n var val = v.toLowerCase();\n if (val === i18n.amPm[0]) {\n return 0;\n }\n else if (val === i18n.amPm[1]) {\n return 1;\n }\n return null;\n }\n];\nvar timezoneOffset = [\n \"timezoneOffset\",\n \"[^\\\\s]*?[\\\\+\\\\-]\\\\d\\\\d:?\\\\d\\\\d|[^\\\\s]*?Z?\",\n function (v) {\n var parts = (v + \"\").match(/([+-]|\\d\\d)/gi);\n if (parts) {\n var minutes = +parts[1] * 60 + parseInt(parts[2], 10);\n return parts[0] === \"+\" ? minutes : -minutes;\n }\n return 0;\n }\n];\nvar parseFlags = {\n D: [\"day\", twoDigitsOptional],\n DD: [\"day\", twoDigits],\n Do: [\"day\", twoDigitsOptional + word, function (v) { return parseInt(v, 10); }],\n M: [\"month\", twoDigitsOptional, monthParse],\n MM: [\"month\", twoDigits, monthParse],\n YY: [\n \"year\",\n twoDigits,\n function (v) {\n var now = new Date();\n var cent = +(\"\" + now.getFullYear()).substr(0, 2);\n return +(\"\" + (+v > 68 ? cent - 1 : cent) + v);\n }\n ],\n h: [\"hour\", twoDigitsOptional, undefined, \"isPm\"],\n hh: [\"hour\", twoDigits, undefined, \"isPm\"],\n H: [\"hour\", twoDigitsOptional],\n HH: [\"hour\", twoDigits],\n m: [\"minute\", twoDigitsOptional],\n mm: [\"minute\", twoDigits],\n s: [\"second\", twoDigitsOptional],\n ss: [\"second\", twoDigits],\n YYYY: [\"year\", fourDigits],\n S: [\"millisecond\", \"\\\\d\", function (v) { return +v * 100; }],\n SS: [\"millisecond\", twoDigits, function (v) { return +v * 10; }],\n SSS: [\"millisecond\", threeDigits],\n d: emptyDigits,\n dd: emptyDigits,\n ddd: emptyWord,\n dddd: emptyWord,\n MMM: [\"month\", word, monthUpdate(\"monthNamesShort\")],\n MMMM: [\"month\", word, monthUpdate(\"monthNames\")],\n a: amPm,\n A: amPm,\n ZZ: timezoneOffset,\n Z: timezoneOffset\n};\n// Some common format strings\nvar globalMasks = {\n default: \"ddd MMM DD YYYY HH:mm:ss\",\n shortDate: \"M/D/YY\",\n mediumDate: \"MMM D, YYYY\",\n longDate: \"MMMM D, YYYY\",\n fullDate: \"dddd, MMMM D, YYYY\",\n isoDate: \"YYYY-MM-DD\",\n isoDateTime: \"YYYY-MM-DDTHH:mm:ssZ\",\n shortTime: \"HH:mm\",\n mediumTime: \"HH:mm:ss\",\n longTime: \"HH:mm:ss.SSS\"\n};\nvar setGlobalDateMasks = function (masks) { return assign(globalMasks, masks); };\n/***\n * Format a date\n * @method format\n * @param {Date|number} dateObj\n * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'\n * @returns {string} Formatted date string\n */\nvar format = function (dateObj, mask, i18n) {\n if (mask === void 0) { mask = globalMasks[\"default\"]; }\n if (i18n === void 0) { i18n = {}; }\n if (typeof dateObj === \"number\") {\n dateObj = new Date(dateObj);\n }\n if (Object.prototype.toString.call(dateObj) !== \"[object Date]\" ||\n isNaN(dateObj.getTime())) {\n throw new Error(\"Invalid Date pass to format\");\n }\n mask = globalMasks[mask] || mask;\n var literals = [];\n // Make literals inactive by replacing them with @@@\n mask = mask.replace(literal, function ($0, $1) {\n literals.push($1);\n return \"@@@\";\n });\n var combinedI18nSettings = assign(assign({}, globalI18n), i18n);\n // Apply formatting rules\n mask = mask.replace(token, function ($0) {\n return formatFlags[$0](dateObj, combinedI18nSettings);\n });\n // Inline literal values back into the formatted value\n return mask.replace(/@@@/g, function () { return literals.shift(); });\n};\n/**\n * Parse a date string into a Javascript Date object /\n * @method parse\n * @param {string} dateStr Date string\n * @param {string} format Date parse format\n * @param {i18n} I18nSettingsOptional Full or subset of I18N settings\n * @returns {Date|null} Returns Date object. Returns null what date string is invalid or doesn't match format\n */\nfunction parse(dateStr, format, i18n) {\n if (i18n === void 0) { i18n = {}; }\n if (typeof format !== \"string\") {\n throw new Error(\"Invalid format in fecha parse\");\n }\n // Check to see if the format is actually a mask\n format = globalMasks[format] || format;\n // Avoid regular expression denial of service, fail early for really long strings\n // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS\n if (dateStr.length > 1000) {\n return null;\n }\n // Default to the beginning of the year.\n var today = new Date();\n var dateInfo = {\n year: today.getFullYear(),\n month: 0,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n isPm: null,\n timezoneOffset: null\n };\n var parseInfo = [];\n var literals = [];\n // Replace all the literals with @@@. Hopefully a string that won't exist in the format\n var newFormat = format.replace(literal, function ($0, $1) {\n literals.push(regexEscape($1));\n return \"@@@\";\n });\n var specifiedFields = {};\n var requiredFields = {};\n // Change every token that we find into the correct regex\n newFormat = regexEscape(newFormat).replace(token, function ($0) {\n var info = parseFlags[$0];\n var field = info[0], regex = info[1], requiredField = info[3];\n // Check if the person has specified the same field twice. This will lead to confusing results.\n if (specifiedFields[field]) {\n throw new Error(\"Invalid format. \" + field + \" specified twice in format\");\n }\n specifiedFields[field] = true;\n // Check if there are any required fields. For instance, 12 hour time requires AM/PM specified\n if (requiredField) {\n requiredFields[requiredField] = true;\n }\n parseInfo.push(info);\n return \"(\" + regex + \")\";\n });\n // Check all the required fields are present\n Object.keys(requiredFields).forEach(function (field) {\n if (!specifiedFields[field]) {\n throw new Error(\"Invalid format. \" + field + \" is required in specified format\");\n }\n });\n // Add back all the literals after\n newFormat = newFormat.replace(/@@@/g, function () { return literals.shift(); });\n // Check if the date string matches the format. If it doesn't return null\n var matches = dateStr.match(new RegExp(newFormat, \"i\"));\n if (!matches) {\n return null;\n }\n var combinedI18nSettings = assign(assign({}, globalI18n), i18n);\n // For each match, call the parser function for that date part\n for (var i = 1; i < matches.length; i++) {\n var _a = parseInfo[i - 1], field = _a[0], parser = _a[2];\n var value = parser\n ? parser(matches[i], combinedI18nSettings)\n : +matches[i];\n // If the parser can't make sense of the value, return null\n if (value == null) {\n return null;\n }\n dateInfo[field] = value;\n }\n if (dateInfo.isPm === 1 && dateInfo.hour != null && +dateInfo.hour !== 12) {\n dateInfo.hour = +dateInfo.hour + 12;\n }\n else if (dateInfo.isPm === 0 && +dateInfo.hour === 12) {\n dateInfo.hour = 0;\n }\n var dateWithoutTZ = new Date(dateInfo.year, dateInfo.month, dateInfo.day, dateInfo.hour, dateInfo.minute, dateInfo.second, dateInfo.millisecond);\n var validateFields = [\n [\"month\", \"getMonth\"],\n [\"day\", \"getDate\"],\n [\"hour\", \"getHours\"],\n [\"minute\", \"getMinutes\"],\n [\"second\", \"getSeconds\"]\n ];\n for (var i = 0, len = validateFields.length; i < len; i++) {\n // Check to make sure the date field is within the allowed range. Javascript dates allows values\n // outside the allowed range. If the values don't match the value was invalid\n if (specifiedFields[validateFields[i][0]] &&\n dateInfo[validateFields[i][0]] !== dateWithoutTZ[validateFields[i][1]]()) {\n return null;\n }\n }\n if (dateInfo.timezoneOffset == null) {\n return dateWithoutTZ;\n }\n return new Date(Date.UTC(dateInfo.year, dateInfo.month, dateInfo.day, dateInfo.hour, dateInfo.minute - dateInfo.timezoneOffset, dateInfo.second, dateInfo.millisecond));\n}\nvar fecha = {\n format: format,\n parse: parse,\n defaultI18n: defaultI18n,\n setGlobalDateI18n: setGlobalDateI18n,\n setGlobalDateMasks: setGlobalDateMasks\n};\n\nexport default fecha;\nexport { assign, format, parse, defaultI18n, setGlobalDateI18n, setGlobalDateMasks };\n//# sourceMappingURL=fecha.js.map\n","/**\n * logger.js: TODO: add file header description.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar _require = require('readable-stream'),\n Stream = _require.Stream,\n Transform = _require.Transform;\n\nvar asyncForEach = require('async/forEach');\n\nvar _require2 = require('triple-beam'),\n LEVEL = _require2.LEVEL,\n SPLAT = _require2.SPLAT;\n\nvar isStream = require('is-stream');\n\nvar ExceptionHandler = require('./exception-handler');\n\nvar RejectionHandler = require('./rejection-handler');\n\nvar LegacyTransportStream = require('winston-transport/legacy');\n\nvar Profiler = require('./profiler');\n\nvar _require3 = require('./common'),\n warn = _require3.warn;\n\nvar config = require('./config');\n/**\n * Captures the number of format (i.e. %s strings) in a given string.\n * Based on `util.format`, see Node.js source:\n * https://github.com/nodejs/node/blob/b1c8f15c5f169e021f7c46eb7b219de95fe97603/lib/util.js#L201-L230\n * @type {RegExp}\n */\n\n\nvar formatRegExp = /%[scdjifoO%]/g;\n/**\n * TODO: add class description.\n * @type {Logger}\n * @extends {Transform}\n */\n\nvar Logger = /*#__PURE__*/function (_Transform) {\n _inherits(Logger, _Transform);\n\n var _super = _createSuper(Logger);\n\n /**\n * Constructor function for the Logger object responsible for persisting log\n * messages and metadata to one or more transports.\n * @param {!Object} options - foo\n */\n function Logger(options) {\n var _this;\n\n _classCallCheck(this, Logger);\n\n _this = _super.call(this, {\n objectMode: true\n });\n\n _this.configure(options);\n\n return _this;\n }\n\n _createClass(Logger, [{\n key: \"child\",\n value: function child(defaultRequestMetadata) {\n var logger = this;\n return Object.create(logger, {\n write: {\n value: function value(info) {\n var infoClone = Object.assign({}, defaultRequestMetadata, info); // Object.assign doesn't copy inherited Error\n // properties so we have to do that explicitly\n //\n // Remark (indexzero): we should remove this\n // since the errors format will handle this case.\n //\n\n if (info instanceof Error) {\n infoClone.stack = info.stack;\n infoClone.message = info.message;\n }\n\n logger.write(infoClone);\n }\n }\n });\n }\n /**\n * This will wholesale reconfigure this instance by:\n * 1. Resetting all transports. Older transports will be removed implicitly.\n * 2. Set all other options including levels, colors, rewriters, filters,\n * exceptionHandlers, etc.\n * @param {!Object} options - TODO: add param description.\n * @returns {undefined}\n */\n\n }, {\n key: \"configure\",\n value: function configure() {\n var _this2 = this;\n\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n silent = _ref.silent,\n format = _ref.format,\n defaultMeta = _ref.defaultMeta,\n levels = _ref.levels,\n _ref$level = _ref.level,\n level = _ref$level === void 0 ? 'info' : _ref$level,\n _ref$exitOnError = _ref.exitOnError,\n exitOnError = _ref$exitOnError === void 0 ? true : _ref$exitOnError,\n transports = _ref.transports,\n colors = _ref.colors,\n emitErrs = _ref.emitErrs,\n formatters = _ref.formatters,\n padLevels = _ref.padLevels,\n rewriters = _ref.rewriters,\n stripColors = _ref.stripColors,\n exceptionHandlers = _ref.exceptionHandlers,\n rejectionHandlers = _ref.rejectionHandlers;\n\n // Reset transports if we already have them\n if (this.transports.length) {\n this.clear();\n }\n\n this.silent = silent;\n this.format = format || this.format || require('logform/json')();\n this.defaultMeta = defaultMeta || null; // Hoist other options onto this instance.\n\n this.levels = levels || this.levels || config.npm.levels;\n this.level = level;\n\n if (this.exceptions) {\n this.exceptions.unhandle();\n }\n\n if (this.rejections) {\n this.rejections.unhandle();\n }\n\n this.exceptions = new ExceptionHandler(this);\n this.rejections = new RejectionHandler(this);\n this.profilers = {};\n this.exitOnError = exitOnError; // Add all transports we have been provided.\n\n if (transports) {\n transports = Array.isArray(transports) ? transports : [transports];\n transports.forEach(function (transport) {\n return _this2.add(transport);\n });\n }\n\n if (colors || emitErrs || formatters || padLevels || rewriters || stripColors) {\n throw new Error(['{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.', 'Use a custom winston.format(function) instead.', 'See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md'].join('\\n'));\n }\n\n if (exceptionHandlers) {\n this.exceptions.handle(exceptionHandlers);\n }\n\n if (rejectionHandlers) {\n this.rejections.handle(rejectionHandlers);\n }\n }\n }, {\n key: \"isLevelEnabled\",\n value: function isLevelEnabled(level) {\n var _this3 = this;\n\n var givenLevelValue = getLevelValue(this.levels, level);\n\n if (givenLevelValue === null) {\n return false;\n }\n\n var configuredLevelValue = getLevelValue(this.levels, this.level);\n\n if (configuredLevelValue === null) {\n return false;\n }\n\n if (!this.transports || this.transports.length === 0) {\n return configuredLevelValue >= givenLevelValue;\n }\n\n var index = this.transports.findIndex(function (transport) {\n var transportLevelValue = getLevelValue(_this3.levels, transport.level);\n\n if (transportLevelValue === null) {\n transportLevelValue = configuredLevelValue;\n }\n\n return transportLevelValue >= givenLevelValue;\n });\n return index !== -1;\n }\n /* eslint-disable valid-jsdoc */\n\n /**\n * Ensure backwards compatibility with a `log` method\n * @param {mixed} level - Level the log message is written at.\n * @param {mixed} msg - TODO: add param description.\n * @param {mixed} meta - TODO: add param description.\n * @returns {Logger} - TODO: add return description.\n *\n * @example\n * // Supports the existing API:\n * logger.log('info', 'Hello world', { custom: true });\n * logger.log('info', new Error('Yo, it\\'s on fire'));\n *\n * // Requires winston.format.splat()\n * logger.log('info', '%s %d%%', 'A string', 50, { thisIsMeta: true });\n *\n * // And the new API with a single JSON literal:\n * logger.log({ level: 'info', message: 'Hello world', custom: true });\n * logger.log({ level: 'info', message: new Error('Yo, it\\'s on fire') });\n *\n * // Also requires winston.format.splat()\n * logger.log({\n * level: 'info',\n * message: '%s %d%%',\n * [SPLAT]: ['A string', 50],\n * meta: { thisIsMeta: true }\n * });\n *\n */\n\n /* eslint-enable valid-jsdoc */\n\n }, {\n key: \"log\",\n value: function log(level, msg) {\n var _Object$assign2;\n\n for (var _len = arguments.length, splat = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n splat[_key - 2] = arguments[_key];\n }\n\n // eslint-disable-line max-params\n // Optimize for the hotpath of logging JSON literals\n if (arguments.length === 1) {\n // Yo dawg, I heard you like levels ... seriously ...\n // In this context the LHS `level` here is actually the `info` so read\n // this as: info[LEVEL] = info.level;\n level[LEVEL] = level.level;\n\n this._addDefaultMeta(level);\n\n this.write(level);\n return this;\n } // Slightly less hotpath, but worth optimizing for.\n\n\n if (arguments.length === 2) {\n var _msg;\n\n if (msg && _typeof(msg) === 'object') {\n msg[LEVEL] = msg.level = level;\n\n this._addDefaultMeta(msg);\n\n this.write(msg);\n return this;\n }\n\n msg = (_msg = {}, _defineProperty(_msg, LEVEL, level), _defineProperty(_msg, \"level\", level), _defineProperty(_msg, \"message\", msg), _msg);\n\n this._addDefaultMeta(msg);\n\n this.write(msg);\n return this;\n }\n\n var meta = splat[0];\n\n if (_typeof(meta) === 'object' && meta !== null) {\n // Extract tokens, if none available default to empty array to\n // ensure consistancy in expected results\n var tokens = msg && msg.match && msg.match(formatRegExp);\n\n if (!tokens) {\n var _Object$assign;\n\n var info = Object.assign({}, this.defaultMeta, meta, (_Object$assign = {}, _defineProperty(_Object$assign, LEVEL, level), _defineProperty(_Object$assign, SPLAT, splat), _defineProperty(_Object$assign, \"level\", level), _defineProperty(_Object$assign, \"message\", msg), _Object$assign));\n if (meta.message) info.message = \"\".concat(info.message, \" \").concat(meta.message);\n if (meta.stack) info.stack = meta.stack;\n this.write(info);\n return this;\n }\n }\n\n this.write(Object.assign({}, this.defaultMeta, (_Object$assign2 = {}, _defineProperty(_Object$assign2, LEVEL, level), _defineProperty(_Object$assign2, SPLAT, splat), _defineProperty(_Object$assign2, \"level\", level), _defineProperty(_Object$assign2, \"message\", msg), _Object$assign2)));\n return this;\n }\n /**\n * Pushes data so that it can be picked up by all of our pipe targets.\n * @param {mixed} info - TODO: add param description.\n * @param {mixed} enc - TODO: add param description.\n * @param {mixed} callback - Continues stream processing.\n * @returns {undefined}\n * @private\n */\n\n }, {\n key: \"_transform\",\n value: function _transform(info, enc, callback) {\n if (this.silent) {\n return callback();\n } // [LEVEL] is only soft guaranteed to be set here since we are a proper\n // stream. It is likely that `info` came in through `.log(info)` or\n // `.info(info)`. If it is not defined, however, define it.\n // This LEVEL symbol is provided by `triple-beam` and also used in:\n // - logform\n // - winston-transport\n // - abstract-winston-transport\n\n\n if (!info[LEVEL]) {\n info[LEVEL] = info.level;\n } // Remark: really not sure what to do here, but this has been reported as\n // very confusing by pre winston@2.0.0 users as quite confusing when using\n // custom levels.\n\n\n if (!this.levels[info[LEVEL]] && this.levels[info[LEVEL]] !== 0) {\n // eslint-disable-next-line no-console\n console.error('[winston] Unknown logger level: %s', info[LEVEL]);\n } // Remark: not sure if we should simply error here.\n\n\n if (!this._readableState.pipes) {\n // eslint-disable-next-line no-console\n console.error('[winston] Attempt to write logs with no transports %j', info);\n } // Here we write to the `format` pipe-chain, which on `readable` above will\n // push the formatted `info` Object onto the buffer for this instance. We trap\n // (and re-throw) any errors generated by the user-provided format, but also\n // guarantee that the streams callback is invoked so that we can continue flowing.\n\n\n try {\n this.push(this.format.transform(info, this.format.options));\n } catch (ex) {\n throw ex;\n } finally {\n // eslint-disable-next-line callback-return\n callback();\n }\n }\n /**\n * Delays the 'finish' event until all transport pipe targets have\n * also emitted 'finish' or are already finished.\n * @param {mixed} callback - Continues stream processing.\n */\n\n }, {\n key: \"_final\",\n value: function _final(callback) {\n var transports = this.transports.slice();\n asyncForEach(transports, function (transport, next) {\n if (!transport || transport.finished) return setImmediate(next);\n transport.once('finish', next);\n transport.end();\n }, callback);\n }\n /**\n * Adds the transport to this logger instance by piping to it.\n * @param {mixed} transport - TODO: add param description.\n * @returns {Logger} - TODO: add return description.\n */\n\n }, {\n key: \"add\",\n value: function add(transport) {\n // Support backwards compatibility with all existing `winston < 3.x.x`\n // transports which meet one of two criteria:\n // 1. They inherit from winston.Transport in < 3.x.x which is NOT a stream.\n // 2. They expose a log method which has a length greater than 2 (i.e. more then\n // just `log(info, callback)`.\n var target = !isStream(transport) || transport.log.length > 2 ? new LegacyTransportStream({\n transport: transport\n }) : transport;\n\n if (!target._writableState || !target._writableState.objectMode) {\n throw new Error('Transports must WritableStreams in objectMode. Set { objectMode: true }.');\n } // Listen for the `error` event and the `warn` event on the new Transport.\n\n\n this._onEvent('error', target);\n\n this._onEvent('warn', target);\n\n this.pipe(target);\n\n if (transport.handleExceptions) {\n this.exceptions.handle();\n }\n\n if (transport.handleRejections) {\n this.rejections.handle();\n }\n\n return this;\n }\n /**\n * Removes the transport from this logger instance by unpiping from it.\n * @param {mixed} transport - TODO: add param description.\n * @returns {Logger} - TODO: add return description.\n */\n\n }, {\n key: \"remove\",\n value: function remove(transport) {\n if (!transport) return this;\n var target = transport;\n\n if (!isStream(transport) || transport.log.length > 2) {\n target = this.transports.filter(function (match) {\n return match.transport === transport;\n })[0];\n }\n\n if (target) {\n this.unpipe(target);\n }\n\n return this;\n }\n /**\n * Removes all transports from this logger instance.\n * @returns {Logger} - TODO: add return description.\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this.unpipe();\n return this;\n }\n /**\n * Cleans up resources (streams, event listeners) for all transports\n * associated with this instance (if necessary).\n * @returns {Logger} - TODO: add return description.\n */\n\n }, {\n key: \"close\",\n value: function close() {\n this.exceptions.unhandle();\n this.rejections.unhandle();\n this.clear();\n this.emit('close');\n return this;\n }\n /**\n * Sets the `target` levels specified on this instance.\n * @param {Object} Target levels to use on this instance.\n */\n\n }, {\n key: \"setLevels\",\n value: function setLevels() {\n warn.deprecated('setLevels');\n }\n /**\n * Queries the all transports for this instance with the specified `options`.\n * This will aggregate each transport's results into one object containing\n * a property per transport.\n * @param {Object} options - Query options for this instance.\n * @param {function} callback - Continuation to respond to when complete.\n */\n\n }, {\n key: \"query\",\n value: function query(options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n options = options || {};\n var results = {};\n var queryObject = Object.assign({}, options.query || {}); // Helper function to query a single transport\n\n function queryTransport(transport, next) {\n if (options.query && typeof transport.formatQuery === 'function') {\n options.query = transport.formatQuery(queryObject);\n }\n\n transport.query(options, function (err, res) {\n if (err) {\n return next(err);\n }\n\n if (typeof transport.formatResults === 'function') {\n res = transport.formatResults(res, options.format);\n }\n\n next(null, res);\n });\n } // Helper function to accumulate the results from `queryTransport` into\n // the `results`.\n\n\n function addResults(transport, next) {\n queryTransport(transport, function (err, result) {\n // queryTransport could potentially invoke the callback multiple times\n // since Transport code can be unpredictable.\n if (next) {\n result = err || result;\n\n if (result) {\n results[transport.name] = result;\n } // eslint-disable-next-line callback-return\n\n\n next();\n }\n\n next = null;\n });\n } // Iterate over the transports in parallel setting the appropriate key in\n // the `results`.\n\n\n asyncForEach(this.transports.filter(function (transport) {\n return !!transport.query;\n }), addResults, function () {\n return callback(null, results);\n });\n }\n /**\n * Returns a log stream for all transports. Options object is optional.\n * @param{Object} options={} - Stream options for this instance.\n * @returns {Stream} - TODO: add return description.\n */\n\n }, {\n key: \"stream\",\n value: function stream() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var out = new Stream();\n var streams = [];\n out._streams = streams;\n\n out.destroy = function () {\n var i = streams.length;\n\n while (i--) {\n streams[i].destroy();\n }\n }; // Create a list of all transports for this instance.\n\n\n this.transports.filter(function (transport) {\n return !!transport.stream;\n }).forEach(function (transport) {\n var str = transport.stream(options);\n\n if (!str) {\n return;\n }\n\n streams.push(str);\n str.on('log', function (log) {\n log.transport = log.transport || [];\n log.transport.push(transport.name);\n out.emit('log', log);\n });\n str.on('error', function (err) {\n err.transport = err.transport || [];\n err.transport.push(transport.name);\n out.emit('error', err);\n });\n });\n return out;\n }\n /**\n * Returns an object corresponding to a specific timing. When done is called\n * the timer will finish and log the duration. e.g.:\n * @returns {Profile} - TODO: add return description.\n * @example\n * const timer = winston.startTimer()\n * setTimeout(() => {\n * timer.done({\n * message: 'Logging message'\n * });\n * }, 1000);\n */\n\n }, {\n key: \"startTimer\",\n value: function startTimer() {\n return new Profiler(this);\n }\n /**\n * Tracks the time inbetween subsequent calls to this method with the same\n * `id` parameter. The second call to this method will log the difference in\n * milliseconds along with the message.\n * @param {string} id Unique id of the profiler\n * @returns {Logger} - TODO: add return description.\n */\n\n }, {\n key: \"profile\",\n value: function profile(id) {\n var time = Date.now();\n\n if (this.profilers[id]) {\n var timeEnd = this.profilers[id];\n delete this.profilers[id]; // Attempt to be kind to users if they are still using older APIs.\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n if (typeof args[args.length - 2] === 'function') {\n // eslint-disable-next-line no-console\n console.warn('Callback function no longer supported as of winston@3.0.0');\n args.pop();\n } // Set the duration property of the metadata\n\n\n var info = _typeof(args[args.length - 1]) === 'object' ? args.pop() : {};\n info.level = info.level || 'info';\n info.durationMs = time - timeEnd;\n info.message = info.message || id;\n return this.write(info);\n }\n\n this.profilers[id] = time;\n return this;\n }\n /**\n * Backwards compatibility to `exceptions.handle` in winston < 3.0.0.\n * @returns {undefined}\n * @deprecated\n */\n\n }, {\n key: \"handleExceptions\",\n value: function handleExceptions() {\n var _this$exceptions;\n\n // eslint-disable-next-line no-console\n console.warn('Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()');\n\n (_this$exceptions = this.exceptions).handle.apply(_this$exceptions, arguments);\n }\n /**\n * Backwards compatibility to `exceptions.handle` in winston < 3.0.0.\n * @returns {undefined}\n * @deprecated\n */\n\n }, {\n key: \"unhandleExceptions\",\n value: function unhandleExceptions() {\n var _this$exceptions2;\n\n // eslint-disable-next-line no-console\n console.warn('Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()');\n\n (_this$exceptions2 = this.exceptions).unhandle.apply(_this$exceptions2, arguments);\n }\n /**\n * Throw a more meaningful deprecation notice\n * @throws {Error} - TODO: add throws description.\n */\n\n }, {\n key: \"cli\",\n value: function cli() {\n throw new Error(['Logger.cli() was removed in winston@3.0.0', 'Use a custom winston.formats.cli() instead.', 'See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md'].join('\\n'));\n }\n /**\n * Bubbles the `event` that occured on the specified `transport` up\n * from this instance.\n * @param {string} event - The event that occured\n * @param {Object} transport - Transport on which the event occured\n * @private\n */\n\n }, {\n key: \"_onEvent\",\n value: function _onEvent(event, transport) {\n function transportEvent(err) {\n // https://github.com/winstonjs/winston/issues/1364\n if (event === 'error' && !this.transports.includes(transport)) {\n this.add(transport);\n }\n\n this.emit(event, err, transport);\n }\n\n if (!transport['__winston' + event]) {\n transport['__winston' + event] = transportEvent.bind(this);\n transport.on(event, transport['__winston' + event]);\n }\n }\n }, {\n key: \"_addDefaultMeta\",\n value: function _addDefaultMeta(msg) {\n if (this.defaultMeta) {\n Object.assign(msg, this.defaultMeta);\n }\n }\n }]);\n\n return Logger;\n}(Transform);\n\nfunction getLevelValue(levels, level) {\n var value = levels[level];\n\n if (!value && value !== 0) {\n return null;\n }\n\n return value;\n}\n/**\n * Represents the current readableState pipe targets for this Logger instance.\n * @type {Array|Object}\n */\n\n\nObject.defineProperty(Logger.prototype, 'transports', {\n configurable: false,\n enumerable: true,\n get: function get() {\n var pipes = this._readableState.pipes;\n return !Array.isArray(pipes) ? [pipes].filter(Boolean) : pipes;\n }\n});\nmodule.exports = Logger;","'use strict';\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar _require = require('buffer'),\n Buffer = _require.Buffer;\n\nvar _require2 = require('util'),\n inspect = _require2.inspect;\n\nvar custom = inspect && inspect.custom || 'inspect';\n\nfunction copyBuffer(src, target, offset) {\n Buffer.prototype.copy.call(src, target, offset);\n}\n\nmodule.exports =\n/*#__PURE__*/\nfunction () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n _createClass(BufferList, [{\n key: \"push\",\n value: function push(v) {\n var entry = {\n data: v,\n next: null\n };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n }\n }, {\n key: \"unshift\",\n value: function unshift(v) {\n var entry = {\n data: v,\n next: this.head\n };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n }\n }, {\n key: \"shift\",\n value: function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.head = this.tail = null;\n this.length = 0;\n }\n }, {\n key: \"join\",\n value: function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n\n while (p = p.next) {\n ret += s + p.data;\n }\n\n return ret;\n }\n }, {\n key: \"concat\",\n value: function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n\n return ret;\n } // Consumes a specified amount of bytes or characters from the buffered data.\n\n }, {\n key: \"consume\",\n value: function consume(n, hasStrings) {\n var ret;\n\n if (n < this.head.data.length) {\n // `slice` is the same for buffers and strings.\n ret = this.head.data.slice(0, n);\n this.head.data = this.head.data.slice(n);\n } else if (n === this.head.data.length) {\n // First chunk is a perfect match.\n ret = this.shift();\n } else {\n // Result spans more than one buffer.\n ret = hasStrings ? this._getString(n) : this._getBuffer(n);\n }\n\n return ret;\n }\n }, {\n key: \"first\",\n value: function first() {\n return this.head.data;\n } // Consumes a specified amount of characters from the buffered data.\n\n }, {\n key: \"_getString\",\n value: function _getString(n) {\n var p = this.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = str.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Consumes a specified amount of bytes from the buffered data.\n\n }, {\n key: \"_getBuffer\",\n value: function _getBuffer(n) {\n var ret = Buffer.allocUnsafe(n);\n var p = this.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = buf.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Make sure the linked list only shows the minimal necessary information.\n\n }, {\n key: custom,\n value: function value(_, options) {\n return inspect(this, _objectSpread({}, options, {\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n }));\n }\n }]);\n\n return BufferList;\n}();","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","'use strict';\n\nvar _Object$setPrototypeO;\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar finished = require('./end-of-stream');\n\nvar kLastResolve = Symbol('lastResolve');\nvar kLastReject = Symbol('lastReject');\nvar kError = Symbol('error');\nvar kEnded = Symbol('ended');\nvar kLastPromise = Symbol('lastPromise');\nvar kHandlePromise = Symbol('handlePromise');\nvar kStream = Symbol('stream');\n\nfunction createIterResult(value, done) {\n return {\n value: value,\n done: done\n };\n}\n\nfunction readAndResolve(iter) {\n var resolve = iter[kLastResolve];\n\n if (resolve !== null) {\n var data = iter[kStream].read(); // we defer if data is null\n // we can be expecting either 'end' or\n // 'error'\n\n if (data !== null) {\n iter[kLastPromise] = null;\n iter[kLastResolve] = null;\n iter[kLastReject] = null;\n resolve(createIterResult(data, false));\n }\n }\n}\n\nfunction onReadable(iter) {\n // we wait for the next tick, because it might\n // emit an error with process.nextTick\n process.nextTick(readAndResolve, iter);\n}\n\nfunction wrapForNext(lastPromise, iter) {\n return function (resolve, reject) {\n lastPromise.then(function () {\n if (iter[kEnded]) {\n resolve(createIterResult(undefined, true));\n return;\n }\n\n iter[kHandlePromise](resolve, reject);\n }, reject);\n };\n}\n\nvar AsyncIteratorPrototype = Object.getPrototypeOf(function () {});\nvar ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {\n get stream() {\n return this[kStream];\n },\n\n next: function next() {\n var _this = this;\n\n // if we have detected an error in the meanwhile\n // reject straight away\n var error = this[kError];\n\n if (error !== null) {\n return Promise.reject(error);\n }\n\n if (this[kEnded]) {\n return Promise.resolve(createIterResult(undefined, true));\n }\n\n if (this[kStream].destroyed) {\n // We need to defer via nextTick because if .destroy(err) is\n // called, the error will be emitted via nextTick, and\n // we cannot guarantee that there is no error lingering around\n // waiting to be emitted.\n return new Promise(function (resolve, reject) {\n process.nextTick(function () {\n if (_this[kError]) {\n reject(_this[kError]);\n } else {\n resolve(createIterResult(undefined, true));\n }\n });\n });\n } // if we have multiple next() calls\n // we will wait for the previous Promise to finish\n // this logic is optimized to support for await loops,\n // where next() is only called once at a time\n\n\n var lastPromise = this[kLastPromise];\n var promise;\n\n if (lastPromise) {\n promise = new Promise(wrapForNext(lastPromise, this));\n } else {\n // fast path needed to support multiple this.push()\n // without triggering the next() queue\n var data = this[kStream].read();\n\n if (data !== null) {\n return Promise.resolve(createIterResult(data, false));\n }\n\n promise = new Promise(this[kHandlePromise]);\n }\n\n this[kLastPromise] = promise;\n return promise;\n }\n}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {\n return this;\n}), _defineProperty(_Object$setPrototypeO, \"return\", function _return() {\n var _this2 = this;\n\n // destroy(err, cb) is a private API\n // we can guarantee we have that here, because we control the\n // Readable class this is attached to\n return new Promise(function (resolve, reject) {\n _this2[kStream].destroy(null, function (err) {\n if (err) {\n reject(err);\n return;\n }\n\n resolve(createIterResult(undefined, true));\n });\n });\n}), _Object$setPrototypeO), AsyncIteratorPrototype);\n\nvar createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {\n var _Object$create;\n\n var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {\n value: stream,\n writable: true\n }), _defineProperty(_Object$create, kLastResolve, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kLastReject, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kError, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kEnded, {\n value: stream._readableState.endEmitted,\n writable: true\n }), _defineProperty(_Object$create, kHandlePromise, {\n value: function value(resolve, reject) {\n var data = iterator[kStream].read();\n\n if (data) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(data, false));\n } else {\n iterator[kLastResolve] = resolve;\n iterator[kLastReject] = reject;\n }\n },\n writable: true\n }), _Object$create));\n iterator[kLastPromise] = null;\n finished(stream, function (err) {\n if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise\n // returned by next() and store the error\n\n if (reject !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n reject(err);\n }\n\n iterator[kError] = err;\n return;\n }\n\n var resolve = iterator[kLastResolve];\n\n if (resolve !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(undefined, true));\n }\n\n iterator[kEnded] = true;\n });\n stream.on('readable', onReadable.bind(null, iterator));\n return iterator;\n};\n\nmodule.exports = createReadableStreamAsyncIterator;","'use strict';\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar ERR_INVALID_ARG_TYPE = require('../../../errors').codes.ERR_INVALID_ARG_TYPE;\n\nfunction from(Readable, iterable, opts) {\n var iterator;\n\n if (iterable && typeof iterable.next === 'function') {\n iterator = iterable;\n } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable);\n\n var readable = new Readable(_objectSpread({\n objectMode: true\n }, opts)); // Reading boolean to protect against _read\n // being called before last iteration completion.\n\n var reading = false;\n\n readable._read = function () {\n if (!reading) {\n reading = true;\n next();\n }\n };\n\n function next() {\n return _next2.apply(this, arguments);\n }\n\n function _next2() {\n _next2 = _asyncToGenerator(function* () {\n try {\n var _ref = yield iterator.next(),\n value = _ref.value,\n done = _ref.done;\n\n if (done) {\n readable.push(null);\n } else if (readable.push((yield value))) {\n next();\n } else {\n reading = false;\n }\n } catch (err) {\n readable.destroy(err);\n }\n });\n return _next2.apply(this, arguments);\n }\n\n return readable;\n}\n\nmodule.exports = from;","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n\nrequire('inherits')(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","// Ported from https://github.com/mafintosh/pump with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar eos;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n callback.apply(void 0, arguments);\n };\n}\n\nvar _require$codes = require('../../../errors').codes,\n ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;\n\nfunction noop(err) {\n // Rethrow the error if it exists to avoid swallowing it\n if (err) throw err;\n}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction destroyer(stream, reading, writing, callback) {\n callback = once(callback);\n var closed = false;\n stream.on('close', function () {\n closed = true;\n });\n if (eos === undefined) eos = require('./end-of-stream');\n eos(stream, {\n readable: reading,\n writable: writing\n }, function (err) {\n if (err) return callback(err);\n closed = true;\n callback();\n });\n var destroyed = false;\n return function (err) {\n if (closed) return;\n if (destroyed) return;\n destroyed = true; // request.destroy just do .end - .abort is what we want\n\n if (isRequest(stream)) return stream.abort();\n if (typeof stream.destroy === 'function') return stream.destroy();\n callback(err || new ERR_STREAM_DESTROYED('pipe'));\n };\n}\n\nfunction call(fn) {\n fn();\n}\n\nfunction pipe(from, to) {\n return from.pipe(to);\n}\n\nfunction popCallback(streams) {\n if (!streams.length) return noop;\n if (typeof streams[streams.length - 1] !== 'function') return noop;\n return streams.pop();\n}\n\nfunction pipeline() {\n for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {\n streams[_key] = arguments[_key];\n }\n\n var callback = popCallback(streams);\n if (Array.isArray(streams[0])) streams = streams[0];\n\n if (streams.length < 2) {\n throw new ERR_MISSING_ARGS('streams');\n }\n\n var error;\n var destroys = streams.map(function (stream, i) {\n var reading = i < streams.length - 1;\n var writing = i > 0;\n return destroyer(stream, reading, writing, function (err) {\n if (!error) error = err;\n if (err) destroys.forEach(call);\n if (reading) return;\n destroys.forEach(call);\n callback(error);\n });\n });\n return streams.reduce(pipe);\n}\n\nmodule.exports = pipeline;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _isArrayLike = require('./internal/isArrayLike.js');\n\nvar _isArrayLike2 = _interopRequireDefault(_isArrayLike);\n\nvar _breakLoop = require('./internal/breakLoop.js');\n\nvar _breakLoop2 = _interopRequireDefault(_breakLoop);\n\nvar _eachOfLimit = require('./eachOfLimit.js');\n\nvar _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);\n\nvar _once = require('./internal/once.js');\n\nvar _once2 = _interopRequireDefault(_once);\n\nvar _onlyOnce = require('./internal/onlyOnce.js');\n\nvar _onlyOnce2 = _interopRequireDefault(_onlyOnce);\n\nvar _wrapAsync = require('./internal/wrapAsync.js');\n\nvar _wrapAsync2 = _interopRequireDefault(_wrapAsync);\n\nvar _awaitify = require('./internal/awaitify.js');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// eachOf implementation optimized for array-likes\nfunction eachOfArrayLike(coll, iteratee, callback) {\n callback = (0, _once2.default)(callback);\n var index = 0,\n completed = 0,\n { length } = coll,\n canceled = false;\n if (length === 0) {\n callback(null);\n }\n\n function iteratorCallback(err, value) {\n if (err === false) {\n canceled = true;\n }\n if (canceled === true) return;\n if (err) {\n callback(err);\n } else if (++completed === length || value === _breakLoop2.default) {\n callback(null);\n }\n }\n\n for (; index < length; index++) {\n iteratee(coll[index], index, (0, _onlyOnce2.default)(iteratorCallback));\n }\n}\n\n// a generic version of eachOf which can handle array, object, and iterator cases.\nfunction eachOfGeneric(coll, iteratee, callback) {\n return (0, _eachOfLimit2.default)(coll, Infinity, iteratee, callback);\n}\n\n/**\n * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument\n * to the iteratee.\n *\n * @name eachOf\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEachOf\n * @category Collection\n * @see [async.each]{@link module:Collections.each}\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each\n * item in `coll`.\n * The `key` is the item's key, or index in the case of an array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // dev.json is a file containing a valid json object config for dev environment\n * // dev.json is a file containing a valid json object config for test environment\n * // prod.json is a file containing a valid json object config for prod environment\n * // invalid.json is a file with a malformed json object\n *\n * let configs = {}; //global variable\n * let validConfigFileMap = {dev: 'dev.json', test: 'test.json', prod: 'prod.json'};\n * let invalidConfigFileMap = {dev: 'dev.json', test: 'test.json', invalid: 'invalid.json'};\n *\n * // asynchronous function that reads a json file and parses the contents as json object\n * function parseFile(file, key, callback) {\n * fs.readFile(file, \"utf8\", function(err, data) {\n * if (err) return calback(err);\n * try {\n * configs[key] = JSON.parse(data);\n * } catch (e) {\n * return callback(e);\n * }\n * callback();\n * });\n * }\n *\n * // Using callbacks\n * async.forEachOf(validConfigFileMap, parseFile, function (err) {\n * if (err) {\n * console.error(err);\n * } else {\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }\n * });\n *\n * //Error handing\n * async.forEachOf(invalidConfigFileMap, parseFile, function (err) {\n * if (err) {\n * console.error(err);\n * // JSON parse error exception\n * } else {\n * console.log(configs);\n * }\n * });\n *\n * // Using Promises\n * async.forEachOf(validConfigFileMap, parseFile)\n * .then( () => {\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }).catch( err => {\n * console.error(err);\n * });\n *\n * //Error handing\n * async.forEachOf(invalidConfigFileMap, parseFile)\n * .then( () => {\n * console.log(configs);\n * }).catch( err => {\n * console.error(err);\n * // JSON parse error exception\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.forEachOf(validConfigFileMap, parseFile);\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * //Error handing\n * async () => {\n * try {\n * let result = await async.forEachOf(invalidConfigFileMap, parseFile);\n * console.log(configs);\n * }\n * catch (err) {\n * console.log(err);\n * // JSON parse error exception\n * }\n * }\n *\n */\nfunction eachOf(coll, iteratee, callback) {\n var eachOfImplementation = (0, _isArrayLike2.default)(coll) ? eachOfArrayLike : eachOfGeneric;\n return eachOfImplementation(coll, (0, _wrapAsync2.default)(iteratee), callback);\n}\n\nexports.default = (0, _awaitify2.default)(eachOf, 3);\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _once = require('./once.js');\n\nvar _once2 = _interopRequireDefault(_once);\n\nvar _iterator = require('./iterator.js');\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _onlyOnce = require('./onlyOnce.js');\n\nvar _onlyOnce2 = _interopRequireDefault(_onlyOnce);\n\nvar _wrapAsync = require('./wrapAsync.js');\n\nvar _asyncEachOfLimit = require('./asyncEachOfLimit.js');\n\nvar _asyncEachOfLimit2 = _interopRequireDefault(_asyncEachOfLimit);\n\nvar _breakLoop = require('./breakLoop.js');\n\nvar _breakLoop2 = _interopRequireDefault(_breakLoop);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = limit => {\n return (obj, iteratee, callback) => {\n callback = (0, _once2.default)(callback);\n if (limit <= 0) {\n throw new RangeError('concurrency limit cannot be less than 1');\n }\n if (!obj) {\n return callback(null);\n }\n if ((0, _wrapAsync.isAsyncGenerator)(obj)) {\n return (0, _asyncEachOfLimit2.default)(obj, limit, iteratee, callback);\n }\n if ((0, _wrapAsync.isAsyncIterable)(obj)) {\n return (0, _asyncEachOfLimit2.default)(obj[Symbol.asyncIterator](), limit, iteratee, callback);\n }\n var nextElem = (0, _iterator2.default)(obj);\n var done = false;\n var canceled = false;\n var running = 0;\n var looping = false;\n\n function iterateeCallback(err, value) {\n if (canceled) return;\n running -= 1;\n if (err) {\n done = true;\n callback(err);\n } else if (err === false) {\n done = true;\n canceled = true;\n } else if (value === _breakLoop2.default || done && running <= 0) {\n done = true;\n return callback(null);\n } else if (!looping) {\n replenish();\n }\n }\n\n function replenish() {\n looping = true;\n while (running < limit && !done) {\n var elem = nextElem();\n if (elem === null) {\n done = true;\n if (running <= 0) {\n callback(null);\n }\n return;\n }\n running += 1;\n iteratee(elem.value, elem.key, (0, _onlyOnce2.default)(iterateeCallback));\n }\n looping = false;\n }\n\n replenish();\n };\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createIterator;\n\nvar _isArrayLike = require('./isArrayLike.js');\n\nvar _isArrayLike2 = _interopRequireDefault(_isArrayLike);\n\nvar _getIterator = require('./getIterator.js');\n\nvar _getIterator2 = _interopRequireDefault(_getIterator);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createArrayIterator(coll) {\n var i = -1;\n var len = coll.length;\n return function next() {\n return ++i < len ? { value: coll[i], key: i } : null;\n };\n}\n\nfunction createES2015Iterator(iterator) {\n var i = -1;\n return function next() {\n var item = iterator.next();\n if (item.done) return null;\n i++;\n return { value: item.value, key: i };\n };\n}\n\nfunction createObjectIterator(obj) {\n var okeys = obj ? Object.keys(obj) : [];\n var i = -1;\n var len = okeys.length;\n return function next() {\n var key = okeys[++i];\n if (key === '__proto__') {\n return next();\n }\n return i < len ? { value: obj[key], key } : null;\n };\n}\n\nfunction createIterator(coll) {\n if ((0, _isArrayLike2.default)(coll)) {\n return createArrayIterator(coll);\n }\n\n var iterator = (0, _getIterator2.default)(coll);\n return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (coll) {\n return coll[Symbol.iterator] && coll[Symbol.iterator]();\n};\n\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = asyncify;\n\nvar _initialParams = require('./internal/initialParams.js');\n\nvar _initialParams2 = _interopRequireDefault(_initialParams);\n\nvar _setImmediate = require('./internal/setImmediate.js');\n\nvar _setImmediate2 = _interopRequireDefault(_setImmediate);\n\nvar _wrapAsync = require('./internal/wrapAsync.js');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Take a sync function and make it async, passing its return value to a\n * callback. This is useful for plugging sync functions into a waterfall,\n * series, or other async functions. Any arguments passed to the generated\n * function will be passed to the wrapped function (except for the final\n * callback argument). Errors thrown will be passed to the callback.\n *\n * If the function passed to `asyncify` returns a Promise, that promises's\n * resolved/rejected state will be used to call the callback, rather than simply\n * the synchronous return value.\n *\n * This also means you can asyncify ES2017 `async` functions.\n *\n * @name asyncify\n * @static\n * @memberOf module:Utils\n * @method\n * @alias wrapSync\n * @category Util\n * @param {Function} func - The synchronous function, or Promise-returning\n * function to convert to an {@link AsyncFunction}.\n * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be\n * invoked with `(args..., callback)`.\n * @example\n *\n * // passing a regular synchronous function\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(JSON.parse),\n * function (data, next) {\n * // data is the result of parsing the text.\n * // If there was a parsing error, it would have been caught.\n * }\n * ], callback);\n *\n * // passing a function returning a promise\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(function (contents) {\n * return db.model.create(contents);\n * }),\n * function (model, next) {\n * // `model` is the instantiated model object.\n * // If there was an error, this function would be skipped.\n * }\n * ], callback);\n *\n * // es2017 example, though `asyncify` is not needed if your JS environment\n * // supports async functions out of the box\n * var q = async.queue(async.asyncify(async function(file) {\n * var intermediateStep = await processFile(file);\n * return await somePromise(intermediateStep)\n * }));\n *\n * q.push(files);\n */\nfunction asyncify(func) {\n if ((0, _wrapAsync.isAsync)(func)) {\n return function (...args /*, callback*/) {\n const callback = args.pop();\n const promise = func.apply(this, args);\n return handlePromise(promise, callback);\n };\n }\n\n return (0, _initialParams2.default)(function (args, callback) {\n var result;\n try {\n result = func.apply(this, args);\n } catch (e) {\n return callback(e);\n }\n // if result is Promise object\n if (result && typeof result.then === 'function') {\n return handlePromise(result, callback);\n } else {\n callback(null, result);\n }\n });\n}\n\nfunction handlePromise(promise, callback) {\n return promise.then(value => {\n invokeCallback(callback, null, value);\n }, err => {\n invokeCallback(callback, err && err.message ? err : new Error(err));\n });\n}\n\nfunction invokeCallback(callback, error, value) {\n try {\n callback(error, value);\n } catch (err) {\n (0, _setImmediate2.default)(e => {\n throw e;\n }, err);\n }\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (fn) {\n return function (...args /*, callback*/) {\n var callback = args.pop();\n return fn.call(this, args, callback);\n };\n};\n\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fallback = fallback;\nexports.wrap = wrap;\n/* istanbul ignore file */\n\nvar hasQueueMicrotask = exports.hasQueueMicrotask = typeof queueMicrotask === 'function' && queueMicrotask;\nvar hasSetImmediate = exports.hasSetImmediate = typeof setImmediate === 'function' && setImmediate;\nvar hasNextTick = exports.hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function';\n\nfunction fallback(fn) {\n setTimeout(fn, 0);\n}\n\nfunction wrap(defer) {\n return (fn, ...args) => defer(() => fn(...args));\n}\n\nvar _defer;\n\nif (hasQueueMicrotask) {\n _defer = queueMicrotask;\n} else if (hasSetImmediate) {\n _defer = setImmediate;\n} else if (hasNextTick) {\n _defer = process.nextTick;\n} else {\n _defer = fallback;\n}\n\nexports.default = wrap(_defer);","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = asyncEachOfLimit;\n\nvar _breakLoop = require('./breakLoop.js');\n\nvar _breakLoop2 = _interopRequireDefault(_breakLoop);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// for async generators\nfunction asyncEachOfLimit(generator, limit, iteratee, callback) {\n let done = false;\n let canceled = false;\n let awaiting = false;\n let running = 0;\n let idx = 0;\n\n function replenish() {\n //console.log('replenish')\n if (running >= limit || awaiting || done) return;\n //console.log('replenish awaiting')\n awaiting = true;\n generator.next().then(({ value, done: iterDone }) => {\n //console.log('got value', value)\n if (canceled || done) return;\n awaiting = false;\n if (iterDone) {\n done = true;\n if (running <= 0) {\n //console.log('done nextCb')\n callback(null);\n }\n return;\n }\n running++;\n iteratee(value, idx, iterateeCallback);\n idx++;\n replenish();\n }).catch(handleError);\n }\n\n function iterateeCallback(err, result) {\n //console.log('iterateeCallback')\n running -= 1;\n if (canceled) return;\n if (err) return handleError(err);\n\n if (err === false) {\n done = true;\n canceled = true;\n return;\n }\n\n if (result === _breakLoop2.default || done && running <= 0) {\n done = true;\n //console.log('done iterCb')\n return callback(null);\n }\n replenish();\n }\n\n function handleError(err) {\n if (canceled) return;\n awaiting = false;\n done = true;\n callback(err);\n }\n\n replenish();\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = _withoutIndex;\nfunction _withoutIndex(iteratee) {\n return (value, index, callback) => iteratee(value, callback);\n}\nmodule.exports = exports[\"default\"];","/**\n * exception-handler.js: Object for handling uncaughtException events.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nvar os = require('os');\n\nvar asyncForEach = require('async/forEach');\n\nvar debug = require('@dabh/diagnostics')('winston:exception');\n\nvar once = require('one-time');\n\nvar stackTrace = require('stack-trace');\n\nvar ExceptionStream = require('./exception-stream');\n/**\n * Object for handling uncaughtException events.\n * @type {ExceptionHandler}\n */\n\n\nmodule.exports = /*#__PURE__*/function () {\n /**\n * TODO: add contructor description\n * @param {!Logger} logger - TODO: add param description\n */\n function ExceptionHandler(logger) {\n _classCallCheck(this, ExceptionHandler);\n\n if (!logger) {\n throw new Error('Logger is required to handle exceptions');\n }\n\n this.logger = logger;\n this.handlers = new Map();\n }\n /**\n * Handles `uncaughtException` events for the current process by adding any\n * handlers passed in.\n * @returns {undefined}\n */\n\n\n _createClass(ExceptionHandler, [{\n key: \"handle\",\n value: function handle() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n args.forEach(function (arg) {\n if (Array.isArray(arg)) {\n return arg.forEach(function (handler) {\n return _this._addHandler(handler);\n });\n }\n\n _this._addHandler(arg);\n });\n\n if (!this.catcher) {\n this.catcher = this._uncaughtException.bind(this);\n process.on('uncaughtException', this.catcher);\n }\n }\n /**\n * Removes any handlers to `uncaughtException` events for the current\n * process. This does not modify the state of the `this.handlers` set.\n * @returns {undefined}\n */\n\n }, {\n key: \"unhandle\",\n value: function unhandle() {\n var _this2 = this;\n\n if (this.catcher) {\n process.removeListener('uncaughtException', this.catcher);\n this.catcher = false;\n Array.from(this.handlers.values()).forEach(function (wrapper) {\n return _this2.logger.unpipe(wrapper);\n });\n }\n }\n /**\n * TODO: add method description\n * @param {Error} err - Error to get information about.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"getAllInfo\",\n value: function getAllInfo(err) {\n var message = err.message;\n\n if (!message && typeof err === 'string') {\n message = err;\n }\n\n return {\n error: err,\n // TODO (indexzero): how do we configure this?\n level: 'error',\n message: [\"uncaughtException: \".concat(message || '(no error message)'), err.stack || ' No stack trace'].join('\\n'),\n stack: err.stack,\n exception: true,\n date: new Date().toString(),\n process: this.getProcessInfo(),\n os: this.getOsInfo(),\n trace: this.getTrace(err)\n };\n }\n /**\n * Gets all relevant process information for the currently running process.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"getProcessInfo\",\n value: function getProcessInfo() {\n return {\n pid: process.pid,\n uid: process.getuid ? process.getuid() : null,\n gid: process.getgid ? process.getgid() : null,\n cwd: process.cwd(),\n execPath: process.execPath,\n version: process.version,\n argv: process.argv,\n memoryUsage: process.memoryUsage()\n };\n }\n /**\n * Gets all relevant OS information for the currently running process.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"getOsInfo\",\n value: function getOsInfo() {\n return {\n loadavg: os.loadavg(),\n uptime: os.uptime()\n };\n }\n /**\n * Gets a stack trace for the specified error.\n * @param {mixed} err - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"getTrace\",\n value: function getTrace(err) {\n var trace = err ? stackTrace.parse(err) : stackTrace.get();\n return trace.map(function (site) {\n return {\n column: site.getColumnNumber(),\n file: site.getFileName(),\n \"function\": site.getFunctionName(),\n line: site.getLineNumber(),\n method: site.getMethodName(),\n \"native\": site.isNative()\n };\n });\n }\n /**\n * Helper method to add a transport as an exception handler.\n * @param {Transport} handler - The transport to add as an exception handler.\n * @returns {void}\n */\n\n }, {\n key: \"_addHandler\",\n value: function _addHandler(handler) {\n if (!this.handlers.has(handler)) {\n handler.handleExceptions = true;\n var wrapper = new ExceptionStream(handler);\n this.handlers.set(handler, wrapper);\n this.logger.pipe(wrapper);\n }\n }\n /**\n * Logs all relevant information around the `err` and exits the current\n * process.\n * @param {Error} err - Error to handle\n * @returns {mixed} - TODO: add return description.\n * @private\n */\n\n }, {\n key: \"_uncaughtException\",\n value: function _uncaughtException(err) {\n var info = this.getAllInfo(err);\n\n var handlers = this._getExceptionHandlers(); // Calculate if we should exit on this error\n\n\n var doExit = typeof this.logger.exitOnError === 'function' ? this.logger.exitOnError(err) : this.logger.exitOnError;\n var timeout;\n\n if (!handlers.length && doExit) {\n // eslint-disable-next-line no-console\n console.warn('winston: exitOnError cannot be true with no exception handlers.'); // eslint-disable-next-line no-console\n\n console.warn('winston: not exiting process.');\n doExit = false;\n }\n\n function gracefulExit() {\n debug('doExit', doExit);\n debug('process._exiting', process._exiting);\n\n if (doExit && !process._exiting) {\n // Remark: Currently ignoring any exceptions from transports when\n // catching uncaught exceptions.\n if (timeout) {\n clearTimeout(timeout);\n } // eslint-disable-next-line no-process-exit\n\n\n process.exit(1);\n }\n }\n\n if (!handlers || handlers.length === 0) {\n return process.nextTick(gracefulExit);\n } // Log to all transports attempting to listen for when they are completed.\n\n\n asyncForEach(handlers, function (handler, next) {\n var done = once(next);\n var transport = handler.transport || handler; // Debug wrapping so that we can inspect what's going on under the covers.\n\n function onDone(event) {\n return function () {\n debug(event);\n done();\n };\n }\n\n transport._ending = true;\n transport.once('finish', onDone('finished'));\n transport.once('error', onDone('error'));\n }, function () {\n return doExit && gracefulExit();\n });\n this.logger.log(info); // If exitOnError is true, then only allow the logging of exceptions to\n // take up to `3000ms`.\n\n if (doExit) {\n timeout = setTimeout(gracefulExit, 3000);\n }\n }\n /**\n * Returns the list of transports and exceptionHandlers for this instance.\n * @returns {Array} - List of transports and exceptionHandlers for this\n * instance.\n * @private\n */\n\n }, {\n key: \"_getExceptionHandlers\",\n value: function _getExceptionHandlers() {\n // Remark (indexzero): since `logger.transports` returns all of the pipes\n // from the _readableState of the stream we actually get the join of the\n // explicit handlers and the implicit transports with\n // `handleExceptions: true`\n return this.logger.transports.filter(function (wrap) {\n var transport = wrap.transport || wrap;\n return transport.handleExceptions;\n });\n }\n }]);\n\n return ExceptionHandler;\n}();","var create = require('../diagnostics');\n\n/**\n * Create a new diagnostics logger.\n *\n * @param {String} namespace The namespace it should enable.\n * @param {Object} options Additional options.\n * @returns {Function} The logger.\n * @public\n */\nvar diagnostics = create(function prod(namespace, options) {\n options = options || {};\n options.namespace = namespace;\n options.prod = true;\n options.dev = false;\n\n if (!(options.force || prod.force)) return prod.nope(options);\n return prod.yep(options);\n});\n\n//\n// Expose the diagnostics logger.\n//\nmodule.exports = diagnostics;\n","/**\n * Contains all configured adapters for the given environment.\n *\n * @type {Array}\n * @public\n */\nvar adapters = [];\n\n/**\n * Contains all modifier functions.\n *\n * @typs {Array}\n * @public\n */\nvar modifiers = [];\n\n/**\n * Our default logger.\n *\n * @public\n */\nvar logger = function devnull() {};\n\n/**\n * Register a new adapter that will used to find environments.\n *\n * @param {Function} adapter A function that will return the possible env.\n * @returns {Boolean} Indication of a successful add.\n * @public\n */\nfunction use(adapter) {\n if (~adapters.indexOf(adapter)) return false;\n\n adapters.push(adapter);\n return true;\n}\n\n/**\n * Assign a new log method.\n *\n * @param {Function} custom The log method.\n * @public\n */\nfunction set(custom) {\n logger = custom;\n}\n\n/**\n * Check if the namespace is allowed by any of our adapters.\n *\n * @param {String} namespace The namespace that needs to be enabled\n * @returns {Boolean|Promise} Indication if the namespace is enabled by our adapters.\n * @public\n */\nfunction enabled(namespace) {\n var async = [];\n\n for (var i = 0; i < adapters.length; i++) {\n if (adapters[i].async) {\n async.push(adapters[i]);\n continue;\n }\n\n if (adapters[i](namespace)) return true;\n }\n\n if (!async.length) return false;\n\n //\n // Now that we know that we Async functions, we know we run in an ES6\n // environment and can use all the API's that they offer, in this case\n // we want to return a Promise so that we can `await` in React-Native\n // for an async adapter.\n //\n return new Promise(function pinky(resolve) {\n Promise.all(\n async.map(function prebind(fn) {\n return fn(namespace);\n })\n ).then(function resolved(values) {\n resolve(values.some(Boolean));\n });\n });\n}\n\n/**\n * Add a new message modifier to the debugger.\n *\n * @param {Function} fn Modification function.\n * @returns {Boolean} Indication of a successful add.\n * @public\n */\nfunction modify(fn) {\n if (~modifiers.indexOf(fn)) return false;\n\n modifiers.push(fn);\n return true;\n}\n\n/**\n * Write data to the supplied logger.\n *\n * @param {Object} meta Meta information about the log.\n * @param {Array} args Arguments for console.log.\n * @public\n */\nfunction write() {\n logger.apply(logger, arguments);\n}\n\n/**\n * Process the message with the modifiers.\n *\n * @param {Mixed} message The message to be transformed by modifers.\n * @returns {String} Transformed message.\n * @public\n */\nfunction process(message) {\n for (var i = 0; i < modifiers.length; i++) {\n message = modifiers[i].apply(modifiers[i], arguments);\n }\n\n return message;\n}\n\n/**\n * Introduce options to the logger function.\n *\n * @param {Function} fn Calback function.\n * @param {Object} options Properties to introduce on fn.\n * @returns {Function} The passed function\n * @public\n */\nfunction introduce(fn, options) {\n var has = Object.prototype.hasOwnProperty;\n\n for (var key in options) {\n if (has.call(options, key)) {\n fn[key] = options[key];\n }\n }\n\n return fn;\n}\n\n/**\n * Nope, we're not allowed to write messages.\n *\n * @returns {Boolean} false\n * @public\n */\nfunction nope(options) {\n options.enabled = false;\n options.modify = modify;\n options.set = set;\n options.use = use;\n\n return introduce(function diagnopes() {\n return false;\n }, options);\n}\n\n/**\n * Yep, we're allowed to write debug messages.\n *\n * @param {Object} options The options for the process.\n * @returns {Function} The function that does the logging.\n * @public\n */\nfunction yep(options) {\n /**\n * The function that receives the actual debug information.\n *\n * @returns {Boolean} indication that we're logging.\n * @public\n */\n function diagnostics() {\n var args = Array.prototype.slice.call(arguments, 0);\n\n write.call(write, options, process(args, options));\n return true;\n }\n\n options.enabled = true;\n options.modify = modify;\n options.set = set;\n options.use = use;\n\n return introduce(diagnostics, options);\n}\n\n/**\n * Simple helper function to introduce various of helper methods to our given\n * diagnostics function.\n *\n * @param {Function} diagnostics The diagnostics function.\n * @returns {Function} diagnostics\n * @public\n */\nmodule.exports = function create(diagnostics) {\n diagnostics.introduce = introduce;\n diagnostics.enabled = enabled;\n diagnostics.process = process;\n diagnostics.modify = modify;\n diagnostics.write = write;\n diagnostics.nope = nope;\n diagnostics.yep = yep;\n diagnostics.set = set;\n diagnostics.use = use;\n\n return diagnostics;\n}\n","'use strict';\n\nvar toString = Object.prototype.toString;\n\n/**\n * Extract names from functions.\n *\n * @param {Function} fn The function who's name we need to extract.\n * @returns {String} The name of the function.\n * @public\n */\nmodule.exports = function name(fn) {\n if ('string' === typeof fn.displayName && fn.constructor.name) {\n return fn.displayName;\n } else if ('string' === typeof fn.name && fn.name) {\n return fn.name;\n }\n\n //\n // Check to see if the constructor has a name.\n //\n if (\n 'object' === typeof fn\n && fn.constructor\n && 'string' === typeof fn.constructor.name\n ) return fn.constructor.name;\n\n //\n // toString the given function and attempt to parse it out of it, or determine\n // the class.\n //\n var named = fn.toString()\n , type = toString.call(fn).slice(8, -1);\n\n if ('Function' === type) {\n named = named.substring(named.indexOf('(') + 1, named.indexOf(')'));\n } else {\n named = type;\n }\n\n return named || 'anonymous';\n};\n","/**\n * exception-handler.js: Object for handling uncaughtException events.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nvar os = require('os');\n\nvar asyncForEach = require('async/forEach');\n\nvar debug = require('@dabh/diagnostics')('winston:rejection');\n\nvar once = require('one-time');\n\nvar stackTrace = require('stack-trace');\n\nvar ExceptionStream = require('./exception-stream');\n/**\n * Object for handling unhandledRejection events.\n * @type {RejectionHandler}\n */\n\n\nmodule.exports = /*#__PURE__*/function () {\n /**\n * TODO: add contructor description\n * @param {!Logger} logger - TODO: add param description\n */\n function RejectionHandler(logger) {\n _classCallCheck(this, RejectionHandler);\n\n if (!logger) {\n throw new Error('Logger is required to handle rejections');\n }\n\n this.logger = logger;\n this.handlers = new Map();\n }\n /**\n * Handles `unhandledRejection` events for the current process by adding any\n * handlers passed in.\n * @returns {undefined}\n */\n\n\n _createClass(RejectionHandler, [{\n key: \"handle\",\n value: function handle() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n args.forEach(function (arg) {\n if (Array.isArray(arg)) {\n return arg.forEach(function (handler) {\n return _this._addHandler(handler);\n });\n }\n\n _this._addHandler(arg);\n });\n\n if (!this.catcher) {\n this.catcher = this._unhandledRejection.bind(this);\n process.on('unhandledRejection', this.catcher);\n }\n }\n /**\n * Removes any handlers to `unhandledRejection` events for the current\n * process. This does not modify the state of the `this.handlers` set.\n * @returns {undefined}\n */\n\n }, {\n key: \"unhandle\",\n value: function unhandle() {\n var _this2 = this;\n\n if (this.catcher) {\n process.removeListener('unhandledRejection', this.catcher);\n this.catcher = false;\n Array.from(this.handlers.values()).forEach(function (wrapper) {\n return _this2.logger.unpipe(wrapper);\n });\n }\n }\n /**\n * TODO: add method description\n * @param {Error} err - Error to get information about.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"getAllInfo\",\n value: function getAllInfo(err) {\n var message = null;\n\n if (err) {\n message = typeof err === 'string' ? err : err.message;\n }\n\n return {\n error: err,\n // TODO (indexzero): how do we configure this?\n level: 'error',\n message: [\"unhandledRejection: \".concat(message || '(no error message)'), err && err.stack || ' No stack trace'].join('\\n'),\n stack: err && err.stack,\n exception: true,\n date: new Date().toString(),\n process: this.getProcessInfo(),\n os: this.getOsInfo(),\n trace: this.getTrace(err)\n };\n }\n /**\n * Gets all relevant process information for the currently running process.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"getProcessInfo\",\n value: function getProcessInfo() {\n return {\n pid: process.pid,\n uid: process.getuid ? process.getuid() : null,\n gid: process.getgid ? process.getgid() : null,\n cwd: process.cwd(),\n execPath: process.execPath,\n version: process.version,\n argv: process.argv,\n memoryUsage: process.memoryUsage()\n };\n }\n /**\n * Gets all relevant OS information for the currently running process.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"getOsInfo\",\n value: function getOsInfo() {\n return {\n loadavg: os.loadavg(),\n uptime: os.uptime()\n };\n }\n /**\n * Gets a stack trace for the specified error.\n * @param {mixed} err - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"getTrace\",\n value: function getTrace(err) {\n var trace = err ? stackTrace.parse(err) : stackTrace.get();\n return trace.map(function (site) {\n return {\n column: site.getColumnNumber(),\n file: site.getFileName(),\n \"function\": site.getFunctionName(),\n line: site.getLineNumber(),\n method: site.getMethodName(),\n \"native\": site.isNative()\n };\n });\n }\n /**\n * Helper method to add a transport as an exception handler.\n * @param {Transport} handler - The transport to add as an exception handler.\n * @returns {void}\n */\n\n }, {\n key: \"_addHandler\",\n value: function _addHandler(handler) {\n if (!this.handlers.has(handler)) {\n handler.handleRejections = true;\n var wrapper = new ExceptionStream(handler);\n this.handlers.set(handler, wrapper);\n this.logger.pipe(wrapper);\n }\n }\n /**\n * Logs all relevant information around the `err` and exits the current\n * process.\n * @param {Error} err - Error to handle\n * @returns {mixed} - TODO: add return description.\n * @private\n */\n\n }, {\n key: \"_unhandledRejection\",\n value: function _unhandledRejection(err) {\n var info = this.getAllInfo(err);\n\n var handlers = this._getRejectionHandlers(); // Calculate if we should exit on this error\n\n\n var doExit = typeof this.logger.exitOnError === 'function' ? this.logger.exitOnError(err) : this.logger.exitOnError;\n var timeout;\n\n if (!handlers.length && doExit) {\n // eslint-disable-next-line no-console\n console.warn('winston: exitOnError cannot be true with no rejection handlers.'); // eslint-disable-next-line no-console\n\n console.warn('winston: not exiting process.');\n doExit = false;\n }\n\n function gracefulExit() {\n debug('doExit', doExit);\n debug('process._exiting', process._exiting);\n\n if (doExit && !process._exiting) {\n // Remark: Currently ignoring any rejections from transports when\n // catching unhandled rejections.\n if (timeout) {\n clearTimeout(timeout);\n } // eslint-disable-next-line no-process-exit\n\n\n process.exit(1);\n }\n }\n\n if (!handlers || handlers.length === 0) {\n return process.nextTick(gracefulExit);\n } // Log to all transports attempting to listen for when they are completed.\n\n\n asyncForEach(handlers, function (handler, next) {\n var done = once(next);\n var transport = handler.transport || handler; // Debug wrapping so that we can inspect what's going on under the covers.\n\n function onDone(event) {\n return function () {\n debug(event);\n done();\n };\n }\n\n transport._ending = true;\n transport.once('finish', onDone('finished'));\n transport.once('error', onDone('error'));\n }, function () {\n return doExit && gracefulExit();\n });\n this.logger.log(info); // If exitOnError is true, then only allow the logging of exceptions to\n // take up to `3000ms`.\n\n if (doExit) {\n timeout = setTimeout(gracefulExit, 3000);\n }\n }\n /**\n * Returns the list of transports and exceptionHandlers for this instance.\n * @returns {Array} - List of transports and exceptionHandlers for this\n * instance.\n * @private\n */\n\n }, {\n key: \"_getRejectionHandlers\",\n value: function _getRejectionHandlers() {\n // Remark (indexzero): since `logger.transports` returns all of the pipes\n // from the _readableState of the stream we actually get the join of the\n // explicit handlers and the implicit transports with\n // `handleRejections: true`\n return this.logger.transports.filter(function (wrap) {\n var transport = wrap.transport || wrap;\n return transport.handleRejections;\n });\n }\n }]);\n\n return RejectionHandler;\n}();","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n\nmodule.exports = Readable;\n/**/\n\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n/**/\n\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function EElistenerCount(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\n\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n/**/\n\n\nvar debugUtil = require('util');\n\nvar debug;\n\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function debug() {};\n}\n/**/\n\n\nvar BufferList = require('./internal/streams/buffer_list');\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance.\n\n\nvar StringDecoder;\nvar createReadableStreamAsyncIterator;\nvar from;\n\nrequire('inherits')(Readable, Stream);\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n\n this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n\n this.sync = true; // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this.paused = true; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish')\n\n this.autoDestroy = !!options.autoDestroy; // has it been destroyed\n\n this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s\n\n this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled\n\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n this._readableState = new ReadableState(options, this, isDuplex); // legacy\n\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n }\n});\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\n\nReadable.prototype._destroy = function (err, cb) {\n cb(err);\n}; // Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\n\n\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n}; // Unshift should *always* be something directly out of read()\n\n\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n debug('readableAddChunk', chunk);\n var state = stream._readableState;\n\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n\n if (er) {\n errorOrDestroy(stream, er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());\n } else if (state.destroyed) {\n return false;\n } else {\n state.reading = false;\n\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n maybeReadMore(stream, state);\n }\n } // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n\n\n return !state.ended && (state.length < state.highWaterMark || state.length === 0);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n state.awaitDrain = 0;\n stream.emit('data', chunk);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n if (state.needReadable) emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);\n }\n\n return er;\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n}; // backwards compatibility.\n\n\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n var decoder = new StringDecoder(enc);\n this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8\n\n this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers:\n\n var p = this._readableState.buffer.head;\n var content = '';\n\n while (p !== null) {\n content += decoder.write(p.data);\n p = p.next;\n }\n\n this._readableState.buffer.clear();\n\n if (content !== '') this._readableState.buffer.push(content);\n this._readableState.length = content.length;\n return this;\n}; // Don't raise the hwm > 1GB\n\n\nvar MAX_HWM = 0x40000000;\n\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n\n return n;\n} // This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n } // If we're asking for more than the current hwm, then raise the hwm.\n\n\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n; // Don't have enough\n\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n\n return state.length;\n} // you can override either this method, or the async _read(n) below.\n\n\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n\n if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.\n\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n } // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n // if we need a readable event, then we need to do some reading.\n\n\n var doRead = state.needReadable;\n debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some\n\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n } // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n\n\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true; // if the length is currently zero, then we *need* a readable event.\n\n if (state.length === 0) state.needReadable = true; // call internal read method\n\n this._read(state.highWaterMark);\n\n state.sync = false; // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark;\n n = 0;\n } else {\n state.length -= n;\n state.awaitDrain = 0;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.\n\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n debug('onEofChunk');\n if (state.ended) return;\n\n if (state.decoder) {\n var chunk = state.decoder.end();\n\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n\n state.ended = true;\n\n if (state.sync) {\n // if we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call\n emitReadable(stream);\n } else {\n // emit 'readable' now to make sure it gets picked up.\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n state.emittedReadable = true;\n emitReadable_(stream);\n }\n }\n} // Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\n\n\nfunction emitReadable(stream) {\n var state = stream._readableState;\n debug('emitReadable', state.needReadable, state.emittedReadable);\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n process.nextTick(emitReadable_, stream);\n }\n}\n\nfunction emitReadable_(stream) {\n var state = stream._readableState;\n debug('emitReadable_', state.destroyed, state.length, state.ended);\n\n if (!state.destroyed && (state.length || state.ended)) {\n stream.emit('readable');\n state.emittedReadable = false;\n } // The stream needs another readable event if\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n\n\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;\n flow(stream);\n} // at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\n\n\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {\n var len = state.length;\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length) // didn't get any data, stop spinning.\n break;\n }\n\n state.readingMore = false;\n} // abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\n\n\nReadable.prototype._read = function (n) {\n errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n\n default:\n state.pipes.push(dest);\n break;\n }\n\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n } // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n\n\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n\n function cleanup() {\n debug('cleanup'); // cleanup event handlers once the pipe is broken\n\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n cleanedUp = true; // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n src.on('data', ondata);\n\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n debug('dest.write', ret);\n\n if (ret === false) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n }\n\n src.pause();\n }\n } // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n\n\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);\n } // Make sure our error handler is attached before userland ones.\n\n\n prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.\n\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n\n dest.once('close', onclose);\n\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n } // tell the dest that it's being piped to\n\n\n dest.emit('pipe', src); // start the flow if it hasn't been started already.\n\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function pipeOnDrainFunctionResult() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = {\n hasUnpiped: false\n }; // if we're not piping anywhere, then do nothing.\n\n if (state.pipesCount === 0) return this; // just one destination. most common case.\n\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n if (!dest) dest = state.pipes; // got a match.\n\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n } // slow case. multiple pipe destinations.\n\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, {\n hasUnpiped: false\n });\n }\n\n return this;\n } // try to find the right one.\n\n\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n dest.emit('unpipe', this, unpipeInfo);\n return this;\n}; // set up data events if they are asked for\n// Ensure readable listeners eventually get something\n\n\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n var state = this._readableState;\n\n if (ev === 'data') {\n // update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused\n\n if (state.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.flowing = false;\n state.emittedReadable = false;\n debug('on readable', state.length, state.reading);\n\n if (state.length) {\n emitReadable(this);\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this);\n }\n }\n }\n\n return res;\n};\n\nReadable.prototype.addListener = Readable.prototype.on;\n\nReadable.prototype.removeListener = function (ev, fn) {\n var res = Stream.prototype.removeListener.call(this, ev, fn);\n\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nReadable.prototype.removeAllListeners = function (ev) {\n var res = Stream.prototype.removeAllListeners.apply(this, arguments);\n\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nfunction updateReadableListening(self) {\n var state = self._readableState;\n state.readableListening = self.listenerCount('readable') > 0;\n\n if (state.resumeScheduled && !state.paused) {\n // flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true; // crude way to check if we should resume\n } else if (self.listenerCount('data') > 0) {\n self.resume();\n }\n}\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n} // pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\n\n\nReadable.prototype.resume = function () {\n var state = this._readableState;\n\n if (!state.flowing) {\n debug('resume'); // we flow only if there is no one listening\n // for readable, but we still have to call\n // resume()\n\n state.flowing = !state.readableListening;\n resume(this, state);\n }\n\n state.paused = false;\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n debug('resume', state.reading);\n\n if (!state.reading) {\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n\n if (this._readableState.flowing !== false) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n\n this._readableState.paused = true;\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n\n while (state.flowing && stream.read() !== null) {\n ;\n }\n} // wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\n\n\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n stream.on('end', function () {\n debug('wrapped end');\n\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode\n\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n\n if (!ret) {\n paused = true;\n stream.pause();\n }\n }); // proxy all the other methods.\n // important when wrapping filters and duplexes.\n\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function methodWrap(method) {\n return function methodWrapReturnFunction() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n } // proxy certain important events.\n\n\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n } // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n\n\n this._read = function (n) {\n debug('wrapped _read', n);\n\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nif (typeof Symbol === 'function') {\n Readable.prototype[Symbol.asyncIterator] = function () {\n if (createReadableStreamAsyncIterator === undefined) {\n createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');\n }\n\n return createReadableStreamAsyncIterator(this);\n };\n}\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.highWaterMark;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState && this._readableState.buffer;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableFlowing', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.flowing;\n },\n set: function set(state) {\n if (this._readableState) {\n this._readableState.flowing = state;\n }\n }\n}); // exposed for testing purposes only.\n\nReadable._fromList = fromList;\nObject.defineProperty(Readable.prototype, 'readableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.length;\n }\n}); // Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = state.buffer.consume(n, state.decoder);\n }\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n debug('endReadable', state.endEmitted);\n\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.\n\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well\n var wState = stream._writableState;\n\n if (!wState || wState.autoDestroy && wState.finished) {\n stream.destroy();\n }\n }\n }\n}\n\nif (typeof Symbol === 'function') {\n Readable.from = function (iterable, opts) {\n if (from === undefined) {\n from = require('./internal/streams/from');\n }\n\n return from(Readable, iterable, opts);\n };\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n\n return -1;\n}","'use strict';\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar _require = require('buffer'),\n Buffer = _require.Buffer;\n\nvar _require2 = require('util'),\n inspect = _require2.inspect;\n\nvar custom = inspect && inspect.custom || 'inspect';\n\nfunction copyBuffer(src, target, offset) {\n Buffer.prototype.copy.call(src, target, offset);\n}\n\nmodule.exports =\n/*#__PURE__*/\nfunction () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n _createClass(BufferList, [{\n key: \"push\",\n value: function push(v) {\n var entry = {\n data: v,\n next: null\n };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n }\n }, {\n key: \"unshift\",\n value: function unshift(v) {\n var entry = {\n data: v,\n next: this.head\n };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n }\n }, {\n key: \"shift\",\n value: function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.head = this.tail = null;\n this.length = 0;\n }\n }, {\n key: \"join\",\n value: function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n\n while (p = p.next) {\n ret += s + p.data;\n }\n\n return ret;\n }\n }, {\n key: \"concat\",\n value: function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n\n return ret;\n } // Consumes a specified amount of bytes or characters from the buffered data.\n\n }, {\n key: \"consume\",\n value: function consume(n, hasStrings) {\n var ret;\n\n if (n < this.head.data.length) {\n // `slice` is the same for buffers and strings.\n ret = this.head.data.slice(0, n);\n this.head.data = this.head.data.slice(n);\n } else if (n === this.head.data.length) {\n // First chunk is a perfect match.\n ret = this.shift();\n } else {\n // Result spans more than one buffer.\n ret = hasStrings ? this._getString(n) : this._getBuffer(n);\n }\n\n return ret;\n }\n }, {\n key: \"first\",\n value: function first() {\n return this.head.data;\n } // Consumes a specified amount of characters from the buffered data.\n\n }, {\n key: \"_getString\",\n value: function _getString(n) {\n var p = this.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = str.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Consumes a specified amount of bytes from the buffered data.\n\n }, {\n key: \"_getBuffer\",\n value: function _getBuffer(n) {\n var ret = Buffer.allocUnsafe(n);\n var p = this.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = buf.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Make sure the linked list only shows the minimal necessary information.\n\n }, {\n key: custom,\n value: function value(_, options) {\n return inspect(this, _objectSpread({}, options, {\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n }));\n }\n }]);\n\n return BufferList;\n}();","'use strict';\n\nvar _Object$setPrototypeO;\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar finished = require('./end-of-stream');\n\nvar kLastResolve = Symbol('lastResolve');\nvar kLastReject = Symbol('lastReject');\nvar kError = Symbol('error');\nvar kEnded = Symbol('ended');\nvar kLastPromise = Symbol('lastPromise');\nvar kHandlePromise = Symbol('handlePromise');\nvar kStream = Symbol('stream');\n\nfunction createIterResult(value, done) {\n return {\n value: value,\n done: done\n };\n}\n\nfunction readAndResolve(iter) {\n var resolve = iter[kLastResolve];\n\n if (resolve !== null) {\n var data = iter[kStream].read(); // we defer if data is null\n // we can be expecting either 'end' or\n // 'error'\n\n if (data !== null) {\n iter[kLastPromise] = null;\n iter[kLastResolve] = null;\n iter[kLastReject] = null;\n resolve(createIterResult(data, false));\n }\n }\n}\n\nfunction onReadable(iter) {\n // we wait for the next tick, because it might\n // emit an error with process.nextTick\n process.nextTick(readAndResolve, iter);\n}\n\nfunction wrapForNext(lastPromise, iter) {\n return function (resolve, reject) {\n lastPromise.then(function () {\n if (iter[kEnded]) {\n resolve(createIterResult(undefined, true));\n return;\n }\n\n iter[kHandlePromise](resolve, reject);\n }, reject);\n };\n}\n\nvar AsyncIteratorPrototype = Object.getPrototypeOf(function () {});\nvar ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {\n get stream() {\n return this[kStream];\n },\n\n next: function next() {\n var _this = this;\n\n // if we have detected an error in the meanwhile\n // reject straight away\n var error = this[kError];\n\n if (error !== null) {\n return Promise.reject(error);\n }\n\n if (this[kEnded]) {\n return Promise.resolve(createIterResult(undefined, true));\n }\n\n if (this[kStream].destroyed) {\n // We need to defer via nextTick because if .destroy(err) is\n // called, the error will be emitted via nextTick, and\n // we cannot guarantee that there is no error lingering around\n // waiting to be emitted.\n return new Promise(function (resolve, reject) {\n process.nextTick(function () {\n if (_this[kError]) {\n reject(_this[kError]);\n } else {\n resolve(createIterResult(undefined, true));\n }\n });\n });\n } // if we have multiple next() calls\n // we will wait for the previous Promise to finish\n // this logic is optimized to support for await loops,\n // where next() is only called once at a time\n\n\n var lastPromise = this[kLastPromise];\n var promise;\n\n if (lastPromise) {\n promise = new Promise(wrapForNext(lastPromise, this));\n } else {\n // fast path needed to support multiple this.push()\n // without triggering the next() queue\n var data = this[kStream].read();\n\n if (data !== null) {\n return Promise.resolve(createIterResult(data, false));\n }\n\n promise = new Promise(this[kHandlePromise]);\n }\n\n this[kLastPromise] = promise;\n return promise;\n }\n}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {\n return this;\n}), _defineProperty(_Object$setPrototypeO, \"return\", function _return() {\n var _this2 = this;\n\n // destroy(err, cb) is a private API\n // we can guarantee we have that here, because we control the\n // Readable class this is attached to\n return new Promise(function (resolve, reject) {\n _this2[kStream].destroy(null, function (err) {\n if (err) {\n reject(err);\n return;\n }\n\n resolve(createIterResult(undefined, true));\n });\n });\n}), _Object$setPrototypeO), AsyncIteratorPrototype);\n\nvar createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {\n var _Object$create;\n\n var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {\n value: stream,\n writable: true\n }), _defineProperty(_Object$create, kLastResolve, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kLastReject, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kError, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kEnded, {\n value: stream._readableState.endEmitted,\n writable: true\n }), _defineProperty(_Object$create, kHandlePromise, {\n value: function value(resolve, reject) {\n var data = iterator[kStream].read();\n\n if (data) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(data, false));\n } else {\n iterator[kLastResolve] = resolve;\n iterator[kLastReject] = reject;\n }\n },\n writable: true\n }), _Object$create));\n iterator[kLastPromise] = null;\n finished(stream, function (err) {\n if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise\n // returned by next() and store the error\n\n if (reject !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n reject(err);\n }\n\n iterator[kError] = err;\n return;\n }\n\n var resolve = iterator[kLastResolve];\n\n if (resolve !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(undefined, true));\n }\n\n iterator[kEnded] = true;\n });\n stream.on('readable', onReadable.bind(null, iterator));\n return iterator;\n};\n\nmodule.exports = createReadableStreamAsyncIterator;","// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n callback.apply(this, args);\n };\n}\n\nfunction noop() {}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction eos(stream, opts, callback) {\n if (typeof opts === 'function') return eos(stream, null, opts);\n if (!opts) opts = {};\n callback = once(callback || noop);\n var readable = opts.readable || opts.readable !== false && stream.readable;\n var writable = opts.writable || opts.writable !== false && stream.writable;\n\n var onlegacyfinish = function onlegacyfinish() {\n if (!stream.writable) onfinish();\n };\n\n var writableEnded = stream._writableState && stream._writableState.finished;\n\n var onfinish = function onfinish() {\n writable = false;\n writableEnded = true;\n if (!readable) callback.call(stream);\n };\n\n var readableEnded = stream._readableState && stream._readableState.endEmitted;\n\n var onend = function onend() {\n readable = false;\n readableEnded = true;\n if (!writable) callback.call(stream);\n };\n\n var onerror = function onerror(err) {\n callback.call(stream, err);\n };\n\n var onclose = function onclose() {\n var err;\n\n if (readable && !readableEnded) {\n if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n\n if (writable && !writableEnded) {\n if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n };\n\n var onrequest = function onrequest() {\n stream.req.on('finish', onfinish);\n };\n\n if (isRequest(stream)) {\n stream.on('complete', onfinish);\n stream.on('abort', onclose);\n if (stream.req) onrequest();else stream.on('request', onrequest);\n } else if (writable && !stream._writableState) {\n // legacy streams\n stream.on('end', onlegacyfinish);\n stream.on('close', onlegacyfinish);\n }\n\n stream.on('end', onend);\n stream.on('finish', onfinish);\n if (opts.error !== false) stream.on('error', onerror);\n stream.on('close', onclose);\n return function () {\n stream.removeListener('complete', onfinish);\n stream.removeListener('abort', onclose);\n stream.removeListener('request', onrequest);\n if (stream.req) stream.req.removeListener('finish', onfinish);\n stream.removeListener('end', onlegacyfinish);\n stream.removeListener('close', onlegacyfinish);\n stream.removeListener('finish', onfinish);\n stream.removeListener('end', onend);\n stream.removeListener('error', onerror);\n stream.removeListener('close', onclose);\n };\n}\n\nmodule.exports = eos;","'use strict';\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar ERR_INVALID_ARG_TYPE = require('../../../errors').codes.ERR_INVALID_ARG_TYPE;\n\nfunction from(Readable, iterable, opts) {\n var iterator;\n\n if (iterable && typeof iterable.next === 'function') {\n iterator = iterable;\n } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable);\n\n var readable = new Readable(_objectSpread({\n objectMode: true\n }, opts)); // Reading boolean to protect against _read\n // being called before last iteration completion.\n\n var reading = false;\n\n readable._read = function () {\n if (!reading) {\n reading = true;\n next();\n }\n };\n\n function next() {\n return _next2.apply(this, arguments);\n }\n\n function _next2() {\n _next2 = _asyncToGenerator(function* () {\n try {\n var _ref = yield iterator.next(),\n value = _ref.value,\n done = _ref.done;\n\n if (done) {\n readable.push(null);\n } else if (readable.push((yield value))) {\n next();\n } else {\n reading = false;\n }\n } catch (err) {\n readable.destroy(err);\n }\n });\n return _next2.apply(this, arguments);\n }\n\n return readable;\n}\n\nmodule.exports = from;","/**\n * profiler.js: TODO: add file header description.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n/**\n * TODO: add class description.\n * @type {Profiler}\n * @private\n */\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nmodule.exports = /*#__PURE__*/function () {\n /**\n * Constructor function for the Profiler instance used by\n * `Logger.prototype.startTimer`. When done is called the timer will finish\n * and log the duration.\n * @param {!Logger} logger - TODO: add param description.\n * @private\n */\n function Profiler(logger) {\n _classCallCheck(this, Profiler);\n\n if (!logger) {\n throw new Error('Logger is required for profiling.');\n }\n\n this.logger = logger;\n this.start = Date.now();\n }\n /**\n * Ends the current timer (i.e. Profiler) instance and logs the `msg` along\n * with the duration since creation.\n * @returns {mixed} - TODO: add return description.\n * @private\n */\n\n\n _createClass(Profiler, [{\n key: \"done\",\n value: function done() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (typeof args[args.length - 1] === 'function') {\n // eslint-disable-next-line no-console\n console.warn('Callback function no longer supported as of winston@3.0.0');\n args.pop();\n }\n\n var info = _typeof(args[args.length - 1]) === 'object' ? args.pop() : {};\n info.level = info.level || 'info';\n info.durationMs = Date.now() - this.start;\n return this.logger.write(info);\n }\n }]);\n\n return Profiler;\n}();","/**\n * common.js: Internal helper and utility functions for winston.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nvar _require = require('util'),\n format = _require.format;\n/**\n * Set of simple deprecation notices and a way to expose them for a set of\n * properties.\n * @type {Object}\n * @private\n */\n\n\nexports.warn = {\n deprecated: function deprecated(prop) {\n return function () {\n throw new Error(format('{ %s } was removed in winston@3.0.0.', prop));\n };\n },\n useFormat: function useFormat(prop) {\n return function () {\n throw new Error([format('{ %s } was removed in winston@3.0.0.', prop), 'Use a custom winston.format = winston.format(function) instead.'].join('\\n'));\n };\n },\n forFunctions: function forFunctions(obj, type, props) {\n props.forEach(function (prop) {\n obj[prop] = exports.warn[type](prop);\n });\n },\n moved: function moved(obj, movedTo, prop) {\n function movedNotice() {\n return function () {\n throw new Error([format('winston.%s was moved in winston@3.0.0.', prop), format('Use a winston.%s instead.', movedTo)].join('\\n'));\n };\n }\n\n Object.defineProperty(obj, prop, {\n get: movedNotice,\n set: movedNotice\n });\n },\n forProperties: function forProperties(obj, type, props) {\n props.forEach(function (prop) {\n var notice = exports.warn[type](prop);\n Object.defineProperty(obj, prop, {\n get: notice,\n set: notice\n });\n });\n }\n};","/**\n * transports.js: Set of all transports Winston knows about.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n/**\n * TODO: add property description.\n * @type {Console}\n */\n\nObject.defineProperty(exports, 'Console', {\n configurable: true,\n enumerable: true,\n get: function get() {\n return require('./console');\n }\n});\n/**\n * TODO: add property description.\n * @type {File}\n */\n\nObject.defineProperty(exports, 'File', {\n configurable: true,\n enumerable: true,\n get: function get() {\n return require('./file');\n }\n});\n/**\n * TODO: add property description.\n * @type {Http}\n */\n\nObject.defineProperty(exports, 'Http', {\n configurable: true,\n enumerable: true,\n get: function get() {\n return require('./http');\n }\n});\n/**\n * TODO: add property description.\n * @type {Stream}\n */\n\nObject.defineProperty(exports, 'Stream', {\n configurable: true,\n enumerable: true,\n get: function get() {\n return require('./stream');\n }\n});","/* eslint-disable no-console */\n\n/*\n * console.js: Transport for outputting to the console.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar os = require('os');\n\nvar _require = require('triple-beam'),\n LEVEL = _require.LEVEL,\n MESSAGE = _require.MESSAGE;\n\nvar TransportStream = require('winston-transport');\n/**\n * Transport for outputting to the console.\n * @type {Console}\n * @extends {TransportStream}\n */\n\n\nmodule.exports = /*#__PURE__*/function (_TransportStream) {\n _inherits(Console, _TransportStream);\n\n var _super = _createSuper(Console);\n\n /**\n * Constructor function for the Console transport object responsible for\n * persisting log messages and metadata to a terminal or TTY.\n * @param {!Object} [options={}] - Options for this instance.\n */\n function Console() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Console);\n\n _this = _super.call(this, options); // Expose the name of this Transport on the prototype\n\n _this.name = options.name || 'console';\n _this.stderrLevels = _this._stringArrayToSet(options.stderrLevels);\n _this.consoleWarnLevels = _this._stringArrayToSet(options.consoleWarnLevels);\n _this.eol = typeof options.eol === 'string' ? options.eol : os.EOL;\n\n _this.setMaxListeners(30);\n\n return _this;\n }\n /**\n * Core logging method exposed to Winston.\n * @param {Object} info - TODO: add param description.\n * @param {Function} callback - TODO: add param description.\n * @returns {undefined}\n */\n\n\n _createClass(Console, [{\n key: \"log\",\n value: function log(info, callback) {\n var _this2 = this;\n\n setImmediate(function () {\n return _this2.emit('logged', info);\n }); // Remark: what if there is no raw...?\n\n if (this.stderrLevels[info[LEVEL]]) {\n if (console._stderr) {\n // Node.js maps `process.stderr` to `console._stderr`.\n console._stderr.write(\"\".concat(info[MESSAGE]).concat(this.eol));\n } else {\n // console.error adds a newline\n console.error(info[MESSAGE]);\n }\n\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n\n return;\n } else if (this.consoleWarnLevels[info[LEVEL]]) {\n if (console._stderr) {\n // Node.js maps `process.stderr` to `console._stderr`.\n // in Node.js console.warn is an alias for console.error\n console._stderr.write(\"\".concat(info[MESSAGE]).concat(this.eol));\n } else {\n // console.warn adds a newline\n console.warn(info[MESSAGE]);\n }\n\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n\n return;\n }\n\n if (console._stdout) {\n // Node.js maps `process.stdout` to `console._stdout`.\n console._stdout.write(\"\".concat(info[MESSAGE]).concat(this.eol));\n } else {\n // console.log adds a newline.\n console.log(info[MESSAGE]);\n }\n\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n }\n /**\n * Returns a Set-like object with strArray's elements as keys (each with the\n * value true).\n * @param {Array} strArray - Array of Set-elements as strings.\n * @param {?string} [errMsg] - Custom error message thrown on invalid input.\n * @returns {Object} - TODO: add return description.\n * @private\n */\n\n }, {\n key: \"_stringArrayToSet\",\n value: function _stringArrayToSet(strArray, errMsg) {\n if (!strArray) return {};\n errMsg = errMsg || 'Cannot make set from type other than Array of string elements';\n\n if (!Array.isArray(strArray)) {\n throw new Error(errMsg);\n }\n\n return strArray.reduce(function (set, el) {\n if (typeof el !== 'string') {\n throw new Error(errMsg);\n }\n\n set[el] = true;\n return set;\n }, {});\n }\n }]);\n\n return Console;\n}(TransportStream);","/* eslint-disable complexity,max-statements */\n\n/**\n * file.js: Transport for outputting to a local log file.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar fs = require('fs');\n\nvar path = require('path');\n\nvar asyncSeries = require('async/series');\n\nvar zlib = require('zlib');\n\nvar _require = require('triple-beam'),\n MESSAGE = _require.MESSAGE;\n\nvar _require2 = require('readable-stream'),\n Stream = _require2.Stream,\n PassThrough = _require2.PassThrough;\n\nvar TransportStream = require('winston-transport');\n\nvar debug = require('@dabh/diagnostics')('winston:file');\n\nvar os = require('os');\n\nvar tailFile = require('../tail-file');\n/**\n * Transport for outputting to a local log file.\n * @type {File}\n * @extends {TransportStream}\n */\n\n\nmodule.exports = /*#__PURE__*/function (_TransportStream) {\n _inherits(File, _TransportStream);\n\n var _super = _createSuper(File);\n\n /**\n * Constructor function for the File transport object responsible for\n * persisting log messages and metadata to one or more files.\n * @param {Object} options - Options for this instance.\n */\n function File() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, File);\n\n _this = _super.call(this, options); // Expose the name of this Transport on the prototype.\n\n _this.name = options.name || 'file'; // Helper function which throws an `Error` in the event that any of the\n // rest of the arguments is present in `options`.\n\n function throwIf(target) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n args.slice(1).forEach(function (name) {\n if (options[name]) {\n throw new Error(\"Cannot set \".concat(name, \" and \").concat(target, \" together\"));\n }\n });\n } // Setup the base stream that always gets piped to to handle buffering.\n\n\n _this._stream = new PassThrough();\n\n _this._stream.setMaxListeners(30); // Bind this context for listener methods.\n\n\n _this._onError = _this._onError.bind(_assertThisInitialized(_this));\n\n if (options.filename || options.dirname) {\n throwIf('filename or dirname', 'stream');\n _this._basename = _this.filename = options.filename ? path.basename(options.filename) : 'winston.log';\n _this.dirname = options.dirname || path.dirname(options.filename);\n _this.options = options.options || {\n flags: 'a'\n };\n } else if (options.stream) {\n // eslint-disable-next-line no-console\n console.warn('options.stream will be removed in winston@4. Use winston.transports.Stream');\n throwIf('stream', 'filename', 'maxsize');\n _this._dest = _this._stream.pipe(_this._setupStream(options.stream));\n _this.dirname = path.dirname(_this._dest.path); // We need to listen for drain events when write() returns false. This\n // can make node mad at times.\n } else {\n throw new Error('Cannot log to file without filename or stream.');\n }\n\n _this.maxsize = options.maxsize || null;\n _this.rotationFormat = options.rotationFormat || false;\n _this.zippedArchive = options.zippedArchive || false;\n _this.maxFiles = options.maxFiles || null;\n _this.eol = typeof options.eol === 'string' ? options.eol : os.EOL;\n _this.tailable = options.tailable || false; // Internal state variables representing the number of files this instance\n // has created and the current size (in bytes) of the current logfile.\n\n _this._size = 0;\n _this._pendingSize = 0;\n _this._created = 0;\n _this._drain = false;\n _this._opening = false;\n _this._ending = false;\n if (_this.dirname) _this._createLogDirIfNotExist(_this.dirname);\n\n _this.open();\n\n return _this;\n }\n\n _createClass(File, [{\n key: \"finishIfEnding\",\n value: function finishIfEnding() {\n var _this2 = this;\n\n if (this._ending) {\n if (this._opening) {\n this.once('open', function () {\n _this2._stream.once('finish', function () {\n return _this2.emit('finish');\n });\n\n setImmediate(function () {\n return _this2._stream.end();\n });\n });\n } else {\n this._stream.once('finish', function () {\n return _this2.emit('finish');\n });\n\n setImmediate(function () {\n return _this2._stream.end();\n });\n }\n }\n }\n /**\n * Core logging method exposed to Winston. Metadata is optional.\n * @param {Object} info - TODO: add param description.\n * @param {Function} callback - TODO: add param description.\n * @returns {undefined}\n */\n\n }, {\n key: \"log\",\n value: function log(info) {\n var _this3 = this;\n\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};\n\n // Remark: (jcrugzz) What is necessary about this callback(null, true) now\n // when thinking about 3.x? Should silent be handled in the base\n // TransportStream _write method?\n if (this.silent) {\n callback();\n return true;\n } // Output stream buffer is full and has asked us to wait for the drain event\n\n\n if (this._drain) {\n this._stream.once('drain', function () {\n _this3._drain = false;\n\n _this3.log(info, callback);\n });\n\n return;\n }\n\n if (this._rotate) {\n this._stream.once('rotate', function () {\n _this3._rotate = false;\n\n _this3.log(info, callback);\n });\n\n return;\n } // Grab the raw string and append the expected EOL.\n\n\n var output = \"\".concat(info[MESSAGE]).concat(this.eol);\n var bytes = Buffer.byteLength(output); // After we have written to the PassThrough check to see if we need\n // to rotate to the next file.\n //\n // Remark: This gets called too early and does not depict when data\n // has been actually flushed to disk.\n\n function logged() {\n var _this4 = this;\n\n this._size += bytes;\n this._pendingSize -= bytes;\n debug('logged %s %s', this._size, output);\n this.emit('logged', info); // Do not attempt to rotate files while opening\n\n if (this._opening) {\n return;\n } // Check to see if we need to end the stream and create a new one.\n\n\n if (!this._needsNewFile()) {\n return;\n } // End the current stream, ensure it flushes and create a new one.\n // This could potentially be optimized to not run a stat call but its\n // the safest way since we are supporting `maxFiles`.\n\n\n this._rotate = true;\n\n this._endStream(function () {\n return _this4._rotateFile();\n });\n } // Keep track of the pending bytes being written while files are opening\n // in order to properly rotate the PassThrough this._stream when the file\n // eventually does open.\n\n\n this._pendingSize += bytes;\n\n if (this._opening && !this.rotatedWhileOpening && this._needsNewFile(this._size + this._pendingSize)) {\n this.rotatedWhileOpening = true;\n }\n\n var written = this._stream.write(output, logged.bind(this));\n\n if (!written) {\n this._drain = true;\n\n this._stream.once('drain', function () {\n _this3._drain = false;\n callback();\n });\n } else {\n callback(); // eslint-disable-line callback-return\n }\n\n debug('written', written, this._drain);\n this.finishIfEnding();\n return written;\n }\n /**\n * Query the transport. Options object is optional.\n * @param {Object} options - Loggly-like query options for this instance.\n * @param {function} callback - Continuation to respond to when complete.\n * TODO: Refactor me.\n */\n\n }, {\n key: \"query\",\n value: function query(options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n options = normalizeQuery(options);\n var file = path.join(this.dirname, this.filename);\n var buff = '';\n var results = [];\n var row = 0;\n var stream = fs.createReadStream(file, {\n encoding: 'utf8'\n });\n stream.on('error', function (err) {\n if (stream.readable) {\n stream.destroy();\n }\n\n if (!callback) {\n return;\n }\n\n return err.code !== 'ENOENT' ? callback(err) : callback(null, results);\n });\n stream.on('data', function (data) {\n data = (buff + data).split(/\\n+/);\n var l = data.length - 1;\n var i = 0;\n\n for (; i < l; i++) {\n if (!options.start || row >= options.start) {\n add(data[i]);\n }\n\n row++;\n }\n\n buff = data[l];\n });\n stream.on('close', function () {\n if (buff) {\n add(buff, true);\n }\n\n if (options.order === 'desc') {\n results = results.reverse();\n } // eslint-disable-next-line callback-return\n\n\n if (callback) callback(null, results);\n });\n\n function add(buff, attempt) {\n try {\n var log = JSON.parse(buff);\n\n if (check(log)) {\n push(log);\n }\n } catch (e) {\n if (!attempt) {\n stream.emit('error', e);\n }\n }\n }\n\n function push(log) {\n if (options.rows && results.length >= options.rows && options.order !== 'desc') {\n if (stream.readable) {\n stream.destroy();\n }\n\n return;\n }\n\n if (options.fields) {\n log = options.fields.reduce(function (obj, key) {\n obj[key] = log[key];\n return obj;\n }, {});\n }\n\n if (options.order === 'desc') {\n if (results.length >= options.rows) {\n results.shift();\n }\n }\n\n results.push(log);\n }\n\n function check(log) {\n if (!log) {\n return;\n }\n\n if (_typeof(log) !== 'object') {\n return;\n }\n\n var time = new Date(log.timestamp);\n\n if (options.from && time < options.from || options.until && time > options.until || options.level && options.level !== log.level) {\n return;\n }\n\n return true;\n }\n\n function normalizeQuery(options) {\n options = options || {}; // limit\n\n options.rows = options.rows || options.limit || 10; // starting row offset\n\n options.start = options.start || 0; // now\n\n options.until = options.until || new Date();\n\n if (_typeof(options.until) !== 'object') {\n options.until = new Date(options.until);\n } // now - 24\n\n\n options.from = options.from || options.until - 24 * 60 * 60 * 1000;\n\n if (_typeof(options.from) !== 'object') {\n options.from = new Date(options.from);\n } // 'asc' or 'desc'\n\n\n options.order = options.order || 'desc';\n return options;\n }\n }\n /**\n * Returns a log stream for this transport. Options object is optional.\n * @param {Object} options - Stream options for this instance.\n * @returns {Stream} - TODO: add return description.\n * TODO: Refactor me.\n */\n\n }, {\n key: \"stream\",\n value: function stream() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var file = path.join(this.dirname, this.filename);\n var stream = new Stream();\n var tail = {\n file: file,\n start: options.start\n };\n stream.destroy = tailFile(tail, function (err, line) {\n if (err) {\n return stream.emit('error', err);\n }\n\n try {\n stream.emit('data', line);\n line = JSON.parse(line);\n stream.emit('log', line);\n } catch (e) {\n stream.emit('error', e);\n }\n });\n return stream;\n }\n /**\n * Checks to see the filesize of.\n * @returns {undefined}\n */\n\n }, {\n key: \"open\",\n value: function open() {\n var _this5 = this;\n\n // If we do not have a filename then we were passed a stream and\n // don't need to keep track of size.\n if (!this.filename) return;\n if (this._opening) return;\n this._opening = true; // Stat the target file to get the size and create the stream.\n\n this.stat(function (err, size) {\n if (err) {\n return _this5.emit('error', err);\n }\n\n debug('stat done: %s { size: %s }', _this5.filename, size);\n _this5._size = size;\n _this5._dest = _this5._createStream(_this5._stream);\n _this5._opening = false;\n\n _this5.once('open', function () {\n if (_this5._stream.eventNames().includes('rotate')) {\n _this5._stream.emit('rotate');\n } else {\n _this5._rotate = false;\n }\n });\n });\n }\n /**\n * Stat the file and assess information in order to create the proper stream.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n */\n\n }, {\n key: \"stat\",\n value: function stat(callback) {\n var _this6 = this;\n\n var target = this._getFile();\n\n var fullpath = path.join(this.dirname, target);\n fs.stat(fullpath, function (err, stat) {\n if (err && err.code === 'ENOENT') {\n debug('ENOENT ok', fullpath); // Update internally tracked filename with the new target name.\n\n _this6.filename = target;\n return callback(null, 0);\n }\n\n if (err) {\n debug(\"err \".concat(err.code, \" \").concat(fullpath));\n return callback(err);\n }\n\n if (!stat || _this6._needsNewFile(stat.size)) {\n // If `stats.size` is greater than the `maxsize` for this\n // instance then try again.\n return _this6._incFile(function () {\n return _this6.stat(callback);\n });\n } // Once we have figured out what the filename is, set it\n // and return the size.\n\n\n _this6.filename = target;\n callback(null, stat.size);\n });\n }\n /**\n * Closes the stream associated with this instance.\n * @param {function} cb - TODO: add param description.\n * @returns {undefined}\n */\n\n }, {\n key: \"close\",\n value: function close(cb) {\n var _this7 = this;\n\n if (!this._stream) {\n return;\n }\n\n this._stream.end(function () {\n if (cb) {\n cb(); // eslint-disable-line callback-return\n }\n\n _this7.emit('flush');\n\n _this7.emit('closed');\n });\n }\n /**\n * TODO: add method description.\n * @param {number} size - TODO: add param description.\n * @returns {undefined}\n */\n\n }, {\n key: \"_needsNewFile\",\n value: function _needsNewFile(size) {\n size = size || this._size;\n return this.maxsize && size >= this.maxsize;\n }\n /**\n * TODO: add method description.\n * @param {Error} err - TODO: add param description.\n * @returns {undefined}\n */\n\n }, {\n key: \"_onError\",\n value: function _onError(err) {\n this.emit('error', err);\n }\n /**\n * TODO: add method description.\n * @param {Stream} stream - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"_setupStream\",\n value: function _setupStream(stream) {\n stream.on('error', this._onError);\n return stream;\n }\n /**\n * TODO: add method description.\n * @param {Stream} stream - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n */\n\n }, {\n key: \"_cleanupStream\",\n value: function _cleanupStream(stream) {\n stream.removeListener('error', this._onError);\n return stream;\n }\n /**\n * TODO: add method description.\n */\n\n }, {\n key: \"_rotateFile\",\n value: function _rotateFile() {\n var _this8 = this;\n\n this._incFile(function () {\n return _this8.open();\n });\n }\n /**\n * Unpipe from the stream that has been marked as full and end it so it\n * flushes to disk.\n *\n * @param {function} callback - Callback for when the current file has closed.\n * @private\n */\n\n }, {\n key: \"_endStream\",\n value: function _endStream() {\n var _this9 = this;\n\n var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};\n\n if (this._dest) {\n this._stream.unpipe(this._dest);\n\n this._dest.end(function () {\n _this9._cleanupStream(_this9._dest);\n\n callback();\n });\n } else {\n callback(); // eslint-disable-line callback-return\n }\n }\n /**\n * Returns the WritableStream for the active file on this instance. If we\n * should gzip the file then a zlib stream is returned.\n *\n * @param {ReadableStream} source – PassThrough to pipe to the file when open.\n * @returns {WritableStream} Stream that writes to disk for the active file.\n */\n\n }, {\n key: \"_createStream\",\n value: function _createStream(source) {\n var _this10 = this;\n\n var fullpath = path.join(this.dirname, this.filename);\n debug('create stream start', fullpath, this.options);\n var dest = fs.createWriteStream(fullpath, this.options) // TODO: What should we do with errors here?\n .on('error', function (err) {\n return debug(err);\n }).on('close', function () {\n return debug('close', dest.path, dest.bytesWritten);\n }).on('open', function () {\n debug('file open ok', fullpath);\n\n _this10.emit('open', fullpath);\n\n source.pipe(dest); // If rotation occured during the open operation then we immediately\n // start writing to a new PassThrough, begin opening the next file\n // and cleanup the previous source and dest once the source has drained.\n\n if (_this10.rotatedWhileOpening) {\n _this10._stream = new PassThrough();\n\n _this10._stream.setMaxListeners(30);\n\n _this10._rotateFile();\n\n _this10.rotatedWhileOpening = false;\n\n _this10._cleanupStream(dest);\n\n source.end();\n }\n });\n debug('create stream ok', fullpath);\n\n if (this.zippedArchive) {\n var gzip = zlib.createGzip();\n gzip.pipe(dest);\n return gzip;\n }\n\n return dest;\n }\n /**\n * TODO: add method description.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n */\n\n }, {\n key: \"_incFile\",\n value: function _incFile(callback) {\n debug('_incFile', this.filename);\n var ext = path.extname(this._basename);\n var basename = path.basename(this._basename, ext);\n\n if (!this.tailable) {\n this._created += 1;\n\n this._checkMaxFilesIncrementing(ext, basename, callback);\n } else {\n this._checkMaxFilesTailable(ext, basename, callback);\n }\n }\n /**\n * Gets the next filename to use for this instance in the case that log\n * filesizes are being capped.\n * @returns {string} - TODO: add return description.\n * @private\n */\n\n }, {\n key: \"_getFile\",\n value: function _getFile() {\n var ext = path.extname(this._basename);\n var basename = path.basename(this._basename, ext);\n var isRotation = this.rotationFormat ? this.rotationFormat() : this._created; // Caveat emptor (indexzero): rotationFormat() was broken by design When\n // combined with max files because the set of files to unlink is never\n // stored.\n\n var target = !this.tailable && this._created ? \"\".concat(basename).concat(isRotation).concat(ext) : \"\".concat(basename).concat(ext);\n return this.zippedArchive && !this.tailable ? \"\".concat(target, \".gz\") : target;\n }\n /**\n * Increment the number of files created or checked by this instance.\n * @param {mixed} ext - TODO: add param description.\n * @param {mixed} basename - TODO: add param description.\n * @param {mixed} callback - TODO: add param description.\n * @returns {undefined}\n * @private\n */\n\n }, {\n key: \"_checkMaxFilesIncrementing\",\n value: function _checkMaxFilesIncrementing(ext, basename, callback) {\n // Check for maxFiles option and delete file.\n if (!this.maxFiles || this._created < this.maxFiles) {\n return setImmediate(callback);\n }\n\n var oldest = this._created - this.maxFiles;\n var isOldest = oldest !== 0 ? oldest : '';\n var isZipped = this.zippedArchive ? '.gz' : '';\n var filePath = \"\".concat(basename).concat(isOldest).concat(ext).concat(isZipped);\n var target = path.join(this.dirname, filePath);\n fs.unlink(target, callback);\n }\n /**\n * Roll files forward based on integer, up to maxFiles. e.g. if base if\n * file.log and it becomes oversized, roll to file1.log, and allow file.log\n * to be re-used. If file is oversized again, roll file1.log to file2.log,\n * roll file.log to file1.log, and so on.\n * @param {mixed} ext - TODO: add param description.\n * @param {mixed} basename - TODO: add param description.\n * @param {mixed} callback - TODO: add param description.\n * @returns {undefined}\n * @private\n */\n\n }, {\n key: \"_checkMaxFilesTailable\",\n value: function _checkMaxFilesTailable(ext, basename, callback) {\n var _this12 = this;\n\n var tasks = [];\n\n if (!this.maxFiles) {\n return;\n } // const isZipped = this.zippedArchive ? '.gz' : '';\n\n\n var isZipped = this.zippedArchive ? '.gz' : '';\n\n for (var x = this.maxFiles - 1; x > 1; x--) {\n tasks.push(function (i, cb) {\n var _this11 = this;\n\n var fileName = \"\".concat(basename).concat(i - 1).concat(ext).concat(isZipped);\n var tmppath = path.join(this.dirname, fileName);\n fs.exists(tmppath, function (exists) {\n if (!exists) {\n return cb(null);\n }\n\n fileName = \"\".concat(basename).concat(i).concat(ext).concat(isZipped);\n fs.rename(tmppath, path.join(_this11.dirname, fileName), cb);\n });\n }.bind(this, x));\n }\n\n asyncSeries(tasks, function () {\n fs.rename(path.join(_this12.dirname, \"\".concat(basename).concat(ext)), path.join(_this12.dirname, \"\".concat(basename, \"1\").concat(ext).concat(isZipped)), callback);\n });\n }\n }, {\n key: \"_createLogDirIfNotExist\",\n value: function _createLogDirIfNotExist(dirPath) {\n /* eslint-disable no-sync */\n if (!fs.existsSync(dirPath)) {\n fs.mkdirSync(dirPath, {\n recursive: true\n });\n }\n /* eslint-enable no-sync */\n\n }\n }]);\n\n return File;\n}(TransportStream);","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = series;\n\nvar _parallel2 = require('./internal/parallel.js');\n\nvar _parallel3 = _interopRequireDefault(_parallel2);\n\nvar _eachOfSeries = require('./eachOfSeries.js');\n\nvar _eachOfSeries2 = _interopRequireDefault(_eachOfSeries);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Run the functions in the `tasks` collection in series, each one running once\n * the previous function has completed. If any functions in the series pass an\n * error to its callback, no more functions are run, and `callback` is\n * immediately called with the value of the error. Otherwise, `callback`\n * receives an array of results when `tasks` have completed.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function, and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.series}.\n *\n * **Note** that while many implementations preserve the order of object\n * properties, the [ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)\n * explicitly states that\n *\n * > The mechanics and order of enumerating the properties is not specified.\n *\n * So if you rely on the order in which your series of functions are executed,\n * and want this to work on all platforms, consider using an array.\n *\n * @name series\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection containing\n * [async functions]{@link AsyncFunction} to run in series.\n * Each function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This function gets a results array (or object)\n * containing all the result arguments passed to the `task` callbacks. Invoked\n * with (err, result).\n * @return {Promise} a promise, if no callback is passed\n * @example\n *\n * //Using Callbacks\n * async.series([\n * function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 'two');\n * }, 100);\n * }\n * ], function(err, results) {\n * console.log(results);\n * // results is equal to ['one','two']\n * });\n *\n * // an example using objects instead of arrays\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * });\n *\n * //Using Promises\n * async.series([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ]).then(results => {\n * console.log(results);\n * // results is equal to ['one','two']\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // an example using an object instead of an array\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * }).then(results => {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * //Using async/await\n * async () => {\n * try {\n * let results = await async.series([\n * function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 'two');\n * }, 100);\n * }\n * ]);\n * console.log(results);\n * // results is equal to ['one','two']\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // an example using an object instead of an array\n * async () => {\n * try {\n * let results = await async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * });\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\nfunction series(tasks, callback) {\n return (0, _parallel3.default)(_eachOfSeries2.default, tasks, callback);\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _isArrayLike = require('./isArrayLike.js');\n\nvar _isArrayLike2 = _interopRequireDefault(_isArrayLike);\n\nvar _wrapAsync = require('./wrapAsync.js');\n\nvar _wrapAsync2 = _interopRequireDefault(_wrapAsync);\n\nvar _awaitify = require('./awaitify.js');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = (0, _awaitify2.default)((eachfn, tasks, callback) => {\n var results = (0, _isArrayLike2.default)(tasks) ? [] : {};\n\n eachfn(tasks, (task, key, taskCb) => {\n (0, _wrapAsync2.default)(task)((err, ...result) => {\n if (result.length < 2) {\n [result] = result;\n }\n results[key] = result;\n taskCb(err);\n });\n }, err => callback(err, results));\n}, 3);\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _eachOfLimit = require('./eachOfLimit.js');\n\nvar _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);\n\nvar _awaitify = require('./internal/awaitify.js');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.\n *\n * @name eachOfSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\nfunction eachOfSeries(coll, iteratee, callback) {\n return (0, _eachOfLimit2.default)(coll, 1, iteratee, callback);\n}\nexports.default = (0, _awaitify2.default)(eachOfSeries, 3);\nmodule.exports = exports['default'];","/**\n * tail-file.js: TODO: add file header description.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nvar fs = require('fs');\n\nvar _require = require('string_decoder'),\n StringDecoder = _require.StringDecoder;\n\nvar _require2 = require('readable-stream'),\n Stream = _require2.Stream;\n/**\n * Simple no-op function.\n * @returns {undefined}\n */\n\n\nfunction noop() {}\n/**\n * TODO: add function description.\n * @param {Object} options - Options for tail.\n * @param {function} iter - Iterator function to execute on every line.\n* `tail -f` a file. Options must include file.\n * @returns {mixed} - TODO: add return description.\n */\n\n\nmodule.exports = function (options, iter) {\n var buffer = Buffer.alloc(64 * 1024);\n var decode = new StringDecoder('utf8');\n var stream = new Stream();\n var buff = '';\n var pos = 0;\n var row = 0;\n\n if (options.start === -1) {\n delete options.start;\n }\n\n stream.readable = true;\n\n stream.destroy = function () {\n stream.destroyed = true;\n stream.emit('end');\n stream.emit('close');\n };\n\n fs.open(options.file, 'a+', '0644', function (err, fd) {\n if (err) {\n if (!iter) {\n stream.emit('error', err);\n } else {\n iter(err);\n }\n\n stream.destroy();\n return;\n }\n\n (function read() {\n if (stream.destroyed) {\n fs.close(fd, noop);\n return;\n }\n\n return fs.read(fd, buffer, 0, buffer.length, pos, function (error, bytes) {\n if (error) {\n if (!iter) {\n stream.emit('error', error);\n } else {\n iter(error);\n }\n\n stream.destroy();\n return;\n }\n\n if (!bytes) {\n if (buff) {\n // eslint-disable-next-line eqeqeq\n if (options.start == null || row > options.start) {\n if (!iter) {\n stream.emit('line', buff);\n } else {\n iter(null, buff);\n }\n }\n\n row++;\n buff = '';\n }\n\n return setTimeout(read, 1000);\n }\n\n var data = decode.write(buffer.slice(0, bytes));\n\n if (!iter) {\n stream.emit('data', data);\n }\n\n data = (buff + data).split(/\\n+/);\n var l = data.length - 1;\n var i = 0;\n\n for (; i < l; i++) {\n // eslint-disable-next-line eqeqeq\n if (options.start == null || row > options.start) {\n if (!iter) {\n stream.emit('line', data[i]);\n } else {\n iter(null, data[i]);\n }\n }\n\n row++;\n }\n\n buff = data[l];\n pos += bytes;\n return read();\n });\n })();\n });\n\n if (!iter) {\n return stream;\n }\n\n return stream.destroy;\n};","/**\n * http.js: Transport for outputting to a json-rpcserver.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar http = require('http');\n\nvar https = require('https');\n\nvar _require = require('readable-stream'),\n Stream = _require.Stream;\n\nvar TransportStream = require('winston-transport');\n/**\n * Transport for outputting to a json-rpc server.\n * @type {Stream}\n * @extends {TransportStream}\n */\n\n\nmodule.exports = /*#__PURE__*/function (_TransportStream) {\n _inherits(Http, _TransportStream);\n\n var _super = _createSuper(Http);\n\n /**\n * Constructor function for the Http transport object responsible for\n * persisting log messages and metadata to a terminal or TTY.\n * @param {!Object} [options={}] - Options for this instance.\n */\n function Http() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Http);\n\n _this = _super.call(this, options);\n _this.options = options;\n _this.name = options.name || 'http';\n _this.ssl = !!options.ssl;\n _this.host = options.host || 'localhost';\n _this.port = options.port;\n _this.auth = options.auth;\n _this.path = options.path || '';\n _this.agent = options.agent;\n _this.headers = options.headers || {};\n _this.headers['content-type'] = 'application/json';\n\n if (!_this.port) {\n _this.port = _this.ssl ? 443 : 80;\n }\n\n return _this;\n }\n /**\n * Core logging method exposed to Winston.\n * @param {Object} info - TODO: add param description.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n */\n\n\n _createClass(Http, [{\n key: \"log\",\n value: function log(info, callback) {\n var _this2 = this;\n\n this._request(info, function (err, res) {\n if (res && res.statusCode !== 200) {\n err = new Error(\"Invalid HTTP Status Code: \".concat(res.statusCode));\n }\n\n if (err) {\n _this2.emit('warn', err);\n } else {\n _this2.emit('logged', info);\n }\n }); // Remark: (jcrugzz) Fire and forget here so requests dont cause buffering\n // and block more requests from happening?\n\n\n if (callback) {\n setImmediate(callback);\n }\n }\n /**\n * Query the transport. Options object is optional.\n * @param {Object} options - Loggly-like query options for this instance.\n * @param {function} callback - Continuation to respond to when complete.\n * @returns {undefined}\n */\n\n }, {\n key: \"query\",\n value: function query(options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n options = {\n method: 'query',\n params: this.normalizeQuery(options)\n };\n\n if (options.params.path) {\n options.path = options.params.path;\n delete options.params.path;\n }\n\n if (options.params.auth) {\n options.auth = options.params.auth;\n delete options.params.auth;\n }\n\n this._request(options, function (err, res, body) {\n if (res && res.statusCode !== 200) {\n err = new Error(\"Invalid HTTP Status Code: \".concat(res.statusCode));\n }\n\n if (err) {\n return callback(err);\n }\n\n if (typeof body === 'string') {\n try {\n body = JSON.parse(body);\n } catch (e) {\n return callback(e);\n }\n }\n\n callback(null, body);\n });\n }\n /**\n * Returns a log stream for this transport. Options object is optional.\n * @param {Object} options - Stream options for this instance.\n * @returns {Stream} - TODO: add return description\n */\n\n }, {\n key: \"stream\",\n value: function stream() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var stream = new Stream();\n options = {\n method: 'stream',\n params: options\n };\n\n if (options.params.path) {\n options.path = options.params.path;\n delete options.params.path;\n }\n\n if (options.params.auth) {\n options.auth = options.params.auth;\n delete options.params.auth;\n }\n\n var buff = '';\n\n var req = this._request(options);\n\n stream.destroy = function () {\n return req.destroy();\n };\n\n req.on('data', function (data) {\n data = (buff + data).split(/\\n+/);\n var l = data.length - 1;\n var i = 0;\n\n for (; i < l; i++) {\n try {\n stream.emit('log', JSON.parse(data[i]));\n } catch (e) {\n stream.emit('error', e);\n }\n }\n\n buff = data[l];\n });\n req.on('error', function (err) {\n return stream.emit('error', err);\n });\n return stream;\n }\n /**\n * Make a request to a winstond server or any http server which can\n * handle json-rpc.\n * @param {function} options - Options to sent the request.\n * @param {function} callback - Continuation to respond to when complete.\n */\n\n }, {\n key: \"_request\",\n value: function _request(options, callback) {\n options = options || {};\n var auth = options.auth || this.auth;\n var path = options.path || this.path || '';\n delete options.auth;\n delete options.path; // Prepare options for outgoing HTTP request\n\n var headers = Object.assign({}, this.headers);\n\n if (auth && auth.bearer) {\n headers.Authorization = \"Bearer \".concat(auth.bearer);\n }\n\n var req = (this.ssl ? https : http).request(_objectSpread(_objectSpread({}, this.options), {}, {\n method: 'POST',\n host: this.host,\n port: this.port,\n path: \"/\".concat(path.replace(/^\\//, '')),\n headers: headers,\n auth: auth && auth.username && auth.password ? \"\".concat(auth.username, \":\").concat(auth.password) : '',\n agent: this.agent\n }));\n req.on('error', callback);\n req.on('response', function (res) {\n return res.on('end', function () {\n return callback(null, res);\n }).resume();\n });\n req.end(Buffer.from(JSON.stringify(options), 'utf8'));\n }\n }]);\n\n return Http;\n}(TransportStream);","/**\n * stream.js: Transport for outputting to any arbitrary stream.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar isStream = require('is-stream');\n\nvar _require = require('triple-beam'),\n MESSAGE = _require.MESSAGE;\n\nvar os = require('os');\n\nvar TransportStream = require('winston-transport');\n/**\n * Transport for outputting to any arbitrary stream.\n * @type {Stream}\n * @extends {TransportStream}\n */\n\n\nmodule.exports = /*#__PURE__*/function (_TransportStream) {\n _inherits(Stream, _TransportStream);\n\n var _super = _createSuper(Stream);\n\n /**\n * Constructor function for the Console transport object responsible for\n * persisting log messages and metadata to a terminal or TTY.\n * @param {!Object} [options={}] - Options for this instance.\n */\n function Stream() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Stream);\n\n _this = _super.call(this, options);\n\n if (!options.stream || !isStream(options.stream)) {\n throw new Error('options.stream is required.');\n } // We need to listen for drain events when write() returns false. This can\n // make node mad at times.\n\n\n _this._stream = options.stream;\n\n _this._stream.setMaxListeners(Infinity);\n\n _this.isObjectMode = options.stream._writableState.objectMode;\n _this.eol = typeof options.eol === 'string' ? options.eol : os.EOL;\n return _this;\n }\n /**\n * Core logging method exposed to Winston.\n * @param {Object} info - TODO: add param description.\n * @param {Function} callback - TODO: add param description.\n * @returns {undefined}\n */\n\n\n _createClass(Stream, [{\n key: \"log\",\n value: function log(info, callback) {\n var _this2 = this;\n\n setImmediate(function () {\n return _this2.emit('logged', info);\n });\n\n if (this.isObjectMode) {\n this._stream.write(info);\n\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n\n return;\n }\n\n this._stream.write(\"\".concat(info[MESSAGE]).concat(this.eol));\n\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n\n return;\n }\n }]);\n\n return Stream;\n}(TransportStream);","import { getSource } from '../utils/miscUtils';\nimport PlayerService from './player.service';\nimport { config } from '../server';\nimport { playerLogger } from './player.utils';\nimport { PhoneEvents } from '../../../typings/phone';\n\nonNet(PhoneEvents.FETCH_CREDENTIALS, () => {\n const src = getSource();\n const phoneNumber = PlayerService.getPlayer(src).getPhoneNumber();\n\n emitNet(PhoneEvents.SEND_CREDENTIALS, src, phoneNumber);\n});\n\n/**\n * Essentially this whole file acts as a controller layer\n * for player related actions. Everything here is registered,\n * within the global scope like routes in a web server.\n */\n\n// If multicharacter mode is disabled, we instantiate a new\n// NPWD player by ourselves without waiting for an export\n\nif (!config.general.useResourceIntegration) {\n on('playerJoining', async () => {\n const src = getSource();\n await PlayerService.handleNewPlayerJoined(src);\n });\n}\n\n// Handle removing from player maps when player disconnects\non('playerDropped', async () => {\n const src = getSource();\n // Get identifier for player to remove\n try {\n await PlayerService.handleUnloadPlayerEvent(src);\n } catch (e) {\n playerLogger.debug(`${src} failed to unload, likely was never loaded in the first place.`);\n }\n});\n\n// Can use this to debug the player table if needed. Disabled by default\n// RegisterCommand(\n// 'getPlayers',\n// () => {\n// playerLogger.debug(Players);\n// },\n// false,\n// );\n\n// Used for debug purposes, if the resource is restarted and the multicharacter option is false\n// we will handle all the currently online players\nif (!config.general.useResourceIntegration) {\n on('onServerResourceStart', async (resource: string) => {\n if (resource === GetCurrentResourceName()) {\n const onlinePlayers = getPlayers();\n for (const player of onlinePlayers) {\n await PlayerService.handleNewPlayerJoined(parseInt(player));\n }\n }\n });\n}\n","import { config } from '../server';\nimport DbInterface from '../db/db_wrapper';\nimport { generateUniquePhoneNumber } from './generateUniquePhoneNumber';\nimport { playerLogger } from '../players/player.utils';\nimport { ResultSetHeader } from 'mysql2';\n\nexport async function findOrGeneratePhoneNumber(identifier: string): Promise {\n const query = `SELECT ${config.database.phoneNumberColumn} FROM ${config.database.playerTable} WHERE ${config.database.identifierColumn} = ? LIMIT 1`;\n const [res] = await DbInterface._rawExec(query, [identifier]);\n\n playerLogger.debug('Find user for number generation data >');\n playerLogger.debug(res);\n\n const castRes = res as Record[];\n\n if (castRes && castRes[0] && castRes[0][config.database.phoneNumberColumn] !== null) {\n return castRes[0][config.database.phoneNumberColumn] as string;\n }\n\n playerLogger.debug('Phone number was returned as null, generating new number');\n const gennedNumber = await generateUniquePhoneNumber();\n\n playerLogger.debug(`Phone number generated > ${gennedNumber}`);\n\n const updateQuery = `UPDATE ${config.database.playerTable} SET ${config.database.phoneNumberColumn} = ? WHERE ${config.database.identifierColumn} = ?`;\n // Update profile with new generated number\n const result = await DbInterface._rawExec(updateQuery, [gennedNumber, identifier]);\n\n // Temporary bad typing, need to update dbInterface\n if (!result || !result[0] || !(result[0] as ResultSetHeader).affectedRows) {\n playerLogger.error(`Failed to store phone number in database`);\n playerLogger.error(\n `UPDATE ${config.database.playerTable} SET ${config.database.phoneNumberColumn} = ${gennedNumber} WHERE ${config.database.identifierColumn} = ${identifier}`,\n );\n }\n\n return gennedNumber;\n}\n","import { mainLogger } from '../sv_logger';\n\nconst profilerLog = mainLogger.child({ module: 'profiler' });\n\nconst RESOURCE_NAME = GetCurrentResourceName();\n\n// Simple higher order function profiler\n// currently targeted towards ms as unit and db queries\n// but can be altered to be generic in future\nexport const withProfile = async (fn: Function, ...args: any[]) => {\n const startTime = process.hrtime.bigint();\n\n // https://forum.cfx.re/t/node-mysql2-question-about-performance-process-nexttick/4550064/2?u=taso\n ScheduleResourceTick(RESOURCE_NAME);\n const res = await fn(...args);\n\n const endTime = process.hrtime.bigint();\n\n const timeMs = Number(endTime - startTime) / 1e6;\n\n profilerLog.info(`Executed '${fn.name} (${[...args].join(', ')}) in ${timeMs}ms'`);\n\n return res;\n};\n","import { CreatePlayerInstance } from './player.interfaces';\n\nexport class Player {\n public readonly source: number;\n public readonly username: string;\n private _phoneNumber: string;\n private _identifier: string;\n private _firstname: string | null;\n private _lastname: string | null;\n\n constructor({ source, identifier, phoneNumber, username }: CreatePlayerInstance) {\n this.source = source;\n this._identifier = identifier;\n this._phoneNumber = phoneNumber;\n this.username = username;\n }\n\n public getIdentifier(): string {\n return this._identifier;\n }\n\n /**\n * Set the identifier for a player, useful in systems with multicharacter\n * players\n * @param identifier {string} - Set the identifier for a player\n */\n public setIdentifier(identifier: string): Player {\n this._identifier = identifier;\n return this;\n }\n\n /**\n * Returns the stored firstname for a user\n */\n public getFirstName(): string | null {\n return this._firstname;\n }\n\n /**\n * Set the first name for a user\n * @param firstname {string} The first name to set for the user\n **/\n public setFirstName(firstname: string): Player {\n this._firstname = firstname;\n return this;\n }\n\n /**\n * Returns the stored lastname for a user\n **/\n public getLastName(): string | null {\n return this._lastname;\n }\n\n /**\n * Set the last name for a user\n * @param lastname {string} The last name to set for the user\n **/\n public setLastName(lastname: string): Player {\n this._lastname = lastname;\n return this;\n }\n\n /**\n * Get the full name of the user\n **/\n public getName(): string | null {\n if (!this._firstname || !this._lastname) return null;\n return `${this._firstname} ${this._lastname}`;\n }\n\n /**\n * Get the stored phone number for a user\n **/\n public getPhoneNumber(): string {\n return this._phoneNumber;\n }\n\n /**\n * Set the stored phone number for a user\n **/\n public setPhoneNumber(number: string): Player {\n this._phoneNumber = number;\n return this;\n }\n}\n","import { config } from '../server';\n\nexport const getPlayerGameLicense = (src: number): null | string => {\n // Parse specifically for license identifier as its\n // guaranteed\n const playerIdentifiers = getPlayerIdentifiers(src.toString());\n\n let playerIdentifier;\n for (const identifier of playerIdentifiers) {\n if (identifier.includes(config.database.identifierType + ':')) {\n if (config.database.useIdentifierPrefix) playerIdentifier = identifier;\n else playerIdentifier = identifier.split(':')[1];\n }\n }\n\n if (!playerIdentifier) return null;\n return playerIdentifier;\n};\n","import { config } from '../config';\nimport DbInterface from '../db/db_wrapper';\n\nexport class PlayerRepo {\n async fetchIdentifierFromPhoneNumber(phoneNumber: string): Promise {\n const query = `SELECT ${config.database.identifierColumn} FROM ${config.database.playerTable} WHERE ${config.database.phoneNumberColumn} = ?`;\n const [results] = await DbInterface._rawExec(query, [phoneNumber]);\n // Get identifier from results\n return (results as any[])[0][config.database.identifierColumn] || null;\n }\n}\n\nexport default new PlayerRepo();\n","import {\n MarketplaceDeleteDTO,\n MarketplaceListing,\n MarketplaceListingBase,\n ReportListingDTO,\n} from '../../../typings/marketplace';\nimport { ResultSetHeader } from 'mysql2';\nimport DbInterface from '../db/db_wrapper';\n\nexport class _MarketplaceDB {\n async addListing(\n identifier: string,\n username: string,\n name: string,\n number: string,\n listing: MarketplaceListingBase,\n ): Promise {\n const query =\n 'INSERT INTO npwd_marketplace_listings (identifier, username, name, number, title, url, description) VALUES (?, ?, ?, ?, ?, ?, ?)';\n\n const [result] = await DbInterface._rawExec(query, [\n identifier,\n username,\n name,\n number,\n listing.title,\n listing.url,\n listing.description,\n ]);\n\n const resultCast = result as ResultSetHeader;\n\n return resultCast.insertId;\n }\n\n async fetchListings(): Promise {\n const query = 'SELECT * FROM npwd_marketplace_listings WHERE reported = 0 ORDER BY id DESC';\n\n const [results] = await DbInterface._rawExec(query);\n return results;\n }\n\n async deleteListing(listingId: number, identifier: string): Promise {\n const query = 'DELETE FROM npwd_marketplace_listings WHERE id = ? AND identifier = ?';\n\n await DbInterface._rawExec(query, [listingId, identifier]);\n }\n\n async deleteListingsOnDrop(identifier: string) {\n const query = `DELETE FROM npwd_marketplace_listings WHERE identifier = ? AND reported = 0`;\n await DbInterface._rawExec(query, [identifier]);\n }\n\n async getListing(listingId: number): Promise {\n const query = `SELECT * FROM npwd_marketplace_listings WHERE id = ?`;\n const [results] = await DbInterface._rawExec(query, [listingId]);\n const listings = results;\n return listings[0];\n }\n\n async getListingIdsByIdentifier(identifier: string): Promise {\n const query = `SELECT id FROM npwd_marketplace_listings WHERE identifier = ?`;\n const [results] = await DbInterface._rawExec(query, [identifier]);\n\n return results;\n }\n\n async reportListing(listing: ReportListingDTO): Promise {\n const query = `UPDATE npwd_marketplace_listings SET reported = 1 WHERE id = ?`;\n await DbInterface._rawExec(query, [listing.id]);\n }\n\n async doesListingExist(listing: MarketplaceListingBase, identifier: string): Promise {\n const query = `SELECT * FROM npwd_marketplace_listings WHERE title = ? AND identifier = ?`;\n const [results] = await DbInterface._rawExec(query, [listing.title, identifier]);\n const listings = results;\n\n return listings.length > 0;\n }\n\n async doesReportExist(listingId: number, profile: string): Promise {\n const query = `SELECT * FROM npwd_marketplace_listings WHERE id = ? AND username = ? AND reported = 1`;\n const [results] = await DbInterface._rawExec(query, [listingId, profile]);\n const result = results;\n\n return result.length > 0;\n }\n}\n\nconst MarketplaceDB = new _MarketplaceDB();\n\nexport default MarketplaceDB;\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n","var debug;\n\nmodule.exports = function () {\n if (!debug) {\n try {\n /* eslint global-require: off */\n debug = require(\"debug\")(\"follow-redirects\");\n }\n catch (error) { /* */ }\n if (typeof debug !== \"function\") {\n debug = function () { /* */ };\n }\n }\n debug.apply(null, arguments);\n};\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n","'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n","'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n","'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n","// https://forum.cfx.re/t/typescript-vs-lua-questions/612483/11\nexport const Delay = (ms: number): Promise => new Promise((res) => setTimeout(res, ms));\n\n// Credits to d0p3t\n// https://github.com/d0p3t/fivem-js/blob/master/src/utils/UUIDV4.ts\nexport const uuidv4 = (): string => {\n let uuid = '';\n for (let ii = 0; ii < 32; ii += 1) {\n switch (ii) {\n case 8:\n case 20:\n uuid += '-';\n uuid += ((Math.random() * 16) | 0).toString(16);\n break;\n case 12:\n uuid += '-';\n uuid += '4';\n break;\n case 16:\n uuid += '-';\n uuid += ((Math.random() * 4) | 8).toString(16);\n break;\n default:\n uuid += ((Math.random() * 16) | 0).toString(16);\n }\n }\n return uuid;\n};\n","import {\n CallEvents,\n CallHistoryItem,\n TransmitterNumDTO,\n EndCallDTO,\n InitializeCallDTO,\n ActiveCall,\n} from '../../../typings/call';\nimport { getSource, onNetTyped } from '../utils/miscUtils';\nimport CallService from './calls.service';\nimport { callLogger } from './calls.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(CallEvents.INITIALIZE_CALL, (reqObj, resp) => {\n CallService.handleInitializeCall(reqObj, resp).catch((e) => {\n resp({ status: 'error', errorMsg: 'SERVER_ERROR' });\n callLogger.error(`Error occured handling init call: ${e.message}`);\n });\n});\n\nonNetTyped(CallEvents.ACCEPT_CALL, ({ transmitterNumber }) => {\n const src = getSource();\n CallService.handleAcceptCall(src, transmitterNumber).catch((e) =>\n callLogger.error(\n `Error occured in accept call event (${transmitterNumber}), Error: ${e.message}`,\n ),\n );\n});\n\n// Fire and forget event, client doesn't care what response is we reject no matter what.\n// thats the reason its not promise\nonNetTyped(CallEvents.REJECTED, (data) => {\n const src = getSource();\n CallService.handleRejectCall(src, data.transmitterNumber).catch((e) =>\n callLogger.error(\n `Error occured in rejectcall event (${data.transmitterNumber}), Error: ${e.message}`,\n ),\n );\n});\n\nonNetPromise(CallEvents.END_CALL, (reqObj, resp) => {\n CallService.handleEndCall(reqObj, resp).catch((e) => {\n callLogger.error(\n `Error occured in end call event (${reqObj.data.transmitterNumber}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'SERVER_ERROR' });\n });\n});\n\nonNetPromise(CallEvents.FETCH_CALLS, (reqObj, resp) => {\n CallService.handleFetchCalls(reqObj, resp).catch((e) => {\n resp({ status: 'error', errorMsg: 'SERVER_ERROR' });\n callLogger.error(`Error occured in fetch call event, Error: ${e.message}`);\n });\n});\n","import Collection from '@discordjs/collection';\nimport {\n CallEvents,\n CallHistoryItem,\n InitializeCallDTO,\n EndCallDTO,\n ActiveCall,\n ActiveCallRaw,\n} from '../../../typings/call';\nimport CallsDB, { CallsRepo } from './calls.db';\nimport { v4 as uuidv4 } from 'uuid';\nimport PlayerService from '../players/player.service';\nimport { callLogger } from './calls.utils';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\nimport { emitNetTyped } from '../utils/miscUtils';\nimport { mainLogger } from '../sv_logger';\nimport { _TwitterDB } from '../twitter/twitter.db';\n\nclass CallsService {\n private callMap: Collection;\n private readonly callsDB: CallsRepo;\n\n constructor() {\n this.callMap = new Collection();\n this.callsDB = CallsDB;\n callLogger.debug('Call service started');\n }\n\n private setCallInMap(transmitterNumber: string, callObj: ActiveCallRaw): void {\n this.callMap.set(transmitterNumber, callObj);\n callLogger.debug(`Call obj set with key ${transmitterNumber}, value:`);\n callLogger.debug(callObj);\n }\n\n async handleInitializeCall(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n // Create initial call data\n const transmittingPlayer = PlayerService.getPlayer(reqObj.source);\n const transmitterNumber = transmittingPlayer.getPhoneNumber();\n const receiverIdentifier = await PlayerService.getIdentifierFromPhoneNumber(\n reqObj.data.receiverNumber,\n true,\n );\n\n const startCallTimeUnix = Math.floor(new Date().getTime() / 1000);\n const callIdentifier = uuidv4();\n\n // Used when the number is invalid or the player if offline.\n const tempSaveCallObj = {\n identifier: callIdentifier,\n transmitter: transmitterNumber,\n receiver: reqObj.data.receiverNumber,\n is_accepted: false,\n start: startCallTimeUnix.toString(),\n };\n\n // If not online we immediately let the caller know that is an invalid\n // number\n if (!receiverIdentifier) {\n await this.callsDB.saveCall(tempSaveCallObj);\n return resp({\n status: 'ok',\n data: {\n transmitter: transmitterNumber,\n isTransmitter: true,\n receiver: reqObj.data.receiverNumber,\n isUnavailable: true,\n is_accepted: false,\n start: startCallTimeUnix.toString(),\n identifier: callIdentifier,\n },\n });\n }\n\n // Will be null if the player is offline\n const receivingPlayer = PlayerService.getPlayerFromIdentifier(receiverIdentifier);\n\n // Now if the player is offline, we send the same resp\n // as before\n if (!receivingPlayer) {\n await this.callsDB.saveCall(tempSaveCallObj);\n return resp({\n status: 'ok',\n data: {\n is_accepted: false,\n transmitter: transmitterNumber,\n isTransmitter: true,\n receiver: reqObj.data.receiverNumber,\n isUnavailable: true,\n start: startCallTimeUnix.toString(),\n identifier: callIdentifier,\n },\n });\n }\n\n callLogger.debug(`Receiving Identifier: ${receiverIdentifier}`);\n callLogger.debug(`Receiving source: ${receivingPlayer.source} `);\n\n // We call this here, so that w\n const callObj: ActiveCallRaw = {\n identifier: callIdentifier,\n transmitter: transmitterNumber,\n transmitterSource: transmittingPlayer.source,\n receiver: reqObj.data.receiverNumber,\n receiverSource: receivingPlayer.source,\n start: startCallTimeUnix.toString(),\n is_accepted: false,\n };\n\n // Now we can add the call to our memory map\n this.setCallInMap(callObj.transmitter, callObj);\n\n try {\n await this.callsDB.saveCall(callObj);\n } catch (e) {\n callLogger.error(\n `Unable to save call object for transmitter number ${transmitterNumber}. Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'DATABASE_ERROR' });\n }\n\n // At this point we return back to the client that the player contacted\n // is technically available and therefore intialization process ic omplete\n resp({\n status: 'ok',\n data: {\n is_accepted: false,\n transmitter: transmitterNumber,\n receiver: reqObj.data.receiverNumber,\n isTransmitter: true,\n start: startCallTimeUnix.toString(),\n identifier: callIdentifier,\n },\n });\n\n emitNetTyped(\n CallEvents.START_CALL,\n {\n is_accepted: false,\n transmitter: transmitterNumber,\n receiver: reqObj.data.receiverNumber,\n isTransmitter: false,\n },\n receivingPlayer.source,\n );\n }\n\n async handleAcceptCall(src: number, transmitterNumber: string): Promise {\n // We retrieve the call that was accepted from the current calls map\n const targetCallItem = this.callMap.get(transmitterNumber);\n // We update its reference\n targetCallItem.is_accepted = true;\n\n const channelId = src;\n\n await this.callsDB.updateCall(targetCallItem, true, null);\n callLogger.debug(`Call with key ${transmitterNumber} was updated to be accepted`);\n\n // player who is being called\n emitNetTyped(\n CallEvents.WAS_ACCEPTED,\n {\n is_accepted: true,\n transmitter: transmitterNumber,\n receiver: targetCallItem.receiver,\n isTransmitter: false,\n channelId,\n },\n targetCallItem.receiverSource,\n );\n\n mainLogger.debug(targetCallItem);\n\n // player who is calling\n emitNetTyped(\n CallEvents.WAS_ACCEPTED,\n {\n is_accepted: true,\n transmitter: transmitterNumber,\n receiver: targetCallItem.receiver,\n isTransmitter: true,\n channelId,\n },\n targetCallItem.transmitterSource,\n );\n }\n\n async handleFetchCalls(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n const player = PlayerService.getPlayer(reqObj.source);\n const srcPlayerNumber = player.getPhoneNumber();\n const calls = await this.callsDB.fetchCalls(srcPlayerNumber);\n resp({ status: 'ok', data: calls });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DATABASE_ERROR' });\n console.error(`Error while fetching calls, ${e.message}`);\n }\n }\n\n async handleRejectCall(src: number, transmitterNumber: string): Promise {\n const currentCall = this.callMap.get(transmitterNumber);\n\n const endCallTimeUnix = Math.floor(new Date().getTime() / 1000);\n\n if (!currentCall) {\n callLogger.error(\n `Call with transmitter number ${transmitterNumber} does not exist in current calls map!`,\n );\n return;\n }\n\n // player who is calling and recieved the rejection.\n emitNet(CallEvents.WAS_REJECTED, currentCall.transmitterSource);\n emitNet(CallEvents.WAS_REJECTED, currentCall.receiverSource);\n\n // Update our database\n await this.callsDB.updateCall(currentCall, false, endCallTimeUnix);\n\n // Remove from active memory map\n this.callMap.delete(transmitterNumber);\n }\n\n async handleEndCall(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const transmitterNumber = reqObj.data.transmitterNumber;\n const endCallTimeUnix = Math.floor(new Date().getTime() / 1000);\n\n if (reqObj.data.isUnavailable) {\n emitNet(CallEvents.WAS_ENDED, reqObj.source);\n resp({ status: 'ok' });\n return;\n }\n\n const currentCall = this.callMap.get(transmitterNumber);\n\n if (!currentCall) {\n callLogger.error(\n `Call with transmitter number ${transmitterNumber} does not exist in current calls map!`,\n );\n return resp({ status: 'error', errorMsg: 'DOES_NOT_EXIST' });\n }\n\n // Just in case currentCall for some reason at this point is falsy\n // lets protect against that\n if (currentCall) {\n emitNet(CallEvents.WAS_ENDED, currentCall.receiverSource);\n emitNet(CallEvents.WAS_ENDED, currentCall.transmitterSource);\n }\n // player who is calling (transmitter)\n resp({ status: 'ok' });\n\n // We should be fine once here but sentry was acting up idk\n await this.callsDB.updateCall(currentCall, currentCall?.is_accepted, endCallTimeUnix);\n // Clear from memory\n this.callMap.delete(transmitterNumber);\n }\n}\n\nexport default new CallsService();\n","import { CallHistoryItem } from '../../../typings/call';\nimport { FetchDefaultLimits } from '../utils/ServerConstants';\nimport DbInterface from '../db/db_wrapper';\n\nexport class CallsRepo {\n async saveCall(call: CallHistoryItem): Promise {\n const query =\n 'INSERT INTO npwd_calls (identifier, transmitter, receiver, `start`) VALUES (?, ?, ?, ?)';\n await DbInterface._rawExec(query, [\n call.identifier,\n call.transmitter,\n call.receiver,\n call.start,\n ]);\n }\n\n async updateCall(call: CallHistoryItem, isAccepted: boolean, end: number): Promise {\n const query = 'UPDATE npwd_calls SET is_accepted=?, end=? WHERE identifier = ?';\n await DbInterface._rawExec(query, [isAccepted, end, call.identifier]);\n }\n\n async fetchCalls(\n phoneNumber: string,\n limit = FetchDefaultLimits.CALLS_FETCH_LIMIT,\n ): Promise {\n const query =\n 'SELECT * FROM npwd_calls WHERE receiver = ? OR transmitter = ? ORDER BY id DESC LIMIT ?';\n const [result] = await DbInterface._rawExec(query, [phoneNumber, phoneNumber, limit]);\n\n return result;\n }\n}\n\nexport default new CallsRepo();\n","export enum FetchDefaultLimits {\n NOTES_FETCH_LIMIT = 20,\n CALLS_FETCH_LIMIT = 50,\n CONTACTS_FETCH_LIMIT = 20,\n}\n","import { BeforeDBNote, DeleteNoteDTO, NoteItem, NotesEvents } from '../../../typings/notes';\nimport NotesService from './notes.service';\nimport { notesLogger } from './notes.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(NotesEvents.ADD_NOTE, (reqObj, resp) => {\n NotesService.handleAddNote(reqObj, resp).catch((e) => {\n notesLogger.error(`Error occured in add note event (${reqObj.source}), Error: ${e.message}`);\n resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n});\n\nonNetPromise(NotesEvents.FETCH_ALL_NOTES, (reqObj, resp) => {\n NotesService.handleFetchNotes(reqObj, resp).catch((e) => {\n notesLogger.error(\n `Error occurred in fetch note event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n});\n\nonNetPromise(NotesEvents.DELETE_NOTE, async (reqObj, resp) => {\n NotesService.handleDeleteNote(reqObj, resp).catch((e) => {\n notesLogger.error(\n `Error occured in delete note event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n});\n\nonNetPromise(NotesEvents.UPDATE_NOTE, async (reqObj, resp) => {\n NotesService.handleUpdateNote(reqObj, resp).catch((e) => {\n notesLogger.error(`Error occured in fetch note event (${reqObj.source}), Error: ${e.message}`);\n resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n});\n","import { IAlertProps } from './alerts';\n\nexport type AlertCategory =\n | 'NOTES_ADD_SUCCESS'\n | 'NOTES_ADD_FAILED'\n | 'NOTES_UPDATE_SUCCESS'\n | 'NOTES_UPDATE_FAILED'\n | 'NOTES_DELETE_SUCCESS'\n | 'NOTES_DELETE_FAILED';\n\nexport interface INotesAlert {\n alert: AlertCategory;\n setAlert: (type: AlertCategory) => void;\n}\n\nexport interface BeforeDBNote {\n title: string;\n content: string;\n}\n\nexport interface NoteItem extends BeforeDBNote {\n id: number;\n title: string;\n content: string;\n}\n\nexport interface DeleteNoteDTO {\n id: number;\n}\n\nexport enum NotesEvents {\n ADD_NOTE = 'npwd:addNote',\n FETCH_ALL_NOTES = 'npwd:fetchAllNotes',\n DELETE_NOTE = 'npwd:deleteNote',\n UPDATE_NOTE = 'npwd:updateNote',\n ADD_NOTE_EXPORT = 'npwd:addNoteExport',\n}\n\nexport interface AddNoteExportData {\n title?: string;\n content?: string;\n}\n","import { BeforeDBNote, DeleteNoteDTO, NoteItem } from '../../../typings/notes';\nimport PlayerService from '../players/player.service';\nimport NotesDB, { _NotesDB } from './notes.db';\nimport { notesLogger } from './notes.utils';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\n\nclass _NotesService {\n private readonly notesDB: _NotesDB;\n\n constructor() {\n this.notesDB = NotesDB;\n notesLogger.debug('Notes service started');\n }\n\n async handleAddNote(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n notesLogger.debug('Handling add note, note:');\n notesLogger.debug(reqObj.data);\n\n const identifer = PlayerService.getIdentifier(reqObj.source);\n\n try {\n const noteId = await this.notesDB.addNote(identifer, reqObj.data);\n resp({\n status: 'ok',\n data: { id: noteId, content: reqObj.data.content, title: reqObj.data.title },\n });\n } catch (e) {\n notesLogger.error(`Error in handleAddNote, ${e.message}`);\n\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleFetchNotes(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const notes = await this.notesDB.fetchNotes(identifier);\n resp({ status: 'ok', data: notes });\n } catch (e) {\n notesLogger.error(`Error in handleFetchNote, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleUpdateNote(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.notesDB.updateNote(reqObj.data, identifier);\n resp({ status: 'ok' });\n } catch (e) {\n notesLogger.error(`Error in handleUpdateNote, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n // async handleShareNote(src: number) {\n // // To implement someday\n // }\n\n async handleDeleteNote(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.notesDB.deleteNote(reqObj.data.id, identifier);\n resp({ status: 'ok', data: reqObj.data });\n } catch (e) {\n notesLogger.error(`Error in handleDeleteNote, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n}\n\nconst NotesService = new _NotesService();\nexport default NotesService;\n","import { BeforeDBNote, NoteItem } from '../../../typings/notes';\nimport { ResultSetHeader } from 'mysql2';\nimport DbInterface from '../db/db_wrapper';\n\nexport class _NotesDB {\n async addNote(identifier: string, note: BeforeDBNote): Promise {\n const query = 'INSERT INTO npwd_notes (identifier, title, content) VALUES (?, ?, ?)';\n const [result] = await DbInterface._rawExec(query, [identifier, note.title, note.content]);\n return (result).insertId;\n }\n\n async fetchNotes(identifier: string): Promise {\n const query = 'SELECT * FROM npwd_notes WHERE identifier = ? ORDER BY id DESC';\n const [result] = await DbInterface._rawExec(query, [identifier]);\n return result;\n }\n\n async deleteNote(noteId: number, identifier: string): Promise {\n const query = 'DELETE FROM npwd_notes WHERE id = ? AND identifier = ?';\n await DbInterface._rawExec(query, [noteId, identifier]);\n }\n\n async updateNote(note: NoteItem, identifier: string): Promise {\n const query = 'UPDATE npwd_notes SET title = ?, content = ? WHERE id = ? AND identifier = ?';\n await DbInterface._rawExec(query, [note.title, note.content, note.id, identifier]);\n }\n}\n\nconst NotesDB = new _NotesDB();\n\nexport default NotesDB;\n","import { Contact, ContactDeleteDTO, ContactEvents, PreDBContact } from '../../../typings/contact';\nimport ContactService from './contacts.service';\nimport { contactsLogger } from './contacts.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(ContactEvents.GET_CONTACTS, (reqObj, resp) => {\n ContactService.handleFetchContacts(reqObj, resp).catch((e) => {\n contactsLogger.error(\n `Error occured in fetch contacts event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(ContactEvents.ADD_CONTACT, (reqObj, resp) => {\n ContactService.handleAddContact(reqObj, resp).catch((e) => {\n contactsLogger.error(\n `Error occured in fetch contacts event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(ContactEvents.UPDATE_CONTACT, (reqObj, resp) => {\n ContactService.handleUpdateContact(reqObj, resp).catch((e) => {\n contactsLogger.error(\n `Error occured in update contact event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(ContactEvents.DELETE_CONTACT, (reqObj, resp) => {\n ContactService.handleDeleteContact(reqObj, resp).catch((e) => {\n contactsLogger.error(\n `Error occured in delete contact event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n","import PlayerService from '../players/player.service';\nimport { contactsLogger } from './contacts.utils';\nimport ContactsDB, { _ContactsDB } from './contacts.db';\nimport { Contact, ContactDeleteDTO, ContactResp, PreDBContact } from '../../../typings/contact';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\nimport { checkAndFilterImage } from './../utils/imageFiltering';\n\nclass _ContactService {\n private readonly contactsDB: _ContactsDB;\n\n constructor() {\n this.contactsDB = ContactsDB;\n contactsLogger.debug('Contacts service started');\n }\n\n async handleUpdateContact(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const imageUrl = checkAndFilterImage(reqObj.data.avatar);\n if (imageUrl == null) {\n return resp({ status: 'error', errorMsg: 'GENERIC_INVALID_IMAGE_HOST' });\n }\n reqObj.data.avatar = imageUrl;\n await this.contactsDB.updateContact(reqObj.data, identifier);\n resp({ status: 'ok' });\n } catch (e) {\n contactsLogger.error(`Error in handleUpdateContact (${identifier}), ${e.message}`);\n resp({ status: 'error', errorMsg: ContactResp.UPDATE_FAILED });\n }\n }\n async handleDeleteContact(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.contactsDB.deleteContact(reqObj.data.id, identifier);\n resp({ status: 'ok' });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n contactsLogger.error(`Error in handleDeleteContact (${identifier}), ${e.message}`);\n }\n }\n async handleAddContact(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const imageUrl = checkAndFilterImage(reqObj.data.avatar);\n if (imageUrl == null) {\n return resp({ status: 'error', errorMsg: 'GENERIC_INVALID_IMAGE_HOST' });\n }\n reqObj.data.avatar = imageUrl;\n const contact = await this.contactsDB.addContact(identifier, reqObj.data);\n\n resp({ status: 'ok', data: contact });\n } catch (e) {\n contactsLogger.error(`Error in handleAddContact, ${e.message}`);\n resp({ status: 'error', errorMsg: ContactResp.ADD_FAILED });\n }\n }\n async handleFetchContacts(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const contacts = await this.contactsDB.fetchAllContacts(identifier);\n resp({ status: 'ok', data: contacts });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n contactsLogger.error(`Error in handleFetchContact (${identifier}), ${e.message}`);\n }\n }\n}\n\nconst ContactService = new _ContactService();\nexport default ContactService;\n","import { Contact, PreDBContact } from '../../../typings/contact';\nimport { ResultSetHeader } from 'mysql2';\nimport DbInterface from '../db/db_wrapper';\n\nexport class _ContactsDB {\n async fetchAllContacts(identifier: string): Promise {\n const query = 'SELECT * FROM npwd_phone_contacts WHERE identifier = ? ORDER BY display ASC';\n const [results] = await DbInterface._rawExec(query, [identifier]);\n return results;\n }\n\n async addContact(\n identifier: string,\n { display, avatar, number }: PreDBContact,\n ): Promise {\n const query =\n 'INSERT INTO npwd_phone_contacts (identifier, number, display, avatar) VALUES (?, ?, ?, ?)';\n\n const [setResult] = await DbInterface._rawExec(query, [identifier, number, display, avatar]);\n\n return {\n id: (setResult).insertId,\n number,\n avatar,\n display,\n };\n }\n\n async updateContact(contact: Contact, identifier: string): Promise {\n const query =\n 'UPDATE npwd_phone_contacts SET number = ?, display = ?, avatar = ? WHERE id = ? AND identifier = ?';\n await DbInterface._rawExec(query, [\n contact.number,\n contact.display,\n contact.avatar,\n contact.id,\n identifier,\n ]);\n }\n\n async deleteContact(contactId: number, identifier: string): Promise {\n const query = 'DELETE FROM npwd_phone_contacts WHERE id = ? AND identifier = ?';\n await DbInterface._rawExec(query, [contactId, identifier]);\n }\n}\n\nconst ContactsDB = new _ContactsDB();\nexport default ContactsDB;\n","import { GalleryPhoto, PhotoEvents } from '../../../typings/photo';\nimport PhotoService from './photo.service';\nimport { photoLogger } from './photo.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(PhotoEvents.UPLOAD_PHOTO, (reqObj, resp) => {\n PhotoService.handleUploadPhoto(reqObj, resp).catch((e) => {\n photoLogger.error(\n `Error occurred in upload photo event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(PhotoEvents.FETCH_PHOTOS, (reqObj, resp) => {\n PhotoService.handleFetchPhotos(reqObj, resp).catch((e) => {\n photoLogger.error(\n `Error occurred in upload photo event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(PhotoEvents.DELETE_PHOTO, (reqObj, resp) => {\n PhotoService.handleDeletePhoto(reqObj, resp).catch((e) => {\n photoLogger.error(\n `Error occurred in delete photo event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n","import PlayerService from '../players/player.service';\nimport { GalleryPhoto, PhotoResp } from '../../../typings/photo';\nimport PhotoDB, { _PhotoDB } from './photo.db';\nimport { photoLogger } from './photo.utils';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\nimport { checkAndFilterImage } from './../utils/imageFiltering';\n\nclass _PhotoService {\n private readonly photoDB: _PhotoDB;\n\n constructor() {\n this.photoDB = PhotoDB;\n photoLogger.debug('Photo service started');\n }\n\n async handleUploadPhoto(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n if (!reqObj.data) return resp({ status: 'error', errorMsg: PhotoResp.GENERIC });\n\n const imageUrl = checkAndFilterImage(reqObj.data);\n\n if (imageUrl == null) {\n return resp({ status: 'error', errorMsg: PhotoResp.INVALID_IMAGE_HOST });\n }\n\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const photo = await this.photoDB.uploadPhoto(identifier, imageUrl);\n\n resp({ status: 'ok', data: photo });\n } catch (e) {\n photoLogger.error(`Failed to upload photo, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleFetchPhotos(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const photos = await this.photoDB.getPhotosByIdentifier(identifier);\n\n resp({ status: 'ok', data: photos });\n } catch (e) {\n photoLogger.error(`Failed to fetch photos, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleDeletePhoto(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n await this.photoDB.deletePhoto(reqObj.data, identifier);\n\n resp({ status: 'ok' });\n } catch (e) {\n photoLogger.error(`Failed to delete photo, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n}\n\nconst PhotoService = new _PhotoService();\n\nexport default PhotoService;\n","import { GalleryPhoto } from '../../../typings/photo';\nimport DbInterface from '../db/db_wrapper';\n\nexport class _PhotoDB {\n async uploadPhoto(identifier: string, image: string): Promise {\n const query = 'INSERT INTO npwd_phone_gallery (identifier, image) VALUES (?, ?)';\n const [results] = (await DbInterface._rawExec(query, [identifier, image])) as any;\n return { id: results.insertId, image };\n }\n\n async getPhotosByIdentifier(identifier: string): Promise {\n const query = 'SELECT id, image FROM npwd_phone_gallery WHERE identifier = ? ORDER BY id DESC';\n const [results] = await DbInterface._rawExec(query, [identifier]);\n return results;\n }\n\n async deletePhoto(photo: GalleryPhoto, identifier: string) {\n const query = 'DELETE FROM npwd_phone_gallery WHERE image = ? AND identifier = ?';\n await DbInterface._rawExec(query, [photo.image, identifier]);\n }\n}\n\nconst PhotoDB = new _PhotoDB();\n\nexport default PhotoDB;\n","import { getSource } from '../utils/miscUtils';\nimport {\n Message,\n MessageConversation,\n MessageEvents,\n PreDBMessage,\n} from '../../../typings/messages';\nimport MessagesService from './messages.service';\nimport { messagesLogger } from './messages.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\nimport { OnMessageExportMap } from './middleware/onMessage';\n\nonNetPromise(\n MessageEvents.FETCH_MESSAGE_CONVERSATIONS,\n async (reqObj, resp) => {\n MessagesService.handleFetchMessageConversations(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred in fetch message conversations (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise<{ targetNumber: string }, MessageConversation>(\n MessageEvents.CREATE_MESSAGE_CONVERSATION,\n async (reqObj, resp) => {\n MessagesService.handleCreateMessageConversation(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred on creating messsage converations (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise<{ conversationId: string; page: number }, Message[]>(\n MessageEvents.FETCH_MESSAGES,\n async (reqObj, resp) => {\n MessagesService.handleFetchMessages(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred in fetch messages (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise(MessageEvents.SEND_MESSAGE, async (reqObj, resp) => {\n MessagesService.handleSendMessage(reqObj, resp)\n .then(async () => {\n // A simple solution to listen for messages. Will expand upon this soonTM.\n const funcRef = OnMessageExportMap.get(reqObj.data.tgtPhoneNumber);\n if (funcRef) {\n try {\n await funcRef({ data: reqObj.data, source: reqObj.source });\n } catch (e) {\n messagesLogger.error(\n `Failed to find a callback reference for onMessage. Probably because the resource(s) using the export was stopped or restarted. Please restart said resource(s). Error: ${e.message}`,\n );\n }\n }\n })\n .catch((e) => {\n messagesLogger.error(\n `Error occurred while sending message (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise<{ conversationsId: string[] }, void>(\n MessageEvents.DELETE_CONVERSATION,\n async (reqObj, resp) => {\n MessagesService.handleDeleteConversation(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred while deleting conversation (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise(MessageEvents.DELETE_MESSAGE, async (reqObj, resp) => {\n MessagesService.handleDeleteMessage(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred while deleting message (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNet(MessageEvents.SET_MESSAGE_READ, async (groupId: string) => {\n const src = getSource();\n MessagesService.handleSetMessageRead(src, groupId).catch((e) =>\n messagesLogger.error(`Error occurred in set message read event (${src}), Error: ${e.message}`),\n );\n});\n","import { OnMessageExportCtx } from '../../../../typings/messages';\nimport MessagesService from '../messages.service';\n\nconst exp = global.exports;\n\nexport const OnMessageExportMap = new Map();\n\nexp('onMessage', (phoneNumber: string, cb: (messageCtx: OnMessageExportCtx) => void) => {\n OnMessageExportMap.set(phoneNumber, cb);\n});\n\nexport const onMessageRespond = async (ctx: OnMessageExportCtx, message: string) => {\n const responseData = {\n source: ctx.source,\n data: {\n message,\n conversation_id: ctx.data.conversationId,\n author: ctx.data.tgtPhoneNumber,\n embed: false,\n is_embed: false,\n },\n };\n\n await MessagesService.handleOnMessageSendResponse(responseData);\n};\n","import {\n MarketplaceResp,\n MarketplaceEvents,\n MarketplaceListing,\n MarketplaceListingBase,\n MarketplaceReportDTO,\n} from '../../../typings/marketplace';\nimport { marketplaceLogger } from './marketplace.utils';\nimport MarketplaceService from './marketplace.service';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\nimport { MarketplaceDeleteDTO } from '../../../typings/marketplace';\n\nonNetPromise(MarketplaceEvents.FETCH_LISTING, async (reqObj, resp) => {\n MarketplaceService.handleFetchListings(reqObj, resp).catch((e) => {\n marketplaceLogger.error(\n `Error occurred in fetch listing event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(\n MarketplaceEvents.ADD_LISTING,\n async (reqObj, resp) => {\n MarketplaceService.handleAddListing(reqObj, resp).catch((e) => {\n marketplaceLogger.error(\n `Error occurred in add listing event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise(MarketplaceEvents.DELETE_LISTING, async (reqObj, resp) => {\n MarketplaceService.handleDeleteListing(reqObj, resp).catch((e) => {\n marketplaceLogger.error(\n `Error occurred in delete listing event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MarketplaceEvents.REPORT_LISTING, async (reqObj, resp) => {\n // TODO: Needs a permission check of some sort here eventually\n MarketplaceService.handleReportListing(reqObj, resp).catch((e) => {\n marketplaceLogger.error(\n `Error occurred in report listing event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\non(MarketplaceEvents.DELETE_LISTINGS_ON_DROP, (identifier: string) => {\n MarketplaceService.handleDeleteListingsOnDrop(identifier).catch((e) => {\n marketplaceLogger.error(\n `Error occurred when deleting listing on player drop event, Error: ${e.message}`,\n );\n });\n});\n","import { config } from '../config';\nimport { twitterLogger } from './twitter.utils';\nimport { Profile, Tweet, TwitterEvents } from '../../../typings/twitter';\nimport { getSource } from '../utils/miscUtils';\nimport TwitterService from './twitter.service';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(\n TwitterEvents.GET_OR_CREATE_PROFILE,\n async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleGetOrCreateProfile(reqObj, resp).catch((e) => {\n twitterLogger.error(\n `Error occurred in getOrCreateProfile event (${_source}), Error: ${e.message}`,\n );\n });\n },\n);\n\nonNetPromise(TwitterEvents.CREATE_PROFILE, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleCreateProfile(reqObj, resp).catch((e) =>\n twitterLogger.error(`Error occurred in createProfile event (${_source}), Error: ${e.message}`),\n );\n});\n\nonNetPromise(TwitterEvents.UPDATE_PROFILE, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleUpdateProfile(reqObj, resp).catch((e) =>\n twitterLogger.error(`Error occurred in updateProfile event (${_source}), Error: ${e.message}`),\n );\n});\n\nonNetPromise<{ searchValue: string }, Tweet[]>(\n TwitterEvents.FETCH_TWEETS_FILTERED,\n async (reqObj, resp) => {\n console.log('getting some filtered tweets');\n const _source = getSource();\n TwitterService.handleFetchTweetsFiltered(reqObj, resp).catch((e) =>\n twitterLogger.error(\n `Error occurred in fetchTweetsFiltered event (${_source}), Error: ${e.message}`,\n ),\n );\n },\n);\n\nonNetPromise(TwitterEvents.CREATE_TWEET, async (reqObj, resp) => {\n TwitterService.handleCreateTweet(reqObj, resp).catch((e) => {\n twitterLogger.error(\n `Error occurred in createTweet event (${reqObj.source}), Error: ${e.message}`,\n );\n });\n});\n\nonNetPromise<{ tweetId: number }, void>(TwitterEvents.DELETE_TWEET, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleDeleteTweet(reqObj, resp).catch((e) => {\n twitterLogger.error(`Error occurred in deleteTweet event (${_source}), Error: ${e.message}`);\n });\n});\n\nonNetPromise<{ tweetId: number }, void>(TwitterEvents.TOGGLE_LIKE, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleToggleLike(reqObj, resp).catch((e) => {\n twitterLogger.error(`Error occurred in toggleEvent event (${_source}), Error: ${e.message}`);\n });\n});\n\nonNetPromise<{ tweetId: number }, void>(TwitterEvents.RETWEET, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleRetweet(reqObj, resp).catch((e) =>\n twitterLogger.error(`Error occurred in retweet event (${_source}), Error: ${e.message}`),\n );\n});\n\nonNetPromise<{ tweetId: number }, void>(TwitterEvents.REPORT, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleReport(reqObj, resp).catch((e) =>\n twitterLogger.error(`Error occurred in report event (${_source}), Error: ${e.message}`),\n );\n});\n\nonNetPromise<{ pageId: number }, Tweet[]>(TwitterEvents.FETCH_TWEETS, (req, res) => {\n TwitterService.handleFetchTweets(req.source, req.data.pageId, res).catch((e) =>\n twitterLogger.error(`Error occurred in fetchTweets event (${req.source}), Error: ${e.message}`),\n );\n});\n\nif (!config.twitter.allowEditableProfileName && !config.twitter.generateProfileNameFromUsers) {\n const warning =\n `Both allowEdtiableProfileName and generateProfileNameFromUsers ` +\n `are set false - this means users will likely not have profile names ` +\n `for the Twitter App and won't be able to use it!`;\n twitterLogger.warn(warning);\n}\n","import PlayerService from '../players/player.service';\nimport TwitterDB, { _TwitterDB } from './twitter.db';\nimport { NewTweet, Profile, Tweet, TwitterEvents } from '../../../typings/twitter';\nimport { twitterLogger } from './twitter.utils';\nimport { reportTweetToDiscord } from '../misc/discord';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\nimport { getDefaultProfileNames } from '../players/player.utils';\nimport { checkAndFilterImage } from './../utils/imageFiltering';\n\nclass _TwitterService {\n private readonly twitterDB: _TwitterDB;\n\n constructor() {\n this.twitterDB = TwitterDB;\n twitterLogger.debug('Twitter service started');\n }\n\n async handleGetOrCreateProfile(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n\n try {\n if (!identifier) return;\n\n const profile = await this.twitterDB.getOrCreateProfile(identifier);\n\n // if we got null from getOrCreateProfile it means it doesn't exist and\n // we failed to create it. In this case we pass the UI some default\n // profile names it can choose from.\n\n // We should be able to comment this out as profile **should** be guranteed,\n // as we create a default profile in that process.\n\n if (!profile) {\n const defaultProfileNames = await getDefaultProfileNames(reqObj.source);\n if (!defaultProfileNames) return;\n } else {\n resp({ status: 'ok', data: profile });\n }\n } catch (e) {\n resp({ status: 'error', errorMsg: e.message });\n twitterLogger.error(`Failed to get or create profile, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n\n async handleCreateProfile(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.createProfile(identifier, reqObj.data.profile_name);\n\n resp({ status: 'ok', data: profile });\n } catch (e) {\n twitterLogger.error(`Failed to create twitter profile: ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n // we get both the profile and a profile name\n async handleUpdateProfile(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const imageUrl = checkAndFilterImage(reqObj.data.avatar_url);\n if (imageUrl == null) {\n return resp({ status: 'error', errorMsg: 'GENERIC_INVALID_IMAGE_HOST' });\n }\n reqObj.data.avatar_url = imageUrl;\n const profile = await this.twitterDB.updateProfile(identifier, reqObj.data);\n\n resp({ status: 'ok', data: profile });\n } catch (e) {\n twitterLogger.error(`Failed to update twitter profile: ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleFetchTweets(src: number, pageIdx: number, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(src);\n const profile = await this.twitterDB.getProfile(identifier);\n\n if (!profile)\n return twitterLogger.warn(\n `Aborted fetching tweets for user ${identifier} because they do not have a profile.`,\n );\n\n const tweets = await this.twitterDB.fetchAllTweets(profile.id, pageIdx);\n\n resp({ data: tweets, status: 'ok' });\n } catch (e) {\n twitterLogger.error(`Fetching tweets failed, ${e.message}`, {\n source: src,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleFetchTweetsFiltered(\n reqObj: PromiseRequest<{ searchValue: string }>,\n resp: PromiseEventResp,\n ) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.getProfile(identifier);\n const tweets = await this.twitterDB.fetchTweetsFiltered(profile.id, reqObj.data.searchValue);\n\n resp({ status: 'ok', data: tweets });\n } catch (e) {\n twitterLogger.error(`Fetch filtered tweets failed, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleCreateTweet(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n\n let newImageString = '';\n\n const images = reqObj.data.images.split('||!||');\n\n for (let i = 0; i < images.length; i++) {\n const img = images[i];\n const imageUrl = checkAndFilterImage(img);\n if (imageUrl == null) {\n return resp({ status: 'error', errorMsg: 'GENERIC_INVALID_IMAGE_HOST' });\n }\n newImageString += `${imageUrl}${i != images.length - 1 ? '||!||' : ''}`;\n }\n reqObj.data.images = newImageString;\n\n const createdTweet = await this.twitterDB.createTweet(identifier, reqObj.data);\n\n resp({ status: 'ok' });\n emitNet(TwitterEvents.CREATE_TWEET_BROADCAST, -1, createdTweet);\n } catch (e) {\n twitterLogger.error(`Create tweet failed, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleDeleteTweet(\n reqObj: PromiseRequest<{ tweetId: number }>,\n resp: PromiseEventResp,\n ) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n await this.twitterDB.deleteTweet(identifier, reqObj.data.tweetId);\n\n resp({ status: 'ok' });\n } catch (e) {\n twitterLogger.error(`Delete tweet failed, ${e.message}`, {\n source: reqObj.source,\n });\n\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleToggleLike(\n reqObj: PromiseRequest<{ tweetId: number }>,\n resp: PromiseEventResp,\n ) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.getOrCreateProfile(identifier);\n const likeExists = await this.twitterDB.doesLikeExist(profile.id, reqObj.data.tweetId);\n\n if (likeExists) {\n await this.twitterDB.deleteLike(profile.id, reqObj.data.tweetId);\n } else {\n await this.twitterDB.createLike(profile.id, reqObj.data.tweetId);\n }\n\n resp({ status: 'ok' });\n } catch (e) {\n twitterLogger.error(`Like failed, ${e.message}`, {\n source: reqObj.source,\n });\n\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleRetweet(reqObj: PromiseRequest<{ tweetId: number }>, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n\n // alert the player that they have already retweeted\n // this post (or that they are the original poster)\n if (await this.twitterDB.doesRetweetExist(reqObj.data.tweetId, identifier)) {\n resp({\n status: 'error',\n errorMsg: 'FEEDBACK.RETWEET_EXISTS',\n });\n }\n\n // our message for this row is blank because when we\n // query for this tweet it will join off of the retweet\n // column and fetch the message from the related tweet\n const retweet: NewTweet = { message: '', retweet: reqObj.data.tweetId };\n const createdTweet = await this.twitterDB.createTweet(identifier, retweet);\n\n const profile = await this.twitterDB.getProfile(identifier);\n const tweet = await this.twitterDB.getTweet(profile.id, createdTweet.id);\n\n resp({ status: 'ok' });\n emitNet(TwitterEvents.CREATE_TWEET_BROADCAST, -1, tweet);\n } catch (e) {\n twitterLogger.error(`Retweet failed, ${e.message}`, {\n source: reqObj.source,\n });\n\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleReport(reqObj: PromiseRequest<{ tweetId: number }>, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.getProfile(identifier);\n const tweet = await this.twitterDB.getTweet(profile.id, reqObj.data.tweetId);\n\n const reportExists = await this.twitterDB.doesReportExist(tweet.id, profile.id);\n\n if (reportExists) {\n return twitterLogger.warn('This profile has already reported this tweet');\n }\n\n await this.twitterDB.createTweetReport(tweet.id, profile.id);\n await reportTweetToDiscord(tweet, profile);\n\n resp({ status: 'ok' });\n } catch (e) {\n resp({ status: 'error', errorMsg: e.message });\n twitterLogger.error(`Twitter report failed, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n}\n\nconst TwitterService = new _TwitterService();\n\nexport default TwitterService;\n","import { NewTweet, Profile, Tweet } from '../../../typings/twitter';\nimport { pool } from '../db/pool';\nimport { ResultSetHeader } from 'mysql2';\nimport { config } from '../server';\nimport { generateProfileName } from '../utils/generateProfileName';\nimport { twitterLogger } from './twitter.utils';\nimport DbInterface from '../db/db_wrapper';\n\nconst SELECT_FIELDS = `\n npwd_twitter_tweets.id,\n npwd_twitter_tweets.identifier,\n npwd_twitter_profiles.id AS profile_id,\n npwd_twitter_profiles.profile_name,\n npwd_twitter_profiles.avatar_url,\n npwd_twitter_tweets.likes,\n npwd_twitter_tweets.visible,\n IFNULL(COALESCE(retweets.message, npwd_twitter_tweets.message), '') AS message,\n IFNULL(COALESCE(retweets.images, npwd_twitter_tweets.images), '') AS images,\n npwd_twitter_tweets.retweet IS NOT NULL AS isRetweet,\n retweets.id AS retweetId,\n retweets_profiles.profile_name AS retweetProfileName,\n retweets_profiles.avatar_url AS retweetAvatarUrl,\n npwd_twitter_likes.id IS NOT NULL AS isLiked,\n npwd_twitter_reports.id IS NOT NULL AS isReported,\n npwd_twitter_tweets.createdAt,\n npwd_twitter_tweets.updatedAt,\n TIME_TO_SEC(TIMEDIFF( NOW(), npwd_twitter_tweets.createdAt)) AS seconds_since_tweet\n`;\n\nconst TWEETS_PER_PAGE = 25;\n\nconst formatTweets =\n (profileId: number) =>\n (tweet: Tweet): Tweet => ({\n ...tweet,\n isMine: tweet.profile_id === profileId,\n isRetweet: tweet.isRetweet === 1,\n });\n\nexport class _TwitterDB {\n /**\n * Retrieve the latest 50 tweets\n * @param profileId - twitter profile id of the player\n */\n async fetchAllTweets(profileId: number, currPage: number): Promise {\n currPage = typeof currPage === 'number' ? currPage : 1; // avoid sql injection without prepared query\n const offset = currPage * TWEETS_PER_PAGE;\n const query = `\n SELECT ${SELECT_FIELDS}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n WHERE npwd_twitter_tweets.visible = 1\n ORDER BY id DESC\n LIMIT ? OFFSET ?\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [\n profileId,\n profileId,\n TWEETS_PER_PAGE,\n offset,\n ]);\n const tweets = results;\n return tweets.map(formatTweets(profileId));\n }\n\n /**\n * Fetch tweets by some search value submitted by the user. Intended to let\n * player's search for tweets by profile, message or more.\n * @param profileId - twitter profile id of the player\n * @param searchValue - value to search\n */\n async fetchTweetsFiltered(profileId: number, searchValue: string): Promise {\n const parameterizedSearchValue = `%${searchValue}%`;\n const query = `\n SELECT ${SELECT_FIELDS}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n WHERE npwd_twitter_tweets.visible = 1\n AND (npwd_twitter_profiles.profile_name LIKE ? OR npwd_twitter_tweets.message LIKE ?)\n ORDER BY npwd_twitter_tweets.id DESC\n LIMIT 25\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [\n profileId,\n profileId,\n parameterizedSearchValue,\n parameterizedSearchValue,\n ]);\n const tweets = results;\n return tweets.map(formatTweets(profileId));\n }\n\n /**\n * Retrieve a Tweet by ID\n * @param profileId Unique id for the twitter profile (NOT user identifier)\n * @param tweetId - primary key of the tweet ID\n */\n async getTweet(profileId: number, tweetId: number): Promise {\n const query = `\n SELECT ${SELECT_FIELDS}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n WHERE npwd_twitter_tweets.id = ?\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [profileId, profileId, tweetId]);\n const tweets = results;\n return tweets.map(formatTweets(profileId))[0];\n }\n\n /**\n * Creates a tweet in the database and then retrieves the tweet\n * @param identifier - player identifier\n * @param tweet - tweet to be created\n */\n async createTweet(identifier: string, tweet: NewTweet): Promise {\n const profile = await this.getProfile(identifier);\n const query = `\n INSERT INTO npwd_twitter_tweets (identifier, message, images, retweet)\n VALUES (?, ?, ?, ?)\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [\n identifier,\n tweet.message,\n tweet.images,\n tweet.retweet,\n ]);\n // This should not be an any type and instead should be\n // a Tweet[] according to mysql2 documentation. But instead\n // this exec promise returns the row itself, not an array of rows like it states\n // Therefore type assertion doesn't work here for correctly typing this out.\n const insertData = results;\n return await this.getTweet(profile.id, insertData.insertId);\n }\n\n async createTweetReport(tweetId: number, profileId: number): Promise {\n const query = `\n INSERT INTO npwd_twitter_reports (tweet_id, profile_id)\n VALUES (?, ?)\n\t\t`;\n await pool.execute(query, [tweetId, profileId]);\n }\n\n /**\n * Retrieve a player's twitter profile by their identifier\n * @param identifier - player identifier\n */\n async getProfile(identifier: string): Promise {\n const query = `\n SELECT *\n FROM npwd_twitter_profiles\n WHERE identifier = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier]);\n const profiles = results;\n return profiles.length > 0 ? profiles[0] : null;\n }\n\n /**\n * Create a twitter profile\n * @param identifier - player's identifier\n * @param profileName - profile name to be created\n * @returns\n */\n async createProfile(identifier: string, profileName: string): Promise {\n const query = `\n INSERT INTO npwd_twitter_profiles (identifier, profile_name)\n VALUES (?, ?)\n\t\t`;\n\n await pool.execute(query, [identifier, profileName]);\n return await this.getProfile(identifier);\n }\n\n /**\n * Create a default twitter profile for a player. This is the intial profile\n * that all player's will receive and can then customize.\n * @param identifier - player's identifier\n */\n async createDefaultProfile(identifier: string): Promise {\n // case where the server owner wants players to select their own names\n if (!config.twitter.generateProfileNameFromUsers) return null;\n\n const defaultProfileName = await generateProfileName(identifier);\n // case where we tried to generate a profile name but failed due to\n // some database misconfiguration or error\n if (!defaultProfileName) return null;\n\n twitterLogger.info(`Creating default Twitter profile ${defaultProfileName} for ${identifier}`);\n return await this.createProfile(identifier, defaultProfileName);\n }\n\n /**\n * Retrieve the player's profile by their identifier if it exists. If\n * not, create it and return it.\n * @param identifier - player's identifier\n */\n async getOrCreateProfile(identifier: string): Promise {\n const profile = await this.getProfile(identifier);\n return profile || (await this.createDefaultProfile(identifier));\n }\n\n async updateProfile(identifier: string, profile: Profile): Promise {\n const { avatar_url, profile_name } = profile;\n const query = `\n UPDATE npwd_twitter_profiles\n SET avatar_url = ?,\n profile_name = ?\n WHERE identifier = ?\n\t\t`;\n await pool.execute(query, [avatar_url, profile_name, identifier]);\n\n return profile;\n }\n\n /**\n * Create a \"like\" in the database that ties a profile & tweet together\n * @param profileId - primary key of the profile conducting the like\n * @param tweetId - primary key of the tweet being liked\n */\n async createLike(profileId: number, tweetId: number): Promise {\n const query = `\n INSERT INTO npwd_twitter_likes (profile_id, tweet_id)\n VALUES (?, ?)\n\t\t`;\n await pool.execute(query, [profileId, tweetId]);\n }\n\n /**\n * Delete a \"like\" relationship from the database\n * @param profileId - primary key of the profile removing the like\n * @param tweetId - primary key of the tweet to remove the like from\n */\n async deleteLike(profileId: number, tweetId: number): Promise {\n const query = `\n DELETE\n FROM npwd_twitter_likes\n WHERE profile_id = ?\n AND tweet_id = ?\n\t\t`;\n await pool.execute(query, [profileId, tweetId]);\n }\n\n /**\n * Delete a tweet from the database\n * @param identifier - identifier of the source user\n * @param tweetId - primary key of the tweet to remove the like from\n */\n async deleteTweet(identifier: string, tweetId: number): Promise {\n if (!config.twitter.allowDeleteTweets) return;\n\n const query = `\n DELETE\n FROM npwd_twitter_tweets\n WHERE identifier = ?\n AND id = ?\n\t\t`;\n await pool.execute(query, [identifier, tweetId]);\n }\n\n /**\n * Check if a \"like\" relationship between a profile and a tweet exists\n * @param profileId - primary key of the profile to check\n * @param tweetId - primary key of the tweet to check\n */\n async doesLikeExist(profileId: number, tweetId: number): Promise {\n const query = `\n SELECT *\n FROM npwd_twitter_likes\n WHERE profile_id = ?\n AND tweet_id = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [profileId, tweetId]);\n const likes = results;\n return likes.length > 0;\n }\n\n /**\n * Check if a tweet has been reported by this profile already\n * @param tweetId - primary key of the tweet to check\n * @param profileId - primary key of the profile to check\n */\n async doesReportExist(tweetId: number, profileId: number): Promise {\n const query = `\n SELECT *\n FROM npwd_twitter_reports\n WHERE tweet_id = ?\n AND profile_id = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [tweetId, profileId]);\n const reports = results;\n return reports.length > 0;\n }\n\n /**\n * Check to see if this player has already retweeted this tweet or\n * is the original poster of a retweeted tweet\n * @param tweetId - ID of the tweet in question\n * @param identifier - player identifier of the person performing the retweet\n */\n async doesRetweetExist(tweetId: number, identifier: string): Promise {\n const query = `\n SELECT COUNT(id) as count\n FROM npwd_twitter_tweets\n WHERE (id = ? OR retweet = ?)\n AND identifier = ?\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [tweetId, tweetId, identifier]);\n const counts = results;\n return counts[0].count > 0;\n }\n}\n\nconst TwitterDB = new _TwitterDB();\n\nexport default TwitterDB;\n","import {\n FormattedMatch,\n FormattedProfile,\n Like,\n MatchEvents,\n Profile,\n} from '../../../typings/match';\nimport MatchService from './match.service';\nimport { getSource } from '../utils/miscUtils';\nimport { matchLogger } from './match.utils';\nimport { config } from '../server';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(MatchEvents.GET_PROFILES, (reqObj, resp) => {\n MatchService.handleGetProfiles(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in fetch profiles event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.GET_MY_PROFILE, (reqObj, resp) => {\n MatchService.handleGetMyProfile(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in fetch my profile event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.GET_MATCHES, (reqObj, resp) => {\n MatchService.handleGetMatches(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in fetch matches event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.SAVE_LIKES, (reqObj, resp) => {\n MatchService.handleSaveLikes(reqObj, resp).catch((e) => {\n matchLogger.error(`Error occurred in save likes event (${reqObj.source}), Error: ${e.message}`);\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.CREATE_MY_PROFILE, (reqObj, resp) => {\n MatchService.handleCreateMyProfile(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in create my profile event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.UPDATE_MY_PROFILE, (reqObj, resp) => {\n MatchService.handleUpdateMyProfile(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in update my profile event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNet(MatchEvents.INITIALIZE, () => {\n const _source = getSource();\n MatchService.handleInitialize(_source).catch((e) =>\n matchLogger.error(`Error occurred in initialize event (${_source}), Error: ${e.message}`),\n );\n});\n\nif (!config.match.allowEditableProfileName && !config.match.generateProfileNameFromUsers) {\n const warning =\n `Both allowEdtiableProfileName and generateProfileNameFromUsers ` +\n `are set false - this means users will likely not have profile names ` +\n `for the Match App and won't be able to use it!`;\n matchLogger.warn(warning);\n}\n","import { formatMatches, formatProfile, matchLogger } from './match.utils';\nimport MatchDB, { _MatchDB } from './match.db';\nimport { FormattedMatch, FormattedProfile, Like, MatchResp, Profile } from '../../../typings/match';\nimport PlayerService from '../players/player.service';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\nimport { checkAndFilterImage } from './../utils/imageFiltering';\n\nclass _MatchService {\n private readonly matchDB: _MatchDB;\n\n constructor() {\n this.matchDB = MatchDB;\n matchLogger.debug('Match service started');\n }\n\n async handleGetProfiles(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const profiles = await this.dispatchProfiles(identifier);\n resp({ status: 'ok', data: profiles });\n } catch (e) {\n matchLogger.error(`Error in handleGetProfiles, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleGetMyProfile(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const profile = await this.dispatchPlayerProfile(identifier);\n resp({ status: 'ok', data: profile });\n } catch (e) {\n matchLogger.error(`Error in handleGetMyProfile, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleSaveLikes(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n matchLogger.debug(`Saving likes for identifier ${identifier}`);\n\n try {\n await this.matchDB.saveLikes(identifier, reqObj.data);\n } catch (e) {\n matchLogger.error(`Failed to save likes, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n\n try {\n const newMatches = await this.matchDB.findNewMatches(identifier, reqObj.data);\n\n if (newMatches.length > 0) {\n resp({ status: 'ok', data: true });\n } else {\n resp({ status: 'ok', data: false });\n }\n } catch (e) {\n matchLogger.error(`Failed to find new matches, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleGetMatches(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const matchedProfiles = await this.matchDB.findAllMatches(identifier);\n const formattedMatches = matchedProfiles.map(formatMatches);\n resp({ status: 'ok', data: formattedMatches });\n } catch (e) {\n matchLogger.error(`Failed to retrieve matches, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleCreateMyProfile(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = reqObj.data;\n\n matchLogger.debug(`Creating profile for identifier: ${identifier}`);\n matchLogger.debug(profile);\n\n try {\n if (!profile.name || !profile.name.trim()) {\n throw new Error('Profile name must not be blank');\n }\n\n const newProfile = await this.matchDB.createProfile(identifier, profile);\n const formattedProfile = formatProfile(newProfile);\n\n resp({ status: 'ok', data: formattedProfile });\n } catch (e) {\n matchLogger.error(`Failed to update profile for identifier ${identifier}, ${e.message}`);\n resp({ status: 'error', errorMsg: 'GENERIC_DB_ERROR' });\n }\n }\n\n async handleUpdateMyProfile(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = reqObj.data;\n\n matchLogger.debug(`Updating profile for identifier: ${identifier}`);\n matchLogger.debug(profile);\n\n try {\n if (!profile.name || !profile.name.trim()) {\n throw new Error('Profile name must not be blank');\n }\n\n const imageUrl = checkAndFilterImage(reqObj.data.image);\n if (imageUrl == null) {\n return resp({ status: 'error', errorMsg: 'GENERIC_INVALID_IMAGE_HOST' });\n }\n reqObj.data.image = imageUrl;\n\n const updatedProfile = await this.matchDB.updateProfile(identifier, profile);\n const formattedProfile = formatProfile(updatedProfile);\n\n resp({ status: 'ok', data: formattedProfile });\n } catch (e) {\n matchLogger.error(`Failed to update profile for identifier ${identifier}, ${e.message}`);\n resp({ status: 'error', errorMsg: MatchResp.UPDATE_FAILED });\n }\n }\n\n async dispatchPlayerProfile(identifier: string): Promise {\n try {\n const profile = await this.matchDB.getOrCreateProfile(identifier);\n return formatProfile(profile);\n } catch (e) {\n matchLogger.error(`Failed to get player profile, ${e.message}`);\n }\n }\n\n async dispatchProfiles(identifier: string): Promise {\n try {\n const profiles = await this.matchDB.getPotentialProfiles(identifier);\n return profiles.map(formatProfile);\n } catch (e) {\n matchLogger.error(`Failed to retrieve profiles, ${e.message}`);\n }\n }\n\n async handleInitialize(src: number) {\n const identifier = PlayerService.getIdentifier(src);\n matchLogger.debug(`Initializing match for identifier: ${identifier}`);\n await this.matchDB.updateLastActive(identifier);\n }\n}\n\nconst MatchService = new _MatchService();\n\nexport default MatchService;\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",f=\"month\",h=\"quarter\",c=\"year\",d=\"date\",$=\"Invalid Date\",l=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\")},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date() {\n const query = `\n SELECT npwd_match_profiles.*,\n UNIX_TIMESTAMP(npwd_match_profiles.updatedAt) AS lastActive,\n MaxDates.lastSeen\n FROM npwd_match_profiles\n LEFT OUTER JOIN (\n SELECT id, profile, MAX(createdAt) AS lastSeen\n FROM npwd_match_views\n WHERE identifier = ?\n GROUP BY id, profile\n ) AS MaxDates ON npwd_match_profiles.id = MaxDates.profile\n WHERE npwd_match_profiles.identifier != ?\n AND (MaxDates.lastSeen IS NULL OR MaxDates.lastSeen < NOW() - INTERVAL 7 DAY)\n ORDER BY npwd_match_profiles.updatedAt DESC\n LIMIT 25\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier, identifier]);\n return results;\n }\n\n /**\n * Save a list of Like objects\n * @param identifier - player's identifier\n * @param likes - likes to be saved to the database\n * @returns ResultSet\n */\n async saveLikes(identifier: string, likes: Like[]): Promise {\n const query = `INSERT INTO npwd_match_views (identifier, profile, liked)\n VALUES ?`;\n const formattedLikes = likes.map((like) => [identifier, like.id, like.liked]);\n\n const results = await DbInterface._rawExec(query, [formattedLikes]);\n return results;\n }\n\n /**\n * Determines if a profile we just liked has already liked us in the past which\n * indicates a match has occurred\n * @param identifier - player's identifier\n * @param id - profile ID we just liked\n * @returns Profile[] - list of profiles that are a match\n */\n async checkForMatchById(identifier: string, id: number): Promise {\n const query = `\n SELECT targetProfile.*,\n UNIX_TIMESTAMP(targetProfile.updatedAt) AS lastActive\n FROM npwd_match_views\n LEFT OUTER JOIN npwd_match_profiles AS playerProfile ON npwd_match_views.profile = playerProfile.id\n LEFT OUTER JOIN npwd_match_profiles AS targetProfile\n ON npwd_match_views.identifier = targetProfile.identifier\n WHERE playerProfile.identifier = ?\n AND targetProfile.id = ?\n AND Liked = 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier, id]);\n return results;\n }\n\n /**\n * Return all matches associated with a player regardless of date/time. A\n * match is a case where two profiles have liked each other.\n * @param identifier - player's identifier\n * @returns Match[] - all matches associated with the current player\n */\n async findAllMatches(identifier: string): Promise {\n const query = `\n SELECT targetProfile.*,\n UNIX_TIMESTAMP(targetProfile.updatedAt) AS lastActive,\n UNIX_TIMESTAMP(GREATEST(npwd_match_views.createdAt, targetViews.createdAt)) AS matchedAt,\n targetUser.${config.database.phoneNumberColumn} AS phoneNumber\n FROM npwd_match_views\n LEFT OUTER JOIN npwd_match_profiles AS targetProfile ON npwd_match_views.profile = targetProfile.id\n LEFT OUTER JOIN npwd_match_profiles AS myProfile ON npwd_match_views.identifier = myProfile.identifier\n LEFT OUTER JOIN npwd_match_views AS targetViews\n ON targetProfile.identifier = targetViews.identifier AND\n targetViews.profile = myProfile.id\n LEFT OUTER JOIN ${config.database.playerTable} AS targetUser ON targetProfile.identifier = targetUser.${config.database.identifierColumn}\n WHERE npwd_match_views.identifier = ?\n AND npwd_match_views.liked = 1\n AND targetViews.liked = 1\n ORDER BY matchedAt DESC\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier]);\n return results;\n }\n\n /**\n * Retrieve the current player's profile\n * @param identifier - player's identifier\n * @returns Profile - player's current profile\n */\n async getPlayerProfile(identifier: string): Promise {\n const query = `\n SELECT *,\n UNIX_TIMESTAMP(updatedAt) AS lastActive\n FROM npwd_match_profiles\n WHERE identifier = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier]);\n const profiles = results;\n return profiles[0];\n }\n\n /**\n * Create a profile and associate it with the current player\n * @param identifier - player's identifier\n * @param profile - profile we are going to create\n * @returns Profile - the created profile\n */\n async createProfile(identifier: string, profile: NewProfile): Promise {\n const { name, image, bio, location, job, tags } = profile;\n const query = `\n INSERT INTO npwd_match_profiles (identifier, name, image, bio, location, job, tags)\n VALUES (?, ?, ?, ?, ?, ?, ?)\n `;\n\n await pool.execute(query, [identifier, name, image, bio, location, job, tags]);\n return await this.getPlayerProfile(identifier);\n }\n\n /**\n * Update the current player's profile\n * @param identifier - player's identifier\n * @param profile Profile - player's updated profile\n */\n async updateProfile(identifier: string, profile: Profile): Promise {\n const { image, name, bio, location, job, tags } = profile;\n const query = `\n UPDATE npwd_match_profiles\n SET image = ?, name = ?, bio = ?, location = ?, job = ?, tags = ?\n WHERE identifier = ?\n `;\n await pool.execute(query, [image, name, bio, location, job, tags, identifier]);\n return await this.getPlayerProfile(identifier);\n }\n\n /**\n * Create a default profile for a player based on information\n * associated with them (name, phone number, etc.)\n * @param identifier - player's identifier\n * @returns Profile | null - the player's profile or null if it does not exist\n * and could not be created\n */\n async createDefaultProfile(identifier: string): Promise {\n // case where the server owner wants players to select their own names\n if (!config.match.generateProfileNameFromUsers) return null;\n\n const defaultProfileName = await generateProfileName(identifier, ' ');\n // case where we tried to generate a profile name but failed due to\n // some database misconfiguration or error\n if (!defaultProfileName) return null;\n\n const defaultProfile = {\n name: defaultProfileName,\n image: DEFAULT_IMAGE,\n bio: '',\n location: '',\n job: '',\n tags: '',\n };\n\n matchLogger.info(`Creating default match profile ${defaultProfileName} for ${identifier}`);\n return await this.createProfile(identifier, defaultProfile);\n }\n\n /**\n * Given a list of likes determine if any of the profiles we liked have also\n * liked us which indicates a match has occurred.\n * @param identifier - player's identifier\n * @param likes - list of new Likes\n * @returns Profile[] - list of profiles we matched with\n */\n async findNewMatches(identifier: string, likes: Like[]): Promise {\n let matches: Profile[] = [];\n for (const like of likes) {\n if (!like.liked) continue;\n const matchedProfiles = await this.checkForMatchById(identifier, like.id);\n matches = matches.concat(matchedProfiles);\n }\n return matches;\n }\n\n /**\n * Retrieve the player's profile by their identifier if it exists. If\n * not, create it and return it.\n * @param identifier - player's identifier\n * @returns Profile - player's profile\n */\n async getOrCreateProfile(identifier: string): Promise {\n const profile = await this.getPlayerProfile(identifier);\n return profile || (await this.createDefaultProfile(identifier));\n }\n\n /**\n * We track when the player last used the app so other players can\n * be aware of how active that player is when they are liking/disliking\n * @param identifier - player's identifier\n */\n async updateLastActive(identifier: string): Promise {\n const query = `\n UPDATE npwd_match_profiles\n SET updatedAt = CURRENT_TIMESTAMP()\n WHERE identifier = ?\n `;\n await pool.execute(query, [identifier]);\n }\n}\n\nconst MatchDB = new _MatchDB();\n\nexport default MatchDB;\n","import { generateUniquePhoneNumber } from '../misc/generateUniquePhoneNumber';\nimport { bridgeLogger } from './bridge.utils';\nimport { config } from '../server';\nimport { PlayerAddData } from '../players/player.interfaces';\nimport { playerLogger } from '../players/player.utils';\nimport PlayerService from '../players/player.service';\nimport { PhoneEvents } from '../../../typings/phone';\n\nconst exp = global.exports;\n\nconst logExport = (exportName: string, msg: string) => {\n bridgeLogger.debug(`[${exportName}] ${msg}`);\n};\n\n// Will generate and return a unique phone number\nexp('generatePhoneNumber', async () => {\n const num = await generateUniquePhoneNumber();\n logExport('generatePhoneNumber', num);\n return num;\n});\n\n// For multicharacter frameworks, we enable these events for\n// instantiating/deleting a player. The config option must be set to true\n// for these to be available\nif (config.general.useResourceIntegration) {\n exp('newPlayer', async (playerDTO: PlayerAddData) => {\n if (typeof playerDTO.source !== 'number') {\n return playerLogger.error('Source must be passed as a number when loading a player');\n }\n await PlayerService.handleNewPlayerEvent(playerDTO);\n emitNet(PhoneEvents.SET_PLAYER_LOADED, playerDTO.source, true);\n });\n\n exp('unloadPlayer', async (src: number) => {\n if (typeof src !== 'number') {\n return playerLogger.error('Source must be passed as a number when unloading a player');\n }\n playerLogger.debug(`Received unloadPlayer event for ${src}`);\n await PlayerService.handleUnloadPlayerEvent(src);\n });\n}\n","import { mainLogger } from '../sv_logger';\n\nexport const bridgeLogger = mainLogger.child({ module: 'bridge' });\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst net_1 = __importDefault(require(\"net\"));\nconst tls_1 = __importDefault(require(\"tls\"));\nconst url_1 = __importDefault(require(\"url\"));\nconst assert_1 = __importDefault(require(\"assert\"));\nconst debug_1 = __importDefault(require(\"debug\"));\nconst agent_base_1 = require(\"agent-base\");\nconst parse_proxy_response_1 = __importDefault(require(\"./parse-proxy-response\"));\nconst debug = debug_1.default('https-proxy-agent:agent');\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n *\n * @api public\n */\nclass HttpsProxyAgent extends agent_base_1.Agent {\n constructor(_opts) {\n let opts;\n if (typeof _opts === 'string') {\n opts = url_1.default.parse(_opts);\n }\n else {\n opts = _opts;\n }\n if (!opts) {\n throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!');\n }\n debug('creating new HttpsProxyAgent instance: %o', opts);\n super(opts);\n const proxy = Object.assign({}, opts);\n // If `true`, then connect to the proxy server over TLS.\n // Defaults to `false`.\n this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);\n // Prefer `hostname` over `host`, and set the `port` if needed.\n proxy.host = proxy.hostname || proxy.host;\n if (typeof proxy.port === 'string') {\n proxy.port = parseInt(proxy.port, 10);\n }\n if (!proxy.port && proxy.host) {\n proxy.port = this.secureProxy ? 443 : 80;\n }\n // ALPN is supported by Node.js >= v5.\n // attempt to negotiate http/1.1 for proxy servers that support http/2\n if (this.secureProxy && !('ALPNProtocols' in proxy)) {\n proxy.ALPNProtocols = ['http 1.1'];\n }\n if (proxy.host && proxy.path) {\n // If both a `host` and `path` are specified then it's most likely\n // the result of a `url.parse()` call... we need to remove the\n // `path` portion so that `net.connect()` doesn't attempt to open\n // that as a Unix socket file.\n delete proxy.path;\n delete proxy.pathname;\n }\n this.proxy = proxy;\n }\n /**\n * Called when the node-core HTTP client library is creating a\n * new HTTP request.\n *\n * @api protected\n */\n callback(req, opts) {\n return __awaiter(this, void 0, void 0, function* () {\n const { proxy, secureProxy } = this;\n // Create a socket connection to the proxy server.\n let socket;\n if (secureProxy) {\n debug('Creating `tls.Socket`: %o', proxy);\n socket = tls_1.default.connect(proxy);\n }\n else {\n debug('Creating `net.Socket`: %o', proxy);\n socket = net_1.default.connect(proxy);\n }\n const headers = Object.assign({}, proxy.headers);\n const hostname = `${opts.host}:${opts.port}`;\n let payload = `CONNECT ${hostname} HTTP/1.1\\r\\n`;\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.auth) {\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`;\n }\n // The `Host` header should only include the port\n // number when it is not the default port.\n let { host, port, secureEndpoint } = opts;\n if (!isDefaultPort(port, secureEndpoint)) {\n host += `:${port}`;\n }\n headers.Host = host;\n headers.Connection = 'close';\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n const proxyResponsePromise = parse_proxy_response_1.default(socket);\n socket.write(`${payload}\\r\\n`);\n const { statusCode, buffered } = yield proxyResponsePromise;\n if (statusCode === 200) {\n req.once('socket', resume);\n if (opts.secureEndpoint) {\n const servername = opts.servername || opts.host;\n if (!servername) {\n throw new Error('Could not determine \"servername\"');\n }\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debug('Upgrading socket connection to TLS');\n return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket,\n servername }));\n }\n return socket;\n }\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n const fakeSocket = new net_1.default.Socket();\n fakeSocket.readable = true;\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s) => {\n debug('replaying proxy buffer for failed request');\n assert_1.default(s.listenerCount('data') > 0);\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n return fakeSocket;\n });\n }\n}\nexports.default = HttpsProxyAgent;\nfunction resume(socket) {\n socket.resume();\n}\nfunction isDefaultPort(port, secure) {\n return Boolean((!secure && port === 80) || (secure && port === 443));\n}\nfunction isHTTPS(protocol) {\n return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false;\n}\nfunction omit(obj, ...keys) {\n const ret = {};\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n//# sourceMappingURL=agent.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nconst events_1 = require(\"events\");\nconst debug_1 = __importDefault(require(\"debug\"));\nconst promisify_1 = __importDefault(require(\"./promisify\"));\nconst debug = debug_1.default('agent-base');\nfunction isAgent(v) {\n return Boolean(v) && typeof v.addRequest === 'function';\n}\nfunction isSecureEndpoint() {\n const { stack } = new Error();\n if (typeof stack !== 'string')\n return false;\n return stack.split('\\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);\n}\nfunction createAgent(callback, opts) {\n return new createAgent.Agent(callback, opts);\n}\n(function (createAgent) {\n /**\n * Base `http.Agent` implementation.\n * No pooling/keep-alive is implemented by default.\n *\n * @param {Function} callback\n * @api public\n */\n class Agent extends events_1.EventEmitter {\n constructor(callback, _opts) {\n super();\n let opts = _opts;\n if (typeof callback === 'function') {\n this.callback = callback;\n }\n else if (callback) {\n opts = callback;\n }\n // Timeout for the socket to be returned from the callback\n this.timeout = null;\n if (opts && typeof opts.timeout === 'number') {\n this.timeout = opts.timeout;\n }\n // These aren't actually used by `agent-base`, but are required\n // for the TypeScript definition files in `@types/node` :/\n this.maxFreeSockets = 1;\n this.maxSockets = 1;\n this.maxTotalSockets = Infinity;\n this.sockets = {};\n this.freeSockets = {};\n this.requests = {};\n this.options = {};\n }\n get defaultPort() {\n if (typeof this.explicitDefaultPort === 'number') {\n return this.explicitDefaultPort;\n }\n return isSecureEndpoint() ? 443 : 80;\n }\n set defaultPort(v) {\n this.explicitDefaultPort = v;\n }\n get protocol() {\n if (typeof this.explicitProtocol === 'string') {\n return this.explicitProtocol;\n }\n return isSecureEndpoint() ? 'https:' : 'http:';\n }\n set protocol(v) {\n this.explicitProtocol = v;\n }\n callback(req, opts, fn) {\n throw new Error('\"agent-base\" has no default implementation, you must subclass and override `callback()`');\n }\n /**\n * Called by node-core's \"_http_client.js\" module when creating\n * a new HTTP request with this Agent instance.\n *\n * @api public\n */\n addRequest(req, _opts) {\n const opts = Object.assign({}, _opts);\n if (typeof opts.secureEndpoint !== 'boolean') {\n opts.secureEndpoint = isSecureEndpoint();\n }\n if (opts.host == null) {\n opts.host = 'localhost';\n }\n if (opts.port == null) {\n opts.port = opts.secureEndpoint ? 443 : 80;\n }\n if (opts.protocol == null) {\n opts.protocol = opts.secureEndpoint ? 'https:' : 'http:';\n }\n if (opts.host && opts.path) {\n // If both a `host` and `path` are specified then it's most\n // likely the result of a `url.parse()` call... we need to\n // remove the `path` portion so that `net.connect()` doesn't\n // attempt to open that as a unix socket file.\n delete opts.path;\n }\n delete opts.agent;\n delete opts.hostname;\n delete opts._defaultAgent;\n delete opts.defaultPort;\n delete opts.createConnection;\n // Hint to use \"Connection: close\"\n // XXX: non-documented `http` module API :(\n req._last = true;\n req.shouldKeepAlive = false;\n let timedOut = false;\n let timeoutId = null;\n const timeoutMs = opts.timeout || this.timeout;\n const onerror = (err) => {\n if (req._hadError)\n return;\n req.emit('error', err);\n // For Safety. Some additional errors might fire later on\n // and we need to make sure we don't double-fire the error event.\n req._hadError = true;\n };\n const ontimeout = () => {\n timeoutId = null;\n timedOut = true;\n const err = new Error(`A \"socket\" was not created for HTTP request before ${timeoutMs}ms`);\n err.code = 'ETIMEOUT';\n onerror(err);\n };\n const callbackError = (err) => {\n if (timedOut)\n return;\n if (timeoutId !== null) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n onerror(err);\n };\n const onsocket = (socket) => {\n if (timedOut)\n return;\n if (timeoutId != null) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n if (isAgent(socket)) {\n // `socket` is actually an `http.Agent` instance, so\n // relinquish responsibility for this `req` to the Agent\n // from here on\n debug('Callback returned another Agent instance %o', socket.constructor.name);\n socket.addRequest(req, opts);\n return;\n }\n if (socket) {\n socket.once('free', () => {\n this.freeSocket(socket, opts);\n });\n req.onSocket(socket);\n return;\n }\n const err = new Error(`no Duplex stream was returned to agent-base for \\`${req.method} ${req.path}\\``);\n onerror(err);\n };\n if (typeof this.callback !== 'function') {\n onerror(new Error('`callback` is not defined'));\n return;\n }\n if (!this.promisifiedCallback) {\n if (this.callback.length >= 3) {\n debug('Converting legacy callback function to promise');\n this.promisifiedCallback = promisify_1.default(this.callback);\n }\n else {\n this.promisifiedCallback = this.callback;\n }\n }\n if (typeof timeoutMs === 'number' && timeoutMs > 0) {\n timeoutId = setTimeout(ontimeout, timeoutMs);\n }\n if ('port' in opts && typeof opts.port !== 'number') {\n opts.port = Number(opts.port);\n }\n try {\n debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`);\n Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);\n }\n catch (err) {\n Promise.reject(err).catch(callbackError);\n }\n }\n freeSocket(socket, opts) {\n debug('Freeing socket %o %o', socket.constructor.name, opts);\n socket.destroy();\n }\n destroy() {\n debug('Destroying agent %o', this.constructor.name);\n }\n }\n createAgent.Agent = Agent;\n // So that `instanceof` works correctly\n createAgent.prototype = createAgent.Agent.prototype;\n})(createAgent || (createAgent = {}));\nmodule.exports = createAgent;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction promisify(fn) {\n return function (req, opts) {\n return new Promise((resolve, reject) => {\n fn.call(this, req, opts, (err, rtn) => {\n if (err) {\n reject(err);\n }\n else {\n resolve(rtn);\n }\n });\n });\n };\n}\nexports.default = promisify;\n//# sourceMappingURL=promisify.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst debug_1 = __importDefault(require(\"debug\"));\nconst debug = debug_1.default('https-proxy-agent:parse-proxy-response');\nfunction parseProxyResponse(socket) {\n return new Promise((resolve, reject) => {\n // we need to buffer any HTTP traffic that happens with the proxy before we get\n // the CONNECT response, so that if the response is anything other than an \"200\"\n // response code, then we can re-play the \"data\" events on the socket once the\n // HTTP parser is hooked up...\n let buffersLength = 0;\n const buffers = [];\n function read() {\n const b = socket.read();\n if (b)\n ondata(b);\n else\n socket.once('readable', read);\n }\n function cleanup() {\n socket.removeListener('end', onend);\n socket.removeListener('error', onerror);\n socket.removeListener('close', onclose);\n socket.removeListener('readable', read);\n }\n function onclose(err) {\n debug('onclose had error %o', err);\n }\n function onend() {\n debug('onend');\n }\n function onerror(err) {\n cleanup();\n debug('onerror %o', err);\n reject(err);\n }\n function ondata(b) {\n buffers.push(b);\n buffersLength += b.length;\n const buffered = Buffer.concat(buffers, buffersLength);\n const endOfHeaders = buffered.indexOf('\\r\\n\\r\\n');\n if (endOfHeaders === -1) {\n // keep buffering\n debug('have not received end of HTTP headers yet...');\n read();\n return;\n }\n const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\\r\\n'));\n const statusCode = +firstLine.split(' ')[1];\n debug('got proxy server response: %o', firstLine);\n resolve({\n statusCode,\n buffered\n });\n }\n socket.on('error', onerror);\n socket.on('close', onclose);\n socket.on('end', onend);\n read();\n });\n}\nexports.default = parseProxyResponse;\n//# sourceMappingURL=parse-proxy-response.js.map","/** The status of an event. */\n// eslint-disable-next-line import/export\nexport var Status;\n(function (Status) {\n /** The status could not be determined. */\n Status[\"Unknown\"] = \"unknown\";\n /** The event was skipped due to configuration or callbacks. */\n Status[\"Skipped\"] = \"skipped\";\n /** The event was sent to Sentry successfully. */\n Status[\"Success\"] = \"success\";\n /** The client is currently rate limited and will try again later. */\n Status[\"RateLimit\"] = \"rate_limit\";\n /** The event could not be processed. */\n Status[\"Invalid\"] = \"invalid\";\n /** A server-side error occurred during submission. */\n Status[\"Failed\"] = \"failed\";\n})(Status || (Status = {}));\n// eslint-disable-next-line @typescript-eslint/no-namespace, import/export\n(function (Status) {\n /**\n * Converts a HTTP status code into a {@link Status}.\n *\n * @param code The HTTP response status code.\n * @returns The send status or {@link Status.Unknown}.\n */\n function fromHttpCode(code) {\n if (code >= 200 && code < 300) {\n return Status.Success;\n }\n if (code === 429) {\n return Status.RateLimit;\n }\n if (code >= 400 && code < 500) {\n return Status.Invalid;\n }\n if (code >= 500) {\n return Status.Failed;\n }\n return Status.Unknown;\n }\n Status.fromHttpCode = fromHttpCode;\n})(Status || (Status = {}));\n//# sourceMappingURL=status.js.map","import { __assign, __read, __spread } from \"tslib\";\nimport { getCurrentHub } from '@sentry/hub';\n/**\n * This calls a function on the current hub.\n * @param method function to call on hub.\n * @param args to pass to function.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction callOnHub(method) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var hub = getCurrentHub();\n if (hub && hub[method]) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return hub[method].apply(hub, __spread(args));\n }\n throw new Error(\"No hub defined or \" + method + \" was not found on the hub, please open a bug report.\");\n}\n/**\n * Captures an exception event and sends it to Sentry.\n *\n * @param exception An exception-like object.\n * @returns The generated eventId.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\nexport function captureException(exception, captureContext) {\n var syntheticException;\n try {\n throw new Error('Sentry syntheticException');\n }\n catch (exception) {\n syntheticException = exception;\n }\n return callOnHub('captureException', exception, {\n captureContext: captureContext,\n originalException: exception,\n syntheticException: syntheticException,\n });\n}\n/**\n * Captures a message event and sends it to Sentry.\n *\n * @param message The message to send to Sentry.\n * @param level Define the level of the message.\n * @returns The generated eventId.\n */\nexport function captureMessage(message, captureContext) {\n var syntheticException;\n try {\n throw new Error(message);\n }\n catch (exception) {\n syntheticException = exception;\n }\n // This is necessary to provide explicit scopes upgrade, without changing the original\n // arity of the `captureMessage(message, level)` method.\n var level = typeof captureContext === 'string' ? captureContext : undefined;\n var context = typeof captureContext !== 'string' ? { captureContext: captureContext } : undefined;\n return callOnHub('captureMessage', message, level, __assign({ originalException: message, syntheticException: syntheticException }, context));\n}\n/**\n * Captures a manually created event and sends it to Sentry.\n *\n * @param event The event to send to Sentry.\n * @returns The generated eventId.\n */\nexport function captureEvent(event) {\n return callOnHub('captureEvent', event);\n}\n/**\n * Callback to set context information onto the scope.\n * @param callback Callback function that receives Scope.\n */\nexport function configureScope(callback) {\n callOnHub('configureScope', callback);\n}\n/**\n * Records a new breadcrumb which will be attached to future events.\n *\n * Breadcrumbs will be added to subsequent events to provide more context on\n * user's actions prior to an error or crash.\n *\n * @param breadcrumb The breadcrumb to record.\n */\nexport function addBreadcrumb(breadcrumb) {\n callOnHub('addBreadcrumb', breadcrumb);\n}\n/**\n * Sets context data with the given name.\n * @param name of the context\n * @param context Any kind of data. This data will be normalized.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function setContext(name, context) {\n callOnHub('setContext', name, context);\n}\n/**\n * Set an object that will be merged sent as extra data with the event.\n * @param extras Extras object to merge into current context.\n */\nexport function setExtras(extras) {\n callOnHub('setExtras', extras);\n}\n/**\n * Set an object that will be merged sent as tags data with the event.\n * @param tags Tags context object to merge into current context.\n */\nexport function setTags(tags) {\n callOnHub('setTags', tags);\n}\n/**\n * Set key:value that will be sent as extra data with the event.\n * @param key String of extra\n * @param extra Any kind of data. This data will be normalized.\n */\nexport function setExtra(key, extra) {\n callOnHub('setExtra', key, extra);\n}\n/**\n * Set key:value that will be sent as tags data with the event.\n *\n * Can also be used to unset a tag, by passing `undefined`.\n *\n * @param key String key of tag\n * @param value Value of tag\n */\nexport function setTag(key, value) {\n callOnHub('setTag', key, value);\n}\n/**\n * Updates user context information for future events.\n *\n * @param user User context object to be set in the current context. Pass `null` to unset the user.\n */\nexport function setUser(user) {\n callOnHub('setUser', user);\n}\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n *\n * This is essentially a convenience function for:\n *\n * pushScope();\n * callback();\n * popScope();\n *\n * @param callback that will be enclosed into push/popScope.\n */\nexport function withScope(callback) {\n callOnHub('withScope', callback);\n}\n/**\n * Calls a function on the latest client. Use this with caution, it's meant as\n * in \"internal\" helper so we don't need to expose every possible function in\n * the shim. It is not guaranteed that the client actually implements the\n * function.\n *\n * @param method The method to call on the client/client.\n * @param args Arguments to pass to the client/fontend.\n * @hidden\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function _callOnClient(method) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n callOnHub.apply(void 0, __spread(['_invokeClient', method], args));\n}\n/**\n * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.\n *\n * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a\n * new child span within the transaction or any span, call the respective `.startChild()` method.\n *\n * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.\n *\n * The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its\n * finished child spans will be sent to Sentry.\n *\n * @param context Properties of the new `Transaction`.\n * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent\n * default values). See {@link Options.tracesSampler}.\n *\n * @returns The transaction which was just started\n */\nexport function startTransaction(context, customSamplingContext) {\n return callOnHub('startTransaction', __assign({}, context), customSamplingContext);\n}\n//# sourceMappingURL=index.js.map","export var SDK_VERSION = '6.15.0';\n//# sourceMappingURL=version.js.map","export var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties);\n/**\n * setPrototypeOf polyfill using __proto__\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction setProtoOf(obj, proto) {\n // @ts-ignore __proto__ does not exist on obj\n obj.__proto__ = proto;\n return obj;\n}\n/**\n * setPrototypeOf polyfill using mixin\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction mixinProperties(obj, proto) {\n for (var prop in proto) {\n if (!Object.prototype.hasOwnProperty.call(obj, prop)) {\n // @ts-ignore typescript complains about indexing so we remove\n obj[prop] = proto[prop];\n }\n }\n return obj;\n}\n//# sourceMappingURL=polyfill.js.map","import { __extends } from \"tslib\";\nimport { setPrototypeOf } from './polyfill';\n/** An error emitted by Sentry SDKs and related utilities. */\nvar SentryError = /** @class */ (function (_super) {\n __extends(SentryError, _super);\n function SentryError(message) {\n var _newTarget = this.constructor;\n var _this = _super.call(this, message) || this;\n _this.message = message;\n _this.name = _newTarget.prototype.constructor.name;\n setPrototypeOf(_this, _newTarget.prototype);\n return _this;\n }\n return SentryError;\n}(Error));\nexport { SentryError };\n//# sourceMappingURL=error.js.map","import { Status } from '@sentry/types';\nimport { SyncPromise } from '@sentry/utils';\n/** Noop transport */\nvar NoopTransport = /** @class */ (function () {\n function NoopTransport() {\n }\n /**\n * @inheritDoc\n */\n NoopTransport.prototype.sendEvent = function (_) {\n return SyncPromise.resolve({\n reason: \"NoopTransport: Event has been skipped because no Dsn is configured.\",\n status: Status.Skipped,\n });\n };\n /**\n * @inheritDoc\n */\n NoopTransport.prototype.close = function (_) {\n return SyncPromise.resolve(true);\n };\n return NoopTransport;\n}());\nexport { NoopTransport };\n//# sourceMappingURL=noop.js.map","import { logger, SentryError } from '@sentry/utils';\nimport { NoopTransport } from './transports/noop';\n/**\n * This is the base implemention of a Backend.\n * @hidden\n */\nvar BaseBackend = /** @class */ (function () {\n /** Creates a new backend instance. */\n function BaseBackend(options) {\n this._options = options;\n if (!this._options.dsn) {\n logger.warn('No DSN provided, backend will not do anything.');\n }\n this._transport = this._setupTransport();\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n BaseBackend.prototype.eventFromException = function (_exception, _hint) {\n throw new SentryError('Backend has to implement `eventFromException` method');\n };\n /**\n * @inheritDoc\n */\n BaseBackend.prototype.eventFromMessage = function (_message, _level, _hint) {\n throw new SentryError('Backend has to implement `eventFromMessage` method');\n };\n /**\n * @inheritDoc\n */\n BaseBackend.prototype.sendEvent = function (event) {\n void this._transport.sendEvent(event).then(null, function (reason) {\n logger.error(\"Error while sending event: \" + reason);\n });\n };\n /**\n * @inheritDoc\n */\n BaseBackend.prototype.sendSession = function (session) {\n if (!this._transport.sendSession) {\n logger.warn(\"Dropping session because custom transport doesn't implement sendSession\");\n return;\n }\n void this._transport.sendSession(session).then(null, function (reason) {\n logger.error(\"Error while sending session: \" + reason);\n });\n };\n /**\n * @inheritDoc\n */\n BaseBackend.prototype.getTransport = function () {\n return this._transport;\n };\n /**\n * Sets up the transport so it can be used later to send requests.\n */\n BaseBackend.prototype._setupTransport = function () {\n return new NoopTransport();\n };\n return BaseBackend;\n}());\nexport { BaseBackend };\n//# sourceMappingURL=basebackend.js.map","import { __read } from \"tslib\";\nimport { SentryError } from './error';\n/** Regular expression used to parse a Dsn. */\nvar DSN_REGEX = /^(?:(\\w+):)\\/\\/(?:(\\w+)(?::(\\w+))?@)([\\w.-]+)(?::(\\d+))?\\/(.+)/;\n/** Error message */\nvar ERROR_MESSAGE = 'Invalid Dsn';\n/** The Sentry Dsn, identifying a Sentry instance and project. */\nvar Dsn = /** @class */ (function () {\n /** Creates a new Dsn component */\n function Dsn(from) {\n if (typeof from === 'string') {\n this._fromString(from);\n }\n else {\n this._fromComponents(from);\n }\n this._validate();\n }\n /**\n * Renders the string representation of this Dsn.\n *\n * By default, this will render the public representation without the password\n * component. To get the deprecated private representation, set `withPassword`\n * to true.\n *\n * @param withPassword When set to true, the password will be included.\n */\n Dsn.prototype.toString = function (withPassword) {\n if (withPassword === void 0) { withPassword = false; }\n var _a = this, host = _a.host, path = _a.path, pass = _a.pass, port = _a.port, projectId = _a.projectId, protocol = _a.protocol, publicKey = _a.publicKey;\n return (protocol + \"://\" + publicKey + (withPassword && pass ? \":\" + pass : '') +\n (\"@\" + host + (port ? \":\" + port : '') + \"/\" + (path ? path + \"/\" : path) + projectId));\n };\n /** Parses a string into this Dsn. */\n Dsn.prototype._fromString = function (str) {\n var match = DSN_REGEX.exec(str);\n if (!match) {\n throw new SentryError(ERROR_MESSAGE);\n }\n var _a = __read(match.slice(1), 6), protocol = _a[0], publicKey = _a[1], _b = _a[2], pass = _b === void 0 ? '' : _b, host = _a[3], _c = _a[4], port = _c === void 0 ? '' : _c, lastPath = _a[5];\n var path = '';\n var projectId = lastPath;\n var split = projectId.split('/');\n if (split.length > 1) {\n path = split.slice(0, -1).join('/');\n projectId = split.pop();\n }\n if (projectId) {\n var projectMatch = projectId.match(/^\\d+/);\n if (projectMatch) {\n projectId = projectMatch[0];\n }\n }\n this._fromComponents({ host: host, pass: pass, path: path, projectId: projectId, port: port, protocol: protocol, publicKey: publicKey });\n };\n /** Maps Dsn components into this instance. */\n Dsn.prototype._fromComponents = function (components) {\n // TODO this is for backwards compatibility, and can be removed in a future version\n if ('user' in components && !('publicKey' in components)) {\n components.publicKey = components.user;\n }\n this.user = components.publicKey || '';\n this.protocol = components.protocol;\n this.publicKey = components.publicKey || '';\n this.pass = components.pass || '';\n this.host = components.host;\n this.port = components.port || '';\n this.path = components.path || '';\n this.projectId = components.projectId;\n };\n /** Validates this Dsn and throws on error. */\n Dsn.prototype._validate = function () {\n var _this = this;\n ['protocol', 'publicKey', 'host', 'projectId'].forEach(function (component) {\n if (!_this[component]) {\n throw new SentryError(ERROR_MESSAGE + \": \" + component + \" missing\");\n }\n });\n if (!this.projectId.match(/^\\d+$/)) {\n throw new SentryError(ERROR_MESSAGE + \": Invalid projectId \" + this.projectId);\n }\n if (this.protocol !== 'http' && this.protocol !== 'https') {\n throw new SentryError(ERROR_MESSAGE + \": Invalid protocol \" + this.protocol);\n }\n if (this.port && isNaN(parseInt(this.port, 10))) {\n throw new SentryError(ERROR_MESSAGE + \": Invalid port \" + this.port);\n }\n };\n return Dsn;\n}());\nexport { Dsn };\n//# sourceMappingURL=dsn.js.map","import { addContextToFrame, basename, dirname, SyncPromise } from '@sentry/utils';\nimport { readFile } from 'fs';\nimport { LRUMap } from 'lru_map';\nimport * as stacktrace from './stacktrace';\nvar DEFAULT_LINES_OF_CONTEXT = 7;\nvar FILE_CONTENT_CACHE = new LRUMap(100);\n/**\n * Resets the file cache. Exists for testing purposes.\n * @hidden\n */\nexport function resetFileContentCache() {\n FILE_CONTENT_CACHE.clear();\n}\n/** JSDoc */\nfunction getFunction(frame) {\n try {\n return frame.functionName || frame.typeName + \".\" + (frame.methodName || '');\n }\n catch (e) {\n // This seems to happen sometimes when using 'use strict',\n // stemming from `getTypeName`.\n // [TypeError: Cannot read property 'constructor' of undefined]\n return '';\n }\n}\nvar mainModule = ((require.main && require.main.filename && dirname(require.main.filename)) ||\n global.process.cwd()) + \"/\";\n/** JSDoc */\nfunction getModule(filename, base) {\n if (!base) {\n // eslint-disable-next-line no-param-reassign\n base = mainModule;\n }\n // It's specifically a module\n var file = basename(filename, '.js');\n // eslint-disable-next-line no-param-reassign\n filename = dirname(filename);\n var n = filename.lastIndexOf('/node_modules/');\n if (n > -1) {\n // /node_modules/ is 14 chars\n return filename.substr(n + 14).replace(/\\//g, '.') + \":\" + file;\n }\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n n = (filename + \"/\").lastIndexOf(base, 0);\n if (n === 0) {\n var moduleName = filename.substr(base.length).replace(/\\//g, '.');\n if (moduleName) {\n moduleName += ':';\n }\n moduleName += file;\n return moduleName;\n }\n return file;\n}\n/**\n * This function reads file contents and caches them in a global LRU cache.\n * Returns a Promise filepath => content array for all files that we were able to read.\n *\n * @param filenames Array of filepaths to read content from.\n */\nfunction readSourceFiles(filenames) {\n // we're relying on filenames being de-duped already\n if (filenames.length === 0) {\n return SyncPromise.resolve({});\n }\n return new SyncPromise(function (resolve) {\n var sourceFiles = {};\n var count = 0;\n var _loop_1 = function (i) {\n var filename = filenames[i];\n var cache = FILE_CONTENT_CACHE.get(filename);\n // We have a cache hit\n if (cache !== undefined) {\n // If it's not null (which means we found a file and have a content)\n // we set the content and return it later.\n if (cache !== null) {\n sourceFiles[filename] = cache;\n }\n // eslint-disable-next-line no-plusplus\n count++;\n // In any case we want to skip here then since we have a content already or we couldn't\n // read the file and don't want to try again.\n if (count === filenames.length) {\n resolve(sourceFiles);\n }\n return \"continue\";\n }\n readFile(filename, function (err, data) {\n var content = err ? null : data.toString();\n sourceFiles[filename] = content;\n // We always want to set the cache, even to null which means there was an error reading the file.\n // We do not want to try to read the file again.\n FILE_CONTENT_CACHE.set(filename, content);\n // eslint-disable-next-line no-plusplus\n count++;\n if (count === filenames.length) {\n resolve(sourceFiles);\n }\n });\n };\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < filenames.length; i++) {\n _loop_1(i);\n }\n });\n}\n/**\n * @hidden\n */\nexport function extractStackFromError(error) {\n var stack = stacktrace.parse(error);\n if (!stack) {\n return [];\n }\n return stack;\n}\n/**\n * @hidden\n */\nexport function parseStack(stack, options) {\n var filesToRead = [];\n var linesOfContext = options && options.frameContextLines !== undefined ? options.frameContextLines : DEFAULT_LINES_OF_CONTEXT;\n var frames = stack.map(function (frame) {\n var _a;\n var parsedFrame = {\n colno: frame.columnNumber,\n filename: ((_a = frame.fileName) === null || _a === void 0 ? void 0 : _a.startsWith('file://')) ? frame.fileName.substr(7) : frame.fileName || '',\n function: getFunction(frame),\n lineno: frame.lineNumber,\n };\n var isInternal = frame.native ||\n (parsedFrame.filename &&\n !parsedFrame.filename.startsWith('/') &&\n !parsedFrame.filename.startsWith('.') &&\n parsedFrame.filename.indexOf(':\\\\') !== 1);\n // in_app is all that's not an internal Node function or a module within node_modules\n // note that isNative appears to return true even for node core libraries\n // see https://github.com/getsentry/raven-node/issues/176\n parsedFrame.in_app =\n !isInternal && parsedFrame.filename !== undefined && parsedFrame.filename.indexOf('node_modules/') === -1;\n // Extract a module name based on the filename\n if (parsedFrame.filename) {\n parsedFrame.module = getModule(parsedFrame.filename);\n if (!isInternal && linesOfContext > 0 && filesToRead.indexOf(parsedFrame.filename) === -1) {\n filesToRead.push(parsedFrame.filename);\n }\n }\n return parsedFrame;\n });\n // We do an early return if we do not want to fetch context liens\n if (linesOfContext <= 0) {\n return SyncPromise.resolve(frames);\n }\n try {\n return addPrePostContext(filesToRead, frames, linesOfContext);\n }\n catch (_) {\n // This happens in electron for example where we are not able to read files from asar.\n // So it's fine, we recover be just returning all frames without pre/post context.\n return SyncPromise.resolve(frames);\n }\n}\n/**\n * This function tries to read the source files + adding pre and post context (source code)\n * to a frame.\n * @param filesToRead string[] of filepaths\n * @param frames StackFrame[] containg all frames\n */\nfunction addPrePostContext(filesToRead, frames, linesOfContext) {\n return new SyncPromise(function (resolve) {\n return readSourceFiles(filesToRead).then(function (sourceFiles) {\n var result = frames.map(function (frame) {\n if (frame.filename && sourceFiles[frame.filename]) {\n try {\n var lines = sourceFiles[frame.filename].split('\\n');\n addContextToFrame(lines, frame, linesOfContext);\n }\n catch (e) {\n // anomaly, being defensive in case\n // unlikely to ever happen in practice but can definitely happen in theory\n }\n }\n return frame;\n });\n resolve(result);\n });\n });\n}\n/**\n * @hidden\n */\nexport function getExceptionFromError(error, options) {\n var name = error.name || error.constructor.name;\n var stack = extractStackFromError(error);\n return new SyncPromise(function (resolve) {\n return parseStack(stack, options).then(function (frames) {\n var result = {\n stacktrace: {\n frames: prepareFramesForEvent(frames),\n },\n type: name,\n value: error.message,\n };\n resolve(result);\n });\n });\n}\n/**\n * @hidden\n */\nexport function parseError(error, options) {\n return new SyncPromise(function (resolve) {\n return getExceptionFromError(error, options).then(function (exception) {\n resolve({\n exception: {\n values: [exception],\n },\n });\n });\n });\n}\n/**\n * @hidden\n */\nexport function prepareFramesForEvent(stack) {\n if (!stack || !stack.length) {\n return [];\n }\n var localStack = stack;\n var firstFrameFunction = localStack[0].function || '';\n if (firstFrameFunction.indexOf('captureMessage') !== -1 || firstFrameFunction.indexOf('captureException') !== -1) {\n localStack = localStack.slice(1);\n }\n // The frame where the crash happened, should be the last entry in the array\n return localStack.reverse();\n}\n//# sourceMappingURL=parsers.js.map","/**\n * stack-trace - Parses node.js stack traces\n *\n * This was originally forked to fix this issue:\n * https://github.com/felixge/node-stack-trace/issues/31\n *\n * Mar 19,2019 - #4fd379e\n *\n * https://github.com/felixge/node-stack-trace/\n * @license MIT\n */\n/** Extracts StackFrames from the Error */\nexport function parse(err) {\n if (!err.stack) {\n return [];\n }\n var lines = err.stack.split('\\n').slice(1);\n return lines\n .map(function (line) {\n if (line.match(/^\\s*[-]{4,}$/)) {\n return {\n columnNumber: null,\n fileName: line,\n functionName: null,\n lineNumber: null,\n methodName: null,\n native: null,\n typeName: null,\n };\n }\n var lineMatch = line.match(/at (?:(.+?)\\s+\\()?(?:(.+?):(\\d+)(?::(\\d+))?|([^)]+))\\)?/);\n if (!lineMatch) {\n return undefined;\n }\n var object = null;\n var method = null;\n var functionName = null;\n var typeName = null;\n var methodName = null;\n var isNative = lineMatch[5] === 'native';\n if (lineMatch[1]) {\n functionName = lineMatch[1];\n var methodStart = functionName.lastIndexOf('.');\n if (functionName[methodStart - 1] === '.') {\n // eslint-disable-next-line no-plusplus\n methodStart--;\n }\n if (methodStart > 0) {\n object = functionName.substr(0, methodStart);\n method = functionName.substr(methodStart + 1);\n var objectEnd = object.indexOf('.Module');\n if (objectEnd > 0) {\n functionName = functionName.substr(objectEnd + 1);\n object = object.substr(0, objectEnd);\n }\n }\n typeName = null;\n }\n if (method) {\n typeName = object;\n methodName = method;\n }\n if (method === '') {\n methodName = null;\n functionName = null;\n }\n var properties = {\n columnNumber: parseInt(lineMatch[4], 10) || null,\n fileName: lineMatch[2] || null,\n functionName: functionName,\n lineNumber: parseInt(lineMatch[3], 10) || null,\n methodName: methodName,\n native: isNative,\n typeName: typeName,\n };\n return properties;\n })\n .filter(function (callSite) { return !!callSite; });\n}\n//# sourceMappingURL=stacktrace.js.map","import { Dsn, urlEncode } from '@sentry/utils';\nvar SENTRY_API_VERSION = '7';\n/**\n * Helper class to provide urls, headers and metadata that can be used to form\n * different types of requests to Sentry endpoints.\n * Supports both envelopes and regular event requests.\n **/\nvar API = /** @class */ (function () {\n /** Create a new instance of API */\n function API(dsn, metadata, tunnel) {\n if (metadata === void 0) { metadata = {}; }\n this.dsn = dsn;\n this._dsnObject = new Dsn(dsn);\n this.metadata = metadata;\n this._tunnel = tunnel;\n }\n /** Returns the Dsn object. */\n API.prototype.getDsn = function () {\n return this._dsnObject;\n };\n /** Does this transport force envelopes? */\n API.prototype.forceEnvelope = function () {\n return !!this._tunnel;\n };\n /** Returns the prefix to construct Sentry ingestion API endpoints. */\n API.prototype.getBaseApiEndpoint = function () {\n var dsn = this.getDsn();\n var protocol = dsn.protocol ? dsn.protocol + \":\" : '';\n var port = dsn.port ? \":\" + dsn.port : '';\n return protocol + \"//\" + dsn.host + port + (dsn.path ? \"/\" + dsn.path : '') + \"/api/\";\n };\n /** Returns the store endpoint URL. */\n API.prototype.getStoreEndpoint = function () {\n return this._getIngestEndpoint('store');\n };\n /**\n * Returns the store endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\n API.prototype.getStoreEndpointWithUrlEncodedAuth = function () {\n return this.getStoreEndpoint() + \"?\" + this._encodedAuth();\n };\n /**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\n API.prototype.getEnvelopeEndpointWithUrlEncodedAuth = function () {\n if (this.forceEnvelope()) {\n return this._tunnel;\n }\n return this._getEnvelopeEndpoint() + \"?\" + this._encodedAuth();\n };\n /** Returns only the path component for the store endpoint. */\n API.prototype.getStoreEndpointPath = function () {\n var dsn = this.getDsn();\n return (dsn.path ? \"/\" + dsn.path : '') + \"/api/\" + dsn.projectId + \"/store/\";\n };\n /**\n * Returns an object that can be used in request headers.\n * This is needed for node and the old /store endpoint in sentry\n */\n API.prototype.getRequestHeaders = function (clientName, clientVersion) {\n // CHANGE THIS to use metadata but keep clientName and clientVersion compatible\n var dsn = this.getDsn();\n var header = [\"Sentry sentry_version=\" + SENTRY_API_VERSION];\n header.push(\"sentry_client=\" + clientName + \"/\" + clientVersion);\n header.push(\"sentry_key=\" + dsn.publicKey);\n if (dsn.pass) {\n header.push(\"sentry_secret=\" + dsn.pass);\n }\n return {\n 'Content-Type': 'application/json',\n 'X-Sentry-Auth': header.join(', '),\n };\n };\n /** Returns the url to the report dialog endpoint. */\n API.prototype.getReportDialogEndpoint = function (dialogOptions) {\n if (dialogOptions === void 0) { dialogOptions = {}; }\n var dsn = this.getDsn();\n var endpoint = this.getBaseApiEndpoint() + \"embed/error-page/\";\n var encodedOptions = [];\n encodedOptions.push(\"dsn=\" + dsn.toString());\n for (var key in dialogOptions) {\n if (key === 'dsn') {\n continue;\n }\n if (key === 'user') {\n if (!dialogOptions.user) {\n continue;\n }\n if (dialogOptions.user.name) {\n encodedOptions.push(\"name=\" + encodeURIComponent(dialogOptions.user.name));\n }\n if (dialogOptions.user.email) {\n encodedOptions.push(\"email=\" + encodeURIComponent(dialogOptions.user.email));\n }\n }\n else {\n encodedOptions.push(encodeURIComponent(key) + \"=\" + encodeURIComponent(dialogOptions[key]));\n }\n }\n if (encodedOptions.length) {\n return endpoint + \"?\" + encodedOptions.join('&');\n }\n return endpoint;\n };\n /** Returns the envelope endpoint URL. */\n API.prototype._getEnvelopeEndpoint = function () {\n return this._getIngestEndpoint('envelope');\n };\n /** Returns the ingest API endpoint for target. */\n API.prototype._getIngestEndpoint = function (target) {\n if (this._tunnel) {\n return this._tunnel;\n }\n var base = this.getBaseApiEndpoint();\n var dsn = this.getDsn();\n return \"\" + base + dsn.projectId + \"/\" + target + \"/\";\n };\n /** Returns a URL-encoded string with auth config suitable for a query string. */\n API.prototype._encodedAuth = function () {\n var dsn = this.getDsn();\n var auth = {\n // We send only the minimum set of required information. See\n // https://github.com/getsentry/sentry-javascript/issues/2572.\n sentry_key: dsn.publicKey,\n sentry_version: SENTRY_API_VERSION,\n };\n return urlEncode(auth);\n };\n return API;\n}());\nexport { API };\n//# sourceMappingURL=api.js.map","import { SentryError } from './error';\nimport { SyncPromise } from './syncpromise';\n/** A simple queue that holds promises. */\nvar PromiseBuffer = /** @class */ (function () {\n function PromiseBuffer(_limit) {\n this._limit = _limit;\n /** Internal set of queued Promises */\n this._buffer = [];\n }\n /**\n * Says if the buffer is ready to take more requests\n */\n PromiseBuffer.prototype.isReady = function () {\n return this._limit === undefined || this.length() < this._limit;\n };\n /**\n * Add a promise (representing an in-flight action) to the queue, and set it to remove itself on fulfillment.\n *\n * @param taskProducer A function producing any PromiseLike; In previous versions this used to be `task:\n * PromiseLike`, but under that model, Promises were instantly created on the call-site and their executor\n * functions therefore ran immediately. Thus, even if the buffer was full, the action still happened. By\n * requiring the promise to be wrapped in a function, we can defer promise creation until after the buffer\n * limit check.\n * @returns The original promise.\n */\n PromiseBuffer.prototype.add = function (taskProducer) {\n var _this = this;\n if (!this.isReady()) {\n return SyncPromise.reject(new SentryError('Not adding Promise due to buffer limit reached.'));\n }\n // start the task and add its promise to the queue\n var task = taskProducer();\n if (this._buffer.indexOf(task) === -1) {\n this._buffer.push(task);\n }\n void task\n .then(function () { return _this.remove(task); })\n // Use `then(null, rejectionHandler)` rather than `catch(rejectionHandler)` so that we can use `PromiseLike`\n // rather than `Promise`. `PromiseLike` doesn't have a `.catch` method, making its polyfill smaller. (ES5 didn't\n // have promises, so TS has to polyfill when down-compiling.)\n .then(null, function () {\n return _this.remove(task).then(null, function () {\n // We have to add another catch here because `this.remove()` starts a new promise chain.\n });\n });\n return task;\n };\n /**\n * Remove a promise from the queue.\n *\n * @param task Can be any PromiseLike\n * @returns Removed promise.\n */\n PromiseBuffer.prototype.remove = function (task) {\n var removedTask = this._buffer.splice(this._buffer.indexOf(task), 1)[0];\n return removedTask;\n };\n /**\n * This function returns the number of unresolved promises in the queue.\n */\n PromiseBuffer.prototype.length = function () {\n return this._buffer.length;\n };\n /**\n * Wait for all promises in the queue to resolve or for timeout to expire, whichever comes first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the queue is still non-empty. Passing `0` (or\n * not passing anything) will make the promise wait as long as it takes for the queue to drain before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if the queue is already empty or drains before the timeout, and\n * `false` otherwise\n */\n PromiseBuffer.prototype.drain = function (timeout) {\n var _this = this;\n return new SyncPromise(function (resolve) {\n // wait for `timeout` ms and then resolve to `false` (if not cancelled first)\n var capturedSetTimeout = setTimeout(function () {\n if (timeout && timeout > 0) {\n resolve(false);\n }\n }, timeout);\n // if all promises resolve in time, cancel the timer and resolve to `true`\n void SyncPromise.all(_this._buffer)\n .then(function () {\n clearTimeout(capturedSetTimeout);\n resolve(true);\n })\n .then(null, function () {\n resolve(true);\n });\n });\n };\n return PromiseBuffer;\n}());\nexport { PromiseBuffer };\n//# sourceMappingURL=promisebuffer.js.map","// TODO: Remove in the next major release and rely only on @sentry/core SDK_VERSION and SdkMetadata\nexport var SDK_NAME = 'sentry.javascript.node';\n//# sourceMappingURL=version.js.map","import { __assign, __awaiter, __generator, __read, __spread, __values } from \"tslib\";\nimport { API, SDK_VERSION } from '@sentry/core';\nimport { Status, } from '@sentry/types';\nimport { logger, parseRetryAfterHeader, PromiseBuffer, SentryError } from '@sentry/utils';\nimport * as fs from 'fs';\nimport { URL } from 'url';\nimport { SDK_NAME } from '../../version';\nvar CATEGORY_MAPPING = {\n event: 'error',\n transaction: 'transaction',\n session: 'session',\n attachment: 'attachment',\n};\n/** Base Transport class implementation */\nvar BaseTransport = /** @class */ (function () {\n /** Create instance and set this.dsn */\n function BaseTransport(options) {\n this.options = options;\n /** A simple buffer holding all requests. */\n this._buffer = new PromiseBuffer(30);\n /** Locks transport after receiving rate limits in a response */\n this._rateLimits = {};\n /** Default function used to parse URLs */\n this.urlParser = function (url) { return new URL(url); };\n this._api = new API(options.dsn, options._metadata, options.tunnel);\n }\n /**\n * @inheritDoc\n */\n BaseTransport.prototype.sendEvent = function (_) {\n throw new SentryError('Transport Class has to implement `sendEvent` method.');\n };\n /**\n * @inheritDoc\n */\n BaseTransport.prototype.close = function (timeout) {\n return this._buffer.drain(timeout);\n };\n /**\n * Extracts proxy settings from client options and env variables.\n *\n * Honors `no_proxy` env variable with the highest priority to allow for hosts exclusion.\n *\n * An order of priority for available protocols is:\n * `http` => `options.httpProxy` | `process.env.http_proxy`\n * `https` => `options.httpsProxy` | `options.httpProxy` | `process.env.https_proxy` | `process.env.http_proxy`\n */\n BaseTransport.prototype._getProxy = function (protocol) {\n var e_1, _a;\n var _b = process.env, no_proxy = _b.no_proxy, http_proxy = _b.http_proxy, https_proxy = _b.https_proxy;\n var _c = this.options, httpProxy = _c.httpProxy, httpsProxy = _c.httpsProxy;\n var proxy = protocol === 'http' ? httpProxy || http_proxy : httpsProxy || httpProxy || https_proxy || http_proxy;\n if (!no_proxy) {\n return proxy;\n }\n var _d = this._api.getDsn(), host = _d.host, port = _d.port;\n try {\n for (var _e = __values(no_proxy.split(',')), _f = _e.next(); !_f.done; _f = _e.next()) {\n var np = _f.value;\n if (host.endsWith(np) || (host + \":\" + port).endsWith(np)) {\n return;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_f && !_f.done && (_a = _e.return)) _a.call(_e);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return proxy;\n };\n /** Returns a build request option object used by request */\n BaseTransport.prototype._getRequestOptions = function (urlParts) {\n var headers = __assign(__assign({}, this._api.getRequestHeaders(SDK_NAME, SDK_VERSION)), this.options.headers);\n var hostname = urlParts.hostname, pathname = urlParts.pathname, port = urlParts.port, protocol = urlParts.protocol;\n // See https://github.com/nodejs/node/blob/38146e717fed2fabe3aacb6540d839475e0ce1c6/lib/internal/url.js#L1268-L1290\n // We ignore the query string on purpose\n var path = \"\" + pathname;\n return __assign({ agent: this.client, headers: headers,\n hostname: hostname, method: 'POST', path: path,\n port: port,\n protocol: protocol }, (this.options.caCerts && {\n ca: fs.readFileSync(this.options.caCerts),\n }));\n };\n /**\n * Gets the time that given category is disabled until for rate limiting\n */\n BaseTransport.prototype._disabledUntil = function (requestType) {\n var category = CATEGORY_MAPPING[requestType];\n return this._rateLimits[category] || this._rateLimits.all;\n };\n /**\n * Checks if a category is rate limited\n */\n BaseTransport.prototype._isRateLimited = function (requestType) {\n return this._disabledUntil(requestType) > new Date(Date.now());\n };\n /**\n * Sets internal _rateLimits from incoming headers. Returns true if headers contains a non-empty rate limiting header.\n */\n BaseTransport.prototype._handleRateLimit = function (headers) {\n var e_2, _a, e_3, _b;\n var now = Date.now();\n var rlHeader = headers['x-sentry-rate-limits'];\n var raHeader = headers['retry-after'];\n if (rlHeader) {\n try {\n // rate limit headers are of the form\n //

,
,..\n // where each
is of the form\n // : : : \n // where\n // is a delay in ms\n // is the event type(s) (error, transaction, etc) being rate limited and is of the form\n // ;;...\n // is what's being limited (org, project, or key) - ignored by SDK\n // is an arbitrary string like \"org_quota\" - ignored by SDK\n for (var _c = __values(rlHeader.trim().split(',')), _d = _c.next(); !_d.done; _d = _c.next()) {\n var limit = _d.value;\n var parameters = limit.split(':', 2);\n var headerDelay = parseInt(parameters[0], 10);\n var delay = (!isNaN(headerDelay) ? headerDelay : 60) * 1000; // 60sec default\n try {\n for (var _e = (e_3 = void 0, __values((parameters[1] && parameters[1].split(';')) || ['all'])), _f = _e.next(); !_f.done; _f = _e.next()) {\n var category = _f.value;\n // categoriesAllowed is added here to ensure we are only storing rate limits for categories we support in this\n // sdk and any categories that are not supported will not be added redundantly to the rateLimits object\n var categoriesAllowed = __spread(Object.keys(CATEGORY_MAPPING).map(function (k) { return CATEGORY_MAPPING[k]; }), [\n 'all',\n ]);\n if (categoriesAllowed.includes(category))\n this._rateLimits[category] = new Date(now + delay);\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (_f && !_f.done && (_b = _e.return)) _b.call(_e);\n }\n finally { if (e_3) throw e_3.error; }\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return true;\n }\n else if (raHeader) {\n this._rateLimits.all = new Date(now + parseRetryAfterHeader(now, raHeader));\n return true;\n }\n return false;\n };\n /** JSDoc */\n BaseTransport.prototype._send = function (sentryRequest, originalPayload) {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n if (!this.module) {\n throw new SentryError('No module available');\n }\n if (originalPayload && this._isRateLimited(sentryRequest.type)) {\n return [2 /*return*/, Promise.reject({\n payload: originalPayload,\n type: sentryRequest.type,\n reason: \"Transport for \" + sentryRequest.type + \" requests locked till \" + this._disabledUntil(sentryRequest.type) + \" due to too many requests.\",\n status: 429,\n })];\n }\n return [2 /*return*/, this._buffer.add(function () {\n return new Promise(function (resolve, reject) {\n if (!_this.module) {\n throw new SentryError('No module available');\n }\n var options = _this._getRequestOptions(_this.urlParser(sentryRequest.url));\n var req = _this.module.request(options, function (res) {\n var statusCode = res.statusCode || 500;\n var status = Status.fromHttpCode(statusCode);\n res.setEncoding('utf8');\n /**\n * \"Key-value pairs of header names and values. Header names are lower-cased.\"\n * https://nodejs.org/api/http.html#http_message_headers\n */\n var retryAfterHeader = res.headers ? res.headers['retry-after'] : '';\n retryAfterHeader = (Array.isArray(retryAfterHeader) ? retryAfterHeader[0] : retryAfterHeader);\n var rlHeader = res.headers ? res.headers['x-sentry-rate-limits'] : '';\n rlHeader = (Array.isArray(rlHeader) ? rlHeader[0] : rlHeader);\n var headers = {\n 'x-sentry-rate-limits': rlHeader,\n 'retry-after': retryAfterHeader,\n };\n var limited = _this._handleRateLimit(headers);\n if (limited)\n logger.warn(\"Too many \" + sentryRequest.type + \" requests, backing off until: \" + _this._disabledUntil(sentryRequest.type));\n if (status === Status.Success) {\n resolve({ status: status });\n }\n else {\n var rejectionMessage = \"HTTP Error (\" + statusCode + \")\";\n if (res.headers && res.headers['x-sentry-error']) {\n rejectionMessage += \": \" + res.headers['x-sentry-error'];\n }\n reject(new SentryError(rejectionMessage));\n }\n // Force the socket to drain\n res.on('data', function () {\n // Drain\n });\n res.on('end', function () {\n // Drain\n });\n });\n req.on('error', reject);\n req.end(sentryRequest.body);\n });\n })];\n });\n });\n };\n return BaseTransport;\n}());\nexport { BaseTransport };\n//# sourceMappingURL=index.js.map","import { __assign, __read, __rest, __spread } from \"tslib\";\n/** Extract sdk info from from the API metadata */\nfunction getSdkMetadataForEnvelopeHeader(api) {\n if (!api.metadata || !api.metadata.sdk) {\n return;\n }\n var _a = api.metadata.sdk, name = _a.name, version = _a.version;\n return { name: name, version: version };\n}\n/**\n * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.\n * Merge with existing data if any.\n **/\nfunction enhanceEventWithSdkInfo(event, sdkInfo) {\n if (!sdkInfo) {\n return event;\n }\n event.sdk = event.sdk || {};\n event.sdk.name = event.sdk.name || sdkInfo.name;\n event.sdk.version = event.sdk.version || sdkInfo.version;\n event.sdk.integrations = __spread((event.sdk.integrations || []), (sdkInfo.integrations || []));\n event.sdk.packages = __spread((event.sdk.packages || []), (sdkInfo.packages || []));\n return event;\n}\n/** Creates a SentryRequest from a Session. */\nexport function sessionToSentryRequest(session, api) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(api);\n var envelopeHeaders = JSON.stringify(__assign(__assign({ sent_at: new Date().toISOString() }, (sdkInfo && { sdk: sdkInfo })), (api.forceEnvelope() && { dsn: api.getDsn().toString() })));\n // I know this is hacky but we don't want to add `session` to request type since it's never rate limited\n var type = 'aggregates' in session ? 'sessions' : 'session';\n var itemHeaders = JSON.stringify({\n type: type,\n });\n return {\n body: envelopeHeaders + \"\\n\" + itemHeaders + \"\\n\" + JSON.stringify(session),\n type: type,\n url: api.getEnvelopeEndpointWithUrlEncodedAuth(),\n };\n}\n/** Creates a SentryRequest from an event. */\nexport function eventToSentryRequest(event, api) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(api);\n var eventType = event.type || 'event';\n var useEnvelope = eventType === 'transaction' || api.forceEnvelope();\n var _a = event.debug_meta || {}, transactionSampling = _a.transactionSampling, metadata = __rest(_a, [\"transactionSampling\"]);\n var _b = transactionSampling || {}, samplingMethod = _b.method, sampleRate = _b.rate;\n if (Object.keys(metadata).length === 0) {\n delete event.debug_meta;\n }\n else {\n event.debug_meta = metadata;\n }\n var req = {\n body: JSON.stringify(sdkInfo ? enhanceEventWithSdkInfo(event, api.metadata.sdk) : event),\n type: eventType,\n url: useEnvelope ? api.getEnvelopeEndpointWithUrlEncodedAuth() : api.getStoreEndpointWithUrlEncodedAuth(),\n };\n // https://develop.sentry.dev/sdk/envelopes/\n // Since we don't need to manipulate envelopes nor store them, there is no\n // exported concept of an Envelope with operations including serialization and\n // deserialization. Instead, we only implement a minimal subset of the spec to\n // serialize events inline here.\n if (useEnvelope) {\n var envelopeHeaders = JSON.stringify(__assign(__assign({ event_id: event.event_id, sent_at: new Date().toISOString() }, (sdkInfo && { sdk: sdkInfo })), (api.forceEnvelope() && { dsn: api.getDsn().toString() })));\n var itemHeaders = JSON.stringify({\n type: eventType,\n // TODO: Right now, sampleRate may or may not be defined (it won't be in the cases of inheritance and\n // explicitly-set sampling decisions). Are we good with that?\n sample_rates: [{ id: samplingMethod, rate: sampleRate }],\n });\n // The trailing newline is optional. We intentionally don't send it to avoid\n // sending unnecessary bytes.\n //\n // const envelope = `${envelopeHeaders}\\n${itemHeaders}\\n${req.body}\\n`;\n var envelope = envelopeHeaders + \"\\n\" + itemHeaders + \"\\n\" + req.body;\n req.body = envelope;\n }\n return req;\n}\n//# sourceMappingURL=request.js.map","import { __extends } from \"tslib\";\nimport { eventToSentryRequest, sessionToSentryRequest } from '@sentry/core';\nimport * as http from 'http';\nimport { BaseTransport } from './base';\n/** Node http module transport */\nvar HTTPTransport = /** @class */ (function (_super) {\n __extends(HTTPTransport, _super);\n /** Create a new instance and set this.agent */\n function HTTPTransport(options) {\n var _this = _super.call(this, options) || this;\n _this.options = options;\n var proxy = _this._getProxy('http');\n _this.module = http;\n _this.client = proxy\n ? new (require('https-proxy-agent'))(proxy)\n : new http.Agent({ keepAlive: false, maxSockets: 30, timeout: 2000 });\n return _this;\n }\n /**\n * @inheritDoc\n */\n HTTPTransport.prototype.sendEvent = function (event) {\n return this._send(eventToSentryRequest(event, this._api), event);\n };\n /**\n * @inheritDoc\n */\n HTTPTransport.prototype.sendSession = function (session) {\n return this._send(sessionToSentryRequest(session, this._api), session);\n };\n return HTTPTransport;\n}(BaseTransport));\nexport { HTTPTransport };\n//# sourceMappingURL=http.js.map","import { __extends } from \"tslib\";\nimport { eventToSentryRequest, sessionToSentryRequest } from '@sentry/core';\nimport * as https from 'https';\nimport { BaseTransport } from './base';\n/** Node https module transport */\nvar HTTPSTransport = /** @class */ (function (_super) {\n __extends(HTTPSTransport, _super);\n /** Create a new instance and set this.agent */\n function HTTPSTransport(options) {\n var _this = _super.call(this, options) || this;\n _this.options = options;\n var proxy = _this._getProxy('https');\n _this.module = https;\n _this.client = proxy\n ? new (require('https-proxy-agent'))(proxy)\n : new https.Agent({ keepAlive: false, maxSockets: 30, timeout: 2000 });\n return _this;\n }\n /**\n * @inheritDoc\n */\n HTTPSTransport.prototype.sendEvent = function (event) {\n return this._send(eventToSentryRequest(event, this._api), event);\n };\n /**\n * @inheritDoc\n */\n HTTPSTransport.prototype.sendSession = function (session) {\n return this._send(sessionToSentryRequest(session, this._api), session);\n };\n return HTTPSTransport;\n}(BaseTransport));\nexport { HTTPSTransport };\n//# sourceMappingURL=https.js.map","import { __assign, __extends } from \"tslib\";\nimport { BaseBackend, getCurrentHub } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { addExceptionMechanism, addExceptionTypeValue, Dsn, extractExceptionKeysForMessage, isError, isPlainObject, normalizeToSize, SyncPromise, } from '@sentry/utils';\nimport { extractStackFromError, parseError, parseStack, prepareFramesForEvent } from './parsers';\nimport { HTTPSTransport, HTTPTransport } from './transports';\n/**\n * The Sentry Node SDK Backend.\n * @hidden\n */\nvar NodeBackend = /** @class */ (function (_super) {\n __extends(NodeBackend, _super);\n function NodeBackend() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n NodeBackend.prototype.eventFromException = function (exception, hint) {\n var _this = this;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var ex = exception;\n var providedMechanism = hint && hint.data && hint.data.mechanism;\n var mechanism = providedMechanism || {\n handled: true,\n type: 'generic',\n };\n if (!isError(exception)) {\n if (isPlainObject(exception)) {\n // This will allow us to group events based on top-level keys\n // which is much better than creating new group when any key/value change\n var message = \"Non-Error exception captured with keys: \" + extractExceptionKeysForMessage(exception);\n getCurrentHub().configureScope(function (scope) {\n scope.setExtra('__serialized__', normalizeToSize(exception));\n });\n ex = (hint && hint.syntheticException) || new Error(message);\n ex.message = message;\n }\n else {\n // This handles when someone does: `throw \"something awesome\";`\n // We use synthesized Error here so we can extract a (rough) stack trace.\n ex = (hint && hint.syntheticException) || new Error(exception);\n ex.message = exception;\n }\n mechanism.synthetic = true;\n }\n return new SyncPromise(function (resolve, reject) {\n return parseError(ex, _this._options)\n .then(function (event) {\n addExceptionTypeValue(event, undefined, undefined);\n addExceptionMechanism(event, mechanism);\n resolve(__assign(__assign({}, event), { event_id: hint && hint.event_id }));\n })\n .then(null, reject);\n });\n };\n /**\n * @inheritDoc\n */\n NodeBackend.prototype.eventFromMessage = function (message, level, hint) {\n var _this = this;\n if (level === void 0) { level = Severity.Info; }\n var event = {\n event_id: hint && hint.event_id,\n level: level,\n message: message,\n };\n return new SyncPromise(function (resolve) {\n if (_this._options.attachStacktrace && hint && hint.syntheticException) {\n var stack = hint.syntheticException ? extractStackFromError(hint.syntheticException) : [];\n void parseStack(stack, _this._options)\n .then(function (frames) {\n event.stacktrace = {\n frames: prepareFramesForEvent(frames),\n };\n resolve(event);\n })\n .then(null, function () {\n resolve(event);\n });\n }\n else {\n resolve(event);\n }\n });\n };\n /**\n * @inheritDoc\n */\n NodeBackend.prototype._setupTransport = function () {\n if (!this._options.dsn) {\n // We return the noop transport here in case there is no Dsn.\n return _super.prototype._setupTransport.call(this);\n }\n var dsn = new Dsn(this._options.dsn);\n var transportOptions = __assign(__assign(__assign(__assign(__assign({}, this._options.transportOptions), (this._options.httpProxy && { httpProxy: this._options.httpProxy })), (this._options.httpsProxy && { httpsProxy: this._options.httpsProxy })), (this._options.caCerts && { caCerts: this._options.caCerts })), { dsn: this._options.dsn, tunnel: this._options.tunnel, _metadata: this._options._metadata });\n if (this._options.transport) {\n return new this._options.transport(transportOptions);\n }\n if (dsn.protocol === 'http') {\n return new HTTPTransport(transportOptions);\n }\n return new HTTPSTransport(transportOptions);\n };\n return NodeBackend;\n}(BaseBackend));\nexport { NodeBackend };\n//# sourceMappingURL=backend.js.map","import { __read, __spread } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\nexport var installedIntegrations = [];\n/**\n * @private\n */\nfunction filterDuplicates(integrations) {\n return integrations.reduce(function (acc, integrations) {\n if (acc.every(function (accIntegration) { return integrations.name !== accIntegration.name; })) {\n acc.push(integrations);\n }\n return acc;\n }, []);\n}\n/** Gets integration to install */\nexport function getIntegrationsToSetup(options) {\n var defaultIntegrations = (options.defaultIntegrations && __spread(options.defaultIntegrations)) || [];\n var userIntegrations = options.integrations;\n var integrations = __spread(filterDuplicates(defaultIntegrations));\n if (Array.isArray(userIntegrations)) {\n // Filter out integrations that are also included in user options\n integrations = __spread(integrations.filter(function (integrations) {\n return userIntegrations.every(function (userIntegration) { return userIntegration.name !== integrations.name; });\n }), filterDuplicates(userIntegrations));\n }\n else if (typeof userIntegrations === 'function') {\n integrations = userIntegrations(integrations);\n integrations = Array.isArray(integrations) ? integrations : [integrations];\n }\n // Make sure that if present, `Debug` integration will always run last\n var integrationsNames = integrations.map(function (i) { return i.name; });\n var alwaysLastToRun = 'Debug';\n if (integrationsNames.indexOf(alwaysLastToRun) !== -1) {\n integrations.push.apply(integrations, __spread(integrations.splice(integrationsNames.indexOf(alwaysLastToRun), 1)));\n }\n return integrations;\n}\n/** Setup given integration */\nexport function setupIntegration(integration) {\n if (installedIntegrations.indexOf(integration.name) !== -1) {\n return;\n }\n integration.setupOnce(addGlobalEventProcessor, getCurrentHub);\n installedIntegrations.push(integration.name);\n logger.log(\"Integration installed: \" + integration.name);\n}\n/**\n * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default\n * integrations are added unless they were already provided before.\n * @param integrations array of integration instances\n * @param withDefault should enable default integrations\n */\nexport function setupIntegrations(options) {\n var integrations = {};\n getIntegrationsToSetup(options).forEach(function (integration) {\n integrations[integration.name] = integration;\n setupIntegration(integration);\n });\n // set the `initialized` flag so we don't run through the process again unecessarily; use `Object.defineProperty`\n // because by default it creates a property which is nonenumerable, which we want since `initialized` shouldn't be\n // considered a member of the index the way the actual integrations are\n Object.defineProperty(integrations, 'initialized', { value: true });\n return integrations;\n}\n//# sourceMappingURL=integration.js.map","import { __assign, __read, __spread, __values } from \"tslib\";\n/* eslint-disable max-lines */\nimport { Scope } from '@sentry/hub';\nimport { Outcome, SessionStatus, } from '@sentry/types';\nimport { checkOrSetAlreadyCaught, dateTimestampInSeconds, Dsn, isPlainObject, isPrimitive, isThenable, logger, normalize, SentryError, SyncPromise, truncate, uuid4, } from '@sentry/utils';\nimport { setupIntegrations } from './integration';\nvar ALREADY_SEEN_ERROR = \"Not capturing exception because it's already been captured.\";\n/**\n * Base implementation for all JavaScript SDK clients.\n *\n * Call the constructor with the corresponding backend constructor and options\n * specific to the client subclass. To access these options later, use\n * {@link Client.getOptions}. Also, the Backend instance is available via\n * {@link Client.getBackend}.\n *\n * If a Dsn is specified in the options, it will be parsed and stored. Use\n * {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is\n * invalid, the constructor will throw a {@link SentryException}. Note that\n * without a valid Dsn, the SDK will not send any events to Sentry.\n *\n * Before sending an event via the backend, it is passed through\n * {@link BaseClient._prepareEvent} to add SDK information and scope data\n * (breadcrumbs and context). To add more custom information, override this\n * method and extend the resulting prepared event.\n *\n * To issue automatically created events (e.g. via instrumentation), use\n * {@link Client.captureEvent}. It will prepare the event and pass it through\n * the callback lifecycle. To issue auto-breadcrumbs, use\n * {@link Client.addBreadcrumb}.\n *\n * @example\n * class NodeClient extends BaseClient {\n * public constructor(options: NodeOptions) {\n * super(NodeBackend, options);\n * }\n *\n * // ...\n * }\n */\nvar BaseClient = /** @class */ (function () {\n /**\n * Initializes this client instance.\n *\n * @param backendClass A constructor function to create the backend.\n * @param options Options for the client.\n */\n function BaseClient(backendClass, options) {\n /** Array of used integrations. */\n this._integrations = {};\n /** Number of calls being processed */\n this._numProcessing = 0;\n this._backend = new backendClass(options);\n this._options = options;\n if (options.dsn) {\n this._dsn = new Dsn(options.dsn);\n }\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n BaseClient.prototype.captureException = function (exception, hint, scope) {\n var _this = this;\n // ensure we haven't captured this very object before\n if (checkOrSetAlreadyCaught(exception)) {\n logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n var eventId = hint && hint.event_id;\n this._process(this._getBackend()\n .eventFromException(exception, hint)\n .then(function (event) { return _this._captureEvent(event, hint, scope); })\n .then(function (result) {\n eventId = result;\n }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureMessage = function (message, level, hint, scope) {\n var _this = this;\n var eventId = hint && hint.event_id;\n var promisedEvent = isPrimitive(message)\n ? this._getBackend().eventFromMessage(String(message), level, hint)\n : this._getBackend().eventFromException(message, hint);\n this._process(promisedEvent\n .then(function (event) { return _this._captureEvent(event, hint, scope); })\n .then(function (result) {\n eventId = result;\n }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureEvent = function (event, hint, scope) {\n var _a;\n // ensure we haven't captured this very object before\n if (((_a = hint) === null || _a === void 0 ? void 0 : _a.originalException) && checkOrSetAlreadyCaught(hint.originalException)) {\n logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n var eventId = hint && hint.event_id;\n this._process(this._captureEvent(event, hint, scope).then(function (result) {\n eventId = result;\n }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureSession = function (session) {\n if (!this._isEnabled()) {\n logger.warn('SDK not enabled, will not capture session.');\n return;\n }\n if (!(typeof session.release === 'string')) {\n logger.warn('Discarded session because of missing or non-string release');\n }\n else {\n this._sendSession(session);\n // After sending, we set init false to indicate it's not the first occurrence\n session.update({ init: false });\n }\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getDsn = function () {\n return this._dsn;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getOptions = function () {\n return this._options;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getTransport = function () {\n return this._getBackend().getTransport();\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.flush = function (timeout) {\n var _this = this;\n return this._isClientDoneProcessing(timeout).then(function (clientFinished) {\n return _this.getTransport()\n .close(timeout)\n .then(function (transportFlushed) { return clientFinished && transportFlushed; });\n });\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.close = function (timeout) {\n var _this = this;\n return this.flush(timeout).then(function (result) {\n _this.getOptions().enabled = false;\n return result;\n });\n };\n /**\n * Sets up the integrations\n */\n BaseClient.prototype.setupIntegrations = function () {\n if (this._isEnabled() && !this._integrations.initialized) {\n this._integrations = setupIntegrations(this._options);\n }\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getIntegration = function (integration) {\n try {\n return this._integrations[integration.id] || null;\n }\n catch (_oO) {\n logger.warn(\"Cannot retrieve integration \" + integration.id + \" from the current Client\");\n return null;\n }\n };\n /** Updates existing session based on the provided event */\n BaseClient.prototype._updateSessionFromEvent = function (session, event) {\n var e_1, _a;\n var crashed = false;\n var errored = false;\n var exceptions = event.exception && event.exception.values;\n if (exceptions) {\n errored = true;\n try {\n for (var exceptions_1 = __values(exceptions), exceptions_1_1 = exceptions_1.next(); !exceptions_1_1.done; exceptions_1_1 = exceptions_1.next()) {\n var ex = exceptions_1_1.value;\n var mechanism = ex.mechanism;\n if (mechanism && mechanism.handled === false) {\n crashed = true;\n break;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (exceptions_1_1 && !exceptions_1_1.done && (_a = exceptions_1.return)) _a.call(exceptions_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n // A session is updated and that session update is sent in only one of the two following scenarios:\n // 1. Session with non terminal status and 0 errors + an error occurred -> Will set error count to 1 and send update\n // 2. Session with non terminal status and 1 error + a crash occurred -> Will set status crashed and send update\n var sessionNonTerminal = session.status === SessionStatus.Ok;\n var shouldUpdateAndSend = (sessionNonTerminal && session.errors === 0) || (sessionNonTerminal && crashed);\n if (shouldUpdateAndSend) {\n session.update(__assign(__assign({}, (crashed && { status: SessionStatus.Crashed })), { errors: session.errors || Number(errored || crashed) }));\n this.captureSession(session);\n }\n };\n /** Deliver captured session to Sentry */\n BaseClient.prototype._sendSession = function (session) {\n this._getBackend().sendSession(session);\n };\n /**\n * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying\n * \"no\" (resolving to `false`) in order to give the client a chance to potentially finish first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the client is still busy. Passing `0` (or not\n * passing anything) will make the promise wait as long as it takes for processing to finish before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if processing is already done or finishes before the timeout, and\n * `false` otherwise\n */\n BaseClient.prototype._isClientDoneProcessing = function (timeout) {\n var _this = this;\n return new SyncPromise(function (resolve) {\n var ticked = 0;\n var tick = 1;\n var interval = setInterval(function () {\n if (_this._numProcessing == 0) {\n clearInterval(interval);\n resolve(true);\n }\n else {\n ticked += tick;\n if (timeout && ticked >= timeout) {\n clearInterval(interval);\n resolve(false);\n }\n }\n }, tick);\n });\n };\n /** Returns the current backend. */\n BaseClient.prototype._getBackend = function () {\n return this._backend;\n };\n /** Determines whether this SDK is enabled and a valid Dsn is present. */\n BaseClient.prototype._isEnabled = function () {\n return this.getOptions().enabled !== false && this._dsn !== undefined;\n };\n /**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information.\n */\n BaseClient.prototype._prepareEvent = function (event, scope, hint) {\n var _this = this;\n var _a = this.getOptions().normalizeDepth, normalizeDepth = _a === void 0 ? 3 : _a;\n var prepared = __assign(__assign({}, event), { event_id: event.event_id || (hint && hint.event_id ? hint.event_id : uuid4()), timestamp: event.timestamp || dateTimestampInSeconds() });\n this._applyClientOptions(prepared);\n this._applyIntegrationsMetadata(prepared);\n // If we have scope given to us, use it as the base for further modifications.\n // This allows us to prevent unnecessary copying of data if `captureContext` is not provided.\n var finalScope = scope;\n if (hint && hint.captureContext) {\n finalScope = Scope.clone(finalScope).update(hint.captureContext);\n }\n // We prepare the result here with a resolved Event.\n var result = SyncPromise.resolve(prepared);\n // This should be the last thing called, since we want that\n // {@link Hub.addEventProcessor} gets the finished prepared event.\n if (finalScope) {\n // In case we have a hub we reassign it.\n result = finalScope.applyToEvent(prepared, hint);\n }\n return result.then(function (evt) {\n if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n return _this._normalizeEvent(evt, normalizeDepth);\n }\n return evt;\n });\n };\n /**\n * Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.\n * Normalized keys:\n * - `breadcrumbs.data`\n * - `user`\n * - `contexts`\n * - `extra`\n * @param event Event\n * @returns Normalized event\n */\n BaseClient.prototype._normalizeEvent = function (event, depth) {\n if (!event) {\n return null;\n }\n var normalized = __assign(__assign(__assign(__assign(__assign({}, event), (event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(function (b) { return (__assign(__assign({}, b), (b.data && {\n data: normalize(b.data, depth),\n }))); }),\n })), (event.user && {\n user: normalize(event.user, depth),\n })), (event.contexts && {\n contexts: normalize(event.contexts, depth),\n })), (event.extra && {\n extra: normalize(event.extra, depth),\n }));\n // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n if (event.contexts && event.contexts.trace) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n normalized.contexts.trace = event.contexts.trace;\n }\n var _a = this.getOptions()._experiments, _experiments = _a === void 0 ? {} : _a;\n if (_experiments.ensureNoCircularStructures) {\n return normalize(normalized);\n }\n return normalized;\n };\n /**\n * Enhances event using the client configuration.\n * It takes care of all \"static\" values like environment, release and `dist`,\n * as well as truncating overly long values.\n * @param event event instance to be enhanced\n */\n BaseClient.prototype._applyClientOptions = function (event) {\n var options = this.getOptions();\n var environment = options.environment, release = options.release, dist = options.dist, _a = options.maxValueLength, maxValueLength = _a === void 0 ? 250 : _a;\n if (!('environment' in event)) {\n event.environment = 'environment' in options ? environment : 'production';\n }\n if (event.release === undefined && release !== undefined) {\n event.release = release;\n }\n if (event.dist === undefined && dist !== undefined) {\n event.dist = dist;\n }\n if (event.message) {\n event.message = truncate(event.message, maxValueLength);\n }\n var exception = event.exception && event.exception.values && event.exception.values[0];\n if (exception && exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n var request = event.request;\n if (request && request.url) {\n request.url = truncate(request.url, maxValueLength);\n }\n };\n /**\n * This function adds all used integrations to the SDK info in the event.\n * @param event The event that will be filled with all integrations.\n */\n BaseClient.prototype._applyIntegrationsMetadata = function (event) {\n var integrationsArray = Object.keys(this._integrations);\n if (integrationsArray.length > 0) {\n event.sdk = event.sdk || {};\n event.sdk.integrations = __spread((event.sdk.integrations || []), integrationsArray);\n }\n };\n /**\n * Tells the backend to send this event\n * @param event The Sentry event to send\n */\n BaseClient.prototype._sendEvent = function (event) {\n this._getBackend().sendEvent(event);\n };\n /**\n * Processes the event and logs an error in case of rejection\n * @param event\n * @param hint\n * @param scope\n */\n BaseClient.prototype._captureEvent = function (event, hint, scope) {\n return this._processEvent(event, hint, scope).then(function (finalEvent) {\n return finalEvent.event_id;\n }, function (reason) {\n logger.error(reason);\n return undefined;\n });\n };\n /**\n * Processes an event (either error or message) and sends it to Sentry.\n *\n * This also adds breadcrumbs and context information to the event. However,\n * platform specific meta data (such as the User's IP address) must be added\n * by the SDK implementor.\n *\n *\n * @param event The event to send to Sentry.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.\n */\n BaseClient.prototype._processEvent = function (event, hint, scope) {\n var _this = this;\n var _a, _b;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _c = this.getOptions(), beforeSend = _c.beforeSend, sampleRate = _c.sampleRate;\n var transport = this.getTransport();\n if (!this._isEnabled()) {\n return SyncPromise.reject(new SentryError('SDK not enabled, will not capture event.'));\n }\n var isTransaction = event.type === 'transaction';\n // 1.0 === 100% events are sent\n // 0.0 === 0% events are sent\n // Sampling for transaction happens somewhere else\n if (!isTransaction && typeof sampleRate === 'number' && Math.random() > sampleRate) {\n (_b = (_a = transport).recordLostEvent) === null || _b === void 0 ? void 0 : _b.call(_a, Outcome.SampleRate, 'event');\n return SyncPromise.reject(new SentryError(\"Discarding event because it's not included in the random sample (sampling rate = \" + sampleRate + \")\"));\n }\n return this._prepareEvent(event, scope, hint)\n .then(function (prepared) {\n var _a, _b;\n if (prepared === null) {\n (_b = (_a = transport).recordLostEvent) === null || _b === void 0 ? void 0 : _b.call(_a, Outcome.EventProcessor, event.type || 'event');\n throw new SentryError('An event processor returned null, will not send event.');\n }\n var isInternalException = hint && hint.data && hint.data.__sentry__ === true;\n if (isInternalException || isTransaction || !beforeSend) {\n return prepared;\n }\n var beforeSendResult = beforeSend(prepared, hint);\n return _this._ensureBeforeSendRv(beforeSendResult);\n })\n .then(function (processedEvent) {\n var _a, _b;\n if (processedEvent === null) {\n (_b = (_a = transport).recordLostEvent) === null || _b === void 0 ? void 0 : _b.call(_a, Outcome.BeforeSend, event.type || 'event');\n throw new SentryError('`beforeSend` returned `null`, will not send event.');\n }\n var session = scope && scope.getSession && scope.getSession();\n if (!isTransaction && session) {\n _this._updateSessionFromEvent(session, processedEvent);\n }\n _this._sendEvent(processedEvent);\n return processedEvent;\n })\n .then(null, function (reason) {\n if (reason instanceof SentryError) {\n throw reason;\n }\n _this.captureException(reason, {\n data: {\n __sentry__: true,\n },\n originalException: reason,\n });\n throw new SentryError(\"Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\\nReason: \" + reason);\n });\n };\n /**\n * Occupies the client with processing and event\n */\n BaseClient.prototype._process = function (promise) {\n var _this = this;\n this._numProcessing += 1;\n void promise.then(function (value) {\n _this._numProcessing -= 1;\n return value;\n }, function (reason) {\n _this._numProcessing -= 1;\n return reason;\n });\n };\n /**\n * Verifies that return value of configured `beforeSend` is of expected type.\n */\n BaseClient.prototype._ensureBeforeSendRv = function (rv) {\n var nullErr = '`beforeSend` method has to return `null` or a valid event.';\n if (isThenable(rv)) {\n return rv.then(function (event) {\n if (!(isPlainObject(event) || event === null)) {\n throw new SentryError(nullErr);\n }\n return event;\n }, function (e) {\n throw new SentryError(\"beforeSend rejected with \" + e);\n });\n }\n else if (!(isPlainObject(rv) || rv === null)) {\n throw new SentryError(nullErr);\n }\n return rv;\n };\n return BaseClient;\n}());\nexport { BaseClient };\n//# sourceMappingURL=baseclient.js.map","var originalFunctionToString;\n/** Patch toString calls to return proper name for wrapped functions */\nvar FunctionToString = /** @class */ (function () {\n function FunctionToString() {\n /**\n * @inheritDoc\n */\n this.name = FunctionToString.id;\n }\n /**\n * @inheritDoc\n */\n FunctionToString.prototype.setupOnce = function () {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n originalFunctionToString = Function.prototype.toString;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Function.prototype.toString = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var context = this.__sentry_original__ || this;\n return originalFunctionToString.apply(context, args);\n };\n };\n /**\n * @inheritDoc\n */\n FunctionToString.id = 'FunctionToString';\n return FunctionToString;\n}());\nexport { FunctionToString };\n//# sourceMappingURL=functiontostring.js.map","import { RequestSessionStatus, } from '@sentry/types';\nimport { dropUndefinedKeys, logger } from '@sentry/utils';\nimport { getCurrentHub } from './hub';\n/**\n * @inheritdoc\n */\nvar SessionFlusher = /** @class */ (function () {\n function SessionFlusher(transport, attrs) {\n var _this = this;\n this.flushTimeout = 60;\n this._pendingAggregates = {};\n this._isEnabled = true;\n this._transport = transport;\n // Call to setInterval, so that flush is called every 60 seconds\n this._intervalId = setInterval(function () { return _this.flush(); }, this.flushTimeout * 1000);\n this._sessionAttrs = attrs;\n }\n /** Sends session aggregates to Transport */\n SessionFlusher.prototype.sendSessionAggregates = function (sessionAggregates) {\n if (!this._transport.sendSession) {\n logger.warn(\"Dropping session because custom transport doesn't implement sendSession\");\n return;\n }\n void this._transport.sendSession(sessionAggregates).then(null, function (reason) {\n logger.error(\"Error while sending session: \" + reason);\n });\n };\n /** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSessions` */\n SessionFlusher.prototype.flush = function () {\n var sessionAggregates = this.getSessionAggregates();\n if (sessionAggregates.aggregates.length === 0) {\n return;\n }\n this._pendingAggregates = {};\n this.sendSessionAggregates(sessionAggregates);\n };\n /** Massages the entries in `pendingAggregates` and returns aggregated sessions */\n SessionFlusher.prototype.getSessionAggregates = function () {\n var _this = this;\n var aggregates = Object.keys(this._pendingAggregates).map(function (key) {\n return _this._pendingAggregates[parseInt(key)];\n });\n var sessionAggregates = {\n attrs: this._sessionAttrs,\n aggregates: aggregates,\n };\n return dropUndefinedKeys(sessionAggregates);\n };\n /** JSDoc */\n SessionFlusher.prototype.close = function () {\n clearInterval(this._intervalId);\n this._isEnabled = false;\n this.flush();\n };\n /**\n * Wrapper function for _incrementSessionStatusCount that checks if the instance of SessionFlusher is enabled then\n * fetches the session status of the request from `Scope.getRequestSession().status` on the scope and passes them to\n * `_incrementSessionStatusCount` along with the start date\n */\n SessionFlusher.prototype.incrementSessionStatusCount = function () {\n var _a, _b;\n if (!this._isEnabled) {\n return;\n }\n var scope = getCurrentHub().getScope();\n var requestSession = (_a = scope) === null || _a === void 0 ? void 0 : _a.getRequestSession();\n if (requestSession && requestSession.status) {\n this._incrementSessionStatusCount(requestSession.status, new Date());\n // This is not entirely necessarily but is added as a safe guard to indicate the bounds of a request and so in\n // case captureRequestSession is called more than once to prevent double count\n (_b = scope) === null || _b === void 0 ? void 0 : _b.setRequestSession(undefined);\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n }\n };\n /**\n * Increments status bucket in pendingAggregates buffer (internal state) corresponding to status of\n * the session received\n */\n SessionFlusher.prototype._incrementSessionStatusCount = function (status, date) {\n // Truncate minutes and seconds on Session Started attribute to have one minute bucket keys\n var sessionStartedTrunc = new Date(date).setSeconds(0, 0);\n this._pendingAggregates[sessionStartedTrunc] = this._pendingAggregates[sessionStartedTrunc] || {};\n // corresponds to aggregated sessions in one specific minute bucket\n // for example, {\"started\":\"2021-03-16T08:00:00.000Z\",\"exited\":4, \"errored\": 1}\n var aggregationCounts = this._pendingAggregates[sessionStartedTrunc];\n if (!aggregationCounts.started) {\n aggregationCounts.started = new Date(sessionStartedTrunc).toISOString();\n }\n switch (status) {\n case RequestSessionStatus.Errored:\n aggregationCounts.errored = (aggregationCounts.errored || 0) + 1;\n return aggregationCounts.errored;\n case RequestSessionStatus.Ok:\n aggregationCounts.exited = (aggregationCounts.exited || 0) + 1;\n return aggregationCounts.exited;\n case RequestSessionStatus.Crashed:\n aggregationCounts.crashed = (aggregationCounts.crashed || 0) + 1;\n return aggregationCounts.crashed;\n }\n };\n return SessionFlusher;\n}());\nexport { SessionFlusher };\n//# sourceMappingURL=sessionflusher.js.map","import { __extends } from \"tslib\";\nimport { BaseClient, SDK_VERSION } from '@sentry/core';\nimport { SessionFlusher } from '@sentry/hub';\nimport { RequestSessionStatus } from '@sentry/types';\nimport { logger } from '@sentry/utils';\nimport { NodeBackend } from './backend';\n/**\n * The Sentry Node SDK Client.\n *\n * @see NodeOptions for documentation on configuration options.\n * @see SentryClient for usage documentation.\n */\nvar NodeClient = /** @class */ (function (_super) {\n __extends(NodeClient, _super);\n /**\n * Creates a new Node SDK instance.\n * @param options Configuration options for this SDK.\n */\n function NodeClient(options) {\n var _this = this;\n options._metadata = options._metadata || {};\n options._metadata.sdk = options._metadata.sdk || {\n name: 'sentry.javascript.node',\n packages: [\n {\n name: 'npm:@sentry/node',\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n };\n _this = _super.call(this, NodeBackend, options) || this;\n return _this;\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n NodeClient.prototype.captureException = function (exception, hint, scope) {\n // Check if the flag `autoSessionTracking` is enabled, and if `_sessionFlusher` exists because it is initialised only\n // when the `requestHandler` middleware is used, and hence the expectation is to have SessionAggregates payload\n // sent to the Server only when the `requestHandler` middleware is used\n if (this._options.autoSessionTracking && this._sessionFlusher && scope) {\n var requestSession = scope.getRequestSession();\n // Necessary checks to ensure this is code block is executed only within a request\n // Should override the status only if `requestSession.status` is `Ok`, which is its initial stage\n if (requestSession && requestSession.status === RequestSessionStatus.Ok) {\n requestSession.status = RequestSessionStatus.Errored;\n }\n }\n return _super.prototype.captureException.call(this, exception, hint, scope);\n };\n /**\n * @inheritDoc\n */\n NodeClient.prototype.captureEvent = function (event, hint, scope) {\n // Check if the flag `autoSessionTracking` is enabled, and if `_sessionFlusher` exists because it is initialised only\n // when the `requestHandler` middleware is used, and hence the expectation is to have SessionAggregates payload\n // sent to the Server only when the `requestHandler` middleware is used\n if (this._options.autoSessionTracking && this._sessionFlusher && scope) {\n var eventType = event.type || 'exception';\n var isException = eventType === 'exception' && event.exception && event.exception.values && event.exception.values.length > 0;\n // If the event is of type Exception, then a request session should be captured\n if (isException) {\n var requestSession = scope.getRequestSession();\n // Ensure that this is happening within the bounds of a request, and make sure not to override\n // Session Status if Errored / Crashed\n if (requestSession && requestSession.status === RequestSessionStatus.Ok) {\n requestSession.status = RequestSessionStatus.Errored;\n }\n }\n }\n return _super.prototype.captureEvent.call(this, event, hint, scope);\n };\n /**\n *\n * @inheritdoc\n */\n NodeClient.prototype.close = function (timeout) {\n var _a;\n (_a = this._sessionFlusher) === null || _a === void 0 ? void 0 : _a.close();\n return _super.prototype.close.call(this, timeout);\n };\n /** Method that initialises an instance of SessionFlusher on Client */\n NodeClient.prototype.initSessionFlusher = function () {\n var _a = this._options, release = _a.release, environment = _a.environment;\n if (!release) {\n logger.warn('Cannot initialise an instance of SessionFlusher if no release is provided!');\n }\n else {\n this._sessionFlusher = new SessionFlusher(this.getTransport(), {\n release: release,\n environment: environment,\n });\n }\n };\n /**\n * @inheritDoc\n */\n NodeClient.prototype._prepareEvent = function (event, scope, hint) {\n event.platform = event.platform || 'node';\n if (this.getOptions().serverName) {\n event.server_name = this.getOptions().serverName;\n }\n return _super.prototype._prepareEvent.call(this, event, scope, hint);\n };\n /**\n * Method responsible for capturing/ending a request session by calling `incrementSessionStatusCount` to increment\n * appropriate session aggregates bucket\n */\n NodeClient.prototype._captureRequestSession = function () {\n if (!this._sessionFlusher) {\n logger.warn('Discarded request mode session because autoSessionTracking option was disabled');\n }\n else {\n this._sessionFlusher.incrementSessionStatusCount();\n }\n };\n return NodeClient;\n}(BaseClient));\nexport { NodeClient };\n//# sourceMappingURL=client.js.map","import { __read, __spread } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';\nimport { getEventDescription, isMatchingPattern, logger } from '@sentry/utils';\n// \"Script error.\" is hard coded into browsers for errors that it can't read.\n// this is the result of a script being pulled in from an external domain and CORS.\nvar DEFAULT_IGNORE_ERRORS = [/^Script error\\.?$/, /^Javascript error: Script error\\.? on line 0$/];\n/** Inbound filters configurable by the user */\nvar InboundFilters = /** @class */ (function () {\n function InboundFilters(_options) {\n if (_options === void 0) { _options = {}; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = InboundFilters.id;\n }\n /**\n * @inheritDoc\n */\n InboundFilters.prototype.setupOnce = function () {\n addGlobalEventProcessor(function (event) {\n var hub = getCurrentHub();\n if (!hub) {\n return event;\n }\n var self = hub.getIntegration(InboundFilters);\n if (self) {\n var client = hub.getClient();\n var clientOptions = client ? client.getOptions() : {};\n // This checks prevents most of the occurrences of the bug linked below:\n // https://github.com/getsentry/sentry-javascript/issues/2622\n // The bug is caused by multiple SDK instances, where one is minified and one is using non-mangled code.\n // Unfortunatelly we cannot fix it reliably (thus reserved property in rollup's terser config),\n // as we cannot force people using multiple instances in their apps to sync SDK versions.\n var options = typeof self._mergeOptions === 'function' ? self._mergeOptions(clientOptions) : {};\n if (typeof self._shouldDropEvent !== 'function') {\n return event;\n }\n return self._shouldDropEvent(event, options) ? null : event;\n }\n return event;\n });\n };\n /** JSDoc */\n InboundFilters.prototype._shouldDropEvent = function (event, options) {\n if (this._isSentryError(event, options)) {\n logger.warn(\"Event dropped due to being internal Sentry Error.\\nEvent: \" + getEventDescription(event));\n return true;\n }\n if (this._isIgnoredError(event, options)) {\n logger.warn(\"Event dropped due to being matched by `ignoreErrors` option.\\nEvent: \" + getEventDescription(event));\n return true;\n }\n if (this._isDeniedUrl(event, options)) {\n logger.warn(\"Event dropped due to being matched by `denyUrls` option.\\nEvent: \" + getEventDescription(event) + \".\\nUrl: \" + this._getEventFilterUrl(event));\n return true;\n }\n if (!this._isAllowedUrl(event, options)) {\n logger.warn(\"Event dropped due to not being matched by `allowUrls` option.\\nEvent: \" + getEventDescription(event) + \".\\nUrl: \" + this._getEventFilterUrl(event));\n return true;\n }\n return false;\n };\n /** JSDoc */\n InboundFilters.prototype._isSentryError = function (event, options) {\n if (!options.ignoreInternal) {\n return false;\n }\n try {\n return ((event &&\n event.exception &&\n event.exception.values &&\n event.exception.values[0] &&\n event.exception.values[0].type === 'SentryError') ||\n false);\n }\n catch (_oO) {\n return false;\n }\n };\n /** JSDoc */\n InboundFilters.prototype._isIgnoredError = function (event, options) {\n if (!options.ignoreErrors || !options.ignoreErrors.length) {\n return false;\n }\n return this._getPossibleEventMessages(event).some(function (message) {\n // Not sure why TypeScript complains here...\n return options.ignoreErrors.some(function (pattern) { return isMatchingPattern(message, pattern); });\n });\n };\n /** JSDoc */\n InboundFilters.prototype._isDeniedUrl = function (event, options) {\n // TODO: Use Glob instead?\n if (!options.denyUrls || !options.denyUrls.length) {\n return false;\n }\n var url = this._getEventFilterUrl(event);\n return !url ? false : options.denyUrls.some(function (pattern) { return isMatchingPattern(url, pattern); });\n };\n /** JSDoc */\n InboundFilters.prototype._isAllowedUrl = function (event, options) {\n // TODO: Use Glob instead?\n if (!options.allowUrls || !options.allowUrls.length) {\n return true;\n }\n var url = this._getEventFilterUrl(event);\n return !url ? true : options.allowUrls.some(function (pattern) { return isMatchingPattern(url, pattern); });\n };\n /** JSDoc */\n InboundFilters.prototype._mergeOptions = function (clientOptions) {\n if (clientOptions === void 0) { clientOptions = {}; }\n return {\n allowUrls: __spread((this._options.whitelistUrls || []), (this._options.allowUrls || []), (clientOptions.whitelistUrls || []), (clientOptions.allowUrls || [])),\n denyUrls: __spread((this._options.blacklistUrls || []), (this._options.denyUrls || []), (clientOptions.blacklistUrls || []), (clientOptions.denyUrls || [])),\n ignoreErrors: __spread((this._options.ignoreErrors || []), (clientOptions.ignoreErrors || []), DEFAULT_IGNORE_ERRORS),\n ignoreInternal: typeof this._options.ignoreInternal !== 'undefined' ? this._options.ignoreInternal : true,\n };\n };\n /** JSDoc */\n InboundFilters.prototype._getPossibleEventMessages = function (event) {\n if (event.message) {\n return [event.message];\n }\n if (event.exception) {\n try {\n var _a = (event.exception.values && event.exception.values[0]) || {}, _b = _a.type, type = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c;\n return [\"\" + value, type + \": \" + value];\n }\n catch (oO) {\n logger.error(\"Cannot extract message for event \" + getEventDescription(event));\n return [];\n }\n }\n return [];\n };\n /** JSDoc */\n InboundFilters.prototype._getLastValidUrl = function (frames) {\n if (frames === void 0) { frames = []; }\n var _a, _b;\n for (var i = frames.length - 1; i >= 0; i--) {\n var frame = frames[i];\n if (((_a = frame) === null || _a === void 0 ? void 0 : _a.filename) !== '' && ((_b = frame) === null || _b === void 0 ? void 0 : _b.filename) !== '[native code]') {\n return frame.filename || null;\n }\n }\n return null;\n };\n /** JSDoc */\n InboundFilters.prototype._getEventFilterUrl = function (event) {\n try {\n if (event.stacktrace) {\n var frames_1 = event.stacktrace.frames;\n return this._getLastValidUrl(frames_1);\n }\n if (event.exception) {\n var frames_2 = event.exception.values && event.exception.values[0].stacktrace && event.exception.values[0].stacktrace.frames;\n return this._getLastValidUrl(frames_2);\n }\n return null;\n }\n catch (oO) {\n logger.error(\"Cannot extract url for event \" + getEventDescription(event));\n return null;\n }\n };\n /**\n * @inheritDoc\n */\n InboundFilters.id = 'InboundFilters';\n return InboundFilters;\n}());\nexport { InboundFilters };\n//# sourceMappingURL=inboundfilters.js.map","import { __read, __spread, __values } from \"tslib\";\nimport { getCurrentHub } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { fill } from '@sentry/utils';\nimport * as util from 'util';\n/** Console module integration */\nvar Console = /** @class */ (function () {\n function Console() {\n /**\n * @inheritDoc\n */\n this.name = Console.id;\n }\n /**\n * @inheritDoc\n */\n Console.prototype.setupOnce = function () {\n var e_1, _a;\n try {\n for (var _b = __values(['debug', 'info', 'warn', 'error', 'log']), _c = _b.next(); !_c.done; _c = _b.next()) {\n var level = _c.value;\n fill(console, level, createConsoleWrapper(level));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n /**\n * @inheritDoc\n */\n Console.id = 'Console';\n return Console;\n}());\nexport { Console };\n/**\n * Wrapper function that'll be used for every console level\n */\nfunction createConsoleWrapper(level) {\n return function consoleWrapper(originalConsoleMethod) {\n var sentryLevel;\n switch (level) {\n case 'debug':\n sentryLevel = Severity.Debug;\n break;\n case 'error':\n sentryLevel = Severity.Error;\n break;\n case 'info':\n sentryLevel = Severity.Info;\n break;\n case 'warn':\n sentryLevel = Severity.Warning;\n break;\n default:\n sentryLevel = Severity.Log;\n }\n /* eslint-disable prefer-rest-params */\n return function () {\n if (getCurrentHub().getIntegration(Console)) {\n getCurrentHub().addBreadcrumb({\n category: 'console',\n level: sentryLevel,\n message: util.format.apply(undefined, arguments),\n }, {\n input: __spread(arguments),\n level: level,\n });\n }\n originalConsoleMethod.apply(this, arguments);\n };\n /* eslint-enable prefer-rest-params */\n };\n}\n//# sourceMappingURL=console.js.map","import { __assign, __read } from \"tslib\";\nimport { getCurrentHub } from '@sentry/core';\nimport { parseSemver } from '@sentry/utils';\nimport { URL } from 'url';\nvar NODE_VERSION = parseSemver(process.versions.node);\n/**\n * Checks whether given url points to Sentry server\n * @param url url to verify\n */\nexport function isSentryRequest(url) {\n var _a;\n var dsn = (_a = getCurrentHub()\n .getClient()) === null || _a === void 0 ? void 0 : _a.getDsn();\n return dsn ? url.includes(dsn.host) : false;\n}\n/**\n * Assemble a URL to be used for breadcrumbs and spans.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\nexport function extractUrl(requestOptions) {\n var protocol = requestOptions.protocol || '';\n var hostname = requestOptions.hostname || requestOptions.host || '';\n // Don't log standard :80 (http) and :443 (https) ports to reduce the noise\n var port = !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 ? '' : \":\" + requestOptions.port;\n var path = requestOptions.path ? requestOptions.path : '/';\n return protocol + \"//\" + hostname + port + path;\n}\n/**\n * Handle various edge cases in the span description (for spans representing http(s) requests).\n *\n * @param description current `description` property of the span representing the request\n * @param requestOptions Configuration data for the request\n * @param Request Request object\n *\n * @returns The cleaned description\n */\nexport function cleanSpanDescription(description, requestOptions, request) {\n var _a, _b, _c;\n // nothing to clean\n if (!description) {\n return description;\n }\n // eslint-disable-next-line prefer-const\n var _d = __read(description.split(' '), 2), method = _d[0], requestUrl = _d[1];\n // superagent sticks the protocol in a weird place (we check for host because if both host *and* protocol are missing,\n // we're likely dealing with an internal route and this doesn't apply)\n if (requestOptions.host && !requestOptions.protocol) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n requestOptions.protocol = (_b = (_a = request) === null || _a === void 0 ? void 0 : _a.agent) === null || _b === void 0 ? void 0 : _b.protocol; // worst comes to worst, this is undefined and nothing changes\n requestUrl = extractUrl(requestOptions);\n }\n // internal routes can end up starting with a triple slash rather than a single one\n if ((_c = requestUrl) === null || _c === void 0 ? void 0 : _c.startsWith('///')) {\n requestUrl = requestUrl.slice(2);\n }\n return method + \" \" + requestUrl;\n}\n/**\n * Convert a URL object into a RequestOptions object.\n *\n * Copied from Node's internals (where it's used in http(s).request() and http(s).get()), modified only to use the\n * RequestOptions type above.\n *\n * See https://github.com/nodejs/node/blob/master/lib/internal/url.js.\n */\nexport function urlToOptions(url) {\n var options = {\n protocol: url.protocol,\n hostname: typeof url.hostname === 'string' && url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname,\n hash: url.hash,\n search: url.search,\n pathname: url.pathname,\n path: \"\" + (url.pathname || '') + (url.search || ''),\n href: url.href,\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = url.username + \":\" + url.password;\n }\n return options;\n}\n/**\n * Normalize inputs to `http(s).request()` and `http(s).get()`.\n *\n * Legal inputs to `http(s).request()` and `http(s).get()` can take one of ten forms:\n * [ RequestOptions | string | URL ],\n * [ RequestOptions | string | URL, RequestCallback ],\n * [ string | URL, RequestOptions ], and\n * [ string | URL, RequestOptions, RequestCallback ].\n *\n * This standardizes to one of two forms: [ RequestOptions ] and [ RequestOptions, RequestCallback ]. A similar thing is\n * done as the first step of `http(s).request()` and `http(s).get()`; this just does it early so that we can interact\n * with the args in a standard way.\n *\n * @param requestArgs The inputs to `http(s).request()` or `http(s).get()`, as an array.\n *\n * @returns Equivalent args of the form [ RequestOptions ] or [ RequestOptions, RequestCallback ].\n */\nexport function normalizeRequestArgs(httpModule, requestArgs) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n var callback, requestOptions;\n // pop off the callback, if there is one\n if (typeof requestArgs[requestArgs.length - 1] === 'function') {\n callback = requestArgs.pop();\n }\n // create a RequestOptions object of whatever's at index 0\n if (typeof requestArgs[0] === 'string') {\n requestOptions = urlToOptions(new URL(requestArgs[0]));\n }\n else if (requestArgs[0] instanceof URL) {\n requestOptions = urlToOptions(requestArgs[0]);\n }\n else {\n requestOptions = requestArgs[0];\n }\n // if the options were given separately from the URL, fold them in\n if (requestArgs.length === 2) {\n requestOptions = __assign(__assign({}, requestOptions), requestArgs[1]);\n }\n // Figure out the protocol if it's currently missing\n if (requestOptions.protocol === undefined) {\n // Worst case we end up populating protocol with undefined, which it already is\n /* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n // NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.\n // Because of that, we cannot rely on `httpModule` to provide us with valid protocol,\n // as it will always return `http`, even when using `https` module.\n //\n // See test/integrations/http.test.ts for more details on Node <=v8 protocol issue.\n if (NODE_VERSION.major && NODE_VERSION.major > 8) {\n requestOptions.protocol =\n ((_b = (_a = httpModule) === null || _a === void 0 ? void 0 : _a.globalAgent) === null || _b === void 0 ? void 0 : _b.protocol) || ((_c = requestOptions.agent) === null || _c === void 0 ? void 0 : _c.protocol) || ((_d = requestOptions._defaultAgent) === null || _d === void 0 ? void 0 : _d.protocol);\n }\n else {\n requestOptions.protocol =\n ((_e = requestOptions.agent) === null || _e === void 0 ? void 0 : _e.protocol) || ((_f = requestOptions._defaultAgent) === null || _f === void 0 ? void 0 : _f.protocol) || ((_h = (_g = httpModule) === null || _g === void 0 ? void 0 : _g.globalAgent) === null || _h === void 0 ? void 0 : _h.protocol);\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n }\n // return args in standardized form\n if (callback) {\n return [requestOptions, callback];\n }\n else {\n return [requestOptions];\n }\n}\n//# sourceMappingURL=http.js.map","import { __assign } from \"tslib\";\nimport { getCurrentHub } from '@sentry/core';\nimport { fill, logger, parseSemver } from '@sentry/utils';\nimport { cleanSpanDescription, extractUrl, isSentryRequest, normalizeRequestArgs, } from './utils/http';\nvar NODE_VERSION = parseSemver(process.versions.node);\n/** http module integration */\nvar Http = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Http(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Http.id;\n this._breadcrumbs = typeof options.breadcrumbs === 'undefined' ? true : options.breadcrumbs;\n this._tracing = typeof options.tracing === 'undefined' ? false : options.tracing;\n }\n /**\n * @inheritDoc\n */\n Http.prototype.setupOnce = function () {\n // No need to instrument if we don't want to track anything\n if (!this._breadcrumbs && !this._tracing) {\n return;\n }\n var wrappedHandlerMaker = _createWrappedRequestMethodFactory(this._breadcrumbs, this._tracing);\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n var httpModule = require('http');\n fill(httpModule, 'get', wrappedHandlerMaker);\n fill(httpModule, 'request', wrappedHandlerMaker);\n // NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.\n // If we do, we'd get double breadcrumbs and double spans for `https` calls.\n // It has been changed in Node 9, so for all versions equal and above, we patch `https` separately.\n if (NODE_VERSION.major && NODE_VERSION.major > 8) {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n var httpsModule = require('https');\n fill(httpsModule, 'get', wrappedHandlerMaker);\n fill(httpsModule, 'request', wrappedHandlerMaker);\n }\n };\n /**\n * @inheritDoc\n */\n Http.id = 'Http';\n return Http;\n}());\nexport { Http };\n/**\n * Function which creates a function which creates wrapped versions of internal `request` and `get` calls within `http`\n * and `https` modules. (NB: Not a typo - this is a creator^2!)\n *\n * @param breadcrumbsEnabled Whether or not to record outgoing requests as breadcrumbs\n * @param tracingEnabled Whether or not to record outgoing requests as tracing spans\n *\n * @returns A function which accepts the exiting handler and returns a wrapped handler\n */\nfunction _createWrappedRequestMethodFactory(breadcrumbsEnabled, tracingEnabled) {\n return function wrappedRequestMethodFactory(originalRequestMethod) {\n return function wrappedMethod() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var httpModule = this;\n var requestArgs = normalizeRequestArgs(this, args);\n var requestOptions = requestArgs[0];\n var requestUrl = extractUrl(requestOptions);\n // we don't want to record requests to Sentry as either breadcrumbs or spans, so just use the original method\n if (isSentryRequest(requestUrl)) {\n return originalRequestMethod.apply(httpModule, requestArgs);\n }\n var span;\n var parentSpan;\n var scope = getCurrentHub().getScope();\n if (scope && tracingEnabled) {\n parentSpan = scope.getSpan();\n if (parentSpan) {\n span = parentSpan.startChild({\n description: (requestOptions.method || 'GET') + \" \" + requestUrl,\n op: 'request',\n });\n var sentryTraceHeader = span.toTraceparent();\n logger.log(\"[Tracing] Adding sentry-trace header \" + sentryTraceHeader + \" to outgoing request to \" + requestUrl + \": \");\n requestOptions.headers = __assign(__assign({}, requestOptions.headers), { 'sentry-trace': sentryTraceHeader });\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalRequestMethod\n .apply(httpModule, requestArgs)\n .once('response', function (res) {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var req = this;\n if (breadcrumbsEnabled) {\n addRequestBreadcrumb('response', requestUrl, req, res);\n }\n if (tracingEnabled && span) {\n if (res.statusCode) {\n span.setHttpStatus(res.statusCode);\n }\n span.description = cleanSpanDescription(span.description, requestOptions, req);\n span.finish();\n }\n })\n .once('error', function () {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var req = this;\n if (breadcrumbsEnabled) {\n addRequestBreadcrumb('error', requestUrl, req);\n }\n if (tracingEnabled && span) {\n span.setHttpStatus(500);\n span.description = cleanSpanDescription(span.description, requestOptions, req);\n span.finish();\n }\n });\n };\n };\n}\n/**\n * Captures Breadcrumb based on provided request/response pair\n */\nfunction addRequestBreadcrumb(event, url, req, res) {\n if (!getCurrentHub().getIntegration(Http)) {\n return;\n }\n getCurrentHub().addBreadcrumb({\n category: 'http',\n data: {\n method: req.method,\n status_code: res && res.statusCode,\n url: url,\n },\n type: 'http',\n }, {\n event: event,\n request: req,\n response: res,\n });\n}\n//# sourceMappingURL=http.js.map","import { getCurrentHub } from '@sentry/core';\nimport { forget, logger } from '@sentry/utils';\nvar DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n/**\n * @hidden\n */\nexport function logAndExitProcess(error) {\n // eslint-disable-next-line no-console\n console.error(error && error.stack ? error.stack : error);\n var client = getCurrentHub().getClient();\n if (client === undefined) {\n logger.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n return;\n }\n var options = client.getOptions();\n var timeout = (options && options.shutdownTimeout && options.shutdownTimeout > 0 && options.shutdownTimeout) ||\n DEFAULT_SHUTDOWN_TIMEOUT;\n forget(client.close(timeout).then(function (result) {\n if (!result) {\n logger.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n }));\n}\n//# sourceMappingURL=errorhandling.js.map","/**\n * Consumes the promise and logs the error when it rejects.\n * @param promise A promise to forget.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function forget(promise) {\n void promise.then(null, function (e) {\n // TODO: Use a better logging mechanism\n // eslint-disable-next-line no-console\n console.error(e);\n });\n}\n//# sourceMappingURL=async.js.map","import { getCurrentHub } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { logger } from '@sentry/utils';\nimport { logAndExitProcess } from './utils/errorhandling';\n/** Global Promise Rejection handler */\nvar OnUncaughtException = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function OnUncaughtException(_options) {\n if (_options === void 0) { _options = {}; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = OnUncaughtException.id;\n /**\n * @inheritDoc\n */\n this.handler = this._makeErrorHandler();\n }\n /**\n * @inheritDoc\n */\n OnUncaughtException.prototype.setupOnce = function () {\n global.process.on('uncaughtException', this.handler.bind(this));\n };\n /**\n * @hidden\n */\n OnUncaughtException.prototype._makeErrorHandler = function () {\n var _this = this;\n var timeout = 2000;\n var caughtFirstError = false;\n var caughtSecondError = false;\n var calledFatalError = false;\n var firstError;\n return function (error) {\n var onFatalError = logAndExitProcess;\n var client = getCurrentHub().getClient();\n if (_this._options.onFatalError) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n onFatalError = _this._options.onFatalError;\n }\n else if (client && client.getOptions().onFatalError) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n onFatalError = client.getOptions().onFatalError;\n }\n if (!caughtFirstError) {\n var hub_1 = getCurrentHub();\n // this is the first uncaught error and the ultimate reason for shutting down\n // we want to do absolutely everything possible to ensure it gets captured\n // also we want to make sure we don't go recursion crazy if more errors happen after this one\n firstError = error;\n caughtFirstError = true;\n if (hub_1.getIntegration(OnUncaughtException)) {\n hub_1.withScope(function (scope) {\n scope.setLevel(Severity.Fatal);\n hub_1.captureException(error, {\n originalException: error,\n data: { mechanism: { handled: false, type: 'onuncaughtexception' } },\n });\n if (!calledFatalError) {\n calledFatalError = true;\n onFatalError(error);\n }\n });\n }\n else {\n if (!calledFatalError) {\n calledFatalError = true;\n onFatalError(error);\n }\n }\n }\n else if (calledFatalError) {\n // we hit an error *after* calling onFatalError - pretty boned at this point, just shut it down\n logger.warn('uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown');\n logAndExitProcess(error);\n }\n else if (!caughtSecondError) {\n // two cases for how we can hit this branch:\n // - capturing of first error blew up and we just caught the exception from that\n // - quit trying to capture, proceed with shutdown\n // - a second independent error happened while waiting for first error to capture\n // - want to avoid causing premature shutdown before first error capture finishes\n // it's hard to immediately tell case 1 from case 2 without doing some fancy/questionable domain stuff\n // so let's instead just delay a bit before we proceed with our action here\n // in case 1, we just wait a bit unnecessarily but ultimately do the same thing\n // in case 2, the delay hopefully made us wait long enough for the capture to finish\n // two potential nonideal outcomes:\n // nonideal case 1: capturing fails fast, we sit around for a few seconds unnecessarily before proceeding correctly by calling onFatalError\n // nonideal case 2: case 2 happens, 1st error is captured but slowly, timeout completes before capture and we treat second error as the sendErr of (nonexistent) failure from trying to capture first error\n // note that after hitting this branch, we might catch more errors where (caughtSecondError && !calledFatalError)\n // we ignore them - they don't matter to us, we're just waiting for the second error timeout to finish\n caughtSecondError = true;\n setTimeout(function () {\n if (!calledFatalError) {\n // it was probably case 1, let's treat err as the sendErr and call onFatalError\n calledFatalError = true;\n onFatalError(firstError, error);\n }\n else {\n // it was probably case 2, our first error finished capturing while we waited, cool, do nothing\n }\n }, timeout); // capturing could take at least sendTimeout to fail, plus an arbitrary second for how long it takes to collect surrounding source etc\n }\n };\n };\n /**\n * @inheritDoc\n */\n OnUncaughtException.id = 'OnUncaughtException';\n return OnUncaughtException;\n}());\nexport { OnUncaughtException };\n//# sourceMappingURL=onuncaughtexception.js.map","import { __assign } from \"tslib\";\nimport { existsSync, readFileSync } from 'fs';\nimport { dirname, join } from 'path';\nvar moduleCache;\n/** Extract information about paths */\nfunction getPaths() {\n try {\n return require.cache ? Object.keys(require.cache) : [];\n }\n catch (e) {\n return [];\n }\n}\n/** Extract information about package.json modules */\nfunction collectModules() {\n var mainPaths = (require.main && require.main.paths) || [];\n var paths = getPaths();\n var infos = {};\n var seen = {};\n paths.forEach(function (path) {\n var dir = path;\n /** Traverse directories upward in the search of package.json file */\n var updir = function () {\n var orig = dir;\n dir = dirname(orig);\n if (!dir || orig === dir || seen[orig]) {\n return undefined;\n }\n if (mainPaths.indexOf(dir) < 0) {\n return updir();\n }\n var pkgfile = join(orig, 'package.json');\n seen[orig] = true;\n if (!existsSync(pkgfile)) {\n return updir();\n }\n try {\n var info = JSON.parse(readFileSync(pkgfile, 'utf8'));\n infos[info.name] = info.version;\n }\n catch (_oO) {\n // no-empty\n }\n };\n updir();\n });\n return infos;\n}\n/** Add node modules / packages to the event */\nvar Modules = /** @class */ (function () {\n function Modules() {\n /**\n * @inheritDoc\n */\n this.name = Modules.id;\n }\n /**\n * @inheritDoc\n */\n Modules.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n var _this = this;\n addGlobalEventProcessor(function (event) {\n if (!getCurrentHub().getIntegration(Modules)) {\n return event;\n }\n return __assign(__assign({}, event), { modules: _this._getModules() });\n });\n };\n /** Fetches the list of modules and the versions loaded by the entry file for your node.js app. */\n Modules.prototype._getModules = function () {\n if (!moduleCache) {\n moduleCache = collectModules();\n }\n return moduleCache;\n };\n /**\n * @inheritDoc\n */\n Modules.id = 'Modules';\n return Modules;\n}());\nexport { Modules };\n//# sourceMappingURL=modules.js.map","import { getCurrentHub } from '@sentry/core';\nimport { consoleSandbox } from '@sentry/utils';\nimport { logAndExitProcess } from './utils/errorhandling';\n/** Global Promise Rejection handler */\nvar OnUnhandledRejection = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function OnUnhandledRejection(_options) {\n if (_options === void 0) { _options = { mode: 'warn' }; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = OnUnhandledRejection.id;\n }\n /**\n * @inheritDoc\n */\n OnUnhandledRejection.prototype.setupOnce = function () {\n global.process.on('unhandledRejection', this.sendUnhandledPromise.bind(this));\n };\n /**\n * Send an exception with reason\n * @param reason string\n * @param promise promise\n */\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any\n OnUnhandledRejection.prototype.sendUnhandledPromise = function (reason, promise) {\n var hub = getCurrentHub();\n if (!hub.getIntegration(OnUnhandledRejection)) {\n this._handleRejection(reason);\n return;\n }\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n var context = (promise.domain && promise.domain.sentryContext) || {};\n hub.withScope(function (scope) {\n scope.setExtra('unhandledPromiseRejection', true);\n // Preserve backwards compatibility with raven-node for now\n if (context.user) {\n scope.setUser(context.user);\n }\n if (context.tags) {\n scope.setTags(context.tags);\n }\n if (context.extra) {\n scope.setExtras(context.extra);\n }\n hub.captureException(reason, {\n originalException: promise,\n data: { mechanism: { handled: false, type: 'onunhandledrejection' } },\n });\n });\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n this._handleRejection(reason);\n };\n /**\n * Handler for `mode` option\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n OnUnhandledRejection.prototype._handleRejection = function (reason) {\n // https://github.com/nodejs/node/blob/7cf6f9e964aa00772965391c23acda6d71972a9a/lib/internal/process/promises.js#L234-L240\n var rejectionWarning = 'This error originated either by ' +\n 'throwing inside of an async function without a catch block, ' +\n 'or by rejecting a promise which was not handled with .catch().' +\n ' The promise rejected with the reason:';\n /* eslint-disable no-console */\n if (this._options.mode === 'warn') {\n consoleSandbox(function () {\n console.warn(rejectionWarning);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n console.error(reason && reason.stack ? reason.stack : reason);\n });\n }\n else if (this._options.mode === 'strict') {\n consoleSandbox(function () {\n console.warn(rejectionWarning);\n });\n logAndExitProcess(reason);\n }\n /* eslint-enable no-console */\n };\n /**\n * @inheritDoc\n */\n OnUnhandledRejection.id = 'OnUnhandledRejection';\n return OnUnhandledRejection;\n}());\nexport { OnUnhandledRejection };\n//# sourceMappingURL=onunhandledrejection.js.map","import { __read, __spread } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';\nimport { isInstanceOf, SyncPromise } from '@sentry/utils';\nimport { getExceptionFromError } from '../parsers';\nvar DEFAULT_KEY = 'cause';\nvar DEFAULT_LIMIT = 5;\n/** Adds SDK info to an event. */\nvar LinkedErrors = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function LinkedErrors(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = LinkedErrors.id;\n this._key = options.key || DEFAULT_KEY;\n this._limit = options.limit || DEFAULT_LIMIT;\n }\n /**\n * @inheritDoc\n */\n LinkedErrors.prototype.setupOnce = function () {\n addGlobalEventProcessor(function (event, hint) {\n var self = getCurrentHub().getIntegration(LinkedErrors);\n if (self) {\n var handler = self._handler && self._handler.bind(self);\n return typeof handler === 'function' ? handler(event, hint) : event;\n }\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n LinkedErrors.prototype._handler = function (event, hint) {\n var _this = this;\n if (!event.exception || !event.exception.values || !hint || !isInstanceOf(hint.originalException, Error)) {\n return SyncPromise.resolve(event);\n }\n return new SyncPromise(function (resolve) {\n void _this._walkErrorTree(hint.originalException, _this._key)\n .then(function (linkedErrors) {\n if (event && event.exception && event.exception.values) {\n event.exception.values = __spread(linkedErrors, event.exception.values);\n }\n resolve(event);\n })\n .then(null, function () {\n resolve(event);\n });\n });\n };\n /**\n * @inheritDoc\n */\n LinkedErrors.prototype._walkErrorTree = function (error, key, stack) {\n var _this = this;\n if (stack === void 0) { stack = []; }\n if (!isInstanceOf(error[key], Error) || stack.length + 1 >= this._limit) {\n return SyncPromise.resolve(stack);\n }\n return new SyncPromise(function (resolve, reject) {\n void getExceptionFromError(error[key])\n .then(function (exception) {\n void _this._walkErrorTree(error[key], key, __spread([exception], stack))\n .then(resolve)\n .then(null, function () {\n reject();\n });\n })\n .then(null, function () {\n reject();\n });\n });\n };\n /**\n * @inheritDoc\n */\n LinkedErrors.id = 'LinkedErrors';\n return LinkedErrors;\n}());\nexport { LinkedErrors };\n//# sourceMappingURL=linkederrors.js.map","import { __awaiter, __generator, __read, __spread } from \"tslib\";\nimport { getCurrentHub, initAndBind, Integrations as CoreIntegrations } from '@sentry/core';\nimport { getMainCarrier, setHubOnCarrier } from '@sentry/hub';\nimport { SessionStatus } from '@sentry/types';\nimport { getGlobalObject, logger } from '@sentry/utils';\nimport * as domain from 'domain';\nimport { NodeClient } from './client';\nimport { Console, Http, LinkedErrors, OnUncaughtException, OnUnhandledRejection } from './integrations';\nexport var defaultIntegrations = [\n // Common\n new CoreIntegrations.InboundFilters(),\n new CoreIntegrations.FunctionToString(),\n // Native Wrappers\n new Console(),\n new Http(),\n // Global Handlers\n new OnUncaughtException(),\n new OnUnhandledRejection(),\n // Misc\n new LinkedErrors(),\n];\n/**\n * The Sentry Node SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible in the\n * main entry module. To set context information or send manual events, use the\n * provided methods.\n *\n * @example\n * ```\n *\n * const { init } = require('@sentry/node');\n *\n * init({\n * dsn: '__DSN__',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * const { configureScope } = require('@sentry/node');\n * configureScope((scope: Scope) => {\n * scope.setExtra({ battery: 0.7 });\n * scope.setTag({ user_mode: 'admin' });\n * scope.setUser({ id: '4711' });\n * });\n * ```\n *\n * @example\n * ```\n *\n * const { addBreadcrumb } = require('@sentry/node');\n * addBreadcrumb({\n * message: 'My Breadcrumb',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * const Sentry = require('@sentry/node');\n * Sentry.captureMessage('Hello, world!');\n * Sentry.captureException(new Error('Good bye'));\n * Sentry.captureEvent({\n * message: 'Manual',\n * stacktrace: [\n * // ...\n * ],\n * });\n * ```\n *\n * @see {@link NodeOptions} for documentation on configuration options.\n */\nexport function init(options) {\n if (options === void 0) { options = {}; }\n var _a;\n var carrier = getMainCarrier();\n var autoloadedIntegrations = ((_a = carrier.__SENTRY__) === null || _a === void 0 ? void 0 : _a.integrations) || [];\n options.defaultIntegrations =\n options.defaultIntegrations === false\n ? []\n : __spread((Array.isArray(options.defaultIntegrations) ? options.defaultIntegrations : defaultIntegrations), autoloadedIntegrations);\n if (options.dsn === undefined && process.env.SENTRY_DSN) {\n options.dsn = process.env.SENTRY_DSN;\n }\n if (options.tracesSampleRate === undefined && process.env.SENTRY_TRACES_SAMPLE_RATE) {\n var tracesSampleRate = parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);\n if (isFinite(tracesSampleRate)) {\n options.tracesSampleRate = tracesSampleRate;\n }\n }\n if (options.release === undefined) {\n var detectedRelease = getSentryRelease();\n if (detectedRelease !== undefined) {\n options.release = detectedRelease;\n }\n else {\n // If release is not provided, then we should disable autoSessionTracking\n options.autoSessionTracking = false;\n }\n }\n if (options.environment === undefined && process.env.SENTRY_ENVIRONMENT) {\n options.environment = process.env.SENTRY_ENVIRONMENT;\n }\n if (options.autoSessionTracking === undefined && options.dsn !== undefined) {\n options.autoSessionTracking = true;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n if (domain.active) {\n setHubOnCarrier(carrier, getCurrentHub());\n }\n initAndBind(NodeClient, options);\n if (options.autoSessionTracking) {\n startSessionTracking();\n }\n}\n/**\n * This is the getter for lastEventId.\n *\n * @returns The last event id of a captured event.\n */\nexport function lastEventId() {\n return getCurrentHub().lastEventId();\n}\n/**\n * Call `flush()` on the current client, if there is one. See {@link Client.flush}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause\n * the client to wait until all events are sent before resolving the promise.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport function flush(timeout) {\n return __awaiter(this, void 0, void 0, function () {\n var client;\n return __generator(this, function (_a) {\n client = getCurrentHub().getClient();\n if (client) {\n return [2 /*return*/, client.flush(timeout)];\n }\n logger.warn('Cannot flush events. No client defined.');\n return [2 /*return*/, Promise.resolve(false)];\n });\n });\n}\n/**\n * Call `close()` on the current client, if there is one. See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport function close(timeout) {\n return __awaiter(this, void 0, void 0, function () {\n var client;\n return __generator(this, function (_a) {\n client = getCurrentHub().getClient();\n if (client) {\n return [2 /*return*/, client.close(timeout)];\n }\n logger.warn('Cannot flush events and disable SDK. No client defined.');\n return [2 /*return*/, Promise.resolve(false)];\n });\n });\n}\n/**\n * Function that takes an instance of NodeClient and checks if autoSessionTracking option is enabled for that client\n */\nexport function isAutoSessionTrackingEnabled(client) {\n if (client === undefined) {\n return false;\n }\n var clientOptions = client && client.getOptions();\n if (clientOptions && clientOptions.autoSessionTracking !== undefined) {\n return clientOptions.autoSessionTracking;\n }\n return false;\n}\n/**\n * Returns a release dynamically from environment variables.\n */\nexport function getSentryRelease(fallback) {\n // Always read first as Sentry takes this as precedence\n if (process.env.SENTRY_RELEASE) {\n return process.env.SENTRY_RELEASE;\n }\n // This supports the variable that sentry-webpack-plugin injects\n var global = getGlobalObject();\n if (global.SENTRY_RELEASE && global.SENTRY_RELEASE.id) {\n return global.SENTRY_RELEASE.id;\n }\n return (\n // GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables\n process.env.GITHUB_SHA ||\n // Netlify - https://docs.netlify.com/configure-builds/environment-variables/#build-metadata\n process.env.COMMIT_REF ||\n // Vercel - https://vercel.com/docs/v2/build-step#system-environment-variables\n process.env.VERCEL_GIT_COMMIT_SHA ||\n process.env.VERCEL_GITHUB_COMMIT_SHA ||\n process.env.VERCEL_GITLAB_COMMIT_SHA ||\n process.env.VERCEL_BITBUCKET_COMMIT_SHA ||\n // Zeit (now known as Vercel)\n process.env.ZEIT_GITHUB_COMMIT_SHA ||\n process.env.ZEIT_GITLAB_COMMIT_SHA ||\n process.env.ZEIT_BITBUCKET_COMMIT_SHA ||\n fallback);\n}\n/**\n * Enable automatic Session Tracking for the node process.\n */\nfunction startSessionTracking() {\n var hub = getCurrentHub();\n hub.startSession();\n // Emitted in the case of healthy sessions, error of `mechanism.handled: true` and unhandledrejections because\n // The 'beforeExit' event is not emitted for conditions causing explicit termination,\n // such as calling process.exit() or uncaught exceptions.\n // Ref: https://nodejs.org/api/process.html#process_event_beforeexit\n process.on('beforeExit', function () {\n var _a;\n var session = (_a = hub.getScope()) === null || _a === void 0 ? void 0 : _a.getSession();\n var terminalStates = [SessionStatus.Exited, SessionStatus.Crashed];\n // Only call endSession, if the Session exists on Scope and SessionStatus is not a\n // Terminal Status i.e. Exited or Crashed because\n // \"When a session is moved away from ok it must not be updated anymore.\"\n // Ref: https://develop.sentry.dev/sdk/sessions/\n if (session && !terminalStates.includes(session.status))\n hub.endSession();\n });\n}\n//# sourceMappingURL=sdk.js.map","import { getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\nexport function initAndBind(clientClass, options) {\n var _a;\n if (options.debug === true) {\n logger.enable();\n }\n var hub = getCurrentHub();\n (_a = hub.getScope()) === null || _a === void 0 ? void 0 : _a.update(options.initialScope);\n var client = new clientClass(options);\n hub.bindClient(client);\n}\n//# sourceMappingURL=sdk.js.map","import { __read, __spread } from \"tslib\";\nimport * as fs from 'fs';\nimport * as path from 'path';\n/**\n * Recursively read the contents of a directory.\n *\n * @param targetDir Absolute or relative path of the directory to scan. All returned paths will be relative to this\n * directory.\n * @returns Array holding all relative paths\n */\nexport function deepReadDirSync(targetDir) {\n var targetDirAbsPath = path.resolve(targetDir);\n if (!fs.existsSync(targetDirAbsPath)) {\n throw new Error(\"Cannot read contents of \" + targetDirAbsPath + \". Directory does not exist.\");\n }\n if (!fs.statSync(targetDirAbsPath).isDirectory()) {\n throw new Error(\"Cannot read contents of \" + targetDirAbsPath + \", because it is not a directory.\");\n }\n // This does the same thing as its containing function, `deepReadDirSync` (except that - purely for convenience - it\n // deals in absolute paths rather than relative ones). We need this to be separate from the outer function to preserve\n // the difference between `targetDirAbsPath` and `currentDirAbsPath`.\n var deepReadCurrentDir = function (currentDirAbsPath) {\n return fs.readdirSync(currentDirAbsPath).reduce(function (absPaths, itemName) {\n var itemAbsPath = path.join(currentDirAbsPath, itemName);\n if (fs.statSync(itemAbsPath).isDirectory()) {\n return __spread(absPaths, deepReadCurrentDir(itemAbsPath));\n }\n return __spread(absPaths, [itemAbsPath]);\n }, []);\n };\n return deepReadCurrentDir(targetDirAbsPath).map(function (absPath) { return path.relative(targetDirAbsPath, absPath); });\n}\n//# sourceMappingURL=utils.js.map","import { getGlobalObject, logger } from '@sentry/utils';\nimport { SpanStatus } from '../spanstatus';\nimport { getActiveTransaction } from '../utils';\nvar global = getGlobalObject();\n/**\n * Add a listener that cancels and finishes a transaction when the global\n * document is hidden.\n */\nexport function registerBackgroundTabDetection() {\n if (global && global.document) {\n global.document.addEventListener('visibilitychange', function () {\n var activeTransaction = getActiveTransaction();\n if (global.document.hidden && activeTransaction) {\n logger.log(\"[Tracing] Transaction: \" + SpanStatus.Cancelled + \" -> since tab moved to the background, op: \" + activeTransaction.op);\n // We should not set status if it is already set, this prevent important statuses like\n // error or data loss from being overwritten on transaction.\n if (!activeTransaction.status) {\n activeTransaction.setStatus(SpanStatus.Cancelled);\n }\n activeTransaction.setTag('visibilitychange', 'document.hidden');\n activeTransaction.finish();\n }\n });\n }\n else {\n logger.warn('[Tracing] Could not set up background tab detection due to lack of global document');\n }\n}\n//# sourceMappingURL=backgroundtab.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var bindReporter = function (callback, metric, reportAllChanges) {\n var prevValue;\n return function (forceReport) {\n if (metric.value >= 0) {\n if (forceReport || reportAllChanges) {\n metric.delta = metric.value - (prevValue || 0);\n // Report the metric if there's a non-zero delta or if no previous\n // value exists (which can happen in the case of the document becoming\n // hidden when the metric value is 0).\n // See: https://github.com/GoogleChrome/web-vitals/issues/14\n if (metric.delta || prevValue === undefined) {\n prevValue = metric.value;\n callback(metric);\n }\n }\n }\n };\n};\n//# sourceMappingURL=bindReporter.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { generateUniqueID } from './generateUniqueID';\nexport var initMetric = function (name, value) {\n return {\n name: name,\n value: (value !== null && value !== void 0 ? value : -1),\n delta: 0,\n entries: [],\n id: generateUniqueID(),\n };\n};\n//# sourceMappingURL=initMetric.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Performantly generate a unique, 30-char string by combining a version\n * number, the current timestamp with a 13-digit number integer.\n * @return {string}\n */\nexport var generateUniqueID = function () {\n return \"v2-\" + Date.now() + \"-\" + (Math.floor(Math.random() * (9e12 - 1)) + 1e12);\n};\n//# sourceMappingURL=generateUniqueID.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Takes a performance entry type and a callback function, and creates a\n * `PerformanceObserver` instance that will observe the specified entry type\n * with buffering enabled and call the callback _for each entry_.\n *\n * This function also feature-detects entry support and wraps the logic in a\n * try/catch to avoid errors in unsupporting browsers.\n */\nexport var observe = function (type, callback) {\n try {\n if (PerformanceObserver.supportedEntryTypes.includes(type)) {\n // More extensive feature detect needed for Firefox due to:\n // https://github.com/GoogleChrome/web-vitals/issues/142\n if (type === 'first-input' && !('PerformanceEventTiming' in self)) {\n return;\n }\n var po = new PerformanceObserver(function (l) { return l.getEntries().map(callback); });\n po.observe({ type: type, buffered: true });\n return po;\n }\n }\n catch (e) {\n // Do nothing.\n }\n return;\n};\n//# sourceMappingURL=observe.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { getGlobalObject } from '@sentry/utils';\nexport var onHidden = function (cb, once) {\n var onHiddenOrPageHide = function (event) {\n if (event.type === 'pagehide' || getGlobalObject().document.visibilityState === 'hidden') {\n cb(event);\n if (once) {\n removeEventListener('visibilitychange', onHiddenOrPageHide, true);\n removeEventListener('pagehide', onHiddenOrPageHide, true);\n }\n }\n };\n addEventListener('visibilitychange', onHiddenOrPageHide, true);\n // Some browsers have buggy implementations of visibilitychange,\n // so we use pagehide in addition, just to be safe.\n addEventListener('pagehide', onHiddenOrPageHide, true);\n};\n//# sourceMappingURL=onHidden.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { getGlobalObject } from '@sentry/utils';\nimport { onHidden } from './onHidden';\nvar firstHiddenTime = -1;\nvar initHiddenTime = function () {\n return getGlobalObject().document.visibilityState === 'hidden' ? 0 : Infinity;\n};\nvar trackChanges = function () {\n // Update the time if/when the document becomes hidden.\n onHidden(function (_a) {\n var timeStamp = _a.timeStamp;\n firstHiddenTime = timeStamp;\n }, true);\n};\nexport var getVisibilityWatcher = function () {\n if (firstHiddenTime < 0) {\n // If the document is hidden when this code runs, assume it was hidden\n // since navigation start. This isn't a perfect heuristic, but it's the\n // best we can do until an API is available to support querying past\n // visibilityState.\n firstHiddenTime = initHiddenTime();\n trackChanges();\n }\n return {\n get firstHiddenTime() {\n return firstHiddenTime;\n },\n };\n};\n//# sourceMappingURL=getVisibilityWatcher.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nvar reportedMetricIDs = {};\nexport var getLCP = function (onReport, reportAllChanges) {\n var visibilityWatcher = getVisibilityWatcher();\n var metric = initMetric('LCP');\n var report;\n var entryHandler = function (entry) {\n // The startTime attribute returns the value of the renderTime if it is not 0,\n // and the value of the loadTime otherwise.\n var value = entry.startTime;\n // If the page was hidden prior to paint time of the entry,\n // ignore it and mark the metric as final, otherwise add the entry.\n if (value < visibilityWatcher.firstHiddenTime) {\n metric.value = value;\n metric.entries.push(entry);\n }\n if (report) {\n report();\n }\n };\n var po = observe('largest-contentful-paint', entryHandler);\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n var stopListening_1 = function () {\n if (!reportedMetricIDs[metric.id]) {\n po.takeRecords().map(entryHandler);\n po.disconnect();\n reportedMetricIDs[metric.id] = true;\n report(true);\n }\n };\n // Stop listening after input. Note: while scrolling is an input that\n // stop LCP observation, it's unreliable since it can be programmatically\n // generated. See: https://github.com/GoogleChrome/web-vitals/issues/75\n ['keydown', 'click'].forEach(function (type) {\n addEventListener(type, stopListening_1, { once: true, capture: true });\n });\n onHidden(stopListening_1, true);\n }\n};\n//# sourceMappingURL=getLCP.js.map","import { __assign, __rest } from \"tslib\";\nimport { browserPerformanceTimeOrigin, getGlobalObject, htmlTreeAsString, isNodeEnv, logger } from '@sentry/utils';\nimport { msToSec } from '../utils';\nimport { getCLS } from './web-vitals/getCLS';\nimport { getFID } from './web-vitals/getFID';\nimport { getLCP } from './web-vitals/getLCP';\nimport { getVisibilityWatcher } from './web-vitals/lib/getVisibilityWatcher';\nvar global = getGlobalObject();\nexport var DEFAULT_METRICS_INSTR_OPTIONS = {\n _reportAllChanges: false,\n};\n/** Class tracking metrics */\nvar MetricsInstrumentation = /** @class */ (function () {\n function MetricsInstrumentation(_options) {\n var _a, _b;\n this._measurements = {};\n this._performanceCursor = 0;\n if (!isNodeEnv() && ((_a = global) === null || _a === void 0 ? void 0 : _a.performance) && ((_b = global) === null || _b === void 0 ? void 0 : _b.document)) {\n if (global.performance.mark) {\n global.performance.mark('sentry-tracing-init');\n }\n this._trackCLS();\n this._trackLCP(_options._reportAllChanges);\n this._trackFID();\n }\n }\n /** Add performance related spans to a transaction */\n MetricsInstrumentation.prototype.addPerformanceEntries = function (transaction) {\n var _this = this;\n if (!global || !global.performance || !global.performance.getEntries || !browserPerformanceTimeOrigin) {\n // Gatekeeper if performance API not available\n return;\n }\n logger.log('[Tracing] Adding & adjusting spans using Performance API');\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var entryScriptSrc;\n if (global.document && global.document.scripts) {\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < global.document.scripts.length; i++) {\n // We go through all scripts on the page and look for 'data-entry'\n // We remember the name and measure the time between this script finished loading and\n // our mark 'sentry-tracing-init'\n if (global.document.scripts[i].dataset.entry === 'true') {\n entryScriptSrc = global.document.scripts[i].src;\n break;\n }\n }\n }\n var entryScriptStartTimestamp;\n var tracingInitMarkStartTime;\n var responseStartTimestamp;\n var requestStartTimestamp;\n global.performance\n .getEntries()\n .slice(this._performanceCursor)\n .forEach(function (entry) {\n var startTime = msToSec(entry.startTime);\n var duration = msToSec(entry.duration);\n if (transaction.op === 'navigation' && timeOrigin + startTime < transaction.startTimestamp) {\n return;\n }\n switch (entry.entryType) {\n case 'navigation': {\n addNavigationSpans(transaction, entry, timeOrigin);\n responseStartTimestamp = timeOrigin + msToSec(entry.responseStart);\n requestStartTimestamp = timeOrigin + msToSec(entry.requestStart);\n break;\n }\n case 'mark':\n case 'paint':\n case 'measure': {\n var startTimestamp = addMeasureSpans(transaction, entry, startTime, duration, timeOrigin);\n if (tracingInitMarkStartTime === undefined && entry.name === 'sentry-tracing-init') {\n tracingInitMarkStartTime = startTimestamp;\n }\n // capture web vitals\n var firstHidden = getVisibilityWatcher();\n // Only report if the page wasn't hidden prior to the web vital.\n var shouldRecord = entry.startTime < firstHidden.firstHiddenTime;\n if (entry.name === 'first-paint' && shouldRecord) {\n logger.log('[Measurements] Adding FP');\n _this._measurements['fp'] = { value: entry.startTime };\n _this._measurements['mark.fp'] = { value: startTimestamp };\n }\n if (entry.name === 'first-contentful-paint' && shouldRecord) {\n logger.log('[Measurements] Adding FCP');\n _this._measurements['fcp'] = { value: entry.startTime };\n _this._measurements['mark.fcp'] = { value: startTimestamp };\n }\n break;\n }\n case 'resource': {\n var resourceName = entry.name.replace(global.location.origin, '');\n var endTimestamp = addResourceSpans(transaction, entry, resourceName, startTime, duration, timeOrigin);\n // We remember the entry script end time to calculate the difference to the first init mark\n if (entryScriptStartTimestamp === undefined && (entryScriptSrc || '').indexOf(resourceName) > -1) {\n entryScriptStartTimestamp = endTimestamp;\n }\n break;\n }\n default:\n // Ignore other entry types.\n }\n });\n if (entryScriptStartTimestamp !== undefined && tracingInitMarkStartTime !== undefined) {\n _startChild(transaction, {\n description: 'evaluation',\n endTimestamp: tracingInitMarkStartTime,\n op: 'script',\n startTimestamp: entryScriptStartTimestamp,\n });\n }\n this._performanceCursor = Math.max(performance.getEntries().length - 1, 0);\n this._trackNavigator(transaction);\n // Measurements are only available for pageload transactions\n if (transaction.op === 'pageload') {\n // normalize applicable web vital values to be relative to transaction.startTimestamp\n var timeOrigin_1 = msToSec(browserPerformanceTimeOrigin);\n // Generate TTFB (Time to First Byte), which measured as the time between the beginning of the transaction and the\n // start of the response in milliseconds\n if (typeof responseStartTimestamp === 'number') {\n logger.log('[Measurements] Adding TTFB');\n this._measurements['ttfb'] = { value: (responseStartTimestamp - transaction.startTimestamp) * 1000 };\n if (typeof requestStartTimestamp === 'number' && requestStartTimestamp <= responseStartTimestamp) {\n // Capture the time spent making the request and receiving the first byte of the response.\n // This is the time between the start of the request and the start of the response in milliseconds.\n this._measurements['ttfb.requestTime'] = { value: (responseStartTimestamp - requestStartTimestamp) * 1000 };\n }\n }\n ['fcp', 'fp', 'lcp'].forEach(function (name) {\n if (!_this._measurements[name] || timeOrigin_1 >= transaction.startTimestamp) {\n return;\n }\n // The web vitals, fcp, fp, lcp, and ttfb, all measure relative to timeOrigin.\n // Unfortunately, timeOrigin is not captured within the transaction span data, so these web vitals will need\n // to be adjusted to be relative to transaction.startTimestamp.\n var oldValue = _this._measurements[name].value;\n var measurementTimestamp = timeOrigin_1 + msToSec(oldValue);\n // normalizedValue should be in milliseconds\n var normalizedValue = Math.abs((measurementTimestamp - transaction.startTimestamp) * 1000);\n var delta = normalizedValue - oldValue;\n logger.log(\"[Measurements] Normalized \" + name + \" from \" + oldValue + \" to \" + normalizedValue + \" (\" + delta + \")\");\n _this._measurements[name].value = normalizedValue;\n });\n if (this._measurements['mark.fid'] && this._measurements['fid']) {\n // create span for FID\n _startChild(transaction, {\n description: 'first input delay',\n endTimestamp: this._measurements['mark.fid'].value + msToSec(this._measurements['fid'].value),\n op: 'web.vitals',\n startTimestamp: this._measurements['mark.fid'].value,\n });\n }\n // If FCP is not recorded we should not record the cls value\n // according to the new definition of CLS.\n if (!('fcp' in this._measurements)) {\n delete this._measurements.cls;\n }\n transaction.setMeasurements(this._measurements);\n this._tagMetricInfo(transaction);\n }\n };\n /** Add LCP / CLS data to transaction to allow debugging */\n MetricsInstrumentation.prototype._tagMetricInfo = function (transaction) {\n if (this._lcpEntry) {\n logger.log('[Measurements] Adding LCP Data');\n // Capture Properties of the LCP element that contributes to the LCP.\n if (this._lcpEntry.element) {\n transaction.setTag('lcp.element', htmlTreeAsString(this._lcpEntry.element));\n }\n if (this._lcpEntry.id) {\n transaction.setTag('lcp.id', this._lcpEntry.id);\n }\n if (this._lcpEntry.url) {\n // Trim URL to the first 200 characters.\n transaction.setTag('lcp.url', this._lcpEntry.url.trim().slice(0, 200));\n }\n transaction.setTag('lcp.size', this._lcpEntry.size);\n }\n // See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift\n if (this._clsEntry && this._clsEntry.sources) {\n logger.log('[Measurements] Adding CLS Data');\n this._clsEntry.sources.forEach(function (source, index) {\n return transaction.setTag(\"cls.source.\" + (index + 1), htmlTreeAsString(source.node));\n });\n }\n };\n /** Starts tracking the Cumulative Layout Shift on the current page. */\n MetricsInstrumentation.prototype._trackCLS = function () {\n var _this = this;\n // See:\n // https://web.dev/evolving-cls/\n // https://web.dev/cls-web-tooling/\n getCLS(function (metric) {\n var entry = metric.entries.pop();\n if (!entry) {\n return;\n }\n logger.log('[Measurements] Adding CLS');\n _this._measurements['cls'] = { value: metric.value };\n _this._clsEntry = entry;\n });\n };\n /**\n * Capture the information of the user agent.\n */\n MetricsInstrumentation.prototype._trackNavigator = function (transaction) {\n var navigator = global.navigator;\n if (!navigator) {\n return;\n }\n // track network connectivity\n var connection = navigator.connection;\n if (connection) {\n if (connection.effectiveType) {\n transaction.setTag('effectiveConnectionType', connection.effectiveType);\n }\n if (connection.type) {\n transaction.setTag('connectionType', connection.type);\n }\n if (isMeasurementValue(connection.rtt)) {\n this._measurements['connection.rtt'] = { value: connection.rtt };\n }\n if (isMeasurementValue(connection.downlink)) {\n this._measurements['connection.downlink'] = { value: connection.downlink };\n }\n }\n if (isMeasurementValue(navigator.deviceMemory)) {\n transaction.setTag('deviceMemory', String(navigator.deviceMemory));\n }\n if (isMeasurementValue(navigator.hardwareConcurrency)) {\n transaction.setTag('hardwareConcurrency', String(navigator.hardwareConcurrency));\n }\n };\n /** Starts tracking the Largest Contentful Paint on the current page. */\n MetricsInstrumentation.prototype._trackLCP = function (reportAllChanges) {\n var _this = this;\n getLCP(function (metric) {\n var entry = metric.entries.pop();\n if (!entry) {\n return;\n }\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var startTime = msToSec(entry.startTime);\n logger.log('[Measurements] Adding LCP');\n _this._measurements['lcp'] = { value: metric.value };\n _this._measurements['mark.lcp'] = { value: timeOrigin + startTime };\n _this._lcpEntry = entry;\n }, reportAllChanges);\n };\n /** Starts tracking the First Input Delay on the current page. */\n MetricsInstrumentation.prototype._trackFID = function () {\n var _this = this;\n getFID(function (metric) {\n var entry = metric.entries.pop();\n if (!entry) {\n return;\n }\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var startTime = msToSec(entry.startTime);\n logger.log('[Measurements] Adding FID');\n _this._measurements['fid'] = { value: metric.value };\n _this._measurements['mark.fid'] = { value: timeOrigin + startTime };\n });\n };\n return MetricsInstrumentation;\n}());\nexport { MetricsInstrumentation };\n/** Instrument navigation entries */\nfunction addNavigationSpans(transaction, entry, timeOrigin) {\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'unloadEvent', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'redirect', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'domContentLoadedEvent', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'loadEvent', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'connect', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({\n transaction: transaction,\n entry: entry,\n event: 'secureConnection',\n timeOrigin: timeOrigin,\n eventEnd: 'connectEnd',\n description: 'TLS/SSL',\n });\n addPerformanceNavigationTiming({\n transaction: transaction,\n entry: entry,\n event: 'fetch',\n timeOrigin: timeOrigin,\n eventEnd: 'domainLookupStart',\n description: 'cache',\n });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'domainLookup', timeOrigin: timeOrigin, description: 'DNS' });\n addRequest(transaction, entry, timeOrigin);\n}\n/** Create measure related spans */\nfunction addMeasureSpans(transaction, entry, startTime, duration, timeOrigin) {\n var measureStartTimestamp = timeOrigin + startTime;\n var measureEndTimestamp = measureStartTimestamp + duration;\n _startChild(transaction, {\n description: entry.name,\n endTimestamp: measureEndTimestamp,\n op: entry.entryType,\n startTimestamp: measureStartTimestamp,\n });\n return measureStartTimestamp;\n}\n/** Create resource-related spans */\nexport function addResourceSpans(transaction, entry, resourceName, startTime, duration, timeOrigin) {\n // we already instrument based on fetch and xhr, so we don't need to\n // duplicate spans here.\n if (entry.initiatorType === 'xmlhttprequest' || entry.initiatorType === 'fetch') {\n return undefined;\n }\n var data = {};\n if ('transferSize' in entry) {\n data['Transfer Size'] = entry.transferSize;\n }\n if ('encodedBodySize' in entry) {\n data['Encoded Body Size'] = entry.encodedBodySize;\n }\n if ('decodedBodySize' in entry) {\n data['Decoded Body Size'] = entry.decodedBodySize;\n }\n var startTimestamp = timeOrigin + startTime;\n var endTimestamp = startTimestamp + duration;\n _startChild(transaction, {\n description: resourceName,\n endTimestamp: endTimestamp,\n op: entry.initiatorType ? \"resource.\" + entry.initiatorType : 'resource',\n startTimestamp: startTimestamp,\n data: data,\n });\n return endTimestamp;\n}\n/** Create performance navigation related spans */\nfunction addPerformanceNavigationTiming(props) {\n var transaction = props.transaction, entry = props.entry, event = props.event, timeOrigin = props.timeOrigin, eventEnd = props.eventEnd, description = props.description;\n var end = eventEnd ? entry[eventEnd] : entry[event + \"End\"];\n var start = entry[event + \"Start\"];\n if (!start || !end) {\n return;\n }\n _startChild(transaction, {\n op: 'browser',\n description: (description !== null && description !== void 0 ? description : event),\n startTimestamp: timeOrigin + msToSec(start),\n endTimestamp: timeOrigin + msToSec(end),\n });\n}\n/** Create request and response related spans */\nfunction addRequest(transaction, entry, timeOrigin) {\n _startChild(transaction, {\n op: 'browser',\n description: 'request',\n startTimestamp: timeOrigin + msToSec(entry.requestStart),\n endTimestamp: timeOrigin + msToSec(entry.responseEnd),\n });\n _startChild(transaction, {\n op: 'browser',\n description: 'response',\n startTimestamp: timeOrigin + msToSec(entry.responseStart),\n endTimestamp: timeOrigin + msToSec(entry.responseEnd),\n });\n}\n/**\n * Helper function to start child on transactions. This function will make sure that the transaction will\n * use the start timestamp of the created child span if it is earlier than the transactions actual\n * start timestamp.\n */\nexport function _startChild(transaction, _a) {\n var startTimestamp = _a.startTimestamp, ctx = __rest(_a, [\"startTimestamp\"]);\n if (startTimestamp && transaction.startTimestamp > startTimestamp) {\n transaction.startTimestamp = startTimestamp;\n }\n return transaction.startChild(__assign({ startTimestamp: startTimestamp }, ctx));\n}\n/**\n * Checks if a given value is a valid measurement value.\n */\nfunction isMeasurementValue(value) {\n return typeof value === 'number' && isFinite(value);\n}\n//# sourceMappingURL=metrics.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nexport var getCLS = function (onReport, reportAllChanges) {\n var metric = initMetric('CLS', 0);\n var report;\n var sessionValue = 0;\n var sessionEntries = [];\n var entryHandler = function (entry) {\n // Only count layout shifts without recent user input.\n // TODO: Figure out why entry can be undefined\n if (entry && !entry.hadRecentInput) {\n var firstSessionEntry = sessionEntries[0];\n var lastSessionEntry = sessionEntries[sessionEntries.length - 1];\n // If the entry occurred less than 1 second after the previous entry and\n // less than 5 seconds after the first entry in the session, include the\n // entry in the current session. Otherwise, start a new session.\n if (sessionValue &&\n sessionEntries.length !== 0 &&\n entry.startTime - lastSessionEntry.startTime < 1000 &&\n entry.startTime - firstSessionEntry.startTime < 5000) {\n sessionValue += entry.value;\n sessionEntries.push(entry);\n }\n else {\n sessionValue = entry.value;\n sessionEntries = [entry];\n }\n // If the current session value is larger than the current CLS value,\n // update CLS and the entries contributing to it.\n if (sessionValue > metric.value) {\n metric.value = sessionValue;\n metric.entries = sessionEntries;\n if (report) {\n report();\n }\n }\n }\n };\n var po = observe('layout-shift', entryHandler);\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n onHidden(function () {\n po.takeRecords().map(entryHandler);\n report(true);\n });\n }\n};\n//# sourceMappingURL=getCLS.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nexport var getFID = function (onReport, reportAllChanges) {\n var visibilityWatcher = getVisibilityWatcher();\n var metric = initMetric('FID');\n var report;\n var entryHandler = function (entry) {\n // Only report if the page wasn't hidden prior to the first input.\n if (report && entry.startTime < visibilityWatcher.firstHiddenTime) {\n metric.value = entry.processingStart - entry.startTime;\n metric.entries.push(entry);\n report(true);\n }\n };\n var po = observe('first-input', entryHandler);\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n onHidden(function () {\n po.takeRecords().map(entryHandler);\n po.disconnect();\n }, true);\n }\n};\n//# sourceMappingURL=getFID.js.map","import { __assign, __read, __spread } from \"tslib\";\nimport { addInstrumentationHandler, isInstanceOf, isMatchingPattern } from '@sentry/utils';\nimport { SpanStatus } from '../spanstatus';\nimport { getActiveTransaction, hasTracingEnabled } from '../utils';\nexport var DEFAULT_TRACING_ORIGINS = ['localhost', /^\\//];\nexport var defaultRequestInstrumentationOptions = {\n traceFetch: true,\n traceXHR: true,\n tracingOrigins: DEFAULT_TRACING_ORIGINS,\n};\n/** Registers span creators for xhr and fetch requests */\nexport function instrumentOutgoingRequests(_options) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _a = __assign(__assign({}, defaultRequestInstrumentationOptions), _options), traceFetch = _a.traceFetch, traceXHR = _a.traceXHR, tracingOrigins = _a.tracingOrigins, shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;\n // We should cache url -> decision so that we don't have to compute\n // regexp everytime we create a request.\n var urlMap = {};\n var defaultShouldCreateSpan = function (url) {\n if (urlMap[url]) {\n return urlMap[url];\n }\n var origins = tracingOrigins;\n urlMap[url] =\n origins.some(function (origin) { return isMatchingPattern(url, origin); }) &&\n !isMatchingPattern(url, 'sentry_key');\n return urlMap[url];\n };\n // We want that our users don't have to re-implement shouldCreateSpanForRequest themselves\n // That's why we filter out already unwanted Spans from tracingOrigins\n var shouldCreateSpan = defaultShouldCreateSpan;\n if (typeof shouldCreateSpanForRequest === 'function') {\n shouldCreateSpan = function (url) {\n return defaultShouldCreateSpan(url) && shouldCreateSpanForRequest(url);\n };\n }\n var spans = {};\n if (traceFetch) {\n addInstrumentationHandler({\n callback: function (handlerData) {\n fetchCallback(handlerData, shouldCreateSpan, spans);\n },\n type: 'fetch',\n });\n }\n if (traceXHR) {\n addInstrumentationHandler({\n callback: function (handlerData) {\n xhrCallback(handlerData, shouldCreateSpan, spans);\n },\n type: 'xhr',\n });\n }\n}\n/**\n * Create and track fetch request spans\n */\nexport function fetchCallback(handlerData, shouldCreateSpan, spans) {\n if (!hasTracingEnabled() || !(handlerData.fetchData && shouldCreateSpan(handlerData.fetchData.url))) {\n return;\n }\n if (handlerData.endTimestamp && handlerData.fetchData.__span) {\n var span = spans[handlerData.fetchData.__span];\n if (span) {\n if (handlerData.response) {\n // TODO (kmclb) remove this once types PR goes through\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n span.setHttpStatus(handlerData.response.status);\n }\n else if (handlerData.error) {\n span.setStatus(SpanStatus.InternalError);\n }\n span.finish();\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete spans[handlerData.fetchData.__span];\n }\n return;\n }\n var activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n var span = activeTransaction.startChild({\n data: __assign(__assign({}, handlerData.fetchData), { type: 'fetch' }),\n description: handlerData.fetchData.method + \" \" + handlerData.fetchData.url,\n op: 'http.client',\n });\n handlerData.fetchData.__span = span.spanId;\n spans[span.spanId] = span;\n var request = (handlerData.args[0] = handlerData.args[0]);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var options = (handlerData.args[1] = handlerData.args[1] || {});\n var headers = options.headers;\n if (isInstanceOf(request, Request)) {\n headers = request.headers;\n }\n if (headers) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (typeof headers.append === 'function') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n headers.append('sentry-trace', span.toTraceparent());\n }\n else if (Array.isArray(headers)) {\n headers = __spread(headers, [['sentry-trace', span.toTraceparent()]]);\n }\n else {\n headers = __assign(__assign({}, headers), { 'sentry-trace': span.toTraceparent() });\n }\n }\n else {\n headers = { 'sentry-trace': span.toTraceparent() };\n }\n options.headers = headers;\n }\n}\n/**\n * Create and track xhr request spans\n */\nexport function xhrCallback(handlerData, shouldCreateSpan, spans) {\n var _a, _b;\n if (!hasTracingEnabled() || ((_a = handlerData.xhr) === null || _a === void 0 ? void 0 : _a.__sentry_own_request__) ||\n !(((_b = handlerData.xhr) === null || _b === void 0 ? void 0 : _b.__sentry_xhr__) && shouldCreateSpan(handlerData.xhr.__sentry_xhr__.url))) {\n return;\n }\n var xhr = handlerData.xhr.__sentry_xhr__;\n // check first if the request has finished and is tracked by an existing span which should now end\n if (handlerData.endTimestamp && handlerData.xhr.__sentry_xhr_span_id__) {\n var span = spans[handlerData.xhr.__sentry_xhr_span_id__];\n if (span) {\n span.setHttpStatus(xhr.status_code);\n span.finish();\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete spans[handlerData.xhr.__sentry_xhr_span_id__];\n }\n return;\n }\n // if not, create a new span to track it\n var activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n var span = activeTransaction.startChild({\n data: __assign(__assign({}, xhr.data), { type: 'xhr', method: xhr.method, url: xhr.url }),\n description: xhr.method + \" \" + xhr.url,\n op: 'http.client',\n });\n handlerData.xhr.__sentry_xhr_span_id__ = span.spanId;\n spans[handlerData.xhr.__sentry_xhr_span_id__] = span;\n if (handlerData.xhr.setRequestHeader) {\n try {\n handlerData.xhr.setRequestHeader('sentry-trace', span.toTraceparent());\n }\n catch (_) {\n // Error: InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.\n }\n }\n }\n}\n//# sourceMappingURL=request.js.map","import { addInstrumentationHandler, getGlobalObject, logger } from '@sentry/utils';\nvar global = getGlobalObject();\n/**\n * Default function implementing pageload and navigation transactions\n */\nexport function instrumentRoutingWithDefaults(customStartTransaction, startTransactionOnPageLoad, startTransactionOnLocationChange) {\n if (startTransactionOnPageLoad === void 0) { startTransactionOnPageLoad = true; }\n if (startTransactionOnLocationChange === void 0) { startTransactionOnLocationChange = true; }\n if (!global || !global.location) {\n logger.warn('Could not initialize routing instrumentation due to invalid location');\n return;\n }\n var startingUrl = global.location.href;\n var activeTransaction;\n if (startTransactionOnPageLoad) {\n activeTransaction = customStartTransaction({ name: global.location.pathname, op: 'pageload' });\n }\n if (startTransactionOnLocationChange) {\n addInstrumentationHandler({\n callback: function (_a) {\n var to = _a.to, from = _a.from;\n /**\n * This early return is there to account for some cases where a navigation transaction starts right after\n * long-running pageload. We make sure that if `from` is undefined and a valid `startingURL` exists, we don't\n * create an uneccessary navigation transaction.\n *\n * This was hard to duplicate, but this behavior stopped as soon as this fix was applied. This issue might also\n * only be caused in certain development environments where the usage of a hot module reloader is causing\n * errors.\n */\n if (from === undefined && startingUrl && startingUrl.indexOf(to) !== -1) {\n startingUrl = undefined;\n return;\n }\n if (from !== to) {\n startingUrl = undefined;\n if (activeTransaction) {\n logger.log(\"[Tracing] Finishing current transaction with op: \" + activeTransaction.op);\n // If there's an open transaction on the scope, we need to finish it before creating an new one.\n activeTransaction.finish();\n }\n activeTransaction = customStartTransaction({ name: global.location.pathname, op: 'navigation' });\n }\n },\n type: 'history',\n });\n }\n}\n//# sourceMappingURL=router.js.map","import { __assign } from \"tslib\";\nimport { getGlobalObject, logger } from '@sentry/utils';\nimport { startIdleTransaction } from '../hubextensions';\nimport { DEFAULT_IDLE_TIMEOUT } from '../idletransaction';\nimport { SpanStatus } from '../spanstatus';\nimport { extractTraceparentData, secToMs } from '../utils';\nimport { registerBackgroundTabDetection } from './backgroundtab';\nimport { DEFAULT_METRICS_INSTR_OPTIONS, MetricsInstrumentation } from './metrics';\nimport { defaultRequestInstrumentationOptions, instrumentOutgoingRequests, } from './request';\nimport { instrumentRoutingWithDefaults } from './router';\nexport var DEFAULT_MAX_TRANSACTION_DURATION_SECONDS = 600;\nvar DEFAULT_BROWSER_TRACING_OPTIONS = __assign({ idleTimeout: DEFAULT_IDLE_TIMEOUT, markBackgroundTransactions: true, maxTransactionDuration: DEFAULT_MAX_TRANSACTION_DURATION_SECONDS, routingInstrumentation: instrumentRoutingWithDefaults, startTransactionOnLocationChange: true, startTransactionOnPageLoad: true }, defaultRequestInstrumentationOptions);\n/**\n * The Browser Tracing integration automatically instruments browser pageload/navigation\n * actions as transactions, and captures requests, metrics and errors as spans.\n *\n * The integration can be configured with a variety of options, and can be extended to use\n * any routing library. This integration uses {@see IdleTransaction} to create transactions.\n */\nvar BrowserTracing = /** @class */ (function () {\n function BrowserTracing(_options) {\n /**\n * @inheritDoc\n */\n this.name = BrowserTracing.id;\n this._emitOptionsWarning = false;\n var tracingOrigins = defaultRequestInstrumentationOptions.tracingOrigins;\n // NOTE: Logger doesn't work in constructors, as it's initialized after integrations instances\n if (_options &&\n _options.tracingOrigins &&\n Array.isArray(_options.tracingOrigins) &&\n _options.tracingOrigins.length !== 0) {\n tracingOrigins = _options.tracingOrigins;\n }\n else {\n this._emitOptionsWarning = true;\n }\n this.options = __assign(__assign(__assign({}, DEFAULT_BROWSER_TRACING_OPTIONS), _options), { tracingOrigins: tracingOrigins });\n this._metrics = new MetricsInstrumentation(__assign(__assign({}, DEFAULT_METRICS_INSTR_OPTIONS), this.options._metricOptions));\n }\n /**\n * @inheritDoc\n */\n BrowserTracing.prototype.setupOnce = function (_, getCurrentHub) {\n var _this = this;\n this._getCurrentHub = getCurrentHub;\n if (this._emitOptionsWarning) {\n logger.warn('[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');\n logger.warn(\"[Tracing] We added a reasonable default for you: \" + defaultRequestInstrumentationOptions.tracingOrigins);\n }\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _a = this.options, instrumentRouting = _a.routingInstrumentation, startTransactionOnLocationChange = _a.startTransactionOnLocationChange, startTransactionOnPageLoad = _a.startTransactionOnPageLoad, markBackgroundTransactions = _a.markBackgroundTransactions, traceFetch = _a.traceFetch, traceXHR = _a.traceXHR, tracingOrigins = _a.tracingOrigins, shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;\n instrumentRouting(function (context) { return _this._createRouteTransaction(context); }, startTransactionOnPageLoad, startTransactionOnLocationChange);\n if (markBackgroundTransactions) {\n registerBackgroundTabDetection();\n }\n instrumentOutgoingRequests({ traceFetch: traceFetch, traceXHR: traceXHR, tracingOrigins: tracingOrigins, shouldCreateSpanForRequest: shouldCreateSpanForRequest });\n };\n /** Create routing idle transaction. */\n BrowserTracing.prototype._createRouteTransaction = function (context) {\n var _this = this;\n if (!this._getCurrentHub) {\n logger.warn(\"[Tracing] Did not create \" + context.op + \" transaction because _getCurrentHub is invalid.\");\n return undefined;\n }\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _a = this.options, beforeNavigate = _a.beforeNavigate, idleTimeout = _a.idleTimeout, maxTransactionDuration = _a.maxTransactionDuration;\n var parentContextFromHeader = context.op === 'pageload' ? getHeaderContext() : undefined;\n var expandedContext = __assign(__assign(__assign({}, context), parentContextFromHeader), { trimEnd: true });\n var modifiedContext = typeof beforeNavigate === 'function' ? beforeNavigate(expandedContext) : expandedContext;\n // For backwards compatibility reasons, beforeNavigate can return undefined to \"drop\" the transaction (prevent it\n // from being sent to Sentry).\n var finalContext = modifiedContext === undefined ? __assign(__assign({}, expandedContext), { sampled: false }) : modifiedContext;\n if (finalContext.sampled === false) {\n logger.log(\"[Tracing] Will not send \" + finalContext.op + \" transaction because of beforeNavigate.\");\n }\n logger.log(\"[Tracing] Starting \" + finalContext.op + \" transaction on scope\");\n var hub = this._getCurrentHub();\n var location = getGlobalObject().location;\n var idleTransaction = startIdleTransaction(hub, finalContext, idleTimeout, true, { location: location });\n idleTransaction.registerBeforeFinishCallback(function (transaction, endTimestamp) {\n _this._metrics.addPerformanceEntries(transaction);\n adjustTransactionDuration(secToMs(maxTransactionDuration), transaction, endTimestamp);\n });\n return idleTransaction;\n };\n /**\n * @inheritDoc\n */\n BrowserTracing.id = 'BrowserTracing';\n return BrowserTracing;\n}());\nexport { BrowserTracing };\n/**\n * Gets transaction context from a sentry-trace meta.\n *\n * @returns Transaction context data from the header or undefined if there's no header or the header is malformed\n */\nexport function getHeaderContext() {\n var header = getMetaContent('sentry-trace');\n if (header) {\n return extractTraceparentData(header);\n }\n return undefined;\n}\n/** Returns the value of a meta tag */\nexport function getMetaContent(metaName) {\n var el = getGlobalObject().document.querySelector(\"meta[name=\" + metaName + \"]\");\n return el ? el.getAttribute('content') : null;\n}\n/** Adjusts transaction value based on max transaction duration */\nfunction adjustTransactionDuration(maxDuration, transaction, endTimestamp) {\n var diff = endTimestamp - transaction.startTimestamp;\n var isOutdatedTransaction = endTimestamp && (diff > maxDuration || diff < 0);\n if (isOutdatedTransaction) {\n transaction.setStatus(SpanStatus.DeadlineExceeded);\n transaction.setTag('maxTransactionDurationExceeded', 'true');\n }\n}\n//# sourceMappingURL=browsertracing.js.map","import { __read, __spread } from \"tslib\";\nimport { logger } from '@sentry/utils';\n/**\n * Express integration\n *\n * Provides an request and error handler for Express framework as well as tracing capabilities\n */\nvar Express = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Express(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Express.id;\n this._router = options.router || options.app;\n this._methods = (Array.isArray(options.methods) ? options.methods : []).concat('use');\n }\n /**\n * @inheritDoc\n */\n Express.prototype.setupOnce = function () {\n if (!this._router) {\n logger.error('ExpressIntegration is missing an Express instance');\n return;\n }\n instrumentMiddlewares(this._router, this._methods);\n };\n /**\n * @inheritDoc\n */\n Express.id = 'Express';\n return Express;\n}());\nexport { Express };\n/**\n * Wraps original middleware function in a tracing call, which stores the info about the call as a span,\n * and finishes it once the middleware is done invoking.\n *\n * Express middlewares have 3 various forms, thus we have to take care of all of them:\n * // sync\n * app.use(function (req, res) { ... })\n * // async\n * app.use(function (req, res, next) { ... })\n * // error handler\n * app.use(function (err, req, res, next) { ... })\n *\n * They all internally delegate to the `router[method]` of the given application instance.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any\nfunction wrap(fn, method) {\n var arity = fn.length;\n switch (arity) {\n case 2: {\n return function (req, res) {\n var transaction = res.__sentry_transaction;\n if (transaction) {\n var span_1 = transaction.startChild({\n description: fn.name,\n op: \"middleware.\" + method,\n });\n res.once('finish', function () {\n span_1.finish();\n });\n }\n return fn.call(this, req, res);\n };\n }\n case 3: {\n return function (req, res, next) {\n var _a;\n var transaction = res.__sentry_transaction;\n var span = (_a = transaction) === null || _a === void 0 ? void 0 : _a.startChild({\n description: fn.name,\n op: \"middleware.\" + method,\n });\n fn.call(this, req, res, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n next.call.apply(next, __spread([this], args));\n });\n };\n }\n case 4: {\n return function (err, req, res, next) {\n var _a;\n var transaction = res.__sentry_transaction;\n var span = (_a = transaction) === null || _a === void 0 ? void 0 : _a.startChild({\n description: fn.name,\n op: \"middleware.\" + method,\n });\n fn.call(this, err, req, res, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n next.call.apply(next, __spread([this], args));\n });\n };\n }\n default: {\n throw new Error(\"Express middleware takes 2-4 arguments. Got: \" + arity);\n }\n }\n}\n/**\n * Takes all the function arguments passed to the original `app` or `router` method, eg. `app.use` or `router.use`\n * and wraps every function, as well as array of functions with a call to our `wrap` method.\n * We have to take care of the arrays as well as iterate over all of the arguments,\n * as `app.use` can accept middlewares in few various forms.\n *\n * app.use([], )\n * app.use([], , ...)\n * app.use([], ...[])\n */\nfunction wrapMiddlewareArgs(args, method) {\n return args.map(function (arg) {\n if (typeof arg === 'function') {\n return wrap(arg, method);\n }\n if (Array.isArray(arg)) {\n return arg.map(function (a) {\n if (typeof a === 'function') {\n return wrap(a, method);\n }\n return a;\n });\n }\n return arg;\n });\n}\n/**\n * Patches original router to utilize our tracing functionality\n */\nfunction patchMiddleware(router, method) {\n var originalCallback = router[method];\n router[method] = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return originalCallback.call.apply(originalCallback, __spread([this], wrapMiddlewareArgs(args, method)));\n };\n return router;\n}\n/**\n * Patches original router methods\n */\nfunction instrumentMiddlewares(router, methods) {\n if (methods === void 0) { methods = []; }\n methods.forEach(function (method) { return patchMiddleware(router, method); });\n}\n//# sourceMappingURL=express.js.map","import { fill, isThenable, loadModule, logger } from '@sentry/utils';\n/** Tracing integration for node-postgres package */\nvar Postgres = /** @class */ (function () {\n function Postgres(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Postgres.id;\n this._usePgNative = !!options.usePgNative;\n }\n /**\n * @inheritDoc\n */\n Postgres.prototype.setupOnce = function (_, getCurrentHub) {\n var _a;\n var pkg = loadModule('pg');\n if (!pkg) {\n logger.error('Postgres Integration was unable to require `pg` package.');\n return;\n }\n if (this._usePgNative && !((_a = pkg.native) === null || _a === void 0 ? void 0 : _a.Client)) {\n logger.error(\"Postgres Integration was unable to access 'pg-native' bindings.\");\n return;\n }\n var Client = (this._usePgNative ? pkg.native : pkg).Client;\n /**\n * function (query, callback) => void\n * function (query, params, callback) => void\n * function (query) => Promise\n * function (query, params) => Promise\n * function (pg.Cursor) => pg.Cursor\n */\n fill(Client.prototype, 'query', function (orig) {\n return function (config, values, callback) {\n var _a, _b, _c;\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();\n var span = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild({\n description: typeof config === 'string' ? config : config.text,\n op: \"db\",\n });\n if (typeof callback === 'function') {\n return orig.call(this, config, values, function (err, result) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n callback(err, result);\n });\n }\n if (typeof values === 'function') {\n return orig.call(this, config, function (err, result) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n values(err, result);\n });\n }\n var rv = typeof values !== 'undefined' ? orig.call(this, config, values) : orig.call(this, config);\n if (isThenable(rv)) {\n return rv.then(function (res) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n return res;\n });\n }\n (_c = span) === null || _c === void 0 ? void 0 : _c.finish();\n return rv;\n };\n });\n };\n /**\n * @inheritDoc\n */\n Postgres.id = 'Postgres';\n return Postgres;\n}());\nexport { Postgres };\n//# sourceMappingURL=postgres.js.map","import { fill, loadModule, logger } from '@sentry/utils';\n/** Tracing integration for node-mysql package */\nvar Mysql = /** @class */ (function () {\n function Mysql() {\n /**\n * @inheritDoc\n */\n this.name = Mysql.id;\n }\n /**\n * @inheritDoc\n */\n Mysql.prototype.setupOnce = function (_, getCurrentHub) {\n var pkg = loadModule('mysql/lib/Connection.js');\n if (!pkg) {\n logger.error('Mysql Integration was unable to require `mysql` package.');\n return;\n }\n // The original function will have one of these signatures:\n // function (callback) => void\n // function (options, callback) => void\n // function (options, values, callback) => void\n fill(pkg, 'createQuery', function (orig) {\n return function (options, values, callback) {\n var _a, _b;\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();\n var span = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild({\n description: typeof options === 'string' ? options : options.sql,\n op: \"db\",\n });\n if (typeof callback === 'function') {\n return orig.call(this, options, values, function (err, result, fields) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n callback(err, result, fields);\n });\n }\n if (typeof values === 'function') {\n return orig.call(this, options, function (err, result, fields) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n values(err, result, fields);\n });\n }\n return orig.call(this, options, values, callback);\n };\n });\n };\n /**\n * @inheritDoc\n */\n Mysql.id = 'Mysql';\n return Mysql;\n}());\nexport { Mysql };\n//# sourceMappingURL=mysql.js.map","import { __read, __spread } from \"tslib\";\nimport { fill, isThenable, loadModule, logger } from '@sentry/utils';\nvar OPERATIONS = [\n 'aggregate',\n 'bulkWrite',\n 'countDocuments',\n 'createIndex',\n 'createIndexes',\n 'deleteMany',\n 'deleteOne',\n 'distinct',\n 'drop',\n 'dropIndex',\n 'dropIndexes',\n 'estimatedDocumentCount',\n 'find',\n 'findOne',\n 'findOneAndDelete',\n 'findOneAndReplace',\n 'findOneAndUpdate',\n 'indexes',\n 'indexExists',\n 'indexInformation',\n 'initializeOrderedBulkOp',\n 'insertMany',\n 'insertOne',\n 'isCapped',\n 'mapReduce',\n 'options',\n 'parallelCollectionScan',\n 'rename',\n 'replaceOne',\n 'stats',\n 'updateMany',\n 'updateOne',\n];\n// All of the operations above take `options` and `callback` as their final parameters, but some of them\n// take additional parameters as well. For those operations, this is a map of\n// { : [] }, as a way to know what to call the operation's\n// positional arguments when we add them to the span's `data` object later\nvar OPERATION_SIGNATURES = {\n // aggregate intentionally not included because `pipeline` arguments are too complex to serialize well\n // see https://github.com/getsentry/sentry-javascript/pull/3102\n bulkWrite: ['operations'],\n countDocuments: ['query'],\n createIndex: ['fieldOrSpec'],\n createIndexes: ['indexSpecs'],\n deleteMany: ['filter'],\n deleteOne: ['filter'],\n distinct: ['key', 'query'],\n dropIndex: ['indexName'],\n find: ['query'],\n findOne: ['query'],\n findOneAndDelete: ['filter'],\n findOneAndReplace: ['filter', 'replacement'],\n findOneAndUpdate: ['filter', 'update'],\n indexExists: ['indexes'],\n insertMany: ['docs'],\n insertOne: ['doc'],\n mapReduce: ['map', 'reduce'],\n rename: ['newName'],\n replaceOne: ['filter', 'doc'],\n updateMany: ['filter', 'update'],\n updateOne: ['filter', 'update'],\n};\n/** Tracing integration for mongo package */\nvar Mongo = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Mongo(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Mongo.id;\n this._operations = Array.isArray(options.operations)\n ? options.operations\n : OPERATIONS;\n this._describeOperations = 'describeOperations' in options ? options.describeOperations : true;\n this._useMongoose = !!options.useMongoose;\n }\n /**\n * @inheritDoc\n */\n Mongo.prototype.setupOnce = function (_, getCurrentHub) {\n var moduleName = this._useMongoose ? 'mongoose' : 'mongodb';\n var pkg = loadModule(moduleName);\n if (!pkg) {\n logger.error(\"Mongo Integration was unable to require `\" + moduleName + \"` package.\");\n return;\n }\n this._instrumentOperations(pkg.Collection, this._operations, getCurrentHub);\n };\n /**\n * Patches original collection methods\n */\n Mongo.prototype._instrumentOperations = function (collection, operations, getCurrentHub) {\n var _this = this;\n operations.forEach(function (operation) { return _this._patchOperation(collection, operation, getCurrentHub); });\n };\n /**\n * Patches original collection to utilize our tracing functionality\n */\n Mongo.prototype._patchOperation = function (collection, operation, getCurrentHub) {\n if (!(operation in collection.prototype))\n return;\n var getSpanContext = this._getSpanContextFromOperationArguments.bind(this);\n fill(collection.prototype, operation, function (orig) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _a, _b, _c, _d;\n var lastArg = args[args.length - 1];\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();\n // Check if the operation was passed a callback. (mapReduce requires a different check, as\n // its (non-callback) arguments can also be functions.)\n if (typeof lastArg !== 'function' || (operation === 'mapReduce' && args.length === 2)) {\n var span_1 = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild(getSpanContext(this, operation, args));\n var maybePromise = orig.call.apply(orig, __spread([this], args));\n if (isThenable(maybePromise)) {\n return maybePromise.then(function (res) {\n var _a;\n (_a = span_1) === null || _a === void 0 ? void 0 : _a.finish();\n return res;\n });\n }\n else {\n (_c = span_1) === null || _c === void 0 ? void 0 : _c.finish();\n return maybePromise;\n }\n }\n var span = (_d = parentSpan) === null || _d === void 0 ? void 0 : _d.startChild(getSpanContext(this, operation, args.slice(0, -1)));\n return orig.call.apply(orig, __spread([this], args.slice(0, -1), [function (err, result) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n lastArg(err, result);\n }]));\n };\n });\n };\n /**\n * Form a SpanContext based on the user input to a given operation.\n */\n Mongo.prototype._getSpanContextFromOperationArguments = function (collection, operation, args) {\n var data = {\n collectionName: collection.collectionName,\n dbName: collection.dbName,\n namespace: collection.namespace,\n };\n var spanContext = {\n op: \"db\",\n description: operation,\n data: data,\n };\n // If the operation takes no arguments besides `options` and `callback`, or if argument\n // collection is disabled for this operation, just return early.\n var signature = OPERATION_SIGNATURES[operation];\n var shouldDescribe = Array.isArray(this._describeOperations)\n ? this._describeOperations.includes(operation)\n : this._describeOperations;\n if (!signature || !shouldDescribe) {\n return spanContext;\n }\n try {\n // Special case for `mapReduce`, as the only one accepting functions as arguments.\n if (operation === 'mapReduce') {\n var _a = __read(args, 2), map = _a[0], reduce = _a[1];\n data[signature[0]] = typeof map === 'string' ? map : map.name || '';\n data[signature[1]] = typeof reduce === 'string' ? reduce : reduce.name || '';\n }\n else {\n for (var i = 0; i < signature.length; i++) {\n data[signature[i]] = JSON.stringify(args[i]);\n }\n }\n }\n catch (_oO) {\n // no-empty\n }\n return spanContext;\n };\n /**\n * @inheritDoc\n */\n Mongo.id = 'Mongo';\n return Mongo;\n}());\nexport { Mongo };\n//# sourceMappingURL=mongo.js.map","import { __assign } from \"tslib\";\nimport { BrowserTracing } from './browser';\nimport { addExtensionMethods } from './hubextensions';\nimport * as TracingIntegrations from './integrations';\nvar Integrations = __assign(__assign({}, TracingIntegrations), { BrowserTracing: BrowserTracing });\nexport { Integrations };\nexport { Span } from './span';\nexport { Transaction } from './transaction';\nexport { \n// TODO deprecate old name in v7\ninstrumentOutgoingRequests as registerRequestInstrumentation, defaultRequestInstrumentationOptions, } from './browser';\nexport { SpanStatus } from './spanstatus';\nexport { IdleTransaction } from './idletransaction';\nexport { startIdleTransaction } from './hubextensions';\n// We are patching the global object with our hub extension methods\naddExtensionMethods();\nexport { addExtensionMethods };\nexport { extractTraceparentData, getActiveTransaction, hasTracingEnabled, stripUrlQueryAndFragment, TRACEPARENT_REGEXP, } from './utils';\n//# sourceMappingURL=index.js.map","import { __assign } from \"tslib\";\n/* eslint-disable max-lines */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { captureException, getCurrentHub, startTransaction, withScope } from '@sentry/core';\nimport { extractTraceparentData } from '@sentry/tracing';\nimport { RequestSessionStatus } from '@sentry/types';\nimport { isPlainObject, isString, logger, normalize, stripUrlQueryAndFragment } from '@sentry/utils';\nimport * as cookie from 'cookie';\nimport * as domain from 'domain';\nimport * as os from 'os';\nimport * as url from 'url';\nimport { flush, isAutoSessionTrackingEnabled } from './sdk';\n/**\n * Express-compatible tracing handler.\n * @see Exposed as `Handlers.tracingHandler`\n */\nexport function tracingHandler() {\n return function sentryTracingMiddleware(req, res, next) {\n // If there is a trace header set, we extract the data from it (parentSpanId, traceId, and sampling decision)\n var traceparentData;\n if (req.headers && isString(req.headers['sentry-trace'])) {\n traceparentData = extractTraceparentData(req.headers['sentry-trace']);\n }\n var transaction = startTransaction(__assign({ name: extractExpressTransactionName(req, { path: true, method: true }), op: 'http.server' }, traceparentData), \n // extra context passed to the tracesSampler\n { request: extractRequestData(req) });\n // We put the transaction on the scope so users can attach children to it\n getCurrentHub().configureScope(function (scope) {\n scope.setSpan(transaction);\n });\n // We also set __sentry_transaction on the response so people can grab the transaction there to add\n // spans to it later.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n res.__sentry_transaction = transaction;\n res.once('finish', function () {\n // Push `transaction.finish` to the next event loop so open spans have a chance to finish before the transaction\n // closes\n setImmediate(function () {\n addExpressReqToTransaction(transaction, req);\n transaction.setHttpStatus(res.statusCode);\n transaction.finish();\n });\n });\n next();\n };\n}\n/**\n * Set parameterized as transaction name e.g.: `GET /users/:id`\n * Also adds more context data on the transaction from the request\n */\nfunction addExpressReqToTransaction(transaction, req) {\n if (!transaction)\n return;\n transaction.name = extractExpressTransactionName(req, { path: true, method: true });\n transaction.setData('url', req.originalUrl);\n transaction.setData('baseUrl', req.baseUrl);\n transaction.setData('query', req.query);\n}\n/**\n * Extracts complete generalized path from the request object and uses it to construct transaction name.\n *\n * eg. GET /mountpoint/user/:id\n *\n * @param req The ExpressRequest object\n * @param options What to include in the transaction name (method, path, or both)\n *\n * @returns The fully constructed transaction name\n */\nfunction extractExpressTransactionName(req, options) {\n if (options === void 0) { options = {}; }\n var _a;\n var method = (_a = req.method) === null || _a === void 0 ? void 0 : _a.toUpperCase();\n var path = '';\n if (req.route) {\n path = \"\" + (req.baseUrl || '') + req.route.path;\n }\n else if (req.originalUrl || req.url) {\n path = stripUrlQueryAndFragment(req.originalUrl || req.url || '');\n }\n var info = '';\n if (options.method && method) {\n info += method;\n }\n if (options.method && options.path) {\n info += \" \";\n }\n if (options.path && path) {\n info += path;\n }\n return info;\n}\n/** JSDoc */\nfunction extractTransaction(req, type) {\n var _a;\n switch (type) {\n case 'path': {\n return extractExpressTransactionName(req, { path: true });\n }\n case 'handler': {\n return ((_a = req.route) === null || _a === void 0 ? void 0 : _a.stack[0].name) || '';\n }\n case 'methodPath':\n default: {\n return extractExpressTransactionName(req, { path: true, method: true });\n }\n }\n}\n/** Default user keys that'll be used to extract data from the request */\nvar DEFAULT_USER_KEYS = ['id', 'username', 'email'];\n/** JSDoc */\nfunction extractUserData(user, keys) {\n var extractedUser = {};\n var attributes = Array.isArray(keys) ? keys : DEFAULT_USER_KEYS;\n attributes.forEach(function (key) {\n if (user && key in user) {\n extractedUser[key] = user[key];\n }\n });\n return extractedUser;\n}\n/** Default request keys that'll be used to extract data from the request */\nvar DEFAULT_REQUEST_KEYS = ['cookies', 'data', 'headers', 'method', 'query_string', 'url'];\n/**\n * Normalizes data from the request object, accounting for framework differences.\n *\n * @param req The request object from which to extract data\n * @param keys An optional array of keys to include in the normalized data. Defaults to DEFAULT_REQUEST_KEYS if not\n * provided.\n * @returns An object containing normalized request data\n */\nexport function extractRequestData(req, keys) {\n if (keys === void 0) { keys = DEFAULT_REQUEST_KEYS; }\n var requestData = {};\n // headers:\n // node, express, nextjs: req.headers\n // koa: req.header\n var headers = (req.headers || req.header || {});\n // method:\n // node, express, koa, nextjs: req.method\n var method = req.method;\n // host:\n // express: req.hostname in > 4 and req.host in < 4\n // koa: req.host\n // node, nextjs: req.headers.host\n var host = req.hostname || req.host || headers.host || '';\n // protocol:\n // node, nextjs: \n // express, koa: req.protocol\n var protocol = req.protocol === 'https' || req.secure || (req.socket || {}).encrypted\n ? 'https'\n : 'http';\n // url (including path and query string):\n // node, express: req.originalUrl\n // koa, nextjs: req.url\n var originalUrl = (req.originalUrl || req.url || '');\n // absolute url\n var absoluteUrl = protocol + \"://\" + host + originalUrl;\n keys.forEach(function (key) {\n switch (key) {\n case 'headers':\n requestData.headers = headers;\n break;\n case 'method':\n requestData.method = method;\n break;\n case 'url':\n requestData.url = absoluteUrl;\n break;\n case 'cookies':\n // cookies:\n // node, express, koa: req.headers.cookie\n // vercel, sails.js, express (w/ cookie middleware), nextjs: req.cookies\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.cookies = req.cookies || cookie.parse(headers.cookie || '');\n break;\n case 'query_string':\n // query string:\n // node: req.url (raw)\n // express, koa, nextjs: req.query\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.query_string = req.query || url.parse(originalUrl || '', false).query;\n break;\n case 'data':\n if (method === 'GET' || method === 'HEAD') {\n break;\n }\n // body data:\n // express, koa, nextjs: req.body\n //\n // when using node by itself, you have to read the incoming stream(see\n // https://nodejs.dev/learn/get-http-request-body-data-using-nodejs); if a user is doing that, we can't know\n // where they're going to store the final result, so they'll have to capture this data themselves\n if (req.body !== undefined) {\n requestData.data = isString(req.body) ? req.body : JSON.stringify(normalize(req.body));\n }\n break;\n default:\n if ({}.hasOwnProperty.call(req, key)) {\n requestData[key] = req[key];\n }\n }\n });\n return requestData;\n}\n/**\n * Enriches passed event with request data.\n *\n * @param event Will be mutated and enriched with req data\n * @param req Request object\n * @param options object containing flags to enable functionality\n * @hidden\n */\nexport function parseRequest(event, req, options) {\n // eslint-disable-next-line no-param-reassign\n options = __assign({ ip: false, request: true, serverName: true, transaction: true, user: true, version: true }, options);\n if (options.version) {\n event.contexts = __assign(__assign({}, event.contexts), { runtime: {\n name: 'node',\n version: global.process.version,\n } });\n }\n if (options.request) {\n // if the option value is `true`, use the default set of keys by not passing anything to `extractRequestData()`\n var extractedRequestData = Array.isArray(options.request)\n ? extractRequestData(req, options.request)\n : extractRequestData(req);\n event.request = __assign(__assign({}, event.request), extractedRequestData);\n }\n if (options.serverName && !event.server_name) {\n event.server_name = global.process.env.SENTRY_NAME || os.hostname();\n }\n if (options.user) {\n var extractedUser = req.user && isPlainObject(req.user) ? extractUserData(req.user, options.user) : {};\n if (Object.keys(extractedUser)) {\n event.user = __assign(__assign({}, event.user), extractedUser);\n }\n }\n // client ip:\n // node, nextjs: req.connection.remoteAddress\n // express, koa: req.ip\n if (options.ip) {\n var ip = req.ip || (req.connection && req.connection.remoteAddress);\n if (ip) {\n event.user = __assign(__assign({}, event.user), { ip_address: ip });\n }\n }\n if (options.transaction && !event.transaction) {\n // TODO do we even need this anymore?\n // TODO make this work for nextjs\n event.transaction = extractTransaction(req, options.transaction);\n }\n return event;\n}\n/**\n * Express compatible request handler.\n * @see Exposed as `Handlers.requestHandler`\n */\nexport function requestHandler(options) {\n var currentHub = getCurrentHub();\n var client = currentHub.getClient();\n // Initialise an instance of SessionFlusher on the client when `autoSessionTracking` is enabled and the\n // `requestHandler` middleware is used indicating that we are running in SessionAggregates mode\n if (client && isAutoSessionTrackingEnabled(client)) {\n client.initSessionFlusher();\n // If Scope contains a Single mode Session, it is removed in favor of using Session Aggregates mode\n var scope = currentHub.getScope();\n if (scope && scope.getSession()) {\n scope.setSession();\n }\n }\n return function sentryRequestMiddleware(req, res, next) {\n if (options && options.flushTimeout && options.flushTimeout > 0) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _end_1 = res.end;\n res.end = function (chunk, encoding, cb) {\n var _this = this;\n void flush(options.flushTimeout)\n .then(function () {\n _end_1.call(_this, chunk, encoding, cb);\n })\n .then(null, function (e) {\n logger.error(e);\n });\n };\n }\n var local = domain.create();\n local.add(req);\n local.add(res);\n local.on('error', next);\n local.run(function () {\n var currentHub = getCurrentHub();\n currentHub.configureScope(function (scope) {\n scope.addEventProcessor(function (event) { return parseRequest(event, req, options); });\n var client = currentHub.getClient();\n if (isAutoSessionTrackingEnabled(client)) {\n var scope_1 = currentHub.getScope();\n if (scope_1) {\n // Set `status` of `RequestSession` to Ok, at the beginning of the request\n scope_1.setRequestSession({ status: RequestSessionStatus.Ok });\n }\n }\n });\n res.once('finish', function () {\n var client = currentHub.getClient();\n if (isAutoSessionTrackingEnabled(client)) {\n setImmediate(function () {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (client && client._captureRequestSession) {\n // Calling _captureRequestSession to capture request session at the end of the request by incrementing\n // the correct SessionAggregates bucket i.e. crashed, errored or exited\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n client._captureRequestSession();\n }\n });\n }\n });\n next();\n });\n };\n}\n/** JSDoc */\nfunction getStatusCodeFromResponse(error) {\n var statusCode = error.status || error.statusCode || error.status_code || (error.output && error.output.statusCode);\n return statusCode ? parseInt(statusCode, 10) : 500;\n}\n/** Returns true if response code is internal server error */\nfunction defaultShouldHandleError(error) {\n var status = getStatusCodeFromResponse(error);\n return status >= 500;\n}\n/**\n * Express compatible error handler.\n * @see Exposed as `Handlers.errorHandler`\n */\nexport function errorHandler(options) {\n return function sentryErrorMiddleware(error, _req, res, next) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var shouldHandleError = (options && options.shouldHandleError) || defaultShouldHandleError;\n if (shouldHandleError(error)) {\n withScope(function (_scope) {\n // For some reason we need to set the transaction on the scope again\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var transaction = res.__sentry_transaction;\n if (transaction && _scope.getSpan() === undefined) {\n _scope.setSpan(transaction);\n }\n var client = getCurrentHub().getClient();\n if (client && isAutoSessionTrackingEnabled(client)) {\n // Check if the `SessionFlusher` is instantiated on the client to go into this branch that marks the\n // `requestSession.status` as `Crashed`, and this check is necessary because the `SessionFlusher` is only\n // instantiated when the the`requestHandler` middleware is initialised, which indicates that we should be\n // running in SessionAggregates mode\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var isSessionAggregatesMode = client._sessionFlusher !== undefined;\n if (isSessionAggregatesMode) {\n var requestSession = _scope.getRequestSession();\n // If an error bubbles to the `errorHandler`, then this is an unhandled error, and should be reported as a\n // Crashed session. The `_requestSession.status` is checked to ensure that this error is happening within\n // the bounds of a request, and if so the status is updated\n if (requestSession && requestSession.status !== undefined)\n requestSession.status = RequestSessionStatus.Crashed;\n }\n }\n var eventId = captureException(error);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n res.sentry = eventId;\n next(error);\n });\n return;\n }\n next(error);\n };\n}\n//# sourceMappingURL=handlers.js.map","import { __assign } from \"tslib\";\nexport { Severity, Status, } from '@sentry/types';\nexport { addGlobalEventProcessor, addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, getHubFromCarrier, getCurrentHub, Hub, makeMain, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, } from '@sentry/core';\nexport { NodeBackend } from './backend';\nexport { NodeClient } from './client';\nexport { defaultIntegrations, init, lastEventId, flush, close, getSentryRelease } from './sdk';\nexport { deepReadDirSync } from './utils';\nexport { SDK_NAME } from './version';\nimport { Integrations as CoreIntegrations } from '@sentry/core';\nimport { getMainCarrier } from '@sentry/hub';\nimport * as domain from 'domain';\nimport * as Handlers from './handlers';\nimport * as NodeIntegrations from './integrations';\nimport * as Transports from './transports';\nvar INTEGRATIONS = __assign(__assign({}, CoreIntegrations), NodeIntegrations);\nexport { INTEGRATIONS as Integrations, Transports, Handlers };\n// We need to patch domain on the global __SENTRY__ object to make it work for node in cross-platform packages like\n// @sentry/hub. If we don't do this, browser bundlers will have troubles resolving `require('domain')`.\nvar carrier = getMainCarrier();\nif (carrier.__SENTRY__) {\n carrier.__SENTRY__.extensions = carrier.__SENTRY__.extensions || {};\n carrier.__SENTRY__.extensions.domain = carrier.__SENTRY__.extensions.domain || domain;\n}\n//# sourceMappingURL=index.js.map","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js'; // **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nlet _nodeId;\n\nlet _clockseq; // Previous uuid creation time\n\n\nlet _lastMSecs = 0;\nlet _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details\n\nfunction v1(options, buf, offset) {\n let i = buf && offset || 0;\n const b = buf || new Array(16);\n options = options || {};\n let node = options.node || _nodeId;\n let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n\n if (node == null || clockseq == null) {\n const seedBytes = options.random || (options.rng || rng)();\n\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];\n }\n\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n } // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n\n\n let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n\n let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)\n\n const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression\n\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n\n\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n } // Per 4.2.1.2 Throw error if too many uuids are requested\n\n\n if (nsecs >= 10000) {\n throw new Error(\"uuid.v1(): Can't create more than 10M uuids/sec\");\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n\n msecs += 12219292800000; // `time_low`\n\n const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff; // `time_mid`\n\n const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff; // `time_high_and_version`\n\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n\n b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n\n b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`\n\n b[i++] = clockseq & 0xff; // `node`\n\n for (let n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf || stringify(b);\n}\n\nexport default v1;","import validate from './validate.js';\n\nfunction parse(uuid) {\n if (!validate(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n let v;\n const arr = new Uint8Array(16); // Parse ########-....-....-....-............\n\n arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;\n arr[1] = v >>> 16 & 0xff;\n arr[2] = v >>> 8 & 0xff;\n arr[3] = v & 0xff; // Parse ........-####-....-....-............\n\n arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;\n arr[5] = v & 0xff; // Parse ........-....-####-....-............\n\n arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;\n arr[7] = v & 0xff; // Parse ........-....-....-####-............\n\n arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;\n arr[9] = v & 0xff; // Parse ........-....-....-....-############\n // (Use \"/\" to avoid 32-bit truncation when bit-shifting high-order bytes)\n\n arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;\n arr[11] = v / 0x100000000 & 0xff;\n arr[12] = v >>> 24 & 0xff;\n arr[13] = v >>> 16 & 0xff;\n arr[14] = v >>> 8 & 0xff;\n arr[15] = v & 0xff;\n return arr;\n}\n\nexport default parse;","import stringify from './stringify.js';\nimport parse from './parse.js';\n\nfunction stringToBytes(str) {\n str = unescape(encodeURIComponent(str)); // UTF8 escape\n\n const bytes = [];\n\n for (let i = 0; i < str.length; ++i) {\n bytes.push(str.charCodeAt(i));\n }\n\n return bytes;\n}\n\nexport const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';\nexport const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';\nexport default function (name, version, hashfunc) {\n function generateUUID(value, namespace, buf, offset) {\n if (typeof value === 'string') {\n value = stringToBytes(value);\n }\n\n if (typeof namespace === 'string') {\n namespace = parse(namespace);\n }\n\n if (namespace.length !== 16) {\n throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');\n } // Compute hash of namespace and value, Per 4.3\n // Future: Use spread syntax when supported on all platforms, e.g. `bytes =\n // hashfunc([...namespace, ... value])`\n\n\n let bytes = new Uint8Array(16 + value.length);\n bytes.set(namespace);\n bytes.set(value, namespace.length);\n bytes = hashfunc(bytes);\n bytes[6] = bytes[6] & 0x0f | version;\n bytes[8] = bytes[8] & 0x3f | 0x80;\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = bytes[i];\n }\n\n return buf;\n }\n\n return stringify(bytes);\n } // Function#name is not settable on some platforms (#270)\n\n\n try {\n generateUUID.name = name; // eslint-disable-next-line no-empty\n } catch (err) {} // For CommonJS default export support\n\n\n generateUUID.DNS = DNS;\n generateUUID.URL = URL;\n return generateUUID;\n}","import v35 from './v35.js';\nimport md5 from './md5.js';\nconst v3 = v35('v3', 0x30, md5);\nexport default v3;","import crypto from 'crypto';\n\nfunction md5(bytes) {\n if (Array.isArray(bytes)) {\n bytes = Buffer.from(bytes);\n } else if (typeof bytes === 'string') {\n bytes = Buffer.from(bytes, 'utf8');\n }\n\n return crypto.createHash('md5').update(bytes).digest();\n}\n\nexport default md5;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import v35 from './v35.js';\nimport sha1 from './sha1.js';\nconst v5 = v35('v5', 0x50, sha1);\nexport default v5;","import crypto from 'crypto';\n\nfunction sha1(bytes) {\n if (Array.isArray(bytes)) {\n bytes = Buffer.from(bytes);\n } else if (typeof bytes === 'string') {\n bytes = Buffer.from(bytes, 'utf8');\n }\n\n return crypto.createHash('sha1').update(bytes).digest();\n}\n\nexport default sha1;","export default '00000000-0000-0000-0000-000000000000';","import validate from './validate.js';\n\nfunction version(uuid) {\n if (!validate(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n return parseInt(uuid.substr(14, 1), 16);\n}\n\nexport default version;","import { __values } from \"tslib\";\nimport { getGlobalObject, supportsReportingObserver } from '@sentry/utils';\n/** JSDoc */\nvar ReportTypes;\n(function (ReportTypes) {\n /** JSDoc */\n ReportTypes[\"Crash\"] = \"crash\";\n /** JSDoc */\n ReportTypes[\"Deprecation\"] = \"deprecation\";\n /** JSDoc */\n ReportTypes[\"Intervention\"] = \"intervention\";\n})(ReportTypes || (ReportTypes = {}));\n/** Reporting API integration - https://w3c.github.io/reporting/ */\nvar ReportingObserver = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function ReportingObserver(_options) {\n if (_options === void 0) { _options = {\n types: [ReportTypes.Crash, ReportTypes.Deprecation, ReportTypes.Intervention],\n }; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = ReportingObserver.id;\n }\n /**\n * @inheritDoc\n */\n ReportingObserver.prototype.setupOnce = function (_, getCurrentHub) {\n if (!supportsReportingObserver()) {\n return;\n }\n this._getCurrentHub = getCurrentHub;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var observer = new (getGlobalObject().ReportingObserver)(this.handler.bind(this), {\n buffered: true,\n types: this._options.types,\n });\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n observer.observe();\n };\n /**\n * @inheritDoc\n */\n ReportingObserver.prototype.handler = function (reports) {\n var e_1, _a;\n var hub = this._getCurrentHub && this._getCurrentHub();\n if (!hub || !hub.getIntegration(ReportingObserver)) {\n return;\n }\n var _loop_1 = function (report) {\n hub.withScope(function (scope) {\n scope.setExtra('url', report.url);\n var label = \"ReportingObserver [\" + report.type + \"]\";\n var details = 'No details available';\n if (report.body) {\n // Object.keys doesn't work on ReportBody, as all properties are inheirted\n var plainBody = {};\n // eslint-disable-next-line guard-for-in\n for (var prop in report.body) {\n plainBody[prop] = report.body[prop];\n }\n scope.setExtra('body', plainBody);\n if (report.type === ReportTypes.Crash) {\n var body = report.body;\n // A fancy way to create a message out of crashId OR reason OR both OR fallback\n details = [body.crashId || '', body.reason || ''].join(' ').trim() || details;\n }\n else {\n var body = report.body;\n details = body.message || details;\n }\n }\n hub.captureMessage(label + \": \" + details);\n });\n };\n try {\n for (var reports_1 = __values(reports), reports_1_1 = reports_1.next(); !reports_1_1.done; reports_1_1 = reports_1.next()) {\n var report = reports_1_1.value;\n _loop_1(report);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (reports_1_1 && !reports_1_1.done && (_a = reports_1.return)) _a.call(reports_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n /**\n * @inheritDoc\n */\n ReportingObserver.id = 'ReportingObserver';\n return ReportingObserver;\n}());\nexport { ReportingObserver };\n//# sourceMappingURL=reportingobserver.js.map","import { __assign } from \"tslib\";\nimport { getGlobalObject, logger } from '@sentry/utils';\n// See https://github.com/angular/angular.js/blob/v1.4.7/src/minErr.js\nvar angularPattern = /^\\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\\] (.*?)\\n?(\\S+)$/;\n/**\n * AngularJS integration\n *\n * Provides an $exceptionHandler for AngularJS\n */\nvar Angular = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function Angular(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Angular.id;\n logger.log('You are still using the Angular integration, consider moving to @sentry/angular');\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n this._angular = options.angular || getGlobalObject().angular;\n if (!this._angular) {\n logger.error('AngularIntegration is missing an Angular instance');\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n this._module = this._angular.module(Angular.moduleName, []);\n }\n /**\n * @inheritDoc\n */\n Angular.prototype.setupOnce = function (_, getCurrentHub) {\n var _this = this;\n if (!this._module) {\n return;\n }\n this._getCurrentHub = getCurrentHub;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n this._module.config([\n '$provide',\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function ($provide) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n $provide.decorator('$exceptionHandler', ['$delegate', _this._$exceptionHandlerDecorator.bind(_this)]);\n },\n ]);\n };\n /**\n * Angular's exceptionHandler for Sentry integration\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Angular.prototype._$exceptionHandlerDecorator = function ($delegate) {\n var _this = this;\n return function (exception, cause) {\n var hub = _this._getCurrentHub && _this._getCurrentHub();\n if (hub && hub.getIntegration(Angular)) {\n hub.withScope(function (scope) {\n if (cause) {\n scope.setExtra('cause', cause);\n }\n scope.addEventProcessor(function (event) {\n var ex = event.exception && event.exception.values && event.exception.values[0];\n if (ex) {\n var matches = angularPattern.exec(ex.value || '');\n if (matches) {\n // This type now becomes something like: $rootScope:inprog\n ex.type = matches[1];\n ex.value = matches[2];\n event.message = ex.type + \": \" + ex.value;\n // auto set a new tag specifically for the angular error url\n event.extra = __assign(__assign({}, event.extra), { angularDocs: matches[3].substr(0, 250) });\n }\n }\n return event;\n });\n hub.captureException(exception);\n });\n }\n $delegate(exception, cause);\n };\n };\n /**\n * @inheritDoc\n */\n Angular.id = 'AngularJS';\n /**\n * moduleName used in Angular's DI resolution algorithm\n */\n Angular.moduleName = 'ngSentry';\n return Angular;\n}());\nexport { Angular };\n//# sourceMappingURL=angular.js.map","import { Severity } from '@sentry/types';\nimport { fill, getGlobalObject, safeJoin } from '@sentry/utils';\nvar global = getGlobalObject();\n/** Send Console API calls as Sentry Events */\nvar CaptureConsole = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function CaptureConsole(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = CaptureConsole.id;\n /**\n * @inheritDoc\n */\n this._levels = ['log', 'info', 'warn', 'error', 'debug', 'assert'];\n if (options.levels) {\n this._levels = options.levels;\n }\n }\n /**\n * @inheritDoc\n */\n CaptureConsole.prototype.setupOnce = function (_, getCurrentHub) {\n if (!('console' in global)) {\n return;\n }\n this._levels.forEach(function (level) {\n if (!(level in global.console)) {\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fill(global.console, level, function (originalConsoleLevel) { return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var hub = getCurrentHub();\n if (hub.getIntegration(CaptureConsole)) {\n hub.withScope(function (scope) {\n scope.setLevel(Severity.fromString(level));\n scope.setExtra('arguments', args);\n scope.addEventProcessor(function (event) {\n event.logger = 'console';\n return event;\n });\n var message = safeJoin(args, ' ');\n if (level === 'assert') {\n if (args[0] === false) {\n message = \"Assertion failed: \" + (safeJoin(args.slice(1), ' ') || 'console.assert');\n scope.setExtra('arguments', args.slice(1));\n hub.captureMessage(message);\n }\n }\n else if (level === 'error' && args[0] instanceof Error) {\n hub.captureException(args[0]);\n }\n else {\n hub.captureMessage(message);\n }\n });\n }\n // this fails for some browsers. :(\n if (originalConsoleLevel) {\n Function.prototype.apply.call(originalConsoleLevel, global.console, args);\n }\n }; });\n });\n };\n /**\n * @inheritDoc\n */\n CaptureConsole.id = 'CaptureConsole';\n return CaptureConsole;\n}());\nexport { CaptureConsole };\n//# sourceMappingURL=captureconsole.js.map","import { __assign } from \"tslib\";\nimport { consoleSandbox } from '@sentry/utils';\n/** JSDoc */\nvar Debug = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Debug(options) {\n /**\n * @inheritDoc\n */\n this.name = Debug.id;\n this._options = __assign({ debugger: false, stringify: false }, options);\n }\n /**\n * @inheritDoc\n */\n Debug.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event, hint) {\n var self = getCurrentHub().getIntegration(Debug);\n if (self) {\n if (self._options.debugger) {\n // eslint-disable-next-line no-debugger\n debugger;\n }\n /* eslint-disable no-console */\n consoleSandbox(function () {\n if (self._options.stringify) {\n console.log(JSON.stringify(event, null, 2));\n if (hint) {\n console.log(JSON.stringify(hint, null, 2));\n }\n }\n else {\n console.log(event);\n if (hint) {\n console.log(hint);\n }\n }\n });\n /* eslint-enable no-console */\n }\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n Debug.id = 'Debug';\n return Debug;\n}());\nexport { Debug };\n//# sourceMappingURL=debug.js.map","import { logger } from '@sentry/utils';\n/** Deduplication filter */\nvar Dedupe = /** @class */ (function () {\n function Dedupe() {\n /**\n * @inheritDoc\n */\n this.name = Dedupe.id;\n }\n /**\n * @inheritDoc\n */\n Dedupe.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (currentEvent) {\n var self = getCurrentHub().getIntegration(Dedupe);\n if (self) {\n // Juuust in case something goes wrong\n try {\n if (self._shouldDropEvent(currentEvent, self._previousEvent)) {\n logger.warn(\"Event dropped due to being a duplicate of previously captured event.\");\n return null;\n }\n }\n catch (_oO) {\n return (self._previousEvent = currentEvent);\n }\n return (self._previousEvent = currentEvent);\n }\n return currentEvent;\n });\n };\n /** JSDoc */\n Dedupe.prototype._shouldDropEvent = function (currentEvent, previousEvent) {\n if (!previousEvent) {\n return false;\n }\n if (this._isSameMessageEvent(currentEvent, previousEvent)) {\n return true;\n }\n if (this._isSameExceptionEvent(currentEvent, previousEvent)) {\n return true;\n }\n return false;\n };\n /** JSDoc */\n Dedupe.prototype._isSameMessageEvent = function (currentEvent, previousEvent) {\n var currentMessage = currentEvent.message;\n var previousMessage = previousEvent.message;\n // If neither event has a message property, they were both exceptions, so bail out\n if (!currentMessage && !previousMessage) {\n return false;\n }\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentMessage && !previousMessage) || (!currentMessage && previousMessage)) {\n return false;\n }\n if (currentMessage !== previousMessage) {\n return false;\n }\n if (!this._isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n if (!this._isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n return true;\n };\n /** JSDoc */\n Dedupe.prototype._getFramesFromEvent = function (event) {\n var exception = event.exception;\n if (exception) {\n try {\n // @ts-ignore Object could be undefined\n return exception.values[0].stacktrace.frames;\n }\n catch (_oO) {\n return undefined;\n }\n }\n else if (event.stacktrace) {\n return event.stacktrace.frames;\n }\n return undefined;\n };\n /** JSDoc */\n Dedupe.prototype._isSameStacktrace = function (currentEvent, previousEvent) {\n var currentFrames = this._getFramesFromEvent(currentEvent);\n var previousFrames = this._getFramesFromEvent(previousEvent);\n // If neither event has a stacktrace, they are assumed to be the same\n if (!currentFrames && !previousFrames) {\n return true;\n }\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentFrames && !previousFrames) || (!currentFrames && previousFrames)) {\n return false;\n }\n currentFrames = currentFrames;\n previousFrames = previousFrames;\n // If number of frames differ, they are not the same\n if (previousFrames.length !== currentFrames.length) {\n return false;\n }\n // Otherwise, compare the two\n for (var i = 0; i < previousFrames.length; i++) {\n var frameA = previousFrames[i];\n var frameB = currentFrames[i];\n if (frameA.filename !== frameB.filename ||\n frameA.lineno !== frameB.lineno ||\n frameA.colno !== frameB.colno ||\n frameA.function !== frameB.function) {\n return false;\n }\n }\n return true;\n };\n /** JSDoc */\n Dedupe.prototype._getExceptionFromEvent = function (event) {\n return event.exception && event.exception.values && event.exception.values[0];\n };\n /** JSDoc */\n Dedupe.prototype._isSameExceptionEvent = function (currentEvent, previousEvent) {\n var previousException = this._getExceptionFromEvent(previousEvent);\n var currentException = this._getExceptionFromEvent(currentEvent);\n if (!previousException || !currentException) {\n return false;\n }\n if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n return false;\n }\n if (!this._isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n if (!this._isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n return true;\n };\n /** JSDoc */\n Dedupe.prototype._isSameFingerprint = function (currentEvent, previousEvent) {\n var currentFingerprint = currentEvent.fingerprint;\n var previousFingerprint = previousEvent.fingerprint;\n // If neither event has a fingerprint, they are assumed to be the same\n if (!currentFingerprint && !previousFingerprint) {\n return true;\n }\n // If only one event has a fingerprint, but not the other one, they are not the same\n if ((currentFingerprint && !previousFingerprint) || (!currentFingerprint && previousFingerprint)) {\n return false;\n }\n currentFingerprint = currentFingerprint;\n previousFingerprint = previousFingerprint;\n // Otherwise, compare the two\n try {\n return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n }\n catch (_oO) {\n return false;\n }\n };\n /**\n * @inheritDoc\n */\n Dedupe.id = 'Dedupe';\n return Dedupe;\n}());\nexport { Dedupe };\n//# sourceMappingURL=dedupe.js.map","import { getGlobalObject, isInstanceOf, logger } from '@sentry/utils';\n/** JSDoc */\nvar Ember = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function Ember(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Ember.id;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n this._Ember = options.Ember || getGlobalObject().Ember;\n }\n /**\n * @inheritDoc\n */\n Ember.prototype.setupOnce = function (_, getCurrentHub) {\n var _this = this;\n if (!this._Ember) {\n logger.error('EmberIntegration is missing an Ember instance');\n return;\n }\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n var oldOnError = this._Ember.onerror;\n this._Ember.onerror = function (error) {\n if (getCurrentHub().getIntegration(Ember)) {\n getCurrentHub().captureException(error, { originalException: error });\n }\n if (typeof oldOnError === 'function') {\n oldOnError.call(_this._Ember, error);\n }\n else if (_this._Ember.testing) {\n throw error;\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this._Ember.RSVP.on('error', function (reason) {\n if (getCurrentHub().getIntegration(Ember)) {\n getCurrentHub().withScope(function (scope) {\n if (isInstanceOf(reason, Error)) {\n scope.setExtra('context', 'Unhandled Promise error detected');\n getCurrentHub().captureException(reason, { originalException: reason });\n }\n else {\n scope.setExtra('reason', reason);\n getCurrentHub().captureMessage('Unhandled Promise error detected');\n }\n });\n }\n });\n };\n /**\n * @inheritDoc\n */\n Ember.id = 'Ember';\n return Ember;\n}());\nexport { Ember };\n//# sourceMappingURL=ember.js.map","import { __assign, __values } from \"tslib\";\nimport { isError, isPlainObject, logger, normalize } from '@sentry/utils';\n/** Patch toString calls to return proper name for wrapped functions */\nvar ExtraErrorData = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function ExtraErrorData(_options) {\n if (_options === void 0) { _options = { depth: 3 }; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = ExtraErrorData.id;\n }\n /**\n * @inheritDoc\n */\n ExtraErrorData.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event, hint) {\n var self = getCurrentHub().getIntegration(ExtraErrorData);\n if (!self) {\n return event;\n }\n return self.enhanceEventWithErrorData(event, hint);\n });\n };\n /**\n * Attaches extracted information from the Error object to extra field in the Event\n */\n ExtraErrorData.prototype.enhanceEventWithErrorData = function (event, hint) {\n var _a;\n if (!hint || !hint.originalException || !isError(hint.originalException)) {\n return event;\n }\n var name = hint.originalException.name || hint.originalException.constructor.name;\n var errorData = this._extractErrorData(hint.originalException);\n if (errorData) {\n var contexts = __assign({}, event.contexts);\n var normalizedErrorData = normalize(errorData, this._options.depth);\n if (isPlainObject(normalizedErrorData)) {\n contexts = __assign(__assign({}, event.contexts), (_a = {}, _a[name] = __assign({}, normalizedErrorData), _a));\n }\n return __assign(__assign({}, event), { contexts: contexts });\n }\n return event;\n };\n /**\n * Extract extra information from the Error object\n */\n ExtraErrorData.prototype._extractErrorData = function (error) {\n var e_1, _a, e_2, _b;\n // We are trying to enhance already existing event, so no harm done if it won't succeed\n try {\n var nativeKeys = [\n 'name',\n 'message',\n 'stack',\n 'line',\n 'column',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'toJSON',\n ];\n var extraErrorInfo = {};\n try {\n // We want only enumerable properties, thus `getOwnPropertyNames` is redundant here, as we filter keys anyway.\n for (var _c = __values(Object.keys(error)), _d = _c.next(); !_d.done; _d = _c.next()) {\n var key = _d.value;\n if (nativeKeys.indexOf(key) !== -1) {\n continue;\n }\n var value = error[key];\n extraErrorInfo[key] = isError(value) ? value.toString() : value;\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n }\n finally { if (e_1) throw e_1.error; }\n }\n // Check if someone attached `toJSON` method to grab even more properties (eg. axios is doing that)\n if (typeof error.toJSON === 'function') {\n var serializedError = error.toJSON();\n try {\n for (var _e = __values(Object.keys(serializedError)), _f = _e.next(); !_f.done; _f = _e.next()) {\n var key = _f.value;\n var value = serializedError[key];\n extraErrorInfo[key] = isError(value) ? value.toString() : value;\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_f && !_f.done && (_b = _e.return)) _b.call(_e);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n return extraErrorInfo;\n }\n catch (oO) {\n logger.error('Unable to extract extra data from the Error object:', oO);\n }\n return null;\n };\n /**\n * @inheritDoc\n */\n ExtraErrorData.id = 'ExtraErrorData';\n return ExtraErrorData;\n}());\nexport { ExtraErrorData };\n//# sourceMappingURL=extraerrordata.js.map","import { __awaiter, __generator } from \"tslib\";\nimport { getGlobalObject, logger, normalize, uuid4 } from '@sentry/utils';\nimport localForage from 'localforage';\n/**\n * cache offline errors and send when connected\n */\nvar Offline = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Offline(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Offline.id;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.global = getGlobalObject();\n this.maxStoredEvents = options.maxStoredEvents || 30; // set a reasonable default\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n this.offlineEventStore = localForage.createInstance({\n name: 'sentry/offlineEventStore',\n });\n }\n /**\n * @inheritDoc\n */\n Offline.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n var _this = this;\n this.hub = getCurrentHub();\n if ('addEventListener' in this.global) {\n this.global.addEventListener('online', function () {\n void _this._sendEvents().catch(function () {\n logger.warn('could not send cached events');\n });\n });\n }\n addGlobalEventProcessor(function (event) {\n if (_this.hub && _this.hub.getIntegration(Offline)) {\n // cache if we are positively offline\n if ('navigator' in _this.global && 'onLine' in _this.global.navigator && !_this.global.navigator.onLine) {\n void _this._cacheEvent(event)\n .then(function (_event) { return _this._enforceMaxEvents(); })\n .catch(function (_error) {\n logger.warn('could not cache event while offline');\n });\n // return null on success or failure, because being offline will still result in an error\n return null;\n }\n }\n return event;\n });\n // if online now, send any events stored in a previous offline session\n if ('navigator' in this.global && 'onLine' in this.global.navigator && this.global.navigator.onLine) {\n void this._sendEvents().catch(function () {\n logger.warn('could not send cached events');\n });\n }\n };\n /**\n * cache an event to send later\n * @param event an event\n */\n Offline.prototype._cacheEvent = function (event) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.offlineEventStore.setItem(uuid4(), normalize(event))];\n });\n });\n };\n /**\n * purge excess events if necessary\n */\n Offline.prototype._enforceMaxEvents = function () {\n return __awaiter(this, void 0, void 0, function () {\n var events;\n var _this = this;\n return __generator(this, function (_a) {\n events = [];\n return [2 /*return*/, this.offlineEventStore\n .iterate(function (event, cacheKey, _index) {\n // aggregate events\n events.push({ cacheKey: cacheKey, event: event });\n })\n .then(function () {\n // this promise resolves when the iteration is finished\n return _this._purgeEvents(\n // purge all events past maxStoredEvents in reverse chronological order\n events\n .sort(function (a, b) { return (b.event.timestamp || 0) - (a.event.timestamp || 0); })\n .slice(_this.maxStoredEvents < events.length ? _this.maxStoredEvents : events.length)\n .map(function (event) { return event.cacheKey; }));\n })\n .catch(function (_error) {\n logger.warn('could not enforce max events');\n })];\n });\n });\n };\n /**\n * purge event from cache\n */\n Offline.prototype._purgeEvent = function (cacheKey) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.offlineEventStore.removeItem(cacheKey)];\n });\n });\n };\n /**\n * purge events from cache\n */\n Offline.prototype._purgeEvents = function (cacheKeys) {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n // trail with .then to ensure the return type as void and not void|void[]\n return [2 /*return*/, Promise.all(cacheKeys.map(function (cacheKey) { return _this._purgeEvent(cacheKey); })).then()];\n });\n });\n };\n /**\n * send all events\n */\n Offline.prototype._sendEvents = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n return [2 /*return*/, this.offlineEventStore.iterate(function (event, cacheKey, _index) {\n if (_this.hub) {\n _this.hub.captureEvent(event);\n void _this._purgeEvent(cacheKey).catch(function (_error) {\n logger.warn('could not purge event from cache');\n });\n }\n else {\n logger.warn('no hub found - could not send cached event');\n }\n })];\n });\n });\n };\n /**\n * @inheritDoc\n */\n Offline.id = 'Offline';\n return Offline;\n}());\nexport { Offline };\n//# sourceMappingURL=offline.js.map","import { __assign } from \"tslib\";\nimport { basename, relative } from '@sentry/utils';\n/** Rewrite event frames paths */\nvar RewriteFrames = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function RewriteFrames(options) {\n var _this = this;\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = RewriteFrames.id;\n /**\n * @inheritDoc\n */\n this._prefix = 'app:///';\n /**\n * @inheritDoc\n */\n this._iteratee = function (frame) {\n if (!frame.filename) {\n return frame;\n }\n // Check if the frame filename begins with `/` or a Windows-style prefix such as `C:\\`\n var isWindowsFrame = /^[A-Z]:\\\\/.test(frame.filename);\n var startsWithSlash = /^\\//.test(frame.filename);\n if (isWindowsFrame || startsWithSlash) {\n var filename = isWindowsFrame\n ? frame.filename\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/') // replace all `\\\\` instances with `/`\n : frame.filename;\n var base = _this._root ? relative(_this._root, filename) : basename(filename);\n frame.filename = \"\" + _this._prefix + base;\n }\n return frame;\n };\n if (options.root) {\n this._root = options.root;\n }\n if (options.prefix) {\n this._prefix = options.prefix;\n }\n if (options.iteratee) {\n this._iteratee = options.iteratee;\n }\n }\n /**\n * @inheritDoc\n */\n RewriteFrames.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event) {\n var self = getCurrentHub().getIntegration(RewriteFrames);\n if (self) {\n return self.process(event);\n }\n return event;\n });\n };\n /** JSDoc */\n RewriteFrames.prototype.process = function (originalEvent) {\n var processedEvent = originalEvent;\n if (originalEvent.exception && Array.isArray(originalEvent.exception.values)) {\n processedEvent = this._processExceptionsEvent(processedEvent);\n }\n if (originalEvent.stacktrace) {\n processedEvent = this._processStacktraceEvent(processedEvent);\n }\n return processedEvent;\n };\n /** JSDoc */\n RewriteFrames.prototype._processExceptionsEvent = function (event) {\n var _this = this;\n try {\n return __assign(__assign({}, event), { exception: __assign(__assign({}, event.exception), { \n // The check for this is performed inside `process` call itself, safe to skip here\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n values: event.exception.values.map(function (value) { return (__assign(__assign({}, value), { stacktrace: _this._processStacktrace(value.stacktrace) })); }) }) });\n }\n catch (_oO) {\n return event;\n }\n };\n /** JSDoc */\n RewriteFrames.prototype._processStacktraceEvent = function (event) {\n try {\n return __assign(__assign({}, event), { stacktrace: this._processStacktrace(event.stacktrace) });\n }\n catch (_oO) {\n return event;\n }\n };\n /** JSDoc */\n RewriteFrames.prototype._processStacktrace = function (stacktrace) {\n var _this = this;\n return __assign(__assign({}, stacktrace), { frames: stacktrace && stacktrace.frames && stacktrace.frames.map(function (f) { return _this._iteratee(f); }) });\n };\n /**\n * @inheritDoc\n */\n RewriteFrames.id = 'RewriteFrames';\n return RewriteFrames;\n}());\nexport { RewriteFrames };\n//# sourceMappingURL=rewriteframes.js.map","import { __assign } from \"tslib\";\n/** This function adds duration since Sentry was initialized till the time event was sent */\nvar SessionTiming = /** @class */ (function () {\n function SessionTiming() {\n /**\n * @inheritDoc\n */\n this.name = SessionTiming.id;\n /** Exact time Client was initialized expressed in milliseconds since Unix Epoch. */\n this._startTime = Date.now();\n }\n /**\n * @inheritDoc\n */\n SessionTiming.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event) {\n var self = getCurrentHub().getIntegration(SessionTiming);\n if (self) {\n return self.process(event);\n }\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n SessionTiming.prototype.process = function (event) {\n var _a;\n var now = Date.now();\n return __assign(__assign({}, event), { extra: __assign(__assign({}, event.extra), (_a = {}, _a['session:start'] = this._startTime, _a['session:duration'] = now - this._startTime, _a['session:end'] = now, _a)) });\n };\n /**\n * @inheritDoc\n */\n SessionTiming.id = 'SessionTiming';\n return SessionTiming;\n}());\nexport { SessionTiming };\n//# sourceMappingURL=sessiontiming.js.map","/** Add node transaction to the event */\nvar Transaction = /** @class */ (function () {\n function Transaction() {\n /**\n * @inheritDoc\n */\n this.name = Transaction.id;\n }\n /**\n * @inheritDoc\n */\n Transaction.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event) {\n var self = getCurrentHub().getIntegration(Transaction);\n if (self) {\n return self.process(event);\n }\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n Transaction.prototype.process = function (event) {\n var frames = this._getFramesFromEvent(event);\n // use for loop so we don't have to reverse whole frames array\n for (var i = frames.length - 1; i >= 0; i--) {\n var frame = frames[i];\n if (frame.in_app === true) {\n event.transaction = this._getTransaction(frame);\n break;\n }\n }\n return event;\n };\n /** JSDoc */\n Transaction.prototype._getFramesFromEvent = function (event) {\n var exception = event.exception && event.exception.values && event.exception.values[0];\n return (exception && exception.stacktrace && exception.stacktrace.frames) || [];\n };\n /** JSDoc */\n Transaction.prototype._getTransaction = function (frame) {\n return frame.module || frame.function ? (frame.module || '?') + \"/\" + (frame.function || '?') : '';\n };\n /**\n * @inheritDoc\n */\n Transaction.id = 'Transaction';\n return Transaction;\n}());\nexport { Transaction };\n//# sourceMappingURL=transaction.js.map","import { __assign, __read, __spread } from \"tslib\";\nimport { basename, getGlobalObject, logger, timestampWithMs } from '@sentry/utils';\n/**\n * Used to extract Tracing integration from the current client,\n * without the need to import `Tracing` itself from the @sentry/apm package.\n * @deprecated as @sentry/tracing should be used over @sentry/apm.\n */\nvar TRACING_GETTER = {\n id: 'Tracing',\n};\n/**\n * Used to extract BrowserTracing integration from @sentry/tracing\n */\nvar BROWSER_TRACING_GETTER = {\n id: 'BrowserTracing',\n};\n// Mappings from operation to corresponding lifecycle hook.\nvar HOOKS = {\n activate: ['activated', 'deactivated'],\n create: ['beforeCreate', 'created'],\n destroy: ['beforeDestroy', 'destroyed'],\n mount: ['beforeMount', 'mounted'],\n update: ['beforeUpdate', 'updated'],\n};\nvar COMPONENT_NAME_REGEXP = /(?:^|[-_/])(\\w)/g;\nvar ROOT_COMPONENT_NAME = 'root';\nvar ANONYMOUS_COMPONENT_NAME = 'anonymous component';\n/** JSDoc */\nvar Vue = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Vue(options) {\n var _this = this;\n /**\n * @inheritDoc\n */\n this.name = Vue.id;\n /**\n * Cache holding already processed component names\n */\n this._componentsCache = {};\n /** Keep it as attribute function, to keep correct `this` binding inside the hooks callbacks */\n // eslint-disable-next-line @typescript-eslint/typedef\n this._applyTracingHooks = function (vm, getCurrentHub) {\n // Don't attach twice, just in case\n if (vm.$options.$_sentryPerfHook) {\n return;\n }\n vm.$options.$_sentryPerfHook = true;\n var name = _this._getComponentName(vm);\n var rootMount = name === ROOT_COMPONENT_NAME;\n var spans = {};\n // Render hook starts after once event is emitted,\n // but it ends before the second event of the same type.\n //\n // Because of this, we start measuring inside the first event,\n // but finish it before it triggers, to skip the event emitter timing itself.\n var rootHandler = function (hook) {\n var now = timestampWithMs();\n // On the first handler call (before), it'll be undefined, as `$once` will add it in the future.\n // However, on the second call (after), it'll be already in place.\n if (_this._rootSpan) {\n _this._finishRootSpan(now, getCurrentHub);\n }\n else {\n vm.$once(\"hook:\" + hook, function () {\n // Create an activity on the first event call. There'll be no second call, as rootSpan will be in place,\n // thus new event handler won't be attached.\n // We do this whole dance with `TRACING_GETTER` to prevent `@sentry/apm` from becoming a peerDependency.\n // We also need to ask for the `.constructor`, as `pushActivity` and `popActivity` are static, not instance methods.\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line deprecation/deprecation\n var tracingIntegration = getCurrentHub().getIntegration(TRACING_GETTER);\n if (tracingIntegration) {\n _this._tracingActivity = tracingIntegration.constructor.pushActivity('Vue Application Render');\n var transaction = tracingIntegration.constructor.getTransaction();\n if (transaction) {\n _this._rootSpan = transaction.startChild({\n description: 'Application Render',\n op: 'vue',\n });\n }\n // Use functionality from @sentry/tracing\n }\n else {\n var activeTransaction = getActiveTransaction(getCurrentHub());\n if (activeTransaction) {\n _this._rootSpan = activeTransaction.startChild({\n description: 'Application Render',\n op: 'vue',\n });\n }\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n });\n }\n };\n var childHandler = function (hook, operation) {\n // Skip components that we don't want to track to minimize the noise and give a more granular control to the user\n var shouldTrack = Array.isArray(_this._options.tracingOptions.trackComponents)\n ? _this._options.tracingOptions.trackComponents.indexOf(name) > -1\n : _this._options.tracingOptions.trackComponents;\n if (!_this._rootSpan || !shouldTrack) {\n return;\n }\n var now = timestampWithMs();\n var span = spans[operation];\n // On the first handler call (before), it'll be undefined, as `$once` will add it in the future.\n // However, on the second call (after), it'll be already in place.\n if (span) {\n span.finish();\n _this._finishRootSpan(now, getCurrentHub);\n }\n else {\n vm.$once(\"hook:\" + hook, function () {\n if (_this._rootSpan) {\n spans[operation] = _this._rootSpan.startChild({\n description: \"Vue <\" + name + \">\",\n op: operation,\n });\n }\n });\n }\n };\n // Each component has it's own scope, so all activities are only related to one of them\n _this._options.tracingOptions.hooks.forEach(function (operation) {\n // Retrieve corresponding hooks from Vue lifecycle.\n // eg. mount => ['beforeMount', 'mounted']\n var internalHooks = HOOKS[operation];\n if (!internalHooks) {\n logger.warn(\"Unknown hook: \" + operation);\n return;\n }\n internalHooks.forEach(function (internalHook) {\n var handler = rootMount\n ? rootHandler.bind(_this, internalHook)\n : childHandler.bind(_this, internalHook, operation);\n var currentValue = vm.$options[internalHook];\n if (Array.isArray(currentValue)) {\n vm.$options[internalHook] = __spread([handler], currentValue);\n }\n else if (typeof currentValue === 'function') {\n vm.$options[internalHook] = [handler, currentValue];\n }\n else {\n vm.$options[internalHook] = [handler];\n }\n });\n });\n };\n logger.log('You are still using the Vue.js integration, consider moving to @sentry/vue');\n this._options = __assign(__assign({ \n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Vue: getGlobalObject().Vue, attachProps: true, logErrors: false, tracing: false }, options), { tracingOptions: __assign({ hooks: ['mount', 'update'], timeout: 2000, trackComponents: false }, options.tracingOptions) });\n }\n /**\n * @inheritDoc\n */\n Vue.prototype.setupOnce = function (_, getCurrentHub) {\n if (!this._options.Vue) {\n logger.error('Vue integration is missing a Vue instance');\n return;\n }\n this._attachErrorHandler(getCurrentHub);\n if (this._options.tracing) {\n this._startTracing(getCurrentHub);\n }\n };\n /**\n * Extract component name from the ViewModel\n */\n Vue.prototype._getComponentName = function (vm) {\n // Such level of granularity is most likely not necessary, but better safe than sorry. — Kamil\n if (!vm) {\n return ANONYMOUS_COMPONENT_NAME;\n }\n if (vm.$root === vm) {\n return ROOT_COMPONENT_NAME;\n }\n if (!vm.$options) {\n return ANONYMOUS_COMPONENT_NAME;\n }\n if (vm.$options.name) {\n return vm.$options.name;\n }\n if (vm.$options._componentTag) {\n return vm.$options._componentTag;\n }\n // injected by vue-loader\n if (vm.$options.__file) {\n var unifiedFile = vm.$options.__file.replace(/^[a-zA-Z]:/, '').replace(/\\\\/g, '/');\n var filename = basename(unifiedFile, '.vue');\n return (this._componentsCache[filename] ||\n (this._componentsCache[filename] = filename.replace(COMPONENT_NAME_REGEXP, function (_, c) {\n return c ? c.toUpperCase() : '';\n })));\n }\n return ANONYMOUS_COMPONENT_NAME;\n };\n /** Finish top-level span and activity with a debounce configured using `timeout` option */\n Vue.prototype._finishRootSpan = function (timestamp, getCurrentHub) {\n var _this = this;\n if (this._rootSpanTimer) {\n clearTimeout(this._rootSpanTimer);\n }\n this._rootSpanTimer = setTimeout(function () {\n if (_this._tracingActivity) {\n // We do this whole dance with `TRACING_GETTER` to prevent `@sentry/apm` from becoming a peerDependency.\n // We also need to ask for the `.constructor`, as `pushActivity` and `popActivity` are static, not instance methods.\n // eslint-disable-next-line deprecation/deprecation\n var tracingIntegration = getCurrentHub().getIntegration(TRACING_GETTER);\n if (tracingIntegration) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n tracingIntegration.constructor.popActivity(_this._tracingActivity);\n }\n }\n // We should always finish the span, only should pop activity if using @sentry/apm\n if (_this._rootSpan) {\n _this._rootSpan.finish(timestamp);\n }\n }, this._options.tracingOptions.timeout);\n };\n /** Inject configured tracing hooks into Vue's component lifecycles */\n Vue.prototype._startTracing = function (getCurrentHub) {\n var applyTracingHooks = this._applyTracingHooks;\n this._options.Vue.mixin({\n beforeCreate: function () {\n // eslint-disable-next-line deprecation/deprecation\n if (getCurrentHub().getIntegration(TRACING_GETTER) || getCurrentHub().getIntegration(BROWSER_TRACING_GETTER)) {\n // `this` points to currently rendered component\n applyTracingHooks(this, getCurrentHub);\n }\n else {\n logger.error('Vue integration has tracing enabled, but Tracing integration is not configured');\n }\n },\n });\n };\n /** Inject Sentry's handler into owns Vue's error handler */\n Vue.prototype._attachErrorHandler = function (getCurrentHub) {\n var _this = this;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var currentErrorHandler = this._options.Vue.config.errorHandler;\n this._options.Vue.config.errorHandler = function (error, vm, info) {\n var metadata = {};\n if (vm) {\n try {\n metadata.componentName = _this._getComponentName(vm);\n if (_this._options.attachProps) {\n metadata.propsData = vm.$options.propsData;\n }\n }\n catch (_oO) {\n logger.warn('Unable to extract metadata from Vue component.');\n }\n }\n if (info) {\n metadata.lifecycleHook = info;\n }\n if (getCurrentHub().getIntegration(Vue)) {\n // Capture exception in the next event loop, to make sure that all breadcrumbs are recorded in time.\n setTimeout(function () {\n getCurrentHub().withScope(function (scope) {\n scope.setContext('vue', metadata);\n getCurrentHub().captureException(error);\n });\n });\n }\n if (typeof currentErrorHandler === 'function') {\n currentErrorHandler.call(_this._options.Vue, error, vm, info);\n }\n if (_this._options.logErrors) {\n if (_this._options.Vue.util) {\n _this._options.Vue.util.warn(\"Error in \" + info + \": \\\"\" + (error && error.toString()) + \"\\\"\", vm);\n }\n // eslint-disable-next-line no-console\n console.error(error);\n }\n };\n };\n /**\n * @inheritDoc\n */\n Vue.id = 'Vue';\n return Vue;\n}());\nexport { Vue };\n/** Grabs active transaction off scope */\nexport function getActiveTransaction(hub) {\n if (hub && hub.getScope) {\n var scope = hub.getScope();\n if (scope) {\n return scope.getTransaction();\n }\n }\n return undefined;\n}\n//# sourceMappingURL=vue.js.map","export var Outcome;\n(function (Outcome) {\n Outcome[\"BeforeSend\"] = \"before_send\";\n Outcome[\"EventProcessor\"] = \"event_processor\";\n Outcome[\"NetworkError\"] = \"network_error\";\n Outcome[\"QueueOverflow\"] = \"queue_overflow\";\n Outcome[\"RateLimitBackoff\"] = \"ratelimit_backoff\";\n Outcome[\"SampleRate\"] = \"sample_rate\";\n})(Outcome || (Outcome = {}));\n//# sourceMappingURL=transport.js.map","/** JSDoc */\n// eslint-disable-next-line import/export\nexport var Severity;\n(function (Severity) {\n /** JSDoc */\n Severity[\"Fatal\"] = \"fatal\";\n /** JSDoc */\n Severity[\"Error\"] = \"error\";\n /** JSDoc */\n Severity[\"Warning\"] = \"warning\";\n /** JSDoc */\n Severity[\"Log\"] = \"log\";\n /** JSDoc */\n Severity[\"Info\"] = \"info\";\n /** JSDoc */\n Severity[\"Debug\"] = \"debug\";\n /** JSDoc */\n Severity[\"Critical\"] = \"critical\";\n})(Severity || (Severity = {}));\n// eslint-disable-next-line @typescript-eslint/no-namespace, import/export\n(function (Severity) {\n /**\n * Converts a string-based level into a {@link Severity}.\n *\n * @param level string representation of Severity\n * @returns Severity\n */\n function fromString(level) {\n switch (level) {\n case 'debug':\n return Severity.Debug;\n case 'info':\n return Severity.Info;\n case 'warn':\n case 'warning':\n return Severity.Warning;\n case 'error':\n return Severity.Error;\n case 'fatal':\n return Severity.Fatal;\n case 'critical':\n return Severity.Critical;\n case 'log':\n default:\n return Severity.Log;\n }\n }\n Severity.fromString = fromString;\n})(Severity || (Severity = {}));\n//# sourceMappingURL=severity.js.map","// Slightly modified (no IE8 support, ES6) and transcribed to TypeScript\n// https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-builtins/master/src/es6/path.js\n/** JSDoc */\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n }\n else if (last === '..') {\n parts.splice(i, 1);\n // eslint-disable-next-line no-plusplus\n up++;\n }\n else if (up) {\n parts.splice(i, 1);\n // eslint-disable-next-line no-plusplus\n up--;\n }\n }\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n // eslint-disable-next-line no-plusplus\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n return parts;\n}\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nvar splitPathRe = /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^/]+?|)(\\.[^./]*|))(?:[/]*)$/;\n/** JSDoc */\nfunction splitPath(filename) {\n var parts = splitPathRe.exec(filename);\n return parts ? parts.slice(1) : [];\n}\n// path.resolve([from ...], to)\n// posix version\n/** JSDoc */\nexport function resolve() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var resolvedPath = '';\n var resolvedAbsolute = false;\n for (var i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = i >= 0 ? args[i] : '/';\n // Skip empty entries\n if (!path) {\n continue;\n }\n resolvedPath = path + \"/\" + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n // Normalize the path\n resolvedPath = normalizeArray(resolvedPath.split('/').filter(function (p) { return !!p; }), !resolvedAbsolute).join('/');\n return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';\n}\n/** JSDoc */\nfunction trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') {\n break;\n }\n }\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') {\n break;\n }\n }\n if (start > end) {\n return [];\n }\n return arr.slice(start, end - start + 1);\n}\n// path.relative(from, to)\n// posix version\n/** JSDoc */\nexport function relative(from, to) {\n /* eslint-disable no-param-reassign */\n from = resolve(from).substr(1);\n to = resolve(to).substr(1);\n /* eslint-enable no-param-reassign */\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n return outputParts.join('/');\n}\n// path.normalize(path)\n// posix version\n/** JSDoc */\nexport function normalizePath(path) {\n var isPathAbsolute = isAbsolute(path);\n var trailingSlash = path.substr(-1) === '/';\n // Normalize the path\n var normalizedPath = normalizeArray(path.split('/').filter(function (p) { return !!p; }), !isPathAbsolute).join('/');\n if (!normalizedPath && !isPathAbsolute) {\n normalizedPath = '.';\n }\n if (normalizedPath && trailingSlash) {\n normalizedPath += '/';\n }\n return (isPathAbsolute ? '/' : '') + normalizedPath;\n}\n// posix version\n/** JSDoc */\nexport function isAbsolute(path) {\n return path.charAt(0) === '/';\n}\n// posix version\n/** JSDoc */\nexport function join() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return normalizePath(args.join('/'));\n}\n/** JSDoc */\nexport function dirname(path) {\n var result = splitPath(path);\n var root = result[0];\n var dir = result[1];\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n return root + dir;\n}\n/** JSDoc */\nexport function basename(path, ext) {\n var f = splitPath(path)[2];\n if (ext && f.substr(ext.length * -1) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n}\n//# sourceMappingURL=path.js.map","/**\n * Session Status\n */\nexport var SessionStatus;\n(function (SessionStatus) {\n /** JSDoc */\n SessionStatus[\"Ok\"] = \"ok\";\n /** JSDoc */\n SessionStatus[\"Exited\"] = \"exited\";\n /** JSDoc */\n SessionStatus[\"Crashed\"] = \"crashed\";\n /** JSDoc */\n SessionStatus[\"Abnormal\"] = \"abnormal\";\n})(SessionStatus || (SessionStatus = {}));\nexport var RequestSessionStatus;\n(function (RequestSessionStatus) {\n /** JSDoc */\n RequestSessionStatus[\"Ok\"] = \"ok\";\n /** JSDoc */\n RequestSessionStatus[\"Errored\"] = \"errored\";\n /** JSDoc */\n RequestSessionStatus[\"Crashed\"] = \"crashed\";\n})(RequestSessionStatus || (RequestSessionStatus = {}));\n//# sourceMappingURL=session.js.map"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/dist/server/a4ab251d875f056f2460.server.js b/resources/[EGRP-Phone]/npwd/resources/dist/server/a4ab251d875f056f2460.server.js deleted file mode 100644 index 991e1ced2..000000000 --- a/resources/[EGRP-Phone]/npwd/resources/dist/server/a4ab251d875f056f2460.server.js +++ /dev/null @@ -1,25 +0,0 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"g",(function(){return d})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function d(){for(var e=[],t=0;t=e?n:("000000000000"+n).slice(-e)}const c="-".charCodeAt(0),l="+".charCodeAt(0),d=".".charCodeAt(0),f="e".charCodeAt(0),_="E".charCodeAt(0);class h{constructor(e,t,n,r){this.sequenceId=e,this.numPackets=1,this.buffer=t,this.start=n,this.offset=n+4,this.end=r}reset(){this.offset=this.start+4}length(){return this.end-this.start}slice(){return this.buffer.slice(this.start,this.end)}dump(){console.log([this.buffer.asciiSlice(this.start,this.end)],this.buffer.slice(this.start,this.end),this.length(),this.sequenceId)}haveMoreData(){return this.end>this.offset}skip(e){this.offset+=e}readInt8(){return this.buffer[this.offset++]}readInt16(){return this.offset+=2,this.buffer.readUInt16LE(this.offset-2)}readInt24(){return this.readInt16()+(this.readInt8()<<16)}readInt32(){return this.offset+=4,this.buffer.readUInt32LE(this.offset-4)}readSInt8(){return this.buffer.readInt8(this.offset++)}readSInt16(){return this.offset+=2,this.buffer.readInt16LE(this.offset-2)}readSInt32(){return this.offset+=4,this.buffer.readInt32LE(this.offset-4)}readInt64JSNumber(){const e=this.readInt32(),t=this.readInt32();return new o(e,t,!0).toNumber()}readSInt64JSNumber(){const e=this.readInt32(),t=this.readInt32();if(!(2147483648&t))return e+4294967296*t;return new o(e,t,!1).toNumber()}readInt64String(){const e=this.readInt32(),t=this.readInt32();return new o(e,t,!0).toString()}readSInt64String(){const e=this.readInt32(),t=this.readInt32();return new o(e,t,!1).toString()}readInt64(){const e=this.readInt32(),t=this.readInt32();let n=new o(e,t,!0);const r=n.toNumber(),i=n.toString();return n=r.toString()===i?r:i,n}readSInt64(){const e=this.readInt32(),t=this.readInt32();let n=new o(e,t,!1);const r=n.toNumber(),i=n.toString();return n=r.toString()===i?r:i,n}isEOF(){return 254===this.buffer[this.offset]&&this.length()<13}eofStatusFlags(){return this.buffer.readInt16LE(this.offset+3)}eofWarningCount(){return this.buffer.readInt16LE(this.offset+1)}readLengthCodedNumber(e,t){const n=this.buffer[this.offset++];return n<251?n:this.readLengthCodedNumberExt(n,e,t)}readLengthCodedNumberSigned(e){return this.readLengthCodedNumber(e,!0)}readLengthCodedNumberExt(e,t,n){let r,i,s;if(251===e)return null;if(252===e)return this.readInt8()+(this.readInt8()<<8);if(253===e)return this.readInt8()+(this.readInt8()<<8)+(this.readInt8()<<16);if(254===e){if(r=this.readInt32(),i=this.readInt32(),0===i)return r;if(i<2097152)return 4294967296*i+r;s=new o(r,i,!n);const e=s.toNumber(),a=s.toString();return s=e.toString()===a?e:a,t?a:s}throw console.trace(),new Error("Should not reach here: "+e)}readFloat(){const e=this.buffer.readFloatLE(this.offset);return this.offset+=4,e}readDouble(){const e=this.buffer.readDoubleLE(this.offset);return this.offset+=8,e}readBuffer(e){return void 0===e&&(e=this.end-this.offset),this.offset+=e,this.buffer.slice(this.offset-e,this.offset)}readDateTime(e){if(!e||"Z"===e||"local"===e){const t=this.readInt8();if(251===t)return null;let n=0,r=0,i=0,o=0,s=0,u=0,c=0;return t>3&&(n=this.readInt16(),r=this.readInt8(),i=this.readInt8()),t>6&&(o=this.readInt8(),s=this.readInt8(),u=this.readInt8()),t>10&&(c=this.readInt32()/1e3),n+r+i+o+s+u+c===0?a:"Z"===e?new Date(Date.UTC(n,r-1,i,o,s,u,c)):new Date(n,r-1,i,o,s,u,c)}let t=this.readDateTimeString(6,"T");return 10===t.length&&(t+="T00:00:00"),new Date(t+e)}readDateTimeString(e,t){const n=this.readInt8();let r,i=0,o=0,s=0,a=0,c=0,l=0,d=0;return n>3&&(i=this.readInt16(),o=this.readInt8(),s=this.readInt8(),r=[u(4,i),u(2,o),u(2,s)].join("-")),n>6&&(a=this.readInt8(),c=this.readInt8(),l=this.readInt8(),r+=`${t||" "}${[u(2,a),u(2,c),u(2,l)].join(":")}`),n>10&&(d=this.readInt32(),r+=".",e&&(d=u(6,d),d.length>e&&(d=d.substring(0,e))),r+=d),r}readTimeString(e){const t=this.readInt8();if(0===t)return"00:00:00";const n=this.readInt8()?-1:1;let r=0,i=0,o=0,s=0,a=0;return t>6&&(r=this.readInt32(),i=this.readInt8(),o=this.readInt8(),s=this.readInt8()),t>10&&(a=this.readInt32()),e?(i+=24*r,o+=60*i,s+=60*o,a+=1e3*s,a*=n,a):(-1===n?"-":"")+[u(2,24*r+i),u(2,o),u(2,s)].join(":")+(a?("."+a).replace(/0+$/,""):"")}readLengthCodedString(e){const t=this.readLengthCodedNumber();return null===t?null:(this.offset+=t,s.decode(this.buffer,e,this.offset-t,this.offset))}readLengthCodedBuffer(){const e=this.readLengthCodedNumber();return null===e?null:this.readBuffer(e)}readNullTerminatedString(e){const t=this.offset;let n=this.offset;for(;this.buffer[n];)n+=1;return this.offset=n+1,s.decode(this.buffer,e,t,n)}readString(e,t){return"string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e&&(e=this.end-this.offset),this.offset+=e,s.decode(this.buffer,t,this.offset-e,this.offset)}parseInt(e,t){if(null===e)return null;if(e>=14&&!t){const t=this.buffer.toString("ascii",this.offset,this.offset+e);return this.offset+=e,Number(t)}let n=0;const r=this.offset,i=this.offset+e;let o,s=1;if(0===e)return 0;this.buffer[this.offset]===c&&(this.offset++,s=-1);const a=i-this.offset;if(t){if(a>=15)return o=this.readString(i-this.offset,"binary"),n=parseInt(o,10),n.toString()===o?s*n:-1===s?"-"+o:o;if(a>16)return o=this.readString(i-this.offset),-1===s?"-"+o:o}for(this.buffer[this.offset]===l&&this.offset++;this.offset0;o--)r=l?e.readDoubleLE(t):e.readDoubleBE(t),t+=8,i=l?e.readDoubleLE(t):e.readDoubleBE(t),t+=8,c.push({x:r,y:i});break;case 3:const d=l?e.readUInt32LE(t):e.readUInt32BE(t);for(t+=4,c=[],o=d;o>0;o--){for(a=l?e.readUInt32LE(t):e.readUInt32BE(t),t+=4,u=[],s=a;s>0;s--)r=l?e.readDoubleLE(t):e.readDoubleBE(t),t+=8,i=l?e.readDoubleLE(t):e.readDoubleBE(t),t+=8,u.push({x:r,y:i});c.push(u)}break;case 4:case 5:case 6:case 7:const f=l?e.readUInt32LE(t):e.readUInt32BE(t);for(t+=4,c=[],o=f;o>0;o--)c.push(n())}return c}()}parseDate(e){const t=this.readLengthCodedNumber();if(null===t)return null;if(10!==t)return new Date(NaN);const n=this.parseInt(4);this.offset++;const r=this.parseInt(2);this.offset++;const i=this.parseInt(2);return e&&"local"!==e?"Z"===e?new Date(Date.UTC(n,r-1,i)):new Date(`${u(4,n)}-${u(2,r)}-${u(2,i)}T00:00:00${e}`):new Date(n,r-1,i)}parseDateTime(e){const t=this.readLengthCodedString("binary");return null===t?null:e&&"local"!==e?new Date(`${t}${e}`):new Date(t)}parseFloat(e){if(null===e)return null;let t=0;const n=this.offset+e;let r=1,i=!1,o=0;if(0===e)return 0;for(this.buffer[this.offset]===c&&(this.offset++,r=-1),this.buffer[this.offset]===l&&this.offset++;this.offset>8)}writeInt16(e){this.buffer.writeUInt16LE(e,this.offset),this.offset+=2}writeInt8(e){this.buffer.writeUInt8(e,this.offset),this.offset++}writeDouble(e){this.buffer.writeDoubleLE(e,this.offset),this.offset+=8}writeBuffer(e){e.copy(this.buffer,this.offset),this.offset+=e.length}writeNull(){this.buffer[this.offset]=251,this.offset++}writeNullTerminatedString(e,t){const n=s.encode(e,t);this.buffer.length&&n.copy(this.buffer,this.offset),this.offset+=n.length,this.writeInt8(0)}writeString(e,t){if(null===e)return void this.writeInt8(251);if(0===e.length)return;const n=s.encode(e,t);this.buffer.length&&n.copy(this.buffer,this.offset),this.offset+=n.length}writeLengthCodedString(e,t){const n=s.encode(e,t);this.writeLengthCodedNumber(n.length),this.buffer.length&&n.copy(this.buffer,this.offset),this.offset+=n.length}writeLengthCodedBuffer(e){this.writeLengthCodedNumber(e.length),e.copy(this.buffer,this.offset),this.offset+=e.length}writeLengthCodedNumber(e){return e<251?this.writeInt8(e):e<65535?(this.writeInt8(252),this.writeInt16(e)):e<16777215?(this.writeInt8(253),this.writeInt24(e)):null===e?this.writeInt8(251):(this.writeInt8(254),this.buffer.writeUInt32LE(e,this.offset),this.offset+=4,this.buffer.writeUInt32LE(e>>32,this.offset),this.offset+=4,this.offset)}writeDate(e,t){if(this.buffer.writeUInt8(11,this.offset),t&&"local"!==t){if("Z"!==t){const n=("-"===t[0]?-1:1)*(60*parseInt(t.substring(1,3),10)+parseInt(t.substring(4),10));0!==n&&(e=new Date(e.getTime()+6e4*n))}this.buffer.writeUInt16LE(e.getUTCFullYear(),this.offset+1),this.buffer.writeUInt8(e.getUTCMonth()+1,this.offset+3),this.buffer.writeUInt8(e.getUTCDate(),this.offset+4),this.buffer.writeUInt8(e.getUTCHours(),this.offset+5),this.buffer.writeUInt8(e.getUTCMinutes(),this.offset+6),this.buffer.writeUInt8(e.getUTCSeconds(),this.offset+7),this.buffer.writeUInt32LE(1e3*e.getUTCMilliseconds(),this.offset+8)}else this.buffer.writeUInt16LE(e.getFullYear(),this.offset+1),this.buffer.writeUInt8(e.getMonth()+1,this.offset+3),this.buffer.writeUInt8(e.getDate(),this.offset+4),this.buffer.writeUInt8(e.getHours(),this.offset+5),this.buffer.writeUInt8(e.getMinutes(),this.offset+6),this.buffer.writeUInt8(e.getSeconds(),this.offset+7),this.buffer.writeUInt32LE(1e3*e.getMilliseconds(),this.offset+8);this.offset+=12}writeHeader(e){const t=this.offset;this.offset=0,this.writeInt24(this.buffer.length-4),this.writeInt8(e),this.offset=t}clone(){return new h(this.sequenceId,this.buffer,this.start,this.end)}type(){return this.isEOF()?"EOF":this.isError()?"Error":0===this.buffer[this.offset]?"maybeOK":""}static lengthCodedNumberLength(e){return e<251?1:e<65535?3:e<16777215?5:9}static lengthCodedStringLength(e,t){const n=s.encode(e,t).length;return h.lengthCodedNumberLength(n)+n}static MockBuffer(){const e=function(){},t=Buffer.alloc(0);for(const n in i.prototype)"function"==typeof t[n]&&(t[n]=e);return t}}e.exports=h},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(25),i={};function o(){return Object(r.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mainLogger=void 0;const i=r(n(286)),o=n(14),s=r(n(31));t.mainLogger=i.default.createLogger({level:o.config.debug.level,transports:[new i.default.transports.File({filename:""+s.default.join(GetResourcePath(GetCurrentResourceName()),"sv_npwd.log"),format:i.default.format.combine(i.default.format.errors({stack:!0}),i.default.format.timestamp(),i.default.format.json())}),new i.default.transports.Console({format:i.default.format.combine(i.default.format.label({label:"[NPWD]"}),i.default.format.colorize({all:!0}),i.default.format.printf(e=>{return e.module?`${e.label} ${t=e.module,`[${t}]`} [${e.level}]: ${e.message}`:`${e.label} [${e.level}]: ${e.message}`;var t}))})]})},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return a(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function a(e,t,n){return(a=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,n,r=(t=s,n=u(),function(){var e,r=l(t);if(n){var o=l(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return i(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),t=r.call(this,"Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ".concat(e.toString().split("\n")[0],"\n")),Error.captureStackTrace(o(t),s),t}return s}(s(Error));e.exports=function(e){if(e.length>2)throw new d(e);function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}function n(e){return new t(e)}return t.prototype.transform=e,n.Format=t,n}},,function(e,t,n){"use strict";class r extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${e.toString().split("\n")[0]}\n`),Error.captureStackTrace(this,r)}}e.exports=e=>{if(e.length>2)throw new r(e);function t(e={}){this.options=e}function n(e){return new t(e)}return t.prototype.transform=e,n.Format=t,n}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0;const s=n(415);t.config=JSON.parse(LoadResourceFile(GetCurrentResourceName(),"config.json")),n(62),n(348),n(380),n(384),n(388),n(392),n(396),n(398),n(399),n(402),n(407);const a=n(10),u=o(n(413));t.config.debug.sentryEnabled&&u.init({dsn:"https://5c5da180a57e4db1acb617ef2c6cb59f@sentry.projecterror.dev/3",integrations:[new s.RewriteFrames],release:process.env.SENTRY_RELEASE||"0.0.0",tracesSampleRate:1}),on("onServerResourceStart",e=>{e===GetCurrentResourceName()&&a.mainLogger.info("Sucessfully started")})},function(e,t,n){"use strict";var r=n(187),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n"}try{a.currentTarget=Object(o.a)(s.currentTarget)?Object(i.a)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(e){a.currentTarget=""}for(var u in"undefined"!=typeof CustomEvent&&Object(o.d)(e,CustomEvent)&&(a.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u]);return a}return e}function f(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function _(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=p(e,t);return f(r)>n?_(e,t-1,n):r}function h(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(o.i)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(a.a)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function E(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new s),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=h(e);return Object(o.f)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=h(t,e);if(Object(o.f)(i))return i;var a=d(t),u=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[c]=E(c,a[c],n-1,r));return r.unmemoize(t),u}function p(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return E(e,n,t)})))}catch(e){return"**non-serializable**"}}function g(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(u.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(u.d)(i,t)}return""}function R(e){var t,n;if(Object(o.e)(e)){var i=e,s={};try{for(var a=Object(r.h)(Object.keys(i)),u=a.next();!u.done;u=a.next()){var c=u.value;void 0!==i[c]&&(s[c]=R(i[c]))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return s}return Array.isArray(e)?e.map(R):e}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(349),s=n(109),a=n(351),u=i(n(182)),c=n(352),l=i(n(353)),d=n(60),f=i(n(183));n(379);const _=new class{constructor(){this.playersBySource=new u.default,this.playersByIdentifier=new u.default,this.playerDB=l.default,d.playerLogger.debug("Player Service started")}addPlayerToMaps(e,t){this.playersBySource.set(e,t),this.playersByIdentifier.set(t.getIdentifier(),t)}deletePlayerFromMaps(e){const t=this.playersBySource.get(e).getIdentifier();this.playersByIdentifier.delete(t),this.playersBySource.delete(e)}getPlayer(e){const t=this.playersBySource.get(e);return t||null}getIdentifier(e){return this.getPlayer(e).getIdentifier()}getPlayerFromIdentifier(e){const t=this.playersByIdentifier.get(e);return t||null}getIdentifierFromPhoneNumber(e,t){return r(this,void 0,void 0,(function*(){const n=this.playersBySource.find(t=>t.getPhoneNumber()===e);if(n)return n.getIdentifier();if(t){return yield this.playerDB.fetchIdentifierFromPhoneNumber(e).catch(t=>(d.playerLogger.error(`Failed to fetch identifier from phone number for ${e}, error: ${t.message}`),null))}return null}))}handleNewPlayerJoined(e){return r(this,void 0,void 0,(function*(){const t=(0,c.getPlayerGameLicense)(e);if(!t)throw new Error(`License identifier could not be found for source (${e})`);const n=GetPlayerName(e.toString());d.playerLogger.info(`Started loading for ${n} (${e})`);const r=yield(0,o.findOrGeneratePhoneNumber)(t),i=new a.Player({identifier:t,source:e,username:n,phoneNumber:r});this.addPlayerToMaps(e,i),d.playerLogger.info("NPWD Player Loaded!"),d.playerLogger.debug(i),emitNet(s.PhoneEvents.SET_PLAYER_LOADED,e,!0)}))}createNewPlayer({src:e,identifier:t,phoneNumber:n}){return r(this,void 0,void 0,(function*(){const r=GetPlayerName(e.toString());return n||(n=yield(0,o.findOrGeneratePhoneNumber)(t))?new a.Player({source:e,identifier:t,phoneNumber:n,username:r}):null}))}handleNewPlayerEvent({source:e,identifier:t,phoneNumber:n,firstname:i,lastname:o}){return r(this,void 0,void 0,(function*(){const r=yield this.createNewPlayer({src:e,identifier:t.toString(),phoneNumber:n});i&&r.setFirstName(i),o&&r.setLastName(o),this.addPlayerToMaps(e,r),d.playerLogger.info(`New NPWD Player added through event (${e}) (${t})`),d.playerLogger.debug(r),emitNet(s.PhoneEvents.SET_PLAYER_LOADED,e,!0)}))}getIdentifierByPhoneNumber(e,t){return r(this,void 0,void 0,(function*(){for(const[t,n]of this.playersBySource)if(n.getPhoneNumber()===e)return n.getIdentifier();if(t)return yield this.playerDB.fetchIdentifierFromPhoneNumber(e)}))}clearPlayerData(e){return r(this,void 0,void 0,(function*(){const t=this.getIdentifier(e);try{yield f.default.handleDeleteListingsOnDrop(t)}catch(e){d.playerLogger.error("Failed to clear player data when dropped, Error: "+e.message)}}))}handleUnloadPlayerEvent(e){return r(this,void 0,void 0,(function*(){yield this.clearPlayerData(e),this.deletePlayerFromMaps(e),emitNet(s.PhoneEvents.SET_PLAYER_LOADED,e,!1),d.playerLogger.info(`Unloaded NPWD Player, source: (${e})`)}))}};t.default=_},,function(e,t,n){"use strict";const r=n(65),i={AuthSwitchRequest:n(237),AuthSwitchRequestMoreData:n(238),AuthSwitchResponse:n(239),BinaryRow:n(240),BinlogDump:n(241),ChangeUser:n(242),CloseStatement:n(243),ColumnDefinition:n(244),Execute:n(245),Handshake:n(247),HandshakeResponse:n(248),PrepareStatement:n(249),PreparedStatementHeader:n(250),Query:n(251),RegisterSlave:n(252),ResultSetHeader:n(253),SSLRequest:n(256),TextRow:n(257)};Object.entries(i).forEach(([t,n])=>{if(e.exports[t]=n,r.env.NODE_DEBUG&&n.prototype.toPacket){const e=n.prototype.toPacket;n.prototype.toPacket=function(){const n=e.call(this);return n._name=t,n}}});const o=n(6);t.Packet=o;t.OK=class{static toPacket(e,t){const n=(e=e||{}).affectedRows||0,r=e.insertId||0,i=e.serverStatus||0,s=e.warningCount||0,a=e.message||"";let u=9+o.lengthCodedNumberLength(n);u+=o.lengthCodedNumberLength(r);const c=Buffer.allocUnsafe(u),l=new o(0,c,0,u);return l.offset=4,l.writeInt8(0),l.writeLengthCodedNumber(n),l.writeLengthCodedNumber(r),l.writeInt16(i),l.writeInt16(s),l.writeString(a,t),l._name="OK",l}};t.EOF=class{static toPacket(e,t){void 0===e&&(e=0),void 0===t&&(t=0);const n=new o(0,Buffer.allocUnsafe(9),0,9);return n.offset=4,n.writeInt8(254),n.writeInt16(e),n.writeInt16(t),n._name="EOF",n}};class s{static toPacket(e,t){const n=13+Buffer.byteLength(e.message,"utf8"),r=new o(0,Buffer.allocUnsafe(n),0,n);return r.offset=4,r.writeInt8(255),r.writeInt16(e.code),r.writeString("#_____",t),r.writeString(e.message,t),r._name="Error",r}static fromPacket(e){e.readInt8();const t=e.readInt16();e.readString(1,"ascii"),e.readString(5,"ascii");const n=e.readNullTerminatedString("utf8"),r=new s;return r.message=n,r.code=t,r}}t.Error=s},function(e,t,n){"use strict";const r=n(26).EventEmitter,i=n(83);e.exports=class extends r{constructor(){super(),this.next=null}stateName(){const e=this.next;for(const t in this)if(this[t]===e&&"next"!==t)return t;return"unknown name"}execute(e,t){if(this.next||(this.next=this.start,t._resetSequenceId()),e&&e.isError()){const n=e.asError(t.clientEncoding);return n.sql=this.sql||this.query,this.queryTimeout&&(i.clearTimeout(this.queryTimeout),this.queryTimeout=null),this.onResult?(this.onResult(n),this.emit("end")):(this.emit("error",n),this.emit("end")),!0}return this.next=this.next(e,t),!this.next&&(this.emit("end"),!0)}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(62),o=n(10),s=n(14),a=n(350),u=GetCurrentResourceName();const c=new class{constructor(){this.logger=o.mainLogger.child({module:"DBInterface"})}_internalQuery(e,t){return r(this,void 0,void 0,(function*(){try{return s.config.database.profileQueries?yield(0,a.withProfile)(i.pool.execute,e,t):(ScheduleResourceTick(u),yield i.pool.query(e,t))}catch(t){this.logger.error(`Error executing ${e} with error message ${t.message}`)}}))}_rawExec(e,t){return ScheduleResourceTick(u),i.pool.query(e,t)}exec(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield this._internalQuery(e,t);return n.affectedRows}))}insert(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield this._internalQuery(e,t);return n.insertId}))}fetch(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield this._internalQuery(e,t);return n}))}};t.default=c},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("url")},function(e,t,n){"use strict";(function(e){function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}function o(t){var n;try{n=i(e,t)}catch(e){}try{var r=i(e,"process").cwd;n=i(e,r()+"/node_modules/"+t)}catch(e){}return n}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}))}).call(this,n(80)(e))},function(e,t){e.exports=require("events")},function(e,t,n){"use strict";e.exports={SLEEP:0,QUIT:1,INIT_DB:2,QUERY:3,FIELD_LIST:4,CREATE_DB:5,DROP_DB:6,REFRESH:7,SHUTDOWN:8,STATISTICS:9,PROCESS_INFO:10,CONNECT:11,PROCESS_KILL:12,DEBUG:13,PING:14,TIME:15,DELAYED_INSERT:16,CHANGE_USER:17,BINLOG_DUMP:18,TABLE_DUMP:19,CONNECT_OUT:20,REGISTER_SLAVE:21,STMT_PREPARE:22,STMT_EXECUTE:23,STMT_SEND_LONG_DATA:24,STMT_CLOSE:25,STMT_RESET:26,SET_OPTION:27,STMT_FETCH:28,DAEMON:29,BINLOG_DUMP_GTID:30,UNKNOWN:255}},function(e,t,n){"use strict";e.exports=["utf8","big5","latin2","dec8","cp850","latin1","hp8","koi8r","latin1","latin2","swe7","ascii","eucjp","sjis","cp1251","latin1","hebrew","utf8","tis620","euckr","latin7","latin2","koi8u","cp1251","gb2312","greek","cp1250","latin2","gbk","cp1257","latin5","latin1","armscii8","cesu8","cp1250","ucs2","cp866","keybcs2","macintosh","macroman","cp852","latin7","latin7","macintosh","cp1250","utf8","utf8","latin1","latin1","latin1","cp1251","cp1251","cp1251","macroman","utf16","utf16","utf16-le","cp1256","cp1257","cp1257","utf32","utf32","utf16-le","binary","armscii8","ascii","cp1250","cp1256","cp866","dec8","greek","hebrew","hp8","keybcs2","koi8r","koi8u","cesu8","latin2","latin5","latin7","cp850","cp852","swe7","cesu8","big5","euckr","gb2312","gbk","sjis","tis620","ucs2","eucjp","geostd8","geostd8","latin1","cp932","cp932","eucjpms","eucjpms","cp1250","utf8","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf16","utf8","utf8","utf8","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","ucs2","utf8","utf8","utf8","utf8","utf8","utf8","utf8","ucs2","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf32","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","cesu8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","cesu8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","gb18030","gb18030","gb18030","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8","utf8"]},function(e,t,n){"use strict";const r=t.format=n(13);function i(e,t){t=t||e,Object.defineProperty(r,e,{get:()=>n(301)(`./${t}.js`),configurable:!0})}t.levels=n(87),i("align"),i("errors"),i("cli"),i("combine"),i("colorize"),i("json"),i("label"),i("logstash"),i("metadata"),i("ms"),i("padLevels","pad-levels"),i("prettyPrint","pretty-print"),i("printf"),i("simple"),i("splat"),i("timestamp"),i("uncolorize")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t,n){"use strict";var r,i=n(39),o=i.Buffer,s={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(s[r]=i[r]);var a=s.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(a[r]=o[r]);if(s.Buffer.prototype=o.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,n)}),a.alloc||(a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=o(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!s.kStringMaxLength)try{s.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),e.exports=s},function(e,t,n){try{var r=n(7);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(316)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emitNetTyped=t.onNetTyped=t.clean=t.getSource=void 0;t.getSource=()=>global.source;t.clean=e=>e?e.replace(/[^0-9a-z]/gi,""):e;t.onNetTyped=(e,t)=>onNet(e,t);t.emitNetTyped=(e,t,n)=>{if(n)return emitNet(e,n,t);emitNet(e,t)}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.onNetPromise=void 0;const i=n(35),o=n(10).mainLogger.child({module:"events"});t.onNetPromise=function(e,t){onNet(e,(n,s)=>r(this,void 0,void 0,(function*(){const r=process.hrtime.bigint(),a=(0,i.getSource)();if(!n)return o.warn(`Promise event (${e}) was called with wrong struct by ${a} (maybe originator wasn't a promiseEvent`);const u={source:a,data:s};o.silly(`netPromise > ${e} > RequestObj`),o.silly(u);const c=e=>{const t=process.hrtime.bigint(),i=Number(t-r)/1e6;emitNet(n,a,e),o.silly(`Response Promise Event ${n} (${i}ms), Data >>`),o.silly(e)};Promise.resolve(t(u,c)).catch(t=>{o.error(`An error occured for a onNetPromise (${e}), Error: ${t.message}`),c({status:"error",errorMsg:"UNKNOWN_ERROR"})})})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return E})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return R})),n.d(t,"f",(function(){return A}));var r=n(0),i=n(419),o=n(117),s=n(55),a=n(4),u=n(9),c=n(25),l=n(78),d=n(17),f=function(){function e(e){this.errors=0,this.sid=Object(o.i)(),this.duration=0,this.status=i.b.Ok,this.init=!0,this.ignoreDuration=!1;var t=Object(s.c)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Object(s.c)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:Object(o.i)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===i.b.Ok?this.update({status:i.b.Exited}):this.update()},e.prototype.toJSON=function(){return Object(d.a)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(d.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),_=function(){function e(e,t,n){void 0===t&&(t=new l.a),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version{n.indexOf(i)>=0&&!t.listenerCount(i)&&e.on(i,r[i]=function(){const e=[].slice.call(arguments);e.unshift(i),t.emit.apply(t,e)})}).on("removeListener",i=>{n.indexOf(i)>=0&&!t.listenerCount(i)&&(e.removeListener(i,r[i]),delete r[i])})}class a{constructor(e,t){this.statement=e,this.Promise=t}execute(e){const t=this.statement,n=new Error;return new this.Promise((r,i)=>{const s=o(r,i,n);e?t.execute(e,s):t.execute(s)})}close(){return new this.Promise(e=>{this.statement.close(),e()})}}class u extends i{constructor(e,t){super(),this.connection=e,this.Promise=t||Promise,s(e,this,["error","drain","connect","end","enqueue"])}release(){this.connection.release()}query(e,t){const n=this.connection,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);void 0!==t?n.query(e,t,a):n.query(e,a)})}execute(e,t){const n=this.connection,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);void 0!==t?n.execute(e,t,a):n.execute(e,a)})}end(){return new this.Promise(e=>{this.connection.end(e)})}beginTransaction(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{const i=o(n,r,t);e.beginTransaction(i)})}commit(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{const i=o(n,r,t);e.commit(i)})}rollback(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{const i=o(n,r,t);e.rollback(i)})}ping(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{const i=o(n,r,t);e.ping(i)})}connect(){const e=this.connection,t=new Error;return new this.Promise((n,r)=>{e.connect((e,i)=>{e?(t.message=e.message,t.code=e.code,t.errno=e.errno,t.sqlState=e.sqlState,t.sqlMessage=e.sqlMessage,r(t)):n(i)})})}prepare(e){const t=this.connection,n=this.Promise,r=new Error;return new this.Promise((i,o)=>{t.prepare(e,(e,t)=>{if(e)r.message=e.message,r.code=e.code,r.errno=e.errno,r.sqlState=e.sqlState,r.sqlMessage=e.sqlMessage,o(r);else{const e=new a(t,n);i(e)}})})}changeUser(e){const t=this.connection,n=new Error;return new this.Promise((r,i)=>{t.changeUser(e,e=>{e?(n.message=e.message,n.code=e.code,n.errno=e.errno,n.sqlState=e.sqlState,n.sqlMessage=e.sqlMessage,i(n)):r()})})}get config(){return this.connection.config}get threadId(){return this.connection.threadId}}!function(e){for(let t=0;e&&t{e.getConnection((e,r)=>{e?n(e):t(new c(r,this.Promise))})})}query(e,t){const n=this.pool,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);void 0!==t?n.query(e,t,a):n.query(e,a)})}execute(e,t){const n=this.pool,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);t?n.execute(e,t,a):n.execute(e,a)})}end(){const e=this.pool,t=new Error;return new this.Promise((n,r)=>{e.end(e=>{e?(t.message=e.message,t.code=e.code,t.errno=e.errno,t.sqlState=e.sqlState,t.sqlMessage=e.sqlMessage,r(t)):n()})})}}!function(e){for(let t=0;e&&t{e.getConnection((e,r)=>{e?n(e):t(new c(r,this.Promise))})})}query(e,t){const n=this.poolCluster,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);n.query(e,t,a)})}execute(e,t){const n=this.poolCluster,r=new Error;if("function"==typeof t)throw new Error("Callback function is not available with promise clients.");return new this.Promise((i,s)=>{const a=o(i,s,r);n.execute(e,t,a)})}of(e,t){return new d(this.poolCluster.of(e,t),this.Promise)}end(){const e=this.poolCluster,t=new Error;return new this.Promise((n,r)=>{e.end(e=>{e?(t.message=e.message,t.code=e.code,t.errno=e.errno,t.sqlState=e.sqlState,t.sqlMessage=e.sqlMessage,r(t)):n()})})}}!function(e){for(let t=0;e&&t{t.once("connect",()=>{e(new u(t,i))}),t.once("error",e=>{n.message=e.message,n.code=e.code,n.errno=e.errno,n.sqlState=e.sqlState,r(n)})})},t.createPool=function(e){const t=r.createPool(e),n=e.Promise||Promise;if(!n)throw new Error("no Promise implementation available.Use promise-enabled node version or pass userland Promise implementation as parameter, for example: { Promise: require('bluebird') }");return new l(t,n)},t.createPoolCluster=function(e){const t=r.createPoolCluster(e),n=e&&e.Promise||Promise;if(!n)throw new Error("no Promise implementation available.Use promise-enabled node version or pass userland Promise implementation as parameter, for example: { Promise: require('bluebird') }");return new d(t,n)},t.escape=r.escape,t.escapeId=r.escapeId,t.format=r.format,t.raw=r.raw,t.PromisePool=l,t.PromiseConnection=u,t.PromisePoolConnection=c},function(e,t){e.exports=require("buffer")},function(e,t,n){"use strict";t.LONG_PASSWORD=1,t.FOUND_ROWS=2,t.LONG_FLAG=4,t.CONNECT_WITH_DB=8,t.NO_SCHEMA=16,t.COMPRESS=32,t.ODBC=64,t.LOCAL_FILES=128,t.IGNORE_SPACE=256,t.PROTOCOL_41=512,t.INTERACTIVE=1024,t.SSL=2048,t.IGNORE_SIGPIPE=4096,t.TRANSACTIONS=8192,t.RESERVED=16384,t.SECURE_CONNECTION=32768,t.MULTI_STATEMENTS=65536,t.MULTI_RESULTS=131072,t.PS_MULTI_RESULTS=262144,t.PLUGIN_AUTH=524288,t.CONNECT_ATTRS=1048576,t.PLUGIN_AUTH_LENENC_CLIENT_DATA=2097152,t.CAN_HANDLE_EXPIRED_PASSWORDS=4194304,t.SESSION_TRACK=8388608,t.DEPRECATE_EOF=16777216,t.SSL_VERIFY_SERVER_CERT=1073741824,t.REMEMBER_OPTIONS=2147483648},function(e,t,n){"use strict";const r={};function i(e,t,n){n||(n=Error);class i extends n{constructor(e,n,r){super(function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(e,n,r))}}i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map(e=>String(e)),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){let r;var i,s;let a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a=`The ${e} ${r} ${o(t,"type")}`;else{a=`The "${e}" ${function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument"} ${r} ${o(t,"type")}`}return a+=". Received type "+typeof n,a}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return p}));var r=n(0),i=n(37),o=n(79),s=n(4),a=n(25),u=n(211),c=n(52),l=n(53),d=n(2);function f(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function _(e,t,n){return Object(d.c)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:o.a.Explicit}}),e):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:o.a.Sampler,rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:o.a.Inheritance}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:o.a.Rate,rate:Number(r)}})),function(e){if(isNaN(e)||"number"!=typeof e&&"boolean"!=typeof e)return s.b.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return s.b.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(r)?r?(e.sampled=Math.random()0&&(t.__SENTRY__.integrations=Object(r.g)(t.__SENTRY__.integrations||[],o))}}(),Object(u.a)()}}).call(this,n(80)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(0),i=n(117),o=n(55),s=n(17),a=n(8),u=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),c=function(){function e(e){if(this.traceId=Object(i.i)(),this.spanId=Object(i.i)().substring(16),this.startTimestamp=Object(o.d)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e(Object(r.a)(Object(r.a)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=Object(r.a)(Object(r.a)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=Object(r.a)(Object(r.a)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=a.a.fromHttpCode(e);return t!==a.a.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===a.a.Ok},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:Object(o.d)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return Object(s.a)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,i,o;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(i=e.tags)?i:{},this.traceId=null!=(o=e.traceId)?o:this.traceId,this},e.prototype.getTraceContext=function(){return Object(s.a)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return Object(s.a)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var r=n(5);function i(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),ot?1:0}function s(e,t,i){var s,u=function e(t,i,s,a){var u;if("object"==typeof t&&null!==t){for(u=0;u0)for(var i=0;i{this.levels=e.levels,this.parent=e}),this.once("unpipe",e=>{e===this.parent&&(this.parent=null,this.close&&this.close())})};r.inherits(s,i),s.prototype._write=function(e,t,n){if(this.silent||!0===e.exception&&!this.handleExceptions)return n(null);const r=this.level||this.parent&&this.parent.level;if(!r||this.levels[r]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,n);let t,r;try{r=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!r){if(n(),t)throw t;return}return this.log(r,n)}return n(null)},s.prototype._writev=function(e,t){if(this.logv){const n=e.filter(this._accept,this);return n.length?this.logv(n,t):t(null)}for(let n=0;n=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},s.prototype._nop=function(){},e.exports.LegacyTransportStream=n(163)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var r,i=n(323),o=(r=i)&&r.__esModule?r:{default:r};function s(e){return"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return s(e)?(0,o.default)(e):e},t.isAsync=s,t.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},t.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]}},function(e,t,n){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(167),o=n(171);n(34)(c,i);for(var s=r(o.prototype),a=0;a=3?(o.b.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(a.a.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;o.b.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(u.a);function f(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(37),o=n(416),s=n(5),a=n(4),u=n(17),c=n(45),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=Object(i.b)(),Object(s.d)(n,i.a)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return Object(r.c)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new c.b(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=Object(r.a)({},e)},t.prototype.setMetadata=function(e){this.metadata=Object(r.a)(Object(r.a)({},this.metadata),e)},t.prototype.finish=function(t){var n,r,i,s,u,c=this;if(void 0===this.endTimestamp){if(this.name||(a.b.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0!==this.sampled)return a.b.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(null===(u=null===(i=null===(n=this._hub.getClient())||void 0===n?void 0:(r=n).getTransport)||void 0===i?void 0:(s=i.call(r)).recordLostEvent)||void 0===u||u.call(s,o.a.SampleRate,"transaction"));var l=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==c&&e.endTimestamp})):[];this._trimEnd&&l.length>0&&(this.endTimestamp=l.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var d={contexts:{trace:this.getTraceContext()},spans:l,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata};return Object.keys(this._measurements).length>0&&(a.b.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),d.measurements=this._measurements),a.b.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(d)}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return Object(u.a)(Object(r.a)(Object(r.a)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(c.a)},function(e,t){e.exports=require("domain")},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(9),i=n(25),o={nowSeconds:function(){return Date.now()/1e3}};var s=Object(i.b)()?function(){try{return Object(i.a)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=Object(r.a)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),a=void 0===s?o:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},u=o.nowSeconds.bind(o),c=a.nowSeconds.bind(a),l=c,d=function(){var e=Object(r.a)().performance;if(e&&e.now){var t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=i<36e5,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+t-n):36e5;return o||a<36e5?i<=a?("timeOrigin",e.timeOrigin):("navigationStart",s):("dateNow",n)}"none"}()}).call(this,n(80)(e))},function(e,t,n){"use strict";t.DECIMAL=0,t.TINY=1,t.SHORT=2,t.LONG=3,t.FLOAT=4,t.DOUBLE=5,t.NULL=6,t.TIMESTAMP=7,t.LONGLONG=8,t.INT24=9,t.DATE=10,t.TIME=11,t.DATETIME=12,t.YEAR=13,t.NEWDATE=14,t.VARCHAR=15,t.BIT=16,t.JSON=245,t.NEWDECIMAL=246,t.ENUM=247,t.SET=248,t.TINY_BLOB=249,t.MEDIUM_BLOB=250,t.LONG_BLOB=251,t.BLOB=252,t.VAR_STRING=253,t.STRING=254,t.GEOMETRY=255},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),t.colors&&this.addColors(t.colors),this.options=t}var t,n,s;return t=e,s=[{key:"addColors",value:function(t){var n=Object.keys(t).reduce((function(e,n){return e[n]=c.test(t[n])?t[n].split(c):t[n],e}),{});return e.allColors=Object.assign({},e.allColors||{},n),e.allColors}}],(n=[{key:"addColors",value:function(t){return e.addColors(t)}},{key:"colorize",value:function(t,n,r){if(void 0===r&&(r=n),!Array.isArray(e.allColors[t]))return o[e.allColors[t]](r);for(var i=0,s=e.allColors[t].length;i{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)})}},e.exports=t.default},function(e,t,n){var r=n(32);"disable"===process.env.READABLE_STREAM&&r?(e.exports=r.Readable,Object.assign(e.exports,r),e.exports.Stream=r):((t=e.exports=n(167)).Stream=r||t,t.Readable=t,t.Writable=n(171),t.Duplex=n(51),t.Transform=n(173),t.PassThrough=n(335),t.finished=n(106),t.pipeline=n(336))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProfileNames=t.playerLogger=void 0;const o=n(10),s=i(n(18));t.playerLogger=o.mainLogger.child({module:"player"});t.getDefaultProfileNames=function(e){return r(this,void 0,void 0,(function*(){const t=[],n=s.default.getPlayer(e);return n.getFirstName()&&n.getLastName()?t.push(`${n.getFirstName()}_${n.getLastName()}`):n.getFirstName()?t.push(n.getFirstName()):n.getLastName()&&t.push(n.getLastName()),n.getPhoneNumber()&&t.push(n.getPhoneNumber()),t}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r,i=n(5);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var o=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&(Object(i.j)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==r.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===r.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===r.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,s){e.resolve(t).then((function(e){o[s]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}()},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withTransaction=t.pool=t.generateConnectionPool=void 0;const o=i(n(38)),s=n(285),a=n(10),u=GetConvar(s.CONNECTION_STRING,"none");if("none"===u){const e=new Error(`No connection string provided. make sure "${s.CONNECTION_STRING}" is set in your config.`);throw a.mainLogger.error(e.message),e}function c(){try{const e=u.includes("mysql://")?{uri:u}:(0,s.parseSemiColonFormat)(u);return o.default.createPool(Object.assign({connectTimeout:6e4},e))}catch(e){a.mainLogger.error("SQL Connection Pool Error: "+e.message,{connection:u})}}t.generateConnectionPool=c,t.pool=c(),t.withTransaction=function(e){return r(this,void 0,void 0,(function*(){const n=yield t.pool.getConnection();n.beginTransaction();try{const t=yield Promise.all(e);return yield n.commit(),yield n.release(),t}catch(e){return a.mainLogger.warn("Error when submitting queries in transaction, "+e.message),yield n.rollback(),yield n.release(),Promise.reject(e)}}))}},function(e,t,n){"use strict";const r=n(82),i=n(120),o=n(83),s=n(26).EventEmitter,a=n(32).Readable,u=n(121),c=n(119),l=n(122),d=n(123),f=n(20),_=n(258),h=n(67),E=n(28);let p=0,g=null;class R extends s{constructor(e){let t;if(super(),this.config=e.config,e.config.stream?"function"==typeof e.config.stream?this.stream=e.config.stream(e):this.stream=e.config.stream:e.config.socketPath?this.stream=r.connect(e.config.socketPath):(this.stream=r.connect(e.config.port,e.config.host),this.stream.setKeepAlive(!0,this.config.keepAliveInitialDelay)),this._internalId=p++,this._commands=new u,this._command=null,this._paused=!1,this._paused_packets=new u,this._statements=new l({max:this.config.maxPreparedStatements,dispose:function(e,t){t.close()}}),this.serverCapabilityFlags=0,this.authorized=!1,this.sequenceId=0,this.compressedSequenceId=0,this.threadId=null,this._handshakePacket=null,this._fatalError=null,this._protocolError=null,this._outOfOrderPackets=[],this.clientEncoding=E[this.config.charsetNumber],this.stream.on("error",this._handleNetworkError.bind(this)),this.packetParser=new d(e=>{this.handlePacket(e)}),this.stream.on("data",e=>{this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),this.packetParser.execute(e)}),this.stream.on("close",()=>{this._closing||(this._protocolError||(this._protocolError=new Error("Connection lost: The server closed the connection."),this._protocolError.fatal=!0,this._protocolError.code="PROTOCOL_CONNECTION_LOST"),this._notifyError(this._protocolError))}),this.config.isServer||(t=new _.ClientHandshake(this.config.clientFlags),t.on("end",()=>{!t.handshake||this._fatalError||this._protocolError||(this._handshakePacket=t.handshake,this.threadId=t.handshake.connectionId,this.emit("connect",t.handshake))}),t.on("error",e=>{this._closing=!0,this._notifyError(e)}),this.addCommand(t)),this.serverEncoding="utf8",this.config.connectTimeout){const e=this._handleTimeoutError.bind(this);this.connectTimeout=o.setTimeout(e,this.config.connectTimeout)}}promise(e){return new(0,n(38).PromiseConnection)(this,e)}_addCommandClosedState(e){const t=new Error("Can't add new command when connection is in closed state");t.fatal=!0,e.onResult?e.onResult(t):this.emit("error",t)}_handleFatalError(e){e.fatal=!0,this.stream.removeAllListeners("data"),this.addCommand=this._addCommandClosedState,this.write=()=>{this.emit("error",new Error("Can't write in closed state"))},this._notifyError(e),this._fatalError=e}_handleNetworkError(e){this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),"ECONNRESET"===e.errno&&this._closing||this._handleFatalError(e)}_handleTimeoutError(){this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),this.stream.destroy&&this.stream.destroy();const e=new Error("connect ETIMEDOUT");e.errorno="ETIMEDOUT",e.code="ETIMEDOUT",e.syscall="connect",this._handleNetworkError(e)}_notifyError(e){if(this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),this._fatalError)return;let t,n=!this._command;for(this._command&&this._command.onResult?(this._command.onResult(e),this._command=null):this._command&&this._command.constructor===_.ClientHandshake&&this._commands.length>0||(n=!0);t=this._commands.shift();)t.onResult?t.onResult(e):n=!0;(n||this._pool)&&this.emit("error",e),e.fatal&&this.close()}write(e){this.stream.write(e,e=>{e&&this._handleNetworkError(e)})||this.stream.emit("pause")}_resetSequenceId(){this.sequenceId=0,this.compressedSequenceId=0}_bumpCompressedSequenceId(e){this.compressedSequenceId+=e,this.compressedSequenceId%=256}_bumpSequenceId(e){this.sequenceId+=e,this.sequenceId%=256}writePacket(e){const t=e.length();let n,r,i;if(t<16777215)e.writeHeader(this.sequenceId),this.config.debug&&(console.log(`${this._internalId} ${this.connectionId} <== ${this._command._commandName}#${this._command.stateName()}(${[this.sequenceId,e._name,e.length()].join(",")})`),console.log(`${this._internalId} ${this.connectionId} <== ${e.buffer.toString("hex")}`)),this._bumpSequenceId(1),this.write(e.buffer);else for(this.config.debug&&(console.log(`${this._internalId} ${this.connectionId} <== Writing large packet, raw content not written:`),console.log(`${this._internalId} ${this.connectionId} <== ${this._command._commandName}#${this._command.stateName()}(${[this.sequenceId,e._name,e.length()].join(",")})`)),r=4;r<4+t;r+=16777215)n=e.buffer.slice(r,r+16777215),i=16777215===n.length?Buffer.from([255,255,255,this.sequenceId]):Buffer.from([255&n.length,n.length>>8&255,n.length>>16&255,this.sequenceId]),this._bumpSequenceId(1),this.write(i),this.write(n)}startTLS(e){this.config.debug&&console.log("Upgrading connection to TLS");const t=i.createSecureContext({ca:this.config.ssl.ca,cert:this.config.ssl.cert,ciphers:this.config.ssl.ciphers,key:this.config.ssl.key,passphrase:this.config.ssl.passphrase,minVersion:this.config.ssl.minVersion}),n=this.config.ssl.rejectUnauthorized;let r=!1;const o=new i.TLSSocket(this.stream,{rejectUnauthorized:n,requestCert:!0,secureContext:t,isServer:!1});o.on("_tlsError",t=>{r?this._handleNetworkError(t):e(t)}),o.on("secure",()=>{r=!0,e(n?o.ssl.verifyError():null)}),o.on("data",e=>{this.packetParser.execute(e)}),this.write=e=>{o.write(e)},o._start()}pipe(){this.stream instanceof r.Stream?this.stream.ondata=(e,t,n)=>{this.packetParser.execute(e,t,n)}:this.stream.on("data",e=>{this.packetParser.execute(e.parent,e.offset,e.offset+e.length)})}protocolError(e,t){if(this._closing)return;const n=new Error(e);n.fatal=!0,n.code=t||"PROTOCOL_ERROR",this.emit("error",n)}handlePacket(e){if(this._paused)return void this._paused_packets.push(e);if(e){if(this.sequenceId!==e.sequenceId){const t=new Error(`Warning: got packets out of order. Expected ${this.sequenceId} but received ${e.sequenceId}`);t.expected=this.sequenceId,t.received=e.sequenceId,this.emit("warn",t),console.error(t.message)}this._bumpSequenceId(e.numPackets)}if(this.config.debug&&e){console.log(" raw: "+e.buffer.slice(e.offset,e.offset+e.length()).toString("hex")),console.trace();const t=this._command?this._command._commandName:"(no command)",n=this._command?this._command.stateName():"(no command)";console.log(`${this._internalId} ${this.connectionId} ==> ${t}#${n}(${[e.sequenceId,e.type(),e.length()].join(",")})`)}if(!this._command){if(255===e.peekByte()){const t=f.Error.fromPacket(e);this.protocolError(t.message,t.code)}else this.protocolError("Unexpected packet while no commands in the queue","PROTOCOL_UNEXPECTED_PACKET");return void this.close()}this._command.execute(e,this)&&(this._command=this._commands.shift(),this._command&&(this.sequenceId=0,this.compressedSequenceId=0,this.handlePacket()))}addCommand(e){if(this.config.debug){const t=e.constructor.name;console.log("Add command: "+t),e._commandName=t}return this._command?this._commands.push(e):(this._command=e,this.handlePacket()),e}format(e,t){if("function"==typeof this.config.queryFormat)return this.config.queryFormat.call(this,e,t,this.config.timezone);const n={sql:e,values:t};return this._resolveNamedPlaceholders(n),c.format(n.sql,n.values,this.config.stringifyObjects,this.config.timezone)}escape(e){return c.escape(e,!1,this.config.timezone)}escapeId(e){return c.escapeId(e,!1)}raw(e){return c.raw(e)}_resolveNamedPlaceholders(e){let t;if(this.config.namedPlaceholders||e.namedPlaceholders){if(Array.isArray(e.values))return;null===g&&(g=n(279)()),t=g(e.sql,e.values),e.sql=t[0],e.values=t[1]}}query(e,t,n){let r;r=e.constructor===_.Query?e:R.createQuery(e,t,n,this.config),this._resolveNamedPlaceholders(r);const i=this.format(r.sql,void 0!==r.values?r.values:[]);return r.sql=i,this.addCommand(r)}pause(){this._paused=!0,this.stream.pause()}resume(){let e;for(this._paused=!1;e=this._paused_packets.shift();)if(this.handlePacket(e),this._paused)return;this.stream.resume()}prepare(e,t){return"string"==typeof e&&(e={sql:e}),this.addCommand(new _.Prepare(e,t))}unprepare(e){let t={};"object"==typeof e?t=e:t.sql=e;const n=R.statementKey(t),r=this._statements.get(n);return r&&(this._statements.del(n),r.close()),r}execute(e,t,n){let r={};if("object"==typeof e?(r=e,"function"==typeof t?n=t:r.values=r.values||t):"function"==typeof t?(n=t,r.sql=e,r.values=void 0):(r.sql=e,r.values=t),this._resolveNamedPlaceholders(r),r.values){if(!Array.isArray(r.values))throw new TypeError("Bind parameters must be array if namedPlaceholders parameter is not enabled");r.values.forEach(e=>{if(!Array.isArray(r.values))throw new TypeError("Bind parameters must be array if namedPlaceholders parameter is not enabled");if(void 0===e)throw new TypeError("Bind parameters must not contain undefined. To pass SQL NULL specify JS null");if("function"==typeof e)throw new TypeError("Bind parameters must not contain function(s). To pass the body of a function as a string call .toString() first")})}const i=new _.Execute(r,n),o=new _.Prepare(r,(e,t)=>{if(e)return i.start=function(){return null},n?n(e):i.emit("error",e),void i.emit("end");i.statement=t});return this.addCommand(o),this.addCommand(i),i}changeUser(e,t){t||"function"!=typeof e||(t=e,e={});const n=e.charset?h.getCharsetNumber(e.charset):this.config.charsetNumber;return this.addCommand(new _.ChangeUser({user:e.user||this.config.user,password:e.password||this.config.password,passwordSha1:e.passwordSha1||this.config.passwordSha1,database:e.database||this.config.database,timeout:e.timeout,charsetNumber:n,currentConfig:this.config},e=>{e&&(e.fatal=!0),t&&t(e)}))}beginTransaction(e){return this.query("START TRANSACTION",e)}commit(e){return this.query("COMMIT",e)}rollback(e){return this.query("ROLLBACK",e)}ping(e){return this.addCommand(new _.Ping(e))}_registerSlave(e,t){return this.addCommand(new _.RegisterSlave(e,t))}_binlogDump(e,t){return this.addCommand(new _.BinlogDump(e,t))}destroy(){this.close()}close(){this.connectTimeout&&(o.clearTimeout(this.connectTimeout),this.connectTimeout=null),this._closing=!0,this.stream.end(),this.addCommand=this._addCommandClosedState}createBinlogStream(e){let t=1;const n=new a({objectMode:!0});return n._read=function(){return{data:t++}},this._registerSlave(e,()=>{const t=this._binlogDump(e);t.on("event",e=>{n.push(e)}),t.on("eof",()=>{n.push(null),e.flags&&1&e.flags&&this.close()})}),n}connect(e){if(!e)return;if(this._fatalError||this._protocolError)return e(this._fatalError||this._protocolError);if(this._handshakePacket)return e(null,this);let t=0;function n(n){return function(r){t||(n?e(r):e(null,r)),t=1}}this.once("error",n(!0)),this.once("connect",n(!1))}writeColumns(e){this.writePacket(f.ResultSetHeader.toPacket(e.length)),e.forEach(e=>{this.writePacket(f.ColumnDefinition.toPacket(e,this.serverConfig.encoding))}),this.writeEof()}writeTextRow(e){this.writePacket(f.TextRow.toPacket(e,this.serverConfig.encoding))}writeTextResult(e,t){this.writeColumns(t),e.forEach(e=>{const n=new Array(t.length);t.forEach(t=>{n.push(e[t.name])}),this.writeTextRow(n)}),this.writeEof()}writeEof(e,t){this.writePacket(f.EOF.toPacket(e,t))}writeOk(e){e||(e={affectedRows:0}),this.writePacket(f.OK.toPacket(e,this.serverConfig.encoding))}writeError(e){const t=this.serverConfig?this.serverConfig.encoding:"cesu8";this.writePacket(f.Error.toPacket(e,t))}serverHandshake(e){return this.serverConfig=e,this.serverConfig.encoding=E[this.serverConfig.characterSet],this.addCommand(new _.ServerHandshake(e))}end(e){if(this.config.isServer){this._closing=!0;const e=new s;return setImmediate(()=>{this.stream.end(),e.emit("end")}),e}const t=this.addCommand(new _.Quit(e));return this.addCommand=this._addCommandClosedState,t}static createQuery(e,t,n,r){let i={rowsAsArray:r.rowsAsArray};return"object"==typeof e?(i=e,"function"==typeof t?n=t:void 0!==t&&(i.values=t)):"function"==typeof t?(n=t,i.sql=e,i.values=void 0):(i.sql=e,i.values=t),new _.Query(i,n)}static statementKey(e){return`${typeof e.nestTables}/${e.nestTables}/${e.rowsAsArray}${e.sql}`}}i.TLSSocket||(R.prototype.startTLS=function(e){this.config.debug&&console.log("Upgrading connection to TLS");const t=n(23),r=this.config,o=this.stream,s=this.config.ssl.rejectUnauthorized,a=t.createCredentials({key:r.ssl.key,cert:r.ssl.cert,passphrase:r.ssl.passphrase,ca:r.ssl.ca,ciphers:r.ssl.ciphers}),u=i.createSecurePair(a,!1,!0,s);o.ondata&&(o.ondata=null),o.removeAllListeners("data"),o.pipe(u.encrypted),u.encrypted.pipe(o),u.cleartext.on("data",e=>{this.packetParser.execute(e)}),this.write=function(e){u.cleartext.write(e)},u.on("secure",()=>{e(s?u.ssl.verifyError():null)})}),e.exports=R},function(e,t,n){"use strict";const r=n(219);t.decode=function(e,t,n,i,o){if(Buffer.isEncoding(t))return e.toString(t,n,i);const s=r.getDecoder(t,o||{}),a=s.write(e.slice(n,i)),u=s.end();return u?a+u:a},t.encode=function(e,t,n){if(Buffer.isEncoding(t))return Buffer.from(e,t);const i=r.getEncoder(t,n||{}),o=i.write(e),s=i.end();return s&&s.length>0?Buffer.concat([o,s]):o}},function(e,t){e.exports=require("process")},function(e,t,n){"use strict";t.BIG5_CHINESE_CI=1,t.LATIN2_CZECH_CS=2,t.DEC8_SWEDISH_CI=3,t.CP850_GENERAL_CI=4,t.LATIN1_GERMAN1_CI=5,t.HP8_ENGLISH_CI=6,t.KOI8R_GENERAL_CI=7,t.LATIN1_SWEDISH_CI=8,t.LATIN2_GENERAL_CI=9,t.SWE7_SWEDISH_CI=10,t.ASCII_GENERAL_CI=11,t.UJIS_JAPANESE_CI=12,t.SJIS_JAPANESE_CI=13,t.CP1251_BULGARIAN_CI=14,t.LATIN1_DANISH_CI=15,t.HEBREW_GENERAL_CI=16,t.TIS620_THAI_CI=18,t.EUCKR_KOREAN_CI=19,t.LATIN7_ESTONIAN_CS=20,t.LATIN2_HUNGARIAN_CI=21,t.KOI8U_GENERAL_CI=22,t.CP1251_UKRAINIAN_CI=23,t.GB2312_CHINESE_CI=24,t.GREEK_GENERAL_CI=25,t.CP1250_GENERAL_CI=26,t.LATIN2_CROATIAN_CI=27,t.GBK_CHINESE_CI=28,t.CP1257_LITHUANIAN_CI=29,t.LATIN5_TURKISH_CI=30,t.LATIN1_GERMAN2_CI=31,t.ARMSCII8_GENERAL_CI=32,t.UTF8_GENERAL_CI=33,t.CP1250_CZECH_CS=34,t.UCS2_GENERAL_CI=35,t.CP866_GENERAL_CI=36,t.KEYBCS2_GENERAL_CI=37,t.MACCE_GENERAL_CI=38,t.MACROMAN_GENERAL_CI=39,t.CP852_GENERAL_CI=40,t.LATIN7_GENERAL_CI=41,t.LATIN7_GENERAL_CS=42,t.MACCE_BIN=43,t.CP1250_CROATIAN_CI=44,t.UTF8MB4_GENERAL_CI=45,t.UTF8MB4_BIN=46,t.LATIN1_BIN=47,t.LATIN1_GENERAL_CI=48,t.LATIN1_GENERAL_CS=49,t.CP1251_BIN=50,t.CP1251_GENERAL_CI=51,t.CP1251_GENERAL_CS=52,t.MACROMAN_BIN=53,t.UTF16_GENERAL_CI=54,t.UTF16_BIN=55,t.UTF16LE_GENERAL_CI=56,t.CP1256_GENERAL_CI=57,t.CP1257_BIN=58,t.CP1257_GENERAL_CI=59,t.UTF32_GENERAL_CI=60,t.UTF32_BIN=61,t.UTF16LE_BIN=62,t.BINARY=63,t.ARMSCII8_BIN=64,t.ASCII_BIN=65,t.CP1250_BIN=66,t.CP1256_BIN=67,t.CP866_BIN=68,t.DEC8_BIN=69,t.GREEK_BIN=70,t.HEBREW_BIN=71,t.HP8_BIN=72,t.KEYBCS2_BIN=73,t.KOI8R_BIN=74,t.KOI8U_BIN=75,t.UTF8_TOLOWER_CI=76,t.LATIN2_BIN=77,t.LATIN5_BIN=78,t.LATIN7_BIN=79,t.CP850_BIN=80,t.CP852_BIN=81,t.SWE7_BIN=82,t.UTF8_BIN=83,t.BIG5_BIN=84,t.EUCKR_BIN=85,t.GB2312_BIN=86,t.GBK_BIN=87,t.SJIS_BIN=88,t.TIS620_BIN=89,t.UCS2_BIN=90,t.UJIS_BIN=91,t.GEOSTD8_GENERAL_CI=92,t.GEOSTD8_BIN=93,t.LATIN1_SPANISH_CI=94,t.CP932_JAPANESE_CI=95,t.CP932_BIN=96,t.EUCJPMS_JAPANESE_CI=97,t.EUCJPMS_BIN=98,t.CP1250_POLISH_CI=99,t.UTF16_UNICODE_CI=101,t.UTF16_ICELANDIC_CI=102,t.UTF16_LATVIAN_CI=103,t.UTF16_ROMANIAN_CI=104,t.UTF16_SLOVENIAN_CI=105,t.UTF16_POLISH_CI=106,t.UTF16_ESTONIAN_CI=107,t.UTF16_SPANISH_CI=108,t.UTF16_SWEDISH_CI=109,t.UTF16_TURKISH_CI=110,t.UTF16_CZECH_CI=111,t.UTF16_DANISH_CI=112,t.UTF16_LITHUANIAN_CI=113,t.UTF16_SLOVAK_CI=114,t.UTF16_SPANISH2_CI=115,t.UTF16_ROMAN_CI=116,t.UTF16_PERSIAN_CI=117,t.UTF16_ESPERANTO_CI=118,t.UTF16_HUNGARIAN_CI=119,t.UTF16_SINHALA_CI=120,t.UTF16_GERMAN2_CI=121,t.UTF16_CROATIAN_CI=122,t.UTF16_UNICODE_520_CI=123,t.UTF16_VIETNAMESE_CI=124,t.UCS2_UNICODE_CI=128,t.UCS2_ICELANDIC_CI=129,t.UCS2_LATVIAN_CI=130,t.UCS2_ROMANIAN_CI=131,t.UCS2_SLOVENIAN_CI=132,t.UCS2_POLISH_CI=133,t.UCS2_ESTONIAN_CI=134,t.UCS2_SPANISH_CI=135,t.UCS2_SWEDISH_CI=136,t.UCS2_TURKISH_CI=137,t.UCS2_CZECH_CI=138,t.UCS2_DANISH_CI=139,t.UCS2_LITHUANIAN_CI=140,t.UCS2_SLOVAK_CI=141,t.UCS2_SPANISH2_CI=142,t.UCS2_ROMAN_CI=143,t.UCS2_PERSIAN_CI=144,t.UCS2_ESPERANTO_CI=145,t.UCS2_HUNGARIAN_CI=146,t.UCS2_SINHALA_CI=147,t.UCS2_GERMAN2_CI=148,t.UCS2_CROATIAN_CI=149,t.UCS2_UNICODE_520_CI=150,t.UCS2_VIETNAMESE_CI=151,t.UCS2_GENERAL_MYSQL500_CI=159,t.UTF32_UNICODE_CI=160,t.UTF32_ICELANDIC_CI=161,t.UTF32_LATVIAN_CI=162,t.UTF32_ROMANIAN_CI=163,t.UTF32_SLOVENIAN_CI=164,t.UTF32_POLISH_CI=165,t.UTF32_ESTONIAN_CI=166,t.UTF32_SPANISH_CI=167,t.UTF32_SWEDISH_CI=168,t.UTF32_TURKISH_CI=169,t.UTF32_CZECH_CI=170,t.UTF32_DANISH_CI=171,t.UTF32_LITHUANIAN_CI=172,t.UTF32_SLOVAK_CI=173,t.UTF32_SPANISH2_CI=174,t.UTF32_ROMAN_CI=175,t.UTF32_PERSIAN_CI=176,t.UTF32_ESPERANTO_CI=177,t.UTF32_HUNGARIAN_CI=178,t.UTF32_SINHALA_CI=179,t.UTF32_GERMAN2_CI=180,t.UTF32_CROATIAN_CI=181,t.UTF32_UNICODE_520_CI=182,t.UTF32_VIETNAMESE_CI=183,t.UTF8_UNICODE_CI=192,t.UTF8_ICELANDIC_CI=193,t.UTF8_LATVIAN_CI=194,t.UTF8_ROMANIAN_CI=195,t.UTF8_SLOVENIAN_CI=196,t.UTF8_POLISH_CI=197,t.UTF8_ESTONIAN_CI=198,t.UTF8_SPANISH_CI=199,t.UTF8_SWEDISH_CI=200,t.UTF8_TURKISH_CI=201,t.UTF8_CZECH_CI=202,t.UTF8_DANISH_CI=203,t.UTF8_LITHUANIAN_CI=204,t.UTF8_SLOVAK_CI=205,t.UTF8_SPANISH2_CI=206,t.UTF8_ROMAN_CI=207,t.UTF8_PERSIAN_CI=208,t.UTF8_ESPERANTO_CI=209,t.UTF8_HUNGARIAN_CI=210,t.UTF8_SINHALA_CI=211,t.UTF8_GERMAN2_CI=212,t.UTF8_CROATIAN_CI=213,t.UTF8_UNICODE_520_CI=214,t.UTF8_VIETNAMESE_CI=215,t.UTF8_GENERAL_MYSQL500_CI=223,t.UTF8MB4_UNICODE_CI=224,t.UTF8MB4_ICELANDIC_CI=225,t.UTF8MB4_LATVIAN_CI=226,t.UTF8MB4_ROMANIAN_CI=227,t.UTF8MB4_SLOVENIAN_CI=228,t.UTF8MB4_POLISH_CI=229,t.UTF8MB4_ESTONIAN_CI=230,t.UTF8MB4_SPANISH_CI=231,t.UTF8MB4_SWEDISH_CI=232,t.UTF8MB4_TURKISH_CI=233,t.UTF8MB4_CZECH_CI=234,t.UTF8MB4_DANISH_CI=235,t.UTF8MB4_LITHUANIAN_CI=236,t.UTF8MB4_SLOVAK_CI=237,t.UTF8MB4_SPANISH2_CI=238,t.UTF8MB4_ROMAN_CI=239,t.UTF8MB4_PERSIAN_CI=240,t.UTF8MB4_ESPERANTO_CI=241,t.UTF8MB4_HUNGARIAN_CI=242,t.UTF8MB4_SINHALA_CI=243,t.UTF8MB4_GERMAN2_CI=244,t.UTF8MB4_CROATIAN_CI=245,t.UTF8MB4_UNICODE_520_CI=246,t.UTF8MB4_VIETNAMESE_CI=247,t.GB18030_CHINESE_CI=248,t.GB18030_BIN=249,t.GB18030_UNICODE_520_CI=250,t.UTF8_GENERAL50_CI=253,t.UTF8MB4_0900_AI_CI=255,t.UTF8MB4_CS_0900_AI_CI=266,t.UTF8MB4_DA_0900_AI_CI=267,t.UTF8MB4_DE_PB_0900_AI_CI=256,t.UTF8MB4_EO_0900_AI_CI=273,t.UTF8MB4_ES_0900_AI_CI=263,t.UTF8MB4_ES_TRAD_0900_AI_CI=270,t.UTF8MB4_ET_0900_AI_CI=262,t.UTF8MB4_HR_0900_AI_CI=275,t.UTF8MB4_HU_0900_AI_CI=274,t.UTF8MB4_IS_0900_AI_CI=257,t.UTF8MB4_LA_0900_AI_CI=271,t.UTF8MB4_LT_0900_AI_CI=268,t.UTF8MB4_LV_0900_AI_CI=258,t.UTF8MB4_PL_0900_AI_CI=261,t.UTF8MB4_RO_0900_AI_CI=259,t.UTF8MB4_SK_0900_AI_CI=269,t.UTF8MB4_SL_0900_AI_CI=260,t.UTF8MB4_SV_0900_AI_CI=264,t.UTF8MB4_TR_0900_AI_CI=265,t.UTF8MB4_VI_0900_AI_CI=277,t.BIG5=t.BIG5_CHINESE_CI,t.DEC8=t.DEC8_SWEDISH_CI,t.CP850=t.CP850_GENERAL_CI,t.HP8=t.HP8_ENGLISH_CI,t.KOI8R=t.KOI8R_GENERAL_CI,t.LATIN1=t.LATIN1_SWEDISH_CI,t.LATIN2=t.LATIN2_GENERAL_CI,t.SWE7=t.SWE7_SWEDISH_CI,t.ASCII=t.ASCII_GENERAL_CI,t.UJIS=t.UJIS_JAPANESE_CI,t.SJIS=t.SJIS_JAPANESE_CI,t.HEBREW=t.HEBREW_GENERAL_CI,t.TIS620=t.TIS620_THAI_CI,t.EUCKR=t.EUCKR_KOREAN_CI,t.KOI8U=t.KOI8U_GENERAL_CI,t.GB2312=t.GB2312_CHINESE_CI,t.GREEK=t.GREEK_GENERAL_CI,t.CP1250=t.CP1250_GENERAL_CI,t.GBK=t.GBK_CHINESE_CI,t.LATIN5=t.LATIN5_TURKISH_CI,t.ARMSCII8=t.ARMSCII8_GENERAL_CI,t.UTF8=t.UTF8_GENERAL_CI,t.UCS2=t.UCS2_GENERAL_CI,t.CP866=t.CP866_GENERAL_CI,t.KEYBCS2=t.KEYBCS2_GENERAL_CI,t.MACCE=t.MACCE_GENERAL_CI,t.MACROMAN=t.MACROMAN_GENERAL_CI,t.CP852=t.CP852_GENERAL_CI,t.LATIN7=t.LATIN7_GENERAL_CI,t.UTF8MB4=t.UTF8MB4_GENERAL_CI,t.CP1251=t.CP1251_GENERAL_CI,t.UTF16=t.UTF16_GENERAL_CI,t.UTF16LE=t.UTF16LE_GENERAL_CI,t.CP1256=t.CP1256_GENERAL_CI,t.CP1257=t.CP1257_GENERAL_CI,t.UTF32=t.UTF32_GENERAL_CI,t.CP932=t.CP932_JAPANESE_CI,t.EUCJPMS=t.EUCJPMS_JAPANESE_CI,t.GB18030=t.GB18030_CHINESE_CI,t.GEOSTD8=t.GEOSTD8_GENERAL_CI},function(e,t,n){"use strict";const{URL:r}=n(24),i=n(40),o=n(66);let s=null;const a={authPlugins:1,authSwitchHandler:1,bigNumberStrings:1,charset:1,charsetNumber:1,compress:1,connectAttributes:1,connectTimeout:1,database:1,dateStrings:1,debug:1,decimalNumbers:1,enableKeepAlive:1,flags:1,host:1,insecureAuth:1,isServer:1,keepAliveInitialDelay:1,localAddress:1,maxPreparedStatements:1,multipleStatements:1,namedPlaceholders:1,nestTables:1,password:1,passwordSha1:1,pool:1,port:1,queryFormat:1,rowsAsArray:1,socketPath:1,ssl:1,stream:1,stringifyObjects:1,supportBigNumbers:1,timezone:1,trace:1,typeCast:1,uri:1,user:1,connectionLimit:1,Promise:1,queueLimit:1,waitForConnections:1};class u{constructor(e){if("string"==typeof e)e=u.parseUrl(e);else if(e&&e.uri){const t=u.parseUrl(e.uri);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]||(e[n]=t[n]))}for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&1!==a[t]&&console.error(`Ignoring invalid configuration option passed to Connection: ${t}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`);if(this.isServer=e.isServer,this.stream=e.stream,this.host=e.host||"localhost",this.port=e.port||3306,this.localAddress=e.localAddress,this.socketPath=e.socketPath,this.user=e.user||void 0,this.password=e.password||void 0,this.passwordSha1=e.passwordSha1||void 0,this.database=e.database,this.connectTimeout=isNaN(e.connectTimeout)?1e4:e.connectTimeout,this.insecureAuth=e.insecureAuth||!1,this.supportBigNumbers=e.supportBigNumbers||!1,this.bigNumberStrings=e.bigNumberStrings||!1,this.decimalNumbers=e.decimalNumbers||!1,this.dateStrings=e.dateStrings||!1,this.debug=e.debug,this.trace=!1!==e.trace,this.stringifyObjects=e.stringifyObjects||!1,this.enableKeepAlive=!!e.enableKeepAlive,this.keepAliveInitialDelay=e.keepAliveInitialDelay||0,e.timezone&&!/^(?:local|Z|[ +-]\d\d:\d\d)$/.test(e.timezone)?(console.error(`Ignoring invalid timezone passed to Connection: ${e.timezone}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`),this.timezone="Z"):this.timezone=e.timezone||"local",this.queryFormat=e.queryFormat,this.pool=e.pool||void 0,this.ssl="string"==typeof e.ssl?u.getSSLProfile(e.ssl):e.ssl||!1,this.multipleStatements=e.multipleStatements||!1,this.rowsAsArray=e.rowsAsArray||!1,this.namedPlaceholders=e.namedPlaceholders||!1,this.nestTables=void 0===e.nestTables?void 0:e.nestTables,this.typeCast=void 0===e.typeCast||e.typeCast," "===this.timezone[0]&&(this.timezone="+"+this.timezone.substr(1)),this.ssl){if("object"!=typeof this.ssl)throw new TypeError("SSL profile must be an object, instead it's a "+typeof this.ssl);this.ssl.rejectUnauthorized=!1!==this.ssl.rejectUnauthorized}this.maxPacketSize=0,this.charsetNumber=e.charset?u.getCharsetNumber(e.charset):e.charsetNumber||o.UTF8MB4_UNICODE_CI,this.compress=e.compress||!1,this.authPlugins=e.authPlugins,this.authSwitchHandler=e.authSwitchHandler,this.clientFlags=u.mergeFlags(u.getDefaultFlags(e),e.flags||""),this.connectAttributes=e.connectAttributes,this.maxPreparedStatements=e.maxPreparedStatements||16e3}static mergeFlags(e,t){let n,r=0;for(n in Array.isArray(t)||(t=String(t||"").toUpperCase().split(/\s*,+\s*/)),e)t.indexOf("-"+e[n])>=0||(r|=i[e[n]]||0);for(n in t)"-"!==t[n][0]&&(e.indexOf(t[n])>=0||(r|=i[t[n]]||0));return r}static getDefaultFlags(e){const t=["LONG_PASSWORD","FOUND_ROWS","LONG_FLAG","CONNECT_WITH_DB","ODBC","LOCAL_FILES","IGNORE_SPACE","PROTOCOL_41","IGNORE_SIGPIPE","TRANSACTIONS","RESERVED","SECURE_CONNECTION","MULTI_RESULTS","TRANSACTIONS","SESSION_TRACK"];return e&&e.multipleStatements&&t.push("MULTI_STATEMENTS"),t.push("PLUGIN_AUTH"),t.push("PLUGIN_AUTH_LENENC_CLIENT_DATA"),e&&e.connectAttributes&&t.push("CONNECT_ATTRS"),t}static getCharsetNumber(e){const t=o[e.toUpperCase()];if(void 0===t)throw new TypeError(`Unknown charset '${e}'`);return t}static getSSLProfile(e){s||(s=n(278));const t=s[e];if(void 0===t)throw new TypeError(`Unknown SSL profile '${e}'`);return t}static parseUrl(e){const t=new r(e),n={host:t.hostname,port:t.port,database:t.pathname.substr(1),user:t.username,password:t.password};return t.searchParams.forEach((e,t)=>{try{n[t]=JSON.parse(e)}catch(r){n[t]=e}}),n}}e.exports=u},function(e,t,n){"use strict";const r=n(69),{LEVEL:i,MESSAGE:o}=n(3);r.enabled=!0;const s=/\s+/;class a{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){const t=Object.keys(e).reduce((t,n)=>(t[n]=s.test(e[n])?e[n].split(s):e[n],t),{});return a.allColors=Object.assign({},a.allColors||{},t),a.allColors}addColors(e){return a.addColors(e)}colorize(e,t,n){if(void 0===n&&(n=t),!Array.isArray(a.allColors[e]))return r[a.allColors[e]](n);for(let t=0,i=a.allColors[e].length;tnew a(e),e.exports.Colorizer=e.exports.Format=a},function(e,t,n){var r=n(287);e.exports=r},function(e,t,n){"use strict";var r=n(57).Colorizer;e.exports=function(e){return r.addColors(e.colors||e),e}},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{levels:u.npm.levels};o(this,e),this.paddings=e.paddingForLevels(t.levels,t.filler),this.options=t}var t,n,i;return t=e,i=[{key:"getLongestLevel",value:function(e){var t=Object.keys(e).map((function(e){return e.length}));return Math.max.apply(Math,r(t))}},{key:"paddingForLevel",value:function(e,t,n){var r=n+1-e.length,i=Math.floor(r/t.length);return"".concat(t).concat(t.repeat(i)).slice(0,r)}},{key:"paddingForLevels",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r=e.getLongestLevel(t);return Object.keys(t).reduce((function(t,i){return t[i]=e.paddingForLevel(i,n,r),t}),{})}}],(n=[{key:"transform",value:function(e,t){return e.message="".concat(this.paddings[e[c]]).concat(e.message),e[l]&&(e[l]="".concat(this.paddings[e[c]]).concat(e[l])),e}}])&&s(t.prototype,n),i&&s(t,i),e}();e.exports=function(e){return new d(e)},e.exports.Padder=e.exports.Format=d},function(e,t,n){"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,n)}));case 4:return process.nextTick((function(){e.call(null,t,n,r)}));default:for(i=new Array(s-1),o=0;o"}catch(e){return""}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n(0),i=n(5),o=n(55),s=n(61),a=n(9),u=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(r.g)(t._breadcrumbs),n._tags=Object(r.a)({},t._tags),n._extra=Object(r.a)({},t._extra),n._contexts=Object(r.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(r.g)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=Object(r.a)(Object(r.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(r.a)(Object(r.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(r.a)(Object(r.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(r.a)(Object(r.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(r.a)(Object(r.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(r.a)(Object(r.a)({},this._tags),t._tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t._extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Object(i.e)(t)&&(t=t,this._tags=Object(r.a)(Object(r.a)({},this._tags),t.tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t.extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var i=Object(r.a)({timestamp:Object(o.b)()},e);return this._breadcrumbs=Object(r.g)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(r.a)(Object(r.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(r.a)(Object(r.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(r.a)(Object(r.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(r.a)(Object(r.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(r.a)({trace:this._span.getTraceContext()},e.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(e.tags=Object(r.a)({transaction:i},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(r.g)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(r.g)(c(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,o){var a=this;return void 0===o&&(o=0),new s.a((function(s,u){var c=e[o];if(null===t||"function"!=typeof c)s(t);else{var l=c(Object(r.a)({},t),n);Object(i.j)(l)?l.then((function(t){return a._notifyEventProcessors(e,t,n,o+1).then(s)})).then(null,u):a._notifyEventProcessors(e,l,n,o+1).then(s).then(null,u)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function c(){var e=Object(a.a)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function l(e){c().push(e)}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(r||(r={}))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";const r=n(119),i=n(63),o=n(67),s=n(86);t.createConnection=function(e){return new i({config:new o(e)})},t.connect=t.createConnection,t.Connection=i;const a=n(135),u=n(137);t.createPool=function(e){const t=n(138);return new a({config:new t(e)})},t.createPoolCluster=function(e){return new(n(137))(e)},t.createQuery=i.createQuery,t.Pool=a,t.PoolCluster=u,t.createServer=function(e){const t=new(n(284));return e&&t.on("connection",e),t},t.PoolConnection=n(136),t.escape=r.escape,t.escapeId=r.escapeId,t.format=r.format,t.raw=r.raw,t.__defineGetter__("createConnectionPromise",()=>n(38).createConnection),t.__defineGetter__("createPoolPromise",()=>n(38).createPool),t.__defineGetter__("createPoolClusterPromise",()=>n(38).createPoolCluster),t.__defineGetter__("Types",()=>n(56)),t.__defineGetter__("Charsets",()=>n(66)),t.__defineGetter__("CharsetToEncoding",()=>n(28)),t.setMaxParserCache=function(e){s.setMaxCache(e)},t.clearParserCache=function(){s.clearCache()}},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("timers")},function(e){e.exports=JSON.parse('[["0","\\u0000",127,"€"],["8140","丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪",5,"乲乴",9,"乿",6,"亇亊"],["8180","亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂",6,"伋伌伒",4,"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾",4,"佄佅佇",5,"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"],["8240","侤侫侭侰",4,"侶",8,"俀俁係俆俇俈俉俋俌俍俒",4,"俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿",11],["8280","個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯",10,"倻倽倿偀偁偂偄偅偆偉偊偋偍偐",4,"偖偗偘偙偛偝",7,"偦",5,"偭",8,"偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎",20,"傤傦傪傫傭",4,"傳",6,"傼"],["8340","傽",17,"僐",5,"僗僘僙僛",10,"僨僩僪僫僯僰僱僲僴僶",4,"僼",9,"儈"],["8380","儉儊儌",5,"儓",13,"儢",28,"兂兇兊兌兎兏児兒兓兗兘兙兛兝",4,"兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦",4,"冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒",5],["8440","凘凙凚凜凞凟凢凣凥",5,"凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄",5,"剋剎剏剒剓剕剗剘"],["8480","剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳",9,"剾劀劃",4,"劉",6,"劑劒劔",6,"劜劤劥劦劧劮劯劰労",9,"勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務",5,"勠勡勢勣勥",10,"勱",7,"勻勼勽匁匂匃匄匇匉匊匋匌匎"],["8540","匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯",9,"匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"],["8580","厐",4,"厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯",6,"厷厸厹厺厼厽厾叀參",4,"収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝",4,"呣呥呧呩",7,"呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"],["8640","咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠",4,"哫哬哯哰哱哴",5,"哻哾唀唂唃唄唅唈唊",4,"唒唓唕",5,"唜唝唞唟唡唥唦"],["8680","唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋",4,"啑啒啓啔啗",4,"啝啞啟啠啢啣啨啩啫啯",5,"啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠",6,"喨",8,"喲喴営喸喺喼喿",4,"嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗",4,"嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸",4,"嗿嘂嘃嘄嘅"],["8740","嘆嘇嘊嘋嘍嘐",7,"嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀",11,"噏",4,"噕噖噚噛噝",4],["8780","噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽",7,"嚇",6,"嚐嚑嚒嚔",14,"嚤",10,"嚰",6,"嚸嚹嚺嚻嚽",12,"囋",8,"囕囖囘囙囜団囥",5,"囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國",6],["8840","園",9,"圝圞圠圡圢圤圥圦圧圫圱圲圴",4,"圼圽圿坁坃坄坅坆坈坉坋坒",4,"坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"],["8880","垁垇垈垉垊垍",4,"垔",6,"垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹",8,"埄",6,"埌埍埐埑埓埖埗埛埜埞埡埢埣埥",7,"埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥",4,"堫",4,"報堲堳場堶",7],["8940","堾",5,"塅",6,"塎塏塐塒塓塕塖塗塙",4,"塟",5,"塦",4,"塭",16,"塿墂墄墆墇墈墊墋墌"],["8980","墍",4,"墔",4,"墛墜墝墠",7,"墪",17,"墽墾墿壀壂壃壄壆",10,"壒壓壔壖",13,"壥",5,"壭壯壱売壴壵壷壸壺",7,"夃夅夆夈",4,"夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"],["8a40","夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛",4,"奡奣奤奦",12,"奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"],["8a80","妧妬妭妰妱妳",5,"妺妼妽妿",6,"姇姈姉姌姍姎姏姕姖姙姛姞",4,"姤姦姧姩姪姫姭",11,"姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪",6,"娳娵娷",4,"娽娾娿婁",4,"婇婈婋",9,"婖婗婘婙婛",5],["8b40","婡婣婤婥婦婨婩婫",8,"婸婹婻婼婽婾媀",17,"媓",6,"媜",13,"媫媬"],["8b80","媭",4,"媴媶媷媹",4,"媿嫀嫃",5,"嫊嫋嫍",4,"嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬",4,"嫲",22,"嬊",11,"嬘",25,"嬳嬵嬶嬸",7,"孁",6],["8c40","孈",7,"孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"],["8c80","寑寔",8,"寠寢寣實寧審",4,"寯寱",6,"寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧",6,"屰屲",6,"屻屼屽屾岀岃",4,"岉岊岋岎岏岒岓岕岝",4,"岤",4],["8d40","岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅",5,"峌",5,"峓",5,"峚",6,"峢峣峧峩峫峬峮峯峱",9,"峼",4],["8d80","崁崄崅崈",5,"崏",4,"崕崗崘崙崚崜崝崟",4,"崥崨崪崫崬崯",4,"崵",7,"崿",7,"嵈嵉嵍",10,"嵙嵚嵜嵞",10,"嵪嵭嵮嵰嵱嵲嵳嵵",12,"嶃",21,"嶚嶛嶜嶞嶟嶠"],["8e40","嶡",21,"嶸",12,"巆",6,"巎",12,"巜巟巠巣巤巪巬巭"],["8e80","巰巵巶巸",4,"巿帀帄帇帉帊帋帍帎帒帓帗帞",7,"帨",4,"帯帰帲",4,"帹帺帾帿幀幁幃幆",5,"幍",6,"幖",4,"幜幝幟幠幣",14,"幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨",4,"庮",4,"庴庺庻庼庽庿",6],["8f40","廆廇廈廋",5,"廔廕廗廘廙廚廜",11,"廩廫",8,"廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"],["8f80","弨弫弬弮弰弲",6,"弻弽弾弿彁",14,"彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢",5,"復徫徬徯",5,"徶徸徹徺徻徾",4,"忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"],["9040","怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰",4,"怶",4,"怽怾恀恄",6,"恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"],["9080","悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽",7,"惇惈惉惌",4,"惒惓惔惖惗惙惛惞惡",4,"惪惱惲惵惷惸惻",4,"愂愃愄愅愇愊愋愌愐",4,"愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬",18,"慀",6],["9140","慇慉態慍慏慐慒慓慔慖",6,"慞慟慠慡慣慤慥慦慩",6,"慱慲慳慴慶慸",18,"憌憍憏",4,"憕"],["9180","憖",6,"憞",8,"憪憫憭",9,"憸",5,"憿懀懁懃",4,"應懌",4,"懓懕",16,"懧",13,"懶",8,"戀",5,"戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸",4,"扂扄扅扆扊"],["9240","扏扐払扖扗扙扚扜",6,"扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋",5,"抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"],["9280","拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳",5,"挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖",7,"捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙",6,"採掤掦掫掯掱掲掵掶掹掻掽掿揀"],["9340","揁揂揃揅揇揈揊揋揌揑揓揔揕揗",6,"揟揢揤",4,"揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆",4,"損搎搑搒搕",5,"搝搟搢搣搤"],["9380","搥搧搨搩搫搮",5,"搵",4,"搻搼搾摀摂摃摉摋",6,"摓摕摖摗摙",4,"摟",7,"摨摪摫摬摮",9,"摻",6,"撃撆撈",8,"撓撔撗撘撚撛撜撝撟",4,"撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆",6,"擏擑擓擔擕擖擙據"],["9440","擛擜擝擟擠擡擣擥擧",24,"攁",7,"攊",7,"攓",4,"攙",8],["9480","攢攣攤攦",4,"攬攭攰攱攲攳攷攺攼攽敀",4,"敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數",14,"斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱",7,"斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘",7,"旡旣旤旪旫"],["9540","旲旳旴旵旸旹旻",4,"昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷",4,"昽昿晀時晄",6,"晍晎晐晑晘"],["9580","晙晛晜晝晞晠晢晣晥晧晩",4,"晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘",4,"暞",8,"暩",4,"暯",4,"暵暶暷暸暺暻暼暽暿",25,"曚曞",7,"曧曨曪",5,"曱曵曶書曺曻曽朁朂會"],["9640","朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠",5,"朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗",4,"杝杢杣杤杦杧杫杬杮東杴杶"],["9680","杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹",7,"柂柅",9,"柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵",7,"柾栁栂栃栄栆栍栐栒栔栕栘",4,"栞栟栠栢",6,"栫",6,"栴栵栶栺栻栿桇桋桍桏桒桖",5],["9740","桜桝桞桟桪桬",7,"桵桸",8,"梂梄梇",7,"梐梑梒梔梕梖梘",9,"梣梤梥梩梪梫梬梮梱梲梴梶梷梸"],["9780","梹",6,"棁棃",5,"棊棌棎棏棐棑棓棔棖棗棙棛",4,"棡棢棤",9,"棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆",4,"椌椏椑椓",11,"椡椢椣椥",7,"椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃",16,"楕楖楘楙楛楜楟"],["9840","楡楢楤楥楧楨楩楪楬業楯楰楲",4,"楺楻楽楾楿榁榃榅榊榋榌榎",5,"榖榗榙榚榝",9,"榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"],["9880","榾榿槀槂",7,"構槍槏槑槒槓槕",5,"槜槝槞槡",11,"槮槯槰槱槳",9,"槾樀",9,"樋",11,"標",5,"樠樢",5,"権樫樬樭樮樰樲樳樴樶",6,"樿",4,"橅橆橈",7,"橑",6,"橚"],["9940","橜",4,"橢橣橤橦",10,"橲",6,"橺橻橽橾橿檁檂檃檅",8,"檏檒",4,"檘",7,"檡",5],["9980","檧檨檪檭",114,"欥欦欨",6],["9a40","欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍",11,"歚",7,"歨歩歫",13,"歺歽歾歿殀殅殈"],["9a80","殌殎殏殐殑殔殕殗殘殙殜",4,"殢",7,"殫",7,"殶殸",6,"毀毃毄毆",4,"毌毎毐毑毘毚毜",4,"毢",7,"毬毭毮毰毱毲毴毶毷毸毺毻毼毾",6,"氈",4,"氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋",4,"汑汒汓汖汘"],["9b40","汙汚汢汣汥汦汧汫",4,"汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"],["9b80","泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟",5,"洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽",4,"涃涄涆涇涊涋涍涏涐涒涖",4,"涜涢涥涬涭涰涱涳涴涶涷涹",5,"淁淂淃淈淉淊"],["9c40","淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽",7,"渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"],["9c80","渶渷渹渻",7,"湅",7,"湏湐湑湒湕湗湙湚湜湝湞湠",10,"湬湭湯",14,"満溁溂溄溇溈溊",4,"溑",6,"溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪",5],["9d40","滰滱滲滳滵滶滷滸滺",7,"漃漄漅漇漈漊",4,"漐漑漒漖",9,"漡漢漣漥漦漧漨漬漮漰漲漴漵漷",6,"漿潀潁潂"],["9d80","潃潄潅潈潉潊潌潎",9,"潙潚潛潝潟潠潡潣潤潥潧",5,"潯潰潱潳潵潶潷潹潻潽",6,"澅澆澇澊澋澏",12,"澝澞澟澠澢",4,"澨",10,"澴澵澷澸澺",5,"濁濃",5,"濊",6,"濓",10,"濟濢濣濤濥"],["9e40","濦",7,"濰",32,"瀒",7,"瀜",6,"瀤",6],["9e80","瀫",9,"瀶瀷瀸瀺",17,"灍灎灐",13,"灟",11,"灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞",12,"炰炲炴炵炶為炾炿烄烅烆烇烉烋",12,"烚"],["9f40","烜烝烞烠烡烢烣烥烪烮烰",6,"烸烺烻烼烾",10,"焋",4,"焑焒焔焗焛",10,"焧",7,"焲焳焴"],["9f80","焵焷",13,"煆煇煈煉煋煍煏",12,"煝煟",4,"煥煩",4,"煯煰煱煴煵煶煷煹煻煼煾",5,"熅",4,"熋熌熍熎熐熑熒熓熕熖熗熚",4,"熡",6,"熩熪熫熭",5,"熴熶熷熸熺",8,"燄",9,"燏",4],["a040","燖",9,"燡燢燣燤燦燨",5,"燯",9,"燺",11,"爇",19],["a080","爛爜爞",9,"爩爫爭爮爯爲爳爴爺爼爾牀",6,"牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅",4,"犌犎犐犑犓",11,"犠",11,"犮犱犲犳犵犺",6,"狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"],["a1a1"," 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈",7,"〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"],["a2a1","ⅰ",9],["a2b1","⒈",19,"⑴",19,"①",9],["a2e5","㈠",9],["a2f1","Ⅰ",11],["a3a1","!"#¥%",88," ̄"],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a6e0","︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"],["a6ee","︻︼︷︸︱"],["a6f4","︳︴"],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a840","ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═",35,"▁",6],["a880","█",7,"▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"],["a8a1","āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"],["a8bd","ńň"],["a8c0","ɡ"],["a8c5","ㄅ",36],["a940","〡",8,"㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"],["a959","℡㈱"],["a95c","‐"],["a960","ー゛゜ヽヾ〆ゝゞ﹉",9,"﹔﹕﹖﹗﹙",8],["a980","﹢",4,"﹨﹩﹪﹫"],["a996","〇"],["a9a4","─",75],["aa40","狜狝狟狢",5,"狪狫狵狶狹狽狾狿猀猂猄",5,"猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀",8],["aa80","獉獊獋獌獎獏獑獓獔獕獖獘",7,"獡",10,"獮獰獱"],["ab40","獲",11,"獿",4,"玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣",5,"玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃",4],["ab80","珋珌珎珒",6,"珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳",4],["ac40","珸",10,"琄琇琈琋琌琍琎琑",8,"琜",5,"琣琤琧琩琫琭琯琱琲琷",4,"琽琾琿瑀瑂",11],["ac80","瑎",6,"瑖瑘瑝瑠",12,"瑮瑯瑱",4,"瑸瑹瑺"],["ad40","瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑",10,"璝璟",7,"璪",15,"璻",12],["ad80","瓈",9,"瓓",8,"瓝瓟瓡瓥瓧",6,"瓰瓱瓲"],["ae40","瓳瓵瓸",6,"甀甁甂甃甅",7,"甎甐甒甔甕甖甗甛甝甞甠",4,"甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"],["ae80","畝",7,"畧畨畩畫",6,"畳畵當畷畺",4,"疀疁疂疄疅疇"],["af40","疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦",4,"疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"],["af80","瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"],["b040","癅",6,"癎",5,"癕癗",4,"癝癟癠癡癢癤",6,"癬癭癮癰",7,"癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"],["b080","皜",7,"皥",8,"皯皰皳皵",9,"盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"],["b140","盄盇盉盋盌盓盕盙盚盜盝盞盠",4,"盦",7,"盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎",10,"眛眜眝眞眡眣眤眥眧眪眫"],["b180","眬眮眰",4,"眹眻眽眾眿睂睄睅睆睈",7,"睒",7,"睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"],["b240","睝睞睟睠睤睧睩睪睭",11,"睺睻睼瞁瞂瞃瞆",5,"瞏瞐瞓",11,"瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶",4],["b280","瞼瞾矀",12,"矎",8,"矘矙矚矝",4,"矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"],["b340","矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃",5,"砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"],["b380","硛硜硞",11,"硯",7,"硸硹硺硻硽",6,"场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"],["b440","碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨",7,"碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚",9],["b480","磤磥磦磧磩磪磫磭",4,"磳磵磶磸磹磻",5,"礂礃礄礆",6,"础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"],["b540","礍",5,"礔",9,"礟",4,"礥",14,"礵",4,"礽礿祂祃祄祅祇祊",8,"祔祕祘祙祡祣"],["b580","祤祦祩祪祫祬祮祰",6,"祹祻",4,"禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"],["b640","禓",6,"禛",11,"禨",10,"禴",4,"禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙",5,"秠秡秢秥秨秪"],["b680","秬秮秱",6,"秹秺秼秾秿稁稄稅稇稈稉稊稌稏",4,"稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"],["b740","稝稟稡稢稤",14,"稴稵稶稸稺稾穀",5,"穇",9,"穒",4,"穘",16],["b780","穩",6,"穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"],["b840","窣窤窧窩窪窫窮",4,"窴",10,"竀",10,"竌",9,"竗竘竚竛竜竝竡竢竤竧",5,"竮竰竱竲竳"],["b880","竴",4,"竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"],["b940","笯笰笲笴笵笶笷笹笻笽笿",5,"筆筈筊筍筎筓筕筗筙筜筞筟筡筣",10,"筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆",6,"箎箏"],["b980","箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹",7,"篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"],["ba40","篅篈築篊篋篍篎篏篐篒篔",4,"篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲",4,"篸篹篺篻篽篿",7,"簈簉簊簍簎簐",5,"簗簘簙"],["ba80","簚",4,"簠",5,"簨簩簫",12,"簹",5,"籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"],["bb40","籃",9,"籎",36,"籵",5,"籾",9],["bb80","粈粊",6,"粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴",4,"粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"],["bc40","粿糀糂糃糄糆糉糋糎",6,"糘糚糛糝糞糡",6,"糩",5,"糰",7,"糹糺糼",13,"紋",5],["bc80","紑",14,"紡紣紤紥紦紨紩紪紬紭紮細",6,"肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"],["bd40","紷",54,"絯",7],["bd80","絸",32,"健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"],["be40","継",12,"綧",6,"綯",42],["be80","線",32,"尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"],["bf40","緻",62],["bf80","縺縼",4,"繂",4,"繈",21,"俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"],["c040","繞",35,"纃",23,"纜纝纞"],["c080","纮纴纻纼绖绤绬绹缊缐缞缷缹缻",6,"罃罆",9,"罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"],["c140","罖罙罛罜罝罞罠罣",4,"罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂",7,"羋羍羏",4,"羕",4,"羛羜羠羢羣羥羦羨",6,"羱"],["c180","羳",4,"羺羻羾翀翂翃翄翆翇翈翉翋翍翏",4,"翖翗翙",5,"翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"],["c240","翤翧翨翪翫翬翭翯翲翴",6,"翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫",5,"耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"],["c280","聙聛",13,"聫",5,"聲",11,"隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"],["c340","聾肁肂肅肈肊肍",5,"肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇",4,"胏",6,"胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"],["c380","脌脕脗脙脛脜脝脟",12,"脭脮脰脳脴脵脷脹",4,"脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"],["c440","腀",5,"腇腉腍腎腏腒腖腗腘腛",4,"腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃",4,"膉膋膌膍膎膐膒",5,"膙膚膞",4,"膤膥"],["c480","膧膩膫",7,"膴",5,"膼膽膾膿臄臅臇臈臉臋臍",6,"摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"],["c540","臔",14,"臤臥臦臨臩臫臮",4,"臵",5,"臽臿舃與",4,"舎舏舑舓舕",5,"舝舠舤舥舦舧舩舮舲舺舼舽舿"],["c580","艀艁艂艃艅艆艈艊艌艍艎艐",7,"艙艛艜艝艞艠",7,"艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"],["c640","艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"],["c680","苺苼",4,"茊茋茍茐茒茓茖茘茙茝",9,"茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"],["c740","茾茿荁荂荄荅荈荊",4,"荓荕",4,"荝荢荰",6,"荹荺荾",6,"莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡",6,"莬莭莮"],["c780","莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"],["c840","菮華菳",4,"菺菻菼菾菿萀萂萅萇萈萉萊萐萒",5,"萙萚萛萞",5,"萩",7,"萲",5,"萹萺萻萾",7,"葇葈葉"],["c880","葊",6,"葒",4,"葘葝葞葟葠葢葤",4,"葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"],["c940","葽",4,"蒃蒄蒅蒆蒊蒍蒏",7,"蒘蒚蒛蒝蒞蒟蒠蒢",12,"蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"],["c980","蓘",4,"蓞蓡蓢蓤蓧",4,"蓭蓮蓯蓱",10,"蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"],["ca40","蔃",8,"蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢",8,"蔭",9,"蔾",4,"蕄蕅蕆蕇蕋",10],["ca80","蕗蕘蕚蕛蕜蕝蕟",4,"蕥蕦蕧蕩",8,"蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"],["cb40","薂薃薆薈",6,"薐",10,"薝",6,"薥薦薧薩薫薬薭薱",5,"薸薺",6,"藂",6,"藊",4,"藑藒"],["cb80","藔藖",5,"藝",6,"藥藦藧藨藪",14,"恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"],["cc40","藹藺藼藽藾蘀",4,"蘆",10,"蘒蘓蘔蘕蘗",15,"蘨蘪",13,"蘹蘺蘻蘽蘾蘿虀"],["cc80","虁",11,"虒虓處",4,"虛虜虝號虠虡虣",7,"獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"],["cd40","虭虯虰虲",6,"蚃",6,"蚎",4,"蚔蚖",5,"蚞",4,"蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻",4,"蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"],["cd80","蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"],["ce40","蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀",6,"蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚",5,"蝡蝢蝦",7,"蝯蝱蝲蝳蝵"],["ce80","蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎",4,"螔螕螖螘",6,"螠",4,"巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"],["cf40","螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁",4,"蟇蟈蟉蟌",4,"蟔",6,"蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯",9],["cf80","蟺蟻蟼蟽蟿蠀蠁蠂蠄",5,"蠋",7,"蠔蠗蠘蠙蠚蠜",4,"蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"],["d040","蠤",13,"蠳",5,"蠺蠻蠽蠾蠿衁衂衃衆",5,"衎",5,"衕衖衘衚",6,"衦衧衪衭衯衱衳衴衵衶衸衹衺"],["d080","衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗",4,"袝",4,"袣袥",5,"小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"],["d140","袬袮袯袰袲",4,"袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚",4,"裠裡裦裧裩",6,"裲裵裶裷裺裻製裿褀褁褃",5],["d180","褉褋",4,"褑褔",4,"褜",4,"褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"],["d240","褸",8,"襂襃襅",24,"襠",5,"襧",19,"襼"],["d280","襽襾覀覂覄覅覇",26,"摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"],["d340","覢",30,"觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴",6],["d380","觻",4,"訁",5,"計",21,"印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"],["d440","訞",31,"訿",8,"詉",21],["d480","詟",25,"詺",6,"浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"],["d540","誁",7,"誋",7,"誔",46],["d580","諃",32,"铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"],["d640","諤",34,"謈",27],["d680","謤謥謧",30,"帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"],["d740","譆",31,"譧",4,"譭",25],["d780","讇",24,"讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"],["d840","谸",8,"豂豃豄豅豈豊豋豍",7,"豖豗豘豙豛",5,"豣",6,"豬",6,"豴豵豶豷豻",6,"貃貄貆貇"],["d880","貈貋貍",6,"貕貖貗貙",20,"亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"],["d940","貮",62],["d980","賭",32,"佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"],["da40","贎",14,"贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸",8,"趂趃趆趇趈趉趌",4,"趒趓趕",9,"趠趡"],["da80","趢趤",12,"趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"],["db40","跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾",6,"踆踇踈踋踍踎踐踑踒踓踕",7,"踠踡踤",4,"踫踭踰踲踳踴踶踷踸踻踼踾"],["db80","踿蹃蹅蹆蹌",4,"蹓",5,"蹚",11,"蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"],["dc40","蹳蹵蹷",4,"蹽蹾躀躂躃躄躆躈",6,"躑躒躓躕",6,"躝躟",11,"躭躮躰躱躳",6,"躻",7],["dc80","軃",10,"軏",21,"堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"],["dd40","軥",62],["dd80","輤",32,"荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"],["de40","轅",32,"轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"],["de80","迉",4,"迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"],["df40","這逜連逤逥逧",5,"逰",4,"逷逹逺逽逿遀遃遅遆遈",4,"過達違遖遙遚遜",5,"遤遦遧適遪遫遬遯",4,"遶",6,"遾邁"],["df80","還邅邆邇邉邊邌",4,"邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"],["e040","郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅",19,"鄚鄛鄜"],["e080","鄝鄟鄠鄡鄤",10,"鄰鄲",6,"鄺",8,"酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"],["e140","酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀",4,"醆醈醊醎醏醓",6,"醜",5,"醤",5,"醫醬醰醱醲醳醶醷醸醹醻"],["e180","醼",10,"釈釋釐釒",9,"針",8,"帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"],["e240","釦",62],["e280","鈥",32,"狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧",5,"饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"],["e340","鉆",45,"鉵",16],["e380","銆",7,"銏",24,"恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"],["e440","銨",5,"銯",24,"鋉",31],["e480","鋩",32,"洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"],["e540","錊",51,"錿",10],["e580","鍊",31,"鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"],["e640","鍬",34,"鎐",27],["e680","鎬",29,"鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"],["e740","鏎",7,"鏗",54],["e780","鐎",32,"纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡",6,"缪缫缬缭缯",4,"缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"],["e840","鐯",14,"鐿",43,"鑬鑭鑮鑯"],["e880","鑰",20,"钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"],["e940","锧锳锽镃镈镋镕镚镠镮镴镵長",7,"門",42],["e980","閫",32,"椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"],["ea40","闌",27,"闬闿阇阓阘阛阞阠阣",6,"阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"],["ea80","陘陙陚陜陝陞陠陣陥陦陫陭",4,"陳陸",12,"隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"],["eb40","隌階隑隒隓隕隖隚際隝",9,"隨",7,"隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖",9,"雡",6,"雫"],["eb80","雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗",4,"霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"],["ec40","霡",8,"霫霬霮霯霱霳",4,"霺霻霼霽霿",18,"靔靕靗靘靚靜靝靟靣靤靦靧靨靪",7],["ec80","靲靵靷",4,"靽",7,"鞆",4,"鞌鞎鞏鞐鞓鞕鞖鞗鞙",4,"臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"],["ed40","鞞鞟鞡鞢鞤",6,"鞬鞮鞰鞱鞳鞵",46],["ed80","韤韥韨韮",4,"韴韷",23,"怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"],["ee40","頏",62],["ee80","顎",32,"睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶",4,"钼钽钿铄铈",6,"铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"],["ef40","顯",5,"颋颎颒颕颙颣風",37,"飏飐飔飖飗飛飜飝飠",4],["ef80","飥飦飩",30,"铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒",4,"锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤",8,"镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"],["f040","餈",4,"餎餏餑",28,"餯",26],["f080","饊",9,"饖",12,"饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨",4,"鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦",6,"鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"],["f140","馌馎馚",10,"馦馧馩",47],["f180","駙",32,"瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"],["f240","駺",62],["f280","騹",32,"颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"],["f340","驚",17,"驲骃骉骍骎骔骕骙骦骩",6,"骲骳骴骵骹骻骽骾骿髃髄髆",4,"髍髎髏髐髒體髕髖髗髙髚髛髜"],["f380","髝髞髠髢髣髤髥髧髨髩髪髬髮髰",8,"髺髼",6,"鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"],["f440","鬇鬉",5,"鬐鬑鬒鬔",10,"鬠鬡鬢鬤",10,"鬰鬱鬳",7,"鬽鬾鬿魀魆魊魋魌魎魐魒魓魕",5],["f480","魛",32,"簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"],["f540","魼",62],["f580","鮻",32,"酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"],["f640","鯜",62],["f680","鰛",32,"觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅",5,"龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞",5,"鲥",4,"鲫鲭鲮鲰",7,"鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"],["f740","鰼",62],["f780","鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾",4,"鳈鳉鳑鳒鳚鳛鳠鳡鳌",4,"鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"],["f840","鳣",62],["f880","鴢",32],["f940","鵃",62],["f980","鶂",32],["fa40","鶣",62],["fa80","鷢",32],["fb40","鸃",27,"鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴",9,"麀"],["fb80","麁麃麄麅麆麉麊麌",5,"麔",8,"麞麠",5,"麧麨麩麪"],["fc40","麫",8,"麵麶麷麹麺麼麿",4,"黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰",8,"黺黽黿",6],["fc80","鼆",4,"鼌鼏鼑鼒鼔鼕鼖鼘鼚",5,"鼡鼣",8,"鼭鼮鼰鼱"],["fd40","鼲",4,"鼸鼺鼼鼿",4,"齅",10,"齒",38],["fd80","齹",5,"龁龂龍",11,"龜龝龞龡",4,"郎凉秊裏隣"],["fe40","兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"]]')},function(e,t){e.exports=require("zlib")},function(e,t,n){"use strict";const r=new(n(122))({max:15e3});e.exports={getParser:function(e,t,n,i,o){const s=function(e,t,n,r){let i=e+"/"+typeof n.nestTables+"/"+n.nestTables+"/"+n.rowsAsArray+"/"+(n.supportBigNumbers||r.supportBigNumbers)+"/"+(n.bigNumberStrings||r.bigNumberStrings)+"/"+typeof n.typeCast+"/"+(n.timezone||r.timezone)+"/"+n.decimalNumbers+"/"+n.dateStrings;for(let e=0;e(r.addColors(e.colors||e),e)},function(e,t,n){"use strict";const{configs:r,LEVEL:i,MESSAGE:o}=n(3);class s{constructor(e={levels:r.npm.levels}){this.paddings=s.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){const t=Object.keys(e).map(e=>e.length);return Math.max(...t)}static paddingForLevel(e,t,n){const r=n+1-e.length,i=Math.floor(r/t.length);return`${t}${t.repeat(i)}`.slice(0,r)}static paddingForLevels(e,t=" "){const n=s.getLongestLevel(e);return Object.keys(e).reduce((e,r)=>(e[r]=s.paddingForLevel(r,t,n),e),{})}transform(e,t){return e.message=`${this.paddings[e[i]]}${e.message}`,e[o]&&(e[o]=`${this.paddings[e[i]]}${e[o]}`),e}}e.exports=e=>new s(e),e.exports.Padder=e.exports.Format=s},function(e,t,n){"use strict";const r=n(13),{MESSAGE:i}=n(3),o=n(48);function s(e,t){return t instanceof Buffer?t.toString("base64"):"bigint"==typeof t?t.toString():t}e.exports=r((e,t={})=>(e[i]=(t.stable?o.stableStringify:o)(e,t.replacer||s,t.space),e))},function(e,t,n){"use strict";var r=n(11);e.exports=r((function(e){return e.message="\t".concat(e.message),e}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),t.levels||(t.levels=u.npm.levels),this.colorizer=new o(t),this.padder=new s(t),this.options=t}var t,n,a;return t=e,(n=[{key:"transform",value:function(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[c]="".concat(e.level,":").concat(e.message),e}}])&&i(t.prototype,n),a&&i(t,a),e}();e.exports=function(e){return new l(e)},e.exports.Format=l},function(e,t,n){"use strict";var r=n(11);function i(e){if(e.every(o))return function(t){for(var n=t,r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return e[i]=(t.stable?o.stableStringify:o)(e,t.replacer||s,t.space),e}))},function(e,t,n){"use strict";var r=n(11);e.exports=r((function(e,t){return t.message?(e.message="[".concat(t.label,"] ").concat(e.message),e):(e.label=t.label,e)}))},function(e,t,n){"use strict";var r=n(11),i=n(3).MESSAGE,o=n(48);e.exports=r((function(e){var t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e}))},function(e,t,n){"use strict";var r=n(11);function i(e,t,n){var r,i,o,s=t.reduce((function(t,n){return t[n]=e[n],delete e[n],t}),{}),a=Object.keys(e).reduce((function(t,n){return t[n]=e[n],delete e[n],t}),{});return Object.assign(e,s,(o=a,(i=n)in(r={})?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r)),e}function o(e,t,n){return e[n]=t.reduce((function(t,n){return t[n]=e[n],delete e[n],t}),{}),e}e.exports=r((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="metadata";t.key&&(n=t.key);var r=[];return t.fillExcept||t.fillWith||(r.push("level"),r.push("message")),t.fillExcept&&(r=t.fillExcept),r.length>0?i(e,r,n):t.fillWith?o(e,t.fillWith,n):e}))},function(e,t,n){"use strict";var r=n(7).inspect,i=n(11),o=n(3),s=o.LEVEL,a=o.MESSAGE,u=o.SPLAT;e.exports=i((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e);return delete n[s],delete n[a],delete n[u],e[a]=r(n,!1,t.depth||null,t.colorize),e}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n.splice(0):n,o=i.length;if(o)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return t.format&&(e.timestamp="function"==typeof t.format?t.format():r.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e}))},function(e,t,n){"use strict";var r=n(69),i=n(11),o=n(3).MESSAGE;e.exports=i((function(e,t){return!1!==t.level&&(e.level=r.strip(e.level)),!1!==t.message&&(e.message=r.strip(e.message)),!1!==t.raw&&e[o]&&(e[o]=r.strip(e[o])),e}))},function(e,t){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=Buffer.isBuffer},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={},e.exports=t.default},function(e,t,n){"use strict";var r=n(41).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(s)})),e.exports=c},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(112);e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.twitterLogger=void 0;const r=n(10);t.twitterLogger=r.mainLogger.child({module:"twitter"})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatMatches=t.formatProfile=t.matchLogger=void 0;const i=n(10),o=r(n(405));t.matchLogger=i.mainLogger.child({module:"match"}),t.formatProfile=function(e){return Object.assign(Object.assign({},e),{tagList:e.tags.split(",").filter(e=>e),lastActiveFormatted:o.default.unix(e.lastActive).toString(),viewed:!1})},t.formatMatches=function(e){return Object.assign(Object.assign({},e),{tagList:e.tags.split(",").filter(e=>e),lastActiveFormatted:o.default.unix(e.lastActive).toString(),matchedAtFormatted:o.default.unix(e.matchedAt).toString()})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(9);var r=n(5);function i(e,t){try{for(var n=e,r=[],i=0,s=0,a=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=o(n,t))||i>1&&s+r.length*a+u.length>=80);)r.push(u),s+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return""}}function o(e,t){var n,i,o,s,a,u,c,l=e,d=[];if(!l||!l.tagName)return"";d.push(l.tagName.toLowerCase());var f=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(null===(i=f)||void 0===i?void 0:i.length)f.forEach((function(e){d.push("["+e[0]+'="'+e[1]+'"]')}));else if(l.id&&d.push("#"+l.id),(o=l.className)&&Object(r.h)(o))for(s=o.split(/\s+/),c=0;c"}return e.event_id||""}function u(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function c(e,t){var n;if(e.exception&&e.exception.values){var i=e.exception.values[0],o=i.mechanism;if(i.mechanism=Object(r.a)(Object(r.a)(Object(r.a)({},{type:"generic",handled:!0}),o),t),t&&"data"in t){var s=Object(r.a)(Object(r.a)({},null===(n=o)||void 0===n?void 0:n.data),t.data);i.mechanism.data=s}}}var l=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function d(e){var t=e.match(l)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function f(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}function _(e,t,n){void 0===n&&(n=5);var r=t.lineno||0,i=e.length,s=Math.max(Math.min(i,r-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map((function(e){return Object(o.c)(e,0)})),t.context_line=Object(o.c)(e[Math.min(i-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,i),s+1+n).map((function(e){return Object(o.c)(e,0)}))}function h(e){return e.split(/[\?#]/,1)[0]}function E(e){var t;if(null===(t=e)||void 0===t?void 0:t.__sentry_captured__)return!0;try{Object.defineProperty(e,"__sentry_captured__",{value:!0})}catch(e){}return!1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(9),i=n(4);function o(){if(!("fetch"in Object(r.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function a(){if(!o())return!1;var e=Object(r.a)();if(s(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a),a.contentWindow&&a.contentWindow.fetch&&(t=s(a.contentWindow.fetch)),n.head.removeChild(a)}catch(e){i.b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function u(){return"ReportingObserver"in Object(r.a)()}function c(){var e=Object(r.a)(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i}},function(e,t,n){e.exports=n(215)},function(e,t){e.exports=require("tls")},function(e,t,n){"use strict";function r(e,t){t=t||{};this._head=0,this._tail=0,this._capacity=t.capacity,this._capacityMask=3,this._list=new Array(4),Array.isArray(e)&&this._fromArray(e)}r.prototype.peekAt=function(e){var t=e;if(t===(0|t)){var n=this.size();if(!(t>=n||t<-n))return t<0&&(t+=n),t=this._head+t&this._capacityMask,this._list[t]}},r.prototype.get=function(e){return this.peekAt(e)},r.prototype.peek=function(){if(this._head!==this._tail)return this._list[this._head]},r.prototype.peekFront=function(){return this.peek()},r.prototype.peekBack=function(){return this.peekAt(-1)},Object.defineProperty(r.prototype,"length",{get:function(){return this.size()}}),r.prototype.size=function(){return this._head===this._tail?0:this._headthis._capacity&&this.pop(),this._head1e4&&this._tail<=this._list.length>>>2&&this._shrinkArray(),t}},r.prototype.push=function(e){if(0===arguments.length)return this.size();var t=this._tail;return this._list[t]=e,this._tail=t+1&this._capacityMask,this._tail===this._head&&this._growArray(),this._capacity&&this.size()>this._capacity&&this.shift(),this._head1e4&&e<=t>>>2&&this._shrinkArray(),n}},r.prototype.removeOne=function(e){var t=e;if(t===(0|t)&&this._head!==this._tail){var n=this.size(),r=this._list.length;if(!(t>=n||t<-n)){t<0&&(t+=n),t=this._head+t&this._capacityMask;var i,o=this._list[t];if(e0;i--)this._list[t]=this._list[t=t-1+r&this._capacityMask];this._list[t]=void 0,this._head=this._head+1+r&this._capacityMask}else{for(i=n-1-e;i>0;i--)this._list[t]=this._list[t=t+1+r&this._capacityMask];this._list[t]=void 0,this._tail=this._tail-1+r&this._capacityMask}return o}}},r.prototype.remove=function(e,t){var n,r=e,i=t;if(r===(0|r)&&this._head!==this._tail){var o=this.size(),s=this._list.length;if(!(r>=o||r<-o||t<1)){if(r<0&&(r+=o),1===t||!t)return(n=new Array(1))[0]=this.removeOne(r),n;if(0===r&&r+t>=o)return n=this.toArray(),this.clear(),n;var a;for(r+t>o&&(t=o-r),n=new Array(t),a=0;a0;a--)this._list[r=r+1+s&this._capacityMask]=void 0;return n}if(0===e){for(this._head=this._head+t+s&this._capacityMask,a=t-1;a>0;a--)this._list[r=r+1+s&this._capacityMask]=void 0;return n}if(r0;a--)this.unshift(this._list[r=r-1+s&this._capacityMask]);for(r=this._head-1+s&this._capacityMask;i>0;)this._list[r=r-1+s&this._capacityMask]=void 0,i--;e<0&&(this._tail=r)}else{for(this._tail=r,r=r+t+s&this._capacityMask,a=o-(t+e);a>0;a--)this.push(this._list[r++]);for(r=this._tail;i>0;)this._list[r=r+1+s&this._capacityMask]=void 0,i--}return this._head<2&&this._tail>1e4&&this._tail<=s>>>2&&this._shrinkArray(),n}}},r.prototype.splice=function(e,t){var n=e;if(n===(0|n)){var r=this.size();if(n<0&&(n+=r),!(n>r)){if(arguments.length>2){var i,o,s,a=arguments.length,u=this._list.length,c=2;if(!r||n0&&(this._head=this._head+n+u&this._capacityMask)):(s=this.remove(n,t),this._head=this._head+n+u&this._capacityMask);a>c;)this.unshift(arguments[--a]);for(i=n;i>0;i--)this.unshift(o[i-1])}else{var l=(o=new Array(r-(n+t))).length;for(i=0;ithis._tail){for(t=this._head;t>>=1,this._capacityMask>>>=1},e.exports=r},function(e,t,n){"use strict";const r=n(216),i=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),d=Symbol("lruList"),f=Symbol("cache"),_=Symbol("updateAgeOnGet"),h=()=>1;const E=(e,t,n)=>{const r=e[f].get(t);if(r){const t=r.value;if(p(e,t)){if(R(e,r),!e[a])return}else n&&(e[_]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},p=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]},g=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){const n=t.prev;R(e,t),t=n}},R=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[f].delete(n.key),e[d].removeNode(t)}};class A{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const T=(e,t,n,r)=>{let i=n.value;p(e,i)&&(R(e,n),e[a]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||h;if(this[s]="function"!=typeof t?h:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[_]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,g(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[s]&&(this[s]=e,this[o]=0,this[d].forEach(e=>{e.length=this[s](e.value,e.key),this[o]+=e.length})),g(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;T(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;T(this,e,n,t),n=r}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[c]&&this[d]&&this[d].length&&this[d].forEach(e=>this[c](e.key,e.value)),this[f]=new Map,this[d]=new r,this[o]=0}dump(){return this[d].map(e=>!p(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[u])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[s](t,e);if(this[f].has(e)){if(a>this[i])return R(this,this[f].get(e)),!1;const s=this[f].get(e).value;return this[c]&&(this[l]||this[c](e,s.value)),s.now=r,s.maxAge=n,s.value=t,this[o]+=a-s.length,s.length=a,this.get(e),g(this),!0}const _=new A(e,t,a,r,n);return _.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=_.length,this[d].unshift(_),this[f].set(e,this[d].head),g(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!p(this,t)}get(e){return E(this,e,!0)}peek(e){return E(this,e,!1)}pop(){const e=this[d].tail;return e?(R(this,e),e.value):null}del(e){R(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[f].forEach((e,t)=>E(this,t,!1))}}},function(e,t,n){"use strict";const r=n(6);function i(e,t){const n=e[t],r=e[t+1],i=e[t+2];return r+i===0?n:n+(r<<8)+(i<<16)}class o{constructor(e,t){void 0===t&&(t=4),this.buffer=[],this.bufferLength=0,this.packetHeaderLength=t,this.headerLen=0,this.length=0,this.largePacketParts=[],this.firstPacketSequenceId=0,this.onPacket=e,this.execute=o.prototype.executeStart,this._flushLargePacket=7===t?this._flushLargePacket7:this._flushLargePacket4}_flushLargePacket4(){const e=this.largePacketParts.length;this.largePacketParts.unshift(Buffer.from([0,0,0,0]));const t=Buffer.concat(this.largePacketParts),n=new r(this.firstPacketSequenceId,t,0,t.length);this.largePacketParts.length=0,n.numPackets=e,this.onPacket(n)}_flushLargePacket7(){const e=this.largePacketParts.length;this.largePacketParts.unshift(Buffer.from([0,0,0,0,0,0,0]));const t=Buffer.concat(this.largePacketParts);this.largePacketParts.length=0;const n=new r(this.firstPacketSequenceId,t,0,t.length);n.numPackets=e,this.onPacket(n)}executeStart(e){let t=0;const n=e.length;for(;n-t>=3;){if(this.length=i(e,t),!(n-t>=this.length+this.packetHeaderLength))return this.buffer=[e.slice(t+3,n)],this.bufferLength=n-t-3,void(this.execute=o.prototype.executePayload);{const n=e[t+3];this.length<16777215&&0===this.largePacketParts.length?this.onPacket(new r(n,e,t,t+this.packetHeaderLength+this.length)):(0===this.largePacketParts.length&&(this.firstPacketSequenceId=n),this.largePacketParts.push(e.slice(t+this.packetHeaderLength,t+this.packetHeaderLength+this.length)),this.length<16777215&&this._flushLargePacket()),t+=this.packetHeaderLength+this.length}}n-t>0&&(this.headerLen=n-t,this.length=e[t],2===this.headerLen?(this.length=e[t]+(e[t+1]<<8),this.execute=o.prototype.executeHeader3):this.execute=o.prototype.executeHeader2)}executePayload(e){let t=0;const n=e.length,i=this.length-this.bufferLength+this.packetHeaderLength-3;if(n-t>=i){const s=Buffer.allocUnsafe(this.length+this.packetHeaderLength);let a=3;for(let e=0;e0)return this.execute(e.slice(t,n))}else this.buffer.push(e),this.bufferLength+=e.length;return null}executeHeader2(e){return this.length+=e[0]<<8,e.length>1?(this.length+=e[1]<<16,this.execute=o.prototype.executePayload,this.executePayload(e.slice(2))):(this.execute=o.prototype.executeHeader3,null)}executeHeader3(e){return this.length+=e[0]<<16,this.execute=o.prototype.executePayload,this.executePayload(e.slice(1))}}e.exports=o},function(e,t,n){"use strict";t.EE_CANTCREATEFILE=1,t.EE_READ=2,t.EE_WRITE=3,t.EE_BADCLOSE=4,t.EE_OUTOFMEMORY=5,t.EE_DELETE=6,t.EE_LINK=7,t.EE_EOFERR=9,t.EE_CANTLOCK=10,t.EE_CANTUNLOCK=11,t.EE_DIR=12,t.EE_STAT=13,t.EE_CANT_CHSIZE=14,t.EE_CANT_OPEN_STREAM=15,t.EE_GETWD=16,t.EE_SETWD=17,t.EE_LINK_WARNING=18,t.EE_OPEN_WARNING=19,t.EE_DISK_FULL=20,t.EE_CANT_MKDIR=21,t.EE_UNKNOWN_CHARSET=22,t.EE_OUT_OF_FILERESOURCES=23,t.EE_CANT_READLINK=24,t.EE_CANT_SYMLINK=25,t.EE_REALPATH=26,t.EE_SYNC=27,t.EE_UNKNOWN_COLLATION=28,t.EE_FILENOTFOUND=29,t.EE_FILE_NOT_CLOSED=30,t.EE_CHANGE_OWNERSHIP=31,t.EE_CHANGE_PERMISSIONS=32,t.EE_CANT_SEEK=33,t.HA_ERR_KEY_NOT_FOUND=120,t.HA_ERR_FOUND_DUPP_KEY=121,t.HA_ERR_INTERNAL_ERROR=122,t.HA_ERR_RECORD_CHANGED=123,t.HA_ERR_WRONG_INDEX=124,t.HA_ERR_CRASHED=126,t.HA_ERR_WRONG_IN_RECORD=127,t.HA_ERR_OUT_OF_MEM=128,t.HA_ERR_NOT_A_TABLE=130,t.HA_ERR_WRONG_COMMAND=131,t.HA_ERR_OLD_FILE=132,t.HA_ERR_NO_ACTIVE_RECORD=133,t.HA_ERR_RECORD_DELETED=134,t.HA_ERR_RECORD_FILE_FULL=135,t.HA_ERR_INDEX_FILE_FULL=136,t.HA_ERR_END_OF_FILE=137,t.HA_ERR_UNSUPPORTED=138,t.HA_ERR_TO_BIG_ROW=139,t.HA_WRONG_CREATE_OPTION=140,t.HA_ERR_FOUND_DUPP_UNIQUE=141,t.HA_ERR_UNKNOWN_CHARSET=142,t.HA_ERR_WRONG_MRG_TABLE_DEF=143,t.HA_ERR_CRASHED_ON_REPAIR=144,t.HA_ERR_CRASHED_ON_USAGE=145,t.HA_ERR_LOCK_WAIT_TIMEOUT=146,t.HA_ERR_LOCK_TABLE_FULL=147,t.HA_ERR_READ_ONLY_TRANSACTION=148,t.HA_ERR_LOCK_DEADLOCK=149,t.HA_ERR_CANNOT_ADD_FOREIGN=150,t.HA_ERR_NO_REFERENCED_ROW=151,t.HA_ERR_ROW_IS_REFERENCED=152,t.HA_ERR_NO_SAVEPOINT=153,t.HA_ERR_NON_UNIQUE_BLOCK_SIZE=154,t.HA_ERR_NO_SUCH_TABLE=155,t.HA_ERR_TABLE_EXIST=156,t.HA_ERR_NO_CONNECTION=157,t.HA_ERR_NULL_IN_SPATIAL=158,t.HA_ERR_TABLE_DEF_CHANGED=159,t.HA_ERR_NO_PARTITION_FOUND=160,t.HA_ERR_RBR_LOGGING_FAILED=161,t.HA_ERR_DROP_INDEX_FK=162,t.HA_ERR_FOREIGN_DUPLICATE_KEY=163,t.HA_ERR_TABLE_NEEDS_UPGRADE=164,t.HA_ERR_TABLE_READONLY=165,t.HA_ERR_AUTOINC_READ_FAILED=166,t.HA_ERR_AUTOINC_ERANGE=167,t.HA_ERR_GENERIC=168,t.HA_ERR_RECORD_IS_THE_SAME=169,t.HA_ERR_LOGGING_IMPOSSIBLE=170,t.HA_ERR_CORRUPT_EVENT=171,t.HA_ERR_NEW_FILE=172,t.HA_ERR_ROWS_EVENT_APPLY=173,t.HA_ERR_INITIALIZATION=174,t.HA_ERR_FILE_TOO_SHORT=175,t.HA_ERR_WRONG_CRC=176,t.HA_ERR_TOO_MANY_CONCURRENT_TRXS=177,t.HA_ERR_NOT_IN_LOCK_PARTITIONS=178,t.HA_ERR_INDEX_COL_TOO_LONG=179,t.HA_ERR_INDEX_CORRUPT=180,t.HA_ERR_UNDO_REC_TOO_BIG=181,t.HA_FTS_INVALID_DOCID=182,t.HA_ERR_TABLE_IN_FK_CHECK=183,t.HA_ERR_TABLESPACE_EXISTS=184,t.HA_ERR_TOO_MANY_FIELDS=185,t.HA_ERR_ROW_IN_WRONG_PARTITION=186,t.HA_ERR_INNODB_READ_ONLY=187,t.HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT=188,t.HA_ERR_TEMP_FILE_WRITE_FAILURE=189,t.HA_ERR_INNODB_FORCED_RECOVERY=190,t.HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE=191,t.ER_HASHCHK=1e3,t.ER_NISAMCHK=1001,t.ER_NO=1002,t.ER_YES=1003,t.ER_CANT_CREATE_FILE=1004,t.ER_CANT_CREATE_TABLE=1005,t.ER_CANT_CREATE_DB=1006,t.ER_DB_CREATE_EXISTS=1007,t.ER_DB_DROP_EXISTS=1008,t.ER_DB_DROP_DELETE=1009,t.ER_DB_DROP_RMDIR=1010,t.ER_CANT_DELETE_FILE=1011,t.ER_CANT_FIND_SYSTEM_REC=1012,t.ER_CANT_GET_STAT=1013,t.ER_CANT_GET_WD=1014,t.ER_CANT_LOCK=1015,t.ER_CANT_OPEN_FILE=1016,t.ER_FILE_NOT_FOUND=1017,t.ER_CANT_READ_DIR=1018,t.ER_CANT_SET_WD=1019,t.ER_CHECKREAD=1020,t.ER_DISK_FULL=1021,t.ER_DUP_KEY=1022,t.ER_ERROR_ON_CLOSE=1023,t.ER_ERROR_ON_READ=1024,t.ER_ERROR_ON_RENAME=1025,t.ER_ERROR_ON_WRITE=1026,t.ER_FILE_USED=1027,t.ER_FILSORT_ABORT=1028,t.ER_FORM_NOT_FOUND=1029,t.ER_GET_ERRNO=1030,t.ER_ILLEGAL_HA=1031,t.ER_KEY_NOT_FOUND=1032,t.ER_NOT_FORM_FILE=1033,t.ER_NOT_KEYFILE=1034,t.ER_OLD_KEYFILE=1035,t.ER_OPEN_AS_READONLY=1036,t.ER_OUTOFMEMORY=1037,t.ER_OUT_OF_SORTMEMORY=1038,t.ER_UNEXPECTED_EOF=1039,t.ER_CON_COUNT_ERROR=1040,t.ER_OUT_OF_RESOURCES=1041,t.ER_BAD_HOST_ERROR=1042,t.ER_HANDSHAKE_ERROR=1043,t.ER_DBACCESS_DENIED_ERROR=1044,t.ER_ACCESS_DENIED_ERROR=1045,t.ER_NO_DB_ERROR=1046,t.ER_UNKNOWN_COM_ERROR=1047,t.ER_BAD_NULL_ERROR=1048,t.ER_BAD_DB_ERROR=1049,t.ER_TABLE_EXISTS_ERROR=1050,t.ER_BAD_TABLE_ERROR=1051,t.ER_NON_UNIQ_ERROR=1052,t.ER_SERVER_SHUTDOWN=1053,t.ER_BAD_FIELD_ERROR=1054,t.ER_WRONG_FIELD_WITH_GROUP=1055,t.ER_WRONG_GROUP_FIELD=1056,t.ER_WRONG_SUM_SELECT=1057,t.ER_WRONG_VALUE_COUNT=1058,t.ER_TOO_LONG_IDENT=1059,t.ER_DUP_FIELDNAME=1060,t.ER_DUP_KEYNAME=1061,t.ER_DUP_ENTRY=1062,t.ER_WRONG_FIELD_SPEC=1063,t.ER_PARSE_ERROR=1064,t.ER_EMPTY_QUERY=1065,t.ER_NONUNIQ_TABLE=1066,t.ER_INVALID_DEFAULT=1067,t.ER_MULTIPLE_PRI_KEY=1068,t.ER_TOO_MANY_KEYS=1069,t.ER_TOO_MANY_KEY_PARTS=1070,t.ER_TOO_LONG_KEY=1071,t.ER_KEY_COLUMN_DOES_NOT_EXITS=1072,t.ER_BLOB_USED_AS_KEY=1073,t.ER_TOO_BIG_FIELDLENGTH=1074,t.ER_WRONG_AUTO_KEY=1075,t.ER_READY=1076,t.ER_NORMAL_SHUTDOWN=1077,t.ER_GOT_SIGNAL=1078,t.ER_SHUTDOWN_COMPLETE=1079,t.ER_FORCING_CLOSE=1080,t.ER_IPSOCK_ERROR=1081,t.ER_NO_SUCH_INDEX=1082,t.ER_WRONG_FIELD_TERMINATORS=1083,t.ER_BLOBS_AND_NO_TERMINATED=1084,t.ER_TEXTFILE_NOT_READABLE=1085,t.ER_FILE_EXISTS_ERROR=1086,t.ER_LOAD_INFO=1087,t.ER_ALTER_INFO=1088,t.ER_WRONG_SUB_KEY=1089,t.ER_CANT_REMOVE_ALL_FIELDS=1090,t.ER_CANT_DROP_FIELD_OR_KEY=1091,t.ER_INSERT_INFO=1092,t.ER_UPDATE_TABLE_USED=1093,t.ER_NO_SUCH_THREAD=1094,t.ER_KILL_DENIED_ERROR=1095,t.ER_NO_TABLES_USED=1096,t.ER_TOO_BIG_SET=1097,t.ER_NO_UNIQUE_LOGFILE=1098,t.ER_TABLE_NOT_LOCKED_FOR_WRITE=1099,t.ER_TABLE_NOT_LOCKED=1100,t.ER_BLOB_CANT_HAVE_DEFAULT=1101,t.ER_WRONG_DB_NAME=1102,t.ER_WRONG_TABLE_NAME=1103,t.ER_TOO_BIG_SELECT=1104,t.ER_UNKNOWN_ERROR=1105,t.ER_UNKNOWN_PROCEDURE=1106,t.ER_WRONG_PARAMCOUNT_TO_PROCEDURE=1107,t.ER_WRONG_PARAMETERS_TO_PROCEDURE=1108,t.ER_UNKNOWN_TABLE=1109,t.ER_FIELD_SPECIFIED_TWICE=1110,t.ER_INVALID_GROUP_FUNC_USE=1111,t.ER_UNSUPPORTED_EXTENSION=1112,t.ER_TABLE_MUST_HAVE_COLUMNS=1113,t.ER_RECORD_FILE_FULL=1114,t.ER_UNKNOWN_CHARACTER_SET=1115,t.ER_TOO_MANY_TABLES=1116,t.ER_TOO_MANY_FIELDS=1117,t.ER_TOO_BIG_ROWSIZE=1118,t.ER_STACK_OVERRUN=1119,t.ER_WRONG_OUTER_JOIN=1120,t.ER_NULL_COLUMN_IN_INDEX=1121,t.ER_CANT_FIND_UDF=1122,t.ER_CANT_INITIALIZE_UDF=1123,t.ER_UDF_NO_PATHS=1124,t.ER_UDF_EXISTS=1125,t.ER_CANT_OPEN_LIBRARY=1126,t.ER_CANT_FIND_DL_ENTRY=1127,t.ER_FUNCTION_NOT_DEFINED=1128,t.ER_HOST_IS_BLOCKED=1129,t.ER_HOST_NOT_PRIVILEGED=1130,t.ER_PASSWORD_ANONYMOUS_USER=1131,t.ER_PASSWORD_NOT_ALLOWED=1132,t.ER_PASSWORD_NO_MATCH=1133,t.ER_UPDATE_INFO=1134,t.ER_CANT_CREATE_THREAD=1135,t.ER_WRONG_VALUE_COUNT_ON_ROW=1136,t.ER_CANT_REOPEN_TABLE=1137,t.ER_INVALID_USE_OF_NULL=1138,t.ER_REGEXP_ERROR=1139,t.ER_MIX_OF_GROUP_FUNC_AND_FIELDS=1140,t.ER_NONEXISTING_GRANT=1141,t.ER_TABLEACCESS_DENIED_ERROR=1142,t.ER_COLUMNACCESS_DENIED_ERROR=1143,t.ER_ILLEGAL_GRANT_FOR_TABLE=1144,t.ER_GRANT_WRONG_HOST_OR_USER=1145,t.ER_NO_SUCH_TABLE=1146,t.ER_NONEXISTING_TABLE_GRANT=1147,t.ER_NOT_ALLOWED_COMMAND=1148,t.ER_SYNTAX_ERROR=1149,t.ER_DELAYED_CANT_CHANGE_LOCK=1150,t.ER_TOO_MANY_DELAYED_THREADS=1151,t.ER_ABORTING_CONNECTION=1152,t.ER_NET_PACKET_TOO_LARGE=1153,t.ER_NET_READ_ERROR_FROM_PIPE=1154,t.ER_NET_FCNTL_ERROR=1155,t.ER_NET_PACKETS_OUT_OF_ORDER=1156,t.ER_NET_UNCOMPRESS_ERROR=1157,t.ER_NET_READ_ERROR=1158,t.ER_NET_READ_INTERRUPTED=1159,t.ER_NET_ERROR_ON_WRITE=1160,t.ER_NET_WRITE_INTERRUPTED=1161,t.ER_TOO_LONG_STRING=1162,t.ER_TABLE_CANT_HANDLE_BLOB=1163,t.ER_TABLE_CANT_HANDLE_AUTO_INCREMENT=1164,t.ER_DELAYED_INSERT_TABLE_LOCKED=1165,t.ER_WRONG_COLUMN_NAME=1166,t.ER_WRONG_KEY_COLUMN=1167,t.ER_WRONG_MRG_TABLE=1168,t.ER_DUP_UNIQUE=1169,t.ER_BLOB_KEY_WITHOUT_LENGTH=1170,t.ER_PRIMARY_CANT_HAVE_NULL=1171,t.ER_TOO_MANY_ROWS=1172,t.ER_REQUIRES_PRIMARY_KEY=1173,t.ER_NO_RAID_COMPILED=1174,t.ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE=1175,t.ER_KEY_DOES_NOT_EXITS=1176,t.ER_CHECK_NO_SUCH_TABLE=1177,t.ER_CHECK_NOT_IMPLEMENTED=1178,t.ER_CANT_DO_THIS_DURING_AN_TRANSACTION=1179,t.ER_ERROR_DURING_COMMIT=1180,t.ER_ERROR_DURING_ROLLBACK=1181,t.ER_ERROR_DURING_FLUSH_LOGS=1182,t.ER_ERROR_DURING_CHECKPOINT=1183,t.ER_NEW_ABORTING_CONNECTION=1184,t.ER_DUMP_NOT_IMPLEMENTED=1185,t.ER_FLUSH_MASTER_BINLOG_CLOSED=1186,t.ER_FLUSH_SOURCE_BINLOG_CLOSED=1186,t.ER_INDEX_REBUILD=1187,t.ER_MASTER=1188,t.ER_SOURCE=1188,t.ER_MASTER_NET_READ=1189,t.ER_SOURCE_NET_READ=1189,t.ER_MASTER_NET_WRITE=1190,t.ER_SOURCE_NET_WRITE=1190,t.ER_FT_MATCHING_KEY_NOT_FOUND=1191,t.ER_LOCK_OR_ACTIVE_TRANSACTION=1192,t.ER_UNKNOWN_SYSTEM_VARIABLE=1193,t.ER_CRASHED_ON_USAGE=1194,t.ER_CRASHED_ON_REPAIR=1195,t.ER_WARNING_NOT_COMPLETE_ROLLBACK=1196,t.ER_TRANS_CACHE_FULL=1197,t.ER_SLAVE_MUST_STOP=1198,t.ER_REPLICA_MUST_STOP=1198,t.ER_SLAVE_NOT_RUNNING=1199,t.ER_REPLICA_NOT_RUNNING=1199,t.ER_BAD_SLAVE=1200,t.ER_BAD_REPLICA=1200,t.ER_MASTER_INFO=1201,t.ER_SOURCE_INFO=1201,t.ER_SLAVE_THREAD=1202,t.ER_REPLICA_THREAD=1202,t.ER_TOO_MANY_USER_CONNECTIONS=1203,t.ER_SET_CONSTANTS_ONLY=1204,t.ER_LOCK_WAIT_TIMEOUT=1205,t.ER_LOCK_TABLE_FULL=1206,t.ER_READ_ONLY_TRANSACTION=1207,t.ER_DROP_DB_WITH_READ_LOCK=1208,t.ER_CREATE_DB_WITH_READ_LOCK=1209,t.ER_WRONG_ARGUMENTS=1210,t.ER_NO_PERMISSION_TO_CREATE_USER=1211,t.ER_UNION_TABLES_IN_DIFFERENT_DIR=1212,t.ER_LOCK_DEADLOCK=1213,t.ER_TABLE_CANT_HANDLE_FT=1214,t.ER_CANNOT_ADD_FOREIGN=1215,t.ER_NO_REFERENCED_ROW=1216,t.ER_ROW_IS_REFERENCED=1217,t.ER_CONNECT_TO_MASTER=1218,t.ER_CONNECT_TO_SOURCE=1218,t.ER_QUERY_ON_MASTER=1219,t.ER_QUERY_ON_SOURCE=1219,t.ER_ERROR_WHEN_EXECUTING_COMMAND=1220,t.ER_WRONG_USAGE=1221,t.ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT=1222,t.ER_CANT_UPDATE_WITH_READLOCK=1223,t.ER_MIXING_NOT_ALLOWED=1224,t.ER_DUP_ARGUMENT=1225,t.ER_USER_LIMIT_REACHED=1226,t.ER_SPECIFIC_ACCESS_DENIED_ERROR=1227,t.ER_LOCAL_VARIABLE=1228,t.ER_GLOBAL_VARIABLE=1229,t.ER_NO_DEFAULT=1230,t.ER_WRONG_VALUE_FOR_VAR=1231,t.ER_WRONG_TYPE_FOR_VAR=1232,t.ER_VAR_CANT_BE_READ=1233,t.ER_CANT_USE_OPTION_HERE=1234,t.ER_NOT_SUPPORTED_YET=1235,t.ER_MASTER_FATAL_ERROR_READING_BINLOG=1236,t.ER_SOURCE_FATAL_ERROR_READING_BINLOG=1236,t.ER_SLAVE_IGNORED_TABLE=1237,t.ER_REPLICA_IGNORED_TABLE=1237,t.ER_INCORRECT_GLOBAL_LOCAL_VAR=1238,t.ER_WRONG_FK_DEF=1239,t.ER_KEY_REF_DO_NOT_MATCH_TABLE_REF=1240,t.ER_OPERAND_COLUMNS=1241,t.ER_SUBQUERY_NO_1_ROW=1242,t.ER_UNKNOWN_STMT_HANDLER=1243,t.ER_CORRUPT_HELP_DB=1244,t.ER_CYCLIC_REFERENCE=1245,t.ER_AUTO_CONVERT=1246,t.ER_ILLEGAL_REFERENCE=1247,t.ER_DERIVED_MUST_HAVE_ALIAS=1248,t.ER_SELECT_REDUCED=1249,t.ER_TABLENAME_NOT_ALLOWED_HERE=1250,t.ER_NOT_SUPPORTED_AUTH_MODE=1251,t.ER_SPATIAL_CANT_HAVE_NULL=1252,t.ER_COLLATION_CHARSET_MISMATCH=1253,t.ER_SLAVE_WAS_RUNNING=1254,t.ER_REPLICA_WAS_RUNNING=1254,t.ER_SLAVE_WAS_NOT_RUNNING=1255,t.ER_REPLICA_WAS_NOT_RUNNING=1255,t.ER_TOO_BIG_FOR_UNCOMPRESS=1256,t.ER_ZLIB_Z_MEM_ERROR=1257,t.ER_ZLIB_Z_BUF_ERROR=1258,t.ER_ZLIB_Z_DATA_ERROR=1259,t.ER_CUT_VALUE_GROUP_CONCAT=1260,t.ER_WARN_TOO_FEW_RECORDS=1261,t.ER_WARN_TOO_MANY_RECORDS=1262,t.ER_WARN_NULL_TO_NOTNULL=1263,t.ER_WARN_DATA_OUT_OF_RANGE=1264,t.ER_WARN_DATA_TRUNCATED=1265,t.ER_WARN_USING_OTHER_HANDLER=1266,t.ER_CANT_AGGREGATE_2COLLATIONS=1267,t.ER_DROP_USER=1268,t.ER_REVOKE_GRANTS=1269,t.ER_CANT_AGGREGATE_3COLLATIONS=1270,t.ER_CANT_AGGREGATE_NCOLLATIONS=1271,t.ER_VARIABLE_IS_NOT_STRUCT=1272,t.ER_UNKNOWN_COLLATION=1273,t.ER_SLAVE_IGNORED_SSL_PARAMS=1274,t.ER_REPLICA_IGNORED_SSL_PARAMS=1274,t.ER_SERVER_IS_IN_SECURE_AUTH_MODE=1275,t.ER_WARN_FIELD_RESOLVED=1276,t.ER_BAD_SLAVE_UNTIL_COND=1277,t.ER_BAD_REPLICA_UNTIL_COND=1277,t.ER_MISSING_SKIP_SLAVE=1278,t.ER_MISSING_SKIP_REPLICA=1278,t.ER_UNTIL_COND_IGNORED=1279,t.ER_WRONG_NAME_FOR_INDEX=1280,t.ER_WRONG_NAME_FOR_CATALOG=1281,t.ER_WARN_QC_RESIZE=1282,t.ER_BAD_FT_COLUMN=1283,t.ER_UNKNOWN_KEY_CACHE=1284,t.ER_WARN_HOSTNAME_WONT_WORK=1285,t.ER_UNKNOWN_STORAGE_ENGINE=1286,t.ER_WARN_DEPRECATED_SYNTAX=1287,t.ER_NON_UPDATABLE_TABLE=1288,t.ER_FEATURE_DISABLED=1289,t.ER_OPTION_PREVENTS_STATEMENT=1290,t.ER_DUPLICATED_VALUE_IN_TYPE=1291,t.ER_TRUNCATED_WRONG_VALUE=1292,t.ER_TOO_MUCH_AUTO_TIMESTAMP_COLS=1293,t.ER_INVALID_ON_UPDATE=1294,t.ER_UNSUPPORTED_PS=1295,t.ER_GET_ERRMSG=1296,t.ER_GET_TEMPORARY_ERRMSG=1297,t.ER_UNKNOWN_TIME_ZONE=1298,t.ER_WARN_INVALID_TIMESTAMP=1299,t.ER_INVALID_CHARACTER_STRING=1300,t.ER_WARN_ALLOWED_PACKET_OVERFLOWED=1301,t.ER_CONFLICTING_DECLARATIONS=1302,t.ER_SP_NO_RECURSIVE_CREATE=1303,t.ER_SP_ALREADY_EXISTS=1304,t.ER_SP_DOES_NOT_EXIST=1305,t.ER_SP_DROP_FAILED=1306,t.ER_SP_STORE_FAILED=1307,t.ER_SP_LILABEL_MISMATCH=1308,t.ER_SP_LABEL_REDEFINE=1309,t.ER_SP_LABEL_MISMATCH=1310,t.ER_SP_UNINIT_VAR=1311,t.ER_SP_BADSELECT=1312,t.ER_SP_BADRETURN=1313,t.ER_SP_BADSTATEMENT=1314,t.ER_UPDATE_LOG_DEPRECATED_IGNORED=1315,t.ER_UPDATE_LOG_DEPRECATED_TRANSLATED=1316,t.ER_QUERY_INTERRUPTED=1317,t.ER_SP_WRONG_NO_OF_ARGS=1318,t.ER_SP_COND_MISMATCH=1319,t.ER_SP_NORETURN=1320,t.ER_SP_NORETURNEND=1321,t.ER_SP_BAD_CURSOR_QUERY=1322,t.ER_SP_BAD_CURSOR_SELECT=1323,t.ER_SP_CURSOR_MISMATCH=1324,t.ER_SP_CURSOR_ALREADY_OPEN=1325,t.ER_SP_CURSOR_NOT_OPEN=1326,t.ER_SP_UNDECLARED_VAR=1327,t.ER_SP_WRONG_NO_OF_FETCH_ARGS=1328,t.ER_SP_FETCH_NO_DATA=1329,t.ER_SP_DUP_PARAM=1330,t.ER_SP_DUP_VAR=1331,t.ER_SP_DUP_COND=1332,t.ER_SP_DUP_CURS=1333,t.ER_SP_CANT_ALTER=1334,t.ER_SP_SUBSELECT_NYI=1335,t.ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG=1336,t.ER_SP_VARCOND_AFTER_CURSHNDLR=1337,t.ER_SP_CURSOR_AFTER_HANDLER=1338,t.ER_SP_CASE_NOT_FOUND=1339,t.ER_FPARSER_TOO_BIG_FILE=1340,t.ER_FPARSER_BAD_HEADER=1341,t.ER_FPARSER_EOF_IN_COMMENT=1342,t.ER_FPARSER_ERROR_IN_PARAMETER=1343,t.ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER=1344,t.ER_VIEW_NO_EXPLAIN=1345,t.ER_FRM_UNKNOWN_TYPE=1346,t.ER_WRONG_OBJECT=1347,t.ER_NONUPDATEABLE_COLUMN=1348,t.ER_VIEW_SELECT_DERIVED=1349,t.ER_VIEW_SELECT_CLAUSE=1350,t.ER_VIEW_SELECT_VARIABLE=1351,t.ER_VIEW_SELECT_TMPTABLE=1352,t.ER_VIEW_WRONG_LIST=1353,t.ER_WARN_VIEW_MERGE=1354,t.ER_WARN_VIEW_WITHOUT_KEY=1355,t.ER_VIEW_INVALID=1356,t.ER_SP_NO_DROP_SP=1357,t.ER_SP_GOTO_IN_HNDLR=1358,t.ER_TRG_ALREADY_EXISTS=1359,t.ER_TRG_DOES_NOT_EXIST=1360,t.ER_TRG_ON_VIEW_OR_TEMP_TABLE=1361,t.ER_TRG_CANT_CHANGE_ROW=1362,t.ER_TRG_NO_SUCH_ROW_IN_TRG=1363,t.ER_NO_DEFAULT_FOR_FIELD=1364,t.ER_DIVISION_BY_ZERO=1365,t.ER_TRUNCATED_WRONG_VALUE_FOR_FIELD=1366,t.ER_ILLEGAL_VALUE_FOR_TYPE=1367,t.ER_VIEW_NONUPD_CHECK=1368,t.ER_VIEW_CHECK_FAILED=1369,t.ER_PROCACCESS_DENIED_ERROR=1370,t.ER_RELAY_LOG_FAIL=1371,t.ER_PASSWD_LENGTH=1372,t.ER_UNKNOWN_TARGET_BINLOG=1373,t.ER_IO_ERR_LOG_INDEX_READ=1374,t.ER_BINLOG_PURGE_PROHIBITED=1375,t.ER_FSEEK_FAIL=1376,t.ER_BINLOG_PURGE_FATAL_ERR=1377,t.ER_LOG_IN_USE=1378,t.ER_LOG_PURGE_UNKNOWN_ERR=1379,t.ER_RELAY_LOG_INIT=1380,t.ER_NO_BINARY_LOGGING=1381,t.ER_RESERVED_SYNTAX=1382,t.ER_WSAS_FAILED=1383,t.ER_DIFF_GROUPS_PROC=1384,t.ER_NO_GROUP_FOR_PROC=1385,t.ER_ORDER_WITH_PROC=1386,t.ER_LOGGING_PROHIBIT_CHANGING_OF=1387,t.ER_NO_FILE_MAPPING=1388,t.ER_WRONG_MAGIC=1389,t.ER_PS_MANY_PARAM=1390,t.ER_KEY_PART_0=1391,t.ER_VIEW_CHECKSUM=1392,t.ER_VIEW_MULTIUPDATE=1393,t.ER_VIEW_NO_INSERT_FIELD_LIST=1394,t.ER_VIEW_DELETE_MERGE_VIEW=1395,t.ER_CANNOT_USER=1396,t.ER_XAER_NOTA=1397,t.ER_XAER_INVAL=1398,t.ER_XAER_RMFAIL=1399,t.ER_XAER_OUTSIDE=1400,t.ER_XAER_RMERR=1401,t.ER_XA_RBROLLBACK=1402,t.ER_NONEXISTING_PROC_GRANT=1403,t.ER_PROC_AUTO_GRANT_FAIL=1404,t.ER_PROC_AUTO_REVOKE_FAIL=1405,t.ER_DATA_TOO_LONG=1406,t.ER_SP_BAD_SQLSTATE=1407,t.ER_STARTUP=1408,t.ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR=1409,t.ER_CANT_CREATE_USER_WITH_GRANT=1410,t.ER_WRONG_VALUE_FOR_TYPE=1411,t.ER_TABLE_DEF_CHANGED=1412,t.ER_SP_DUP_HANDLER=1413,t.ER_SP_NOT_VAR_ARG=1414,t.ER_SP_NO_RETSET=1415,t.ER_CANT_CREATE_GEOMETRY_OBJECT=1416,t.ER_FAILED_ROUTINE_BREAK_BINLOG=1417,t.ER_BINLOG_UNSAFE_ROUTINE=1418,t.ER_BINLOG_CREATE_ROUTINE_NEED_SUPER=1419,t.ER_EXEC_STMT_WITH_OPEN_CURSOR=1420,t.ER_STMT_HAS_NO_OPEN_CURSOR=1421,t.ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG=1422,t.ER_NO_DEFAULT_FOR_VIEW_FIELD=1423,t.ER_SP_NO_RECURSION=1424,t.ER_TOO_BIG_SCALE=1425,t.ER_TOO_BIG_PRECISION=1426,t.ER_M_BIGGER_THAN_D=1427,t.ER_WRONG_LOCK_OF_SYSTEM_TABLE=1428,t.ER_CONNECT_TO_FOREIGN_DATA_SOURCE=1429,t.ER_QUERY_ON_FOREIGN_DATA_SOURCE=1430,t.ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST=1431,t.ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE=1432,t.ER_FOREIGN_DATA_STRING_INVALID=1433,t.ER_CANT_CREATE_FEDERATED_TABLE=1434,t.ER_TRG_IN_WRONG_SCHEMA=1435,t.ER_STACK_OVERRUN_NEED_MORE=1436,t.ER_TOO_LONG_BODY=1437,t.ER_WARN_CANT_DROP_DEFAULT_KEYCACHE=1438,t.ER_TOO_BIG_DISPLAYWIDTH=1439,t.ER_XAER_DUPID=1440,t.ER_DATETIME_FUNCTION_OVERFLOW=1441,t.ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG=1442,t.ER_VIEW_PREVENT_UPDATE=1443,t.ER_PS_NO_RECURSION=1444,t.ER_SP_CANT_SET_AUTOCOMMIT=1445,t.ER_MALFORMED_DEFINER=1446,t.ER_VIEW_FRM_NO_USER=1447,t.ER_VIEW_OTHER_USER=1448,t.ER_NO_SUCH_USER=1449,t.ER_FORBID_SCHEMA_CHANGE=1450,t.ER_ROW_IS_REFERENCED_2=1451,t.ER_NO_REFERENCED_ROW_2=1452,t.ER_SP_BAD_VAR_SHADOW=1453,t.ER_TRG_NO_DEFINER=1454,t.ER_OLD_FILE_FORMAT=1455,t.ER_SP_RECURSION_LIMIT=1456,t.ER_SP_PROC_TABLE_CORRUPT=1457,t.ER_SP_WRONG_NAME=1458,t.ER_TABLE_NEEDS_UPGRADE=1459,t.ER_SP_NO_AGGREGATE=1460,t.ER_MAX_PREPARED_STMT_COUNT_REACHED=1461,t.ER_VIEW_RECURSIVE=1462,t.ER_NON_GROUPING_FIELD_USED=1463,t.ER_TABLE_CANT_HANDLE_SPKEYS=1464,t.ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA=1465,t.ER_REMOVED_SPACES=1466,t.ER_AUTOINC_READ_FAILED=1467,t.ER_USERNAME=1468,t.ER_HOSTNAME=1469,t.ER_WRONG_STRING_LENGTH=1470,t.ER_NON_INSERTABLE_TABLE=1471,t.ER_ADMIN_WRONG_MRG_TABLE=1472,t.ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT=1473,t.ER_NAME_BECOMES_EMPTY=1474,t.ER_AMBIGUOUS_FIELD_TERM=1475,t.ER_FOREIGN_SERVER_EXISTS=1476,t.ER_FOREIGN_SERVER_DOESNT_EXIST=1477,t.ER_ILLEGAL_HA_CREATE_OPTION=1478,t.ER_PARTITION_REQUIRES_VALUES_ERROR=1479,t.ER_PARTITION_WRONG_VALUES_ERROR=1480,t.ER_PARTITION_MAXVALUE_ERROR=1481,t.ER_PARTITION_SUBPARTITION_ERROR=1482,t.ER_PARTITION_SUBPART_MIX_ERROR=1483,t.ER_PARTITION_WRONG_NO_PART_ERROR=1484,t.ER_PARTITION_WRONG_NO_SUBPART_ERROR=1485,t.ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR=1486,t.ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR=1487,t.ER_FIELD_NOT_FOUND_PART_ERROR=1488,t.ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR=1489,t.ER_INCONSISTENT_PARTITION_INFO_ERROR=1490,t.ER_PARTITION_FUNC_NOT_ALLOWED_ERROR=1491,t.ER_PARTITIONS_MUST_BE_DEFINED_ERROR=1492,t.ER_RANGE_NOT_INCREASING_ERROR=1493,t.ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR=1494,t.ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR=1495,t.ER_PARTITION_ENTRY_ERROR=1496,t.ER_MIX_HANDLER_ERROR=1497,t.ER_PARTITION_NOT_DEFINED_ERROR=1498,t.ER_TOO_MANY_PARTITIONS_ERROR=1499,t.ER_SUBPARTITION_ERROR=1500,t.ER_CANT_CREATE_HANDLER_FILE=1501,t.ER_BLOB_FIELD_IN_PART_FUNC_ERROR=1502,t.ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF=1503,t.ER_NO_PARTS_ERROR=1504,t.ER_PARTITION_MGMT_ON_NONPARTITIONED=1505,t.ER_FOREIGN_KEY_ON_PARTITIONED=1506,t.ER_DROP_PARTITION_NON_EXISTENT=1507,t.ER_DROP_LAST_PARTITION=1508,t.ER_COALESCE_ONLY_ON_HASH_PARTITION=1509,t.ER_REORG_HASH_ONLY_ON_SAME_NO=1510,t.ER_REORG_NO_PARAM_ERROR=1511,t.ER_ONLY_ON_RANGE_LIST_PARTITION=1512,t.ER_ADD_PARTITION_SUBPART_ERROR=1513,t.ER_ADD_PARTITION_NO_NEW_PARTITION=1514,t.ER_COALESCE_PARTITION_NO_PARTITION=1515,t.ER_REORG_PARTITION_NOT_EXIST=1516,t.ER_SAME_NAME_PARTITION=1517,t.ER_NO_BINLOG_ERROR=1518,t.ER_CONSECUTIVE_REORG_PARTITIONS=1519,t.ER_REORG_OUTSIDE_RANGE=1520,t.ER_PARTITION_FUNCTION_FAILURE=1521,t.ER_PART_STATE_ERROR=1522,t.ER_LIMITED_PART_RANGE=1523,t.ER_PLUGIN_IS_NOT_LOADED=1524,t.ER_WRONG_VALUE=1525,t.ER_NO_PARTITION_FOR_GIVEN_VALUE=1526,t.ER_FILEGROUP_OPTION_ONLY_ONCE=1527,t.ER_CREATE_FILEGROUP_FAILED=1528,t.ER_DROP_FILEGROUP_FAILED=1529,t.ER_TABLESPACE_AUTO_EXTEND_ERROR=1530,t.ER_WRONG_SIZE_NUMBER=1531,t.ER_SIZE_OVERFLOW_ERROR=1532,t.ER_ALTER_FILEGROUP_FAILED=1533,t.ER_BINLOG_ROW_LOGGING_FAILED=1534,t.ER_BINLOG_ROW_WRONG_TABLE_DEF=1535,t.ER_BINLOG_ROW_RBR_TO_SBR=1536,t.ER_EVENT_ALREADY_EXISTS=1537,t.ER_EVENT_STORE_FAILED=1538,t.ER_EVENT_DOES_NOT_EXIST=1539,t.ER_EVENT_CANT_ALTER=1540,t.ER_EVENT_DROP_FAILED=1541,t.ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG=1542,t.ER_EVENT_ENDS_BEFORE_STARTS=1543,t.ER_EVENT_EXEC_TIME_IN_THE_PAST=1544,t.ER_EVENT_OPEN_TABLE_FAILED=1545,t.ER_EVENT_NEITHER_M_EXPR_NOR_M_AT=1546,t.ER_COL_COUNT_DOESNT_MATCH_CORRUPTED=1547,t.ER_CANNOT_LOAD_FROM_TABLE=1548,t.ER_EVENT_CANNOT_DELETE=1549,t.ER_EVENT_COMPILE_ERROR=1550,t.ER_EVENT_SAME_NAME=1551,t.ER_EVENT_DATA_TOO_LONG=1552,t.ER_DROP_INDEX_FK=1553,t.ER_WARN_DEPRECATED_SYNTAX_WITH_VER=1554,t.ER_CANT_WRITE_LOCK_LOG_TABLE=1555,t.ER_CANT_LOCK_LOG_TABLE=1556,t.ER_FOREIGN_DUPLICATE_KEY=1557,t.ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE=1558,t.ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR=1559,t.ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT=1560,t.ER_NDB_CANT_SWITCH_BINLOG_FORMAT=1561,t.ER_PARTITION_NO_TEMPORARY=1562,t.ER_PARTITION_CONST_DOMAIN_ERROR=1563,t.ER_PARTITION_FUNCTION_IS_NOT_ALLOWED=1564,t.ER_DDL_LOG_ERROR=1565,t.ER_NULL_IN_VALUES_LESS_THAN=1566,t.ER_WRONG_PARTITION_NAME=1567,t.ER_CANT_CHANGE_TX_ISOLATION=1568,t.ER_DUP_ENTRY_AUTOINCREMENT_CASE=1569,t.ER_EVENT_MODIFY_QUEUE_ERROR=1570,t.ER_EVENT_SET_VAR_ERROR=1571,t.ER_PARTITION_MERGE_ERROR=1572,t.ER_CANT_ACTIVATE_LOG=1573,t.ER_RBR_NOT_AVAILABLE=1574,t.ER_BASE64_DECODE_ERROR=1575,t.ER_EVENT_RECURSION_FORBIDDEN=1576,t.ER_EVENTS_DB_ERROR=1577,t.ER_ONLY_INTEGERS_ALLOWED=1578,t.ER_UNSUPORTED_LOG_ENGINE=1579,t.ER_BAD_LOG_STATEMENT=1580,t.ER_CANT_RENAME_LOG_TABLE=1581,t.ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT=1582,t.ER_WRONG_PARAMETERS_TO_NATIVE_FCT=1583,t.ER_WRONG_PARAMETERS_TO_STORED_FCT=1584,t.ER_NATIVE_FCT_NAME_COLLISION=1585,t.ER_DUP_ENTRY_WITH_KEY_NAME=1586,t.ER_BINLOG_PURGE_EMFILE=1587,t.ER_EVENT_CANNOT_CREATE_IN_THE_PAST=1588,t.ER_EVENT_CANNOT_ALTER_IN_THE_PAST=1589,t.ER_SLAVE_INCIDENT=1590,t.ER_REPLICA_INCIDENT=1590,t.ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT=1591,t.ER_BINLOG_UNSAFE_STATEMENT=1592,t.ER_SLAVE_FATAL_ERROR=1593,t.ER_REPLICA_FATAL_ERROR=1593,t.ER_SLAVE_RELAY_LOG_READ_FAILURE=1594,t.ER_REPLICA_RELAY_LOG_READ_FAILURE=1594,t.ER_SLAVE_RELAY_LOG_WRITE_FAILURE=1595,t.ER_REPLICA_RELAY_LOG_WRITE_FAILURE=1595,t.ER_SLAVE_CREATE_EVENT_FAILURE=1596,t.ER_REPLICA_CREATE_EVENT_FAILURE=1596,t.ER_SLAVE_MASTER_COM_FAILURE=1597,t.ER_REPLICA_SOURCE_COM_FAILURE=1597,t.ER_BINLOG_LOGGING_IMPOSSIBLE=1598,t.ER_VIEW_NO_CREATION_CTX=1599,t.ER_VIEW_INVALID_CREATION_CTX=1600,t.ER_SR_INVALID_CREATION_CTX=1601,t.ER_TRG_CORRUPTED_FILE=1602,t.ER_TRG_NO_CREATION_CTX=1603,t.ER_TRG_INVALID_CREATION_CTX=1604,t.ER_EVENT_INVALID_CREATION_CTX=1605,t.ER_TRG_CANT_OPEN_TABLE=1606,t.ER_CANT_CREATE_SROUTINE=1607,t.ER_NEVER_USED=1608,t.ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT=1609,t.ER_SLAVE_CORRUPT_EVENT=1610,t.ER_REPLICA_CORRUPT_EVENT=1610,t.ER_LOAD_DATA_INVALID_COLUMN=1611,t.ER_LOG_PURGE_NO_FILE=1612,t.ER_XA_RBTIMEOUT=1613,t.ER_XA_RBDEADLOCK=1614,t.ER_NEED_REPREPARE=1615,t.ER_DELAYED_NOT_SUPPORTED=1616,t.WARN_NO_MASTER_INFO=1617,t.WARN_NO_SOURCE_INFO=1617,t.WARN_OPTION_IGNORED=1618,t.WARN_PLUGIN_DELETE_BUILTIN=1619,t.WARN_PLUGIN_BUSY=1620,t.ER_VARIABLE_IS_READONLY=1621,t.ER_WARN_ENGINE_TRANSACTION_ROLLBACK=1622,t.ER_SLAVE_HEARTBEAT_FAILURE=1623,t.ER_REPLICA_HEARTBEAT_FAILURE=1623,t.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE=1624,t.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE=1624,t.ER_NDB_REPLICATION_SCHEMA_ERROR=1625,t.ER_CONFLICT_FN_PARSE_ERROR=1626,t.ER_EXCEPTIONS_WRITE_ERROR=1627,t.ER_TOO_LONG_TABLE_COMMENT=1628,t.ER_TOO_LONG_FIELD_COMMENT=1629,t.ER_FUNC_INEXISTENT_NAME_COLLISION=1630,t.ER_DATABASE_NAME=1631,t.ER_TABLE_NAME=1632,t.ER_PARTITION_NAME=1633,t.ER_SUBPARTITION_NAME=1634,t.ER_TEMPORARY_NAME=1635,t.ER_RENAMED_NAME=1636,t.ER_TOO_MANY_CONCURRENT_TRXS=1637,t.WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED=1638,t.ER_DEBUG_SYNC_TIMEOUT=1639,t.ER_DEBUG_SYNC_HIT_LIMIT=1640,t.ER_DUP_SIGNAL_SET=1641,t.ER_SIGNAL_WARN=1642,t.ER_SIGNAL_NOT_FOUND=1643,t.ER_SIGNAL_EXCEPTION=1644,t.ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER=1645,t.ER_SIGNAL_BAD_CONDITION_TYPE=1646,t.WARN_COND_ITEM_TRUNCATED=1647,t.ER_COND_ITEM_TOO_LONG=1648,t.ER_UNKNOWN_LOCALE=1649,t.ER_SLAVE_IGNORE_SERVER_IDS=1650,t.ER_REPLICA_IGNORE_SERVER_IDS=1650,t.ER_QUERY_CACHE_DISABLED=1651,t.ER_SAME_NAME_PARTITION_FIELD=1652,t.ER_PARTITION_COLUMN_LIST_ERROR=1653,t.ER_WRONG_TYPE_COLUMN_VALUE_ERROR=1654,t.ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR=1655,t.ER_MAXVALUE_IN_VALUES_IN=1656,t.ER_TOO_MANY_VALUES_ERROR=1657,t.ER_ROW_SINGLE_PARTITION_FIELD_ERROR=1658,t.ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD=1659,t.ER_PARTITION_FIELDS_TOO_LONG=1660,t.ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE=1661,t.ER_BINLOG_ROW_MODE_AND_STMT_ENGINE=1662,t.ER_BINLOG_UNSAFE_AND_STMT_ENGINE=1663,t.ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE=1664,t.ER_BINLOG_STMT_MODE_AND_ROW_ENGINE=1665,t.ER_BINLOG_ROW_INJECTION_AND_STMT_MODE=1666,t.ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE=1667,t.ER_BINLOG_UNSAFE_LIMIT=1668;t.ER_BINLOG_UNSAFE_INSERT_DELAYED=1669,t.ER_BINLOG_UNSAFE_SYSTEM_TABLE=1670,t.ER_BINLOG_UNSAFE_AUTOINC_COLUMNS=1671,t.ER_BINLOG_UNSAFE_UDF=1672,t.ER_BINLOG_UNSAFE_SYSTEM_VARIABLE=1673,t.ER_BINLOG_UNSAFE_SYSTEM_FUNCTION=1674,t.ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS=1675,t.ER_MESSAGE_AND_STATEMENT=1676,t.ER_SLAVE_CONVERSION_FAILED=1677,t.ER_REPLICA_CONVERSION_FAILED=1677,t.ER_SLAVE_CANT_CREATE_CONVERSION=1678,t.ER_REPLICA_CANT_CREATE_CONVERSION=1678,t.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT=1679,t.ER_PATH_LENGTH=1680,t.ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT=1681,t.ER_WRONG_NATIVE_TABLE_STRUCTURE=1682,t.ER_WRONG_PERFSCHEMA_USAGE=1683,t.ER_WARN_I_S_SKIPPED_TABLE=1684,t.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT=1685,t.ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT=1686,t.ER_SPATIAL_MUST_HAVE_GEOM_COL=1687,t.ER_TOO_LONG_INDEX_COMMENT=1688,t.ER_LOCK_ABORTED=1689,t.ER_DATA_OUT_OF_RANGE=1690,t.ER_WRONG_SPVAR_TYPE_IN_LIMIT=1691,t.ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE=1692,t.ER_BINLOG_UNSAFE_MIXED_STATEMENT=1693,t.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN=1694,t.ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN=1695,t.ER_FAILED_READ_FROM_PAR_FILE=1696,t.ER_VALUES_IS_NOT_INT_TYPE_ERROR=1697,t.ER_ACCESS_DENIED_NO_PASSWORD_ERROR=1698,t.ER_SET_PASSWORD_AUTH_PLUGIN=1699,t.ER_GRANT_PLUGIN_USER_EXISTS=1700,t.ER_TRUNCATE_ILLEGAL_FK=1701,t.ER_PLUGIN_IS_PERMANENT=1702,t.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN=1703,t.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN=1703,t.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX=1704,t.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX=1704,t.ER_STMT_CACHE_FULL=1705,t.ER_MULTI_UPDATE_KEY_CONFLICT=1706,t.ER_TABLE_NEEDS_REBUILD=1707,t.WARN_OPTION_BELOW_LIMIT=1708,t.ER_INDEX_COLUMN_TOO_LONG=1709,t.ER_ERROR_IN_TRIGGER_BODY=1710,t.ER_ERROR_IN_UNKNOWN_TRIGGER_BODY=1711,t.ER_INDEX_CORRUPT=1712,t.ER_UNDO_RECORD_TOO_BIG=1713,t.ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT=1714,t.ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE=1715,t.ER_BINLOG_UNSAFE_REPLACE_SELECT=1716,t.ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT=1717,t.ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT=1718,t.ER_BINLOG_UNSAFE_UPDATE_IGNORE=1719,t.ER_PLUGIN_NO_UNINSTALL=1720,t.ER_PLUGIN_NO_INSTALL=1721,t.ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT=1722,t.ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC=1723,t.ER_BINLOG_UNSAFE_INSERT_TWO_KEYS=1724,t.ER_TABLE_IN_FK_CHECK=1725,t.ER_UNSUPPORTED_ENGINE=1726,t.ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST=1727,t.ER_CANNOT_LOAD_FROM_TABLE_V2=1728,t.ER_MASTER_DELAY_VALUE_OUT_OF_RANGE=1729,t.ER_SOURCE_DELAY_VALUE_OUT_OF_RANGE=1729,t.ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT=1730,t.ER_PARTITION_EXCHANGE_DIFFERENT_OPTION=1731,t.ER_PARTITION_EXCHANGE_PART_TABLE=1732,t.ER_PARTITION_EXCHANGE_TEMP_TABLE=1733,t.ER_PARTITION_INSTEAD_OF_SUBPARTITION=1734,t.ER_UNKNOWN_PARTITION=1735,t.ER_TABLES_DIFFERENT_METADATA=1736,t.ER_ROW_DOES_NOT_MATCH_PARTITION=1737,t.ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX=1738,t.ER_WARN_INDEX_NOT_APPLICABLE=1739,t.ER_PARTITION_EXCHANGE_FOREIGN_KEY=1740,t.ER_NO_SUCH_KEY_VALUE=1741,t.ER_RPL_INFO_DATA_TOO_LONG=1742,t.ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE=1743,t.ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE=1744,t.ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX=1745,t.ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT=1746,t.ER_PARTITION_CLAUSE_ON_NONPARTITIONED=1747,t.ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET=1748,t.ER_NO_SUCH_PARTITION=1749,t.ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE=1750,t.ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE=1751,t.ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE=1752,t.ER_MTS_FEATURE_IS_NOT_SUPPORTED=1753,t.ER_MTS_UPDATED_DBS_GREATER_MAX=1754,t.ER_MTS_CANT_PARALLEL=1755,t.ER_MTS_INCONSISTENT_DATA=1756,t.ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING=1757,t.ER_DA_INVALID_CONDITION_NUMBER=1758,t.ER_INSECURE_PLAIN_TEXT=1759,t.ER_INSECURE_CHANGE_MASTER=1760,t.ER_INSECURE_CHANGE_SOURCE=1760,t.ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO=1761,t.ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO=1762,t.ER_SQLTHREAD_WITH_SECURE_SLAVE=1763,t.ER_SQLTHREAD_WITH_SECURE_REPLICA=1763,t.ER_TABLE_HAS_NO_FT=1764,t.ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER=1765,t.ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION=1766,t.ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST=1767,t.ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL=1768,t.ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION=1769,t.ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL=1770,t.ER_SKIPPING_LOGGED_TRANSACTION=1771,t.ER_MALFORMED_GTID_SET_SPECIFICATION=1772,t.ER_MALFORMED_GTID_SET_ENCODING=1773,t.ER_MALFORMED_GTID_SPECIFICATION=1774,t.ER_GNO_EXHAUSTED=1775,t.ER_BAD_SLAVE_AUTO_POSITION=1776,t.ER_BAD_REPLICA_AUTO_POSITION=1776,t.ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON=1777,t.ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET=1778,t.ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON=1779,t.ER_GTID_MODE_REQUIRES_BINLOG=1780,t.ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF=1781,t.ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON=1782,t.ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF=1783,t.ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF=1784,t.ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE=1785,t.ER_GTID_UNSAFE_CREATE_SELECT=1786,t.ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION=1787,t.ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME=1788,t.ER_MASTER_HAS_PURGED_REQUIRED_GTIDS=1789,t.ER_SOURCE_HAS_PURGED_REQUIRED_GTIDS=1789,t.ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID=1790,t.ER_UNKNOWN_EXPLAIN_FORMAT=1791,t.ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION=1792,t.ER_TOO_LONG_TABLE_PARTITION_COMMENT=1793,t.ER_SLAVE_CONFIGURATION=1794,t.ER_REPLICA_CONFIGURATION=1794,t.ER_INNODB_FT_LIMIT=1795,t.ER_INNODB_NO_FT_TEMP_TABLE=1796,t.ER_INNODB_FT_WRONG_DOCID_COLUMN=1797,t.ER_INNODB_FT_WRONG_DOCID_INDEX=1798,t.ER_INNODB_ONLINE_LOG_TOO_BIG=1799,t.ER_UNKNOWN_ALTER_ALGORITHM=1800,t.ER_UNKNOWN_ALTER_LOCK=1801,t.ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS=1802,t.ER_MTS_CHANGE_SOURCE_CANT_RUN_WITH_GAPS=1802,t.ER_MTS_RECOVERY_FAILURE=1803,t.ER_MTS_RESET_WORKERS=1804,t.ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2=1805,t.ER_SLAVE_SILENT_RETRY_TRANSACTION=1806,t.ER_REPLICA_SILENT_RETRY_TRANSACTION=1806,t.ER_DISCARD_FK_CHECKS_RUNNING=1807,t.ER_TABLE_SCHEMA_MISMATCH=1808,t.ER_TABLE_IN_SYSTEM_TABLESPACE=1809,t.ER_IO_READ_ERROR=1810,t.ER_IO_WRITE_ERROR=1811,t.ER_TABLESPACE_MISSING=1812,t.ER_TABLESPACE_EXISTS=1813,t.ER_TABLESPACE_DISCARDED=1814,t.ER_INTERNAL_ERROR=1815,t.ER_INNODB_IMPORT_ERROR=1816,t.ER_INNODB_INDEX_CORRUPT=1817,t.ER_INVALID_YEAR_COLUMN_LENGTH=1818,t.ER_NOT_VALID_PASSWORD=1819,t.ER_MUST_CHANGE_PASSWORD=1820,t.ER_FK_NO_INDEX_CHILD=1821,t.ER_FK_NO_INDEX_PARENT=1822,t.ER_FK_FAIL_ADD_SYSTEM=1823,t.ER_FK_CANNOT_OPEN_PARENT=1824,t.ER_FK_INCORRECT_OPTION=1825,t.ER_FK_DUP_NAME=1826,t.ER_PASSWORD_FORMAT=1827,t.ER_FK_COLUMN_CANNOT_DROP=1828,t.ER_FK_COLUMN_CANNOT_DROP_CHILD=1829,t.ER_FK_COLUMN_NOT_NULL=1830,t.ER_DUP_INDEX=1831,t.ER_FK_COLUMN_CANNOT_CHANGE=1832,t.ER_FK_COLUMN_CANNOT_CHANGE_CHILD=1833,t.ER_FK_CANNOT_DELETE_PARENT=1834,t.ER_MALFORMED_PACKET=1835,t.ER_READ_ONLY_MODE=1836,t.ER_GTID_NEXT_TYPE_UNDEFINED_GROUP=1837,t.ER_VARIABLE_NOT_SETTABLE_IN_SP=1838,t.ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF=1839,t.ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY=1840,t.ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY=1841,t.ER_GTID_PURGED_WAS_CHANGED=1842,t.ER_GTID_EXECUTED_WAS_CHANGED=1843,t.ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES=1844,t.ER_ALTER_OPERATION_NOT_SUPPORTED=1845,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON=1846,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY=1847,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION=1848,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME=1849,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE=1850,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK=1851,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE=1852,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK=1853,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC=1854,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS=1855,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS=1856,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS=1857,t.ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE=1858,t.ER_SQL_REPLICA_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE=1858,t.ER_DUP_UNKNOWN_IN_INDEX=1859,t.ER_IDENT_CAUSES_TOO_LONG_PATH=1860,t.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL=1861,t.ER_MUST_CHANGE_PASSWORD_LOGIN=1862,t.ER_ROW_IN_WRONG_PARTITION=1863,t.ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX=1864,t.ER_INNODB_NO_FT_USES_PARSER=1865,t.ER_BINLOG_LOGICAL_CORRUPTION=1866,t.ER_WARN_PURGE_LOG_IN_USE=1867,t.ER_WARN_PURGE_LOG_IS_ACTIVE=1868,t.ER_AUTO_INCREMENT_CONFLICT=1869,t.WARN_ON_BLOCKHOLE_IN_RBR=1870,t.ER_SLAVE_MI_INIT_REPOSITORY=1871,t.ER_REPLICA_MI_INIT_REPOSITORY=1871,t.ER_SLAVE_RLI_INIT_REPOSITORY=1872,t.ER_REPLICA_RLI_INIT_REPOSITORY=1872,t.ER_ACCESS_DENIED_CHANGE_USER_ERROR=1873,t.ER_INNODB_READ_ONLY=1874,t.ER_STOP_SLAVE_SQL_THREAD_TIMEOUT=1875,t.ER_STOP_REPLICA_SQL_THREAD_TIMEOUT=1875,t.ER_STOP_SLAVE_IO_THREAD_TIMEOUT=1876,t.ER_STOP_REPLICA_IO_THREAD_TIMEOUT=1876,t.ER_TABLE_CORRUPT=1877,t.ER_TEMP_FILE_WRITE_FAILURE=1878,t.ER_INNODB_FT_AUX_NOT_HEX_ID=1879,t.ER_OLD_TEMPORALS_UPGRADED=1880,t.ER_INNODB_FORCED_RECOVERY=1881,t.ER_AES_INVALID_IV=1882,t.ER_FILE_CORRUPT=1883,t.ER_ERROR_ON_SOURCE=1884,t.ER_INCONSISTENT_ERROR=1885,t.ER_STORAGE_ENGINE_NOT_LOADED=1886,t.ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER=1887,t.ER_WARN_LEGACY_SYNTAX_CONVERTED=1888,t.ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN=1889,t.ER_CANNOT_DISCARD_TEMPORARY_TABLE=1890,t.ER_FK_DEPTH_EXCEEDED=1891,t.ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2=1892,t.ER_WARN_TRIGGER_DOESNT_HAVE_CREATED=1893,t.ER_REFERENCED_TRG_DOES_NOT_EXIST=1894,t.ER_EXPLAIN_NOT_SUPPORTED=1895,t.ER_INVALID_FIELD_SIZE=1896,t.ER_MISSING_HA_CREATE_OPTION=1897,t.ER_ENGINE_OUT_OF_MEMORY=1898,t.ER_PASSWORD_EXPIRE_ANONYMOUS_USER=1899,t.ER_REPLICA_SQL_THREAD_MUST_STOP=1900,t.ER_NO_FT_MATERIALIZED_SUBQUERY=1901,t.ER_INNODB_UNDO_LOG_FULL=1902,t.ER_INVALID_ARGUMENT_FOR_LOGARITHM=1903,t.ER_REPLICA_IO_THREAD_MUST_STOP=1904,t.ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO=1905,t.ER_WARN_ONLY_SOURCE_LOG_FILE_NO_POS=1906,t.ER_QUERY_TIMEOUT=1907,t.ER_NON_RO_SELECT_DISABLE_TIMER=1908,t.ER_DUP_LIST_ENTRY=1909,t.ER_SQL_MODE_NO_EFFECT=1910,t.ER_SESSION_WAS_KILLED=3169,t.ER_CLIENT_INTERACTION_TIMEOUT=4031,t[1]="EE_CANTCREATEFILE",t[2]="EE_READ",t[3]="EE_WRITE",t[4]="EE_BADCLOSE",t[5]="EE_OUTOFMEMORY",t[6]="EE_DELETE",t[7]="EE_LINK",t[9]="EE_EOFERR",t[10]="EE_CANTLOCK",t[11]="EE_CANTUNLOCK",t[12]="EE_DIR",t[13]="EE_STAT",t[14]="EE_CANT_CHSIZE",t[15]="EE_CANT_OPEN_STREAM",t[16]="EE_GETWD",t[17]="EE_SETWD",t[18]="EE_LINK_WARNING",t[19]="EE_OPEN_WARNING",t[20]="EE_DISK_FULL",t[21]="EE_CANT_MKDIR",t[22]="EE_UNKNOWN_CHARSET",t[23]="EE_OUT_OF_FILERESOURCES",t[24]="EE_CANT_READLINK",t[25]="EE_CANT_SYMLINK",t[26]="EE_REALPATH",t[27]="EE_SYNC",t[28]="EE_UNKNOWN_COLLATION",t[29]="EE_FILENOTFOUND",t[30]="EE_FILE_NOT_CLOSED",t[31]="EE_CHANGE_OWNERSHIP",t[32]="EE_CHANGE_PERMISSIONS",t[33]="EE_CANT_SEEK",t[120]="HA_ERR_KEY_NOT_FOUND",t[121]="HA_ERR_FOUND_DUPP_KEY",t[122]="HA_ERR_INTERNAL_ERROR",t[123]="HA_ERR_RECORD_CHANGED",t[124]="HA_ERR_WRONG_INDEX",t[126]="HA_ERR_CRASHED",t[127]="HA_ERR_WRONG_IN_RECORD",t[128]="HA_ERR_OUT_OF_MEM",t[130]="HA_ERR_NOT_A_TABLE",t[131]="HA_ERR_WRONG_COMMAND",t[132]="HA_ERR_OLD_FILE",t[133]="HA_ERR_NO_ACTIVE_RECORD",t[134]="HA_ERR_RECORD_DELETED",t[135]="HA_ERR_RECORD_FILE_FULL",t[136]="HA_ERR_INDEX_FILE_FULL",t[137]="HA_ERR_END_OF_FILE",t[138]="HA_ERR_UNSUPPORTED",t[139]="HA_ERR_TO_BIG_ROW",t[140]="HA_WRONG_CREATE_OPTION",t[141]="HA_ERR_FOUND_DUPP_UNIQUE",t[142]="HA_ERR_UNKNOWN_CHARSET",t[143]="HA_ERR_WRONG_MRG_TABLE_DEF",t[144]="HA_ERR_CRASHED_ON_REPAIR",t[145]="HA_ERR_CRASHED_ON_USAGE",t[146]="HA_ERR_LOCK_WAIT_TIMEOUT",t[147]="HA_ERR_LOCK_TABLE_FULL",t[148]="HA_ERR_READ_ONLY_TRANSACTION",t[149]="HA_ERR_LOCK_DEADLOCK",t[150]="HA_ERR_CANNOT_ADD_FOREIGN",t[151]="HA_ERR_NO_REFERENCED_ROW",t[152]="HA_ERR_ROW_IS_REFERENCED",t[153]="HA_ERR_NO_SAVEPOINT",t[154]="HA_ERR_NON_UNIQUE_BLOCK_SIZE",t[155]="HA_ERR_NO_SUCH_TABLE",t[156]="HA_ERR_TABLE_EXIST",t[157]="HA_ERR_NO_CONNECTION",t[158]="HA_ERR_NULL_IN_SPATIAL",t[159]="HA_ERR_TABLE_DEF_CHANGED",t[160]="HA_ERR_NO_PARTITION_FOUND",t[161]="HA_ERR_RBR_LOGGING_FAILED",t[162]="HA_ERR_DROP_INDEX_FK",t[163]="HA_ERR_FOREIGN_DUPLICATE_KEY",t[164]="HA_ERR_TABLE_NEEDS_UPGRADE",t[165]="HA_ERR_TABLE_READONLY",t[166]="HA_ERR_AUTOINC_READ_FAILED",t[167]="HA_ERR_AUTOINC_ERANGE",t[168]="HA_ERR_GENERIC",t[169]="HA_ERR_RECORD_IS_THE_SAME",t[170]="HA_ERR_LOGGING_IMPOSSIBLE",t[171]="HA_ERR_CORRUPT_EVENT",t[172]="HA_ERR_NEW_FILE",t[173]="HA_ERR_ROWS_EVENT_APPLY",t[174]="HA_ERR_INITIALIZATION",t[175]="HA_ERR_FILE_TOO_SHORT",t[176]="HA_ERR_WRONG_CRC",t[177]="HA_ERR_TOO_MANY_CONCURRENT_TRXS",t[178]="HA_ERR_NOT_IN_LOCK_PARTITIONS",t[179]="HA_ERR_INDEX_COL_TOO_LONG",t[180]="HA_ERR_INDEX_CORRUPT",t[181]="HA_ERR_UNDO_REC_TOO_BIG",t[182]="HA_FTS_INVALID_DOCID",t[183]="HA_ERR_TABLE_IN_FK_CHECK",t[184]="HA_ERR_TABLESPACE_EXISTS",t[185]="HA_ERR_TOO_MANY_FIELDS",t[186]="HA_ERR_ROW_IN_WRONG_PARTITION",t[187]="HA_ERR_INNODB_READ_ONLY",t[188]="HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT",t[189]="HA_ERR_TEMP_FILE_WRITE_FAILURE",t[190]="HA_ERR_INNODB_FORCED_RECOVERY",t[191]="HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE",t[1e3]="ER_HASHCHK",t[1001]="ER_NISAMCHK",t[1002]="ER_NO",t[1003]="ER_YES",t[1004]="ER_CANT_CREATE_FILE",t[1005]="ER_CANT_CREATE_TABLE",t[1006]="ER_CANT_CREATE_DB",t[1007]="ER_DB_CREATE_EXISTS",t[1008]="ER_DB_DROP_EXISTS",t[1009]="ER_DB_DROP_DELETE",t[1010]="ER_DB_DROP_RMDIR",t[1011]="ER_CANT_DELETE_FILE",t[1012]="ER_CANT_FIND_SYSTEM_REC",t[1013]="ER_CANT_GET_STAT",t[1014]="ER_CANT_GET_WD",t[1015]="ER_CANT_LOCK",t[1016]="ER_CANT_OPEN_FILE",t[1017]="ER_FILE_NOT_FOUND",t[1018]="ER_CANT_READ_DIR",t[1019]="ER_CANT_SET_WD",t[1020]="ER_CHECKREAD",t[1021]="ER_DISK_FULL",t[1022]="ER_DUP_KEY",t[1023]="ER_ERROR_ON_CLOSE",t[1024]="ER_ERROR_ON_READ",t[1025]="ER_ERROR_ON_RENAME",t[1026]="ER_ERROR_ON_WRITE",t[1027]="ER_FILE_USED",t[1028]="ER_FILSORT_ABORT",t[1029]="ER_FORM_NOT_FOUND",t[1030]="ER_GET_ERRNO",t[1031]="ER_ILLEGAL_HA",t[1032]="ER_KEY_NOT_FOUND",t[1033]="ER_NOT_FORM_FILE",t[1034]="ER_NOT_KEYFILE",t[1035]="ER_OLD_KEYFILE",t[1036]="ER_OPEN_AS_READONLY",t[1037]="ER_OUTOFMEMORY",t[1038]="ER_OUT_OF_SORTMEMORY",t[1039]="ER_UNEXPECTED_EOF",t[1040]="ER_CON_COUNT_ERROR",t[1041]="ER_OUT_OF_RESOURCES",t[1042]="ER_BAD_HOST_ERROR",t[1043]="ER_HANDSHAKE_ERROR",t[1044]="ER_DBACCESS_DENIED_ERROR",t[1045]="ER_ACCESS_DENIED_ERROR",t[1046]="ER_NO_DB_ERROR",t[1047]="ER_UNKNOWN_COM_ERROR",t[1048]="ER_BAD_NULL_ERROR",t[1049]="ER_BAD_DB_ERROR",t[1050]="ER_TABLE_EXISTS_ERROR",t[1051]="ER_BAD_TABLE_ERROR",t[1052]="ER_NON_UNIQ_ERROR",t[1053]="ER_SERVER_SHUTDOWN",t[1054]="ER_BAD_FIELD_ERROR",t[1055]="ER_WRONG_FIELD_WITH_GROUP",t[1056]="ER_WRONG_GROUP_FIELD",t[1057]="ER_WRONG_SUM_SELECT",t[1058]="ER_WRONG_VALUE_COUNT",t[1059]="ER_TOO_LONG_IDENT",t[1060]="ER_DUP_FIELDNAME",t[1061]="ER_DUP_KEYNAME",t[1062]="ER_DUP_ENTRY",t[1063]="ER_WRONG_FIELD_SPEC",t[1064]="ER_PARSE_ERROR",t[1065]="ER_EMPTY_QUERY",t[1066]="ER_NONUNIQ_TABLE",t[1067]="ER_INVALID_DEFAULT",t[1068]="ER_MULTIPLE_PRI_KEY",t[1069]="ER_TOO_MANY_KEYS",t[1070]="ER_TOO_MANY_KEY_PARTS",t[1071]="ER_TOO_LONG_KEY",t[1072]="ER_KEY_COLUMN_DOES_NOT_EXITS",t[1073]="ER_BLOB_USED_AS_KEY",t[1074]="ER_TOO_BIG_FIELDLENGTH",t[1075]="ER_WRONG_AUTO_KEY",t[1076]="ER_READY",t[1077]="ER_NORMAL_SHUTDOWN",t[1078]="ER_GOT_SIGNAL",t[1079]="ER_SHUTDOWN_COMPLETE",t[1080]="ER_FORCING_CLOSE",t[1081]="ER_IPSOCK_ERROR",t[1082]="ER_NO_SUCH_INDEX",t[1083]="ER_WRONG_FIELD_TERMINATORS",t[1084]="ER_BLOBS_AND_NO_TERMINATED",t[1085]="ER_TEXTFILE_NOT_READABLE",t[1086]="ER_FILE_EXISTS_ERROR",t[1087]="ER_LOAD_INFO",t[1088]="ER_ALTER_INFO",t[1089]="ER_WRONG_SUB_KEY",t[1090]="ER_CANT_REMOVE_ALL_FIELDS",t[1091]="ER_CANT_DROP_FIELD_OR_KEY",t[1092]="ER_INSERT_INFO",t[1093]="ER_UPDATE_TABLE_USED",t[1094]="ER_NO_SUCH_THREAD",t[1095]="ER_KILL_DENIED_ERROR",t[1096]="ER_NO_TABLES_USED",t[1097]="ER_TOO_BIG_SET",t[1098]="ER_NO_UNIQUE_LOGFILE",t[1099]="ER_TABLE_NOT_LOCKED_FOR_WRITE",t[1100]="ER_TABLE_NOT_LOCKED",t[1101]="ER_BLOB_CANT_HAVE_DEFAULT",t[1102]="ER_WRONG_DB_NAME",t[1103]="ER_WRONG_TABLE_NAME",t[1104]="ER_TOO_BIG_SELECT",t[1105]="ER_UNKNOWN_ERROR",t[1106]="ER_UNKNOWN_PROCEDURE",t[1107]="ER_WRONG_PARAMCOUNT_TO_PROCEDURE",t[1108]="ER_WRONG_PARAMETERS_TO_PROCEDURE",t[1109]="ER_UNKNOWN_TABLE",t[1110]="ER_FIELD_SPECIFIED_TWICE",t[1111]="ER_INVALID_GROUP_FUNC_USE",t[1112]="ER_UNSUPPORTED_EXTENSION",t[1113]="ER_TABLE_MUST_HAVE_COLUMNS",t[1114]="ER_RECORD_FILE_FULL",t[1115]="ER_UNKNOWN_CHARACTER_SET",t[1116]="ER_TOO_MANY_TABLES",t[1117]="ER_TOO_MANY_FIELDS",t[1118]="ER_TOO_BIG_ROWSIZE",t[1119]="ER_STACK_OVERRUN",t[1120]="ER_WRONG_OUTER_JOIN",t[1121]="ER_NULL_COLUMN_IN_INDEX",t[1122]="ER_CANT_FIND_UDF",t[1123]="ER_CANT_INITIALIZE_UDF",t[1124]="ER_UDF_NO_PATHS",t[1125]="ER_UDF_EXISTS",t[1126]="ER_CANT_OPEN_LIBRARY",t[1127]="ER_CANT_FIND_DL_ENTRY",t[1128]="ER_FUNCTION_NOT_DEFINED",t[1129]="ER_HOST_IS_BLOCKED",t[1130]="ER_HOST_NOT_PRIVILEGED",t[1131]="ER_PASSWORD_ANONYMOUS_USER",t[1132]="ER_PASSWORD_NOT_ALLOWED",t[1133]="ER_PASSWORD_NO_MATCH",t[1134]="ER_UPDATE_INFO",t[1135]="ER_CANT_CREATE_THREAD",t[1136]="ER_WRONG_VALUE_COUNT_ON_ROW",t[1137]="ER_CANT_REOPEN_TABLE",t[1138]="ER_INVALID_USE_OF_NULL",t[1139]="ER_REGEXP_ERROR",t[1140]="ER_MIX_OF_GROUP_FUNC_AND_FIELDS",t[1141]="ER_NONEXISTING_GRANT",t[1142]="ER_TABLEACCESS_DENIED_ERROR",t[1143]="ER_COLUMNACCESS_DENIED_ERROR",t[1144]="ER_ILLEGAL_GRANT_FOR_TABLE",t[1145]="ER_GRANT_WRONG_HOST_OR_USER",t[1146]="ER_NO_SUCH_TABLE",t[1147]="ER_NONEXISTING_TABLE_GRANT",t[1148]="ER_NOT_ALLOWED_COMMAND",t[1149]="ER_SYNTAX_ERROR",t[1150]="ER_DELAYED_CANT_CHANGE_LOCK",t[1151]="ER_TOO_MANY_DELAYED_THREADS",t[1152]="ER_ABORTING_CONNECTION",t[1153]="ER_NET_PACKET_TOO_LARGE",t[1154]="ER_NET_READ_ERROR_FROM_PIPE",t[1155]="ER_NET_FCNTL_ERROR",t[1156]="ER_NET_PACKETS_OUT_OF_ORDER",t[1157]="ER_NET_UNCOMPRESS_ERROR",t[1158]="ER_NET_READ_ERROR",t[1159]="ER_NET_READ_INTERRUPTED",t[1160]="ER_NET_ERROR_ON_WRITE",t[1161]="ER_NET_WRITE_INTERRUPTED",t[1162]="ER_TOO_LONG_STRING",t[1163]="ER_TABLE_CANT_HANDLE_BLOB",t[1164]="ER_TABLE_CANT_HANDLE_AUTO_INCREMENT",t[1165]="ER_DELAYED_INSERT_TABLE_LOCKED",t[1166]="ER_WRONG_COLUMN_NAME",t[1167]="ER_WRONG_KEY_COLUMN",t[1168]="ER_WRONG_MRG_TABLE",t[1169]="ER_DUP_UNIQUE",t[1170]="ER_BLOB_KEY_WITHOUT_LENGTH",t[1171]="ER_PRIMARY_CANT_HAVE_NULL",t[1172]="ER_TOO_MANY_ROWS",t[1173]="ER_REQUIRES_PRIMARY_KEY",t[1174]="ER_NO_RAID_COMPILED",t[1175]="ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE",t[1176]="ER_KEY_DOES_NOT_EXITS",t[1177]="ER_CHECK_NO_SUCH_TABLE",t[1178]="ER_CHECK_NOT_IMPLEMENTED",t[1179]="ER_CANT_DO_THIS_DURING_AN_TRANSACTION",t[1180]="ER_ERROR_DURING_COMMIT",t[1181]="ER_ERROR_DURING_ROLLBACK",t[1182]="ER_ERROR_DURING_FLUSH_LOGS",t[1183]="ER_ERROR_DURING_CHECKPOINT",t[1184]="ER_NEW_ABORTING_CONNECTION",t[1185]="ER_DUMP_NOT_IMPLEMENTED",t[1186]="ER_FLUSH_SOURCE_BINLOG_CLOSED",t[1187]="ER_INDEX_REBUILD",t[1188]="ER_SOURCE",t[1189]="ER_SOURCE_NET_READ",t[1190]="ER_SOURCE_NET_WRITE",t[1191]="ER_FT_MATCHING_KEY_NOT_FOUND",t[1192]="ER_LOCK_OR_ACTIVE_TRANSACTION",t[1193]="ER_UNKNOWN_SYSTEM_VARIABLE",t[1194]="ER_CRASHED_ON_USAGE",t[1195]="ER_CRASHED_ON_REPAIR",t[1196]="ER_WARNING_NOT_COMPLETE_ROLLBACK",t[1197]="ER_TRANS_CACHE_FULL",t[1198]="ER_REPLICA_MUST_STOP",t[1199]="ER_REPLICA_NOT_RUNNING",t[1200]="ER_BAD_REPLICA",t[1201]="ER_SOURCE_INFO",t[1202]="ER_REPLICA_THREAD",t[1203]="ER_TOO_MANY_USER_CONNECTIONS",t[1204]="ER_SET_CONSTANTS_ONLY",t[1205]="ER_LOCK_WAIT_TIMEOUT",t[1206]="ER_LOCK_TABLE_FULL",t[1207]="ER_READ_ONLY_TRANSACTION",t[1208]="ER_DROP_DB_WITH_READ_LOCK",t[1209]="ER_CREATE_DB_WITH_READ_LOCK",t[1210]="ER_WRONG_ARGUMENTS",t[1211]="ER_NO_PERMISSION_TO_CREATE_USER",t[1212]="ER_UNION_TABLES_IN_DIFFERENT_DIR",t[1213]="ER_LOCK_DEADLOCK",t[1214]="ER_TABLE_CANT_HANDLE_FT",t[1215]="ER_CANNOT_ADD_FOREIGN",t[1216]="ER_NO_REFERENCED_ROW",t[1217]="ER_ROW_IS_REFERENCED",t[1218]="ER_CONNECT_TO_SOURCE",t[1219]="ER_QUERY_ON_SOURCE",t[1220]="ER_ERROR_WHEN_EXECUTING_COMMAND",t[1221]="ER_WRONG_USAGE",t[1222]="ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT",t[1223]="ER_CANT_UPDATE_WITH_READLOCK",t[1224]="ER_MIXING_NOT_ALLOWED",t[1225]="ER_DUP_ARGUMENT",t[1226]="ER_USER_LIMIT_REACHED",t[1227]="ER_SPECIFIC_ACCESS_DENIED_ERROR",t[1228]="ER_LOCAL_VARIABLE",t[1229]="ER_GLOBAL_VARIABLE",t[1230]="ER_NO_DEFAULT",t[1231]="ER_WRONG_VALUE_FOR_VAR",t[1232]="ER_WRONG_TYPE_FOR_VAR",t[1233]="ER_VAR_CANT_BE_READ",t[1234]="ER_CANT_USE_OPTION_HERE",t[1235]="ER_NOT_SUPPORTED_YET",t[1236]="ER_SOURCE_FATAL_ERROR_READING_BINLOG",t[1237]="ER_REPLICA_IGNORED_TABLE",t[1238]="ER_INCORRECT_GLOBAL_LOCAL_VAR",t[1239]="ER_WRONG_FK_DEF",t[1240]="ER_KEY_REF_DO_NOT_MATCH_TABLE_REF",t[1241]="ER_OPERAND_COLUMNS",t[1242]="ER_SUBQUERY_NO_1_ROW",t[1243]="ER_UNKNOWN_STMT_HANDLER",t[1244]="ER_CORRUPT_HELP_DB",t[1245]="ER_CYCLIC_REFERENCE",t[1246]="ER_AUTO_CONVERT",t[1247]="ER_ILLEGAL_REFERENCE",t[1248]="ER_DERIVED_MUST_HAVE_ALIAS",t[1249]="ER_SELECT_REDUCED",t[1250]="ER_TABLENAME_NOT_ALLOWED_HERE",t[1251]="ER_NOT_SUPPORTED_AUTH_MODE",t[1252]="ER_SPATIAL_CANT_HAVE_NULL",t[1253]="ER_COLLATION_CHARSET_MISMATCH",t[1254]="ER_REPLICA_WAS_RUNNING",t[1255]="ER_REPLICA_WAS_NOT_RUNNING",t[1256]="ER_TOO_BIG_FOR_UNCOMPRESS",t[1257]="ER_ZLIB_Z_MEM_ERROR",t[1258]="ER_ZLIB_Z_BUF_ERROR",t[1259]="ER_ZLIB_Z_DATA_ERROR",t[1260]="ER_CUT_VALUE_GROUP_CONCAT",t[1261]="ER_WARN_TOO_FEW_RECORDS",t[1262]="ER_WARN_TOO_MANY_RECORDS",t[1263]="ER_WARN_NULL_TO_NOTNULL",t[1264]="ER_WARN_DATA_OUT_OF_RANGE",t[1265]="ER_WARN_DATA_TRUNCATED",t[1266]="ER_WARN_USING_OTHER_HANDLER",t[1267]="ER_CANT_AGGREGATE_2COLLATIONS",t[1268]="ER_DROP_USER",t[1269]="ER_REVOKE_GRANTS",t[1270]="ER_CANT_AGGREGATE_3COLLATIONS",t[1271]="ER_CANT_AGGREGATE_NCOLLATIONS",t[1272]="ER_VARIABLE_IS_NOT_STRUCT",t[1273]="ER_UNKNOWN_COLLATION",t[1274]="ER_REPLICA_IGNORED_SSL_PARAMS",t[1275]="ER_SERVER_IS_IN_SECURE_AUTH_MODE",t[1276]="ER_WARN_FIELD_RESOLVED",t[1277]="ER_BAD_REPLICA_UNTIL_COND",t[1278]="ER_MISSING_SKIP_REPLICA",t[1279]="ER_UNTIL_COND_IGNORED",t[1280]="ER_WRONG_NAME_FOR_INDEX",t[1281]="ER_WRONG_NAME_FOR_CATALOG",t[1282]="ER_WARN_QC_RESIZE",t[1283]="ER_BAD_FT_COLUMN",t[1284]="ER_UNKNOWN_KEY_CACHE",t[1285]="ER_WARN_HOSTNAME_WONT_WORK",t[1286]="ER_UNKNOWN_STORAGE_ENGINE",t[1287]="ER_WARN_DEPRECATED_SYNTAX",t[1288]="ER_NON_UPDATABLE_TABLE",t[1289]="ER_FEATURE_DISABLED",t[1290]="ER_OPTION_PREVENTS_STATEMENT",t[1291]="ER_DUPLICATED_VALUE_IN_TYPE",t[1292]="ER_TRUNCATED_WRONG_VALUE",t[1293]="ER_TOO_MUCH_AUTO_TIMESTAMP_COLS",t[1294]="ER_INVALID_ON_UPDATE",t[1295]="ER_UNSUPPORTED_PS",t[1296]="ER_GET_ERRMSG",t[1297]="ER_GET_TEMPORARY_ERRMSG",t[1298]="ER_UNKNOWN_TIME_ZONE",t[1299]="ER_WARN_INVALID_TIMESTAMP",t[1300]="ER_INVALID_CHARACTER_STRING",t[1301]="ER_WARN_ALLOWED_PACKET_OVERFLOWED",t[1302]="ER_CONFLICTING_DECLARATIONS",t[1303]="ER_SP_NO_RECURSIVE_CREATE",t[1304]="ER_SP_ALREADY_EXISTS",t[1305]="ER_SP_DOES_NOT_EXIST",t[1306]="ER_SP_DROP_FAILED",t[1307]="ER_SP_STORE_FAILED",t[1308]="ER_SP_LILABEL_MISMATCH",t[1309]="ER_SP_LABEL_REDEFINE",t[1310]="ER_SP_LABEL_MISMATCH",t[1311]="ER_SP_UNINIT_VAR",t[1312]="ER_SP_BADSELECT",t[1313]="ER_SP_BADRETURN",t[1314]="ER_SP_BADSTATEMENT",t[1315]="ER_UPDATE_LOG_DEPRECATED_IGNORED",t[1316]="ER_UPDATE_LOG_DEPRECATED_TRANSLATED",t[1317]="ER_QUERY_INTERRUPTED",t[1318]="ER_SP_WRONG_NO_OF_ARGS",t[1319]="ER_SP_COND_MISMATCH",t[1320]="ER_SP_NORETURN",t[1321]="ER_SP_NORETURNEND",t[1322]="ER_SP_BAD_CURSOR_QUERY",t[1323]="ER_SP_BAD_CURSOR_SELECT",t[1324]="ER_SP_CURSOR_MISMATCH",t[1325]="ER_SP_CURSOR_ALREADY_OPEN",t[1326]="ER_SP_CURSOR_NOT_OPEN",t[1327]="ER_SP_UNDECLARED_VAR",t[1328]="ER_SP_WRONG_NO_OF_FETCH_ARGS",t[1329]="ER_SP_FETCH_NO_DATA",t[1330]="ER_SP_DUP_PARAM",t[1331]="ER_SP_DUP_VAR",t[1332]="ER_SP_DUP_COND",t[1333]="ER_SP_DUP_CURS",t[1334]="ER_SP_CANT_ALTER",t[1335]="ER_SP_SUBSELECT_NYI",t[1336]="ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG",t[1337]="ER_SP_VARCOND_AFTER_CURSHNDLR",t[1338]="ER_SP_CURSOR_AFTER_HANDLER",t[1339]="ER_SP_CASE_NOT_FOUND",t[1340]="ER_FPARSER_TOO_BIG_FILE",t[1341]="ER_FPARSER_BAD_HEADER",t[1342]="ER_FPARSER_EOF_IN_COMMENT",t[1343]="ER_FPARSER_ERROR_IN_PARAMETER",t[1344]="ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER",t[1345]="ER_VIEW_NO_EXPLAIN",t[1346]="ER_FRM_UNKNOWN_TYPE",t[1347]="ER_WRONG_OBJECT",t[1348]="ER_NONUPDATEABLE_COLUMN",t[1349]="ER_VIEW_SELECT_DERIVED",t[1350]="ER_VIEW_SELECT_CLAUSE",t[1351]="ER_VIEW_SELECT_VARIABLE",t[1352]="ER_VIEW_SELECT_TMPTABLE",t[1353]="ER_VIEW_WRONG_LIST",t[1354]="ER_WARN_VIEW_MERGE",t[1355]="ER_WARN_VIEW_WITHOUT_KEY",t[1356]="ER_VIEW_INVALID",t[1357]="ER_SP_NO_DROP_SP",t[1358]="ER_SP_GOTO_IN_HNDLR",t[1359]="ER_TRG_ALREADY_EXISTS",t[1360]="ER_TRG_DOES_NOT_EXIST",t[1361]="ER_TRG_ON_VIEW_OR_TEMP_TABLE",t[1362]="ER_TRG_CANT_CHANGE_ROW",t[1363]="ER_TRG_NO_SUCH_ROW_IN_TRG",t[1364]="ER_NO_DEFAULT_FOR_FIELD",t[1365]="ER_DIVISION_BY_ZERO",t[1366]="ER_TRUNCATED_WRONG_VALUE_FOR_FIELD",t[1367]="ER_ILLEGAL_VALUE_FOR_TYPE",t[1368]="ER_VIEW_NONUPD_CHECK",t[1369]="ER_VIEW_CHECK_FAILED",t[1370]="ER_PROCACCESS_DENIED_ERROR",t[1371]="ER_RELAY_LOG_FAIL",t[1372]="ER_PASSWD_LENGTH",t[1373]="ER_UNKNOWN_TARGET_BINLOG",t[1374]="ER_IO_ERR_LOG_INDEX_READ",t[1375]="ER_BINLOG_PURGE_PROHIBITED",t[1376]="ER_FSEEK_FAIL",t[1377]="ER_BINLOG_PURGE_FATAL_ERR",t[1378]="ER_LOG_IN_USE",t[1379]="ER_LOG_PURGE_UNKNOWN_ERR",t[1380]="ER_RELAY_LOG_INIT",t[1381]="ER_NO_BINARY_LOGGING",t[1382]="ER_RESERVED_SYNTAX",t[1383]="ER_WSAS_FAILED",t[1384]="ER_DIFF_GROUPS_PROC",t[1385]="ER_NO_GROUP_FOR_PROC",t[1386]="ER_ORDER_WITH_PROC",t[1387]="ER_LOGGING_PROHIBIT_CHANGING_OF",t[1388]="ER_NO_FILE_MAPPING",t[1389]="ER_WRONG_MAGIC",t[1390]="ER_PS_MANY_PARAM",t[1391]="ER_KEY_PART_0",t[1392]="ER_VIEW_CHECKSUM",t[1393]="ER_VIEW_MULTIUPDATE",t[1394]="ER_VIEW_NO_INSERT_FIELD_LIST",t[1395]="ER_VIEW_DELETE_MERGE_VIEW",t[1396]="ER_CANNOT_USER",t[1397]="ER_XAER_NOTA",t[1398]="ER_XAER_INVAL",t[1399]="ER_XAER_RMFAIL",t[1400]="ER_XAER_OUTSIDE",t[1401]="ER_XA_RMERR",t[1402]="ER_XA_RBROLLBACK",t[1403]="ER_NONEXISTING_PROC_GRANT",t[1404]="ER_PROC_AUTO_GRANT_FAIL",t[1405]="ER_PROC_AUTO_REVOKE_FAIL",t[1406]="ER_DATA_TOO_LONG",t[1407]="ER_SP_BAD_SQLSTATE",t[1408]="ER_STARTUP",t[1409]="ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR",t[1410]="ER_CANT_CREATE_USER_WITH_GRANT",t[1411]="ER_WRONG_VALUE_FOR_TYPE",t[1412]="ER_TABLE_DEF_CHANGED",t[1413]="ER_SP_DUP_HANDLER",t[1414]="ER_SP_NOT_VAR_ARG",t[1415]="ER_SP_NO_RETSET",t[1416]="ER_CANT_CREATE_GEOMETRY_OBJECT",t[1417]="ER_FAILED_ROUTINE_BREAK_BINLOG",t[1418]="ER_BINLOG_UNSAFE_ROUTINE",t[1419]="ER_BINLOG_CREATE_ROUTINE_NEED_SUPER",t[1420]="ER_EXEC_STMT_WITH_OPEN_CURSOR",t[1421]="ER_STMT_HAS_NO_OPEN_CURSOR",t[1422]="ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG",t[1423]="ER_NO_DEFAULT_FOR_VIEW_FIELD",t[1424]="ER_SP_NO_RECURSION",t[1425]="ER_TOO_BIG_SCALE",t[1426]="ER_TOO_BIG_PRECISION",t[1427]="ER_M_BIGGER_THAN_D",t[1428]="ER_WRONG_LOCK_OF_SYSTEM_TABLE",t[1429]="ER_CONNECT_TO_FOREIGN_DATA_SOURCE",t[1430]="ER_QUERY_ON_FOREIGN_DATA_SOURCE",t[1431]="ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST",t[1432]="ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE",t[1433]="ER_FOREIGN_DATA_STRING_INVALID",t[1434]="ER_CANT_CREATE_FEDERATED_TABLE",t[1435]="ER_TRG_IN_WRONG_SCHEMA",t[1436]="ER_STACK_OVERRUN_NEED_MORE";t[1437]="ER_TOO_LONG_BODY",t[1438]="ER_WARN_CANT_DROP_DEFAULT_KEYCACHE",t[1439]="ER_TOO_BIG_DISPLAYWIDTH",t[1440]="ER_XAER_DUPID",t[1441]="ER_DATETIME_FUNCTION_OVERFLOW",t[1442]="ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG",t[1443]="ER_VIEW_PREVENT_UPDATE",t[1444]="ER_PS_NO_RECURSION",t[1445]="ER_SP_CANT_SET_AUTOCOMMIT",t[1446]="ER_MALFORMED_DEFINER",t[1447]="ER_VIEW_FRM_NO_USER",t[1448]="ER_VIEW_OTHER_USER",t[1449]="ER_NO_SUCH_USER",t[1450]="ER_FORBID_SCHEMA_CHANGE",t[1451]="ER_ROW_IS_REFERENCED_2",t[1452]="ER_NO_REFERENCED_ROW_2",t[1453]="ER_SP_BAD_VAR_SHADOW",t[1454]="ER_TRG_NO_DEFINER",t[1455]="ER_OLD_FILE_FORMAT",t[1456]="ER_SP_RECURSION_LIMIT",t[1457]="ER_SP_PROC_TABLE_CORRUPT",t[1458]="ER_SP_WRONG_NAME",t[1459]="ER_TABLE_NEEDS_UPGRADE",t[1460]="ER_SP_NO_AGGREGATE",t[1461]="ER_MAX_PREPARED_STMT_COUNT_REACHED",t[1462]="ER_VIEW_RECURSIVE",t[1463]="ER_NON_GROUPING_FIELD_USED",t[1464]="ER_TABLE_CANT_HANDLE_SPKEYS",t[1465]="ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA",t[1466]="ER_REMOVED_SPACES",t[1467]="ER_AUTOINC_READ_FAILED",t[1468]="ER_USERNAME",t[1469]="ER_HOSTNAME",t[1470]="ER_WRONG_STRING_LENGTH",t[1471]="ER_NON_INSERTABLE_TABLE",t[1472]="ER_ADMIN_WRONG_MRG_TABLE",t[1473]="ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT",t[1474]="ER_NAME_BECOMES_EMPTY",t[1475]="ER_AMBIGUOUS_FIELD_TERM",t[1476]="ER_FOREIGN_SERVER_EXISTS",t[1477]="ER_FOREIGN_SERVER_DOESNT_EXIST",t[1478]="ER_ILLEGAL_HA_CREATE_OPTION",t[1479]="ER_PARTITION_REQUIRES_VALUES_ERROR",t[1480]="ER_PARTITION_WRONG_VALUES_ERROR",t[1481]="ER_PARTITION_MAXVALUE_ERROR",t[1482]="ER_PARTITION_SUBPARTITION_ERROR",t[1483]="ER_PARTITION_SUBPART_MIX_ERROR",t[1484]="ER_PARTITION_WRONG_NO_PART_ERROR",t[1485]="ER_PARTITION_WRONG_NO_SUBPART_ERROR",t[1486]="ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR",t[1487]="ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR",t[1488]="ER_FIELD_NOT_FOUND_PART_ERROR",t[1489]="ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR",t[1490]="ER_INCONSISTENT_PARTITION_INFO_ERROR",t[1491]="ER_PARTITION_FUNC_NOT_ALLOWED_ERROR",t[1492]="ER_PARTITIONS_MUST_BE_DEFINED_ERROR",t[1493]="ER_RANGE_NOT_INCREASING_ERROR",t[1494]="ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR",t[1495]="ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR",t[1496]="ER_PARTITION_ENTRY_ERROR",t[1497]="ER_MIX_HANDLER_ERROR",t[1498]="ER_PARTITION_NOT_DEFINED_ERROR",t[1499]="ER_TOO_MANY_PARTITIONS_ERROR",t[1500]="ER_SUBPARTITION_ERROR",t[1501]="ER_CANT_CREATE_HANDLER_FILE",t[1502]="ER_BLOB_FIELD_IN_PART_FUNC_ERROR",t[1503]="ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF",t[1504]="ER_NO_PARTS_ERROR",t[1505]="ER_PARTITION_MGMT_ON_NONPARTITIONED",t[1506]="ER_FOREIGN_KEY_ON_PARTITIONED",t[1507]="ER_DROP_PARTITION_NON_EXISTENT",t[1508]="ER_DROP_LAST_PARTITION",t[1509]="ER_COALESCE_ONLY_ON_HASH_PARTITION",t[1510]="ER_REORG_HASH_ONLY_ON_SAME_NO",t[1511]="ER_REORG_NO_PARAM_ERROR",t[1512]="ER_ONLY_ON_RANGE_LIST_PARTITION",t[1513]="ER_ADD_PARTITION_SUBPART_ERROR",t[1514]="ER_ADD_PARTITION_NO_NEW_PARTITION",t[1515]="ER_COALESCE_PARTITION_NO_PARTITION",t[1516]="ER_REORG_PARTITION_NOT_EXIST",t[1517]="ER_SAME_NAME_PARTITION",t[1518]="ER_NO_BINLOG_ERROR",t[1519]="ER_CONSECUTIVE_REORG_PARTITIONS",t[1520]="ER_REORG_OUTSIDE_RANGE",t[1521]="ER_PARTITION_FUNCTION_FAILURE",t[1522]="ER_PART_STATE_ERROR",t[1523]="ER_LIMITED_PART_RANGE",t[1524]="ER_PLUGIN_IS_NOT_LOADED",t[1525]="ER_WRONG_VALUE",t[1526]="ER_NO_PARTITION_FOR_GIVEN_VALUE",t[1527]="ER_FILEGROUP_OPTION_ONLY_ONCE",t[1528]="ER_CREATE_FILEGROUP_FAILED",t[1529]="ER_DROP_FILEGROUP_FAILED",t[1530]="ER_TABLESPACE_AUTO_EXTEND_ERROR",t[1531]="ER_WRONG_SIZE_NUMBER",t[1532]="ER_SIZE_OVERFLOW_ERROR",t[1533]="ER_ALTER_FILEGROUP_FAILED",t[1534]="ER_BINLOG_ROW_LOGGING_FAILED",t[1535]="ER_BINLOG_ROW_WRONG_TABLE_DEF",t[1536]="ER_BINLOG_ROW_RBR_TO_SBR",t[1537]="ER_EVENT_ALREADY_EXISTS",t[1538]="ER_EVENT_STORE_FAILED",t[1539]="ER_EVENT_DOES_NOT_EXIST",t[1540]="ER_EVENT_CANT_ALTER",t[1541]="ER_EVENT_DROP_FAILED",t[1542]="ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG",t[1543]="ER_EVENT_ENDS_BEFORE_STARTS",t[1544]="ER_EVENT_EXEC_TIME_IN_THE_PAST",t[1545]="ER_EVENT_OPEN_TABLE_FAILED",t[1546]="ER_EVENT_NEITHER_M_EXPR_NOR_M_AT",t[1547]="ER_COL_COUNT_DOESNT_MATCH_CORRUPTED",t[1548]="ER_CANNOT_LOAD_FROM_TABLE",t[1549]="ER_EVENT_CANNOT_DELETE",t[1550]="ER_EVENT_COMPILE_ERROR",t[1551]="ER_EVENT_SAME_NAME",t[1552]="ER_EVENT_DATA_TOO_LONG",t[1553]="ER_DROP_INDEX_FK",t[1554]="ER_WARN_DEPRECATED_SYNTAX_WITH_VER",t[1555]="ER_CANT_WRITE_LOCK_LOG_TABLE",t[1556]="ER_CANT_LOCK_LOG_TABLE",t[1557]="ER_FOREIGN_DUPLICATE_KEY",t[1558]="ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE",t[1559]="ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR",t[1560]="ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT",t[1561]="ER_NDB_CANT_SWITCH_BINLOG_FORMAT",t[1562]="ER_PARTITION_NO_TEMPORARY",t[1563]="ER_PARTITION_CONST_DOMAIN_ERROR",t[1564]="ER_PARTITION_FUNCTION_IS_NOT_ALLOWED",t[1565]="ER_DDL_LOG_ERROR",t[1566]="ER_NULL_IN_VALUES_LESS_THAN",t[1567]="ER_WRONG_PARTITION_NAME",t[1568]="ER_CANT_CHANGE_TX_ISOLATION",t[1569]="ER_DUP_ENTRY_AUTOINCREMENT_CASE",t[1570]="ER_EVENT_MODIFY_QUEUE_ERROR",t[1571]="ER_EVENT_SET_VAR_ERROR",t[1572]="ER_PARTITION_MERGE_ERROR",t[1573]="ER_CANT_ACTIVATE_LOG",t[1574]="ER_RBR_NOT_AVAILABLE",t[1575]="ER_BASE64_DECODE_ERROR",t[1576]="ER_EVENT_RECURSION_FORBIDDEN",t[1577]="ER_EVENTS_DB_ERROR",t[1578]="ER_ONLY_INTEGERS_ALLOWED",t[1579]="ER_UNSUPORTED_LOG_ENGINE",t[1580]="ER_BAD_LOG_STATEMENT",t[1581]="ER_CANT_RENAME_LOG_TABLE",t[1582]="ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT",t[1583]="ER_WRONG_PARAMETERS_TO_NATIVE_FCT",t[1584]="ER_WRONG_PARAMETERS_TO_STORED_FCT",t[1585]="ER_NATIVE_FCT_NAME_COLLISION",t[1586]="ER_DUP_ENTRY_WITH_KEY_NAME",t[1587]="ER_BINLOG_PURGE_EMFILE",t[1588]="ER_EVENT_CANNOT_CREATE_IN_THE_PAST",t[1589]="ER_EVENT_CANNOT_ALTER_IN_THE_PAST",t[1590]="ER_REPLICA_INCIDENT",t[1591]="ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT",t[1592]="ER_BINLOG_UNSAFE_STATEMENT",t[1593]="ER_REPLICA_FATAL_ERROR",t[1594]="ER_REPLICA_RELAY_LOG_READ_FAILURE",t[1595]="ER_REPLICA_RELAY_LOG_WRITE_FAILURE",t[1596]="ER_REPLICA_CREATE_EVENT_FAILURE",t[1597]="ER_REPLICA_SOURCE_COM_FAILURE",t[1598]="ER_BINLOG_LOGGING_IMPOSSIBLE",t[1599]="ER_VIEW_NO_CREATION_CTX",t[1600]="ER_VIEW_INVALID_CREATION_CTX",t[1601]="ER_SR_INVALID_CREATION_CTX",t[1602]="ER_TRG_CORRUPTED_FILE",t[1603]="ER_TRG_NO_CREATION_CTX",t[1604]="ER_TRG_INVALID_CREATION_CTX",t[1605]="ER_EVENT_INVALID_CREATION_CTX",t[1606]="ER_TRG_CANT_OPEN_TABLE",t[1607]="ER_CANT_CREATE_SROUTINE",t[1608]="ER_NEVER_USED",t[1609]="ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT",t[1610]="ER_REPLICA_CORRUPT_EVENT",t[1611]="ER_LOAD_DATA_INVALID_COLUMN",t[1612]="ER_LOG_PURGE_NO_FILE",t[1613]="ER_XA_RBTIMEOUT",t[1614]="ER_XA_RBDEADLOCK",t[1615]="ER_NEED_REPREPARE",t[1616]="ER_DELAYED_NOT_SUPPORTED",t[1617]="WARN_NO_SOURCE_INFO",t[1618]="WARN_OPTION_IGNORED",t[1619]="WARN_PLUGIN_DELETE_BUILTIN",t[1620]="WARN_PLUGIN_BUSY",t[1621]="ER_VARIABLE_IS_READONLY",t[1622]="ER_WARN_ENGINE_TRANSACTION_ROLLBACK",t[1623]="ER_REPLICA_HEARTBEAT_FAILURE",t[1624]="ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE",t[1625]="ER_NDB_REPLICATION_SCHEMA_ERROR",t[1626]="ER_CONFLICT_FN_PARSE_ERROR",t[1627]="ER_EXCEPTIONS_WRITE_ERROR",t[1628]="ER_TOO_LONG_TABLE_COMMENT",t[1629]="ER_TOO_LONG_FIELD_COMMENT",t[1630]="ER_FUNC_INEXISTENT_NAME_COLLISION",t[1631]="ER_DATABASE_NAME",t[1632]="ER_TABLE_NAME",t[1633]="ER_PARTITION_NAME",t[1634]="ER_SUBPARTITION_NAME",t[1635]="ER_TEMPORARY_NAME",t[1636]="ER_RENAMED_NAME",t[1637]="ER_TOO_MANY_CONCURRENT_TRXS",t[1638]="WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED",t[1639]="ER_DEBUG_SYNC_TIMEOUT",t[1640]="ER_DEBUG_SYNC_HIT_LIMIT",t[1641]="ER_DUP_SIGNAL_SET",t[1642]="ER_SIGNAL_WARN",t[1643]="ER_SIGNAL_NOT_FOUND",t[1644]="ER_SIGNAL_EXCEPTION",t[1645]="ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER",t[1646]="ER_SIGNAL_BAD_CONDITION_TYPE",t[1647]="WARN_COND_ITEM_TRUNCATED",t[1648]="ER_COND_ITEM_TOO_LONG",t[1649]="ER_UNKNOWN_LOCALE",t[1650]="ER_REPLICA_IGNORE_SERVER_IDS",t[1651]="ER_QUERY_CACHE_DISABLED",t[1652]="ER_SAME_NAME_PARTITION_FIELD",t[1653]="ER_PARTITION_COLUMN_LIST_ERROR",t[1654]="ER_WRONG_TYPE_COLUMN_VALUE_ERROR",t[1655]="ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR",t[1656]="ER_MAXVALUE_IN_VALUES_IN",t[1657]="ER_TOO_MANY_VALUES_ERROR",t[1658]="ER_ROW_SINGLE_PARTITION_FIELD_ERROR",t[1659]="ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD",t[1660]="ER_PARTITION_FIELDS_TOO_LONG",t[1661]="ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE",t[1662]="ER_BINLOG_ROW_MODE_AND_STMT_ENGINE",t[1663]="ER_BINLOG_UNSAFE_AND_STMT_ENGINE",t[1664]="ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE",t[1665]="ER_BINLOG_STMT_MODE_AND_ROW_ENGINE",t[1666]="ER_BINLOG_ROW_INJECTION_AND_STMT_MODE",t[1667]="ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE",t[1668]="ER_BINLOG_UNSAFE_LIMIT",t[1669]="ER_BINLOG_UNSAFE_INSERT_DELAYED",t[1670]="ER_BINLOG_UNSAFE_SYSTEM_TABLE",t[1671]="ER_BINLOG_UNSAFE_AUTOINC_COLUMNS",t[1672]="ER_BINLOG_UNSAFE_UDF",t[1673]="ER_BINLOG_UNSAFE_SYSTEM_VARIABLE",t[1674]="ER_BINLOG_UNSAFE_SYSTEM_FUNCTION",t[1675]="ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS",t[1676]="ER_MESSAGE_AND_STATEMENT",t[1677]="ER_REPLICA_CONVERSION_FAILED",t[1678]="ER_REPLICA_CANT_CREATE_CONVERSION",t[1679]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT",t[1680]="ER_PATH_LENGTH",t[1681]="ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT",t[1682]="ER_WRONG_NATIVE_TABLE_STRUCTURE",t[1683]="ER_WRONG_PERFSCHEMA_USAGE",t[1684]="ER_WARN_I_S_SKIPPED_TABLE",t[1685]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT",t[1686]="ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT",t[1687]="ER_SPATIAL_MUST_HAVE_GEOM_COL",t[1688]="ER_TOO_LONG_INDEX_COMMENT",t[1689]="ER_LOCK_ABORTED",t[1690]="ER_DATA_OUT_OF_RANGE",t[1691]="ER_WRONG_SPVAR_TYPE_IN_LIMIT",t[1692]="ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE",t[1693]="ER_BINLOG_UNSAFE_MIXED_STATEMENT",t[1694]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN",t[1695]="ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN",t[1696]="ER_FAILED_READ_FROM_PAR_FILE",t[1697]="ER_VALUES_IS_NOT_INT_TYPE_ERROR",t[1698]="ER_ACCESS_DENIED_NO_PASSWORD_ERROR",t[1699]="ER_SET_PASSWORD_AUTH_PLUGIN",t[1700]="ER_GRANT_PLUGIN_USER_EXISTS",t[1701]="ER_TRUNCATE_ILLEGAL_FK",t[1702]="ER_PLUGIN_IS_PERMANENT",t[1703]="ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN",t[1704]="ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX",t[1705]="ER_STMT_CACHE_FULL",t[1706]="ER_MULTI_UPDATE_KEY_CONFLICT",t[1707]="ER_TABLE_NEEDS_REBUILD",t[1708]="WARN_OPTION_BELOW_LIMIT",t[1709]="ER_INDEX_COLUMN_TOO_LONG",t[1710]="ER_ERROR_IN_TRIGGER_BODY",t[1711]="ER_ERROR_IN_UNKNOWN_TRIGGER_BODY",t[1712]="ER_INDEX_CORRUPT",t[1713]="ER_UNDO_RECORD_TOO_BIG",t[1714]="ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT",t[1715]="ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE",t[1716]="ER_BINLOG_UNSAFE_REPLACE_SELECT",t[1717]="ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT",t[1718]="ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT",t[1719]="ER_BINLOG_UNSAFE_UPDATE_IGNORE",t[1720]="ER_PLUGIN_NO_UNINSTALL",t[1721]="ER_PLUGIN_NO_INSTALL",t[1722]="ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT",t[1723]="ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC",t[1724]="ER_BINLOG_UNSAFE_INSERT_TWO_KEYS",t[1725]="ER_TABLE_IN_FK_CHECK",t[1726]="ER_UNSUPPORTED_ENGINE",t[1727]="ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST",t[1728]="ER_CANNOT_LOAD_FROM_TABLE_V2",t[1729]="ER_SOURCE_DELAY_VALUE_OUT_OF_RANGE",t[1730]="ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT",t[1731]="ER_PARTITION_EXCHANGE_DIFFERENT_OPTION",t[1732]="ER_PARTITION_EXCHANGE_PART_TABLE",t[1733]="ER_PARTITION_EXCHANGE_TEMP_TABLE",t[1734]="ER_PARTITION_INSTEAD_OF_SUBPARTITION",t[1735]="ER_UNKNOWN_PARTITION",t[1736]="ER_TABLES_DIFFERENT_METADATA",t[1737]="ER_ROW_DOES_NOT_MATCH_PARTITION",t[1738]="ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX",t[1739]="ER_WARN_INDEX_NOT_APPLICABLE",t[1740]="ER_PARTITION_EXCHANGE_FOREIGN_KEY",t[1741]="ER_NO_SUCH_KEY_VALUE",t[1742]="ER_RPL_INFO_DATA_TOO_LONG",t[1743]="ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE",t[1744]="ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE",t[1745]="ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX",t[1746]="ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT",t[1747]="ER_PARTITION_CLAUSE_ON_NONPARTITIONED",t[1748]="ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET",t[1749]="ER_NO_SUCH_PARTITION",t[1750]="ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE",t[1751]="ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE",t[1752]="ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE",t[1753]="ER_MTS_FEATURE_IS_NOT_SUPPORTED",t[1754]="ER_MTS_UPDATED_DBS_GREATER_MAX",t[1755]="ER_MTS_CANT_PARALLEL",t[1756]="ER_MTS_INCONSISTENT_DATA",t[1757]="ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING",t[1758]="ER_DA_INVALID_CONDITION_NUMBER",t[1759]="ER_INSECURE_PLAIN_TEXT",t[1760]="ER_INSECURE_CHANGE_SOURCE",t[1761]="ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO",t[1762]="ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO",t[1763]="ER_SQLTHREAD_WITH_SECURE_REPLICA",t[1764]="ER_TABLE_HAS_NO_FT",t[1765]="ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER",t[1766]="ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION",t[1767]="ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST",t[1768]="ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL",t[1769]="ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION",t[1770]="ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL",t[1771]="ER_SKIPPING_LOGGED_TRANSACTION",t[1772]="ER_MALFORMED_GTID_SET_SPECIFICATION",t[1773]="ER_MALFORMED_GTID_SET_ENCODING",t[1774]="ER_MALFORMED_GTID_SPECIFICATION",t[1775]="ER_GNO_EXHAUSTED",t[1776]="ER_BAD_REPLICA_AUTO_POSITION",t[1777]="ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON",t[1778]="ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET",t[1779]="ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON",t[1780]="ER_GTID_MODE_REQUIRES_BINLOG",t[1781]="ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF",t[1782]="ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON",t[1783]="ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF",t[1784]="ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF",t[1785]="ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE",t[1786]="ER_GTID_UNSAFE_CREATE_SELECT",t[1787]="ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION",t[1788]="ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME",t[1789]="ER_SOURCE_HAS_PURGED_REQUIRED_GTIDS",t[1790]="ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID",t[1791]="ER_UNKNOWN_EXPLAIN_FORMAT",t[1792]="ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION",t[1793]="ER_TOO_LONG_TABLE_PARTITION_COMMENT",t[1794]="ER_REPLICA_CONFIGURATION",t[1795]="ER_INNODB_FT_LIMIT",t[1796]="ER_INNODB_NO_FT_TEMP_TABLE",t[1797]="ER_INNODB_FT_WRONG_DOCID_COLUMN",t[1798]="ER_INNODB_FT_WRONG_DOCID_INDEX",t[1799]="ER_INNODB_ONLINE_LOG_TOO_BIG",t[1800]="ER_UNKNOWN_ALTER_ALGORITHM",t[1801]="ER_UNKNOWN_ALTER_LOCK",t[1802]="ER_MTS_CHANGE_SOURCE_CANT_RUN_WITH_GAPS",t[1803]="ER_MTS_RECOVERY_FAILURE",t[1804]="ER_MTS_RESET_WORKERS",t[1805]="ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2",t[1806]="ER_REPLICA_SILENT_RETRY_TRANSACTION",t[1807]="ER_DISCARD_FK_CHECKS_RUNNING",t[1808]="ER_TABLE_SCHEMA_MISMATCH",t[1809]="ER_TABLE_IN_SYSTEM_TABLESPACE",t[1810]="ER_IO_READ_ERROR",t[1811]="ER_IO_WRITE_ERROR",t[1812]="ER_TABLESPACE_MISSING",t[1813]="ER_TABLESPACE_EXISTS",t[1814]="ER_TABLESPACE_DISCARDED",t[1815]="ER_INTERNAL_ERROR",t[1816]="ER_INNODB_IMPORT_ERROR",t[1817]="ER_INNODB_INDEX_CORRUPT",t[1818]="ER_INVALID_YEAR_COLUMN_LENGTH",t[1819]="ER_NOT_VALID_PASSWORD",t[1820]="ER_MUST_CHANGE_PASSWORD",t[1821]="ER_FK_NO_INDEX_CHILD",t[1822]="ER_FK_NO_INDEX_PARENT",t[1823]="ER_FK_FAIL_ADD_SYSTEM",t[1824]="ER_FK_CANNOT_OPEN_PARENT",t[1825]="ER_FK_INCORRECT_OPTION",t[1826]="ER_FK_DUP_NAME",t[1827]="ER_PASSWORD_FORMAT",t[1828]="ER_FK_COLUMN_CANNOT_DROP",t[1829]="ER_FK_COLUMN_CANNOT_DROP_CHILD",t[1830]="ER_FK_COLUMN_NOT_NULL",t[1831]="ER_DUP_INDEX",t[1832]="ER_FK_COLUMN_CANNOT_CHANGE",t[1833]="ER_FK_COLUMN_CANNOT_CHANGE_CHILD",t[1834]="ER_FK_CANNOT_DELETE_PARENT",t[1835]="ER_MALFORMED_PACKET",t[1836]="ER_READ_ONLY_MODE",t[1837]="ER_GTID_NEXT_TYPE_UNDEFINED_GROUP",t[1838]="ER_VARIABLE_NOT_SETTABLE_IN_SP",t[1839]="ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF",t[1840]="ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY",t[1841]="ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY",t[1842]="ER_GTID_PURGED_WAS_CHANGED",t[1843]="ER_GTID_EXECUTED_WAS_CHANGED",t[1844]="ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES",t[1845]="ER_ALTER_OPERATION_NOT_SUPPORTED",t[1846]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON",t[1847]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY",t[1848]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION",t[1849]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME",t[1850]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE",t[1851]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK",t[1852]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE",t[1853]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK",t[1854]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC",t[1855]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS",t[1856]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS",t[1857]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS",t[1858]="ER_SQL_REPLICA_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE",t[1859]="ER_DUP_UNKNOWN_IN_INDEX",t[1860]="ER_IDENT_CAUSES_TOO_LONG_PATH",t[1861]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL",t[1862]="ER_MUST_CHANGE_PASSWORD_LOGIN",t[1863]="ER_ROW_IN_WRONG_PARTITION",t[1864]="ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX",t[1865]="ER_INNODB_NO_FT_USES_PARSER",t[1866]="ER_BINLOG_LOGICAL_CORRUPTION",t[1867]="ER_WARN_PURGE_LOG_IN_USE",t[1868]="ER_WARN_PURGE_LOG_IS_ACTIVE",t[1869]="ER_AUTO_INCREMENT_CONFLICT",t[1870]="WARN_ON_BLOCKHOLE_IN_RBR",t[1871]="ER_REPLICA_MI_INIT_REPOSITORY",t[1872]="ER_REPLICA_RLI_INIT_REPOSITORY",t[1873]="ER_ACCESS_DENIED_CHANGE_USER_ERROR",t[1874]="ER_INNODB_READ_ONLY",t[1875]="ER_STOP_REPLICA_SQL_THREAD_TIMEOUT",t[1876]="ER_STOP_REPLICA_IO_THREAD_TIMEOUT",t[1877]="ER_TABLE_CORRUPT",t[1878]="ER_TEMP_FILE_WRITE_FAILURE",t[1879]="ER_INNODB_FT_AUX_NOT_HEX_ID",t[1880]="ER_OLD_TEMPORALS_UPGRADED",t[1881]="ER_INNODB_FORCED_RECOVERY",t[1882]="ER_AES_INVALID_IV",t[1883]="ER_FILE_CORRUPT",t[1884]="ER_ERROR_ON_SOURCE",t[1885]="ER_INCONSISTENT_ERROR",t[1886]="ER_STORAGE_ENGINE_NOT_LOADED",t[1887]="ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER",t[1888]="ER_WARN_LEGACY_SYNTAX_CONVERTED",t[1889]="ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN",t[1890]="ER_CANNOT_DISCARD_TEMPORARY_TABLE",t[1891]="ER_FK_DEPTH_EXCEEDED",t[1892]="ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2",t[1893]="ER_WARN_TRIGGER_DOESNT_HAVE_CREATED",t[1894]="ER_REFERENCED_TRG_DOES_NOT_EXIST",t[1895]="ER_EXPLAIN_NOT_SUPPORTED",t[1896]="ER_INVALID_FIELD_SIZE",t[1897]="ER_MISSING_HA_CREATE_OPTION",t[1898]="ER_ENGINE_OUT_OF_MEMORY",t[1899]="ER_PASSWORD_EXPIRE_ANONYMOUS_USER",t[1900]="ER_REPLICA_SQL_THREAD_MUST_STOP",t[1901]="ER_NO_FT_MATERIALIZED_SUBQUERY",t[1902]="ER_INNODB_UNDO_LOG_FULL",t[1903]="ER_INVALID_ARGUMENT_FOR_LOGARITHM",t[1904]="ER_REPLICA_IO_THREAD_MUST_STOP",t[1905]="ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO",t[1906]="ER_WARN_ONLY_SOURCE_LOG_FILE_NO_POS",t[1907]="ER_QUERY_TIMEOUT",t[1908]="ER_NON_RO_SELECT_DISABLE_TIMER",t[1909]="ER_DUP_LIST_ENTRY",t[1910]="ER_SQL_MODE_NO_EFFECT",t[3169]="ER_SESSION_WAS_KILLED",t[4031]="ER_CLIENT_INTERACTION_TIMEOUT"},function(e,t){e.exports=require("string_decoder")},function(e){e.exports=JSON.parse('[["a140","",62],["a180","",32],["a240","",62],["a280","",32],["a2ab","",5],["a2e3","€"],["a2ef",""],["a2fd",""],["a340","",62],["a380","",31," "],["a440","",62],["a480","",32],["a4f4","",10],["a540","",62],["a580","",32],["a5f7","",7],["a640","",62],["a680","",32],["a6b9","",7],["a6d9","",6],["a6ec",""],["a6f3",""],["a6f6","",8],["a740","",62],["a780","",32],["a7c2","",14],["a7f2","",12],["a896","",10],["a8bc","ḿ"],["a8bf","ǹ"],["a8c1",""],["a8ea","",20],["a958",""],["a95b",""],["a95d",""],["a989","〾⿰",11],["a997","",12],["a9f0","",14],["aaa1","",93],["aba1","",93],["aca1","",93],["ada1","",93],["aea1","",93],["afa1","",93],["d7fa","",4],["f8a1","",93],["f9a1","",93],["faa1","",93],["fba1","",93],["fca1","",93],["fda1","",93],["fe50","⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"],["fe80","䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓",6,"䶮",93],["8135f437",""]]')},function(e){e.exports=JSON.parse('[["0","\\u0000",127],["a140"," ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"],["a1a1","﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢",4,"~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"],["a240","\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁",7,"▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"],["a2a1","╮╰╯═╞╪╡◢◣◥◤╱╲╳0",9,"Ⅰ",9,"〡",8,"十卄卅A",25,"a",21],["a340","wxyzΑ",16,"Σ",6,"α",16,"σ",6,"ㄅ",10],["a3a1","ㄐ",25,"˙ˉˊˇˋ"],["a3e1","€"],["a440","一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"],["a4a1","丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"],["a540","世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"],["a5a1","央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"],["a640","共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"],["a6a1","式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"],["a740","作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"],["a7a1","均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"],["a840","杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"],["a8a1","芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"],["a940","咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"],["a9a1","屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"],["aa40","昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"],["aaa1","炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"],["ab40","陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"],["aba1","哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"],["ac40","拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"],["aca1","活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"],["ad40","耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"],["ada1","迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"],["ae40","哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"],["aea1","恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"],["af40","浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"],["afa1","砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"],["b040","虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"],["b0a1","陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"],["b140","娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"],["b1a1","情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"],["b240","毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"],["b2a1","瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"],["b340","莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"],["b3a1","部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"],["b440","婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"],["b4a1","插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"],["b540","溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"],["b5a1","窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"],["b640","詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"],["b6a1","間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"],["b740","媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"],["b7a1","楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"],["b840","睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"],["b8a1","腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"],["b940","辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"],["b9a1","飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"],["ba40","愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"],["baa1","滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"],["bb40","罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"],["bba1","說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"],["bc40","劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"],["bca1","慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"],["bd40","瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"],["bda1","翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"],["be40","輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"],["bea1","鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"],["bf40","濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"],["bfa1","縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"],["c040","錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"],["c0a1","嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"],["c140","瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"],["c1a1","薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"],["c240","駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"],["c2a1","癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"],["c340","鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"],["c3a1","獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"],["c440","願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"],["c4a1","纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"],["c540","護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"],["c5a1","禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"],["c640","讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"],["c940","乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"],["c9a1","氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"],["ca40","汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"],["caa1","吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"],["cb40","杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"],["cba1","芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"],["cc40","坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"],["cca1","怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"],["cd40","泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"],["cda1","矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"],["ce40","哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"],["cea1","峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"],["cf40","柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"],["cfa1","洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"],["d040","穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"],["d0a1","苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"],["d140","唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"],["d1a1","恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"],["d240","毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"],["d2a1","牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"],["d340","笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"],["d3a1","荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"],["d440","酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"],["d4a1","唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"],["d540","崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"],["d5a1","捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"],["d640","淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"],["d6a1","痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"],["d740","耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"],["d7a1","蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"],["d840","釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"],["d8a1","堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"],["d940","惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"],["d9a1","晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"],["da40","湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"],["daa1","琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"],["db40","罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"],["dba1","菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"],["dc40","軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"],["dca1","隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"],["dd40","媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"],["dda1","搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"],["de40","毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"],["dea1","煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"],["df40","稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"],["dfa1","腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"],["e040","觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"],["e0a1","遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"],["e140","凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"],["e1a1","寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"],["e240","榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"],["e2a1","漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"],["e340","禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"],["e3a1","耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"],["e440","裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"],["e4a1","銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"],["e540","噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"],["e5a1","憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"],["e640","澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"],["e6a1","獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"],["e740","膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"],["e7a1","蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"],["e840","踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"],["e8a1","銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"],["e940","噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"],["e9a1","憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"],["ea40","澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"],["eaa1","瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"],["eb40","蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"],["eba1","諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"],["ec40","錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"],["eca1","魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"],["ed40","檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"],["eda1","瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"],["ee40","蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"],["eea1","謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"],["ef40","鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"],["efa1","鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"],["f040","璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"],["f0a1","臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"],["f140","蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"],["f1a1","鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"],["f240","徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"],["f2a1","礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"],["f340","譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"],["f3a1","鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"],["f440","嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"],["f4a1","禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"],["f540","鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"],["f5a1","鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"],["f640","蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"],["f6a1","騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"],["f740","糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"],["f7a1","驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"],["f840","讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"],["f8a1","齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"],["f940","纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"],["f9a1","龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"]]')},function(e,t,n){"use strict";t.SERVER_STATUS_IN_TRANS=1,t.SERVER_STATUS_AUTOCOMMIT=2,t.SERVER_MORE_RESULTS_EXISTS=8,t.SERVER_QUERY_NO_GOOD_INDEX_USED=16,t.SERVER_QUERY_NO_INDEX_USED=32,t.SERVER_STATUS_CURSOR_EXISTS=64,t.SERVER_STATUS_LAST_ROW_SENT=128,t.SERVER_STATUS_DB_DROPPED=256,t.SERVER_STATUS_NO_BACKSLASH_ESCAPES=512,t.SERVER_STATUS_METADATA_CHANGED=1024,t.SERVER_QUERY_WAS_SLOW=2048,t.SERVER_PS_OUT_PARAMS=4096,t.SERVER_STATUS_IN_TRANS_READONLY=8192,t.SERVER_SESSION_STATE_CHANGED=16384},function(e,t,n){"use strict";const r=n(21),i=n(20),o=n(40),s=n(28),a=n(47);function u(e){const t=[];for(const n in o)e&o[n]&&t.push(n.replace(/_/g," ").toLowerCase());return t}class c extends r{constructor(e){super(),this.handshake=null,this.clientFlags=e}start(){return c.prototype.handshakeInit}sendSSLRequest(e){const t=new i.SSLRequest(this.clientFlags,e.config.charsetNumber);e.writePacket(t.toPacket())}sendCredentials(e){e.config.debug&&console.log("Sending handshake packet: flags:%d=(%s)",this.clientFlags,u(this.clientFlags).join(", ")),this.user=e.config.user,this.password=e.config.password,this.passwordSha1=e.config.passwordSha1,this.database=e.config.database,this.autPluginName=this.handshake.autPluginName;const t=new i.HandshakeResponse({flags:this.clientFlags,user:this.user,database:this.database,password:this.password,passwordSha1:this.passwordSha1,charsetNumber:e.config.charsetNumber,authPluginData1:this.handshake.authPluginData1,authPluginData2:this.handshake.authPluginData2,compress:e.config.compress,connectAttributes:e.config.connectAttributes});e.writePacket(t.toPacket())}calculateNativePasswordAuthToken(e){const t=e.slice(0,8),n=e.slice(8,20);let r;return r=this.passwordSha1?a.calculateTokenFromPasswordSha(this.passwordSha1,t,n):a.calculateToken(this.password,t,n),r}handshakeInit(e,t){this.on("error",e=>{t._fatalError=e,t._protocolError=e}),this.handshake=i.Handshake.fromPacket(e),t.config.debug&&console.log("Server hello packet: capability flags:%d=(%s)",this.handshake.capabilityFlags,u(this.handshake.capabilityFlags).join(", ")),t.serverCapabilityFlags=this.handshake.capabilityFlags,t.serverEncoding=s[this.handshake.characterSet],t.connectionId=this.handshake.connectionId;const n=this.handshake.capabilityFlags&o.SSL;if(t.config.compress=t.config.compress&&this.handshake.capabilityFlags&o.COMPRESS,this.clientFlags=this.clientFlags|t.config.compress,t.config.ssl){if(!n){const e=new Error("Server does not support secure connnection");return e.code="HANDSHAKE_NO_SSL_SUPPORT",e.fatal=!0,this.emit("error",e),!1}this.clientFlags|=o.SSL,this.sendSSLRequest(t),t.startTLS(e=>{if(e)return e.code="HANDSHAKE_SSL_ERROR",e.fatal=!0,void this.emit("error",e);this.sendCredentials(t)})}else this.sendCredentials(t);return c.prototype.handshakeResult}handshakeResult(e,t){const r=e.peekByte();if(254===r||1===r){const i=n(259);try{return 1===r?i.authSwitchRequestMoreData(e,t,this):i.authSwitchRequest(e,t,this),c.prototype.handshakeResult}catch(e){return e.code="AUTH_SWITCH_PLUGIN_ERROR",e.fatal=!0,this.onResult?this.onResult(e):this.emit("error",e),null}}if(0!==r){const e=new Error("Unexpected packet during handshake phase");return e.code="HANDSHAKE_UNKNOWN_ERROR",e.fatal=!0,this.onResult?this.onResult(e):this.emit("error",e),null}if(!t.authorized&&(t.authorized=!0,t.config.compress)){(0,n(263).enableCompression)(t)}return this.onResult&&this.onResult(null),null}}e.exports=c},function(e,t,n){"use strict";const r=n(65),i=n(83),o=n(32).Readable,s=n(21),a=n(20),u=n(267),c=n(128),l=new a.Packet(0,Buffer.allocUnsafe(4),0,4);class d extends s{constructor(e,t){super(),this.sql=e.sql,this.values=e.values,this._queryOptions=e,this.namedPlaceholders=e.namedPlaceholders||!1,this.onResult=t,this.timeout=e.timeout,this.queryTimeout=null,this._fieldCount=0,this._rowParser=null,this._fields=[],this._rows=[],this._receivedFieldsCount=0,this._resultIndex=0,this._localStream=null,this._unpipeStream=function(){},this._streamFactory=e.infileStreamFactory,this._connection=null}then(){const e="You have tried to call .then(), .catch(), or invoked await on the result of query that is not a promise, which is a programming error. Try calling con.promise().query(), or require('mysql2/promise') instead of 'mysql2' for a promise-compatible version of the query interface. To learn how to use async/await or Promises check out documentation at https://www.npmjs.com/package/mysql2#using-promise-wrapper, or the mysql2 documentation at https://github.com/sidorares/node-mysql2/tree/master/documentation/Promise-Wrapper.md";throw console.log(e),new Error(e)}start(e,t){t.config.debug&&console.log(" Sending query command: %s",this.sql),this._connection=t,this.options=Object.assign({},t.config,this._queryOptions),this._setTimeout();const n=new a.Query(this.sql,t.config.charsetNumber);return t.writePacket(n.toPacket(1)),d.prototype.resultsetHeader}done(){if(this._unpipeStream(),this.timeout&&!this.queryTimeout)return null;if(this.queryTimeout&&(i.clearTimeout(this.queryTimeout),this.queryTimeout=null),this.onResult){let e,t;0===this._resultIndex?(e=this._rows[0],t=this._fields[0]):(e=this._rows,t=this._fields),t?r.nextTick(()=>{this.onResult(null,e,t)}):r.nextTick(()=>{this.onResult(null,e)})}return null}doneInsert(e){return this._localStreamError?(this.onResult?this.onResult(this._localStreamError,e):this.emit("error",this._localStreamError),null):(this._rows.push(e),this._fields.push(void 0),this.emit("fields",void 0),this.emit("result",e),e.serverStatus&c.SERVER_MORE_RESULTS_EXISTS?(this._resultIndex++,this.resultsetHeader):this.done())}resultsetHeader(e,t){const n=new a.ResultSetHeader(e,t);return this._fieldCount=n.fieldCount,t.config.debug&&console.log(` Resultset header received, expecting ${n.fieldCount} column definition packets`),0===this._fieldCount?this.doneInsert(n):null===this._fieldCount?this._streamLocalInfile(t,n.infileName):(this._receivedFieldsCount=0,this._rows.push([]),this._fields.push([]),this.readField)}_streamLocalInfile(e,t){if(!this._streamFactory)return this._localStreamError=new Error(`As a result of LOCAL INFILE command server wants to read ${t} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`),e.writePacket(l),this.infileOk;this._localStream=this._streamFactory(t);const n=()=>{this._unpipeStream()},r=()=>{this._localStream.resume()},i=()=>{this._localStream.pause()},o=function(t){const n=Buffer.allocUnsafe(t.length+4);t.copy(n,4),e.writePacket(new a.Packet(0,n,0,n.length))},s=()=>{e.removeListener("error",n),e.writePacket(l)},u=t=>{this._localStreamError=t,e.removeListener("error",n),e.writePacket(l)};return this._unpipeStream=()=>{e.stream.removeListener("pause",i),e.stream.removeListener("drain",r),this._localStream.removeListener("data",o),this._localStream.removeListener("end",s),this._localStream.removeListener("error",u)},e.stream.on("pause",i),e.stream.on("drain",r),this._localStream.on("data",o),this._localStream.on("end",s),this._localStream.on("error",u),e.once("error",n),this.infileOk}readField(e,t){if(this._receivedFieldsCount++,this._fields[this._resultIndex].length!==this._fieldCount){const n=new a.ColumnDefinition(e,t.clientEncoding);this._fields[this._resultIndex].push(n),t.config.debug&&(console.log(" Column definition:"),console.log(" name: "+n.name),console.log(" type: "+n.columnType),console.log(" flags: "+n.flags))}if(this._receivedFieldsCount===this._fieldCount){const e=this._fields[this._resultIndex];return this.emit("fields",e),this._rowParser=new(u(e,this.options,t.config))(e),d.prototype.fieldsEOF}return d.prototype.readField}fieldsEOF(e,t){return e.isEOF()?this.row:t.protocolError("Expected EOF packet")}row(e,t){if(e.isEOF()){return e.eofStatusFlags()&c.SERVER_MORE_RESULTS_EXISTS?(this._resultIndex++,d.prototype.resultsetHeader):this.done()}let n;try{n=this._rowParser.next(e,this._fields[this._resultIndex],this.options)}catch(e){return this._localStreamError=e,this.doneInsert(null)}return this.onResult?this._rows[this._resultIndex].push(n):this.emit("result",n),d.prototype.row}infileOk(e,t){const n=new a.ResultSetHeader(e,t);return this.doneInsert(n)}stream(e){(e=e||{}).objectMode=!0;const t=new o(e);return t._read=()=>{this._connection&&this._connection.resume()},this.on("result",e=>{t.push(e)||this._connection.pause(),t.emit("result",e)}),this.on("error",e=>{t.emit("error",e)}),this.on("end",()=>{t.push(null),t.emit("close")}),this.on("fields",e=>{t.emit("fields",e)}),t}_setTimeout(){if(this.timeout){const e=this._handleTimeoutError.bind(this);this.queryTimeout=i.setTimeout(e,this.timeout)}}_handleTimeoutError(){this.queryTimeout&&(i.clearTimeout(this.queryTimeout),this.queryTimeout=null);const e=new Error("Query inactivity timeout");e.errorno="PROTOCOL_SEQUENCE_TIMEOUT",e.code="PROTOCOL_SEQUENCE_TIMEOUT",e.syscall="query",this.onResult?this.onResult(e):this.emit("error",e)}}d.prototype.catch=d.prototype.then,e.exports=d},function(e,t,n){"use strict";let r;t.srcEscape=function(e){return JSON.stringify({[e]:1}).slice(1,-3)};let i=!1;try{r=n(!function(){var e=new Error("Cannot find module 'cardinal'");throw e.code="MODULE_NOT_FOUND",e}()).highlight}catch(e){r=e=>(i||(console.log("For nicer debug output consider install cardinal@^2.0.0"),i=!0),e)}t.printDebugWithCode=function(e,t){console.log(`\n\n${e}:\n`),console.log(r(t)+"\n")},t.typeMatch=function(e,t,n){return Array.isArray(t)?t.some(t=>e===n[t]):!!t}},function(e,t,n){for(var r=n(7),i=n(268),o=/[\{\[]/,s=/[\}\]]/,a=["do","if","in","for","let","new","try","var","case","else","enum","eval","null","this","true","void","with","await","break","catch","class","const","false","super","throw","while","yield","delete","export","import","public","return","static","switch","typeof","default","extends","finally","package","private","continue","debugger","function","arguments","interface","protected","implements","instanceof","NaN","undefined"],u={},c=0;c-1)for(var t=e.trim().split("\n"),n=0;ne(new Error("Pool is closed.")));let t;return this._freeConnections.length>0?(t=this._freeConnections.shift(),this.emit("acquire",t),r.nextTick(()=>e(null,t))):0===this.config.connectionLimit||this._allConnections.lengththis._closed?e(new Error("Pool is closed.")):n?e(n):(this.emit("connection",t),this.emit("acquire",t),e(null,t)))):this.config.waitForConnections?this.config.queueLimit&&this._connectionQueue.length>=this.config.queueLimit?e(new Error("Queue limit reached.")):(this.emit("enqueue"),this._connectionQueue.push(e)):r.nextTick(()=>e(new Error("No connections available.")))}releaseConnection(e){let t;e._pool?this._connectionQueue.length?(t=this._connectionQueue.shift(),r.nextTick(t.bind(null,null,e))):(this._freeConnections.push(e),this.emit("release",e)):this._connectionQueue.length&&(t=this._connectionQueue.shift(),r.nextTick(this.getConnection.bind(this,t)))}end(e){this._closed=!0,"function"!=typeof e&&(e=function(e){if(e)throw e});let t,n=!1,r=0;const i=function(t){if(!n)return t||++r>=this._allConnections.length?(n=!0,void e(t)):void 0}.bind(this);if(0!==this._allConnections.length)for(let e=0;e{if(e)"function"==typeof r.onResult?r.onResult(e):r.emit("error",e);else try{t.query(r).once("end",()=>{t.release()})}catch(e){throw t.release(),e}}),r}execute(e,t,n){"function"==typeof t&&(n=t,t=[]),this.getConnection((r,i)=>{if(r)return n(r);try{i.execute(e,t,n).once("end",()=>{i.release()})}catch(e){throw i.release(),e}})}_removeConnection(e){c(this._allConnections,e),c(this._freeConnections,e),this.releaseConnection(e)}format(e,t){return i.format(e,t,this.config.connectionConfig.stringifyObjects,this.config.connectionConfig.timezone)}escape(e){return i.escape(e,this.config.connectionConfig.stringifyObjects,this.config.connectionConfig.timezone)}escapeId(e){return i.escapeId(e,!1)}}},function(e,t,n){"use strict";const r=n(81).Connection;class i extends r{constructor(e,t){super(t),this._pool=e,this.once("end",()=>{this._removeFromPool()}),this.once("error",()=>{this._removeFromPool()})}release(){this._pool&&!this._pool._closed&&this._pool.releaseConnection(this)}promise(e){return new(0,n(38).PromisePoolConnection)(this,e)}end(){const e=new Error("Calling conn.end() to release a pooled connection is deprecated. In next version calling conn.end() will be restored to default conn.end() behavior. Use conn.release() instead.");this.emit("warn",e),console.warn(e.message),this.release()}destroy(){this._removeFromPool(),super.destroy()}_removeFromPool(){if(!this._pool||this._pool._closed)return;const e=this._pool;this._pool=null,e._removeConnection(this)}}i.statementKey=r.statementKey,e.exports=i,i.prototype._realEnd=r.prototype.end},function(e,t,n){"use strict";const r=n(65),i=n(135),o=n(138),s=n(63),a=n(26).EventEmitter,u={RR(){let e=0;return t=>t[e++%t.length]},RANDOM:()=>e=>e[Math.floor(Math.random()*e.length)],ORDER:()=>e=>e[0]};class c{constructor(e,t,n){this._cluster=e,this._pattern=t,this._selector=u[n]()}getConnection(e){const t=this._getClusterNode();return null===t?e(new Error("Pool does Not exists.")):this._cluster._getConnection(t,(t,n)=>t?e(t):"retry"===n?this.getConnection(e):e(null,n))}query(e,t,n){const r=s.createQuery(e,t,n,{});return this.getConnection((e,t)=>{if(e)"function"==typeof r.onResult?r.onResult(e):r.emit("error",e);else try{t.query(r).once("end",()=>{t.release()})}catch(e){throw t.release(),e}}),r}execute(e,t,n){"function"==typeof t&&(n=t,t=[]),this.getConnection((r,i)=>{if(r)return n(r);try{i.execute(e,t,n).once("end",()=>{i.release()})}catch(e){throw i.release(),e}})}_getClusterNode(){const e=this._cluster._findNodeIds(this._pattern);if(0===e.length)return null;const t=1===e.length?e[0]:this._selector(e);return this._cluster._getNode(t)}}e.exports=class extends a{constructor(e){super(),e=e||{},this._canRetry=void 0===e.canRetry||e.canRetry,this._removeNodeErrorCount=e.removeNodeErrorCount||5,this._defaultSelector=e.defaultSelector||"RR",this._closed=!1,this._lastId=0,this._nodes={},this._serviceableNodeIds=[],this._namespaces={},this._findCaches={}}of(e,t){e=e||"*",t=(t=t||this._defaultSelector).toUpperCase(),"undefined"===!u[t]&&(t=this._defaultSelector);const n=e+t;return void 0===this._namespaces[n]&&(this._namespaces[n]=new c(this,e,t)),this._namespaces[n]}add(e,t){"object"==typeof e&&(t=e,e="CLUSTER::"+ ++this._lastId),void 0===this._nodes[e]&&(this._nodes[e]={id:e,errorCount:0,pool:new i({config:new o(t)})},this._serviceableNodeIds.push(e),this._clearFindCaches())}getConnection(e,t,n){let r;"function"==typeof e?(n=e,r=this.of()):("function"==typeof t&&(n=t,t=this._defaultSelector),r=this.of(e,t)),r.getConnection(n)}end(e){const t=void 0!==e?e:e=>{if(e)throw e};if(this._closed)return void r.nextTick(t);this._closed=!0;let n=!1,i=0;const o=e=>{if(!n&&(e||--i<=0))return n=!0,t(e)};for(const e in this._nodes)i++,this._nodes[e].pool.end(o);0===i&&r.nextTick(o)}_findNodeIds(e){if(void 0!==this._findCaches[e])return this._findCaches[e];let t;if("*"===e)t=this._serviceableNodeIds;else if(-1!==this._serviceableNodeIds.indexOf(e))t=[e];else{const n=e.substring(e.length-1,0);t=this._serviceableNodeIds.filter(e=>e.startsWith(n))}return this._findCaches[e]=t,t}_getNode(e){return this._nodes[e]||null}_increaseErrorCount(e){if(++e.errorCount>=this._removeNodeErrorCount){const t=this._serviceableNodeIds.indexOf(e.id);-1!==t&&(this._serviceableNodeIds.splice(t,1),delete this._nodes[e.id],this._clearFindCaches(),e.pool.end(),this.emit("remove",e.id))}}_decreaseErrorCount(e){e.errorCount>0&&--e.errorCount}_getConnection(e,t){e.pool.getConnection((n,r)=>n?(this._increaseErrorCount(e),this._canRetry?(this.emit("warn",n),console.warn("[Error] PoolCluster : "+n),t(null,"retry")):t(n)):(this._decreaseErrorCount(e),r._clusterId=e.id,t(null,r)))}_clearFindCaches(){this._findCaches={}}}},function(e,t,n){"use strict";const r=n(67);e.exports=class{constructor(e){"string"==typeof e&&(e=r.parseUrl(e)),this.connectionConfig=new r(e),this.waitForConnections=void 0===e.waitForConnections||Boolean(e.waitForConnections),this.connectionLimit=isNaN(e.connectionLimit)?10:Number(e.connectionLimit),this.queueLimit=isNaN(e.queueLimit)?0:Number(e.queueLimit)}}},function(e,t,n){"use strict";const r=n(13);e.exports=r(e=>(e.message="\t"+e.message,e))},function(e,t,n){"use strict";const{Colorizer:r}=n(68),{Padder:i}=n(88),{configs:o,MESSAGE:s}=n(3);class a{constructor(e={}){e.levels||(e.levels=o.npm.levels),this.colorizer=new r(e),this.padder=new i(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[s]=`${e.level}:${e.message}`,e}}e.exports=e=>new a(e),e.exports.Format=a},function(e,t,n){"use strict";const r=n(13);function i(e){if(e.every(o))return t=>{let n=t;for(let t=0;t{const t=r(i(e)),n=t();return n.Format=t.Format,n},e.exports.cascade=i},function(e,t,n){"use strict";const r=n(13);e.exports=r((e,t)=>t.message?(e.message=`[${t.label}] ${e.message}`,e):(e.label=t.label,e))},function(e,t,n){"use strict";const r=n(13),{MESSAGE:i}=n(3),o=n(48);e.exports=r(e=>{const t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e})},function(e,t,n){"use strict";const r=n(13);e.exports=r((e,t={})=>{let n="metadata";t.key&&(n=t.key);let r=[];return t.fillExcept||t.fillWith||(r.push("level"),r.push("message")),t.fillExcept&&(r=t.fillExcept),r.length>0?function(e,t,n){const r=t.reduce((t,n)=>(t[n]=e[n],delete e[n],t),{}),i=Object.keys(e).reduce((t,n)=>(t[n]=e[n],delete e[n],t),{});return Object.assign(e,r,{[n]:i}),e}(e,r,n):t.fillWith?function(e,t,n){return e[n]=t.reduce((t,n)=>(t[n]=e[n],delete e[n],t),{}),e}(e,t.fillWith,n):e})},function(e,t,n){"use strict";const r=n(7).inspect,i=n(13),{LEVEL:o,MESSAGE:s,SPLAT:a}=n(3);e.exports=i((e,t={})=>{const n=Object.assign({},e);return delete n[o],delete n[s],delete n[a],e[s]=r(n,!1,t.depth||null,t.colorize),e})},function(e,t,n){"use strict";const{MESSAGE:r}=n(3);class i{constructor(e){this.template=e}transform(e){return e[r]=this.template(e),e}}e.exports=e=>new i(e),e.exports.Printf=e.exports.Format=i},function(e,t,n){"use strict";const r=n(13),{MESSAGE:i}=n(3),o=n(48);e.exports=r(e=>{const t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),n=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?`${e.level}:${n} ${e.message} ${t}`:`${e.level}:${n} ${e.message}`,e})},function(e,t,n){"use strict";const r=n(7),{SPLAT:i}=n(3),o=/%[scdjifoO%]/g,s=/%%/g;class a{constructor(e){this.options=e}_splat(e,t){const n=e.message,o=e[i]||e.splat||[],a=n.match(s),u=a&&a.length||0,c=t.length-u-o.length,l=c<0?o.splice(c,-1*c):[],d=l.length;if(d)for(let t=0;t1?n.splice(0):n,r=t.length;if(r)for(let n=0;nnew a(e)},function(e,t,n){"use strict";const r=n(150),i=n(13);e.exports=i((e,t={})=>(t.format&&(e.timestamp="function"==typeof t.format?t.format():r.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e))},function(e,t,n){"use strict";n.r(t),n.d(t,"assign",(function(){return u})),n.d(t,"format",(function(){return b})),n.d(t,"parse",(function(){return S})),n.d(t,"defaultI18n",(function(){return f})),n.d(t,"setGlobalDateI18n",(function(){return h})),n.d(t,"setGlobalDateMasks",(function(){return v}));var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",o=/\[([^]*?)\]/gm;function s(e,t){for(var n=[],r=0,i=e.length;r-1?r:null}};function u(e){for(var t=[],n=1;n3?0:(e-e%10!=10?1:0)*e%10]}},_=u({},f),h=function(e){return _=u(_,e)},E=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},p=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length0?"-":"+")+p(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+p(Math.floor(Math.abs(t)/60),2)+":"+p(Math.abs(t)%60,2)}},R=function(e){return+e-1},A=[null,"[1-9]\\d?"],T=[null,i],m=["isPm",i,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],N=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],I={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+i,function(e){return parseInt(e,10)}],M:["month","[1-9]\\d?",R],MM:["month","\\d\\d",R],YY:["year","\\d\\d",function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond","\\d\\d",function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:A,dd:A,ddd:T,dddd:T,MMM:["month",i,a("monthNamesShort")],MMMM:["month",i,a("monthNames")],a:m,A:m,ZZ:N,Z:N},O={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},v=function(e){return u(O,e)},b=function(e,t,n){if(void 0===t&&(t=O.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var i=[];t=(t=O[t]||t).replace(o,(function(e,t){return i.push(t),"@@@"}));var s=u(u({},_),n);return(t=t.replace(r,(function(t){return g[t](e,s)}))).replace(/@@@/g,(function(){return i.shift()}))};function S(e,t,n){if(void 0===n&&(n={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=O[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],a=[],c=t.replace(o,(function(e,t){return a.push(E(t)),"@@@"})),l={},d={};c=E(c).replace(r,(function(e){var t=I[e],n=t[0],r=t[1],i=t[3];if(l[n])throw new Error("Invalid format. "+n+" specified twice in format");return l[n]=!0,i&&(d[i]=!0),s.push(t),"("+r+")"})),Object.keys(d).forEach((function(e){if(!l[e])throw new Error("Invalid format. "+e+" is required in specified format")})),c=c.replace(/@@@/g,(function(){return a.shift()}));var f=e.match(new RegExp(c,"i"));if(!f)return null;for(var h=u(u({},_),n),p=1;p(!1!==t.level&&(e.level=r.strip(e.level)),!1!==t.message&&(e.message=r.strip(e.message)),!1!==t.raw&&e[o]&&(e[o]=r.strip(e[o])),e))},function(e,t,n){"use strict";var r=t.format=n(11);t.levels=n(70),Object.defineProperty(r,"align",{value:n(90)}),Object.defineProperty(r,"cli",{value:n(91)}),Object.defineProperty(r,"combine",{value:n(92)}),Object.defineProperty(r,"colorize",{value:n(57)}),Object.defineProperty(r,"json",{value:n(93)}),Object.defineProperty(r,"label",{value:n(94)}),Object.defineProperty(r,"logstash",{value:n(95)}),Object.defineProperty(r,"metadata",{value:n(96)}),Object.defineProperty(r,"padLevels",{value:n(71)}),Object.defineProperty(r,"prettyPrint",{value:n(97)}),Object.defineProperty(r,"printf",{value:n(98)}),Object.defineProperty(r,"simple",{value:n(99)}),Object.defineProperty(r,"splat",{value:n(100)}),Object.defineProperty(r,"timestamp",{value:n(101)}),Object.defineProperty(r,"uncolorize",{value:n(102)})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(11),o=n(3),s=o.LEVEL,a=o.MESSAGE;e.exports=i((function(e,t){var n=t.stack;if(e instanceof Error){var i,o=Object.assign({},e,(r(i={level:e.level},s,e[s]||e.level),r(i,"message",e.message),r(i,a,e[a]||e.message),i));return n&&(o.stack=e.stack),o}if(!(e.message instanceof Error))return e;Object.assign(e,e.message);var u=e.message;return e.message=u.message,e[a]=u.message,n&&(e.stack=u.stack),e}))},function(e,t,n){"use strict";var r=t.format=n(11);function i(e,t){t=t||e,Object.defineProperty(r,e,{get:function(){return n(303)("./".concat(t,".js"))},configurable:!0})}t.levels=n(70),i("align"),i("errors"),i("cli"),i("combine"),i("colorize"),i("json"),i("label"),i("logstash"),i("metadata"),i("ms"),i("padLevels","pad-levels"),i("prettyPrint","pretty-print"),i("printf"),i("simple"),i("splat"),i("timestamp"),i("uncolorize")},function(e,t,n){"use strict";var r=n(11),i=n(156);e.exports=r((function(e){var t=+new Date;return(void 0).diff=t-((void 0).prevTime||t),(void 0).prevTime=t,e.ms="+".concat(i((void 0).diff)),e}))},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return s(e,t,o,"day");if(t>=i)return s(e,t,i,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";const{format:r}=n(7);t.warn={deprecated:e=>()=>{throw new Error(r("{ %s } was removed in winston@3.0.0.",e))},useFormat:e=>()=>{throw new Error([r("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join("\n"))},forFunctions(e,n,r){r.forEach(r=>{e[r]=t.warn[n](r)})},moved(e,t,n){function i(){return()=>{throw new Error([r("winston.%s was moved in winston@3.0.0.",n),r("Use a winston.%s instead.",t)].join("\n"))}}Object.defineProperty(e,n,{get:i,set:i})},forProperties(e,n,r){r.forEach(r=>{const i=t.warn[n](r);Object.defineProperty(e,r,{get:i,set:i})})}}},function(e,t,n){"use strict";var r=n(72);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=p;var o,s=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:r.nextTick;p.WritableState=E;var a=Object.create(n(103));a.inherits=n(34);var u={deprecate:n(159)},c=n(160),l=n(73).Buffer,d=global.Uint8Array||function(){};var f,_=n(161);function h(){}function E(e,t){o=o||n(74),e=e||{};var a=t instanceof o;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var u=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:a&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(N,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),N(e,t))}(e,n,i,t,o);else{var a=T(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||A(e,n),i?s(R,e,n,a,o):R(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function p(e){if(o=o||n(74),!(f.call(p,this)||this instanceof o))return new p(e);this._writableState=new E(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function g(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),N(e,t)}function A(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,g(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,d=n.callback;if(g(e,t,!1,t.objectMode?1:c.length,c,l,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function m(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),N(e,t)}))}function N(e,t){var n=T(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(m,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}a.inherits(p,c),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===p&&(e&&e._writableState instanceof E)}})):f=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,l.isBuffer(i)||i instanceof d);return a&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=h),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,i){var o=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),r.nextTick(i,s),o=!1),o}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n));return t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,N(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=_.destroy,p.prototype._undestroy=_.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)}},function(e,t,n){e.exports=n(7).deprecate},function(e,t,n){e.exports=n(32)},function(e,t,n){"use strict";var r=n(72);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";var r=n(73).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=f,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";const r=n(7),{LEVEL:i}=n(3),o=n(49),s=e.exports=function(e={}){if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(e){this.emit("error",e,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};r.inherits(s,o),s.prototype._write=function(e,t,n){if(this.silent||!0===e.exception&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),n(null)},s.prototype._writev=function(e,t){for(let t=0;t0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)c.endEmitted?m(e,new T):b(e,c,t,!0);else if(c.ended)m(e,new R);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?b(e,c,t,!1):C(e,c)):b(e,c,t,!1)}else r||(c.reading=!1,C(e,c));return!c.ended&&(c.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function y(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(w,e))}function w(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,U(e)}function C(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(D,e,t))}function D(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function M(e){u("readable nexttick read 0"),e.read(0)}function B(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(G,t,e))}function G(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function x(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):y(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){m(this,new A("_read()"))},O.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,u("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:E;function s(t,i){u("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),e.removeListener("close",_),e.removeListener("finish",h),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",E),n.removeListener("data",d),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function a(){u("onend"),e.end()}r.endEmitted?process.nextTick(o):n.once("end",o),e.on("unpipe",s);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,U(e))}}(n);e.on("drain",c);var l=!1;function d(t){u("ondata");var i=e.write(t);u("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==x(r.pipes,e))&&!l&&(u("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function f(t){u("onerror",t),E(),e.removeListener("error",f),0===i(e,"error")&&m(e,t)}function _(){e.removeListener("finish",h),E()}function h(){u("onfinish"),e.removeListener("close",_),E()}function E(){u("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",_),e.once("finish",h),e.emit("pipe",n),r.flowing||(u("pipe resume"),n.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u("on readable",r.length,r.reading),r.length?y(this):r.reading||process.nextTick(M,this))),n},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(L,this),n},O.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(B,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new T(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,n){n(new h("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(e,t){t(e)}},function(e,t,n){"use strict";var r=n(332).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=f,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=l;var r=n(41).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,s=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(51);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthnull!==e&&"object"==typeof e&&"function"==typeof e.pipe;r.writable=e=>r(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,r.readable=e=>r(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,r.duplex=e=>r.writable(e)&&r.readable(e),r.transform=e=>r.duplex(e)&&"function"==typeof e._transform,e.exports=r},function(e,t,n){"use strict";const{LEVEL:r}=n(3),i=n(107),o=n(342),s=n(75)("winston:create-logger");e.exports=function(e={}){e.levels=e.levels||i.npm.levels;class t extends o{constructor(e){super(e)}}const n=new t(e);return Object.keys(e.levels).forEach((function(e){s('Define prototype method for "%s"',e),"log"!==e?(t.prototype[e]=function(...t){const i=this||n;if(1===t.length){const[o]=t,s=o&&o.message&&o||{message:o};return s.level=s[r]=e,i._addDefaultMeta(s),i.write(s),this||n}return 0===t.length?(i.log(e,""),i):i.log(e,...t)},t.prototype[function(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}(e)]=function(){return(this||n).isLevelEnabled(e)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')})),n}},function(e,t,n){"use strict";const r=n(30),i=n(108),o=n(75)("winston:exception"),s=n(177),a=n(178),u=n(179);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(e=>{if(Array.isArray(e))return e.forEach(e=>this._addHandler(e));this._addHandler(e)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let{message:t}=e;return t||"string"!=typeof e||(t=e),{error:e,level:"error",message:["uncaughtException: "+(t||"(no error message)"),e.stack||" No stack trace"].join("\n"),stack:e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:r.loadavg(),uptime:r.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map(e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;const t=new u(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){const t=this.getAllInfo(e),n=this._getExceptionHandlers();let r,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function u(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1),!n||0===n.length)return process.nextTick(u);i(n,(e,t)=>{const n=s(t),r=e.transport||e;function i(e){return()=>{o(e),n()}}r._ending=!0,r.once("finish",i("finished")),r.once("error",i("error"))},()=>a&&u()),this.logger.log(t),a&&(r=setTimeout(u,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}},function(e,t,n){"use strict";var r=n(345);e.exports=function(e){var t,n=0;function i(){return n||(n=1,t=e.apply(this,arguments),e=null),t}return i.displayName=r(e),i}},function(e,t){function n(e){for(var t in e)this[t]=e[t]}t.get=function(e){var n=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(r,e||t.get);var o=r.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=n,o},t.parse=function(e){if(!e.stack)return[];var t=this;return e.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var n=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(n){var r=null,i=null,o=null,s=null,a=null,u="native"===n[5];if(n[1]){var c=(o=n[1]).lastIndexOf(".");if("."==o[c-1]&&c--,c>0){r=o.substr(0,c),i=o.substr(c+1);var l=r.indexOf(".Module");l>0&&(o=o.substr(l+1),r=r.substr(0,l))}s=null}i&&(s=r,a=i),""===i&&(a=null,o=null);var d={fileName:n[2]||null,lineNumber:parseInt(n[3],10)||null,functionName:o,typeName:s,methodName:a,columnNumber:parseInt(n[4],10)||null,native:u};return t._createParsedCallSite(d)}})).filter((function(e){return!!e}))};["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(e){n.prototype[e]=null,n.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),["topLevel","eval","native","constructor"].forEach((function(e){n.prototype[e]=!1,n.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),t._createParsedCallSite=function(e){return new n(e)}},function(e,t,n){"use strict";const{Writable:r}=n(59);e.exports=class extends r{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,n){return e.exception?this.transport.log(e,n):(n(),!0)}}},function(e,t,n){"use strict";const r=n(30),i=n(108),o=n(75)("winston:rejection"),s=n(177),a=n(178),u=n(179);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(e=>{if(Array.isArray(e))return e.forEach(e=>this._addHandler(e));this._addHandler(e)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let{message:t}=e;return t||"string"!=typeof e||(t=e),{error:e,level:"error",message:["unhandledRejection: "+(t||"(no error message)"),e.stack||" No stack trace"].join("\n"),stack:e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:r.loadavg(),uptime:r.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map(e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;const t=new u(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){const t=this.getAllInfo(e),n=this._getRejectionHandlers();let r,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function u(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1),!n||0===n.length)return process.nextTick(u);i(n,(e,t)=>{const n=s(t),r=e.transport||e;function i(e){return()=>{o(e),n()}}r._ending=!0,r.once("finish",i("finished")),r.once("error",i("error"))},()=>a&&u()),this.logger.log(t),a&&(r=setTimeout(u,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateUniquePhoneNumber=void 0;const o=n(14),s=i(n(22)),a=e=>{let t=11;if(e>t)return a(t)+a(e-t);t=Math.pow(10,e+1);const n=t/10;return(""+(Math.floor(Math.random()*(t-n+1))+n)).substr(1)};t.generateUniquePhoneNumber=function e(){return r(this,void 0,void 0,(function*(){const t=`SELECT EXISTS(SELECT * FROM ${o.config.database.playerTable} WHERE ${o.config.database.phoneNumberColumn} = ?)`,n=a(10).replace(/(\d{3})(\d{3})(\d{4})/,"$1-$2-$3"),[r]=yield s.default._rawExec(t,n);return r?n:e()}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Collection",(function(){return o})),n.d(t,"default",(function(){return s}));var r=Object.defineProperty,i=class extends Map{get(e){return super.get(e)}set(e,t){return super.set(e,t)}has(e){return super.has(e)}delete(e){return super.delete(e)}clear(){return super.clear()}hasAll(...e){return e.every(e=>super.has(e))}hasAny(...e){return e.some(e=>super.has(e))}first(e){if(void 0===e)return this.values().next().value;if(e<0)return this.last(-1*e);e=Math.min(this.size,e);let t=this.values();return Array.from({length:e},()=>t.next().value)}firstKey(e){if(void 0===e)return this.keys().next().value;if(e<0)return this.lastKey(-1*e);e=Math.min(this.size,e);let t=this.keys();return Array.from({length:e},()=>t.next().value)}last(e){let t=[...this.values()];return void 0===e?t[t.length-1]:e<0?this.first(-1*e):e?t.slice(-e):[]}lastKey(e){let t=[...this.keys()];return void 0===e?t[t.length-1]:e<0?this.firstKey(-1*e):e?t.slice(-e):[]}random(e){let t=[...this.values()];return void 0===e?t[Math.floor(Math.random()*t.length)]:t.length&&e?Array.from({length:Math.min(e,t.length)},()=>t.splice(Math.floor(Math.random()*t.length),1)[0]):[]}randomKey(e){let t=[...this.keys()];return void 0===e?t[Math.floor(Math.random()*t.length)]:t.length&&e?Array.from({length:Math.min(e,t.length)},()=>t.splice(Math.floor(Math.random()*t.length),1)[0]):[]}find(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this)if(e(n,t,this))return n}findKey(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this)if(e(n,t,this))return t}sweep(e,t){void 0!==t&&(e=e.bind(t));let n=this.size;for(let[t,n]of this)e(n,t,this)&&this.delete(t);return n-this.size}filter(e,t){void 0!==t&&(e=e.bind(t));let n=new this.constructor[Symbol.species];for(let[t,r]of this)e(r,t,this)&&n.set(t,r);return n}partition(e,t){void 0!==t&&(e=e.bind(t));let n=[new this.constructor[Symbol.species],new this.constructor[Symbol.species]];for(let[t,r]of this)e(r,t,this)?n[0].set(t,r):n[1].set(t,r);return n}flatMap(e,t){let n=this.map(e,t);return(new this.constructor[Symbol.species]).concat(...n)}map(e,t){void 0!==t&&(e=e.bind(t));let n=this.entries();return Array.from({length:this.size},()=>{let[t,r]=n.next().value;return e(r,t,this)})}mapValues(e,t){void 0!==t&&(e=e.bind(t));let n=new this.constructor[Symbol.species];for(let[t,r]of this)n.set(t,e(r,t,this));return n}some(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this)if(e(n,t,this))return!0;return!1}every(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this)if(!e(n,t,this))return!1;return!0}reduce(e,t){let n;if(void 0!==t){n=t;for(let[t,r]of this)n=e(n,r,t,this);return n}let r=!0;for(let[t,i]of this)r?(n=i,r=!1):n=e(n,i,t,this);if(r)throw new TypeError("Reduce of empty collection with no initial value");return n}each(e,t){return this.forEach(e,t),this}tap(e,t){return void 0!==t&&(e=e.bind(t)),e(this),this}clone(){return new this.constructor[Symbol.species](this)}concat(...e){let t=this.clone();for(let n of e)for(let[e,r]of n)t.set(e,r);return t}equals(e){if(!e)return!1;if(this===e)return!0;if(this.size!==e.size)return!1;for(let[t,n]of this)if(!e.has(t)||n!==e.get(t))return!1;return!0}sort(e=i.defaultSort){let t=[...this.entries()];t.sort((t,n)=>e(t[1],n[1],t[0],n[0])),super.clear();for(let[e,n]of t)super.set(e,n);return this}intersect(e){let t=new this.constructor[Symbol.species];for(let[n,r]of e)this.has(n)&&t.set(n,r);return t}difference(e){let t=new this.constructor[Symbol.species];for(let[n,r]of e)this.has(n)||t.set(n,r);for(let[n,r]of this)e.has(n)||t.set(n,r);return t}sorted(e=i.defaultSort){return new this.constructor[Symbol.species](this).sort((t,n,r,i)=>e(t,n,r,i))}toJSON(){return[...this.values()]}static defaultSort(e,t){return Number(e>t)||Number(e===t)-1}},o=i;r(o,"name",{value:"Collection",configurable:!0}),o.default=i;var s=o},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(18)),s=n(184),a=i(n(354)),u=n(185),c=n(186);const l=new class{constructor(){this.marketplaceDB=a.default,s.marketplaceLogger.debug("Marketplace service started")}handleAddListing(e,t){return r(this,void 0,void 0,(function*(){s.marketplaceLogger.debug("Handling add listing, listing:"),s.marketplaceLogger.debug(e.data);const n=o.default.getPlayer(e.source),r=n.getIdentifier();try{if(yield this.marketplaceDB.doesListingExist(e.data,r))return t({status:"error",data:u.ListingTypeResp.DUPLICATE});const i=yield this.marketplaceDB.addListing(n.getIdentifier(),n.username,n.getName(),n.getPhoneNumber(),e.data);t({status:"ok"});const o={id:i,identifier:n.getIdentifier(),name:n.getName(),number:n.getPhoneNumber(),url:e.data.url,username:n.username,description:e.data.description,title:e.data.title};emitNet(u.MarketplaceEvents.BROADCAST_ADD,-1,{type:"ADD",listing:o})}catch(n){s.marketplaceLogger.error("Failed to add listing "+n.message,{source:e.source}),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleFetchListings(e,t){return r(this,void 0,void 0,(function*(){try{const e=yield this.marketplaceDB.fetchListings();t({data:e,status:"ok"})}catch(n){s.marketplaceLogger.error("Failed to fetch listings, "+n.message,{source:e.source}),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleDeleteListing(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.marketplaceDB.deleteListing(e.data.id,n),t({status:"ok"});const r=e.data.id;emitNet(u.MarketplaceEvents.BROADCAST_DELETE,-1,[r])}catch(e){s.marketplaceLogger.error("Error in handleDeleteListing, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleDeleteListingsOnDrop(e){return r(this,void 0,void 0,(function*(){try{const t=yield this.marketplaceDB.getListingIdsByIdentifier(e);emitNet(u.MarketplaceEvents.BROADCAST_DELETE,-1,t),yield this.marketplaceDB.deleteListingsOnDrop(e)}catch(e){s.marketplaceLogger.error("Error when deleting listings on player drop, "+e.message)}}))}handleReportListing(e,t){return r(this,void 0,void 0,(function*(){try{const n=yield this.marketplaceDB.getListing(e.data.id),r=yield this.marketplaceDB.doesReportExist(e.data.id,n.username),i=GetPlayerName(e.source.toString());if(r)return s.marketplaceLogger.error("This listing has already been reported"),void t({status:"error",errorMsg:"REPORT_EXISTS"});yield this.marketplaceDB.reportListing(n),yield(0,c.reportListingToDiscord)(n,i)}catch(n){s.marketplaceLogger.error("Failed to report listing "+n.message,{source:e.source}),t({status:"error",errorMsg:"DB_ERROR"})}}))}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.marketplaceLogger=void 0;const r=n(10);t.marketplaceLogger=r.mainLogger.child({module:"marketplace"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarketplaceEvents=t.ListingTypeResp=t.MarketplaceDatabaseLimits=void 0,function(e){e[e.title=255]="title",e[e.description=255]="description",e[e.url=255]="url"}(t.MarketplaceDatabaseLimits||(t.MarketplaceDatabaseLimits={})),function(e){e.DUPLICATE="duplicate"}(t.ListingTypeResp||(t.ListingTypeResp={})),function(e){e.ADD_LISTING="npwd:addListing",e.FETCH_LISTING="npwd:fetchAllListings",e.DELETE_LISTING="npwd:marketplaceDeleteListing",e.DELETE_LISTINGS_ON_DROP="npwd:marketplaceDeleteListingsOnDrop",e.REPORT_LISTING="npwd:reportListing",e.BROADCAST_ADD="npwd:sendMarketplaceBroadcastAdd",e.BROADCAST_DELETE="npwd:sendMarketplaceBroadcastDelete"}(t.MarketplaceEvents||(t.MarketplaceEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.reportListingToDiscord=t.reportTweetToDiscord=void 0;const o=i(n(355)),s=n(10),a=s.mainLogger.child({module:"discord"}),u=GetConvar("NPWD_DISCORD_TOKEN",""),c=e=>r(void 0,void 0,void 0,(function*(){if(!u)return void a.warn("Got a request to report a listing but discord is not configures. See README on how to configure discord endpoints.");const t=yield o.default.post(u,Object.assign({},e));if(t.status<200&&t.status>=300)throw new Error(`Discord Error: ${t.status} Error - ${t.statusText}`)})),l=(e,t,n)=>({username:"NPWD Report",embeds:[{title:e+" REPORT",color:15158332,description:t,timestamp:(new Date).toISOString(),fields:n}]});t.reportTweetToDiscord=function(e,t){return r(this,void 0,void 0,(function*(){const n=[{name:"Reported By:",value:`\`\`\`Profile Name: ${t.profile_name}\nProfile ID: ${t.id}\nUser Identifier: ${t.identifier}\`\`\``},{name:"Reported User Data:",value:`\`\`\`Profile Name: ${e.profile_name}\nProfile ID: ${e.profile_id}\nUser Identifier: ${e.identifier}\`\`\``},{name:"Tweet Message:",value:`\`\`\`Message: ${e.message}\`\`\``}],r=e.images?n.concat({name:"Reported Image:",value:e.images.split("||!||").join("\n")}):n,i=l("TWITTER","Received a report for a tweet",r);try{yield c(i)}catch(e){a.error(e.message)}}))},t.reportListingToDiscord=function(e,t){return r(this,void 0,void 0,(function*(){const n=[{name:"Reported By",value:`\`\`\`Profile Name: ${t}\`\`\``},{name:"Reported User Data",value:`\`\`\`Profile Name: ${e.username}\nProfile ID: ${e.id}\nUser Identifier: ${e.identifier}\`\`\``},{name:"Reported Listing Title",value:`\`\`\`Title: ${e.name}\`\`\``},{name:"Reported Listing Desc.",value:`\`\`\`Description: ${e.description}\`\`\``}],r=e.url?n.concat({name:"Reported Image:",value:e.url.split("||!||").join("\n")}):n,i=l("MARKETPLACE","Received a report for a listing",r);try{yield c(i)}catch(e){a.error(e.message)}}))}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=300&&t<400){if(N(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new _);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],T(/^content-/i,this._options.headers));var i,o=T(/^host$/i,this._options.headers),s=r.parse(this._currentUrl),a=o||s.host,u=/^\w+:/.test(n)?this._currentUrl:r.format(Object.assign(s,{host:a}));try{i=r.resolve(u,n)}catch(e){return void this.emit("error",new f(e))}c("redirecting to",i),this._isRedirect=!0;var l=r.parse(i);if(Object.assign(this._options,l),l.host===a||function(e,t){const n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(l.host,a)||T(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var d={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,d)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new f(e))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=g({http:o,https:s}),e.exports.wrap=g},function(e,t){e.exports=require("assert")},function(e,t,n){e.exports=function(e){function t(e){let n,i,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];n=o.call(r,t),e.splice(s,1),s--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t0}))}getMessageCountByGroup(e){return r(this,void 0,void 0,(function*(){const[t]=yield s.default._rawExec("\n SELECT COUNT(*) as count\n FROM npwd_messages\n WHERE conversation_id = ?",[e]);return t[0].count}))}setMessageRead(e,t){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("UPDATE npwd_messages_conversations\n SET unreadCount = 0\n WHERE conversation_id = ?\n AND participant_identifier = ?",[e,t])}))}deleteConversation(e,t){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("DELETE\n FROM npwd_messages_conversations\n WHERE conversation_id = ?\n AND participant_identifier = ?",[e,t])}))}deleteMessage(e){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("DELETE\n FROM npwd_messages\n WHERE id = ?\n AND conversation_id = ?",[e.id,e.conversation_id])}))}doesConversationExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield s.default._rawExec("SELECT *\n FROM npwd_messages_conversations\n WHERE conversation_id = ?\n AND participant_identifier = ?",[e,t]);return n[0]||null}))}}t._MessagesDB=a;const u=new a;t.default=u},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getIdentifiersFromParticipants=t.createMessageGroupsFromPhoneNumber=t.createGroupHashID=t.getGroupIds=t.getFormattedMessageConversations=t.getConsolidatedMessageGroups=t.messagesLogger=void 0;const o=n(10),s=i(n(204)),a=i(n(18));function u(e){return r(this,void 0,void 0,(function*(){return(yield s.default.getMessageConversations(e)).reduce((t,n)=>{const r=n.conversation_id;return n.participant_identifier!=e&&(t[r]={unread:n.unread,phoneNumber:n.phone_number,display:n.display,conversation_id:n.conversation_id,user_identifier:e}),t},{})}))}function c(e,t){return r(this,void 0,void 0,(function*(){const n=[];for(const r of Object.keys(t)){(t[r].user_identifier=e)&&n.push(r)}return n}))}function l(e){return e.sort(),e.join("+")}t.messagesLogger=o.mainLogger.child({module:"messages"}),t.getConsolidatedMessageGroups=u,t.getFormattedMessageConversations=function(e){return r(this,void 0,void 0,(function*(){const t=yield u(e);return(yield c(e,t)).map(e=>{const n=t[e];return Object.assign({},n)})}))},t.getGroupIds=c,t.createGroupHashID=l,t.createMessageGroupsFromPhoneNumber=function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.default.getIdentifierFromPhoneNumber(t,!0);if(!n)throw new Error("tgtIdentifier was null");const r=l([e,t]),i=yield s.default.doesConversationExist(r,t);return i?yield s.default.createMessageGroup(i.user_identifier,r,e):(yield s.default.createMessageGroup(e,r,e),yield s.default.createMessageGroup(e,r,t)),{error:!1,doesExist:i,conversationId:r,identifiers:[e,t],phoneNumber:t,participant:n}}))},t.getIdentifiersFromParticipants=function(e){return e.split("+")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TwitterEvents=void 0,function(e){e.FETCH_TWEETS="npwd:fetchTweets",e.FETCH_TWEETS_FILTERED="npwd:fetchTweetsFiltered",e.CREATE_PROFILE="npwd:createTwitterProfile",e.GET_OR_CREATE_PROFILE="npwd:getOrCreateTwitterProfile",e.UPDATE_PROFILE="npwd:updateTwitterProfile",e.CREATE_TWEET="npwd:createTweet",e.CREATE_TWEET_BROADCAST="createTweetBroadcast",e.DELETE_TWEET="npwd:deleteTweet",e.TOGGLE_LIKE="npwd:toggleLike",e.RETWEET="npwd:retweet",e.REPORT="npwd:reportTweet"}(t.TwitterEvents||(t.TwitterEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateProfileName=void 0;const o=i(n(18)),s=n(35);t.generateProfileName=function(e,t="_"){return r(this,void 0,void 0,(function*(){const n=o.default.getPlayerFromIdentifier(e),r=(0,s.clean)(n.getFirstName()),i=(0,s.clean)(n.getLastName()),a=(0,s.clean)(n.getPhoneNumber());return r&&i?`${r}${t}${i}`:r||(i||(a||null))}))}},function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(409));function i(e){return new r.default(e)}!function(e){e.HttpsProxyAgent=r.default,e.prototype=r.default.prototype}(i||(i={})),e.exports=i},function(e,t,n){e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){var n=t[s][1][e];return i(n||e)}),c,c.exports,e,t,n,r)}return n[s].exports}for(var o=!1,s=0;s=43)}})).catch((function(){return!1}))}(e).then((function(e){return d=e}))}function E(e){var t=f[e.name],n={};n.promise=new s((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function p(e){var t=f[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function g(e,t){var n=f[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function R(e,t){return new s((function(n,r){if(f[e.name]=f[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);E(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var s=i.open.apply(i,o);t&&(s.onupgradeneeded=function(t){var n=s.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),s.onerror=function(e){e.preventDefault(),r(s.error)},s.onsuccess=function(){n(s.result),p(e)}}))}function A(e){return R(e,!1)}function T(e){return R(e,!0)}function m(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function N(e){return o([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),T(e)})).then((function(){return function(e){E(e);for(var t=f[e.name],n=t.forages,r=0;r>4,l[u++]=(15&r)<<4|i>>2,l[u++]=(3&i)<<6|63&o;return c}function M(e){var t,n=new Uint8Array(e),r="";for(t=0;t>2],r+=S[(3&n[t])<<4|n[t+1]>>4],r+=S[(15&n[t+1])<<2|n[t+2]>>6],r+=S[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var B={serialize:function(e,t){var n="";if(e&&(n=D.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===D.call(e.buffer))){var r,i="__lfsc__:";e instanceof ArrayBuffer?(r=e,i+="arbf"):(r=e.buffer,"[object Int8Array]"===n?i+="si08":"[object Uint8Array]"===n?i+="ui08":"[object Uint8ClampedArray]"===n?i+="uic8":"[object Int16Array]"===n?i+="si16":"[object Uint16Array]"===n?i+="ur16":"[object Int32Array]"===n?i+="si32":"[object Uint32Array]"===n?i+="ui32":"[object Float32Array]"===n?i+="fl32":"[object Float64Array]"===n?i+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(i+M(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+M(this.result);t("__lfsc__:blob"+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,w))return JSON.parse(e);var t,n=e.substring(C),r=e.substring(w,C);if("blob"===r&&y.test(n)){var i=n.match(y);t=i[1],n=n.substring(i[0].length)}var s=L(n);switch(r){case"arbf":return s;case"blob":return o([s],{type:t});case"si08":return new Int8Array(s);case"ui08":return new Uint8Array(s);case"uic8":return new Uint8ClampedArray(s);case"si16":return new Int16Array(s);case"ur16":return new Uint16Array(s);case"si32":return new Int32Array(s);case"ui32":return new Uint32Array(s);case"fl32":return new Float32Array(s);case"fl64":return new Float64Array(s);default:throw new Error("Unkown type: "+r)}},stringToBuffer:L,bufferToString:M};function U(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function P(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,a){a.rows.length?o(e,s):U(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,s)}),o)}function F(e,t,n,r){var i=this;e=c(e);var o=new s((function(o,s){i.ready().then((function(){void 0===t&&(t=null);var a=t,u=i._dbInfo;u.serializer.serialize(t,(function(t,c){c?s(c):u.db.transaction((function(n){P(n,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(a)}),(function(e,t){s(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(F.apply(i,[e,a,n,r-1]));s(t)}}))}))})).catch(s)}));return a(o,n),o}function G(e){return new s((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],o=0;o0}var Q={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=j(e,this._defaultConfig),k()?(this._dbInfo=t,t.serializer=B,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,s=1,a=0;a=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return a(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return a(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return a(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):s.reject("Invalid arguments"),t),r}},H=function(e,t){for(var n,r,i=e.length,o=0;othis.limit&&this.shift(),this)},r.prototype.shift=function(){var e=this.oldest;if(e)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),e[t]=e[n]=void 0,this._keymap.delete(e.key),--this.size,[e.key,e.value]},r.prototype.find=function(e){let t=this._keymap.get(e);return t?t.value:void 0},r.prototype.has=function(e){return this._keymap.has(e)},r.prototype.delete=function(e){var r=this._keymap.get(e);if(r)return this._keymap.delete(r.key),r[t]&&r[n]?(r[n][t]=r[t],r[t][n]=r[n]):r[t]?(r[t][n]=void 0,this.oldest=r[t]):r[n]?(r[n][t]=void 0,this.newest=r[n]):this.oldest=this.newest=void 0,this.size--,r.value},r.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}},s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.key}):{done:!0,value:void 0}},a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.value}):{done:!0,value:void 0}},r.prototype.keys=function(){return new s(this.oldest)},r.prototype.values=function(){return new a(this.oldest)},r.prototype.entries=function(){return this},r.prototype[Symbol.iterator]=function(){return new o(this.oldest)},r.prototype.forEach=function(e,n){"object"!=typeof n&&(n=this);let r=this.oldest;for(;r;)e.call(n,r.value,r.key,this),r=r[t]},r.prototype.toJSON=function(){for(var e=new Array(this.size),n=0,r=this.oldest;r;)e[n++]={key:r.key,value:r.value},r=r[t];return e},r.prototype.toString=function(){for(var e="",n=this.oldest;n;)e+=String(n.key)+":"+n.value,(n=n[t])&&(e+=" < ");return e}}(a),void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(213),i=n(4),o=n(8),s=n(2);function a(){Object(r.a)({callback:u,type:"error"}),Object(r.a)({callback:u,type:"unhandledrejection"})}function u(){var e=Object(s.b)();e&&(i.b.log("[Tracing] Transaction: "+o.a.InternalError+" -> Global error occured"),e.setStatus(o.a.InternalError))}},function(e,t,n){"use strict"; -/*! - * cookie - * Copyright(c) 2012-2014 Roman Shtylman - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},s=e.split(o),u=i.decode||r,c=0;c2?t[2]:void 0;if(i){var o=r,s=String(i);r=s,p("history",{from:o,to:s})}return e.apply(this,t)}}d.onpopstate=function(){for(var t=[],n=0;n2)){var d=2===l?n.escapeId(t[c]):n.escape(t[c],r,i);u+=e.slice(s,o.index)+d,s=a.lastIndex,c++}}return 0===s?e:s0)for(var n=0,i=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r>>=0)&&e<256)&&(r=s[e])?r:(n=c(e,(0|e)<0?-1:0,!0),i&&(s[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(r=o[e])?r:(n=c(e,e<0?-1:0,!1),i&&(o[e]=n),n)}function u(e,t){if(isNaN(e))return t?R:g;if(t){if(e<0)return R;if(e>=h)return I}else{if(e<=-E)return O;if(e+1>=E)return N}return e<0?u(-e,t).neg():c(e%_|0,e/_|0,t)}function c(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=u,r.fromBits=c;var l=Math.pow;function d(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return g;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return d(e.substring(1),t,n).neg();for(var i=u(l(n,8)),o=g,s=0;s>>0:this.low},v.toNumber=function(){return this.unsigned?(this.high>>>0)*_+(this.low>>>0):this.high*_+(this.low>>>0)},v.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=a).isZero())return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}},v.getHighBits=function(){return this.high},v.getHighBitsUnsigned=function(){return this.high>>>0},v.getLowBits=function(){return this.low},v.getLowBitsUnsigned=function(){return this.low>>>0},v.getNumBitsAbs=function(){if(this.isNegative())return this.eq(O)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},v.isOdd=function(){return 1==(1&this.low)},v.isEven=function(){return 0==(1&this.low)},v.equals=function(e){return i(e)||(e=f(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},v.eq=v.equals,v.notEquals=function(e){return!this.eq(e)},v.neq=v.notEquals,v.ne=v.notEquals,v.lessThan=function(e){return this.comp(e)<0},v.lt=v.lessThan,v.lessThanOrEqual=function(e){return this.comp(e)<=0},v.lte=v.lessThanOrEqual,v.le=v.lessThanOrEqual,v.greaterThan=function(e){return this.comp(e)>0},v.gt=v.greaterThan,v.greaterThanOrEqual=function(e){return this.comp(e)>=0},v.gte=v.greaterThanOrEqual,v.ge=v.greaterThanOrEqual,v.compare=function(e){if(i(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},v.comp=v.compare,v.negate=function(){return!this.unsigned&&this.eq(O)?O:this.not().add(A)},v.neg=v.negate,v.add=function(e){i(e)||(e=f(e));var t=this.high>>>16,n=65535&this.high,r=this.low>>>16,o=65535&this.low,s=e.high>>>16,a=65535&e.high,u=e.low>>>16,l=0,d=0,_=0,h=0;return _+=(h+=o+(65535&e.low))>>>16,d+=(_+=r+u)>>>16,l+=(d+=n+a)>>>16,l+=t+s,c((_&=65535)<<16|(h&=65535),(l&=65535)<<16|(d&=65535),this.unsigned)},v.subtract=function(e){return i(e)||(e=f(e)),this.add(e.neg())},v.sub=v.subtract,v.multiply=function(e){if(this.isZero())return g;if(i(e)||(e=f(e)),n)return c(n.mul(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned);if(e.isZero())return g;if(this.eq(O))return e.isOdd()?O:g;if(e.eq(O))return this.isOdd()?O:g;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(p)&&e.lt(p))return u(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,s=65535&this.low,a=e.high>>>16,l=65535&e.high,d=e.low>>>16,_=65535&e.low,h=0,E=0,R=0,A=0;return R+=(A+=s*_)>>>16,E+=(R+=o*_)>>>16,R&=65535,E+=(R+=s*d)>>>16,h+=(E+=r*_)>>>16,E&=65535,h+=(E+=o*d)>>>16,E&=65535,h+=(E+=s*l)>>>16,h+=t*_+r*d+o*l+s*a,c((R&=65535)<<16|(A&=65535),(h&=65535)<<16|(E&=65535),this.unsigned)},v.mul=v.multiply,v.divide=function(e){if(i(e)||(e=f(e)),e.isZero())throw Error("division by zero");var t,r,o;if(n)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?n.div_u:n.div_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?R:g;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return R;if(e.gt(this.shru(1)))return T;o=R}else{if(this.eq(O))return e.eq(A)||e.eq(m)?O:e.eq(O)?A:(t=this.shr(1).div(e).shl(1)).eq(g)?e.isNegative()?A:m:(r=this.sub(e.mul(t)),o=t.add(r.div(e)));if(e.eq(O))return this.unsigned?R:g;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=g}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(t)/Math.LN2),a=s<=48?1:l(2,s-48),d=u(t),_=d.mul(e);_.isNegative()||_.gt(r);)_=(d=u(t-=a,this.unsigned)).mul(e);d.isZero()&&(d=A),o=o.add(d),r=r.sub(_)}return o},v.div=v.divide,v.modulo=function(e){return i(e)||(e=f(e)),n?c((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},v.mod=v.modulo,v.rem=v.modulo,v.not=function(){return c(~this.low,~this.high,this.unsigned)},v.and=function(e){return i(e)||(e=f(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},v.or=function(e){return i(e)||(e=f(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},v.xor=function(e){return i(e)||(e=f(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},v.shiftLeft=function(e){return i(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<>>32-e,this.unsigned):c(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},v.shr=v.shiftRight,v.shiftRightUnsigned=function(e){if(i(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?c(this.low>>>e|t<<32-e,t>>>e,this.unsigned):c(32===e?t:t>>>e-32,0,this.unsigned)},v.shru=v.shiftRightUnsigned,v.shr_u=v.shiftRightUnsigned,v.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},v.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},v.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},v.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},v.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},function(e,t,n){"use strict";var r,i=n(33).Buffer,o=n(220),s=e.exports;s.encodings=null,s.defaultCharUnicode="�",s.defaultCharSingleByte="?",s.encode=function(e,t,n){e=""+(e||"");var r=s.getEncoder(t,n),o=r.write(e),a=r.end();return a&&a.length>0?i.concat([o,a]):o},s.decode=function(e,t,n){"string"==typeof e&&(s.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),s.skipDecodeWarning=!0),e=i.from(""+(e||""),"binary"));var r=s.getDecoder(t,n),o=r.write(e),a=r.end();return a?o+a:o},s.encodingExists=function(e){try{return s.getCodec(e),!0}catch(e){return!1}},s.toEncoding=s.encode,s.fromEncoding=s.decode,s._codecDataCache={},s.getCodec=function(e){s.encodings||(s.encodings=n(221));for(var t=s._canonicalizeEncoding(e),r={};;){var i=s._codecDataCache[t];if(i)return i;var o=s.encodings[t];switch(typeof o){case"string":t=o;break;case"object":for(var a in o)r[a]=o[a];r.encodingName||(r.encodingName=t),t=o.type;break;case"function":return r.encodingName||(r.encodingName=t),i=new o(r,s),s._codecDataCache[r.encodingName]=i,i;default:throw new Error("Encoding not recognized: '"+e+"' (searched as: '"+t+"')")}}},s._canonicalizeEncoding=function(e){return(""+e).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},s.getEncoder=function(e,t){var n=s.getCodec(e),r=new n.encoder(t,n);return n.bomAware&&t&&t.addBOM&&(r=new o.PrependBOM(r,t)),r},s.getDecoder=function(e,t){var n=s.getCodec(e),r=new n.decoder(t,n);return!n.bomAware||t&&!1===t.stripBOM||(r=new o.StripBOM(r,t)),r},s.enableStreamingAPI=function(e){if(!s.supportsStreams){var t=n(236)(e);s.IconvLiteEncoderStream=t.IconvLiteEncoderStream,s.IconvLiteDecoderStream=t.IconvLiteDecoderStream,s.encodeStream=function(e,t){return new s.IconvLiteEncoderStream(s.getEncoder(e,t),t)},s.decodeStream=function(e,t){return new s.IconvLiteDecoderStream(s.getDecoder(e,t),t)},s.supportsStreams=!0}};try{r=n(32)}catch(e){}r&&r.Transform?s.enableStreamingAPI(r):s.encodeStream=s.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},function(e,t,n){"use strict";function r(e,t){this.encoder=e,this.addBOM=!0}function i(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}t.PrependBOM=r,r.prototype.write=function(e){return this.addBOM&&(e="\ufeff"+e,this.addBOM=!1),this.encoder.write(e)},r.prototype.end=function(){return this.encoder.end()},t.StripBOM=i,i.prototype.write=function(e){var t=this.decoder.write(e);return this.pass||!t||("\ufeff"===t[0]&&(t=t.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),t},i.prototype.end=function(){return this.decoder.end()}},function(e,t,n){"use strict";for(var r=[n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230)],i=0;i>>6),t[n++]=128+(63&o)):(t[n++]=224+(o>>>12),t[n++]=128+(o>>>6&63),t[n++]=128+(63&o))}return t.slice(0,n)},c.prototype.end=function(){},l.prototype.write=function(e){for(var t=this.acc,n=this.contBytes,r=this.accBytes,i="",o=0;o0&&(i+=this.defaultCharUnicode,n=0),s<128?i+=String.fromCharCode(s):s<224?(t=31&s,n=1,r=1):s<240?(t=15&s,n=2,r=1):i+=this.defaultCharUnicode):n>0?(t=t<<6|63&s,r++,0===--n&&(i+=2===r&&t<128&&t>0||3===r&&t<2048?this.defaultCharUnicode:String.fromCharCode(t))):i+=this.defaultCharUnicode}return this.acc=t,this.contBytes=n,this.accBytes=r,i},l.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}},function(e,t,n){"use strict";var r=n(33).Buffer;function i(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}function o(e,t){this.isLE=t.isLE,this.highSurrogate=0}function s(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}function a(e,t,n,r){if((n<0||n>1114111)&&(n=r),n>=65536){var i=55296|(n-=65536)>>10;e[t++]=255&i,e[t++]=i>>8;n=56320|1023&n}return e[t++]=255&n,e[t++]=n>>8,t}function u(e,t){this.iconv=t}function c(e,t){void 0===(e=e||{}).addBOM&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}function l(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}function d(e,t){var n=[],r=0,i=0,o=0,s=0,a=0;e:for(var u=0;u16)&&o++,(0!==n[3]||n[2]>16)&&i++,0!==n[0]||0!==n[1]||0===n[2]&&0===n[3]||a++,0===n[0]&&0===n[1]||0!==n[2]||0!==n[3]||s++,n.length=0,++r>=100)break e}return a-o>s-i?"utf-32be":a-o0){for(;t=100)break e}return o>i?"utf-16be":o0&&(e=this.iconv.decode(r.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e},t.utf7imap=h,h.prototype.encoder=E,h.prototype.decoder=p,h.prototype.bomAware=!0,E.prototype.write=function(e){for(var t=this.inBase64,n=this.base64Accum,i=this.base64AccumIdx,o=r.alloc(5*e.length+10),s=0,a=0;a0&&(s+=o.write(n.slice(0,i).toString("base64").replace(/\//g,",").replace(/=+$/,""),s),i=0),o[s++]=f,t=!1),t||(o[s++]=u,u===_&&(o[s++]=f))):(t||(o[s++]=_,t=!0),t&&(n[i++]=u>>8,n[i++]=255&u,i==n.length&&(s+=o.write(n.toString("base64").replace(/\//g,","),s),i=0)))}return this.inBase64=t,this.base64AccumIdx=i,o.slice(0,s)},E.prototype.end=function(){var e=r.alloc(10),t=0;return this.inBase64&&(this.base64AccumIdx>0&&(t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t),this.base64AccumIdx=0),e[t++]=f,this.inBase64=!1),e.slice(0,t)};var g=c.slice();g[",".charCodeAt(0)]=!0,p.prototype.write=function(e){for(var t="",n=0,i=this.inBase64,o=this.base64Accum,s=0;s0&&(e=this.iconv.decode(r.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}},function(e,t,n){"use strict";var r=n(33).Buffer;function i(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||128!==e.chars.length&&256!==e.chars.length)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===e.chars.length){for(var n="",i=0;i<128;i++)n+=String.fromCharCode(i);e.chars=n+e.chars}this.decodeBuf=r.from(e.chars,"ucs2");var o=r.alloc(65536,t.defaultCharSingleByte.charCodeAt(0));for(i=0;i?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},macgreek:{type:"_sbcs",chars:"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macroman:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macromania:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macthai:{type:"_sbcs",chars:"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\ufeff​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"},macturkish:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:"\0ÚỤỪỬỮ\b\t\n\v\f\rỨỰỲỶỸÝỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:"\0ẲẴẪ\b\t\n\v\f\rỶỸỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"},iso646cn:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},iso646jp:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}},function(e,t,n){"use strict";var r=n(33).Buffer;t._dbcs=s;for(var i=new Array(256),o=0;o<256;o++)i[o]=-1;function s(e,t){if(this.encodingName=e.encodingName,!e)throw new Error("DBCS codec is called without the data.");if(!e.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var n=e.table();this.decodeTables=[],this.decodeTables[0]=i.slice(0),this.decodeTableSeq=[];for(var r=0;r-1e3)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[-1e3-u[c]],d=129;d<=254;d++){if(-1===l[d])l[d]=-1e3-s;else{if(l[d]===-1e3-s)continue;if(l[d]>-1e3)throw new Error("gb18030 decode tables conflict at byte 3")}for(var f=this.decodeTables[-1e3-l[d]],_=48;_<=57;_++)-1===f[_]&&(f[_]=-2)}}}this.defaultCharUnicode=t.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(e.encodeSkipVals)for(r=0;rt)return-1;for(var n=0,r=e.length;n>1);e[i]<=t?n=i:r=i}return n}s.prototype.encoder=a,s.prototype.decoder=u,s.prototype._getDecodeTrieNode=function(e){for(var t=[];e>0;e>>>=8)t.push(255&e);0==t.length&&t.push(0);for(var n=this.decodeTables[0],r=t.length-1;r>0;r--){var o=n[t[r]];if(-1==o)n[t[r]]=-1e3-this.decodeTables.length,this.decodeTables.push(n=i.slice(0));else{if(!(o<=-1e3))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+e.toString(16));n=this.decodeTables[-1e3-o]}}return n},s.prototype._addDecodeChunk=function(e){var t=parseInt(e[0],16),n=this._getDecodeTrieNode(t);t&=255;for(var r=1;r255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+e[0]+": too long"+t)},s.prototype._getEncodeBucket=function(e){var t=e>>8;return void 0===this.encodeTable[t]&&(this.encodeTable[t]=i.slice(0)),this.encodeTable[t]},s.prototype._setEncodeChar=function(e,t){var n=this._getEncodeBucket(e),r=255&e;n[r]<=-10?this.encodeTableSeq[-10-n[r]][-1]=t:-1==n[r]&&(n[r]=t)},s.prototype._setEncodeSequence=function(e,t){var n,r=e[0],i=this._getEncodeBucket(r),o=255&r;i[o]<=-10?n=this.encodeTableSeq[-10-i[o]]:(n={},-1!==i[o]&&(n[-1]=i[o]),i[o]=-10-this.encodeTableSeq.length,this.encodeTableSeq.push(n));for(var s=1;s=0)this._setEncodeChar(a,u),i=!0;else if(a<=-1e3){var c=-1e3-a;if(!o[c]){var l=u<<8>>>0;this._fillEncodeTable(c,l,n)?i=!0:o[c]=!0}}else a<=-10&&(this._setEncodeSequence(this.decodeTableSeq[-10-a],u),i=!0)}return i},a.prototype.write=function(e){for(var t=r.alloc(e.length*(this.gb18030?4:3)),n=this.leadSurrogate,i=this.seqObj,o=-1,s=0,a=0;;){if(-1===o){if(s==e.length)break;var u=e.charCodeAt(s++)}else{u=o;o=-1}if(55296<=u&&u<57344)if(u<56320){if(-1===n){n=u;continue}n=u,u=-1}else-1!==n?(u=65536+1024*(n-55296)+(u-56320),n=-1):u=-1;else-1!==n&&(o=u,u=-1,n=-1);var l=-1;if(void 0!==i&&-1!=u){var d=i[u];if("object"==typeof d){i=d;continue}"number"==typeof d?l=d:null==d&&void 0!==(d=i[-1])&&(l=d,o=u),i=void 0}else if(u>=0){var f=this.encodeTable[u>>8];if(void 0!==f&&(l=f[255&u]),l<=-10){i=this.encodeTableSeq[-10-l];continue}if(-1==l&&this.gb18030){var _=c(this.gb18030.uChars,u);if(-1!=_){l=this.gb18030.gbChars[_]+(u-this.gb18030.uChars[_]);t[a++]=129+Math.floor(l/12600),l%=12600,t[a++]=48+Math.floor(l/1260),l%=1260,t[a++]=129+Math.floor(l/10),l%=10,t[a++]=48+l;continue}}}-1===l&&(l=this.defaultCharSingleByte),l<256?t[a++]=l:l<65536?(t[a++]=l>>8,t[a++]=255&l):l<16777216?(t[a++]=l>>16,t[a++]=l>>8&255,t[a++]=255&l):(t[a++]=l>>>24,t[a++]=l>>>16&255,t[a++]=l>>>8&255,t[a++]=255&l)}return this.seqObj=i,this.leadSurrogate=n,t.slice(0,a)},a.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var e=r.alloc(10),t=0;if(this.seqObj){var n=this.seqObj[-1];void 0!==n&&(n<256?e[t++]=n:(e[t++]=n>>8,e[t++]=255&n)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(e[t++]=this.defaultCharSingleByte,this.leadSurrogate=-1),e.slice(0,t)}},a.prototype.findIdx=c,u.prototype.write=function(e){for(var t=r.alloc(2*e.length),n=this.nodeIdx,i=this.prevBytes,o=this.prevBytes.length,s=-this.prevBytes.length,a=0,u=0;a=0?e[a]:i[a+o];if((l=this.decodeTables[n][d])>=0);else if(-1===l)l=this.defaultCharUnicode.charCodeAt(0),a=s;else if(-2===l){if(a>=3)var f=12600*(e[a-3]-129)+1260*(e[a-2]-48)+10*(e[a-1]-129)+(d-48);else f=12600*(i[a-3+o]-129)+1260*((a-2>=0?e[a-2]:i[a-2+o])-48)+10*((a-1>=0?e[a-1]:i[a-1+o])-129)+(d-48);var _=c(this.gb18030.gbChars,f);l=this.gb18030.uChars[_]+f-this.gb18030.gbChars[_]}else{if(l<=-1e3){n=-1e3-l;continue}if(!(l<=-10))throw new Error("iconv-lite internal error: invalid decoding table value "+l+" at "+n+"/"+d);for(var h=this.decodeTableSeq[-10-l],E=0;E>8;l=h[h.length-1]}if(l>=65536){var p=55296|(l-=65536)>>10;t[u++]=255&p,t[u++]=p>>8,l=56320|1023&l}t[u++]=255&l,t[u++]=l>>8,n=0,s=a+1}return this.nodeIdx=n,this.prevBytes=s>=0?Array.prototype.slice.call(e,s):i.slice(s+o).concat(Array.prototype.slice.call(e)),t.slice(0,u).toString("ucs2")},u.prototype.end=function(){for(var e="";this.prevBytes.length>0;){e+=this.defaultCharUnicode;var t=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,t.length>0&&(e+=this.write(t))}return this.prevBytes=[],this.nodeIdx=0,e}},function(e,t,n){"use strict";e.exports={shiftjis:{type:"_dbcs",table:function(){return n(231)},encodeAdd:{"¥":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return n(232)},encodeAdd:{"¥":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return n(84)}},gbk:{type:"_dbcs",table:function(){return n(84).concat(n(126))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return n(84).concat(n(126))},gb18030:function(){return n(233)},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return n(234)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return n(127)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return n(127).concat(n(235))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},function(e){e.exports=JSON.parse('[["0","\\u0000",128],["a1","。",62],["8140"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×"],["8180","÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"],["81b8","∈∋⊆⊇⊂⊃∪∩"],["81c8","∧∨¬⇒⇔∀∃"],["81da","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["81f0","ʼn♯♭♪†‡¶"],["81fc","◯"],["824f","0",9],["8260","A",25],["8281","a",25],["829f","ぁ",82],["8340","ァ",62],["8380","ム",22],["839f","Α",16,"Σ",6],["83bf","α",16,"σ",6],["8440","А",5,"ЁЖ",25],["8470","а",5,"ёж",7],["8480","о",17],["849f","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["8740","①",19,"Ⅰ",9],["875f","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["877e","㍻"],["8780","〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["889f","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["8940","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"],["8980","園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["8a40","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"],["8a80","橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["8b40","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"],["8b80","朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["8c40","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"],["8c80","劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["8d40","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"],["8d80","項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["8e40","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"],["8e80","死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["8f40","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"],["8f80","準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["9040","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"],["9080","逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["9140","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"],["9180","操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["9240","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"],["9280","逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["9340","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"],["9380","凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["9440","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"],["9480","楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["9540","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"],["9580","斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["9640","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"],["9680","摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["9740","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"],["9780","沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["9840","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["989f","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["9940","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"],["9980","凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["9a40","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"],["9a80","噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["9b40","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"],["9b80","它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["9c40","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"],["9c80","怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["9d40","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"],["9d80","捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["9e40","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"],["9e80","梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["9f40","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"],["9f80","麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["e040","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"],["e080","烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e140","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"],["e180","痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e240","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"],["e280","窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e340","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"],["e380","縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e440","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"],["e480","艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e540","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"],["e580","蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["e640","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"],["e680","諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["e740","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"],["e780","轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["e840","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"],["e880","閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["e940","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"],["e980","騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["ea40","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"],["ea80","黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"],["ed40","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"],["ed80","塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["ee40","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"],["ee80","蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["eeef","ⅰ",9,"¬¦'""],["f040","",62],["f080","",124],["f140","",62],["f180","",124],["f240","",62],["f280","",124],["f340","",62],["f380","",124],["f440","",62],["f480","",124],["f540","",62],["f580","",124],["f640","",62],["f680","",124],["f740","",62],["f780","",124],["f840","",62],["f880","",124],["f940",""],["fa40","ⅰ",9,"Ⅰ",9,"¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"],["fa80","兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"],["fb40","涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"],["fb80","祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"],["fc40","髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"]]')},function(e){e.exports=JSON.parse('[["0","\\u0000",127],["8ea1","。",62],["a1a1"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"],["a2a1","◆□■△▲▽▼※〒→←↑↓〓"],["a2ba","∈∋⊆⊇⊂⊃∪∩"],["a2ca","∧∨¬⇒⇔∀∃"],["a2dc","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["a2f2","ʼn♯♭♪†‡¶"],["a2fe","◯"],["a3b0","0",9],["a3c1","A",25],["a3e1","a",25],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a8a1","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["ada1","①",19,"Ⅰ",9],["adc0","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["addf","㍻〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["b0a1","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["b1a1","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"],["b2a1","押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["b3a1","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"],["b4a1","粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["b5a1","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"],["b6a1","供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["b7a1","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"],["b8a1","検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["b9a1","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"],["baa1","此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["bba1","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"],["bca1","次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["bda1","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"],["bea1","勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["bfa1","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"],["c0a1","澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["c1a1","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"],["c2a1","臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["c3a1","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"],["c4a1","帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["c5a1","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"],["c6a1","董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["c7a1","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"],["c8a1","函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["c9a1","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"],["caa1","福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["cba1","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"],["cca1","漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["cda1","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"],["cea1","痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["cfa1","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["d0a1","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["d1a1","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"],["d2a1","辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["d3a1","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"],["d4a1","圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["d5a1","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"],["d6a1","屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["d7a1","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"],["d8a1","悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["d9a1","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"],["daa1","據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["dba1","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"],["dca1","棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["dda1","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"],["dea1","沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["dfa1","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"],["e0a1","燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e1a1","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"],["e2a1","癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e3a1","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"],["e4a1","筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e5a1","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"],["e6a1","罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e7a1","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"],["e8a1","茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e9a1","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"],["eaa1","蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["eba1","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"],["eca1","譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["eda1","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"],["eea1","遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["efa1","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"],["f0a1","陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["f1a1","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"],["f2a1","髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["f3a1","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"],["f4a1","堯槇遙瑤凜熙"],["f9a1","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"],["faa1","忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["fba1","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"],["fca1","釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["fcf1","ⅰ",9,"¬¦'""],["8fa2af","˘ˇ¸˙˝¯˛˚~΄΅"],["8fa2c2","¡¦¿"],["8fa2eb","ºª©®™¤№"],["8fa6e1","ΆΈΉΊΪ"],["8fa6e7","Ό"],["8fa6e9","ΎΫ"],["8fa6ec","Ώ"],["8fa6f1","άέήίϊΐόςύϋΰώ"],["8fa7c2","Ђ",10,"ЎЏ"],["8fa7f2","ђ",10,"ўџ"],["8fa9a1","ÆĐ"],["8fa9a4","Ħ"],["8fa9a6","IJ"],["8fa9a8","ŁĿ"],["8fa9ab","ŊØŒ"],["8fa9af","ŦÞ"],["8fa9c1","æđðħıijĸłŀʼnŋøœßŧþ"],["8faaa1","ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"],["8faaba","ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"],["8faba1","áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"],["8fabbd","ġĥíìïîǐ"],["8fabc5","īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"],["8fb0a1","丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"],["8fb1a1","侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"],["8fb2a1","傒傓傔傖傛傜傞",4,"傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"],["8fb3a1","凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"],["8fb4a1","匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"],["8fb5a1","咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"],["8fb6a1","嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍",5,"嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤",4,"囱囫园"],["8fb7a1","囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭",4,"坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"],["8fb8a1","堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"],["8fb9a1","奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"],["8fbaa1","嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖",4,"寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"],["8fbba1","屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"],["8fbca1","巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪",4,"幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"],["8fbda1","彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐",4,"忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"],["8fbea1","悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐",4,"愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"],["8fbfa1","懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"],["8fc0a1","捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"],["8fc1a1","擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"],["8fc2a1","昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"],["8fc3a1","杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮",4,"桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"],["8fc4a1","棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"],["8fc5a1","樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"],["8fc6a1","歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"],["8fc7a1","泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"],["8fc8a1","湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"],["8fc9a1","濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔",4,"炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃",4,"焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"],["8fcaa1","煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"],["8fcba1","狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"],["8fcca1","珿琀琁琄琇琊琑琚琛琤琦琨",9,"琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"],["8fcda1","甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹",5,"疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"],["8fcea1","瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢",6,"皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"],["8fcfa1","睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"],["8fd0a1","碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"],["8fd1a1","秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"],["8fd2a1","笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙",5],["8fd3a1","籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"],["8fd4a1","綞綦綧綪綳綶綷綹緂",4,"緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"],["8fd5a1","罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"],["8fd6a1","胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"],["8fd7a1","艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"],["8fd8a1","荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"],["8fd9a1","蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏",4,"蕖蕙蕜",6,"蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"],["8fdaa1","藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠",4,"虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"],["8fdba1","蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃",6,"螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"],["8fdca1","蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊",4,"裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"],["8fdda1","襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔",4,"觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"],["8fdea1","誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂",4,"譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"],["8fdfa1","貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"],["8fe0a1","踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"],["8fe1a1","轃轇轏轑",4,"轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"],["8fe2a1","郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"],["8fe3a1","釂釃釅釓釔釗釙釚釞釤釥釩釪釬",5,"釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵",4,"鉻鉼鉽鉿銈銉銊銍銎銒銗"],["8fe4a1","銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿",4,"鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"],["8fe5a1","鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉",4,"鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"],["8fe6a1","镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"],["8fe7a1","霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"],["8fe8a1","頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱",4,"餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"],["8fe9a1","馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿",4],["8feaa1","鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪",4,"魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"],["8feba1","鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦",4,"鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"],["8feca1","鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"],["8feda1","黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃",4,"齓齕齖齗齘齚齝齞齨齩齭",4,"齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"]]')},function(e){e.exports=JSON.parse('{"uChars":[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],"gbChars":[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189000]}')},function(e){e.exports=JSON.parse('[["0","\\u0000",127],["8141","갂갃갅갆갋",4,"갘갞갟갡갢갣갥",6,"갮갲갳갴"],["8161","갵갶갷갺갻갽갾갿걁",9,"걌걎",5,"걕"],["8181","걖걗걙걚걛걝",18,"걲걳걵걶걹걻",4,"겂겇겈겍겎겏겑겒겓겕",6,"겞겢",5,"겫겭겮겱",6,"겺겾겿곀곂곃곅곆곇곉곊곋곍",7,"곖곘",7,"곢곣곥곦곩곫곭곮곲곴곷",4,"곾곿괁괂괃괅괇",4,"괎괐괒괓"],["8241","괔괕괖괗괙괚괛괝괞괟괡",7,"괪괫괮",5],["8261","괶괷괹괺괻괽",6,"굆굈굊",5,"굑굒굓굕굖굗"],["8281","굙",7,"굢굤",7,"굮굯굱굲굷굸굹굺굾궀궃",4,"궊궋궍궎궏궑",10,"궞",5,"궥",17,"궸",7,"귂귃귅귆귇귉",6,"귒귔",7,"귝귞귟귡귢귣귥",18],["8341","귺귻귽귾긂",5,"긊긌긎",5,"긕",7],["8361","긝",18,"긲긳긵긶긹긻긼"],["8381","긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗",4,"깞깢깣깤깦깧깪깫깭깮깯깱",6,"깺깾",5,"꺆",5,"꺍",46,"꺿껁껂껃껅",6,"껎껒",5,"껚껛껝",8],["8441","껦껧껩껪껬껮",5,"껵껶껷껹껺껻껽",8],["8461","꼆꼉꼊꼋꼌꼎꼏꼑",18],["8481","꼤",7,"꼮꼯꼱꼳꼵",6,"꼾꽀꽄꽅꽆꽇꽊",5,"꽑",10,"꽞",5,"꽦",18,"꽺",5,"꾁꾂꾃꾅꾆꾇꾉",6,"꾒꾓꾔꾖",5,"꾝",26,"꾺꾻꾽꾾"],["8541","꾿꿁",5,"꿊꿌꿏",4,"꿕",6,"꿝",4],["8561","꿢",5,"꿪",5,"꿲꿳꿵꿶꿷꿹",6,"뀂뀃"],["8581","뀅",6,"뀍뀎뀏뀑뀒뀓뀕",6,"뀞",9,"뀩",26,"끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞",29,"끾끿낁낂낃낅",6,"낎낐낒",5,"낛낝낞낣낤"],["8641","낥낦낧낪낰낲낶낷낹낺낻낽",6,"냆냊",5,"냒"],["8661","냓냕냖냗냙",6,"냡냢냣냤냦",10],["8681","냱",22,"넊넍넎넏넑넔넕넖넗넚넞",4,"넦넧넩넪넫넭",6,"넶넺",5,"녂녃녅녆녇녉",6,"녒녓녖녗녙녚녛녝녞녟녡",22,"녺녻녽녾녿놁놃",4,"놊놌놎놏놐놑놕놖놗놙놚놛놝"],["8741","놞",9,"놩",15],["8761","놹",18,"뇍뇎뇏뇑뇒뇓뇕"],["8781","뇖",5,"뇞뇠",7,"뇪뇫뇭뇮뇯뇱",7,"뇺뇼뇾",5,"눆눇눉눊눍",6,"눖눘눚",5,"눡",18,"눵",6,"눽",26,"뉙뉚뉛뉝뉞뉟뉡",6,"뉪",4],["8841","뉯",4,"뉶",5,"뉽",6,"늆늇늈늊",4],["8861","늏늒늓늕늖늗늛",4,"늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"],["8881","늸",15,"닊닋닍닎닏닑닓",4,"닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉",6,"댒댖",5,"댝",54,"덗덙덚덝덠덡덢덣"],["8941","덦덨덪덬덭덯덲덳덵덶덷덹",6,"뎂뎆",5,"뎍"],["8961","뎎뎏뎑뎒뎓뎕",10,"뎢",5,"뎩뎪뎫뎭"],["8981","뎮",21,"돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩",18,"돽",18,"됑",6,"됙됚됛됝됞됟됡",6,"됪됬",7,"됵",15],["8a41","둅",10,"둒둓둕둖둗둙",6,"둢둤둦"],["8a61","둧",4,"둭",18,"뒁뒂"],["8a81","뒃",4,"뒉",19,"뒞",5,"뒥뒦뒧뒩뒪뒫뒭",7,"뒶뒸뒺",5,"듁듂듃듅듆듇듉",6,"듑듒듓듔듖",5,"듞듟듡듢듥듧",4,"듮듰듲",5,"듹",26,"딖딗딙딚딝"],["8b41","딞",5,"딦딫",4,"딲딳딵딶딷딹",6,"땂땆"],["8b61","땇땈땉땊땎땏땑땒땓땕",6,"땞땢",8],["8b81","땫",52,"떢떣떥떦떧떩떬떭떮떯떲떶",4,"떾떿뗁뗂뗃뗅",6,"뗎뗒",5,"뗙",18,"뗭",18],["8c41","똀",15,"똒똓똕똖똗똙",4],["8c61","똞",6,"똦",5,"똭",6,"똵",5],["8c81","똻",12,"뙉",26,"뙥뙦뙧뙩",50,"뚞뚟뚡뚢뚣뚥",5,"뚭뚮뚯뚰뚲",16],["8d41","뛃",16,"뛕",8],["8d61","뛞",17,"뛱뛲뛳뛵뛶뛷뛹뛺"],["8d81","뛻",4,"뜂뜃뜄뜆",33,"뜪뜫뜭뜮뜱",6,"뜺뜼",7,"띅띆띇띉띊띋띍",6,"띖",9,"띡띢띣띥띦띧띩",6,"띲띴띶",5,"띾띿랁랂랃랅",6,"랎랓랔랕랚랛랝랞"],["8e41","랟랡",6,"랪랮",5,"랶랷랹",8],["8e61","럂",4,"럈럊",19],["8e81","럞",13,"럮럯럱럲럳럵",6,"럾렂",4,"렊렋렍렎렏렑",6,"렚렜렞",5,"렦렧렩렪렫렭",6,"렶렺",5,"롁롂롃롅",11,"롒롔",7,"롞롟롡롢롣롥",6,"롮롰롲",5,"롹롺롻롽",7],["8f41","뢅",7,"뢎",17],["8f61","뢠",7,"뢩",6,"뢱뢲뢳뢵뢶뢷뢹",4],["8f81","뢾뢿룂룄룆",5,"룍룎룏룑룒룓룕",7,"룞룠룢",5,"룪룫룭룮룯룱",6,"룺룼룾",5,"뤅",18,"뤙",6,"뤡",26,"뤾뤿륁륂륃륅",6,"륍륎륐륒",5],["9041","륚륛륝륞륟륡",6,"륪륬륮",5,"륶륷륹륺륻륽"],["9061","륾",5,"릆릈릋릌릏",15],["9081","릟",12,"릮릯릱릲릳릵",6,"릾맀맂",5,"맊맋맍맓",4,"맚맜맟맠맢맦맧맩맪맫맭",6,"맶맻",4,"먂",5,"먉",11,"먖",33,"먺먻먽먾먿멁멃멄멅멆"],["9141","멇멊멌멏멐멑멒멖멗멙멚멛멝",6,"멦멪",5],["9161","멲멳멵멶멷멹",9,"몆몈몉몊몋몍",5],["9181","몓",20,"몪몭몮몯몱몳",4,"몺몼몾",5,"뫅뫆뫇뫉",14,"뫚",33,"뫽뫾뫿묁묂묃묅",7,"묎묐묒",5,"묙묚묛묝묞묟묡",6],["9241","묨묪묬",7,"묷묹묺묿",4,"뭆뭈뭊뭋뭌뭎뭑뭒"],["9261","뭓뭕뭖뭗뭙",7,"뭢뭤",7,"뭭",4],["9281","뭲",21,"뮉뮊뮋뮍뮎뮏뮑",18,"뮥뮦뮧뮩뮪뮫뮭",6,"뮵뮶뮸",7,"믁믂믃믅믆믇믉",6,"믑믒믔",35,"믺믻믽믾밁"],["9341","밃",4,"밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"],["9361","밶밷밹",6,"뱂뱆뱇뱈뱊뱋뱎뱏뱑",8],["9381","뱚뱛뱜뱞",37,"벆벇벉벊벍벏",4,"벖벘벛",4,"벢벣벥벦벩",6,"벲벶",5,"벾벿볁볂볃볅",7,"볎볒볓볔볖볗볙볚볛볝",22,"볷볹볺볻볽"],["9441","볾",5,"봆봈봊",5,"봑봒봓봕",8],["9461","봞",5,"봥",6,"봭",12],["9481","봺",5,"뵁",6,"뵊뵋뵍뵎뵏뵑",6,"뵚",9,"뵥뵦뵧뵩",22,"붂붃붅붆붋",4,"붒붔붖붗붘붛붝",6,"붥",10,"붱",6,"붹",24],["9541","뷒뷓뷖뷗뷙뷚뷛뷝",11,"뷪",5,"뷱"],["9561","뷲뷳뷵뷶뷷뷹",6,"븁븂븄븆",5,"븎븏븑븒븓"],["9581","븕",6,"븞븠",35,"빆빇빉빊빋빍빏",4,"빖빘빜빝빞빟빢빣빥빦빧빩빫",4,"빲빶",4,"빾빿뺁뺂뺃뺅",6,"뺎뺒",5,"뺚",13,"뺩",14],["9641","뺸",23,"뻒뻓"],["9661","뻕뻖뻙",6,"뻡뻢뻦",5,"뻭",8],["9681","뻶",10,"뼂",5,"뼊",13,"뼚뼞",33,"뽂뽃뽅뽆뽇뽉",6,"뽒뽓뽔뽖",44],["9741","뾃",16,"뾕",8],["9761","뾞",17,"뾱",7],["9781","뾹",11,"뿆",5,"뿎뿏뿑뿒뿓뿕",6,"뿝뿞뿠뿢",89,"쀽쀾쀿"],["9841","쁀",16,"쁒",5,"쁙쁚쁛"],["9861","쁝쁞쁟쁡",6,"쁪",15],["9881","쁺",21,"삒삓삕삖삗삙",6,"삢삤삦",5,"삮삱삲삷",4,"삾샂샃샄샆샇샊샋샍샎샏샑",6,"샚샞",5,"샦샧샩샪샫샭",6,"샶샸샺",5,"섁섂섃섅섆섇섉",6,"섑섒섓섔섖",5,"섡섢섥섨섩섪섫섮"],["9941","섲섳섴섵섷섺섻섽섾섿셁",6,"셊셎",5,"셖셗"],["9961","셙셚셛셝",6,"셦셪",5,"셱셲셳셵셶셷셹셺셻"],["9981","셼",8,"솆",5,"솏솑솒솓솕솗",4,"솞솠솢솣솤솦솧솪솫솭솮솯솱",11,"솾",5,"쇅쇆쇇쇉쇊쇋쇍",6,"쇕쇖쇙",6,"쇡쇢쇣쇥쇦쇧쇩",6,"쇲쇴",7,"쇾쇿숁숂숃숅",6,"숎숐숒",5,"숚숛숝숞숡숢숣"],["9a41","숤숥숦숧숪숬숮숰숳숵",16],["9a61","쉆쉇쉉",6,"쉒쉓쉕쉖쉗쉙",6,"쉡쉢쉣쉤쉦"],["9a81","쉧",4,"쉮쉯쉱쉲쉳쉵",6,"쉾슀슂",5,"슊",5,"슑",6,"슙슚슜슞",5,"슦슧슩슪슫슮",5,"슶슸슺",33,"싞싟싡싢싥",5,"싮싰싲싳싴싵싷싺싽싾싿쌁",6,"쌊쌋쌎쌏"],["9b41","쌐쌑쌒쌖쌗쌙쌚쌛쌝",6,"쌦쌧쌪",8],["9b61","쌳",17,"썆",7],["9b81","썎",25,"썪썫썭썮썯썱썳",4,"썺썻썾",5,"쎅쎆쎇쎉쎊쎋쎍",50,"쏁",22,"쏚"],["9c41","쏛쏝쏞쏡쏣",4,"쏪쏫쏬쏮",5,"쏶쏷쏹",5],["9c61","쏿",8,"쐉",6,"쐑",9],["9c81","쐛",8,"쐥",6,"쐭쐮쐯쐱쐲쐳쐵",6,"쐾",9,"쑉",26,"쑦쑧쑩쑪쑫쑭",6,"쑶쑷쑸쑺",5,"쒁",18,"쒕",6,"쒝",12],["9d41","쒪",13,"쒹쒺쒻쒽",8],["9d61","쓆",25],["9d81","쓠",8,"쓪",5,"쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂",9,"씍씎씏씑씒씓씕",6,"씝",10,"씪씫씭씮씯씱",6,"씺씼씾",5,"앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩",6,"앲앶",5,"앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"],["9e41","얖얙얚얛얝얞얟얡",7,"얪",9,"얶"],["9e61","얷얺얿",4,"엋엍엏엒엓엕엖엗엙",6,"엢엤엦엧"],["9e81","엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑",6,"옚옝",6,"옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉",6,"왒왖",5,"왞왟왡",10,"왭왮왰왲",5,"왺왻왽왾왿욁",6,"욊욌욎",5,"욖욗욙욚욛욝",6,"욦"],["9f41","욨욪",5,"욲욳욵욶욷욻",4,"웂웄웆",5,"웎"],["9f61","웏웑웒웓웕",6,"웞웟웢",5,"웪웫웭웮웯웱웲"],["9f81","웳",4,"웺웻웼웾",5,"윆윇윉윊윋윍",6,"윖윘윚",5,"윢윣윥윦윧윩",6,"윲윴윶윸윹윺윻윾윿읁읂읃읅",4,"읋읎읐읙읚읛읝읞읟읡",6,"읩읪읬",7,"읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛",4,"잢잧",4,"잮잯잱잲잳잵잶잷"],["a041","잸잹잺잻잾쟂",5,"쟊쟋쟍쟏쟑",6,"쟙쟚쟛쟜"],["a061","쟞",5,"쟥쟦쟧쟩쟪쟫쟭",13],["a081","쟻",4,"젂젃젅젆젇젉젋",4,"젒젔젗",4,"젞젟젡젢젣젥",6,"젮젰젲",5,"젹젺젻젽젾젿졁",6,"졊졋졎",5,"졕",26,"졲졳졵졶졷졹졻",4,"좂좄좈좉좊좎",5,"좕",7,"좞좠좢좣좤"],["a141","좥좦좧좩",18,"좾좿죀죁"],["a161","죂죃죅죆죇죉죊죋죍",6,"죖죘죚",5,"죢죣죥"],["a181","죦",14,"죶",5,"죾죿줁줂줃줇",4,"줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈",9,"±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"],["a241","줐줒",5,"줙",18],["a261","줭",6,"줵",18],["a281","쥈",7,"쥒쥓쥕쥖쥗쥙",6,"쥢쥤",7,"쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"],["a341","쥱쥲쥳쥵",6,"쥽",10,"즊즋즍즎즏"],["a361","즑",6,"즚즜즞",16],["a381","즯",16,"짂짃짅짆짉짋",4,"짒짔짗짘짛!",58,"₩]",32," ̄"],["a441","짞짟짡짣짥짦짨짩짪짫짮짲",5,"짺짻짽짾짿쨁쨂쨃쨄"],["a461","쨅쨆쨇쨊쨎",5,"쨕쨖쨗쨙",12],["a481","쨦쨧쨨쨪",28,"ㄱ",93],["a541","쩇",4,"쩎쩏쩑쩒쩓쩕",6,"쩞쩢",5,"쩩쩪"],["a561","쩫",17,"쩾",5,"쪅쪆"],["a581","쪇",16,"쪙",14,"ⅰ",9],["a5b0","Ⅰ",9],["a5c1","Α",16,"Σ",6],["a5e1","α",16,"σ",6],["a641","쪨",19,"쪾쪿쫁쫂쫃쫅"],["a661","쫆",5,"쫎쫐쫒쫔쫕쫖쫗쫚",5,"쫡",6],["a681","쫨쫩쫪쫫쫭",6,"쫵",18,"쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃",7],["a741","쬋",4,"쬑쬒쬓쬕쬖쬗쬙",6,"쬢",7],["a761","쬪",22,"쭂쭃쭄"],["a781","쭅쭆쭇쭊쭋쭍쭎쭏쭑",6,"쭚쭛쭜쭞",5,"쭥",7,"㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙",9,"㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰",9,"㎀",4,"㎺",5,"㎐",4,"Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"],["a841","쭭",10,"쭺",14],["a861","쮉",18,"쮝",6],["a881","쮤",19,"쮹",11,"ÆÐªĦ"],["a8a6","IJ"],["a8a8","ĿŁØŒºÞŦŊ"],["a8b1","㉠",27,"ⓐ",25,"①",14,"½⅓⅔¼¾⅛⅜⅝⅞"],["a941","쯅",14,"쯕",10],["a961","쯠쯡쯢쯣쯥쯦쯨쯪",18],["a981","쯽",14,"찎찏찑찒찓찕",6,"찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀",27,"⒜",25,"⑴",14,"¹²³⁴ⁿ₁₂₃₄"],["aa41","찥찦찪찫찭찯찱",6,"찺찿",4,"챆챇챉챊챋챍챎"],["aa61","챏",4,"챖챚",5,"챡챢챣챥챧챩",6,"챱챲"],["aa81","챳챴챶",29,"ぁ",82],["ab41","첔첕첖첗첚첛첝첞첟첡",6,"첪첮",5,"첶첷첹"],["ab61","첺첻첽",6,"쳆쳈쳊",5,"쳑쳒쳓쳕",5],["ab81","쳛",8,"쳥",6,"쳭쳮쳯쳱",12,"ァ",85],["ac41","쳾쳿촀촂",5,"촊촋촍촎촏촑",6,"촚촜촞촟촠"],["ac61","촡촢촣촥촦촧촩촪촫촭",11,"촺",4],["ac81","촿",28,"쵝쵞쵟А",5,"ЁЖ",25],["acd1","а",5,"ёж",25],["ad41","쵡쵢쵣쵥",6,"쵮쵰쵲",5,"쵹",7],["ad61","춁",6,"춉",10,"춖춗춙춚춛춝춞춟"],["ad81","춠춡춢춣춦춨춪",5,"춱",18,"췅"],["ae41","췆",5,"췍췎췏췑",16],["ae61","췢",5,"췩췪췫췭췮췯췱",6,"췺췼췾",4],["ae81","츃츅츆츇츉츊츋츍",6,"츕츖츗츘츚",5,"츢츣츥츦츧츩츪츫"],["af41","츬츭츮츯츲츴츶",19],["af61","칊",13,"칚칛칝칞칢",5,"칪칬"],["af81","칮",5,"칶칷칹칺칻칽",6,"캆캈캊",5,"캒캓캕캖캗캙"],["b041","캚",5,"캢캦",5,"캮",12],["b061","캻",5,"컂",19],["b081","컖",13,"컦컧컩컪컭",6,"컶컺",5,"가각간갇갈갉갊감",7,"같",4,"갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"],["b141","켂켃켅켆켇켉",6,"켒켔켖",5,"켝켞켟켡켢켣"],["b161","켥",6,"켮켲",5,"켹",11],["b181","콅",14,"콖콗콙콚콛콝",6,"콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"],["b241","콭콮콯콲콳콵콶콷콹",6,"쾁쾂쾃쾄쾆",5,"쾍"],["b261","쾎",18,"쾢",5,"쾩"],["b281","쾪",5,"쾱",18,"쿅",6,"깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"],["b341","쿌",19,"쿢쿣쿥쿦쿧쿩"],["b361","쿪",5,"쿲쿴쿶",5,"쿽쿾쿿퀁퀂퀃퀅",5],["b381","퀋",5,"퀒",5,"퀙",19,"끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫",4,"낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"],["b441","퀮",5,"퀶퀷퀹퀺퀻퀽",6,"큆큈큊",5],["b461","큑큒큓큕큖큗큙",6,"큡",10,"큮큯"],["b481","큱큲큳큵",6,"큾큿킀킂",18,"뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫",4,"닳담답닷",4,"닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"],["b541","킕",14,"킦킧킩킪킫킭",5],["b561","킳킶킸킺",5,"탂탃탅탆탇탊",5,"탒탖",4],["b581","탛탞탟탡탢탣탥",6,"탮탲",5,"탹",11,"덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"],["b641","턅",7,"턎",17],["b661","턠",15,"턲턳턵턶턷턹턻턼턽턾"],["b681","턿텂텆",5,"텎텏텑텒텓텕",6,"텞텠텢",5,"텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"],["b741","텮",13,"텽",6,"톅톆톇톉톊"],["b761","톋",20,"톢톣톥톦톧"],["b781","톩",6,"톲톴톶톷톸톹톻톽톾톿퇁",14,"래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"],["b841","퇐",7,"퇙",17],["b861","퇫",8,"퇵퇶퇷퇹",13],["b881","툈툊",5,"툑",24,"륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많",4,"맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"],["b941","툪툫툮툯툱툲툳툵",6,"툾퉀퉂",5,"퉉퉊퉋퉌"],["b961","퉍",14,"퉝",6,"퉥퉦퉧퉨"],["b981","퉩",22,"튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바",4,"받",4,"밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"],["ba41","튍튎튏튒튓튔튖",5,"튝튞튟튡튢튣튥",6,"튭"],["ba61","튮튯튰튲",5,"튺튻튽튾틁틃",4,"틊틌",5],["ba81","틒틓틕틖틗틙틚틛틝",6,"틦",9,"틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"],["bb41","틻",4,"팂팄팆",5,"팏팑팒팓팕팗",4,"팞팢팣"],["bb61","팤팦팧팪팫팭팮팯팱",6,"팺팾",5,"퍆퍇퍈퍉"],["bb81","퍊",31,"빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"],["bc41","퍪",17,"퍾퍿펁펂펃펅펆펇"],["bc61","펈펉펊펋펎펒",5,"펚펛펝펞펟펡",6,"펪펬펮"],["bc81","펯",4,"펵펶펷펹펺펻펽",6,"폆폇폊",5,"폑",5,"샥샨샬샴샵샷샹섀섄섈섐섕서",4,"섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"],["bd41","폗폙",7,"폢폤",7,"폮폯폱폲폳폵폶폷"],["bd61","폸폹폺폻폾퐀퐂",5,"퐉",13],["bd81","퐗",5,"퐞",25,"숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"],["be41","퐸",7,"푁푂푃푅",14],["be61","푔",7,"푝푞푟푡푢푣푥",7,"푮푰푱푲"],["be81","푳",4,"푺푻푽푾풁풃",4,"풊풌풎",5,"풕",8,"쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄",6,"엌엎"],["bf41","풞",10,"풪",14],["bf61","풹",18,"퓍퓎퓏퓑퓒퓓퓕"],["bf81","퓖",5,"퓝퓞퓠",7,"퓩퓪퓫퓭퓮퓯퓱",6,"퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염",5,"옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"],["c041","퓾",5,"픅픆픇픉픊픋픍",6,"픖픘",5],["c061","픞",25],["c081","픸픹픺픻픾픿핁핂핃핅",6,"핎핐핒",5,"핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응",7,"읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"],["c141","핤핦핧핪핬핮",5,"핶핷핹핺핻핽",6,"햆햊햋"],["c161","햌햍햎햏햑",19,"햦햧"],["c181","햨",31,"점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"],["c241","헊헋헍헎헏헑헓",4,"헚헜헞",5,"헦헧헩헪헫헭헮"],["c261","헯",4,"헶헸헺",5,"혂혃혅혆혇혉",6,"혒"],["c281","혖",5,"혝혞혟혡혢혣혥",7,"혮",9,"혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"],["c341","혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝",4],["c361","홢",4,"홨홪",5,"홲홳홵",11],["c381","횁횂횄횆",5,"횎횏횑횒횓횕",7,"횞횠횢",5,"횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"],["c441","횫횭횮횯횱",7,"횺횼",7,"훆훇훉훊훋"],["c461","훍훎훏훐훒훓훕훖훘훚",5,"훡훢훣훥훦훧훩",4],["c481","훮훯훱훲훳훴훶",5,"훾훿휁휂휃휅",11,"휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"],["c541","휕휖휗휚휛휝휞휟휡",6,"휪휬휮",5,"휶휷휹"],["c561","휺휻휽",6,"흅흆흈흊",5,"흒흓흕흚",4],["c581","흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵",6,"흾흿힀힂",5,"힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"],["c641","힍힎힏힑",6,"힚힜힞",5],["c6a1","퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"],["c7a1","퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"],["c8a1","혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"],["caa1","伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"],["cba1","匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"],["cca1","瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"],["cda1","棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"],["cea1","科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"],["cfa1","區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"],["d0a1","鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"],["d1a1","朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩",5,"那樂",4,"諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"],["d2a1","納臘蠟衲囊娘廊",4,"乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧",5,"駑魯",10,"濃籠聾膿農惱牢磊腦賂雷尿壘",7,"嫩訥杻紐勒",5,"能菱陵尼泥匿溺多茶"],["d3a1","丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"],["d4a1","棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"],["d5a1","蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"],["d6a1","煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"],["d7a1","遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"],["d8a1","立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"],["d9a1","蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"],["daa1","汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"],["dba1","發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"],["dca1","碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"],["dda1","孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"],["dea1","脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"],["dfa1","傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"],["e0a1","胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"],["e1a1","聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"],["e2a1","戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"],["e3a1","嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"],["e4a1","沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"],["e5a1","櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"],["e6a1","旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"],["e7a1","簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"],["e8a1","烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"],["e9a1","窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"],["eaa1","運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"],["eba1","濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"],["eca1","議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"],["eda1","立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"],["eea1","障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"],["efa1","煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"],["f0a1","靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"],["f1a1","踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"],["f2a1","咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"],["f3a1","鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"],["f4a1","責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"],["f5a1","椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"],["f6a1","贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"],["f7a1","鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"],["f8a1","阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"],["f9a1","品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"],["faa1","行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"],["fba1","形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"],["fca1","禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"],["fda1","爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"]]')},function(e){e.exports=JSON.parse('[["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"],["8840","㇀",4,"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"],["88a1","ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"],["8940","𪎩𡅅"],["8943","攊"],["8946","丽滝鵎釟"],["894c","𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"],["89a1","琑糼緍楆竉刧"],["89ab","醌碸酞肼"],["89b0","贋胶𠧧"],["89b5","肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"],["89c1","溚舾甙"],["89c5","䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"],["8a40","𧶄唥"],["8a43","𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"],["8a64","𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"],["8a76","䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"],["8aa1","𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"],["8aac","䠋𠆩㿺塳𢶍"],["8ab2","𤗈𠓼𦂗𠽌𠶖啹䂻䎺"],["8abb","䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"],["8ac9","𪘁𠸉𢫏𢳉"],["8ace","𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"],["8adf","𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"],["8af6","𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"],["8b40","𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"],["8b55","𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"],["8ba1","𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"],["8bde","𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"],["8c40","倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"],["8ca1","𣏹椙橃𣱣泿"],["8ca7","爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"],["8cc9","顨杫䉶圽"],["8cce","藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"],["8ce6","峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"],["8d40","𠮟"],["8d42","𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"],["8da1","㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"],["8e40","𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"],["8ea1","繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"],["8f40","蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"],["8fa1","𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"],["9040","趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"],["90a1","𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"],["9140","𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"],["91a1","鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"],["9240","𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"],["92a1","働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"],["9340","媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"],["93a1","摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"],["9440","銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"],["94a1","㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"],["9540","𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"],["95a1","衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"],["9640","桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"],["96a1","𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"],["9740","愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"],["97a1","𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"],["9840","𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"],["98a1","咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"],["9940","䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"],["99a1","䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"],["9a40","鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"],["9aa1","黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"],["9b40","𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"],["9b62","𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"],["9ba1","椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"],["9c40","嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"],["9ca1","㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"],["9d40","𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"],["9da1","辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"],["9e40","𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"],["9ea1","鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"],["9ead","𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"],["9ec5","㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"],["9ef5","噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"],["9f40","籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"],["9f4f","凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"],["9fa1","椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"],["9fae","酙隁酜"],["9fb2","酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"],["9fc1","𤤙盖鮝个𠳔莾衂"],["9fc9","届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"],["9fdb","歒酼龥鮗頮颴骺麨麄煺笔"],["9fe7","毺蠘罸"],["9feb","嘠𪙊蹷齓"],["9ff0","跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"],["a040","𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"],["a055","𡠻𦸅"],["a058","詾𢔛"],["a05b","惽癧髗鵄鍮鮏蟵"],["a063","蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"],["a073","坟慯抦戹拎㩜懢厪𣏵捤栂㗒"],["a0a1","嵗𨯂迚𨸹"],["a0a6","僙𡵆礆匲阸𠼻䁥"],["a0ae","矾"],["a0b0","糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"],["a0d4","覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"],["a0e2","罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"],["a3c0","␀",31,"␡"],["c6a1","①",9,"⑴",9,"ⅰ",9,"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ",23],["c740","す",58,"ァアィイ"],["c7a1","ゥ",81,"А",5,"ЁЖ",4],["c840","Л",26,"ёж",25,"⇧↸↹㇏𠃌乚𠂊刂䒑"],["c8a1","龰冈龱𧘇"],["c8cd","¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"],["c8f5","ʃɐɛɔɵœøŋʊɪ"],["f9fe","■"],["fa40","𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"],["faa1","鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"],["fb40","𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"],["fba1","𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"],["fc40","廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"],["fca1","𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"],["fd40","𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"],["fda1","𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"],["fe40","鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"],["fea1","𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"]]')},function(e,t,n){"use strict";var r=n(33).Buffer;e.exports=function(e){var t=e.Transform;function n(e,n){this.conv=e,(n=n||{}).decodeStrings=!1,t.call(this,n)}function i(e,n){this.conv=e,(n=n||{}).encoding=this.encoding="utf8",t.call(this,n)}return n.prototype=Object.create(t.prototype,{constructor:{value:n}}),n.prototype._transform=function(e,t,n){if("string"!=typeof e)return n(new Error("Iconv encoding stream needs strings as its input."));try{var r=this.conv.write(e);r&&r.length&&this.push(r),n()}catch(e){n(e)}},n.prototype._flush=function(e){try{var t=this.conv.end();t&&t.length&&this.push(t),e()}catch(t){e(t)}},n.prototype.collect=function(e){var t=[];return this.on("error",e),this.on("data",(function(e){t.push(e)})),this.on("end",(function(){e(null,r.concat(t))})),this},i.prototype=Object.create(t.prototype,{constructor:{value:i}}),i.prototype._transform=function(e,t,n){if(!(r.isBuffer(e)||e instanceof Uint8Array))return n(new Error("Iconv decoding stream needs buffers as its input."));try{var i=this.conv.write(e);i&&i.length&&this.push(i,this.encoding),n()}catch(e){n(e)}},i.prototype._flush=function(e){try{var t=this.conv.end();t&&t.length&&this.push(t,this.encoding),e()}catch(t){e(t)}},i.prototype.collect=function(e){var t="";return this.on("error",e),this.on("data",(function(e){t+=e})),this.on("end",(function(){e(null,t)})),this},{IconvLiteEncoderStream:n,IconvLiteDecoderStream:i}}},function(e,t,n){"use strict";const r=n(6);class i{constructor(e){this.pluginName=e.pluginName,this.pluginData=e.pluginData}toPacket(){const e=6+this.pluginName.length+this.pluginData.length,t=Buffer.allocUnsafe(e),n=new r(0,t,0,e);return n.offset=4,n.writeInt8(254),n.writeNullTerminatedString(this.pluginName,"cesu8"),n.writeBuffer(this.pluginData),n}static fromPacket(e){e.readInt8();const t=e.readNullTerminatedString("cesu8"),n=e.readBuffer();return new i({pluginName:t,pluginData:n})}}e.exports=i},function(e,t,n){"use strict";const r=n(6);class i{constructor(e){this.data=e}toPacket(){const e=5+this.data.length,t=Buffer.allocUnsafe(e),n=new r(0,t,0,e);return n.offset=4,n.writeInt8(1),n.writeBuffer(this.data),n}static fromPacket(e){e.readInt8();const t=e.readBuffer();return new i(t)}static verifyMarker(e){return 1===e.peekByte()}}e.exports=i},function(e,t,n){"use strict";const r=n(6);class i{constructor(e){Buffer.isBuffer(e)||(e=Buffer.from(e)),this.data=e}toPacket(){const e=4+this.data.length,t=Buffer.allocUnsafe(e),n=new r(0,t,0,e);return n.offset=4,n.writeBuffer(this.data),n}static fromPacket(e){const t=e.readBuffer();return new i(t)}}e.exports=i},function(e,t,n){"use strict";const r=n(56),i=n(6),o=new Array(256);class s{constructor(e){this.columns=e||[]}toPacket(){throw new Error("Not implemented")}static fromPacket(e,t){const n=new Array(e.length);t.readInt8();const r=Math.floor((e.length+7+2)/8);t.skip(r);for(let r=0;rthis.flags&i[e],n=new o(0,e,0,e.length);n.offset=4;const s=a[this.charsetNumber];if(n.writeInt8(r.CHANGE_USER),n.writeNullTerminatedString(this.user,s),t("SECURE_CONNECTION")?(n.writeInt8(this.authToken.length),n.writeBuffer(this.authToken)):(n.writeBuffer(this.authToken),n.writeInt8(0)),n.writeNullTerminatedString(this.database,s),n.writeInt16(this.charsetNumber),t("PLUGIN_AUTH")&&n.writeNullTerminatedString("mysql_native_password","latin1"),t("CONNECT_ATTRS")){const e=this.connectAttributes,t=Object.keys(e);let r=0;for(let n=0;n{n+=r.lengthCodedStringLength(e[t],o[e.characterSet])});const i=Buffer.allocUnsafe(n),a=new r(t,i,0,n);return a.offset=4,s.forEach((function(t){a.writeLengthCodedString(e[t],o[e.characterSet])})),a.writeInt8(12),a.writeInt16(e.characterSet),a.writeInt32(e.columnLength),a.writeInt8(e.columnType),a.writeInt16(e.flags),a.writeInt8(e.decimals),a.writeInt16(0),a}get db(){return this.schema}}const u=function(e){Object.defineProperty(a.prototype,e,{get:function(){const t=this[`_${e}Start`],n=t+this[`_${e}Length`],r=i.decode(this._buf,"binary"===this.encoding?this._clientEncoding:this.encoding,t,n);return Object.defineProperty(this,e,{value:r,writable:!1,configurable:!1,enumerable:!1}),r}})};u("catalog"),u("schema"),u("table"),u("orgTable"),u("orgName"),e.exports=a},function(e,t,n){"use strict";const r=n(246),i=n(27),o=n(56),s=n(6),a=n(28);function u(e,t,n){let r,i=o.VAR_STRING,a=function(e){return s.prototype.writeLengthCodedString.call(this,e,t)};if(null!==e)switch(typeof e){case"undefined":throw new TypeError("Bind parameters must not contain undefined");case"number":i=o.DOUBLE,r=8,a=s.prototype.writeDouble;break;case"boolean":e|=0,i=o.TINY,r=1,a=s.prototype.writeInt8;break;case"object":"[object Date]"===Object.prototype.toString.call(e)?(i=o.DATETIME,r=12,a=function(e){return s.prototype.writeDate.call(this,e,n)}):!function(e){return Array.isArray(e)||e.constructor===Object||"function"==typeof e.toJSON&&!Buffer.isBuffer(e)}(e)?Buffer.isBuffer(e)&&(r=s.lengthCodedNumberLength(e.length)+e.length,a=s.prototype.writeLengthCodedBuffer):(e=JSON.stringify(e),i=o.JSON);break;default:e=e.toString()}else e="",i=o.NULL;return r||(r=s.lengthCodedStringLength(e,t)),{value:e,type:i,length:r,writer:a}}e.exports=class{constructor(e,t,n,r){this.id=e,this.parameters=t,this.encoding=a[n],this.timezone=r}toPacket(){let e,t=14;this.parameters&&this.parameters.length>0&&(t+=Math.floor((this.parameters.length+7)/8),t+=1,t+=2*this.parameters.length,e=this.parameters.map(e=>u(e,this.encoding,this.timezone)),t+=e.reduce((e,t)=>e+t.length,0));const n=Buffer.allocUnsafe(t),a=new s(0,n,0,t);if(a.offset=4,a.writeInt8(i.STMT_EXECUTE),a.writeInt32(this.id),a.writeInt8(r.NO_CURSOR),a.writeInt32(1),e){let t=0,n=1;e.forEach(e=>{e.type===o.NULL&&(t+=n),n*=2,256===n&&(a.writeInt8(t),t=0,n=1)}),1!==n&&a.writeInt8(t),a.writeInt8(1),e.forEach(e=>{a.writeInt8(e.type),a.writeInt8(0)}),e.forEach(e=>{e.type!==o.NULL&&e.writer.call(a,e.value)})}return a}}},function(e,t,n){"use strict";e.exports={NO_CURSOR:0,READ_ONLY:1,FOR_UPDATE:2,SCROLLABLE:3}},function(e,t,n){"use strict";const r=n(6),i=n(40);class o{constructor(e){this.protocolVersion=e.protocolVersion,this.serverVersion=e.serverVersion,this.capabilityFlags=e.capabilityFlags,this.connectionId=e.connectionId,this.authPluginData1=e.authPluginData1,this.authPluginData2=e.authPluginData2,this.characterSet=e.characterSet,this.statusFlags=e.statusFlags,this.autPluginName=e.autPluginName}setScrambleData(e){n(23).randomBytes(20,(t,n)=>{t?e(t):(this.authPluginData1=n.slice(0,8),this.authPluginData2=n.slice(8,20),e())})}toPacket(e){const t=68+Buffer.byteLength(this.serverVersion,"utf8"),n=Buffer.alloc(t+4,0),i=new r(e,n,0,t+4);i.offset=4,i.writeInt8(this.protocolVersion),i.writeString(this.serverVersion,"cesu8"),i.writeInt8(0),i.writeInt32(this.connectionId),i.writeBuffer(this.authPluginData1),i.writeInt8(0);const o=Buffer.allocUnsafe(4);return o.writeUInt32LE(this.capabilityFlags,0),i.writeBuffer(o.slice(0,2)),i.writeInt8(this.characterSet),i.writeInt16(this.statusFlags),i.writeBuffer(o.slice(2,4)),i.writeInt8(21),i.skip(10),i.writeBuffer(this.authPluginData2),i.writeInt8(0),i.writeString("mysql_native_password","latin1"),i.writeInt8(0),i}static fromPacket(e){const t={};t.protocolVersion=e.readInt8(),t.serverVersion=e.readNullTerminatedString("cesu8"),t.connectionId=e.readInt32(),t.authPluginData1=e.readBuffer(8),e.skip(1);const n=Buffer.allocUnsafe(4);n[0]=e.readInt8(),n[1]=e.readInt8(),e.haveMoreData()?(t.characterSet=e.readInt8(),t.statusFlags=e.readInt16(),n[2]=e.readInt8(),n[3]=e.readInt8(),t.capabilityFlags=n.readUInt32LE(0),t.capabilityFlags&i.PLUGIN_AUTH?t.authPluginDataLength=e.readInt8():(t.authPluginDataLength=0,e.skip(1)),e.skip(10)):t.capabilityFlags=n.readUInt16LE(0);if(t.capabilityFlags&i.SECURE_CONNECTION){const n=t.authPluginDataLength;if(0===n)t.authPluginDataLength=20,t.authPluginData2=e.readBuffer(12),e.skip(1);else{const r=Math.max(13,n-8);t.authPluginData2=e.readBuffer(r)}}return t.capabilityFlags&i.PLUGIN_AUTH&&(t.autPluginName=e.readNullTerminatedString("ascii")),new o(t)}}e.exports=o},function(e,t,n){"use strict";const r=n(40),i=n(28),o=n(6),s=n(47);e.exports=class{constructor(e){let t;this.user=e.user||"",this.database=e.database||"",this.password=e.password||"",this.passwordSha1=e.passwordSha1,this.authPluginData1=e.authPluginData1,this.authPluginData2=e.authPluginData2,this.compress=e.compress,this.clientFlags=e.flags,t=this.passwordSha1?s.calculateTokenFromPasswordSha(this.passwordSha1,this.authPluginData1,this.authPluginData2):s.calculateToken(this.password,this.authPluginData1,this.authPluginData2),this.authToken=t,this.charsetNumber=e.charsetNumber,this.encoding=i[e.charsetNumber],this.connectAttributes=e.connectAttributes}serializeResponse(e){const t=e=>this.clientFlags&r[e],n=new o(0,e,0,e.length);n.offset=4,n.writeInt32(this.clientFlags),n.writeInt32(0),n.writeInt8(this.charsetNumber),n.skip(23);const i=this.encoding;let s;if(n.writeNullTerminatedString(this.user,i),t("PLUGIN_AUTH_LENENC_CLIENT_DATA")?(n.writeLengthCodedNumber(this.authToken.length),n.writeBuffer(this.authToken)):t("SECURE_CONNECTION")?(n.writeInt8(this.authToken.length),n.writeBuffer(this.authToken)):(n.writeBuffer(this.authToken),n.writeInt8(0)),t("CONNECT_WITH_DB")&&n.writeNullTerminatedString(this.database,i),t("PLUGIN_AUTH")&&n.writeNullTerminatedString("mysql_native_password","latin1"),t("CONNECT_ATTRS")){const e=this.connectAttributes||{},t=Object.keys(e);let r=0;for(s=0;s0&&(l={systemVariables:{},schema:null,trackStateChange:null});e.offset{null!=e?n+=r.lengthCodedStringLength(e.toString(10),t):++n});const i=Buffer.allocUnsafe(n+4),o=new r(0,i,0,n+4);return o.offset=4,e.forEach(e=>{null!==e?void 0!==e?o.writeLengthCodedString(e.toString(10),t):o.writeInt8(0):o.writeNull()}),o}}e.exports=i},function(e,t,n){"use strict";const r=n(129),i=n(266),o=n(130),s=n(269),a=n(133),u=n(134),c=n(272),l=n(273),d=n(274),f=n(276),_=n(277);e.exports={ClientHandshake:r,ServerHandshake:i,Query:o,Prepare:s,CloseStatement:a,Execute:u,Ping:c,RegisterSlave:l,BinlogDump:d,ChangeUser:f,Quit:_}},function(e,t,n){"use strict";const r=n(20),i=n(260),o=n(261),s=n(262),a={sha256_password:i({}),caching_sha2_password:o({}),mysql_native_password:s({})};function u(){console.warn("WARNING! authSwitchHandler api is deprecated, please use new authPlugins api")}function c(e,t){e.code="AUTH_SWITCH_PLUGIN_ERROR",e.fatal=!0,t.emit("error",e)}e.exports={authSwitchRequest:function(e,t,n){const{pluginName:i,pluginData:o}=r.AuthSwitchRequest.fromPacket(e);let s=t.config.authPlugins&&t.config.authPlugins[i];if(t.config.authSwitchHandler&&"mysql_native_password"!==i){const e=t.config.authSwitchHandler;return u(),void e({pluginName:i,pluginData:o},(e,i)=>{if(e)return c(e,n);t.writePacket(new r.AuthSwitchResponse(i).toPacket())})}if(s||(s=a[i]),!s)throw new Error(`Server requests authentication using unknown plugin ${i}. See TODO: add plugins doco here on how to configure or author authentication plugins.`);t._authPlugin=s({connection:t,command:n}),Promise.resolve(t._authPlugin(o)).then(e=>{e&&t.writePacket(new r.AuthSwitchResponse(e).toPacket())}).catch(e=>{c(e,n)})},authSwitchRequestMoreData:function(e,t,n){const{data:i}=r.AuthSwitchRequestMoreData.fromPacket(e);if(t.config.authSwitchHandler){const e=t.config.authSwitchHandler;return u(),void e({pluginData:i},(e,i)=>{if(e)return c(e,n);t.writePacket(new r.AuthSwitchResponse(i).toPacket())})}if(!t._authPlugin)throw new Error("AuthPluginMoreData received but no auth plugin instance found");Promise.resolve(t._authPlugin(i)).then(e=>{e&&t.writePacket(new r.AuthSwitchResponse(e).toPacket())}).catch(e=>{c(e,n)})}}},function(e,t,n){"use strict";const r=n(23),{xor:i}=n(47),o=Buffer.from([1]);e.exports=(e={})=>({connection:t})=>{let n=0,s=null;const a=t.config.password,u=e=>{const t=function(e,t,n){const o=i(Buffer.from(e+"\0","utf8").toString("binary"),t.toString("binary"));return r.publicEncrypt(n,o)}(a,s,e);return n=-1,t};return t=>{switch(n){case 0:return s=t.slice(0,20),e.serverPublicKey?u(e.serverPublicKey):(n=1,o);case 1:return e.onServerPublicKey&&e.onServerPublicKey(t),u(t);case-1:throw new Error("Unexpected data in AuthMoreData packet received by sha256_password plugin in STATE_FINAL state.")}throw new Error("Unexpected data in AuthMoreData packet received by sha256_password plugin in state "+n)}}},function(e,t,n){"use strict";const r=n(23),{xor:i,xorRotating:o}=n(47),s=Buffer.from([2]),a=Buffer.from([3]),u=Buffer.from([4]);function c(e){const t=r.createHash("sha256");return t.update(e,"binary"),t.digest("binary")}e.exports=(e={})=>({connection:t})=>{let n=0,l=null;const d=t.config.password,f=e=>{const t=function(e,t,n){const i=o(Buffer.from(e+"\0","utf8").toString("binary"),t.toString("binary"));return r.publicEncrypt(n,i)}(d,l,e);return n=-1,t};return r=>{switch(n){case 0:return l=r.slice(0,20),n=1,function(e,t){if(!e)return Buffer.alloc(0);const n=c(Buffer.from(e,"utf8").toString("binary")),r=c(n),o=c(r+t.toString("binary"));return i(n,o)}(d,l);case 1:if(a.equals(r))return n=-1,null;if(u.equals(r)){return(void 0===e.overrideIsSecure?t.config.ssl||t.config.socketPath:e.overrideIsSecure)?(n=-1,Buffer.from(d+"\0","utf8")):e.serverPublicKey?f(e.serverPublicKey):(n=2,s)}throw new Error("Invalid AuthMoreData packet received by caching_sha2_password plugin in STATE_TOKEN_SENT state.");case 2:return e.onServerPublicKey&&e.onServerPublicKey(r),f(r);case-1:throw new Error("Unexpected data in AuthMoreData packet received by caching_sha2_password plugin in STATE_FINAL state.")}throw new Error("Unexpected data in AuthMoreData packet received by caching_sha2_password plugin in state "+n)}}},function(e,t,n){"use strict";const r=n(47);e.exports=e=>({connection:t,command:n})=>{const i=n.password||e.password||t.config.password,o=n.passwordSha1||e.passwordSha1||t.config.passwordSha1;return e=>{const t=e.slice(0,8),n=e.slice(8,20);let s;return s=o?r.calculateTokenFromPasswordSha(o,t,n):r.calculateToken(i,t,n),s}}},function(e,t,n){"use strict";const r=n(85),i=n(123);function o(e){const t=this,n=e.readInt24(),i=e.readBuffer();0!==n?t.inflateQueue.push(n=>{r.inflate(i,(r,i)=>{r?t._handleNetworkError(r):(t._bumpCompressedSequenceId(e.numPackets),t._inflatedPacketsParser.execute(i),n.done())})}):t.inflateQueue.push(n=>{t._bumpCompressedSequenceId(e.numPackets),t._inflatedPacketsParser.execute(i),n.done()})}function s(e){let t;if(e.length>16777210){for(t=0;t{r.deflate(e,(r,s)=>{if(r)return void n._handleFatalError(r);let u=s.length;u>8,1),o.writeUInt8(a,3),o.writeUInt8(255&i,4),o.writeUInt16LE(i>>8,5),n.writeUncompressed(o),n.writeUncompressed(s)):(u=i,i=0,o.writeUInt8(255&u,0),o.writeUInt16LE(u>>8,1),o.writeUInt8(a,3),o.writeUInt8(255&i,4),o.writeUInt16LE(i>>8,5),n.writeUncompressed(o),n.writeUncompressed(e)),t.done()})}),n._bumpCompressedSequenceId(1)}e.exports={enableCompression:function(e){e._lastWrittenPacketId=0,e._lastReceivedPacketId=0,e._handleCompressedPacket=o,e._inflatedPacketsParser=new i(t=>{e.handlePacket(t)},4),e._inflatedPacketsParser._lastPacket=0,e.packetParser=new i(t=>{e._handleCompressedPacket(t)},7),e.writeUncompressed=e.write,e.write=s;const t=n(264);e.inflateQueue=t.createQueue(),e.deflateQueue=t.createQueue()}}},function(e,t,n){e.exports=n(265)},function(e,t,n){var r=n(26).EventEmitter,i=n(7),o=function(e){r.call(this),this.timeout=e&&e>0?e:3e3,this.status=s.STATUS_IDLE,this.curId=0,this.queue=[]};i.inherits(o,r),o.prototype.push=function(e,t,n){if(this.status!==s.STATUS_IDLE&&this.status!==s.STATUS_BUSY)return!1;if("function"!=typeof e)throw new Error("fn should be a function.");if(this.queue.push({fn:e,ontimeout:t,timeout:n}),this.status===s.STATUS_IDLE){this.status=s.STATUS_BUSY;var r=this;process.nextTick((function(){r._next(r.curId)}))}return!0},o.prototype.close=function(e){this.status!==s.STATUS_IDLE&&this.status!==s.STATUS_BUSY||(e?(this.status=s.STATUS_DRAINED,this.timerId&&(clearTimeout(this.timerId),this.timerId=void 0),this.emit("drained")):(this.status=s.STATUS_CLOSED,this.emit("closed")))},o.prototype._next=function(e){if(e===this.curId&&(this.status===s.STATUS_BUSY||this.status===s.STATUS_CLOSED)){this.timerId&&(clearTimeout(this.timerId),this.timerId=void 0);var t=this.queue.shift();if(t){var n=this;t.id=++this.curId;var r=t.timeout>0?t.timeout:this.timeout;r=r>0?r:3e3,this.timerId=setTimeout((function(){process.nextTick((function(){n._next(t.id)})),n.emit("timeout",t),t.ontimeout&&t.ontimeout()}),r);try{t.fn({done:function(){var e=t.id===n.curId;return process.nextTick((function(){n._next(t.id)})),e}})}catch(e){n.emit("error",e,t),process.nextTick((function(){n._next(t.id)}))}}else this.status===s.STATUS_BUSY?(this.status=s.STATUS_IDLE,this.curId++):(this.status=s.STATUS_DRAINED,this.emit("drained"))}};var s=e.exports;s.STATUS_IDLE=0,s.STATUS_BUSY=1,s.STATUS_CLOSED=2,s.STATUS_DRAINED=3,s.createQueue=function(e){return new o(e)}},function(e,t,n){"use strict";const r=n(27),i=n(124),o=n(21),s=n(20);class a extends o{constructor(e){super(),this.args=e}start(e,t){const n=new s.Handshake(this.args);return this.serverHello=n,n.setScrambleData(e=>{e?t.emit("error",new Error("Error generating random bytes")):t.writePacket(n.toPacket(0))}),a.prototype.readClientReply}readClientReply(e,t){const n=s.HandshakeResponse.fromPacket(e);return t.clientHelloReply=n,this.args.authCallback?this.args.authCallback({user:n.user,database:n.database,address:t.stream.remoteAddress,authPluginData1:this.serverHello.authPluginData1,authPluginData2:this.serverHello.authPluginData2,authToken:n.authToken},(e,n)=>{n?(t.writeError({message:n.message||"",code:n.code||1045}),t.close()):t.writeOk()}):t.writeOk(),a.prototype.dispatchCommands}dispatchCommands(e,t){let n=!0;const o=t.clientHelloReply.encoding,s=e.readInt8();switch(s){case r.QUIT:t.listeners("quit").length?t.emit("quit"):t.stream.end();break;case r.INIT_DB:if(t.listeners("init_db").length){const n=e.readString(void 0,o);t.emit("init_db",n)}else t.writeOk();break;case r.QUERY:if(t.listeners("query").length){const n=e.readString(void 0,o);t.emit("query",n)}else t.writeError({code:i.HA_ERR_INTERNAL_ERROR,message:"No query handler"});break;case r.FIELD_LIST:if(t.listeners("field_list").length){const n=e.readNullTerminatedString(),r=e.readString(void 0,o);t.emit("field_list",n,r)}else t.writeError({code:i.ER_WARN_DEPRECATED_SYNTAX,message:"As of MySQL 5.7.11, COM_FIELD_LIST is deprecated and will be removed in a future version of MySQL."});break;case r.PING:t.listeners("ping").length?t.emit("ping"):t.writeOk();break;default:n=!1}return t.listeners("packet").length?t.emit("packet",e.clone(),n,s):n||console.log("Unknown command:",s),a.prototype.dispatchCommands}}e.exports=a},function(e,t,n){"use strict";const r=n(56),i=n(66),o=n(131),s=n(132),a=n(86),u=[];for(const e in r)u[r[e]]=e;function c(e,t,n,s,a){const u=a.supportBigNumbers||s.supportBigNumbers,c=a.bigNumberStrings||s.bigNumberStrings,l=a.timezone||s.timezone,d=a.dateStrings||s.dateStrings;switch(e){case r.TINY:case r.SHORT:case r.LONG:case r.INT24:case r.YEAR:return"packet.parseLengthCodedIntNoBigCheck()";case r.LONGLONG:return u&&c?"packet.parseLengthCodedIntString()":`packet.parseLengthCodedInt(${u})`;case r.FLOAT:case r.DOUBLE:return"packet.parseLengthCodedFloat()";case r.NULL:return"packet.readLengthCodedNumber()";case r.DECIMAL:case r.NEWDECIMAL:return s.decimalNumbers?"packet.parseLengthCodedFloat()":'packet.readLengthCodedString("ascii")';case r.DATE:return o.typeMatch(e,d,r)?'packet.readLengthCodedString("ascii")':`packet.parseDate('${l}')`;case r.DATETIME:case r.TIMESTAMP:return o.typeMatch(e,d,r)?'packet.readLengthCodedString("ascii")':`packet.parseDateTime('${l}')`;case r.TIME:return'packet.readLengthCodedString("ascii")';case r.GEOMETRY:return"packet.parseGeometryValue()";case r.JSON:return'JSON.parse(packet.readLengthCodedString("utf8"))';default:return t===i.BINARY?"packet.readLengthCodedBuffer()":`packet.readLengthCodedString(${n})`}}function l(e,t,n){"function"==typeof n.typeCast&&"function"!=typeof t.typeCast&&(t.typeCast=n.typeCast);const r=s();r("(function () {")("return class TextRow {"),r("constructor(fields) {"),"function"==typeof t.typeCast&&(r("const _this = this;"),r("for(let i=0; i0?u.prototype.readParameter:this.fieldCount>0?u.prototype.readField:this.prepareDone(t)}readParameter(e,t){const n=new r.ColumnDefinition(e,t.clientEncoding);return this.parameterDefinitions.push(n),this.parameterDefinitions.length===this.parameterCount?u.prototype.parametersEOF:this.readParameter}readField(e,t){const n=new r.ColumnDefinition(e,t.clientEncoding);return this.fields.push(n),this.fields.length===this.fieldCount?u.prototype.fieldsEOF:u.prototype.readField}parametersEOF(e,t){return e.isEOF()?this.fieldCount>0?u.prototype.readField:this.prepareDone(t):t.protocolError("Expected EOF packet after parameters")}fieldsEOF(e,t){return e.isEOF()?this.prepareDone(t):t.protocolError("Expected EOF packet after fields")}prepareDone(e){const t=new a(this.query,this.id,this.fields,this.parameterDefinitions,e);return e._statements.set(this.key,t),this.onResult&&this.onResult(null,t),null}}e.exports=u},function(e,t,n){"use strict";const r=n(271),i=n(66),o=n(56),s=n(131),a=n(132),u=n(86),c=[];for(const e in o)c[o[e]]=e;function l(e,t,n,a){const u=n.supportBigNumbers||t.supportBigNumbers,c=n.bigNumberStrings||t.bigNumberStrings,l=n.timezone||t.timezone,d=n.dateStrings||t.dateStrings,f=e.flags&r.UNSIGNED;switch(e.columnType){case o.TINY:return f?"packet.readInt8();":"packet.readSInt8();";case o.SHORT:return f?"packet.readInt16();":"packet.readSInt16();";case o.LONG:case o.INT24:return f?"packet.readInt32();":"packet.readSInt32();";case o.YEAR:return"packet.readInt16()";case o.FLOAT:return"packet.readFloat();";case o.DOUBLE:return"packet.readDouble();";case o.NULL:return"null;";case o.DATE:case o.DATETIME:case o.TIMESTAMP:case o.NEWDATE:return s.typeMatch(e.columnType,d,o)?`packet.readDateTimeString(${e.decimals});`:`packet.readDateTime('${l}');`;case o.TIME:return"packet.readTimeString()";case o.DECIMAL:case o.NEWDECIMAL:return t.decimalNumbers?"packet.parseLengthCodedFloat();":'packet.readLengthCodedString("ascii");';case o.GEOMETRY:return"packet.parseGeometryValue();";case o.JSON:return'JSON.parse(packet.readLengthCodedString("utf8"));';case o.LONGLONG:return u?c?f?"packet.readInt64String();":"packet.readSInt64String();":f?"packet.readInt64();":"packet.readSInt64();":f?"packet.readInt64JSNumber();":"packet.readSInt64JSNumber();";default:return e.characterSet===i.BINARY?"packet.readLengthCodedBuffer();":`packet.readLengthCodedString(fields[${a}].encoding)`}}function d(e,t,n){const r=a();let i=0;const o=Math.floor((e.length+7+2)/8);r("(function(){"),r("return class BinaryRow {"),r("constructor() {"),r("}"),r("next(packet, fields, options) {"),t.rowsAsArray?r(`const result = new Array(${e.length});`):r("const result = {};");const u={};let d=[];if(!0===t.nestTables){for(i=0;i{};e.exports=function(e){e||(e={}),e.placeholder||(e.placeholder="?");let t,r=100;function s(e,t){const n=[];if(1==e.length)return[e[0],[]];if(void 0===t)throw new Error("Named query contains placeholders, but parameters object is undefined");const r=e[1];for(let e=0;et[e])]}},function(e,t,n){"use strict";e.exports=g;var r,i=n(281),o=n(7),s=n(283),a=(r="function"==typeof Symbol&&"1"!==process.env._nodeLRUCacheForceNoSymbol?function(e){return Symbol(e)}:function(e){return"_"+e})("max"),u=r("length"),c=r("lengthCalculator"),l=r("allowStale"),d=r("maxAge"),f=r("dispose"),_=r("noDisposeOnSet"),h=r("lruList"),E=r("cache");function p(){return 1}function g(e){if(!(this instanceof g))return new g(e);"number"==typeof e&&(e={max:e}),e||(e={});var t=this[a]=e.max;(!t||"number"!=typeof t||t<=0)&&(this[a]=1/0);var n=e.length||p;"function"!=typeof n&&(n=p),this[c]=n,this[l]=e.stale||!1,this[d]=e.maxAge||0,this[f]=e.dispose,this[_]=e.noDisposeOnSet||!1,this.reset()}function R(e,t,n,r){var i=n.value;T(e,i)&&(N(e,n),e[l]||(i=void 0)),i&&t.call(r,i.value,i.key,e)}function A(e,t,n){var r=e[E].get(t);if(r){var i=r.value;T(e,i)?(N(e,r),e[l]||(i=void 0)):n&&e[h].unshiftNode(r),i&&(i=i.value)}return i}function T(e,t){if(!t||!t.maxAge&&!e[d])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[d]&&n>e[d]}function m(e){if(e[u]>e[a])for(var t=e[h].tail;e[u]>e[a]&&null!==t;){var n=t.prev;N(e,t),t=n}}function N(e,t){if(t){var n=t.value;e[f]&&e[f](n.key,n.value),e[u]-=n.length,e[E].delete(n.key),e[h].removeNode(t)}}function I(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}Object.defineProperty(g.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[a]=e,m(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(g.prototype,"allowStale",{set:function(e){this[l]=!!e},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(g.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[d]=e,m(this)},get:function(){return this[d]},enumerable:!0}),Object.defineProperty(g.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=p),e!==this[c]&&(this[c]=e,this[u]=0,this[h].forEach((function(e){e.length=this[c](e.value,e.key),this[u]+=e.length}),this)),m(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this[u]},enumerable:!0}),Object.defineProperty(g.prototype,"itemCount",{get:function(){return this[h].length},enumerable:!0}),g.prototype.rforEach=function(e,t){t=t||this;for(var n=this[h].tail;null!==n;){var r=n.prev;R(this,e,n,t),n=r}},g.prototype.forEach=function(e,t){t=t||this;for(var n=this[h].head;null!==n;){var r=n.next;R(this,e,n,t),n=r}},g.prototype.keys=function(){return this[h].toArray().map((function(e){return e.key}),this)},g.prototype.values=function(){return this[h].toArray().map((function(e){return e.value}),this)},g.prototype.reset=function(){this[f]&&this[h]&&this[h].length&&this[h].forEach((function(e){this[f](e.key,e.value)}),this),this[E]=new i,this[h]=new s,this[u]=0},g.prototype.dump=function(){return this[h].map((function(e){if(!T(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}),this).toArray().filter((function(e){return e}))},g.prototype.dumpLru=function(){return this[h]},g.prototype.inspect=function(e,t){var n="LRUCache {",r=!1;this[l]&&(n+="\n allowStale: true",r=!0);var i=this[a];i&&i!==1/0&&(r&&(n+=","),n+="\n max: "+o.inspect(i,t),r=!0);var s=this[d];s&&(r&&(n+=","),n+="\n maxAge: "+o.inspect(s,t),r=!0);var f=this[c];f&&f!==p&&(r&&(n+=","),n+="\n length: "+o.inspect(this[u],t),r=!0);var _=!1;return this[h].forEach((function(e){_?n+=",\n ":(r&&(n+=",\n"),_=!0,n+="\n ");var i=o.inspect(e.key).split("\n").join("\n "),a={value:e.value};e.maxAge!==s&&(a.maxAge=e.maxAge),f!==p&&(a.length=e.length),T(this,e)&&(a.stale=!0),a=o.inspect(a,t).split("\n").join("\n "),n+=i+" => "+a})),(_||r)&&(n+="\n"),n+="}"},g.prototype.set=function(e,t,n){var r=(n=n||this[d])?Date.now():0,i=this[c](t,e);if(this[E].has(e)){if(i>this[a])return N(this,this[E].get(e)),!1;var o=this[E].get(e).value;return this[f]&&(this[_]||this[f](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[u]+=i-o.length,o.length=i,this.get(e),m(this),!0}var s=new I(e,t,i,r,n);return s.length>this[a]?(this[f]&&this[f](e,t),!1):(this[u]+=s.length,this[h].unshift(s),this[E].set(e,this[h].head),m(this),!0)},g.prototype.has=function(e){return!!this[E].has(e)&&!T(this,this[E].get(e).value)},g.prototype.get=function(e){return A(this,e,!0)},g.prototype.peek=function(e){return A(this,e,!1)},g.prototype.pop=function(){var e=this[h].tail;return e?(N(this,e),e.value):null},g.prototype.del=function(e){N(this,this[E].get(e))},g.prototype.load=function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{var o=i-t;o>0&&this.set(r.k,r.v,o)}}},g.prototype.prune=function(){var e=this;this[E].forEach((function(t,n){A(e,n,!1)}))}},function(e,t,n){"pseudomap"===process.env.npm_package_name&&"test"===process.env.npm_lifecycle_script&&(process.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||process.env.TEST_PSEUDOMAP?e.exports=n(282):e.exports=Map},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){if(!(this instanceof r))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof r||"function"==typeof Map&&e instanceof Map)e.forEach((function(e,t){this.set(t,e)}),this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach((function(e){this.set(e[0],e[1])}),this)}}function i(e,t){return e===t||e!=e&&t!=t}function o(e,t,n){this.key=e,this.value=t,this._index=n}function s(e,t){for(var r=0,o="_"+t,s=o;n.call(e,s);s=o+r++)if(i(e[s].key,t))return e[s]}e.exports=r,r.prototype.forEach=function(e,t){t=t||this,Object.keys(this._data).forEach((function(n){"size"!==n&&e.call(t,this._data[n].value,this._data[n].key)}),this)},r.prototype.has=function(e){return!!s(this._data,e)},r.prototype.get=function(e){var t=s(this._data,e);return t&&t.value},r.prototype.set=function(e,t){!function(e,t,r){for(var s=0,a="_"+t,u=a;n.call(e,u);u=a+s++)if(i(e[u].key,t))return void(e[u].value=r);e.size++,e[u]=new o(t,r,u)}(this._data,e,t)},r.prototype.delete=function(e){var t=s(this._data,e);t&&(delete this._data[t._index],this._data.size--)},r.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(r.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),r.prototype.values=r.prototype.keys=r.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},function(e,t){function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},n.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this}},function(e,t,n){"use strict";const r=n(82),i=n(26).EventEmitter,o=n(63),s=n(67);e.exports=class extends i{constructor(){super(),this.connections=[],this._server=r.createServer(this._handleConnection.bind(this))}_handleConnection(e){const t=new s({stream:e,isServer:!0}),n=new o({config:t});this.emit("connection",n)}listen(e){return this._port=e,this._server.listen.apply(this._server,arguments),this}close(e){this._server.close(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSemiColonFormat=t.CONNECTION_STRING=void 0,t.CONNECTION_STRING="mysql_connection_string",t.parseSemiColonFormat=function(e){const t=e.replace(/(?:host(?:name)|ip|server|data\s?source|addr(?:ess)?)=/gi,"host=").replace(/(?:user\s?(?:id|name)?|uid)=/gi,"user=").replace(/(?:pwd|pass)=/gi,"password=").replace(/(?:db)=/gi,"database=").split(";");if(1===t.length)throw new Error(`Connection string ${e} is in the incorrect format. Please follow the README.`);return t.reduce((e,t)=>{const[n,r]=t.split("=");return r&&(e[n]=r),e},{})}},function(e,t,n){"use strict";const r=n(29),{warn:i}=n(157),o=t;o.version=n(312).version,o.transports=n(313),o.config=n(107),o.addColors=r.levels,o.format=r.format,o.createLogger=n(175),o.ExceptionHandler=n(176),o.RejectionHandler=n(180),o.Container=n(347),o.Transport=n(49),o.loggers=new o.Container;const s=o.createLogger();Object.keys(o.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(e=>o[e]=(...t)=>s[e](...t)),Object.defineProperty(o,"level",{get:()=>s.level,set(e){s.level=e}}),Object.defineProperty(o,"exceptions",{get:()=>s.exceptions}),["exitOnError"].forEach(e=>{Object.defineProperty(o,e,{get:()=>s[e],set(t){s[e]=t}})}),Object.defineProperty(o,"default",{get:()=>({exceptionHandlers:s.exceptionHandlers,rejectionHandlers:s.rejectionHandlers,transports:s.transports})}),i.deprecated(o,"setLevels"),i.forFunctions(o,"useFormat",["cli"]),i.forProperties(o,"useFormat",["padLevels","stripColors"]),i.forFunctions(o,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(o,"deprecated",["emitErrs","levelLength"]),i.moved(o,"createLogger","Logger")},function(e,t,n){var r={};e.exports=r,r.themes={};var i=n(7),o=r.styles=n(288),s=Object.defineProperties,a=new RegExp(/[\r\n]+/g);r.supportsColor=n(289).supportsColor,void 0===r.enabled&&(r.enabled=!1!==r.supportsColor()),r.enable=function(){r.enabled=!0},r.disable=function(){r.enabled=!1},r.stripColors=r.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};r.stylize=function(e,t){if(!r.enabled)return e+"";var n=o[t];return!n&&t in r?r[t](e):n.open+e+n.close};var u=/[|\\{}()[\]^$+*?.]/g;function c(e){var t=function e(){return _.apply(e,arguments)};return t._styles=e,t.__proto__=f,t}var l,d=(l={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(u,"\\$&")}(o[e].close),"g"),l[e]={get:function(){return c(this._styles.concat(e))}}})),l),f=s((function(){}),d);function _(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!r.enabled||!t)return t;for(var n=-1!=t.indexOf("\n"),s=this._styles,u=s.length;u--;){var c=o[s[u]];t=c.open+t.replace(c.closeRe,c.open)+c.close,n&&(t=t.replace(a,(function(e){return c.close+e+c.open})))}return t}r.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){r[t]=function(n){if("object"==typeof e[t]){var i=n;for(var o in e[t])i=r[e[t][o]](i);return i}return r[e[t]](n)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var h=function(e,t){var n=t.split("");return(n=n.map(e)).join("")};for(var E in r.trap=n(291),r.zalgo=n(292),r.maps={},r.maps.america=n(293)(r),r.maps.zebra=n(294)(r),r.maps.rainbow=n(295)(r),r.maps.random=n(296)(r),r.maps)!function(e){r[e]=function(t){return h(r.maps[e],t)}}(E);s(r,function(){var e={};return Object.keys(d).forEach((function(t){e[t]={get:function(){return c([t])}}})),e}())},function(e,t){var n={};e.exports=n;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var t=r[e],i=n[e]=[];i.open="["+t[0]+"m",i.close="["+t[1]+"m"}))},function(e,t,n){"use strict";var r=n(30),i=n(290),o=process.env,s=void 0;function a(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var n=r.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e))}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=(t=t||process.argv).indexOf("--"),r=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(r+e);return-1!==i&&(-1===n||i{if(e instanceof Error){const n=Object.assign({},e,{level:e.level,[i]:e[i]||e.level,message:e.message,[o]:e[o]||e.message});return t&&(n.stack=e.stack),n}if(!(e.message instanceof Error))return e;Object.assign(e,e.message);const n=e.message;return e.message=n.message,e[o]=n.message,t&&(e.stack=n.stack),e})},function(e,t,n){const{format:r}=n(29),{combine:i,timestamp:o,label:s}=r,a=i(s({label:"right meow!"}),o()).transform({level:"info",message:"What time is the testing at?"});console.dir(a)},function(e,t,n){const{format:r}=n(29),{combine:i,timestamp:o,label:s}=r,a=r((e,t)=>!e.private&&e)();console.dir(a.transform({level:"error",message:"Public error to share"})),console.dir(a.transform({level:"error",private:!0,message:"This is super secret - hide it."}));const u=r.combine(r(e=>!1)(),r(e=>{throw new Error("Never reached")})());console.dir(u.transform({level:"info",message:"wow such testing"}))},function(e,t,n){const{format:r}=n(29);r((function(e,t,n,r){return e}))},function(e,t,n){const{format:r}=n(29),{combine:i,json:o,metadata:s,timestamp:a}=r,u=i(a(),s(),o()).transform({level:"info",message:"This should be a message.",application:"Microsoft Office",store:"Big Box Store",purchaseAmount:"9.99"});console.dir(u);const c=i(a(),s({fillExcept:["message","level","timestamp"]}),o()).transform({level:"info",message:"This should have attached metadata",category:"movies",subCategory:"action"});console.dir(c);const l=i(a(),s({fillWith:["publisher","author","book"],key:"bookInfo"}),o()).transform({level:"debug",message:"This message should be outside of the bookInfo object",publisher:"Lorem Press",author:"Albert Einstein",book:"4D Chess for Dummies",label:"myCustomLabel"});console.dir(l);const d=i(a(),s({fillWith:["publisher","author","book"],key:"bookInfo"}),s({fillWith:["purchasePrice","purchaseDate","transactionId"],key:"transactionInfo"}),s({fillExcept:["level","message","label","timestamp"]}),o()).transform({level:"debug",message:"This message should be outside of the bookInfo object",publisher:"Lorem Press",author:"Albert Einstein",book:"4D Chess for Dummies",label:"myCustomLabel",purchasePrice:"9.99",purchaseDate:"2.10.2018",transactionId:"123ABC"});console.dir(d)},function(e,t,n){const{format:r}=n(29),{combine:i,padLevels:o,simple:s}=r,{MESSAGE:a}=n(3),u=i(o({levels:{error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6}}),s()),c=u.transform({level:"info",message:"This is an info level message."}),l=u.transform({level:"error",message:"This is an error level message."}),d=u.transform({level:"verbose",message:"This is a verbose level message."});console.dir(c[a]),console.dir(l[a]),console.dir(d[a])},function(e,t,n){const{format:r}=n(29),i=r((e,t)=>(t.yell?e.message=e.message.toUpperCase():t.whisper&&(e.message=e.message.toLowerCase()),e)),o=i({yell:!0});console.dir(o.transform({level:"info",message:"sorry for making you YELL in your head!"},o.options));const s=i({whisper:!0});console.dir(s.transform({level:"info",message:"WHY ARE THEY MAKING US YELL SO MUCH!"},s.options))},function(e,t,n){"use strict";const r=n(13),i=n(156);e.exports=r(e=>{const t=+new Date;return this.diff=t-(this.prevTime||t),this.prevTime=t,e.ms="+"+i(this.diff),e})},function(e){e.exports=JSON.parse('{"name":"winston","description":"A logger for just about everything.","version":"3.3.3","author":"Charlie Robbins ","maintainers":["Jarrett Cruger ","Chris Alderson ","David Hyde "],"repository":{"type":"git","url":"https://github.com/winstonjs/winston.git"},"keywords":["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],"dependencies":{"async":"^3.1.0","@dabh/diagnostics":"^2.0.2","is-stream":"^2.0.0","logform":"^2.2.0","one-time":"^1.0.0","readable-stream":"^3.4.0","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.4.0"},"devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/preset-env":"^7.10.3","@types/node":"^14.0.13","abstract-winston-transport":"^0.5.1","assume":"^2.2.0","colors":"^1.4.0","cross-spawn-async":"^2.2.5","eslint-config-populist":"^4.2.0","hock":"^1.4.1","mocha":"^8.0.1","nyc":"^15.1.0","rimraf":"^3.0.2","split2":"^3.1.1","std-mocks":"^1.0.1","through2":"^3.0.1","winston-compat":"^0.1.5"},"main":"./lib/winston","browser":"./dist/winston","types":"./index.d.ts","scripts":{"lint":"populist lib/*.js lib/winston/*.js lib/winston/**/*.js","pretest":"npm run lint","test":"nyc --reporter=text --reporter lcov npm run test:mocha","test:mocha":"mocha test/*.test.js test/**/*.test.js --exit","build":"./node_modules/.bin/rimraf dist && babel lib -d dist","prepublishOnly":"npm run build"},"engines":{"node":">= 6.4.0"},"license":"MIT"}')},function(e,t,n){"use strict";Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:()=>n(314)}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:()=>n(320)}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:()=>n(340)}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:()=>n(341)})},function(e,t,n){"use strict";const r=n(30),{LEVEL:i,MESSAGE:o}=n(3),s=n(49);e.exports=class extends s{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=e.eol||r.EOL,this.setMaxListeners(30)}log(e,t){return setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[i]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.error(e[o]),void(t&&t())):this.consoleWarnLevels[e[i]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.warn(e[o]),void(t&&t())):(console._stdout?console._stdout.write(`${e[o]}${this.eol}`):console.log(e[o]),void(t&&t()))}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce((e,n)=>{if("string"!=typeof n)throw new Error(t);return e[n]=!0,e},{})}}},function(e,t,n){var r=n(32),i=n(158);"disable"===process.env.READABLE_STREAM?e.exports=r&&r.Writable||i:e.exports=i},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r=n(72);e.exports=R;var i,o=n(318);R.ReadableState=g;n(26).EventEmitter;var s=function(e,t){return e.listeners(t).length},a=n(160),u=n(73).Buffer,c=global.Uint8Array||function(){};var l=Object.create(n(103));l.inherits=n(34);var d=n(7),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var _,h=n(319),E=n(161);l.inherits(R,a);var p=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n(74));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(_||(_=n(162).StringDecoder),this.decoder=new _(e.encoding),this.encoding=e.encoding)}function R(e){if(i=i||n(74),!(this instanceof R))return new R(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function A(e,t,n,r,i){var o,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,N(e)}(e,s)):(i||(o=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):T(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?T(e,s,t,!1):O(e,s)):T(e,s,t,!1))):r||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(I,e):I(e))}function I(e){f("emit readable"),e.emit("readable"),y(e)}function O(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(v,e,t))}function v(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?C(this):N(this),null;if(0===(e=m(e,t))&&t.ended)return 0===t.length&&C(this),null;var r,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e0?w(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==r&&this.emit("data",r),r},R.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},R.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?c:R;function u(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",E),e.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",R),n.removeListener("data",h),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){f("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",u);var l=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,y(e))}}(n);e.on("drain",l);var d=!1;var _=!1;function h(t){f("ondata"),_=!1,!1!==e.write(t)||_||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==L(i.pipes,e))&&!d&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,_=!0),n.pause())}function E(t){f("onerror",t),R(),e.removeListener("error",E),0===s(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",g),R()}function g(){f("onfinish"),e.removeListener("close",p),R()}function R(){f("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",E),e.once("close",p),e.once("finish",g),e.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,o=r.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,n=o,i=a,t.copy(n,i),a+=s.data.length,s=s.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t,n){"use strict";const r=n(16),i=n(31),o=n(321),s=n(85),{MESSAGE:a}=n(3),{Stream:u,PassThrough:c}=n(59),l=n(49),d=n(75)("winston:file"),f=n(30),_=n(339);e.exports=class extends l{constructor(e={}){function t(t,...n){n.slice(1).forEach(n=>{if(e[n])throw new Error(`Cannot set ${n} and ${t} together`)})}if(super(e),this.name=e.name||"file",this._stream=new c,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?i.basename(e.filename):"winston.log",this.dirname=e.dirname||i.dirname(e.filename),this.options=e.options||{flags:"a"};else{if(!e.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=i.dirname(this._dest.path)}this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=e.eol||f.EOL,this.tailable=e.tailable||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,t=(()=>{})){if(this.silent)return t(),!0;if(this._drain)return void this._stream.once("drain",()=>{this._drain=!1,this.log(e,t)});if(this._rotate)return void this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,t)});const n=`${e[a]}${this.eol}`,r=Buffer.byteLength(n);this._pendingSize+=r,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);const i=this._stream.write(n,function(){this._size+=r,this._pendingSize-=r,d("logged %s %s",this._size,n),this.emit("logged",e),this._opening||this._needsNewFile()&&(this._rotate=!0,this._endStream(()=>this._rotateFile()))}.bind(this));return i?t():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,t()})),d("written",i,this._drain),this.finishIfEnding(),i}query(e,t){"function"==typeof e&&(t=e,e={}),e=function(e){(e=e||{}).rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,"object"!=typeof e.until&&(e.until=new Date(e.until));e.from=e.from||e.until-864e5,"object"!=typeof e.from&&(e.from=new Date(e.from));return e.order=e.order||"desc",e}(e);const n=i.join(this.dirname,this.filename);let o="",s=[],a=0;const u=r.createReadStream(n,{encoding:"utf8"});function c(t,n){try{const n=JSON.parse(t);(function(t){if(!t)return;if("object"!=typeof t)return;const n=new Date(t.timestamp);if(e.from&&ne.until||e.level&&e.level!==t.level)return;return!0})(n)&&function(t){if(e.rows&&s.length>=e.rows&&"desc"!==e.order)return void(u.readable&&u.destroy());e.fields&&(t=e.fields.reduce((e,n)=>(e[n]=t[n],e),{}));"desc"===e.order&&s.length>=e.rows&&s.shift();s.push(t)}(n)}catch(e){n||u.emit("error",e)}}u.on("error",e=>{if(u.readable&&u.destroy(),t)return"ENOENT"!==e.code?t(e):t(null,s)}),u.on("data",t=>{const n=(t=(o+t).split(/\n+/)).length-1;let r=0;for(;r=e.start)&&c(t[r]),a++;o=t[n]}),u.on("close",()=>{o&&c(o,!0),"desc"===e.order&&(s=s.reverse()),t&&t(null,s)})}stream(e={}){const t=i.join(this.dirname,this.filename),n=new u,r={file:t,start:e.start};return n.destroy=_(r,(e,t)=>{if(e)return n.emit("error",e);try{n.emit("data",t),t=JSON.parse(t),n.emit("log",t)}catch(e){n.emit("error",e)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,t)=>{if(e)return this.emit("error",e);d("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){const t=this._getFile(),n=i.join(this.dirname,t);r.stat(n,(r,i)=>r&&"ENOENT"===r.code?(d("ENOENT ok",n),this.filename=t,e(null,0)):r?(d(`err ${r.code} ${n}`),e(r)):!i||this._needsNewFile(i.size)?this._incFile(()=>this.stat(e)):(this.filename=t,void e(null,i.size)))}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=(()=>{})){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){const t=i.join(this.dirname,this.filename);d("create stream start",t,this.options);const n=r.createWriteStream(t,this.options).on("error",e=>d(e)).on("close",()=>d("close",n.path,n.bytesWritten)).on("open",()=>{d("file open ok",t),this.emit("open",t),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new c,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});if(d("create stream ok",t),this.zippedArchive){const e=s.createGzip();return e.pipe(n),e}return n}_incFile(e){d("_incFile",this.filename);const t=i.extname(this._basename),n=i.basename(this._basename,t);this.tailable?this._checkMaxFilesTailable(t,n,e):(this._created+=1,this._checkMaxFilesIncrementing(t,n,e))}_getFile(){const e=i.extname(this._basename),t=i.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created,r=!this.tailable&&this._created?`${t}${n}${e}`:`${t}${e}`;return this.zippedArchive&&!this.tailable?r+".gz":r}_checkMaxFilesIncrementing(e,t,n){if(!this.maxFiles||this._created1;n--)s.push(function(n,o){let s=`${t}${n-1}${e}${a}`;const u=i.join(this.dirname,s);r.exists(u,c=>{if(!c)return o(null);s=`${t}${n}${e}${a}`,r.rename(u,i.join(this.dirname,s),o)})}.bind(this,n));o(s,()=>{r.rename(i.join(this.dirname,`${t}${e}`),i.join(this.dirname,`${t}1${e}${a}`),n)})}_createLogDirIfNotExist(e){r.existsSync(e)||r.mkdirSync(e,{recursive:!0})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(i.default,e,t)};var r=o(n(322)),i=o(n(326));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(104)),i=s(n(50)),o=s(n(58));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((e,t,n)=>{var o=(0,r.default)(t)?[]:{};e(t,(e,t,n)=>{(0,i.default)(e)((e,...r)=>{r.length<2&&([r]=r),o[t]=r,n(e)})},e=>n(e,o))},3),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.isAsync)(e))return function(...t){const n=t.pop();return a(e.apply(this,t),n)};return(0,r.default)((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return a(r,n);n(null,r)}))};var r=s(n(324)),i=s(n(325)),o=n(50);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then(e=>{u(t,null,e)},e=>{u(t,e&&e.message?e:new Error(e))})}function u(e,t,n){try{e(t,n)}catch(e){(0,i.default)(e=>{throw e},e)}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var n=t.pop();return e.call(this,t,n)}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=s,t.wrap=a;var r,i=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,o=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function s(e){setTimeout(e,0)}function a(e){return(t,...n)=>e(()=>t(...n))}r=i?setImmediate:o?process.nextTick:s,t.default=a(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(164)),i=o(n(58));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,n){return(0,r.default)(e,1,t,n)}),3),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(165)),i=c(n(328)),o=c(n(166)),s=n(50),a=c(n(330)),u=c(n(105));function c(e){return e&&e.__esModule?e:{default:e}}t.default=e=>(t,n,c)=>{if(c=(0,r.default)(c),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return c(null);if((0,s.isAsyncGenerator)(t))return(0,a.default)(t,e,n,c);if((0,s.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,n,c);var l=(0,i.default)(t),d=!1,f=!1,_=0,h=!1;function E(e,t){if(!f)if(_-=1,e)d=!0,c(e);else if(!1===e)d=!0,f=!0;else{if(t===u.default||d&&_<=0)return d=!0,c(null);h||p()}}function p(){for(h=!0;_=t||a||i||(a=!0,e.next().then(({value:e,done:t})=>{if(!s&&!i){if(a=!1,t)return i=!0,void(u<=0&&r(null));u++,n(e,c,d),c++,l()}}).catch(f))}function d(e,t){if(u-=1,!s)return e?f(e):!1===e?(i=!0,void(s=!0)):t===o.default||i&&u<=0?(i=!0,r(null)):void l()}function f(e){s||(a=!1,i=!0,r(e))}l()};var r,i=n(105),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,n,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=i,r=a,s.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return a(this,function(e){for(var t=1;t */ -var r=n(39),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(106),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function _(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(null!==t){var n=e[f].read();null!==n&&(e[l]=null,e[s]=null,e[a]=null,t(_(n,!1)))}}function E(e){process.nextTick(h,e)}var p=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(r={get stream(){return this[f]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(_(void 0,!0));if(this[f].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[u]?n(e[u]):t(_(void 0,!0))}))}));var n,r=this[l];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(_(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(_(i,!1));n=new Promise(this[d])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[f].destroy(null,(function(e){e?n(e):t(_(void 0,!0))}))}))})),r),p);e.exports=function(e){var t,n=Object.create(g,(i(t={},f,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[f].read();r?(n[l]=null,n[s]=null,n[a]=null,e(_(r,!1))):(n[s]=e,n[a]=t)},writable:!0}),t));return n[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[a];return null!==t&&(n[l]=null,n[s]=null,n[a]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[l]=null,n[s]=null,n[a]=null,r(_(void 0,!0))),n[c]=!0})),e.on("readable",E.bind(null,n)),n}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,u,"next",e)}function u(e){r(s,i,o,a,u,"throw",e)}a(void 0)}))}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(41).codes.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,n){var r;if(t&&"function"==typeof t.next)r=t;else if(t&&t[Symbol.asyncIterator])r=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new a("iterable",["Iterable"],t);r=t[Symbol.iterator]()}var u=new e(function(e){for(var t=1;t0,(function(e){r||(r=e),e&&s.forEach(c),o||(s.forEach(c),i(r))}))}));return t.reduce(l)}},function(e,t,n){var r=n(338)((function e(t,n){return(n=n||{}).namespace=t,n.prod=!0,n.dev=!1,n.force||e.force?e.yep(n):e.nope(n)}));e.exports=r},function(e,t){var n=[],r=[],i=function(){};function o(e){return!~n.indexOf(e)&&(n.push(e),!0)}function s(e){i=e}function a(e){for(var t=[],r=0;r{const n=Buffer.alloc(65536),a=new i("utf8"),u=new o;let c="",l=0,d=0;return-1===e.start&&delete e.start,u.readable=!0,u.destroy=()=>{u.destroyed=!0,u.emit("end"),u.emit("close")},r.open(e.file,"a+","0644",(i,o)=>{if(i)return t?t(i):u.emit("error",i),void u.destroy();!function i(){if(!u.destroyed)return r.read(o,n,0,n.length,l,(r,o)=>{if(r)return t?t(r):u.emit("error",r),void u.destroy();if(!o)return c&&((null==e.start||d>e.start)&&(t?t(null,c):u.emit("line",c)),d++,c=""),setTimeout(i,1e3);let s=a.write(n.slice(0,o));t||u.emit("data",s),s=(c+s).split(/\n+/);const f=s.length-1;let _=0;for(;_e.start)&&(t?t(null,s[_]):u.emit("line",s[_])),d++;return c=s[f],l+=o,i()});r.close(o,s)}()}),t?u.destroy:u}},function(e,t,n){"use strict";const r=n(42),i=n(43),{Stream:o}=n(59),s=n(49);e.exports=class extends s{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,(t,n)=>{n&&200!==n.statusCode&&(t=new Error("Invalid HTTP Status Code: "+n.statusCode)),t?this.emit("warn",t):this.emit("logged",e)}),t&&setImmediate(t)}query(e,t){"function"==typeof e&&(t=e,e={}),(e={method:"query",params:this.normalizeQuery(e)}).params.path&&(e.path=e.params.path,delete e.params.path),e.params.auth&&(e.auth=e.params.auth,delete e.params.auth),this._request(e,(e,n,r)=>{if(n&&200!==n.statusCode&&(e=new Error("Invalid HTTP Status Code: "+n.statusCode)),e)return t(e);if("string"==typeof r)try{r=JSON.parse(r)}catch(e){return t(e)}t(null,r)})}stream(e={}){const t=new o;(e={method:"stream",params:e}).params.path&&(e.path=e.params.path,delete e.params.path),e.params.auth&&(e.auth=e.params.auth,delete e.params.auth);let n="";const r=this._request(e);return t.destroy=()=>r.destroy(),r.on("data",e=>{const r=(e=(n+e).split(/\n+/)).length-1;let i=0;for(;it.emit("error",e)),t}_request(e,t){const n=(e=e||{}).auth||this.auth,o=e.path||this.path||"";delete e.auth,delete e.path;const s=Object.assign({},this.headers);n&&n.bearer&&(s.Authorization="Bearer "+n.bearer);const a=(this.ssl?i:r).request({...this.options,method:"POST",host:this.host,port:this.port,path:"/"+o.replace(/^\//,""),headers:s,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});a.on("error",t),a.on("response",e=>e.on("end",()=>t(null,e)).resume()),a.end(Buffer.from(JSON.stringify(e),"utf8"))}}},function(e,t,n){"use strict";const r=n(174),{MESSAGE:i}=n(3),o=n(30),s=n(49);e.exports=class extends s{constructor(e={}){if(super(e),!e.stream||!r(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=e.eol||o.EOL}log(e,t){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode)return this._stream.write(e),void(t&&t());this._stream.write(`${e[i]}${this.eol}`),t&&t()}}},function(e,t,n){"use strict";const{Stream:r,Transform:i}=n(59),o=n(108),{LEVEL:s,SPLAT:a}=n(3),u=n(174),c=n(176),l=n(180),d=n(163),f=n(346),{warn:_}=n(157),h=n(107),E=/%[scdjifoO%]/g;class p extends i{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){const t=this;return Object.create(t,{write:{value:function(n){const r=Object.assign({},e,n);n instanceof Error&&(r.stack=n.stack,r.message=n.message),t.write(r)}}})}configure({silent:e,format:t,defaultMeta:r,levels:i,level:o="info",exitOnError:s=!0,transports:a,colors:u,emitErrs:d,formatters:f,padLevels:_,rewriters:E,stripColors:p,exceptionHandlers:g,rejectionHandlers:R}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||n(89)(),this.defaultMeta=r||null,this.levels=i||this.levels||h.npm.levels,this.level=o,this.exceptions=new c(this),this.rejections=new l(this),this.profilers={},this.exitOnError=s,a&&(a=Array.isArray(a)?a:[a]).forEach(e=>this.add(e)),u||d||f||_||E||p)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"));g&&this.exceptions.handle(g),R&&this.rejections.handle(R)}isLevelEnabled(e){const t=g(this.levels,e);if(null===t)return!1;const n=g(this.levels,this.level);if(null===n)return!1;if(!this.transports||0===this.transports.length)return n>=t;return-1!==this.transports.findIndex(e=>{let r=g(this.levels,e.level);return null===r&&(r=n),r>=t})}log(e,t,...n){if(1===arguments.length)return e[s]=e.level,this._addDefaultMeta(e),this.write(e),this;if(2===arguments.length)return t&&"object"==typeof t?(t[s]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(this.write({[s]:e,level:e,message:t}),this);const[r]=n;if("object"==typeof r&&null!==r){if(!(t&&t.match&&t.match(E))){const i=Object.assign({},this.defaultMeta,r,{[s]:e,[a]:n,level:e,message:t});return r.message&&(i.message=`${i.message} ${r.message}`),r.stack&&(i.stack=r.stack),this.write(i),this}}return this.write(Object.assign({},this.defaultMeta,{[s]:e,[a]:n,level:e,message:t})),this}_transform(e,t,n){if(this.silent)return n();e[s]||(e[s]=e.level),this.levels[e[s]]||0===this.levels[e[s]]||console.error("[winston] Unknown logger level: %s",e[s]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports %j",e);try{this.push(this.format.transform(e,this.format.options))}catch(e){throw e}finally{n()}}_final(e){const t=this.transports.slice();o(t,(e,t)=>{if(!e||e.finished)return setImmediate(t);e.once("finish",t),e.end()},e)}add(e){const t=!u(e)||e.log.length>2?new d({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!u(e)||e.log.length>2)&&(t=this.transports.filter(t=>t.transport===e)[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.clear(),this.emit("close"),this}setLevels(){_.deprecated("setLevels")}query(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};const n={},r=Object.assign({},e.query||{});o(this.transports.filter(e=>!!e.query),(function(t,i){!function(t,n){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(r)),t.query(e,(r,i)=>{if(r)return n(r);"function"==typeof t.formatResults&&(i=t.formatResults(i,e.format)),n(null,i)})}(t,(e,r)=>{i&&((r=e||r)&&(n[t.name]=r),i()),i=null})}),()=>t(null,n))}stream(e={}){const t=new r,n=[];return t._streams=n,t.destroy=()=>{let e=n.length;for(;e--;)n[e].destroy()},this.transports.filter(e=>!!e.stream).forEach(r=>{const i=r.stream(e);i&&(n.push(i),i.on("log",e=>{e.transport=e.transport||[],e.transport.push(r.name),t.emit("log",e)}),i.on("error",e=>{e.transport=e.transport||[],e.transport.push(r.name),t.emit("error",e)}))}),t}startTimer(){return new f(this)}profile(e,...t){const n=Date.now();if(this.profilers[e]){const r=this.profilers[e];delete this.profilers[e],"function"==typeof t[t.length-2]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());const i="object"==typeof t[t.length-1]?t.pop():{};return i.level=i.level||"info",i.durationMs=n-r,i.message=i.message||e,this.write(i)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"))}_onEvent(e,t){t["__winston"+e]||(t["__winston"+e]=function(n){"error"!==e||this.transports.includes(t)||this.add(t),this.emit(e,n,t)}.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}}function g(e,t){const n=e[t];return n||0===n?n:null}Object.defineProperty(p.prototype,"transports",{configurable:!1,enumerable:!0,get(){const{pipes:e}=this._readableState;return Array.isArray(e)?e:[e].filter(Boolean)}}),e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(104)),i=l(n(105)),o=l(n(164)),s=l(n(165)),a=l(n(166)),u=l(n(50)),c=l(n(58));function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){n=(0,s.default)(n);var r=0,o=0,{length:u}=e,c=!1;function l(e,t){!1===e&&(c=!0),!0!==c&&(e?n(e):++o!==u&&t!==i.default||n(null))}for(0===u&&n(null);re(t,r)},e.exports=t.default},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){if("string"==typeof e.displayName&&e.constructor.name)return e.displayName;if("string"==typeof e.name&&e.name)return e.name;if("object"==typeof e&&e.constructor&&"string"==typeof e.constructor.name)return e.constructor.name;var t=e.toString(),n=r.call(e).slice(8,-1);return(t="Function"===n?t.substring(t.indexOf("(")+1,t.indexOf(")")):n)||"anonymous"}},function(e,t,n){"use strict";e.exports=class{constructor(e){if(!e)throw new Error("Logger is required for profiling.");this.logger=e,this.start=Date.now()}done(...e){"function"==typeof e[e.length-1]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());const t="object"==typeof e[e.length-1]?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}}},function(e,t,n){"use strict";const r=n(175);e.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){const n=(t=Object.assign({},t||this.options)).transports||this.options.transports;t.transports=n?n.slice():[];const i=r(t);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((e,t)=>this._removeLogger(t))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(35),s=i(n(18)),a=n(14),u=n(60),c=n(109);onNet(c.PhoneEvents.FETCH_CREDENTIALS,()=>{const e=(0,o.getSource)(),t=s.default.getPlayer(e).getPhoneNumber();emitNet(c.PhoneEvents.SEND_CREDENTIALS,e,t)}),a.config.general.useResourceIntegration||on("playerJoining",()=>r(void 0,void 0,void 0,(function*(){const e=(0,o.getSource)();yield s.default.handleNewPlayerJoined(e)}))),on("playerDropped",()=>r(void 0,void 0,void 0,(function*(){const e=(0,o.getSource)();try{yield s.default.handleUnloadPlayerEvent(e)}catch(t){u.playerLogger.debug(e+" failed to unload, likely was never loaded in the first place.")}}))),a.config.general.useResourceIntegration||on("onServerResourceStart",e=>r(void 0,void 0,void 0,(function*(){if(e===GetCurrentResourceName()){const e=getPlayers();for(const t of e)yield s.default.handleNewPlayerJoined(parseInt(t))}})))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.findOrGeneratePhoneNumber=void 0;const o=n(14),s=i(n(22)),a=n(181),u=n(60);t.findOrGeneratePhoneNumber=function(e){return r(this,void 0,void 0,(function*(){const t=`SELECT ${o.config.database.phoneNumberColumn} FROM ${o.config.database.playerTable} WHERE ${o.config.database.identifierColumn} = ? LIMIT 1`,[n]=yield s.default._rawExec(t,[e]);u.playerLogger.debug("Find user for number generation data >"),u.playerLogger.debug(n);const r=n;if(r&&null!==r[0][o.config.database.phoneNumberColumn])return r[0][o.config.database.phoneNumberColumn];u.playerLogger.debug("Phone number was returned as null, generating new number");const i=yield(0,a.generateUniquePhoneNumber)();u.playerLogger.debug("Phone number generated > "+i);const c=`UPDATE ${o.config.database.playerTable} SET ${o.config.database.phoneNumberColumn} = ? WHERE ${o.config.database.identifierColumn} = ?`;return yield s.default._rawExec(c,[i,e]),i}))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withProfile=void 0;const i=n(10).mainLogger.child({module:"profiler"}),o=GetCurrentResourceName();t.withProfile=(e,...t)=>r(void 0,void 0,void 0,(function*(){const n=process.hrtime.bigint();ScheduleResourceTick(o);const r=yield e(...t),s=process.hrtime.bigint(),a=Number(s-n)/1e6;return i.info(`Executed '${e.name} (${[...t].join(", ")}) in ${a}ms'`),r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Player=void 0;t.Player=class{constructor({source:e,identifier:t,phoneNumber:n,username:r}){this.source=e,this._identifier=t,this._phoneNumber=n,this.username=r}getIdentifier(){return this._identifier}setIdentifier(e){return this._identifier=e,this}getFirstName(){return this._firstname}setFirstName(e){return this._firstname=e,this}getLastName(){return this._lastname}setLastName(e){return this._lastname=e,this}getName(){return this._firstname&&this._lastname?`${this._firstname} ${this._lastname}`:null}getPhoneNumber(){return this._phoneNumber}setPhoneNumber(e){return this._phoneNumber=e,this}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPlayerGameLicense=void 0;const r=n(14);t.getPlayerGameLicense=e=>{const t=getPlayerIdentifiers(e.toString());let n;for(const e of t)e.includes(r.config.database.identifierType+":")&&(n=r.config.database.useIdentifierPrefix?e:e.split(":")[1]);return n||null}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerRepo=void 0;const o=n(14),s=i(n(22));class a{fetchIdentifierFromPhoneNumber(e){return r(this,void 0,void 0,(function*(){const t=`SELECT ${o.config.database.identifierColumn} FROM ${o.config.database.playerTable} WHERE ${o.config.database.phoneNumberColumn} = ?`,[n]=yield s.default._rawExec(t,[e]);return n[0][o.config.database.identifierColumn]||null}))}}t.PlayerRepo=a,t.default=new a},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._MarketplaceDB=void 0;const o=i(n(22));class s{addListing(e,t,n,i,s){return r(this,void 0,void 0,(function*(){const[r]=yield o.default._rawExec("INSERT INTO npwd_marketplace_listings (identifier, username, name, number, title, url, description) VALUES (?, ?, ?, ?, ?, ?, ?)",[e,t,n,i,s.title,s.url,s.description]);return r.insertId}))}fetchListings(){return r(this,void 0,void 0,(function*(){const[e]=yield o.default._rawExec("SELECT * FROM npwd_marketplace_listings WHERE reported = 0 ORDER BY id DESC");return e}))}deleteListing(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_marketplace_listings WHERE id = ? AND identifier = ?",[e,t])}))}deleteListingsOnDrop(e){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_marketplace_listings WHERE identifier = ? AND reported = 0",[e])}))}getListing(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT * FROM npwd_marketplace_listings WHERE id = ?",[e]);return t[0]}))}getListingIdsByIdentifier(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT id FROM npwd_marketplace_listings WHERE identifier = ?",[e]);return t}))}reportListing(e){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("UPDATE npwd_marketplace_listings SET reported = 1 WHERE id = ?",[e.id])}))}doesListingExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield o.default._rawExec("SELECT * FROM npwd_marketplace_listings WHERE title = ? AND identifier = ?",[e.title,t]);return n.length>0}))}doesReportExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield o.default._rawExec("SELECT * FROM npwd_marketplace_listings WHERE id = ? AND username = ? AND reported = 1",[e,t]);return n.length>0}))}}t._MarketplaceDB=s;const a=new s;t.default=a},function(e,t,n){e.exports=n(356)},function(e,t,n){"use strict";var r=n(15),i=n(187),o=n(357),s=n(196);function a(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=a(n(111));u.Axios=o,u.create=function(e){return a(s(u.defaults,e))},u.Cancel=n(197),u.CancelToken=n(376),u.isCancel=n(195),u.all=function(e){return Promise.all(e)},u.spread=n(377),u.isAxiosError=n(378),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(15),i=n(110),o=n(358),s=n(359),a=n(196),u=n(375),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var l=[s,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(o),i=Promise.resolve(e);l.length;)i=i.then(l.shift(),l.shift());return i}for(var d=e;n.length;){var f=n.shift(),_=n.shift();try{d=f(d)}catch(e){_(e);break}}try{i=s(d)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},l.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=l},function(e,t,n){"use strict";var r=n(15);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(15),i=n(360),o=n(195),s=n(111);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(15),i=n(111);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(15),i=n(188),o=n(363),s=n(110),a=n(189),u=n(366),c=n(367),l=n(113);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,_=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var E=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(E+":"+p)}var g=a(e.baseURL,e.url);function R(){if(h){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,o={data:_&&"text"!==_&&"json"!==_?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),s(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=R:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(R)},h.onabort=function(){h&&(n(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var A=(e.withCredentials||c(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;A&&(f[e.xsrfHeaderName]=A)}"setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),_&&"json"!==_&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(15);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(15),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){"use strict";var r=n(15);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(15),i=n(188),o=n(189),s=n(110),a=n(42),u=n(43),c=n(190).http,l=n(190).https,d=n(24),f=n(85),_=n(194),h=n(113),E=n(112),p=/https:?/;e.exports=function(e){return new Promise((function(t,n){var g=function(e){t(e)},R=function(e){n(e)},A=e.data,T=e.headers;if("User-Agent"in T||"user-agent"in T?T["User-Agent"]||T["user-agent"]||(delete T["User-Agent"],delete T["user-agent"]):T["User-Agent"]="axios/"+_.version,A&&!r.isStream(A)){if(Buffer.isBuffer(A));else if(r.isArrayBuffer(A))A=Buffer.from(new Uint8Array(A));else{if(!r.isString(A))return R(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));A=Buffer.from(A,"utf-8")}T["Content-Length"]=A.length}var m=void 0;e.auth&&(m=(e.auth.username||"")+":"+(e.auth.password||""));var N=o(e.baseURL,e.url),I=d.parse(N),O=I.protocol||"http:";if(!m&&I.auth){var v=I.auth.split(":");m=(v[0]||"")+":"+(v[1]||"")}m&&delete T.Authorization;var b=p.test(O),S=b?e.httpsAgent:e.httpAgent,y={path:s(I.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:T,agent:S,agents:{http:e.httpAgent,https:e.httpsAgent},auth:m};e.socketPath?y.socketPath=e.socketPath:(y.hostname=I.hostname,y.port=I.port);var w,C=e.proxy;if(!C&&!1!==C){var D=O.slice(0,-1)+"_proxy",L=process.env[D]||process.env[D.toUpperCase()];if(L){var M=d.parse(L),B=process.env.no_proxy||process.env.NO_PROXY,U=!0;if(B)U=!B.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||("."===e[0]&&I.hostname.substr(I.hostname.length-e.length)===e||I.hostname===e))}));if(U&&(C={host:M.hostname,port:M.port,protocol:M.protocol},M.auth)){var P=M.auth.split(":");C.auth={username:P[0],password:P[1]}}}}C&&(y.headers.host=I.hostname+(I.port?":"+I.port:""),function e(t,n,r){if(t.hostname=n.host,t.host=n.host,t.port=n.port,t.path=r,n.auth){var i=Buffer.from(n.auth.username+":"+n.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.beforeRedirect=function(t){t.headers.host=t.host,e(t,n,t.href)}}(y,C,O+"//"+I.hostname+(I.port?":"+I.port:"")+y.path));var F=b&&(!C||p.test(C.protocol));e.transport?w=e.transport:0===e.maxRedirects?w=F?u:a:(e.maxRedirects&&(y.maxRedirects=e.maxRedirects),w=F?l:c),e.maxBodyLength>-1&&(y.maxBodyLength=e.maxBodyLength);var G=w.request(y,(function(t){if(!G.aborted){var n=t,o=t.req||G;if(204!==t.statusCode&&"HEAD"!==o.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(f.createUnzip()),delete t.headers["content-encoding"]}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:o};if("stream"===e.responseType)s.data=n,i(g,R,s);else{var a=[],u=0;n.on("data",(function(t){a.push(t),u+=t.length,e.maxContentLength>-1&&u>e.maxContentLength&&(n.destroy(),R(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o)))})),n.on("error",(function(t){G.aborted||R(E(t,e,null,o))})),n.on("end",(function(){var t=Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=r.stripBOM(t))),s.data=t,i(g,R,s)}))}}}));if(G.on("error",(function(t){G.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||R(E(t,e,null,G))})),e.timeout){var x=parseInt(e.timeout,10);if(isNaN(x))return void R(h("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",G));G.setTimeout(x,(function(){G.abort(),R(h("timeout of "+x+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",G))}))}e.cancelToken&&e.cancelToken.promise.then((function(e){G.aborted||(G.abort(),R(e))})),r.isStream(A)?A.on("error",(function(t){R(E(t,e,null,G))})).pipe(G):G.end(A)}))}},function(e,t,n){var r;e.exports=function(){if(!r){try{r=n(76)("follow-redirects")}catch(e){}"function"!=typeof r&&(r=function(){})}r.apply(null,arguments)}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(192)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return s(e,t,o,"day");if(t>=i)return s(e,t,i,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){const r=n(193),i=n(7);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(373);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),e.exports=n(192)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},function(e,t,n){"use strict";const r=n(30),i=n(193),o=n(374),{env:s}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(0===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const n=a||0;if("dumb"===s.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in s)||"codeship"===s.CI_NAME?1:n;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:n}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?a=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=1),"FORCE_COLOR"in s&&(a="true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(parseInt(s.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(c(e,e&&e.isTTY))},stdout:u(c(!0,i.isatty(1))),stderr:u(c(!0,i.isatty(2)))}},function(e,t,n){"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||rr[i])return!0;if(n[i]0;){var o=r[i],s=t[o];if(s){var a=e[o],u=void 0===a||s(a,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},function(e,t,n){"use strict";var r=n(197);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=t.Delay=void 0;t.Delay=e=>new Promise(t=>setTimeout(t,e));t.uuidv4=()=>{let e="";for(let t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(198),o=n(35),s=r(n(381)),a=n(199),u=n(36);(0,u.onNetPromise)(i.CallEvents.INITIALIZE_CALL,(e,t)=>{s.default.handleInitializeCall(e,t).catch(e=>{t({status:"error",errorMsg:"SERVER_ERROR"}),a.callLogger.error("Error occured handling init call: "+e.message)})}),(0,o.onNetTyped)(i.CallEvents.ACCEPT_CALL,({transmitterNumber:e})=>{const t=(0,o.getSource)();s.default.handleAcceptCall(t,e).catch(t=>a.callLogger.error(`Error occured in accept call event (${e}), Error: ${t.message}`))}),(0,o.onNetTyped)(i.CallEvents.REJECTED,e=>{const t=(0,o.getSource)();s.default.handleRejectCall(t,e.transmitterNumber).catch(t=>a.callLogger.error(`Error occured in rejectcall event (${e.transmitterNumber}), Error: ${t.message}`))}),(0,u.onNetPromise)(i.CallEvents.END_CALL,(e,t)=>{s.default.handleEndCall(e,t).catch(n=>{a.callLogger.error(`Error occured in end call event (${e.data.transmitterNumber}), Error: ${n.message}`),t({status:"error",errorMsg:"SERVER_ERROR"})})}),(0,u.onNetPromise)(i.CallEvents.FETCH_CALLS,(e,t)=>{s.default.handleFetchCalls(e,t).catch(e=>{t({status:"error",errorMsg:"SERVER_ERROR"}),a.callLogger.error("Error occured in fetch call event, Error: "+e.message)})})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(182)),s=n(198),a=i(n(382)),u=n(414),c=i(n(18)),l=n(199),d=n(35),f=n(10);t.default=new class{constructor(){this.callMap=new o.default,this.callsDB=a.default,l.callLogger.debug("Call service started")}setCallInMap(e,t){this.callMap.set(e,t),l.callLogger.debug(`Call obj set with key ${e}, value:`),l.callLogger.debug(t)}handleInitializeCall(e,t){return r(this,void 0,void 0,(function*(){const n=c.default.getPlayer(e.source),r=n.getPhoneNumber(),i=yield c.default.getIdentifierFromPhoneNumber(e.data.receiverNumber,!0);if(!i)return t({status:"ok",data:{transmitter:r,isTransmitter:!0,receiver:e.data.receiverNumber,isUnavailable:!0,is_accepted:!1}});const o=Math.floor((new Date).getTime()/1e3),a=(0,u.v4)(),f=c.default.getPlayerFromIdentifier(i);if(!f)return t({status:"ok",data:{is_accepted:!1,transmitter:r,isTransmitter:!0,receiver:e.data.receiverNumber,isUnavailable:!0}});l.callLogger.debug("Receiving Identifier: "+i),l.callLogger.debug(`Receiving source: ${f.source} `);const _={identifier:a,transmitter:r,transmitterSource:n.source,receiver:e.data.receiverNumber,receiverSource:f.source,start:o.toString(),is_accepted:!1};this.setCallInMap(_.transmitter,_);try{yield this.callsDB.saveCall(_)}catch(e){l.callLogger.error(`Unable to save call object for transmitter number ${r}. Error: ${e.message}`),t({status:"error",errorMsg:"DATABASE_ERROR"})}t({status:"ok",data:{is_accepted:!1,transmitter:r,receiver:e.data.receiverNumber,isTransmitter:!0}}),(0,d.emitNetTyped)(s.CallEvents.START_CALL,{is_accepted:!1,transmitter:r,receiver:e.data.receiverNumber,isTransmitter:!1},f.source)}))}handleAcceptCall(e,t){return r(this,void 0,void 0,(function*(){const n=this.callMap.get(t);n.is_accepted=!0;const r=e;yield this.callsDB.updateCall(n,!0,null),l.callLogger.debug(`Call with key ${t} was updated to be accepted`),(0,d.emitNetTyped)(s.CallEvents.WAS_ACCEPTED,{is_accepted:!0,transmitter:t,receiver:n.receiver,isTransmitter:!1,channelId:r},n.receiverSource),f.mainLogger.debug(n),(0,d.emitNetTyped)(s.CallEvents.WAS_ACCEPTED,{is_accepted:!0,transmitter:t,receiver:n.receiver,isTransmitter:!0,channelId:r},n.transmitterSource)}))}handleFetchCalls(e,t){return r(this,void 0,void 0,(function*(){try{const n=c.default.getPlayer(e.source).getPhoneNumber(),r=yield this.callsDB.fetchCalls(n);t({status:"ok",data:r})}catch(e){t({status:"error",errorMsg:"DATABASE_ERROR"}),console.error("Error while fetching calls, "+e.message)}}))}handleRejectCall(e,t){return r(this,void 0,void 0,(function*(){const e=this.callMap.get(t),n=Math.floor((new Date).getTime()/1e3);e?(emitNet(s.CallEvents.WAS_REJECTED,e.transmitterSource),emitNet(s.CallEvents.WAS_REJECTED,e.receiverSource),yield this.callsDB.updateCall(e,!1,n),this.callMap.delete(t)):l.callLogger.error(`Call with transmitter number ${t} does not exist in current calls map!`)}))}handleEndCall(e,t){return r(this,void 0,void 0,(function*(){const n=e.data.transmitterNumber,r=Math.floor((new Date).getTime()/1e3),i=this.callMap.get(n);if(!i)return l.callLogger.error(`Call with transmitter number ${n} does not exist in current calls map!`),t({status:"error",errorMsg:"DOES_NOT_EXIST"});i&&(emitNet(s.CallEvents.WAS_ENDED,i.receiverSource),emitNet(s.CallEvents.WAS_ENDED,i.transmitterSource)),t({status:"ok"}),yield this.callsDB.updateCall(i,null==i?void 0:i.is_accepted,r),this.callMap.delete(n)}))}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsRepo=void 0;const o=n(383),s=i(n(22));class a{saveCall(e){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("INSERT INTO npwd_calls (identifier, transmitter, receiver, `start`) VALUES (?, ?, ?, ?)",[e.identifier,e.transmitter,e.receiver,e.start])}))}updateCall(e,t,n){return r(this,void 0,void 0,(function*(){yield s.default._rawExec("UPDATE npwd_calls SET is_accepted=?, end=? WHERE identifier = ?",[t,n,e.identifier])}))}fetchCalls(e,t=o.FetchDefaultLimits.CALLS_FETCH_LIMIT){return r(this,void 0,void 0,(function*(){const[n]=yield s.default._rawExec("SELECT * FROM npwd_calls WHERE receiver = ? OR transmitter = ? ORDER BY id DESC LIMIT ?",[e,e,t]);return n}))}}t.CallsRepo=a,t.default=new a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchDefaultLimits=void 0,function(e){e[e.NOTES_FETCH_LIMIT=20]="NOTES_FETCH_LIMIT",e[e.CALLS_FETCH_LIMIT=50]="CALLS_FETCH_LIMIT",e[e.CONTACTS_FETCH_LIMIT=20]="CONTACTS_FETCH_LIMIT"}(t.FetchDefaultLimits||(t.FetchDefaultLimits={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(385),s=i(n(386)),a=n(200),u=n(36);(0,u.onNetPromise)(o.NotesEvents.ADD_NOTE,(e,t)=>{s.default.handleAddNote(e,t).catch(n=>{a.notesLogger.error(`Error occured in add note event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"UNKNOWN_ERROR"})})}),(0,u.onNetPromise)(o.NotesEvents.FETCH_ALL_NOTES,(e,t)=>{s.default.handleFetchNotes(e,t).catch(n=>{a.notesLogger.error(`Error occurred in fetch note event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"UNKNOWN_ERROR"})})}),(0,u.onNetPromise)(o.NotesEvents.DELETE_NOTE,(e,t)=>r(void 0,void 0,void 0,(function*(){s.default.handleDeleteNote(e,t).catch(n=>{a.notesLogger.error(`Error occured in delete note event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"UNKNOWN_ERROR"})})}))),(0,u.onNetPromise)(o.NotesEvents.UPDATE_NOTE,(e,t)=>r(void 0,void 0,void 0,(function*(){s.default.handleUpdateNote(e,t).catch(n=>{a.notesLogger.error(`Error occured in fetch note event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"UNKNOWN_ERROR"})})})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotesEvents=void 0,function(e){e.ADD_NOTE="npwd:addNote",e.FETCH_ALL_NOTES="npwd:fetchAllNotes",e.DELETE_NOTE="npwd:deleteNote",e.UPDATE_NOTE="npwd:updateNote",e.ADD_NOTE_EXPORT="npwd:addNoteExport"}(t.NotesEvents||(t.NotesEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(18)),s=i(n(387)),a=n(200);const u=new class{constructor(){this.notesDB=s.default,a.notesLogger.debug("Notes service started")}handleAddNote(e,t){return r(this,void 0,void 0,(function*(){a.notesLogger.debug("Handling add note, note:"),a.notesLogger.debug(e.data);const n=o.default.getIdentifier(e.source);try{const r=yield this.notesDB.addNote(n,e.data);t({status:"ok",data:{id:r,content:e.data.content,title:e.data.title}})}catch(e){a.notesLogger.error("Error in handleAddNote, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleFetchNotes(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{const e=yield this.notesDB.fetchNotes(n);t({status:"ok",data:e})}catch(e){a.notesLogger.error("Error in handleFetchNote, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleUpdateNote(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.notesDB.updateNote(e.data,n),t({status:"ok"})}catch(e){a.notesLogger.error("Error in handleUpdateNote, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleDeleteNote(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.notesDB.deleteNote(e.data.id,n),t({status:"ok",data:e.data})}catch(e){a.notesLogger.error("Error in handleDeleteNote, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}};t.default=u},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._NotesDB=void 0;const o=i(n(22));class s{addNote(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield o.default._rawExec("INSERT INTO npwd_notes (identifier, title, content) VALUES (?, ?, ?)",[e,t.title,t.content]);return n.insertId}))}fetchNotes(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT * FROM npwd_notes WHERE identifier = ? ORDER BY id DESC",[e]);return t}))}deleteNote(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_notes WHERE id = ? AND identifier = ?",[e,t])}))}updateNote(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("UPDATE npwd_notes SET title = ?, content = ? WHERE id = ? AND identifier = ?",[e.title,e.content,e.id,t])}))}}t._NotesDB=s;const a=new s;t.default=a},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(389),o=r(n(390)),s=n(201),a=n(36);(0,a.onNetPromise)(i.ContactEvents.GET_CONTACTS,(e,t)=>{o.default.handleFetchContacts(e,t).catch(n=>{s.contactsLogger.error(`Error occured in fetch contacts event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.ContactEvents.ADD_CONTACT,(e,t)=>{o.default.handleAddContact(e,t).catch(n=>{s.contactsLogger.error(`Error occured in fetch contacts event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.ContactEvents.UPDATE_CONTACT,(e,t)=>{o.default.handleUpdateContact(e,t).catch(n=>{s.contactsLogger.error(`Error occured in update contact event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.ContactEvents.DELETE_CONTACT,(e,t)=>{o.default.handleDeleteContact(e,t).catch(n=>{s.contactsLogger.error(`Error occured in delete contact event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactEvents=t.ContactsDatabaseLimits=void 0,function(e){e[e.avatar=255]="avatar",e[e.number=20]="number",e[e.display=255]="display"}(t.ContactsDatabaseLimits||(t.ContactsDatabaseLimits={})),function(e){e.GET_CONTACTS="npwd:getContacts",e.ADD_CONTACT="npwd:addContacts",e.UPDATE_CONTACT="npwd:updateContact",e.DELETE_CONTACT="npwd:deleteContact",e.ADD_CONTACT_EXPORT="npwd:addContactExport"}(t.ContactEvents||(t.ContactEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(18)),s=n(201),a=i(n(391));const u=new class{constructor(){this.contactsDB=a.default,s.contactsLogger.debug("Contacts service started")}handleUpdateContact(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.contactsDB.updateContact(e.data,n),t({status:"ok"})}catch(e){s.contactsLogger.error(`Error in handleUpdateContact (${n}), ${e.message}`),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleDeleteContact(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{yield this.contactsDB.deleteContact(e.data.id,n),t({status:"ok"})}catch(e){t({status:"error",errorMsg:"DB_ERROR"}),s.contactsLogger.error(`Error in handleDeleteContact (${n}), ${e.message}`)}}))}handleAddContact(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{const r=yield this.contactsDB.addContact(n,e.data);t({status:"ok",data:r})}catch(e){s.contactsLogger.error("Error in handleAddContact, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleFetchContacts(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{const e=yield this.contactsDB.fetchAllContacts(n);t({status:"ok",data:e})}catch(e){t({status:"error",errorMsg:"DB_ERROR"}),s.contactsLogger.error(`Error in handleFetchContact (${n}), ${e.message}`)}}))}};t.default=u},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._ContactsDB=void 0;const o=i(n(22));class s{fetchAllContacts(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT * FROM npwd_phone_contacts WHERE identifier = ? ORDER BY display ASC",[e]);return t}))}addContact(e,{display:t,avatar:n,number:i}){return r(this,void 0,void 0,(function*(){const[r]=yield o.default._rawExec("INSERT INTO npwd_phone_contacts (identifier, number, display, avatar) VALUES (?, ?, ?, ?)",[e,i,t,n]);return{id:r.insertId,number:i,avatar:n,display:t}}))}updateContact(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("UPDATE npwd_phone_contacts SET number = ?, display = ?, avatar = ? WHERE id = ? AND identifier = ?",[e.number,e.display,e.avatar,e.id,t])}))}deleteContact(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_phone_contacts WHERE id = ? AND identifier = ?",[e,t])}))}}t._ContactsDB=s;const a=new s;t.default=a},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(393),o=r(n(394)),s=n(202),a=n(36);(0,a.onNetPromise)(i.PhotoEvents.UPLOAD_PHOTO,(e,t)=>{o.default.handleUploadPhoto(e,t).catch(n=>{s.photoLogger.error(`Error occurred in upload photo event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.PhotoEvents.FETCH_PHOTOS,(e,t)=>{o.default.handleFetchPhotos(e,t).catch(n=>{s.photoLogger.error(`Error occurred in upload photo event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,a.onNetPromise)(i.PhotoEvents.DELETE_PHOTO,(e,t)=>{o.default.handleDeletePhoto(e,t).catch(n=>{s.photoLogger.error(`Error occurred in delete photo event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoEvents=void 0,function(e){e.TAKE_PHOTO="npwd:TakePhoto",e.CAMERA_EXITED="npwd:cameraExited",e.NPWD_PHOTO_MODE_STARTED="npwd:PhotoModeStarted",e.NPWD_PHOTO_MODE_ENDED="npwd:PhotoModeEnded",e.TAKE_PHOTO_SUCCESS="npwd:TakePhotoSuccess",e.UPLOAD_PHOTO="npwd:UploadPhoto",e.FETCH_PHOTOS="npwd:FetchPhotos",e.DELETE_PHOTO="npwd:deletePhoto"}(t.PhotoEvents||(t.PhotoEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(18)),s=i(n(395)),a=n(202);const u=new class{constructor(){this.photoDB=s.default,a.photoLogger.debug("Photo service started")}handleUploadPhoto(e,t){return r(this,void 0,void 0,(function*(){try{e.data||t({status:"error",errorMsg:"DB_ERROR"});const n=o.default.getIdentifier(e.source),r=yield this.photoDB.uploadPhoto(n,e.data);t({status:"ok",data:r})}catch(n){a.photoLogger.error("Failed to upload photo, "+n.message,{source:e.source}),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleFetchPhotos(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.photoDB.getPhotosByIdentifier(n);t({status:"ok",data:r})}catch(n){a.photoLogger.error("Failed to fetch photos, "+n.message,{source:e.source}),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleDeletePhoto(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source);yield this.photoDB.deletePhoto(e.data,n),t({status:"ok"})}catch(n){a.photoLogger.error("Failed to delete photo, "+n.message,{source:e.source}),t({status:"error",errorMsg:"DB_ERROR"})}}))}};t.default=u},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._PhotoDB=void 0;const o=i(n(22));class s{uploadPhoto(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield o.default._rawExec("INSERT INTO npwd_phone_gallery (identifier, image) VALUES (?, ?)",[e,t]);return{id:n.insertId,image:t}}))}getPhotosByIdentifier(e){return r(this,void 0,void 0,(function*(){const[t]=yield o.default._rawExec("SELECT id, image FROM npwd_phone_gallery WHERE identifier = ? ORDER BY id DESC",[e]);return t}))}deletePhoto(e,t){return r(this,void 0,void 0,(function*(){yield o.default._rawExec("DELETE FROM npwd_phone_gallery WHERE image = ? AND identifier = ?",[e.image,t])}))}}t._PhotoDB=s;const a=new s;t.default=a},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(35),s=n(203),a=i(n(397)),u=n(205),c=n(36);(0,c.onNetPromise)(s.MessageEvents.FETCH_MESSAGE_CONVERSATIONS,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleFetchMessageConversations(e,t).catch(n=>{u.messagesLogger.error(`Error occurred in fetch message conversations (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.CREATE_MESSAGE_CONVERSATION,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleCreateMessageConversation(e,t).catch(n=>{u.messagesLogger.error(`Error occurred on creating messsage converations (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.FETCH_MESSAGES,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleFetchMessages(e,t).catch(n=>{u.messagesLogger.error(`Error occurred in fetch messages (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.SEND_MESSAGE,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleSendMessage(e,t).catch(n=>{u.messagesLogger.error(`Error occurred while sending message (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.DELETE_CONVERSATION,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleDeleteConversation(e,t).catch(n=>{u.messagesLogger.error(`Error occurred while deleting conversation (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,c.onNetPromise)(s.MessageEvents.DELETE_MESSAGE,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleDeleteMessage(e,t).catch(n=>{u.messagesLogger.error(`Error occurred while deleting message (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),onNet(s.MessageEvents.SET_MESSAGE_READ,e=>r(void 0,void 0,void 0,(function*(){const t=(0,o.getSource)();a.default.handleSetMessageRead(t,e).catch(e=>u.messagesLogger.error(`Error occurred in set message read event (${t}), Error: ${e.message}`))})))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(18)),s=n(203),a=i(n(204)),u=n(205);const c=new class{constructor(){this.messagesDB=a.default,u.messagesLogger.debug("Messages service started")}handleFetchMessageConversations(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getPlayer(e.source).getPhoneNumber(),r=yield(0,u.getFormattedMessageConversations)(n);t({status:"ok",data:r})}catch(e){t({status:"error",errorMsg:"DB_ERROR"}),u.messagesLogger.error("Failed to fetch messages groups, "+e.message)}}))}handleCreateMessageConversation(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getPlayer(e.source),r=yield(0,u.createMessageGroupsFromPhoneNumber)(n.getPhoneNumber(),e.data.targetNumber);if(r.error)return t({status:"error"});if(!r.doesExist)try{const e=o.default.getPlayerFromIdentifier(r.participant);e&&emitNet(s.MessageEvents.CREATE_MESSAGE_CONVERSATION_SUCCESS,e.source,{conversation_id:r.conversationId,phoneNumber:n.getPhoneNumber()})}catch(e){t({status:"error",errorMsg:e.message}),u.messagesLogger.error(e.message)}t({status:"ok",data:{conversation_id:r.conversationId,phoneNumber:r.phoneNumber}})}catch(n){t({status:"error",errorMsg:"DB_ERROR"}),u.messagesLogger.error("Failed to create message group, "+n.message,{source:e.source,e:n})}}))}handleFetchMessages(e,t){return r(this,void 0,void 0,(function*(){try{const n=yield this.messagesDB.getMessages(e.data.conversationId,e.data.page);n.sort((e,t)=>e.id-t.id),t({status:"ok",data:n})}catch(n){t({status:"error",errorMsg:"DB_ERROR"}),u.messagesLogger.error("Failed to fetch messages, "+n.message,{source:e.source})}}))}handleSendMessage(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getPlayer(e.source),r=n.getPhoneNumber(),i=e.data,a=(0,u.getIdentifiersFromParticipants)(i.conversationId),c=n.getIdentifier(),l=yield this.messagesDB.createMessage(c,r,i.conversationId,i.message);t({status:"ok",data:Object.assign(Object.assign({},i),{conversation_id:i.conversationId,author:r,id:l})});for(const e of a)if(e!==n.getPhoneNumber()){const t=yield o.default.getIdentifierByPhoneNumber(e),r=o.default.getPlayerFromIdentifier(t);r&&(emitNet(s.MessageEvents.SEND_MESSAGE_SUCCESS,r.source,i),emitNet(s.MessageEvents.CREATE_MESSAGE_BROADCAST,r.source,{conversationName:n.getPhoneNumber(),conversationId:i.conversationId,message:i.message}))}}catch(n){t({status:"error",errorMsg:n.message}),u.messagesLogger.error("Failed to send message, "+n.message,{source:e.source})}}))}handleSetMessageRead(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e);yield this.messagesDB.setMessageRead(t,n),emitNet(s.MessageEvents.FETCH_MESSAGE_CONVERSATIONS,e)}catch(t){u.messagesLogger.error("Failed to set message as read, "+t.message,{source:e})}}))}handleDeleteConversation(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getPlayer(e.source).getPhoneNumber();for(const t of e.data.conversationsId)yield this.messagesDB.deleteConversation(t,n);t({status:"ok"})}catch(n){t({status:"error",errorMsg:"DB_ERROR"}),u.messagesLogger.error("Failed to delete conversation, "+n.message,{source:e.source})}}))}handleDeleteMessage(e,t){return r(this,void 0,void 0,(function*(){try{yield this.messagesDB.deleteMessage(e.data),t({status:"ok"})}catch(n){t({status:"error",errorMsg:"DB_ERROR"}),u.messagesLogger.error("Failed to delete message, "+n.message,{source:e.source})}}))}};t.default=c},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(185),s=n(184),a=i(n(183)),u=n(36);(0,u.onNetPromise)(o.MarketplaceEvents.FETCH_LISTING,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleFetchListings(e,t).catch(n=>{s.marketplaceLogger.error(`Error occurred in fetch listing event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,u.onNetPromise)(o.MarketplaceEvents.ADD_LISTING,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleAddListing(e,t).catch(n=>{s.marketplaceLogger.error(`Error occurred in add listing event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,u.onNetPromise)(o.MarketplaceEvents.DELETE_LISTING,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleDeleteListing(e,t).catch(n=>{s.marketplaceLogger.error(`Error occurred in delete listing event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),(0,u.onNetPromise)(o.MarketplaceEvents.REPORT_LISTING,(e,t)=>r(void 0,void 0,void 0,(function*(){a.default.handleReportListing(e,t).catch(n=>{s.marketplaceLogger.error(`Error occurred in report listing event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}))),on(o.MarketplaceEvents.DELETE_LISTINGS_ON_DROP,e=>{a.default.handleDeleteListingsOnDrop(e).catch(e=>{s.marketplaceLogger.error("Error occurred when deleting listing on player drop event, Error: "+e.message)})})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(14),s=n(114),a=n(206),u=n(35),c=i(n(400)),l=n(36);if((0,l.onNetPromise)(a.TwitterEvents.GET_OR_CREATE_PROFILE,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleGetOrCreateProfile(e,t).catch(e=>{s.twitterLogger.error(`Error occurred in getOrCreateProfile event (${n}), Error: ${e.message}`)})}))),(0,l.onNetPromise)(a.TwitterEvents.CREATE_PROFILE,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleCreateProfile(e,t).catch(e=>s.twitterLogger.error(`Error occurred in createProfile event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.UPDATE_PROFILE,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleUpdateProfile(e,t).catch(e=>s.twitterLogger.error(`Error occurred in updateProfile event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.FETCH_TWEETS_FILTERED,(e,t)=>r(void 0,void 0,void 0,(function*(){console.log("getting some filtered tweets");const n=(0,u.getSource)();c.default.handleFetchTweetsFiltered(e,t).catch(e=>s.twitterLogger.error(`Error occurred in fetchTweetsFiltered event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.CREATE_TWEET,(e,t)=>r(void 0,void 0,void 0,(function*(){c.default.handleCreateTweet(e,t).catch(t=>{s.twitterLogger.error(`Error occurred in createTweet event (${e.source}), Error: ${t.message}`)})}))),(0,l.onNetPromise)(a.TwitterEvents.DELETE_TWEET,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleDeleteTweet(e,t).catch(e=>{s.twitterLogger.error(`Error occurred in deleteTweet event (${n}), Error: ${e.message}`)})}))),(0,l.onNetPromise)(a.TwitterEvents.TOGGLE_LIKE,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleToggleLike(e,t).catch(e=>{s.twitterLogger.error(`Error occurred in toggleEvent event (${n}), Error: ${e.message}`)})}))),(0,l.onNetPromise)(a.TwitterEvents.RETWEET,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleRetweet(e,t).catch(e=>s.twitterLogger.error(`Error occurred in retweet event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.REPORT,(e,t)=>r(void 0,void 0,void 0,(function*(){const n=(0,u.getSource)();c.default.handleReport(e,t).catch(e=>s.twitterLogger.error(`Error occurred in report event (${n}), Error: ${e.message}`))}))),(0,l.onNetPromise)(a.TwitterEvents.FETCH_TWEETS,(e,t)=>{c.default.handleFetchTweets(e.source,e.data.pageId,t).catch(t=>s.twitterLogger.error(`Error occurred in fetchTweets event (${e.source}), Error: ${t.message}`))}),!o.config.twitter.allowEditableProfileName&&!o.config.twitter.generateProfileNameFromUsers){const e="Both allowEdtiableProfileName and generateProfileNameFromUsers are set false - this means users will likely not have profile names for the Twitter App and won't be able to use it!";s.twitterLogger.warn(e)}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(18)),s=i(n(401)),a=n(206),u=n(114),c=n(186),l=n(60);const d=new class{constructor(){this.twitterDB=s.default,u.twitterLogger.debug("Twitter service started")}handleGetOrCreateProfile(e,t){return r(this,void 0,void 0,(function*(){const n=o.default.getIdentifier(e.source);try{if(!n)return;const r=yield this.twitterDB.getOrCreateProfile(n);if(r)t({status:"ok",data:r});else{if(!(yield(0,l.getDefaultProfileNames)(e.source)))return}}catch(n){t({status:"error",errorMsg:n.message}),u.twitterLogger.error("Failed to get or create profile, "+n.message,{source:e.source})}}))}handleCreateProfile(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.twitterDB.createProfile(n,e.data.profile_name);t({status:"ok",data:r})}catch(n){u.twitterLogger.error("Failed to create twitter profile: "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleUpdateProfile(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.twitterDB.updateProfile(n,e.data);t({status:"ok",data:r})}catch(n){u.twitterLogger.error("Failed to update twitter profile: "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleFetchTweets(e,t,n){return r(this,void 0,void 0,(function*(){try{const r=o.default.getIdentifier(e),i=yield this.twitterDB.getProfile(r);if(!i)return u.twitterLogger.warn(`Aborted fetching tweets for user ${r} because they do not have a profile.`);const s=yield this.twitterDB.fetchAllTweets(i.id,t);n({data:s,status:"ok"})}catch(t){u.twitterLogger.error("Fetching tweets failed, "+t.message,{source:e}),n({status:"error",errorMsg:t.message})}}))}handleFetchTweetsFiltered(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.twitterDB.getProfile(n),i=yield this.twitterDB.fetchTweetsFiltered(r.id,e.data.searchValue);t({status:"ok",data:i})}catch(n){u.twitterLogger.error("Fetch filtered tweets failed, "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleCreateTweet(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.twitterDB.createTweet(n,e.data);t({status:"ok"}),emitNet(a.TwitterEvents.CREATE_TWEET_BROADCAST,-1,r)}catch(n){u.twitterLogger.error("Create tweet failed, "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleDeleteTweet(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source);yield this.twitterDB.deleteTweet(n,e.data.tweetId),t({status:"ok"})}catch(n){u.twitterLogger.error("Delete tweet failed, "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleToggleLike(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.twitterDB.getOrCreateProfile(n);(yield this.twitterDB.doesLikeExist(r.id,e.data.tweetId))?yield this.twitterDB.deleteLike(r.id,e.data.tweetId):yield this.twitterDB.createLike(r.id,e.data.tweetId),t({status:"ok"})}catch(n){u.twitterLogger.error("Like failed, "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleRetweet(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source);(yield this.twitterDB.doesRetweetExist(e.data.tweetId,n))&&t({status:"error",errorMsg:"FEEDBACK.RETWEET_EXISTS"});const r={message:"",retweet:e.data.tweetId},i=yield this.twitterDB.createTweet(n,r),s=yield this.twitterDB.getProfile(n),u=yield this.twitterDB.getTweet(s.id,i.id);t({status:"ok"}),emitNet(a.TwitterEvents.CREATE_TWEET_BROADCAST,-1,u)}catch(n){u.twitterLogger.error("Retweet failed, "+n.message,{source:e.source}),t({status:"error",errorMsg:n.message})}}))}handleReport(e,t){return r(this,void 0,void 0,(function*(){try{const n=o.default.getIdentifier(e.source),r=yield this.twitterDB.getProfile(n),i=yield this.twitterDB.getTweet(r.id,e.data.tweetId);if(yield this.twitterDB.doesReportExist(i.id,r.id))return u.twitterLogger.warn("This profile has already reported this tweet");yield this.twitterDB.createTweetReport(i.id,r.id),yield(0,c.reportTweetToDiscord)(i,r),t({status:"ok"})}catch(n){t({status:"error",errorMsg:n.message}),u.twitterLogger.error("Twitter report failed, "+n.message,{source:e.source})}}))}};t.default=d},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._TwitterDB=void 0;const o=n(62),s=n(14),a=n(207),u=n(114),c=i(n(22)),l="\n npwd_twitter_tweets.id,\n npwd_twitter_tweets.identifier,\n npwd_twitter_profiles.id AS profile_id,\n npwd_twitter_profiles.profile_name,\n npwd_twitter_profiles.avatar_url,\n npwd_twitter_tweets.likes,\n npwd_twitter_tweets.visible,\n IFNULL(COALESCE(retweets.message, npwd_twitter_tweets.message), '') AS message,\n IFNULL(COALESCE(retweets.images, npwd_twitter_tweets.images), '') AS images,\n npwd_twitter_tweets.retweet IS NOT NULL AS isRetweet,\n retweets.id AS retweetId,\n retweets_profiles.profile_name AS retweetProfileName,\n retweets_profiles.avatar_url AS retweetAvatarUrl,\n npwd_twitter_likes.id IS NOT NULL AS isLiked,\n npwd_twitter_reports.id IS NOT NULL AS isReported,\n npwd_twitter_tweets.createdAt,\n npwd_twitter_tweets.updatedAt,\n TIME_TO_SEC(TIMEDIFF( NOW(), npwd_twitter_tweets.createdAt)) AS seconds_since_tweet\n",d=e=>t=>Object.assign(Object.assign({},t),{isMine:t.profile_id===e,isRetweet:1===t.isRetweet});class f{fetchAllTweets(e,t){return r(this,void 0,void 0,(function*(){const n=25*(t="number"==typeof t?t:1),r=`\n SELECT ${l}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n WHERE npwd_twitter_tweets.visible = 1\n ORDER BY id DESC\n LIMIT ? OFFSET ?\n\t\t`,[i]=yield c.default._rawExec(r,[e,e,25,n]);return i.map(d(e))}))}fetchTweetsFiltered(e,t){return r(this,void 0,void 0,(function*(){const n=`%${t}%`,r=`\n SELECT ${l}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n WHERE npwd_twitter_tweets.visible = 1\n AND (npwd_twitter_profiles.profile_name LIKE ? OR npwd_twitter_tweets.message LIKE ?)\n ORDER BY npwd_twitter_tweets.id DESC\n LIMIT 25\n\t\t`,[i]=yield c.default._rawExec(r,[e,e,n,n]);return i.map(d(e))}))}getTweet(e,t){return r(this,void 0,void 0,(function*(){const n=`\n SELECT ${l}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n WHERE npwd_twitter_tweets.id = ?\n\t\t`,[r]=yield c.default._rawExec(n,[e,e,t]);return r.map(d(e))[0]}))}createTweet(e,t){return r(this,void 0,void 0,(function*(){const n=yield this.getProfile(e),[r]=yield c.default._rawExec("\n INSERT INTO npwd_twitter_tweets (identifier, message, images, retweet)\n VALUES (?, ?, ?, ?)\n\t\t",[e,t.message,t.images,t.retweet]),i=r;return yield this.getTweet(n.id,i.insertId)}))}createTweetReport(e,t){return r(this,void 0,void 0,(function*(){yield o.pool.execute("\n INSERT INTO npwd_twitter_reports (tweet_id, profile_id)\n VALUES (?, ?)\n\t\t",[e,t])}))}getProfile(e){return r(this,void 0,void 0,(function*(){const[t]=yield c.default._rawExec("\n SELECT *\n FROM npwd_twitter_profiles\n WHERE identifier = ?\n LIMIT 1\n\t\t",[e]),n=t;return n.length>0?n[0]:null}))}createProfile(e,t){return r(this,void 0,void 0,(function*(){return yield o.pool.execute("\n INSERT INTO npwd_twitter_profiles (identifier, profile_name)\n VALUES (?, ?)\n\t\t",[e,t]),yield this.getProfile(e)}))}createDefaultProfile(e){return r(this,void 0,void 0,(function*(){if(!s.config.twitter.generateProfileNameFromUsers)return null;const t=yield(0,a.generateProfileName)(e);return t?(u.twitterLogger.info(`Creating default Twitter profile ${t} for ${e}`),yield this.createProfile(e,t)):null}))}getOrCreateProfile(e){return r(this,void 0,void 0,(function*(){return(yield this.getProfile(e))||(yield this.createDefaultProfile(e))}))}updateProfile(e,t){return r(this,void 0,void 0,(function*(){const{avatar_url:n,profile_name:r}=t;return yield o.pool.execute("\n UPDATE npwd_twitter_profiles\n SET avatar_url = ?,\n profile_name = ?\n WHERE identifier = ?\n\t\t",[n,r,e]),t}))}createLike(e,t){return r(this,void 0,void 0,(function*(){yield o.pool.execute("\n INSERT INTO npwd_twitter_likes (profile_id, tweet_id)\n VALUES (?, ?)\n\t\t",[e,t])}))}deleteLike(e,t){return r(this,void 0,void 0,(function*(){yield o.pool.execute("\n DELETE\n FROM npwd_twitter_likes\n WHERE profile_id = ?\n AND tweet_id = ?\n\t\t",[e,t])}))}deleteTweet(e,t){return r(this,void 0,void 0,(function*(){if(!s.config.twitter.allowDeleteTweets)return;yield o.pool.execute("\n DELETE\n FROM npwd_twitter_tweets\n WHERE identifier = ?\n AND id = ?\n\t\t",[e,t])}))}doesLikeExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield c.default._rawExec("\n SELECT *\n FROM npwd_twitter_likes\n WHERE profile_id = ?\n AND tweet_id = ?\n LIMIT 1\n\t\t",[e,t]);return n.length>0}))}doesReportExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield c.default._rawExec("\n SELECT *\n FROM npwd_twitter_reports\n WHERE tweet_id = ?\n AND profile_id = ?\n LIMIT 1\n\t\t",[e,t]);return n.length>0}))}doesRetweetExist(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield c.default._rawExec("\n SELECT COUNT(id) as count\n FROM npwd_twitter_tweets\n WHERE (id = ? OR retweet = ?)\n AND identifier = ?\n\t\t",[e,e,t]);return n[0].count>0}))}}t._TwitterDB=f;const _=new f;t.default=_},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(403),o=r(n(404)),s=n(35),a=n(115),u=n(14),c=n(36);if((0,c.onNetPromise)(i.MatchEvents.GET_PROFILES,(e,t)=>{o.default.handleGetProfiles(e,t).catch(n=>{a.matchLogger.error(`Error occurred in fetch profiles event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.GET_MY_PROFILE,(e,t)=>{o.default.handleGetMyProfile(e,t).catch(n=>{a.matchLogger.error(`Error occurred in fetch my profile event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.GET_MATCHES,(e,t)=>{o.default.handleGetMatches(e,t).catch(n=>{a.matchLogger.error(`Error occurred in fetch matches event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.SAVE_LIKES,(e,t)=>{o.default.handleSaveLikes(e,t).catch(n=>{a.matchLogger.error(`Error occurred in save likes event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.CREATE_MY_PROFILE,(e,t)=>{o.default.handleCreateMyProfile(e,t).catch(n=>{a.matchLogger.error(`Error occurred in create my profile event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),(0,c.onNetPromise)(i.MatchEvents.UPDATE_MY_PROFILE,(e,t)=>{o.default.handleUpdateMyProfile(e,t).catch(n=>{a.matchLogger.error(`Error occurred in update my profile event (${e.source}), Error: ${n.message}`),t({status:"error",errorMsg:"INTERNAL_ERROR"})})}),onNet(i.MatchEvents.INITIALIZE,()=>{const e=(0,s.getSource)();o.default.handleInitialize(e).catch(t=>a.matchLogger.error(`Error occurred in initialize event (${e}), Error: ${t.message}`))}),!u.config.match.allowEditableProfileName&&!u.config.match.generateProfileNameFromUsers){const e="Both allowEdtiableProfileName and generateProfileNameFromUsers are set false - this means users will likely not have profile names for the Match App and won't be able to use it!";a.matchLogger.warn(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MatchEvents=void 0,function(e){e.INITIALIZE="phone:initializeMatch",e.GET_PROFILES="phone:getMatchProfiles",e.CREATE_MY_PROFILE="phone:createMyProfile",e.GET_MY_PROFILE="phone:getMyProfile",e.UPDATE_MY_PROFILE="phone:updateMyProfile",e.GET_MATCHES="phone:getMatches",e.SAVE_LIKES="phone:saveLikes"}(t.MatchEvents||(t.MatchEvents={}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(115),s=i(n(406)),a=i(n(18));const u=new class{constructor(){this.matchDB=s.default,o.matchLogger.debug("Match service started")}handleGetProfiles(e,t){return r(this,void 0,void 0,(function*(){const n=a.default.getIdentifier(e.source);try{const e=yield this.dispatchProfiles(n);t({status:"ok",data:e})}catch(e){o.matchLogger.error("Error in handleGetProfiles, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleGetMyProfile(e,t){return r(this,void 0,void 0,(function*(){const n=a.default.getIdentifier(e.source);try{const e=yield this.dispatchPlayerProfile(n);t({status:"ok",data:e})}catch(e){o.matchLogger.error("Error in handleGetMyProfile, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleSaveLikes(e,t){return r(this,void 0,void 0,(function*(){const n=a.default.getIdentifier(e.source);o.matchLogger.debug("Saving likes for identifier "+n);try{yield this.matchDB.saveLikes(n,e.data)}catch(e){o.matchLogger.error("Failed to save likes, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}try{(yield this.matchDB.findNewMatches(n,e.data)).length>0?t({status:"ok",data:!0}):t({status:"ok",data:!1})}catch(e){o.matchLogger.error("Failed to find new matches, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleGetMatches(e,t){return r(this,void 0,void 0,(function*(){const n=a.default.getIdentifier(e.source);try{const e=(yield this.matchDB.findAllMatches(n)).map(o.formatMatches);t({status:"ok",data:e})}catch(e){o.matchLogger.error("Failed to retrieve matches, "+e.message),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleCreateMyProfile(e,t){return r(this,void 0,void 0,(function*(){const n=a.default.getIdentifier(e.source),r=e.data;o.matchLogger.debug("Creating profile for identifier: "+n),o.matchLogger.debug(r);try{if(!r.name||!r.name.trim())throw new Error("Profile name must not be blank");const e=yield this.matchDB.createProfile(n,r),i=(0,o.formatProfile)(e);t({status:"ok",data:i})}catch(e){o.matchLogger.error(`Failed to update profile for identifier ${n}, ${e.message}`),t({status:"error",errorMsg:"DB_ERROR"})}}))}handleUpdateMyProfile(e,t){return r(this,void 0,void 0,(function*(){const n=a.default.getIdentifier(e.source),r=e.data;o.matchLogger.debug("Updating profile for identifier: "+n),o.matchLogger.debug(r);try{if(!r.name||!r.name.trim())throw new Error("Profile name must not be blank");const e=yield this.matchDB.updateProfile(n,r),i=(0,o.formatProfile)(e);t({status:"ok",data:i})}catch(e){o.matchLogger.error(`Failed to update profile for identifier ${n}, ${e.message}`),t({status:"error",errorMsg:"DB_ERROR"})}}))}dispatchPlayerProfile(e){return r(this,void 0,void 0,(function*(){try{const t=yield this.matchDB.getOrCreateProfile(e);return(0,o.formatProfile)(t)}catch(e){o.matchLogger.error("Failed to get player profile, "+e.message)}}))}dispatchProfiles(e){return r(this,void 0,void 0,(function*(){try{return(yield this.matchDB.getPotentialProfiles(e)).map(o.formatProfile)}catch(e){o.matchLogger.error("Failed to retrieve profiles, "+e.message)}}))}handleInitialize(e){return r(this,void 0,void 0,(function*(){const t=a.default.getIdentifier(e);o.matchLogger.debug("Initializing match for identifier: "+t),yield this.matchDB.updateLastActive(t)}))}};t.default=u},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",s="day",a="week",u="month",c="quarter",l="year",d="date",f="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+p(r,2,"0")+":"+p(i,2,"0")},m:function e(t,n){if(t.date()[e,t.id,t.liked]);return yield c.default._rawExec("INSERT INTO npwd_match_views (identifier, profile, liked)\n VALUES ?",[n])}))}checkForMatchById(e,t){return r(this,void 0,void 0,(function*(){const[n]=yield c.default._rawExec("\n SELECT targetProfile.*,\n UNIX_TIMESTAMP(targetProfile.updatedAt) AS lastActive\n FROM npwd_match_views\n LEFT OUTER JOIN npwd_match_profiles AS playerProfile ON npwd_match_views.profile = playerProfile.id\n LEFT OUTER JOIN npwd_match_profiles AS targetProfile\n ON npwd_match_views.identifier = targetProfile.identifier\n WHERE playerProfile.identifier = ?\n AND targetProfile.id = ?\n AND Liked = 1\n\t\t",[e,t]);return n}))}findAllMatches(e){return r(this,void 0,void 0,(function*(){const t=`\n SELECT targetProfile.*,\n UNIX_TIMESTAMP(targetProfile.updatedAt) AS lastActive,\n UNIX_TIMESTAMP(GREATEST(npwd_match_views.createdAt, targetViews.createdAt)) AS matchedAt,\n targetUser.${s.config.database.phoneNumberColumn} AS phoneNumber\n FROM npwd_match_views\n LEFT OUTER JOIN npwd_match_profiles AS targetProfile ON npwd_match_views.profile = targetProfile.id\n LEFT OUTER JOIN npwd_match_profiles AS myProfile ON npwd_match_views.identifier = myProfile.identifier\n LEFT OUTER JOIN npwd_match_views AS targetViews\n ON targetProfile.identifier = targetViews.identifier AND\n targetViews.profile = myProfile.id\n LEFT OUTER JOIN ${s.config.database.playerTable} AS targetUser ON targetProfile.identifier = targetUser.${s.config.database.identifierColumn}\n WHERE npwd_match_views.identifier = ?\n AND npwd_match_views.liked = 1\n AND targetViews.liked = 1\n ORDER BY matchedAt DESC\n\t\t`,[n]=yield c.default._rawExec(t,[e]);return n}))}getPlayerProfile(e){return r(this,void 0,void 0,(function*(){const[t]=yield c.default._rawExec("\n SELECT *,\n UNIX_TIMESTAMP(updatedAt) AS lastActive\n FROM npwd_match_profiles\n WHERE identifier = ?\n LIMIT 1\n\t\t",[e]);return t[0]}))}createProfile(e,t){return r(this,void 0,void 0,(function*(){const{name:n,image:r,bio:i,location:s,job:a,tags:u}=t;return yield o.pool.execute("\n INSERT INTO npwd_match_profiles (identifier, name, image, bio, location, job, tags)\n VALUES (?, ?, ?, ?, ?, ?, ?)\n ",[e,n,r,i,s,a,u]),yield this.getPlayerProfile(e)}))}updateProfile(e,t){return r(this,void 0,void 0,(function*(){const{image:n,name:r,bio:i,location:s,job:a,tags:u}=t;return yield o.pool.execute("\n UPDATE npwd_match_profiles\n SET image = ?, name = ?, bio = ?, location = ?, job = ?, tags = ?\n WHERE identifier = ?\n ",[n,r,i,s,a,u,e]),yield this.getPlayerProfile(e)}))}createDefaultProfile(e){return r(this,void 0,void 0,(function*(){if(!s.config.match.generateProfileNameFromUsers)return null;const t=yield(0,a.generateProfileName)(e," ");if(!t)return null;const n={name:t,image:"https://upload.wikimedia.org/wikipedia/commons/a/ac/No_image_available.svg",bio:"",location:"",job:"",tags:""};return u.matchLogger.info(`Creating default match profile ${t} for ${e}`),yield this.createProfile(e,n)}))}findNewMatches(e,t){return r(this,void 0,void 0,(function*(){let n=[];for(const r of t){if(!r.liked)continue;const t=yield this.checkForMatchById(e,r.id);n=n.concat(t)}return n}))}getOrCreateProfile(e){return r(this,void 0,void 0,(function*(){return(yield this.getPlayerProfile(e))||(yield this.createDefaultProfile(e))}))}updateLastActive(e){return r(this,void 0,void 0,(function*(){yield o.pool.execute("\n UPDATE npwd_match_profiles\n SET updatedAt = CURRENT_TIMESTAMP()\n WHERE identifier = ?\n ",[e])}))}}t._MatchDB=l;const d=new l;t.default=d},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(181),s=n(408),a=n(14),u=n(60),c=i(n(18)),l=n(109),d=global.exports;d("generatePhoneNumber",()=>r(void 0,void 0,void 0,(function*(){const e=yield(0,o.generateUniquePhoneNumber)();var t,n;return t="generatePhoneNumber",n=e,s.bridgeLogger.debug(`[${t}] ${n}`),e}))),a.config.general.useResourceIntegration&&(d("newPlayer",e=>r(void 0,void 0,void 0,(function*(){if("number"!=typeof e.source)return u.playerLogger.error("Source must be passed as a number when loading a player");yield c.default.handleNewPlayerEvent(e),emitNet(l.PhoneEvents.SET_PLAYER_LOADED,e.source,!0)}))),d("unloadPlayer",e=>r(void 0,void 0,void 0,(function*(){if("number"!=typeof e)return u.playerLogger.error("Source must be passed as a number when unloading a player");u.playerLogger.debug("Received unloadPlayer event for "+e),yield c.default.handleUnloadPlayerEvent(e)}))))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bridgeLogger=void 0;const r=n(10);t.bridgeLogger=r.mainLogger.child({module:"bridge"})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(82)),s=i(n(120)),a=i(n(24)),u=i(n(191)),c=i(n(76)),l=n(410),d=i(n(412)),f=c.default("https-proxy-agent:agent");class _ extends l.Agent{constructor(e){let t;if(t="string"==typeof e?a.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");f("creating new HttpsProxyAgent instance: %o",t),super(t);const n=Object.assign({},t);var r;this.secureProxy=t.secureProxy||"string"==typeof(r=n.protocol)&&/^https:?$/i.test(r),n.host=n.hostname||n.host,"string"==typeof n.port&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,t){return r(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:r}=this;let i;r?(f("Creating `tls.Socket`: %o",n),i=s.default.connect(n)):(f("Creating `net.Socket`: %o",n),i=o.default.connect(n));const a=Object.assign({},n.headers);let c=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r\n`;n.auth&&(a["Proxy-Authorization"]="Basic "+Buffer.from(n.auth).toString("base64"));let{host:l,port:_,secureEndpoint:E}=t;(function(e,t){return Boolean(!t&&80===e||t&&443===e)})(_,E)||(l+=":"+_),a.Host=l,a.Connection="close";for(const e of Object.keys(a))c+=`${e}: ${a[e]}\r\n`;const p=d.default(i);i.write(c+"\r\n");const{statusCode:g,buffered:R}=yield p;if(200===g){if(e.once("socket",h),t.secureEndpoint){const e=t.servername||t.host;if(!e)throw new Error('Could not determine "servername"');return f("Upgrading socket connection to TLS"),s.default.connect(Object.assign(Object.assign({},function(e,...t){const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}(t,"host","hostname","path","port")),{socket:i,servername:e}))}return i}i.destroy();const A=new o.default.Socket;return A.readable=!0,e.once("socket",e=>{f("replaying proxy buffer for failed request"),u.default(e.listenerCount("data")>0),e.push(R),e.push(null)}),A}))}}function h(e){e.resume()}t.default=_},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(26),o=r(n(76)),s=r(n(411)),a=o.default("agent-base");function u(){const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}function c(e,t){return new c.Agent(e,t)}!function(e){class t extends i.EventEmitter{constructor(e,t){super();let n=t;"function"==typeof e?this.callback=e:e&&(n=e),this.timeout=null,n&&"number"==typeof n.timeout&&(this.timeout=n.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:u()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:u()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const n=Object.assign({},t);"boolean"!=typeof n.secureEndpoint&&(n.secureEndpoint=u()),null==n.host&&(n.host="localhost"),null==n.port&&(n.port=n.secureEndpoint?443:80),null==n.protocol&&(n.protocol=n.secureEndpoint?"https:":"http:"),n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let r=!1,i=null;const o=n.timeout||this.timeout,c=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},l=()=>{i=null,r=!0;const e=new Error(`A "socket" was not created for HTTP request before ${o}ms`);e.code="ETIMEOUT",c(e)},d=e=>{r||(null!==i&&(clearTimeout(i),i=null),c(e))},f=t=>{if(r)return;if(null!=i&&(clearTimeout(i),i=null),o=t,Boolean(o)&&"function"==typeof o.addRequest)return a("Callback returned another Agent instance %o",t.constructor.name),void t.addRequest(e,n);var o;if(t)return t.once("free",()=>{this.freeSocket(t,n)}),void e.onSocket(t);const s=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);c(s)};if("function"==typeof this.callback){this.promisifiedCallback||(this.callback.length>=3?(a("Converting legacy callback function to promise"),this.promisifiedCallback=s.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof o&&o>0&&(i=setTimeout(l,o)),"port"in n&&"number"!=typeof n.port&&(n.port=Number(n.port));try{a("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(f,d)}catch(e){Promise.reject(e).catch(d)}}else c(new Error("`callback` is not defined"))}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype}(c||(c={})),e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){return new Promise((r,i)=>{e.call(this,t,n,(e,t)=>{e?i(e):r(t)})})}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(76)).default("https-proxy-agent:parse-proxy-response");t.default=function(e){return new Promise((t,n)=>{let r=0;const o=[];function s(){const n=e.read();n?function(e){o.push(e),r+=e.length;const n=Buffer.concat(o,r);if(-1===n.indexOf("\r\n\r\n"))return i("have not received end of HTTP headers yet..."),void s();const a=n.toString("ascii",0,n.indexOf("\r\n")),u=+a.split(" ")[1];i("got proxy server response: %o",a),t({statusCode:u,buffered:n})}(n):e.once("readable",s)}function a(e){i("onclose had error %o",e)}function u(){i("onend")}function c(t){e.removeListener("end",u),e.removeListener("error",c),e.removeListener("close",a),e.removeListener("readable",s),i("onerror %o",t),n(t)}e.on("error",c),e.on("close",a),e.on("end",u),s()})}},function(e,t,n){"use strict";n.r(t),n.d(t,"Severity",(function(){return l.a})),n.d(t,"Status",(function(){return u})),n.d(t,"addGlobalEventProcessor",(function(){return d.b})),n.d(t,"addBreadcrumb",(function(){return R})),n.d(t,"captureException",(function(){return h})),n.d(t,"captureEvent",(function(){return p})),n.d(t,"captureMessage",(function(){return E})),n.d(t,"configureScope",(function(){return g})),n.d(t,"getHubFromCarrier",(function(){return f.c})),n.d(t,"getCurrentHub",(function(){return f.b})),n.d(t,"Hub",(function(){return f.a})),n.d(t,"makeMain",(function(){return f.e})),n.d(t,"Scope",(function(){return d.a})),n.d(t,"startTransaction",(function(){return b})),n.d(t,"SDK_VERSION",(function(){return S})),n.d(t,"setContext",(function(){return A})),n.d(t,"setExtra",(function(){return N})),n.d(t,"setExtras",(function(){return T})),n.d(t,"setTag",(function(){return I})),n.d(t,"setTags",(function(){return m})),n.d(t,"setUser",(function(){return O})),n.d(t,"withScope",(function(){return v})),n.d(t,"NodeBackend",(function(){return ce})),n.d(t,"NodeClient",(function(){return me})),n.d(t,"defaultIntegrations",(function(){return Ke})),n.d(t,"init",(function(){return qe})),n.d(t,"lastEventId",(function(){return ze})),n.d(t,"flush",(function(){return Xe})),n.d(t,"close",(function(){return Ze})),n.d(t,"getSentryRelease",(function(){return $e})),n.d(t,"deepReadDirSync",(function(){return et})),n.d(t,"SDK_NAME",(function(){return J})),n.d(t,"Integrations",(function(){return Yt})),n.d(t,"Transports",(function(){return r})),n.d(t,"Handlers",(function(){return a}));var r={};n.r(r),n.d(r,"BaseTransport",(function(){return ee})),n.d(r,"HTTPTransport",(function(){return se})),n.d(r,"HTTPSTransport",(function(){return ue}));var i={};n.r(i),n.d(i,"FunctionToString",(function(){return Ne})),n.d(i,"InboundFilters",(function(){return Oe}));var o={};n.r(o),n.d(o,"Console",(function(){return ye})),n.d(o,"Http",(function(){return Fe})),n.d(o,"OnUncaughtException",(function(){return ke})),n.d(o,"OnUnhandledRejection",(function(){return Qe})),n.d(o,"LinkedErrors",(function(){return He})),n.d(o,"Modules",(function(){return Ye}));var s={};n.r(s),n.d(s,"Express",(function(){return St})),n.d(s,"Postgres",(function(){return Ct})),n.d(s,"Mysql",(function(){return Dt})),n.d(s,"Mongo",(function(){return Bt}));var a={};n.r(a),n.d(a,"tracingHandler",(function(){return Ft})),n.d(a,"extractRequestData",(function(){return kt})),n.d(a,"parseRequest",(function(){return Qt})),n.d(a,"requestHandler",(function(){return Ht})),n.d(a,"errorHandler",(function(){return Wt}));var u,c=n(0),l=n(417);!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(u||(u={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(u||(u={}));var d=n(78),f=n(37);function _(e){for(var t=[],n=1;n1&&(d=_.slice(0,-1).join("/"),f=_.pop()),f){var h=f.match(/^\d+/);h&&(f=h[0])}this._fromComponents({host:a,pass:s,path:d,projectId:f,port:l,protocol:r,publicKey:i})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new C("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new C("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new C("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new C("Invalid Dsn: Invalid port "+this.port)},e}(),x=n(418),j=n(16),k=n(210);var Q=new k.LRUMap(100);function H(e){try{return e.functionName||e.typeName+"."+(e.methodName||"")}catch(e){return""}}var V=(n.c[n.s]&&n.c[n.s].filename&&Object(x.b)(n.c[n.s].filename)||global.process.cwd())+"/";function W(e){var t,n=(t=e).stack?t.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return{columnNumber:null,fileName:e,functionName:null,lineNumber:null,methodName:null,native:null,typeName:null};var t=e.match(/at (?:(.+?)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(t){var n=null,r=null,i=null,o=null,s=null,a="native"===t[5];if(t[1]){var u=(i=t[1]).lastIndexOf(".");if("."===i[u-1]&&u--,u>0){n=i.substr(0,u),r=i.substr(u+1);var c=n.indexOf(".Module");c>0&&(i=i.substr(c+1),n=n.substr(0,c))}o=null}return r&&(o=n,s=r),""===r&&(s=null,i=null),{columnNumber:parseInt(t[4],10)||null,fileName:t[2]||null,functionName:i,lineNumber:parseInt(t[3],10)||null,methodName:s,native:a,typeName:o}}})).filter((function(e){return!!e})):[];return n||[]}function Y(e,t){var n=[],r=t&&void 0!==t.frameContextLines?t.frameContextLines:7,i=e.map((function(e){var t,i={colno:e.columnNumber,filename:(null===(t=e.fileName)||void 0===t?void 0:t.startsWith("file://"))?e.fileName.substr(7):e.fileName||"",function:H(e),lineno:e.lineNumber},o=e.native||i.filename&&!i.filename.startsWith("/")&&!i.filename.startsWith(".")&&1!==i.filename.indexOf(":\\");return i.in_app=!o&&void 0!==i.filename&&-1===i.filename.indexOf("node_modules/"),i.filename&&(i.module=function(e,t){t||(t=V);var n=Object(x.a)(e,".js"),r=(e=Object(x.b)(e)).lastIndexOf("/node_modules/");if(r>-1)return e.substr(r+14).replace(/\//g,".")+":"+n;if(0===(r=(e+"/").lastIndexOf(t,0))){var i=e.substr(t.length).replace(/\//g,".");return i&&(i+=":"),i+=n}return n}(i.filename),!o&&r>0&&-1===n.indexOf(i.filename)&&n.push(i.filename)),i}));if(r<=0)return D.a.resolve(i);try{return function(e,t,n){return new D.a((function(r){return(i=e,0===i.length?D.a.resolve({}):new D.a((function(e){for(var t={},n=0,r=function(r){var o=i[r],s=Q.get(o);if(void 0!==s)return null!==s&&(t[o]=s),++n===i.length&&e(t),"continue";Object(j.readFile)(o,(function(r,s){var a=r?null:s.toString();t[o]=a,Q.set(o,a),++n===i.length&&e(t)}))},o=0;o0&&n(!1)}),e);D.a.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),Z=n(24),J="sentry.javascript.node",$={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},ee=function(){function e(e){this.options=e,this._buffer=new X(30),this._rateLimits={},this.urlParser=function(e){return new Z.URL(e)},this._api=new z(e.dsn,e._metadata,e.tunnel)}return e.prototype.sendEvent=function(e){throw new C("Transport Class has to implement `sendEvent` method.")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._getProxy=function(e){var t,n,r=process.env,i=r.no_proxy,o=r.http_proxy,s=r.https_proxy,a=this.options,u=a.httpProxy,l=a.httpsProxy,d="http"===e?u||o:l||u||s||o;if(!i)return d;var f=this._api.getDsn(),_=f.host,h=f.port;try{for(var E=Object(c.h)(i.split(",")),p=E.next();!p.done;p=E.next()){var g=p.value;if(_.endsWith(g)||(_+":"+h).endsWith(g))return}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=E.return)&&n.call(E)}finally{if(t)throw t.error}}return d},e.prototype._getRequestOptions=function(e){var t=Object(c.a)(Object(c.a)({},this._api.getRequestHeaders(J,S)),this.options.headers),n=e.hostname,r=e.pathname,i=e.port,o=e.protocol,s=""+r;return Object(c.a)({agent:this.client,headers:t,hostname:n,method:"POST",path:s,port:i,protocol:o},this.options.caCerts&&{ca:j.readFileSync(this.options.caCerts)})},e.prototype._disabledUntil=function(e){var t=$[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,i,o=Date.now(),s=e["x-sentry-rate-limits"],a=e["retry-after"];if(s){try{for(var u=Object(c.h)(s.trim().split(",")),l=u.next();!l.done;l=u.next()){var d=l.value.split(":",2),f=parseInt(d[0],10),_=1e3*(isNaN(f)?60:f);try{for(var h=(r=void 0,Object(c.h)(d[1]&&d[1].split(";")||["all"])),E=h.next();!E.done;E=h.next()){var p=E.value;Object(c.g)(Object.keys($).map((function(e){return $[e]})),["all"]).includes(p)&&(this._rateLimits[p]=new Date(o+_))}}catch(e){r={error:e}}finally{try{E&&!E.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return!0}return!!a&&(this._rateLimits.all=new Date(o+Object(P.f)(o,a)),!0)},e.prototype._send=function(e,t){return Object(c.b)(this,void 0,void 0,(function(){var n=this;return Object(c.d)(this,(function(r){if(!this.module)throw new C("No module available");return t&&this._isRateLimited(e.type)?[2,Promise.reject({payload:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})]:[2,this._buffer.add((function(){return new Promise((function(t,r){if(!n.module)throw new C("No module available");var i=n._getRequestOptions(n.urlParser(e.url)),o=n.module.request(i,(function(i){var o=i.statusCode||500,s=u.fromHttpCode(o);i.setEncoding("utf8");var a=i.headers?i.headers["retry-after"]:"";a=Array.isArray(a)?a[0]:a;var c=i.headers?i.headers["x-sentry-rate-limits"]:"",l={"x-sentry-rate-limits":c=Array.isArray(c)?c[0]:c,"retry-after":a};if(n._handleRateLimit(l)&&y.b.warn("Too many "+e.type+" requests, backing off until: "+n._disabledUntil(e.type)),s===u.Success)t({status:s});else{var d="HTTP Error ("+o+")";i.headers&&i.headers["x-sentry-error"]&&(d+=": "+i.headers["x-sentry-error"]),r(new C(d))}i.on("data",(function(){})),i.on("end",(function(){}))}));o.on("error",r),o.end(e.body)}))}))]}))}))},e}();function te(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function ne(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=Object(c.g)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=Object(c.g)(e.sdk.packages||[],t.packages||[]),e):e}function re(e,t){var n=te(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(Object(c.a)(Object(c.a)({sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function ie(e,t){var n=te(t),r=e.type||"event",i="transaction"===r||t.forceEnvelope(),o=e.debug_meta||{},s=o.transactionSampling,a=Object(c.f)(o,["transactionSampling"]),u=s||{},l=u.method,d=u.rate;0===Object.keys(a).length?delete e.debug_meta:e.debug_meta=a;var f={body:JSON.stringify(n?ne(e,t.metadata.sdk):e),type:r,url:i?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(i){var _=JSON.stringify(Object(c.a)(Object(c.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:l,rate:d}]})+"\n"+f.body;f.body=_}return f}var oe=n(42),se=function(e){function t(t){var r=e.call(this,t)||this;r.options=t;var i=r._getProxy("http");return r.module=oe,r.client=i?new(n(208))(i):new oe.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),r}return Object(c.c)(t,e),t.prototype.sendEvent=function(e){return this._send(ie(e,this._api),e)},t.prototype.sendSession=function(e){return this._send(re(e,this._api),e)},t}(ee),ae=n(43),ue=function(e){function t(t){var r=e.call(this,t)||this;r.options=t;var i=r._getProxy("https");return r.module=ae,r.client=i?new(n(208))(i):new ae.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),r}return Object(c.c)(t,e),t.prototype.sendEvent=function(e){return this._send(ie(e,this._api),e)},t.prototype.sendSession=function(e){return this._send(re(e,this._api),e)},t}(ee),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.c)(t,e),t.prototype.eventFromException=function(e,t){var n=this,r=e,i=t&&t.data&&t.data.mechanism||{handled:!0,type:"generic"};if(!Object(B.b)(e)){if(Object(B.e)(e)){var o="Non-Error exception captured with keys: "+Object(U.b)(e);Object(f.b)().configureScope((function(t){t.setExtra("__serialized__",Object(U.e)(e))})),(r=t&&t.syntheticException||new Error(o)).message=o}else(r=t&&t.syntheticException||new Error(e)).message=e;i.synthetic=!0}return new D.a((function(e,o){return(s=r,a=n._options,new D.a((function(e){return K(s,a).then((function(t){e({exception:{values:[t]}})}))}))).then((function(n){Object(P.c)(n,void 0,void 0),Object(P.b)(n,i),e(Object(c.a)(Object(c.a)({},n),{event_id:t&&t.event_id}))})).then(null,o);var s,a}))},t.prototype.eventFromMessage=function(e,t,n){var r=this;void 0===t&&(t=l.a.Info);var i={event_id:n&&n.event_id,level:t,message:e};return new D.a((function(e){r._options.attachStacktrace&&n&&n.syntheticException?Y(n.syntheticException?W(n.syntheticException):[],r._options).then((function(t){i.stacktrace={frames:q(t)},e(i)})).then(null,(function(){e(i)})):e(i)}))},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=new G(this._options.dsn),n=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},this._options.transportOptions),this._options.httpProxy&&{httpProxy:this._options.httpProxy}),this._options.httpsProxy&&{httpsProxy:this._options.httpsProxy}),this._options.caCerts&&{caCerts:this._options.caCerts}),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(n):"http"===t.protocol?new se(n):new ue(n)},t}(M),le=n(419),de=n(416),fe=n(55),_e=n(46),he=[];function Ee(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function pe(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(c.g)(e.defaultIntegrations)||[],n=e.integrations,r=Object(c.g)(Ee(t));Array.isArray(n)?r=Object(c.g)(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),Ee(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((function(e){return e.name}));return-1!==i.indexOf("Debug")&&r.push.apply(r,Object(c.g)(r.splice(i.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===he.indexOf(e.name)&&(e.setupOnce(d.b,f.b),he.push(e.name),y.b.log("Integration installed: "+e.name))}(e)})),Object.defineProperty(t,"initialized",{value:!0}),t}var ge,Re="Not capturing exception because it's already been captured.",Ae=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new G(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!Object(P.d)(e)){var i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i}y.b.log(Re)},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,s=Object(B.f)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r;if(!(null===(r=t)||void 0===r?void 0:r.originalException)||!Object(P.d)(t.originalException)){var i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){i=e}))),i}y.b.log(Re)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?y.b.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):y.b.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=pe(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return y.b.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i=!1,o=!1,s=t.exception&&t.exception.values;if(s){o=!0;try{for(var a=Object(c.h)(s),u=a.next();!u.done;u=a.next()){var l=u.value.mechanism;if(l&&!1===l.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var d=e.status===le.b.Ok;(d&&0===e.errors||d&&i)&&(e.update(Object(c.a)(Object(c.a)({},i&&{status:le.b.Crashed}),{errors:e.errors||Number(o||i)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new D.a((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,s=Object(c.a)(Object(c.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(P.i)()),timestamp:e.timestamp||Object(fe.b)()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var a=t;n&&n.captureContext&&(a=d.a.clone(a).update(n.captureContext));var u=D.a.resolve(s);return a&&(u=a.applyToEvent(s,n)),u.then((function(e){return"number"==typeof o&&o>0?r._normalizeEvent(e,o):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(c.a)(Object(c.a)({},e),e.data&&{data:Object(U.d)(e.data,t)})}))}),e.user&&{user:Object(U.d)(e.user,t)}),e.contexts&&{contexts:Object(U.d)(e.contexts,t)}),e.extra&&{extra:Object(U.d)(e.extra,t)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var r=this.getOptions()._experiments;return(void 0===r?{}:r).ensureNoCircularStructures?Object(U.d)(n):n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,s=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Object(_e.d)(e.message,s));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Object(_e.d)(a.value,s));var u=e.request;u&&u.url&&(u.url=Object(_e.d)(u.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Object(c.g)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){y.b.error(e)}))},e.prototype._processEvent=function(e,t,n){var r,i,o=this,s=this.getOptions(),a=s.beforeSend,u=s.sampleRate,c=this.getTransport();if(!this._isEnabled())return D.a.reject(new C("SDK not enabled, will not capture event."));var l="transaction"===e.type;return!l&&"number"==typeof u&&Math.random()>u?(null===(i=(r=c).recordLostEvent)||void 0===i||i.call(r,de.a.SampleRate,"event"),D.a.reject(new C("Discarding event because it's not included in the random sample (sampling rate = "+u+")"))):this._prepareEvent(e,n,t).then((function(n){var r,i;if(null===n)throw null===(i=(r=c).recordLostEvent)||void 0===i||i.call(r,de.a.EventProcessor,e.type||"event"),new C("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||l||!a)return n;var s=a(n,t);return o._ensureBeforeSendRv(s)})).then((function(t){var r,i;if(null===t)throw null===(i=(r=c).recordLostEvent)||void 0===i||i.call(r,de.a.BeforeSend,e.type||"event"),new C("`beforeSend` returned `null`, will not send event.");var s=n&&n.getSession&&n.getSession();return!l&&s&&o._updateSessionFromEvent(s,t),o._sendEvent(t),t})).then(null,(function(e){if(e instanceof C)throw e;throw o.captureException(e,{data:{__sentry__:!0},originalException:e}),new C("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e.prototype._ensureBeforeSendRv=function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Object(B.j)(e))return e.then((function(e){if(!Object(B.e)(e)&&null!==e)throw new C(t);return e}),(function(e){throw new C("beforeSend rejected with "+e)}));if(!Object(B.e)(e)&&null!==e)throw new C(t);return e},e}(),Te=function(){function e(e,t){var n=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=e,this._intervalId=setInterval((function(){return n.flush()}),1e3*this.flushTimeout),this._sessionAttrs=t}return e.prototype.sendSessionAggregates=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){y.b.error("Error while sending session: "+e)})):y.b.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.flush=function(){var e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this.sendSessionAggregates(e))},e.prototype.getSessionAggregates=function(){var e=this,t=Object.keys(this._pendingAggregates).map((function(t){return e._pendingAggregates[parseInt(t)]})),n={attrs:this._sessionAttrs,aggregates:t};return Object(U.a)(n)},e.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},e.prototype.incrementSessionStatusCount=function(){var e,t;if(this._isEnabled){var n=Object(f.b)().getScope(),r=null===(e=n)||void 0===e?void 0:e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),null===(t=n)||void 0===t||t.setRequestSession(void 0))}},e.prototype._incrementSessionStatusCount=function(e,t){var n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};var r=this._pendingAggregates[n];switch(r.started||(r.started=new Date(n).toISOString()),e){case le.a.Errored:return r.errored=(r.errored||0)+1,r.errored;case le.a.Ok:return r.exited=(r.exited||0)+1,r.exited;case le.a.Crashed:return r.crashed=(r.crashed||0)+1,r.crashed}},e}(),me=function(e){function t(t){return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.node",packages:[{name:"npm:@sentry/node",version:S}],version:S},e.call(this,ce,t)||this}return Object(c.c)(t,e),t.prototype.captureException=function(t,n,r){if(this._options.autoSessionTracking&&this._sessionFlusher&&r){var i=r.getRequestSession();i&&i.status===le.a.Ok&&(i.status=le.a.Errored)}return e.prototype.captureException.call(this,t,n,r)},t.prototype.captureEvent=function(t,n,r){if(this._options.autoSessionTracking&&this._sessionFlusher&&r&&("exception"===(t.type||"exception")&&t.exception&&t.exception.values&&t.exception.values.length>0)){var i=r.getRequestSession();i&&i.status===le.a.Ok&&(i.status=le.a.Errored)}return e.prototype.captureEvent.call(this,t,n,r)},t.prototype.close=function(t){var n;return null===(n=this._sessionFlusher)||void 0===n||n.close(),e.prototype.close.call(this,t)},t.prototype.initSessionFlusher=function(){var e=this._options,t=e.release,n=e.environment;t?this._sessionFlusher=new Te(this.getTransport(),{release:t,environment:n}):y.b.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"node",this.getOptions().serverName&&(t.server_name=this.getOptions().serverName),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._captureRequestSession=function(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():y.b.warn("Discarded request mode session because autoSessionTracking option was disabled")},t}(Ae),Ne=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){ge=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t=0;r--){var i=e[r];if(""!==(null===(t=i)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(n=i)||void 0===n?void 0:n.filename))return i.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return this._getLastValidUrl(t)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(t){return y.b.error("Cannot extract url for event "+Object(P.e)(e)),null}},e.id="InboundFilters",e}();var ve=n(9),be=n(54),Se=n(7),ye=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){var e,t;try{for(var n=Object(c.h)(["debug","info","warn","error","log"]),r=n.next();!r.done;r=n.next()){var i=r.value;Object(U.c)(console,i,we(i))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.id="Console",e}();function we(e){return function(t){var n;switch(e){case"debug":n=l.a.Debug;break;case"error":n=l.a.Error;break;case"info":n=l.a.Info;break;case"warn":n=l.a.Warning;break;default:n=l.a.Log}return function(){Object(f.b)().getIntegration(ye)&&Object(f.b)().addBreadcrumb({category:"console",level:n,message:Se.format.apply(void 0,arguments)},{input:Object(c.g)(arguments),level:e}),t.apply(this,arguments)}}}var Ce=Object(P.g)(process.versions.node);function De(e){var t,n=null===(t=Object(f.b)().getClient())||void 0===t?void 0:t.getDsn();return!!n&&e.includes(n.host)}function Le(e){return(e.protocol||"")+"//"+(e.hostname||e.host||"")+(e.port&&80!==e.port&&443!==e.port?":"+e.port:"")+(e.path?e.path:"/")}function Me(e,t,n){var r,i,o;if(!e)return e;var s=Object(c.e)(e.split(" "),2),a=s[0],u=s[1];return t.host&&!t.protocol&&(t.protocol=null===(i=null===(r=n)||void 0===r?void 0:r.agent)||void 0===i?void 0:i.protocol,u=Le(t)),(null===(o=u)||void 0===o?void 0:o.startsWith("///"))&&(u=u.slice(2)),a+" "+u}function Be(e){var t={protocol:e.protocol,hostname:"string"==typeof e.hostname&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:""+(e.pathname||"")+(e.search||""),href:e.href};return""!==e.port&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=e.username+":"+e.password),t}function Ue(e,t){var n,r,i,o,s,a,u,l,d,f;return"function"==typeof t[t.length-1]&&(d=t.pop()),f="string"==typeof t[0]?Be(new Z.URL(t[0])):t[0]instanceof Z.URL?Be(t[0]):t[0],2===t.length&&(f=Object(c.a)(Object(c.a)({},f),t[1])),void 0===f.protocol&&(Ce.major&&Ce.major>8?f.protocol=(null===(r=null===(n=e)||void 0===n?void 0:n.globalAgent)||void 0===r?void 0:r.protocol)||(null===(i=f.agent)||void 0===i?void 0:i.protocol)||(null===(o=f._defaultAgent)||void 0===o?void 0:o.protocol):f.protocol=(null===(s=f.agent)||void 0===s?void 0:s.protocol)||(null===(a=f._defaultAgent)||void 0===a?void 0:a.protocol)||(null===(l=null===(u=e)||void 0===u?void 0:u.globalAgent)||void 0===l?void 0:l.protocol)),d?[f,d]:[f]}var Pe=Object(P.g)(process.versions.node),Fe=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._breadcrumbs=void 0===t.breadcrumbs||t.breadcrumbs,this._tracing=void 0!==t.tracing&&t.tracing}return e.prototype.setupOnce=function(){if(this._breadcrumbs||this._tracing){var e,t,r=(e=this._breadcrumbs,t=this._tracing,function(n){return function(){for(var r=[],i=0;i8){var o=n(43);Object(U.c)(o,"get",r),Object(U.c)(o,"request",r)}}},e.id="Http",e}();function Ge(e,t,n,r){Object(f.b)().getIntegration(Fe)&&Object(f.b)().addBreadcrumb({category:"http",data:{method:n.method,status_code:r&&r.statusCode,url:t},type:"http"},{event:e,request:n,response:r})}function xe(e){console.error(e&&e.stack?e.stack:e);var t=Object(f.b)().getClient();if(void 0===t)return y.b.warn("No NodeClient was defined, we are exiting the process now."),void global.process.exit(1);var n=t.getOptions(),r=n&&n.shutdownTimeout&&n.shutdownTimeout>0&&n.shutdownTimeout||2e3;t.close(r).then((function(e){e||y.b.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)})).then(null,(function(e){console.error(e)}))}var je,ke=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id,this.handler=this._makeErrorHandler()}return e.prototype.setupOnce=function(){global.process.on("uncaughtException",this.handler.bind(this))},e.prototype._makeErrorHandler=function(){var t,n=this,r=!1,i=!1,o=!1;return function(s){var a=xe,u=Object(f.b)().getClient();if(n._options.onFatalError?a=n._options.onFatalError:u&&u.getOptions().onFatalError&&(a=u.getOptions().onFatalError),r)o?(y.b.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),xe(s)):i||(i=!0,setTimeout((function(){o||(o=!0,a(t,s))}),2e3));else{var c=Object(f.b)();t=s,r=!0,c.getIntegration(e)?c.withScope((function(e){e.setLevel(l.a.Fatal),c.captureException(s,{originalException:s,data:{mechanism:{handled:!1,type:"onuncaughtexception"}}}),o||(o=!0,a(s))})):o||(o=!0,a(s))}}},e.id="OnUncaughtException",e}(),Qe=function(){function e(t){void 0===t&&(t={mode:"warn"}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){global.process.on("unhandledRejection",this.sendUnhandledPromise.bind(this))},e.prototype.sendUnhandledPromise=function(t,n){var r=Object(f.b)();if(r.getIntegration(e)){var i=n.domain&&n.domain.sentryContext||{};r.withScope((function(e){e.setExtra("unhandledPromiseRejection",!0),i.user&&e.setUser(i.user),i.tags&&e.setTags(i.tags),i.extra&&e.setExtras(i.extra),r.captureException(t,{originalException:n,data:{mechanism:{handled:!1,type:"onunhandledrejection"}}})})),this._handleRejection(t)}else this._handleRejection(t)},e.prototype._handleRejection=function(e){var t="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";"warn"===this._options.mode?Object(y.a)((function(){console.warn(t),console.error(e&&e.stack?e.stack:e)})):"strict"===this._options.mode&&(Object(y.a)((function(){console.warn(t)})),xe(e))},e.id="OnUnhandledRejection",e}(),He=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Object(d.b)((function(t,n){var r=Object(f.b)().getIntegration(e);if(r){var i=r._handler&&r._handler.bind(r);return"function"==typeof i?i(t,n):t}return t}))},e.prototype._handler=function(e,t){var n=this;return e.exception&&e.exception.values&&t&&Object(B.d)(t.originalException,Error)?new D.a((function(r){n._walkErrorTree(t.originalException,n._key).then((function(t){e&&e.exception&&e.exception.values&&(e.exception.values=Object(c.g)(t,e.exception.values)),r(e)})).then(null,(function(){r(e)}))})):D.a.resolve(e)},e.prototype._walkErrorTree=function(e,t,n){var r=this;return void 0===n&&(n=[]),!Object(B.d)(e[t],Error)||n.length+1>=this._limit?D.a.resolve(n):new D.a((function(i,o){K(e[t]).then((function(s){r._walkErrorTree(e[t],t,Object(c.g)([s],n)).then(i).then(null,(function(){o()}))})).then(null,(function(){o()}))}))},e.id="LinkedErrors",e}(),Ve=n(31);function We(){var e=n.c[n.s]&&n.c[n.s].paths||[],t=function(){try{return n.c?Object.keys(n.c):[]}catch(e){return[]}}(),r={},i={};return t.forEach((function(t){var n=t,o=function(){var t=n;if((n=Object(Ve.dirname)(t))&&t!==n&&!i[t]){if(e.indexOf(n)<0)return o();var s=Object(Ve.join)(t,"package.json");if(i[t]=!0,!Object(j.existsSync)(s))return o();try{var a=JSON.parse(Object(j.readFileSync)(s,"utf8"));r[a.name]=a.version}catch(e){}}};o()})),r}var Ye=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){var r=this;t((function(t){return n().getIntegration(e)?Object(c.a)(Object(c.a)({},t),{modules:r._getModules()}):t}))},e.prototype._getModules=function(){return je||(je=We()),je},e.id="Modules",e}(),Ke=[new i.InboundFilters,new i.FunctionToString,new ye,new Fe,new ke,new Qe,new He];function qe(e){var t;void 0===e&&(e={});var n,r=Object(f.d)(),i=(null===(t=r.__SENTRY__)||void 0===t?void 0:t.integrations)||[];if(e.defaultIntegrations=!1===e.defaultIntegrations?[]:Object(c.g)(Array.isArray(e.defaultIntegrations)?e.defaultIntegrations:Ke,i),void 0===e.dsn&&process.env.SENTRY_DSN&&(e.dsn=process.env.SENTRY_DSN),void 0===e.tracesSampleRate&&process.env.SENTRY_TRACES_SAMPLE_RATE){var o=parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);isFinite(o)&&(e.tracesSampleRate=o)}if(void 0===e.release){var s=$e();void 0!==s?e.release=s:e.autoSessionTracking=!1}void 0===e.environment&&process.env.SENTRY_ENVIRONMENT&&(e.environment=process.env.SENTRY_ENVIRONMENT),void 0===e.autoSessionTracking&&void 0!==e.dsn&&(e.autoSessionTracking=!0),be.active&&Object(f.f)(r,Object(f.b)()),function(e,t){var n;!0===t.debug&&y.b.enable();var r=Object(f.b)();null===(n=r.getScope())||void 0===n||n.update(t.initialScope);var i=new e(t);r.bindClient(i)}(me,e),e.autoSessionTracking&&((n=Object(f.b)()).startSession(),process.on("beforeExit",(function(){var e,t=null===(e=n.getScope())||void 0===e?void 0:e.getSession(),r=[le.b.Exited,le.b.Crashed];t&&!r.includes(t.status)&&n.endSession()})))}function ze(){return Object(f.b)().lastEventId()}function Xe(e){return Object(c.b)(this,void 0,void 0,(function(){var t;return Object(c.d)(this,(function(n){return(t=Object(f.b)().getClient())?[2,t.flush(e)]:(y.b.warn("Cannot flush events. No client defined."),[2,Promise.resolve(!1)])}))}))}function Ze(e){return Object(c.b)(this,void 0,void 0,(function(){var t;return Object(c.d)(this,(function(n){return(t=Object(f.b)().getClient())?[2,t.close(e)]:(y.b.warn("Cannot flush events and disable SDK. No client defined."),[2,Promise.resolve(!1)])}))}))}function Je(e){if(void 0===e)return!1;var t=e&&e.getOptions();return!(!t||void 0===t.autoSessionTracking)&&t.autoSessionTracking}function $e(e){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;var t=Object(ve.a)();return t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id?t.SENTRY_RELEASE.id:process.env.GITHUB_SHA||process.env.COMMIT_REF||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA||e}function et(e){var t=Ve.resolve(e);if(!j.existsSync(t))throw new Error("Cannot read contents of "+t+". Directory does not exist.");if(!j.statSync(t).isDirectory())throw new Error("Cannot read contents of "+t+", because it is not a directory.");var n=function(e){return j.readdirSync(e).reduce((function(t,r){var i=Ve.join(e,r);return j.statSync(i).isDirectory()?Object(c.g)(t,n(i)):Object(c.g)(t,[i])}),[])};return n(t).map((function(e){return Ve.relative(t,e)}))}var tt=n(44),nt=n(52),rt=n(8),it=n(2),ot=Object(ve.a)();var st=n(25),at=n(116),ut=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},ct=function(e,t){return{name:e,value:null!=t?t:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},lt=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},dt=function(e,t){var n=function(r){"pagehide"!==r.type&&"hidden"!==Object(ve.a)().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},ft=-1,_t=function(){return ft<0&&(ft="hidden"===Object(ve.a)().document.visibilityState?0:1/0,dt((function(e){var t=e.timeStamp;ft=t}),!0)),{get firstHiddenTime(){return ft}}},ht={},Et=Object(ve.a)(),pt={_reportAllChanges:!1},gt=function(){function e(e){var t,n;this._measurements={},this._performanceCursor=0,!Object(st.b)()&&(null===(t=Et)||void 0===t?void 0:t.performance)&&(null===(n=Et)||void 0===n?void 0:n.document)&&(Et.performance.mark&&Et.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(e._reportAllChanges),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(Et&&Et.performance&&Et.performance.getEntries&&fe.a){y.b.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i,o,s,a=Object(it.d)(fe.a);if(Et.document&&Et.document.scripts)for(var u=0;u-1&&(r=E)}})),void 0!==r&&void 0!==i&&At(e,{description:"evaluation",endTimestamp:i,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var c=Object(it.d)(fe.a);"number"==typeof o&&(y.b.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(o-e.startTimestamp)},"number"==typeof s&&s<=o&&(this._measurements["ttfb.requestTime"]={value:1e3*(o-s)})),["fcp","fp","lcp"].forEach((function(n){if(t._measurements[n]&&!(c>=e.startTimestamp)){var r=t._measurements[n].value,i=c+Object(it.d)(r),o=Math.abs(1e3*(i-e.startTimestamp)),s=o-r;y.b.log("[Measurements] Normalized "+n+" from "+r+" to "+o+" ("+s+")"),t._measurements[n].value=o}})),this._measurements["mark.fid"]&&this._measurements.fid&&At(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+Object(it.d)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),this._tagMetricInfo(e)}}},e.prototype._tagMetricInfo=function(e){this._lcpEntry&&(y.b.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&e.setTag("lcp.element",Object(at.a)(this._lcpEntry.element)),this._lcpEntry.id&&e.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&e.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),e.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&this._clsEntry.sources&&(y.b.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.forEach((function(t,n){return e.setTag("cls.source."+(n+1),Object(at.a)(t.node))})))},e.prototype._trackCLS=function(){var e=this;!function(e,t){var n,r=ct("CLS",0),i=0,o=[],s=function(e){if(e&&!e.hadRecentInput){var t=o[0],s=o[o.length-1];i&&0!==o.length&&e.startTime-s.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>r.value&&(r.value=i,r.entries=o,n&&n())}},a=lt("layout-shift",s);a&&(n=ut(e,r,t),dt((function(){a.takeRecords().map(s),n(!0)})))}((function(t){var n=t.entries.pop();n&&(y.b.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value},e._clsEntry=n)}))},e.prototype._trackNavigator=function(e){var t=Et.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Tt(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),Tt(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),Tt(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),Tt(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(e){var t=this;!function(e,t){var n,r=_t(),i=ct("LCP"),o=function(e){var t=e.startTime;tn&&(e.startTimestamp=n),e.startChild(Object(c.a)({startTimestamp:n},r))}function Tt(e){return"number"==typeof e&&isFinite(e)}var mt=n(213),Nt={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function It(e){var t=Object(c.a)(Object(c.a)({},Nt),e),n=t.traceFetch,r=t.traceXHR,i=t.tracingOrigins,o=t.shouldCreateSpanForRequest,s={},a=function(e){if(s[e])return s[e];var t=i;return s[e]=t.some((function(t){return Object(_e.a)(e,t)}))&&!Object(_e.a)(e,"sentry_key"),s[e]},u=a;"function"==typeof o&&(u=function(e){return a(e)&&o(e)});var l={};n&&Object(mt.a)({callback:function(e){!function(e,t,n){if(!Object(it.c)()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp&&e.fetchData.__span){return void((i=n[e.fetchData.__span])&&(e.response?i.setHttpStatus(e.response.status):e.error&&i.setStatus(rt.a.InternalError),i.finish(),delete n[e.fetchData.__span]))}var r=Object(it.b)();if(r){var i=r.startChild({data:Object(c.a)(Object(c.a)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http.client"});e.fetchData.__span=i.spanId,n[i.spanId]=i;var o=e.args[0]=e.args[0],s=e.args[1]=e.args[1]||{},a=s.headers;Object(B.d)(o,Request)&&(a=o.headers),a?"function"==typeof a.append?a.append("sentry-trace",i.toTraceparent()):a=Array.isArray(a)?Object(c.g)(a,[["sentry-trace",i.toTraceparent()]]):Object(c.a)(Object(c.a)({},a),{"sentry-trace":i.toTraceparent()}):a={"sentry-trace":i.toTraceparent()},s.headers=a}}(e,u,l)},type:"fetch"}),r&&Object(mt.a)({callback:function(e){!function(e,t,n){var r,i;if(!Object(it.c)()||(null===(r=e.xhr)||void 0===r?void 0:r.__sentry_own_request__)||!(null===(i=e.xhr)||void 0===i?void 0:i.__sentry_xhr__)||!t(e.xhr.__sentry_xhr__.url))return;var o=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__){return void((a=n[e.xhr.__sentry_xhr_span_id__])&&(a.setHttpStatus(o.status_code),a.finish(),delete n[e.xhr.__sentry_xhr_span_id__]))}var s=Object(it.b)();if(s){var a=s.startChild({data:Object(c.a)(Object(c.a)({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=a.spanId,n[e.xhr.__sentry_xhr_span_id__]=a,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",a.toTraceparent())}catch(e){}}}(e,u,l)},type:"xhr"})}var Ot=Object(ve.a)();var vt=Object(c.a)({idleTimeout:nt.a,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),Ot&&Ot.location){var r,i=Ot.location.href;t&&(r=e({name:Ot.location.pathname,op:"pageload"})),n&&Object(mt.a)({callback:function(t){var n=t.to,o=t.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(y.b.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:Ot.location.pathname,op:"navigation"}))},type:"history"})}else y.b.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Nt),bt=function(){function e(t){this.name=e.id,this._emitOptionsWarning=!1;var n=Nt.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=Object(c.a)(Object(c.a)(Object(c.a)({},vt),t),{tracingOrigins:n}),this._metrics=new gt(Object(c.a)(Object(c.a)({},pt),this.options._metricOptions))}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(y.b.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),y.b.warn("[Tracing] We added a reasonable default for you: "+Nt.tracingOrigins));var r=this.options,i=r.routingInstrumentation,o=r.startTransactionOnLocationChange,s=r.startTransactionOnPageLoad,a=r.markBackgroundTransactions,u=r.traceFetch,c=r.traceXHR,l=r.tracingOrigins,d=r.shouldCreateSpanForRequest;i((function(e){return n._createRouteTransaction(e)}),s,o),a&&(ot&&ot.document?ot.document.addEventListener("visibilitychange",(function(){var e=Object(it.b)();ot.document.hidden&&e&&(y.b.log("[Tracing] Transaction: "+rt.a.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(rt.a.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):y.b.warn("[Tracing] Could not set up background tab detection due to lack of global document")),It({traceFetch:u,traceXHR:c,tracingOrigins:l,shouldCreateSpanForRequest:d})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,i=n.idleTimeout,o=n.maxTransactionDuration,s="pageload"===e.op?function(){var e=(t="sentry-trace",n=Object(ve.a)().document.querySelector("meta[name="+t+"]"),n?n.getAttribute("content"):null);var t,n;if(e)return Object(it.a)(e);return}():void 0,a=Object(c.a)(Object(c.a)(Object(c.a)({},e),s),{trimEnd:!0}),u="function"==typeof r?r(a):a,l=void 0===u?Object(c.a)(Object(c.a)({},a),{sampled:!1}):u;!1===l.sampled&&y.b.log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate."),y.b.log("[Tracing] Starting "+l.op+" transaction on scope");var d=this._getCurrentHub(),f=Object(ve.a)().location,_=Object(tt.b)(d,l,i,!0,{location:f});return _.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus(rt.a.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}(Object(it.e)(o),e,n)})),_}y.b.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();var St=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){this._router?function(e,t){void 0===t&&(t=[]);t.forEach((function(t){return function(e,t){var n=e[t];return e[t]=function(){for(var e=[],r=0;r",r[o[1]]="string"==typeof l?l:l.name||""}else for(var d=0;d",s="https"===e.protocol||e.secure||(e.socket||{}).encrypted?"https":"http",a=e.originalUrl||e.url||"",u=s+"://"+o+a;return t.forEach((function(t){switch(t){case"headers":n.headers=r;break;case"method":n.method=i;break;case"url":n.url=u;break;case"cookies":n.cookies=e.cookies||Ut.parse(r.cookie||"");break;case"query_string":n.query_string=e.query||Z.parse(a||"",!1).query;break;case"data":if("GET"===i||"HEAD"===i)break;void 0!==e.body&&(n.data=Object(B.h)(e.body)?e.body:JSON.stringify(Object(U.d)(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}})),n}function Qt(e,t,n){if((n=Object(c.a)({ip:!1,request:!0,serverName:!0,transaction:!0,user:!0,version:!0},n)).version&&(e.contexts=Object(c.a)(Object(c.a)({},e.contexts),{runtime:{name:"node",version:global.process.version}})),n.request){var r=Array.isArray(n.request)?kt(t,n.request):kt(t);e.request=Object(c.a)(Object(c.a)({},e.request),r)}if(n.serverName&&!e.server_name&&(e.server_name=global.process.env.SENTRY_NAME||Pt.hostname()),n.user){var i=t.user&&Object(B.e)(t.user)?function(e,t){var n={};return(Array.isArray(t)?t:xt).forEach((function(t){e&&t in e&&(n[t]=e[t])})),n}(t.user,n.user):{};Object.keys(i)&&(e.user=Object(c.a)(Object(c.a)({},e.user),i))}if(n.ip){var o=t.ip||t.connection&&t.connection.remoteAddress;o&&(e.user=Object(c.a)(Object(c.a)({},e.user),{ip_address:o}))}return n.transaction&&!e.transaction&&(e.transaction=function(e,t){var n;switch(t){case"path":return Gt(e,{path:!0});case"handler":return(null===(n=e.route)||void 0===n?void 0:n.stack[0].name)||"";case"methodPath":default:return Gt(e,{path:!0,method:!0})}}(t,n.transaction)),e}function Ht(e){var t=Object(f.b)(),n=t.getClient();if(n&&Je(n)){n.initSessionFlusher();var r=t.getScope();r&&r.getSession()&&r.setSession()}return function(t,n,r){if(e&&e.flushTimeout&&e.flushTimeout>0){var i=n.end;n.end=function(t,n,r){var o=this;Xe(e.flushTimeout).then((function(){i.call(o,t,n,r)})).then(null,(function(e){y.b.error(e)}))}}var o=be.create();o.add(t),o.add(n),o.on("error",r),o.run((function(){var i=Object(f.b)();i.configureScope((function(n){if(n.addEventProcessor((function(n){return Qt(n,t,e)})),Je(i.getClient())){var r=i.getScope();r&&r.setRequestSession({status:le.a.Ok})}})),n.once("finish",(function(){var e=i.getClient();Je(e)&&setImmediate((function(){e&&e._captureRequestSession&&e._captureRequestSession()}))})),r()}))}}function Vt(e){return function(e){var t=e.status||e.statusCode||e.status_code||e.output&&e.output.statusCode;return t?parseInt(t,10):500}(e)>=500}function Wt(e){return function(t,n,r,i){(e&&e.shouldHandleError||Vt)(t)?v((function(e){var n=r.__sentry_transaction;n&&void 0===e.getSpan()&&e.setSpan(n);var o=Object(f.b)().getClient();if(o&&Je(o)&&void 0!==o._sessionFlusher){var s=e.getRequestSession();s&&void 0!==s.status&&(s.status=le.a.Crashed)}var a=h(t);r.sentry=a,i(t)})):i(t)}}var Yt=Object(c.a)(Object(c.a)({},i),o),Kt=Object(f.d)();Kt.__SENTRY__&&(Kt.__SENTRY__.extensions=Kt.__SENTRY__.extensions||{},Kt.__SENTRY__.extensions.domain=Kt.__SENTRY__.extensions.domain||be)},function(e,t,n){"use strict";n.r(t),n.d(t,"v1",(function(){return p})),n.d(t,"v3",(function(){return A})),n.d(t,"v4",(function(){return T})),n.d(t,"v5",(function(){return m})),n.d(t,"NIL",(function(){return N})),n.d(t,"version",(function(){return I})),n.d(t,"validate",(function(){return c})),n.d(t,"stringify",(function(){return d})),n.d(t,"parse",(function(){return g}));var r=n(23),i=n.n(r);const o=new Uint8Array(256);let s=o.length;function a(){return s>o.length-16&&(i.a.randomFillSync(o),s=0),o.slice(s,s+=16)}var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;var c=function(e){return"string"==typeof e&&u.test(e)};const l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).substr(1));var d=function(e,t=0){const n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!c(n))throw TypeError("Stringified UUID is invalid");return n};let f,_,h=0,E=0;var p=function(e,t,n){let r=t&&n||0;const i=t||new Array(16);let o=(e=e||{}).node||f,s=void 0!==e.clockseq?e.clockseq:_;if(null==o||null==s){const t=e.random||(e.rng||a)();null==o&&(o=f=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==s&&(s=_=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:E+1;const l=u-h+(c-E)/1e4;if(l<0&&void 0===e.clockseq&&(s=s+1&16383),(l<0||u>h)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=u,E=c,_=s,u+=122192928e5;const p=(1e4*(268435455&u)+c)%4294967296;i[r++]=p>>>24&255,i[r++]=p>>>16&255,i[r++]=p>>>8&255,i[r++]=255&p;const g=u/4294967296*1e4&268435455;i[r++]=g>>>8&255,i[r++]=255&g,i[r++]=g>>>24&15|16,i[r++]=g>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(let e=0;e<6;++e)i[r+e]=o[e];return t||d(i)};var g=function(e){if(!c(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var R=function(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n=0;n--){var r=t[n];if(!0===r.in_app){e.transaction=this._getTransaction(r);break}}return e},e.prototype._getFramesFromEvent=function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];return t&&t.stacktrace&&t.stacktrace.frames||[]},e.prototype._getTransaction=function(e){return e.module||e.function?(e.module||"?")+"/"+(e.function||"?"):""},e.id="Transaction",e}(),w=n(55),C={id:"Tracing"},D={id:"BrowserTracing"},L={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},M=/(?:^|[-_/])(\w)/g,B=function(){function e(t){var n=this;this.name=e.id,this._componentsCache={},this._applyTracingHooks=function(e,t){if(!e.$options.$_sentryPerfHook){e.$options.$_sentryPerfHook=!0;var r=n._getComponentName(e),s="root"===r,a={},u=function(r){var i=Object(w.d)();n._rootSpan?n._finishRootSpan(i,t):e.$once("hook:"+r,(function(){var e=t().getIntegration(C);if(e){n._tracingActivity=e.constructor.pushActivity("Vue Application Render");var r=e.constructor.getTransaction();r&&(n._rootSpan=r.startChild({description:"Application Render",op:"vue"}))}else{var i=function(e){if(e&&e.getScope){var t=e.getScope();if(t)return t.getTransaction()}return}(t());i&&(n._rootSpan=i.startChild({description:"Application Render",op:"vue"}))}}))},c=function(i,o){var s=Array.isArray(n._options.tracingOptions.trackComponents)?n._options.tracingOptions.trackComponents.indexOf(r)>-1:n._options.tracingOptions.trackComponents;if(n._rootSpan&&s){var u=Object(w.d)(),c=a[o];c?(c.finish(),n._finishRootSpan(u,t)):e.$once("hook:"+i,(function(){n._rootSpan&&(a[o]=n._rootSpan.startChild({description:"Vue <"+r+">",op:o}))}))}};n._options.tracingOptions.hooks.forEach((function(t){var r=L[t];r?r.forEach((function(r){var o=s?u.bind(n,r):c.bind(n,r,t),a=e.$options[r];Array.isArray(a)?e.$options[r]=Object(i.g)([o],a):e.$options[r]="function"==typeof a?[o,a]:[o]})):o.b.warn("Unknown hook: "+t)}))}},o.b.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=Object(i.a)(Object(i.a)({Vue:Object(s.a)().Vue,attachProps:!0,logErrors:!1,tracing:!1},t),{tracingOptions:Object(i.a)({hooks:["mount","update"],timeout:2e3,trackComponents:!1},t.tracingOptions)})}return e.prototype.setupOnce=function(e,t){this._options.Vue?(this._attachErrorHandler(t),this._options.tracing&&this._startTracing(t)):o.b.error("Vue integration is missing a Vue instance")},e.prototype._getComponentName=function(e){if(!e)return"anonymous component";if(e.$root===e)return"root";if(!e.$options)return"anonymous component";if(e.$options.name)return e.$options.name;if(e.$options._componentTag)return e.$options._componentTag;if(e.$options.__file){var t=e.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),n=Object(v.a)(t,".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(M,(function(e,t){return t?t.toUpperCase():""})))}return"anonymous component"},e.prototype._finishRootSpan=function(e,t){var n=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout((function(){if(n._tracingActivity){var r=t().getIntegration(C);r&&r.constructor.popActivity(n._tracingActivity)}n._rootSpan&&n._rootSpan.finish(e)}),this._options.tracingOptions.timeout)},e.prototype._startTracing=function(e){var t=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){e().getIntegration(C)||e().getIntegration(D)?t(this,e):o.b.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},e.prototype._attachErrorHandler=function(t){var n=this,r=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(i,s,a){var u={};if(s)try{u.componentName=n._getComponentName(s),n._options.attachProps&&(u.propsData=s.$options.propsData)}catch(e){o.b.warn("Unable to extract metadata from Vue component.")}a&&(u.lifecycleHook=a),t().getIntegration(e)&&setTimeout((function(){t().withScope((function(e){e.setContext("vue",u),t().captureException(i)}))})),"function"==typeof r&&r.call(n._options.Vue,i,s,a),n._options.logErrors&&(n._options.Vue.util&&n._options.Vue.util.warn("Error in "+a+': "'+(i&&i.toString())+'"',s),console.error(i))}},e.id="Vue",e}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.BeforeSend="before_send",e.EventProcessor="event_processor",e.NetworkError="network_error",e.QueueOverflow="queue_overflow",e.RateLimitBackoff="ratelimit_backoff",e.SampleRate="sample_rate"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(r||(r={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(r||(r={}))},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function o(e){var t=i.exec(e);return t?t.slice(1):[]}function s(){for(var e=[],t=0;t=-1&&!i;o--){var s=o>=0?e[o]:"/";s&&(n=s+"/"+n,i="/"===s.charAt(0))}return(i?"/":"")+(n=r(n.split("/").filter((function(e){return!!e})),!i).join("/"))||"."}function a(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function u(e,t){e=s(e).substr(1),t=s(t).substr(1);for(var n=a(e.split("/")),r=a(t.split("/")),i=Math.min(n.length,r.length),o=i,u=0;u= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { getCurrentHub } from '@sentry/hub';\nexport var TRACEPARENT_REGEXP = new RegExp('^[ \\\\t]*' + // whitespace\n '([0-9a-f]{32})?' + // trace_id\n '-?([0-9a-f]{16})?' + // span_id\n '-?([01])?' + // sampled\n '[ \\\\t]*$');\n/**\n * Determines if tracing is currently enabled.\n *\n * Tracing is enabled when at least one of `tracesSampleRate` and `tracesSampler` is defined in the SDK config.\n */\nexport function hasTracingEnabled(options) {\n if (options === void 0) { options = (_a = getCurrentHub()\n .getClient()) === null || _a === void 0 ? void 0 : _a.getOptions(); }\n var _a;\n if (!options) {\n return false;\n }\n return 'tracesSampleRate' in options || 'tracesSampler' in options;\n}\n/**\n * Extract transaction context data from a `sentry-trace` header.\n *\n * @param traceparent Traceparent string\n *\n * @returns Object containing data from the header, or undefined if traceparent string is malformed\n */\nexport function extractTraceparentData(traceparent) {\n var matches = traceparent.match(TRACEPARENT_REGEXP);\n if (matches) {\n var parentSampled = void 0;\n if (matches[3] === '1') {\n parentSampled = true;\n }\n else if (matches[3] === '0') {\n parentSampled = false;\n }\n return {\n traceId: matches[1],\n parentSampled: parentSampled,\n parentSpanId: matches[2],\n };\n }\n return undefined;\n}\n/** Grabs active transaction off scope, if any */\nexport function getActiveTransaction(hub) {\n if (hub === void 0) { hub = getCurrentHub(); }\n var _a, _b;\n return (_b = (_a = hub) === null || _a === void 0 ? void 0 : _a.getScope()) === null || _b === void 0 ? void 0 : _b.getTransaction();\n}\n/**\n * Converts from milliseconds to seconds\n * @param time time in ms\n */\nexport function msToSec(time) {\n return time / 1000;\n}\n/**\n * Converts from seconds to milliseconds\n * @param time time in seconds\n */\nexport function secToMs(time) {\n return time * 1000;\n}\n// so it can be used in manual instrumentation without necessitating a hard dependency on @sentry/utils\nexport { stripUrlQueryAndFragment } from '@sentry/utils';\n//# sourceMappingURL=utils.js.map","'use strict';\n\n/**\n * A shareable symbol constant that can be used\n * as a non-enumerable / semi-hidden level identifier\n * to allow the readable level property to be mutable for\n * operations like colorization\n *\n * @type {Symbol}\n */\nObject.defineProperty(exports, 'LEVEL', {\n value: Symbol.for('level')\n});\n\n/**\n * A shareable symbol constant that can be used\n * as a non-enumerable / semi-hidden message identifier\n * to allow the final message property to not have\n * side effects on another.\n *\n * @type {Symbol}\n */\nObject.defineProperty(exports, 'MESSAGE', {\n value: Symbol.for('message')\n});\n\n/**\n * A shareable symbol constant that can be used\n * as a non-enumerable / semi-hidden message identifier\n * to allow the extracted splat property be hidden\n *\n * @type {Symbol}\n */\nObject.defineProperty(exports, 'SPLAT', {\n value: Symbol.for('splat')\n});\n\n/**\n * A shareable object constant that can be used\n * as a standard configuration for winston@3.\n *\n * @type {Object}\n */\nObject.defineProperty(exports, 'configs', {\n value: require('./config')\n});\n","import { getGlobalObject } from './global';\n// TODO: Implement different loggers for different environments\nvar global = getGlobalObject();\n/** Prefix for logging strings */\nvar PREFIX = 'Sentry Logger ';\n/**\n * Temporarily unwrap `console.log` and friends in order to perform the given callback using the original methods.\n * Restores wrapping after the callback completes.\n *\n * @param callback The function to run against the original `console` messages\n * @returns The results of the callback\n */\nexport function consoleSandbox(callback) {\n var global = getGlobalObject();\n var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert'];\n if (!('console' in global)) {\n return callback();\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var originalConsole = global.console;\n var wrappedLevels = {};\n // Restore all wrapped console methods\n levels.forEach(function (level) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (level in global.console && originalConsole[level].__sentry_original__) {\n wrappedLevels[level] = originalConsole[level];\n originalConsole[level] = originalConsole[level].__sentry_original__;\n }\n });\n // Perform callback manipulations\n var result = callback();\n // Revert restoration to wrapped state\n Object.keys(wrappedLevels).forEach(function (level) {\n originalConsole[level] = wrappedLevels[level];\n });\n return result;\n}\n/** JSDoc */\nvar Logger = /** @class */ (function () {\n /** JSDoc */\n function Logger() {\n this._enabled = false;\n }\n /** JSDoc */\n Logger.prototype.disable = function () {\n this._enabled = false;\n };\n /** JSDoc */\n Logger.prototype.enable = function () {\n this._enabled = true;\n };\n /** JSDoc */\n Logger.prototype.log = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (!this._enabled) {\n return;\n }\n consoleSandbox(function () {\n global.console.log(PREFIX + \"[Log]: \" + args.join(' '));\n });\n };\n /** JSDoc */\n Logger.prototype.warn = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (!this._enabled) {\n return;\n }\n consoleSandbox(function () {\n global.console.warn(PREFIX + \"[Warn]: \" + args.join(' '));\n });\n };\n /** JSDoc */\n Logger.prototype.error = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (!this._enabled) {\n return;\n }\n consoleSandbox(function () {\n global.console.error(PREFIX + \"[Error]: \" + args.join(' '));\n });\n };\n return Logger;\n}());\n// Ensure we only have a single logger instance, even if multiple versions of @sentry/utils are being used\nglobal.__SENTRY__ = global.__SENTRY__ || {};\nvar logger = global.__SENTRY__.logger || (global.__SENTRY__.logger = new Logger());\nexport { logger };\n//# sourceMappingURL=logger.js.map","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat) {\n switch (Object.prototype.toString.call(wat)) {\n case '[object Error]':\n return true;\n case '[object Exception]':\n return true;\n case '[object DOMException]':\n return true;\n default:\n return isInstanceOf(wat, Error);\n }\n}\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat) {\n return Object.prototype.toString.call(wat) === '[object ErrorEvent]';\n}\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat) {\n return Object.prototype.toString.call(wat) === '[object DOMError]';\n}\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat) {\n return Object.prototype.toString.call(wat) === '[object DOMException]';\n}\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat) {\n return Object.prototype.toString.call(wat) === '[object String]';\n}\n/**\n * Checks whether given value's is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat) {\n return wat === null || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n/**\n * Checks whether given value's type is an object literal\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat) {\n return Object.prototype.toString.call(wat) === '[object Object]';\n}\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat) {\n return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isElement(wat) {\n return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat) {\n return Object.prototype.toString.call(wat) === '[object RegExp]';\n}\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n}\n/**\n * Checks whether given value's type is a SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isSyntheticEvent(wat) {\n return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\nexport function isInstanceOf(wat, base) {\n try {\n return wat instanceof base;\n }\n catch (_e) {\n return false;\n }\n}\n//# sourceMappingURL=is.js.map","// This file was modified by Oracle on June 1, 2021.\n// A comment describing some changes in the strict default SQL mode regarding\n// non-standard dates was introduced.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst ErrorCodeToName = require('../constants/errors.js');\nconst NativeBuffer = require('buffer').Buffer;\nconst Long = require('long');\nconst StringParser = require('../parsers/string.js');\n\nconst INVALID_DATE = new Date(NaN);\n\n// this is nearly duplicate of previous function so generated code is not slower\n// due to \"if (dateStrings)\" branching\nconst pad = '000000000000';\nfunction leftPad(num, value) {\n const s = value.toString();\n // if we don't need to pad\n if (s.length >= num) {\n return s;\n }\n return (pad + s).slice(-num);\n}\n\n// The whole reason parse* function below exist\n// is because String creation is relatively expensive (at least with V8), and if we have\n// a buffer with \"12345\" content ideally we would like to bypass intermediate\n// \"12345\" string creation and directly build 12345 number out of\n// data.\n// In my benchmarks the difference is ~25M 8-digit numbers per second vs\n// 4.5 M using Number(packet.readLengthCodedString())\n// not used when size is close to max precision as series of *10 accumulate error\n// and approximate result mihgt be diffreent from (approximate as well) Number(bigNumStringValue))\n// In the futire node version if speed difference is smaller parse* functions might be removed\n// don't consider them as Packet public API\n\nconst minus = '-'.charCodeAt(0);\nconst plus = '+'.charCodeAt(0);\n\n// TODO: handle E notation\nconst dot = '.'.charCodeAt(0);\nconst exponent = 'e'.charCodeAt(0);\nconst exponentCapital = 'E'.charCodeAt(0);\n\nclass Packet {\n constructor(id, buffer, start, end) {\n // hot path, enable checks when testing only\n // if (!Buffer.isBuffer(buffer) || typeof start == 'undefined' || typeof end == 'undefined')\n // throw new Error('invalid packet');\n this.sequenceId = id;\n this.numPackets = 1;\n this.buffer = buffer;\n this.start = start;\n this.offset = start + 4;\n this.end = end;\n }\n\n // ==============================\n // readers\n // ==============================\n reset() {\n this.offset = this.start + 4;\n }\n\n length() {\n return this.end - this.start;\n }\n\n slice() {\n return this.buffer.slice(this.start, this.end);\n }\n\n dump() {\n // eslint-disable-next-line no-console\n console.log(\n [this.buffer.asciiSlice(this.start, this.end)],\n this.buffer.slice(this.start, this.end),\n this.length(),\n this.sequenceId\n );\n }\n\n haveMoreData() {\n return this.end > this.offset;\n }\n\n skip(num) {\n this.offset += num;\n }\n\n readInt8() {\n return this.buffer[this.offset++];\n }\n\n readInt16() {\n this.offset += 2;\n return this.buffer.readUInt16LE(this.offset - 2);\n }\n\n readInt24() {\n return this.readInt16() + (this.readInt8() << 16);\n }\n\n readInt32() {\n this.offset += 4;\n return this.buffer.readUInt32LE(this.offset - 4);\n }\n\n readSInt8() {\n return this.buffer.readInt8(this.offset++);\n }\n\n readSInt16() {\n this.offset += 2;\n return this.buffer.readInt16LE(this.offset - 2);\n }\n\n readSInt32() {\n this.offset += 4;\n return this.buffer.readInt32LE(this.offset - 4);\n }\n\n readInt64JSNumber() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n const l = new Long(word0, word1, true);\n return l.toNumber();\n }\n\n readSInt64JSNumber() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n if (!(word1 & 0x80000000)) {\n return word0 + 0x100000000 * word1;\n }\n const l = new Long(word0, word1, false);\n return l.toNumber();\n }\n\n readInt64String() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n const res = new Long(word0, word1, true);\n return res.toString();\n }\n\n readSInt64String() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n const res = new Long(word0, word1, false);\n return res.toString();\n }\n\n readInt64() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n let res = new Long(word0, word1, true);\n const resNumber = res.toNumber();\n const resString = res.toString();\n res = resNumber.toString() === resString ? resNumber : resString;\n return res;\n }\n\n readSInt64() {\n const word0 = this.readInt32();\n const word1 = this.readInt32();\n let res = new Long(word0, word1, false);\n const resNumber = res.toNumber();\n const resString = res.toString();\n res = resNumber.toString() === resString ? resNumber : resString;\n return res;\n }\n\n isEOF() {\n return this.buffer[this.offset] === 0xfe && this.length() < 13;\n }\n\n eofStatusFlags() {\n return this.buffer.readInt16LE(this.offset + 3);\n }\n\n eofWarningCount() {\n return this.buffer.readInt16LE(this.offset + 1);\n }\n\n readLengthCodedNumber(bigNumberStrings, signed) {\n const byte1 = this.buffer[this.offset++];\n if (byte1 < 251) {\n return byte1;\n }\n return this.readLengthCodedNumberExt(byte1, bigNumberStrings, signed);\n }\n\n readLengthCodedNumberSigned(bigNumberStrings) {\n return this.readLengthCodedNumber(bigNumberStrings, true);\n }\n\n readLengthCodedNumberExt(tag, bigNumberStrings, signed) {\n let word0, word1;\n let res;\n if (tag === 0xfb) {\n return null;\n }\n if (tag === 0xfc) {\n return this.readInt8() + (this.readInt8() << 8);\n }\n if (tag === 0xfd) {\n return this.readInt8() + (this.readInt8() << 8) + (this.readInt8() << 16);\n }\n if (tag === 0xfe) {\n // TODO: check version\n // Up to MySQL 3.22, 0xfe was followed by a 4-byte integer.\n word0 = this.readInt32();\n word1 = this.readInt32();\n if (word1 === 0) {\n return word0; // don't convert to float if possible\n }\n if (word1 < 2097152) {\n // max exact float point int, 2^52 / 2^32\n return word1 * 0x100000000 + word0;\n }\n res = new Long(word0, word1, !signed); // Long need unsigned\n const resNumber = res.toNumber();\n const resString = res.toString();\n res = resNumber.toString() === resString ? resNumber : resString;\n return bigNumberStrings ? resString : res;\n }\n // eslint-disable-next-line no-console\n console.trace();\n throw new Error(`Should not reach here: ${tag}`);\n }\n\n readFloat() {\n const res = this.buffer.readFloatLE(this.offset);\n this.offset += 4;\n return res;\n }\n\n readDouble() {\n const res = this.buffer.readDoubleLE(this.offset);\n this.offset += 8;\n return res;\n }\n\n readBuffer(len) {\n if (typeof len === 'undefined') {\n len = this.end - this.offset;\n }\n this.offset += len;\n return this.buffer.slice(this.offset - len, this.offset);\n }\n\n // DATE, DATETIME and TIMESTAMP\n readDateTime(timezone) {\n if (!timezone || timezone === 'Z' || timezone === 'local') {\n const length = this.readInt8();\n if (length === 0xfb) {\n return null;\n }\n let y = 0;\n let m = 0;\n let d = 0;\n let H = 0;\n let M = 0;\n let S = 0;\n let ms = 0;\n if (length > 3) {\n y = this.readInt16();\n m = this.readInt8();\n d = this.readInt8();\n }\n if (length > 6) {\n H = this.readInt8();\n M = this.readInt8();\n S = this.readInt8();\n }\n if (length > 10) {\n ms = this.readInt32() / 1000;\n }\n // NO_ZERO_DATE mode and NO_ZERO_IN_DATE mode are part of the strict\n // default SQL mode used by MySQL 8.0. This means that non-standard\n // dates like '0000-00-00' become NULL. For older versions and other\n // possible MySQL flavours we still need to account for the\n // non-standard behaviour.\n if (y + m + d + H + M + S + ms === 0) {\n return INVALID_DATE;\n }\n if (timezone === 'Z') {\n return new Date(Date.UTC(y, m - 1, d, H, M, S, ms));\n }\n return new Date(y, m - 1, d, H, M, S, ms);\n }\n let str = this.readDateTimeString(6, 'T');\n if (str.length === 10) {\n str += 'T00:00:00';\n }\n return new Date(str + timezone);\n }\n\n readDateTimeString(decimals, timeSep) {\n const length = this.readInt8();\n let y = 0;\n let m = 0;\n let d = 0;\n let H = 0;\n let M = 0;\n let S = 0;\n let ms = 0;\n let str;\n if (length > 3) {\n y = this.readInt16();\n m = this.readInt8();\n d = this.readInt8();\n str = [leftPad(4, y), leftPad(2, m), leftPad(2, d)].join('-');\n }\n if (length > 6) {\n H = this.readInt8();\n M = this.readInt8();\n S = this.readInt8();\n str += `${timeSep || ' '}${[\n leftPad(2, H),\n leftPad(2, M),\n leftPad(2, S)\n ].join(':')}`;\n }\n if (length > 10) {\n ms = this.readInt32();\n str += '.';\n if (decimals) {\n ms = leftPad(6, ms);\n if (ms.length > decimals) {\n ms = ms.substring(0, decimals); // rounding is done at the MySQL side, only 0 are here\n }\n }\n str += ms;\n }\n return str;\n }\n\n // TIME - value as a string, Can be negative\n readTimeString(convertTtoMs) {\n const length = this.readInt8();\n if (length === 0) {\n return '00:00:00';\n }\n const sign = this.readInt8() ? -1 : 1; // 'isNegative' flag byte\n let d = 0;\n let H = 0;\n let M = 0;\n let S = 0;\n let ms = 0;\n if (length > 6) {\n d = this.readInt32();\n H = this.readInt8();\n M = this.readInt8();\n S = this.readInt8();\n }\n if (length > 10) {\n ms = this.readInt32();\n }\n if (convertTtoMs) {\n H += d * 24;\n M += H * 60;\n S += M * 60;\n ms += S * 1000;\n ms *= sign;\n return ms;\n }\n // Format follows mySQL TIME format ([-][h]hh:mm:ss[.u[u[u[u[u[u]]]]]])\n // For positive times below 24 hours, this makes it equal to ISO 8601 times\n return (\n (sign === -1 ? '-' : '') +\n [leftPad(2, d * 24 + H), leftPad(2, M), leftPad(2, S)].join(':') +\n (ms ? `.${ms}`.replace(/0+$/, '') : '')\n );\n }\n\n readLengthCodedString(encoding) {\n const len = this.readLengthCodedNumber();\n // TODO: check manually first byte here to avoid polymorphic return type?\n if (len === null) {\n return null;\n }\n this.offset += len;\n // TODO: Use characterSetCode to get proper encoding\n // https://github.com/sidorares/node-mysql2/pull/374\n return StringParser.decode(\n this.buffer,\n encoding,\n this.offset - len,\n this.offset\n );\n }\n\n readLengthCodedBuffer() {\n const len = this.readLengthCodedNumber();\n if (len === null) {\n return null;\n }\n return this.readBuffer(len);\n }\n\n readNullTerminatedString(encoding) {\n const start = this.offset;\n let end = this.offset;\n while (this.buffer[end]) {\n end = end + 1; // TODO: handle OOB check\n }\n this.offset = end + 1;\n return StringParser.decode(this.buffer, encoding, start, end);\n }\n\n // TODO reuse?\n readString(len, encoding) {\n if (typeof len === 'string' && typeof encoding === 'undefined') {\n encoding = len;\n len = undefined;\n }\n if (typeof len === 'undefined') {\n len = this.end - this.offset;\n }\n this.offset += len;\n return StringParser.decode(\n this.buffer,\n encoding,\n this.offset - len, \n this.offset\n );\n }\n\n parseInt(len, supportBigNumbers) {\n if (len === null) {\n return null;\n }\n if (len >= 14 && !supportBigNumbers) {\n const s = this.buffer.toString('ascii', this.offset, this.offset + len);\n this.offset += len;\n return Number(s);\n }\n let result = 0;\n const start = this.offset;\n const end = this.offset + len;\n let sign = 1;\n if (len === 0) {\n return 0; // TODO: assert? exception?\n }\n if (this.buffer[this.offset] === minus) {\n this.offset++;\n sign = -1;\n }\n // max precise int is 9007199254740992\n let str;\n const numDigits = end - this.offset;\n if (supportBigNumbers) {\n if (numDigits >= 15) {\n str = this.readString(end - this.offset, 'binary');\n result = parseInt(str, 10);\n if (result.toString() === str) {\n return sign * result;\n }\n return sign === -1 ? `-${str}` : str;\n }\n if (numDigits > 16) {\n str = this.readString(end - this.offset);\n return sign === -1 ? `-${str}` : str;\n }\n }\n if (this.buffer[this.offset] === plus) {\n this.offset++; // just ignore\n }\n while (this.offset < end) {\n result *= 10;\n result += this.buffer[this.offset] - 48;\n this.offset++;\n }\n const num = result * sign;\n if (!supportBigNumbers) {\n return num;\n }\n str = this.buffer.toString('ascii', start, end);\n if (num.toString() === str) {\n return num;\n }\n return str;\n }\n\n // note that if value of inputNumberAsString is bigger than MAX_SAFE_INTEGER\n // ( or smaller than MIN_SAFE_INTEGER ) the parseIntNoBigCheck result might be\n // different from what you would get from Number(inputNumberAsString)\n // String(parseIntNoBigCheck) <> String(Number(inputNumberAsString)) <> inputNumberAsString\n parseIntNoBigCheck(len) {\n if (len === null) {\n return null;\n }\n let result = 0;\n const end = this.offset + len;\n let sign = 1;\n if (len === 0) {\n return 0; // TODO: assert? exception?\n }\n if (this.buffer[this.offset] === minus) {\n this.offset++;\n sign = -1;\n }\n if (this.buffer[this.offset] === plus) {\n this.offset++; // just ignore\n }\n while (this.offset < end) {\n result *= 10;\n result += this.buffer[this.offset] - 48;\n this.offset++;\n }\n return result * sign;\n }\n\n // copy-paste from https://github.com/mysqljs/mysql/blob/master/lib/protocol/Parser.js\n parseGeometryValue() {\n const buffer = this.readLengthCodedBuffer();\n let offset = 4;\n if (buffer === null || !buffer.length) {\n return null;\n }\n function parseGeometry() {\n let x, y, i, j, numPoints, line;\n let result = null;\n const byteOrder = buffer.readUInt8(offset);\n offset += 1;\n const wkbType = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n switch (wkbType) {\n case 1: // WKBPoint\n x = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n y = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n result = { x: x, y: y };\n break;\n case 2: // WKBLineString\n numPoints = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n result = [];\n for (i = numPoints; i > 0; i--) {\n x = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n y = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n result.push({ x: x, y: y });\n }\n break;\n case 3: // WKBPolygon\n // eslint-disable-next-line no-case-declarations\n const numRings = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n result = [];\n for (i = numRings; i > 0; i--) {\n numPoints = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n line = [];\n for (j = numPoints; j > 0; j--) {\n x = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n y = byteOrder\n ? buffer.readDoubleLE(offset)\n : buffer.readDoubleBE(offset);\n offset += 8;\n line.push({ x: x, y: y });\n }\n result.push(line);\n }\n break;\n case 4: // WKBMultiPoint\n case 5: // WKBMultiLineString\n case 6: // WKBMultiPolygon\n case 7: // WKBGeometryCollection\n // eslint-disable-next-line no-case-declarations\n const num = byteOrder\n ? buffer.readUInt32LE(offset)\n : buffer.readUInt32BE(offset);\n offset += 4;\n result = [];\n for (i = num; i > 0; i--) {\n result.push(parseGeometry());\n }\n break;\n }\n return result;\n }\n return parseGeometry();\n }\n\n parseDate(timezone) {\n const strLen = this.readLengthCodedNumber();\n if (strLen === null) {\n return null;\n }\n if (strLen !== 10) {\n // we expect only YYYY-MM-DD here.\n // if for some reason it's not the case return invalid date\n return new Date(NaN);\n }\n const y = this.parseInt(4);\n this.offset++; // -\n const m = this.parseInt(2);\n this.offset++; // -\n const d = this.parseInt(2);\n if (!timezone || timezone === 'local') {\n return new Date(y, m - 1, d);\n }\n if (timezone === 'Z') {\n return new Date(Date.UTC(y, m - 1, d));\n }\n return new Date(\n `${leftPad(4, y)}-${leftPad(2, m)}-${leftPad(2, d)}T00:00:00${timezone}`\n );\n }\n\n parseDateTime(timezone) {\n const str = this.readLengthCodedString('binary');\n if (str === null) {\n return null;\n }\n if (!timezone || timezone === 'local') {\n return new Date(str);\n }\n return new Date(`${str}${timezone}`);\n }\n\n parseFloat(len) {\n if (len === null) {\n return null;\n }\n let result = 0;\n const end = this.offset + len;\n let factor = 1;\n let pastDot = false;\n let charCode = 0;\n if (len === 0) {\n return 0; // TODO: assert? exception?\n }\n if (this.buffer[this.offset] === minus) {\n this.offset++;\n factor = -1;\n }\n if (this.buffer[this.offset] === plus) {\n this.offset++; // just ignore\n }\n while (this.offset < end) {\n charCode = this.buffer[this.offset];\n if (charCode === dot) {\n pastDot = true;\n this.offset++;\n } else if (charCode === exponent || charCode === exponentCapital) {\n this.offset++;\n const exponentValue = this.parseInt(end - this.offset);\n return (result / factor) * Math.pow(10, exponentValue);\n } else {\n result *= 10;\n result += this.buffer[this.offset] - 48;\n this.offset++;\n if (pastDot) {\n factor = factor * 10;\n }\n }\n }\n return result / factor;\n }\n\n parseLengthCodedIntNoBigCheck() {\n return this.parseIntNoBigCheck(this.readLengthCodedNumber());\n }\n\n parseLengthCodedInt(supportBigNumbers) {\n return this.parseInt(this.readLengthCodedNumber(), supportBigNumbers);\n }\n\n parseLengthCodedIntString() {\n return this.readLengthCodedString('binary');\n }\n\n parseLengthCodedFloat() {\n return this.parseFloat(this.readLengthCodedNumber());\n }\n\n peekByte() {\n return this.buffer[this.offset];\n }\n\n // OxFE is often used as \"Alt\" flag - not ok, not error.\n // For example, it's first byte of AuthSwitchRequest\n isAlt() {\n return this.peekByte() === 0xfe;\n }\n\n isError() {\n return this.peekByte() === 0xff;\n }\n\n asError(encoding) {\n this.reset();\n this.readInt8(); // fieldCount\n const errorCode = this.readInt16();\n let sqlState = '';\n if (this.buffer[this.offset] === 0x23) {\n this.skip(1);\n sqlState = this.readBuffer(5).toString();\n }\n const message = this.readString(undefined, encoding);\n const err = new Error(message);\n err.code = ErrorCodeToName[errorCode];\n err.errno = errorCode;\n err.sqlState = sqlState;\n err.sqlMessage = message;\n return err;\n }\n\n writeInt32(n) {\n this.buffer.writeUInt32LE(n, this.offset);\n this.offset += 4;\n }\n\n writeInt24(n) {\n this.writeInt8(n & 0xff);\n this.writeInt16(n >> 8);\n }\n\n writeInt16(n) {\n this.buffer.writeUInt16LE(n, this.offset);\n this.offset += 2;\n }\n\n writeInt8(n) {\n this.buffer.writeUInt8(n, this.offset);\n this.offset++;\n }\n\n writeDouble(n) {\n this.buffer.writeDoubleLE(n, this.offset);\n this.offset += 8;\n }\n\n writeBuffer(b) {\n b.copy(this.buffer, this.offset);\n this.offset += b.length;\n }\n\n writeNull() {\n this.buffer[this.offset] = 0xfb;\n this.offset++;\n }\n\n // TODO: refactor following three?\n writeNullTerminatedString(s, encoding) {\n const buf = StringParser.encode(s, encoding);\n this.buffer.length && buf.copy(this.buffer, this.offset);\n this.offset += buf.length;\n this.writeInt8(0);\n }\n\n writeString(s, encoding) {\n if (s === null) {\n this.writeInt8(0xfb);\n return;\n }\n if (s.length === 0) {\n return;\n }\n // const bytes = Buffer.byteLength(s, 'utf8');\n // this.buffer.write(s, this.offset, bytes, 'utf8');\n // this.offset += bytes;\n const buf = StringParser.encode(s, encoding);\n this.buffer.length && buf.copy(this.buffer, this.offset);\n this.offset += buf.length;\n }\n\n writeLengthCodedString(s, encoding) {\n const buf = StringParser.encode(s, encoding);\n this.writeLengthCodedNumber(buf.length);\n this.buffer.length && buf.copy(this.buffer, this.offset);\n this.offset += buf.length;\n }\n\n writeLengthCodedBuffer(b) {\n this.writeLengthCodedNumber(b.length);\n b.copy(this.buffer, this.offset);\n this.offset += b.length;\n }\n\n writeLengthCodedNumber(n) {\n if (n < 0xfb) {\n return this.writeInt8(n);\n }\n if (n < 0xffff) {\n this.writeInt8(0xfc);\n return this.writeInt16(n);\n }\n if (n < 0xffffff) {\n this.writeInt8(0xfd);\n return this.writeInt24(n);\n }\n if (n === null) {\n return this.writeInt8(0xfb);\n }\n // TODO: check that n is out of int precision\n this.writeInt8(0xfe);\n this.buffer.writeUInt32LE(n, this.offset);\n this.offset += 4;\n this.buffer.writeUInt32LE(n >> 32, this.offset);\n this.offset += 4;\n return this.offset;\n }\n\n writeDate(d, timezone) {\n this.buffer.writeUInt8(11, this.offset);\n if (!timezone || timezone === 'local') {\n this.buffer.writeUInt16LE(d.getFullYear(), this.offset + 1);\n this.buffer.writeUInt8(d.getMonth() + 1, this.offset + 3);\n this.buffer.writeUInt8(d.getDate(), this.offset + 4);\n this.buffer.writeUInt8(d.getHours(), this.offset + 5);\n this.buffer.writeUInt8(d.getMinutes(), this.offset + 6);\n this.buffer.writeUInt8(d.getSeconds(), this.offset + 7);\n this.buffer.writeUInt32LE(d.getMilliseconds() * 1000, this.offset + 8);\n } else {\n if (timezone !== 'Z') {\n const offset =\n (timezone[0] === '-' ? -1 : 1) *\n (parseInt(timezone.substring(1, 3), 10) * 60 +\n parseInt(timezone.substring(4), 10));\n if (offset !== 0) {\n d = new Date(d.getTime() + 60000 * offset);\n }\n }\n this.buffer.writeUInt16LE(d.getUTCFullYear(), this.offset + 1);\n this.buffer.writeUInt8(d.getUTCMonth() + 1, this.offset + 3);\n this.buffer.writeUInt8(d.getUTCDate(), this.offset + 4);\n this.buffer.writeUInt8(d.getUTCHours(), this.offset + 5);\n this.buffer.writeUInt8(d.getUTCMinutes(), this.offset + 6);\n this.buffer.writeUInt8(d.getUTCSeconds(), this.offset + 7);\n this.buffer.writeUInt32LE(d.getUTCMilliseconds() * 1000, this.offset + 8);\n }\n this.offset += 12;\n }\n\n writeHeader(sequenceId) {\n const offset = this.offset;\n this.offset = 0;\n this.writeInt24(this.buffer.length - 4);\n this.writeInt8(sequenceId);\n this.offset = offset;\n }\n\n clone() {\n return new Packet(this.sequenceId, this.buffer, this.start, this.end);\n }\n\n type() {\n if (this.isEOF()) {\n return 'EOF';\n }\n if (this.isError()) {\n return 'Error';\n }\n if (this.buffer[this.offset] === 0) {\n return 'maybeOK'; // could be other packet types as well\n }\n return '';\n }\n\n static lengthCodedNumberLength(n) {\n if (n < 0xfb) {\n return 1;\n }\n if (n < 0xffff) {\n return 3;\n }\n if (n < 0xffffff) {\n return 5;\n }\n return 9;\n }\n\n static lengthCodedStringLength(str, encoding) {\n const buf = StringParser.encode(str, encoding);\n const slen = buf.length;\n return Packet.lengthCodedNumberLength(slen) + slen;\n }\n\n static MockBuffer() {\n const noop = function () {};\n const res = Buffer.alloc(0);\n for (const op in NativeBuffer.prototype) {\n if (typeof res[op] === 'function') {\n res[op] = noop;\n }\n }\n return res;\n }\n}\n\nmodule.exports = Packet;\n","module.exports = require(\"util\");","/** The status of an Span. */\n// eslint-disable-next-line import/export\nexport var SpanStatus;\n(function (SpanStatus) {\n /** The operation completed successfully. */\n SpanStatus[\"Ok\"] = \"ok\";\n /** Deadline expired before operation could complete. */\n SpanStatus[\"DeadlineExceeded\"] = \"deadline_exceeded\";\n /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */\n SpanStatus[\"Unauthenticated\"] = \"unauthenticated\";\n /** 403 Forbidden */\n SpanStatus[\"PermissionDenied\"] = \"permission_denied\";\n /** 404 Not Found. Some requested entity (file or directory) was not found. */\n SpanStatus[\"NotFound\"] = \"not_found\";\n /** 429 Too Many Requests */\n SpanStatus[\"ResourceExhausted\"] = \"resource_exhausted\";\n /** Client specified an invalid argument. 4xx. */\n SpanStatus[\"InvalidArgument\"] = \"invalid_argument\";\n /** 501 Not Implemented */\n SpanStatus[\"Unimplemented\"] = \"unimplemented\";\n /** 503 Service Unavailable */\n SpanStatus[\"Unavailable\"] = \"unavailable\";\n /** Other/generic 5xx. */\n SpanStatus[\"InternalError\"] = \"internal_error\";\n /** Unknown. Any non-standard HTTP status code. */\n SpanStatus[\"UnknownError\"] = \"unknown_error\";\n /** The operation was cancelled (typically by the user). */\n SpanStatus[\"Cancelled\"] = \"cancelled\";\n /** Already exists (409) */\n SpanStatus[\"AlreadyExists\"] = \"already_exists\";\n /** Operation was rejected because the system is not in a state required for the operation's */\n SpanStatus[\"FailedPrecondition\"] = \"failed_precondition\";\n /** The operation was aborted, typically due to a concurrency issue. */\n SpanStatus[\"Aborted\"] = \"aborted\";\n /** Operation was attempted past the valid range. */\n SpanStatus[\"OutOfRange\"] = \"out_of_range\";\n /** Unrecoverable data loss or corruption */\n SpanStatus[\"DataLoss\"] = \"data_loss\";\n})(SpanStatus || (SpanStatus = {}));\n// eslint-disable-next-line @typescript-eslint/no-namespace, import/export\n(function (SpanStatus) {\n /**\n * Converts a HTTP status code into a {@link SpanStatus}.\n *\n * @param httpStatus The HTTP response status code.\n * @returns The span status or {@link SpanStatus.UnknownError}.\n */\n function fromHttpCode(httpStatus) {\n if (httpStatus < 400) {\n return SpanStatus.Ok;\n }\n if (httpStatus >= 400 && httpStatus < 500) {\n switch (httpStatus) {\n case 401:\n return SpanStatus.Unauthenticated;\n case 403:\n return SpanStatus.PermissionDenied;\n case 404:\n return SpanStatus.NotFound;\n case 409:\n return SpanStatus.AlreadyExists;\n case 413:\n return SpanStatus.FailedPrecondition;\n case 429:\n return SpanStatus.ResourceExhausted;\n default:\n return SpanStatus.InvalidArgument;\n }\n }\n if (httpStatus >= 500 && httpStatus < 600) {\n switch (httpStatus) {\n case 501:\n return SpanStatus.Unimplemented;\n case 503:\n return SpanStatus.Unavailable;\n case 504:\n return SpanStatus.DeadlineExceeded;\n default:\n return SpanStatus.InternalError;\n }\n }\n return SpanStatus.UnknownError;\n }\n SpanStatus.fromHttpCode = fromHttpCode;\n})(SpanStatus || (SpanStatus = {}));\n//# sourceMappingURL=spanstatus.js.map","/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the logger, or b) put your function elsewhere.\n */\nimport { isNodeEnv } from './node';\nvar fallbackGlobalObject = {};\n/**\n * Safely get global scope object\n *\n * @returns Global scope object\n */\nexport function getGlobalObject() {\n return (isNodeEnv()\n ? global\n : typeof window !== 'undefined' // eslint-disable-line no-restricted-globals\n ? window // eslint-disable-line no-restricted-globals\n : typeof self !== 'undefined'\n ? self\n : fallbackGlobalObject);\n}\n//# sourceMappingURL=global.js.map","import winston from 'winston';\nimport { config } from './server';\nimport path from 'path';\n\n// Needed to manually apply a color to componenent property of log\nconst manualColorize = (strToColor: string): string => `[\\x1b[35m${strToColor}\\x1b[0m]`;\n\n// Format handler passed to winston\nconst formatLogs = (log: winston.Logform.TransformableInfo): string => {\n if (log.module)\n return `${log.label} ${manualColorize(log.module)} [${log.level}]: ${log.message}`;\n\n return `${log.label} [${log.level}]: ${log.message}`;\n};\n\nconst findLogPath = () => `${path.join(GetResourcePath(GetCurrentResourceName()), 'sv_npwd.log')}`;\n// Initiate the main logger for NPWD\n\nexport const mainLogger = winston.createLogger({\n level: config.debug.level,\n transports: [\n new winston.transports.File({\n filename: findLogPath(),\n format: winston.format.combine(\n winston.format.errors({ stack: true }),\n winston.format.timestamp(),\n winston.format.json(),\n ),\n }),\n new winston.transports.Console({\n format: winston.format.combine(\n winston.format.label({ label: '[NPWD]' }),\n winston.format.colorize({ all: true }),\n winston.format.printf(formatLogs),\n ),\n }),\n ],\n});\n","'use strict';\n/*\n * Displays a helpful message and the source of\n * the format when it is invalid.\n */\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar InvalidFormatError = /*#__PURE__*/function (_Error) {\n _inherits(InvalidFormatError, _Error);\n\n var _super = _createSuper(InvalidFormatError);\n\n function InvalidFormatError(formatFn) {\n var _this;\n\n _classCallCheck(this, InvalidFormatError);\n\n _this = _super.call(this, \"Format functions must be synchronous taking a two arguments: (info, opts)\\nFound: \".concat(formatFn.toString().split('\\n')[0], \"\\n\"));\n Error.captureStackTrace(_assertThisInitialized(_this), InvalidFormatError);\n return _this;\n }\n\n return InvalidFormatError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\n/*\n * function format (formatFn)\n * Returns a create function for the `formatFn`.\n */\n\n\nmodule.exports = function (formatFn) {\n if (formatFn.length > 2) {\n throw new InvalidFormatError(formatFn);\n }\n /*\n * function Format (options)\n * Base prototype which calls a `_format`\n * function and pushes the result.\n */\n\n\n function Format() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.options = options;\n }\n\n Format.prototype.transform = formatFn; //\n // Create a function which returns new instances of\n // FormatWrap for simple syntax like:\n //\n // require('winston').formats.json();\n //\n\n function createFormatWrap(opts) {\n return new Format(opts);\n } //\n // Expose the FormatWrap through the create function\n // for testability.\n //\n\n\n createFormatWrap.Format = Format;\n return createFormatWrap;\n};","'use strict';\n\n/*\n * Displays a helpful message and the source of\n * the format when it is invalid.\n */\nclass InvalidFormatError extends Error {\n constructor(formatFn) {\n super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${formatFn.toString().split('\\n')[0]}\\n`);\n\n Error.captureStackTrace(this, InvalidFormatError);\n }\n}\n\n/*\n * function format (formatFn)\n * Returns a create function for the `formatFn`.\n */\nmodule.exports = formatFn => {\n if (formatFn.length > 2) {\n throw new InvalidFormatError(formatFn);\n }\n\n /*\n * function Format (options)\n * Base prototype which calls a `_format`\n * function and pushes the result.\n */\n function Format(options = {}) {\n this.options = options;\n }\n\n Format.prototype.transform = formatFn;\n\n //\n // Create a function which returns new instances of\n // FormatWrap for simple syntax like:\n //\n // require('winston').formats.json();\n //\n function createFormatWrap(opts) {\n return new Format(opts);\n }\n\n //\n // Expose the FormatWrap through the create function\n // for testability.\n //\n createFormatWrap.Format = Format;\n return createFormatWrap;\n};\n","import { ResourceConfig } from '../../typings/config';\nimport { RewriteFrames } from '@sentry/integrations';\n// Setup and export config loaded at runtime\nexport const config: ResourceConfig = JSON.parse(\n LoadResourceFile(GetCurrentResourceName(), 'config.json'),\n);\n\n// Setup controllers\nimport './db/pool';\nimport './players/player.controller';\nimport './calls/calls.controller';\nimport './notes/notes.controller';\nimport './contacts/contacts.controller';\nimport './photo/photo.controller';\nimport './messages/messages.controller';\nimport './marketplace/marketplace.controller';\nimport './twitter/twitter.controller';\nimport './match/match.controller';\n\n// setup exports\nimport './bridge/sv_exports';\n\nimport { mainLogger } from './sv_logger';\nimport * as Sentry from '@sentry/node';\n\n// Setup sentry tracing\nif (config.debug.sentryEnabled && process.env.NODE_ENV === 'production') {\n Sentry.init({\n dsn: 'https://5c5da180a57e4db1acb617ef2c6cb59f@sentry.projecterror.dev/3',\n integrations: [new RewriteFrames()],\n release: process.env.SENTRY_RELEASE || '0.0.0',\n // Set tracesSampleRate to 1.0 to capture 100%\n // of transactions for performance monitoring.\n // We recommend adjusting this value in production\n tracesSampleRate: 1.0,\n });\n}\n\non('onServerResourceStart', (resource: string) => {\n if (resource === GetCurrentResourceName()) {\n mainLogger.info('Sucessfully started');\n }\n});\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n","module.exports = require(\"fs\");","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/**\n * Memo class used for decycle json objects. Uses WeakSet if available otherwise array.\n */\nvar Memo = /** @class */ (function () {\n function Memo() {\n this._hasWeakSet = typeof WeakSet === 'function';\n this._inner = this._hasWeakSet ? new WeakSet() : [];\n }\n /**\n * Sets obj to remember.\n * @param obj Object to remember\n */\n Memo.prototype.memoize = function (obj) {\n if (this._hasWeakSet) {\n if (this._inner.has(obj)) {\n return true;\n }\n this._inner.add(obj);\n return false;\n }\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < this._inner.length; i++) {\n var value = this._inner[i];\n if (value === obj) {\n return true;\n }\n }\n this._inner.push(obj);\n return false;\n };\n /**\n * Removes object from internal storage.\n * @param obj Object to forget\n */\n Memo.prototype.unmemoize = function (obj) {\n if (this._hasWeakSet) {\n this._inner.delete(obj);\n }\n else {\n for (var i = 0; i < this._inner.length; i++) {\n if (this._inner[i] === obj) {\n this._inner.splice(i, 1);\n break;\n }\n }\n }\n };\n return Memo;\n}());\nexport { Memo };\n//# sourceMappingURL=memo.js.map","import { __values } from \"tslib\";\nimport { htmlTreeAsString } from './browser';\nimport { isElement, isError, isEvent, isInstanceOf, isPlainObject, isPrimitive, isSyntheticEvent } from './is';\nimport { Memo } from './memo';\nimport { getFunctionName } from './stacktrace';\nimport { truncate } from './string';\n/**\n * Replace a method in an object with a wrapped version of itself.\n *\n * @param source An object that contains a method to be wrapped.\n * @param name The name of the method to be wrapped.\n * @param replacementFactory A higher-order function that takes the original version of the given method and returns a\n * wrapped version. Note: The function returned by `replacementFactory` needs to be a non-arrow function, in order to\n * preserve the correct value of `this`, and the original method must be called using `origMethod.call(this, )` or `origMethod.apply(this, [])` (rather than being called directly), again to preserve `this`.\n * @returns void\n */\nexport function fill(source, name, replacementFactory) {\n if (!(name in source)) {\n return;\n }\n var original = source[name];\n var wrapped = replacementFactory(original);\n // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n if (typeof wrapped === 'function') {\n try {\n wrapped.prototype = wrapped.prototype || {};\n Object.defineProperties(wrapped, {\n __sentry_original__: {\n enumerable: false,\n value: original,\n },\n });\n }\n catch (_Oo) {\n // This can throw if multiple fill happens on a global object like XMLHttpRequest\n // Fixes https://github.com/getsentry/sentry-javascript/issues/2043\n }\n }\n source[name] = wrapped;\n}\n/**\n * Encodes given object into url-friendly format\n *\n * @param object An object that contains serializable values\n * @returns string Encoded\n */\nexport function urlEncode(object) {\n return Object.keys(object)\n .map(function (key) { return encodeURIComponent(key) + \"=\" + encodeURIComponent(object[key]); })\n .join('&');\n}\n/**\n * Transforms any object into an object literal with all its attributes\n * attached to it.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n */\nfunction getWalkSource(value) {\n if (isError(value)) {\n var error = value;\n var err = {\n message: error.message,\n name: error.name,\n stack: error.stack,\n };\n for (var i in error) {\n if (Object.prototype.hasOwnProperty.call(error, i)) {\n err[i] = error[i];\n }\n }\n return err;\n }\n if (isEvent(value)) {\n var event_1 = value;\n var source = {};\n // Accessing event attributes can throw (see https://github.com/getsentry/sentry-javascript/issues/768 and\n // https://github.com/getsentry/sentry-javascript/issues/838), but accessing `type` hasn't been wrapped in a\n // try-catch in at least two years and no one's complained, so that's likely not an issue anymore\n source.type = event_1.type;\n try {\n source.target = isElement(event_1.target)\n ? htmlTreeAsString(event_1.target)\n : Object.prototype.toString.call(event_1.target);\n }\n catch (_oO) {\n source.target = '';\n }\n try {\n source.currentTarget = isElement(event_1.currentTarget)\n ? htmlTreeAsString(event_1.currentTarget)\n : Object.prototype.toString.call(event_1.currentTarget);\n }\n catch (_oO) {\n source.currentTarget = '';\n }\n if (typeof CustomEvent !== 'undefined' && isInstanceOf(value, CustomEvent)) {\n source.detail = event_1.detail;\n }\n for (var attr in event_1) {\n if (Object.prototype.hasOwnProperty.call(event_1, attr)) {\n source[attr] = event_1[attr];\n }\n }\n return source;\n }\n return value;\n}\n/** Calculates bytes size of input string */\nfunction utf8Length(value) {\n // eslint-disable-next-line no-bitwise\n return ~-encodeURI(value).split(/%..|./).length;\n}\n/** Calculates bytes size of input object */\nfunction jsonSize(value) {\n return utf8Length(JSON.stringify(value));\n}\n/** JSDoc */\nexport function normalizeToSize(object, \n// Default Node.js REPL depth\ndepth, \n// 100kB, as 200kB is max payload size, so half sounds reasonable\nmaxSize) {\n if (depth === void 0) { depth = 3; }\n if (maxSize === void 0) { maxSize = 100 * 1024; }\n var serialized = normalize(object, depth);\n if (jsonSize(serialized) > maxSize) {\n return normalizeToSize(object, depth - 1, maxSize);\n }\n return serialized;\n}\n/**\n * Transform any non-primitive, BigInt, or Symbol-type value into a string. Acts as a no-op on strings, numbers,\n * booleans, null, and undefined.\n *\n * @param value The value to stringify\n * @returns For non-primitive, BigInt, and Symbol-type values, a string denoting the value's type, type and value, or\n * type and `description` property, respectively. For non-BigInt, non-Symbol primitives, returns the original value,\n * unchanged.\n */\nfunction serializeValue(value) {\n var type = Object.prototype.toString.call(value);\n // Node.js REPL notation\n if (typeof value === 'string') {\n return value;\n }\n if (type === '[object Object]') {\n return '[Object]';\n }\n if (type === '[object Array]') {\n return '[Array]';\n }\n var normalized = normalizeValue(value);\n return isPrimitive(normalized) ? normalized : type;\n}\n/**\n * normalizeValue()\n *\n * Takes unserializable input and make it serializable friendly\n *\n * - translates undefined/NaN values to \"[undefined]\"/\"[NaN]\" respectively,\n * - serializes Error objects\n * - filter global objects\n */\nfunction normalizeValue(value, key) {\n if (key === 'domain' && value && typeof value === 'object' && value._events) {\n return '[Domain]';\n }\n if (key === 'domainEmitter') {\n return '[DomainEmitter]';\n }\n if (typeof global !== 'undefined' && value === global) {\n return '[Global]';\n }\n // It's safe to use `window` and `document` here in this manner, as we are asserting using `typeof` first\n // which won't throw if they are not present.\n // eslint-disable-next-line no-restricted-globals\n if (typeof window !== 'undefined' && value === window) {\n return '[Window]';\n }\n // eslint-disable-next-line no-restricted-globals\n if (typeof document !== 'undefined' && value === document) {\n return '[Document]';\n }\n // React's SyntheticEvent thingy\n if (isSyntheticEvent(value)) {\n return '[SyntheticEvent]';\n }\n if (typeof value === 'number' && value !== value) {\n return '[NaN]';\n }\n if (value === void 0) {\n return '[undefined]';\n }\n if (typeof value === 'function') {\n return \"[Function: \" + getFunctionName(value) + \"]\";\n }\n // symbols and bigints are considered primitives by TS, but aren't natively JSON-serilaizable\n if (typeof value === 'symbol') {\n return \"[\" + String(value) + \"]\";\n }\n if (typeof value === 'bigint') {\n return \"[BigInt: \" + String(value) + \"]\";\n }\n return value;\n}\n/**\n * Walks an object to perform a normalization on it\n *\n * @param key of object that's walked in current iteration\n * @param value object to be walked\n * @param depth Optional number indicating how deep should walking be performed\n * @param memo Optional Memo class handling decycling\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function walk(key, value, depth, memo) {\n if (depth === void 0) { depth = +Infinity; }\n if (memo === void 0) { memo = new Memo(); }\n // If we reach the maximum depth, serialize whatever has left\n if (depth === 0) {\n return serializeValue(value);\n }\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // If value implements `toJSON` method, call it and return early\n if (value !== null && value !== undefined && typeof value.toJSON === 'function') {\n return value.toJSON();\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n // If normalized value is a primitive, there are no branches left to walk, so we can just bail out, as theres no point in going down that branch any further\n var normalized = normalizeValue(value, key);\n if (isPrimitive(normalized)) {\n return normalized;\n }\n // Create source that we will use for next itterations, either objectified error object (Error type with extracted keys:value pairs) or the input itself\n var source = getWalkSource(value);\n // Create an accumulator that will act as a parent for all future itterations of that branch\n var acc = Array.isArray(value) ? [] : {};\n // If we already walked that branch, bail out, as it's circular reference\n if (memo.memoize(value)) {\n return '[Circular ~]';\n }\n // Walk all keys of the source\n for (var innerKey in source) {\n // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.\n if (!Object.prototype.hasOwnProperty.call(source, innerKey)) {\n continue;\n }\n // Recursively walk through all the child nodes\n acc[innerKey] = walk(innerKey, source[innerKey], depth - 1, memo);\n }\n // Once walked through all the branches, remove the parent from memo storage\n memo.unmemoize(value);\n // Return accumulated values\n return acc;\n}\n/**\n * normalize()\n *\n * - Creates a copy to prevent original input mutation\n * - Skip non-enumerablers\n * - Calls `toJSON` if implemented\n * - Removes circular references\n * - Translates non-serializeable values (undefined/NaN/Functions) to serializable format\n * - Translates known global objects/Classes to a string representations\n * - Takes care of Error objects serialization\n * - Optionally limit depth of final output\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function normalize(input, depth) {\n try {\n return JSON.parse(JSON.stringify(input, function (key, value) { return walk(key, value, depth); }));\n }\n catch (_oO) {\n return '**non-serializable**';\n }\n}\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function extractExceptionKeysForMessage(exception, maxLength) {\n if (maxLength === void 0) { maxLength = 40; }\n var keys = Object.keys(getWalkSource(exception));\n keys.sort();\n if (!keys.length) {\n return '[object has no keys]';\n }\n if (keys[0].length >= maxLength) {\n return truncate(keys[0], maxLength);\n }\n for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n var serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return truncate(serialized, maxLength);\n }\n return '';\n}\n/**\n * Given any object, return the new object with removed keys that value was `undefined`.\n * Works recursively on objects and arrays.\n */\nexport function dropUndefinedKeys(val) {\n var e_1, _a;\n if (isPlainObject(val)) {\n var obj = val;\n var rv = {};\n try {\n for (var _b = __values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var key = _c.value;\n if (typeof obj[key] !== 'undefined') {\n rv[key] = dropUndefinedKeys(obj[key]);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return rv;\n }\n if (Array.isArray(val)) {\n return val.map(dropUndefinedKeys);\n }\n return val;\n}\n/**\n * Ensure that something is an object.\n *\n * Turns `undefined` and `null` into `String`s and all other primitives into instances of their respective wrapper\n * classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.\n *\n * @param wat The subject of the objectification\n * @returns A version of `wat` which can safely be used with `Object` class methods\n */\nexport function objectify(wat) {\n var objectified;\n switch (true) {\n case wat === undefined || wat === null:\n objectified = new String(wat);\n break;\n // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n // an object in order to wrap it.\n case typeof wat === 'symbol' || typeof wat === 'bigint':\n objectified = Object(wat);\n break;\n // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n case isPrimitive(wat):\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n objectified = new wat.constructor(wat);\n break;\n // by process of elimination, at this point we know that `wat` must already be an object\n default:\n objectified = wat;\n break;\n }\n return objectified;\n}\n//# sourceMappingURL=object.js.map","import { findOrGeneratePhoneNumber } from '../misc/functions';\nimport { PhoneEvents } from '../../../typings/phone';\nimport { Player } from './player.class';\nimport { PlayerAddData } from './player.interfaces';\nimport Collection from '@discordjs/collection';\nimport { getPlayerGameLicense } from '../utils/getPlayerGameLicense';\nimport playerDB, { PlayerRepo } from './player.db';\nimport { playerLogger } from './player.utils';\nimport MarketplaceService from '../marketplace/marketplace.service';\nimport { Delay } from '../../utils/fivem';\n\nclass _PlayerService {\n private readonly playersBySource: Collection;\n private readonly playersByIdentifier: Collection;\n private readonly playerDB: PlayerRepo;\n\n constructor() {\n this.playersBySource = new Collection();\n this.playersByIdentifier = new Collection();\n this.playerDB = playerDB;\n playerLogger.debug('Player Service started');\n }\n\n /**\n * Adds a Player instance to the source & identifier maps\n * @param source - The player's source\n * @param player - The player instance to use as a value\n */\n\n addPlayerToMaps(source: number, player: Player) {\n this.playersBySource.set(source, player);\n this.playersByIdentifier.set(player.getIdentifier(), player);\n }\n\n /**\n * Deletes a player from both map by source & identifier\n * @param source - The player's source\n */\n deletePlayerFromMaps(source: number) {\n const identifier = this.playersBySource.get(source).getIdentifier();\n this.playersByIdentifier.delete(identifier);\n this.playersBySource.delete(source);\n }\n /**\n * Returns the player instance for a given source\n * Will return null if no player is found online with that source\n **/\n getPlayer(source: number): Player | null {\n const player = this.playersBySource.get(source);\n if (!player) return null;\n return player;\n }\n\n /**\n * Returns the player identifier for a given source\n * Will return null if no player is found online with that source\n **/\n getIdentifier(source: number): string {\n return this.getPlayer(source).getIdentifier();\n }\n\n /**\n * Returns the player phoneNumber for a passed identifier\n * @param identifier The players phone number\n */\n getPlayerFromIdentifier(identifier: string): Player | null {\n const player = this.playersByIdentifier.get(identifier);\n if (!player) {\n return null;\n }\n return player;\n }\n\n /**\n * Will return the given identifier from a phone number\n * @param phoneNumber - The phone number of the player\n * @param fetch - Whether to fetch for the identifier if they are offline\n **/\n async getIdentifierFromPhoneNumber(phoneNumber: string, fetch?: boolean): Promise {\n const onlinePlayer = this.playersBySource.find(\n (player: Player) => player.getPhoneNumber() === phoneNumber,\n );\n // Return the player if they are online\n if (onlinePlayer) return onlinePlayer.getIdentifier();\n if (fetch) {\n const fetchResult: string | null = await this.playerDB\n .fetchIdentifierFromPhoneNumber(phoneNumber)\n .catch((e) => {\n playerLogger.error(\n `Failed to fetch identifier from phone number for ${phoneNumber}, error: ${e.message}`,\n );\n return null;\n });\n\n return fetchResult;\n }\n // Return null if all else doesn't return\n return null;\n }\n\n /**\n * We call this function on the event `playerJoined`,\n * only if the multicharacter option is set to false in the config.\n * @param pSource - The source of the player to handle\n */\n async handleNewPlayerJoined(pSource: number) {\n const playerIdentifier = getPlayerGameLicense(pSource);\n\n if (!playerIdentifier) {\n throw new Error(`License identifier could not be found for source (${pSource})`);\n }\n\n const username = GetPlayerName(pSource.toString());\n playerLogger.info(`Started loading for ${username} (${pSource})`);\n // Ensure phone number exists or generate\n\n const phone_number = await findOrGeneratePhoneNumber(playerIdentifier);\n\n const newPlayer = new Player({\n identifier: playerIdentifier,\n source: pSource,\n username,\n phoneNumber: phone_number,\n });\n\n this.addPlayerToMaps(pSource, newPlayer);\n\n playerLogger.info('NPWD Player Loaded!');\n playerLogger.debug(newPlayer);\n\n // This is a stupid hack for development reloading\n // Client handlers are experiencing a race condition where the event\n // is sent out before the client handlers can load.\n if (process.env.NODE_ENV === 'development') {\n await Delay(100);\n }\n\n emitNet(PhoneEvents.SET_PLAYER_LOADED, pSource, true);\n }\n\n /**\n * Instantiate a basic Player instance from the constructor\n * @param src - The player source\n * @param identifier - The primary identifier\n *\n */\n\n async createNewPlayer({\n src,\n identifier,\n phoneNumber,\n }: {\n src: number;\n identifier: string;\n phoneNumber: string;\n }): Promise {\n const username = GetPlayerName(src.toString());\n\n if (!phoneNumber) {\n phoneNumber = await findOrGeneratePhoneNumber(identifier);\n if (!phoneNumber) return null;\n }\n\n return new Player({\n source: src,\n identifier,\n phoneNumber,\n username,\n });\n }\n\n /**\n * We call this function whenever we receive a `npwd:newPlayer`\n * event while multichar is enabled.\n * @param NewPlayerDTO - A DTO with all the new info required to instantiate a new player\n *\n */\n async handleNewPlayerEvent({\n source: src,\n identifier,\n phoneNumber,\n firstname,\n lastname,\n }: PlayerAddData) {\n const player = await this.createNewPlayer({\n src,\n identifier: identifier.toString(),\n phoneNumber,\n });\n\n if (firstname) player.setFirstName(firstname);\n if (lastname) player.setLastName(lastname);\n\n this.addPlayerToMaps(src, player);\n\n playerLogger.info(`New NPWD Player added through event (${src}) (${identifier})`);\n playerLogger.debug(player);\n\n emitNet(PhoneEvents.SET_PLAYER_LOADED, src, true);\n }\n\n /**\n * Return the attached identifier for a given phone number\n * @param phoneNumber The phone number to return identifier for\n * @param fetch Whether or not to query the database if a given player is offline\n **/\n async getIdentifierByPhoneNumber(phoneNumber: string, fetch?: boolean): Promise {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n for (const [_, player] of this.playersBySource) {\n if (player.getPhoneNumber() === phoneNumber) return player.getIdentifier();\n }\n // Whether we fetch from database if not found in online players\n if (fetch) {\n return await this.playerDB.fetchIdentifierFromPhoneNumber(phoneNumber);\n }\n }\n\n /**\n * Clear all data from the database we don't want to stored after the player as disconnected.\n */\n async clearPlayerData(src: number) {\n const identifier = this.getIdentifier(src);\n try {\n await MarketplaceService.handleDeleteListingsOnDrop(identifier);\n } catch (e) {\n playerLogger.error(`Failed to clear player data when dropped, Error: ${e.message}`);\n }\n }\n\n /**\n * Unload event handler\n * @param src - Source of player being unloaded\n **/\n async handleUnloadPlayerEvent(src: number) {\n await this.clearPlayerData(src);\n\n this.deletePlayerFromMaps(src);\n emitNet(PhoneEvents.SET_PLAYER_LOADED, src, false);\n playerLogger.info(`Unloaded NPWD Player, source: (${src})`);\n }\n}\n\nconst PlayerService = new _PlayerService();\n\nexport default PlayerService;\n","// This file was modified by Oracle on June 1, 2021.\n// A utility method was introduced to generate an Error instance from a\n// binary server packet.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst process = require('process');\n\nconst AuthSwitchRequest = require('./auth_switch_request');\nconst AuthSwitchRequestMoreData = require('./auth_switch_request_more_data');\nconst AuthSwitchResponse = require('./auth_switch_response');\nconst BinaryRow = require('./binary_row');\nconst BinlogDump = require('./binlog_dump');\nconst ChangeUser = require('./change_user');\nconst CloseStatement = require('./close_statement');\nconst ColumnDefinition = require('./column_definition');\nconst Execute = require('./execute');\nconst Handshake = require('./handshake');\nconst HandshakeResponse = require('./handshake_response');\nconst PrepareStatement = require('./prepare_statement');\nconst PreparedStatementHeader = require('./prepared_statement_header');\nconst Query = require('./query');\nconst RegisterSlave = require('./register_slave');\nconst ResultSetHeader = require('./resultset_header');\nconst SSLRequest = require('./ssl_request');\nconst TextRow = require('./text_row');\n\nconst ctorMap = {\n AuthSwitchRequest,\n AuthSwitchRequestMoreData,\n AuthSwitchResponse,\n BinaryRow,\n BinlogDump,\n ChangeUser,\n CloseStatement,\n ColumnDefinition,\n Execute,\n Handshake,\n HandshakeResponse,\n PrepareStatement,\n PreparedStatementHeader,\n Query,\n RegisterSlave,\n ResultSetHeader,\n SSLRequest,\n TextRow\n};\nObject.entries(ctorMap).forEach(([name, ctor]) => {\n module.exports[name] = ctor;\n // monkey-patch it to include name if debug is on\n if (process.env.NODE_DEBUG) {\n if (ctor.prototype.toPacket) {\n const old = ctor.prototype.toPacket;\n ctor.prototype.toPacket = function() {\n const p = old.call(this);\n p._name = name;\n return p;\n };\n }\n }\n});\n\n// simple packets:\nconst Packet = require('./packet');\nexports.Packet = Packet;\n\nclass OK {\n static toPacket(args, encoding) {\n args = args || {};\n const affectedRows = args.affectedRows || 0;\n const insertId = args.insertId || 0;\n const serverStatus = args.serverStatus || 0;\n const warningCount = args.warningCount || 0;\n const message = args.message || '';\n\n let length = 9 + Packet.lengthCodedNumberLength(affectedRows);\n length += Packet.lengthCodedNumberLength(insertId);\n\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(0);\n packet.writeLengthCodedNumber(affectedRows);\n packet.writeLengthCodedNumber(insertId);\n packet.writeInt16(serverStatus);\n packet.writeInt16(warningCount);\n packet.writeString(message, encoding);\n packet._name = 'OK';\n return packet;\n }\n}\n\nexports.OK = OK;\n\n// warnings, statusFlags\nclass EOF {\n static toPacket(warnings, statusFlags) {\n if (typeof warnings === 'undefined') {\n warnings = 0;\n }\n if (typeof statusFlags === 'undefined') {\n statusFlags = 0;\n }\n const packet = new Packet(0, Buffer.allocUnsafe(9), 0, 9);\n packet.offset = 4;\n packet.writeInt8(0xfe);\n packet.writeInt16(warnings);\n packet.writeInt16(statusFlags);\n packet._name = 'EOF';\n return packet;\n }\n}\n\nexports.EOF = EOF;\n\nclass Error {\n static toPacket(args, encoding) {\n const length = 13 + Buffer.byteLength(args.message, 'utf8');\n const packet = new Packet(0, Buffer.allocUnsafe(length), 0, length);\n packet.offset = 4;\n packet.writeInt8(0xff);\n packet.writeInt16(args.code);\n // TODO: sql state parameter\n packet.writeString('#_____', encoding);\n packet.writeString(args.message, encoding);\n packet._name = 'Error';\n return packet;\n }\n\n static fromPacket(packet) {\n packet.readInt8(); // marker\n const code = packet.readInt16();\n packet.readString(1, 'ascii'); // sql state marker\n // The SQL state of the ERR_Packet which is always 5 bytes long.\n // https://dev.mysql.com/doc/dev/mysql-server/8.0.11/page_protocol_basic_dt_strings.html#sect_protocol_basic_dt_string_fix\n packet.readString(5, 'ascii'); // sql state (ignore for now)\n const message = packet.readNullTerminatedString('utf8');\n const error = new Error();\n error.message = message;\n error.code = code;\n return error;\n }\n}\n\nexports.Error = Error;\n","'use strict';\n\nconst EventEmitter = require('events').EventEmitter;\nconst Timers = require('timers');\n\nclass Command extends EventEmitter {\n constructor() {\n super();\n this.next = null;\n }\n\n // slow. debug only\n stateName() {\n const state = this.next;\n for (const i in this) {\n if (this[i] === state && i !== 'next') {\n return i;\n }\n }\n return 'unknown name';\n }\n\n execute(packet, connection) {\n if (!this.next) {\n this.next = this.start;\n connection._resetSequenceId();\n }\n if (packet && packet.isError()) {\n const err = packet.asError(connection.clientEncoding);\n err.sql = this.sql || this.query;\n if (this.queryTimeout) {\n Timers.clearTimeout(this.queryTimeout);\n this.queryTimeout = null;\n }\n if (this.onResult) {\n this.onResult(err);\n this.emit('end');\n } else {\n this.emit('error', err);\n this.emit('end');\n }\n return true;\n }\n // TODO: don't return anything from execute, it's ugly and error-prone. Listen for 'end' event in connection\n this.next = this.next(packet, connection);\n if (this.next) {\n return false;\n } \n this.emit('end');\n return true;\n \n }\n}\n\nmodule.exports = Command;\n","import { pool } from './pool';\nimport { mainLogger } from '../sv_logger';\nimport { ResultSetHeader } from 'mysql2';\nimport { config } from '../server';\nimport { withProfile } from '../utils/withProfile';\n\nconst RESOURCE_NAME = GetCurrentResourceName();\n\n// Replicates ghmattimysql API\nclass _DbInterface {\n private readonly logger = mainLogger.child({ module: 'DBInterface' });\n\n private async _internalQuery(query: string, values?: unknown) {\n try {\n if (config.database.profileQueries) return await withProfile(pool.execute, query, values);\n\n ScheduleResourceTick(RESOURCE_NAME);\n return await pool.query(query, values);\n } catch (e) {\n this.logger.error(`Error executing ${query} with error message ${e.message}`);\n }\n }\n\n /**\n * This shouldn't be used but we keep it public just in case we need to do a\n * raw query with no wrappers whatsoever.\n * @todo This was a fast way of easily porting all our existing queries but should be moved away from\n * @deprecated\n */\n public _rawExec(query: string, values?: unknown) {\n ScheduleResourceTick(RESOURCE_NAME);\n return pool.query(query, values);\n }\n\n /**\n * Will execute a query and return the affected rows\n * @param query Query template\n * @param values Variable definition\n **/\n public async exec(query: string, values?: unknown) {\n const [res] = await this._internalQuery(query, values);\n return (res).affectedRows;\n }\n\n /**\n * Will insert a row and return the insertId\n * @param query Query template\n * @param values Variable definition\n **/\n public async insert(query: string, values?: unknown) {\n const [res] = await this._internalQuery(query, values);\n return (res).insertId;\n }\n\n /**\n * Will exec and return results\n * @todo Type safety can be improved\n */\n public async fetch(query: string, values?: unknown): Promise {\n const [res] = await this._internalQuery(query, values);\n const castRes = res;\n return castRes;\n }\n}\nconst DbInterface = new _DbInterface();\n\nexport default DbInterface;\n","module.exports = require(\"crypto\");","module.exports = require(\"url\");","/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the logger, or b) put your function elsewhere.\n */\n/**\n * Checks whether we're in the Node.js or Browser environment\n *\n * @returns Answer to given question\n */\nexport function isNodeEnv() {\n return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\n}\n/**\n * Requires a module which is protected against bundler minification.\n *\n * @param request The module path to resolve\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any\nexport function dynamicRequire(mod, request) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n}\n/**\n * Helper for dynamically loading module that should work with linked dependencies.\n * The problem is that we _should_ be using `require(require.resolve(moduleName, { paths: [cwd()] }))`\n * However it's _not possible_ to do that with Webpack, as it has to know all the dependencies during\n * build time. `require.resolve` is also not available in any other way, so we cannot create,\n * a fake helper like we do with `dynamicRequire`.\n *\n * We always prefer to use local package, thus the value is not returned early from each `try/catch` block.\n * That is to mimic the behavior of `require.resolve` exactly.\n *\n * @param moduleName module name to require\n * @returns possibly required module\n */\nexport function loadModule(moduleName) {\n var mod;\n try {\n mod = dynamicRequire(module, moduleName);\n }\n catch (e) {\n // no-empty\n }\n try {\n var cwd = dynamicRequire(module, 'process').cwd;\n mod = dynamicRequire(module, cwd() + \"/node_modules/\" + moduleName);\n }\n catch (e) {\n // no-empty\n }\n return mod;\n}\n//# sourceMappingURL=node.js.map","module.exports = require(\"events\");","'use strict';\n\nmodule.exports = {\n SLEEP: 0x00, // deprecated\n QUIT: 0x01,\n INIT_DB: 0x02,\n QUERY: 0x03,\n FIELD_LIST: 0x04,\n CREATE_DB: 0x05,\n DROP_DB: 0x06,\n REFRESH: 0x07,\n SHUTDOWN: 0x08,\n STATISTICS: 0x09,\n PROCESS_INFO: 0x0a, // deprecated\n CONNECT: 0x0b, // deprecated\n PROCESS_KILL: 0x0c,\n DEBUG: 0x0d,\n PING: 0x0e,\n TIME: 0x0f, // deprecated\n DELAYED_INSERT: 0x10, // deprecated\n CHANGE_USER: 0x11,\n BINLOG_DUMP: 0x12,\n TABLE_DUMP: 0x13,\n CONNECT_OUT: 0x14,\n REGISTER_SLAVE: 0x15,\n STMT_PREPARE: 0x16,\n STMT_EXECUTE: 0x17,\n STMT_SEND_LONG_DATA: 0x18,\n STMT_CLOSE: 0x19,\n STMT_RESET: 0x1a,\n SET_OPTION: 0x1b,\n STMT_FETCH: 0x1c,\n DAEMON: 0x1d, // deprecated\n BINLOG_DUMP_GTID: 0x1e,\n UNKNOWN: 0xff // bad!\n};\n","'use strict';\n\n// see tools/generate-charset-mapping.js\n// basicalliy result of \"SHOW COLLATION\" query\n\nmodule.exports = [\n 'utf8',\n 'big5',\n 'latin2',\n 'dec8',\n 'cp850',\n 'latin1',\n 'hp8',\n 'koi8r',\n 'latin1',\n 'latin2',\n 'swe7',\n 'ascii',\n 'eucjp',\n 'sjis',\n 'cp1251',\n 'latin1',\n 'hebrew',\n 'utf8',\n 'tis620',\n 'euckr',\n 'latin7',\n 'latin2',\n 'koi8u',\n 'cp1251',\n 'gb2312',\n 'greek',\n 'cp1250',\n 'latin2',\n 'gbk',\n 'cp1257',\n 'latin5',\n 'latin1',\n 'armscii8',\n 'cesu8',\n 'cp1250',\n 'ucs2',\n 'cp866',\n 'keybcs2',\n 'macintosh',\n 'macroman',\n 'cp852',\n 'latin7',\n 'latin7',\n 'macintosh',\n 'cp1250',\n 'utf8',\n 'utf8',\n 'latin1',\n 'latin1',\n 'latin1',\n 'cp1251',\n 'cp1251',\n 'cp1251',\n 'macroman',\n 'utf16',\n 'utf16',\n 'utf16-le',\n 'cp1256',\n 'cp1257',\n 'cp1257',\n 'utf32',\n 'utf32',\n 'utf16-le',\n 'binary',\n 'armscii8',\n 'ascii',\n 'cp1250',\n 'cp1256',\n 'cp866',\n 'dec8',\n 'greek',\n 'hebrew',\n 'hp8',\n 'keybcs2',\n 'koi8r',\n 'koi8u',\n 'cesu8',\n 'latin2',\n 'latin5',\n 'latin7',\n 'cp850',\n 'cp852',\n 'swe7',\n 'cesu8',\n 'big5',\n 'euckr',\n 'gb2312',\n 'gbk',\n 'sjis',\n 'tis620',\n 'ucs2',\n 'eucjp',\n 'geostd8',\n 'geostd8',\n 'latin1',\n 'cp932',\n 'cp932',\n 'eucjpms',\n 'eucjpms',\n 'cp1250',\n 'utf8',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf16',\n 'utf8',\n 'utf8',\n 'utf8',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'ucs2',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'ucs2',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf32',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'cesu8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'cesu8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'gb18030',\n 'gb18030',\n 'gb18030',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8',\n 'utf8'\n];\n","'use strict';\n\n/*\n * @api public\n * @property {function} format\n * Both the construction method and set of exposed\n * formats.\n */\nconst format = exports.format = require('./format');\n\n/*\n * @api public\n * @method {function} levels\n * Registers the specified levels with logform.\n */\nexports.levels = require('./levels');\n\n/*\n * @api private\n * method {function} exposeFormat\n * Exposes a sub-format on the main format object\n * as a lazy-loaded getter.\n */\nfunction exposeFormat(name, path) {\n path = path || name;\n Object.defineProperty(format, name, {\n get() {\n return require(`./${path}.js`);\n },\n configurable: true\n });\n}\n\n//\n// Setup all transports as lazy-loaded getters.\n//\nexposeFormat('align');\nexposeFormat('errors');\nexposeFormat('cli');\nexposeFormat('combine');\nexposeFormat('colorize');\nexposeFormat('json');\nexposeFormat('label');\nexposeFormat('logstash');\nexposeFormat('metadata');\nexposeFormat('ms');\nexposeFormat('padLevels', 'pad-levels');\nexposeFormat('prettyPrint', 'pretty-print');\nexposeFormat('printf');\nexposeFormat('simple');\nexposeFormat('splat');\nexposeFormat('timestamp');\nexposeFormat('uncolorize');\n","module.exports = require(\"os\");","module.exports = require(\"path\");","module.exports = require(\"stream\");","/* eslint-disable node/no-deprecated-api */\n\n'use strict'\n\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\nvar safer = {}\n\nvar key\n\nfor (key in buffer) {\n if (!buffer.hasOwnProperty(key)) continue\n if (key === 'SlowBuffer' || key === 'Buffer') continue\n safer[key] = buffer[key]\n}\n\nvar Safer = safer.Buffer = {}\nfor (key in Buffer) {\n if (!Buffer.hasOwnProperty(key)) continue\n if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue\n Safer[key] = Buffer[key]\n}\n\nsafer.Buffer.prototype = Buffer.prototype\n\nif (!Safer.from || Safer.from === Uint8Array.from) {\n Safer.from = function (value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('The \"value\" argument must not be of type number. Received type ' + typeof value)\n }\n if (value && typeof value.length === 'undefined') {\n throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value)\n }\n return Buffer(value, encodingOrOffset, length)\n }\n}\n\nif (!Safer.alloc) {\n Safer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('The \"size\" argument must be of type number. Received type ' + typeof size)\n }\n if (size < 0 || size >= 2 * (1 << 30)) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n var buf = Buffer(size)\n if (!fill || fill.length === 0) {\n buf.fill(0)\n } else if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n return buf\n }\n}\n\nif (!safer.kStringMaxLength) {\n try {\n safer.kStringMaxLength = process.binding('buffer').kStringMaxLength\n } catch (e) {\n // we can't determine kStringMaxLength in environments where process.binding\n // is unsupported, so let's not set it\n }\n}\n\nif (!safer.constants) {\n safer.constants = {\n MAX_LENGTH: safer.kMaxLength\n }\n if (safer.kStringMaxLength) {\n safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength\n }\n}\n\nmodule.exports = safer\n","try {\n var util = require('util');\n /* istanbul ignore next */\n if (typeof util.inherits !== 'function') throw '';\n module.exports = util.inherits;\n} catch (e) {\n /* istanbul ignore next */\n module.exports = require('./inherits_browser.js');\n}\n","// Will apply any type to source\nexport const getSource = (): number => global.source;\n\n// Will clean string of any character that isn't 0-9, or a-z\nexport const clean = (input: string): string => (input ? input.replace(/[^0-9a-z]/gi, '') : input);\n\ntype onNetTypedCB = (data: T) => void;\n\n// Simple generic wrapper around onNet for type safety\nexport const onNetTyped = (eventName: string, cb: onNetTypedCB) => onNet(eventName, cb);\n\n// Simple generic wrapper around emitNet, except that we switch src and first arg if on server.\n// source is defined using the third arg\nexport const emitNetTyped = (eventName: string, data: T, src?: number) => {\n if (src) {\n return emitNet(eventName, src, data);\n }\n\n emitNet(eventName, data);\n};\n","import { getSource } from '../../utils/miscUtils';\nimport { mainLogger } from '../../sv_logger';\nimport { CBSignature, PromiseEventResp, PromiseRequest } from './promise.types';\nimport { ServerPromiseResp } from '../../../../typings/common';\n\nconst netEventLogger = mainLogger.child({ module: 'events' });\n\nexport function onNetPromise(eventName: string, cb: CBSignature): void {\n onNet(eventName, async (respEventName: string, data: T) => {\n const startTime = process.hrtime.bigint();\n const src = getSource();\n\n if (!respEventName) {\n return netEventLogger.warn(\n `Promise event (${eventName}) was called with wrong struct by ${src} (maybe originator wasn't a promiseEvent`,\n );\n }\n\n const promiseRequest: PromiseRequest = {\n source: src,\n data,\n };\n\n netEventLogger.silly(`netPromise > ${eventName} > RequestObj`);\n netEventLogger.silly(promiseRequest);\n\n const promiseResp: PromiseEventResp

= (data: ServerPromiseResp

) => {\n const endTime = process.hrtime.bigint();\n const totalTime = Number(endTime - startTime) / 1e6;\n emitNet(respEventName, src, data);\n netEventLogger.silly(`Response Promise Event ${respEventName} (${totalTime}ms), Data >>`);\n netEventLogger.silly(data);\n };\n\n // In case the cb is a promise, we use Promise.resolve\n Promise.resolve(cb(promiseRequest, promiseResp)).catch((e) => {\n netEventLogger.error(\n `An error occured for a onNetPromise (${eventName}), Error: ${e.message}`,\n );\n\n promiseResp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n });\n}\n","import { SessionStatus } from '@sentry/types';\nimport { dropUndefinedKeys, timestampInSeconds, uuid4 } from '@sentry/utils';\n/**\n * @inheritdoc\n */\nvar Session = /** @class */ (function () {\n function Session(context) {\n this.errors = 0;\n this.sid = uuid4();\n this.duration = 0;\n this.status = SessionStatus.Ok;\n this.init = true;\n this.ignoreDuration = false;\n // Both timestamp and started are in seconds since the UNIX epoch.\n var startingTime = timestampInSeconds();\n this.timestamp = startingTime;\n this.started = startingTime;\n if (context) {\n this.update(context);\n }\n }\n /** JSDoc */\n // eslint-disable-next-line complexity\n Session.prototype.update = function (context) {\n if (context === void 0) { context = {}; }\n if (context.user) {\n if (!this.ipAddress && context.user.ip_address) {\n this.ipAddress = context.user.ip_address;\n }\n if (!this.did && !context.did) {\n this.did = context.user.id || context.user.email || context.user.username;\n }\n }\n this.timestamp = context.timestamp || timestampInSeconds();\n if (context.ignoreDuration) {\n this.ignoreDuration = context.ignoreDuration;\n }\n if (context.sid) {\n // Good enough uuid validation. — Kamil\n this.sid = context.sid.length === 32 ? context.sid : uuid4();\n }\n if (context.init !== undefined) {\n this.init = context.init;\n }\n if (!this.did && context.did) {\n this.did = \"\" + context.did;\n }\n if (typeof context.started === 'number') {\n this.started = context.started;\n }\n if (this.ignoreDuration) {\n this.duration = undefined;\n }\n else if (typeof context.duration === 'number') {\n this.duration = context.duration;\n }\n else {\n var duration = this.timestamp - this.started;\n this.duration = duration >= 0 ? duration : 0;\n }\n if (context.release) {\n this.release = context.release;\n }\n if (context.environment) {\n this.environment = context.environment;\n }\n if (!this.ipAddress && context.ipAddress) {\n this.ipAddress = context.ipAddress;\n }\n if (!this.userAgent && context.userAgent) {\n this.userAgent = context.userAgent;\n }\n if (typeof context.errors === 'number') {\n this.errors = context.errors;\n }\n if (context.status) {\n this.status = context.status;\n }\n };\n /** JSDoc */\n Session.prototype.close = function (status) {\n if (status) {\n this.update({ status: status });\n }\n else if (this.status === SessionStatus.Ok) {\n this.update({ status: SessionStatus.Exited });\n }\n else {\n this.update();\n }\n };\n /** JSDoc */\n Session.prototype.toJSON = function () {\n return dropUndefinedKeys({\n sid: \"\" + this.sid,\n init: this.init,\n // Make sure that sec is converted to ms for date constructor\n started: new Date(this.started * 1000).toISOString(),\n timestamp: new Date(this.timestamp * 1000).toISOString(),\n status: this.status,\n errors: this.errors,\n did: typeof this.did === 'number' || typeof this.did === 'string' ? \"\" + this.did : undefined,\n duration: this.duration,\n attrs: dropUndefinedKeys({\n release: this.release,\n environment: this.environment,\n ip_address: this.ipAddress,\n user_agent: this.userAgent,\n }),\n });\n };\n return Session;\n}());\nexport { Session };\n//# sourceMappingURL=session.js.map","import { __assign, __read, __spread } from \"tslib\";\n/* eslint-disable max-lines */\nimport { SessionStatus, } from '@sentry/types';\nimport { consoleSandbox, dateTimestampInSeconds, getGlobalObject, isNodeEnv, logger, uuid4 } from '@sentry/utils';\nimport { Scope } from './scope';\nimport { Session } from './session';\n/**\n * API compatibility version of this hub.\n *\n * WARNING: This number should only be increased when the global interface\n * changes and new methods are introduced.\n *\n * @hidden\n */\nexport var API_VERSION = 4;\n/**\n * Default maximum number of breadcrumbs added to an event. Can be overwritten\n * with {@link Options.maxBreadcrumbs}.\n */\nvar DEFAULT_BREADCRUMBS = 100;\n/**\n * @inheritDoc\n */\nvar Hub = /** @class */ (function () {\n /**\n * Creates a new instance of the hub, will push one {@link Layer} into the\n * internal stack on creation.\n *\n * @param client bound to the hub.\n * @param scope bound to the hub.\n * @param version number, higher number means higher priority.\n */\n function Hub(client, scope, _version) {\n if (scope === void 0) { scope = new Scope(); }\n if (_version === void 0) { _version = API_VERSION; }\n this._version = _version;\n /** Is a {@link Layer}[] containing the client and scope */\n this._stack = [{}];\n this.getStackTop().scope = scope;\n if (client) {\n this.bindClient(client);\n }\n }\n /**\n * @inheritDoc\n */\n Hub.prototype.isOlderThan = function (version) {\n return this._version < version;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.bindClient = function (client) {\n var top = this.getStackTop();\n top.client = client;\n if (client && client.setupIntegrations) {\n client.setupIntegrations();\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.pushScope = function () {\n // We want to clone the content of prev scope\n var scope = Scope.clone(this.getScope());\n this.getStack().push({\n client: this.getClient(),\n scope: scope,\n });\n return scope;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.popScope = function () {\n if (this.getStack().length <= 1)\n return false;\n return !!this.getStack().pop();\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.withScope = function (callback) {\n var scope = this.pushScope();\n try {\n callback(scope);\n }\n finally {\n this.popScope();\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.getClient = function () {\n return this.getStackTop().client;\n };\n /** Returns the scope of the top stack. */\n Hub.prototype.getScope = function () {\n return this.getStackTop().scope;\n };\n /** Returns the scope stack for domains or the process. */\n Hub.prototype.getStack = function () {\n return this._stack;\n };\n /** Returns the topmost scope layer in the order domain > local > process. */\n Hub.prototype.getStackTop = function () {\n return this._stack[this._stack.length - 1];\n };\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n Hub.prototype.captureException = function (exception, hint) {\n var eventId = (this._lastEventId = uuid4());\n var finalHint = hint;\n // If there's no explicit hint provided, mimic the same thing that would happen\n // in the minimal itself to create a consistent behavior.\n // We don't do this in the client, as it's the lowest level API, and doing this,\n // would prevent user from having full control over direct calls.\n if (!hint) {\n var syntheticException = void 0;\n try {\n throw new Error('Sentry syntheticException');\n }\n catch (exception) {\n syntheticException = exception;\n }\n finalHint = {\n originalException: exception,\n syntheticException: syntheticException,\n };\n }\n this._invokeClient('captureException', exception, __assign(__assign({}, finalHint), { event_id: eventId }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.captureMessage = function (message, level, hint) {\n var eventId = (this._lastEventId = uuid4());\n var finalHint = hint;\n // If there's no explicit hint provided, mimic the same thing that would happen\n // in the minimal itself to create a consistent behavior.\n // We don't do this in the client, as it's the lowest level API, and doing this,\n // would prevent user from having full control over direct calls.\n if (!hint) {\n var syntheticException = void 0;\n try {\n throw new Error(message);\n }\n catch (exception) {\n syntheticException = exception;\n }\n finalHint = {\n originalException: message,\n syntheticException: syntheticException,\n };\n }\n this._invokeClient('captureMessage', message, level, __assign(__assign({}, finalHint), { event_id: eventId }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.captureEvent = function (event, hint) {\n var eventId = uuid4();\n if (event.type !== 'transaction') {\n this._lastEventId = eventId;\n }\n this._invokeClient('captureEvent', event, __assign(__assign({}, hint), { event_id: eventId }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.lastEventId = function () {\n return this._lastEventId;\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.addBreadcrumb = function (breadcrumb, hint) {\n var _a = this.getStackTop(), scope = _a.scope, client = _a.client;\n if (!scope || !client)\n return;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _b = (client.getOptions && client.getOptions()) || {}, _c = _b.beforeBreadcrumb, beforeBreadcrumb = _c === void 0 ? null : _c, _d = _b.maxBreadcrumbs, maxBreadcrumbs = _d === void 0 ? DEFAULT_BREADCRUMBS : _d;\n if (maxBreadcrumbs <= 0)\n return;\n var timestamp = dateTimestampInSeconds();\n var mergedBreadcrumb = __assign({ timestamp: timestamp }, breadcrumb);\n var finalBreadcrumb = beforeBreadcrumb\n ? consoleSandbox(function () { return beforeBreadcrumb(mergedBreadcrumb, hint); })\n : mergedBreadcrumb;\n if (finalBreadcrumb === null)\n return;\n scope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setUser = function (user) {\n var scope = this.getScope();\n if (scope)\n scope.setUser(user);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setTags = function (tags) {\n var scope = this.getScope();\n if (scope)\n scope.setTags(tags);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setExtras = function (extras) {\n var scope = this.getScope();\n if (scope)\n scope.setExtras(extras);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setTag = function (key, value) {\n var scope = this.getScope();\n if (scope)\n scope.setTag(key, value);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.setExtra = function (key, extra) {\n var scope = this.getScope();\n if (scope)\n scope.setExtra(key, extra);\n };\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Hub.prototype.setContext = function (name, context) {\n var scope = this.getScope();\n if (scope)\n scope.setContext(name, context);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.configureScope = function (callback) {\n var _a = this.getStackTop(), scope = _a.scope, client = _a.client;\n if (scope && client) {\n callback(scope);\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.run = function (callback) {\n var oldHub = makeMain(this);\n try {\n callback(this);\n }\n finally {\n makeMain(oldHub);\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.getIntegration = function (integration) {\n var client = this.getClient();\n if (!client)\n return null;\n try {\n return client.getIntegration(integration);\n }\n catch (_oO) {\n logger.warn(\"Cannot retrieve integration \" + integration.id + \" from the current Hub\");\n return null;\n }\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.startSpan = function (context) {\n return this._callExtensionMethod('startSpan', context);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.startTransaction = function (context, customSamplingContext) {\n return this._callExtensionMethod('startTransaction', context, customSamplingContext);\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.traceHeaders = function () {\n return this._callExtensionMethod('traceHeaders');\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.captureSession = function (endSession) {\n if (endSession === void 0) { endSession = false; }\n // both send the update and pull the session from the scope\n if (endSession) {\n return this.endSession();\n }\n // only send the update\n this._sendSessionUpdate();\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.endSession = function () {\n var _a, _b, _c, _d, _e;\n (_c = (_b = (_a = this.getStackTop()) === null || _a === void 0 ? void 0 : _a.scope) === null || _b === void 0 ? void 0 : _b.getSession()) === null || _c === void 0 ? void 0 : _c.close();\n this._sendSessionUpdate();\n // the session is over; take it off of the scope\n (_e = (_d = this.getStackTop()) === null || _d === void 0 ? void 0 : _d.scope) === null || _e === void 0 ? void 0 : _e.setSession();\n };\n /**\n * @inheritDoc\n */\n Hub.prototype.startSession = function (context) {\n var _a = this.getStackTop(), scope = _a.scope, client = _a.client;\n var _b = (client && client.getOptions()) || {}, release = _b.release, environment = _b.environment;\n // Will fetch userAgent if called from browser sdk\n var global = getGlobalObject();\n var userAgent = (global.navigator || {}).userAgent;\n var session = new Session(__assign(__assign(__assign({ release: release,\n environment: environment }, (scope && { user: scope.getUser() })), (userAgent && { userAgent: userAgent })), context));\n if (scope) {\n // End existing session if there's one\n var currentSession = scope.getSession && scope.getSession();\n if (currentSession && currentSession.status === SessionStatus.Ok) {\n currentSession.update({ status: SessionStatus.Exited });\n }\n this.endSession();\n // Afterwards we set the new session on the scope\n scope.setSession(session);\n }\n return session;\n };\n /**\n * Sends the current Session on the scope\n */\n Hub.prototype._sendSessionUpdate = function () {\n var _a = this.getStackTop(), scope = _a.scope, client = _a.client;\n if (!scope)\n return;\n var session = scope.getSession && scope.getSession();\n if (session) {\n if (client && client.captureSession) {\n client.captureSession(session);\n }\n }\n };\n /**\n * Internal helper function to call a method on the top client if it exists.\n *\n * @param method The method to call on the client.\n * @param args Arguments to pass to the client function.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Hub.prototype._invokeClient = function (method) {\n var _a;\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var _b = this.getStackTop(), scope = _b.scope, client = _b.client;\n if (client && client[method]) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n (_a = client)[method].apply(_a, __spread(args, [scope]));\n }\n };\n /**\n * Calls global extension method and binding current instance to the function call\n */\n // @ts-ignore Function lacks ending return statement and return type does not include 'undefined'. ts(2366)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Hub.prototype._callExtensionMethod = function (method) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var carrier = getMainCarrier();\n var sentry = carrier.__SENTRY__;\n if (sentry && sentry.extensions && typeof sentry.extensions[method] === 'function') {\n return sentry.extensions[method].apply(this, args);\n }\n logger.warn(\"Extension method \" + method + \" couldn't be found, doing nothing.\");\n };\n return Hub;\n}());\nexport { Hub };\n/**\n * Returns the global shim registry.\n *\n * FIXME: This function is problematic, because despite always returning a valid Carrier,\n * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check\n * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.\n **/\nexport function getMainCarrier() {\n var carrier = getGlobalObject();\n carrier.__SENTRY__ = carrier.__SENTRY__ || {\n extensions: {},\n hub: undefined,\n };\n return carrier;\n}\n/**\n * Replaces the current main hub with the passed one on the global object\n *\n * @returns The old replaced hub\n */\nexport function makeMain(hub) {\n var registry = getMainCarrier();\n var oldHub = getHubFromCarrier(registry);\n setHubOnCarrier(registry, hub);\n return oldHub;\n}\n/**\n * Returns the default hub instance.\n *\n * If a hub is already registered in the global carrier but this module\n * contains a more recent version, it replaces the registered version.\n * Otherwise, the currently registered hub will be returned.\n */\nexport function getCurrentHub() {\n // Get main carrier (global for every environment)\n var registry = getMainCarrier();\n // If there's no hub, or its an old API, assign a new one\n if (!hasHubOnCarrier(registry) || getHubFromCarrier(registry).isOlderThan(API_VERSION)) {\n setHubOnCarrier(registry, new Hub());\n }\n // Prefer domains over global if they are there (applicable only to Node environment)\n if (isNodeEnv()) {\n return getHubFromActiveDomain(registry);\n }\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n}\n/**\n * Returns the active domain, if one exists\n * @deprecated No longer used; remove in v7\n * @returns The domain, or undefined if there is no active domain\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function getActiveDomain() {\n logger.warn('Function `getActiveDomain` is deprecated and will be removed in a future version.');\n var sentry = getMainCarrier().__SENTRY__;\n return sentry && sentry.extensions && sentry.extensions.domain && sentry.extensions.domain.active;\n}\n/**\n * Try to read the hub from an active domain, and fallback to the registry if one doesn't exist\n * @returns discovered hub\n */\nfunction getHubFromActiveDomain(registry) {\n var _a, _b, _c;\n try {\n var activeDomain = (_c = (_b = (_a = getMainCarrier().__SENTRY__) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.domain) === null || _c === void 0 ? void 0 : _c.active;\n // If there's no active domain, just return global hub\n if (!activeDomain) {\n return getHubFromCarrier(registry);\n }\n // If there's no hub on current domain, or it's an old API, assign a new one\n if (!hasHubOnCarrier(activeDomain) || getHubFromCarrier(activeDomain).isOlderThan(API_VERSION)) {\n var registryHubTopStack = getHubFromCarrier(registry).getStackTop();\n setHubOnCarrier(activeDomain, new Hub(registryHubTopStack.client, Scope.clone(registryHubTopStack.scope)));\n }\n // Return hub that lives on a domain\n return getHubFromCarrier(activeDomain);\n }\n catch (_Oo) {\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n }\n}\n/**\n * This will tell whether a carrier has a hub on it or not\n * @param carrier object\n */\nfunction hasHubOnCarrier(carrier) {\n return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);\n}\n/**\n * This will create a new {@link Hub} and add to the passed object on\n * __SENTRY__.hub.\n * @param carrier object\n * @hidden\n */\nexport function getHubFromCarrier(carrier) {\n if (carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub)\n return carrier.__SENTRY__.hub;\n carrier.__SENTRY__ = carrier.__SENTRY__ || {};\n carrier.__SENTRY__.hub = new Hub();\n return carrier.__SENTRY__.hub;\n}\n/**\n * This will set passed {@link Hub} on the passed object's __SENTRY__.hub attribute\n * @param carrier object\n * @param hub Hub\n * @returns A boolean indicating success or failure\n */\nexport function setHubOnCarrier(carrier, hub) {\n if (!carrier)\n return false;\n carrier.__SENTRY__ = carrier.__SENTRY__ || {};\n carrier.__SENTRY__.hub = hub;\n return true;\n}\n//# sourceMappingURL=hub.js.map","'use strict';\n\nconst core = require('./index.js');\nconst EventEmitter = require('events').EventEmitter;\n\nfunction makeDoneCb(resolve, reject, localErr) {\n return function (err, rows, fields) {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sql = err.sql;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve([rows, fields]);\n }\n };\n}\n\nfunction inheritEvents(source, target, events) {\n const listeners = {};\n target\n .on('newListener', eventName => {\n if (events.indexOf(eventName) >= 0 && !target.listenerCount(eventName)) {\n source.on(\n eventName,\n (listeners[eventName] = function () {\n const args = [].slice.call(arguments);\n args.unshift(eventName);\n\n target.emit.apply(target, args);\n })\n );\n }\n })\n .on('removeListener', eventName => {\n if (events.indexOf(eventName) >= 0 && !target.listenerCount(eventName)) {\n source.removeListener(eventName, listeners[eventName]);\n delete listeners[eventName];\n }\n });\n}\n\nclass PromisePreparedStatementInfo {\n constructor(statement, promiseImpl) {\n this.statement = statement;\n this.Promise = promiseImpl;\n }\n\n execute(parameters) {\n const s = this.statement;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (parameters) {\n s.execute(parameters, done);\n } else {\n s.execute(done);\n }\n });\n }\n\n close() {\n return new this.Promise(resolve => {\n this.statement.close();\n resolve();\n });\n }\n}\n\nclass PromiseConnection extends EventEmitter {\n constructor(connection, promiseImpl) {\n super();\n this.connection = connection;\n this.Promise = promiseImpl || Promise;\n inheritEvents(connection, this, [\n 'error',\n 'drain',\n 'connect',\n 'end',\n 'enqueue'\n ]);\n }\n\n release() {\n this.connection.release();\n }\n\n query(query, params) {\n const c = this.connection;\n const localErr = new Error();\n if (typeof params === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (params !== undefined) {\n c.query(query, params, done);\n } else {\n c.query(query, done);\n }\n });\n }\n\n execute(query, params) {\n const c = this.connection;\n const localErr = new Error();\n if (typeof params === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (params !== undefined) {\n c.execute(query, params, done);\n } else {\n c.execute(query, done);\n }\n });\n }\n\n end() {\n return new this.Promise(resolve => {\n this.connection.end(resolve);\n });\n }\n\n beginTransaction() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n c.beginTransaction(done);\n });\n }\n\n commit() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n c.commit(done);\n });\n }\n\n rollback() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n c.rollback(done);\n });\n }\n\n ping() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n c.ping(done);\n });\n }\n\n connect() {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n c.connect((err, param) => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve(param);\n }\n });\n });\n }\n\n prepare(options) {\n const c = this.connection;\n const promiseImpl = this.Promise;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n c.prepare(options, (err, statement) => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n const wrappedStatement = new PromisePreparedStatementInfo(\n statement,\n promiseImpl\n );\n resolve(wrappedStatement);\n }\n });\n });\n }\n\n changeUser(options) {\n const c = this.connection;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n c.changeUser(options, err => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve();\n }\n });\n });\n }\n\n get config() {\n return this.connection.config;\n }\n\n get threadId() {\n return this.connection.threadId;\n }\n}\n\nfunction createConnection(opts) {\n const coreConnection = core.createConnection(opts);\n const createConnectionErr = new Error();\n const thePromise = opts.Promise || Promise;\n if (!thePromise) {\n throw new Error(\n 'no Promise implementation available.' +\n 'Use promise-enabled node version or pass userland Promise' +\n \" implementation as parameter, for example: { Promise: require('bluebird') }\"\n );\n }\n return new thePromise((resolve, reject) => {\n coreConnection.once('connect', () => {\n resolve(new PromiseConnection(coreConnection, thePromise));\n });\n coreConnection.once('error', err => {\n createConnectionErr.message = err.message;\n createConnectionErr.code = err.code;\n createConnectionErr.errno = err.errno;\n createConnectionErr.sqlState = err.sqlState;\n reject(createConnectionErr);\n });\n });\n}\n\n// note: the callback of \"changeUser\" is not called on success\n// hence there is no possibility to call \"resolve\"\n\n// patching PromiseConnection\n// create facade functions for prototype functions on \"Connection\" that are not yet\n// implemented with PromiseConnection\n\n// proxy synchronous functions only\n(function (functionsToWrap) {\n for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {\n const func = functionsToWrap[i];\n\n if (\n typeof core.Connection.prototype[func] === 'function' &&\n PromiseConnection.prototype[func] === undefined\n ) {\n PromiseConnection.prototype[func] = (function factory(funcName) {\n return function () {\n return core.Connection.prototype[funcName].apply(\n this.connection,\n arguments\n );\n };\n })(func);\n }\n }\n})([\n // synchronous functions\n 'close',\n 'createBinlogStream',\n 'destroy',\n 'escape',\n 'escapeId',\n 'format',\n 'pause',\n 'pipe',\n 'resume',\n 'unprepare'\n]);\n\nclass PromisePoolConnection extends PromiseConnection {\n constructor(connection, promiseImpl) {\n super(connection, promiseImpl);\n }\n\n destroy() {\n return core.PoolConnection.prototype.destroy.apply(\n this.connection,\n arguments\n );\n }\n}\n\nclass PromisePool extends EventEmitter {\n constructor(pool, thePromise) {\n super();\n this.pool = pool;\n this.Promise = thePromise || Promise;\n inheritEvents(pool, this, ['acquire', 'connection', 'enqueue', 'release']);\n }\n\n getConnection() {\n const corePool = this.pool;\n return new this.Promise((resolve, reject) => {\n corePool.getConnection((err, coreConnection) => {\n if (err) {\n reject(err);\n } else {\n resolve(new PromisePoolConnection(coreConnection, this.Promise));\n }\n });\n });\n }\n\n query(sql, args) {\n const corePool = this.pool;\n const localErr = new Error();\n if (typeof args === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (args !== undefined) {\n corePool.query(sql, args, done);\n } else {\n corePool.query(sql, done);\n }\n });\n }\n\n execute(sql, args) {\n const corePool = this.pool;\n const localErr = new Error();\n if (typeof args === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n if (args) {\n corePool.execute(sql, args, done);\n } else {\n corePool.execute(sql, done);\n }\n });\n }\n\n end() {\n const corePool = this.pool;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n corePool.end(err => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve();\n }\n });\n });\n }\n}\n\nfunction createPool(opts) {\n const corePool = core.createPool(opts);\n const thePromise = opts.Promise || Promise;\n if (!thePromise) {\n throw new Error(\n 'no Promise implementation available.' +\n 'Use promise-enabled node version or pass userland Promise' +\n \" implementation as parameter, for example: { Promise: require('bluebird') }\"\n );\n }\n\n return new PromisePool(corePool, thePromise);\n}\n\n(function (functionsToWrap) {\n for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {\n const func = functionsToWrap[i];\n\n if (\n typeof core.Pool.prototype[func] === 'function' &&\n PromisePool.prototype[func] === undefined\n ) {\n PromisePool.prototype[func] = (function factory(funcName) {\n return function () {\n return core.Pool.prototype[funcName].apply(this.pool, arguments);\n };\n })(func);\n }\n }\n})([\n // synchronous functions\n 'escape',\n 'escapeId',\n 'format'\n]);\n\nclass PromisePoolCluster extends EventEmitter {\n constructor(poolCluster, thePromise) {\n super();\n this.poolCluster = poolCluster;\n this.Promise = thePromise || Promise;\n inheritEvents(poolCluster, this, ['acquire', 'connection', 'enqueue', 'release']);\n }\n\n getConnection() {\n const corePoolCluster = this.poolCluster;\n return new this.Promise((resolve, reject) => {\n corePoolCluster.getConnection((err, coreConnection) => {\n if (err) {\n reject(err);\n } else {\n resolve(new PromisePoolConnection(coreConnection, this.Promise));\n }\n });\n });\n }\n\n query(sql, args) {\n const corePoolCluster = this.poolCluster;\n const localErr = new Error();\n if (typeof args === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n corePoolCluster.query(sql, args, done);\n });\n }\n\n execute(sql, args) {\n const corePoolCluster = this.poolCluster;\n const localErr = new Error();\n if (typeof args === 'function') {\n throw new Error(\n 'Callback function is not available with promise clients.'\n );\n }\n return new this.Promise((resolve, reject) => {\n const done = makeDoneCb(resolve, reject, localErr);\n corePoolCluster.execute(sql, args, done);\n });\n }\n\n of(pattern, selector) {\n return new PromisePoolCluster(\n this.poolCluster.of(pattern, selector),\n this.Promise\n );\n }\n\n end() {\n const corePoolCluster = this.poolCluster;\n const localErr = new Error();\n return new this.Promise((resolve, reject) => {\n corePoolCluster.end(err => {\n if (err) {\n localErr.message = err.message;\n localErr.code = err.code;\n localErr.errno = err.errno;\n localErr.sqlState = err.sqlState;\n localErr.sqlMessage = err.sqlMessage;\n reject(localErr);\n } else {\n resolve();\n }\n });\n });\n }\n}\n\n/**\n * proxy poolCluster synchronous functions\n */\n(function (functionsToWrap) {\n for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {\n const func = functionsToWrap[i];\n\n if (\n typeof core.PoolCluster.prototype[func] === 'function' &&\n PromisePoolCluster.prototype[func] === undefined\n ) {\n PromisePoolCluster.prototype[func] = (function factory(funcName) {\n return function () {\n return core.PoolCluster.prototype[funcName].apply(this.poolCluster, arguments);\n };\n })(func);\n }\n }\n})([\n 'add'\n]);\n\nfunction createPoolCluster(opts) {\n const corePoolCluster = core.createPoolCluster(opts);\n const thePromise = (opts && opts.Promise) || Promise;\n if (!thePromise) {\n throw new Error(\n 'no Promise implementation available.' +\n 'Use promise-enabled node version or pass userland Promise' +\n \" implementation as parameter, for example: { Promise: require('bluebird') }\"\n );\n }\n return new PromisePoolCluster(corePoolCluster, thePromise);\n}\n\nexports.createConnection = createConnection;\nexports.createPool = createPool;\nexports.createPoolCluster = createPoolCluster;\nexports.escape = core.escape;\nexports.escapeId = core.escapeId;\nexports.format = core.format;\nexports.raw = core.raw;\nexports.PromisePool = PromisePool;\nexports.PromiseConnection = PromiseConnection;\nexports.PromisePoolConnection = PromisePoolConnection;\n","module.exports = require(\"buffer\");","'use strict';\n\n// Manually extracted from mysql-5.5.23/include/mysql_com.h\nexports.LONG_PASSWORD = 0x00000001; /* new more secure passwords */\nexports.FOUND_ROWS = 0x00000002; /* found instead of affected rows */\nexports.LONG_FLAG = 0x00000004; /* get all column flags */\nexports.CONNECT_WITH_DB = 0x00000008; /* one can specify db on connect */\nexports.NO_SCHEMA = 0x00000010; /* don't allow database.table.column */\nexports.COMPRESS = 0x00000020; /* can use compression protocol */\nexports.ODBC = 0x00000040; /* odbc client */\nexports.LOCAL_FILES = 0x00000080; /* can use LOAD DATA LOCAL */\nexports.IGNORE_SPACE = 0x00000100; /* ignore spaces before '' */\nexports.PROTOCOL_41 = 0x00000200; /* new 4.1 protocol */\nexports.INTERACTIVE = 0x00000400; /* this is an interactive client */\nexports.SSL = 0x00000800; /* switch to ssl after handshake */\nexports.IGNORE_SIGPIPE = 0x00001000; /* IGNORE sigpipes */\nexports.TRANSACTIONS = 0x00002000; /* client knows about transactions */\nexports.RESERVED = 0x00004000; /* old flag for 4.1 protocol */\nexports.SECURE_CONNECTION = 0x00008000; /* new 4.1 authentication */\nexports.MULTI_STATEMENTS = 0x00010000; /* enable/disable multi-stmt support */\nexports.MULTI_RESULTS = 0x00020000; /* enable/disable multi-results */\nexports.PS_MULTI_RESULTS = 0x00040000; /* multi-results in ps-protocol */\nexports.PLUGIN_AUTH = 0x00080000; /* client supports plugin authentication */\nexports.CONNECT_ATTRS = 0x00100000; /* permits connection attributes */\nexports.PLUGIN_AUTH_LENENC_CLIENT_DATA = 0x00200000; /* Understands length-encoded integer for auth response data in Protocol::HandshakeResponse41. */\nexports.CAN_HANDLE_EXPIRED_PASSWORDS = 0x00400000; /* Announces support for expired password extension. */\nexports.SESSION_TRACK = 0x00800000; /* Can set SERVER_SESSION_STATE_CHANGED in the Status Flags and send session-state change data after a OK packet. */\nexports.DEPRECATE_EOF = 0x01000000; /* Can send OK after a Text Resultset. */\n\nexports.SSL_VERIFY_SERVER_CERT = 0x40000000;\nexports.REMEMBER_OPTIONS = 0x80000000;\n","'use strict';\n\nconst codes = {};\n\nfunction createErrorType(code, message, Base) {\n if (!Base) {\n Base = Error\n }\n\n function getMessage (arg1, arg2, arg3) {\n if (typeof message === 'string') {\n return message\n } else {\n return message(arg1, arg2, arg3)\n }\n }\n\n class NodeError extends Base {\n constructor (arg1, arg2, arg3) {\n super(getMessage(arg1, arg2, arg3));\n }\n }\n\n NodeError.prototype.name = Base.name;\n NodeError.prototype.code = code;\n\n codes[code] = NodeError;\n}\n\n// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js\nfunction oneOf(expected, thing) {\n if (Array.isArray(expected)) {\n const len = expected.length;\n expected = expected.map((i) => String(i));\n if (len > 2) {\n return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` +\n expected[len - 1];\n } else if (len === 2) {\n return `one of ${thing} ${expected[0]} or ${expected[1]}`;\n } else {\n return `of ${thing} ${expected[0]}`;\n }\n } else {\n return `of ${thing} ${String(expected)}`;\n }\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith\nfunction startsWith(str, search, pos) {\n\treturn str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\nfunction endsWith(str, search, this_len) {\n\tif (this_len === undefined || this_len > str.length) {\n\t\tthis_len = str.length;\n\t}\n\treturn str.substring(this_len - search.length, this_len) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes\nfunction includes(str, search, start) {\n if (typeof start !== 'number') {\n start = 0;\n }\n\n if (start + search.length > str.length) {\n return false;\n } else {\n return str.indexOf(search, start) !== -1;\n }\n}\n\ncreateErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {\n return 'The value \"' + value + '\" is invalid for option \"' + name + '\"'\n}, TypeError);\ncreateErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {\n // determiner: 'must be' or 'must not be'\n let determiner;\n if (typeof expected === 'string' && startsWith(expected, 'not ')) {\n determiner = 'must not be';\n expected = expected.replace(/^not /, '');\n } else {\n determiner = 'must be';\n }\n\n let msg;\n if (endsWith(name, ' argument')) {\n // For cases like 'first argument'\n msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`;\n } else {\n const type = includes(name, '.') ? 'property' : 'argument';\n msg = `The \"${name}\" ${type} ${determiner} ${oneOf(expected, 'type')}`;\n }\n\n msg += `. Received type ${typeof actual}`;\n return msg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');\ncreateErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {\n return 'The ' + name + ' method is not implemented'\n});\ncreateErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');\ncreateErrorType('ERR_STREAM_DESTROYED', function (name) {\n return 'Cannot call ' + name + ' after a stream was destroyed';\n});\ncreateErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');\ncreateErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');\ncreateErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');\ncreateErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);\ncreateErrorType('ERR_UNKNOWN_ENCODING', function (arg) {\n return 'Unknown encoding: ' + arg\n}, TypeError);\ncreateErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');\n\nmodule.exports.codes = codes;\n","module.exports = require(\"http\");","module.exports = require(\"https\");","import { __assign, __read, __spread } from \"tslib\";\nimport { getMainCarrier } from '@sentry/hub';\nimport { TransactionSamplingMethod, } from '@sentry/types';\nimport { dynamicRequire, isNodeEnv, loadModule, logger } from '@sentry/utils';\nimport { registerErrorInstrumentation } from './errors';\nimport { IdleTransaction } from './idletransaction';\nimport { Transaction } from './transaction';\nimport { hasTracingEnabled } from './utils';\n/** Returns all trace headers that are currently on the top scope. */\nfunction traceHeaders() {\n var scope = this.getScope();\n if (scope) {\n var span = scope.getSpan();\n if (span) {\n return {\n 'sentry-trace': span.toTraceparent(),\n };\n }\n }\n return {};\n}\n/**\n * Makes a sampling decision for the given transaction and stores it on the transaction.\n *\n * Called every time a transaction is created. Only transactions which emerge with a `sampled` value of `true` will be\n * sent to Sentry.\n *\n * @param hub: The hub off of which to read config options\n * @param transaction: The transaction needing a sampling decision\n * @param samplingContext: Default and user-provided data which may be used to help make the decision\n *\n * @returns The given transaction with its `sampled` value set\n */\nfunction sample(transaction, options, samplingContext) {\n // nothing to do if tracing is not enabled\n if (!hasTracingEnabled(options)) {\n transaction.sampled = false;\n return transaction;\n }\n // if the user has forced a sampling decision by passing a `sampled` value in their transaction context, go with that\n if (transaction.sampled !== undefined) {\n transaction.setMetadata({\n transactionSampling: { method: TransactionSamplingMethod.Explicit },\n });\n return transaction;\n }\n // we would have bailed already if neither `tracesSampler` nor `tracesSampleRate` were defined, so one of these should\n // work; prefer the hook if so\n var sampleRate;\n if (typeof options.tracesSampler === 'function') {\n sampleRate = options.tracesSampler(samplingContext);\n transaction.setMetadata({\n transactionSampling: {\n method: TransactionSamplingMethod.Sampler,\n // cast to number in case it's a boolean\n rate: Number(sampleRate),\n },\n });\n }\n else if (samplingContext.parentSampled !== undefined) {\n sampleRate = samplingContext.parentSampled;\n transaction.setMetadata({\n transactionSampling: { method: TransactionSamplingMethod.Inheritance },\n });\n }\n else {\n sampleRate = options.tracesSampleRate;\n transaction.setMetadata({\n transactionSampling: {\n method: TransactionSamplingMethod.Rate,\n // cast to number in case it's a boolean\n rate: Number(sampleRate),\n },\n });\n }\n // Since this is coming from the user (or from a function provided by the user), who knows what we might get. (The\n // only valid values are booleans or numbers between 0 and 1.)\n if (!isValidSampleRate(sampleRate)) {\n logger.warn(\"[Tracing] Discarding transaction because of invalid sample rate.\");\n transaction.sampled = false;\n return transaction;\n }\n // if the function returned 0 (or false), or if `tracesSampleRate` is 0, it's a sign the transaction should be dropped\n if (!sampleRate) {\n logger.log(\"[Tracing] Discarding transaction because \" + (typeof options.tracesSampler === 'function'\n ? 'tracesSampler returned 0 or false'\n : 'a negative sampling decision was inherited or tracesSampleRate is set to 0'));\n transaction.sampled = false;\n return transaction;\n }\n // Now we roll the dice. Math.random is inclusive of 0, but not of 1, so strict < is safe here. In case sampleRate is\n // a boolean, the < comparison will cause it to be automatically cast to 1 if it's true and 0 if it's false.\n transaction.sampled = Math.random() < sampleRate;\n // if we're not going to keep it, we're done\n if (!transaction.sampled) {\n logger.log(\"[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = \" + Number(sampleRate) + \")\");\n return transaction;\n }\n logger.log(\"[Tracing] starting \" + transaction.op + \" transaction - \" + transaction.name);\n return transaction;\n}\n/**\n * Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1).\n */\nfunction isValidSampleRate(rate) {\n // we need to check NaN explicitly because it's of type 'number' and therefore wouldn't get caught by this typecheck\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isNaN(rate) || !(typeof rate === 'number' || typeof rate === 'boolean')) {\n logger.warn(\"[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got \" + JSON.stringify(rate) + \" of type \" + JSON.stringify(typeof rate) + \".\");\n return false;\n }\n // in case sampleRate is a boolean, it will get automatically cast to 1 if it's true and 0 if it's false\n if (rate < 0 || rate > 1) {\n logger.warn(\"[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got \" + rate + \".\");\n return false;\n }\n return true;\n}\n/**\n * Creates a new transaction and adds a sampling decision if it doesn't yet have one.\n *\n * The Hub.startTransaction method delegates to this method to do its work, passing the Hub instance in as `this`, as if\n * it had been called on the hub directly. Exists as a separate function so that it can be injected into the class as an\n * \"extension method.\"\n *\n * @param this: The Hub starting the transaction\n * @param transactionContext: Data used to configure the transaction\n * @param CustomSamplingContext: Optional data to be provided to the `tracesSampler` function (if any)\n *\n * @returns The new transaction\n *\n * @see {@link Hub.startTransaction}\n */\nfunction _startTransaction(transactionContext, customSamplingContext) {\n var _a, _b;\n var options = ((_a = this.getClient()) === null || _a === void 0 ? void 0 : _a.getOptions()) || {};\n var transaction = new Transaction(transactionContext, this);\n transaction = sample(transaction, options, __assign({ parentSampled: transactionContext.parentSampled, transactionContext: transactionContext }, customSamplingContext));\n if (transaction.sampled) {\n transaction.initSpanRecorder((_b = options._experiments) === null || _b === void 0 ? void 0 : _b.maxSpans);\n }\n return transaction;\n}\n/**\n * Create new idle transaction.\n */\nexport function startIdleTransaction(hub, transactionContext, idleTimeout, onScope, customSamplingContext) {\n var _a, _b;\n var options = ((_a = hub.getClient()) === null || _a === void 0 ? void 0 : _a.getOptions()) || {};\n var transaction = new IdleTransaction(transactionContext, hub, idleTimeout, onScope);\n transaction = sample(transaction, options, __assign({ parentSampled: transactionContext.parentSampled, transactionContext: transactionContext }, customSamplingContext));\n if (transaction.sampled) {\n transaction.initSpanRecorder((_b = options._experiments) === null || _b === void 0 ? void 0 : _b.maxSpans);\n }\n return transaction;\n}\n/**\n * @private\n */\nexport function _addTracingExtensions() {\n var carrier = getMainCarrier();\n if (!carrier.__SENTRY__) {\n return;\n }\n carrier.__SENTRY__.extensions = carrier.__SENTRY__.extensions || {};\n if (!carrier.__SENTRY__.extensions.startTransaction) {\n carrier.__SENTRY__.extensions.startTransaction = _startTransaction;\n }\n if (!carrier.__SENTRY__.extensions.traceHeaders) {\n carrier.__SENTRY__.extensions.traceHeaders = traceHeaders;\n }\n}\n/**\n * @private\n */\nfunction _autoloadDatabaseIntegrations() {\n var carrier = getMainCarrier();\n if (!carrier.__SENTRY__) {\n return;\n }\n var packageToIntegrationMapping = {\n mongodb: function () {\n var integration = dynamicRequire(module, './integrations/node/mongo');\n return new integration.Mongo();\n },\n mongoose: function () {\n var integration = dynamicRequire(module, './integrations/node/mongo');\n return new integration.Mongo({ mongoose: true });\n },\n mysql: function () {\n var integration = dynamicRequire(module, './integrations/node/mysql');\n return new integration.Mysql();\n },\n pg: function () {\n var integration = dynamicRequire(module, './integrations/node/postgres');\n return new integration.Postgres();\n },\n };\n var mappedPackages = Object.keys(packageToIntegrationMapping)\n .filter(function (moduleName) { return !!loadModule(moduleName); })\n .map(function (pkg) {\n try {\n return packageToIntegrationMapping[pkg]();\n }\n catch (e) {\n return undefined;\n }\n })\n .filter(function (p) { return p; });\n if (mappedPackages.length > 0) {\n carrier.__SENTRY__.integrations = __spread((carrier.__SENTRY__.integrations || []), mappedPackages);\n }\n}\n/**\n * This patches the global object and injects the Tracing extensions methods\n */\nexport function addExtensionMethods() {\n _addTracingExtensions();\n // Detect and automatically load specified integrations.\n if (isNodeEnv()) {\n _autoloadDatabaseIntegrations();\n }\n // If an error happens globally, we should make sure transaction status is set to error.\n registerErrorInstrumentation();\n}\n//# sourceMappingURL=hubextensions.js.map","import { __assign } from \"tslib\";\nimport { dropUndefinedKeys, timestampWithMs, uuid4 } from '@sentry/utils';\nimport { SpanStatus } from './spanstatus';\n/**\n * Keeps track of finished spans for a given transaction\n * @internal\n * @hideconstructor\n * @hidden\n */\nvar SpanRecorder = /** @class */ (function () {\n function SpanRecorder(maxlen) {\n if (maxlen === void 0) { maxlen = 1000; }\n this.spans = [];\n this._maxlen = maxlen;\n }\n /**\n * This is just so that we don't run out of memory while recording a lot\n * of spans. At some point we just stop and flush out the start of the\n * trace tree (i.e.the first n spans with the smallest\n * start_timestamp).\n */\n SpanRecorder.prototype.add = function (span) {\n if (this.spans.length > this._maxlen) {\n span.spanRecorder = undefined;\n }\n else {\n this.spans.push(span);\n }\n };\n return SpanRecorder;\n}());\nexport { SpanRecorder };\n/**\n * Span contains all data about a span\n */\nvar Span = /** @class */ (function () {\n /**\n * You should never call the constructor manually, always use `Sentry.startTransaction()`\n * or call `startChild()` on an existing span.\n * @internal\n * @hideconstructor\n * @hidden\n */\n function Span(spanContext) {\n /**\n * @inheritDoc\n */\n this.traceId = uuid4();\n /**\n * @inheritDoc\n */\n this.spanId = uuid4().substring(16);\n /**\n * Timestamp in seconds when the span was created.\n */\n this.startTimestamp = timestampWithMs();\n /**\n * @inheritDoc\n */\n this.tags = {};\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.data = {};\n if (!spanContext) {\n return this;\n }\n if (spanContext.traceId) {\n this.traceId = spanContext.traceId;\n }\n if (spanContext.spanId) {\n this.spanId = spanContext.spanId;\n }\n if (spanContext.parentSpanId) {\n this.parentSpanId = spanContext.parentSpanId;\n }\n // We want to include booleans as well here\n if ('sampled' in spanContext) {\n this.sampled = spanContext.sampled;\n }\n if (spanContext.op) {\n this.op = spanContext.op;\n }\n if (spanContext.description) {\n this.description = spanContext.description;\n }\n if (spanContext.data) {\n this.data = spanContext.data;\n }\n if (spanContext.tags) {\n this.tags = spanContext.tags;\n }\n if (spanContext.status) {\n this.status = spanContext.status;\n }\n if (spanContext.startTimestamp) {\n this.startTimestamp = spanContext.startTimestamp;\n }\n if (spanContext.endTimestamp) {\n this.endTimestamp = spanContext.endTimestamp;\n }\n }\n /**\n * @inheritDoc\n * @deprecated\n */\n Span.prototype.child = function (spanContext) {\n return this.startChild(spanContext);\n };\n /**\n * @inheritDoc\n */\n Span.prototype.startChild = function (spanContext) {\n var childSpan = new Span(__assign(__assign({}, spanContext), { parentSpanId: this.spanId, sampled: this.sampled, traceId: this.traceId }));\n childSpan.spanRecorder = this.spanRecorder;\n if (childSpan.spanRecorder) {\n childSpan.spanRecorder.add(childSpan);\n }\n childSpan.transaction = this.transaction;\n return childSpan;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.setTag = function (key, value) {\n var _a;\n this.tags = __assign(__assign({}, this.tags), (_a = {}, _a[key] = value, _a));\n return this;\n };\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n Span.prototype.setData = function (key, value) {\n var _a;\n this.data = __assign(__assign({}, this.data), (_a = {}, _a[key] = value, _a));\n return this;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.setStatus = function (value) {\n this.status = value;\n return this;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.setHttpStatus = function (httpStatus) {\n this.setTag('http.status_code', String(httpStatus));\n var spanStatus = SpanStatus.fromHttpCode(httpStatus);\n if (spanStatus !== SpanStatus.UnknownError) {\n this.setStatus(spanStatus);\n }\n return this;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.isSuccess = function () {\n return this.status === SpanStatus.Ok;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.finish = function (endTimestamp) {\n this.endTimestamp = typeof endTimestamp === 'number' ? endTimestamp : timestampWithMs();\n };\n /**\n * @inheritDoc\n */\n Span.prototype.toTraceparent = function () {\n var sampledString = '';\n if (this.sampled !== undefined) {\n sampledString = this.sampled ? '-1' : '-0';\n }\n return this.traceId + \"-\" + this.spanId + sampledString;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.toContext = function () {\n return dropUndefinedKeys({\n data: this.data,\n description: this.description,\n endTimestamp: this.endTimestamp,\n op: this.op,\n parentSpanId: this.parentSpanId,\n sampled: this.sampled,\n spanId: this.spanId,\n startTimestamp: this.startTimestamp,\n status: this.status,\n tags: this.tags,\n traceId: this.traceId,\n });\n };\n /**\n * @inheritDoc\n */\n Span.prototype.updateWithContext = function (spanContext) {\n var _a, _b, _c, _d, _e;\n this.data = (_a = spanContext.data, (_a !== null && _a !== void 0 ? _a : {}));\n this.description = spanContext.description;\n this.endTimestamp = spanContext.endTimestamp;\n this.op = spanContext.op;\n this.parentSpanId = spanContext.parentSpanId;\n this.sampled = spanContext.sampled;\n this.spanId = (_b = spanContext.spanId, (_b !== null && _b !== void 0 ? _b : this.spanId));\n this.startTimestamp = (_c = spanContext.startTimestamp, (_c !== null && _c !== void 0 ? _c : this.startTimestamp));\n this.status = spanContext.status;\n this.tags = (_d = spanContext.tags, (_d !== null && _d !== void 0 ? _d : {}));\n this.traceId = (_e = spanContext.traceId, (_e !== null && _e !== void 0 ? _e : this.traceId));\n return this;\n };\n /**\n * @inheritDoc\n */\n Span.prototype.getTraceContext = function () {\n return dropUndefinedKeys({\n data: Object.keys(this.data).length > 0 ? this.data : undefined,\n description: this.description,\n op: this.op,\n parent_span_id: this.parentSpanId,\n span_id: this.spanId,\n status: this.status,\n tags: Object.keys(this.tags).length > 0 ? this.tags : undefined,\n trace_id: this.traceId,\n });\n };\n /**\n * @inheritDoc\n */\n Span.prototype.toJSON = function () {\n return dropUndefinedKeys({\n data: Object.keys(this.data).length > 0 ? this.data : undefined,\n description: this.description,\n op: this.op,\n parent_span_id: this.parentSpanId,\n span_id: this.spanId,\n start_timestamp: this.startTimestamp,\n status: this.status,\n tags: Object.keys(this.tags).length > 0 ? this.tags : undefined,\n timestamp: this.endTimestamp,\n trace_id: this.traceId,\n });\n };\n return Span;\n}());\nexport { Span };\n//# sourceMappingURL=span.js.map","import { isRegExp, isString } from './is';\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str, max) {\n if (max === void 0) { max = 0; }\n if (typeof str !== 'string' || max === 0) {\n return str;\n }\n return str.length <= max ? str : str.substr(0, max) + \"...\";\n}\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line, colno) {\n var newLine = line;\n var ll = newLine.length;\n if (ll <= 150) {\n return newLine;\n }\n if (colno > ll) {\n // eslint-disable-next-line no-param-reassign\n colno = ll;\n }\n var start = Math.max(colno - 60, 0);\n if (start < 5) {\n start = 0;\n }\n var end = Math.min(start + 140, ll);\n if (end > ll - 5) {\n end = ll;\n }\n if (end === ll) {\n start = Math.max(end - 140, 0);\n }\n newLine = newLine.slice(start, end);\n if (start > 0) {\n newLine = \"'{snip} \" + newLine;\n }\n if (end < ll) {\n newLine += ' {snip}';\n }\n return newLine;\n}\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function safeJoin(input, delimiter) {\n if (!Array.isArray(input)) {\n return '';\n }\n var output = [];\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < input.length; i++) {\n var value = input[i];\n try {\n output.push(String(value));\n }\n catch (e) {\n output.push('[value cannot be serialized]');\n }\n }\n return output.join(delimiter);\n}\n/**\n * Checks if the value matches a regex or includes the string\n * @param value The string value to be checked against\n * @param pattern Either a regex or a string that must be contained in value\n */\nexport function isMatchingPattern(value, pattern) {\n if (!isString(value)) {\n return false;\n }\n if (isRegExp(pattern)) {\n return pattern.test(value);\n }\n if (typeof pattern === 'string') {\n return value.indexOf(pattern) !== -1;\n }\n return false;\n}\n/**\n * Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to\n * `new RegExp()`.\n *\n * Based on https://github.com/sindresorhus/escape-string-regexp. Vendored to a) reduce the size by skipping the runtime\n * type-checking, and b) ensure it gets down-compiled for old versions of Node (the published package only supports Node\n * 12+).\n *\n * @param regexString The string to escape\n * @returns An version of the string with all special regex characters escaped\n */\nexport function escapeStringForRegex(regexString) {\n // escape the hyphen separately so we can also replace it with a unicode literal hyphen, to avoid the problems\n // discussed in https://github.com/sindresorhus/escape-string-regexp/issues/20.\n return regexString.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&').replace(/-/g, '\\\\x2d');\n}\n//# sourceMappingURL=string.js.map","'use strict';\n\n/*\n4.1 authentication: (http://bazaar.launchpad.net/~mysql/mysql-server/5.5/view/head:/sql/password.c)\n\n SERVER: public_seed=create_random_string()\n send(public_seed)\n\n CLIENT: recv(public_seed)\n hash_stage1=sha1(\"password\")\n hash_stage2=sha1(hash_stage1)\n reply=xor(hash_stage1, sha1(public_seed,hash_stage2)\n\n // this three steps are done in scramble()\n\n send(reply)\n\n\n SERVER: recv(reply)\n hash_stage1=xor(reply, sha1(public_seed,hash_stage2))\n candidate_hash2=sha1(hash_stage1)\n check(candidate_hash2==hash_stage2)\n\nserver stores sha1(sha1(password)) ( hash_stag2)\n*/\n\nconst crypto = require('crypto');\n\nfunction sha1(msg, msg1, msg2) {\n const hash = crypto.createHash('sha1');\n hash.update(msg);\n if (msg1) {\n hash.update(msg1);\n }\n\n if (msg2) {\n hash.update(msg2);\n }\n\n return hash.digest();\n}\n\nfunction xor(a, b) {\n if (!Buffer.isBuffer(a)) {\n a = Buffer.from(a, 'binary');\n }\n\n if (!Buffer.isBuffer(b)) {\n b = Buffer.from(b, 'binary');\n }\n\n const result = Buffer.allocUnsafe(a.length);\n\n for (let i = 0; i < a.length; i++) {\n result[i] = a[i] ^ b[i];\n }\n return result;\n}\n\nexports.xor = xor;\n\nfunction token(password, scramble1, scramble2) {\n // TODO: use buffers (not sure why strings here)\n if (!password) {\n return Buffer.alloc(0);\n }\n const stage1 = sha1(password);\n return exports.calculateTokenFromPasswordSha(stage1, scramble1, scramble2);\n}\n\nexports.calculateTokenFromPasswordSha = function(\n passwordSha,\n scramble1,\n scramble2\n) {\n // we use AUTH 41 here, and we need only the bytes we just need.\n const authPluginData1 = scramble1.slice(0, 8);\n const authPluginData2 = scramble2.slice(0, 12);\n const stage2 = sha1(passwordSha);\n const stage3 = sha1(authPluginData1, authPluginData2, stage2);\n return xor(stage3, passwordSha);\n};\n\nexports.calculateToken = token;\n\nexports.verifyToken = function(publicSeed1, publicSeed2, token, doubleSha) {\n const hashStage1 = xor(token, sha1(publicSeed1, publicSeed2, doubleSha));\n const candidateHash2 = sha1(hashStage1);\n return candidateHash2.compare(doubleSha) === 0;\n};\n\nexports.doubleSha1 = function(password) {\n return sha1(sha1(password));\n};\n\nfunction xorRotating(a, seed) {\n if (!Buffer.isBuffer(a)) {\n a = Buffer.from(a, 'binary');\n }\n\n if (!Buffer.isBuffer(seed)) {\n seed = Buffer.from(seed, 'binary');\n }\n\n const result = Buffer.allocUnsafe(a.length);\n const seedLen = seed.length;\n\n for (let i = 0; i < a.length; i++) {\n result[i] = a[i] ^ seed[i % seedLen];\n }\n return result;\n}\nexports.xorRotating = xorRotating;\n","module.exports = stringify\nstringify.default = stringify\nstringify.stable = deterministicStringify\nstringify.stableStringify = deterministicStringify\n\nvar arr = []\nvar replacerStack = []\n\n// Regular stringify\nfunction stringify (obj, replacer, spacer) {\n decirc(obj, '', [], undefined)\n var res\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(obj, replacer, spacer)\n } else {\n res = JSON.stringify(obj, replaceGetterValues(replacer), spacer)\n }\n } catch (_) {\n return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]')\n } finally {\n while (arr.length !== 0) {\n var part = arr.pop()\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3])\n } else {\n part[0][part[1]] = part[2]\n }\n }\n }\n return res\n}\nfunction decirc (val, k, stack, parent) {\n var i\n if (typeof val === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k)\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, { value: '[Circular]' })\n arr.push([parent, k, val, propertyDescriptor])\n } else {\n replacerStack.push([val, k])\n }\n } else {\n parent[k] = '[Circular]'\n arr.push([parent, k, val])\n }\n return\n }\n }\n stack.push(val)\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n decirc(val[i], i, stack, val)\n }\n } else {\n var keys = Object.keys(val)\n for (i = 0; i < keys.length; i++) {\n var key = keys[i]\n decirc(val[key], key, stack, val)\n }\n }\n stack.pop()\n }\n}\n\n// Stable-stringify\nfunction compareFunction (a, b) {\n if (a < b) {\n return -1\n }\n if (a > b) {\n return 1\n }\n return 0\n}\n\nfunction deterministicStringify (obj, replacer, spacer) {\n var tmp = deterministicDecirc(obj, '', [], undefined) || obj\n var res\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(tmp, replacer, spacer)\n } else {\n res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer)\n }\n } catch (_) {\n return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]')\n } finally {\n // Ensure that we restore the object as it was.\n while (arr.length !== 0) {\n var part = arr.pop()\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3])\n } else {\n part[0][part[1]] = part[2]\n }\n }\n }\n return res\n}\n\nfunction deterministicDecirc (val, k, stack, parent) {\n var i\n if (typeof val === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k)\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, { value: '[Circular]' })\n arr.push([parent, k, val, propertyDescriptor])\n } else {\n replacerStack.push([val, k])\n }\n } else {\n parent[k] = '[Circular]'\n arr.push([parent, k, val])\n }\n return\n }\n }\n try {\n if (typeof val.toJSON === 'function') {\n return\n }\n } catch (_) {\n return\n }\n stack.push(val)\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n deterministicDecirc(val[i], i, stack, val)\n }\n } else {\n // Create a temporary object in the required way\n var tmp = {}\n var keys = Object.keys(val).sort(compareFunction)\n for (i = 0; i < keys.length; i++) {\n var key = keys[i]\n deterministicDecirc(val[key], key, stack, val)\n tmp[key] = val[key]\n }\n if (parent !== undefined) {\n arr.push([parent, k, val])\n parent[k] = tmp\n } else {\n return tmp\n }\n }\n stack.pop()\n }\n}\n\n// wraps replacer function to handle values we couldn't replace\n// and mark them as [Circular]\nfunction replaceGetterValues (replacer) {\n replacer = replacer !== undefined ? replacer : function (k, v) { return v }\n return function (key, val) {\n if (replacerStack.length > 0) {\n for (var i = 0; i < replacerStack.length; i++) {\n var part = replacerStack[i]\n if (part[1] === key && part[0] === val) {\n val = '[Circular]'\n replacerStack.splice(i, 1)\n break\n }\n }\n }\n return replacer.call(this, key, val)\n }\n}\n","'use strict';\n\nconst util = require('util');\nconst Writable = require('readable-stream/writable');\nconst { LEVEL } = require('triple-beam');\n\n/**\n * Constructor function for the TransportStream. This is the base prototype\n * that all `winston >= 3` transports should inherit from.\n * @param {Object} options - Options for this TransportStream instance\n * @param {String} options.level - Highest level according to RFC5424.\n * @param {Boolean} options.handleExceptions - If true, info with\n * { exception: true } will be written.\n * @param {Function} options.log - Custom log function for simple Transport\n * creation\n * @param {Function} options.close - Called on \"unpipe\" from parent.\n */\nconst TransportStream = module.exports = function TransportStream(options = {}) {\n Writable.call(this, { objectMode: true, highWaterMark: options.highWaterMark });\n\n this.format = options.format;\n this.level = options.level;\n this.handleExceptions = options.handleExceptions;\n this.handleRejections = options.handleRejections;\n this.silent = options.silent;\n\n if (options.log) this.log = options.log;\n if (options.logv) this.logv = options.logv;\n if (options.close) this.close = options.close;\n\n // Get the levels from the source we are piped from.\n this.once('pipe', logger => {\n // Remark (indexzero): this bookkeeping can only support multiple\n // Logger parents with the same `levels`. This comes into play in\n // the `winston.Container` code in which `container.add` takes\n // a fully realized set of options with pre-constructed TransportStreams.\n this.levels = logger.levels;\n this.parent = logger;\n });\n\n // If and/or when the transport is removed from this instance\n this.once('unpipe', src => {\n // Remark (indexzero): this bookkeeping can only support multiple\n // Logger parents with the same `levels`. This comes into play in\n // the `winston.Container` code in which `container.add` takes\n // a fully realized set of options with pre-constructed TransportStreams.\n if (src === this.parent) {\n this.parent = null;\n if (this.close) {\n this.close();\n }\n }\n });\n};\n\n/*\n * Inherit from Writeable using Node.js built-ins\n */\nutil.inherits(TransportStream, Writable);\n\n/**\n * Writes the info object to our transport instance.\n * @param {mixed} info - TODO: add param description.\n * @param {mixed} enc - TODO: add param description.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n * @private\n */\nTransportStream.prototype._write = function _write(info, enc, callback) {\n if (this.silent || (info.exception === true && !this.handleExceptions)) {\n return callback(null);\n }\n\n // Remark: This has to be handled in the base transport now because we\n // cannot conditionally write to our pipe targets as stream. We always\n // prefer any explicit level set on the Transport itself falling back to\n // any level set on the parent.\n const level = this.level || (this.parent && this.parent.level);\n\n if (!level || this.levels[level] >= this.levels[info[LEVEL]]) {\n if (info && !this.format) {\n return this.log(info, callback);\n }\n\n let errState;\n let transformed;\n\n // We trap(and re-throw) any errors generated by the user-provided format, but also\n // guarantee that the streams callback is invoked so that we can continue flowing.\n try {\n transformed = this.format.transform(Object.assign({}, info), this.format.options);\n } catch (err) {\n errState = err;\n }\n\n if (errState || !transformed) {\n // eslint-disable-next-line callback-return\n callback();\n if (errState) throw errState;\n return;\n }\n\n return this.log(transformed, callback);\n }\n\n return callback(null);\n};\n\n/**\n * Writes the batch of info objects (i.e. \"object chunks\") to our transport\n * instance after performing any necessary filtering.\n * @param {mixed} chunks - TODO: add params description.\n * @param {function} callback - TODO: add params description.\n * @returns {mixed} - TODO: add returns description.\n * @private\n */\nTransportStream.prototype._writev = function _writev(chunks, callback) {\n if (this.logv) {\n const infos = chunks.filter(this._accept, this);\n if (!infos.length) {\n return callback(null);\n }\n\n // Remark (indexzero): from a performance perspective if Transport\n // implementers do choose to implement logv should we make it their\n // responsibility to invoke their format?\n return this.logv(infos, callback);\n }\n\n for (let i = 0; i < chunks.length; i++) {\n if (!this._accept(chunks[i])) continue;\n\n if (chunks[i].chunk && !this.format) {\n this.log(chunks[i].chunk, chunks[i].callback);\n continue;\n }\n\n let errState;\n let transformed;\n\n // We trap(and re-throw) any errors generated by the user-provided format, but also\n // guarantee that the streams callback is invoked so that we can continue flowing.\n try {\n transformed = this.format.transform(\n Object.assign({}, chunks[i].chunk),\n this.format.options\n );\n } catch (err) {\n errState = err;\n }\n\n if (errState || !transformed) {\n // eslint-disable-next-line callback-return\n chunks[i].callback();\n if (errState) {\n // eslint-disable-next-line callback-return\n callback(null);\n throw errState;\n }\n } else {\n this.log(transformed, chunks[i].callback);\n }\n }\n\n return callback(null);\n};\n\n/**\n * Predicate function that returns true if the specfied `info` on the\n * WriteReq, `write`, should be passed down into the derived\n * TransportStream's I/O via `.log(info, callback)`.\n * @param {WriteReq} write - winston@3 Node.js WriteReq for the `info` object\n * representing the log message.\n * @returns {Boolean} - Value indicating if the `write` should be accepted &\n * logged.\n */\nTransportStream.prototype._accept = function _accept(write) {\n const info = write.chunk;\n if (this.silent) {\n return false;\n }\n\n // We always prefer any explicit level set on the Transport itself\n // falling back to any level set on the parent.\n const level = this.level || (this.parent && this.parent.level);\n\n // Immediately check the average case: log level filtering.\n if (\n info.exception === true ||\n !level ||\n this.levels[level] >= this.levels[info[LEVEL]]\n ) {\n // Ensure the info object is valid based on `{ exception }`:\n // 1. { handleExceptions: true }: all `info` objects are valid\n // 2. { exception: false }: accepted by all transports.\n if (this.handleExceptions || info.exception !== true) {\n return true;\n }\n }\n\n return false;\n};\n\n/**\n * _nop is short for \"No operation\"\n * @returns {Boolean} Intentionally false.\n */\nTransportStream.prototype._nop = function _nop() {\n // eslint-disable-next-line no-undefined\n return void undefined;\n};\n\n\n// Expose legacy stream\nmodule.exports.LegacyTransportStream = require('./legacy');\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isAsyncIterable = exports.isAsyncGenerator = exports.isAsync = undefined;\n\nvar _asyncify = require('../asyncify');\n\nvar _asyncify2 = _interopRequireDefault(_asyncify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isAsync(fn) {\n return fn[Symbol.toStringTag] === 'AsyncFunction';\n}\n\nfunction isAsyncGenerator(fn) {\n return fn[Symbol.toStringTag] === 'AsyncGenerator';\n}\n\nfunction isAsyncIterable(obj) {\n return typeof obj[Symbol.asyncIterator] === 'function';\n}\n\nfunction wrapAsync(asyncFn) {\n if (typeof asyncFn !== 'function') throw new Error('expected a function');\n return isAsync(asyncFn) ? (0, _asyncify2.default)(asyncFn) : asyncFn;\n}\n\nexports.default = wrapAsync;\nexports.isAsync = isAsync;\nexports.isAsyncGenerator = isAsyncGenerator;\nexports.isAsyncIterable = isAsyncIterable;","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n'use strict';\n/**/\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n\n for (var key in obj) {\n keys.push(key);\n }\n\n return keys;\n};\n/**/\n\n\nmodule.exports = Duplex;\n\nvar Readable = require('./_stream_readable');\n\nvar Writable = require('./_stream_writable');\n\nrequire('inherits')(Duplex, Readable);\n\n{\n // Allow the keys array to be GC'ed.\n var keys = objectKeys(Writable.prototype);\n\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n this.allowHalfOpen = true;\n\n if (options) {\n if (options.readable === false) this.readable = false;\n if (options.writable === false) this.writable = false;\n\n if (options.allowHalfOpen === false) {\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n }\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n}); // the no-half-open enforcer\n\nfunction onend() {\n // If the writable side ended, then we're ok.\n if (this._writableState.ended) return; // no more data can be written.\n // But allow more writes to happen in this tick.\n\n process.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});","import { __extends, __values } from \"tslib\";\nimport { logger, timestampWithMs } from '@sentry/utils';\nimport { SpanRecorder } from './span';\nimport { SpanStatus } from './spanstatus';\nimport { Transaction } from './transaction';\nexport var DEFAULT_IDLE_TIMEOUT = 1000;\nexport var HEARTBEAT_INTERVAL = 5000;\n/**\n * @inheritDoc\n */\nvar IdleTransactionSpanRecorder = /** @class */ (function (_super) {\n __extends(IdleTransactionSpanRecorder, _super);\n function IdleTransactionSpanRecorder(_pushActivity, _popActivity, transactionSpanId, maxlen) {\n if (transactionSpanId === void 0) { transactionSpanId = ''; }\n var _this = _super.call(this, maxlen) || this;\n _this._pushActivity = _pushActivity;\n _this._popActivity = _popActivity;\n _this.transactionSpanId = transactionSpanId;\n return _this;\n }\n /**\n * @inheritDoc\n */\n IdleTransactionSpanRecorder.prototype.add = function (span) {\n var _this = this;\n // We should make sure we do not push and pop activities for\n // the transaction that this span recorder belongs to.\n if (span.spanId !== this.transactionSpanId) {\n // We patch span.finish() to pop an activity after setting an endTimestamp.\n span.finish = function (endTimestamp) {\n span.endTimestamp = typeof endTimestamp === 'number' ? endTimestamp : timestampWithMs();\n _this._popActivity(span.spanId);\n };\n // We should only push new activities if the span does not have an end timestamp.\n if (span.endTimestamp === undefined) {\n this._pushActivity(span.spanId);\n }\n }\n _super.prototype.add.call(this, span);\n };\n return IdleTransactionSpanRecorder;\n}(SpanRecorder));\nexport { IdleTransactionSpanRecorder };\n/**\n * An IdleTransaction is a transaction that automatically finishes. It does this by tracking child spans as activities.\n * You can have multiple IdleTransactions active, but if the `onScope` option is specified, the idle transaction will\n * put itself on the scope on creation.\n */\nvar IdleTransaction = /** @class */ (function (_super) {\n __extends(IdleTransaction, _super);\n function IdleTransaction(transactionContext, _idleHub, \n /**\n * The time to wait in ms until the idle transaction will be finished.\n * @default 1000\n */\n _idleTimeout, \n // If an idle transaction should be put itself on and off the scope automatically.\n _onScope) {\n if (_idleTimeout === void 0) { _idleTimeout = DEFAULT_IDLE_TIMEOUT; }\n if (_onScope === void 0) { _onScope = false; }\n var _this = _super.call(this, transactionContext, _idleHub) || this;\n _this._idleHub = _idleHub;\n _this._idleTimeout = _idleTimeout;\n _this._onScope = _onScope;\n // Activities store a list of active spans\n _this.activities = {};\n // Amount of times heartbeat has counted. Will cause transaction to finish after 3 beats.\n _this._heartbeatCounter = 0;\n // We should not use heartbeat if we finished a transaction\n _this._finished = false;\n _this._beforeFinishCallbacks = [];\n if (_idleHub && _onScope) {\n // There should only be one active transaction on the scope\n clearActiveTransaction(_idleHub);\n // We set the transaction here on the scope so error events pick up the trace\n // context and attach it to the error.\n logger.log(\"Setting idle transaction on scope. Span ID: \" + _this.spanId);\n _idleHub.configureScope(function (scope) { return scope.setSpan(_this); });\n }\n _this._initTimeout = setTimeout(function () {\n if (!_this._finished) {\n _this.finish();\n }\n }, _this._idleTimeout);\n return _this;\n }\n /** {@inheritDoc} */\n IdleTransaction.prototype.finish = function (endTimestamp) {\n var e_1, _a;\n var _this = this;\n if (endTimestamp === void 0) { endTimestamp = timestampWithMs(); }\n this._finished = true;\n this.activities = {};\n if (this.spanRecorder) {\n logger.log('[Tracing] finishing IdleTransaction', new Date(endTimestamp * 1000).toISOString(), this.op);\n try {\n for (var _b = __values(this._beforeFinishCallbacks), _c = _b.next(); !_c.done; _c = _b.next()) {\n var callback = _c.value;\n callback(this, endTimestamp);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n this.spanRecorder.spans = this.spanRecorder.spans.filter(function (span) {\n // If we are dealing with the transaction itself, we just return it\n if (span.spanId === _this.spanId) {\n return true;\n }\n // We cancel all pending spans with status \"cancelled\" to indicate the idle transaction was finished early\n if (!span.endTimestamp) {\n span.endTimestamp = endTimestamp;\n span.setStatus(SpanStatus.Cancelled);\n logger.log('[Tracing] cancelling span since transaction ended early', JSON.stringify(span, undefined, 2));\n }\n var keepSpan = span.startTimestamp < endTimestamp;\n if (!keepSpan) {\n logger.log('[Tracing] discarding Span since it happened after Transaction was finished', JSON.stringify(span, undefined, 2));\n }\n return keepSpan;\n });\n logger.log('[Tracing] flushing IdleTransaction');\n }\n else {\n logger.log('[Tracing] No active IdleTransaction');\n }\n // this._onScope is true if the transaction was previously on the scope.\n if (this._onScope) {\n clearActiveTransaction(this._idleHub);\n }\n return _super.prototype.finish.call(this, endTimestamp);\n };\n /**\n * Register a callback function that gets excecuted before the transaction finishes.\n * Useful for cleanup or if you want to add any additional spans based on current context.\n *\n * This is exposed because users have no other way of running something before an idle transaction\n * finishes.\n */\n IdleTransaction.prototype.registerBeforeFinishCallback = function (callback) {\n this._beforeFinishCallbacks.push(callback);\n };\n /**\n * @inheritDoc\n */\n IdleTransaction.prototype.initSpanRecorder = function (maxlen) {\n var _this = this;\n if (!this.spanRecorder) {\n var pushActivity = function (id) {\n if (_this._finished) {\n return;\n }\n _this._pushActivity(id);\n };\n var popActivity = function (id) {\n if (_this._finished) {\n return;\n }\n _this._popActivity(id);\n };\n this.spanRecorder = new IdleTransactionSpanRecorder(pushActivity, popActivity, this.spanId, maxlen);\n // Start heartbeat so that transactions do not run forever.\n logger.log('Starting heartbeat');\n this._pingHeartbeat();\n }\n this.spanRecorder.add(this);\n };\n /**\n * Start tracking a specific activity.\n * @param spanId The span id that represents the activity\n */\n IdleTransaction.prototype._pushActivity = function (spanId) {\n if (this._initTimeout) {\n clearTimeout(this._initTimeout);\n this._initTimeout = undefined;\n }\n logger.log(\"[Tracing] pushActivity: \" + spanId);\n this.activities[spanId] = true;\n logger.log('[Tracing] new activities count', Object.keys(this.activities).length);\n };\n /**\n * Remove an activity from usage\n * @param spanId The span id that represents the activity\n */\n IdleTransaction.prototype._popActivity = function (spanId) {\n var _this = this;\n if (this.activities[spanId]) {\n logger.log(\"[Tracing] popActivity \" + spanId);\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this.activities[spanId];\n logger.log('[Tracing] new activities count', Object.keys(this.activities).length);\n }\n if (Object.keys(this.activities).length === 0) {\n var timeout = this._idleTimeout;\n // We need to add the timeout here to have the real endtimestamp of the transaction\n // Remember timestampWithMs is in seconds, timeout is in ms\n var end_1 = timestampWithMs() + timeout / 1000;\n setTimeout(function () {\n if (!_this._finished) {\n _this.finish(end_1);\n }\n }, timeout);\n }\n };\n /**\n * Checks when entries of this.activities are not changing for 3 beats.\n * If this occurs we finish the transaction.\n */\n IdleTransaction.prototype._beat = function () {\n // We should not be running heartbeat if the idle transaction is finished.\n if (this._finished) {\n return;\n }\n var heartbeatString = Object.keys(this.activities).join('');\n if (heartbeatString === this._prevHeartbeatString) {\n this._heartbeatCounter += 1;\n }\n else {\n this._heartbeatCounter = 1;\n }\n this._prevHeartbeatString = heartbeatString;\n if (this._heartbeatCounter >= 3) {\n logger.log(\"[Tracing] Transaction finished because of no change for 3 heart beats\");\n this.setStatus(SpanStatus.DeadlineExceeded);\n this.setTag('heartbeat', 'failed');\n this.finish();\n }\n else {\n this._pingHeartbeat();\n }\n };\n /**\n * Pings the heartbeat\n */\n IdleTransaction.prototype._pingHeartbeat = function () {\n var _this = this;\n logger.log(\"pinging Heartbeat -> current counter: \" + this._heartbeatCounter);\n setTimeout(function () {\n _this._beat();\n }, HEARTBEAT_INTERVAL);\n };\n return IdleTransaction;\n}(Transaction));\nexport { IdleTransaction };\n/**\n * Reset active transaction on scope\n */\nfunction clearActiveTransaction(hub) {\n if (hub) {\n var scope = hub.getScope();\n if (scope) {\n var transaction = scope.getTransaction();\n if (transaction) {\n scope.setSpan(undefined);\n }\n }\n }\n}\n//# sourceMappingURL=idletransaction.js.map","import { __assign, __extends } from \"tslib\";\nimport { getCurrentHub, Hub } from '@sentry/hub';\nimport { Outcome, } from '@sentry/types';\nimport { dropUndefinedKeys, isInstanceOf, logger } from '@sentry/utils';\nimport { Span as SpanClass, SpanRecorder } from './span';\n/** JSDoc */\nvar Transaction = /** @class */ (function (_super) {\n __extends(Transaction, _super);\n /**\n * This constructor should never be called manually. Those instrumenting tracing should use\n * `Sentry.startTransaction()`, and internal methods should use `hub.startTransaction()`.\n * @internal\n * @hideconstructor\n * @hidden\n */\n function Transaction(transactionContext, hub) {\n var _this = _super.call(this, transactionContext) || this;\n _this._measurements = {};\n /**\n * The reference to the current hub.\n */\n _this._hub = getCurrentHub();\n if (isInstanceOf(hub, Hub)) {\n _this._hub = hub;\n }\n _this.name = transactionContext.name || '';\n _this.metadata = transactionContext.metadata || {};\n _this._trimEnd = transactionContext.trimEnd;\n // this is because transactions are also spans, and spans have a transaction pointer\n _this.transaction = _this;\n return _this;\n }\n /**\n * JSDoc\n */\n Transaction.prototype.setName = function (name) {\n this.name = name;\n };\n /**\n * Attaches SpanRecorder to the span itself\n * @param maxlen maximum number of spans that can be recorded\n */\n Transaction.prototype.initSpanRecorder = function (maxlen) {\n if (maxlen === void 0) { maxlen = 1000; }\n if (!this.spanRecorder) {\n this.spanRecorder = new SpanRecorder(maxlen);\n }\n this.spanRecorder.add(this);\n };\n /**\n * Set observed measurements for this transaction.\n * @hidden\n */\n Transaction.prototype.setMeasurements = function (measurements) {\n this._measurements = __assign({}, measurements);\n };\n /**\n * Set metadata for this transaction.\n * @hidden\n */\n Transaction.prototype.setMetadata = function (newMetadata) {\n this.metadata = __assign(__assign({}, this.metadata), newMetadata);\n };\n /**\n * @inheritDoc\n */\n Transaction.prototype.finish = function (endTimestamp) {\n var _this = this;\n var _a, _b, _c, _d, _e;\n // This transaction is already finished, so we should not flush it again.\n if (this.endTimestamp !== undefined) {\n return undefined;\n }\n if (!this.name) {\n logger.warn('Transaction has no name, falling back to ``.');\n this.name = '';\n }\n // just sets the end timestamp\n _super.prototype.finish.call(this, endTimestamp);\n if (this.sampled !== true) {\n // At this point if `sampled !== true` we want to discard the transaction.\n logger.log('[Tracing] Discarding transaction because its trace was not chosen to be sampled.');\n (_e = (_c = (_a = this._hub\n .getClient()) === null || _a === void 0 ? void 0 : (_b = _a).getTransport) === null || _c === void 0 ? void 0 : (_d = _c.call(_b)).recordLostEvent) === null || _e === void 0 ? void 0 : _e.call(_d, Outcome.SampleRate, 'transaction');\n return undefined;\n }\n var finishedSpans = this.spanRecorder ? this.spanRecorder.spans.filter(function (s) { return s !== _this && s.endTimestamp; }) : [];\n if (this._trimEnd && finishedSpans.length > 0) {\n this.endTimestamp = finishedSpans.reduce(function (prev, current) {\n if (prev.endTimestamp && current.endTimestamp) {\n return prev.endTimestamp > current.endTimestamp ? prev : current;\n }\n return prev;\n }).endTimestamp;\n }\n var transaction = {\n contexts: {\n trace: this.getTraceContext(),\n },\n spans: finishedSpans,\n start_timestamp: this.startTimestamp,\n tags: this.tags,\n timestamp: this.endTimestamp,\n transaction: this.name,\n type: 'transaction',\n debug_meta: this.metadata,\n };\n var hasMeasurements = Object.keys(this._measurements).length > 0;\n if (hasMeasurements) {\n logger.log('[Measurements] Adding measurements to transaction', JSON.stringify(this._measurements, undefined, 2));\n transaction.measurements = this._measurements;\n }\n logger.log(\"[Tracing] Finishing \" + this.op + \" transaction: \" + this.name + \".\");\n return this._hub.captureEvent(transaction);\n };\n /**\n * @inheritDoc\n */\n Transaction.prototype.toContext = function () {\n var spanContext = _super.prototype.toContext.call(this);\n return dropUndefinedKeys(__assign(__assign({}, spanContext), { name: this.name, trimEnd: this._trimEnd }));\n };\n /**\n * @inheritDoc\n */\n Transaction.prototype.updateWithContext = function (transactionContext) {\n var _a;\n _super.prototype.updateWithContext.call(this, transactionContext);\n this.name = (_a = transactionContext.name, (_a !== null && _a !== void 0 ? _a : ''));\n this._trimEnd = transactionContext.trimEnd;\n return this;\n };\n return Transaction;\n}(SpanClass));\nexport { Transaction };\n//# sourceMappingURL=transaction.js.map","module.exports = require(\"domain\");","import { getGlobalObject } from './global';\nimport { dynamicRequire, isNodeEnv } from './node';\n/**\n * A TimestampSource implementation for environments that do not support the Performance Web API natively.\n *\n * Note that this TimestampSource does not use a monotonic clock. A call to `nowSeconds` may return a timestamp earlier\n * than a previously returned value. We do not try to emulate a monotonic behavior in order to facilitate debugging. It\n * is more obvious to explain \"why does my span have negative duration\" than \"why my spans have zero duration\".\n */\nvar dateTimestampSource = {\n nowSeconds: function () { return Date.now() / 1000; },\n};\n/**\n * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not\n * support the API.\n *\n * Wrapping the native API works around differences in behavior from different browsers.\n */\nfunction getBrowserPerformance() {\n var performance = getGlobalObject().performance;\n if (!performance || !performance.now) {\n return undefined;\n }\n // Replace performance.timeOrigin with our own timeOrigin based on Date.now().\n //\n // This is a partial workaround for browsers reporting performance.timeOrigin such that performance.timeOrigin +\n // performance.now() gives a date arbitrarily in the past.\n //\n // Additionally, computing timeOrigin in this way fills the gap for browsers where performance.timeOrigin is\n // undefined.\n //\n // The assumption that performance.timeOrigin + performance.now() ~= Date.now() is flawed, but we depend on it to\n // interact with data coming out of performance entries.\n //\n // Note that despite recommendations against it in the spec, browsers implement the Performance API with a clock that\n // might stop when the computer is asleep (and perhaps under other circumstances). Such behavior causes\n // performance.timeOrigin + performance.now() to have an arbitrary skew over Date.now(). In laptop computers, we have\n // observed skews that can be as long as days, weeks or months.\n //\n // See https://github.com/getsentry/sentry-javascript/issues/2590.\n //\n // BUG: despite our best intentions, this workaround has its limitations. It mostly addresses timings of pageload\n // transactions, but ignores the skew built up over time that can aversely affect timestamps of navigation\n // transactions of long-lived web pages.\n var timeOrigin = Date.now() - performance.now();\n return {\n now: function () { return performance.now(); },\n timeOrigin: timeOrigin,\n };\n}\n/**\n * Returns the native Performance API implementation from Node.js. Returns undefined in old Node.js versions that don't\n * implement the API.\n */\nfunction getNodePerformance() {\n try {\n var perfHooks = dynamicRequire(module, 'perf_hooks');\n return perfHooks.performance;\n }\n catch (_) {\n return undefined;\n }\n}\n/**\n * The Performance API implementation for the current platform, if available.\n */\nvar platformPerformance = isNodeEnv() ? getNodePerformance() : getBrowserPerformance();\nvar timestampSource = platformPerformance === undefined\n ? dateTimestampSource\n : {\n nowSeconds: function () { return (platformPerformance.timeOrigin + platformPerformance.now()) / 1000; },\n };\n/**\n * Returns a timestamp in seconds since the UNIX epoch using the Date API.\n */\nexport var dateTimestampInSeconds = dateTimestampSource.nowSeconds.bind(dateTimestampSource);\n/**\n * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the\n * availability of the Performance API.\n *\n * See `usingPerformanceAPI` to test whether the Performance API is used.\n *\n * BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is\n * asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The\n * skew can grow to arbitrary amounts like days, weeks or months.\n * See https://github.com/getsentry/sentry-javascript/issues/2590.\n */\nexport var timestampInSeconds = timestampSource.nowSeconds.bind(timestampSource);\n// Re-exported with an old name for backwards-compatibility.\nexport var timestampWithMs = timestampInSeconds;\n/**\n * A boolean that is true when timestampInSeconds uses the Performance API to produce monotonic timestamps.\n */\nexport var usingPerformanceAPI = platformPerformance !== undefined;\n/**\n * Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only.\n */\nexport var _browserPerformanceTimeOriginMode;\n/**\n * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the\n * performance API is available.\n */\nexport var browserPerformanceTimeOrigin = (function () {\n // Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or\n // performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin\n // data as reliable if they are within a reasonable threshold of the current time.\n var performance = getGlobalObject().performance;\n if (!performance || !performance.now) {\n _browserPerformanceTimeOriginMode = 'none';\n return undefined;\n }\n var threshold = 3600 * 1000;\n var performanceNow = performance.now();\n var dateNow = Date.now();\n // if timeOrigin isn't available set delta to threshold so it isn't used\n var timeOriginDelta = performance.timeOrigin\n ? Math.abs(performance.timeOrigin + performanceNow - dateNow)\n : threshold;\n var timeOriginIsReliable = timeOriginDelta < threshold;\n // While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin\n // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing.\n // Also as of writing, performance.timing is not available in Web Workers in mainstream browsers, so it is not always\n // a valid fallback. In the absence of an initial time provided by the browser, fallback to the current time from the\n // Date API.\n // eslint-disable-next-line deprecation/deprecation\n var navigationStart = performance.timing && performance.timing.navigationStart;\n var hasNavigationStart = typeof navigationStart === 'number';\n // if navigationStart isn't available set delta to threshold so it isn't used\n var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold;\n var navigationStartIsReliable = navigationStartDelta < threshold;\n if (timeOriginIsReliable || navigationStartIsReliable) {\n // Use the more reliable time origin\n if (timeOriginDelta <= navigationStartDelta) {\n _browserPerformanceTimeOriginMode = 'timeOrigin';\n return performance.timeOrigin;\n }\n else {\n _browserPerformanceTimeOriginMode = 'navigationStart';\n return navigationStart;\n }\n }\n // Either both timeOrigin and navigationStart are skewed or neither is available, fallback to Date.\n _browserPerformanceTimeOriginMode = 'dateNow';\n return dateNow;\n})();\n//# sourceMappingURL=time.js.map","'use strict';\n\n// Manually extracted from mysql-5.5.23/include/mysql_com.h\n// some more info here: http://dev.mysql.com/doc/refman/5.5/en/c-api-prepared-statement-type-codes.html\nexports.DECIMAL = 0x00; // aka DECIMAL (http://dev.mysql.com/doc/refman/5.0/en/precision-math-decimal-changes.html)\nexports.TINY = 0x01; // aka TINYINT, 1 byte\nexports.SHORT = 0x02; // aka SMALLINT, 2 bytes\nexports.LONG = 0x03; // aka INT, 4 bytes\nexports.FLOAT = 0x04; // aka FLOAT, 4-8 bytes\nexports.DOUBLE = 0x05; // aka DOUBLE, 8 bytes\nexports.NULL = 0x06; // NULL (used for prepared statements, I think)\nexports.TIMESTAMP = 0x07; // aka TIMESTAMP\nexports.LONGLONG = 0x08; // aka BIGINT, 8 bytes\nexports.INT24 = 0x09; // aka MEDIUMINT, 3 bytes\nexports.DATE = 0x0a; // aka DATE\nexports.TIME = 0x0b; // aka TIME\nexports.DATETIME = 0x0c; // aka DATETIME\nexports.YEAR = 0x0d; // aka YEAR, 1 byte (don't ask)\nexports.NEWDATE = 0x0e; // aka ?\nexports.VARCHAR = 0x0f; // aka VARCHAR (?)\nexports.BIT = 0x10; // aka BIT, 1-8 byte\nexports.JSON = 0xf5;\nexports.NEWDECIMAL = 0xf6; // aka DECIMAL\nexports.ENUM = 0xf7; // aka ENUM\nexports.SET = 0xf8; // aka SET\nexports.TINY_BLOB = 0xf9; // aka TINYBLOB, TINYTEXT\nexports.MEDIUM_BLOB = 0xfa; // aka MEDIUMBLOB, MEDIUMTEXT\nexports.LONG_BLOB = 0xfb; // aka LONGBLOG, LONGTEXT\nexports.BLOB = 0xfc; // aka BLOB, TEXT\nexports.VAR_STRING = 0xfd; // aka VARCHAR, VARBINARY\nexports.STRING = 0xfe; // aka CHAR, BINARY\nexports.GEOMETRY = 0xff; // aka GEOMETRY\n","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar colors = require('colors/safe');\n\nvar _require = require('triple-beam'),\n LEVEL = _require.LEVEL,\n MESSAGE = _require.MESSAGE; //\n// Fix colors not appearing in non-tty environments\n//\n\n\ncolors.enabled = true;\n/**\n * @property {RegExp} hasSpace\n * Simple regex to check for presence of spaces.\n */\n\nvar hasSpace = /\\s+/;\n/*\n * Colorizer format. Wraps the `level` and/or `message` properties\n * of the `info` objects with ANSI color codes based on a few options.\n */\n\nvar Colorizer = /*#__PURE__*/function () {\n function Colorizer() {\n var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Colorizer);\n\n if (opts.colors) {\n this.addColors(opts.colors);\n }\n\n this.options = opts;\n }\n /*\n * Adds the colors Object to the set of allColors\n * known by the Colorizer\n *\n * @param {Object} colors Set of color mappings to add.\n */\n\n\n _createClass(Colorizer, [{\n key: \"addColors\",\n\n /*\n * Adds the colors Object to the set of allColors\n * known by the Colorizer\n *\n * @param {Object} colors Set of color mappings to add.\n */\n value: function addColors(clrs) {\n return Colorizer.addColors(clrs);\n }\n /*\n * function colorize (lookup, level, message)\n * Performs multi-step colorization using colors/safe\n */\n\n }, {\n key: \"colorize\",\n value: function colorize(lookup, level, message) {\n if (typeof message === 'undefined') {\n message = level;\n } //\n // If the color for the level is just a string\n // then attempt to colorize the message with it.\n //\n\n\n if (!Array.isArray(Colorizer.allColors[lookup])) {\n return colors[Colorizer.allColors[lookup]](message);\n } //\n // If it is an Array then iterate over that Array, applying\n // the colors function for each item.\n //\n\n\n for (var i = 0, len = Colorizer.allColors[lookup].length; i < len; i++) {\n message = colors[Colorizer.allColors[lookup][i]](message);\n }\n\n return message;\n }\n /*\n * function transform (info, opts)\n * Attempts to colorize the { level, message } of the given\n * `logform` info object.\n */\n\n }, {\n key: \"transform\",\n value: function transform(info, opts) {\n if (opts.all && typeof info[MESSAGE] === 'string') {\n info[MESSAGE] = this.colorize(info[LEVEL], info.level, info[MESSAGE]);\n }\n\n if (opts.level || opts.all || !opts.message) {\n info.level = this.colorize(info[LEVEL], info.level);\n }\n\n if (opts.all || opts.message) {\n info.message = this.colorize(info[LEVEL], info.level, info.message);\n }\n\n return info;\n }\n }], [{\n key: \"addColors\",\n value: function addColors(clrs) {\n var nextColors = Object.keys(clrs).reduce(function (acc, level) {\n acc[level] = hasSpace.test(clrs[level]) ? clrs[level].split(hasSpace) : clrs[level];\n return acc;\n }, {});\n Colorizer.allColors = Object.assign({}, Colorizer.allColors || {}, nextColors);\n return Colorizer.allColors;\n }\n }]);\n\n return Colorizer;\n}();\n/*\n * function colorize (info)\n * Returns a new instance of the colorize Format that applies\n * level colors to `info` objects. This was previously exposed\n * as { colorize: true } to transports in `winston < 3.0.0`.\n */\n\n\nmodule.exports = function (opts) {\n return new Colorizer(opts);\n}; //\n// Attach the Colorizer for registration purposes\n//\n\n\nmodule.exports.Colorizer = module.exports.Format = Colorizer;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = awaitify;\n// conditionally promisify a function.\n// only return a promise if a callback is omitted\nfunction awaitify(asyncFn, arity = asyncFn.length) {\n if (!arity) throw new Error('arity is undefined');\n function awaitable(...args) {\n if (typeof args[arity - 1] === 'function') {\n return asyncFn.apply(this, args);\n }\n\n return new Promise((resolve, reject) => {\n args[arity - 1] = (err, ...cbArgs) => {\n if (err) return reject(err);\n resolve(cbArgs.length > 1 ? cbArgs : cbArgs[0]);\n };\n asyncFn.apply(this, args);\n });\n }\n\n return awaitable;\n}\nmodule.exports = exports['default'];","var Stream = require('stream');\nif (process.env.READABLE_STREAM === 'disable' && Stream) {\n module.exports = Stream.Readable;\n Object.assign(module.exports, Stream);\n module.exports.Stream = Stream;\n} else {\n exports = module.exports = require('./lib/_stream_readable.js');\n exports.Stream = Stream || exports;\n exports.Readable = exports;\n exports.Writable = require('./lib/_stream_writable.js');\n exports.Duplex = require('./lib/_stream_duplex.js');\n exports.Transform = require('./lib/_stream_transform.js');\n exports.PassThrough = require('./lib/_stream_passthrough.js');\n exports.finished = require('./lib/internal/streams/end-of-stream.js');\n exports.pipeline = require('./lib/internal/streams/pipeline.js');\n}\n","import { mainLogger } from '../sv_logger';\nimport PlayerService from './player.service';\n\nexport const playerLogger = mainLogger.child({\n module: 'player',\n});\n\nconst clean = (input: string) => (input ? input.replace(/[^0-9a-z]/gi, '') : input);\n\nexport async function getDefaultProfileNames(source: number): Promise {\n const defaultProfileNames: string[] = [];\n const player = PlayerService.getPlayer(source);\n\n if (player.getFirstName() && player.getLastName()) {\n defaultProfileNames.push(`${player.getFirstName()}_${player.getLastName()}`);\n } else if (player.getFirstName()) {\n defaultProfileNames.push(player.getFirstName());\n } else if (player.getLastName()) {\n defaultProfileNames.push(player.getLastName());\n }\n\n if (player.getPhoneNumber()) {\n defaultProfileNames.push(player.getPhoneNumber());\n }\n return defaultProfileNames;\n}\n","/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable @typescript-eslint/typedef */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { isThenable } from './is';\n/** SyncPromise internal states */\nvar States;\n(function (States) {\n /** Pending */\n States[\"PENDING\"] = \"PENDING\";\n /** Resolved / OK */\n States[\"RESOLVED\"] = \"RESOLVED\";\n /** Rejected / Error */\n States[\"REJECTED\"] = \"REJECTED\";\n})(States || (States = {}));\n/**\n * Thenable class that behaves like a Promise and follows it's interface\n * but is not async internally\n */\nvar SyncPromise = /** @class */ (function () {\n function SyncPromise(executor) {\n var _this = this;\n this._state = States.PENDING;\n this._handlers = [];\n /** JSDoc */\n this._resolve = function (value) {\n _this._setResult(States.RESOLVED, value);\n };\n /** JSDoc */\n this._reject = function (reason) {\n _this._setResult(States.REJECTED, reason);\n };\n /** JSDoc */\n this._setResult = function (state, value) {\n if (_this._state !== States.PENDING) {\n return;\n }\n if (isThenable(value)) {\n void value.then(_this._resolve, _this._reject);\n return;\n }\n _this._state = state;\n _this._value = value;\n _this._executeHandlers();\n };\n // TODO: FIXME\n /** JSDoc */\n this._attachHandler = function (handler) {\n _this._handlers = _this._handlers.concat(handler);\n _this._executeHandlers();\n };\n /** JSDoc */\n this._executeHandlers = function () {\n if (_this._state === States.PENDING) {\n return;\n }\n var cachedHandlers = _this._handlers.slice();\n _this._handlers = [];\n cachedHandlers.forEach(function (handler) {\n if (handler.done) {\n return;\n }\n if (_this._state === States.RESOLVED) {\n if (handler.onfulfilled) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n handler.onfulfilled(_this._value);\n }\n }\n if (_this._state === States.REJECTED) {\n if (handler.onrejected) {\n handler.onrejected(_this._value);\n }\n }\n handler.done = true;\n });\n };\n try {\n executor(this._resolve, this._reject);\n }\n catch (e) {\n this._reject(e);\n }\n }\n /** JSDoc */\n SyncPromise.resolve = function (value) {\n return new SyncPromise(function (resolve) {\n resolve(value);\n });\n };\n /** JSDoc */\n SyncPromise.reject = function (reason) {\n return new SyncPromise(function (_, reject) {\n reject(reason);\n });\n };\n /** JSDoc */\n SyncPromise.all = function (collection) {\n return new SyncPromise(function (resolve, reject) {\n if (!Array.isArray(collection)) {\n reject(new TypeError(\"Promise.all requires an array as input.\"));\n return;\n }\n if (collection.length === 0) {\n resolve([]);\n return;\n }\n var counter = collection.length;\n var resolvedCollection = [];\n collection.forEach(function (item, index) {\n void SyncPromise.resolve(item)\n .then(function (value) {\n resolvedCollection[index] = value;\n counter -= 1;\n if (counter !== 0) {\n return;\n }\n resolve(resolvedCollection);\n })\n .then(null, reject);\n });\n });\n };\n /** JSDoc */\n SyncPromise.prototype.then = function (onfulfilled, onrejected) {\n var _this = this;\n return new SyncPromise(function (resolve, reject) {\n _this._attachHandler({\n done: false,\n onfulfilled: function (result) {\n if (!onfulfilled) {\n // TODO: ¯\\_(ツ)_/¯\n // TODO: FIXME\n resolve(result);\n return;\n }\n try {\n resolve(onfulfilled(result));\n return;\n }\n catch (e) {\n reject(e);\n return;\n }\n },\n onrejected: function (reason) {\n if (!onrejected) {\n reject(reason);\n return;\n }\n try {\n resolve(onrejected(reason));\n return;\n }\n catch (e) {\n reject(e);\n return;\n }\n },\n });\n });\n };\n /** JSDoc */\n SyncPromise.prototype.catch = function (onrejected) {\n return this.then(function (val) { return val; }, onrejected);\n };\n /** JSDoc */\n SyncPromise.prototype.finally = function (onfinally) {\n var _this = this;\n return new SyncPromise(function (resolve, reject) {\n var val;\n var isRejected;\n return _this.then(function (value) {\n isRejected = false;\n val = value;\n if (onfinally) {\n onfinally();\n }\n }, function (reason) {\n isRejected = true;\n val = reason;\n if (onfinally) {\n onfinally();\n }\n }).then(function () {\n if (isRejected) {\n reject(val);\n return;\n }\n resolve(val);\n });\n });\n };\n /** JSDoc */\n SyncPromise.prototype.toString = function () {\n return '[object SyncPromise]';\n };\n return SyncPromise;\n}());\nexport { SyncPromise };\n//# sourceMappingURL=syncpromise.js.map","import mysql from 'mysql2/promise';\nimport { CONNECTION_STRING, parseSemiColonFormat } from './db_utils';\nimport { mainLogger } from '../sv_logger';\n\n// we require set mysql_connection_string to be set in the config\nconst mysqlConnectionString = GetConvar(CONNECTION_STRING, 'none');\nif (mysqlConnectionString === 'none') {\n const error = new Error(\n `No connection string provided. make sure \"${CONNECTION_STRING}\" is set in your config.`,\n );\n mainLogger.error(error.message);\n throw error;\n}\n\n/**\n * Most fivem servers utilize fivem-mysql-async (https://brouznouf.github.io/fivem-mysql-async/) and\n * define a environment variable \"mysql_connection_string\" in their configurations. We will try to\n * maintain backwards compatibility with this.\n *\n * fivem-mysql-async allows for two different connection string formats defined here:\n * https://brouznouf.github.io/fivem-mysql-async/config/ and we need to handle both of them.\n */\nexport function generateConnectionPool() {\n try {\n const config = mysqlConnectionString.includes('mysql://')\n ? { uri: mysqlConnectionString }\n : parseSemiColonFormat(mysqlConnectionString);\n\n return mysql.createPool({\n connectTimeout: 60000,\n ...config,\n });\n } catch (e) {\n mainLogger.error(`SQL Connection Pool Error: ${e.message}`, {\n connection: mysqlConnectionString,\n });\n }\n}\n\nexport const pool = generateConnectionPool();\n\nexport async function withTransaction(queries: Promise[]): Promise {\n const connection = await pool.getConnection();\n connection.beginTransaction();\n\n try {\n const results = await Promise.all(queries);\n await connection.commit();\n await connection.release();\n return results;\n } catch (err) {\n mainLogger.warn(`Error when submitting queries in transaction, ${err.message}`);\n await connection.rollback();\n await connection.release();\n return Promise.reject(err);\n }\n}\n","// This file was modified by Oracle on June 1, 2021.\n// The changes involve new logic to handle an additional ERR Packet sent by\n// the MySQL server when the connection is closed unexpectedly.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n// This file was modified by Oracle on June 17, 2021.\n// The changes involve logic to ensure the socket connection is closed when\n// there is a fatal error.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst Net = require('net');\nconst Tls = require('tls');\nconst Timers = require('timers');\nconst EventEmitter = require('events').EventEmitter;\nconst Readable = require('stream').Readable;\nconst Queue = require('denque');\nconst SqlString = require('sqlstring');\nconst LRU = require('lru-cache');\n\nconst PacketParser = require('./packet_parser.js');\nconst Packets = require('./packets/index.js');\nconst Commands = require('./commands/index.js');\nconst ConnectionConfig = require('./connection_config.js');\nconst CharsetToEncoding = require('./constants/charset_encodings.js');\n\nlet _connectionId = 0;\n\nlet convertNamedPlaceholders = null;\n\nclass Connection extends EventEmitter {\n constructor(opts) {\n super();\n this.config = opts.config;\n // TODO: fill defaults\n // if no params, connect to /var/lib/mysql/mysql.sock ( /tmp/mysql.sock on OSX )\n // if host is given, connect to host:3306\n // TODO: use `/usr/local/mysql/bin/mysql_config --socket` output? as default socketPath\n // if there is no host/port and no socketPath parameters?\n if (!opts.config.stream) {\n if (opts.config.socketPath) {\n this.stream = Net.connect(opts.config.socketPath);\n } else {\n this.stream = Net.connect(\n opts.config.port,\n opts.config.host\n );\n\n // Enable keep-alive on the socket. It's disabled by default, but the\n // user can enable it and supply an initial delay.\n this.stream.setKeepAlive(true, this.config.keepAliveInitialDelay);\n }\n // if stream is a function, treat it as \"stream agent / factory\"\n } else if (typeof opts.config.stream === 'function') {\n this.stream = opts.config.stream(opts);\n } else {\n this.stream = opts.config.stream;\n }\n\n this._internalId = _connectionId++;\n this._commands = new Queue();\n this._command = null;\n this._paused = false;\n this._paused_packets = new Queue();\n this._statements = new LRU({\n max: this.config.maxPreparedStatements,\n dispose: function(key, statement) {\n statement.close();\n }\n });\n this.serverCapabilityFlags = 0;\n this.authorized = false;\n this.sequenceId = 0;\n this.compressedSequenceId = 0;\n this.threadId = null;\n this._handshakePacket = null;\n this._fatalError = null;\n this._protocolError = null;\n this._outOfOrderPackets = [];\n this.clientEncoding = CharsetToEncoding[this.config.charsetNumber];\n this.stream.on('error', this._handleNetworkError.bind(this));\n // see https://gist.github.com/khoomeister/4985691#use-that-instead-of-bind\n this.packetParser = new PacketParser(p => {\n this.handlePacket(p);\n });\n this.stream.on('data', data => {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n this.packetParser.execute(data);\n });\n this.stream.on('close', () => {\n // we need to set this flag everywhere where we want connection to close\n if (this._closing) {\n return;\n }\n if (!this._protocolError) {\n // no particular error message before disconnect\n this._protocolError = new Error(\n 'Connection lost: The server closed the connection.'\n );\n this._protocolError.fatal = true;\n this._protocolError.code = 'PROTOCOL_CONNECTION_LOST';\n }\n this._notifyError(this._protocolError);\n });\n let handshakeCommand;\n if (!this.config.isServer) {\n handshakeCommand = new Commands.ClientHandshake(this.config.clientFlags);\n handshakeCommand.on('end', () => {\n // this happens when handshake finishes early either because there was\n // some fatal error or the server sent an error packet instead of\n // an hello packet (for example, 'Too many connactions' error)\n if (!handshakeCommand.handshake || this._fatalError || this._protocolError) {\n return;\n }\n this._handshakePacket = handshakeCommand.handshake;\n this.threadId = handshakeCommand.handshake.connectionId;\n this.emit('connect', handshakeCommand.handshake);\n });\n handshakeCommand.on('error', err => {\n this._closing = true;\n this._notifyError(err);\n });\n this.addCommand(handshakeCommand);\n }\n // in case there was no initiall handshake but we need to read sting, assume it utf-8\n // most common example: \"Too many connections\" error ( packet is sent immediately on connection attempt, we don't know server encoding yet)\n // will be overwrittedn with actial encoding value as soon as server handshake packet is received\n this.serverEncoding = 'utf8';\n if (this.config.connectTimeout) {\n const timeoutHandler = this._handleTimeoutError.bind(this);\n this.connectTimeout = Timers.setTimeout(\n timeoutHandler,\n this.config.connectTimeout\n );\n }\n }\n\n promise(promiseImpl) {\n const PromiseConnection = require('../promise').PromiseConnection;\n return new PromiseConnection(this, promiseImpl);\n }\n\n _addCommandClosedState(cmd) {\n const err = new Error(\n \"Can't add new command when connection is in closed state\"\n );\n err.fatal = true;\n if (cmd.onResult) {\n cmd.onResult(err);\n } else {\n this.emit('error', err);\n }\n }\n\n _handleFatalError(err) {\n err.fatal = true;\n // stop receiving packets\n this.stream.removeAllListeners('data');\n this.addCommand = this._addCommandClosedState;\n this.write = () => {\n this.emit('error', new Error(\"Can't write in closed state\"));\n };\n this._notifyError(err);\n this._fatalError = err;\n }\n\n _handleNetworkError(err) {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n // Do not throw an error when a connection ends with a RST,ACK packet\n if (err.errno === 'ECONNRESET' && this._closing) {\n return;\n }\n this._handleFatalError(err);\n }\n\n _handleTimeoutError() {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n this.stream.destroy && this.stream.destroy();\n const err = new Error('connect ETIMEDOUT');\n err.errorno = 'ETIMEDOUT';\n err.code = 'ETIMEDOUT';\n err.syscall = 'connect';\n this._handleNetworkError(err);\n }\n\n // notify all commands in the queue and bubble error as connection \"error\"\n // called on stream error or unexpected termination\n _notifyError(err) {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n // prevent from emitting 'PROTOCOL_CONNECTION_LOST' after EPIPE or ECONNRESET\n if (this._fatalError) {\n return;\n }\n let command;\n // if there is no active command, notify connection\n // if there are commands and all of them have callbacks, pass error via callback\n let bubbleErrorToConnection = !this._command;\n if (this._command && this._command.onResult) {\n this._command.onResult(err);\n this._command = null;\n // connection handshake is special because we allow it to be implicit\n // if error happened during handshake, but there are others commands in queue\n // then bubble error to other commands and not to connection\n } else if (\n !(\n this._command &&\n this._command.constructor === Commands.ClientHandshake &&\n this._commands.length > 0\n )\n ) {\n bubbleErrorToConnection = true;\n }\n while ((command = this._commands.shift())) {\n if (command.onResult) {\n command.onResult(err);\n } else {\n bubbleErrorToConnection = true;\n }\n }\n // notify connection if some comands in the queue did not have callbacks\n // or if this is pool connection ( so it can be removed from pool )\n if (bubbleErrorToConnection || this._pool) {\n this.emit('error', err);\n }\n // close connection after emitting the event in case of a fatal error\n if (err.fatal) {\n this.close();\n }\n }\n\n write(buffer) {\n const result = this.stream.write(buffer, err => {\n if (err) {\n this._handleNetworkError(err);\n }\n });\n\n if (!result) {\n this.stream.emit('pause');\n }\n }\n\n // http://dev.mysql.com/doc/internals/en/sequence-id.html\n //\n // The sequence-id is incremented with each packet and may wrap around.\n // It starts at 0 and is reset to 0 when a new command\n // begins in the Command Phase.\n // http://dev.mysql.com/doc/internals/en/example-several-mysql-packets.html\n _resetSequenceId() {\n this.sequenceId = 0;\n this.compressedSequenceId = 0;\n }\n\n _bumpCompressedSequenceId(numPackets) {\n this.compressedSequenceId += numPackets;\n this.compressedSequenceId %= 256;\n }\n\n _bumpSequenceId(numPackets) {\n this.sequenceId += numPackets;\n this.sequenceId %= 256;\n }\n\n writePacket(packet) {\n const MAX_PACKET_LENGTH = 16777215;\n const length = packet.length();\n let chunk, offset, header;\n if (length < MAX_PACKET_LENGTH) {\n packet.writeHeader(this.sequenceId);\n if (this.config.debug) {\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} <== ${this._command._commandName}#${this._command.stateName()}(${[this.sequenceId, packet._name, packet.length()].join(',')})`\n );\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} <== ${packet.buffer.toString('hex')}`\n );\n }\n this._bumpSequenceId(1);\n this.write(packet.buffer);\n } else {\n if (this.config.debug) {\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} <== Writing large packet, raw content not written:`\n );\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} <== ${this._command._commandName}#${this._command.stateName()}(${[this.sequenceId, packet._name, packet.length()].join(',')})`\n );\n }\n for (offset = 4; offset < 4 + length; offset += MAX_PACKET_LENGTH) {\n chunk = packet.buffer.slice(offset, offset + MAX_PACKET_LENGTH);\n if (chunk.length === MAX_PACKET_LENGTH) {\n header = Buffer.from([0xff, 0xff, 0xff, this.sequenceId]);\n } else {\n header = Buffer.from([\n chunk.length & 0xff,\n (chunk.length >> 8) & 0xff,\n (chunk.length >> 16) & 0xff,\n this.sequenceId\n ]);\n }\n this._bumpSequenceId(1);\n this.write(header);\n this.write(chunk);\n }\n }\n }\n\n // 0.11+ environment\n startTLS(onSecure) {\n if (this.config.debug) {\n // eslint-disable-next-line no-console\n console.log('Upgrading connection to TLS');\n }\n const secureContext = Tls.createSecureContext({\n ca: this.config.ssl.ca,\n cert: this.config.ssl.cert,\n ciphers: this.config.ssl.ciphers,\n key: this.config.ssl.key,\n passphrase: this.config.ssl.passphrase,\n minVersion: this.config.ssl.minVersion\n });\n const rejectUnauthorized = this.config.ssl.rejectUnauthorized;\n let secureEstablished = false;\n const secureSocket = new Tls.TLSSocket(this.stream, {\n rejectUnauthorized: rejectUnauthorized,\n requestCert: true,\n secureContext: secureContext,\n isServer: false\n });\n // error handler for secure socket\n secureSocket.on('_tlsError', err => {\n if (secureEstablished) {\n this._handleNetworkError(err);\n } else {\n onSecure(err);\n }\n });\n secureSocket.on('secure', () => {\n secureEstablished = true;\n onSecure(rejectUnauthorized ? secureSocket.ssl.verifyError() : null);\n });\n secureSocket.on('data', data => {\n this.packetParser.execute(data);\n });\n this.write = buffer => {\n secureSocket.write(buffer);\n };\n // start TLS communications\n secureSocket._start();\n }\n\n pipe() {\n if (this.stream instanceof Net.Stream) {\n this.stream.ondata = (data, start, end) => {\n this.packetParser.execute(data, start, end);\n };\n } else {\n this.stream.on('data', data => {\n this.packetParser.execute(\n data.parent,\n data.offset,\n data.offset + data.length\n );\n });\n }\n }\n\n protocolError(message, code) {\n // Starting with MySQL 8.0.24, if the client closes the connection\n // unexpectedly, the server will send a last ERR Packet, which we can\n // safely ignore.\n // https://dev.mysql.com/worklog/task/?id=12999\n if (this._closing) {\n return;\n }\n\n const err = new Error(message);\n err.fatal = true;\n err.code = code || 'PROTOCOL_ERROR';\n this.emit('error', err);\n }\n\n handlePacket(packet) {\n if (this._paused) {\n this._paused_packets.push(packet);\n return;\n }\n if (packet) {\n if (this.sequenceId !== packet.sequenceId) {\n const err = new Error(\n `Warning: got packets out of order. Expected ${this.sequenceId} but received ${packet.sequenceId}`\n );\n err.expected = this.sequenceId;\n err.received = packet.sequenceId;\n this.emit('warn', err); // REVIEW\n // eslint-disable-next-line no-console\n console.error(err.message);\n }\n this._bumpSequenceId(packet.numPackets);\n }\n if (this.config.debug) {\n if (packet) {\n // eslint-disable-next-line no-console\n console.log(\n ` raw: ${packet.buffer\n .slice(packet.offset, packet.offset + packet.length())\n .toString('hex')}`\n );\n // eslint-disable-next-line no-console\n console.trace();\n const commandName = this._command\n ? this._command._commandName\n : '(no command)';\n const stateName = this._command\n ? this._command.stateName()\n : '(no command)';\n // eslint-disable-next-line no-console\n console.log(\n `${this._internalId} ${this.connectionId} ==> ${commandName}#${stateName}(${[packet.sequenceId, packet.type(), packet.length()].join(',')})`\n );\n }\n }\n if (!this._command) {\n const marker = packet.peekByte();\n // If it's an Err Packet, we should use it.\n if (marker === 0xff) {\n const error = Packets.Error.fromPacket(packet);\n this.protocolError(error.message, error.code);\n } else {\n // Otherwise, it means it's some other unexpected packet.\n this.protocolError(\n 'Unexpected packet while no commands in the queue',\n 'PROTOCOL_UNEXPECTED_PACKET'\n );\n }\n this.close();\n return;\n }\n const done = this._command.execute(packet, this);\n if (done) {\n this._command = this._commands.shift();\n if (this._command) {\n this.sequenceId = 0;\n this.compressedSequenceId = 0;\n this.handlePacket();\n }\n }\n }\n\n addCommand(cmd) {\n // this.compressedSequenceId = 0;\n // this.sequenceId = 0;\n if (this.config.debug) {\n const commandName = cmd.constructor.name;\n // eslint-disable-next-line no-console\n console.log(`Add command: ${commandName}`);\n cmd._commandName = commandName;\n }\n if (!this._command) {\n this._command = cmd;\n this.handlePacket();\n } else {\n this._commands.push(cmd);\n }\n return cmd;\n }\n\n format(sql, values) {\n if (typeof this.config.queryFormat === 'function') {\n return this.config.queryFormat.call(\n this,\n sql,\n values,\n this.config.timezone\n );\n }\n const opts = {\n sql: sql,\n values: values\n };\n this._resolveNamedPlaceholders(opts);\n return SqlString.format(\n opts.sql,\n opts.values,\n this.config.stringifyObjects,\n this.config.timezone\n );\n }\n\n escape(value) {\n return SqlString.escape(value, false, this.config.timezone);\n }\n\n escapeId(value) {\n return SqlString.escapeId(value, false);\n }\n\n raw(sql) {\n return SqlString.raw(sql);\n }\n\n _resolveNamedPlaceholders(options) {\n let unnamed;\n if (this.config.namedPlaceholders || options.namedPlaceholders) {\n if (Array.isArray(options.values)) {\n // if an array is provided as the values, assume the conversion is not necessary.\n // this allows the usage of unnamed placeholders even if the namedPlaceholders flag is enabled.\n return\n }\n if (convertNamedPlaceholders === null) {\n convertNamedPlaceholders = require('named-placeholders')();\n }\n unnamed = convertNamedPlaceholders(options.sql, options.values);\n options.sql = unnamed[0];\n options.values = unnamed[1];\n }\n }\n\n query(sql, values, cb) {\n let cmdQuery;\n if (sql.constructor === Commands.Query) {\n cmdQuery = sql;\n } else {\n cmdQuery = Connection.createQuery(sql, values, cb, this.config);\n }\n this._resolveNamedPlaceholders(cmdQuery);\n const rawSql = this.format(cmdQuery.sql, cmdQuery.values !== undefined ? cmdQuery.values : []);\n cmdQuery.sql = rawSql;\n return this.addCommand(cmdQuery);\n }\n\n pause() {\n this._paused = true;\n this.stream.pause();\n }\n\n resume() {\n let packet;\n this._paused = false;\n while ((packet = this._paused_packets.shift())) {\n this.handlePacket(packet);\n // don't resume if packet hander paused connection\n if (this._paused) {\n return;\n }\n }\n this.stream.resume();\n }\n\n // TODO: named placeholders support\n prepare(options, cb) {\n if (typeof options === 'string') {\n options = { sql: options };\n }\n return this.addCommand(new Commands.Prepare(options, cb));\n }\n\n unprepare(sql) {\n let options = {};\n if (typeof sql === 'object') {\n options = sql;\n } else {\n options.sql = sql;\n }\n const key = Connection.statementKey(options);\n const stmt = this._statements.get(key);\n if (stmt) {\n this._statements.del(key);\n stmt.close();\n }\n return stmt;\n }\n\n execute(sql, values, cb) {\n let options = {};\n if (typeof sql === 'object') {\n // execute(options, cb)\n options = sql;\n if (typeof values === 'function') {\n cb = values;\n } else {\n options.values = options.values || values;\n }\n } else if (typeof values === 'function') {\n // execute(sql, cb)\n cb = values;\n options.sql = sql;\n options.values = undefined;\n } else {\n // execute(sql, values, cb)\n options.sql = sql;\n options.values = values;\n }\n this._resolveNamedPlaceholders(options);\n // check for values containing undefined\n if (options.values) {\n //If namedPlaceholder is not enabled and object is passed as bind parameters\n if (!Array.isArray(options.values)) {\n throw new TypeError(\n 'Bind parameters must be array if namedPlaceholders parameter is not enabled'\n );\n }\n options.values.forEach(val => {\n //If namedPlaceholder is not enabled and object is passed as bind parameters\n if (!Array.isArray(options.values)) {\n throw new TypeError(\n 'Bind parameters must be array if namedPlaceholders parameter is not enabled'\n );\n }\n if (val === undefined) {\n throw new TypeError(\n 'Bind parameters must not contain undefined. To pass SQL NULL specify JS null'\n );\n }\n if (typeof val === 'function') {\n throw new TypeError(\n 'Bind parameters must not contain function(s). To pass the body of a function as a string call .toString() first'\n );\n }\n });\n }\n const executeCommand = new Commands.Execute(options, cb);\n const prepareCommand = new Commands.Prepare(options, (err, stmt) => {\n if (err) {\n // skip execute command if prepare failed, we have main\n // combined callback here\n executeCommand.start = function() {\n return null;\n };\n if (cb) {\n cb(err);\n } else {\n executeCommand.emit('error', err);\n }\n executeCommand.emit('end');\n return;\n }\n executeCommand.statement = stmt;\n });\n this.addCommand(prepareCommand);\n this.addCommand(executeCommand);\n return executeCommand;\n }\n\n changeUser(options, callback) {\n if (!callback && typeof options === 'function') {\n callback = options;\n options = {};\n }\n const charsetNumber = options.charset\n ? ConnectionConfig.getCharsetNumber(options.charset)\n : this.config.charsetNumber;\n return this.addCommand(\n new Commands.ChangeUser(\n {\n user: options.user || this.config.user,\n password: options.password || this.config.password,\n passwordSha1: options.passwordSha1 || this.config.passwordSha1,\n database: options.database || this.config.database,\n timeout: options.timeout,\n charsetNumber: charsetNumber,\n currentConfig: this.config\n },\n err => {\n if (err) {\n err.fatal = true;\n }\n if (callback) {\n callback(err);\n }\n }\n )\n );\n }\n\n // transaction helpers\n beginTransaction(cb) {\n return this.query('START TRANSACTION', cb);\n }\n\n commit(cb) {\n return this.query('COMMIT', cb);\n }\n\n rollback(cb) {\n return this.query('ROLLBACK', cb);\n }\n\n ping(cb) {\n return this.addCommand(new Commands.Ping(cb));\n }\n\n _registerSlave(opts, cb) {\n return this.addCommand(new Commands.RegisterSlave(opts, cb));\n }\n\n _binlogDump(opts, cb) {\n return this.addCommand(new Commands.BinlogDump(opts, cb));\n }\n\n // currently just alias to close\n destroy() {\n this.close();\n }\n\n close() {\n if (this.connectTimeout) {\n Timers.clearTimeout(this.connectTimeout);\n this.connectTimeout = null;\n }\n this._closing = true;\n this.stream.end();\n this.addCommand = this._addCommandClosedState;\n }\n\n createBinlogStream(opts) {\n // TODO: create proper stream class\n // TODO: use through2\n let test = 1;\n const stream = new Readable({ objectMode: true });\n stream._read = function() {\n return {\n data: test++\n };\n };\n this._registerSlave(opts, () => {\n const dumpCmd = this._binlogDump(opts);\n dumpCmd.on('event', ev => {\n stream.push(ev);\n });\n dumpCmd.on('eof', () => {\n stream.push(null);\n // if non-blocking, then close stream to prevent errors\n if (opts.flags && opts.flags & 0x01) {\n this.close();\n }\n });\n // TODO: pipe errors as well\n });\n return stream;\n }\n\n connect(cb) {\n if (!cb) {\n return;\n }\n if (this._fatalError || this._protocolError) {\n return cb(this._fatalError || this._protocolError);\n }\n if (this._handshakePacket) {\n return cb(null, this);\n }\n let connectCalled = 0;\n function callbackOnce(isErrorHandler) {\n return function(param) {\n if (!connectCalled) {\n if (isErrorHandler) {\n cb(param);\n } else {\n cb(null, param);\n }\n }\n connectCalled = 1;\n };\n }\n this.once('error', callbackOnce(true));\n this.once('connect', callbackOnce(false));\n }\n\n // ===================================\n // outgoing server connection methods\n // ===================================\n writeColumns(columns) {\n this.writePacket(Packets.ResultSetHeader.toPacket(columns.length));\n columns.forEach(column => {\n this.writePacket(\n Packets.ColumnDefinition.toPacket(column, this.serverConfig.encoding)\n );\n });\n this.writeEof();\n }\n\n // row is array of columns, not hash\n writeTextRow(column) {\n this.writePacket(\n Packets.TextRow.toPacket(column, this.serverConfig.encoding)\n );\n }\n\n writeTextResult(rows, columns) {\n this.writeColumns(columns);\n rows.forEach(row => {\n const arrayRow = new Array(columns.length);\n columns.forEach(column => {\n arrayRow.push(row[column.name]);\n });\n this.writeTextRow(arrayRow);\n });\n this.writeEof();\n }\n\n writeEof(warnings, statusFlags) {\n this.writePacket(Packets.EOF.toPacket(warnings, statusFlags));\n }\n\n writeOk(args) {\n if (!args) {\n args = { affectedRows: 0 };\n }\n this.writePacket(Packets.OK.toPacket(args, this.serverConfig.encoding));\n }\n\n writeError(args) {\n // if we want to send error before initial hello was sent, use default encoding\n const encoding = this.serverConfig ? this.serverConfig.encoding : 'cesu8';\n this.writePacket(Packets.Error.toPacket(args, encoding));\n }\n\n serverHandshake(args) {\n this.serverConfig = args;\n this.serverConfig.encoding =\n CharsetToEncoding[this.serverConfig.characterSet];\n return this.addCommand(new Commands.ServerHandshake(args));\n }\n\n // ===============================================================\n end(callback) {\n if (this.config.isServer) {\n this._closing = true;\n const quitCmd = new EventEmitter();\n setImmediate(() => {\n this.stream.end();\n quitCmd.emit('end');\n });\n return quitCmd;\n }\n // trigger error if more commands enqueued after end command\n const quitCmd = this.addCommand(new Commands.Quit(callback));\n this.addCommand = this._addCommandClosedState;\n return quitCmd;\n }\n\n static createQuery(sql, values, cb, config) {\n let options = {\n rowsAsArray: config.rowsAsArray\n };\n if (typeof sql === 'object') {\n // query(options, cb)\n options = sql;\n if (typeof values === 'function') {\n cb = values;\n } else if (values !== undefined) {\n options.values = values;\n }\n } else if (typeof values === 'function') {\n // query(sql, cb)\n cb = values;\n options.sql = sql;\n options.values = undefined;\n } else {\n // query(sql, values, cb)\n options.sql = sql;\n options.values = values;\n }\n return new Commands.Query(options, cb);\n }\n\n static statementKey(options) {\n return (\n `${typeof options.nestTables}/${options.nestTables}/${options.rowsAsArray}${options.sql}`\n );\n }\n}\n\nif (Tls.TLSSocket) {\n // not supported\n} else {\n Connection.prototype.startTLS = function _startTLS(onSecure) {\n if (this.config.debug) {\n // eslint-disable-next-line no-console\n console.log('Upgrading connection to TLS');\n }\n const crypto = require('crypto');\n const config = this.config;\n const stream = this.stream;\n const rejectUnauthorized = this.config.ssl.rejectUnauthorized;\n const credentials = crypto.createCredentials({\n key: config.ssl.key,\n cert: config.ssl.cert,\n passphrase: config.ssl.passphrase,\n ca: config.ssl.ca,\n ciphers: config.ssl.ciphers\n });\n const securePair = Tls.createSecurePair(\n credentials,\n false,\n true,\n rejectUnauthorized\n );\n\n if (stream.ondata) {\n stream.ondata = null;\n }\n stream.removeAllListeners('data');\n stream.pipe(securePair.encrypted);\n securePair.encrypted.pipe(stream);\n securePair.cleartext.on('data', data => {\n this.packetParser.execute(data);\n });\n this.write = function(buffer) {\n securePair.cleartext.write(buffer);\n };\n securePair.on('secure', () => {\n onSecure(rejectUnauthorized ? securePair.ssl.verifyError() : null);\n });\n };\n}\n\nmodule.exports = Connection;\n","'use strict';\n\nconst Iconv = require('iconv-lite');\n\nexports.decode = function(buffer, encoding, start, end, options) {\n if (Buffer.isEncoding(encoding)) {\n return buffer.toString(encoding, start, end);\n }\n\n const decoder = Iconv.getDecoder(encoding, options || {});\n\n const res = decoder.write(buffer.slice(start, end));\n const trail = decoder.end();\n\n return trail ? res + trail : res;\n};\n\nexports.encode = function(string, encoding, options) {\n if (Buffer.isEncoding(encoding)) {\n return Buffer.from(string, encoding);\n }\n\n const encoder = Iconv.getEncoder(encoding, options || {});\n\n const res = encoder.write(string);\n const trail = encoder.end();\n\n return trail && trail.length > 0 ? Buffer.concat([res, trail]) : res;\n};\n","module.exports = require(\"process\");","'use strict';\n\nexports.BIG5_CHINESE_CI = 1;\nexports.LATIN2_CZECH_CS = 2;\nexports.DEC8_SWEDISH_CI = 3;\nexports.CP850_GENERAL_CI = 4;\nexports.LATIN1_GERMAN1_CI = 5;\nexports.HP8_ENGLISH_CI = 6;\nexports.KOI8R_GENERAL_CI = 7;\nexports.LATIN1_SWEDISH_CI = 8;\nexports.LATIN2_GENERAL_CI = 9;\nexports.SWE7_SWEDISH_CI = 10;\nexports.ASCII_GENERAL_CI = 11;\nexports.UJIS_JAPANESE_CI = 12;\nexports.SJIS_JAPANESE_CI = 13;\nexports.CP1251_BULGARIAN_CI = 14;\nexports.LATIN1_DANISH_CI = 15;\nexports.HEBREW_GENERAL_CI = 16;\nexports.TIS620_THAI_CI = 18;\nexports.EUCKR_KOREAN_CI = 19;\nexports.LATIN7_ESTONIAN_CS = 20;\nexports.LATIN2_HUNGARIAN_CI = 21;\nexports.KOI8U_GENERAL_CI = 22;\nexports.CP1251_UKRAINIAN_CI = 23;\nexports.GB2312_CHINESE_CI = 24;\nexports.GREEK_GENERAL_CI = 25;\nexports.CP1250_GENERAL_CI = 26;\nexports.LATIN2_CROATIAN_CI = 27;\nexports.GBK_CHINESE_CI = 28;\nexports.CP1257_LITHUANIAN_CI = 29;\nexports.LATIN5_TURKISH_CI = 30;\nexports.LATIN1_GERMAN2_CI = 31;\nexports.ARMSCII8_GENERAL_CI = 32;\nexports.UTF8_GENERAL_CI = 33;\nexports.CP1250_CZECH_CS = 34;\nexports.UCS2_GENERAL_CI = 35;\nexports.CP866_GENERAL_CI = 36;\nexports.KEYBCS2_GENERAL_CI = 37;\nexports.MACCE_GENERAL_CI = 38;\nexports.MACROMAN_GENERAL_CI = 39;\nexports.CP852_GENERAL_CI = 40;\nexports.LATIN7_GENERAL_CI = 41;\nexports.LATIN7_GENERAL_CS = 42;\nexports.MACCE_BIN = 43;\nexports.CP1250_CROATIAN_CI = 44;\nexports.UTF8MB4_GENERAL_CI = 45;\nexports.UTF8MB4_BIN = 46;\nexports.LATIN1_BIN = 47;\nexports.LATIN1_GENERAL_CI = 48;\nexports.LATIN1_GENERAL_CS = 49;\nexports.CP1251_BIN = 50;\nexports.CP1251_GENERAL_CI = 51;\nexports.CP1251_GENERAL_CS = 52;\nexports.MACROMAN_BIN = 53;\nexports.UTF16_GENERAL_CI = 54;\nexports.UTF16_BIN = 55;\nexports.UTF16LE_GENERAL_CI = 56;\nexports.CP1256_GENERAL_CI = 57;\nexports.CP1257_BIN = 58;\nexports.CP1257_GENERAL_CI = 59;\nexports.UTF32_GENERAL_CI = 60;\nexports.UTF32_BIN = 61;\nexports.UTF16LE_BIN = 62;\nexports.BINARY = 63;\nexports.ARMSCII8_BIN = 64;\nexports.ASCII_BIN = 65;\nexports.CP1250_BIN = 66;\nexports.CP1256_BIN = 67;\nexports.CP866_BIN = 68;\nexports.DEC8_BIN = 69;\nexports.GREEK_BIN = 70;\nexports.HEBREW_BIN = 71;\nexports.HP8_BIN = 72;\nexports.KEYBCS2_BIN = 73;\nexports.KOI8R_BIN = 74;\nexports.KOI8U_BIN = 75;\nexports.UTF8_TOLOWER_CI = 76;\nexports.LATIN2_BIN = 77;\nexports.LATIN5_BIN = 78;\nexports.LATIN7_BIN = 79;\nexports.CP850_BIN = 80;\nexports.CP852_BIN = 81;\nexports.SWE7_BIN = 82;\nexports.UTF8_BIN = 83;\nexports.BIG5_BIN = 84;\nexports.EUCKR_BIN = 85;\nexports.GB2312_BIN = 86;\nexports.GBK_BIN = 87;\nexports.SJIS_BIN = 88;\nexports.TIS620_BIN = 89;\nexports.UCS2_BIN = 90;\nexports.UJIS_BIN = 91;\nexports.GEOSTD8_GENERAL_CI = 92;\nexports.GEOSTD8_BIN = 93;\nexports.LATIN1_SPANISH_CI = 94;\nexports.CP932_JAPANESE_CI = 95;\nexports.CP932_BIN = 96;\nexports.EUCJPMS_JAPANESE_CI = 97;\nexports.EUCJPMS_BIN = 98;\nexports.CP1250_POLISH_CI = 99;\nexports.UTF16_UNICODE_CI = 101;\nexports.UTF16_ICELANDIC_CI = 102;\nexports.UTF16_LATVIAN_CI = 103;\nexports.UTF16_ROMANIAN_CI = 104;\nexports.UTF16_SLOVENIAN_CI = 105;\nexports.UTF16_POLISH_CI = 106;\nexports.UTF16_ESTONIAN_CI = 107;\nexports.UTF16_SPANISH_CI = 108;\nexports.UTF16_SWEDISH_CI = 109;\nexports.UTF16_TURKISH_CI = 110;\nexports.UTF16_CZECH_CI = 111;\nexports.UTF16_DANISH_CI = 112;\nexports.UTF16_LITHUANIAN_CI = 113;\nexports.UTF16_SLOVAK_CI = 114;\nexports.UTF16_SPANISH2_CI = 115;\nexports.UTF16_ROMAN_CI = 116;\nexports.UTF16_PERSIAN_CI = 117;\nexports.UTF16_ESPERANTO_CI = 118;\nexports.UTF16_HUNGARIAN_CI = 119;\nexports.UTF16_SINHALA_CI = 120;\nexports.UTF16_GERMAN2_CI = 121;\nexports.UTF16_CROATIAN_CI = 122;\nexports.UTF16_UNICODE_520_CI = 123;\nexports.UTF16_VIETNAMESE_CI = 124;\nexports.UCS2_UNICODE_CI = 128;\nexports.UCS2_ICELANDIC_CI = 129;\nexports.UCS2_LATVIAN_CI = 130;\nexports.UCS2_ROMANIAN_CI = 131;\nexports.UCS2_SLOVENIAN_CI = 132;\nexports.UCS2_POLISH_CI = 133;\nexports.UCS2_ESTONIAN_CI = 134;\nexports.UCS2_SPANISH_CI = 135;\nexports.UCS2_SWEDISH_CI = 136;\nexports.UCS2_TURKISH_CI = 137;\nexports.UCS2_CZECH_CI = 138;\nexports.UCS2_DANISH_CI = 139;\nexports.UCS2_LITHUANIAN_CI = 140;\nexports.UCS2_SLOVAK_CI = 141;\nexports.UCS2_SPANISH2_CI = 142;\nexports.UCS2_ROMAN_CI = 143;\nexports.UCS2_PERSIAN_CI = 144;\nexports.UCS2_ESPERANTO_CI = 145;\nexports.UCS2_HUNGARIAN_CI = 146;\nexports.UCS2_SINHALA_CI = 147;\nexports.UCS2_GERMAN2_CI = 148;\nexports.UCS2_CROATIAN_CI = 149;\nexports.UCS2_UNICODE_520_CI = 150;\nexports.UCS2_VIETNAMESE_CI = 151;\nexports.UCS2_GENERAL_MYSQL500_CI = 159;\nexports.UTF32_UNICODE_CI = 160;\nexports.UTF32_ICELANDIC_CI = 161;\nexports.UTF32_LATVIAN_CI = 162;\nexports.UTF32_ROMANIAN_CI = 163;\nexports.UTF32_SLOVENIAN_CI = 164;\nexports.UTF32_POLISH_CI = 165;\nexports.UTF32_ESTONIAN_CI = 166;\nexports.UTF32_SPANISH_CI = 167;\nexports.UTF32_SWEDISH_CI = 168;\nexports.UTF32_TURKISH_CI = 169;\nexports.UTF32_CZECH_CI = 170;\nexports.UTF32_DANISH_CI = 171;\nexports.UTF32_LITHUANIAN_CI = 172;\nexports.UTF32_SLOVAK_CI = 173;\nexports.UTF32_SPANISH2_CI = 174;\nexports.UTF32_ROMAN_CI = 175;\nexports.UTF32_PERSIAN_CI = 176;\nexports.UTF32_ESPERANTO_CI = 177;\nexports.UTF32_HUNGARIAN_CI = 178;\nexports.UTF32_SINHALA_CI = 179;\nexports.UTF32_GERMAN2_CI = 180;\nexports.UTF32_CROATIAN_CI = 181;\nexports.UTF32_UNICODE_520_CI = 182;\nexports.UTF32_VIETNAMESE_CI = 183;\nexports.UTF8_UNICODE_CI = 192;\nexports.UTF8_ICELANDIC_CI = 193;\nexports.UTF8_LATVIAN_CI = 194;\nexports.UTF8_ROMANIAN_CI = 195;\nexports.UTF8_SLOVENIAN_CI = 196;\nexports.UTF8_POLISH_CI = 197;\nexports.UTF8_ESTONIAN_CI = 198;\nexports.UTF8_SPANISH_CI = 199;\nexports.UTF8_SWEDISH_CI = 200;\nexports.UTF8_TURKISH_CI = 201;\nexports.UTF8_CZECH_CI = 202;\nexports.UTF8_DANISH_CI = 203;\nexports.UTF8_LITHUANIAN_CI = 204;\nexports.UTF8_SLOVAK_CI = 205;\nexports.UTF8_SPANISH2_CI = 206;\nexports.UTF8_ROMAN_CI = 207;\nexports.UTF8_PERSIAN_CI = 208;\nexports.UTF8_ESPERANTO_CI = 209;\nexports.UTF8_HUNGARIAN_CI = 210;\nexports.UTF8_SINHALA_CI = 211;\nexports.UTF8_GERMAN2_CI = 212;\nexports.UTF8_CROATIAN_CI = 213;\nexports.UTF8_UNICODE_520_CI = 214;\nexports.UTF8_VIETNAMESE_CI = 215;\nexports.UTF8_GENERAL_MYSQL500_CI = 223;\nexports.UTF8MB4_UNICODE_CI = 224;\nexports.UTF8MB4_ICELANDIC_CI = 225;\nexports.UTF8MB4_LATVIAN_CI = 226;\nexports.UTF8MB4_ROMANIAN_CI = 227;\nexports.UTF8MB4_SLOVENIAN_CI = 228;\nexports.UTF8MB4_POLISH_CI = 229;\nexports.UTF8MB4_ESTONIAN_CI = 230;\nexports.UTF8MB4_SPANISH_CI = 231;\nexports.UTF8MB4_SWEDISH_CI = 232;\nexports.UTF8MB4_TURKISH_CI = 233;\nexports.UTF8MB4_CZECH_CI = 234;\nexports.UTF8MB4_DANISH_CI = 235;\nexports.UTF8MB4_LITHUANIAN_CI = 236;\nexports.UTF8MB4_SLOVAK_CI = 237;\nexports.UTF8MB4_SPANISH2_CI = 238;\nexports.UTF8MB4_ROMAN_CI = 239;\nexports.UTF8MB4_PERSIAN_CI = 240;\nexports.UTF8MB4_ESPERANTO_CI = 241;\nexports.UTF8MB4_HUNGARIAN_CI = 242;\nexports.UTF8MB4_SINHALA_CI = 243;\nexports.UTF8MB4_GERMAN2_CI = 244;\nexports.UTF8MB4_CROATIAN_CI = 245;\nexports.UTF8MB4_UNICODE_520_CI = 246;\nexports.UTF8MB4_VIETNAMESE_CI = 247;\nexports.GB18030_CHINESE_CI = 248;\nexports.GB18030_BIN = 249;\nexports.GB18030_UNICODE_520_CI = 250;\nexports.UTF8_GENERAL50_CI = 253;\nexports.UTF8MB4_0900_AI_CI = 255;\nexports.UTF8MB4_CS_0900_AI_CI = 266;\nexports.UTF8MB4_DA_0900_AI_CI = 267;\nexports.UTF8MB4_DE_PB_0900_AI_CI = 256;\nexports.UTF8MB4_EO_0900_AI_CI = 273;\nexports.UTF8MB4_ES_0900_AI_CI = 263;\nexports.UTF8MB4_ES_TRAD_0900_AI_CI = 270;\nexports.UTF8MB4_ET_0900_AI_CI = 262;\nexports.UTF8MB4_HR_0900_AI_CI = 275;\nexports.UTF8MB4_HU_0900_AI_CI = 274;\nexports.UTF8MB4_IS_0900_AI_CI = 257;\nexports.UTF8MB4_LA_0900_AI_CI = 271;\nexports.UTF8MB4_LT_0900_AI_CI = 268;\nexports.UTF8MB4_LV_0900_AI_CI = 258;\nexports.UTF8MB4_PL_0900_AI_CI = 261;\nexports.UTF8MB4_RO_0900_AI_CI = 259;\nexports.UTF8MB4_SK_0900_AI_CI = 269;\nexports.UTF8MB4_SL_0900_AI_CI = 260;\nexports.UTF8MB4_SV_0900_AI_CI = 264;\nexports.UTF8MB4_TR_0900_AI_CI = 265;\nexports.UTF8MB4_VI_0900_AI_CI = 277;\n\n// short aliases\nexports.BIG5 = exports.BIG5_CHINESE_CI;\nexports.DEC8 = exports.DEC8_SWEDISH_CI;\nexports.CP850 = exports.CP850_GENERAL_CI;\nexports.HP8 = exports.HP8_ENGLISH_CI;\nexports.KOI8R = exports.KOI8R_GENERAL_CI;\nexports.LATIN1 = exports.LATIN1_SWEDISH_CI;\nexports.LATIN2 = exports.LATIN2_GENERAL_CI;\nexports.SWE7 = exports.SWE7_SWEDISH_CI;\nexports.ASCII = exports.ASCII_GENERAL_CI;\nexports.UJIS = exports.UJIS_JAPANESE_CI;\nexports.SJIS = exports.SJIS_JAPANESE_CI;\nexports.HEBREW = exports.HEBREW_GENERAL_CI;\nexports.TIS620 = exports.TIS620_THAI_CI;\nexports.EUCKR = exports.EUCKR_KOREAN_CI;\nexports.KOI8U = exports.KOI8U_GENERAL_CI;\nexports.GB2312 = exports.GB2312_CHINESE_CI;\nexports.GREEK = exports.GREEK_GENERAL_CI;\nexports.CP1250 = exports.CP1250_GENERAL_CI;\nexports.GBK = exports.GBK_CHINESE_CI;\nexports.LATIN5 = exports.LATIN5_TURKISH_CI;\nexports.ARMSCII8 = exports.ARMSCII8_GENERAL_CI;\nexports.UTF8 = exports.UTF8_GENERAL_CI;\nexports.UCS2 = exports.UCS2_GENERAL_CI;\nexports.CP866 = exports.CP866_GENERAL_CI;\nexports.KEYBCS2 = exports.KEYBCS2_GENERAL_CI;\nexports.MACCE = exports.MACCE_GENERAL_CI;\nexports.MACROMAN = exports.MACROMAN_GENERAL_CI;\nexports.CP852 = exports.CP852_GENERAL_CI;\nexports.LATIN7 = exports.LATIN7_GENERAL_CI;\nexports.UTF8MB4 = exports.UTF8MB4_GENERAL_CI;\nexports.CP1251 = exports.CP1251_GENERAL_CI;\nexports.UTF16 = exports.UTF16_GENERAL_CI;\nexports.UTF16LE = exports.UTF16LE_GENERAL_CI;\nexports.CP1256 = exports.CP1256_GENERAL_CI;\nexports.CP1257 = exports.CP1257_GENERAL_CI;\nexports.UTF32 = exports.UTF32_GENERAL_CI;\nexports.CP932 = exports.CP932_JAPANESE_CI;\nexports.EUCJPMS = exports.EUCJPMS_JAPANESE_CI;\nexports.GB18030 = exports.GB18030_CHINESE_CI;\nexports.GEOSTD8 = exports.GEOSTD8_GENERAL_CI;\n","'use strict';\n\nconst { URL } = require('url');\nconst ClientConstants = require('./constants/client');\nconst Charsets = require('./constants/charsets');\nlet SSLProfiles = null;\n\nconst validOptions = {\n authPlugins: 1,\n authSwitchHandler: 1,\n bigNumberStrings: 1,\n charset: 1,\n charsetNumber: 1,\n compress: 1,\n connectAttributes: 1,\n connectTimeout: 1,\n database: 1,\n dateStrings: 1,\n debug: 1,\n decimalNumbers: 1,\n enableKeepAlive: 1,\n flags: 1,\n host: 1,\n insecureAuth: 1,\n isServer: 1,\n keepAliveInitialDelay: 1,\n localAddress: 1,\n maxPreparedStatements: 1,\n multipleStatements: 1,\n namedPlaceholders: 1,\n nestTables: 1,\n password: 1,\n passwordSha1: 1,\n pool: 1,\n port: 1,\n queryFormat: 1,\n rowsAsArray: 1,\n socketPath: 1,\n ssl: 1,\n stream: 1,\n stringifyObjects: 1,\n supportBigNumbers: 1,\n timezone: 1,\n trace: 1,\n typeCast: 1,\n uri: 1,\n user: 1,\n // These options are used for Pool\n connectionLimit: 1,\n Promise: 1,\n queueLimit: 1,\n waitForConnections: 1\n};\n\nclass ConnectionConfig {\n constructor(options) {\n if (typeof options === 'string') {\n options = ConnectionConfig.parseUrl(options);\n } else if (options && options.uri) {\n const uriOptions = ConnectionConfig.parseUrl(options.uri);\n for (const key in uriOptions) {\n if (!Object.prototype.hasOwnProperty.call(uriOptions, key)) continue;\n if (options[key]) continue;\n options[key] = uriOptions[key];\n }\n }\n for (const key in options) {\n if (!Object.prototype.hasOwnProperty.call(options, key)) continue;\n if (validOptions[key] !== 1) {\n // REVIEW: Should this be emitted somehow?\n // eslint-disable-next-line no-console\n console.error(\n `Ignoring invalid configuration option passed to Connection: ${key}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`\n );\n }\n }\n this.isServer = options.isServer;\n this.stream = options.stream;\n this.host = options.host || 'localhost';\n this.port = options.port || 3306;\n this.localAddress = options.localAddress;\n this.socketPath = options.socketPath;\n this.user = options.user || undefined;\n this.password = options.password || undefined;\n this.passwordSha1 = options.passwordSha1 || undefined;\n this.database = options.database;\n this.connectTimeout = isNaN(options.connectTimeout)\n ? 10 * 1000\n : options.connectTimeout;\n this.insecureAuth = options.insecureAuth || false;\n this.supportBigNumbers = options.supportBigNumbers || false;\n this.bigNumberStrings = options.bigNumberStrings || false;\n this.decimalNumbers = options.decimalNumbers || false;\n this.dateStrings = options.dateStrings || false;\n this.debug = options.debug;\n this.trace = options.trace !== false;\n this.stringifyObjects = options.stringifyObjects || false;\n this.enableKeepAlive = !!options.enableKeepAlive;\n this.keepAliveInitialDelay = options.keepAliveInitialDelay || 0;\n if (\n options.timezone &&\n !/^(?:local|Z|[ +-]\\d\\d:\\d\\d)$/.test(options.timezone)\n ) {\n // strictly supports timezones specified by mysqljs/mysql:\n // https://github.com/mysqljs/mysql#user-content-connection-options\n // eslint-disable-next-line no-console\n console.error(\n `Ignoring invalid timezone passed to Connection: ${options.timezone}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`\n );\n // SqlStrings falls back to UTC on invalid timezone\n this.timezone = 'Z';\n } else {\n this.timezone = options.timezone || 'local';\n }\n this.queryFormat = options.queryFormat;\n this.pool = options.pool || undefined;\n this.ssl =\n typeof options.ssl === 'string'\n ? ConnectionConfig.getSSLProfile(options.ssl)\n : options.ssl || false;\n this.multipleStatements = options.multipleStatements || false;\n this.rowsAsArray = options.rowsAsArray || false;\n this.namedPlaceholders = options.namedPlaceholders || false;\n this.nestTables =\n options.nestTables === undefined ? undefined : options.nestTables;\n this.typeCast = options.typeCast === undefined ? true : options.typeCast;\n if (this.timezone[0] === ' ') {\n // \"+\" is a url encoded char for space so it\n // gets translated to space when giving a\n // connection string..\n this.timezone = `+${this.timezone.substr(1)}`;\n }\n if (this.ssl) {\n if (typeof this.ssl !== 'object') {\n throw new TypeError(\n `SSL profile must be an object, instead it's a ${typeof this.ssl}`\n );\n }\n // Default rejectUnauthorized to true\n this.ssl.rejectUnauthorized = this.ssl.rejectUnauthorized !== false;\n }\n this.maxPacketSize = 0;\n this.charsetNumber = options.charset\n ? ConnectionConfig.getCharsetNumber(options.charset)\n : options.charsetNumber || Charsets.UTF8MB4_UNICODE_CI;\n this.compress = options.compress || false;\n this.authPlugins = options.authPlugins;\n this.authSwitchHandler = options.authSwitchHandler;\n this.clientFlags = ConnectionConfig.mergeFlags(\n ConnectionConfig.getDefaultFlags(options),\n options.flags || ''\n );\n this.connectAttributes = options.connectAttributes;\n this.maxPreparedStatements = options.maxPreparedStatements || 16000;\n }\n\n static mergeFlags(default_flags, user_flags) {\n let flags = 0x0,\n i;\n if (!Array.isArray(user_flags)) {\n user_flags = String(user_flags || '')\n .toUpperCase()\n .split(/\\s*,+\\s*/);\n }\n // add default flags unless \"blacklisted\"\n for (i in default_flags) {\n if (user_flags.indexOf(`-${default_flags[i]}`) >= 0) {\n continue;\n }\n flags |= ClientConstants[default_flags[i]] || 0x0;\n }\n // add user flags unless already already added\n for (i in user_flags) {\n if (user_flags[i][0] === '-') {\n continue;\n }\n if (default_flags.indexOf(user_flags[i]) >= 0) {\n continue;\n }\n flags |= ClientConstants[user_flags[i]] || 0x0;\n }\n return flags;\n }\n\n static getDefaultFlags(options) {\n const defaultFlags = [\n 'LONG_PASSWORD',\n 'FOUND_ROWS',\n 'LONG_FLAG',\n 'CONNECT_WITH_DB',\n 'ODBC',\n 'LOCAL_FILES',\n 'IGNORE_SPACE',\n 'PROTOCOL_41',\n 'IGNORE_SIGPIPE',\n 'TRANSACTIONS',\n 'RESERVED',\n 'SECURE_CONNECTION',\n 'MULTI_RESULTS',\n 'TRANSACTIONS',\n 'SESSION_TRACK'\n ];\n if (options && options.multipleStatements) {\n defaultFlags.push('MULTI_STATEMENTS');\n }\n defaultFlags.push('PLUGIN_AUTH');\n defaultFlags.push('PLUGIN_AUTH_LENENC_CLIENT_DATA');\n\n if (options && options.connectAttributes) {\n defaultFlags.push('CONNECT_ATTRS');\n }\n return defaultFlags;\n }\n\n static getCharsetNumber(charset) {\n const num = Charsets[charset.toUpperCase()];\n if (num === undefined) {\n throw new TypeError(`Unknown charset '${charset}'`);\n }\n return num;\n }\n\n static getSSLProfile(name) {\n if (!SSLProfiles) {\n SSLProfiles = require('./constants/ssl_profiles.js');\n }\n const ssl = SSLProfiles[name];\n if (ssl === undefined) {\n throw new TypeError(`Unknown SSL profile '${name}'`);\n }\n return ssl;\n }\n\n static parseUrl(url) {\n const parsedUrl = new URL(url);\n const options = {\n host: parsedUrl.hostname,\n port: parsedUrl.port,\n database: parsedUrl.pathname.substr(1),\n user: parsedUrl.username,\n password: parsedUrl.password\n };\n parsedUrl.searchParams.forEach((value, key) => {\n try {\n // Try to parse this as a JSON expression first\n options[key] = JSON.parse(value);\n } catch (err) {\n // Otherwise assume it is a plain string\n options[key] = value;\n }\n });\n return options;\n }\n}\n\nmodule.exports = ConnectionConfig;\n","'use strict';\n\nconst colors = require('colors/safe');\nconst { LEVEL, MESSAGE } = require('triple-beam');\n\n//\n// Fix colors not appearing in non-tty environments\n//\ncolors.enabled = true;\n\n/**\n * @property {RegExp} hasSpace\n * Simple regex to check for presence of spaces.\n */\nconst hasSpace = /\\s+/;\n\n/*\n * Colorizer format. Wraps the `level` and/or `message` properties\n * of the `info` objects with ANSI color codes based on a few options.\n */\nclass Colorizer {\n constructor(opts = {}) {\n if (opts.colors) {\n this.addColors(opts.colors);\n }\n\n this.options = opts;\n }\n\n /*\n * Adds the colors Object to the set of allColors\n * known by the Colorizer\n *\n * @param {Object} colors Set of color mappings to add.\n */\n static addColors(clrs) {\n const nextColors = Object.keys(clrs).reduce((acc, level) => {\n acc[level] = hasSpace.test(clrs[level])\n ? clrs[level].split(hasSpace)\n : clrs[level];\n\n return acc;\n }, {});\n\n Colorizer.allColors = Object.assign({}, Colorizer.allColors || {}, nextColors);\n return Colorizer.allColors;\n }\n\n /*\n * Adds the colors Object to the set of allColors\n * known by the Colorizer\n *\n * @param {Object} colors Set of color mappings to add.\n */\n addColors(clrs) {\n return Colorizer.addColors(clrs);\n }\n\n /*\n * function colorize (lookup, level, message)\n * Performs multi-step colorization using colors/safe\n */\n colorize(lookup, level, message) {\n if (typeof message === 'undefined') {\n message = level;\n }\n\n //\n // If the color for the level is just a string\n // then attempt to colorize the message with it.\n //\n if (!Array.isArray(Colorizer.allColors[lookup])) {\n return colors[Colorizer.allColors[lookup]](message);\n }\n\n //\n // If it is an Array then iterate over that Array, applying\n // the colors function for each item.\n //\n for (let i = 0, len = Colorizer.allColors[lookup].length; i < len; i++) {\n message = colors[Colorizer.allColors[lookup][i]](message);\n }\n\n return message;\n }\n\n /*\n * function transform (info, opts)\n * Attempts to colorize the { level, message } of the given\n * `logform` info object.\n */\n transform(info, opts) {\n if (opts.all && typeof info[MESSAGE] === 'string') {\n info[MESSAGE] = this.colorize(info[LEVEL], info.level, info[MESSAGE]);\n }\n\n if (opts.level || opts.all || !opts.message) {\n info.level = this.colorize(info[LEVEL], info.level);\n }\n\n if (opts.all || opts.message) {\n info.message = this.colorize(info[LEVEL], info.level, info.message);\n }\n\n return info;\n }\n}\n\n/*\n * function colorize (info)\n * Returns a new instance of the colorize Format that applies\n * level colors to `info` objects. This was previously exposed\n * as { colorize: true } to transports in `winston < 3.0.0`.\n */\nmodule.exports = opts => new Colorizer(opts);\n\n//\n// Attach the Colorizer for registration purposes\n//\nmodule.exports.Colorizer\n = module.exports.Format\n = Colorizer;\n","//\n// Remark: Requiring this file will use the \"safe\" colors API,\n// which will not touch String.prototype.\n//\n// var colors = require('colors/safe');\n// colors.red(\"foo\")\n//\n//\nvar colors = require('./lib/colors');\nmodule['exports'] = colors;\n","'use strict';\n\nvar _require = require('./colorize'),\n Colorizer = _require.Colorizer;\n/*\n * Simple method to register colors with a simpler require\n * path within the module.\n */\n\n\nmodule.exports = function (config) {\n Colorizer.addColors(config.colors || config);\n return config;\n};","/* eslint no-unused-vars: 0 */\n'use strict';\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar _require = require('triple-beam'),\n configs = _require.configs,\n LEVEL = _require.LEVEL,\n MESSAGE = _require.MESSAGE;\n\nvar Padder = /*#__PURE__*/function () {\n function Padder() {\n var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n levels: configs.npm.levels\n };\n\n _classCallCheck(this, Padder);\n\n this.paddings = Padder.paddingForLevels(opts.levels, opts.filler);\n this.options = opts;\n }\n /**\n * Returns the maximum length of keys in the specified `levels` Object.\n * @param {Object} levels Set of all levels to calculate longest level against.\n * @returns {Number} Maximum length of the longest level string.\n */\n\n\n _createClass(Padder, [{\n key: \"transform\",\n\n /**\n * Prepends the padding onto the `message` based on the `LEVEL` of\n * the `info`. This is based on the behavior of `winston@2` which also\n * prepended the level onto the message.\n *\n * See: https://github.com/winstonjs/winston/blob/2.x/lib/winston/logger.js#L198-L201\n *\n * @param {Info} info Logform info object\n * @param {Object} opts Options passed along to this instance.\n * @returns {Info} Modified logform info object.\n */\n value: function transform(info, opts) {\n info.message = \"\".concat(this.paddings[info[LEVEL]]).concat(info.message);\n\n if (info[MESSAGE]) {\n info[MESSAGE] = \"\".concat(this.paddings[info[LEVEL]]).concat(info[MESSAGE]);\n }\n\n return info;\n }\n }], [{\n key: \"getLongestLevel\",\n value: function getLongestLevel(levels) {\n var lvls = Object.keys(levels).map(function (level) {\n return level.length;\n });\n return Math.max.apply(Math, _toConsumableArray(lvls));\n }\n /**\n * Returns the padding for the specified `level` assuming that the\n * maximum length of all levels it's associated with is `maxLength`.\n * @param {String} level Level to calculate padding for.\n * @param {String} filler Repeatable text to use for padding.\n * @param {Number} maxLength Length of the longest level\n * @returns {String} Padding string for the `level`\n */\n\n }, {\n key: \"paddingForLevel\",\n value: function paddingForLevel(level, filler, maxLength) {\n var targetLen = maxLength + 1 - level.length;\n var rep = Math.floor(targetLen / filler.length);\n var padding = \"\".concat(filler).concat(filler.repeat(rep));\n return padding.slice(0, targetLen);\n }\n /**\n * Returns an object with the string paddings for the given `levels`\n * using the specified `filler`.\n * @param {Object} levels Set of all levels to calculate padding for.\n * @param {String} filler Repeatable text to use for padding.\n * @returns {Object} Mapping of level to desired padding.\n */\n\n }, {\n key: \"paddingForLevels\",\n value: function paddingForLevels(levels) {\n var filler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';\n var maxLength = Padder.getLongestLevel(levels);\n return Object.keys(levels).reduce(function (acc, level) {\n acc[level] = Padder.paddingForLevel(level, filler, maxLength);\n return acc;\n }, {});\n }\n }]);\n\n return Padder;\n}();\n/*\n * function padLevels (info)\n * Returns a new instance of the padLevels Format which pads\n * levels to be the same length. This was previously exposed as\n * { padLevels: true } to transports in `winston < 3.0.0`.\n */\n\n\nmodule.exports = function (opts) {\n return new Padder(opts);\n};\n\nmodule.exports.Padder = module.exports.Format = Padder;","'use strict';\n\nif (typeof process === 'undefined' ||\n !process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = { nextTick: nextTick };\n} else {\n module.exports = process\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n","/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/**/\n\nmodule.exports = Duplex;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nvar Readable = require('./_stream_readable');\nvar Writable = require('./_stream_writable');\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};","//\n// Select the correct build version depending on the environment.\n//\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./production.js');\n} else {\n module.exports = require('./development.js');\n}\n","/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n","var defaultFunctionName = '';\n/**\n * Safely extract function name from itself\n */\nexport function getFunctionName(fn) {\n try {\n if (!fn || typeof fn !== 'function') {\n return defaultFunctionName;\n }\n return fn.name || defaultFunctionName;\n }\n catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n return defaultFunctionName;\n }\n}\n//# sourceMappingURL=stacktrace.js.map","import { __assign, __read, __spread } from \"tslib\";\nimport { dateTimestampInSeconds, getGlobalObject, isPlainObject, isThenable, SyncPromise } from '@sentry/utils';\n/**\n * Absolute maximum number of breadcrumbs added to an event.\n * The `maxBreadcrumbs` option cannot be higher than this value.\n */\nvar MAX_BREADCRUMBS = 100;\n/**\n * Holds additional event information. {@link Scope.applyToEvent} will be\n * called by the client before an event will be sent.\n */\nvar Scope = /** @class */ (function () {\n function Scope() {\n /** Flag if notifying is happening. */\n this._notifyingListeners = false;\n /** Callback for client to receive scope changes. */\n this._scopeListeners = [];\n /** Callback list that will be called after {@link applyToEvent}. */\n this._eventProcessors = [];\n /** Array of breadcrumbs. */\n this._breadcrumbs = [];\n /** User */\n this._user = {};\n /** Tags */\n this._tags = {};\n /** Extra */\n this._extra = {};\n /** Contexts */\n this._contexts = {};\n }\n /**\n * Inherit values from the parent scope.\n * @param scope to clone.\n */\n Scope.clone = function (scope) {\n var newScope = new Scope();\n if (scope) {\n newScope._breadcrumbs = __spread(scope._breadcrumbs);\n newScope._tags = __assign({}, scope._tags);\n newScope._extra = __assign({}, scope._extra);\n newScope._contexts = __assign({}, scope._contexts);\n newScope._user = scope._user;\n newScope._level = scope._level;\n newScope._span = scope._span;\n newScope._session = scope._session;\n newScope._transactionName = scope._transactionName;\n newScope._fingerprint = scope._fingerprint;\n newScope._eventProcessors = __spread(scope._eventProcessors);\n newScope._requestSession = scope._requestSession;\n }\n return newScope;\n };\n /**\n * Add internal on change listener. Used for sub SDKs that need to store the scope.\n * @hidden\n */\n Scope.prototype.addScopeListener = function (callback) {\n this._scopeListeners.push(callback);\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.addEventProcessor = function (callback) {\n this._eventProcessors.push(callback);\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setUser = function (user) {\n this._user = user || {};\n if (this._session) {\n this._session.update({ user: user });\n }\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getUser = function () {\n return this._user;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getRequestSession = function () {\n return this._requestSession;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setRequestSession = function (requestSession) {\n this._requestSession = requestSession;\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setTags = function (tags) {\n this._tags = __assign(__assign({}, this._tags), tags);\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setTag = function (key, value) {\n var _a;\n this._tags = __assign(__assign({}, this._tags), (_a = {}, _a[key] = value, _a));\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setExtras = function (extras) {\n this._extra = __assign(__assign({}, this._extra), extras);\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setExtra = function (key, extra) {\n var _a;\n this._extra = __assign(__assign({}, this._extra), (_a = {}, _a[key] = extra, _a));\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setFingerprint = function (fingerprint) {\n this._fingerprint = fingerprint;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setLevel = function (level) {\n this._level = level;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setTransactionName = function (name) {\n this._transactionName = name;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * Can be removed in major version.\n * @deprecated in favor of {@link this.setTransactionName}\n */\n Scope.prototype.setTransaction = function (name) {\n return this.setTransactionName(name);\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setContext = function (key, context) {\n var _a;\n if (context === null) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._contexts[key];\n }\n else {\n this._contexts = __assign(__assign({}, this._contexts), (_a = {}, _a[key] = context, _a));\n }\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setSpan = function (span) {\n this._span = span;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getSpan = function () {\n return this._span;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getTransaction = function () {\n var _a, _b, _c, _d;\n // often, this span will be a transaction, but it's not guaranteed to be\n var span = this.getSpan();\n // try it the new way first\n if ((_a = span) === null || _a === void 0 ? void 0 : _a.transaction) {\n return (_b = span) === null || _b === void 0 ? void 0 : _b.transaction;\n }\n // fallback to the old way (known bug: this only finds transactions with sampled = true)\n if ((_d = (_c = span) === null || _c === void 0 ? void 0 : _c.spanRecorder) === null || _d === void 0 ? void 0 : _d.spans[0]) {\n return span.spanRecorder.spans[0];\n }\n // neither way found a transaction\n return undefined;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.setSession = function (session) {\n if (!session) {\n delete this._session;\n }\n else {\n this._session = session;\n }\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.getSession = function () {\n return this._session;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.update = function (captureContext) {\n if (!captureContext) {\n return this;\n }\n if (typeof captureContext === 'function') {\n var updatedScope = captureContext(this);\n return updatedScope instanceof Scope ? updatedScope : this;\n }\n if (captureContext instanceof Scope) {\n this._tags = __assign(__assign({}, this._tags), captureContext._tags);\n this._extra = __assign(__assign({}, this._extra), captureContext._extra);\n this._contexts = __assign(__assign({}, this._contexts), captureContext._contexts);\n if (captureContext._user && Object.keys(captureContext._user).length) {\n this._user = captureContext._user;\n }\n if (captureContext._level) {\n this._level = captureContext._level;\n }\n if (captureContext._fingerprint) {\n this._fingerprint = captureContext._fingerprint;\n }\n if (captureContext._requestSession) {\n this._requestSession = captureContext._requestSession;\n }\n }\n else if (isPlainObject(captureContext)) {\n // eslint-disable-next-line no-param-reassign\n captureContext = captureContext;\n this._tags = __assign(__assign({}, this._tags), captureContext.tags);\n this._extra = __assign(__assign({}, this._extra), captureContext.extra);\n this._contexts = __assign(__assign({}, this._contexts), captureContext.contexts);\n if (captureContext.user) {\n this._user = captureContext.user;\n }\n if (captureContext.level) {\n this._level = captureContext.level;\n }\n if (captureContext.fingerprint) {\n this._fingerprint = captureContext.fingerprint;\n }\n if (captureContext.requestSession) {\n this._requestSession = captureContext.requestSession;\n }\n }\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.clear = function () {\n this._breadcrumbs = [];\n this._tags = {};\n this._extra = {};\n this._user = {};\n this._contexts = {};\n this._level = undefined;\n this._transactionName = undefined;\n this._fingerprint = undefined;\n this._requestSession = undefined;\n this._span = undefined;\n this._session = undefined;\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.addBreadcrumb = function (breadcrumb, maxBreadcrumbs) {\n var maxCrumbs = typeof maxBreadcrumbs === 'number' ? Math.min(maxBreadcrumbs, MAX_BREADCRUMBS) : MAX_BREADCRUMBS;\n // No data has been changed, so don't notify scope listeners\n if (maxCrumbs <= 0) {\n return this;\n }\n var mergedBreadcrumb = __assign({ timestamp: dateTimestampInSeconds() }, breadcrumb);\n this._breadcrumbs = __spread(this._breadcrumbs, [mergedBreadcrumb]).slice(-maxCrumbs);\n this._notifyScopeListeners();\n return this;\n };\n /**\n * @inheritDoc\n */\n Scope.prototype.clearBreadcrumbs = function () {\n this._breadcrumbs = [];\n this._notifyScopeListeners();\n return this;\n };\n /**\n * Applies the current context and fingerprint to the event.\n * Note that breadcrumbs will be added by the client.\n * Also if the event has already breadcrumbs on it, we do not merge them.\n * @param event Event\n * @param hint May contain additional information about the original exception.\n * @hidden\n */\n Scope.prototype.applyToEvent = function (event, hint) {\n var _a;\n if (this._extra && Object.keys(this._extra).length) {\n event.extra = __assign(__assign({}, this._extra), event.extra);\n }\n if (this._tags && Object.keys(this._tags).length) {\n event.tags = __assign(__assign({}, this._tags), event.tags);\n }\n if (this._user && Object.keys(this._user).length) {\n event.user = __assign(__assign({}, this._user), event.user);\n }\n if (this._contexts && Object.keys(this._contexts).length) {\n event.contexts = __assign(__assign({}, this._contexts), event.contexts);\n }\n if (this._level) {\n event.level = this._level;\n }\n if (this._transactionName) {\n event.transaction = this._transactionName;\n }\n // We want to set the trace context for normal events only if there isn't already\n // a trace context on the event. There is a product feature in place where we link\n // errors with transaction and it relies on that.\n if (this._span) {\n event.contexts = __assign({ trace: this._span.getTraceContext() }, event.contexts);\n var transactionName = (_a = this._span.transaction) === null || _a === void 0 ? void 0 : _a.name;\n if (transactionName) {\n event.tags = __assign({ transaction: transactionName }, event.tags);\n }\n }\n this._applyFingerprint(event);\n event.breadcrumbs = __spread((event.breadcrumbs || []), this._breadcrumbs);\n event.breadcrumbs = event.breadcrumbs.length > 0 ? event.breadcrumbs : undefined;\n return this._notifyEventProcessors(__spread(getGlobalEventProcessors(), this._eventProcessors), event, hint);\n };\n /**\n * This will be called after {@link applyToEvent} is finished.\n */\n Scope.prototype._notifyEventProcessors = function (processors, event, hint, index) {\n var _this = this;\n if (index === void 0) { index = 0; }\n return new SyncPromise(function (resolve, reject) {\n var processor = processors[index];\n if (event === null || typeof processor !== 'function') {\n resolve(event);\n }\n else {\n var result = processor(__assign({}, event), hint);\n if (isThenable(result)) {\n void result\n .then(function (final) { return _this._notifyEventProcessors(processors, final, hint, index + 1).then(resolve); })\n .then(null, reject);\n }\n else {\n void _this._notifyEventProcessors(processors, result, hint, index + 1)\n .then(resolve)\n .then(null, reject);\n }\n }\n });\n };\n /**\n * This will be called on every set call.\n */\n Scope.prototype._notifyScopeListeners = function () {\n var _this = this;\n // We need this check for this._notifyingListeners to be able to work on scope during updates\n // If this check is not here we'll produce endless recursion when something is done with the scope\n // during the callback.\n if (!this._notifyingListeners) {\n this._notifyingListeners = true;\n this._scopeListeners.forEach(function (callback) {\n callback(_this);\n });\n this._notifyingListeners = false;\n }\n };\n /**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\n Scope.prototype._applyFingerprint = function (event) {\n // Make sure it's an array first and we actually have something in place\n event.fingerprint = event.fingerprint\n ? Array.isArray(event.fingerprint)\n ? event.fingerprint\n : [event.fingerprint]\n : [];\n // If we have something on the scope, then merge it with event\n if (this._fingerprint) {\n event.fingerprint = event.fingerprint.concat(this._fingerprint);\n }\n // If we have no data at all, remove empty array default\n if (event.fingerprint && !event.fingerprint.length) {\n delete event.fingerprint;\n }\n };\n return Scope;\n}());\nexport { Scope };\n/**\n * Returns the global event processors.\n */\nfunction getGlobalEventProcessors() {\n /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */\n var global = getGlobalObject();\n global.__SENTRY__ = global.__SENTRY__ || {};\n global.__SENTRY__.globalEventProcessors = global.__SENTRY__.globalEventProcessors || [];\n return global.__SENTRY__.globalEventProcessors;\n /* eslint-enable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */\n}\n/**\n * Add a EventProcessor to be kept globally.\n * @param callback EventProcessor to add\n */\nexport function addGlobalEventProcessor(callback) {\n getGlobalEventProcessors().push(callback);\n}\n//# sourceMappingURL=scope.js.map","export var TransactionSamplingMethod;\n(function (TransactionSamplingMethod) {\n TransactionSamplingMethod[\"Explicit\"] = \"explicitly_set\";\n TransactionSamplingMethod[\"Sampler\"] = \"client_sampler\";\n TransactionSamplingMethod[\"Rate\"] = \"client_rate\";\n TransactionSamplingMethod[\"Inheritance\"] = \"inheritance\";\n})(TransactionSamplingMethod || (TransactionSamplingMethod = {}));\n//# sourceMappingURL=transaction.js.map","module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","'use strict';\n\nconst SqlString = require('sqlstring');\n\nconst Connection = require('./lib/connection.js');\nconst ConnectionConfig = require('./lib/connection_config.js');\nconst parserCache = require('./lib/parsers/parser_cache');\n\nexports.createConnection = function(opts) {\n return new Connection({ config: new ConnectionConfig(opts) });\n};\n\nexports.connect = exports.createConnection;\nexports.Connection = Connection;\n\nconst Pool = require('./lib/pool.js');\nconst PoolCluster = require('./lib/pool_cluster.js');\n\nexports.createPool = function(config) {\n const PoolConfig = require('./lib/pool_config.js');\n return new Pool({ config: new PoolConfig(config) });\n};\n\nexports.createPoolCluster = function(config) {\n const PoolCluster = require('./lib/pool_cluster.js');\n return new PoolCluster(config);\n};\n\nexports.createQuery = Connection.createQuery;\n\nexports.Pool = Pool;\n\nexports.PoolCluster = PoolCluster;\n\nexports.createServer = function(handler) {\n const Server = require('./lib/server.js');\n const s = new Server();\n if (handler) {\n s.on('connection', handler);\n }\n return s;\n};\n\nexports.PoolConnection = require('./lib/pool_connection');\nexports.escape = SqlString.escape;\nexports.escapeId = SqlString.escapeId;\nexports.format = SqlString.format;\nexports.raw = SqlString.raw;\n\nexports.__defineGetter__(\n 'createConnectionPromise',\n () => require('./promise.js').createConnection\n);\n\nexports.__defineGetter__(\n 'createPoolPromise',\n () => require('./promise.js').createPool\n);\n\nexports.__defineGetter__(\n 'createPoolClusterPromise',\n () => require('./promise.js').createPoolCluster\n);\n\nexports.__defineGetter__('Types', () => require('./lib/constants/types.js'));\n\nexports.__defineGetter__('Charsets', () =>\n require('./lib/constants/charsets.js')\n);\n\nexports.__defineGetter__('CharsetToEncoding', () =>\n require('./lib/constants/charset_encodings.js')\n);\n\nexports.setMaxParserCache = function(max) {\n parserCache.setMaxCache(max);\n};\n\nexports.clearParserCache = function() {\n parserCache.clearCache();\n};\n","module.exports = require(\"net\");","module.exports = require(\"timers\");","module.exports = require(\"zlib\");","'use strict';\n\nconst LRU = require('lru-cache');\n\nconst parserCache = new LRU({\n max: 15000\n});\n\nfunction keyFromFields(type, fields, options, config) {\n let res =\n `${type}` +\n `/${typeof options.nestTables}` +\n `/${options.nestTables}` +\n `/${options.rowsAsArray}` +\n `/${options.supportBigNumbers || config.supportBigNumbers}` +\n `/${options.bigNumberStrings || config.bigNumberStrings}` +\n `/${typeof options.typeCast}` +\n `/${options.timezone || config.timezone}` +\n `/${options.decimalNumbers}` +\n `/${options.dateStrings}`;\n for (let i = 0; i < fields.length; ++i) {\n const field = fields[i];\n res += `/${field.name}:${field.columnType}:${field.length}:${field.schema}:${field.table}:${field.flags}:${field.characterSet}`;\n }\n return res;\n}\n\nfunction getParser(type, fields, options, config, compiler) {\n const key = keyFromFields(type, fields, options, config);\n let parser = parserCache.get(key);\n\n if (parser) {\n return parser;\n }\n\n parser = compiler(fields, options, config);\n parserCache.set(key, parser);\n return parser;\n}\n\nfunction setMaxCache(max) {\n parserCache.max = max;\n}\n\nfunction clearCache() {\n parserCache.reset();\n}\n\nmodule.exports = {\n getParser: getParser,\n setMaxCache: setMaxCache,\n clearCache: clearCache\n};\n","'use strict';\n\nconst { Colorizer } = require('./colorize');\n\n/*\n * Simple method to register colors with a simpler require\n * path within the module.\n */\nmodule.exports = config => {\n Colorizer.addColors(config.colors || config);\n return config;\n};\n","/* eslint no-unused-vars: 0 */\n'use strict';\n\nconst { configs, LEVEL, MESSAGE } = require('triple-beam');\n\nclass Padder {\n constructor(opts = { levels: configs.npm.levels }) {\n this.paddings = Padder.paddingForLevels(opts.levels, opts.filler);\n this.options = opts;\n }\n\n /**\n * Returns the maximum length of keys in the specified `levels` Object.\n * @param {Object} levels Set of all levels to calculate longest level against.\n * @returns {Number} Maximum length of the longest level string.\n */\n static getLongestLevel(levels) {\n const lvls = Object.keys(levels).map(level => level.length);\n return Math.max(...lvls);\n }\n\n /**\n * Returns the padding for the specified `level` assuming that the\n * maximum length of all levels it's associated with is `maxLength`.\n * @param {String} level Level to calculate padding for.\n * @param {String} filler Repeatable text to use for padding.\n * @param {Number} maxLength Length of the longest level\n * @returns {String} Padding string for the `level`\n */\n static paddingForLevel(level, filler, maxLength) {\n const targetLen = maxLength + 1 - level.length;\n const rep = Math.floor(targetLen / filler.length);\n const padding = `${filler}${filler.repeat(rep)}`;\n return padding.slice(0, targetLen);\n }\n\n /**\n * Returns an object with the string paddings for the given `levels`\n * using the specified `filler`.\n * @param {Object} levels Set of all levels to calculate padding for.\n * @param {String} filler Repeatable text to use for padding.\n * @returns {Object} Mapping of level to desired padding.\n */\n static paddingForLevels(levels, filler = ' ') {\n const maxLength = Padder.getLongestLevel(levels);\n return Object.keys(levels).reduce((acc, level) => {\n acc[level] = Padder.paddingForLevel(level, filler, maxLength);\n return acc;\n }, {});\n }\n\n /**\n * Prepends the padding onto the `message` based on the `LEVEL` of\n * the `info`. This is based on the behavior of `winston@2` which also\n * prepended the level onto the message.\n *\n * See: https://github.com/winstonjs/winston/blob/2.x/lib/winston/logger.js#L198-L201\n *\n * @param {Info} info Logform info object\n * @param {Object} opts Options passed along to this instance.\n * @returns {Info} Modified logform info object.\n */\n transform(info, opts) {\n info.message = `${this.paddings[info[LEVEL]]}${info.message}`;\n if (info[MESSAGE]) {\n info[MESSAGE] = `${this.paddings[info[LEVEL]]}${info[MESSAGE]}`;\n }\n\n return info;\n }\n}\n\n/*\n * function padLevels (info)\n * Returns a new instance of the padLevels Format which pads\n * levels to be the same length. This was previously exposed as\n * { padLevels: true } to transports in `winston < 3.0.0`.\n */\nmodule.exports = opts => new Padder(opts);\n\nmodule.exports.Padder\n = module.exports.Format\n = Padder;\n","'use strict';\n\nconst format = require('./format');\nconst { MESSAGE } = require('triple-beam');\nconst jsonStringify = require('fast-safe-stringify');\n\n/*\n * function replacer (key, value)\n * Handles proper stringification of Buffer and bigint output.\n */\nfunction replacer(key, value) {\n if (value instanceof Buffer)\n return value.toString('base64');\n // eslint-disable-next-line valid-typeof\n if (typeof value === 'bigint')\n return value.toString();\n return value;\n}\n\n/*\n * function json (info)\n * Returns a new instance of the JSON format that turns a log `info`\n * object into pure JSON. This was previously exposed as { json: true }\n * to transports in `winston < 3.0.0`.\n */\nmodule.exports = format((info, opts = {}) => {\n info[MESSAGE] = (opts.stable ? jsonStringify.stableStringify\n : jsonStringify)(info, opts.replacer || replacer, opts.space);\n return info;\n});\n","'use strict';\n\nvar format = require('./format');\n/*\n * function align (info)\n * Returns a new instance of the align Format which adds a `\\t`\n * delimiter before the message to properly align it in the same place.\n * It was previously { align: true } in winston < 3.0.0\n */\n\n\nmodule.exports = format(function (info) {\n info.message = \"\\t\".concat(info.message);\n return info;\n});","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar _require = require('./colorize'),\n Colorizer = _require.Colorizer;\n\nvar _require2 = require('./pad-levels'),\n Padder = _require2.Padder;\n\nvar _require3 = require('triple-beam'),\n configs = _require3.configs,\n MESSAGE = _require3.MESSAGE;\n/**\n * Cli format class that handles initial state for a a separate\n * Colorizer and Padder instance.\n */\n\n\nvar CliFormat = /*#__PURE__*/function () {\n function CliFormat() {\n var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, CliFormat);\n\n if (!opts.levels) {\n opts.levels = configs.npm.levels;\n }\n\n this.colorizer = new Colorizer(opts);\n this.padder = new Padder(opts);\n this.options = opts;\n }\n /*\n * function transform (info, opts)\n * Attempts to both:\n * 1. Pad the { level }\n * 2. Colorize the { level, message }\n * of the given `logform` info object depending on the `opts`.\n */\n\n\n _createClass(CliFormat, [{\n key: \"transform\",\n value: function transform(info, opts) {\n this.colorizer.transform(this.padder.transform(info, opts), opts);\n info[MESSAGE] = \"\".concat(info.level, \":\").concat(info.message);\n return info;\n }\n }]);\n\n return CliFormat;\n}();\n/*\n * function cli (opts)\n * Returns a new instance of the CLI format that turns a log\n * `info` object into the same format previously available\n * in `winston.cli()` in `winston < 3.0.0`.\n */\n\n\nmodule.exports = function (opts) {\n return new CliFormat(opts);\n}; //\n// Attach the CliFormat for registration purposes\n//\n\n\nmodule.exports.Format = CliFormat;","'use strict';\n\nvar format = require('./format');\n/*\n * function cascade(formats)\n * Returns a function that invokes the `._format` function in-order\n * for the specified set of `formats`. In this manner we say that Formats\n * are \"pipe-like\", but not a pure pumpify implementation. Since there is no back\n * pressure we can remove all of the \"readable\" plumbing in Node streams.\n */\n\n\nfunction cascade(formats) {\n if (!formats.every(isValidFormat)) {\n return;\n }\n\n return function (info) {\n var obj = info;\n\n for (var i = 0; i < formats.length; i++) {\n obj = formats[i].transform(obj, formats[i].options);\n\n if (!obj) {\n return false;\n }\n }\n\n return obj;\n };\n}\n/*\n * function isValidFormat(format)\n * If the format does not define a `transform` function throw an error\n * with more detailed usage.\n */\n\n\nfunction isValidFormat(fmt) {\n if (typeof fmt.transform !== 'function') {\n throw new Error(['No transform function found on format. Did you create a format instance?', 'const myFormat = format(formatFn);', 'const instance = myFormat();'].join('\\n'));\n }\n\n return true;\n}\n/*\n * function combine (info)\n * Returns a new instance of the combine Format which combines the specified\n * formats into a new format. This is similar to a pipe-chain in transform streams.\n * We choose to combine the prototypes this way because there is no back pressure in\n * an in-memory transform chain.\n */\n\n\nmodule.exports = function () {\n for (var _len = arguments.length, formats = new Array(_len), _key = 0; _key < _len; _key++) {\n formats[_key] = arguments[_key];\n }\n\n var combinedFormat = format(cascade(formats));\n var instance = combinedFormat();\n instance.Format = combinedFormat.Format;\n return instance;\n}; //\n// Export the cascade method for use in cli and other\n// combined formats that should not be assumed to be\n// singletons.\n//\n\n\nmodule.exports.cascade = cascade;","'use strict';\n\nvar format = require('./format');\n\nvar _require = require('triple-beam'),\n MESSAGE = _require.MESSAGE;\n\nvar jsonStringify = require('fast-safe-stringify');\n/*\n * function replacer (key, value)\n * Handles proper stringification of Buffer and bigint output.\n */\n\n\nfunction replacer(key, value) {\n if (value instanceof Buffer) return value.toString('base64'); // eslint-disable-next-line valid-typeof\n\n if (typeof value === 'bigint') return value.toString();\n return value;\n}\n/*\n * function json (info)\n * Returns a new instance of the JSON format that turns a log `info`\n * object into pure JSON. This was previously exposed as { json: true }\n * to transports in `winston < 3.0.0`.\n */\n\n\nmodule.exports = format(function (info) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n info[MESSAGE] = (opts.stable ? jsonStringify.stableStringify : jsonStringify)(info, opts.replacer || replacer, opts.space);\n return info;\n});","'use strict';\n\nvar format = require('./format');\n/*\n * function label (info)\n * Returns a new instance of the label Format which adds the specified\n * `opts.label` before the message. This was previously exposed as\n * { label: 'my label' } to transports in `winston < 3.0.0`.\n */\n\n\nmodule.exports = format(function (info, opts) {\n if (opts.message) {\n info.message = \"[\".concat(opts.label, \"] \").concat(info.message);\n return info;\n }\n\n info.label = opts.label;\n return info;\n});","'use strict';\n\nvar format = require('./format');\n\nvar _require = require('triple-beam'),\n MESSAGE = _require.MESSAGE;\n\nvar jsonStringify = require('fast-safe-stringify');\n/*\n * function logstash (info)\n * Returns a new instance of the LogStash Format that turns a\n * log `info` object into pure JSON with the appropriate logstash\n * options. This was previously exposed as { logstash: true }\n * to transports in `winston < 3.0.0`.\n */\n\n\nmodule.exports = format(function (info) {\n var logstash = {};\n\n if (info.message) {\n logstash['@message'] = info.message;\n delete info.message;\n }\n\n if (info.timestamp) {\n logstash['@timestamp'] = info.timestamp;\n delete info.timestamp;\n }\n\n logstash['@fields'] = info;\n info[MESSAGE] = jsonStringify(logstash);\n return info;\n});","'use strict';\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar format = require('./format');\n\nfunction fillExcept(info, fillExceptKeys, metadataKey) {\n var savedKeys = fillExceptKeys.reduce(function (acc, key) {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n var metadata = Object.keys(info).reduce(function (acc, key) {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n Object.assign(info, savedKeys, _defineProperty({}, metadataKey, metadata));\n return info;\n}\n\nfunction fillWith(info, fillWithKeys, metadataKey) {\n info[metadataKey] = fillWithKeys.reduce(function (acc, key) {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n return info;\n}\n/**\n * Adds in a \"metadata\" object to collect extraneous data, similar to the metadata\n * object in winston 2.x.\n */\n\n\nmodule.exports = format(function (info) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var metadataKey = 'metadata';\n\n if (opts.key) {\n metadataKey = opts.key;\n }\n\n var fillExceptKeys = [];\n\n if (!opts.fillExcept && !opts.fillWith) {\n fillExceptKeys.push('level');\n fillExceptKeys.push('message');\n }\n\n if (opts.fillExcept) {\n fillExceptKeys = opts.fillExcept;\n }\n\n if (fillExceptKeys.length > 0) {\n return fillExcept(info, fillExceptKeys, metadataKey);\n }\n\n if (opts.fillWith) {\n return fillWith(info, opts.fillWith, metadataKey);\n }\n\n return info;\n});","'use strict';\n\nvar inspect = require('util').inspect;\n\nvar format = require('./format');\n\nvar _require = require('triple-beam'),\n LEVEL = _require.LEVEL,\n MESSAGE = _require.MESSAGE,\n SPLAT = _require.SPLAT;\n/*\n * function prettyPrint (info)\n * Returns a new instance of the prettyPrint Format that \"prettyPrint\"\n * serializes `info` objects. This was previously exposed as\n * { prettyPrint: true } to transports in `winston < 3.0.0`.\n */\n\n\nmodule.exports = format(function (info) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n //\n // info[{LEVEL, MESSAGE, SPLAT}] are enumerable here. Since they\n // are internal, we remove them before util.inspect so they\n // are not printed.\n //\n var stripped = Object.assign({}, info); // Remark (indexzero): update this technique in April 2019\n // when node@6 is EOL\n\n delete stripped[LEVEL];\n delete stripped[MESSAGE];\n delete stripped[SPLAT];\n info[MESSAGE] = inspect(stripped, false, opts.depth || null, opts.colorize);\n return info;\n});","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar _require = require('triple-beam'),\n MESSAGE = _require.MESSAGE;\n\nvar Printf = /*#__PURE__*/function () {\n function Printf(templateFn) {\n _classCallCheck(this, Printf);\n\n this.template = templateFn;\n }\n\n _createClass(Printf, [{\n key: \"transform\",\n value: function transform(info) {\n info[MESSAGE] = this.template(info);\n return info;\n }\n }]);\n\n return Printf;\n}();\n/*\n * function printf (templateFn)\n * Returns a new instance of the printf Format that creates an\n * intermediate prototype to store the template string-based formatter\n * function.\n */\n\n\nmodule.exports = function (opts) {\n return new Printf(opts);\n};\n\nmodule.exports.Printf = module.exports.Format = Printf;","/* eslint no-undefined: 0 */\n'use strict';\n\nvar format = require('./format');\n\nvar _require = require('triple-beam'),\n MESSAGE = _require.MESSAGE;\n\nvar jsonStringify = require('fast-safe-stringify');\n/*\n * function simple (info)\n * Returns a new instance of the simple format TransformStream\n * which writes a simple representation of logs.\n *\n * const { level, message, splat, ...rest } = info;\n *\n * ${level}: ${message} if rest is empty\n * ${level}: ${message} ${JSON.stringify(rest)} otherwise\n */\n\n\nmodule.exports = format(function (info) {\n var stringifiedRest = jsonStringify(Object.assign({}, info, {\n level: undefined,\n message: undefined,\n splat: undefined\n }));\n var padding = info.padding && info.padding[info.level] || '';\n\n if (stringifiedRest !== '{}') {\n info[MESSAGE] = \"\".concat(info.level, \":\").concat(padding, \" \").concat(info.message, \" \").concat(stringifiedRest);\n } else {\n info[MESSAGE] = \"\".concat(info.level, \":\").concat(padding, \" \").concat(info.message);\n }\n\n return info;\n});","'use strict';\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar util = require('util');\n\nvar _require = require('triple-beam'),\n SPLAT = _require.SPLAT;\n/**\n * Captures the number of format (i.e. %s strings) in a given string.\n * Based on `util.format`, see Node.js source:\n * https://github.com/nodejs/node/blob/b1c8f15c5f169e021f7c46eb7b219de95fe97603/lib/util.js#L201-L230\n * @type {RegExp}\n */\n\n\nvar formatRegExp = /%[scdjifoO%]/g;\n/**\n * Captures the number of escaped % signs in a format string (i.e. %s strings).\n * @type {RegExp}\n */\n\nvar escapedPercent = /%%/g;\n\nvar Splatter = /*#__PURE__*/function () {\n function Splatter(opts) {\n _classCallCheck(this, Splatter);\n\n this.options = opts;\n }\n /**\n * Check to see if tokens <= splat.length, assign { splat, meta } into the\n * `info` accordingly, and write to this instance.\n *\n * @param {Info} info Logform info message.\n * @param {String[]} tokens Set of string interpolation tokens.\n * @returns {Info} Modified info message\n * @private\n */\n\n\n _createClass(Splatter, [{\n key: \"_splat\",\n value: function _splat(info, tokens) {\n var msg = info.message;\n var splat = info[SPLAT] || info.splat || [];\n var percents = msg.match(escapedPercent);\n var escapes = percents && percents.length || 0; // The expected splat is the number of tokens minus the number of escapes\n // e.g.\n // - { expectedSplat: 3 } '%d %s %j'\n // - { expectedSplat: 5 } '[%s] %d%% %d%% %s %j'\n //\n // Any \"meta\" will be arugments in addition to the expected splat size\n // regardless of type. e.g.\n //\n // logger.log('info', '%d%% %s %j', 100, 'wow', { such: 'js' }, { thisIsMeta: true });\n // would result in splat of four (4), but only three (3) are expected. Therefore:\n //\n // extraSplat = 3 - 4 = -1\n // metas = [100, 'wow', { such: 'js' }, { thisIsMeta: true }].splice(-1, -1 * -1);\n // splat = [100, 'wow', { such: 'js' }]\n\n var expectedSplat = tokens.length - escapes;\n var extraSplat = expectedSplat - splat.length;\n var metas = extraSplat < 0 ? splat.splice(extraSplat, -1 * extraSplat) : []; // Now that { splat } has been separated from any potential { meta }. we\n // can assign this to the `info` object and write it to our format stream.\n // If the additional metas are **NOT** objects or **LACK** enumerable properties\n // you are going to have a bad time.\n\n var metalen = metas.length;\n\n if (metalen) {\n for (var i = 0; i < metalen; i++) {\n Object.assign(info, metas[i]);\n }\n }\n\n info.message = util.format.apply(util, [msg].concat(_toConsumableArray(splat)));\n return info;\n }\n /**\n * Transforms the `info` message by using `util.format` to complete\n * any `info.message` provided it has string interpolation tokens.\n * If no tokens exist then `info` is immutable.\n *\n * @param {Info} info Logform info message.\n * @param {Object} opts Options for this instance.\n * @returns {Info} Modified info message\n */\n\n }, {\n key: \"transform\",\n value: function transform(info) {\n var msg = info.message;\n var splat = info[SPLAT] || info.splat; // No need to process anything if splat is undefined\n\n if (!splat || !splat.length) {\n return info;\n } // Extract tokens, if none available default to empty array to\n // ensure consistancy in expected results\n\n\n var tokens = msg && msg.match && msg.match(formatRegExp); // This condition will take care of inputs with info[SPLAT]\n // but no tokens present\n\n if (!tokens && (splat || splat.length)) {\n var metas = splat.length > 1 ? splat.splice(0) : splat; // Now that { splat } has been separated from any potential { meta }. we\n // can assign this to the `info` object and write it to our format stream.\n // If the additional metas are **NOT** objects or **LACK** enumerable properties\n // you are going to have a bad time.\n\n var metalen = metas.length;\n\n if (metalen) {\n for (var i = 0; i < metalen; i++) {\n Object.assign(info, metas[i]);\n }\n }\n\n return info;\n }\n\n if (tokens) {\n return this._splat(info, tokens);\n }\n\n return info;\n }\n }]);\n\n return Splatter;\n}();\n/*\n * function splat (info)\n * Returns a new instance of the splat format TransformStream\n * which performs string interpolation from `info` objects. This was\n * previously exposed implicitly in `winston < 3.0.0`.\n */\n\n\nmodule.exports = function (opts) {\n return new Splatter(opts);\n};","'use strict';\n\nvar fecha = require('fecha');\n\nvar format = require('./format');\n/*\n * function timestamp (info)\n * Returns a new instance of the timestamp Format which adds a timestamp\n * to the info. It was previously available in winston < 3.0.0 as:\n *\n * - { timestamp: true } // `new Date.toISOString()`\n * - { timestamp: function:String } // Value returned by `timestamp()`\n */\n\n\nmodule.exports = format(function (info) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (opts.format) {\n info.timestamp = typeof opts.format === 'function' ? opts.format() : fecha.format(new Date(), opts.format);\n }\n\n if (!info.timestamp) {\n info.timestamp = new Date().toISOString();\n }\n\n if (opts.alias) {\n info[opts.alias] = info.timestamp;\n }\n\n return info;\n});","'use strict';\n\nvar colors = require('colors/safe');\n\nvar format = require('./format');\n\nvar _require = require('triple-beam'),\n MESSAGE = _require.MESSAGE;\n/*\n * function uncolorize (info)\n * Returns a new instance of the uncolorize Format that strips colors\n * from `info` objects. This was previously exposed as { stripColors: true }\n * to transports in `winston < 3.0.0`.\n */\n\n\nmodule.exports = format(function (info, opts) {\n if (opts.level !== false) {\n info.level = colors.strip(info.level);\n }\n\n if (opts.message !== false) {\n info.message = colors.strip(info.message);\n }\n\n if (opts.raw !== false && info[MESSAGE]) {\n info[MESSAGE] = colors.strip(info[MESSAGE]);\n }\n\n return info;\n});","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isArrayLike;\nfunction isArrayLike(value) {\n return value && typeof value.length === 'number' && value.length >= 0 && value.length % 1 === 0;\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n// A temporary value used to identify if the loop should be broken.\n// See #1064, #1293\nconst breakLoop = {};\nexports.default = breakLoop;\nmodule.exports = exports[\"default\"];","// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n callback.apply(this, args);\n };\n}\n\nfunction noop() {}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction eos(stream, opts, callback) {\n if (typeof opts === 'function') return eos(stream, null, opts);\n if (!opts) opts = {};\n callback = once(callback || noop);\n var readable = opts.readable || opts.readable !== false && stream.readable;\n var writable = opts.writable || opts.writable !== false && stream.writable;\n\n var onlegacyfinish = function onlegacyfinish() {\n if (!stream.writable) onfinish();\n };\n\n var writableEnded = stream._writableState && stream._writableState.finished;\n\n var onfinish = function onfinish() {\n writable = false;\n writableEnded = true;\n if (!readable) callback.call(stream);\n };\n\n var readableEnded = stream._readableState && stream._readableState.endEmitted;\n\n var onend = function onend() {\n readable = false;\n readableEnded = true;\n if (!writable) callback.call(stream);\n };\n\n var onerror = function onerror(err) {\n callback.call(stream, err);\n };\n\n var onclose = function onclose() {\n var err;\n\n if (readable && !readableEnded) {\n if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n\n if (writable && !writableEnded) {\n if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n };\n\n var onrequest = function onrequest() {\n stream.req.on('finish', onfinish);\n };\n\n if (isRequest(stream)) {\n stream.on('complete', onfinish);\n stream.on('abort', onclose);\n if (stream.req) onrequest();else stream.on('request', onrequest);\n } else if (writable && !stream._writableState) {\n // legacy streams\n stream.on('end', onlegacyfinish);\n stream.on('close', onlegacyfinish);\n }\n\n stream.on('end', onend);\n stream.on('finish', onfinish);\n if (opts.error !== false) stream.on('error', onerror);\n stream.on('close', onclose);\n return function () {\n stream.removeListener('complete', onfinish);\n stream.removeListener('abort', onclose);\n stream.removeListener('request', onrequest);\n if (stream.req) stream.req.removeListener('finish', onfinish);\n stream.removeListener('end', onlegacyfinish);\n stream.removeListener('close', onlegacyfinish);\n stream.removeListener('finish', onfinish);\n stream.removeListener('end', onend);\n stream.removeListener('error', onerror);\n stream.removeListener('close', onclose);\n };\n}\n\nmodule.exports = eos;","/**\n * index.js: Default settings for all levels that winston knows about.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst logform = require('logform');\nconst { configs } = require('triple-beam');\n\n/**\n * Export config set for the CLI.\n * @type {Object}\n */\nexports.cli = logform.levels(configs.cli);\n\n/**\n * Export config set for npm.\n * @type {Object}\n */\nexports.npm = logform.levels(configs.npm);\n\n/**\n * Export config set for the syslog.\n * @type {Object}\n */\nexports.syslog = logform.levels(configs.syslog);\n\n/**\n * Hoist addColors from logform where it was refactored into in winston@3.\n * @type {Object}\n */\nexports.addColors = logform.levels;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _eachOf = require('./eachOf');\n\nvar _eachOf2 = _interopRequireDefault(_eachOf);\n\nvar _withoutIndex = require('./internal/withoutIndex');\n\nvar _withoutIndex2 = _interopRequireDefault(_withoutIndex);\n\nvar _wrapAsync = require('./internal/wrapAsync');\n\nvar _wrapAsync2 = _interopRequireDefault(_wrapAsync);\n\nvar _awaitify = require('./internal/awaitify');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Applies the function `iteratee` to each item in `coll`, in parallel.\n * The `iteratee` is called with an item from the list, and a callback for when\n * it has finished. If the `iteratee` passes an error to its `callback`, the\n * main `callback` (for the `each` function) is immediately called with the\n * error.\n *\n * Note, that since this function applies `iteratee` to each item in parallel,\n * there is no guarantee that the iteratee functions will complete in order.\n *\n * @name each\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEach\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to\n * each item in `coll`. Invoked with (item, callback).\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOf`.\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // assuming openFiles is an array of file names and saveFile is a function\n * // to save the modified contents of that file:\n *\n * async.each(openFiles, saveFile, function(err){\n * // if any of the saves produced an error, err would equal that error\n * });\n *\n * // assuming openFiles is an array of file names\n * async.each(openFiles, function(file, callback) {\n *\n * // Perform operation on file here.\n * console.log('Processing file ' + file);\n *\n * if( file.length > 32 ) {\n * console.log('This file name is too long');\n * callback('File name too long');\n * } else {\n * // Do work to process file here\n * console.log('File processed');\n * callback();\n * }\n * }, function(err) {\n * // if any of the file processing produced an error, err would equal that error\n * if( err ) {\n * // One of the iterations produced an error.\n * // All processing will now stop.\n * console.log('A file failed to process');\n * } else {\n * console.log('All files have been processed successfully');\n * }\n * });\n */\nfunction eachLimit(coll, iteratee, callback) {\n return (0, _eachOf2.default)(coll, (0, _withoutIndex2.default)((0, _wrapAsync2.default)(iteratee)), callback);\n}\n\nexports.default = (0, _awaitify2.default)(eachLimit, 3);\nmodule.exports = exports['default'];","export const PHONE_NUMBER_REGEX = /^([0-9]{3}-[0-9]{4})|([0-9]{7})$/;\nexport interface ScriptMessage {\n method: string;\n app: string;\n data: T;\n}\n\nexport enum PhoneEvents {\n OPEN_APP = 'npwd:openApp',\n OPEN_PHONE = 'npwd:open',\n CLOSE_PHONE = 'npwd:close',\n UNLOAD_CHARACTER = 'npwd:unloadCharacter',\n SET_VISIBILITY = 'npwd:setVisibility',\n ADD_SNACKBAR_ALERT = 'npwd:setSnackarAlert',\n SET_NUMBER = 'npwd:setNumber',\n SET_PHONE_READY = 'npwd:phoneReady',\n SET_CONFIG = 'npwd:setPhoneConfig',\n SET_TIME = 'npwd:setGameTime',\n SEND_CREDENTIALS = 'npwd:sendCredentials',\n FETCH_CREDENTIALS = 'npwd:getCredentials',\n TOGGLE_KEYS = 'npwd:toggleAllControls',\n SET_PLAYER_LOADED = 'npwd:setPlayerLoaded',\n}\n\n// Used to standardize the server response\nexport enum ErrorStringKeys {\n SERVER_ERROR = 'GENERAL_SERVER_ERROR',\n DELETE_FAILED = 'DELETE_FAILED',\n ADD_FAILED = 'ADD_FAILED',\n UPDATE_FAILED = 'UPDATED_FAILED',\n FETCH_FAILED = 'FETCH_FAILED',\n}\n\nexport interface FxServerRespError {\n errorCode: ErrorStringKeys;\n message: string;\n}\n\nexport interface FxServerResponse {\n data?: unknown;\n action: string;\n status: 'success' | 'failure';\n app: string;\n error?: FxServerRespError;\n}\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","import { mainLogger } from '../sv_logger';\n\nexport const twitterLogger = mainLogger.child({ module: 'twitter' });\n","import { mainLogger } from '../sv_logger';\nimport { FormattedMatch, FormattedProfile, Match, Profile } from '../../../typings/match';\nimport dayjs from 'dayjs';\n\nexport const matchLogger = mainLogger.child({ module: 'match' });\n\nexport function formatProfile(profile: Profile): FormattedProfile | null {\n return {\n ...profile,\n tagList: profile.tags.split(',').filter((t) => t), // remove any empty tags\n lastActiveFormatted: dayjs.unix(profile.lastActive).toString(),\n viewed: false,\n };\n}\n\nexport function formatMatches(match: Match): FormattedMatch | null {\n return {\n ...match,\n tagList: match.tags.split(',').filter((t) => t), // remove any empty tags\n lastActiveFormatted: dayjs.unix(match.lastActive).toString(),\n matchedAtFormatted: dayjs.unix(match.matchedAt).toString(),\n };\n}\n","import { getGlobalObject } from './global';\nimport { isString } from './is';\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nexport function htmlTreeAsString(elem, keyAttrs) {\n // try/catch both:\n // - accessing event.target (see getsentry/raven-js#838, #768)\n // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n // - can throw an exception in some circumstances.\n try {\n var currentElem = elem;\n var MAX_TRAVERSE_HEIGHT = 5;\n var MAX_OUTPUT_LEN = 80;\n var out = [];\n var height = 0;\n var len = 0;\n var separator = ' > ';\n var sepLength = separator.length;\n var nextStr = void 0;\n // eslint-disable-next-line no-plusplus\n while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n nextStr = _htmlElementAsString(currentElem, keyAttrs);\n // bail out if\n // - nextStr is the 'html' element\n // - the length of the string that would be created exceeds MAX_OUTPUT_LEN\n // (ignore this limit if we are on the first iteration)\n if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) {\n break;\n }\n out.push(nextStr);\n len += nextStr.length;\n currentElem = currentElem.parentNode;\n }\n return out.reverse().join(separator);\n }\n catch (_oO) {\n return '';\n }\n}\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction _htmlElementAsString(el, keyAttrs) {\n var _a, _b;\n var elem = el;\n var out = [];\n var className;\n var classes;\n var key;\n var attr;\n var i;\n if (!elem || !elem.tagName) {\n return '';\n }\n out.push(elem.tagName.toLowerCase());\n // Pairs of attribute keys defined in `serializeAttribute` and their values on element.\n var keyAttrPairs = ((_a = keyAttrs) === null || _a === void 0 ? void 0 : _a.length) ? keyAttrs.filter(function (keyAttr) { return elem.getAttribute(keyAttr); }).map(function (keyAttr) { return [keyAttr, elem.getAttribute(keyAttr)]; })\n : null;\n if ((_b = keyAttrPairs) === null || _b === void 0 ? void 0 : _b.length) {\n keyAttrPairs.forEach(function (keyAttrPair) {\n out.push(\"[\" + keyAttrPair[0] + \"=\\\"\" + keyAttrPair[1] + \"\\\"]\");\n });\n }\n else {\n if (elem.id) {\n out.push(\"#\" + elem.id);\n }\n // eslint-disable-next-line prefer-const\n className = elem.className;\n if (className && isString(className)) {\n classes = className.split(/\\s+/);\n for (i = 0; i < classes.length; i++) {\n out.push(\".\" + classes[i]);\n }\n }\n }\n var allowedAttrs = ['type', 'name', 'title', 'alt'];\n for (i = 0; i < allowedAttrs.length; i++) {\n key = allowedAttrs[i];\n attr = elem.getAttribute(key);\n if (attr) {\n out.push(\"[\" + key + \"=\\\"\" + attr + \"\\\"]\");\n }\n }\n return out.join('');\n}\n/**\n * A safe form of location.href\n */\nexport function getLocationHref() {\n var global = getGlobalObject();\n try {\n return global.document.location.href;\n }\n catch (oO) {\n return '';\n }\n}\n//# sourceMappingURL=browser.js.map","import { __assign } from \"tslib\";\nimport { getGlobalObject } from './global';\nimport { snipLine } from './string';\n/**\n * UUID4 generator\n *\n * @returns string Generated UUID4.\n */\nexport function uuid4() {\n var global = getGlobalObject();\n var crypto = global.crypto || global.msCrypto;\n if (!(crypto === void 0) && crypto.getRandomValues) {\n // Use window.crypto API if available\n var arr = new Uint16Array(8);\n crypto.getRandomValues(arr);\n // set 4 in byte 7\n // eslint-disable-next-line no-bitwise\n arr[3] = (arr[3] & 0xfff) | 0x4000;\n // set 2 most significant bits of byte 9 to '10'\n // eslint-disable-next-line no-bitwise\n arr[4] = (arr[4] & 0x3fff) | 0x8000;\n var pad = function (num) {\n var v = num.toString(16);\n while (v.length < 4) {\n v = \"0\" + v;\n }\n return v;\n };\n return (pad(arr[0]) + pad(arr[1]) + pad(arr[2]) + pad(arr[3]) + pad(arr[4]) + pad(arr[5]) + pad(arr[6]) + pad(arr[7]));\n }\n // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n // eslint-disable-next-line no-bitwise\n var r = (Math.random() * 16) | 0;\n // eslint-disable-next-line no-bitwise\n var v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n/**\n * Parses string form of URL into an object\n * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B\n * // intentionally using regex and not href parsing trick because React Native and other\n * // environments where DOM might not be available\n * @returns parsed URL object\n */\nexport function parseUrl(url) {\n if (!url) {\n return {};\n }\n var match = url.match(/^(([^:/?#]+):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/);\n if (!match) {\n return {};\n }\n // coerce to undefined values to empty string so we don't get 'undefined'\n var query = match[6] || '';\n var fragment = match[8] || '';\n return {\n host: match[4],\n path: match[5],\n protocol: match[2],\n relative: match[5] + query + fragment,\n };\n}\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nexport function getEventDescription(event) {\n if (event.message) {\n return event.message;\n }\n if (event.exception && event.exception.values && event.exception.values[0]) {\n var exception = event.exception.values[0];\n if (exception.type && exception.value) {\n return exception.type + \": \" + exception.value;\n }\n return exception.type || exception.value || event.event_id || '';\n }\n return event.event_id || '';\n}\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nexport function addExceptionTypeValue(event, value, type) {\n event.exception = event.exception || {};\n event.exception.values = event.exception.values || [];\n event.exception.values[0] = event.exception.values[0] || {};\n event.exception.values[0].value = event.exception.values[0].value || value || '';\n event.exception.values[0].type = event.exception.values[0].type || type || 'Error';\n}\n/**\n * Adds exception mechanism data to a given event. Uses defaults if the second parameter is not passed.\n *\n * @param event The event to modify.\n * @param newMechanism Mechanism data to add to the event.\n * @hidden\n */\nexport function addExceptionMechanism(event, newMechanism) {\n var _a;\n if (!event.exception || !event.exception.values) {\n return;\n }\n var exceptionValue0 = event.exception.values[0];\n var defaultMechanism = { type: 'generic', handled: true };\n var currentMechanism = exceptionValue0.mechanism;\n exceptionValue0.mechanism = __assign(__assign(__assign({}, defaultMechanism), currentMechanism), newMechanism);\n if (newMechanism && 'data' in newMechanism) {\n var mergedData = __assign(__assign({}, (_a = currentMechanism) === null || _a === void 0 ? void 0 : _a.data), newMechanism.data);\n exceptionValue0.mechanism.data = mergedData;\n }\n}\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nvar SEMVER_REGEXP = /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input) {\n var match = input.match(SEMVER_REGEXP) || [];\n var major = parseInt(match[1], 10);\n var minor = parseInt(match[2], 10);\n var patch = parseInt(match[3], 10);\n return {\n buildmetadata: match[5],\n major: isNaN(major) ? undefined : major,\n minor: isNaN(minor) ? undefined : minor,\n patch: isNaN(patch) ? undefined : patch,\n prerelease: match[4],\n };\n}\nvar defaultRetryAfter = 60 * 1000; // 60 seconds\n/**\n * Extracts Retry-After value from the request header or returns default value\n * @param now current unix timestamp\n * @param header string representation of 'Retry-After' header\n */\nexport function parseRetryAfterHeader(now, header) {\n if (!header) {\n return defaultRetryAfter;\n }\n var headerDelay = parseInt(\"\" + header, 10);\n if (!isNaN(headerDelay)) {\n return headerDelay * 1000;\n }\n var headerDate = Date.parse(\"\" + header);\n if (!isNaN(headerDate)) {\n return headerDate - now;\n }\n return defaultRetryAfter;\n}\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines, frame, linesOfContext) {\n if (linesOfContext === void 0) { linesOfContext = 5; }\n var lineno = frame.lineno || 0;\n var maxLines = lines.length;\n var sourceLine = Math.max(Math.min(maxLines, lineno - 1), 0);\n frame.pre_context = lines\n .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n .map(function (line) { return snipLine(line, 0); });\n frame.context_line = snipLine(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);\n frame.post_context = lines\n .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n .map(function (line) { return snipLine(line, 0); });\n}\n/**\n * Strip the query string and fragment off of a given URL or path (if present)\n *\n * @param urlPath Full URL or path, including possible query string and/or fragment\n * @returns URL or path without query string or fragment\n */\nexport function stripUrlQueryAndFragment(urlPath) {\n // eslint-disable-next-line no-useless-escape\n return urlPath.split(/[\\?#]/, 1)[0];\n}\n/**\n * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object\n * in question), and marks it captured if not.\n *\n * This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and\n * record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so\n * that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because\n * the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not\n * caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This\n * function helps us ensure that even if we encounter the same error more than once, we only record it the first time we\n * see it.\n *\n * Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on\n * them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent\n * object wrapper forms so that this check will always work. However, because we need to flag the exact object which\n * will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification\n * must be done before the exception captured.\n *\n * @param A thrown exception to check or flag as having been seen\n * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)\n */\nexport function checkOrSetAlreadyCaught(exception) {\n var _a;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if ((_a = exception) === null || _a === void 0 ? void 0 : _a.__sentry_captured__) {\n return true;\n }\n try {\n // set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the\n // `ExtraErrorData` integration\n Object.defineProperty(exception, '__sentry_captured__', {\n value: true,\n });\n }\n catch (err) {\n // `exception` is a primitive, so we can't mark it seen\n }\n return false;\n}\n//# sourceMappingURL=misc.js.map","import { getGlobalObject } from './global';\nimport { logger } from './logger';\n/**\n * Tells whether current environment supports ErrorEvent objects\n * {@link supportsErrorEvent}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsErrorEvent() {\n try {\n new ErrorEvent('');\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * Tells whether current environment supports DOMError objects\n * {@link supportsDOMError}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMError() {\n try {\n // Chrome: VM89:1 Uncaught TypeError: Failed to construct 'DOMError':\n // 1 argument required, but only 0 present.\n // @ts-ignore It really needs 1 argument, not 0.\n new DOMError('');\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * Tells whether current environment supports DOMException objects\n * {@link supportsDOMException}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMException() {\n try {\n new DOMException('');\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * Tells whether current environment supports Fetch API\n * {@link supportsFetch}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsFetch() {\n if (!('fetch' in getGlobalObject())) {\n return false;\n }\n try {\n new Headers();\n new Request('');\n new Response();\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * isNativeFetch checks if the given function is a native implementation of fetch()\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isNativeFetch(func) {\n return func && /^function fetch\\(\\)\\s+\\{\\s+\\[native code\\]\\s+\\}$/.test(func.toString());\n}\n/**\n * Tells whether current environment supports Fetch API natively\n * {@link supportsNativeFetch}.\n *\n * @returns true if `window.fetch` is natively implemented, false otherwise\n */\nexport function supportsNativeFetch() {\n if (!supportsFetch()) {\n return false;\n }\n var global = getGlobalObject();\n // Fast path to avoid DOM I/O\n // eslint-disable-next-line @typescript-eslint/unbound-method\n if (isNativeFetch(global.fetch)) {\n return true;\n }\n // window.fetch is implemented, but is polyfilled or already wrapped (e.g: by a chrome extension)\n // so create a \"pure\" iframe to see if that has native fetch\n var result = false;\n var doc = global.document;\n // eslint-disable-next-line deprecation/deprecation\n if (doc && typeof doc.createElement === \"function\") {\n try {\n var sandbox = doc.createElement('iframe');\n sandbox.hidden = true;\n doc.head.appendChild(sandbox);\n if (sandbox.contentWindow && sandbox.contentWindow.fetch) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n result = isNativeFetch(sandbox.contentWindow.fetch);\n }\n doc.head.removeChild(sandbox);\n }\n catch (err) {\n logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);\n }\n }\n return result;\n}\n/**\n * Tells whether current environment supports ReportingObserver API\n * {@link supportsReportingObserver}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReportingObserver() {\n return 'ReportingObserver' in getGlobalObject();\n}\n/**\n * Tells whether current environment supports Referrer Policy API\n * {@link supportsReferrerPolicy}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReferrerPolicy() {\n // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default\n // https://caniuse.com/#feat=referrer-policy\n // It doesn't. And it throw exception instead of ignoring this parameter...\n // REF: https://github.com/getsentry/raven-js/issues/1233\n if (!supportsFetch()) {\n return false;\n }\n try {\n new Request('_', {\n referrerPolicy: 'origin',\n });\n return true;\n }\n catch (e) {\n return false;\n }\n}\n/**\n * Tells whether current environment supports History API\n * {@link supportsHistory}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsHistory() {\n // NOTE: in Chrome App environment, touching history.pushState, *even inside\n // a try/catch block*, will cause Chrome to output an error to console.error\n // borrowed from: https://github.com/angular/angular.js/pull/13945/files\n var global = getGlobalObject();\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var chrome = global.chrome;\n var isChromePackagedApp = chrome && chrome.app && chrome.app.runtime;\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n var hasHistoryApi = 'history' in global && !!global.history.pushState && !!global.history.replaceState;\n return !isChromePackagedApp && hasHistoryApi;\n}\n//# sourceMappingURL=supports.js.map","module.exports = require('./lib/SqlString');\n","module.exports = require(\"tls\");","'use strict';\n\n/**\n * Custom implementation of a double ended queue.\n */\nfunction Denque(array, options) {\n var options = options || {};\n\n this._head = 0;\n this._tail = 0;\n this._capacity = options.capacity;\n this._capacityMask = 0x3;\n this._list = new Array(4);\n if (Array.isArray(array)) {\n this._fromArray(array);\n }\n}\n\n/**\n * --------------\n * PUBLIC API\n * -------------\n */\n\n/**\n * Returns the item at the specified index from the list.\n * 0 is the first element, 1 is the second, and so on...\n * Elements at negative values are that many from the end: -1 is one before the end\n * (the last element), -2 is two before the end (one before last), etc.\n * @param index\n * @returns {*}\n */\nDenque.prototype.peekAt = function peekAt(index) {\n var i = index;\n // expect a number or return undefined\n if ((i !== (i | 0))) {\n return void 0;\n }\n var len = this.size();\n if (i >= len || i < -len) return undefined;\n if (i < 0) i += len;\n i = (this._head + i) & this._capacityMask;\n return this._list[i];\n};\n\n/**\n * Alias for peekAt()\n * @param i\n * @returns {*}\n */\nDenque.prototype.get = function get(i) {\n return this.peekAt(i);\n};\n\n/**\n * Returns the first item in the list without removing it.\n * @returns {*}\n */\nDenque.prototype.peek = function peek() {\n if (this._head === this._tail) return undefined;\n return this._list[this._head];\n};\n\n/**\n * Alias for peek()\n * @returns {*}\n */\nDenque.prototype.peekFront = function peekFront() {\n return this.peek();\n};\n\n/**\n * Returns the item that is at the back of the queue without removing it.\n * Uses peekAt(-1)\n */\nDenque.prototype.peekBack = function peekBack() {\n return this.peekAt(-1);\n};\n\n/**\n * Returns the current length of the queue\n * @return {Number}\n */\nObject.defineProperty(Denque.prototype, 'length', {\n get: function length() {\n return this.size();\n }\n});\n\n/**\n * Return the number of items on the list, or 0 if empty.\n * @returns {number}\n */\nDenque.prototype.size = function size() {\n if (this._head === this._tail) return 0;\n if (this._head < this._tail) return this._tail - this._head;\n else return this._capacityMask + 1 - (this._head - this._tail);\n};\n\n/**\n * Add an item at the beginning of the list.\n * @param item\n */\nDenque.prototype.unshift = function unshift(item) {\n if (arguments.length === 0) return this.size();\n var len = this._list.length;\n this._head = (this._head - 1 + len) & this._capacityMask;\n this._list[this._head] = item;\n if (this._tail === this._head) this._growArray();\n if (this._capacity && this.size() > this._capacity) this.pop();\n if (this._head < this._tail) return this._tail - this._head;\n else return this._capacityMask + 1 - (this._head - this._tail);\n};\n\n/**\n * Remove and return the first item on the list,\n * Returns undefined if the list is empty.\n * @returns {*}\n */\nDenque.prototype.shift = function shift() {\n var head = this._head;\n if (head === this._tail) return undefined;\n var item = this._list[head];\n this._list[head] = undefined;\n this._head = (head + 1) & this._capacityMask;\n if (head < 2 && this._tail > 10000 && this._tail <= this._list.length >>> 2) this._shrinkArray();\n return item;\n};\n\n/**\n * Add an item to the bottom of the list.\n * @param item\n */\nDenque.prototype.push = function push(item) {\n if (arguments.length === 0) return this.size();\n var tail = this._tail;\n this._list[tail] = item;\n this._tail = (tail + 1) & this._capacityMask;\n if (this._tail === this._head) {\n this._growArray();\n }\n if (this._capacity && this.size() > this._capacity) {\n this.shift();\n }\n if (this._head < this._tail) return this._tail - this._head;\n else return this._capacityMask + 1 - (this._head - this._tail);\n};\n\n/**\n * Remove and return the last item on the list.\n * Returns undefined if the list is empty.\n * @returns {*}\n */\nDenque.prototype.pop = function pop() {\n var tail = this._tail;\n if (tail === this._head) return undefined;\n var len = this._list.length;\n this._tail = (tail - 1 + len) & this._capacityMask;\n var item = this._list[this._tail];\n this._list[this._tail] = undefined;\n if (this._head < 2 && tail > 10000 && tail <= len >>> 2) this._shrinkArray();\n return item;\n};\n\n/**\n * Remove and return the item at the specified index from the list.\n * Returns undefined if the list is empty.\n * @param index\n * @returns {*}\n */\nDenque.prototype.removeOne = function removeOne(index) {\n var i = index;\n // expect a number or return undefined\n if ((i !== (i | 0))) {\n return void 0;\n }\n if (this._head === this._tail) return void 0;\n var size = this.size();\n var len = this._list.length;\n if (i >= size || i < -size) return void 0;\n if (i < 0) i += size;\n i = (this._head + i) & this._capacityMask;\n var item = this._list[i];\n var k;\n if (index < size / 2) {\n for (k = index; k > 0; k--) {\n this._list[i] = this._list[i = (i - 1 + len) & this._capacityMask];\n }\n this._list[i] = void 0;\n this._head = (this._head + 1 + len) & this._capacityMask;\n } else {\n for (k = size - 1 - index; k > 0; k--) {\n this._list[i] = this._list[i = (i + 1 + len) & this._capacityMask];\n }\n this._list[i] = void 0;\n this._tail = (this._tail - 1 + len) & this._capacityMask;\n }\n return item;\n};\n\n/**\n * Remove number of items from the specified index from the list.\n * Returns array of removed items.\n * Returns undefined if the list is empty.\n * @param index\n * @param count\n * @returns {array}\n */\nDenque.prototype.remove = function remove(index, count) {\n var i = index;\n var removed;\n var del_count = count;\n // expect a number or return undefined\n if ((i !== (i | 0))) {\n return void 0;\n }\n if (this._head === this._tail) return void 0;\n var size = this.size();\n var len = this._list.length;\n if (i >= size || i < -size || count < 1) return void 0;\n if (i < 0) i += size;\n if (count === 1 || !count) {\n removed = new Array(1);\n removed[0] = this.removeOne(i);\n return removed;\n }\n if (i === 0 && i + count >= size) {\n removed = this.toArray();\n this.clear();\n return removed;\n }\n if (i + count > size) count = size - i;\n var k;\n removed = new Array(count);\n for (k = 0; k < count; k++) {\n removed[k] = this._list[(this._head + i + k) & this._capacityMask];\n }\n i = (this._head + i) & this._capacityMask;\n if (index + count === size) {\n this._tail = (this._tail - count + len) & this._capacityMask;\n for (k = count; k > 0; k--) {\n this._list[i = (i + 1 + len) & this._capacityMask] = void 0;\n }\n return removed;\n }\n if (index === 0) {\n this._head = (this._head + count + len) & this._capacityMask;\n for (k = count - 1; k > 0; k--) {\n this._list[i = (i + 1 + len) & this._capacityMask] = void 0;\n }\n return removed;\n }\n if (i < size / 2) {\n this._head = (this._head + index + count + len) & this._capacityMask;\n for (k = index; k > 0; k--) {\n this.unshift(this._list[i = (i - 1 + len) & this._capacityMask]);\n }\n i = (this._head - 1 + len) & this._capacityMask;\n while (del_count > 0) {\n this._list[i = (i - 1 + len) & this._capacityMask] = void 0;\n del_count--;\n }\n if (index < 0) this._tail = i;\n } else {\n this._tail = i;\n i = (i + count + len) & this._capacityMask;\n for (k = size - (count + index); k > 0; k--) {\n this.push(this._list[i++]);\n }\n i = this._tail;\n while (del_count > 0) {\n this._list[i = (i + 1 + len) & this._capacityMask] = void 0;\n del_count--;\n }\n }\n if (this._head < 2 && this._tail > 10000 && this._tail <= len >>> 2) this._shrinkArray();\n return removed;\n};\n\n/**\n * Native splice implementation.\n * Remove number of items from the specified index from the list and/or add new elements.\n * Returns array of removed items or empty array if count == 0.\n * Returns undefined if the list is empty.\n *\n * @param index\n * @param count\n * @param {...*} [elements]\n * @returns {array}\n */\nDenque.prototype.splice = function splice(index, count) {\n var i = index;\n // expect a number or return undefined\n if ((i !== (i | 0))) {\n return void 0;\n }\n var size = this.size();\n if (i < 0) i += size;\n if (i > size) return void 0;\n if (arguments.length > 2) {\n var k;\n var temp;\n var removed;\n var arg_len = arguments.length;\n var len = this._list.length;\n var arguments_index = 2;\n if (!size || i < size / 2) {\n temp = new Array(i);\n for (k = 0; k < i; k++) {\n temp[k] = this._list[(this._head + k) & this._capacityMask];\n }\n if (count === 0) {\n removed = [];\n if (i > 0) {\n this._head = (this._head + i + len) & this._capacityMask;\n }\n } else {\n removed = this.remove(i, count);\n this._head = (this._head + i + len) & this._capacityMask;\n }\n while (arg_len > arguments_index) {\n this.unshift(arguments[--arg_len]);\n }\n for (k = i; k > 0; k--) {\n this.unshift(temp[k - 1]);\n }\n } else {\n temp = new Array(size - (i + count));\n var leng = temp.length;\n for (k = 0; k < leng; k++) {\n temp[k] = this._list[(this._head + i + count + k) & this._capacityMask];\n }\n if (count === 0) {\n removed = [];\n if (i != size) {\n this._tail = (this._head + i + len) & this._capacityMask;\n }\n } else {\n removed = this.remove(i, count);\n this._tail = (this._tail - leng + len) & this._capacityMask;\n }\n while (arguments_index < arg_len) {\n this.push(arguments[arguments_index++]);\n }\n for (k = 0; k < leng; k++) {\n this.push(temp[k]);\n }\n }\n return removed;\n } else {\n return this.remove(i, count);\n }\n};\n\n/**\n * Soft clear - does not reset capacity.\n */\nDenque.prototype.clear = function clear() {\n this._head = 0;\n this._tail = 0;\n};\n\n/**\n * Returns true or false whether the list is empty.\n * @returns {boolean}\n */\nDenque.prototype.isEmpty = function isEmpty() {\n return this._head === this._tail;\n};\n\n/**\n * Returns an array of all queue items.\n * @returns {Array}\n */\nDenque.prototype.toArray = function toArray() {\n return this._copyArray(false);\n};\n\n/**\n * -------------\n * INTERNALS\n * -------------\n */\n\n/**\n * Fills the queue with items from an array\n * For use in the constructor\n * @param array\n * @private\n */\nDenque.prototype._fromArray = function _fromArray(array) {\n for (var i = 0; i < array.length; i++) this.push(array[i]);\n};\n\n/**\n *\n * @param fullCopy\n * @returns {Array}\n * @private\n */\nDenque.prototype._copyArray = function _copyArray(fullCopy) {\n var newArray = [];\n var list = this._list;\n var len = list.length;\n var i;\n if (fullCopy || this._head > this._tail) {\n for (i = this._head; i < len; i++) newArray.push(list[i]);\n for (i = 0; i < this._tail; i++) newArray.push(list[i]);\n } else {\n for (i = this._head; i < this._tail; i++) newArray.push(list[i]);\n }\n return newArray;\n};\n\n/**\n * Grows the internal list array.\n * @private\n */\nDenque.prototype._growArray = function _growArray() {\n if (this._head) {\n // copy existing data, head to end, then beginning to tail.\n this._list = this._copyArray(true);\n this._head = 0;\n }\n\n // head is at 0 and array is now full, safe to extend\n this._tail = this._list.length;\n\n this._list.length <<= 1;\n this._capacityMask = (this._capacityMask << 1) | 1;\n};\n\n/**\n * Shrinks the internal list array.\n * @private\n */\nDenque.prototype._shrinkArray = function _shrinkArray() {\n this._list.length >>>= 1;\n this._capacityMask >>>= 1;\n};\n\n\nmodule.exports = Denque;\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict';\n\nconst Packet = require('./packets/packet.js');\n\nconst MAX_PACKET_LENGTH = 16777215;\n\nfunction readPacketLength(b, off) {\n const b0 = b[off];\n const b1 = b[off + 1];\n const b2 = b[off + 2];\n if (b1 + b2 === 0) {\n return b0;\n }\n return b0 + (b1 << 8) + (b2 << 16);\n}\n\nclass PacketParser {\n constructor(onPacket, packetHeaderLength) {\n // 4 for normal packets, 7 for comprssed protocol packets\n if (typeof packetHeaderLength === 'undefined') {\n packetHeaderLength = 4;\n }\n // array of last payload chunks\n // only used when current payload is not complete\n this.buffer = [];\n // total length of chunks on buffer\n this.bufferLength = 0;\n this.packetHeaderLength = packetHeaderLength;\n // incomplete header state: number of header bytes received\n this.headerLen = 0;\n // expected payload length\n this.length = 0;\n this.largePacketParts = [];\n this.firstPacketSequenceId = 0;\n this.onPacket = onPacket;\n this.execute = PacketParser.prototype.executeStart;\n this._flushLargePacket =\n packetHeaderLength === 7\n ? this._flushLargePacket7\n : this._flushLargePacket4;\n }\n\n _flushLargePacket4() {\n const numPackets = this.largePacketParts.length;\n this.largePacketParts.unshift(Buffer.from([0, 0, 0, 0])); // insert header\n const body = Buffer.concat(this.largePacketParts);\n const packet = new Packet(this.firstPacketSequenceId, body, 0, body.length);\n this.largePacketParts.length = 0;\n packet.numPackets = numPackets;\n this.onPacket(packet);\n }\n\n _flushLargePacket7() {\n const numPackets = this.largePacketParts.length;\n this.largePacketParts.unshift(Buffer.from([0, 0, 0, 0, 0, 0, 0])); // insert header\n const body = Buffer.concat(this.largePacketParts);\n this.largePacketParts.length = 0;\n const packet = new Packet(this.firstPacketSequenceId, body, 0, body.length);\n packet.numPackets = numPackets;\n this.onPacket(packet);\n }\n\n executeStart(chunk) {\n let start = 0;\n const end = chunk.length;\n while (end - start >= 3) {\n this.length = readPacketLength(chunk, start);\n if (end - start >= this.length + this.packetHeaderLength) {\n // at least one full packet\n const sequenceId = chunk[start + 3];\n if (\n this.length < MAX_PACKET_LENGTH &&\n this.largePacketParts.length === 0\n ) {\n this.onPacket(\n new Packet(\n sequenceId,\n chunk,\n start,\n start + this.packetHeaderLength + this.length\n )\n );\n } else {\n // first large packet - remember it's id\n if (this.largePacketParts.length === 0) {\n this.firstPacketSequenceId = sequenceId;\n }\n this.largePacketParts.push(\n chunk.slice(\n start + this.packetHeaderLength,\n start + this.packetHeaderLength + this.length\n )\n );\n if (this.length < MAX_PACKET_LENGTH) {\n this._flushLargePacket();\n }\n }\n start += this.packetHeaderLength + this.length;\n } else {\n // payload is incomplete\n this.buffer = [chunk.slice(start + 3, end)];\n this.bufferLength = end - start - 3;\n this.execute = PacketParser.prototype.executePayload;\n return;\n }\n }\n if (end - start > 0) {\n // there is start of length header, but it's not full 3 bytes\n this.headerLen = end - start; // 1 or 2 bytes\n this.length = chunk[start];\n if (this.headerLen === 2) {\n this.length = chunk[start] + (chunk[start + 1] << 8);\n this.execute = PacketParser.prototype.executeHeader3;\n } else {\n this.execute = PacketParser.prototype.executeHeader2;\n }\n }\n }\n\n executePayload(chunk) {\n let start = 0;\n const end = chunk.length;\n const remainingPayload =\n this.length - this.bufferLength + this.packetHeaderLength - 3;\n if (end - start >= remainingPayload) {\n // last chunk for payload\n const payload = Buffer.allocUnsafe(this.length + this.packetHeaderLength);\n let offset = 3;\n for (let i = 0; i < this.buffer.length; ++i) {\n this.buffer[i].copy(payload, offset);\n offset += this.buffer[i].length;\n }\n chunk.copy(payload, offset, start, start + remainingPayload);\n const sequenceId = payload[3];\n if (\n this.length < MAX_PACKET_LENGTH &&\n this.largePacketParts.length === 0\n ) {\n this.onPacket(\n new Packet(\n sequenceId,\n payload,\n 0,\n this.length + this.packetHeaderLength\n )\n );\n } else {\n // first large packet - remember it's id\n if (this.largePacketParts.length === 0) {\n this.firstPacketSequenceId = sequenceId;\n }\n this.largePacketParts.push(\n payload.slice(\n this.packetHeaderLength,\n this.packetHeaderLength + this.length\n )\n );\n if (this.length < MAX_PACKET_LENGTH) {\n this._flushLargePacket();\n }\n }\n this.buffer = [];\n this.bufferLength = 0;\n this.execute = PacketParser.prototype.executeStart;\n start += remainingPayload;\n if (end - start > 0) {\n return this.execute(chunk.slice(start, end));\n }\n } else {\n this.buffer.push(chunk);\n this.bufferLength += chunk.length;\n }\n return null;\n }\n\n executeHeader2(chunk) {\n this.length += chunk[0] << 8;\n if (chunk.length > 1) {\n this.length += chunk[1] << 16;\n this.execute = PacketParser.prototype.executePayload;\n return this.executePayload(chunk.slice(2));\n } \n this.execute = PacketParser.prototype.executeHeader3;\n \n return null;\n }\n\n executeHeader3(chunk) {\n this.length += chunk[0] << 16;\n this.execute = PacketParser.prototype.executePayload;\n return this.executePayload(chunk.slice(1));\n }\n}\n\nmodule.exports = PacketParser;\n","// This file was modified by Oracle on June 1, 2021.\n// An entry was created for a new error reported by the MySQL server due to\n// client inactivity.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\n// copy from https://raw.githubusercontent.com/mysqljs/mysql/7770ee5bb13260c56a160b91fe480d9165dbeeba/lib/protocol/constants/errors.js\n// (c) node-mysql authors\n\n/**\n * MySQL error constants\n *\n * !! Generated by generate-error-constants.js, do not modify by hand !!\n */\n\nexports.EE_CANTCREATEFILE = 1;\nexports.EE_READ = 2;\nexports.EE_WRITE = 3;\nexports.EE_BADCLOSE = 4;\nexports.EE_OUTOFMEMORY = 5;\nexports.EE_DELETE = 6;\nexports.EE_LINK = 7;\nexports.EE_EOFERR = 9;\nexports.EE_CANTLOCK = 10;\nexports.EE_CANTUNLOCK = 11;\nexports.EE_DIR = 12;\nexports.EE_STAT = 13;\nexports.EE_CANT_CHSIZE = 14;\nexports.EE_CANT_OPEN_STREAM = 15;\nexports.EE_GETWD = 16;\nexports.EE_SETWD = 17;\nexports.EE_LINK_WARNING = 18;\nexports.EE_OPEN_WARNING = 19;\nexports.EE_DISK_FULL = 20;\nexports.EE_CANT_MKDIR = 21;\nexports.EE_UNKNOWN_CHARSET = 22;\nexports.EE_OUT_OF_FILERESOURCES = 23;\nexports.EE_CANT_READLINK = 24;\nexports.EE_CANT_SYMLINK = 25;\nexports.EE_REALPATH = 26;\nexports.EE_SYNC = 27;\nexports.EE_UNKNOWN_COLLATION = 28;\nexports.EE_FILENOTFOUND = 29;\nexports.EE_FILE_NOT_CLOSED = 30;\nexports.EE_CHANGE_OWNERSHIP = 31;\nexports.EE_CHANGE_PERMISSIONS = 32;\nexports.EE_CANT_SEEK = 33;\nexports.HA_ERR_KEY_NOT_FOUND = 120;\nexports.HA_ERR_FOUND_DUPP_KEY = 121;\nexports.HA_ERR_INTERNAL_ERROR = 122;\nexports.HA_ERR_RECORD_CHANGED = 123;\nexports.HA_ERR_WRONG_INDEX = 124;\nexports.HA_ERR_CRASHED = 126;\nexports.HA_ERR_WRONG_IN_RECORD = 127;\nexports.HA_ERR_OUT_OF_MEM = 128;\nexports.HA_ERR_NOT_A_TABLE = 130;\nexports.HA_ERR_WRONG_COMMAND = 131;\nexports.HA_ERR_OLD_FILE = 132;\nexports.HA_ERR_NO_ACTIVE_RECORD = 133;\nexports.HA_ERR_RECORD_DELETED = 134;\nexports.HA_ERR_RECORD_FILE_FULL = 135;\nexports.HA_ERR_INDEX_FILE_FULL = 136;\nexports.HA_ERR_END_OF_FILE = 137;\nexports.HA_ERR_UNSUPPORTED = 138;\nexports.HA_ERR_TO_BIG_ROW = 139;\nexports.HA_WRONG_CREATE_OPTION = 140;\nexports.HA_ERR_FOUND_DUPP_UNIQUE = 141;\nexports.HA_ERR_UNKNOWN_CHARSET = 142;\nexports.HA_ERR_WRONG_MRG_TABLE_DEF = 143;\nexports.HA_ERR_CRASHED_ON_REPAIR = 144;\nexports.HA_ERR_CRASHED_ON_USAGE = 145;\nexports.HA_ERR_LOCK_WAIT_TIMEOUT = 146;\nexports.HA_ERR_LOCK_TABLE_FULL = 147;\nexports.HA_ERR_READ_ONLY_TRANSACTION = 148;\nexports.HA_ERR_LOCK_DEADLOCK = 149;\nexports.HA_ERR_CANNOT_ADD_FOREIGN = 150;\nexports.HA_ERR_NO_REFERENCED_ROW = 151;\nexports.HA_ERR_ROW_IS_REFERENCED = 152;\nexports.HA_ERR_NO_SAVEPOINT = 153;\nexports.HA_ERR_NON_UNIQUE_BLOCK_SIZE = 154;\nexports.HA_ERR_NO_SUCH_TABLE = 155;\nexports.HA_ERR_TABLE_EXIST = 156;\nexports.HA_ERR_NO_CONNECTION = 157;\nexports.HA_ERR_NULL_IN_SPATIAL = 158;\nexports.HA_ERR_TABLE_DEF_CHANGED = 159;\nexports.HA_ERR_NO_PARTITION_FOUND = 160;\nexports.HA_ERR_RBR_LOGGING_FAILED = 161;\nexports.HA_ERR_DROP_INDEX_FK = 162;\nexports.HA_ERR_FOREIGN_DUPLICATE_KEY = 163;\nexports.HA_ERR_TABLE_NEEDS_UPGRADE = 164;\nexports.HA_ERR_TABLE_READONLY = 165;\nexports.HA_ERR_AUTOINC_READ_FAILED = 166;\nexports.HA_ERR_AUTOINC_ERANGE = 167;\nexports.HA_ERR_GENERIC = 168;\nexports.HA_ERR_RECORD_IS_THE_SAME = 169;\nexports.HA_ERR_LOGGING_IMPOSSIBLE = 170;\nexports.HA_ERR_CORRUPT_EVENT = 171;\nexports.HA_ERR_NEW_FILE = 172;\nexports.HA_ERR_ROWS_EVENT_APPLY = 173;\nexports.HA_ERR_INITIALIZATION = 174;\nexports.HA_ERR_FILE_TOO_SHORT = 175;\nexports.HA_ERR_WRONG_CRC = 176;\nexports.HA_ERR_TOO_MANY_CONCURRENT_TRXS = 177;\nexports.HA_ERR_NOT_IN_LOCK_PARTITIONS = 178;\nexports.HA_ERR_INDEX_COL_TOO_LONG = 179;\nexports.HA_ERR_INDEX_CORRUPT = 180;\nexports.HA_ERR_UNDO_REC_TOO_BIG = 181;\nexports.HA_FTS_INVALID_DOCID = 182;\nexports.HA_ERR_TABLE_IN_FK_CHECK = 183;\nexports.HA_ERR_TABLESPACE_EXISTS = 184;\nexports.HA_ERR_TOO_MANY_FIELDS = 185;\nexports.HA_ERR_ROW_IN_WRONG_PARTITION = 186;\nexports.HA_ERR_INNODB_READ_ONLY = 187;\nexports.HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT = 188;\nexports.HA_ERR_TEMP_FILE_WRITE_FAILURE = 189;\nexports.HA_ERR_INNODB_FORCED_RECOVERY = 190;\nexports.HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE = 191;\nexports.ER_HASHCHK = 1000;\nexports.ER_NISAMCHK = 1001;\nexports.ER_NO = 1002;\nexports.ER_YES = 1003;\nexports.ER_CANT_CREATE_FILE = 1004;\nexports.ER_CANT_CREATE_TABLE = 1005;\nexports.ER_CANT_CREATE_DB = 1006;\nexports.ER_DB_CREATE_EXISTS = 1007;\nexports.ER_DB_DROP_EXISTS = 1008;\nexports.ER_DB_DROP_DELETE = 1009;\nexports.ER_DB_DROP_RMDIR = 1010;\nexports.ER_CANT_DELETE_FILE = 1011;\nexports.ER_CANT_FIND_SYSTEM_REC = 1012;\nexports.ER_CANT_GET_STAT = 1013;\nexports.ER_CANT_GET_WD = 1014;\nexports.ER_CANT_LOCK = 1015;\nexports.ER_CANT_OPEN_FILE = 1016;\nexports.ER_FILE_NOT_FOUND = 1017;\nexports.ER_CANT_READ_DIR = 1018;\nexports.ER_CANT_SET_WD = 1019;\nexports.ER_CHECKREAD = 1020;\nexports.ER_DISK_FULL = 1021;\nexports.ER_DUP_KEY = 1022;\nexports.ER_ERROR_ON_CLOSE = 1023;\nexports.ER_ERROR_ON_READ = 1024;\nexports.ER_ERROR_ON_RENAME = 1025;\nexports.ER_ERROR_ON_WRITE = 1026;\nexports.ER_FILE_USED = 1027;\nexports.ER_FILSORT_ABORT = 1028;\nexports.ER_FORM_NOT_FOUND = 1029;\nexports.ER_GET_ERRNO = 1030;\nexports.ER_ILLEGAL_HA = 1031;\nexports.ER_KEY_NOT_FOUND = 1032;\nexports.ER_NOT_FORM_FILE = 1033;\nexports.ER_NOT_KEYFILE = 1034;\nexports.ER_OLD_KEYFILE = 1035;\nexports.ER_OPEN_AS_READONLY = 1036;\nexports.ER_OUTOFMEMORY = 1037;\nexports.ER_OUT_OF_SORTMEMORY = 1038;\nexports.ER_UNEXPECTED_EOF = 1039;\nexports.ER_CON_COUNT_ERROR = 1040;\nexports.ER_OUT_OF_RESOURCES = 1041;\nexports.ER_BAD_HOST_ERROR = 1042;\nexports.ER_HANDSHAKE_ERROR = 1043;\nexports.ER_DBACCESS_DENIED_ERROR = 1044;\nexports.ER_ACCESS_DENIED_ERROR = 1045;\nexports.ER_NO_DB_ERROR = 1046;\nexports.ER_UNKNOWN_COM_ERROR = 1047;\nexports.ER_BAD_NULL_ERROR = 1048;\nexports.ER_BAD_DB_ERROR = 1049;\nexports.ER_TABLE_EXISTS_ERROR = 1050;\nexports.ER_BAD_TABLE_ERROR = 1051;\nexports.ER_NON_UNIQ_ERROR = 1052;\nexports.ER_SERVER_SHUTDOWN = 1053;\nexports.ER_BAD_FIELD_ERROR = 1054;\nexports.ER_WRONG_FIELD_WITH_GROUP = 1055;\nexports.ER_WRONG_GROUP_FIELD = 1056;\nexports.ER_WRONG_SUM_SELECT = 1057;\nexports.ER_WRONG_VALUE_COUNT = 1058;\nexports.ER_TOO_LONG_IDENT = 1059;\nexports.ER_DUP_FIELDNAME = 1060;\nexports.ER_DUP_KEYNAME = 1061;\nexports.ER_DUP_ENTRY = 1062;\nexports.ER_WRONG_FIELD_SPEC = 1063;\nexports.ER_PARSE_ERROR = 1064;\nexports.ER_EMPTY_QUERY = 1065;\nexports.ER_NONUNIQ_TABLE = 1066;\nexports.ER_INVALID_DEFAULT = 1067;\nexports.ER_MULTIPLE_PRI_KEY = 1068;\nexports.ER_TOO_MANY_KEYS = 1069;\nexports.ER_TOO_MANY_KEY_PARTS = 1070;\nexports.ER_TOO_LONG_KEY = 1071;\nexports.ER_KEY_COLUMN_DOES_NOT_EXITS = 1072;\nexports.ER_BLOB_USED_AS_KEY = 1073;\nexports.ER_TOO_BIG_FIELDLENGTH = 1074;\nexports.ER_WRONG_AUTO_KEY = 1075;\nexports.ER_READY = 1076;\nexports.ER_NORMAL_SHUTDOWN = 1077;\nexports.ER_GOT_SIGNAL = 1078;\nexports.ER_SHUTDOWN_COMPLETE = 1079;\nexports.ER_FORCING_CLOSE = 1080;\nexports.ER_IPSOCK_ERROR = 1081;\nexports.ER_NO_SUCH_INDEX = 1082;\nexports.ER_WRONG_FIELD_TERMINATORS = 1083;\nexports.ER_BLOBS_AND_NO_TERMINATED = 1084;\nexports.ER_TEXTFILE_NOT_READABLE = 1085;\nexports.ER_FILE_EXISTS_ERROR = 1086;\nexports.ER_LOAD_INFO = 1087;\nexports.ER_ALTER_INFO = 1088;\nexports.ER_WRONG_SUB_KEY = 1089;\nexports.ER_CANT_REMOVE_ALL_FIELDS = 1090;\nexports.ER_CANT_DROP_FIELD_OR_KEY = 1091;\nexports.ER_INSERT_INFO = 1092;\nexports.ER_UPDATE_TABLE_USED = 1093;\nexports.ER_NO_SUCH_THREAD = 1094;\nexports.ER_KILL_DENIED_ERROR = 1095;\nexports.ER_NO_TABLES_USED = 1096;\nexports.ER_TOO_BIG_SET = 1097;\nexports.ER_NO_UNIQUE_LOGFILE = 1098;\nexports.ER_TABLE_NOT_LOCKED_FOR_WRITE = 1099;\nexports.ER_TABLE_NOT_LOCKED = 1100;\nexports.ER_BLOB_CANT_HAVE_DEFAULT = 1101;\nexports.ER_WRONG_DB_NAME = 1102;\nexports.ER_WRONG_TABLE_NAME = 1103;\nexports.ER_TOO_BIG_SELECT = 1104;\nexports.ER_UNKNOWN_ERROR = 1105;\nexports.ER_UNKNOWN_PROCEDURE = 1106;\nexports.ER_WRONG_PARAMCOUNT_TO_PROCEDURE = 1107;\nexports.ER_WRONG_PARAMETERS_TO_PROCEDURE = 1108;\nexports.ER_UNKNOWN_TABLE = 1109;\nexports.ER_FIELD_SPECIFIED_TWICE = 1110;\nexports.ER_INVALID_GROUP_FUNC_USE = 1111;\nexports.ER_UNSUPPORTED_EXTENSION = 1112;\nexports.ER_TABLE_MUST_HAVE_COLUMNS = 1113;\nexports.ER_RECORD_FILE_FULL = 1114;\nexports.ER_UNKNOWN_CHARACTER_SET = 1115;\nexports.ER_TOO_MANY_TABLES = 1116;\nexports.ER_TOO_MANY_FIELDS = 1117;\nexports.ER_TOO_BIG_ROWSIZE = 1118;\nexports.ER_STACK_OVERRUN = 1119;\nexports.ER_WRONG_OUTER_JOIN = 1120;\nexports.ER_NULL_COLUMN_IN_INDEX = 1121;\nexports.ER_CANT_FIND_UDF = 1122;\nexports.ER_CANT_INITIALIZE_UDF = 1123;\nexports.ER_UDF_NO_PATHS = 1124;\nexports.ER_UDF_EXISTS = 1125;\nexports.ER_CANT_OPEN_LIBRARY = 1126;\nexports.ER_CANT_FIND_DL_ENTRY = 1127;\nexports.ER_FUNCTION_NOT_DEFINED = 1128;\nexports.ER_HOST_IS_BLOCKED = 1129;\nexports.ER_HOST_NOT_PRIVILEGED = 1130;\nexports.ER_PASSWORD_ANONYMOUS_USER = 1131;\nexports.ER_PASSWORD_NOT_ALLOWED = 1132;\nexports.ER_PASSWORD_NO_MATCH = 1133;\nexports.ER_UPDATE_INFO = 1134;\nexports.ER_CANT_CREATE_THREAD = 1135;\nexports.ER_WRONG_VALUE_COUNT_ON_ROW = 1136;\nexports.ER_CANT_REOPEN_TABLE = 1137;\nexports.ER_INVALID_USE_OF_NULL = 1138;\nexports.ER_REGEXP_ERROR = 1139;\nexports.ER_MIX_OF_GROUP_FUNC_AND_FIELDS = 1140;\nexports.ER_NONEXISTING_GRANT = 1141;\nexports.ER_TABLEACCESS_DENIED_ERROR = 1142;\nexports.ER_COLUMNACCESS_DENIED_ERROR = 1143;\nexports.ER_ILLEGAL_GRANT_FOR_TABLE = 1144;\nexports.ER_GRANT_WRONG_HOST_OR_USER = 1145;\nexports.ER_NO_SUCH_TABLE = 1146;\nexports.ER_NONEXISTING_TABLE_GRANT = 1147;\nexports.ER_NOT_ALLOWED_COMMAND = 1148;\nexports.ER_SYNTAX_ERROR = 1149;\nexports.ER_DELAYED_CANT_CHANGE_LOCK = 1150;\nexports.ER_TOO_MANY_DELAYED_THREADS = 1151;\nexports.ER_ABORTING_CONNECTION = 1152;\nexports.ER_NET_PACKET_TOO_LARGE = 1153;\nexports.ER_NET_READ_ERROR_FROM_PIPE = 1154;\nexports.ER_NET_FCNTL_ERROR = 1155;\nexports.ER_NET_PACKETS_OUT_OF_ORDER = 1156;\nexports.ER_NET_UNCOMPRESS_ERROR = 1157;\nexports.ER_NET_READ_ERROR = 1158;\nexports.ER_NET_READ_INTERRUPTED = 1159;\nexports.ER_NET_ERROR_ON_WRITE = 1160;\nexports.ER_NET_WRITE_INTERRUPTED = 1161;\nexports.ER_TOO_LONG_STRING = 1162;\nexports.ER_TABLE_CANT_HANDLE_BLOB = 1163;\nexports.ER_TABLE_CANT_HANDLE_AUTO_INCREMENT = 1164;\nexports.ER_DELAYED_INSERT_TABLE_LOCKED = 1165;\nexports.ER_WRONG_COLUMN_NAME = 1166;\nexports.ER_WRONG_KEY_COLUMN = 1167;\nexports.ER_WRONG_MRG_TABLE = 1168;\nexports.ER_DUP_UNIQUE = 1169;\nexports.ER_BLOB_KEY_WITHOUT_LENGTH = 1170;\nexports.ER_PRIMARY_CANT_HAVE_NULL = 1171;\nexports.ER_TOO_MANY_ROWS = 1172;\nexports.ER_REQUIRES_PRIMARY_KEY = 1173;\nexports.ER_NO_RAID_COMPILED = 1174;\nexports.ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE = 1175;\nexports.ER_KEY_DOES_NOT_EXITS = 1176;\nexports.ER_CHECK_NO_SUCH_TABLE = 1177;\nexports.ER_CHECK_NOT_IMPLEMENTED = 1178;\nexports.ER_CANT_DO_THIS_DURING_AN_TRANSACTION = 1179;\nexports.ER_ERROR_DURING_COMMIT = 1180;\nexports.ER_ERROR_DURING_ROLLBACK = 1181;\nexports.ER_ERROR_DURING_FLUSH_LOGS = 1182;\nexports.ER_ERROR_DURING_CHECKPOINT = 1183;\nexports.ER_NEW_ABORTING_CONNECTION = 1184;\nexports.ER_DUMP_NOT_IMPLEMENTED = 1185;\nexports.ER_FLUSH_MASTER_BINLOG_CLOSED = 1186; // deprecated\nexports.ER_FLUSH_SOURCE_BINLOG_CLOSED = 1186;\nexports.ER_INDEX_REBUILD = 1187;\nexports.ER_MASTER = 1188; // deprecated\nexports.ER_SOURCE = 1188;\nexports.ER_MASTER_NET_READ = 1189; // deprecated\nexports.ER_SOURCE_NET_READ = 1189;\nexports.ER_MASTER_NET_WRITE = 1190; // deprecated\nexports.ER_SOURCE_NET_WRITE = 1190;\nexports.ER_FT_MATCHING_KEY_NOT_FOUND = 1191;\nexports.ER_LOCK_OR_ACTIVE_TRANSACTION = 1192;\nexports.ER_UNKNOWN_SYSTEM_VARIABLE = 1193;\nexports.ER_CRASHED_ON_USAGE = 1194;\nexports.ER_CRASHED_ON_REPAIR = 1195;\nexports.ER_WARNING_NOT_COMPLETE_ROLLBACK = 1196;\nexports.ER_TRANS_CACHE_FULL = 1197;\nexports.ER_SLAVE_MUST_STOP = 1198; // deprecated\nexports.ER_REPLICA_MUST_STOP = 1198;\nexports.ER_SLAVE_NOT_RUNNING = 1199; // deprecated\nexports.ER_REPLICA_NOT_RUNNING = 1199;\nexports.ER_BAD_SLAVE = 1200; // deprecated\nexports.ER_BAD_REPLICA = 1200;\nexports.ER_MASTER_INFO = 1201; // deprecated\nexports.ER_SOURCE_INFO = 1201;\nexports.ER_SLAVE_THREAD = 1202; // deprecated\nexports.ER_REPLICA_THREAD = 1202;\nexports.ER_TOO_MANY_USER_CONNECTIONS = 1203;\nexports.ER_SET_CONSTANTS_ONLY = 1204;\nexports.ER_LOCK_WAIT_TIMEOUT = 1205;\nexports.ER_LOCK_TABLE_FULL = 1206;\nexports.ER_READ_ONLY_TRANSACTION = 1207;\nexports.ER_DROP_DB_WITH_READ_LOCK = 1208;\nexports.ER_CREATE_DB_WITH_READ_LOCK = 1209;\nexports.ER_WRONG_ARGUMENTS = 1210;\nexports.ER_NO_PERMISSION_TO_CREATE_USER = 1211;\nexports.ER_UNION_TABLES_IN_DIFFERENT_DIR = 1212;\nexports.ER_LOCK_DEADLOCK = 1213;\nexports.ER_TABLE_CANT_HANDLE_FT = 1214;\nexports.ER_CANNOT_ADD_FOREIGN = 1215;\nexports.ER_NO_REFERENCED_ROW = 1216;\nexports.ER_ROW_IS_REFERENCED = 1217;\nexports.ER_CONNECT_TO_MASTER = 1218; // deprecated\nexports.ER_CONNECT_TO_SOURCE = 1218;\nexports.ER_QUERY_ON_MASTER = 1219; // deprecated\nexports.ER_QUERY_ON_SOURCE = 1219;\nexports.ER_ERROR_WHEN_EXECUTING_COMMAND = 1220;\nexports.ER_WRONG_USAGE = 1221;\nexports.ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT = 1222;\nexports.ER_CANT_UPDATE_WITH_READLOCK = 1223;\nexports.ER_MIXING_NOT_ALLOWED = 1224;\nexports.ER_DUP_ARGUMENT = 1225;\nexports.ER_USER_LIMIT_REACHED = 1226;\nexports.ER_SPECIFIC_ACCESS_DENIED_ERROR = 1227;\nexports.ER_LOCAL_VARIABLE = 1228;\nexports.ER_GLOBAL_VARIABLE = 1229;\nexports.ER_NO_DEFAULT = 1230;\nexports.ER_WRONG_VALUE_FOR_VAR = 1231;\nexports.ER_WRONG_TYPE_FOR_VAR = 1232;\nexports.ER_VAR_CANT_BE_READ = 1233;\nexports.ER_CANT_USE_OPTION_HERE = 1234;\nexports.ER_NOT_SUPPORTED_YET = 1235;\nexports.ER_MASTER_FATAL_ERROR_READING_BINLOG = 1236; // deprecated\nexports.ER_SOURCE_FATAL_ERROR_READING_BINLOG = 1236;\nexports.ER_SLAVE_IGNORED_TABLE = 1237; // deprecated\nexports.ER_REPLICA_IGNORED_TABLE = 1237;\nexports.ER_INCORRECT_GLOBAL_LOCAL_VAR = 1238;\nexports.ER_WRONG_FK_DEF = 1239;\nexports.ER_KEY_REF_DO_NOT_MATCH_TABLE_REF = 1240;\nexports.ER_OPERAND_COLUMNS = 1241;\nexports.ER_SUBQUERY_NO_1_ROW = 1242;\nexports.ER_UNKNOWN_STMT_HANDLER = 1243;\nexports.ER_CORRUPT_HELP_DB = 1244;\nexports.ER_CYCLIC_REFERENCE = 1245;\nexports.ER_AUTO_CONVERT = 1246;\nexports.ER_ILLEGAL_REFERENCE = 1247;\nexports.ER_DERIVED_MUST_HAVE_ALIAS = 1248;\nexports.ER_SELECT_REDUCED = 1249;\nexports.ER_TABLENAME_NOT_ALLOWED_HERE = 1250;\nexports.ER_NOT_SUPPORTED_AUTH_MODE = 1251;\nexports.ER_SPATIAL_CANT_HAVE_NULL = 1252;\nexports.ER_COLLATION_CHARSET_MISMATCH = 1253;\nexports.ER_SLAVE_WAS_RUNNING = 1254; // deprecated\nexports.ER_REPLICA_WAS_RUNNING = 1254;\nexports.ER_SLAVE_WAS_NOT_RUNNING = 1255; // deprecated\nexports.ER_REPLICA_WAS_NOT_RUNNING = 1255;\nexports.ER_TOO_BIG_FOR_UNCOMPRESS = 1256;\nexports.ER_ZLIB_Z_MEM_ERROR = 1257;\nexports.ER_ZLIB_Z_BUF_ERROR = 1258;\nexports.ER_ZLIB_Z_DATA_ERROR = 1259;\nexports.ER_CUT_VALUE_GROUP_CONCAT = 1260;\nexports.ER_WARN_TOO_FEW_RECORDS = 1261;\nexports.ER_WARN_TOO_MANY_RECORDS = 1262;\nexports.ER_WARN_NULL_TO_NOTNULL = 1263;\nexports.ER_WARN_DATA_OUT_OF_RANGE = 1264;\nexports.ER_WARN_DATA_TRUNCATED = 1265;\nexports.ER_WARN_USING_OTHER_HANDLER = 1266;\nexports.ER_CANT_AGGREGATE_2COLLATIONS = 1267;\nexports.ER_DROP_USER = 1268;\nexports.ER_REVOKE_GRANTS = 1269;\nexports.ER_CANT_AGGREGATE_3COLLATIONS = 1270;\nexports.ER_CANT_AGGREGATE_NCOLLATIONS = 1271;\nexports.ER_VARIABLE_IS_NOT_STRUCT = 1272;\nexports.ER_UNKNOWN_COLLATION = 1273;\nexports.ER_SLAVE_IGNORED_SSL_PARAMS = 1274; // deprecated\nexports.ER_REPLICA_IGNORED_SSL_PARAMS = 1274;\nexports.ER_SERVER_IS_IN_SECURE_AUTH_MODE = 1275;\nexports.ER_WARN_FIELD_RESOLVED = 1276;\nexports.ER_BAD_SLAVE_UNTIL_COND = 1277; // deprecated\nexports.ER_BAD_REPLICA_UNTIL_COND = 1277;\nexports.ER_MISSING_SKIP_SLAVE = 1278; // deprecated\nexports.ER_MISSING_SKIP_REPLICA = 1278;\nexports.ER_UNTIL_COND_IGNORED = 1279;\nexports.ER_WRONG_NAME_FOR_INDEX = 1280;\nexports.ER_WRONG_NAME_FOR_CATALOG = 1281;\nexports.ER_WARN_QC_RESIZE = 1282;\nexports.ER_BAD_FT_COLUMN = 1283;\nexports.ER_UNKNOWN_KEY_CACHE = 1284;\nexports.ER_WARN_HOSTNAME_WONT_WORK = 1285;\nexports.ER_UNKNOWN_STORAGE_ENGINE = 1286;\nexports.ER_WARN_DEPRECATED_SYNTAX = 1287;\nexports.ER_NON_UPDATABLE_TABLE = 1288;\nexports.ER_FEATURE_DISABLED = 1289;\nexports.ER_OPTION_PREVENTS_STATEMENT = 1290;\nexports.ER_DUPLICATED_VALUE_IN_TYPE = 1291;\nexports.ER_TRUNCATED_WRONG_VALUE = 1292;\nexports.ER_TOO_MUCH_AUTO_TIMESTAMP_COLS = 1293;\nexports.ER_INVALID_ON_UPDATE = 1294;\nexports.ER_UNSUPPORTED_PS = 1295;\nexports.ER_GET_ERRMSG = 1296;\nexports.ER_GET_TEMPORARY_ERRMSG = 1297;\nexports.ER_UNKNOWN_TIME_ZONE = 1298;\nexports.ER_WARN_INVALID_TIMESTAMP = 1299;\nexports.ER_INVALID_CHARACTER_STRING = 1300;\nexports.ER_WARN_ALLOWED_PACKET_OVERFLOWED = 1301;\nexports.ER_CONFLICTING_DECLARATIONS = 1302;\nexports.ER_SP_NO_RECURSIVE_CREATE = 1303;\nexports.ER_SP_ALREADY_EXISTS = 1304;\nexports.ER_SP_DOES_NOT_EXIST = 1305;\nexports.ER_SP_DROP_FAILED = 1306;\nexports.ER_SP_STORE_FAILED = 1307;\nexports.ER_SP_LILABEL_MISMATCH = 1308;\nexports.ER_SP_LABEL_REDEFINE = 1309;\nexports.ER_SP_LABEL_MISMATCH = 1310;\nexports.ER_SP_UNINIT_VAR = 1311;\nexports.ER_SP_BADSELECT = 1312;\nexports.ER_SP_BADRETURN = 1313;\nexports.ER_SP_BADSTATEMENT = 1314;\nexports.ER_UPDATE_LOG_DEPRECATED_IGNORED = 1315;\nexports.ER_UPDATE_LOG_DEPRECATED_TRANSLATED = 1316;\nexports.ER_QUERY_INTERRUPTED = 1317;\nexports.ER_SP_WRONG_NO_OF_ARGS = 1318;\nexports.ER_SP_COND_MISMATCH = 1319;\nexports.ER_SP_NORETURN = 1320;\nexports.ER_SP_NORETURNEND = 1321;\nexports.ER_SP_BAD_CURSOR_QUERY = 1322;\nexports.ER_SP_BAD_CURSOR_SELECT = 1323;\nexports.ER_SP_CURSOR_MISMATCH = 1324;\nexports.ER_SP_CURSOR_ALREADY_OPEN = 1325;\nexports.ER_SP_CURSOR_NOT_OPEN = 1326;\nexports.ER_SP_UNDECLARED_VAR = 1327;\nexports.ER_SP_WRONG_NO_OF_FETCH_ARGS = 1328;\nexports.ER_SP_FETCH_NO_DATA = 1329;\nexports.ER_SP_DUP_PARAM = 1330;\nexports.ER_SP_DUP_VAR = 1331;\nexports.ER_SP_DUP_COND = 1332;\nexports.ER_SP_DUP_CURS = 1333;\nexports.ER_SP_CANT_ALTER = 1334;\nexports.ER_SP_SUBSELECT_NYI = 1335;\nexports.ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG = 1336;\nexports.ER_SP_VARCOND_AFTER_CURSHNDLR = 1337;\nexports.ER_SP_CURSOR_AFTER_HANDLER = 1338;\nexports.ER_SP_CASE_NOT_FOUND = 1339;\nexports.ER_FPARSER_TOO_BIG_FILE = 1340;\nexports.ER_FPARSER_BAD_HEADER = 1341;\nexports.ER_FPARSER_EOF_IN_COMMENT = 1342;\nexports.ER_FPARSER_ERROR_IN_PARAMETER = 1343;\nexports.ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER = 1344;\nexports.ER_VIEW_NO_EXPLAIN = 1345;\nexports.ER_FRM_UNKNOWN_TYPE = 1346;\nexports.ER_WRONG_OBJECT = 1347;\nexports.ER_NONUPDATEABLE_COLUMN = 1348;\nexports.ER_VIEW_SELECT_DERIVED = 1349;\nexports.ER_VIEW_SELECT_CLAUSE = 1350;\nexports.ER_VIEW_SELECT_VARIABLE = 1351;\nexports.ER_VIEW_SELECT_TMPTABLE = 1352;\nexports.ER_VIEW_WRONG_LIST = 1353;\nexports.ER_WARN_VIEW_MERGE = 1354;\nexports.ER_WARN_VIEW_WITHOUT_KEY = 1355;\nexports.ER_VIEW_INVALID = 1356;\nexports.ER_SP_NO_DROP_SP = 1357;\nexports.ER_SP_GOTO_IN_HNDLR = 1358;\nexports.ER_TRG_ALREADY_EXISTS = 1359;\nexports.ER_TRG_DOES_NOT_EXIST = 1360;\nexports.ER_TRG_ON_VIEW_OR_TEMP_TABLE = 1361;\nexports.ER_TRG_CANT_CHANGE_ROW = 1362;\nexports.ER_TRG_NO_SUCH_ROW_IN_TRG = 1363;\nexports.ER_NO_DEFAULT_FOR_FIELD = 1364;\nexports.ER_DIVISION_BY_ZERO = 1365;\nexports.ER_TRUNCATED_WRONG_VALUE_FOR_FIELD = 1366;\nexports.ER_ILLEGAL_VALUE_FOR_TYPE = 1367;\nexports.ER_VIEW_NONUPD_CHECK = 1368;\nexports.ER_VIEW_CHECK_FAILED = 1369;\nexports.ER_PROCACCESS_DENIED_ERROR = 1370;\nexports.ER_RELAY_LOG_FAIL = 1371;\nexports.ER_PASSWD_LENGTH = 1372;\nexports.ER_UNKNOWN_TARGET_BINLOG = 1373;\nexports.ER_IO_ERR_LOG_INDEX_READ = 1374;\nexports.ER_BINLOG_PURGE_PROHIBITED = 1375;\nexports.ER_FSEEK_FAIL = 1376;\nexports.ER_BINLOG_PURGE_FATAL_ERR = 1377;\nexports.ER_LOG_IN_USE = 1378;\nexports.ER_LOG_PURGE_UNKNOWN_ERR = 1379;\nexports.ER_RELAY_LOG_INIT = 1380;\nexports.ER_NO_BINARY_LOGGING = 1381;\nexports.ER_RESERVED_SYNTAX = 1382;\nexports.ER_WSAS_FAILED = 1383;\nexports.ER_DIFF_GROUPS_PROC = 1384;\nexports.ER_NO_GROUP_FOR_PROC = 1385;\nexports.ER_ORDER_WITH_PROC = 1386;\nexports.ER_LOGGING_PROHIBIT_CHANGING_OF = 1387;\nexports.ER_NO_FILE_MAPPING = 1388;\nexports.ER_WRONG_MAGIC = 1389;\nexports.ER_PS_MANY_PARAM = 1390;\nexports.ER_KEY_PART_0 = 1391;\nexports.ER_VIEW_CHECKSUM = 1392;\nexports.ER_VIEW_MULTIUPDATE = 1393;\nexports.ER_VIEW_NO_INSERT_FIELD_LIST = 1394;\nexports.ER_VIEW_DELETE_MERGE_VIEW = 1395;\nexports.ER_CANNOT_USER = 1396;\nexports.ER_XAER_NOTA = 1397;\nexports.ER_XAER_INVAL = 1398;\nexports.ER_XAER_RMFAIL = 1399;\nexports.ER_XAER_OUTSIDE = 1400;\nexports.ER_XAER_RMERR = 1401;\nexports.ER_XA_RBROLLBACK = 1402;\nexports.ER_NONEXISTING_PROC_GRANT = 1403;\nexports.ER_PROC_AUTO_GRANT_FAIL = 1404;\nexports.ER_PROC_AUTO_REVOKE_FAIL = 1405;\nexports.ER_DATA_TOO_LONG = 1406;\nexports.ER_SP_BAD_SQLSTATE = 1407;\nexports.ER_STARTUP = 1408;\nexports.ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR = 1409;\nexports.ER_CANT_CREATE_USER_WITH_GRANT = 1410;\nexports.ER_WRONG_VALUE_FOR_TYPE = 1411;\nexports.ER_TABLE_DEF_CHANGED = 1412;\nexports.ER_SP_DUP_HANDLER = 1413;\nexports.ER_SP_NOT_VAR_ARG = 1414;\nexports.ER_SP_NO_RETSET = 1415;\nexports.ER_CANT_CREATE_GEOMETRY_OBJECT = 1416;\nexports.ER_FAILED_ROUTINE_BREAK_BINLOG = 1417;\nexports.ER_BINLOG_UNSAFE_ROUTINE = 1418;\nexports.ER_BINLOG_CREATE_ROUTINE_NEED_SUPER = 1419;\nexports.ER_EXEC_STMT_WITH_OPEN_CURSOR = 1420;\nexports.ER_STMT_HAS_NO_OPEN_CURSOR = 1421;\nexports.ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG = 1422;\nexports.ER_NO_DEFAULT_FOR_VIEW_FIELD = 1423;\nexports.ER_SP_NO_RECURSION = 1424;\nexports.ER_TOO_BIG_SCALE = 1425;\nexports.ER_TOO_BIG_PRECISION = 1426;\nexports.ER_M_BIGGER_THAN_D = 1427;\nexports.ER_WRONG_LOCK_OF_SYSTEM_TABLE = 1428;\nexports.ER_CONNECT_TO_FOREIGN_DATA_SOURCE = 1429;\nexports.ER_QUERY_ON_FOREIGN_DATA_SOURCE = 1430;\nexports.ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST = 1431;\nexports.ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE = 1432;\nexports.ER_FOREIGN_DATA_STRING_INVALID = 1433;\nexports.ER_CANT_CREATE_FEDERATED_TABLE = 1434;\nexports.ER_TRG_IN_WRONG_SCHEMA = 1435;\nexports.ER_STACK_OVERRUN_NEED_MORE = 1436;\nexports.ER_TOO_LONG_BODY = 1437;\nexports.ER_WARN_CANT_DROP_DEFAULT_KEYCACHE = 1438;\nexports.ER_TOO_BIG_DISPLAYWIDTH = 1439;\nexports.ER_XAER_DUPID = 1440;\nexports.ER_DATETIME_FUNCTION_OVERFLOW = 1441;\nexports.ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG = 1442;\nexports.ER_VIEW_PREVENT_UPDATE = 1443;\nexports.ER_PS_NO_RECURSION = 1444;\nexports.ER_SP_CANT_SET_AUTOCOMMIT = 1445;\nexports.ER_MALFORMED_DEFINER = 1446;\nexports.ER_VIEW_FRM_NO_USER = 1447;\nexports.ER_VIEW_OTHER_USER = 1448;\nexports.ER_NO_SUCH_USER = 1449;\nexports.ER_FORBID_SCHEMA_CHANGE = 1450;\nexports.ER_ROW_IS_REFERENCED_2 = 1451;\nexports.ER_NO_REFERENCED_ROW_2 = 1452;\nexports.ER_SP_BAD_VAR_SHADOW = 1453;\nexports.ER_TRG_NO_DEFINER = 1454;\nexports.ER_OLD_FILE_FORMAT = 1455;\nexports.ER_SP_RECURSION_LIMIT = 1456;\nexports.ER_SP_PROC_TABLE_CORRUPT = 1457;\nexports.ER_SP_WRONG_NAME = 1458;\nexports.ER_TABLE_NEEDS_UPGRADE = 1459;\nexports.ER_SP_NO_AGGREGATE = 1460;\nexports.ER_MAX_PREPARED_STMT_COUNT_REACHED = 1461;\nexports.ER_VIEW_RECURSIVE = 1462;\nexports.ER_NON_GROUPING_FIELD_USED = 1463;\nexports.ER_TABLE_CANT_HANDLE_SPKEYS = 1464;\nexports.ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA = 1465;\nexports.ER_REMOVED_SPACES = 1466;\nexports.ER_AUTOINC_READ_FAILED = 1467;\nexports.ER_USERNAME = 1468;\nexports.ER_HOSTNAME = 1469;\nexports.ER_WRONG_STRING_LENGTH = 1470;\nexports.ER_NON_INSERTABLE_TABLE = 1471;\nexports.ER_ADMIN_WRONG_MRG_TABLE = 1472;\nexports.ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT = 1473;\nexports.ER_NAME_BECOMES_EMPTY = 1474;\nexports.ER_AMBIGUOUS_FIELD_TERM = 1475;\nexports.ER_FOREIGN_SERVER_EXISTS = 1476;\nexports.ER_FOREIGN_SERVER_DOESNT_EXIST = 1477;\nexports.ER_ILLEGAL_HA_CREATE_OPTION = 1478;\nexports.ER_PARTITION_REQUIRES_VALUES_ERROR = 1479;\nexports.ER_PARTITION_WRONG_VALUES_ERROR = 1480;\nexports.ER_PARTITION_MAXVALUE_ERROR = 1481;\nexports.ER_PARTITION_SUBPARTITION_ERROR = 1482;\nexports.ER_PARTITION_SUBPART_MIX_ERROR = 1483;\nexports.ER_PARTITION_WRONG_NO_PART_ERROR = 1484;\nexports.ER_PARTITION_WRONG_NO_SUBPART_ERROR = 1485;\nexports.ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR = 1486;\nexports.ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR = 1487;\nexports.ER_FIELD_NOT_FOUND_PART_ERROR = 1488;\nexports.ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR = 1489;\nexports.ER_INCONSISTENT_PARTITION_INFO_ERROR = 1490;\nexports.ER_PARTITION_FUNC_NOT_ALLOWED_ERROR = 1491;\nexports.ER_PARTITIONS_MUST_BE_DEFINED_ERROR = 1492;\nexports.ER_RANGE_NOT_INCREASING_ERROR = 1493;\nexports.ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR = 1494;\nexports.ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR = 1495;\nexports.ER_PARTITION_ENTRY_ERROR = 1496;\nexports.ER_MIX_HANDLER_ERROR = 1497;\nexports.ER_PARTITION_NOT_DEFINED_ERROR = 1498;\nexports.ER_TOO_MANY_PARTITIONS_ERROR = 1499;\nexports.ER_SUBPARTITION_ERROR = 1500;\nexports.ER_CANT_CREATE_HANDLER_FILE = 1501;\nexports.ER_BLOB_FIELD_IN_PART_FUNC_ERROR = 1502;\nexports.ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF = 1503;\nexports.ER_NO_PARTS_ERROR = 1504;\nexports.ER_PARTITION_MGMT_ON_NONPARTITIONED = 1505;\nexports.ER_FOREIGN_KEY_ON_PARTITIONED = 1506;\nexports.ER_DROP_PARTITION_NON_EXISTENT = 1507;\nexports.ER_DROP_LAST_PARTITION = 1508;\nexports.ER_COALESCE_ONLY_ON_HASH_PARTITION = 1509;\nexports.ER_REORG_HASH_ONLY_ON_SAME_NO = 1510;\nexports.ER_REORG_NO_PARAM_ERROR = 1511;\nexports.ER_ONLY_ON_RANGE_LIST_PARTITION = 1512;\nexports.ER_ADD_PARTITION_SUBPART_ERROR = 1513;\nexports.ER_ADD_PARTITION_NO_NEW_PARTITION = 1514;\nexports.ER_COALESCE_PARTITION_NO_PARTITION = 1515;\nexports.ER_REORG_PARTITION_NOT_EXIST = 1516;\nexports.ER_SAME_NAME_PARTITION = 1517;\nexports.ER_NO_BINLOG_ERROR = 1518;\nexports.ER_CONSECUTIVE_REORG_PARTITIONS = 1519;\nexports.ER_REORG_OUTSIDE_RANGE = 1520;\nexports.ER_PARTITION_FUNCTION_FAILURE = 1521;\nexports.ER_PART_STATE_ERROR = 1522;\nexports.ER_LIMITED_PART_RANGE = 1523;\nexports.ER_PLUGIN_IS_NOT_LOADED = 1524;\nexports.ER_WRONG_VALUE = 1525;\nexports.ER_NO_PARTITION_FOR_GIVEN_VALUE = 1526;\nexports.ER_FILEGROUP_OPTION_ONLY_ONCE = 1527;\nexports.ER_CREATE_FILEGROUP_FAILED = 1528;\nexports.ER_DROP_FILEGROUP_FAILED = 1529;\nexports.ER_TABLESPACE_AUTO_EXTEND_ERROR = 1530;\nexports.ER_WRONG_SIZE_NUMBER = 1531;\nexports.ER_SIZE_OVERFLOW_ERROR = 1532;\nexports.ER_ALTER_FILEGROUP_FAILED = 1533;\nexports.ER_BINLOG_ROW_LOGGING_FAILED = 1534;\nexports.ER_BINLOG_ROW_WRONG_TABLE_DEF = 1535;\nexports.ER_BINLOG_ROW_RBR_TO_SBR = 1536;\nexports.ER_EVENT_ALREADY_EXISTS = 1537;\nexports.ER_EVENT_STORE_FAILED = 1538;\nexports.ER_EVENT_DOES_NOT_EXIST = 1539;\nexports.ER_EVENT_CANT_ALTER = 1540;\nexports.ER_EVENT_DROP_FAILED = 1541;\nexports.ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG = 1542;\nexports.ER_EVENT_ENDS_BEFORE_STARTS = 1543;\nexports.ER_EVENT_EXEC_TIME_IN_THE_PAST = 1544;\nexports.ER_EVENT_OPEN_TABLE_FAILED = 1545;\nexports.ER_EVENT_NEITHER_M_EXPR_NOR_M_AT = 1546;\nexports.ER_COL_COUNT_DOESNT_MATCH_CORRUPTED = 1547;\nexports.ER_CANNOT_LOAD_FROM_TABLE = 1548;\nexports.ER_EVENT_CANNOT_DELETE = 1549;\nexports.ER_EVENT_COMPILE_ERROR = 1550;\nexports.ER_EVENT_SAME_NAME = 1551;\nexports.ER_EVENT_DATA_TOO_LONG = 1552;\nexports.ER_DROP_INDEX_FK = 1553;\nexports.ER_WARN_DEPRECATED_SYNTAX_WITH_VER = 1554;\nexports.ER_CANT_WRITE_LOCK_LOG_TABLE = 1555;\nexports.ER_CANT_LOCK_LOG_TABLE = 1556;\nexports.ER_FOREIGN_DUPLICATE_KEY = 1557;\nexports.ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE = 1558;\nexports.ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR = 1559;\nexports.ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1560;\nexports.ER_NDB_CANT_SWITCH_BINLOG_FORMAT = 1561;\nexports.ER_PARTITION_NO_TEMPORARY = 1562;\nexports.ER_PARTITION_CONST_DOMAIN_ERROR = 1563;\nexports.ER_PARTITION_FUNCTION_IS_NOT_ALLOWED = 1564;\nexports.ER_DDL_LOG_ERROR = 1565;\nexports.ER_NULL_IN_VALUES_LESS_THAN = 1566;\nexports.ER_WRONG_PARTITION_NAME = 1567;\nexports.ER_CANT_CHANGE_TX_ISOLATION = 1568;\nexports.ER_DUP_ENTRY_AUTOINCREMENT_CASE = 1569;\nexports.ER_EVENT_MODIFY_QUEUE_ERROR = 1570;\nexports.ER_EVENT_SET_VAR_ERROR = 1571;\nexports.ER_PARTITION_MERGE_ERROR = 1572;\nexports.ER_CANT_ACTIVATE_LOG = 1573;\nexports.ER_RBR_NOT_AVAILABLE = 1574;\nexports.ER_BASE64_DECODE_ERROR = 1575;\nexports.ER_EVENT_RECURSION_FORBIDDEN = 1576;\nexports.ER_EVENTS_DB_ERROR = 1577;\nexports.ER_ONLY_INTEGERS_ALLOWED = 1578;\nexports.ER_UNSUPORTED_LOG_ENGINE = 1579;\nexports.ER_BAD_LOG_STATEMENT = 1580;\nexports.ER_CANT_RENAME_LOG_TABLE = 1581;\nexports.ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT = 1582;\nexports.ER_WRONG_PARAMETERS_TO_NATIVE_FCT = 1583;\nexports.ER_WRONG_PARAMETERS_TO_STORED_FCT = 1584;\nexports.ER_NATIVE_FCT_NAME_COLLISION = 1585;\nexports.ER_DUP_ENTRY_WITH_KEY_NAME = 1586;\nexports.ER_BINLOG_PURGE_EMFILE = 1587;\nexports.ER_EVENT_CANNOT_CREATE_IN_THE_PAST = 1588;\nexports.ER_EVENT_CANNOT_ALTER_IN_THE_PAST = 1589;\nexports.ER_SLAVE_INCIDENT = 1590; // deprecated\nexports.ER_REPLICA_INCIDENT = 1590;\nexports.ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT = 1591;\nexports.ER_BINLOG_UNSAFE_STATEMENT = 1592;\nexports.ER_SLAVE_FATAL_ERROR = 1593; // deprecated\nexports.ER_REPLICA_FATAL_ERROR = 1593;\nexports.ER_SLAVE_RELAY_LOG_READ_FAILURE = 1594; //deprecated\nexports.ER_REPLICA_RELAY_LOG_READ_FAILURE = 1594;\nexports.ER_SLAVE_RELAY_LOG_WRITE_FAILURE = 1595; // deprecated\nexports.ER_REPLICA_RELAY_LOG_WRITE_FAILURE = 1595;\nexports.ER_SLAVE_CREATE_EVENT_FAILURE = 1596; // deprecated\nexports.ER_REPLICA_CREATE_EVENT_FAILURE = 1596;\nexports.ER_SLAVE_MASTER_COM_FAILURE = 1597; // deprecated\nexports.ER_REPLICA_SOURCE_COM_FAILURE = 1597;\nexports.ER_BINLOG_LOGGING_IMPOSSIBLE = 1598;\nexports.ER_VIEW_NO_CREATION_CTX = 1599;\nexports.ER_VIEW_INVALID_CREATION_CTX = 1600;\nexports.ER_SR_INVALID_CREATION_CTX = 1601;\nexports.ER_TRG_CORRUPTED_FILE = 1602;\nexports.ER_TRG_NO_CREATION_CTX = 1603;\nexports.ER_TRG_INVALID_CREATION_CTX = 1604;\nexports.ER_EVENT_INVALID_CREATION_CTX = 1605;\nexports.ER_TRG_CANT_OPEN_TABLE = 1606;\nexports.ER_CANT_CREATE_SROUTINE = 1607;\nexports.ER_NEVER_USED = 1608;\nexports.ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT = 1609;\nexports.ER_SLAVE_CORRUPT_EVENT = 1610; // deprecated\nexports.ER_REPLICA_CORRUPT_EVENT = 1610;\nexports.ER_LOAD_DATA_INVALID_COLUMN = 1611;\nexports.ER_LOG_PURGE_NO_FILE = 1612;\nexports.ER_XA_RBTIMEOUT = 1613;\nexports.ER_XA_RBDEADLOCK = 1614;\nexports.ER_NEED_REPREPARE = 1615;\nexports.ER_DELAYED_NOT_SUPPORTED = 1616;\nexports.WARN_NO_MASTER_INFO = 1617; // deprecated\nexports.WARN_NO_SOURCE_INFO = 1617;\nexports.WARN_OPTION_IGNORED = 1618;\nexports.WARN_PLUGIN_DELETE_BUILTIN = 1619;\nexports.WARN_PLUGIN_BUSY = 1620;\nexports.ER_VARIABLE_IS_READONLY = 1621;\nexports.ER_WARN_ENGINE_TRANSACTION_ROLLBACK = 1622;\nexports.ER_SLAVE_HEARTBEAT_FAILURE = 1623; // deprecated\nexports.ER_REPLICA_HEARTBEAT_FAILURE = 1623;\nexports.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE = 1624; // deprecated\nexports.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE = 1624;\nexports.ER_NDB_REPLICATION_SCHEMA_ERROR = 1625;\nexports.ER_CONFLICT_FN_PARSE_ERROR = 1626;\nexports.ER_EXCEPTIONS_WRITE_ERROR = 1627;\nexports.ER_TOO_LONG_TABLE_COMMENT = 1628;\nexports.ER_TOO_LONG_FIELD_COMMENT = 1629;\nexports.ER_FUNC_INEXISTENT_NAME_COLLISION = 1630;\nexports.ER_DATABASE_NAME = 1631;\nexports.ER_TABLE_NAME = 1632;\nexports.ER_PARTITION_NAME = 1633;\nexports.ER_SUBPARTITION_NAME = 1634;\nexports.ER_TEMPORARY_NAME = 1635;\nexports.ER_RENAMED_NAME = 1636;\nexports.ER_TOO_MANY_CONCURRENT_TRXS = 1637;\nexports.WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED = 1638;\nexports.ER_DEBUG_SYNC_TIMEOUT = 1639;\nexports.ER_DEBUG_SYNC_HIT_LIMIT = 1640;\nexports.ER_DUP_SIGNAL_SET = 1641;\nexports.ER_SIGNAL_WARN = 1642;\nexports.ER_SIGNAL_NOT_FOUND = 1643;\nexports.ER_SIGNAL_EXCEPTION = 1644;\nexports.ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER = 1645;\nexports.ER_SIGNAL_BAD_CONDITION_TYPE = 1646;\nexports.WARN_COND_ITEM_TRUNCATED = 1647;\nexports.ER_COND_ITEM_TOO_LONG = 1648;\nexports.ER_UNKNOWN_LOCALE = 1649;\nexports.ER_SLAVE_IGNORE_SERVER_IDS = 1650; // deprecated\nexports.ER_REPLICA_IGNORE_SERVER_IDS = 1650;\nexports.ER_QUERY_CACHE_DISABLED = 1651;\nexports.ER_SAME_NAME_PARTITION_FIELD = 1652;\nexports.ER_PARTITION_COLUMN_LIST_ERROR = 1653;\nexports.ER_WRONG_TYPE_COLUMN_VALUE_ERROR = 1654;\nexports.ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR = 1655;\nexports.ER_MAXVALUE_IN_VALUES_IN = 1656;\nexports.ER_TOO_MANY_VALUES_ERROR = 1657;\nexports.ER_ROW_SINGLE_PARTITION_FIELD_ERROR = 1658;\nexports.ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD = 1659;\nexports.ER_PARTITION_FIELDS_TOO_LONG = 1660;\nexports.ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE = 1661;\nexports.ER_BINLOG_ROW_MODE_AND_STMT_ENGINE = 1662;\nexports.ER_BINLOG_UNSAFE_AND_STMT_ENGINE = 1663;\nexports.ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE = 1664;\nexports.ER_BINLOG_STMT_MODE_AND_ROW_ENGINE = 1665;\nexports.ER_BINLOG_ROW_INJECTION_AND_STMT_MODE = 1666;\nexports.ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1667;\nexports.ER_BINLOG_UNSAFE_LIMIT = 1668;\nexports.ER_BINLOG_UNSAFE_INSERT_DELAYED = 1669;\nexports.ER_BINLOG_UNSAFE_SYSTEM_TABLE = 1670;\nexports.ER_BINLOG_UNSAFE_AUTOINC_COLUMNS = 1671;\nexports.ER_BINLOG_UNSAFE_UDF = 1672;\nexports.ER_BINLOG_UNSAFE_SYSTEM_VARIABLE = 1673;\nexports.ER_BINLOG_UNSAFE_SYSTEM_FUNCTION = 1674;\nexports.ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS = 1675;\nexports.ER_MESSAGE_AND_STATEMENT = 1676;\nexports.ER_SLAVE_CONVERSION_FAILED = 1677; // deprecated\nexports.ER_REPLICA_CONVERSION_FAILED = 1677;\nexports.ER_SLAVE_CANT_CREATE_CONVERSION = 1678; // deprecated\nexports.ER_REPLICA_CANT_CREATE_CONVERSION = 1678;\nexports.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1679;\nexports.ER_PATH_LENGTH = 1680;\nexports.ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT = 1681;\nexports.ER_WRONG_NATIVE_TABLE_STRUCTURE = 1682;\nexports.ER_WRONG_PERFSCHEMA_USAGE = 1683;\nexports.ER_WARN_I_S_SKIPPED_TABLE = 1684;\nexports.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1685;\nexports.ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1686;\nexports.ER_SPATIAL_MUST_HAVE_GEOM_COL = 1687;\nexports.ER_TOO_LONG_INDEX_COMMENT = 1688;\nexports.ER_LOCK_ABORTED = 1689;\nexports.ER_DATA_OUT_OF_RANGE = 1690;\nexports.ER_WRONG_SPVAR_TYPE_IN_LIMIT = 1691;\nexports.ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1692;\nexports.ER_BINLOG_UNSAFE_MIXED_STATEMENT = 1693;\nexports.ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1694;\nexports.ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1695;\nexports.ER_FAILED_READ_FROM_PAR_FILE = 1696;\nexports.ER_VALUES_IS_NOT_INT_TYPE_ERROR = 1697;\nexports.ER_ACCESS_DENIED_NO_PASSWORD_ERROR = 1698;\nexports.ER_SET_PASSWORD_AUTH_PLUGIN = 1699;\nexports.ER_GRANT_PLUGIN_USER_EXISTS = 1700;\nexports.ER_TRUNCATE_ILLEGAL_FK = 1701;\nexports.ER_PLUGIN_IS_PERMANENT = 1702;\nexports.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN = 1703; // deprecated\nexports.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN = 1703;\nexports.ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX = 1704; // deprecated\nexports.ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX = 1704;\nexports.ER_STMT_CACHE_FULL = 1705;\nexports.ER_MULTI_UPDATE_KEY_CONFLICT = 1706;\nexports.ER_TABLE_NEEDS_REBUILD = 1707;\nexports.WARN_OPTION_BELOW_LIMIT = 1708;\nexports.ER_INDEX_COLUMN_TOO_LONG = 1709;\nexports.ER_ERROR_IN_TRIGGER_BODY = 1710;\nexports.ER_ERROR_IN_UNKNOWN_TRIGGER_BODY = 1711;\nexports.ER_INDEX_CORRUPT = 1712;\nexports.ER_UNDO_RECORD_TOO_BIG = 1713;\nexports.ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT = 1714;\nexports.ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE = 1715;\nexports.ER_BINLOG_UNSAFE_REPLACE_SELECT = 1716;\nexports.ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT = 1717;\nexports.ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT = 1718;\nexports.ER_BINLOG_UNSAFE_UPDATE_IGNORE = 1719;\nexports.ER_PLUGIN_NO_UNINSTALL = 1720;\nexports.ER_PLUGIN_NO_INSTALL = 1721;\nexports.ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT = 1722;\nexports.ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC = 1723;\nexports.ER_BINLOG_UNSAFE_INSERT_TWO_KEYS = 1724;\nexports.ER_TABLE_IN_FK_CHECK = 1725;\nexports.ER_UNSUPPORTED_ENGINE = 1726;\nexports.ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST = 1727;\nexports.ER_CANNOT_LOAD_FROM_TABLE_V2 = 1728;\nexports.ER_MASTER_DELAY_VALUE_OUT_OF_RANGE = 1729; // deprecated\nexports.ER_SOURCE_DELAY_VALUE_OUT_OF_RANGE = 1729;\nexports.ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT = 1730;\nexports.ER_PARTITION_EXCHANGE_DIFFERENT_OPTION = 1731;\nexports.ER_PARTITION_EXCHANGE_PART_TABLE = 1732;\nexports.ER_PARTITION_EXCHANGE_TEMP_TABLE = 1733;\nexports.ER_PARTITION_INSTEAD_OF_SUBPARTITION = 1734;\nexports.ER_UNKNOWN_PARTITION = 1735;\nexports.ER_TABLES_DIFFERENT_METADATA = 1736;\nexports.ER_ROW_DOES_NOT_MATCH_PARTITION = 1737;\nexports.ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX = 1738;\nexports.ER_WARN_INDEX_NOT_APPLICABLE = 1739;\nexports.ER_PARTITION_EXCHANGE_FOREIGN_KEY = 1740;\nexports.ER_NO_SUCH_KEY_VALUE = 1741;\nexports.ER_RPL_INFO_DATA_TOO_LONG = 1742;\nexports.ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE = 1743;\nexports.ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE = 1744;\nexports.ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX = 1745;\nexports.ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT = 1746;\nexports.ER_PARTITION_CLAUSE_ON_NONPARTITIONED = 1747;\nexports.ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET = 1748;\nexports.ER_NO_SUCH_PARTITION = 1749;\nexports.ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE = 1750;\nexports.ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE = 1751;\nexports.ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE = 1752;\nexports.ER_MTS_FEATURE_IS_NOT_SUPPORTED = 1753;\nexports.ER_MTS_UPDATED_DBS_GREATER_MAX = 1754;\nexports.ER_MTS_CANT_PARALLEL = 1755;\nexports.ER_MTS_INCONSISTENT_DATA = 1756;\nexports.ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING = 1757;\nexports.ER_DA_INVALID_CONDITION_NUMBER = 1758;\nexports.ER_INSECURE_PLAIN_TEXT = 1759;\nexports.ER_INSECURE_CHANGE_MASTER = 1760; // deprecated\nexports.ER_INSECURE_CHANGE_SOURCE = 1760;\nexports.ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO = 1761;\nexports.ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO = 1762;\nexports.ER_SQLTHREAD_WITH_SECURE_SLAVE = 1763; // deprecated\nexports.ER_SQLTHREAD_WITH_SECURE_REPLICA = 1763;\nexports.ER_TABLE_HAS_NO_FT = 1764;\nexports.ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER = 1765;\nexports.ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION = 1766;\nexports.ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST = 1767;\nexports.ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL = 1768;\nexports.ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION = 1769;\nexports.ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL = 1770;\nexports.ER_SKIPPING_LOGGED_TRANSACTION = 1771;\nexports.ER_MALFORMED_GTID_SET_SPECIFICATION = 1772;\nexports.ER_MALFORMED_GTID_SET_ENCODING = 1773;\nexports.ER_MALFORMED_GTID_SPECIFICATION = 1774;\nexports.ER_GNO_EXHAUSTED = 1775;\nexports.ER_BAD_SLAVE_AUTO_POSITION = 1776; // deprecated\nexports.ER_BAD_REPLICA_AUTO_POSITION = 1776;\nexports.ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON = 1777;\nexports.ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET = 1778;\nexports.ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON = 1779;\nexports.ER_GTID_MODE_REQUIRES_BINLOG = 1780;\nexports.ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF = 1781;\nexports.ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON = 1782;\nexports.ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF = 1783;\nexports.ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF = 1784;\nexports.ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE = 1785;\nexports.ER_GTID_UNSAFE_CREATE_SELECT = 1786;\nexports.ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION = 1787;\nexports.ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME = 1788;\nexports.ER_MASTER_HAS_PURGED_REQUIRED_GTIDS = 1789; // deprecated\nexports.ER_SOURCE_HAS_PURGED_REQUIRED_GTIDS = 1789;\nexports.ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID = 1790;\nexports.ER_UNKNOWN_EXPLAIN_FORMAT = 1791;\nexports.ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION = 1792;\nexports.ER_TOO_LONG_TABLE_PARTITION_COMMENT = 1793;\nexports.ER_SLAVE_CONFIGURATION = 1794; // deprecated\nexports.ER_REPLICA_CONFIGURATION = 1794;\nexports.ER_INNODB_FT_LIMIT = 1795;\nexports.ER_INNODB_NO_FT_TEMP_TABLE = 1796;\nexports.ER_INNODB_FT_WRONG_DOCID_COLUMN = 1797;\nexports.ER_INNODB_FT_WRONG_DOCID_INDEX = 1798;\nexports.ER_INNODB_ONLINE_LOG_TOO_BIG = 1799;\nexports.ER_UNKNOWN_ALTER_ALGORITHM = 1800;\nexports.ER_UNKNOWN_ALTER_LOCK = 1801;\nexports.ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS = 1802; // deprecated\nexports.ER_MTS_CHANGE_SOURCE_CANT_RUN_WITH_GAPS = 1802;\nexports.ER_MTS_RECOVERY_FAILURE = 1803;\nexports.ER_MTS_RESET_WORKERS = 1804;\nexports.ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2 = 1805;\nexports.ER_SLAVE_SILENT_RETRY_TRANSACTION = 1806; // deprecated\nexports.ER_REPLICA_SILENT_RETRY_TRANSACTION = 1806;\nexports.ER_DISCARD_FK_CHECKS_RUNNING = 1807;\nexports.ER_TABLE_SCHEMA_MISMATCH = 1808;\nexports.ER_TABLE_IN_SYSTEM_TABLESPACE = 1809;\nexports.ER_IO_READ_ERROR = 1810;\nexports.ER_IO_WRITE_ERROR = 1811;\nexports.ER_TABLESPACE_MISSING = 1812;\nexports.ER_TABLESPACE_EXISTS = 1813;\nexports.ER_TABLESPACE_DISCARDED = 1814;\nexports.ER_INTERNAL_ERROR = 1815;\nexports.ER_INNODB_IMPORT_ERROR = 1816;\nexports.ER_INNODB_INDEX_CORRUPT = 1817;\nexports.ER_INVALID_YEAR_COLUMN_LENGTH = 1818;\nexports.ER_NOT_VALID_PASSWORD = 1819;\nexports.ER_MUST_CHANGE_PASSWORD = 1820;\nexports.ER_FK_NO_INDEX_CHILD = 1821;\nexports.ER_FK_NO_INDEX_PARENT = 1822;\nexports.ER_FK_FAIL_ADD_SYSTEM = 1823;\nexports.ER_FK_CANNOT_OPEN_PARENT = 1824;\nexports.ER_FK_INCORRECT_OPTION = 1825;\nexports.ER_FK_DUP_NAME = 1826;\nexports.ER_PASSWORD_FORMAT = 1827;\nexports.ER_FK_COLUMN_CANNOT_DROP = 1828;\nexports.ER_FK_COLUMN_CANNOT_DROP_CHILD = 1829;\nexports.ER_FK_COLUMN_NOT_NULL = 1830;\nexports.ER_DUP_INDEX = 1831;\nexports.ER_FK_COLUMN_CANNOT_CHANGE = 1832;\nexports.ER_FK_COLUMN_CANNOT_CHANGE_CHILD = 1833;\nexports.ER_FK_CANNOT_DELETE_PARENT = 1834;\nexports.ER_MALFORMED_PACKET = 1835;\nexports.ER_READ_ONLY_MODE = 1836;\nexports.ER_GTID_NEXT_TYPE_UNDEFINED_GROUP = 1837;\nexports.ER_VARIABLE_NOT_SETTABLE_IN_SP = 1838;\nexports.ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF = 1839;\nexports.ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY = 1840;\nexports.ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY = 1841;\nexports.ER_GTID_PURGED_WAS_CHANGED = 1842;\nexports.ER_GTID_EXECUTED_WAS_CHANGED = 1843;\nexports.ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES = 1844;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED = 1845;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON = 1846;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY = 1847;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION = 1848;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME = 1849;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE = 1850;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK = 1851;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE = 1852;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK = 1853;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC = 1854;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS = 1855;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS = 1856;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS = 1857;\nexports.ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE = 1858; // deprecated\nexports.ER_SQL_REPLICA_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE = 1858;\nexports.ER_DUP_UNKNOWN_IN_INDEX = 1859;\nexports.ER_IDENT_CAUSES_TOO_LONG_PATH = 1860;\nexports.ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL = 1861;\nexports.ER_MUST_CHANGE_PASSWORD_LOGIN = 1862;\nexports.ER_ROW_IN_WRONG_PARTITION = 1863;\nexports.ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX = 1864;\nexports.ER_INNODB_NO_FT_USES_PARSER = 1865;\nexports.ER_BINLOG_LOGICAL_CORRUPTION = 1866;\nexports.ER_WARN_PURGE_LOG_IN_USE = 1867;\nexports.ER_WARN_PURGE_LOG_IS_ACTIVE = 1868;\nexports.ER_AUTO_INCREMENT_CONFLICT = 1869;\nexports.WARN_ON_BLOCKHOLE_IN_RBR = 1870;\nexports.ER_SLAVE_MI_INIT_REPOSITORY = 1871; // deprecated\nexports.ER_REPLICA_MI_INIT_REPOSITORY = 1871;\nexports.ER_SLAVE_RLI_INIT_REPOSITORY = 1872; // deprecated\nexports.ER_REPLICA_RLI_INIT_REPOSITORY = 1872;\nexports.ER_ACCESS_DENIED_CHANGE_USER_ERROR = 1873;\nexports.ER_INNODB_READ_ONLY = 1874;\nexports.ER_STOP_SLAVE_SQL_THREAD_TIMEOUT = 1875; // deprecated\nexports.ER_STOP_REPLICA_SQL_THREAD_TIMEOUT = 1875;\nexports.ER_STOP_SLAVE_IO_THREAD_TIMEOUT = 1876; // deprecated\nexports.ER_STOP_REPLICA_IO_THREAD_TIMEOUT = 1876;\nexports.ER_TABLE_CORRUPT = 1877;\nexports.ER_TEMP_FILE_WRITE_FAILURE = 1878;\nexports.ER_INNODB_FT_AUX_NOT_HEX_ID = 1879;\nexports.ER_OLD_TEMPORALS_UPGRADED = 1880;\nexports.ER_INNODB_FORCED_RECOVERY = 1881;\nexports.ER_AES_INVALID_IV = 1882;\nexports.ER_FILE_CORRUPT = 1883;\nexports.ER_ERROR_ON_SOURCE = 1884;\nexports.ER_INCONSISTENT_ERROR = 1885;\nexports.ER_STORAGE_ENGINE_NOT_LOADED = 1886;\nexports.ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER = 1887;\nexports.ER_WARN_LEGACY_SYNTAX_CONVERTED = 1888;\nexports.ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN = 1889;\nexports.ER_CANNOT_DISCARD_TEMPORARY_TABLE = 1890;\nexports.ER_FK_DEPTH_EXCEEDED = 1891;\nexports.ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2 = 1892;\nexports.ER_WARN_TRIGGER_DOESNT_HAVE_CREATED = 1893;\nexports.ER_REFERENCED_TRG_DOES_NOT_EXIST = 1894;\nexports.ER_EXPLAIN_NOT_SUPPORTED = 1895;\nexports.ER_INVALID_FIELD_SIZE = 1896;\nexports.ER_MISSING_HA_CREATE_OPTION = 1897;\nexports.ER_ENGINE_OUT_OF_MEMORY = 1898;\nexports.ER_PASSWORD_EXPIRE_ANONYMOUS_USER = 1899;\nexports.ER_REPLICA_SQL_THREAD_MUST_STOP = 1900;\nexports.ER_NO_FT_MATERIALIZED_SUBQUERY = 1901;\nexports.ER_INNODB_UNDO_LOG_FULL = 1902;\nexports.ER_INVALID_ARGUMENT_FOR_LOGARITHM = 1903;\nexports.ER_REPLICA_IO_THREAD_MUST_STOP = 1904;\nexports.ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO = 1905;\nexports.ER_WARN_ONLY_SOURCE_LOG_FILE_NO_POS = 1906;\nexports.ER_QUERY_TIMEOUT = 1907;\nexports.ER_NON_RO_SELECT_DISABLE_TIMER = 1908;\nexports.ER_DUP_LIST_ENTRY = 1909;\nexports.ER_SQL_MODE_NO_EFFECT = 1910;\nexports.ER_SESSION_WAS_KILLED = 3169;\nexports.ER_CLIENT_INTERACTION_TIMEOUT = 4031;\n\n// Lookup-by-number table\nexports[1] = 'EE_CANTCREATEFILE';\nexports[2] = 'EE_READ';\nexports[3] = 'EE_WRITE';\nexports[4] = 'EE_BADCLOSE';\nexports[5] = 'EE_OUTOFMEMORY';\nexports[6] = 'EE_DELETE';\nexports[7] = 'EE_LINK';\nexports[9] = 'EE_EOFERR';\nexports[10] = 'EE_CANTLOCK';\nexports[11] = 'EE_CANTUNLOCK';\nexports[12] = 'EE_DIR';\nexports[13] = 'EE_STAT';\nexports[14] = 'EE_CANT_CHSIZE';\nexports[15] = 'EE_CANT_OPEN_STREAM';\nexports[16] = 'EE_GETWD';\nexports[17] = 'EE_SETWD';\nexports[18] = 'EE_LINK_WARNING';\nexports[19] = 'EE_OPEN_WARNING';\nexports[20] = 'EE_DISK_FULL';\nexports[21] = 'EE_CANT_MKDIR';\nexports[22] = 'EE_UNKNOWN_CHARSET';\nexports[23] = 'EE_OUT_OF_FILERESOURCES';\nexports[24] = 'EE_CANT_READLINK';\nexports[25] = 'EE_CANT_SYMLINK';\nexports[26] = 'EE_REALPATH';\nexports[27] = 'EE_SYNC';\nexports[28] = 'EE_UNKNOWN_COLLATION';\nexports[29] = 'EE_FILENOTFOUND';\nexports[30] = 'EE_FILE_NOT_CLOSED';\nexports[31] = 'EE_CHANGE_OWNERSHIP';\nexports[32] = 'EE_CHANGE_PERMISSIONS';\nexports[33] = 'EE_CANT_SEEK';\nexports[120] = 'HA_ERR_KEY_NOT_FOUND';\nexports[121] = 'HA_ERR_FOUND_DUPP_KEY';\nexports[122] = 'HA_ERR_INTERNAL_ERROR';\nexports[123] = 'HA_ERR_RECORD_CHANGED';\nexports[124] = 'HA_ERR_WRONG_INDEX';\nexports[126] = 'HA_ERR_CRASHED';\nexports[127] = 'HA_ERR_WRONG_IN_RECORD';\nexports[128] = 'HA_ERR_OUT_OF_MEM';\nexports[130] = 'HA_ERR_NOT_A_TABLE';\nexports[131] = 'HA_ERR_WRONG_COMMAND';\nexports[132] = 'HA_ERR_OLD_FILE';\nexports[133] = 'HA_ERR_NO_ACTIVE_RECORD';\nexports[134] = 'HA_ERR_RECORD_DELETED';\nexports[135] = 'HA_ERR_RECORD_FILE_FULL';\nexports[136] = 'HA_ERR_INDEX_FILE_FULL';\nexports[137] = 'HA_ERR_END_OF_FILE';\nexports[138] = 'HA_ERR_UNSUPPORTED';\nexports[139] = 'HA_ERR_TO_BIG_ROW';\nexports[140] = 'HA_WRONG_CREATE_OPTION';\nexports[141] = 'HA_ERR_FOUND_DUPP_UNIQUE';\nexports[142] = 'HA_ERR_UNKNOWN_CHARSET';\nexports[143] = 'HA_ERR_WRONG_MRG_TABLE_DEF';\nexports[144] = 'HA_ERR_CRASHED_ON_REPAIR';\nexports[145] = 'HA_ERR_CRASHED_ON_USAGE';\nexports[146] = 'HA_ERR_LOCK_WAIT_TIMEOUT';\nexports[147] = 'HA_ERR_LOCK_TABLE_FULL';\nexports[148] = 'HA_ERR_READ_ONLY_TRANSACTION';\nexports[149] = 'HA_ERR_LOCK_DEADLOCK';\nexports[150] = 'HA_ERR_CANNOT_ADD_FOREIGN';\nexports[151] = 'HA_ERR_NO_REFERENCED_ROW';\nexports[152] = 'HA_ERR_ROW_IS_REFERENCED';\nexports[153] = 'HA_ERR_NO_SAVEPOINT';\nexports[154] = 'HA_ERR_NON_UNIQUE_BLOCK_SIZE';\nexports[155] = 'HA_ERR_NO_SUCH_TABLE';\nexports[156] = 'HA_ERR_TABLE_EXIST';\nexports[157] = 'HA_ERR_NO_CONNECTION';\nexports[158] = 'HA_ERR_NULL_IN_SPATIAL';\nexports[159] = 'HA_ERR_TABLE_DEF_CHANGED';\nexports[160] = 'HA_ERR_NO_PARTITION_FOUND';\nexports[161] = 'HA_ERR_RBR_LOGGING_FAILED';\nexports[162] = 'HA_ERR_DROP_INDEX_FK';\nexports[163] = 'HA_ERR_FOREIGN_DUPLICATE_KEY';\nexports[164] = 'HA_ERR_TABLE_NEEDS_UPGRADE';\nexports[165] = 'HA_ERR_TABLE_READONLY';\nexports[166] = 'HA_ERR_AUTOINC_READ_FAILED';\nexports[167] = 'HA_ERR_AUTOINC_ERANGE';\nexports[168] = 'HA_ERR_GENERIC';\nexports[169] = 'HA_ERR_RECORD_IS_THE_SAME';\nexports[170] = 'HA_ERR_LOGGING_IMPOSSIBLE';\nexports[171] = 'HA_ERR_CORRUPT_EVENT';\nexports[172] = 'HA_ERR_NEW_FILE';\nexports[173] = 'HA_ERR_ROWS_EVENT_APPLY';\nexports[174] = 'HA_ERR_INITIALIZATION';\nexports[175] = 'HA_ERR_FILE_TOO_SHORT';\nexports[176] = 'HA_ERR_WRONG_CRC';\nexports[177] = 'HA_ERR_TOO_MANY_CONCURRENT_TRXS';\nexports[178] = 'HA_ERR_NOT_IN_LOCK_PARTITIONS';\nexports[179] = 'HA_ERR_INDEX_COL_TOO_LONG';\nexports[180] = 'HA_ERR_INDEX_CORRUPT';\nexports[181] = 'HA_ERR_UNDO_REC_TOO_BIG';\nexports[182] = 'HA_FTS_INVALID_DOCID';\nexports[183] = 'HA_ERR_TABLE_IN_FK_CHECK';\nexports[184] = 'HA_ERR_TABLESPACE_EXISTS';\nexports[185] = 'HA_ERR_TOO_MANY_FIELDS';\nexports[186] = 'HA_ERR_ROW_IN_WRONG_PARTITION';\nexports[187] = 'HA_ERR_INNODB_READ_ONLY';\nexports[188] = 'HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT';\nexports[189] = 'HA_ERR_TEMP_FILE_WRITE_FAILURE';\nexports[190] = 'HA_ERR_INNODB_FORCED_RECOVERY';\nexports[191] = 'HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE';\nexports[1000] = 'ER_HASHCHK';\nexports[1001] = 'ER_NISAMCHK';\nexports[1002] = 'ER_NO';\nexports[1003] = 'ER_YES';\nexports[1004] = 'ER_CANT_CREATE_FILE';\nexports[1005] = 'ER_CANT_CREATE_TABLE';\nexports[1006] = 'ER_CANT_CREATE_DB';\nexports[1007] = 'ER_DB_CREATE_EXISTS';\nexports[1008] = 'ER_DB_DROP_EXISTS';\nexports[1009] = 'ER_DB_DROP_DELETE';\nexports[1010] = 'ER_DB_DROP_RMDIR';\nexports[1011] = 'ER_CANT_DELETE_FILE';\nexports[1012] = 'ER_CANT_FIND_SYSTEM_REC';\nexports[1013] = 'ER_CANT_GET_STAT';\nexports[1014] = 'ER_CANT_GET_WD';\nexports[1015] = 'ER_CANT_LOCK';\nexports[1016] = 'ER_CANT_OPEN_FILE';\nexports[1017] = 'ER_FILE_NOT_FOUND';\nexports[1018] = 'ER_CANT_READ_DIR';\nexports[1019] = 'ER_CANT_SET_WD';\nexports[1020] = 'ER_CHECKREAD';\nexports[1021] = 'ER_DISK_FULL';\nexports[1022] = 'ER_DUP_KEY';\nexports[1023] = 'ER_ERROR_ON_CLOSE';\nexports[1024] = 'ER_ERROR_ON_READ';\nexports[1025] = 'ER_ERROR_ON_RENAME';\nexports[1026] = 'ER_ERROR_ON_WRITE';\nexports[1027] = 'ER_FILE_USED';\nexports[1028] = 'ER_FILSORT_ABORT';\nexports[1029] = 'ER_FORM_NOT_FOUND';\nexports[1030] = 'ER_GET_ERRNO';\nexports[1031] = 'ER_ILLEGAL_HA';\nexports[1032] = 'ER_KEY_NOT_FOUND';\nexports[1033] = 'ER_NOT_FORM_FILE';\nexports[1034] = 'ER_NOT_KEYFILE';\nexports[1035] = 'ER_OLD_KEYFILE';\nexports[1036] = 'ER_OPEN_AS_READONLY';\nexports[1037] = 'ER_OUTOFMEMORY';\nexports[1038] = 'ER_OUT_OF_SORTMEMORY';\nexports[1039] = 'ER_UNEXPECTED_EOF';\nexports[1040] = 'ER_CON_COUNT_ERROR';\nexports[1041] = 'ER_OUT_OF_RESOURCES';\nexports[1042] = 'ER_BAD_HOST_ERROR';\nexports[1043] = 'ER_HANDSHAKE_ERROR';\nexports[1044] = 'ER_DBACCESS_DENIED_ERROR';\nexports[1045] = 'ER_ACCESS_DENIED_ERROR';\nexports[1046] = 'ER_NO_DB_ERROR';\nexports[1047] = 'ER_UNKNOWN_COM_ERROR';\nexports[1048] = 'ER_BAD_NULL_ERROR';\nexports[1049] = 'ER_BAD_DB_ERROR';\nexports[1050] = 'ER_TABLE_EXISTS_ERROR';\nexports[1051] = 'ER_BAD_TABLE_ERROR';\nexports[1052] = 'ER_NON_UNIQ_ERROR';\nexports[1053] = 'ER_SERVER_SHUTDOWN';\nexports[1054] = 'ER_BAD_FIELD_ERROR';\nexports[1055] = 'ER_WRONG_FIELD_WITH_GROUP';\nexports[1056] = 'ER_WRONG_GROUP_FIELD';\nexports[1057] = 'ER_WRONG_SUM_SELECT';\nexports[1058] = 'ER_WRONG_VALUE_COUNT';\nexports[1059] = 'ER_TOO_LONG_IDENT';\nexports[1060] = 'ER_DUP_FIELDNAME';\nexports[1061] = 'ER_DUP_KEYNAME';\nexports[1062] = 'ER_DUP_ENTRY';\nexports[1063] = 'ER_WRONG_FIELD_SPEC';\nexports[1064] = 'ER_PARSE_ERROR';\nexports[1065] = 'ER_EMPTY_QUERY';\nexports[1066] = 'ER_NONUNIQ_TABLE';\nexports[1067] = 'ER_INVALID_DEFAULT';\nexports[1068] = 'ER_MULTIPLE_PRI_KEY';\nexports[1069] = 'ER_TOO_MANY_KEYS';\nexports[1070] = 'ER_TOO_MANY_KEY_PARTS';\nexports[1071] = 'ER_TOO_LONG_KEY';\nexports[1072] = 'ER_KEY_COLUMN_DOES_NOT_EXITS';\nexports[1073] = 'ER_BLOB_USED_AS_KEY';\nexports[1074] = 'ER_TOO_BIG_FIELDLENGTH';\nexports[1075] = 'ER_WRONG_AUTO_KEY';\nexports[1076] = 'ER_READY';\nexports[1077] = 'ER_NORMAL_SHUTDOWN';\nexports[1078] = 'ER_GOT_SIGNAL';\nexports[1079] = 'ER_SHUTDOWN_COMPLETE';\nexports[1080] = 'ER_FORCING_CLOSE';\nexports[1081] = 'ER_IPSOCK_ERROR';\nexports[1082] = 'ER_NO_SUCH_INDEX';\nexports[1083] = 'ER_WRONG_FIELD_TERMINATORS';\nexports[1084] = 'ER_BLOBS_AND_NO_TERMINATED';\nexports[1085] = 'ER_TEXTFILE_NOT_READABLE';\nexports[1086] = 'ER_FILE_EXISTS_ERROR';\nexports[1087] = 'ER_LOAD_INFO';\nexports[1088] = 'ER_ALTER_INFO';\nexports[1089] = 'ER_WRONG_SUB_KEY';\nexports[1090] = 'ER_CANT_REMOVE_ALL_FIELDS';\nexports[1091] = 'ER_CANT_DROP_FIELD_OR_KEY';\nexports[1092] = 'ER_INSERT_INFO';\nexports[1093] = 'ER_UPDATE_TABLE_USED';\nexports[1094] = 'ER_NO_SUCH_THREAD';\nexports[1095] = 'ER_KILL_DENIED_ERROR';\nexports[1096] = 'ER_NO_TABLES_USED';\nexports[1097] = 'ER_TOO_BIG_SET';\nexports[1098] = 'ER_NO_UNIQUE_LOGFILE';\nexports[1099] = 'ER_TABLE_NOT_LOCKED_FOR_WRITE';\nexports[1100] = 'ER_TABLE_NOT_LOCKED';\nexports[1101] = 'ER_BLOB_CANT_HAVE_DEFAULT';\nexports[1102] = 'ER_WRONG_DB_NAME';\nexports[1103] = 'ER_WRONG_TABLE_NAME';\nexports[1104] = 'ER_TOO_BIG_SELECT';\nexports[1105] = 'ER_UNKNOWN_ERROR';\nexports[1106] = 'ER_UNKNOWN_PROCEDURE';\nexports[1107] = 'ER_WRONG_PARAMCOUNT_TO_PROCEDURE';\nexports[1108] = 'ER_WRONG_PARAMETERS_TO_PROCEDURE';\nexports[1109] = 'ER_UNKNOWN_TABLE';\nexports[1110] = 'ER_FIELD_SPECIFIED_TWICE';\nexports[1111] = 'ER_INVALID_GROUP_FUNC_USE';\nexports[1112] = 'ER_UNSUPPORTED_EXTENSION';\nexports[1113] = 'ER_TABLE_MUST_HAVE_COLUMNS';\nexports[1114] = 'ER_RECORD_FILE_FULL';\nexports[1115] = 'ER_UNKNOWN_CHARACTER_SET';\nexports[1116] = 'ER_TOO_MANY_TABLES';\nexports[1117] = 'ER_TOO_MANY_FIELDS';\nexports[1118] = 'ER_TOO_BIG_ROWSIZE';\nexports[1119] = 'ER_STACK_OVERRUN';\nexports[1120] = 'ER_WRONG_OUTER_JOIN';\nexports[1121] = 'ER_NULL_COLUMN_IN_INDEX';\nexports[1122] = 'ER_CANT_FIND_UDF';\nexports[1123] = 'ER_CANT_INITIALIZE_UDF';\nexports[1124] = 'ER_UDF_NO_PATHS';\nexports[1125] = 'ER_UDF_EXISTS';\nexports[1126] = 'ER_CANT_OPEN_LIBRARY';\nexports[1127] = 'ER_CANT_FIND_DL_ENTRY';\nexports[1128] = 'ER_FUNCTION_NOT_DEFINED';\nexports[1129] = 'ER_HOST_IS_BLOCKED';\nexports[1130] = 'ER_HOST_NOT_PRIVILEGED';\nexports[1131] = 'ER_PASSWORD_ANONYMOUS_USER';\nexports[1132] = 'ER_PASSWORD_NOT_ALLOWED';\nexports[1133] = 'ER_PASSWORD_NO_MATCH';\nexports[1134] = 'ER_UPDATE_INFO';\nexports[1135] = 'ER_CANT_CREATE_THREAD';\nexports[1136] = 'ER_WRONG_VALUE_COUNT_ON_ROW';\nexports[1137] = 'ER_CANT_REOPEN_TABLE';\nexports[1138] = 'ER_INVALID_USE_OF_NULL';\nexports[1139] = 'ER_REGEXP_ERROR';\nexports[1140] = 'ER_MIX_OF_GROUP_FUNC_AND_FIELDS';\nexports[1141] = 'ER_NONEXISTING_GRANT';\nexports[1142] = 'ER_TABLEACCESS_DENIED_ERROR';\nexports[1143] = 'ER_COLUMNACCESS_DENIED_ERROR';\nexports[1144] = 'ER_ILLEGAL_GRANT_FOR_TABLE';\nexports[1145] = 'ER_GRANT_WRONG_HOST_OR_USER';\nexports[1146] = 'ER_NO_SUCH_TABLE';\nexports[1147] = 'ER_NONEXISTING_TABLE_GRANT';\nexports[1148] = 'ER_NOT_ALLOWED_COMMAND';\nexports[1149] = 'ER_SYNTAX_ERROR';\nexports[1150] = 'ER_DELAYED_CANT_CHANGE_LOCK';\nexports[1151] = 'ER_TOO_MANY_DELAYED_THREADS';\nexports[1152] = 'ER_ABORTING_CONNECTION';\nexports[1153] = 'ER_NET_PACKET_TOO_LARGE';\nexports[1154] = 'ER_NET_READ_ERROR_FROM_PIPE';\nexports[1155] = 'ER_NET_FCNTL_ERROR';\nexports[1156] = 'ER_NET_PACKETS_OUT_OF_ORDER';\nexports[1157] = 'ER_NET_UNCOMPRESS_ERROR';\nexports[1158] = 'ER_NET_READ_ERROR';\nexports[1159] = 'ER_NET_READ_INTERRUPTED';\nexports[1160] = 'ER_NET_ERROR_ON_WRITE';\nexports[1161] = 'ER_NET_WRITE_INTERRUPTED';\nexports[1162] = 'ER_TOO_LONG_STRING';\nexports[1163] = 'ER_TABLE_CANT_HANDLE_BLOB';\nexports[1164] = 'ER_TABLE_CANT_HANDLE_AUTO_INCREMENT';\nexports[1165] = 'ER_DELAYED_INSERT_TABLE_LOCKED';\nexports[1166] = 'ER_WRONG_COLUMN_NAME';\nexports[1167] = 'ER_WRONG_KEY_COLUMN';\nexports[1168] = 'ER_WRONG_MRG_TABLE';\nexports[1169] = 'ER_DUP_UNIQUE';\nexports[1170] = 'ER_BLOB_KEY_WITHOUT_LENGTH';\nexports[1171] = 'ER_PRIMARY_CANT_HAVE_NULL';\nexports[1172] = 'ER_TOO_MANY_ROWS';\nexports[1173] = 'ER_REQUIRES_PRIMARY_KEY';\nexports[1174] = 'ER_NO_RAID_COMPILED';\nexports[1175] = 'ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE';\nexports[1176] = 'ER_KEY_DOES_NOT_EXITS';\nexports[1177] = 'ER_CHECK_NO_SUCH_TABLE';\nexports[1178] = 'ER_CHECK_NOT_IMPLEMENTED';\nexports[1179] = 'ER_CANT_DO_THIS_DURING_AN_TRANSACTION';\nexports[1180] = 'ER_ERROR_DURING_COMMIT';\nexports[1181] = 'ER_ERROR_DURING_ROLLBACK';\nexports[1182] = 'ER_ERROR_DURING_FLUSH_LOGS';\nexports[1183] = 'ER_ERROR_DURING_CHECKPOINT';\nexports[1184] = 'ER_NEW_ABORTING_CONNECTION';\nexports[1185] = 'ER_DUMP_NOT_IMPLEMENTED';\nexports[1186] = 'ER_FLUSH_SOURCE_BINLOG_CLOSED';\nexports[1187] = 'ER_INDEX_REBUILD';\nexports[1188] = 'ER_SOURCE';\nexports[1189] = 'ER_SOURCE_NET_READ';\nexports[1190] = 'ER_SOURCE_NET_WRITE';\nexports[1191] = 'ER_FT_MATCHING_KEY_NOT_FOUND';\nexports[1192] = 'ER_LOCK_OR_ACTIVE_TRANSACTION';\nexports[1193] = 'ER_UNKNOWN_SYSTEM_VARIABLE';\nexports[1194] = 'ER_CRASHED_ON_USAGE';\nexports[1195] = 'ER_CRASHED_ON_REPAIR';\nexports[1196] = 'ER_WARNING_NOT_COMPLETE_ROLLBACK';\nexports[1197] = 'ER_TRANS_CACHE_FULL';\nexports[1198] = 'ER_REPLICA_MUST_STOP';\nexports[1199] = 'ER_REPLICA_NOT_RUNNING';\nexports[1200] = 'ER_BAD_REPLICA';\nexports[1201] = 'ER_SOURCE_INFO';\nexports[1202] = 'ER_REPLICA_THREAD';\nexports[1203] = 'ER_TOO_MANY_USER_CONNECTIONS';\nexports[1204] = 'ER_SET_CONSTANTS_ONLY';\nexports[1205] = 'ER_LOCK_WAIT_TIMEOUT';\nexports[1206] = 'ER_LOCK_TABLE_FULL';\nexports[1207] = 'ER_READ_ONLY_TRANSACTION';\nexports[1208] = 'ER_DROP_DB_WITH_READ_LOCK';\nexports[1209] = 'ER_CREATE_DB_WITH_READ_LOCK';\nexports[1210] = 'ER_WRONG_ARGUMENTS';\nexports[1211] = 'ER_NO_PERMISSION_TO_CREATE_USER';\nexports[1212] = 'ER_UNION_TABLES_IN_DIFFERENT_DIR';\nexports[1213] = 'ER_LOCK_DEADLOCK';\nexports[1214] = 'ER_TABLE_CANT_HANDLE_FT';\nexports[1215] = 'ER_CANNOT_ADD_FOREIGN';\nexports[1216] = 'ER_NO_REFERENCED_ROW';\nexports[1217] = 'ER_ROW_IS_REFERENCED';\nexports[1218] = 'ER_CONNECT_TO_SOURCE';\nexports[1219] = 'ER_QUERY_ON_SOURCE';\nexports[1220] = 'ER_ERROR_WHEN_EXECUTING_COMMAND';\nexports[1221] = 'ER_WRONG_USAGE';\nexports[1222] = 'ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT';\nexports[1223] = 'ER_CANT_UPDATE_WITH_READLOCK';\nexports[1224] = 'ER_MIXING_NOT_ALLOWED';\nexports[1225] = 'ER_DUP_ARGUMENT';\nexports[1226] = 'ER_USER_LIMIT_REACHED';\nexports[1227] = 'ER_SPECIFIC_ACCESS_DENIED_ERROR';\nexports[1228] = 'ER_LOCAL_VARIABLE';\nexports[1229] = 'ER_GLOBAL_VARIABLE';\nexports[1230] = 'ER_NO_DEFAULT';\nexports[1231] = 'ER_WRONG_VALUE_FOR_VAR';\nexports[1232] = 'ER_WRONG_TYPE_FOR_VAR';\nexports[1233] = 'ER_VAR_CANT_BE_READ';\nexports[1234] = 'ER_CANT_USE_OPTION_HERE';\nexports[1235] = 'ER_NOT_SUPPORTED_YET';\nexports[1236] = 'ER_SOURCE_FATAL_ERROR_READING_BINLOG';\nexports[1237] = 'ER_REPLICA_IGNORED_TABLE';\nexports[1238] = 'ER_INCORRECT_GLOBAL_LOCAL_VAR';\nexports[1239] = 'ER_WRONG_FK_DEF';\nexports[1240] = 'ER_KEY_REF_DO_NOT_MATCH_TABLE_REF';\nexports[1241] = 'ER_OPERAND_COLUMNS';\nexports[1242] = 'ER_SUBQUERY_NO_1_ROW';\nexports[1243] = 'ER_UNKNOWN_STMT_HANDLER';\nexports[1244] = 'ER_CORRUPT_HELP_DB';\nexports[1245] = 'ER_CYCLIC_REFERENCE';\nexports[1246] = 'ER_AUTO_CONVERT';\nexports[1247] = 'ER_ILLEGAL_REFERENCE';\nexports[1248] = 'ER_DERIVED_MUST_HAVE_ALIAS';\nexports[1249] = 'ER_SELECT_REDUCED';\nexports[1250] = 'ER_TABLENAME_NOT_ALLOWED_HERE';\nexports[1251] = 'ER_NOT_SUPPORTED_AUTH_MODE';\nexports[1252] = 'ER_SPATIAL_CANT_HAVE_NULL';\nexports[1253] = 'ER_COLLATION_CHARSET_MISMATCH';\nexports[1254] = 'ER_REPLICA_WAS_RUNNING';\nexports[1255] = 'ER_REPLICA_WAS_NOT_RUNNING';\nexports[1256] = 'ER_TOO_BIG_FOR_UNCOMPRESS';\nexports[1257] = 'ER_ZLIB_Z_MEM_ERROR';\nexports[1258] = 'ER_ZLIB_Z_BUF_ERROR';\nexports[1259] = 'ER_ZLIB_Z_DATA_ERROR';\nexports[1260] = 'ER_CUT_VALUE_GROUP_CONCAT';\nexports[1261] = 'ER_WARN_TOO_FEW_RECORDS';\nexports[1262] = 'ER_WARN_TOO_MANY_RECORDS';\nexports[1263] = 'ER_WARN_NULL_TO_NOTNULL';\nexports[1264] = 'ER_WARN_DATA_OUT_OF_RANGE';\nexports[1265] = 'ER_WARN_DATA_TRUNCATED';\nexports[1266] = 'ER_WARN_USING_OTHER_HANDLER';\nexports[1267] = 'ER_CANT_AGGREGATE_2COLLATIONS';\nexports[1268] = 'ER_DROP_USER';\nexports[1269] = 'ER_REVOKE_GRANTS';\nexports[1270] = 'ER_CANT_AGGREGATE_3COLLATIONS';\nexports[1271] = 'ER_CANT_AGGREGATE_NCOLLATIONS';\nexports[1272] = 'ER_VARIABLE_IS_NOT_STRUCT';\nexports[1273] = 'ER_UNKNOWN_COLLATION';\nexports[1274] = 'ER_REPLICA_IGNORED_SSL_PARAMS';\nexports[1275] = 'ER_SERVER_IS_IN_SECURE_AUTH_MODE';\nexports[1276] = 'ER_WARN_FIELD_RESOLVED';\nexports[1277] = 'ER_BAD_REPLICA_UNTIL_COND';\nexports[1278] = 'ER_MISSING_SKIP_REPLICA';\nexports[1279] = 'ER_UNTIL_COND_IGNORED';\nexports[1280] = 'ER_WRONG_NAME_FOR_INDEX';\nexports[1281] = 'ER_WRONG_NAME_FOR_CATALOG';\nexports[1282] = 'ER_WARN_QC_RESIZE';\nexports[1283] = 'ER_BAD_FT_COLUMN';\nexports[1284] = 'ER_UNKNOWN_KEY_CACHE';\nexports[1285] = 'ER_WARN_HOSTNAME_WONT_WORK';\nexports[1286] = 'ER_UNKNOWN_STORAGE_ENGINE';\nexports[1287] = 'ER_WARN_DEPRECATED_SYNTAX';\nexports[1288] = 'ER_NON_UPDATABLE_TABLE';\nexports[1289] = 'ER_FEATURE_DISABLED';\nexports[1290] = 'ER_OPTION_PREVENTS_STATEMENT';\nexports[1291] = 'ER_DUPLICATED_VALUE_IN_TYPE';\nexports[1292] = 'ER_TRUNCATED_WRONG_VALUE';\nexports[1293] = 'ER_TOO_MUCH_AUTO_TIMESTAMP_COLS';\nexports[1294] = 'ER_INVALID_ON_UPDATE';\nexports[1295] = 'ER_UNSUPPORTED_PS';\nexports[1296] = 'ER_GET_ERRMSG';\nexports[1297] = 'ER_GET_TEMPORARY_ERRMSG';\nexports[1298] = 'ER_UNKNOWN_TIME_ZONE';\nexports[1299] = 'ER_WARN_INVALID_TIMESTAMP';\nexports[1300] = 'ER_INVALID_CHARACTER_STRING';\nexports[1301] = 'ER_WARN_ALLOWED_PACKET_OVERFLOWED';\nexports[1302] = 'ER_CONFLICTING_DECLARATIONS';\nexports[1303] = 'ER_SP_NO_RECURSIVE_CREATE';\nexports[1304] = 'ER_SP_ALREADY_EXISTS';\nexports[1305] = 'ER_SP_DOES_NOT_EXIST';\nexports[1306] = 'ER_SP_DROP_FAILED';\nexports[1307] = 'ER_SP_STORE_FAILED';\nexports[1308] = 'ER_SP_LILABEL_MISMATCH';\nexports[1309] = 'ER_SP_LABEL_REDEFINE';\nexports[1310] = 'ER_SP_LABEL_MISMATCH';\nexports[1311] = 'ER_SP_UNINIT_VAR';\nexports[1312] = 'ER_SP_BADSELECT';\nexports[1313] = 'ER_SP_BADRETURN';\nexports[1314] = 'ER_SP_BADSTATEMENT';\nexports[1315] = 'ER_UPDATE_LOG_DEPRECATED_IGNORED';\nexports[1316] = 'ER_UPDATE_LOG_DEPRECATED_TRANSLATED';\nexports[1317] = 'ER_QUERY_INTERRUPTED';\nexports[1318] = 'ER_SP_WRONG_NO_OF_ARGS';\nexports[1319] = 'ER_SP_COND_MISMATCH';\nexports[1320] = 'ER_SP_NORETURN';\nexports[1321] = 'ER_SP_NORETURNEND';\nexports[1322] = 'ER_SP_BAD_CURSOR_QUERY';\nexports[1323] = 'ER_SP_BAD_CURSOR_SELECT';\nexports[1324] = 'ER_SP_CURSOR_MISMATCH';\nexports[1325] = 'ER_SP_CURSOR_ALREADY_OPEN';\nexports[1326] = 'ER_SP_CURSOR_NOT_OPEN';\nexports[1327] = 'ER_SP_UNDECLARED_VAR';\nexports[1328] = 'ER_SP_WRONG_NO_OF_FETCH_ARGS';\nexports[1329] = 'ER_SP_FETCH_NO_DATA';\nexports[1330] = 'ER_SP_DUP_PARAM';\nexports[1331] = 'ER_SP_DUP_VAR';\nexports[1332] = 'ER_SP_DUP_COND';\nexports[1333] = 'ER_SP_DUP_CURS';\nexports[1334] = 'ER_SP_CANT_ALTER';\nexports[1335] = 'ER_SP_SUBSELECT_NYI';\nexports[1336] = 'ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG';\nexports[1337] = 'ER_SP_VARCOND_AFTER_CURSHNDLR';\nexports[1338] = 'ER_SP_CURSOR_AFTER_HANDLER';\nexports[1339] = 'ER_SP_CASE_NOT_FOUND';\nexports[1340] = 'ER_FPARSER_TOO_BIG_FILE';\nexports[1341] = 'ER_FPARSER_BAD_HEADER';\nexports[1342] = 'ER_FPARSER_EOF_IN_COMMENT';\nexports[1343] = 'ER_FPARSER_ERROR_IN_PARAMETER';\nexports[1344] = 'ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER';\nexports[1345] = 'ER_VIEW_NO_EXPLAIN';\nexports[1346] = 'ER_FRM_UNKNOWN_TYPE';\nexports[1347] = 'ER_WRONG_OBJECT';\nexports[1348] = 'ER_NONUPDATEABLE_COLUMN';\nexports[1349] = 'ER_VIEW_SELECT_DERIVED';\nexports[1350] = 'ER_VIEW_SELECT_CLAUSE';\nexports[1351] = 'ER_VIEW_SELECT_VARIABLE';\nexports[1352] = 'ER_VIEW_SELECT_TMPTABLE';\nexports[1353] = 'ER_VIEW_WRONG_LIST';\nexports[1354] = 'ER_WARN_VIEW_MERGE';\nexports[1355] = 'ER_WARN_VIEW_WITHOUT_KEY';\nexports[1356] = 'ER_VIEW_INVALID';\nexports[1357] = 'ER_SP_NO_DROP_SP';\nexports[1358] = 'ER_SP_GOTO_IN_HNDLR';\nexports[1359] = 'ER_TRG_ALREADY_EXISTS';\nexports[1360] = 'ER_TRG_DOES_NOT_EXIST';\nexports[1361] = 'ER_TRG_ON_VIEW_OR_TEMP_TABLE';\nexports[1362] = 'ER_TRG_CANT_CHANGE_ROW';\nexports[1363] = 'ER_TRG_NO_SUCH_ROW_IN_TRG';\nexports[1364] = 'ER_NO_DEFAULT_FOR_FIELD';\nexports[1365] = 'ER_DIVISION_BY_ZERO';\nexports[1366] = 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD';\nexports[1367] = 'ER_ILLEGAL_VALUE_FOR_TYPE';\nexports[1368] = 'ER_VIEW_NONUPD_CHECK';\nexports[1369] = 'ER_VIEW_CHECK_FAILED';\nexports[1370] = 'ER_PROCACCESS_DENIED_ERROR';\nexports[1371] = 'ER_RELAY_LOG_FAIL';\nexports[1372] = 'ER_PASSWD_LENGTH';\nexports[1373] = 'ER_UNKNOWN_TARGET_BINLOG';\nexports[1374] = 'ER_IO_ERR_LOG_INDEX_READ';\nexports[1375] = 'ER_BINLOG_PURGE_PROHIBITED';\nexports[1376] = 'ER_FSEEK_FAIL';\nexports[1377] = 'ER_BINLOG_PURGE_FATAL_ERR';\nexports[1378] = 'ER_LOG_IN_USE';\nexports[1379] = 'ER_LOG_PURGE_UNKNOWN_ERR';\nexports[1380] = 'ER_RELAY_LOG_INIT';\nexports[1381] = 'ER_NO_BINARY_LOGGING';\nexports[1382] = 'ER_RESERVED_SYNTAX';\nexports[1383] = 'ER_WSAS_FAILED';\nexports[1384] = 'ER_DIFF_GROUPS_PROC';\nexports[1385] = 'ER_NO_GROUP_FOR_PROC';\nexports[1386] = 'ER_ORDER_WITH_PROC';\nexports[1387] = 'ER_LOGGING_PROHIBIT_CHANGING_OF';\nexports[1388] = 'ER_NO_FILE_MAPPING';\nexports[1389] = 'ER_WRONG_MAGIC';\nexports[1390] = 'ER_PS_MANY_PARAM';\nexports[1391] = 'ER_KEY_PART_0';\nexports[1392] = 'ER_VIEW_CHECKSUM';\nexports[1393] = 'ER_VIEW_MULTIUPDATE';\nexports[1394] = 'ER_VIEW_NO_INSERT_FIELD_LIST';\nexports[1395] = 'ER_VIEW_DELETE_MERGE_VIEW';\nexports[1396] = 'ER_CANNOT_USER';\nexports[1397] = 'ER_XAER_NOTA';\nexports[1398] = 'ER_XAER_INVAL';\nexports[1399] = 'ER_XAER_RMFAIL';\nexports[1400] = 'ER_XAER_OUTSIDE';\nexports[1401] = 'ER_XA_RMERR';\nexports[1402] = 'ER_XA_RBROLLBACK';\nexports[1403] = 'ER_NONEXISTING_PROC_GRANT';\nexports[1404] = 'ER_PROC_AUTO_GRANT_FAIL';\nexports[1405] = 'ER_PROC_AUTO_REVOKE_FAIL';\nexports[1406] = 'ER_DATA_TOO_LONG';\nexports[1407] = 'ER_SP_BAD_SQLSTATE';\nexports[1408] = 'ER_STARTUP';\nexports[1409] = 'ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR';\nexports[1410] = 'ER_CANT_CREATE_USER_WITH_GRANT';\nexports[1411] = 'ER_WRONG_VALUE_FOR_TYPE';\nexports[1412] = 'ER_TABLE_DEF_CHANGED';\nexports[1413] = 'ER_SP_DUP_HANDLER';\nexports[1414] = 'ER_SP_NOT_VAR_ARG';\nexports[1415] = 'ER_SP_NO_RETSET';\nexports[1416] = 'ER_CANT_CREATE_GEOMETRY_OBJECT';\nexports[1417] = 'ER_FAILED_ROUTINE_BREAK_BINLOG';\nexports[1418] = 'ER_BINLOG_UNSAFE_ROUTINE';\nexports[1419] = 'ER_BINLOG_CREATE_ROUTINE_NEED_SUPER';\nexports[1420] = 'ER_EXEC_STMT_WITH_OPEN_CURSOR';\nexports[1421] = 'ER_STMT_HAS_NO_OPEN_CURSOR';\nexports[1422] = 'ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG';\nexports[1423] = 'ER_NO_DEFAULT_FOR_VIEW_FIELD';\nexports[1424] = 'ER_SP_NO_RECURSION';\nexports[1425] = 'ER_TOO_BIG_SCALE';\nexports[1426] = 'ER_TOO_BIG_PRECISION';\nexports[1427] = 'ER_M_BIGGER_THAN_D';\nexports[1428] = 'ER_WRONG_LOCK_OF_SYSTEM_TABLE';\nexports[1429] = 'ER_CONNECT_TO_FOREIGN_DATA_SOURCE';\nexports[1430] = 'ER_QUERY_ON_FOREIGN_DATA_SOURCE';\nexports[1431] = 'ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST';\nexports[1432] = 'ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE';\nexports[1433] = 'ER_FOREIGN_DATA_STRING_INVALID';\nexports[1434] = 'ER_CANT_CREATE_FEDERATED_TABLE';\nexports[1435] = 'ER_TRG_IN_WRONG_SCHEMA';\nexports[1436] = 'ER_STACK_OVERRUN_NEED_MORE';\nexports[1437] = 'ER_TOO_LONG_BODY';\nexports[1438] = 'ER_WARN_CANT_DROP_DEFAULT_KEYCACHE';\nexports[1439] = 'ER_TOO_BIG_DISPLAYWIDTH';\nexports[1440] = 'ER_XAER_DUPID';\nexports[1441] = 'ER_DATETIME_FUNCTION_OVERFLOW';\nexports[1442] = 'ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG';\nexports[1443] = 'ER_VIEW_PREVENT_UPDATE';\nexports[1444] = 'ER_PS_NO_RECURSION';\nexports[1445] = 'ER_SP_CANT_SET_AUTOCOMMIT';\nexports[1446] = 'ER_MALFORMED_DEFINER';\nexports[1447] = 'ER_VIEW_FRM_NO_USER';\nexports[1448] = 'ER_VIEW_OTHER_USER';\nexports[1449] = 'ER_NO_SUCH_USER';\nexports[1450] = 'ER_FORBID_SCHEMA_CHANGE';\nexports[1451] = 'ER_ROW_IS_REFERENCED_2';\nexports[1452] = 'ER_NO_REFERENCED_ROW_2';\nexports[1453] = 'ER_SP_BAD_VAR_SHADOW';\nexports[1454] = 'ER_TRG_NO_DEFINER';\nexports[1455] = 'ER_OLD_FILE_FORMAT';\nexports[1456] = 'ER_SP_RECURSION_LIMIT';\nexports[1457] = 'ER_SP_PROC_TABLE_CORRUPT';\nexports[1458] = 'ER_SP_WRONG_NAME';\nexports[1459] = 'ER_TABLE_NEEDS_UPGRADE';\nexports[1460] = 'ER_SP_NO_AGGREGATE';\nexports[1461] = 'ER_MAX_PREPARED_STMT_COUNT_REACHED';\nexports[1462] = 'ER_VIEW_RECURSIVE';\nexports[1463] = 'ER_NON_GROUPING_FIELD_USED';\nexports[1464] = 'ER_TABLE_CANT_HANDLE_SPKEYS';\nexports[1465] = 'ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA';\nexports[1466] = 'ER_REMOVED_SPACES';\nexports[1467] = 'ER_AUTOINC_READ_FAILED';\nexports[1468] = 'ER_USERNAME';\nexports[1469] = 'ER_HOSTNAME';\nexports[1470] = 'ER_WRONG_STRING_LENGTH';\nexports[1471] = 'ER_NON_INSERTABLE_TABLE';\nexports[1472] = 'ER_ADMIN_WRONG_MRG_TABLE';\nexports[1473] = 'ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT';\nexports[1474] = 'ER_NAME_BECOMES_EMPTY';\nexports[1475] = 'ER_AMBIGUOUS_FIELD_TERM';\nexports[1476] = 'ER_FOREIGN_SERVER_EXISTS';\nexports[1477] = 'ER_FOREIGN_SERVER_DOESNT_EXIST';\nexports[1478] = 'ER_ILLEGAL_HA_CREATE_OPTION';\nexports[1479] = 'ER_PARTITION_REQUIRES_VALUES_ERROR';\nexports[1480] = 'ER_PARTITION_WRONG_VALUES_ERROR';\nexports[1481] = 'ER_PARTITION_MAXVALUE_ERROR';\nexports[1482] = 'ER_PARTITION_SUBPARTITION_ERROR';\nexports[1483] = 'ER_PARTITION_SUBPART_MIX_ERROR';\nexports[1484] = 'ER_PARTITION_WRONG_NO_PART_ERROR';\nexports[1485] = 'ER_PARTITION_WRONG_NO_SUBPART_ERROR';\nexports[1486] = 'ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR';\nexports[1487] = 'ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR';\nexports[1488] = 'ER_FIELD_NOT_FOUND_PART_ERROR';\nexports[1489] = 'ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR';\nexports[1490] = 'ER_INCONSISTENT_PARTITION_INFO_ERROR';\nexports[1491] = 'ER_PARTITION_FUNC_NOT_ALLOWED_ERROR';\nexports[1492] = 'ER_PARTITIONS_MUST_BE_DEFINED_ERROR';\nexports[1493] = 'ER_RANGE_NOT_INCREASING_ERROR';\nexports[1494] = 'ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR';\nexports[1495] = 'ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR';\nexports[1496] = 'ER_PARTITION_ENTRY_ERROR';\nexports[1497] = 'ER_MIX_HANDLER_ERROR';\nexports[1498] = 'ER_PARTITION_NOT_DEFINED_ERROR';\nexports[1499] = 'ER_TOO_MANY_PARTITIONS_ERROR';\nexports[1500] = 'ER_SUBPARTITION_ERROR';\nexports[1501] = 'ER_CANT_CREATE_HANDLER_FILE';\nexports[1502] = 'ER_BLOB_FIELD_IN_PART_FUNC_ERROR';\nexports[1503] = 'ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF';\nexports[1504] = 'ER_NO_PARTS_ERROR';\nexports[1505] = 'ER_PARTITION_MGMT_ON_NONPARTITIONED';\nexports[1506] = 'ER_FOREIGN_KEY_ON_PARTITIONED';\nexports[1507] = 'ER_DROP_PARTITION_NON_EXISTENT';\nexports[1508] = 'ER_DROP_LAST_PARTITION';\nexports[1509] = 'ER_COALESCE_ONLY_ON_HASH_PARTITION';\nexports[1510] = 'ER_REORG_HASH_ONLY_ON_SAME_NO';\nexports[1511] = 'ER_REORG_NO_PARAM_ERROR';\nexports[1512] = 'ER_ONLY_ON_RANGE_LIST_PARTITION';\nexports[1513] = 'ER_ADD_PARTITION_SUBPART_ERROR';\nexports[1514] = 'ER_ADD_PARTITION_NO_NEW_PARTITION';\nexports[1515] = 'ER_COALESCE_PARTITION_NO_PARTITION';\nexports[1516] = 'ER_REORG_PARTITION_NOT_EXIST';\nexports[1517] = 'ER_SAME_NAME_PARTITION';\nexports[1518] = 'ER_NO_BINLOG_ERROR';\nexports[1519] = 'ER_CONSECUTIVE_REORG_PARTITIONS';\nexports[1520] = 'ER_REORG_OUTSIDE_RANGE';\nexports[1521] = 'ER_PARTITION_FUNCTION_FAILURE';\nexports[1522] = 'ER_PART_STATE_ERROR';\nexports[1523] = 'ER_LIMITED_PART_RANGE';\nexports[1524] = 'ER_PLUGIN_IS_NOT_LOADED';\nexports[1525] = 'ER_WRONG_VALUE';\nexports[1526] = 'ER_NO_PARTITION_FOR_GIVEN_VALUE';\nexports[1527] = 'ER_FILEGROUP_OPTION_ONLY_ONCE';\nexports[1528] = 'ER_CREATE_FILEGROUP_FAILED';\nexports[1529] = 'ER_DROP_FILEGROUP_FAILED';\nexports[1530] = 'ER_TABLESPACE_AUTO_EXTEND_ERROR';\nexports[1531] = 'ER_WRONG_SIZE_NUMBER';\nexports[1532] = 'ER_SIZE_OVERFLOW_ERROR';\nexports[1533] = 'ER_ALTER_FILEGROUP_FAILED';\nexports[1534] = 'ER_BINLOG_ROW_LOGGING_FAILED';\nexports[1535] = 'ER_BINLOG_ROW_WRONG_TABLE_DEF';\nexports[1536] = 'ER_BINLOG_ROW_RBR_TO_SBR';\nexports[1537] = 'ER_EVENT_ALREADY_EXISTS';\nexports[1538] = 'ER_EVENT_STORE_FAILED';\nexports[1539] = 'ER_EVENT_DOES_NOT_EXIST';\nexports[1540] = 'ER_EVENT_CANT_ALTER';\nexports[1541] = 'ER_EVENT_DROP_FAILED';\nexports[1542] = 'ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG';\nexports[1543] = 'ER_EVENT_ENDS_BEFORE_STARTS';\nexports[1544] = 'ER_EVENT_EXEC_TIME_IN_THE_PAST';\nexports[1545] = 'ER_EVENT_OPEN_TABLE_FAILED';\nexports[1546] = 'ER_EVENT_NEITHER_M_EXPR_NOR_M_AT';\nexports[1547] = 'ER_COL_COUNT_DOESNT_MATCH_CORRUPTED';\nexports[1548] = 'ER_CANNOT_LOAD_FROM_TABLE';\nexports[1549] = 'ER_EVENT_CANNOT_DELETE';\nexports[1550] = 'ER_EVENT_COMPILE_ERROR';\nexports[1551] = 'ER_EVENT_SAME_NAME';\nexports[1552] = 'ER_EVENT_DATA_TOO_LONG';\nexports[1553] = 'ER_DROP_INDEX_FK';\nexports[1554] = 'ER_WARN_DEPRECATED_SYNTAX_WITH_VER';\nexports[1555] = 'ER_CANT_WRITE_LOCK_LOG_TABLE';\nexports[1556] = 'ER_CANT_LOCK_LOG_TABLE';\nexports[1557] = 'ER_FOREIGN_DUPLICATE_KEY';\nexports[1558] = 'ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE';\nexports[1559] = 'ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR';\nexports[1560] = 'ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT';\nexports[1561] = 'ER_NDB_CANT_SWITCH_BINLOG_FORMAT';\nexports[1562] = 'ER_PARTITION_NO_TEMPORARY';\nexports[1563] = 'ER_PARTITION_CONST_DOMAIN_ERROR';\nexports[1564] = 'ER_PARTITION_FUNCTION_IS_NOT_ALLOWED';\nexports[1565] = 'ER_DDL_LOG_ERROR';\nexports[1566] = 'ER_NULL_IN_VALUES_LESS_THAN';\nexports[1567] = 'ER_WRONG_PARTITION_NAME';\nexports[1568] = 'ER_CANT_CHANGE_TX_ISOLATION';\nexports[1569] = 'ER_DUP_ENTRY_AUTOINCREMENT_CASE';\nexports[1570] = 'ER_EVENT_MODIFY_QUEUE_ERROR';\nexports[1571] = 'ER_EVENT_SET_VAR_ERROR';\nexports[1572] = 'ER_PARTITION_MERGE_ERROR';\nexports[1573] = 'ER_CANT_ACTIVATE_LOG';\nexports[1574] = 'ER_RBR_NOT_AVAILABLE';\nexports[1575] = 'ER_BASE64_DECODE_ERROR';\nexports[1576] = 'ER_EVENT_RECURSION_FORBIDDEN';\nexports[1577] = 'ER_EVENTS_DB_ERROR';\nexports[1578] = 'ER_ONLY_INTEGERS_ALLOWED';\nexports[1579] = 'ER_UNSUPORTED_LOG_ENGINE';\nexports[1580] = 'ER_BAD_LOG_STATEMENT';\nexports[1581] = 'ER_CANT_RENAME_LOG_TABLE';\nexports[1582] = 'ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT';\nexports[1583] = 'ER_WRONG_PARAMETERS_TO_NATIVE_FCT';\nexports[1584] = 'ER_WRONG_PARAMETERS_TO_STORED_FCT';\nexports[1585] = 'ER_NATIVE_FCT_NAME_COLLISION';\nexports[1586] = 'ER_DUP_ENTRY_WITH_KEY_NAME';\nexports[1587] = 'ER_BINLOG_PURGE_EMFILE';\nexports[1588] = 'ER_EVENT_CANNOT_CREATE_IN_THE_PAST';\nexports[1589] = 'ER_EVENT_CANNOT_ALTER_IN_THE_PAST';\nexports[1590] = 'ER_REPLICA_INCIDENT';\nexports[1591] = 'ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT';\nexports[1592] = 'ER_BINLOG_UNSAFE_STATEMENT';\nexports[1593] = 'ER_REPLICA_FATAL_ERROR';\nexports[1594] = 'ER_REPLICA_RELAY_LOG_READ_FAILURE';\nexports[1595] = 'ER_REPLICA_RELAY_LOG_WRITE_FAILURE';\nexports[1596] = 'ER_REPLICA_CREATE_EVENT_FAILURE';\nexports[1597] = 'ER_REPLICA_SOURCE_COM_FAILURE';\nexports[1598] = 'ER_BINLOG_LOGGING_IMPOSSIBLE';\nexports[1599] = 'ER_VIEW_NO_CREATION_CTX';\nexports[1600] = 'ER_VIEW_INVALID_CREATION_CTX';\nexports[1601] = 'ER_SR_INVALID_CREATION_CTX';\nexports[1602] = 'ER_TRG_CORRUPTED_FILE';\nexports[1603] = 'ER_TRG_NO_CREATION_CTX';\nexports[1604] = 'ER_TRG_INVALID_CREATION_CTX';\nexports[1605] = 'ER_EVENT_INVALID_CREATION_CTX';\nexports[1606] = 'ER_TRG_CANT_OPEN_TABLE';\nexports[1607] = 'ER_CANT_CREATE_SROUTINE';\nexports[1608] = 'ER_NEVER_USED';\nexports[1609] = 'ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT';\nexports[1610] = 'ER_REPLICA_CORRUPT_EVENT';\nexports[1611] = 'ER_LOAD_DATA_INVALID_COLUMN';\nexports[1612] = 'ER_LOG_PURGE_NO_FILE';\nexports[1613] = 'ER_XA_RBTIMEOUT';\nexports[1614] = 'ER_XA_RBDEADLOCK';\nexports[1615] = 'ER_NEED_REPREPARE';\nexports[1616] = 'ER_DELAYED_NOT_SUPPORTED';\nexports[1617] = 'WARN_NO_SOURCE_INFO';\nexports[1618] = 'WARN_OPTION_IGNORED';\nexports[1619] = 'WARN_PLUGIN_DELETE_BUILTIN';\nexports[1620] = 'WARN_PLUGIN_BUSY';\nexports[1621] = 'ER_VARIABLE_IS_READONLY';\nexports[1622] = 'ER_WARN_ENGINE_TRANSACTION_ROLLBACK';\nexports[1623] = 'ER_REPLICA_HEARTBEAT_FAILURE';\nexports[1624] = 'ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE';\nexports[1625] = 'ER_NDB_REPLICATION_SCHEMA_ERROR';\nexports[1626] = 'ER_CONFLICT_FN_PARSE_ERROR';\nexports[1627] = 'ER_EXCEPTIONS_WRITE_ERROR';\nexports[1628] = 'ER_TOO_LONG_TABLE_COMMENT';\nexports[1629] = 'ER_TOO_LONG_FIELD_COMMENT';\nexports[1630] = 'ER_FUNC_INEXISTENT_NAME_COLLISION';\nexports[1631] = 'ER_DATABASE_NAME';\nexports[1632] = 'ER_TABLE_NAME';\nexports[1633] = 'ER_PARTITION_NAME';\nexports[1634] = 'ER_SUBPARTITION_NAME';\nexports[1635] = 'ER_TEMPORARY_NAME';\nexports[1636] = 'ER_RENAMED_NAME';\nexports[1637] = 'ER_TOO_MANY_CONCURRENT_TRXS';\nexports[1638] = 'WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED';\nexports[1639] = 'ER_DEBUG_SYNC_TIMEOUT';\nexports[1640] = 'ER_DEBUG_SYNC_HIT_LIMIT';\nexports[1641] = 'ER_DUP_SIGNAL_SET';\nexports[1642] = 'ER_SIGNAL_WARN';\nexports[1643] = 'ER_SIGNAL_NOT_FOUND';\nexports[1644] = 'ER_SIGNAL_EXCEPTION';\nexports[1645] = 'ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER';\nexports[1646] = 'ER_SIGNAL_BAD_CONDITION_TYPE';\nexports[1647] = 'WARN_COND_ITEM_TRUNCATED';\nexports[1648] = 'ER_COND_ITEM_TOO_LONG';\nexports[1649] = 'ER_UNKNOWN_LOCALE';\nexports[1650] = 'ER_REPLICA_IGNORE_SERVER_IDS';\nexports[1651] = 'ER_QUERY_CACHE_DISABLED';\nexports[1652] = 'ER_SAME_NAME_PARTITION_FIELD';\nexports[1653] = 'ER_PARTITION_COLUMN_LIST_ERROR';\nexports[1654] = 'ER_WRONG_TYPE_COLUMN_VALUE_ERROR';\nexports[1655] = 'ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR';\nexports[1656] = 'ER_MAXVALUE_IN_VALUES_IN';\nexports[1657] = 'ER_TOO_MANY_VALUES_ERROR';\nexports[1658] = 'ER_ROW_SINGLE_PARTITION_FIELD_ERROR';\nexports[1659] = 'ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD';\nexports[1660] = 'ER_PARTITION_FIELDS_TOO_LONG';\nexports[1661] = 'ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE';\nexports[1662] = 'ER_BINLOG_ROW_MODE_AND_STMT_ENGINE';\nexports[1663] = 'ER_BINLOG_UNSAFE_AND_STMT_ENGINE';\nexports[1664] = 'ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE';\nexports[1665] = 'ER_BINLOG_STMT_MODE_AND_ROW_ENGINE';\nexports[1666] = 'ER_BINLOG_ROW_INJECTION_AND_STMT_MODE';\nexports[1667] = 'ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE';\nexports[1668] = 'ER_BINLOG_UNSAFE_LIMIT';\nexports[1669] = 'ER_BINLOG_UNSAFE_INSERT_DELAYED';\nexports[1670] = 'ER_BINLOG_UNSAFE_SYSTEM_TABLE';\nexports[1671] = 'ER_BINLOG_UNSAFE_AUTOINC_COLUMNS';\nexports[1672] = 'ER_BINLOG_UNSAFE_UDF';\nexports[1673] = 'ER_BINLOG_UNSAFE_SYSTEM_VARIABLE';\nexports[1674] = 'ER_BINLOG_UNSAFE_SYSTEM_FUNCTION';\nexports[1675] = 'ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS';\nexports[1676] = 'ER_MESSAGE_AND_STATEMENT';\nexports[1677] = 'ER_REPLICA_CONVERSION_FAILED';\nexports[1678] = 'ER_REPLICA_CANT_CREATE_CONVERSION';\nexports[1679] = 'ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT';\nexports[1680] = 'ER_PATH_LENGTH';\nexports[1681] = 'ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT';\nexports[1682] = 'ER_WRONG_NATIVE_TABLE_STRUCTURE';\nexports[1683] = 'ER_WRONG_PERFSCHEMA_USAGE';\nexports[1684] = 'ER_WARN_I_S_SKIPPED_TABLE';\nexports[1685] = 'ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT';\nexports[1686] = 'ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT';\nexports[1687] = 'ER_SPATIAL_MUST_HAVE_GEOM_COL';\nexports[1688] = 'ER_TOO_LONG_INDEX_COMMENT';\nexports[1689] = 'ER_LOCK_ABORTED';\nexports[1690] = 'ER_DATA_OUT_OF_RANGE';\nexports[1691] = 'ER_WRONG_SPVAR_TYPE_IN_LIMIT';\nexports[1692] = 'ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE';\nexports[1693] = 'ER_BINLOG_UNSAFE_MIXED_STATEMENT';\nexports[1694] = 'ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN';\nexports[1695] = 'ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN';\nexports[1696] = 'ER_FAILED_READ_FROM_PAR_FILE';\nexports[1697] = 'ER_VALUES_IS_NOT_INT_TYPE_ERROR';\nexports[1698] = 'ER_ACCESS_DENIED_NO_PASSWORD_ERROR';\nexports[1699] = 'ER_SET_PASSWORD_AUTH_PLUGIN';\nexports[1700] = 'ER_GRANT_PLUGIN_USER_EXISTS';\nexports[1701] = 'ER_TRUNCATE_ILLEGAL_FK';\nexports[1702] = 'ER_PLUGIN_IS_PERMANENT';\nexports[1703] = 'ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN';\nexports[1704] = 'ER_REPLICA_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX';\nexports[1705] = 'ER_STMT_CACHE_FULL';\nexports[1706] = 'ER_MULTI_UPDATE_KEY_CONFLICT';\nexports[1707] = 'ER_TABLE_NEEDS_REBUILD';\nexports[1708] = 'WARN_OPTION_BELOW_LIMIT';\nexports[1709] = 'ER_INDEX_COLUMN_TOO_LONG';\nexports[1710] = 'ER_ERROR_IN_TRIGGER_BODY';\nexports[1711] = 'ER_ERROR_IN_UNKNOWN_TRIGGER_BODY';\nexports[1712] = 'ER_INDEX_CORRUPT';\nexports[1713] = 'ER_UNDO_RECORD_TOO_BIG';\nexports[1714] = 'ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT';\nexports[1715] = 'ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE';\nexports[1716] = 'ER_BINLOG_UNSAFE_REPLACE_SELECT';\nexports[1717] = 'ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT';\nexports[1718] = 'ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT';\nexports[1719] = 'ER_BINLOG_UNSAFE_UPDATE_IGNORE';\nexports[1720] = 'ER_PLUGIN_NO_UNINSTALL';\nexports[1721] = 'ER_PLUGIN_NO_INSTALL';\nexports[1722] = 'ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT';\nexports[1723] = 'ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC';\nexports[1724] = 'ER_BINLOG_UNSAFE_INSERT_TWO_KEYS';\nexports[1725] = 'ER_TABLE_IN_FK_CHECK';\nexports[1726] = 'ER_UNSUPPORTED_ENGINE';\nexports[1727] = 'ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST';\nexports[1728] = 'ER_CANNOT_LOAD_FROM_TABLE_V2';\nexports[1729] = 'ER_SOURCE_DELAY_VALUE_OUT_OF_RANGE';\nexports[1730] = 'ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT';\nexports[1731] = 'ER_PARTITION_EXCHANGE_DIFFERENT_OPTION';\nexports[1732] = 'ER_PARTITION_EXCHANGE_PART_TABLE';\nexports[1733] = 'ER_PARTITION_EXCHANGE_TEMP_TABLE';\nexports[1734] = 'ER_PARTITION_INSTEAD_OF_SUBPARTITION';\nexports[1735] = 'ER_UNKNOWN_PARTITION';\nexports[1736] = 'ER_TABLES_DIFFERENT_METADATA';\nexports[1737] = 'ER_ROW_DOES_NOT_MATCH_PARTITION';\nexports[1738] = 'ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX';\nexports[1739] = 'ER_WARN_INDEX_NOT_APPLICABLE';\nexports[1740] = 'ER_PARTITION_EXCHANGE_FOREIGN_KEY';\nexports[1741] = 'ER_NO_SUCH_KEY_VALUE';\nexports[1742] = 'ER_RPL_INFO_DATA_TOO_LONG';\nexports[1743] = 'ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE';\nexports[1744] = 'ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE';\nexports[1745] = 'ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX';\nexports[1746] = 'ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT';\nexports[1747] = 'ER_PARTITION_CLAUSE_ON_NONPARTITIONED';\nexports[1748] = 'ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET';\nexports[1749] = 'ER_NO_SUCH_PARTITION';\nexports[1750] = 'ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE';\nexports[1751] = 'ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE';\nexports[1752] = 'ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE';\nexports[1753] = 'ER_MTS_FEATURE_IS_NOT_SUPPORTED';\nexports[1754] = 'ER_MTS_UPDATED_DBS_GREATER_MAX';\nexports[1755] = 'ER_MTS_CANT_PARALLEL';\nexports[1756] = 'ER_MTS_INCONSISTENT_DATA';\nexports[1757] = 'ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING';\nexports[1758] = 'ER_DA_INVALID_CONDITION_NUMBER';\nexports[1759] = 'ER_INSECURE_PLAIN_TEXT';\nexports[1760] = 'ER_INSECURE_CHANGE_SOURCE';\nexports[1761] = 'ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO';\nexports[1762] = 'ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO';\nexports[1763] = 'ER_SQLTHREAD_WITH_SECURE_REPLICA';\nexports[1764] = 'ER_TABLE_HAS_NO_FT';\nexports[1765] = 'ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER';\nexports[1766] = 'ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION';\nexports[1767] = 'ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST';\nexports[1768] = 'ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL';\nexports[1769] = 'ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION';\nexports[1770] = 'ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL';\nexports[1771] = 'ER_SKIPPING_LOGGED_TRANSACTION';\nexports[1772] = 'ER_MALFORMED_GTID_SET_SPECIFICATION';\nexports[1773] = 'ER_MALFORMED_GTID_SET_ENCODING';\nexports[1774] = 'ER_MALFORMED_GTID_SPECIFICATION';\nexports[1775] = 'ER_GNO_EXHAUSTED';\nexports[1776] = 'ER_BAD_REPLICA_AUTO_POSITION';\nexports[1777] = 'ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON';\nexports[1778] = 'ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET';\nexports[1779] = 'ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON';\nexports[1780] = 'ER_GTID_MODE_REQUIRES_BINLOG';\nexports[1781] = 'ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF';\nexports[1782] = 'ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON';\nexports[1783] = 'ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF';\nexports[1784] = 'ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF';\nexports[1785] = 'ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE';\nexports[1786] = 'ER_GTID_UNSAFE_CREATE_SELECT';\nexports[1787] = 'ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION';\nexports[1788] = 'ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME';\nexports[1789] = 'ER_SOURCE_HAS_PURGED_REQUIRED_GTIDS';\nexports[1790] = 'ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID';\nexports[1791] = 'ER_UNKNOWN_EXPLAIN_FORMAT';\nexports[1792] = 'ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION';\nexports[1793] = 'ER_TOO_LONG_TABLE_PARTITION_COMMENT';\nexports[1794] = 'ER_REPLICA_CONFIGURATION';\nexports[1795] = 'ER_INNODB_FT_LIMIT';\nexports[1796] = 'ER_INNODB_NO_FT_TEMP_TABLE';\nexports[1797] = 'ER_INNODB_FT_WRONG_DOCID_COLUMN';\nexports[1798] = 'ER_INNODB_FT_WRONG_DOCID_INDEX';\nexports[1799] = 'ER_INNODB_ONLINE_LOG_TOO_BIG';\nexports[1800] = 'ER_UNKNOWN_ALTER_ALGORITHM';\nexports[1801] = 'ER_UNKNOWN_ALTER_LOCK';\nexports[1802] = 'ER_MTS_CHANGE_SOURCE_CANT_RUN_WITH_GAPS';\nexports[1803] = 'ER_MTS_RECOVERY_FAILURE';\nexports[1804] = 'ER_MTS_RESET_WORKERS';\nexports[1805] = 'ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2';\nexports[1806] = 'ER_REPLICA_SILENT_RETRY_TRANSACTION';\nexports[1807] = 'ER_DISCARD_FK_CHECKS_RUNNING';\nexports[1808] = 'ER_TABLE_SCHEMA_MISMATCH';\nexports[1809] = 'ER_TABLE_IN_SYSTEM_TABLESPACE';\nexports[1810] = 'ER_IO_READ_ERROR';\nexports[1811] = 'ER_IO_WRITE_ERROR';\nexports[1812] = 'ER_TABLESPACE_MISSING';\nexports[1813] = 'ER_TABLESPACE_EXISTS';\nexports[1814] = 'ER_TABLESPACE_DISCARDED';\nexports[1815] = 'ER_INTERNAL_ERROR';\nexports[1816] = 'ER_INNODB_IMPORT_ERROR';\nexports[1817] = 'ER_INNODB_INDEX_CORRUPT';\nexports[1818] = 'ER_INVALID_YEAR_COLUMN_LENGTH';\nexports[1819] = 'ER_NOT_VALID_PASSWORD';\nexports[1820] = 'ER_MUST_CHANGE_PASSWORD';\nexports[1821] = 'ER_FK_NO_INDEX_CHILD';\nexports[1822] = 'ER_FK_NO_INDEX_PARENT';\nexports[1823] = 'ER_FK_FAIL_ADD_SYSTEM';\nexports[1824] = 'ER_FK_CANNOT_OPEN_PARENT';\nexports[1825] = 'ER_FK_INCORRECT_OPTION';\nexports[1826] = 'ER_FK_DUP_NAME';\nexports[1827] = 'ER_PASSWORD_FORMAT';\nexports[1828] = 'ER_FK_COLUMN_CANNOT_DROP';\nexports[1829] = 'ER_FK_COLUMN_CANNOT_DROP_CHILD';\nexports[1830] = 'ER_FK_COLUMN_NOT_NULL';\nexports[1831] = 'ER_DUP_INDEX';\nexports[1832] = 'ER_FK_COLUMN_CANNOT_CHANGE';\nexports[1833] = 'ER_FK_COLUMN_CANNOT_CHANGE_CHILD';\nexports[1834] = 'ER_FK_CANNOT_DELETE_PARENT';\nexports[1835] = 'ER_MALFORMED_PACKET';\nexports[1836] = 'ER_READ_ONLY_MODE';\nexports[1837] = 'ER_GTID_NEXT_TYPE_UNDEFINED_GROUP';\nexports[1838] = 'ER_VARIABLE_NOT_SETTABLE_IN_SP';\nexports[1839] = 'ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF';\nexports[1840] = 'ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY';\nexports[1841] = 'ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY';\nexports[1842] = 'ER_GTID_PURGED_WAS_CHANGED';\nexports[1843] = 'ER_GTID_EXECUTED_WAS_CHANGED';\nexports[1844] = 'ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES';\nexports[1845] = 'ER_ALTER_OPERATION_NOT_SUPPORTED';\nexports[1846] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON';\nexports[1847] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY';\nexports[1848] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION';\nexports[1849] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME';\nexports[1850] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE';\nexports[1851] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK';\nexports[1852] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE';\nexports[1853] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK';\nexports[1854] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC';\nexports[1855] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS';\nexports[1856] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS';\nexports[1857] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS';\nexports[1858] = 'ER_SQL_REPLICA_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE';\nexports[1859] = 'ER_DUP_UNKNOWN_IN_INDEX';\nexports[1860] = 'ER_IDENT_CAUSES_TOO_LONG_PATH';\nexports[1861] = 'ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL';\nexports[1862] = 'ER_MUST_CHANGE_PASSWORD_LOGIN';\nexports[1863] = 'ER_ROW_IN_WRONG_PARTITION';\nexports[1864] = 'ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX';\nexports[1865] = 'ER_INNODB_NO_FT_USES_PARSER';\nexports[1866] = 'ER_BINLOG_LOGICAL_CORRUPTION';\nexports[1867] = 'ER_WARN_PURGE_LOG_IN_USE';\nexports[1868] = 'ER_WARN_PURGE_LOG_IS_ACTIVE';\nexports[1869] = 'ER_AUTO_INCREMENT_CONFLICT';\nexports[1870] = 'WARN_ON_BLOCKHOLE_IN_RBR';\nexports[1871] = 'ER_REPLICA_MI_INIT_REPOSITORY';\nexports[1872] = 'ER_REPLICA_RLI_INIT_REPOSITORY';\nexports[1873] = 'ER_ACCESS_DENIED_CHANGE_USER_ERROR';\nexports[1874] = 'ER_INNODB_READ_ONLY';\nexports[1875] = 'ER_STOP_REPLICA_SQL_THREAD_TIMEOUT';\nexports[1876] = 'ER_STOP_REPLICA_IO_THREAD_TIMEOUT';\nexports[1877] = 'ER_TABLE_CORRUPT';\nexports[1878] = 'ER_TEMP_FILE_WRITE_FAILURE';\nexports[1879] = 'ER_INNODB_FT_AUX_NOT_HEX_ID';\nexports[1880] = 'ER_OLD_TEMPORALS_UPGRADED';\nexports[1881] = 'ER_INNODB_FORCED_RECOVERY';\nexports[1882] = 'ER_AES_INVALID_IV';\nexports[1883] = 'ER_FILE_CORRUPT';\nexports[1884] = 'ER_ERROR_ON_SOURCE';\nexports[1885] = 'ER_INCONSISTENT_ERROR';\nexports[1886] = 'ER_STORAGE_ENGINE_NOT_LOADED';\nexports[1887] = 'ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER';\nexports[1888] = 'ER_WARN_LEGACY_SYNTAX_CONVERTED';\nexports[1889] = 'ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN';\nexports[1890] = 'ER_CANNOT_DISCARD_TEMPORARY_TABLE';\nexports[1891] = 'ER_FK_DEPTH_EXCEEDED';\nexports[1892] = 'ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2';\nexports[1893] = 'ER_WARN_TRIGGER_DOESNT_HAVE_CREATED';\nexports[1894] = 'ER_REFERENCED_TRG_DOES_NOT_EXIST';\nexports[1895] = 'ER_EXPLAIN_NOT_SUPPORTED';\nexports[1896] = 'ER_INVALID_FIELD_SIZE';\nexports[1897] = 'ER_MISSING_HA_CREATE_OPTION';\nexports[1898] = 'ER_ENGINE_OUT_OF_MEMORY';\nexports[1899] = 'ER_PASSWORD_EXPIRE_ANONYMOUS_USER';\nexports[1900] = 'ER_REPLICA_SQL_THREAD_MUST_STOP';\nexports[1901] = 'ER_NO_FT_MATERIALIZED_SUBQUERY';\nexports[1902] = 'ER_INNODB_UNDO_LOG_FULL';\nexports[1903] = 'ER_INVALID_ARGUMENT_FOR_LOGARITHM';\nexports[1904] = 'ER_REPLICA_IO_THREAD_MUST_STOP';\nexports[1905] = 'ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO';\nexports[1906] = 'ER_WARN_ONLY_SOURCE_LOG_FILE_NO_POS';\nexports[1907] = 'ER_QUERY_TIMEOUT';\nexports[1908] = 'ER_NON_RO_SELECT_DISABLE_TIMER';\nexports[1909] = 'ER_DUP_LIST_ENTRY';\nexports[1910] = 'ER_SQL_MODE_NO_EFFECT';\nexports[3169] = 'ER_SESSION_WAS_KILLED';\nexports[4031] = 'ER_CLIENT_INTERACTION_TIMEOUT';\n","module.exports = require(\"string_decoder\");","'use strict';\n\n// Manually extracted from mysql-5.5.23/include/mysql_com.h\n\n/**\n Is raised when a multi-statement transaction\n has been started, either explicitly, by means\n of BEGIN or COMMIT AND CHAIN, or\n implicitly, by the first transactional\n statement, when autocommit=off.\n*/\nexports.SERVER_STATUS_IN_TRANS = 1;\nexports.SERVER_STATUS_AUTOCOMMIT = 2; /* Server in auto_commit mode */\nexports.SERVER_MORE_RESULTS_EXISTS = 8; /* Multi query - next query exists */\nexports.SERVER_QUERY_NO_GOOD_INDEX_USED = 16;\nexports.SERVER_QUERY_NO_INDEX_USED = 32;\n/**\n The server was able to fulfill the clients request and opened a\n read-only non-scrollable cursor for a query. This flag comes\n in reply to COM_STMT_EXECUTE and COM_STMT_FETCH commands.\n*/\nexports.SERVER_STATUS_CURSOR_EXISTS = 64;\n/**\n This flag is sent when a read-only cursor is exhausted, in reply to\n COM_STMT_FETCH command.\n*/\nexports.SERVER_STATUS_LAST_ROW_SENT = 128;\nexports.SERVER_STATUS_DB_DROPPED = 256; /* A database was dropped */\nexports.SERVER_STATUS_NO_BACKSLASH_ESCAPES = 512;\n/**\n Sent to the client if after a prepared statement reprepare\n we discovered that the new statement returns a different\n number of result set columns.\n*/\nexports.SERVER_STATUS_METADATA_CHANGED = 1024;\nexports.SERVER_QUERY_WAS_SLOW = 2048;\n\n/**\n To mark ResultSet containing output parameter values.\n*/\nexports.SERVER_PS_OUT_PARAMS = 4096;\n\nexports.SERVER_STATUS_IN_TRANS_READONLY = 0x2000; // in a read-only transaction\nexports.SERVER_SESSION_STATE_CHANGED = 0x4000;\n","// This file was modified by Oracle on June 17, 2021.\n// Handshake errors are now maked as fatal and the corresponding events are\n// emitted in the command instance itself.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst Command = require('./command.js');\nconst Packets = require('../packets/index.js');\nconst ClientConstants = require('../constants/client.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\nconst auth41 = require('../auth_41.js');\n\nfunction flagNames(flags) {\n const res = [];\n for (const c in ClientConstants) {\n if (flags & ClientConstants[c]) {\n res.push(c.replace(/_/g, ' ').toLowerCase());\n }\n }\n return res;\n}\n\nclass ClientHandshake extends Command {\n constructor(clientFlags) {\n super();\n this.handshake = null;\n this.clientFlags = clientFlags;\n }\n\n start() {\n return ClientHandshake.prototype.handshakeInit;\n }\n\n sendSSLRequest(connection) {\n const sslRequest = new Packets.SSLRequest(\n this.clientFlags,\n connection.config.charsetNumber\n );\n connection.writePacket(sslRequest.toPacket());\n }\n\n sendCredentials(connection) {\n if (connection.config.debug) {\n // eslint-disable-next-line\n console.log(\n 'Sending handshake packet: flags:%d=(%s)',\n this.clientFlags,\n flagNames(this.clientFlags).join(', ')\n );\n }\n this.user = connection.config.user;\n this.password = connection.config.password;\n this.passwordSha1 = connection.config.passwordSha1;\n this.database = connection.config.database;\n this.autPluginName = this.handshake.autPluginName;\n const handshakeResponse = new Packets.HandshakeResponse({\n flags: this.clientFlags,\n user: this.user,\n database: this.database,\n password: this.password,\n passwordSha1: this.passwordSha1,\n charsetNumber: connection.config.charsetNumber,\n authPluginData1: this.handshake.authPluginData1,\n authPluginData2: this.handshake.authPluginData2,\n compress: connection.config.compress,\n connectAttributes: connection.config.connectAttributes\n });\n connection.writePacket(handshakeResponse.toPacket());\n }\n\n calculateNativePasswordAuthToken(authPluginData) {\n // TODO: dont split into authPluginData1 and authPluginData2, instead join when 1 & 2 received\n const authPluginData1 = authPluginData.slice(0, 8);\n const authPluginData2 = authPluginData.slice(8, 20);\n let authToken;\n if (this.passwordSha1) {\n authToken = auth41.calculateTokenFromPasswordSha(\n this.passwordSha1,\n authPluginData1,\n authPluginData2\n );\n } else {\n authToken = auth41.calculateToken(\n this.password,\n authPluginData1,\n authPluginData2\n );\n }\n return authToken;\n }\n\n handshakeInit(helloPacket, connection) {\n this.on('error', e => {\n connection._fatalError = e;\n connection._protocolError = e;\n });\n this.handshake = Packets.Handshake.fromPacket(helloPacket);\n if (connection.config.debug) {\n // eslint-disable-next-line\n console.log(\n 'Server hello packet: capability flags:%d=(%s)',\n this.handshake.capabilityFlags,\n flagNames(this.handshake.capabilityFlags).join(', ')\n );\n }\n connection.serverCapabilityFlags = this.handshake.capabilityFlags;\n connection.serverEncoding = CharsetToEncoding[this.handshake.characterSet];\n connection.connectionId = this.handshake.connectionId;\n const serverSSLSupport =\n this.handshake.capabilityFlags & ClientConstants.SSL;\n // use compression only if requested by client and supported by server\n connection.config.compress =\n connection.config.compress &&\n this.handshake.capabilityFlags & ClientConstants.COMPRESS;\n this.clientFlags = this.clientFlags | connection.config.compress;\n if (connection.config.ssl) {\n // client requires SSL but server does not support it\n if (!serverSSLSupport) {\n const err = new Error('Server does not support secure connnection');\n err.code = 'HANDSHAKE_NO_SSL_SUPPORT';\n err.fatal = true;\n this.emit('error', err);\n return false;\n }\n // send ssl upgrade request and immediately upgrade connection to secure\n this.clientFlags |= ClientConstants.SSL;\n this.sendSSLRequest(connection);\n connection.startTLS(err => {\n // after connection is secure\n if (err) {\n // SSL negotiation error are fatal\n err.code = 'HANDSHAKE_SSL_ERROR';\n err.fatal = true;\n this.emit('error', err);\n return;\n }\n // rest of communication is encrypted\n this.sendCredentials(connection);\n });\n } else {\n this.sendCredentials(connection);\n }\n return ClientHandshake.prototype.handshakeResult;\n }\n\n handshakeResult(packet, connection) {\n const marker = packet.peekByte();\n if (marker === 0xfe || marker === 1) {\n const authSwitch = require('./auth_switch');\n try {\n if (marker === 1) {\n authSwitch.authSwitchRequestMoreData(packet, connection, this);\n } else {\n authSwitch.authSwitchRequest(packet, connection, this);\n }\n return ClientHandshake.prototype.handshakeResult;\n } catch (err) {\n // Authentication errors are fatal\n err.code = 'AUTH_SWITCH_PLUGIN_ERROR';\n err.fatal = true;\n\n if (this.onResult) {\n this.onResult(err);\n } else {\n this.emit('error', err);\n }\n return null;\n }\n }\n if (marker !== 0) {\n const err = new Error('Unexpected packet during handshake phase');\n // Unknown handshake errors are fatal\n err.code = 'HANDSHAKE_UNKNOWN_ERROR';\n err.fatal = true;\n\n if (this.onResult) {\n this.onResult(err);\n } else {\n this.emit('error', err);\n }\n return null;\n }\n // this should be called from ClientHandshake command only\n // and skipped when called from ChangeUser command\n if (!connection.authorized) {\n connection.authorized = true;\n if (connection.config.compress) {\n const enableCompression = require('../compressed_protocol.js')\n .enableCompression;\n enableCompression(connection);\n }\n }\n if (this.onResult) {\n this.onResult(null);\n }\n return null;\n }\n}\nmodule.exports = ClientHandshake;\n","'use strict';\n\nconst process = require('process');\nconst Timers = require('timers');\n\nconst Readable = require('stream').Readable;\n\nconst Command = require('./command.js');\nconst Packets = require('../packets/index.js');\nconst getTextParser = require('../parsers/text_parser.js');\nconst ServerStatus = require('../constants/server_status.js');\n\nconst EmptyPacket = new Packets.Packet(0, Buffer.allocUnsafe(4), 0, 4);\n\n// http://dev.mysql.com/doc/internals/en/com-query.html\nclass Query extends Command {\n constructor(options, callback) {\n super();\n this.sql = options.sql;\n this.values = options.values;\n this._queryOptions = options;\n this.namedPlaceholders = options.namedPlaceholders || false;\n this.onResult = callback;\n this.timeout = options.timeout;\n this.queryTimeout = null;\n this._fieldCount = 0;\n this._rowParser = null;\n this._fields = [];\n this._rows = [];\n this._receivedFieldsCount = 0;\n this._resultIndex = 0;\n this._localStream = null;\n this._unpipeStream = function() {};\n this._streamFactory = options.infileStreamFactory;\n this._connection = null;\n }\n\n then() {\n const err =\n \"You have tried to call .then(), .catch(), or invoked await on the result of query that is not a promise, which is a programming error. Try calling con.promise().query(), or require('mysql2/promise') instead of 'mysql2' for a promise-compatible version of the query interface. To learn how to use async/await or Promises check out documentation at https://www.npmjs.com/package/mysql2#using-promise-wrapper, or the mysql2 documentation at https://github.com/sidorares/node-mysql2/tree/master/documentation/Promise-Wrapper.md\";\n // eslint-disable-next-line\n console.log(err);\n throw new Error(err);\n }\n\n /* eslint no-unused-vars: [\"error\", { \"argsIgnorePattern\": \"^_\" }] */\n start(_packet, connection) {\n if (connection.config.debug) {\n // eslint-disable-next-line\n console.log(' Sending query command: %s', this.sql);\n }\n this._connection = connection;\n this.options = Object.assign({}, connection.config, this._queryOptions);\n this._setTimeout();\n\n const cmdPacket = new Packets.Query(\n this.sql,\n connection.config.charsetNumber\n );\n connection.writePacket(cmdPacket.toPacket(1));\n return Query.prototype.resultsetHeader;\n }\n\n done() {\n this._unpipeStream();\n // if all ready timeout, return null directly\n if (this.timeout && !this.queryTimeout) {\n return null;\n }\n // else clear timer\n if (this.queryTimeout) {\n Timers.clearTimeout(this.queryTimeout);\n this.queryTimeout = null;\n }\n if (this.onResult) {\n let rows, fields;\n if (this._resultIndex === 0) {\n rows = this._rows[0];\n fields = this._fields[0];\n } else {\n rows = this._rows;\n fields = this._fields;\n }\n if (fields) {\n process.nextTick(() => {\n this.onResult(null, rows, fields);\n });\n } else {\n process.nextTick(() => {\n this.onResult(null, rows);\n });\n }\n }\n return null;\n }\n\n doneInsert(rs) {\n if (this._localStreamError) {\n if (this.onResult) {\n this.onResult(this._localStreamError, rs);\n } else {\n this.emit('error', this._localStreamError);\n }\n return null;\n }\n this._rows.push(rs);\n this._fields.push(void 0);\n this.emit('fields', void 0);\n this.emit('result', rs);\n if (rs.serverStatus & ServerStatus.SERVER_MORE_RESULTS_EXISTS) {\n this._resultIndex++;\n return this.resultsetHeader;\n }\n return this.done();\n }\n\n resultsetHeader(packet, connection) {\n const rs = new Packets.ResultSetHeader(packet, connection);\n this._fieldCount = rs.fieldCount;\n if (connection.config.debug) {\n // eslint-disable-next-line\n console.log(\n ` Resultset header received, expecting ${rs.fieldCount} column definition packets`\n );\n }\n if (this._fieldCount === 0) {\n return this.doneInsert(rs);\n }\n if (this._fieldCount === null) {\n return this._streamLocalInfile(connection, rs.infileName);\n }\n this._receivedFieldsCount = 0;\n this._rows.push([]);\n this._fields.push([]);\n return this.readField;\n }\n\n _streamLocalInfile(connection, path) {\n if (this._streamFactory) {\n this._localStream = this._streamFactory(path);\n } else {\n this._localStreamError = new Error(\n `As a result of LOCAL INFILE command server wants to read ${path} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`\n );\n connection.writePacket(EmptyPacket);\n return this.infileOk;\n }\n\n const onConnectionError = () => {\n this._unpipeStream();\n };\n const onDrain = () => {\n this._localStream.resume();\n };\n const onPause = () => {\n this._localStream.pause();\n };\n const onData = function(data) {\n const dataWithHeader = Buffer.allocUnsafe(data.length + 4);\n data.copy(dataWithHeader, 4);\n connection.writePacket(\n new Packets.Packet(0, dataWithHeader, 0, dataWithHeader.length)\n );\n };\n const onEnd = () => {\n connection.removeListener('error', onConnectionError);\n connection.writePacket(EmptyPacket);\n };\n const onError = err => {\n this._localStreamError = err;\n connection.removeListener('error', onConnectionError);\n connection.writePacket(EmptyPacket);\n };\n this._unpipeStream = () => {\n connection.stream.removeListener('pause', onPause);\n connection.stream.removeListener('drain', onDrain);\n this._localStream.removeListener('data', onData);\n this._localStream.removeListener('end', onEnd);\n this._localStream.removeListener('error', onError);\n };\n connection.stream.on('pause', onPause);\n connection.stream.on('drain', onDrain);\n this._localStream.on('data', onData);\n this._localStream.on('end', onEnd);\n this._localStream.on('error', onError);\n connection.once('error', onConnectionError);\n return this.infileOk;\n }\n\n readField(packet, connection) {\n this._receivedFieldsCount++;\n // Often there is much more data in the column definition than in the row itself\n // If you set manually _fields[0] to array of ColumnDefinition's (from previous call)\n // you can 'cache' result of parsing. Field packets still received, but ignored in that case\n // this is the reason _receivedFieldsCount exist (otherwise we could just use current length of fields array)\n if (this._fields[this._resultIndex].length !== this._fieldCount) {\n const field = new Packets.ColumnDefinition(\n packet,\n connection.clientEncoding\n );\n this._fields[this._resultIndex].push(field);\n if (connection.config.debug) {\n /* eslint-disable no-console */\n console.log(' Column definition:');\n console.log(` name: ${field.name}`);\n console.log(` type: ${field.columnType}`);\n console.log(` flags: ${field.flags}`);\n /* eslint-enable no-console */\n }\n }\n // last field received\n if (this._receivedFieldsCount === this._fieldCount) {\n const fields = this._fields[this._resultIndex];\n this.emit('fields', fields);\n this._rowParser = new (getTextParser(fields, this.options, connection.config))(fields);\n return Query.prototype.fieldsEOF;\n }\n return Query.prototype.readField;\n }\n\n fieldsEOF(packet, connection) {\n // check EOF\n if (!packet.isEOF()) {\n return connection.protocolError('Expected EOF packet');\n }\n return this.row;\n }\n\n /* eslint no-unused-vars: [\"error\", { \"argsIgnorePattern\": \"^_\" }] */\n row(packet, _connection) { \n if (packet.isEOF()) {\n const status = packet.eofStatusFlags();\n const moreResults = status & ServerStatus.SERVER_MORE_RESULTS_EXISTS;\n if (moreResults) {\n this._resultIndex++;\n return Query.prototype.resultsetHeader;\n }\n return this.done();\n }\n let row;\n try {\n row = this._rowParser.next(\n packet,\n this._fields[this._resultIndex],\n this.options\n );\n } catch (err) {\n this._localStreamError = err;\n return this.doneInsert(null);\n }\n if (this.onResult) {\n this._rows[this._resultIndex].push(row);\n } else {\n this.emit('result', row);\n }\n return Query.prototype.row;\n }\n\n infileOk(packet, connection) {\n const rs = new Packets.ResultSetHeader(packet, connection);\n return this.doneInsert(rs);\n }\n\n stream(options) {\n options = options || {};\n options.objectMode = true;\n const stream = new Readable(options);\n stream._read = () => {\n this._connection && this._connection.resume();\n };\n this.on('result', row => {\n if (!stream.push(row)) {\n this._connection.pause();\n }\n stream.emit('result', row); // replicate old emitter\n });\n this.on('error', err => {\n stream.emit('error', err); // Pass on any errors\n });\n this.on('end', () => {\n stream.push(null); // pushing null, indicating EOF\n stream.emit('close'); // notify readers that query has completed\n });\n this.on('fields', fields => {\n stream.emit('fields', fields); // replicate old emitter\n });\n return stream;\n }\n\n _setTimeout() {\n if (this.timeout) {\n const timeoutHandler = this._handleTimeoutError.bind(this);\n this.queryTimeout = Timers.setTimeout(\n timeoutHandler,\n this.timeout\n );\n }\n }\n\n _handleTimeoutError() {\n if (this.queryTimeout) {\n Timers.clearTimeout(this.queryTimeout);\n this.queryTimeout = null;\n }\n \n const err = new Error('Query inactivity timeout');\n err.errorno = 'PROTOCOL_SEQUENCE_TIMEOUT';\n err.code = 'PROTOCOL_SEQUENCE_TIMEOUT';\n err.syscall = 'query';\n\n if (this.onResult) {\n this.onResult(err);\n } else {\n this.emit('error', err);\n }\n }\n}\n\nQuery.prototype.catch = Query.prototype.then;\n\nmodule.exports = Query;\n","'use strict';\n\n/*\n\n this seems to be not only shorter, but faster than\n string.replace(/\\\\/g, '\\\\\\\\').\n replace(/\\u0008/g, '\\\\b').\n replace(/\\t/g, '\\\\t').\n replace(/\\n/g, '\\\\n').\n replace(/\\f/g, '\\\\f').\n replace(/\\r/g, '\\\\r').\n replace(/'/g, '\\\\\\'').\n replace(/\"/g, '\\\\\"');\n or string.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, \"\\\\$&\")\n see http://jsperf.com/string-escape-regexp-vs-json-stringify\n */\nfunction srcEscape(str) {\n return JSON.stringify({\n [str]: 1\n }).slice(1, -3);\n}\n\nexports.srcEscape = srcEscape;\n\nlet highlightFn;\nlet cardinalRecommended = false;\ntry {\n highlightFn = require('cardinal').highlight;\n} catch (err) {\n highlightFn = text => {\n if (!cardinalRecommended) {\n // eslint-disable-next-line no-console\n console.log('For nicer debug output consider install cardinal@^2.0.0');\n cardinalRecommended = true;\n }\n return text;\n };\n}\n\n/**\n * Prints debug message with code frame, will try to use `cardinal` if available.\n */\nfunction printDebugWithCode(msg, code) {\n // eslint-disable-next-line no-console\n console.log(`\\n\\n${msg}:\\n`);\n // eslint-disable-next-line no-console\n console.log(`${highlightFn(code)}\\n`);\n}\n\nexports.printDebugWithCode = printDebugWithCode;\n\n/**\n * checks whether the `type` is in the `list`\n */\nfunction typeMatch(type, list, Types) {\n if (Array.isArray(list)) {\n return list.some(t => type === Types[t]);\n }\n\n return !!list;\n}\n\nexports.typeMatch = typeMatch;\n","var util = require('util')\nvar isProperty = require('is-property')\n\nvar INDENT_START = /[\\{\\[]/\nvar INDENT_END = /[\\}\\]]/\n\n// from https://mathiasbynens.be/notes/reserved-keywords\nvar RESERVED = [\n 'do',\n 'if',\n 'in',\n 'for',\n 'let',\n 'new',\n 'try',\n 'var',\n 'case',\n 'else',\n 'enum',\n 'eval',\n 'null',\n 'this',\n 'true',\n 'void',\n 'with',\n 'await',\n 'break',\n 'catch',\n 'class',\n 'const',\n 'false',\n 'super',\n 'throw',\n 'while',\n 'yield',\n 'delete',\n 'export',\n 'import',\n 'public',\n 'return',\n 'static',\n 'switch',\n 'typeof',\n 'default',\n 'extends',\n 'finally',\n 'package',\n 'private',\n 'continue',\n 'debugger',\n 'function',\n 'arguments',\n 'interface',\n 'protected',\n 'implements',\n 'instanceof',\n 'NaN',\n 'undefined'\n]\n\nvar RESERVED_MAP = {}\n\nfor (var i = 0; i < RESERVED.length; i++) {\n RESERVED_MAP[RESERVED[i]] = true\n}\n\nvar isVariable = function (name) {\n return isProperty(name) && !RESERVED_MAP.hasOwnProperty(name)\n}\n\nvar formats = {\n s: function(s) {\n return '' + s\n },\n d: function(d) {\n return '' + Number(d)\n },\n o: function(o) {\n return JSON.stringify(o)\n }\n}\n\nvar genfun = function() {\n var lines = []\n var indent = 0\n var vars = {}\n\n var push = function(str) {\n var spaces = ''\n while (spaces.length < indent*2) spaces += ' '\n lines.push(spaces+str)\n }\n\n var pushLine = function(line) {\n if (INDENT_END.test(line.trim()[0]) && INDENT_START.test(line[line.length-1])) {\n indent--\n push(line)\n indent++\n return\n }\n if (INDENT_START.test(line[line.length-1])) {\n push(line)\n indent++\n return\n }\n if (INDENT_END.test(line.trim()[0])) {\n indent--\n push(line)\n return\n }\n\n push(line)\n }\n\n var line = function(fmt) {\n if (!fmt) return line\n\n if (arguments.length === 1 && fmt.indexOf('\\n') > -1) {\n var lines = fmt.trim().split('\\n')\n for (var i = 0; i < lines.length; i++) {\n pushLine(lines[i].trim())\n }\n } else {\n pushLine(util.format.apply(util, arguments))\n }\n\n return line\n }\n\n line.scope = {}\n line.formats = formats\n\n line.sym = function(name) {\n if (!name || !isVariable(name)) name = 'tmp'\n if (!vars[name]) vars[name] = 0\n return name + (vars[name]++ || '')\n }\n\n line.property = function(obj, name) {\n if (arguments.length === 1) {\n name = obj\n obj = ''\n }\n\n name = name + ''\n\n if (isProperty(name)) return (obj ? obj + '.' + name : name)\n return obj ? obj + '[' + JSON.stringify(name) + ']' : JSON.stringify(name)\n }\n\n line.toString = function() {\n return lines.join('\\n')\n }\n\n line.toFunction = function(scope) {\n if (!scope) scope = {}\n\n var src = 'return ('+line.toString()+')'\n\n Object.keys(line.scope).forEach(function (key) {\n if (!scope[key]) scope[key] = line.scope[key]\n })\n\n var keys = Object.keys(scope).map(function(key) {\n return key\n })\n\n var vals = keys.map(function(key) {\n return scope[key]\n })\n\n return Function.apply(null, keys.concat(src)).apply(null, vals)\n }\n\n if (arguments.length) line.apply(null, arguments)\n\n return line\n}\n\ngenfun.formats = formats\nmodule.exports = genfun\n","'use strict';\n\nconst Command = require('./command');\nconst Packets = require('../packets/index.js');\n\nclass CloseStatement extends Command {\n constructor(id) {\n super();\n this.id = id;\n }\n\n start(packet, connection) {\n connection.writePacket(new Packets.CloseStatement(this.id).toPacket(1));\n return null;\n }\n}\n\nmodule.exports = CloseStatement;\n","'use strict';\n\nconst Command = require('./command.js');\nconst Query = require('./query.js');\nconst Packets = require('../packets/index.js');\n\nconst getBinaryParser = require('../parsers/binary_parser.js');\n\nclass Execute extends Command {\n constructor(options, callback) {\n super();\n this.statement = options.statement;\n this.sql = options.sql;\n this.values = options.values;\n this.onResult = callback;\n this.parameters = options.values;\n this.insertId = 0;\n this.timeout = options.timeout;\n this.queryTimeout = null;\n this._rows = [];\n this._fields = [];\n this._result = [];\n this._fieldCount = 0;\n this._rowParser = null;\n this._executeOptions = options;\n this._resultIndex = 0;\n this._localStream = null;\n this._unpipeStream = function() {};\n this._streamFactory = options.infileStreamFactory;\n this._connection = null;\n }\n\n buildParserFromFields(fields, connection) {\n return getBinaryParser(fields, this.options, connection.config);\n }\n\n start(packet, connection) {\n this._connection = connection;\n this.options = Object.assign({}, connection.config, this._executeOptions);\n this._setTimeout();\n const executePacket = new Packets.Execute(\n this.statement.id,\n this.parameters,\n connection.config.charsetNumber,\n connection.config.timezone\n );\n //For reasons why this try-catch is here, please see\n // https://github.com/sidorares/node-mysql2/pull/689\n //For additional discussion, see\n // 1. https://github.com/sidorares/node-mysql2/issues/493\n // 2. https://github.com/sidorares/node-mysql2/issues/187\n // 3. https://github.com/sidorares/node-mysql2/issues/480\n try {\n connection.writePacket(executePacket.toPacket(1));\n } catch (error) {\n this.onResult(error);\n }\n return Execute.prototype.resultsetHeader;\n }\n\n readField(packet, connection) {\n let fields;\n // disabling for now, but would be great to find reliable way to parse fields only once\n // fields reported by prepare can be empty at all or just incorrect - see #169\n //\n // perfomance optimisation: if we already have this field parsed in statement header, use one from header\n // const field = this.statement.columns.length == this._fieldCount ?\n // this.statement.columns[this._receivedFieldsCount] : new Packets.ColumnDefinition(packet);\n const field = new Packets.ColumnDefinition(\n packet,\n connection.clientEncoding\n );\n this._receivedFieldsCount++;\n this._fields[this._resultIndex].push(field);\n if (this._receivedFieldsCount === this._fieldCount) {\n fields = this._fields[this._resultIndex];\n this.emit('fields', fields, this._resultIndex);\n return Execute.prototype.fieldsEOF;\n }\n return Execute.prototype.readField;\n }\n\n fieldsEOF(packet, connection) {\n // check EOF\n if (!packet.isEOF()) {\n return connection.protocolError('Expected EOF packet');\n }\n this._rowParser = new (this.buildParserFromFields(\n this._fields[this._resultIndex],\n connection\n ))();\n return Execute.prototype.row;\n }\n}\n\nExecute.prototype.done = Query.prototype.done;\nExecute.prototype.doneInsert = Query.prototype.doneInsert;\nExecute.prototype.resultsetHeader = Query.prototype.resultsetHeader;\nExecute.prototype._findOrCreateReadStream =\n Query.prototype._findOrCreateReadStream;\nExecute.prototype._streamLocalInfile = Query.prototype._streamLocalInfile;\nExecute.prototype._setTimeout = Query.prototype._setTimeout;\nExecute.prototype._handleTimeoutError = Query.prototype._handleTimeoutError;\nExecute.prototype.row = Query.prototype.row;\nExecute.prototype.stream = Query.prototype.stream;\n\nmodule.exports = Execute;\n","'use strict';\n\nconst process = require('process');\nconst mysql = require('../index.js');\n\nconst EventEmitter = require('events').EventEmitter;\nconst PoolConnection = require('./pool_connection.js');\nconst Queue = require('denque');\nconst Connection = require('./connection.js');\n\nfunction spliceConnection(queue, connection) {\n const len = queue.length;\n for (let i = 0; i < len; i++) {\n if (queue.get(i) === connection) {\n queue.removeOne(i);\n break;\n }\n }\n}\n\nclass Pool extends EventEmitter {\n constructor(options) {\n super();\n this.config = options.config;\n this.config.connectionConfig.pool = this;\n this._allConnections = new Queue();\n this._freeConnections = new Queue();\n this._connectionQueue = new Queue();\n this._closed = false;\n }\n\n promise(promiseImpl) {\n const PromisePool = require('../promise').PromisePool;\n return new PromisePool(this, promiseImpl);\n }\n\n getConnection(cb) {\n if (this._closed) {\n return process.nextTick(() => cb(new Error('Pool is closed.')));\n }\n let connection;\n if (this._freeConnections.length > 0) {\n connection = this._freeConnections.shift();\n this.emit('acquire', connection);\n return process.nextTick(() => cb(null, connection));\n }\n if (\n this.config.connectionLimit === 0 ||\n this._allConnections.length < this.config.connectionLimit\n ) {\n connection = new PoolConnection(this, {\n config: this.config.connectionConfig\n });\n this._allConnections.push(connection);\n return connection.connect(err => {\n if (this._closed) {\n return cb(new Error('Pool is closed.'));\n }\n if (err) {\n return cb(err);\n }\n this.emit('connection', connection);\n this.emit('acquire', connection);\n return cb(null, connection);\n });\n }\n if (!this.config.waitForConnections) {\n return process.nextTick(() => cb(new Error('No connections available.')));\n }\n if (\n this.config.queueLimit &&\n this._connectionQueue.length >= this.config.queueLimit\n ) {\n return cb(new Error('Queue limit reached.'));\n }\n this.emit('enqueue');\n return this._connectionQueue.push(cb);\n }\n\n releaseConnection(connection) {\n let cb;\n if (!connection._pool) {\n // The connection has been removed from the pool and is no longer good.\n if (this._connectionQueue.length) {\n cb = this._connectionQueue.shift();\n process.nextTick(this.getConnection.bind(this, cb));\n }\n } else if (this._connectionQueue.length) {\n cb = this._connectionQueue.shift();\n process.nextTick(cb.bind(null, null, connection));\n } else {\n this._freeConnections.push(connection);\n this.emit('release', connection);\n }\n }\n\n end(cb) {\n this._closed = true;\n if (typeof cb !== 'function') {\n cb = function(err) {\n if (err) {\n throw err;\n }\n };\n }\n let calledBack = false;\n let closedConnections = 0;\n let connection;\n const endCB = function(err) {\n if (calledBack) {\n return;\n }\n if (err || ++closedConnections >= this._allConnections.length) {\n calledBack = true;\n cb(err);\n return;\n }\n }.bind(this);\n if (this._allConnections.length === 0) {\n endCB();\n return;\n }\n for (let i = 0; i < this._allConnections.length; i++) {\n connection = this._allConnections.get(i);\n connection._realEnd(endCB);\n }\n }\n\n query(sql, values, cb) {\n const cmdQuery = Connection.createQuery(\n sql,\n values,\n cb,\n this.config.connectionConfig\n );\n if (typeof cmdQuery.namedPlaceholders === 'undefined') {\n cmdQuery.namedPlaceholders = this.config.connectionConfig.namedPlaceholders;\n }\n this.getConnection((err, conn) => {\n if (err) {\n if (typeof cmdQuery.onResult === 'function') {\n cmdQuery.onResult(err);\n } else {\n cmdQuery.emit('error', err);\n }\n return;\n }\n try {\n conn.query(cmdQuery).once('end', () => {\n conn.release();\n });\n } catch (e) {\n conn.release();\n throw e;\n }\n });\n return cmdQuery;\n }\n\n execute(sql, values, cb) {\n // TODO construct execute command first here and pass it to connection.execute\n // so that polymorphic arguments logic is there in one place\n if (typeof values === 'function') {\n cb = values;\n values = [];\n }\n this.getConnection((err, conn) => {\n if (err) {\n return cb(err);\n }\n try {\n conn.execute(sql, values, cb).once('end', () => {\n conn.release();\n });\n } catch (e) {\n conn.release();\n throw e;\n }\n });\n }\n\n _removeConnection(connection) {\n // Remove connection from all connections\n spliceConnection(this._allConnections, connection);\n // Remove connection from free connections\n spliceConnection(this._freeConnections, connection);\n this.releaseConnection(connection);\n }\n\n format(sql, values) {\n return mysql.format(\n sql,\n values,\n this.config.connectionConfig.stringifyObjects,\n this.config.connectionConfig.timezone\n );\n }\n\n escape(value) {\n return mysql.escape(\n value,\n this.config.connectionConfig.stringifyObjects,\n this.config.connectionConfig.timezone\n );\n }\n\n escapeId(value) {\n return mysql.escapeId(value, false);\n }\n}\n\nmodule.exports = Pool;\n","'use strict';\n\nconst Connection = require('../index.js').Connection;\n\nclass PoolConnection extends Connection {\n constructor(pool, options) {\n super(options);\n this._pool = pool;\n // When a fatal error occurs the connection's protocol ends, which will cause\n // the connection to end as well, thus we only need to watch for the end event\n // and we will be notified of disconnects.\n // REVIEW: Moved to `once`\n this.once('end', () => {\n this._removeFromPool();\n });\n this.once('error', () => {\n this._removeFromPool();\n });\n }\n\n release() {\n if (!this._pool || this._pool._closed) {\n return;\n }\n this._pool.releaseConnection(this);\n }\n\n promise(promiseImpl) {\n const PromisePoolConnection = require('../promise').PromisePoolConnection;\n return new PromisePoolConnection(this, promiseImpl);\n }\n\n end() {\n const err = new Error(\n 'Calling conn.end() to release a pooled connection is ' +\n 'deprecated. In next version calling conn.end() will be ' +\n 'restored to default conn.end() behavior. Use ' +\n 'conn.release() instead.'\n );\n this.emit('warn', err);\n // eslint-disable-next-line no-console\n console.warn(err.message);\n this.release();\n }\n\n destroy() {\n this._removeFromPool();\n super.destroy();\n }\n\n _removeFromPool() {\n if (!this._pool || this._pool._closed) {\n return;\n }\n const pool = this._pool;\n this._pool = null;\n pool._removeConnection(this);\n }\n}\n\nPoolConnection.statementKey = Connection.statementKey;\nmodule.exports = PoolConnection;\n\n// TODO: Remove this when we are removing PoolConnection#end\nPoolConnection.prototype._realEnd = Connection.prototype.end;\n","'use strict';\n\nconst process = require('process');\n\nconst Pool = require('./pool.js');\nconst PoolConfig = require('./pool_config.js');\nconst Connection = require('./connection.js');\nconst EventEmitter = require('events').EventEmitter;\n\n/**\n * Selector\n */\nconst makeSelector = {\n RR() {\n let index = 0;\n return clusterIds => clusterIds[index++ % clusterIds.length];\n },\n RANDOM() {\n return clusterIds =>\n clusterIds[Math.floor(Math.random() * clusterIds.length)];\n },\n ORDER() {\n return clusterIds => clusterIds[0];\n }\n};\n\nclass PoolNamespace {\n constructor(cluster, pattern, selector) {\n this._cluster = cluster;\n this._pattern = pattern;\n this._selector = makeSelector[selector]();\n }\n\n getConnection(cb) {\n const clusterNode = this._getClusterNode();\n if (clusterNode === null) {\n return cb(new Error('Pool does Not exists.'));\n }\n return this._cluster._getConnection(clusterNode, (err, connection) => {\n if (err) {\n return cb(err);\n }\n if (connection === 'retry') {\n return this.getConnection(cb);\n }\n return cb(null, connection);\n });\n }\n\n /**\n * pool cluster query\n * @param {*} sql\n * @param {*} values\n * @param {*} cb\n * @returns query\n */\n query(sql, values, cb) {\n const query = Connection.createQuery(sql, values, cb, {});\n this.getConnection((err, conn) => {\n if (err) {\n if (typeof query.onResult === 'function') {\n query.onResult(err);\n } else {\n query.emit('error', err);\n }\n return;\n }\n try {\n conn.query(query).once('end', () => {\n conn.release();\n });\n } catch (e) {\n conn.release();\n throw e;\n }\n });\n return query;\n }\n\n /**\n * pool cluster execute\n * @param {*} sql \n * @param {*} values \n * @param {*} cb \n */\n execute(sql, values, cb) {\n if (typeof values === 'function') {\n cb = values;\n values = [];\n }\n this.getConnection((err, conn) => {\n if (err) {\n return cb(err);\n }\n try {\n conn.execute(sql, values, cb).once('end', () => {\n conn.release();\n });\n } catch (e) {\n conn.release();\n throw e;\n }\n });\n }\n\n _getClusterNode() {\n const foundNodeIds = this._cluster._findNodeIds(this._pattern);\n if (foundNodeIds.length === 0) {\n return null;\n }\n const nodeId =\n foundNodeIds.length === 1\n ? foundNodeIds[0]\n : this._selector(foundNodeIds);\n return this._cluster._getNode(nodeId);\n }\n}\n\nclass PoolCluster extends EventEmitter {\n constructor(config) {\n super();\n config = config || {};\n this._canRetry =\n typeof config.canRetry === 'undefined' ? true : config.canRetry;\n this._removeNodeErrorCount = config.removeNodeErrorCount || 5;\n this._defaultSelector = config.defaultSelector || 'RR';\n this._closed = false;\n this._lastId = 0;\n this._nodes = {};\n this._serviceableNodeIds = [];\n this._namespaces = {};\n this._findCaches = {};\n }\n\n of(pattern, selector) {\n pattern = pattern || '*';\n selector = selector || this._defaultSelector;\n selector = selector.toUpperCase();\n if (!makeSelector[selector] === 'undefined') {\n selector = this._defaultSelector;\n }\n const key = pattern + selector;\n if (typeof this._namespaces[key] === 'undefined') {\n this._namespaces[key] = new PoolNamespace(this, pattern, selector);\n }\n return this._namespaces[key];\n }\n\n add(id, config) {\n if (typeof id === 'object') {\n config = id;\n id = `CLUSTER::${++this._lastId}`;\n }\n if (typeof this._nodes[id] === 'undefined') {\n this._nodes[id] = {\n id: id,\n errorCount: 0,\n pool: new Pool({ config: new PoolConfig(config) })\n };\n this._serviceableNodeIds.push(id);\n this._clearFindCaches();\n }\n }\n\n getConnection(pattern, selector, cb) {\n let namespace;\n if (typeof pattern === 'function') {\n cb = pattern;\n namespace = this.of();\n } else {\n if (typeof selector === 'function') {\n cb = selector;\n selector = this._defaultSelector;\n }\n namespace = this.of(pattern, selector);\n }\n namespace.getConnection(cb);\n }\n\n end(callback) {\n const cb =\n callback !== undefined\n ? callback\n : err => {\n if (err) {\n throw err;\n }\n };\n if (this._closed) {\n process.nextTick(cb);\n return;\n }\n this._closed = true;\n\n let calledBack = false;\n let waitingClose = 0;\n const onEnd = err => {\n if (!calledBack && (err || --waitingClose <= 0)) {\n calledBack = true;\n return cb(err);\n }\n };\n\n for (const id in this._nodes) {\n waitingClose++;\n this._nodes[id].pool.end(onEnd);\n }\n if (waitingClose === 0) {\n process.nextTick(onEnd);\n }\n }\n\n _findNodeIds(pattern) {\n if (typeof this._findCaches[pattern] !== 'undefined') {\n return this._findCaches[pattern];\n }\n let foundNodeIds;\n if (pattern === '*') {\n // all\n foundNodeIds = this._serviceableNodeIds;\n } else if (this._serviceableNodeIds.indexOf(pattern) !== -1) {\n // one\n foundNodeIds = [pattern];\n } else {\n // wild matching\n const keyword = pattern.substring(pattern.length - 1, 0);\n foundNodeIds = this._serviceableNodeIds.filter(id =>\n id.startsWith(keyword)\n );\n }\n this._findCaches[pattern] = foundNodeIds;\n return foundNodeIds;\n }\n\n _getNode(id) {\n return this._nodes[id] || null;\n }\n\n _increaseErrorCount(node) {\n if (++node.errorCount >= this._removeNodeErrorCount) {\n const index = this._serviceableNodeIds.indexOf(node.id);\n if (index !== -1) {\n this._serviceableNodeIds.splice(index, 1);\n delete this._nodes[node.id];\n this._clearFindCaches();\n node.pool.end();\n this.emit('remove', node.id);\n }\n }\n }\n\n _decreaseErrorCount(node) {\n if (node.errorCount > 0) {\n --node.errorCount;\n }\n }\n\n _getConnection(node, cb) {\n node.pool.getConnection((err, connection) => {\n if (err) {\n this._increaseErrorCount(node);\n if (this._canRetry) {\n // REVIEW: this seems wrong?\n this.emit('warn', err);\n // eslint-disable-next-line no-console\n console.warn(`[Error] PoolCluster : ${err}`);\n return cb(null, 'retry');\n }\n return cb(err);\n }\n this._decreaseErrorCount(node);\n\n connection._clusterId = node.id;\n return cb(null, connection);\n });\n }\n\n _clearFindCaches() {\n this._findCaches = {};\n }\n}\n\nmodule.exports = PoolCluster;\n","'use strict';\n\nconst ConnectionConfig = require('./connection_config.js');\n\nclass PoolConfig {\n constructor(options) {\n if (typeof options === 'string') {\n options = ConnectionConfig.parseUrl(options);\n }\n this.connectionConfig = new ConnectionConfig(options);\n this.waitForConnections =\n options.waitForConnections === undefined\n ? true\n : Boolean(options.waitForConnections);\n this.connectionLimit = isNaN(options.connectionLimit)\n ? 10\n : Number(options.connectionLimit);\n this.queueLimit = isNaN(options.queueLimit)\n ? 0\n : Number(options.queueLimit);\n }\n}\n\nmodule.exports = PoolConfig;\n","'use strict';\n\nconst format = require('./format');\n\n/*\n * function align (info)\n * Returns a new instance of the align Format which adds a `\\t`\n * delimiter before the message to properly align it in the same place.\n * It was previously { align: true } in winston < 3.0.0\n */\nmodule.exports = format(info => {\n info.message = `\\t${info.message}`;\n return info;\n});\n","'use strict';\n\nconst { Colorizer } = require('./colorize');\nconst { Padder } = require('./pad-levels');\nconst { configs, MESSAGE } = require('triple-beam');\n\n\n/**\n * Cli format class that handles initial state for a a separate\n * Colorizer and Padder instance.\n */\nclass CliFormat {\n constructor(opts = {}) {\n if (!opts.levels) {\n opts.levels = configs.npm.levels;\n }\n\n this.colorizer = new Colorizer(opts);\n this.padder = new Padder(opts);\n this.options = opts;\n }\n\n /*\n * function transform (info, opts)\n * Attempts to both:\n * 1. Pad the { level }\n * 2. Colorize the { level, message }\n * of the given `logform` info object depending on the `opts`.\n */\n transform(info, opts) {\n this.colorizer.transform(\n this.padder.transform(info, opts),\n opts\n );\n\n info[MESSAGE] = `${info.level}:${info.message}`;\n return info;\n }\n}\n\n/*\n * function cli (opts)\n * Returns a new instance of the CLI format that turns a log\n * `info` object into the same format previously available\n * in `winston.cli()` in `winston < 3.0.0`.\n */\nmodule.exports = opts => new CliFormat(opts);\n\n//\n// Attach the CliFormat for registration purposes\n//\nmodule.exports.Format = CliFormat;\n","'use strict';\n\nconst format = require('./format');\n\n/*\n * function cascade(formats)\n * Returns a function that invokes the `._format` function in-order\n * for the specified set of `formats`. In this manner we say that Formats\n * are \"pipe-like\", but not a pure pumpify implementation. Since there is no back\n * pressure we can remove all of the \"readable\" plumbing in Node streams.\n */\nfunction cascade(formats) {\n if (!formats.every(isValidFormat)) {\n return;\n }\n\n return info => {\n let obj = info;\n for (let i = 0; i < formats.length; i++) {\n obj = formats[i].transform(obj, formats[i].options);\n if (!obj) {\n return false;\n }\n }\n\n return obj;\n };\n}\n\n/*\n * function isValidFormat(format)\n * If the format does not define a `transform` function throw an error\n * with more detailed usage.\n */\nfunction isValidFormat(fmt) {\n if (typeof fmt.transform !== 'function') {\n throw new Error([\n 'No transform function found on format. Did you create a format instance?',\n 'const myFormat = format(formatFn);',\n 'const instance = myFormat();'\n ].join('\\n'));\n }\n\n return true;\n}\n\n/*\n * function combine (info)\n * Returns a new instance of the combine Format which combines the specified\n * formats into a new format. This is similar to a pipe-chain in transform streams.\n * We choose to combine the prototypes this way because there is no back pressure in\n * an in-memory transform chain.\n */\nmodule.exports = (...formats) => {\n const combinedFormat = format(cascade(formats));\n const instance = combinedFormat();\n instance.Format = combinedFormat.Format;\n return instance;\n};\n\n//\n// Export the cascade method for use in cli and other\n// combined formats that should not be assumed to be\n// singletons.\n//\nmodule.exports.cascade = cascade;\n","'use strict';\n\nconst format = require('./format');\n\n/*\n * function label (info)\n * Returns a new instance of the label Format which adds the specified\n * `opts.label` before the message. This was previously exposed as\n * { label: 'my label' } to transports in `winston < 3.0.0`.\n */\nmodule.exports = format((info, opts) => {\n if (opts.message) {\n info.message = `[${opts.label}] ${info.message}`;\n return info;\n }\n\n info.label = opts.label;\n return info;\n});\n","'use strict';\n\nconst format = require('./format');\nconst { MESSAGE } = require('triple-beam');\nconst jsonStringify = require('fast-safe-stringify');\n\n/*\n * function logstash (info)\n * Returns a new instance of the LogStash Format that turns a\n * log `info` object into pure JSON with the appropriate logstash\n * options. This was previously exposed as { logstash: true }\n * to transports in `winston < 3.0.0`.\n */\nmodule.exports = format(info => {\n const logstash = {};\n if (info.message) {\n logstash['@message'] = info.message;\n delete info.message;\n }\n\n if (info.timestamp) {\n logstash['@timestamp'] = info.timestamp;\n delete info.timestamp;\n }\n\n logstash['@fields'] = info;\n info[MESSAGE] = jsonStringify(logstash);\n return info;\n});\n","'use strict';\n\nconst format = require('./format');\n\nfunction fillExcept(info, fillExceptKeys, metadataKey) {\n const savedKeys = fillExceptKeys.reduce((acc, key) => {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n const metadata = Object.keys(info).reduce((acc, key) => {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n\n Object.assign(info, savedKeys, {\n [metadataKey]: metadata\n });\n return info;\n}\n\nfunction fillWith(info, fillWithKeys, metadataKey) {\n info[metadataKey] = fillWithKeys.reduce((acc, key) => {\n acc[key] = info[key];\n delete info[key];\n return acc;\n }, {});\n return info;\n}\n\n/**\n * Adds in a \"metadata\" object to collect extraneous data, similar to the metadata\n * object in winston 2.x.\n */\nmodule.exports = format((info, opts = {}) => {\n let metadataKey = 'metadata';\n if (opts.key) {\n metadataKey = opts.key;\n }\n\n let fillExceptKeys = [];\n if (!opts.fillExcept && !opts.fillWith) {\n fillExceptKeys.push('level');\n fillExceptKeys.push('message');\n }\n\n if (opts.fillExcept) {\n fillExceptKeys = opts.fillExcept;\n }\n\n if (fillExceptKeys.length > 0) {\n return fillExcept(info, fillExceptKeys, metadataKey);\n }\n\n if (opts.fillWith) {\n return fillWith(info, opts.fillWith, metadataKey);\n }\n\n return info;\n});\n","'use strict';\n\nconst inspect = require('util').inspect;\nconst format = require('./format');\nconst { LEVEL, MESSAGE, SPLAT } = require('triple-beam');\n\n/*\n * function prettyPrint (info)\n * Returns a new instance of the prettyPrint Format that \"prettyPrint\"\n * serializes `info` objects. This was previously exposed as\n * { prettyPrint: true } to transports in `winston < 3.0.0`.\n */\nmodule.exports = format((info, opts = {}) => {\n //\n // info[{LEVEL, MESSAGE, SPLAT}] are enumerable here. Since they\n // are internal, we remove them before util.inspect so they\n // are not printed.\n //\n const stripped = Object.assign({}, info);\n\n // Remark (indexzero): update this technique in April 2019\n // when node@6 is EOL\n delete stripped[LEVEL];\n delete stripped[MESSAGE];\n delete stripped[SPLAT];\n\n info[MESSAGE] = inspect(stripped, false, opts.depth || null, opts.colorize);\n return info;\n});\n","'use strict';\n\nconst { MESSAGE } = require('triple-beam');\n\nclass Printf {\n constructor(templateFn) {\n this.template = templateFn;\n }\n\n transform(info) {\n info[MESSAGE] = this.template(info);\n return info;\n }\n}\n\n/*\n * function printf (templateFn)\n * Returns a new instance of the printf Format that creates an\n * intermediate prototype to store the template string-based formatter\n * function.\n */\nmodule.exports = opts => new Printf(opts);\n\nmodule.exports.Printf\n = module.exports.Format\n = Printf;\n","/* eslint no-undefined: 0 */\n'use strict';\n\nconst format = require('./format');\nconst { MESSAGE } = require('triple-beam');\nconst jsonStringify = require('fast-safe-stringify');\n\n/*\n * function simple (info)\n * Returns a new instance of the simple format TransformStream\n * which writes a simple representation of logs.\n *\n * const { level, message, splat, ...rest } = info;\n *\n * ${level}: ${message} if rest is empty\n * ${level}: ${message} ${JSON.stringify(rest)} otherwise\n */\nmodule.exports = format(info => {\n const stringifiedRest = jsonStringify(Object.assign({}, info, {\n level: undefined,\n message: undefined,\n splat: undefined\n }));\n\n const padding = info.padding && info.padding[info.level] || '';\n if (stringifiedRest !== '{}') {\n info[MESSAGE] = `${info.level}:${padding} ${info.message} ${stringifiedRest}`;\n } else {\n info[MESSAGE] = `${info.level}:${padding} ${info.message}`;\n }\n\n return info;\n});\n","'use strict';\n\nconst util = require('util');\nconst { SPLAT } = require('triple-beam');\n\n/**\n * Captures the number of format (i.e. %s strings) in a given string.\n * Based on `util.format`, see Node.js source:\n * https://github.com/nodejs/node/blob/b1c8f15c5f169e021f7c46eb7b219de95fe97603/lib/util.js#L201-L230\n * @type {RegExp}\n */\nconst formatRegExp = /%[scdjifoO%]/g;\n\n/**\n * Captures the number of escaped % signs in a format string (i.e. %s strings).\n * @type {RegExp}\n */\nconst escapedPercent = /%%/g;\n\nclass Splatter {\n constructor(opts) {\n this.options = opts;\n }\n\n /**\n * Check to see if tokens <= splat.length, assign { splat, meta } into the\n * `info` accordingly, and write to this instance.\n *\n * @param {Info} info Logform info message.\n * @param {String[]} tokens Set of string interpolation tokens.\n * @returns {Info} Modified info message\n * @private\n */\n _splat(info, tokens) {\n const msg = info.message;\n const splat = info[SPLAT] || info.splat || [];\n const percents = msg.match(escapedPercent);\n const escapes = percents && percents.length || 0;\n\n // The expected splat is the number of tokens minus the number of escapes\n // e.g.\n // - { expectedSplat: 3 } '%d %s %j'\n // - { expectedSplat: 5 } '[%s] %d%% %d%% %s %j'\n //\n // Any \"meta\" will be arugments in addition to the expected splat size\n // regardless of type. e.g.\n //\n // logger.log('info', '%d%% %s %j', 100, 'wow', { such: 'js' }, { thisIsMeta: true });\n // would result in splat of four (4), but only three (3) are expected. Therefore:\n //\n // extraSplat = 3 - 4 = -1\n // metas = [100, 'wow', { such: 'js' }, { thisIsMeta: true }].splice(-1, -1 * -1);\n // splat = [100, 'wow', { such: 'js' }]\n const expectedSplat = tokens.length - escapes;\n const extraSplat = expectedSplat - splat.length;\n const metas = extraSplat < 0\n ? splat.splice(extraSplat, -1 * extraSplat)\n : [];\n\n // Now that { splat } has been separated from any potential { meta }. we\n // can assign this to the `info` object and write it to our format stream.\n // If the additional metas are **NOT** objects or **LACK** enumerable properties\n // you are going to have a bad time.\n const metalen = metas.length;\n if (metalen) {\n for (let i = 0; i < metalen; i++) {\n Object.assign(info, metas[i]);\n }\n }\n\n info.message = util.format(msg, ...splat);\n return info;\n }\n\n /**\n * Transforms the `info` message by using `util.format` to complete\n * any `info.message` provided it has string interpolation tokens.\n * If no tokens exist then `info` is immutable.\n *\n * @param {Info} info Logform info message.\n * @param {Object} opts Options for this instance.\n * @returns {Info} Modified info message\n */\n transform(info) {\n const msg = info.message;\n const splat = info[SPLAT] || info.splat;\n\n // No need to process anything if splat is undefined\n if (!splat || !splat.length) {\n return info;\n }\n\n // Extract tokens, if none available default to empty array to\n // ensure consistancy in expected results\n const tokens = msg && msg.match && msg.match(formatRegExp);\n\n // This condition will take care of inputs with info[SPLAT]\n // but no tokens present\n if (!tokens && (splat || splat.length)) {\n const metas = splat.length > 1\n ? splat.splice(0)\n : splat;\n\n // Now that { splat } has been separated from any potential { meta }. we\n // can assign this to the `info` object and write it to our format stream.\n // If the additional metas are **NOT** objects or **LACK** enumerable properties\n // you are going to have a bad time.\n const metalen = metas.length;\n if (metalen) {\n for (let i = 0; i < metalen; i++) {\n Object.assign(info, metas[i]);\n }\n }\n\n return info;\n }\n\n if (tokens) {\n return this._splat(info, tokens);\n }\n\n return info;\n }\n}\n\n/*\n * function splat (info)\n * Returns a new instance of the splat format TransformStream\n * which performs string interpolation from `info` objects. This was\n * previously exposed implicitly in `winston < 3.0.0`.\n */\nmodule.exports = opts => new Splatter(opts);\n","'use strict';\n\nconst fecha = require('fecha');\nconst format = require('./format');\n\n/*\n * function timestamp (info)\n * Returns a new instance of the timestamp Format which adds a timestamp\n * to the info. It was previously available in winston < 3.0.0 as:\n *\n * - { timestamp: true } // `new Date.toISOString()`\n * - { timestamp: function:String } // Value returned by `timestamp()`\n */\nmodule.exports = format((info, opts = {}) => {\n if (opts.format) {\n info.timestamp = typeof opts.format === 'function'\n ? opts.format()\n : fecha.format(new Date(), opts.format);\n }\n\n if (!info.timestamp) {\n info.timestamp = new Date().toISOString();\n }\n\n if (opts.alias) {\n info[opts.alias] = info.timestamp;\n }\n\n return info;\n});\n","var token = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\\1?|[aA]|\"[^\"]*\"|'[^']*'/g;\nvar twoDigitsOptional = \"[1-9]\\\\d?\";\nvar twoDigits = \"\\\\d\\\\d\";\nvar threeDigits = \"\\\\d{3}\";\nvar fourDigits = \"\\\\d{4}\";\nvar word = \"[^\\\\s]+\";\nvar literal = /\\[([^]*?)\\]/gm;\nfunction shorten(arr, sLen) {\n var newArr = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n newArr.push(arr[i].substr(0, sLen));\n }\n return newArr;\n}\nvar monthUpdate = function (arrName) { return function (v, i18n) {\n var lowerCaseArr = i18n[arrName].map(function (v) { return v.toLowerCase(); });\n var index = lowerCaseArr.indexOf(v.toLowerCase());\n if (index > -1) {\n return index;\n }\n return null;\n}; };\nfunction assign(origObj) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n var obj = args_1[_a];\n for (var key in obj) {\n // @ts-ignore ex\n origObj[key] = obj[key];\n }\n }\n return origObj;\n}\nvar dayNames = [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\"\n];\nvar monthNames = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n];\nvar monthNamesShort = shorten(monthNames, 3);\nvar dayNamesShort = shorten(dayNames, 3);\nvar defaultI18n = {\n dayNamesShort: dayNamesShort,\n dayNames: dayNames,\n monthNamesShort: monthNamesShort,\n monthNames: monthNames,\n amPm: [\"am\", \"pm\"],\n DoFn: function (dayOfMonth) {\n return (dayOfMonth +\n [\"th\", \"st\", \"nd\", \"rd\"][dayOfMonth % 10 > 3\n ? 0\n : ((dayOfMonth - (dayOfMonth % 10) !== 10 ? 1 : 0) * dayOfMonth) % 10]);\n }\n};\nvar globalI18n = assign({}, defaultI18n);\nvar setGlobalDateI18n = function (i18n) {\n return (globalI18n = assign(globalI18n, i18n));\n};\nvar regexEscape = function (str) {\n return str.replace(/[|\\\\{()[^$+*?.-]/g, \"\\\\$&\");\n};\nvar pad = function (val, len) {\n if (len === void 0) { len = 2; }\n val = String(val);\n while (val.length < len) {\n val = \"0\" + val;\n }\n return val;\n};\nvar formatFlags = {\n D: function (dateObj) { return String(dateObj.getDate()); },\n DD: function (dateObj) { return pad(dateObj.getDate()); },\n Do: function (dateObj, i18n) {\n return i18n.DoFn(dateObj.getDate());\n },\n d: function (dateObj) { return String(dateObj.getDay()); },\n dd: function (dateObj) { return pad(dateObj.getDay()); },\n ddd: function (dateObj, i18n) {\n return i18n.dayNamesShort[dateObj.getDay()];\n },\n dddd: function (dateObj, i18n) {\n return i18n.dayNames[dateObj.getDay()];\n },\n M: function (dateObj) { return String(dateObj.getMonth() + 1); },\n MM: function (dateObj) { return pad(dateObj.getMonth() + 1); },\n MMM: function (dateObj, i18n) {\n return i18n.monthNamesShort[dateObj.getMonth()];\n },\n MMMM: function (dateObj, i18n) {\n return i18n.monthNames[dateObj.getMonth()];\n },\n YY: function (dateObj) {\n return pad(String(dateObj.getFullYear()), 4).substr(2);\n },\n YYYY: function (dateObj) { return pad(dateObj.getFullYear(), 4); },\n h: function (dateObj) { return String(dateObj.getHours() % 12 || 12); },\n hh: function (dateObj) { return pad(dateObj.getHours() % 12 || 12); },\n H: function (dateObj) { return String(dateObj.getHours()); },\n HH: function (dateObj) { return pad(dateObj.getHours()); },\n m: function (dateObj) { return String(dateObj.getMinutes()); },\n mm: function (dateObj) { return pad(dateObj.getMinutes()); },\n s: function (dateObj) { return String(dateObj.getSeconds()); },\n ss: function (dateObj) { return pad(dateObj.getSeconds()); },\n S: function (dateObj) {\n return String(Math.round(dateObj.getMilliseconds() / 100));\n },\n SS: function (dateObj) {\n return pad(Math.round(dateObj.getMilliseconds() / 10), 2);\n },\n SSS: function (dateObj) { return pad(dateObj.getMilliseconds(), 3); },\n a: function (dateObj, i18n) {\n return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];\n },\n A: function (dateObj, i18n) {\n return dateObj.getHours() < 12\n ? i18n.amPm[0].toUpperCase()\n : i18n.amPm[1].toUpperCase();\n },\n ZZ: function (dateObj) {\n var offset = dateObj.getTimezoneOffset();\n return ((offset > 0 ? \"-\" : \"+\") +\n pad(Math.floor(Math.abs(offset) / 60) * 100 + (Math.abs(offset) % 60), 4));\n },\n Z: function (dateObj) {\n var offset = dateObj.getTimezoneOffset();\n return ((offset > 0 ? \"-\" : \"+\") +\n pad(Math.floor(Math.abs(offset) / 60), 2) +\n \":\" +\n pad(Math.abs(offset) % 60, 2));\n }\n};\nvar monthParse = function (v) { return +v - 1; };\nvar emptyDigits = [null, twoDigitsOptional];\nvar emptyWord = [null, word];\nvar amPm = [\n \"isPm\",\n word,\n function (v, i18n) {\n var val = v.toLowerCase();\n if (val === i18n.amPm[0]) {\n return 0;\n }\n else if (val === i18n.amPm[1]) {\n return 1;\n }\n return null;\n }\n];\nvar timezoneOffset = [\n \"timezoneOffset\",\n \"[^\\\\s]*?[\\\\+\\\\-]\\\\d\\\\d:?\\\\d\\\\d|[^\\\\s]*?Z?\",\n function (v) {\n var parts = (v + \"\").match(/([+-]|\\d\\d)/gi);\n if (parts) {\n var minutes = +parts[1] * 60 + parseInt(parts[2], 10);\n return parts[0] === \"+\" ? minutes : -minutes;\n }\n return 0;\n }\n];\nvar parseFlags = {\n D: [\"day\", twoDigitsOptional],\n DD: [\"day\", twoDigits],\n Do: [\"day\", twoDigitsOptional + word, function (v) { return parseInt(v, 10); }],\n M: [\"month\", twoDigitsOptional, monthParse],\n MM: [\"month\", twoDigits, monthParse],\n YY: [\n \"year\",\n twoDigits,\n function (v) {\n var now = new Date();\n var cent = +(\"\" + now.getFullYear()).substr(0, 2);\n return +(\"\" + (+v > 68 ? cent - 1 : cent) + v);\n }\n ],\n h: [\"hour\", twoDigitsOptional, undefined, \"isPm\"],\n hh: [\"hour\", twoDigits, undefined, \"isPm\"],\n H: [\"hour\", twoDigitsOptional],\n HH: [\"hour\", twoDigits],\n m: [\"minute\", twoDigitsOptional],\n mm: [\"minute\", twoDigits],\n s: [\"second\", twoDigitsOptional],\n ss: [\"second\", twoDigits],\n YYYY: [\"year\", fourDigits],\n S: [\"millisecond\", \"\\\\d\", function (v) { return +v * 100; }],\n SS: [\"millisecond\", twoDigits, function (v) { return +v * 10; }],\n SSS: [\"millisecond\", threeDigits],\n d: emptyDigits,\n dd: emptyDigits,\n ddd: emptyWord,\n dddd: emptyWord,\n MMM: [\"month\", word, monthUpdate(\"monthNamesShort\")],\n MMMM: [\"month\", word, monthUpdate(\"monthNames\")],\n a: amPm,\n A: amPm,\n ZZ: timezoneOffset,\n Z: timezoneOffset\n};\n// Some common format strings\nvar globalMasks = {\n default: \"ddd MMM DD YYYY HH:mm:ss\",\n shortDate: \"M/D/YY\",\n mediumDate: \"MMM D, YYYY\",\n longDate: \"MMMM D, YYYY\",\n fullDate: \"dddd, MMMM D, YYYY\",\n isoDate: \"YYYY-MM-DD\",\n isoDateTime: \"YYYY-MM-DDTHH:mm:ssZ\",\n shortTime: \"HH:mm\",\n mediumTime: \"HH:mm:ss\",\n longTime: \"HH:mm:ss.SSS\"\n};\nvar setGlobalDateMasks = function (masks) { return assign(globalMasks, masks); };\n/***\n * Format a date\n * @method format\n * @param {Date|number} dateObj\n * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'\n * @returns {string} Formatted date string\n */\nvar format = function (dateObj, mask, i18n) {\n if (mask === void 0) { mask = globalMasks[\"default\"]; }\n if (i18n === void 0) { i18n = {}; }\n if (typeof dateObj === \"number\") {\n dateObj = new Date(dateObj);\n }\n if (Object.prototype.toString.call(dateObj) !== \"[object Date]\" ||\n isNaN(dateObj.getTime())) {\n throw new Error(\"Invalid Date pass to format\");\n }\n mask = globalMasks[mask] || mask;\n var literals = [];\n // Make literals inactive by replacing them with @@@\n mask = mask.replace(literal, function ($0, $1) {\n literals.push($1);\n return \"@@@\";\n });\n var combinedI18nSettings = assign(assign({}, globalI18n), i18n);\n // Apply formatting rules\n mask = mask.replace(token, function ($0) {\n return formatFlags[$0](dateObj, combinedI18nSettings);\n });\n // Inline literal values back into the formatted value\n return mask.replace(/@@@/g, function () { return literals.shift(); });\n};\n/**\n * Parse a date string into a Javascript Date object /\n * @method parse\n * @param {string} dateStr Date string\n * @param {string} format Date parse format\n * @param {i18n} I18nSettingsOptional Full or subset of I18N settings\n * @returns {Date|null} Returns Date object. Returns null what date string is invalid or doesn't match format\n */\nfunction parse(dateStr, format, i18n) {\n if (i18n === void 0) { i18n = {}; }\n if (typeof format !== \"string\") {\n throw new Error(\"Invalid format in fecha parse\");\n }\n // Check to see if the format is actually a mask\n format = globalMasks[format] || format;\n // Avoid regular expression denial of service, fail early for really long strings\n // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS\n if (dateStr.length > 1000) {\n return null;\n }\n // Default to the beginning of the year.\n var today = new Date();\n var dateInfo = {\n year: today.getFullYear(),\n month: 0,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n isPm: null,\n timezoneOffset: null\n };\n var parseInfo = [];\n var literals = [];\n // Replace all the literals with @@@. Hopefully a string that won't exist in the format\n var newFormat = format.replace(literal, function ($0, $1) {\n literals.push(regexEscape($1));\n return \"@@@\";\n });\n var specifiedFields = {};\n var requiredFields = {};\n // Change every token that we find into the correct regex\n newFormat = regexEscape(newFormat).replace(token, function ($0) {\n var info = parseFlags[$0];\n var field = info[0], regex = info[1], requiredField = info[3];\n // Check if the person has specified the same field twice. This will lead to confusing results.\n if (specifiedFields[field]) {\n throw new Error(\"Invalid format. \" + field + \" specified twice in format\");\n }\n specifiedFields[field] = true;\n // Check if there are any required fields. For instance, 12 hour time requires AM/PM specified\n if (requiredField) {\n requiredFields[requiredField] = true;\n }\n parseInfo.push(info);\n return \"(\" + regex + \")\";\n });\n // Check all the required fields are present\n Object.keys(requiredFields).forEach(function (field) {\n if (!specifiedFields[field]) {\n throw new Error(\"Invalid format. \" + field + \" is required in specified format\");\n }\n });\n // Add back all the literals after\n newFormat = newFormat.replace(/@@@/g, function () { return literals.shift(); });\n // Check if the date string matches the format. If it doesn't return null\n var matches = dateStr.match(new RegExp(newFormat, \"i\"));\n if (!matches) {\n return null;\n }\n var combinedI18nSettings = assign(assign({}, globalI18n), i18n);\n // For each match, call the parser function for that date part\n for (var i = 1; i < matches.length; i++) {\n var _a = parseInfo[i - 1], field = _a[0], parser = _a[2];\n var value = parser\n ? parser(matches[i], combinedI18nSettings)\n : +matches[i];\n // If the parser can't make sense of the value, return null\n if (value == null) {\n return null;\n }\n dateInfo[field] = value;\n }\n if (dateInfo.isPm === 1 && dateInfo.hour != null && +dateInfo.hour !== 12) {\n dateInfo.hour = +dateInfo.hour + 12;\n }\n else if (dateInfo.isPm === 0 && +dateInfo.hour === 12) {\n dateInfo.hour = 0;\n }\n var dateWithoutTZ = new Date(dateInfo.year, dateInfo.month, dateInfo.day, dateInfo.hour, dateInfo.minute, dateInfo.second, dateInfo.millisecond);\n var validateFields = [\n [\"month\", \"getMonth\"],\n [\"day\", \"getDate\"],\n [\"hour\", \"getHours\"],\n [\"minute\", \"getMinutes\"],\n [\"second\", \"getSeconds\"]\n ];\n for (var i = 0, len = validateFields.length; i < len; i++) {\n // Check to make sure the date field is within the allowed range. Javascript dates allows values\n // outside the allowed range. If the values don't match the value was invalid\n if (specifiedFields[validateFields[i][0]] &&\n dateInfo[validateFields[i][0]] !== dateWithoutTZ[validateFields[i][1]]()) {\n return null;\n }\n }\n if (dateInfo.timezoneOffset == null) {\n return dateWithoutTZ;\n }\n return new Date(Date.UTC(dateInfo.year, dateInfo.month, dateInfo.day, dateInfo.hour, dateInfo.minute - dateInfo.timezoneOffset, dateInfo.second, dateInfo.millisecond));\n}\nvar fecha = {\n format: format,\n parse: parse,\n defaultI18n: defaultI18n,\n setGlobalDateI18n: setGlobalDateI18n,\n setGlobalDateMasks: setGlobalDateMasks\n};\n\nexport default fecha;\nexport { assign, format, parse, defaultI18n, setGlobalDateI18n, setGlobalDateMasks };\n//# sourceMappingURL=fecha.js.map\n","'use strict';\n\nconst colors = require('colors/safe');\nconst format = require('./format');\nconst { MESSAGE } = require('triple-beam');\n\n/*\n * function uncolorize (info)\n * Returns a new instance of the uncolorize Format that strips colors\n * from `info` objects. This was previously exposed as { stripColors: true }\n * to transports in `winston < 3.0.0`.\n */\nmodule.exports = format((info, opts) => {\n if (opts.level !== false) {\n info.level = colors.strip(info.level);\n }\n\n if (opts.message !== false) {\n info.message = colors.strip(info.message);\n }\n\n if (opts.raw !== false && info[MESSAGE]) {\n info[MESSAGE] = colors.strip(info[MESSAGE]);\n }\n\n return info;\n});\n","'use strict';\n/*\n * @api public\n * @property {function} format\n * Both the construction method and set of exposed\n * formats.\n */\n\nvar format = exports.format = require('././format');\n/*\n * @api public\n * @method {function} levels\n * Registers the specified levels with logform.\n */\n\n\nexports.levels = require('././levels'); //\n// Setup all transports as eager-loaded exports\n// so that they are static for the bundlers.\n//\n\nObject.defineProperty(format, 'align', {\n value: require('./align')\n});\nObject.defineProperty(format, 'cli', {\n value: require('./cli')\n});\nObject.defineProperty(format, 'combine', {\n value: require('./combine')\n});\nObject.defineProperty(format, 'colorize', {\n value: require('./colorize')\n});\nObject.defineProperty(format, 'json', {\n value: require('./json')\n});\nObject.defineProperty(format, 'label', {\n value: require('./label')\n});\nObject.defineProperty(format, 'logstash', {\n value: require('./logstash')\n});\nObject.defineProperty(format, 'metadata', {\n value: require('./metadata')\n});\nObject.defineProperty(format, 'padLevels', {\n value: require('./pad-levels')\n});\nObject.defineProperty(format, 'prettyPrint', {\n value: require('./pretty-print')\n});\nObject.defineProperty(format, 'printf', {\n value: require('./printf')\n});\nObject.defineProperty(format, 'simple', {\n value: require('./simple')\n});\nObject.defineProperty(format, 'splat', {\n value: require('./splat')\n});\nObject.defineProperty(format, 'timestamp', {\n value: require('./timestamp')\n});\nObject.defineProperty(format, 'uncolorize', {\n value: require('./uncolorize')\n});","/* eslint no-undefined: 0 */\n'use strict';\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar format = require('./format');\n\nvar _require = require('triple-beam'),\n LEVEL = _require.LEVEL,\n MESSAGE = _require.MESSAGE;\n/*\n * function errors (info)\n * If the `message` property of the `info` object is an instance of `Error`,\n * replace the `Error` object its own `message` property.\n *\n * Optionally, the Error's `stack` property can also be appended to the `info` object.\n */\n\n\nmodule.exports = format(function (einfo, _ref) {\n var stack = _ref.stack;\n\n if (einfo instanceof Error) {\n var _Object$assign;\n\n var info = Object.assign({}, einfo, (_Object$assign = {\n level: einfo.level\n }, _defineProperty(_Object$assign, LEVEL, einfo[LEVEL] || einfo.level), _defineProperty(_Object$assign, \"message\", einfo.message), _defineProperty(_Object$assign, MESSAGE, einfo[MESSAGE] || einfo.message), _Object$assign));\n if (stack) info.stack = einfo.stack;\n return info;\n }\n\n if (!(einfo.message instanceof Error)) return einfo; // Assign all enumerable properties and the\n // message property from the error provided.\n\n Object.assign(einfo, einfo.message);\n var err = einfo.message;\n einfo.message = err.message;\n einfo[MESSAGE] = err.message; // Assign the stack if requested.\n\n if (stack) einfo.stack = err.stack;\n return einfo;\n});","'use strict';\n/*\n * @api public\n * @property {function} format\n * Both the construction method and set of exposed\n * formats.\n */\n\nvar format = exports.format = require('./format');\n/*\n * @api public\n * @method {function} levels\n * Registers the specified levels with logform.\n */\n\n\nexports.levels = require('./levels');\n/*\n * @api private\n * method {function} exposeFormat\n * Exposes a sub-format on the main format object\n * as a lazy-loaded getter.\n */\n\nfunction exposeFormat(name, path) {\n path = path || name;\n Object.defineProperty(format, name, {\n get: function get() {\n return require(\"./\".concat(path, \".js\"));\n },\n configurable: true\n });\n} //\n// Setup all transports as lazy-loaded getters.\n//\n\n\nexposeFormat('align');\nexposeFormat('errors');\nexposeFormat('cli');\nexposeFormat('combine');\nexposeFormat('colorize');\nexposeFormat('json');\nexposeFormat('label');\nexposeFormat('logstash');\nexposeFormat('metadata');\nexposeFormat('ms');\nexposeFormat('padLevels', 'pad-levels');\nexposeFormat('prettyPrint', 'pretty-print');\nexposeFormat('printf');\nexposeFormat('simple');\nexposeFormat('splat');\nexposeFormat('timestamp');\nexposeFormat('uncolorize');","'use strict';\n\nvar _this = void 0;\n\nvar format = require('./format');\n\nvar ms = require('ms');\n/*\n * function ms (info)\n * Returns an `info` with a `ms` property. The `ms` property holds the Value\n * of the time difference between two calls in milliseconds.\n */\n\n\nmodule.exports = format(function (info) {\n var curr = +new Date();\n _this.diff = curr - (_this.prevTime || curr);\n _this.prevTime = curr;\n info.ms = \"+\".concat(ms(_this.diff));\n return info;\n});","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","/**\n * common.js: Internal helper and utility functions for winston.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst { format } = require('util');\n\n/**\n * Set of simple deprecation notices and a way to expose them for a set of\n * properties.\n * @type {Object}\n * @private\n */\nexports.warn = {\n deprecated(prop) {\n return () => {\n throw new Error(format('{ %s } was removed in winston@3.0.0.', prop));\n };\n },\n useFormat(prop) {\n return () => {\n throw new Error([\n format('{ %s } was removed in winston@3.0.0.', prop),\n 'Use a custom winston.format = winston.format(function) instead.'\n ].join('\\n'));\n };\n },\n forFunctions(obj, type, props) {\n props.forEach(prop => {\n obj[prop] = exports.warn[type](prop);\n });\n },\n moved(obj, movedTo, prop) {\n function movedNotice() {\n return () => {\n throw new Error([\n format('winston.%s was moved in winston@3.0.0.', prop),\n format('Use a winston.%s instead.', movedTo)\n ].join('\\n'));\n };\n }\n\n Object.defineProperty(obj, prop, {\n get: movedNotice,\n set: movedNotice\n });\n },\n forProperties(obj, type, props) {\n props.forEach(prop => {\n const notice = exports.warn[type](prop);\n Object.defineProperty(obj, prop, {\n get: notice,\n set: notice\n });\n });\n }\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Writable;\n\n/* */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var writableHwm = options.writableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function (object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function (object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n pna.nextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n pna.nextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n pna.nextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n pna.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /**/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /**/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n stream.emit('error', err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n pna.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = corkReq;\n } else {\n state.corkedRequestsFree = corkReq;\n }\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function () {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\n\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};","\n/**\n * For Node.js, simply re-export the core `util.deprecate` function.\n */\n\nmodule.exports = require('util').deprecate;\n","module.exports = require('stream');\n","'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\n pna.nextTick(emitErrorNT, this, err);\n }\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n pna.nextTick(emitErrorNT, _this, err);\n if (_this._writableState) {\n _this._writableState.errorEmitted = true;\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","'use strict';\n\nconst util = require('util');\nconst { LEVEL } = require('triple-beam');\nconst TransportStream = require('./');\n\n/**\n * Constructor function for the LegacyTransportStream. This is an internal\n * wrapper `winston >= 3` uses to wrap older transports implementing\n * log(level, message, meta).\n * @param {Object} options - Options for this TransportStream instance.\n * @param {Transpot} options.transport - winston@2 or older Transport to wrap.\n */\n\nconst LegacyTransportStream = module.exports = function LegacyTransportStream(options = {}) {\n TransportStream.call(this, options);\n if (!options.transport || typeof options.transport.log !== 'function') {\n throw new Error('Invalid transport, must be an object with a log method.');\n }\n\n this.transport = options.transport;\n this.level = this.level || options.transport.level;\n this.handleExceptions = this.handleExceptions || options.transport.handleExceptions;\n\n // Display our deprecation notice.\n this._deprecated();\n\n // Properly bubble up errors from the transport to the\n // LegacyTransportStream instance, but only once no matter how many times\n // this transport is shared.\n function transportError(err) {\n this.emit('error', err, this.transport);\n }\n\n if (!this.transport.__winstonError) {\n this.transport.__winstonError = transportError.bind(this);\n this.transport.on('error', this.transport.__winstonError);\n }\n};\n\n/*\n * Inherit from TransportStream using Node.js built-ins\n */\nutil.inherits(LegacyTransportStream, TransportStream);\n\n/**\n * Writes the info object to our transport instance.\n * @param {mixed} info - TODO: add param description.\n * @param {mixed} enc - TODO: add param description.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n * @private\n */\nLegacyTransportStream.prototype._write = function _write(info, enc, callback) {\n if (this.silent || (info.exception === true && !this.handleExceptions)) {\n return callback(null);\n }\n\n // Remark: This has to be handled in the base transport now because we\n // cannot conditionally write to our pipe targets as stream.\n if (!this.level || this.levels[this.level] >= this.levels[info[LEVEL]]) {\n this.transport.log(info[LEVEL], info.message, info, this._nop);\n }\n\n callback(null);\n};\n\n/**\n * Writes the batch of info objects (i.e. \"object chunks\") to our transport\n * instance after performing any necessary filtering.\n * @param {mixed} chunks - TODO: add params description.\n * @param {function} callback - TODO: add params description.\n * @returns {mixed} - TODO: add returns description.\n * @private\n */\nLegacyTransportStream.prototype._writev = function _writev(chunks, callback) {\n for (let i = 0; i < chunks.length; i++) {\n if (this._accept(chunks[i])) {\n this.transport.log(\n chunks[i].chunk[LEVEL],\n chunks[i].chunk.message,\n chunks[i].chunk,\n this._nop\n );\n chunks[i].callback();\n }\n }\n\n return callback(null);\n};\n\n/**\n * Displays a deprecation notice. Defined as a function so it can be\n * overriden in tests.\n * @returns {undefined}\n */\nLegacyTransportStream.prototype._deprecated = function _deprecated() {\n // eslint-disable-next-line no-console\n console.error([\n `${this.transport.name} is a legacy winston transport. Consider upgrading: `,\n '- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md'\n ].join('\\n'));\n};\n\n/**\n * Clean up error handling state on the legacy transport associated\n * with this instance.\n * @returns {undefined}\n */\nLegacyTransportStream.prototype.close = function close() {\n if (this.transport.close) {\n this.transport.close();\n }\n\n if (this.transport.__winstonError) {\n this.transport.removeListener('error', this.transport.__winstonError);\n this.transport.__winstonError = null;\n }\n};\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _eachOfLimit2 = require('./internal/eachOfLimit');\n\nvar _eachOfLimit3 = _interopRequireDefault(_eachOfLimit2);\n\nvar _wrapAsync = require('./internal/wrapAsync');\n\nvar _wrapAsync2 = _interopRequireDefault(_wrapAsync);\n\nvar _awaitify = require('./internal/awaitify');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name eachOfLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`. The `key` is the item's key, or index in the case of an\n * array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\nfunction eachOfLimit(coll, limit, iteratee, callback) {\n return (0, _eachOfLimit3.default)(limit)(coll, (0, _wrapAsync2.default)(iteratee), callback);\n}\n\nexports.default = (0, _awaitify2.default)(eachOfLimit, 4);\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = once;\nfunction once(fn) {\n function wrapper(...args) {\n if (fn === null) return;\n var callFn = fn;\n fn = null;\n callFn.apply(this, args);\n }\n Object.assign(wrapper, fn);\n return wrapper;\n}\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = onlyOnce;\nfunction onlyOnce(fn) {\n return function (...args) {\n if (fn === null) throw new Error(\"Callback was already called.\");\n var callFn = fn;\n fn = null;\n callFn.apply(this, args);\n };\n}\nmodule.exports = exports[\"default\"];","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n\nmodule.exports = Readable;\n/**/\n\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n/**/\n\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function EElistenerCount(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\n\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n/**/\n\n\nvar debugUtil = require('util');\n\nvar debug;\n\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function debug() {};\n}\n/**/\n\n\nvar BufferList = require('./internal/streams/buffer_list');\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance.\n\n\nvar StringDecoder;\nvar createReadableStreamAsyncIterator;\nvar from;\n\nrequire('inherits')(Readable, Stream);\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n\n this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n\n this.sync = true; // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this.paused = true; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish')\n\n this.autoDestroy = !!options.autoDestroy; // has it been destroyed\n\n this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s\n\n this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled\n\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n this._readableState = new ReadableState(options, this, isDuplex); // legacy\n\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n }\n});\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\n\nReadable.prototype._destroy = function (err, cb) {\n cb(err);\n}; // Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\n\n\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n}; // Unshift should *always* be something directly out of read()\n\n\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n debug('readableAddChunk', chunk);\n var state = stream._readableState;\n\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n\n if (er) {\n errorOrDestroy(stream, er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());\n } else if (state.destroyed) {\n return false;\n } else {\n state.reading = false;\n\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n maybeReadMore(stream, state);\n }\n } // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n\n\n return !state.ended && (state.length < state.highWaterMark || state.length === 0);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n state.awaitDrain = 0;\n stream.emit('data', chunk);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n if (state.needReadable) emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);\n }\n\n return er;\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n}; // backwards compatibility.\n\n\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n var decoder = new StringDecoder(enc);\n this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8\n\n this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers:\n\n var p = this._readableState.buffer.head;\n var content = '';\n\n while (p !== null) {\n content += decoder.write(p.data);\n p = p.next;\n }\n\n this._readableState.buffer.clear();\n\n if (content !== '') this._readableState.buffer.push(content);\n this._readableState.length = content.length;\n return this;\n}; // Don't raise the hwm > 1GB\n\n\nvar MAX_HWM = 0x40000000;\n\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n\n return n;\n} // This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n } // If we're asking for more than the current hwm, then raise the hwm.\n\n\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n; // Don't have enough\n\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n\n return state.length;\n} // you can override either this method, or the async _read(n) below.\n\n\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n\n if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.\n\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n } // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n // if we need a readable event, then we need to do some reading.\n\n\n var doRead = state.needReadable;\n debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some\n\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n } // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n\n\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true; // if the length is currently zero, then we *need* a readable event.\n\n if (state.length === 0) state.needReadable = true; // call internal read method\n\n this._read(state.highWaterMark);\n\n state.sync = false; // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark;\n n = 0;\n } else {\n state.length -= n;\n state.awaitDrain = 0;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.\n\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n debug('onEofChunk');\n if (state.ended) return;\n\n if (state.decoder) {\n var chunk = state.decoder.end();\n\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n\n state.ended = true;\n\n if (state.sync) {\n // if we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call\n emitReadable(stream);\n } else {\n // emit 'readable' now to make sure it gets picked up.\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n state.emittedReadable = true;\n emitReadable_(stream);\n }\n }\n} // Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\n\n\nfunction emitReadable(stream) {\n var state = stream._readableState;\n debug('emitReadable', state.needReadable, state.emittedReadable);\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n process.nextTick(emitReadable_, stream);\n }\n}\n\nfunction emitReadable_(stream) {\n var state = stream._readableState;\n debug('emitReadable_', state.destroyed, state.length, state.ended);\n\n if (!state.destroyed && (state.length || state.ended)) {\n stream.emit('readable');\n state.emittedReadable = false;\n } // The stream needs another readable event if\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n\n\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;\n flow(stream);\n} // at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\n\n\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {\n var len = state.length;\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length) // didn't get any data, stop spinning.\n break;\n }\n\n state.readingMore = false;\n} // abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\n\n\nReadable.prototype._read = function (n) {\n errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n\n default:\n state.pipes.push(dest);\n break;\n }\n\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n } // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n\n\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n\n function cleanup() {\n debug('cleanup'); // cleanup event handlers once the pipe is broken\n\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n cleanedUp = true; // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n src.on('data', ondata);\n\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n debug('dest.write', ret);\n\n if (ret === false) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n }\n\n src.pause();\n }\n } // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n\n\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);\n } // Make sure our error handler is attached before userland ones.\n\n\n prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.\n\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n\n dest.once('close', onclose);\n\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n } // tell the dest that it's being piped to\n\n\n dest.emit('pipe', src); // start the flow if it hasn't been started already.\n\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function pipeOnDrainFunctionResult() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = {\n hasUnpiped: false\n }; // if we're not piping anywhere, then do nothing.\n\n if (state.pipesCount === 0) return this; // just one destination. most common case.\n\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n if (!dest) dest = state.pipes; // got a match.\n\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n } // slow case. multiple pipe destinations.\n\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, {\n hasUnpiped: false\n });\n }\n\n return this;\n } // try to find the right one.\n\n\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n dest.emit('unpipe', this, unpipeInfo);\n return this;\n}; // set up data events if they are asked for\n// Ensure readable listeners eventually get something\n\n\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n var state = this._readableState;\n\n if (ev === 'data') {\n // update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused\n\n if (state.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.flowing = false;\n state.emittedReadable = false;\n debug('on readable', state.length, state.reading);\n\n if (state.length) {\n emitReadable(this);\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this);\n }\n }\n }\n\n return res;\n};\n\nReadable.prototype.addListener = Readable.prototype.on;\n\nReadable.prototype.removeListener = function (ev, fn) {\n var res = Stream.prototype.removeListener.call(this, ev, fn);\n\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nReadable.prototype.removeAllListeners = function (ev) {\n var res = Stream.prototype.removeAllListeners.apply(this, arguments);\n\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nfunction updateReadableListening(self) {\n var state = self._readableState;\n state.readableListening = self.listenerCount('readable') > 0;\n\n if (state.resumeScheduled && !state.paused) {\n // flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true; // crude way to check if we should resume\n } else if (self.listenerCount('data') > 0) {\n self.resume();\n }\n}\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n} // pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\n\n\nReadable.prototype.resume = function () {\n var state = this._readableState;\n\n if (!state.flowing) {\n debug('resume'); // we flow only if there is no one listening\n // for readable, but we still have to call\n // resume()\n\n state.flowing = !state.readableListening;\n resume(this, state);\n }\n\n state.paused = false;\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n debug('resume', state.reading);\n\n if (!state.reading) {\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n\n if (this._readableState.flowing !== false) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n\n this._readableState.paused = true;\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n\n while (state.flowing && stream.read() !== null) {\n ;\n }\n} // wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\n\n\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n stream.on('end', function () {\n debug('wrapped end');\n\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode\n\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n\n if (!ret) {\n paused = true;\n stream.pause();\n }\n }); // proxy all the other methods.\n // important when wrapping filters and duplexes.\n\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function methodWrap(method) {\n return function methodWrapReturnFunction() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n } // proxy certain important events.\n\n\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n } // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n\n\n this._read = function (n) {\n debug('wrapped _read', n);\n\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nif (typeof Symbol === 'function') {\n Readable.prototype[Symbol.asyncIterator] = function () {\n if (createReadableStreamAsyncIterator === undefined) {\n createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');\n }\n\n return createReadableStreamAsyncIterator(this);\n };\n}\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.highWaterMark;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState && this._readableState.buffer;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableFlowing', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.flowing;\n },\n set: function set(state) {\n if (this._readableState) {\n this._readableState.flowing = state;\n }\n }\n}); // exposed for testing purposes only.\n\nReadable._fromList = fromList;\nObject.defineProperty(Readable.prototype, 'readableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.length;\n }\n}); // Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = state.buffer.consume(n, state.decoder);\n }\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n debug('endReadable', state.endEmitted);\n\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.\n\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well\n var wState = stream._writableState;\n\n if (!wState || wState.autoDestroy && wState.finished) {\n stream.destroy();\n }\n }\n }\n}\n\nif (typeof Symbol === 'function') {\n Readable.from = function (iterable, opts) {\n if (from === undefined) {\n from = require('./internal/streams/from');\n }\n\n return from(Readable, iterable, opts);\n };\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n\n return -1;\n}","module.exports = require('stream');\n","'use strict'; // undocumented cb() API, needed for core, not for public API\n\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n process.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n process.nextTick(emitErrorNT, this, err);\n }\n }\n\n return this;\n } // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n } // if this is a duplex stream mark the writable part as destroyed as well\n\n\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n } else if (cb) {\n process.nextTick(emitCloseNT, _this);\n cb(err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n });\n\n return this;\n}\n\nfunction emitErrorAndCloseNT(self, err) {\n emitErrorNT(self, err);\n emitCloseNT(self);\n}\n\nfunction emitCloseNT(self) {\n if (self._writableState && !self._writableState.emitClose) return;\n if (self._readableState && !self._readableState.emitClose) return;\n self.emit('close');\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nfunction errorOrDestroy(stream, err) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n var rState = stream._readableState;\n var wState = stream._writableState;\n if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy,\n errorOrDestroy: errorOrDestroy\n};","'use strict';\n\nvar ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;\n\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;\n}\n\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);\n\n if (hwm != null) {\n if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {\n var name = isDuplex ? duplexKey : 'highWaterMark';\n throw new ERR_INVALID_OPT_VALUE(name, hwm);\n }\n\n return Math.floor(hwm);\n } // Default value\n\n\n return state.objectMode ? 16 : 16 * 1024;\n}\n\nmodule.exports = {\n getHighWaterMark: getHighWaterMark\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n'use strict';\n\nmodule.exports = Writable;\n/* */\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n} // It seems a linked list but it is not\n// there will be only 2 of these for each stream\n\n\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\n\n\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n/**/\n\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,\n ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\n\nrequire('inherits')(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n\n this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called\n\n this.finalCalled = false; // drain event flag.\n\n this.needDrain = false; // at the start of calling end()\n\n this.ending = false; // when end() has been called, and returned\n\n this.ended = false; // when 'finish' is emitted\n\n this.finished = false; // has it been destroyed\n\n this.destroyed = false; // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n\n this.length = 0; // a flag to see when we're in the middle of a write.\n\n this.writing = false; // when true all writes will be buffered until .uncork() call\n\n this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n\n this.sync = true; // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n\n this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)\n\n this.onwrite = function (er) {\n onwrite(stream, er);\n }; // the callback that the user supplies to write(chunk,encoding,cb)\n\n\n this.writecb = null; // the amount that is being written when _write is called.\n\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null; // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n\n this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n\n this.prefinished = false; // True if the error was already emitted and should not be thrown again\n\n this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end')\n\n this.autoDestroy = !!options.autoDestroy; // count buffered requests\n\n this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n\n while (current) {\n out.push(current);\n current = current.next;\n }\n\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function writableStateBufferGetter() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})(); // Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\n\n\nvar realHasInstance;\n\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function value(object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function realHasInstance(object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);\n this._writableState = new WritableState(options, this, isDuplex); // legacy.\n\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n if (typeof options.writev === 'function') this._writev = options.writev;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n} // Otherwise people can pipe Writable streams, which is just wrong.\n\n\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb\n\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n} // Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\n\n\nfunction validChunk(stream, state, chunk, cb) {\n var er;\n\n if (chunk === null) {\n er = new ERR_STREAM_NULL_VALUES();\n } else if (typeof chunk !== 'string' && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);\n }\n\n if (er) {\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n return false;\n }\n\n return true;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n if (typeof cb !== 'function') cb = nop;\n if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n return ret;\n};\n\nWritable.prototype.cork = function () {\n this._writableState.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n}); // if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\n\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.\n\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n process.nextTick(cb, er); // this can emit finish, and it will always happen\n // after error\n\n process.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er); // this can emit finish, but finish must\n // always follow error\n\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();\n onwriteStateUpdate(state);\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state) || stream.destroyed;\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n process.nextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n} // Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\n\n\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n} // if there's something in the buffer waiting, then process it\n\n\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n var allBuffers = true;\n\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n\n buffer.allBuffers = allBuffers;\n doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n\n state.pendingcb++;\n state.lastBufferedRequest = null;\n\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks\n\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n } // ignore unnecessary end() calls.\n\n\n if (!state.ending) endWritable(this, state, cb);\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n});\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\n\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n\n if (err) {\n errorOrDestroy(stream, err);\n }\n\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.pendingcb++;\n state.finalCalled = true;\n process.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n\n if (need) {\n prefinish(stream, state);\n\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well\n var rState = stream._readableState;\n\n if (!rState || rState.autoDestroy && rState.endEmitted) {\n stream.destroy();\n }\n }\n }\n }\n\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n\n if (cb) {\n if (state.finished) process.nextTick(cb);else stream.once('finish', cb);\n }\n\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n } // reuse the free corkReq.\n\n\n state.corkedRequestsFree.next = corkReq;\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._writableState === undefined) {\n return false;\n }\n\n return this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._writableState.destroyed = value;\n }\n});\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\n\nWritable.prototype._destroy = function (err, cb) {\n cb(err);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n'use strict';\n\nmodule.exports = Transform;\n\nvar _require$codes = require('../errors').codes,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,\n ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;\n\nvar Duplex = require('./_stream_duplex');\n\nrequire('inherits')(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n\n if (cb === null) {\n return this.emit('error', new ERR_MULTIPLE_CALLBACK());\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n cb(er);\n var rs = this._readableState;\n rs.reading = false;\n\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n Duplex.call(this, options);\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n }; // start out asking for a readable event once data is transformed.\n\n this._readableState.needReadable = true; // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n if (typeof options.flush === 'function') this._flush = options.flush;\n } // When the writable side finishes, then flush out anything remaining.\n\n\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function' && !this._readableState.destroyed) {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n}; // This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\n\n\nTransform.prototype._transform = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n}; // Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\n\n\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && !ts.transforming) {\n ts.transforming = true;\n\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data); // TODO(BridgeAR): Write a test for these two error cases\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n\n if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();\n if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();\n return stream.push(null);\n}","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","/**\n * create-logger.js: Logger factory for winston logger instances.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst { LEVEL } = require('triple-beam');\nconst config = require('./config');\nconst Logger = require('./logger');\nconst debug = require('@dabh/diagnostics')('winston:create-logger');\n\nfunction isLevelEnabledFunctionName(level) {\n return 'is' + level.charAt(0).toUpperCase() + level.slice(1) + 'Enabled';\n}\n\n/**\n * Create a new instance of a winston Logger. Creates a new\n * prototype for each instance.\n * @param {!Object} opts - Options for the created logger.\n * @returns {Logger} - A newly created logger instance.\n */\nmodule.exports = function (opts = {}) {\n //\n // Default levels: npm\n //\n opts.levels = opts.levels || config.npm.levels;\n\n /**\n * DerivedLogger to attach the logs level methods.\n * @type {DerivedLogger}\n * @extends {Logger}\n */\n class DerivedLogger extends Logger {\n /**\n * Create a new class derived logger for which the levels can be attached to\n * the prototype of. This is a V8 optimization that is well know to increase\n * performance of prototype functions.\n * @param {!Object} options - Options for the created logger.\n */\n constructor(options) {\n super(options);\n }\n }\n\n const logger = new DerivedLogger(opts);\n\n //\n // Create the log level methods for the derived logger.\n //\n Object.keys(opts.levels).forEach(function (level) {\n debug('Define prototype method for \"%s\"', level);\n if (level === 'log') {\n // eslint-disable-next-line no-console\n console.warn('Level \"log\" not defined: conflicts with the method \"log\". Use a different level name.');\n return;\n }\n\n //\n // Define prototype methods for each log level e.g.:\n // logger.log('info', msg) implies these methods are defined:\n // - logger.info(msg)\n // - logger.isInfoEnabled()\n //\n // Remark: to support logger.child this **MUST** be a function\n // so it'll always be called on the instance instead of a fixed\n // place in the prototype chain.\n //\n DerivedLogger.prototype[level] = function (...args) {\n // Prefer any instance scope, but default to \"root\" logger\n const self = this || logger;\n\n // Optimize the hot-path which is the single object.\n if (args.length === 1) {\n const [msg] = args;\n const info = msg && msg.message && msg || { message: msg };\n info.level = info[LEVEL] = level;\n self._addDefaultMeta(info);\n self.write(info);\n return (this || logger);\n }\n\n // When provided nothing assume the empty string\n if (args.length === 0) {\n self.log(level, '');\n return self;\n }\n\n // Otherwise build argument list which could potentially conform to\n // either:\n // . v3 API: log(obj)\n // 2. v1/v2 API: log(level, msg, ... [string interpolate], [{metadata}], [callback])\n return self.log(level, ...args);\n };\n\n DerivedLogger.prototype[isLevelEnabledFunctionName(level)] = function () {\n return (this || logger).isLevelEnabled(level);\n };\n });\n\n return logger;\n};\n","/**\n * exception-handler.js: Object for handling uncaughtException events.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst os = require('os');\nconst asyncForEach = require('async/forEach');\nconst debug = require('@dabh/diagnostics')('winston:exception');\nconst once = require('one-time');\nconst stackTrace = require('stack-trace');\nconst ExceptionStream = require('./exception-stream');\n\n/**\n * Object for handling uncaughtException events.\n * @type {ExceptionHandler}\n */\nmodule.exports = class ExceptionHandler {\n /**\n * TODO: add contructor description\n * @param {!Logger} logger - TODO: add param description\n */\n constructor(logger) {\n if (!logger) {\n throw new Error('Logger is required to handle exceptions');\n }\n\n this.logger = logger;\n this.handlers = new Map();\n }\n\n /**\n * Handles `uncaughtException` events for the current process by adding any\n * handlers passed in.\n * @returns {undefined}\n */\n handle(...args) {\n args.forEach(arg => {\n if (Array.isArray(arg)) {\n return arg.forEach(handler => this._addHandler(handler));\n }\n\n this._addHandler(arg);\n });\n\n if (!this.catcher) {\n this.catcher = this._uncaughtException.bind(this);\n process.on('uncaughtException', this.catcher);\n }\n }\n\n /**\n * Removes any handlers to `uncaughtException` events for the current\n * process. This does not modify the state of the `this.handlers` set.\n * @returns {undefined}\n */\n unhandle() {\n if (this.catcher) {\n process.removeListener('uncaughtException', this.catcher);\n this.catcher = false;\n\n Array.from(this.handlers.values())\n .forEach(wrapper => this.logger.unpipe(wrapper));\n }\n }\n\n /**\n * TODO: add method description\n * @param {Error} err - Error to get information about.\n * @returns {mixed} - TODO: add return description.\n */\n getAllInfo(err) {\n let { message } = err;\n if (!message && typeof err === 'string') {\n message = err;\n }\n\n return {\n error: err,\n // TODO (indexzero): how do we configure this?\n level: 'error',\n message: [\n `uncaughtException: ${(message || '(no error message)')}`,\n err.stack || ' No stack trace'\n ].join('\\n'),\n stack: err.stack,\n exception: true,\n date: new Date().toString(),\n process: this.getProcessInfo(),\n os: this.getOsInfo(),\n trace: this.getTrace(err)\n };\n }\n\n /**\n * Gets all relevant process information for the currently running process.\n * @returns {mixed} - TODO: add return description.\n */\n getProcessInfo() {\n return {\n pid: process.pid,\n uid: process.getuid ? process.getuid() : null,\n gid: process.getgid ? process.getgid() : null,\n cwd: process.cwd(),\n execPath: process.execPath,\n version: process.version,\n argv: process.argv,\n memoryUsage: process.memoryUsage()\n };\n }\n\n /**\n * Gets all relevant OS information for the currently running process.\n * @returns {mixed} - TODO: add return description.\n */\n getOsInfo() {\n return {\n loadavg: os.loadavg(),\n uptime: os.uptime()\n };\n }\n\n /**\n * Gets a stack trace for the specified error.\n * @param {mixed} err - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n */\n getTrace(err) {\n const trace = err ? stackTrace.parse(err) : stackTrace.get();\n return trace.map(site => {\n return {\n column: site.getColumnNumber(),\n file: site.getFileName(),\n function: site.getFunctionName(),\n line: site.getLineNumber(),\n method: site.getMethodName(),\n native: site.isNative()\n };\n });\n }\n\n /**\n * Helper method to add a transport as an exception handler.\n * @param {Transport} handler - The transport to add as an exception handler.\n * @returns {void}\n */\n _addHandler(handler) {\n if (!this.handlers.has(handler)) {\n handler.handleExceptions = true;\n const wrapper = new ExceptionStream(handler);\n this.handlers.set(handler, wrapper);\n this.logger.pipe(wrapper);\n }\n }\n\n /**\n * Logs all relevant information around the `err` and exits the current\n * process.\n * @param {Error} err - Error to handle\n * @returns {mixed} - TODO: add return description.\n * @private\n */\n _uncaughtException(err) {\n const info = this.getAllInfo(err);\n const handlers = this._getExceptionHandlers();\n // Calculate if we should exit on this error\n let doExit = typeof this.logger.exitOnError === 'function'\n ? this.logger.exitOnError(err)\n : this.logger.exitOnError;\n let timeout;\n\n if (!handlers.length && doExit) {\n // eslint-disable-next-line no-console\n console.warn('winston: exitOnError cannot be true with no exception handlers.');\n // eslint-disable-next-line no-console\n console.warn('winston: not exiting process.');\n doExit = false;\n }\n\n function gracefulExit() {\n debug('doExit', doExit);\n debug('process._exiting', process._exiting);\n\n if (doExit && !process._exiting) {\n // Remark: Currently ignoring any exceptions from transports when\n // catching uncaught exceptions.\n if (timeout) {\n clearTimeout(timeout);\n }\n // eslint-disable-next-line no-process-exit\n process.exit(1);\n }\n }\n\n if (!handlers || handlers.length === 0) {\n return process.nextTick(gracefulExit);\n }\n\n // Log to all transports attempting to listen for when they are completed.\n asyncForEach(handlers, (handler, next) => {\n const done = once(next);\n const transport = handler.transport || handler;\n\n // Debug wrapping so that we can inspect what's going on under the covers.\n function onDone(event) {\n return () => {\n debug(event);\n done();\n };\n }\n\n transport._ending = true;\n transport.once('finish', onDone('finished'));\n transport.once('error', onDone('error'));\n }, () => doExit && gracefulExit());\n\n this.logger.log(info);\n\n // If exitOnError is true, then only allow the logging of exceptions to\n // take up to `3000ms`.\n if (doExit) {\n timeout = setTimeout(gracefulExit, 3000);\n }\n }\n\n /**\n * Returns the list of transports and exceptionHandlers for this instance.\n * @returns {Array} - List of transports and exceptionHandlers for this\n * instance.\n * @private\n */\n _getExceptionHandlers() {\n // Remark (indexzero): since `logger.transports` returns all of the pipes\n // from the _readableState of the stream we actually get the join of the\n // explicit handlers and the implicit transports with\n // `handleExceptions: true`\n return this.logger.transports.filter(wrap => {\n const transport = wrap.transport || wrap;\n return transport.handleExceptions;\n });\n }\n};\n","'use strict';\n\nvar name = require('fn.name');\n\n/**\n * Wrap callbacks to prevent double execution.\n *\n * @param {Function} fn Function that should only be called once.\n * @returns {Function} A wrapped callback which prevents multiple executions.\n * @public\n */\nmodule.exports = function one(fn) {\n var called = 0\n , value;\n\n /**\n * The function that prevents double execution.\n *\n * @private\n */\n function onetime() {\n if (called) return value;\n\n called = 1;\n value = fn.apply(this, arguments);\n fn = null;\n\n return value;\n }\n\n //\n // To make debugging more easy we want to use the name of the supplied\n // function. So when you look at the functions that are assigned to event\n // listeners you don't see a load of `onetime` functions but actually the\n // names of the functions that this module will call.\n //\n // NOTE: We cannot override the `name` property, as that is `readOnly`\n // property, so displayName will have to do.\n //\n onetime.displayName = name(fn);\n return onetime;\n};\n","exports.get = function(belowFn) {\n var oldLimit = Error.stackTraceLimit;\n Error.stackTraceLimit = Infinity;\n\n var dummyObject = {};\n\n var v8Handler = Error.prepareStackTrace;\n Error.prepareStackTrace = function(dummyObject, v8StackTrace) {\n return v8StackTrace;\n };\n Error.captureStackTrace(dummyObject, belowFn || exports.get);\n\n var v8StackTrace = dummyObject.stack;\n Error.prepareStackTrace = v8Handler;\n Error.stackTraceLimit = oldLimit;\n\n return v8StackTrace;\n};\n\nexports.parse = function(err) {\n if (!err.stack) {\n return [];\n }\n\n var self = this;\n var lines = err.stack.split('\\n').slice(1);\n\n return lines\n .map(function(line) {\n if (line.match(/^\\s*[-]{4,}$/)) {\n return self._createParsedCallSite({\n fileName: line,\n lineNumber: null,\n functionName: null,\n typeName: null,\n methodName: null,\n columnNumber: null,\n 'native': null,\n });\n }\n\n var lineMatch = line.match(/at (?:(.+)\\s+\\()?(?:(.+?):(\\d+)(?::(\\d+))?|([^)]+))\\)?/);\n if (!lineMatch) {\n return;\n }\n\n var object = null;\n var method = null;\n var functionName = null;\n var typeName = null;\n var methodName = null;\n var isNative = (lineMatch[5] === 'native');\n\n if (lineMatch[1]) {\n functionName = lineMatch[1];\n var methodStart = functionName.lastIndexOf('.');\n if (functionName[methodStart-1] == '.')\n methodStart--;\n if (methodStart > 0) {\n object = functionName.substr(0, methodStart);\n method = functionName.substr(methodStart + 1);\n var objectEnd = object.indexOf('.Module');\n if (objectEnd > 0) {\n functionName = functionName.substr(objectEnd + 1);\n object = object.substr(0, objectEnd);\n }\n }\n typeName = null;\n }\n\n if (method) {\n typeName = object;\n methodName = method;\n }\n\n if (method === '') {\n methodName = null;\n functionName = null;\n }\n\n var properties = {\n fileName: lineMatch[2] || null,\n lineNumber: parseInt(lineMatch[3], 10) || null,\n functionName: functionName,\n typeName: typeName,\n methodName: methodName,\n columnNumber: parseInt(lineMatch[4], 10) || null,\n 'native': isNative,\n };\n\n return self._createParsedCallSite(properties);\n })\n .filter(function(callSite) {\n return !!callSite;\n });\n};\n\nfunction CallSite(properties) {\n for (var property in properties) {\n this[property] = properties[property];\n }\n}\n\nvar strProperties = [\n 'this',\n 'typeName',\n 'functionName',\n 'methodName',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'function',\n 'evalOrigin'\n];\nvar boolProperties = [\n 'topLevel',\n 'eval',\n 'native',\n 'constructor'\n];\nstrProperties.forEach(function (property) {\n CallSite.prototype[property] = null;\n CallSite.prototype['get' + property[0].toUpperCase() + property.substr(1)] = function () {\n return this[property];\n }\n});\nboolProperties.forEach(function (property) {\n CallSite.prototype[property] = false;\n CallSite.prototype['is' + property[0].toUpperCase() + property.substr(1)] = function () {\n return this[property];\n }\n});\n\nexports._createParsedCallSite = function(properties) {\n return new CallSite(properties);\n};\n","/**\n * exception-stream.js: TODO: add file header handler.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst { Writable } = require('readable-stream');\n\n/**\n * TODO: add class description.\n * @type {ExceptionStream}\n * @extends {Writable}\n */\nmodule.exports = class ExceptionStream extends Writable {\n /**\n * Constructor function for the ExceptionStream responsible for wrapping a\n * TransportStream; only allowing writes of `info` objects with\n * `info.exception` set to true.\n * @param {!TransportStream} transport - Stream to filter to exceptions\n */\n constructor(transport) {\n super({ objectMode: true });\n\n if (!transport) {\n throw new Error('ExceptionStream requires a TransportStream instance.');\n }\n\n // Remark (indexzero): we set `handleExceptions` here because it's the\n // predicate checked in ExceptionHandler.prototype.__getExceptionHandlers\n this.handleExceptions = true;\n this.transport = transport;\n }\n\n /**\n * Writes the info object to our transport instance if (and only if) the\n * `exception` property is set on the info.\n * @param {mixed} info - TODO: add param description.\n * @param {mixed} enc - TODO: add param description.\n * @param {mixed} callback - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n * @private\n */\n _write(info, enc, callback) {\n if (info.exception) {\n return this.transport.log(info, callback);\n }\n\n callback();\n return true;\n }\n};\n","/**\n * exception-handler.js: Object for handling uncaughtException events.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst os = require('os');\nconst asyncForEach = require('async/forEach');\nconst debug = require('@dabh/diagnostics')('winston:rejection');\nconst once = require('one-time');\nconst stackTrace = require('stack-trace');\nconst ExceptionStream = require('./exception-stream');\n\n/**\n * Object for handling unhandledRejection events.\n * @type {RejectionHandler}\n */\nmodule.exports = class RejectionHandler {\n /**\n * TODO: add contructor description\n * @param {!Logger} logger - TODO: add param description\n */\n constructor(logger) {\n if (!logger) {\n throw new Error('Logger is required to handle rejections');\n }\n\n this.logger = logger;\n this.handlers = new Map();\n }\n\n /**\n * Handles `unhandledRejection` events for the current process by adding any\n * handlers passed in.\n * @returns {undefined}\n */\n handle(...args) {\n args.forEach(arg => {\n if (Array.isArray(arg)) {\n return arg.forEach(handler => this._addHandler(handler));\n }\n\n this._addHandler(arg);\n });\n\n if (!this.catcher) {\n this.catcher = this._unhandledRejection.bind(this);\n process.on('unhandledRejection', this.catcher);\n }\n }\n\n /**\n * Removes any handlers to `unhandledRejection` events for the current\n * process. This does not modify the state of the `this.handlers` set.\n * @returns {undefined}\n */\n unhandle() {\n if (this.catcher) {\n process.removeListener('unhandledRejection', this.catcher);\n this.catcher = false;\n\n Array.from(this.handlers.values()).forEach(wrapper =>\n this.logger.unpipe(wrapper)\n );\n }\n }\n\n /**\n * TODO: add method description\n * @param {Error} err - Error to get information about.\n * @returns {mixed} - TODO: add return description.\n */\n getAllInfo(err) {\n let { message } = err;\n if (!message && typeof err === 'string') {\n message = err;\n }\n\n return {\n error: err,\n // TODO (indexzero): how do we configure this?\n level: 'error',\n message: [\n `unhandledRejection: ${message || '(no error message)'}`,\n err.stack || ' No stack trace'\n ].join('\\n'),\n stack: err.stack,\n exception: true,\n date: new Date().toString(),\n process: this.getProcessInfo(),\n os: this.getOsInfo(),\n trace: this.getTrace(err)\n };\n }\n\n /**\n * Gets all relevant process information for the currently running process.\n * @returns {mixed} - TODO: add return description.\n */\n getProcessInfo() {\n return {\n pid: process.pid,\n uid: process.getuid ? process.getuid() : null,\n gid: process.getgid ? process.getgid() : null,\n cwd: process.cwd(),\n execPath: process.execPath,\n version: process.version,\n argv: process.argv,\n memoryUsage: process.memoryUsage()\n };\n }\n\n /**\n * Gets all relevant OS information for the currently running process.\n * @returns {mixed} - TODO: add return description.\n */\n getOsInfo() {\n return {\n loadavg: os.loadavg(),\n uptime: os.uptime()\n };\n }\n\n /**\n * Gets a stack trace for the specified error.\n * @param {mixed} err - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n */\n getTrace(err) {\n const trace = err ? stackTrace.parse(err) : stackTrace.get();\n return trace.map(site => {\n return {\n column: site.getColumnNumber(),\n file: site.getFileName(),\n function: site.getFunctionName(),\n line: site.getLineNumber(),\n method: site.getMethodName(),\n native: site.isNative()\n };\n });\n }\n\n /**\n * Helper method to add a transport as an exception handler.\n * @param {Transport} handler - The transport to add as an exception handler.\n * @returns {void}\n */\n _addHandler(handler) {\n if (!this.handlers.has(handler)) {\n handler.handleRejections = true;\n const wrapper = new ExceptionStream(handler);\n this.handlers.set(handler, wrapper);\n this.logger.pipe(wrapper);\n }\n }\n\n /**\n * Logs all relevant information around the `err` and exits the current\n * process.\n * @param {Error} err - Error to handle\n * @returns {mixed} - TODO: add return description.\n * @private\n */\n _unhandledRejection(err) {\n const info = this.getAllInfo(err);\n const handlers = this._getRejectionHandlers();\n // Calculate if we should exit on this error\n let doExit =\n typeof this.logger.exitOnError === 'function'\n ? this.logger.exitOnError(err)\n : this.logger.exitOnError;\n let timeout;\n\n if (!handlers.length && doExit) {\n // eslint-disable-next-line no-console\n console.warn('winston: exitOnError cannot be true with no rejection handlers.');\n // eslint-disable-next-line no-console\n console.warn('winston: not exiting process.');\n doExit = false;\n }\n\n function gracefulExit() {\n debug('doExit', doExit);\n debug('process._exiting', process._exiting);\n\n if (doExit && !process._exiting) {\n // Remark: Currently ignoring any rejections from transports when\n // catching unhandled rejections.\n if (timeout) {\n clearTimeout(timeout);\n }\n // eslint-disable-next-line no-process-exit\n process.exit(1);\n }\n }\n\n if (!handlers || handlers.length === 0) {\n return process.nextTick(gracefulExit);\n }\n\n // Log to all transports attempting to listen for when they are completed.\n asyncForEach(\n handlers,\n (handler, next) => {\n const done = once(next);\n const transport = handler.transport || handler;\n\n // Debug wrapping so that we can inspect what's going on under the covers.\n function onDone(event) {\n return () => {\n debug(event);\n done();\n };\n }\n\n transport._ending = true;\n transport.once('finish', onDone('finished'));\n transport.once('error', onDone('error'));\n },\n () => doExit && gracefulExit()\n );\n\n this.logger.log(info);\n\n // If exitOnError is true, then only allow the logging of exceptions to\n // take up to `3000ms`.\n if (doExit) {\n timeout = setTimeout(gracefulExit, 3000);\n }\n }\n\n /**\n * Returns the list of transports and exceptionHandlers for this instance.\n * @returns {Array} - List of transports and exceptionHandlers for this\n * instance.\n * @private\n */\n _getRejectionHandlers() {\n // Remark (indexzero): since `logger.transports` returns all of the pipes\n // from the _readableState of the stream we actually get the join of the\n // explicit handlers and the implicit transports with\n // `handleRejections: true`\n return this.logger.transports.filter(wrap => {\n const transport = wrap.transport || wrap;\n return transport.handleRejections;\n });\n }\n};\n","import { config } from '../server';\nimport DbInterface from '../db/db_wrapper';\n\nconst genNumber = (length: number): string => {\n const addAmount = 1;\n let localMax = 11;\n\n if (length > localMax) {\n return genNumber(localMax) + genNumber(length - localMax);\n }\n\n localMax = Math.pow(10, length + addAmount);\n const min = localMax / 10;\n const number = Math.floor(Math.random() * (localMax - min + 1)) + min;\n\n const strNumber = '' + number;\n\n return strNumber.substr(addAmount);\n};\n\nconst generateUsNumber = (): string => {\n const rawNumber = genNumber(10);\n return rawNumber.replace(/(\\d{3})(\\d{3})(\\d{4})/, '$1-$2-$3');\n};\n\n/**/\nexport async function generateUniquePhoneNumber(): Promise {\n const query = `SELECT EXISTS(SELECT * FROM ${config.database.playerTable} WHERE ${config.database.phoneNumberColumn} = ?)`;\n const dashNumber = generateUsNumber();\n\n const [results] = await DbInterface._rawExec(query, dashNumber);\n\n if (!results) return generateUniquePhoneNumber();\n\n return dashNumber;\n}\n","var h=Object.defineProperty;var r=(u,e)=>h(u,\"name\",{value:e,configurable:!0});var o=class extends Map{get(e){return super.get(e)}set(e,i){return super.set(e,i)}has(e){return super.has(e)}delete(e){return super.delete(e)}clear(){return super.clear()}hasAll(...e){return e.every(i=>super.has(i))}hasAny(...e){return e.some(i=>super.has(i))}first(e){if(typeof e==\"undefined\")return this.values().next().value;if(e<0)return this.last(e*-1);e=Math.min(this.size,e);let i=this.values();return Array.from({length:e},()=>i.next().value)}firstKey(e){if(typeof e==\"undefined\")return this.keys().next().value;if(e<0)return this.lastKey(e*-1);e=Math.min(this.size,e);let i=this.keys();return Array.from({length:e},()=>i.next().value)}last(e){let i=[...this.values()];return typeof e==\"undefined\"?i[i.length-1]:e<0?this.first(e*-1):e?i.slice(-e):[]}lastKey(e){let i=[...this.keys()];return typeof e==\"undefined\"?i[i.length-1]:e<0?this.firstKey(e*-1):e?i.slice(-e):[]}random(e){let i=[...this.values()];return typeof e==\"undefined\"?i[Math.floor(Math.random()*i.length)]:!i.length||!e?[]:Array.from({length:Math.min(e,i.length)},()=>i.splice(Math.floor(Math.random()*i.length),1)[0])}randomKey(e){let i=[...this.keys()];return typeof e==\"undefined\"?i[Math.floor(Math.random()*i.length)]:!i.length||!e?[]:Array.from({length:Math.min(e,i.length)},()=>i.splice(Math.floor(Math.random()*i.length),1)[0])}find(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));for(let[t,l]of this)if(e(l,t,this))return l}findKey(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));for(let[t,l]of this)if(e(l,t,this))return t}sweep(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=this.size;for(let[l,n]of this)e(n,l,this)&&this.delete(l);return t-this.size}filter(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=new this.constructor[Symbol.species];for(let[l,n]of this)e(n,l,this)&&t.set(l,n);return t}partition(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=[new this.constructor[Symbol.species],new this.constructor[Symbol.species]];for(let[l,n]of this)e(n,l,this)?t[0].set(l,n):t[1].set(l,n);return t}flatMap(e,i){let t=this.map(e,i);return new this.constructor[Symbol.species]().concat(...t)}map(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=this.entries();return Array.from({length:this.size},()=>{let[l,n]=t.next().value;return e(n,l,this)})}mapValues(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));let t=new this.constructor[Symbol.species];for(let[l,n]of this)t.set(l,e(n,l,this));return t}some(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));for(let[t,l]of this)if(e(l,t,this))return!0;return!1}every(e,i){typeof i!=\"undefined\"&&(e=e.bind(i));for(let[t,l]of this)if(!e(l,t,this))return!1;return!0}reduce(e,i){let t;if(typeof i!=\"undefined\"){t=i;for(let[n,s]of this)t=e(t,s,n,this);return t}let l=!0;for(let[n,s]of this){if(l){t=s,l=!1;continue}t=e(t,s,n,this)}if(l)throw new TypeError(\"Reduce of empty collection with no initial value\");return t}each(e,i){return this.forEach(e,i),this}tap(e,i){return typeof i!=\"undefined\"&&(e=e.bind(i)),e(this),this}clone(){return new this.constructor[Symbol.species](this)}concat(...e){let i=this.clone();for(let t of e)for(let[l,n]of t)i.set(l,n);return i}equals(e){if(!e)return!1;if(this===e)return!0;if(this.size!==e.size)return!1;for(let[i,t]of this)if(!e.has(i)||t!==e.get(i))return!1;return!0}sort(e=o.defaultSort){let i=[...this.entries()];i.sort((t,l)=>e(t[1],l[1],t[0],l[0])),super.clear();for(let[t,l]of i)super.set(t,l);return this}intersect(e){let i=new this.constructor[Symbol.species];for(let[t,l]of e)this.has(t)&&i.set(t,l);return i}difference(e){let i=new this.constructor[Symbol.species];for(let[t,l]of e)this.has(t)||i.set(t,l);for(let[t,l]of this)e.has(t)||i.set(t,l);return i}sorted(e=o.defaultSort){return new this.constructor[Symbol.species](this).sort((i,t,l,n)=>e(i,t,l,n))}toJSON(){return[...this.values()]}static defaultSort(e,i){return Number(e>i)||Number(e===i)-1}},c=o;r(c,\"Collection\"),\"constructor\",c.default=o;var f=c;export{c as Collection,f as default};\n//# sourceMappingURL=index.mjs.map\n","import PlayerService from '../players/player.service';\nimport { marketplaceLogger } from './marketplace.utils';\nimport MarketplaceDB, { _MarketplaceDB } from './marketplace.db';\nimport {\n ListingTypeResp,\n MarketplaceDeleteDTO,\n MarketplaceEvents,\n MarketplaceListing,\n MarketplaceListingBase,\n MarketplaceReportDTO,\n} from '../../../typings/marketplace';\nimport { reportListingToDiscord } from '../misc/discord';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\n\nclass _MarketplaceService {\n private readonly marketplaceDB: _MarketplaceDB;\n\n constructor() {\n this.marketplaceDB = MarketplaceDB;\n marketplaceLogger.debug('Marketplace service started');\n }\n\n async handleAddListing(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n marketplaceLogger.debug('Handling add listing, listing:');\n marketplaceLogger.debug(reqObj.data);\n\n const player = PlayerService.getPlayer(reqObj.source);\n const identifier = player.getIdentifier();\n\n try {\n const doesListingExist = await this.marketplaceDB.doesListingExist(reqObj.data, identifier);\n if (doesListingExist) return resp({ status: 'error', data: ListingTypeResp.DUPLICATE });\n\n const listingId = await this.marketplaceDB.addListing(\n player.getIdentifier(),\n player.username,\n player.getName(),\n player.getPhoneNumber(),\n reqObj.data,\n );\n // Respond with success to original source\n resp({ status: 'ok' });\n\n const returnObj: MarketplaceListing = {\n id: listingId,\n identifier: player.getIdentifier(),\n name: player.getName(),\n number: player.getPhoneNumber(),\n url: reqObj.data.url,\n username: player.username,\n description: reqObj.data.description,\n title: reqObj.data.title,\n };\n // Broadcast to everyone we are adding a listing\n emitNet(MarketplaceEvents.BROADCAST_ADD, -1, { type: 'ADD', listing: returnObj });\n } catch (e) {\n marketplaceLogger.error(`Failed to add listing ${e.message}`, {\n source: reqObj.source,\n });\n\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleFetchListings(\n req: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n try {\n const listings = await this.marketplaceDB.fetchListings();\n\n resp({ data: listings, status: 'ok' });\n } catch (e) {\n marketplaceLogger.error(`Failed to fetch listings, ${e.message}`, {\n source: req.source,\n });\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleDeleteListing(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.marketplaceDB.deleteListing(reqObj.data.id, identifier);\n\n resp({ status: 'ok' });\n\n const returnObj = reqObj.data.id;\n\n emitNet(MarketplaceEvents.BROADCAST_DELETE, -1, [returnObj]);\n } catch (e) {\n marketplaceLogger.error(`Error in handleDeleteListing, ${e.message}`);\n\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleDeleteListingsOnDrop(identifier: string) {\n try {\n const listingIds = await this.marketplaceDB.getListingIdsByIdentifier(identifier);\n\n emitNet(MarketplaceEvents.BROADCAST_DELETE, -1, listingIds);\n\n await this.marketplaceDB.deleteListingsOnDrop(identifier);\n } catch (e) {\n marketplaceLogger.error(`Error when deleting listings on player drop, ${e.message}`);\n }\n }\n\n async handleReportListing(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n const rListing = await this.marketplaceDB.getListing(reqObj.data.id);\n const reportExists = await this.marketplaceDB.doesReportExist(\n reqObj.data.id,\n rListing.username,\n );\n\n const reportingPlayer = GetPlayerName(reqObj.source.toString());\n\n if (reportExists) {\n marketplaceLogger.error(`This listing has already been reported`);\n resp({ status: 'error', errorMsg: 'REPORT_EXISTS' });\n return;\n }\n\n await this.marketplaceDB.reportListing(rListing);\n await reportListingToDiscord(rListing, reportingPlayer);\n } catch (e) {\n marketplaceLogger.error(`Failed to report listing ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n}\n\nconst MarketplaceService = new _MarketplaceService();\nexport default MarketplaceService;\n","import { mainLogger } from '../sv_logger';\n\nexport const marketplaceLogger = mainLogger.child({ module: 'marketplace' });\n","export interface MarketplaceListing extends MarketplaceListingBase {\n id: number;\n identifier?: string;\n username: string;\n name: string;\n number: string;\n}\n\nexport interface MarketplaceListingBase {\n title: string;\n url: string;\n description: string;\n}\n\nexport enum MarketplaceDatabaseLimits {\n title = 255,\n description = 255,\n url = 255,\n}\n\nexport enum ListingTypeResp {\n DUPLICATE = 'duplicate',\n}\n\nexport enum MarketplaceEvents {\n ADD_LISTING = 'npwd:addListing',\n FETCH_LISTING = 'npwd:fetchAllListings',\n DELETE_LISTING = 'npwd:marketplaceDeleteListing',\n DELETE_LISTINGS_ON_DROP = 'npwd:marketplaceDeleteListingsOnDrop',\n REPORT_LISTING = 'npwd:reportListing',\n BROADCAST_ADD = 'npwd:sendMarketplaceBroadcastAdd',\n BROADCAST_DELETE = 'npwd:sendMarketplaceBroadcastDelete',\n}\n\nexport interface MarketplaceBroadcastAddDTO {\n listing: MarketplaceListing;\n}\n\nexport interface MarketplaceDeleteDTO {\n id: number;\n}\n\nexport interface MarketplaceReportDTO {\n id: number;\n}\n\nexport type ReportListingDTO = {\n id: number;\n title: string;\n description: string;\n url: string;\n};\n","import axios, { AxiosResponse } from 'axios';\n\nimport { Tweet, Profile } from '../../../typings/twitter';\n\nimport { mainLogger } from '../sv_logger';\nimport { MarketplaceListing } from '../../../typings/marketplace';\n\nconst IMAGE_DELIMITER = '||!||';\nconst discordLogger = mainLogger.child({ module: 'discord' });\n\nconst DISCORD_WEBHOOK = GetConvar('NPWD_DISCORD_TOKEN', '');\n/**\n * https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure\n */\ninterface DiscordEmbedField {\n name: string;\n value: string;\n inline?: boolean;\n}\n\ninterface DiscordEmbed {\n title: string;\n color: number;\n description: string;\n timestamp: string;\n fields: DiscordEmbedField[];\n}\n\ninterface DiscordMessage {\n username: string;\n embeds: DiscordEmbed[];\n}\n\nconst postToWebhook = async (content: DiscordMessage): Promise => {\n // If convar isnt set\n if (!DISCORD_WEBHOOK) {\n discordLogger.warn(\n 'Got a request to report a listing but discord is not configures. See README on how to configure discord endpoints.',\n );\n return;\n }\n const resp = await axios.post(DISCORD_WEBHOOK, { ...content });\n // If we get a bad request throw error\n if (resp.status < 200 && resp.status >= 300)\n throw new Error(`Discord Error: ${resp.status} Error - ${resp.statusText}`);\n};\n\nconst createDiscordMsgObj = (type: string, message: string, fields: DiscordEmbedField[]) => {\n // Get ISO 8601 as its required by Discord API\n const curTime = new Date().toISOString();\n\n return {\n username: 'NPWD Report',\n embeds: [\n {\n title: `${type} REPORT`,\n color: 0xe74c3c,\n description: message,\n timestamp: curTime,\n fields,\n },\n ],\n };\n};\n\nexport async function reportTweetToDiscord(tweet: Tweet, reportingProfile: Profile): Promise {\n const guaranteedFields = [\n {\n name: 'Reported By:',\n value: `\\`\\`\\`Profile Name: ${reportingProfile.profile_name}\\nProfile ID: ${reportingProfile.id}\\nUser Identifier: ${reportingProfile.identifier}\\`\\`\\``,\n },\n {\n name: 'Reported User Data:',\n value: `\\`\\`\\`Profile Name: ${tweet.profile_name}\\nProfile ID: ${tweet.profile_id}\\nUser Identifier: ${tweet.identifier}\\`\\`\\``,\n },\n {\n name: 'Tweet Message:',\n value: `\\`\\`\\`Message: ${tweet.message}\\`\\`\\``,\n },\n ];\n\n const finalFields = tweet.images\n ? guaranteedFields.concat({\n name: 'Reported Image:',\n value: tweet.images.split(IMAGE_DELIMITER).join('\\n'),\n })\n : guaranteedFields;\n\n const msgObj = createDiscordMsgObj('TWITTER', `Received a report for a tweet`, finalFields);\n try {\n await postToWebhook(msgObj);\n } catch (e) {\n discordLogger.error(e.message);\n }\n}\n\nexport async function reportListingToDiscord(\n listing: MarketplaceListing,\n reportingProfile: string,\n): Promise {\n const guaranteedFields = [\n {\n name: 'Reported By',\n value: `\\`\\`\\`Profile Name: ${reportingProfile}\\`\\`\\``,\n },\n {\n name: 'Reported User Data',\n value: `\\`\\`\\`Profile Name: ${listing.username}\\nProfile ID: ${listing.id}\\nUser Identifier: ${listing.identifier}\\`\\`\\``,\n },\n {\n name: 'Reported Listing Title',\n value: `\\`\\`\\`Title: ${listing.name}\\`\\`\\``,\n },\n {\n name: 'Reported Listing Desc.',\n value: `\\`\\`\\`Description: ${listing.description}\\`\\`\\``,\n },\n ];\n\n const finalFields = listing.url\n ? guaranteedFields.concat({\n name: 'Reported Image:',\n value: listing.url.split(IMAGE_DELIMITER).join('\\n'),\n })\n : guaranteedFields;\n\n const msgObj = createDiscordMsgObj('MARKETPLACE', `Received a report for a listing`, finalFields);\n try {\n await postToWebhook(msgObj);\n } catch (e) {\n discordLogger.error(e.message);\n }\n}\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","var url = require(\"url\");\nvar URL = url.URL;\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar Writable = require(\"stream\").Writable;\nvar assert = require(\"assert\");\nvar debug = require(\"./debug\");\n\n// Create handlers that pass events from native requests\nvar events = [\"abort\", \"aborted\", \"connect\", \"error\", \"socket\", \"timeout\"];\nvar eventHandlers = Object.create(null);\nevents.forEach(function (event) {\n eventHandlers[event] = function (arg1, arg2, arg3) {\n this._redirectable.emit(event, arg1, arg2, arg3);\n };\n});\n\n// Error types with codes\nvar RedirectionError = createErrorType(\n \"ERR_FR_REDIRECTION_FAILURE\",\n \"Redirected request failed\"\n);\nvar TooManyRedirectsError = createErrorType(\n \"ERR_FR_TOO_MANY_REDIRECTS\",\n \"Maximum number of redirects exceeded\"\n);\nvar MaxBodyLengthExceededError = createErrorType(\n \"ERR_FR_MAX_BODY_LENGTH_EXCEEDED\",\n \"Request body larger than maxBodyLength limit\"\n);\nvar WriteAfterEndError = createErrorType(\n \"ERR_STREAM_WRITE_AFTER_END\",\n \"write after end\"\n);\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n this._sanitizeOptions(options);\n this._options = options;\n this._ended = false;\n this._ending = false;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n self._processResponse(response);\n };\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\nRedirectableRequest.prototype.abort = function () {\n abortRequest(this._currentRequest);\n this.emit(\"abort\");\n};\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Writing is not allowed if end has been called\n if (this._ending) {\n throw new WriteAfterEndError();\n }\n\n // Validate input and shift parameters if necessary\n if (!(typeof data === \"string\" || typeof data === \"object\" && (\"length\" in data))) {\n throw new TypeError(\"data should be a string, Buffer or Uint8Array\");\n }\n if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new MaxBodyLengthExceededError());\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (typeof data === \"function\") {\n callback = data;\n data = encoding = null;\n }\n else if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Write data if needed and end\n if (!data) {\n this._ended = this._ending = true;\n this._currentRequest.end(null, null, callback);\n }\n else {\n var self = this;\n var currentRequest = this._currentRequest;\n this.write(data, encoding, function () {\n self._ended = true;\n currentRequest.end(null, null, callback);\n });\n this._ending = true;\n }\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Global timeout for all underlying requests\nRedirectableRequest.prototype.setTimeout = function (msecs, callback) {\n var self = this;\n\n // Destroys the socket on timeout\n function destroyOnTimeout(socket) {\n socket.setTimeout(msecs);\n socket.removeListener(\"timeout\", socket.destroy);\n socket.addListener(\"timeout\", socket.destroy);\n }\n\n // Sets up a timer to trigger a timeout event\n function startTimer(socket) {\n if (self._timeout) {\n clearTimeout(self._timeout);\n }\n self._timeout = setTimeout(function () {\n self.emit(\"timeout\");\n clearTimer();\n }, msecs);\n destroyOnTimeout(socket);\n }\n\n // Stops a timeout from triggering\n function clearTimer() {\n // Clear the timeout\n if (self._timeout) {\n clearTimeout(self._timeout);\n self._timeout = null;\n }\n\n // Clean up all attached listeners\n self.removeListener(\"abort\", clearTimer);\n self.removeListener(\"error\", clearTimer);\n self.removeListener(\"response\", clearTimer);\n if (callback) {\n self.removeListener(\"timeout\", callback);\n }\n if (!self.socket) {\n self._currentRequest.removeListener(\"socket\", startTimer);\n }\n }\n\n // Attach callback if passed\n if (callback) {\n this.on(\"timeout\", callback);\n }\n\n // Start the timer if or when the socket is opened\n if (this.socket) {\n startTimer(this.socket);\n }\n else {\n this._currentRequest.once(\"socket\", startTimer);\n }\n\n // Clean up on events\n this.on(\"socket\", destroyOnTimeout);\n this.on(\"abort\", clearTimer);\n this.on(\"error\", clearTimer);\n this.on(\"response\", clearTimer);\n\n return this;\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\nRedirectableRequest.prototype._sanitizeOptions = function (options) {\n // Ensure headers are always present\n if (!options.headers) {\n options.headers = {};\n }\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n};\n\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n this.emit(\"error\", new TypeError(\"Unsupported protocol \" + protocol));\n return;\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.substr(0, protocol.length - 1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n this._currentUrl = url.format(this._options);\n\n // Set up event handlers\n request._redirectable = this;\n for (var e = 0; e < events.length; e++) {\n request.on(events[e], eventHandlers[events[e]]);\n }\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end.\n var i = 0;\n var self = this;\n var buffers = this._requestBodyBuffers;\n (function writeNext(error) {\n // Only write if this request has not been redirected yet\n /* istanbul ignore else */\n if (request === self._currentRequest) {\n // Report any write errors\n /* istanbul ignore if */\n if (error) {\n self.emit(\"error\", error);\n }\n // Write the next buffer if there are still left\n else if (i < buffers.length) {\n var buffer = buffers[i++];\n /* istanbul ignore else */\n if (!request.finished) {\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n }\n // End the request if `end` has been called on us\n else if (self._ended) {\n request.end();\n }\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n var statusCode = response.statusCode;\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: statusCode,\n });\n }\n\n // RFC7231§6.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n var location = response.headers.location;\n if (location && this._options.followRedirects !== false &&\n statusCode >= 300 && statusCode < 400) {\n // Abort the current request\n abortRequest(this._currentRequest);\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n\n // RFC7231§6.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n this.emit(\"error\", new TooManyRedirectsError());\n return;\n }\n\n // RFC7231§6.4: Automatic redirection needs to done with\n // care for methods not known to be safe, […]\n // RFC7231§6.4.2–3: For historical reasons, a user agent MAY change\n // the request method from POST to GET for the subsequent request.\n if ((statusCode === 301 || statusCode === 302) && this._options.method === \"POST\" ||\n // RFC7231§6.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource […]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) […]\n (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n removeMatchingHeaders(/^content-/i, this._options.headers);\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);\n\n // If the redirect is relative, carry over the host of the last request\n var currentUrlParts = url.parse(this._currentUrl);\n var currentHost = currentHostHeader || currentUrlParts.host;\n var currentUrl = /^\\w+:/.test(location) ? this._currentUrl :\n url.format(Object.assign(currentUrlParts, { host: currentHost }));\n\n // Determine the URL of the redirection\n var redirectUrl;\n try {\n redirectUrl = url.resolve(currentUrl, location);\n }\n catch (cause) {\n this.emit(\"error\", new RedirectionError(cause));\n return;\n }\n\n // Create the redirected request\n debug(\"redirecting to\", redirectUrl);\n this._isRedirect = true;\n var redirectUrlParts = url.parse(redirectUrl);\n Object.assign(this._options, redirectUrlParts);\n\n // Drop the Authorization header if redirecting to another domain\n if (!(redirectUrlParts.host === currentHost || isSubdomainOf(redirectUrlParts.host, currentHost))) {\n removeMatchingHeaders(/^authorization$/i, this._options.headers);\n }\n\n // Evaluate the beforeRedirect callback\n if (typeof this._options.beforeRedirect === \"function\") {\n var responseDetails = { headers: response.headers };\n try {\n this._options.beforeRedirect.call(null, this._options, responseDetails);\n }\n catch (err) {\n this.emit(\"error\", err);\n return;\n }\n this._sanitizeOptions(this._options);\n }\n\n // Perform the redirected request\n try {\n this._performRequest();\n }\n catch (cause) {\n this.emit(\"error\", new RedirectionError(cause));\n }\n }\n else {\n // The response is not a redirect; return it as-is\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n }\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n function request(input, options, callback) {\n // Parse parameters\n if (typeof input === \"string\") {\n var urlStr = input;\n try {\n input = urlToOptions(new URL(urlStr));\n }\n catch (err) {\n /* istanbul ignore next */\n input = url.parse(urlStr);\n }\n }\n else if (URL && (input instanceof URL)) {\n input = urlToOptions(input);\n }\n else {\n callback = options;\n options = input;\n input = { protocol: protocol };\n }\n if (typeof options === \"function\") {\n callback = options;\n options = null;\n }\n\n // Set defaults\n options = Object.assign({\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, input, options);\n options.nativeProtocols = nativeProtocols;\n\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n }\n\n // Executes a GET request, following redirects\n function get(input, options, callback) {\n var wrappedRequest = wrappedProtocol.request(input, options, callback);\n wrappedRequest.end();\n return wrappedRequest;\n }\n\n // Expose the properties on the wrapped protocol\n Object.defineProperties(wrappedProtocol, {\n request: { value: request, configurable: true, enumerable: true, writable: true },\n get: { value: get, configurable: true, enumerable: true, writable: true },\n });\n });\n return exports;\n}\n\n/* istanbul ignore next */\nfunction noop() { /* empty */ }\n\n// from https://github.com/nodejs/node/blob/master/lib/internal/url.js\nfunction urlToOptions(urlObject) {\n var options = {\n protocol: urlObject.protocol,\n hostname: urlObject.hostname.startsWith(\"[\") ?\n /* istanbul ignore next */\n urlObject.hostname.slice(1, -1) :\n urlObject.hostname,\n hash: urlObject.hash,\n search: urlObject.search,\n pathname: urlObject.pathname,\n path: urlObject.pathname + urlObject.search,\n href: urlObject.href,\n };\n if (urlObject.port !== \"\") {\n options.port = Number(urlObject.port);\n }\n return options;\n}\n\nfunction removeMatchingHeaders(regex, headers) {\n var lastValue;\n for (var header in headers) {\n if (regex.test(header)) {\n lastValue = headers[header].toString().trim();\n delete headers[header];\n }\n }\n return lastValue;\n}\n\nfunction createErrorType(code, defaultMessage) {\n function CustomError(cause) {\n Error.captureStackTrace(this, this.constructor);\n if (!cause) {\n this.message = defaultMessage;\n }\n else {\n this.message = defaultMessage + \": \" + cause.message;\n this.cause = cause;\n }\n }\n CustomError.prototype = new Error();\n CustomError.prototype.constructor = CustomError;\n CustomError.prototype.name = \"Error [\" + code + \"]\";\n CustomError.prototype.code = code;\n return CustomError;\n}\n\nfunction abortRequest(request) {\n for (var e = 0; e < events.length; e++) {\n request.removeListener(events[e], eventHandlers[events[e]]);\n }\n request.on(\"error\", noop);\n request.abort();\n}\n\nfunction isSubdomainOf(subdomain, domain) {\n const dot = subdomain.length - domain.length - 1;\n return dot > 0 && subdomain[dot] === \".\" && subdomain.endsWith(domain);\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n","module.exports = require(\"assert\");","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","module.exports = require(\"tty\");","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export interface ActiveCall {\n is_accepted: boolean;\n isTransmitter: boolean;\n transmitter: string;\n receiver: string;\n channelId?: number;\n isUnavailable?: boolean;\n}\n\nexport interface InitializeCallDTO {\n receiverNumber: string;\n}\n\nexport interface StartCallEventData {\n transmitter: string;\n receiver: string;\n isTransmitter: boolean;\n isUnavailable?: boolean;\n}\n\nexport interface EndCallDTO {\n transmitterNumber: string;\n isTransmitter: boolean;\n}\n\nexport interface TransmitterNumDTO {\n transmitterNumber: string;\n}\n\nexport interface CallWasAcceptedEvent {\n channelId: number;\n currentCall: CallHistoryItem;\n isTransmitter: boolean;\n}\n\nexport interface ActiveCallRaw {\n identifier: string;\n transmitter: string;\n transmitterSource: number;\n receiver: string;\n receiverSource: number;\n start: string;\n is_accepted: boolean;\n}\n\nexport interface CallHistoryItem {\n id?: number;\n identifier: string;\n transmitter: string;\n transmitterSource?: number;\n receiver: string;\n receiverSource?: number;\n start: string;\n end?: number;\n is_accepted: boolean;\n}\n\nexport enum CallRejectReasons {\n DECLINED,\n BUSY_LINE,\n}\n\nexport enum CallEvents {\n INITIALIZE_CALL = 'npwd:beginCall',\n START_CALL = 'npwd:startCall',\n ACCEPT_CALL = 'npwd:acceptCall',\n END_CALL = 'npwd:endCall',\n WAS_ENDED = 'npwd:callEnded',\n WAS_ACCEPTED = 'npwd:callAccepted',\n REJECTED = 'npwd:rejectCall',\n WAS_REJECTED = 'npwd:callRejected',\n FETCH_CALLS = 'npwd:fetchCalls',\n SET_CALLER = 'npwd:setCaller',\n SET_CALL_MODAL = 'npwd:callModal',\n SEND_ALERT = 'npwd:callSetAlert',\n}\n","import { mainLogger } from '../sv_logger';\n\nexport const callLogger = mainLogger.child({ module: 'calls' });\n","import { mainLogger } from '../sv_logger';\n\nexport const notesLogger = mainLogger.child({ module: 'notes' });\n","import { mainLogger } from '../sv_logger';\n\nexport const contactsLogger = mainLogger.child({ module: 'contact' });\n","import { mainLogger } from '../sv_logger';\n\nexport const photoLogger = mainLogger.child({ module: 'photo' });\n","export interface Message {\n id: number;\n message: string;\n conversation_id?: string;\n author: string;\n}\n\nexport interface PreDBMessage {\n conversationId: string;\n message: string;\n}\n\nexport interface MessageConversation {\n conversation_id: string;\n avatar: string;\n display: string;\n phoneNumber: string;\n unread: number;\n}\n\nexport interface FormattedMessageConversation {\n conversation_id: string;\n phoneNumber: string;\n}\n\n/**\n * Used for the raw npwd_messages_groups row responses\n */\nexport interface UnformattedMessageConversation {\n conversation_id: string;\n user_identifier: string;\n participant_identifier: string;\n phone_number: string;\n avatar?: string;\n display?: string;\n updatedAt?: string;\n unread: number;\n}\n\n/**\n * Used to help consolidate raw npwd_messages_groups rows into\n * a mapping of a single message group\n */\nexport interface MessageGroupMapping {\n [groupId: string]: {\n user_identifier: string;\n // Participant displays\n participants: string[];\n phoneNumbers: string[];\n label?: string;\n avatar?: string;\n updatedAt: string;\n unreadCount: number;\n };\n}\n\nexport interface CreateMessageGroupResult {\n error?: boolean;\n phoneNumber?: string;\n duplicate?: boolean;\n conversationId?: string;\n mine?: boolean;\n participant: string;\n identifiers: string[];\n doesExist: UnformattedMessageConversation | null;\n}\n\nexport interface CreateMessageBroadcast {\n message: string;\n groupName: string;\n groupId: string;\n}\n\nexport interface SetMessageRead {\n groupId: string;\n}\n\nexport interface MessageConversationResponse {\n conversation_id: string;\n phoneNumber: string;\n}\n\nexport enum MessageEvents {\n FETCH_MESSAGE_CONVERSATIONS = 'npwd:fetchMessageGroups',\n FETCH_MESSAGE_GROUPS_SUCCESS = 'npwd:fetchMessageGroupsSuccess',\n FETCH_MESSAGE_GROUPS_FAILED = 'npwd:fetchMessageGroupsFailed',\n CREATE_MESSAGE_CONVERSATION = 'npwd:createMessageGroup',\n CREATE_MESSAGE_CONVERSATION_SUCCESS = 'npwd:createMessageConversationSuccess',\n CREATE_MESSAGE_GROUP_SUCCESS = 'npwd:createMessageGroupSuccess',\n CREATE_MESSAGE_GROUP_FAILED = 'npwd:createMessageGroupFailed',\n SEND_MESSAGE = 'npwd:sendMessage',\n SEND_MESSAGE_SUCCESS = 'npwd:sendMessageSuccess',\n SEND_MESSAGE_FAILED = 'npwd:sendMessageFailed',\n DELETE_MESSAGE = 'npwd:deleteMessage',\n FETCH_MESSAGES = 'npwd:fetchMessages',\n FETCH_MESSAGES_SUCCESS = 'npwd:fetchMessagesSuccess',\n FETCH_MESSAGES_FAILED = 'npwd:fetchMessagesFailed',\n FETCH_INITIAL_MESSAGES = 'npwd:fetchInitialMessages',\n ACTION_RESULT = 'npwd:setMessagesAlert',\n CREATE_MESSAGE_BROADCAST = 'createMessagesBroadcast',\n SET_MESSAGE_READ = 'npwd:setReadMessages',\n DELETE_CONVERSATION = 'nwpd:deleteConversation',\n}\n","import {\n Message,\n MessageConversation,\n UnformattedMessageConversation,\n} from '../../../typings/messages';\nimport { config } from '../server';\nimport { ResultSetHeader } from 'mysql2';\nimport DbInterface from '../db/db_wrapper';\n\nconst MESSAGES_PER_PAGE = 20;\n\n// not sure whats going on here.\nexport class _MessagesDB {\n /**\n * Create a message in the database\n * @param author - the phoneNumber to the player who sent the message\n * @param conversationId - the message conversation ID to attach this message to\n * @param message - content of the message\n */\n async createMessage(\n userIdentifier: string,\n author: string,\n conversationId: string,\n message: string,\n ): Promise {\n const query = `INSERT INTO npwd_messages (user_identifier, author, message, conversation_id)\n VALUES (?, ?, ?, ?)`;\n\n const [results] = await DbInterface._rawExec(query, [\n userIdentifier,\n author,\n message,\n conversationId,\n ]);\n\n return (results).insertId;\n }\n\n // Not sure if we're going to query this exactly as its done here.\n /**\n * Retrieve all message conversations associated with a user. This will\n * populate the list of message conversations on the UI\n * @param phoneNumber - phoneNumber of the user to get message conversations for\n */\n async getMessageConversations(phoneNumber: string): Promise {\n const query = `SELECT npwd_messages_conversations.unread,\n npwd_messages_conversations.conversation_id,\n npwd_messages_conversations.user_identifier,\n npwd_messages_conversations.participant_identifier,\n ${config.database.playerTable}.${config.database.phoneNumberColumn} AS phone_number\n FROM (SELECT conversation_id\n FROM npwd_messages_conversations\n WHERE npwd_messages_conversations.participant_identifier = ?) AS t\n LEFT OUTER JOIN npwd_messages_conversations\n ON npwd_messages_conversations.conversation_id = t.conversation_id\n LEFT OUTER JOIN ${config.database.playerTable}\n ON ${config.database.playerTable}.${config.database.phoneNumberColumn} = npwd_messages_conversations.participant_identifier\n\t\t`;\n\n const [results] = await DbInterface._rawExec(query, [phoneNumber]);\n return results;\n }\n\n async getMessages(conversationId: string, page: number): Promise {\n const offset = page * MESSAGES_PER_PAGE;\n\n const query = `SELECT npwd_messages.id,\n npwd_messages.conversation_id,\n npwd_messages.message,\n npwd_messages.author\n FROM npwd_messages\n WHERE npwd_messages.conversation_id = ?\n ORDER BY id DESC\n LIMIT ? OFFSET ?`;\n\n const [results] = await DbInterface._rawExec(query, [\n conversationId,\n MESSAGES_PER_PAGE,\n offset,\n ]);\n\n return results;\n }\n\n /**\n * Create a message group\n * @param userIdentifier - the user creating the message group\n * @param conversationId - the unique group ID this corresponds to\n * @param participantIdentifier - the participant user identifier. This identifier is what attaches\n * other players to the message group\n */\n async createMessageGroup(\n userIdentifier: string,\n conversationId: string,\n participantIdentifier: string,\n ): Promise {\n const query = `\n INSERT\n INTO npwd_messages_conversations\n (user_identifier, conversation_id, participant_identifier)\n VALUES (?, ?, ?)\n\t\t`;\n await DbInterface._rawExec(query, [userIdentifier, conversationId, participantIdentifier]);\n }\n\n /**\n * Find a players identifier from their phone number\n * @param phoneNumber - the phone number to search for\n */\n async getIdentifierFromPhoneNumber(phoneNumber: string): Promise {\n const query = `\n SELECT ${config.database.identifierColumn}\n FROM ${config.database.playerTable}\n WHERE ${config.database.phoneNumberColumn} = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [phoneNumber]);\n const result = results;\n return result[0].identifier;\n }\n\n /**\n * This method checks if the input groupId already exists in\n * the database. As long as the groupId is derived from the input\n * identifiers this means that the user is trying to create a\n * duplicate!\n * @param groupId - group Id to check that it exists\n */\n async checkIfMessageGroupExists(groupId: string): Promise {\n const query = `\n SELECT COUNT(*) as count\n FROM npwd_messages_conversations\n WHERE conversation_id = ?;\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [groupId]);\n const result = results;\n const count = result[0].count;\n return count > 0;\n }\n\n async getMessageCountByGroup(groupId: string): Promise {\n const query = `\n SELECT COUNT(*) as count\n FROM npwd_messages\n WHERE conversation_id = ?`;\n const [results] = await DbInterface._rawExec(query, [groupId]);\n const result = results;\n return result[0].count;\n }\n\n /**\n * Sets the current message isRead to 0 for said player\n * @param groupId The unique group ID for the message\n * @param identifier The identifier for the player\n */\n async setMessageRead(groupId: string, identifier: string) {\n const query = `UPDATE npwd_messages_conversations\n SET unreadCount = 0\n WHERE conversation_id = ?\n AND participant_identifier = ?`;\n await DbInterface._rawExec(query, [groupId, identifier]);\n }\n\n async deleteConversation(conversationId: string, sourcePhoneNumber: string) {\n const query = `DELETE\n FROM npwd_messages_conversations\n WHERE conversation_id = ?\n AND participant_identifier = ?`;\n await DbInterface._rawExec(query, [conversationId, sourcePhoneNumber]);\n }\n\n async deleteMessage(message: Message) {\n const query = `DELETE\n FROM npwd_messages\n WHERE id = ?\n AND conversation_id = ?`;\n\n await DbInterface._rawExec(query, [message.id, message.conversation_id]);\n }\n\n async doesConversationExist(\n conversationId: string,\n identifier: string,\n ): Promise {\n const query = `SELECT *\n FROM npwd_messages_conversations\n WHERE conversation_id = ?\n AND participant_identifier = ?`;\n const [results] = await DbInterface._rawExec(query, [conversationId, identifier]);\n const conversations = results;\n return conversations[0] || null;\n }\n}\n\nconst MessagesDB = new _MessagesDB();\n\nexport default MessagesDB;\n","import { CreateMessageGroupResult, MessageConversation } from '../../../typings/messages';\nimport { mainLogger } from '../sv_logger';\nimport MessagesDB from './messages.db';\nimport PlayerService from '../players/player.service';\n\nexport const messagesLogger = mainLogger.child({ module: 'messages' });\n\n// Functions\nexport async function getConsolidatedMessageGroups(identifier: string): Promise {\n const messageConversations = await MessagesDB.getMessageConversations(identifier);\n return messageConversations.reduce((mapping: any, conversation: any) => {\n const groupId = conversation.conversation_id;\n\n if (conversation.participant_identifier != identifier) {\n mapping[groupId] = {\n unread: conversation.unread,\n phoneNumber: conversation.phone_number,\n display: conversation.display,\n conversation_id: conversation.conversation_id,\n user_identifier: identifier,\n };\n }\n\n return mapping;\n }, {});\n}\n\nexport async function getFormattedMessageConversations(\n identifier: string,\n): Promise {\n const conversationMapping = await getConsolidatedMessageGroups(identifier);\n const conversationIds = await getGroupIds(identifier, conversationMapping);\n\n return conversationIds.map((conversationId) => {\n const conversation = conversationMapping[conversationId];\n\n return {\n ...conversation,\n };\n });\n}\n\nexport async function getGroupIds(userIdentifier: string, groupMapping: any): Promise {\n const groupIds: string[] = [];\n for (const groupId of Object.keys(groupMapping)) {\n const isMine = (groupMapping[groupId].user_identifier = userIdentifier);\n if (isMine) {\n groupIds.push(groupId);\n }\n }\n return groupIds;\n}\n\n/**\n * Create the same unique ID from an identifiers array.\n * They will be always be sorted to ensure always the same ID.\n * @param participants array of player identifiers\n */\nexport function createGroupHashID(participants: string[]) {\n // make sure we are always in a consistent order. It is very important\n // that this not change! Changing this order can result in the ability\n // of duplicate message groups being created.\n participants.sort();\n return participants.join('+');\n // we don't need this to be secure. Its purpose is to create a unique\n // string derived from the identifiers. In this way we can check\n // that this groupId isn't used before. If it has then it means\n // we are trying to create a duplicate message group!\n}\n\n/**\n * Main method to handle creation of new message groups. First\n * we retrieve identifiers for each submitted phone number and\n * then rows in npwd_messages_groups are created for each of them\n * bound to a unique groupId. The groupId is any unique string - we\n * use hashes here.\n *\n * These queries are batched with a transaction so that if any of\n * them fail the queries are not committed to the database. This helps\n * avoid situations where some participants get added to the group but\n * one fails resulting in a partial group which would be very confusing\n * to the player.\n * @param sourcePhoneNumber - user who is creating the group\n * @param tgtPhoneNumber - list of phone numbers to add to the grup\n */\nexport async function createMessageGroupsFromPhoneNumber(\n sourcePhoneNumber: string,\n tgtPhoneNumber: string,\n): Promise {\n // we check that each phoneNumber exists before we create the group\n\n const tgtIdentifier = await PlayerService.getIdentifierFromPhoneNumber(tgtPhoneNumber, true);\n\n if (!tgtIdentifier) {\n throw new Error('tgtIdentifier was null');\n }\n\n const conversationId = createGroupHashID([sourcePhoneNumber, tgtPhoneNumber]);\n const existingConversation = await MessagesDB.doesConversationExist(\n conversationId,\n tgtPhoneNumber,\n );\n\n if (existingConversation) {\n await MessagesDB.createMessageGroup(\n existingConversation.user_identifier,\n conversationId,\n sourcePhoneNumber,\n );\n } else {\n await MessagesDB.createMessageGroup(sourcePhoneNumber, conversationId, sourcePhoneNumber);\n await MessagesDB.createMessageGroup(sourcePhoneNumber, conversationId, tgtPhoneNumber);\n }\n\n // wrap this in a transaction to make sure ALL of these INSERTs succeed\n // so we are not left in a situation where only some of the member of the\n // group exist while other are left off.\n\n return {\n error: false,\n doesExist: existingConversation,\n conversationId,\n identifiers: [sourcePhoneNumber, tgtPhoneNumber],\n phoneNumber: tgtPhoneNumber,\n participant: tgtIdentifier,\n };\n}\n\n// getting the participants from groupId.\n// this should return the source or and array of identifiers\nexport function getIdentifiersFromParticipants(conversationId: string) {\n return conversationId.split('+');\n}\n","export interface NewTweet {\n message: string;\n images?: string;\n retweet?: number;\n}\n\nexport type SETTING_MENTIONS = 'mentions';\nexport type SETTINGS_ALL_TWEETS = 'all';\n\nexport interface Tweet extends NewTweet {\n profile_name: string;\n profile_id: number;\n id: number;\n identifier: string;\n isMine: boolean;\n isLiked: boolean;\n isReported: boolean;\n avatar_url: string;\n isRetweet: number | boolean;\n isRetweetedByPlayer?: boolean;\n retweetIdentifier: string;\n retweetId: string;\n seconds_since_tweet: number;\n retweetProfileName: string;\n retweetAvatarUrl: string;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface Image {\n id: string;\n link: string;\n}\nexport interface FormattedTweet extends Omit {\n images: Image[];\n}\n\nexport interface Profile {\n id: number;\n profile_name: string;\n identifier: string;\n avatar_url?: string;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface UpdateProfileProps {\n avatar_url: string;\n profile_name: string;\n}\n\nexport enum TwitterEvents {\n FETCH_TWEETS = 'npwd:fetchTweets',\n FETCH_TWEETS_FILTERED = 'npwd:fetchTweetsFiltered',\n CREATE_PROFILE = 'npwd:createTwitterProfile',\n GET_OR_CREATE_PROFILE = 'npwd:getOrCreateTwitterProfile',\n UPDATE_PROFILE = 'npwd:updateTwitterProfile',\n CREATE_TWEET = 'npwd:createTweet',\n CREATE_TWEET_BROADCAST = 'createTweetBroadcast',\n DELETE_TWEET = 'npwd:deleteTweet',\n TOGGLE_LIKE = 'npwd:toggleLike',\n RETWEET = 'npwd:retweet',\n REPORT = 'npwd:reportTweet',\n}\n","import PlayerService from '../players/player.service';\nimport { clean } from './miscUtils';\n/**\n * Generate a profile name by the player's name and/or phone number\n * @param identifier - player's identifier\n * @param delimiter - What we split the profile name by, defaults to -\n */\nexport async function generateProfileName(\n identifier: string,\n delimiter = '_',\n): Promise {\n const player = PlayerService.getPlayerFromIdentifier(identifier);\n\n const firstname = clean(player.getFirstName());\n const lastname = clean(player.getLastName());\n const phone_number = clean(player.getPhoneNumber());\n\n if (firstname && lastname) {\n return `${firstname}${delimiter}${lastname}`;\n } else if (firstname) {\n return firstname;\n } else if (lastname) {\n return lastname;\n } else if (phone_number) {\n return phone_number;\n }\n return null;\n}\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nconst agent_1 = __importDefault(require(\"./agent\"));\nfunction createHttpsProxyAgent(opts) {\n return new agent_1.default(opts);\n}\n(function (createHttpsProxyAgent) {\n createHttpsProxyAgent.HttpsProxyAgent = agent_1.default;\n createHttpsProxyAgent.prototype = agent_1.default.prototype;\n})(createHttpsProxyAgent || (createHttpsProxyAgent = {}));\nmodule.exports = createHttpsProxyAgent;\n//# sourceMappingURL=index.js.map","/*!\n localForage -- Offline Storage, Improved\n Version 1.9.0\n https://localforage.github.io/localForage\n (c) 2013-2017 Mozilla, Apache License 2.0\n*/\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.localforage = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw (f.code=\"MODULE_NOT_FOUND\", f)}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o element; its readystatechange event will be fired asynchronously once it is inserted\n // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\n var scriptEl = global.document.createElement('script');\n scriptEl.onreadystatechange = function () {\n nextTick();\n\n scriptEl.onreadystatechange = null;\n scriptEl.parentNode.removeChild(scriptEl);\n scriptEl = null;\n };\n global.document.documentElement.appendChild(scriptEl);\n };\n } else {\n scheduleDrain = function () {\n setTimeout(nextTick, 0);\n };\n }\n}\n\nvar draining;\nvar queue = [];\n//named nextTick for less confusing stack traces\nfunction nextTick() {\n draining = true;\n var i, oldQueue;\n var len = queue.length;\n while (len) {\n oldQueue = queue;\n queue = [];\n i = -1;\n while (++i < len) {\n oldQueue[i]();\n }\n len = queue.length;\n }\n draining = false;\n}\n\nmodule.exports = immediate;\nfunction immediate(task) {\n if (queue.push(task) === 1 && !draining) {\n scheduleDrain();\n }\n}\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}],2:[function(_dereq_,module,exports){\n'use strict';\nvar immediate = _dereq_(1);\n\n/* istanbul ignore next */\nfunction INTERNAL() {}\n\nvar handlers = {};\n\nvar REJECTED = ['REJECTED'];\nvar FULFILLED = ['FULFILLED'];\nvar PENDING = ['PENDING'];\n\nmodule.exports = Promise;\n\nfunction Promise(resolver) {\n if (typeof resolver !== 'function') {\n throw new TypeError('resolver must be a function');\n }\n this.state = PENDING;\n this.queue = [];\n this.outcome = void 0;\n if (resolver !== INTERNAL) {\n safelyResolveThenable(this, resolver);\n }\n}\n\nPromise.prototype[\"catch\"] = function (onRejected) {\n return this.then(null, onRejected);\n};\nPromise.prototype.then = function (onFulfilled, onRejected) {\n if (typeof onFulfilled !== 'function' && this.state === FULFILLED ||\n typeof onRejected !== 'function' && this.state === REJECTED) {\n return this;\n }\n var promise = new this.constructor(INTERNAL);\n if (this.state !== PENDING) {\n var resolver = this.state === FULFILLED ? onFulfilled : onRejected;\n unwrap(promise, resolver, this.outcome);\n } else {\n this.queue.push(new QueueItem(promise, onFulfilled, onRejected));\n }\n\n return promise;\n};\nfunction QueueItem(promise, onFulfilled, onRejected) {\n this.promise = promise;\n if (typeof onFulfilled === 'function') {\n this.onFulfilled = onFulfilled;\n this.callFulfilled = this.otherCallFulfilled;\n }\n if (typeof onRejected === 'function') {\n this.onRejected = onRejected;\n this.callRejected = this.otherCallRejected;\n }\n}\nQueueItem.prototype.callFulfilled = function (value) {\n handlers.resolve(this.promise, value);\n};\nQueueItem.prototype.otherCallFulfilled = function (value) {\n unwrap(this.promise, this.onFulfilled, value);\n};\nQueueItem.prototype.callRejected = function (value) {\n handlers.reject(this.promise, value);\n};\nQueueItem.prototype.otherCallRejected = function (value) {\n unwrap(this.promise, this.onRejected, value);\n};\n\nfunction unwrap(promise, func, value) {\n immediate(function () {\n var returnValue;\n try {\n returnValue = func(value);\n } catch (e) {\n return handlers.reject(promise, e);\n }\n if (returnValue === promise) {\n handlers.reject(promise, new TypeError('Cannot resolve promise with itself'));\n } else {\n handlers.resolve(promise, returnValue);\n }\n });\n}\n\nhandlers.resolve = function (self, value) {\n var result = tryCatch(getThen, value);\n if (result.status === 'error') {\n return handlers.reject(self, result.value);\n }\n var thenable = result.value;\n\n if (thenable) {\n safelyResolveThenable(self, thenable);\n } else {\n self.state = FULFILLED;\n self.outcome = value;\n var i = -1;\n var len = self.queue.length;\n while (++i < len) {\n self.queue[i].callFulfilled(value);\n }\n }\n return self;\n};\nhandlers.reject = function (self, error) {\n self.state = REJECTED;\n self.outcome = error;\n var i = -1;\n var len = self.queue.length;\n while (++i < len) {\n self.queue[i].callRejected(error);\n }\n return self;\n};\n\nfunction getThen(obj) {\n // Make sure we only access the accessor once as required by the spec\n var then = obj && obj.then;\n if (obj && (typeof obj === 'object' || typeof obj === 'function') && typeof then === 'function') {\n return function appyThen() {\n then.apply(obj, arguments);\n };\n }\n}\n\nfunction safelyResolveThenable(self, thenable) {\n // Either fulfill, reject or reject with error\n var called = false;\n function onError(value) {\n if (called) {\n return;\n }\n called = true;\n handlers.reject(self, value);\n }\n\n function onSuccess(value) {\n if (called) {\n return;\n }\n called = true;\n handlers.resolve(self, value);\n }\n\n function tryToUnwrap() {\n thenable(onSuccess, onError);\n }\n\n var result = tryCatch(tryToUnwrap);\n if (result.status === 'error') {\n onError(result.value);\n }\n}\n\nfunction tryCatch(func, value) {\n var out = {};\n try {\n out.value = func(value);\n out.status = 'success';\n } catch (e) {\n out.status = 'error';\n out.value = e;\n }\n return out;\n}\n\nPromise.resolve = resolve;\nfunction resolve(value) {\n if (value instanceof this) {\n return value;\n }\n return handlers.resolve(new this(INTERNAL), value);\n}\n\nPromise.reject = reject;\nfunction reject(reason) {\n var promise = new this(INTERNAL);\n return handlers.reject(promise, reason);\n}\n\nPromise.all = all;\nfunction all(iterable) {\n var self = this;\n if (Object.prototype.toString.call(iterable) !== '[object Array]') {\n return this.reject(new TypeError('must be an array'));\n }\n\n var len = iterable.length;\n var called = false;\n if (!len) {\n return this.resolve([]);\n }\n\n var values = new Array(len);\n var resolved = 0;\n var i = -1;\n var promise = new this(INTERNAL);\n\n while (++i < len) {\n allResolver(iterable[i], i);\n }\n return promise;\n function allResolver(value, i) {\n self.resolve(value).then(resolveFromAll, function (error) {\n if (!called) {\n called = true;\n handlers.reject(promise, error);\n }\n });\n function resolveFromAll(outValue) {\n values[i] = outValue;\n if (++resolved === len && !called) {\n called = true;\n handlers.resolve(promise, values);\n }\n }\n }\n}\n\nPromise.race = race;\nfunction race(iterable) {\n var self = this;\n if (Object.prototype.toString.call(iterable) !== '[object Array]') {\n return this.reject(new TypeError('must be an array'));\n }\n\n var len = iterable.length;\n var called = false;\n if (!len) {\n return this.resolve([]);\n }\n\n var i = -1;\n var promise = new this(INTERNAL);\n\n while (++i < len) {\n resolver(iterable[i]);\n }\n return promise;\n function resolver(value) {\n self.resolve(value).then(function (response) {\n if (!called) {\n called = true;\n handlers.resolve(promise, response);\n }\n }, function (error) {\n if (!called) {\n called = true;\n handlers.reject(promise, error);\n }\n });\n }\n}\n\n},{\"1\":1}],3:[function(_dereq_,module,exports){\n(function (global){\n'use strict';\nif (typeof global.Promise !== 'function') {\n global.Promise = _dereq_(2);\n}\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"2\":2}],4:[function(_dereq_,module,exports){\n'use strict';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction getIDB() {\n /* global indexedDB,webkitIndexedDB,mozIndexedDB,OIndexedDB,msIndexedDB */\n try {\n if (typeof indexedDB !== 'undefined') {\n return indexedDB;\n }\n if (typeof webkitIndexedDB !== 'undefined') {\n return webkitIndexedDB;\n }\n if (typeof mozIndexedDB !== 'undefined') {\n return mozIndexedDB;\n }\n if (typeof OIndexedDB !== 'undefined') {\n return OIndexedDB;\n }\n if (typeof msIndexedDB !== 'undefined') {\n return msIndexedDB;\n }\n } catch (e) {\n return;\n }\n}\n\nvar idb = getIDB();\n\nfunction isIndexedDBValid() {\n try {\n // Initialize IndexedDB; fall back to vendor-prefixed versions\n // if needed.\n if (!idb || !idb.open) {\n return false;\n }\n // We mimic PouchDB here;\n //\n // We test for openDatabase because IE Mobile identifies itself\n // as Safari. Oh the lulz...\n var isSafari = typeof openDatabase !== 'undefined' && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform);\n\n var hasFetch = typeof fetch === 'function' && fetch.toString().indexOf('[native code') !== -1;\n\n // Safari <10.1 does not meet our requirements for IDB support\n // (see: https://github.com/pouchdb/pouchdb/issues/5572).\n // Safari 10.1 shipped with fetch, we can use that to detect it.\n // Note: this creates issues with `window.fetch` polyfills and\n // overrides; see:\n // https://github.com/localForage/localForage/issues/856\n return (!isSafari || hasFetch) && typeof indexedDB !== 'undefined' &&\n // some outdated implementations of IDB that appear on Samsung\n // and HTC Android devices <4.4 are missing IDBKeyRange\n // See: https://github.com/mozilla/localForage/issues/128\n // See: https://github.com/mozilla/localForage/issues/272\n typeof IDBKeyRange !== 'undefined';\n } catch (e) {\n return false;\n }\n}\n\n// Abstracts constructing a Blob object, so it also works in older\n// browsers that don't support the native Blob constructor. (i.e.\n// old QtWebKit versions, at least).\n// Abstracts constructing a Blob object, so it also works in older\n// browsers that don't support the native Blob constructor. (i.e.\n// old QtWebKit versions, at least).\nfunction createBlob(parts, properties) {\n /* global BlobBuilder,MSBlobBuilder,MozBlobBuilder,WebKitBlobBuilder */\n parts = parts || [];\n properties = properties || {};\n try {\n return new Blob(parts, properties);\n } catch (e) {\n if (e.name !== 'TypeError') {\n throw e;\n }\n var Builder = typeof BlobBuilder !== 'undefined' ? BlobBuilder : typeof MSBlobBuilder !== 'undefined' ? MSBlobBuilder : typeof MozBlobBuilder !== 'undefined' ? MozBlobBuilder : WebKitBlobBuilder;\n var builder = new Builder();\n for (var i = 0; i < parts.length; i += 1) {\n builder.append(parts[i]);\n }\n return builder.getBlob(properties.type);\n }\n}\n\n// This is CommonJS because lie is an external dependency, so Rollup\n// can just ignore it.\nif (typeof Promise === 'undefined') {\n // In the \"nopromises\" build this will just throw if you don't have\n // a global promise object, but it would throw anyway later.\n _dereq_(3);\n}\nvar Promise$1 = Promise;\n\nfunction executeCallback(promise, callback) {\n if (callback) {\n promise.then(function (result) {\n callback(null, result);\n }, function (error) {\n callback(error);\n });\n }\n}\n\nfunction executeTwoCallbacks(promise, callback, errorCallback) {\n if (typeof callback === 'function') {\n promise.then(callback);\n }\n\n if (typeof errorCallback === 'function') {\n promise[\"catch\"](errorCallback);\n }\n}\n\nfunction normalizeKey(key) {\n // Cast the key to a string, as that's all we can set as a key.\n if (typeof key !== 'string') {\n console.warn(key + ' used as a key, but it is not a string.');\n key = String(key);\n }\n\n return key;\n}\n\nfunction getCallback() {\n if (arguments.length && typeof arguments[arguments.length - 1] === 'function') {\n return arguments[arguments.length - 1];\n }\n}\n\n// Some code originally from async_storage.js in\n// [Gaia](https://github.com/mozilla-b2g/gaia).\n\nvar DETECT_BLOB_SUPPORT_STORE = 'local-forage-detect-blob-support';\nvar supportsBlobs = void 0;\nvar dbContexts = {};\nvar toString = Object.prototype.toString;\n\n// Transaction Modes\nvar READ_ONLY = 'readonly';\nvar READ_WRITE = 'readwrite';\n\n// Transform a binary string to an array buffer, because otherwise\n// weird stuff happens when you try to work with the binary string directly.\n// It is known.\n// From http://stackoverflow.com/questions/14967647/ (continues on next line)\n// encode-decode-image-with-base64-breaks-image (2013-04-21)\nfunction _binStringToArrayBuffer(bin) {\n var length = bin.length;\n var buf = new ArrayBuffer(length);\n var arr = new Uint8Array(buf);\n for (var i = 0; i < length; i++) {\n arr[i] = bin.charCodeAt(i);\n }\n return buf;\n}\n\n//\n// Blobs are not supported in all versions of IndexedDB, notably\n// Chrome <37 and Android <5. In those versions, storing a blob will throw.\n//\n// Various other blob bugs exist in Chrome v37-42 (inclusive).\n// Detecting them is expensive and confusing to users, and Chrome 37-42\n// is at very low usage worldwide, so we do a hacky userAgent check instead.\n//\n// content-type bug: https://code.google.com/p/chromium/issues/detail?id=408120\n// 404 bug: https://code.google.com/p/chromium/issues/detail?id=447916\n// FileReader bug: https://code.google.com/p/chromium/issues/detail?id=447836\n//\n// Code borrowed from PouchDB. See:\n// https://github.com/pouchdb/pouchdb/blob/master/packages/node_modules/pouchdb-adapter-idb/src/blobSupport.js\n//\nfunction _checkBlobSupportWithoutCaching(idb) {\n return new Promise$1(function (resolve) {\n var txn = idb.transaction(DETECT_BLOB_SUPPORT_STORE, READ_WRITE);\n var blob = createBlob(['']);\n txn.objectStore(DETECT_BLOB_SUPPORT_STORE).put(blob, 'key');\n\n txn.onabort = function (e) {\n // If the transaction aborts now its due to not being able to\n // write to the database, likely due to the disk being full\n e.preventDefault();\n e.stopPropagation();\n resolve(false);\n };\n\n txn.oncomplete = function () {\n var matchedChrome = navigator.userAgent.match(/Chrome\\/(\\d+)/);\n var matchedEdge = navigator.userAgent.match(/Edge\\//);\n // MS Edge pretends to be Chrome 42:\n // https://msdn.microsoft.com/en-us/library/hh869301%28v=vs.85%29.aspx\n resolve(matchedEdge || !matchedChrome || parseInt(matchedChrome[1], 10) >= 43);\n };\n })[\"catch\"](function () {\n return false; // error, so assume unsupported\n });\n}\n\nfunction _checkBlobSupport(idb) {\n if (typeof supportsBlobs === 'boolean') {\n return Promise$1.resolve(supportsBlobs);\n }\n return _checkBlobSupportWithoutCaching(idb).then(function (value) {\n supportsBlobs = value;\n return supportsBlobs;\n });\n}\n\nfunction _deferReadiness(dbInfo) {\n var dbContext = dbContexts[dbInfo.name];\n\n // Create a deferred object representing the current database operation.\n var deferredOperation = {};\n\n deferredOperation.promise = new Promise$1(function (resolve, reject) {\n deferredOperation.resolve = resolve;\n deferredOperation.reject = reject;\n });\n\n // Enqueue the deferred operation.\n dbContext.deferredOperations.push(deferredOperation);\n\n // Chain its promise to the database readiness.\n if (!dbContext.dbReady) {\n dbContext.dbReady = deferredOperation.promise;\n } else {\n dbContext.dbReady = dbContext.dbReady.then(function () {\n return deferredOperation.promise;\n });\n }\n}\n\nfunction _advanceReadiness(dbInfo) {\n var dbContext = dbContexts[dbInfo.name];\n\n // Dequeue a deferred operation.\n var deferredOperation = dbContext.deferredOperations.pop();\n\n // Resolve its promise (which is part of the database readiness\n // chain of promises).\n if (deferredOperation) {\n deferredOperation.resolve();\n return deferredOperation.promise;\n }\n}\n\nfunction _rejectReadiness(dbInfo, err) {\n var dbContext = dbContexts[dbInfo.name];\n\n // Dequeue a deferred operation.\n var deferredOperation = dbContext.deferredOperations.pop();\n\n // Reject its promise (which is part of the database readiness\n // chain of promises).\n if (deferredOperation) {\n deferredOperation.reject(err);\n return deferredOperation.promise;\n }\n}\n\nfunction _getConnection(dbInfo, upgradeNeeded) {\n return new Promise$1(function (resolve, reject) {\n dbContexts[dbInfo.name] = dbContexts[dbInfo.name] || createDbContext();\n\n if (dbInfo.db) {\n if (upgradeNeeded) {\n _deferReadiness(dbInfo);\n dbInfo.db.close();\n } else {\n return resolve(dbInfo.db);\n }\n }\n\n var dbArgs = [dbInfo.name];\n\n if (upgradeNeeded) {\n dbArgs.push(dbInfo.version);\n }\n\n var openreq = idb.open.apply(idb, dbArgs);\n\n if (upgradeNeeded) {\n openreq.onupgradeneeded = function (e) {\n var db = openreq.result;\n try {\n db.createObjectStore(dbInfo.storeName);\n if (e.oldVersion <= 1) {\n // Added when support for blob shims was added\n db.createObjectStore(DETECT_BLOB_SUPPORT_STORE);\n }\n } catch (ex) {\n if (ex.name === 'ConstraintError') {\n console.warn('The database \"' + dbInfo.name + '\"' + ' has been upgraded from version ' + e.oldVersion + ' to version ' + e.newVersion + ', but the storage \"' + dbInfo.storeName + '\" already exists.');\n } else {\n throw ex;\n }\n }\n };\n }\n\n openreq.onerror = function (e) {\n e.preventDefault();\n reject(openreq.error);\n };\n\n openreq.onsuccess = function () {\n resolve(openreq.result);\n _advanceReadiness(dbInfo);\n };\n });\n}\n\nfunction _getOriginalConnection(dbInfo) {\n return _getConnection(dbInfo, false);\n}\n\nfunction _getUpgradedConnection(dbInfo) {\n return _getConnection(dbInfo, true);\n}\n\nfunction _isUpgradeNeeded(dbInfo, defaultVersion) {\n if (!dbInfo.db) {\n return true;\n }\n\n var isNewStore = !dbInfo.db.objectStoreNames.contains(dbInfo.storeName);\n var isDowngrade = dbInfo.version < dbInfo.db.version;\n var isUpgrade = dbInfo.version > dbInfo.db.version;\n\n if (isDowngrade) {\n // If the version is not the default one\n // then warn for impossible downgrade.\n if (dbInfo.version !== defaultVersion) {\n console.warn('The database \"' + dbInfo.name + '\"' + \" can't be downgraded from version \" + dbInfo.db.version + ' to version ' + dbInfo.version + '.');\n }\n // Align the versions to prevent errors.\n dbInfo.version = dbInfo.db.version;\n }\n\n if (isUpgrade || isNewStore) {\n // If the store is new then increment the version (if needed).\n // This will trigger an \"upgradeneeded\" event which is required\n // for creating a store.\n if (isNewStore) {\n var incVersion = dbInfo.db.version + 1;\n if (incVersion > dbInfo.version) {\n dbInfo.version = incVersion;\n }\n }\n\n return true;\n }\n\n return false;\n}\n\n// encode a blob for indexeddb engines that don't support blobs\nfunction _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}\n\n// decode an encoded blob\nfunction _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}\n\n// is this one of our fancy encoded blobs?\nfunction _isEncodedBlob(value) {\n return value && value.__local_forage_encoded_blob;\n}\n\n// Specialize the default `ready()` function by making it dependent\n// on the current database operations. Thus, the driver will be actually\n// ready when it's been initialized (default) *and* there are no pending\n// operations on the database (initiated by some other instances).\nfunction _fullyReady(callback) {\n var self = this;\n\n var promise = self._initReady().then(function () {\n var dbContext = dbContexts[self._dbInfo.name];\n\n if (dbContext && dbContext.dbReady) {\n return dbContext.dbReady;\n }\n });\n\n executeTwoCallbacks(promise, callback, callback);\n return promise;\n}\n\n// Try to establish a new db connection to replace the\n// current one which is broken (i.e. experiencing\n// InvalidStateError while creating a transaction).\nfunction _tryReconnect(dbInfo) {\n _deferReadiness(dbInfo);\n\n var dbContext = dbContexts[dbInfo.name];\n var forages = dbContext.forages;\n\n for (var i = 0; i < forages.length; i++) {\n var forage = forages[i];\n if (forage._dbInfo.db) {\n forage._dbInfo.db.close();\n forage._dbInfo.db = null;\n }\n }\n dbInfo.db = null;\n\n return _getOriginalConnection(dbInfo).then(function (db) {\n dbInfo.db = db;\n if (_isUpgradeNeeded(dbInfo)) {\n // Reopen the database for upgrading.\n return _getUpgradedConnection(dbInfo);\n }\n return db;\n }).then(function (db) {\n // store the latest db reference\n // in case the db was upgraded\n dbInfo.db = dbContext.db = db;\n for (var i = 0; i < forages.length; i++) {\n forages[i]._dbInfo.db = db;\n }\n })[\"catch\"](function (err) {\n _rejectReadiness(dbInfo, err);\n throw err;\n });\n}\n\n// FF doesn't like Promises (micro-tasks) and IDDB store operations,\n// so we have to do it with callbacks\nfunction createTransaction(dbInfo, mode, callback, retries) {\n if (retries === undefined) {\n retries = 1;\n }\n\n try {\n var tx = dbInfo.db.transaction(dbInfo.storeName, mode);\n callback(null, tx);\n } catch (err) {\n if (retries > 0 && (!dbInfo.db || err.name === 'InvalidStateError' || err.name === 'NotFoundError')) {\n return Promise$1.resolve().then(function () {\n if (!dbInfo.db || err.name === 'NotFoundError' && !dbInfo.db.objectStoreNames.contains(dbInfo.storeName) && dbInfo.version <= dbInfo.db.version) {\n // increase the db version, to create the new ObjectStore\n if (dbInfo.db) {\n dbInfo.version = dbInfo.db.version + 1;\n }\n // Reopen the database for upgrading.\n return _getUpgradedConnection(dbInfo);\n }\n }).then(function () {\n return _tryReconnect(dbInfo).then(function () {\n createTransaction(dbInfo, mode, callback, retries - 1);\n });\n })[\"catch\"](callback);\n }\n\n callback(err);\n }\n}\n\nfunction createDbContext() {\n return {\n // Running localForages sharing a database.\n forages: [],\n // Shared database.\n db: null,\n // Database readiness (promise).\n dbReady: null,\n // Deferred operations on the database.\n deferredOperations: []\n };\n}\n\n// Open the IndexedDB database (automatically creates one if one didn't\n// previously exist), using any options set in the config.\nfunction _initStorage(options) {\n var self = this;\n var dbInfo = {\n db: null\n };\n\n if (options) {\n for (var i in options) {\n dbInfo[i] = options[i];\n }\n }\n\n // Get the current context of the database;\n var dbContext = dbContexts[dbInfo.name];\n\n // ...or create a new context.\n if (!dbContext) {\n dbContext = createDbContext();\n // Register the new context in the global container.\n dbContexts[dbInfo.name] = dbContext;\n }\n\n // Register itself as a running localForage in the current context.\n dbContext.forages.push(self);\n\n // Replace the default `ready()` function with the specialized one.\n if (!self._initReady) {\n self._initReady = self.ready;\n self.ready = _fullyReady;\n }\n\n // Create an array of initialization states of the related localForages.\n var initPromises = [];\n\n function ignoreErrors() {\n // Don't handle errors here,\n // just makes sure related localForages aren't pending.\n return Promise$1.resolve();\n }\n\n for (var j = 0; j < dbContext.forages.length; j++) {\n var forage = dbContext.forages[j];\n if (forage !== self) {\n // Don't wait for itself...\n initPromises.push(forage._initReady()[\"catch\"](ignoreErrors));\n }\n }\n\n // Take a snapshot of the related localForages.\n var forages = dbContext.forages.slice(0);\n\n // Initialize the connection process only when\n // all the related localForages aren't pending.\n return Promise$1.all(initPromises).then(function () {\n dbInfo.db = dbContext.db;\n // Get the connection or open a new one without upgrade.\n return _getOriginalConnection(dbInfo);\n }).then(function (db) {\n dbInfo.db = db;\n if (_isUpgradeNeeded(dbInfo, self._defaultConfig.version)) {\n // Reopen the database for upgrading.\n return _getUpgradedConnection(dbInfo);\n }\n return db;\n }).then(function (db) {\n dbInfo.db = dbContext.db = db;\n self._dbInfo = dbInfo;\n // Share the final connection amongst related localForages.\n for (var k = 0; k < forages.length; k++) {\n var forage = forages[k];\n if (forage !== self) {\n // Self is already up-to-date.\n forage._dbInfo.db = dbInfo.db;\n forage._dbInfo.version = dbInfo.version;\n }\n }\n });\n}\n\nfunction getItem(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.get(key);\n\n req.onsuccess = function () {\n var value = req.result;\n if (value === undefined) {\n value = null;\n }\n if (_isEncodedBlob(value)) {\n value = _decodeBlob(value);\n }\n resolve(value);\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Iterate over all items stored in database.\nfunction iterate(iterator, callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.openCursor();\n var iterationNumber = 1;\n\n req.onsuccess = function () {\n var cursor = req.result;\n\n if (cursor) {\n var value = cursor.value;\n if (_isEncodedBlob(value)) {\n value = _decodeBlob(value);\n }\n var result = iterator(value, cursor.key, iterationNumber++);\n\n // when the iterator callback returns any\n // (non-`undefined`) value, then we stop\n // the iteration immediately\n if (result !== void 0) {\n resolve(result);\n } else {\n cursor[\"continue\"]();\n }\n } else {\n resolve();\n }\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n\n return promise;\n}\n\nfunction setItem(key, value, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n var dbInfo;\n self.ready().then(function () {\n dbInfo = self._dbInfo;\n if (toString.call(value) === '[object Blob]') {\n return _checkBlobSupport(dbInfo.db).then(function (blobSupport) {\n if (blobSupport) {\n return value;\n }\n return _encodeBlob(value);\n });\n }\n return value;\n }).then(function (value) {\n createTransaction(self._dbInfo, READ_WRITE, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n\n // The reason we don't _save_ null is because IE 10 does\n // not support saving the `null` type in IndexedDB. How\n // ironic, given the bug below!\n // See: https://github.com/mozilla/localForage/issues/161\n if (value === null) {\n value = undefined;\n }\n\n var req = store.put(value, key);\n\n transaction.oncomplete = function () {\n // Cast to undefined so the value passed to\n // callback/promise is the same as what one would get out\n // of `getItem()` later. This leads to some weirdness\n // (setItem('foo', undefined) will return `null`), but\n // it's not my fault localStorage is our baseline and that\n // it's weird.\n if (value === undefined) {\n value = null;\n }\n\n resolve(value);\n };\n transaction.onabort = transaction.onerror = function () {\n var err = req.error ? req.error : req.transaction.error;\n reject(err);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction removeItem(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_WRITE, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n // We use a Grunt task to make this safe for IE and some\n // versions of Android (including those used by Cordova).\n // Normally IE won't like `.delete()` and will insist on\n // using `['delete']()`, but we have a build step that\n // fixes this for us now.\n var req = store[\"delete\"](key);\n transaction.oncomplete = function () {\n resolve();\n };\n\n transaction.onerror = function () {\n reject(req.error);\n };\n\n // The request will be also be aborted if we've exceeded our storage\n // space.\n transaction.onabort = function () {\n var err = req.error ? req.error : req.transaction.error;\n reject(err);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction clear(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_WRITE, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.clear();\n\n transaction.oncomplete = function () {\n resolve();\n };\n\n transaction.onabort = transaction.onerror = function () {\n var err = req.error ? req.error : req.transaction.error;\n reject(err);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction length(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.count();\n\n req.onsuccess = function () {\n resolve(req.result);\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction key(n, callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n if (n < 0) {\n resolve(null);\n\n return;\n }\n\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var advanced = false;\n var req = store.openKeyCursor();\n\n req.onsuccess = function () {\n var cursor = req.result;\n if (!cursor) {\n // this means there weren't enough keys\n resolve(null);\n\n return;\n }\n\n if (n === 0) {\n // We have the first key, return it if that's what they\n // wanted.\n resolve(cursor.key);\n } else {\n if (!advanced) {\n // Otherwise, ask the cursor to skip ahead n\n // records.\n advanced = true;\n cursor.advance(n);\n } else {\n // When we get here, we've got the nth key.\n resolve(cursor.key);\n }\n }\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction keys(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n createTransaction(self._dbInfo, READ_ONLY, function (err, transaction) {\n if (err) {\n return reject(err);\n }\n\n try {\n var store = transaction.objectStore(self._dbInfo.storeName);\n var req = store.openKeyCursor();\n var keys = [];\n\n req.onsuccess = function () {\n var cursor = req.result;\n\n if (!cursor) {\n resolve(keys);\n return;\n }\n\n keys.push(cursor.key);\n cursor[\"continue\"]();\n };\n\n req.onerror = function () {\n reject(req.error);\n };\n } catch (e) {\n reject(e);\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction dropInstance(options, callback) {\n callback = getCallback.apply(this, arguments);\n\n var currentConfig = this.config();\n options = typeof options !== 'function' && options || {};\n if (!options.name) {\n options.name = options.name || currentConfig.name;\n options.storeName = options.storeName || currentConfig.storeName;\n }\n\n var self = this;\n var promise;\n if (!options.name) {\n promise = Promise$1.reject('Invalid arguments');\n } else {\n var isCurrentDb = options.name === currentConfig.name && self._dbInfo.db;\n\n var dbPromise = isCurrentDb ? Promise$1.resolve(self._dbInfo.db) : _getOriginalConnection(options).then(function (db) {\n var dbContext = dbContexts[options.name];\n var forages = dbContext.forages;\n dbContext.db = db;\n for (var i = 0; i < forages.length; i++) {\n forages[i]._dbInfo.db = db;\n }\n return db;\n });\n\n if (!options.storeName) {\n promise = dbPromise.then(function (db) {\n _deferReadiness(options);\n\n var dbContext = dbContexts[options.name];\n var forages = dbContext.forages;\n\n db.close();\n for (var i = 0; i < forages.length; i++) {\n var forage = forages[i];\n forage._dbInfo.db = null;\n }\n\n var dropDBPromise = new Promise$1(function (resolve, reject) {\n var req = idb.deleteDatabase(options.name);\n\n req.onerror = req.onblocked = function (err) {\n var db = req.result;\n if (db) {\n db.close();\n }\n reject(err);\n };\n\n req.onsuccess = function () {\n var db = req.result;\n if (db) {\n db.close();\n }\n resolve(db);\n };\n });\n\n return dropDBPromise.then(function (db) {\n dbContext.db = db;\n for (var i = 0; i < forages.length; i++) {\n var _forage = forages[i];\n _advanceReadiness(_forage._dbInfo);\n }\n })[\"catch\"](function (err) {\n (_rejectReadiness(options, err) || Promise$1.resolve())[\"catch\"](function () {});\n throw err;\n });\n });\n } else {\n promise = dbPromise.then(function (db) {\n if (!db.objectStoreNames.contains(options.storeName)) {\n return;\n }\n\n var newVersion = db.version + 1;\n\n _deferReadiness(options);\n\n var dbContext = dbContexts[options.name];\n var forages = dbContext.forages;\n\n db.close();\n for (var i = 0; i < forages.length; i++) {\n var forage = forages[i];\n forage._dbInfo.db = null;\n forage._dbInfo.version = newVersion;\n }\n\n var dropObjectPromise = new Promise$1(function (resolve, reject) {\n var req = idb.open(options.name, newVersion);\n\n req.onerror = function (err) {\n var db = req.result;\n db.close();\n reject(err);\n };\n\n req.onupgradeneeded = function () {\n var db = req.result;\n db.deleteObjectStore(options.storeName);\n };\n\n req.onsuccess = function () {\n var db = req.result;\n db.close();\n resolve(db);\n };\n });\n\n return dropObjectPromise.then(function (db) {\n dbContext.db = db;\n for (var j = 0; j < forages.length; j++) {\n var _forage2 = forages[j];\n _forage2._dbInfo.db = db;\n _advanceReadiness(_forage2._dbInfo);\n }\n })[\"catch\"](function (err) {\n (_rejectReadiness(options, err) || Promise$1.resolve())[\"catch\"](function () {});\n throw err;\n });\n });\n }\n }\n\n executeCallback(promise, callback);\n return promise;\n}\n\nvar asyncStorage = {\n _driver: 'asyncStorage',\n _initStorage: _initStorage,\n _support: isIndexedDBValid(),\n iterate: iterate,\n getItem: getItem,\n setItem: setItem,\n removeItem: removeItem,\n clear: clear,\n length: length,\n key: key,\n keys: keys,\n dropInstance: dropInstance\n};\n\nfunction isWebSQLValid() {\n return typeof openDatabase === 'function';\n}\n\n// Sadly, the best way to save binary data in WebSQL/localStorage is serializing\n// it to Base64, so this is how we store it to prevent very strange errors with less\n// verbose ways of binary <-> string data storage.\nvar BASE_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\nvar BLOB_TYPE_PREFIX = '~~local_forage_type~';\nvar BLOB_TYPE_PREFIX_REGEX = /^~~local_forage_type~([^~]+)~/;\n\nvar SERIALIZED_MARKER = '__lfsc__:';\nvar SERIALIZED_MARKER_LENGTH = SERIALIZED_MARKER.length;\n\n// OMG the serializations!\nvar TYPE_ARRAYBUFFER = 'arbf';\nvar TYPE_BLOB = 'blob';\nvar TYPE_INT8ARRAY = 'si08';\nvar TYPE_UINT8ARRAY = 'ui08';\nvar TYPE_UINT8CLAMPEDARRAY = 'uic8';\nvar TYPE_INT16ARRAY = 'si16';\nvar TYPE_INT32ARRAY = 'si32';\nvar TYPE_UINT16ARRAY = 'ur16';\nvar TYPE_UINT32ARRAY = 'ui32';\nvar TYPE_FLOAT32ARRAY = 'fl32';\nvar TYPE_FLOAT64ARRAY = 'fl64';\nvar TYPE_SERIALIZED_MARKER_LENGTH = SERIALIZED_MARKER_LENGTH + TYPE_ARRAYBUFFER.length;\n\nvar toString$1 = Object.prototype.toString;\n\nfunction stringToBuffer(serializedString) {\n // Fill the string into a ArrayBuffer.\n var bufferLength = serializedString.length * 0.75;\n var len = serializedString.length;\n var i;\n var p = 0;\n var encoded1, encoded2, encoded3, encoded4;\n\n if (serializedString[serializedString.length - 1] === '=') {\n bufferLength--;\n if (serializedString[serializedString.length - 2] === '=') {\n bufferLength--;\n }\n }\n\n var buffer = new ArrayBuffer(bufferLength);\n var bytes = new Uint8Array(buffer);\n\n for (i = 0; i < len; i += 4) {\n encoded1 = BASE_CHARS.indexOf(serializedString[i]);\n encoded2 = BASE_CHARS.indexOf(serializedString[i + 1]);\n encoded3 = BASE_CHARS.indexOf(serializedString[i + 2]);\n encoded4 = BASE_CHARS.indexOf(serializedString[i + 3]);\n\n /*jslint bitwise: true */\n bytes[p++] = encoded1 << 2 | encoded2 >> 4;\n bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2;\n bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63;\n }\n return buffer;\n}\n\n// Converts a buffer to a string to store, serialized, in the backend\n// storage library.\nfunction bufferToString(buffer) {\n // base64-arraybuffer\n var bytes = new Uint8Array(buffer);\n var base64String = '';\n var i;\n\n for (i = 0; i < bytes.length; i += 3) {\n /*jslint bitwise: true */\n base64String += BASE_CHARS[bytes[i] >> 2];\n base64String += BASE_CHARS[(bytes[i] & 3) << 4 | bytes[i + 1] >> 4];\n base64String += BASE_CHARS[(bytes[i + 1] & 15) << 2 | bytes[i + 2] >> 6];\n base64String += BASE_CHARS[bytes[i + 2] & 63];\n }\n\n if (bytes.length % 3 === 2) {\n base64String = base64String.substring(0, base64String.length - 1) + '=';\n } else if (bytes.length % 3 === 1) {\n base64String = base64String.substring(0, base64String.length - 2) + '==';\n }\n\n return base64String;\n}\n\n// Serialize a value, afterwards executing a callback (which usually\n// instructs the `setItem()` callback/promise to be executed). This is how\n// we store binary data with localStorage.\nfunction serialize(value, callback) {\n var valueType = '';\n if (value) {\n valueType = toString$1.call(value);\n }\n\n // Cannot use `value instanceof ArrayBuffer` or such here, as these\n // checks fail when running the tests using casper.js...\n //\n // TODO: See why those tests fail and use a better solution.\n if (value && (valueType === '[object ArrayBuffer]' || value.buffer && toString$1.call(value.buffer) === '[object ArrayBuffer]')) {\n // Convert binary arrays to a string and prefix the string with\n // a special marker.\n var buffer;\n var marker = SERIALIZED_MARKER;\n\n if (value instanceof ArrayBuffer) {\n buffer = value;\n marker += TYPE_ARRAYBUFFER;\n } else {\n buffer = value.buffer;\n\n if (valueType === '[object Int8Array]') {\n marker += TYPE_INT8ARRAY;\n } else if (valueType === '[object Uint8Array]') {\n marker += TYPE_UINT8ARRAY;\n } else if (valueType === '[object Uint8ClampedArray]') {\n marker += TYPE_UINT8CLAMPEDARRAY;\n } else if (valueType === '[object Int16Array]') {\n marker += TYPE_INT16ARRAY;\n } else if (valueType === '[object Uint16Array]') {\n marker += TYPE_UINT16ARRAY;\n } else if (valueType === '[object Int32Array]') {\n marker += TYPE_INT32ARRAY;\n } else if (valueType === '[object Uint32Array]') {\n marker += TYPE_UINT32ARRAY;\n } else if (valueType === '[object Float32Array]') {\n marker += TYPE_FLOAT32ARRAY;\n } else if (valueType === '[object Float64Array]') {\n marker += TYPE_FLOAT64ARRAY;\n } else {\n callback(new Error('Failed to get type for BinaryArray'));\n }\n }\n\n callback(marker + bufferToString(buffer));\n } else if (valueType === '[object Blob]') {\n // Conver the blob to a binaryArray and then to a string.\n var fileReader = new FileReader();\n\n fileReader.onload = function () {\n // Backwards-compatible prefix for the blob type.\n var str = BLOB_TYPE_PREFIX + value.type + '~' + bufferToString(this.result);\n\n callback(SERIALIZED_MARKER + TYPE_BLOB + str);\n };\n\n fileReader.readAsArrayBuffer(value);\n } else {\n try {\n callback(JSON.stringify(value));\n } catch (e) {\n console.error(\"Couldn't convert value into a JSON string: \", value);\n\n callback(null, e);\n }\n }\n}\n\n// Deserialize data we've inserted into a value column/field. We place\n// special markers into our strings to mark them as encoded; this isn't\n// as nice as a meta field, but it's the only sane thing we can do whilst\n// keeping localStorage support intact.\n//\n// Oftentimes this will just deserialize JSON content, but if we have a\n// special marker (SERIALIZED_MARKER, defined above), we will extract\n// some kind of arraybuffer/binary data/typed array out of the string.\nfunction deserialize(value) {\n // If we haven't marked this string as being specially serialized (i.e.\n // something other than serialized JSON), we can just return it and be\n // done with it.\n if (value.substring(0, SERIALIZED_MARKER_LENGTH) !== SERIALIZED_MARKER) {\n return JSON.parse(value);\n }\n\n // The following code deals with deserializing some kind of Blob or\n // TypedArray. First we separate out the type of data we're dealing\n // with from the data itself.\n var serializedString = value.substring(TYPE_SERIALIZED_MARKER_LENGTH);\n var type = value.substring(SERIALIZED_MARKER_LENGTH, TYPE_SERIALIZED_MARKER_LENGTH);\n\n var blobType;\n // Backwards-compatible blob type serialization strategy.\n // DBs created with older versions of localForage will simply not have the blob type.\n if (type === TYPE_BLOB && BLOB_TYPE_PREFIX_REGEX.test(serializedString)) {\n var matcher = serializedString.match(BLOB_TYPE_PREFIX_REGEX);\n blobType = matcher[1];\n serializedString = serializedString.substring(matcher[0].length);\n }\n var buffer = stringToBuffer(serializedString);\n\n // Return the right type based on the code/type set during\n // serialization.\n switch (type) {\n case TYPE_ARRAYBUFFER:\n return buffer;\n case TYPE_BLOB:\n return createBlob([buffer], { type: blobType });\n case TYPE_INT8ARRAY:\n return new Int8Array(buffer);\n case TYPE_UINT8ARRAY:\n return new Uint8Array(buffer);\n case TYPE_UINT8CLAMPEDARRAY:\n return new Uint8ClampedArray(buffer);\n case TYPE_INT16ARRAY:\n return new Int16Array(buffer);\n case TYPE_UINT16ARRAY:\n return new Uint16Array(buffer);\n case TYPE_INT32ARRAY:\n return new Int32Array(buffer);\n case TYPE_UINT32ARRAY:\n return new Uint32Array(buffer);\n case TYPE_FLOAT32ARRAY:\n return new Float32Array(buffer);\n case TYPE_FLOAT64ARRAY:\n return new Float64Array(buffer);\n default:\n throw new Error('Unkown type: ' + type);\n }\n}\n\nvar localforageSerializer = {\n serialize: serialize,\n deserialize: deserialize,\n stringToBuffer: stringToBuffer,\n bufferToString: bufferToString\n};\n\n/*\n * Includes code from:\n *\n * base64-arraybuffer\n * https://github.com/niklasvh/base64-arraybuffer\n *\n * Copyright (c) 2012 Niklas von Hertzen\n * Licensed under the MIT license.\n */\n\nfunction createDbTable(t, dbInfo, callback, errorCallback) {\n t.executeSql('CREATE TABLE IF NOT EXISTS ' + dbInfo.storeName + ' ' + '(id INTEGER PRIMARY KEY, key unique, value)', [], callback, errorCallback);\n}\n\n// Open the WebSQL database (automatically creates one if one didn't\n// previously exist), using any options set in the config.\nfunction _initStorage$1(options) {\n var self = this;\n var dbInfo = {\n db: null\n };\n\n if (options) {\n for (var i in options) {\n dbInfo[i] = typeof options[i] !== 'string' ? options[i].toString() : options[i];\n }\n }\n\n var dbInfoPromise = new Promise$1(function (resolve, reject) {\n // Open the database; the openDatabase API will automatically\n // create it for us if it doesn't exist.\n try {\n dbInfo.db = openDatabase(dbInfo.name, String(dbInfo.version), dbInfo.description, dbInfo.size);\n } catch (e) {\n return reject(e);\n }\n\n // Create our key/value table if it doesn't exist.\n dbInfo.db.transaction(function (t) {\n createDbTable(t, dbInfo, function () {\n self._dbInfo = dbInfo;\n resolve();\n }, function (t, error) {\n reject(error);\n });\n }, reject);\n });\n\n dbInfo.serializer = localforageSerializer;\n return dbInfoPromise;\n}\n\nfunction tryExecuteSql(t, dbInfo, sqlStatement, args, callback, errorCallback) {\n t.executeSql(sqlStatement, args, callback, function (t, error) {\n if (error.code === error.SYNTAX_ERR) {\n t.executeSql('SELECT name FROM sqlite_master ' + \"WHERE type='table' AND name = ?\", [dbInfo.storeName], function (t, results) {\n if (!results.rows.length) {\n // if the table is missing (was deleted)\n // re-create it table and retry\n createDbTable(t, dbInfo, function () {\n t.executeSql(sqlStatement, args, callback, errorCallback);\n }, errorCallback);\n } else {\n errorCallback(t, error);\n }\n }, errorCallback);\n } else {\n errorCallback(t, error);\n }\n }, errorCallback);\n}\n\nfunction getItem$1(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'SELECT * FROM ' + dbInfo.storeName + ' WHERE key = ? LIMIT 1', [key], function (t, results) {\n var result = results.rows.length ? results.rows.item(0).value : null;\n\n // Check to see if this is serialized content we need to\n // unpack.\n if (result) {\n result = dbInfo.serializer.deserialize(result);\n }\n\n resolve(result);\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction iterate$1(iterator, callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'SELECT * FROM ' + dbInfo.storeName, [], function (t, results) {\n var rows = results.rows;\n var length = rows.length;\n\n for (var i = 0; i < length; i++) {\n var item = rows.item(i);\n var result = item.value;\n\n // Check to see if this is serialized content\n // we need to unpack.\n if (result) {\n result = dbInfo.serializer.deserialize(result);\n }\n\n result = iterator(result, item.key, i + 1);\n\n // void(0) prevents problems with redefinition\n // of `undefined`.\n if (result !== void 0) {\n resolve(result);\n return;\n }\n }\n\n resolve();\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction _setItem(key, value, callback, retriesLeft) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n // The localStorage API doesn't return undefined values in an\n // \"expected\" way, so undefined is always cast to null in all\n // drivers. See: https://github.com/mozilla/localForage/pull/42\n if (value === undefined) {\n value = null;\n }\n\n // Save the original value to pass to the callback.\n var originalValue = value;\n\n var dbInfo = self._dbInfo;\n dbInfo.serializer.serialize(value, function (value, error) {\n if (error) {\n reject(error);\n } else {\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'INSERT OR REPLACE INTO ' + dbInfo.storeName + ' ' + '(key, value) VALUES (?, ?)', [key, value], function () {\n resolve(originalValue);\n }, function (t, error) {\n reject(error);\n });\n }, function (sqlError) {\n // The transaction failed; check\n // to see if it's a quota error.\n if (sqlError.code === sqlError.QUOTA_ERR) {\n // We reject the callback outright for now, but\n // it's worth trying to re-run the transaction.\n // Even if the user accepts the prompt to use\n // more storage on Safari, this error will\n // be called.\n //\n // Try to re-run the transaction.\n if (retriesLeft > 0) {\n resolve(_setItem.apply(self, [key, originalValue, callback, retriesLeft - 1]));\n return;\n }\n reject(sqlError);\n }\n });\n }\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction setItem$1(key, value, callback) {\n return _setItem.apply(this, [key, value, callback, 1]);\n}\n\nfunction removeItem$1(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'DELETE FROM ' + dbInfo.storeName + ' WHERE key = ?', [key], function () {\n resolve();\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Deletes every item in the table.\n// TODO: Find out if this resets the AUTO_INCREMENT number.\nfunction clear$1(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'DELETE FROM ' + dbInfo.storeName, [], function () {\n resolve();\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Does a simple `COUNT(key)` to get the number of items stored in\n// localForage.\nfunction length$1(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n // Ahhh, SQL makes this one soooooo easy.\n tryExecuteSql(t, dbInfo, 'SELECT COUNT(key) as c FROM ' + dbInfo.storeName, [], function (t, results) {\n var result = results.rows.item(0).c;\n resolve(result);\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Return the key located at key index X; essentially gets the key from a\n// `WHERE id = ?`. This is the most efficient way I can think to implement\n// this rarely-used (in my experience) part of the API, but it can seem\n// inconsistent, because we do `INSERT OR REPLACE INTO` on `setItem()`, so\n// the ID of each key will change every time it's updated. Perhaps a stored\n// procedure for the `setItem()` SQL would solve this problem?\n// TODO: Don't change ID on `setItem()`.\nfunction key$1(n, callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'SELECT key FROM ' + dbInfo.storeName + ' WHERE id = ? LIMIT 1', [n + 1], function (t, results) {\n var result = results.rows.length ? results.rows.item(0).key : null;\n resolve(result);\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction keys$1(callback) {\n var self = this;\n\n var promise = new Promise$1(function (resolve, reject) {\n self.ready().then(function () {\n var dbInfo = self._dbInfo;\n dbInfo.db.transaction(function (t) {\n tryExecuteSql(t, dbInfo, 'SELECT key FROM ' + dbInfo.storeName, [], function (t, results) {\n var keys = [];\n\n for (var i = 0; i < results.rows.length; i++) {\n keys.push(results.rows.item(i).key);\n }\n\n resolve(keys);\n }, function (t, error) {\n reject(error);\n });\n });\n })[\"catch\"](reject);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// https://www.w3.org/TR/webdatabase/#databases\n// > There is no way to enumerate or delete the databases available for an origin from this API.\nfunction getAllStoreNames(db) {\n return new Promise$1(function (resolve, reject) {\n db.transaction(function (t) {\n t.executeSql('SELECT name FROM sqlite_master ' + \"WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'\", [], function (t, results) {\n var storeNames = [];\n\n for (var i = 0; i < results.rows.length; i++) {\n storeNames.push(results.rows.item(i).name);\n }\n\n resolve({\n db: db,\n storeNames: storeNames\n });\n }, function (t, error) {\n reject(error);\n });\n }, function (sqlError) {\n reject(sqlError);\n });\n });\n}\n\nfunction dropInstance$1(options, callback) {\n callback = getCallback.apply(this, arguments);\n\n var currentConfig = this.config();\n options = typeof options !== 'function' && options || {};\n if (!options.name) {\n options.name = options.name || currentConfig.name;\n options.storeName = options.storeName || currentConfig.storeName;\n }\n\n var self = this;\n var promise;\n if (!options.name) {\n promise = Promise$1.reject('Invalid arguments');\n } else {\n promise = new Promise$1(function (resolve) {\n var db;\n if (options.name === currentConfig.name) {\n // use the db reference of the current instance\n db = self._dbInfo.db;\n } else {\n db = openDatabase(options.name, '', '', 0);\n }\n\n if (!options.storeName) {\n // drop all database tables\n resolve(getAllStoreNames(db));\n } else {\n resolve({\n db: db,\n storeNames: [options.storeName]\n });\n }\n }).then(function (operationInfo) {\n return new Promise$1(function (resolve, reject) {\n operationInfo.db.transaction(function (t) {\n function dropTable(storeName) {\n return new Promise$1(function (resolve, reject) {\n t.executeSql('DROP TABLE IF EXISTS ' + storeName, [], function () {\n resolve();\n }, function (t, error) {\n reject(error);\n });\n });\n }\n\n var operations = [];\n for (var i = 0, len = operationInfo.storeNames.length; i < len; i++) {\n operations.push(dropTable(operationInfo.storeNames[i]));\n }\n\n Promise$1.all(operations).then(function () {\n resolve();\n })[\"catch\"](function (e) {\n reject(e);\n });\n }, function (sqlError) {\n reject(sqlError);\n });\n });\n });\n }\n\n executeCallback(promise, callback);\n return promise;\n}\n\nvar webSQLStorage = {\n _driver: 'webSQLStorage',\n _initStorage: _initStorage$1,\n _support: isWebSQLValid(),\n iterate: iterate$1,\n getItem: getItem$1,\n setItem: setItem$1,\n removeItem: removeItem$1,\n clear: clear$1,\n length: length$1,\n key: key$1,\n keys: keys$1,\n dropInstance: dropInstance$1\n};\n\nfunction isLocalStorageValid() {\n try {\n return typeof localStorage !== 'undefined' && 'setItem' in localStorage &&\n // in IE8 typeof localStorage.setItem === 'object'\n !!localStorage.setItem;\n } catch (e) {\n return false;\n }\n}\n\nfunction _getKeyPrefix(options, defaultConfig) {\n var keyPrefix = options.name + '/';\n\n if (options.storeName !== defaultConfig.storeName) {\n keyPrefix += options.storeName + '/';\n }\n return keyPrefix;\n}\n\n// Check if localStorage throws when saving an item\nfunction checkIfLocalStorageThrows() {\n var localStorageTestKey = '_localforage_support_test';\n\n try {\n localStorage.setItem(localStorageTestKey, true);\n localStorage.removeItem(localStorageTestKey);\n\n return false;\n } catch (e) {\n return true;\n }\n}\n\n// Check if localStorage is usable and allows to save an item\n// This method checks if localStorage is usable in Safari Private Browsing\n// mode, or in any other case where the available quota for localStorage\n// is 0 and there wasn't any saved items yet.\nfunction _isLocalStorageUsable() {\n return !checkIfLocalStorageThrows() || localStorage.length > 0;\n}\n\n// Config the localStorage backend, using options set in the config.\nfunction _initStorage$2(options) {\n var self = this;\n var dbInfo = {};\n if (options) {\n for (var i in options) {\n dbInfo[i] = options[i];\n }\n }\n\n dbInfo.keyPrefix = _getKeyPrefix(options, self._defaultConfig);\n\n if (!_isLocalStorageUsable()) {\n return Promise$1.reject();\n }\n\n self._dbInfo = dbInfo;\n dbInfo.serializer = localforageSerializer;\n\n return Promise$1.resolve();\n}\n\n// Remove all keys from the datastore, effectively destroying all data in\n// the app's key/value store!\nfunction clear$2(callback) {\n var self = this;\n var promise = self.ready().then(function () {\n var keyPrefix = self._dbInfo.keyPrefix;\n\n for (var i = localStorage.length - 1; i >= 0; i--) {\n var key = localStorage.key(i);\n\n if (key.indexOf(keyPrefix) === 0) {\n localStorage.removeItem(key);\n }\n }\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Retrieve an item from the store. Unlike the original async_storage\n// library in Gaia, we don't modify return values at all. If a key's value\n// is `undefined`, we pass that value to the callback function.\nfunction getItem$2(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n var result = localStorage.getItem(dbInfo.keyPrefix + key);\n\n // If a result was found, parse it from the serialized\n // string into a JS object. If result isn't truthy, the key\n // is likely undefined and we'll pass it straight to the\n // callback.\n if (result) {\n result = dbInfo.serializer.deserialize(result);\n }\n\n return result;\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Iterate over all items in the store.\nfunction iterate$2(iterator, callback) {\n var self = this;\n\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n var keyPrefix = dbInfo.keyPrefix;\n var keyPrefixLength = keyPrefix.length;\n var length = localStorage.length;\n\n // We use a dedicated iterator instead of the `i` variable below\n // so other keys we fetch in localStorage aren't counted in\n // the `iterationNumber` argument passed to the `iterate()`\n // callback.\n //\n // See: github.com/mozilla/localForage/pull/435#discussion_r38061530\n var iterationNumber = 1;\n\n for (var i = 0; i < length; i++) {\n var key = localStorage.key(i);\n if (key.indexOf(keyPrefix) !== 0) {\n continue;\n }\n var value = localStorage.getItem(key);\n\n // If a result was found, parse it from the serialized\n // string into a JS object. If result isn't truthy, the\n // key is likely undefined and we'll pass it straight\n // to the iterator.\n if (value) {\n value = dbInfo.serializer.deserialize(value);\n }\n\n value = iterator(value, key.substring(keyPrefixLength), iterationNumber++);\n\n if (value !== void 0) {\n return value;\n }\n }\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Same as localStorage's key() method, except takes a callback.\nfunction key$2(n, callback) {\n var self = this;\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n var result;\n try {\n result = localStorage.key(n);\n } catch (error) {\n result = null;\n }\n\n // Remove the prefix from the key, if a key is found.\n if (result) {\n result = result.substring(dbInfo.keyPrefix.length);\n }\n\n return result;\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction keys$2(callback) {\n var self = this;\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n var length = localStorage.length;\n var keys = [];\n\n for (var i = 0; i < length; i++) {\n var itemKey = localStorage.key(i);\n if (itemKey.indexOf(dbInfo.keyPrefix) === 0) {\n keys.push(itemKey.substring(dbInfo.keyPrefix.length));\n }\n }\n\n return keys;\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Supply the number of keys in the datastore to the callback function.\nfunction length$2(callback) {\n var self = this;\n var promise = self.keys().then(function (keys) {\n return keys.length;\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Remove an item from the store, nice and simple.\nfunction removeItem$2(key, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = self.ready().then(function () {\n var dbInfo = self._dbInfo;\n localStorage.removeItem(dbInfo.keyPrefix + key);\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\n// Set a key's value and run an optional callback once the value is set.\n// Unlike Gaia's implementation, the callback function is passed the value,\n// in case you want to operate on that value only after you're sure it\n// saved, or something like that.\nfunction setItem$2(key, value, callback) {\n var self = this;\n\n key = normalizeKey(key);\n\n var promise = self.ready().then(function () {\n // Convert undefined values to null.\n // https://github.com/mozilla/localForage/pull/42\n if (value === undefined) {\n value = null;\n }\n\n // Save the original value to pass to the callback.\n var originalValue = value;\n\n return new Promise$1(function (resolve, reject) {\n var dbInfo = self._dbInfo;\n dbInfo.serializer.serialize(value, function (value, error) {\n if (error) {\n reject(error);\n } else {\n try {\n localStorage.setItem(dbInfo.keyPrefix + key, value);\n resolve(originalValue);\n } catch (e) {\n // localStorage capacity exceeded.\n // TODO: Make this a specific error/event.\n if (e.name === 'QuotaExceededError' || e.name === 'NS_ERROR_DOM_QUOTA_REACHED') {\n reject(e);\n }\n reject(e);\n }\n }\n });\n });\n });\n\n executeCallback(promise, callback);\n return promise;\n}\n\nfunction dropInstance$2(options, callback) {\n callback = getCallback.apply(this, arguments);\n\n options = typeof options !== 'function' && options || {};\n if (!options.name) {\n var currentConfig = this.config();\n options.name = options.name || currentConfig.name;\n options.storeName = options.storeName || currentConfig.storeName;\n }\n\n var self = this;\n var promise;\n if (!options.name) {\n promise = Promise$1.reject('Invalid arguments');\n } else {\n promise = new Promise$1(function (resolve) {\n if (!options.storeName) {\n resolve(options.name + '/');\n } else {\n resolve(_getKeyPrefix(options, self._defaultConfig));\n }\n }).then(function (keyPrefix) {\n for (var i = localStorage.length - 1; i >= 0; i--) {\n var key = localStorage.key(i);\n\n if (key.indexOf(keyPrefix) === 0) {\n localStorage.removeItem(key);\n }\n }\n });\n }\n\n executeCallback(promise, callback);\n return promise;\n}\n\nvar localStorageWrapper = {\n _driver: 'localStorageWrapper',\n _initStorage: _initStorage$2,\n _support: isLocalStorageValid(),\n iterate: iterate$2,\n getItem: getItem$2,\n setItem: setItem$2,\n removeItem: removeItem$2,\n clear: clear$2,\n length: length$2,\n key: key$2,\n keys: keys$2,\n dropInstance: dropInstance$2\n};\n\nvar sameValue = function sameValue(x, y) {\n return x === y || typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y);\n};\n\nvar includes = function includes(array, searchElement) {\n var len = array.length;\n var i = 0;\n while (i < len) {\n if (sameValue(array[i], searchElement)) {\n return true;\n }\n i++;\n }\n\n return false;\n};\n\nvar isArray = Array.isArray || function (arg) {\n return Object.prototype.toString.call(arg) === '[object Array]';\n};\n\n// Drivers are stored here when `defineDriver()` is called.\n// They are shared across all instances of localForage.\nvar DefinedDrivers = {};\n\nvar DriverSupport = {};\n\nvar DefaultDrivers = {\n INDEXEDDB: asyncStorage,\n WEBSQL: webSQLStorage,\n LOCALSTORAGE: localStorageWrapper\n};\n\nvar DefaultDriverOrder = [DefaultDrivers.INDEXEDDB._driver, DefaultDrivers.WEBSQL._driver, DefaultDrivers.LOCALSTORAGE._driver];\n\nvar OptionalDriverMethods = ['dropInstance'];\n\nvar LibraryMethods = ['clear', 'getItem', 'iterate', 'key', 'keys', 'length', 'removeItem', 'setItem'].concat(OptionalDriverMethods);\n\nvar DefaultConfig = {\n description: '',\n driver: DefaultDriverOrder.slice(),\n name: 'localforage',\n // Default DB size is _JUST UNDER_ 5MB, as it's the highest size\n // we can use without a prompt.\n size: 4980736,\n storeName: 'keyvaluepairs',\n version: 1.0\n};\n\nfunction callWhenReady(localForageInstance, libraryMethod) {\n localForageInstance[libraryMethod] = function () {\n var _args = arguments;\n return localForageInstance.ready().then(function () {\n return localForageInstance[libraryMethod].apply(localForageInstance, _args);\n });\n };\n}\n\nfunction extend() {\n for (var i = 1; i < arguments.length; i++) {\n var arg = arguments[i];\n\n if (arg) {\n for (var _key in arg) {\n if (arg.hasOwnProperty(_key)) {\n if (isArray(arg[_key])) {\n arguments[0][_key] = arg[_key].slice();\n } else {\n arguments[0][_key] = arg[_key];\n }\n }\n }\n }\n }\n\n return arguments[0];\n}\n\nvar LocalForage = function () {\n function LocalForage(options) {\n _classCallCheck(this, LocalForage);\n\n for (var driverTypeKey in DefaultDrivers) {\n if (DefaultDrivers.hasOwnProperty(driverTypeKey)) {\n var driver = DefaultDrivers[driverTypeKey];\n var driverName = driver._driver;\n this[driverTypeKey] = driverName;\n\n if (!DefinedDrivers[driverName]) {\n // we don't need to wait for the promise,\n // since the default drivers can be defined\n // in a blocking manner\n this.defineDriver(driver);\n }\n }\n }\n\n this._defaultConfig = extend({}, DefaultConfig);\n this._config = extend({}, this._defaultConfig, options);\n this._driverSet = null;\n this._initDriver = null;\n this._ready = false;\n this._dbInfo = null;\n\n this._wrapLibraryMethodsWithReady();\n this.setDriver(this._config.driver)[\"catch\"](function () {});\n }\n\n // Set any config values for localForage; can be called anytime before\n // the first API call (e.g. `getItem`, `setItem`).\n // We loop through options so we don't overwrite existing config\n // values.\n\n\n LocalForage.prototype.config = function config(options) {\n // If the options argument is an object, we use it to set values.\n // Otherwise, we return either a specified config value or all\n // config values.\n if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\n // If localforage is ready and fully initialized, we can't set\n // any new configuration values. Instead, we return an error.\n if (this._ready) {\n return new Error(\"Can't call config() after localforage \" + 'has been used.');\n }\n\n for (var i in options) {\n if (i === 'storeName') {\n options[i] = options[i].replace(/\\W/g, '_');\n }\n\n if (i === 'version' && typeof options[i] !== 'number') {\n return new Error('Database version must be a number.');\n }\n\n this._config[i] = options[i];\n }\n\n // after all config options are set and\n // the driver option is used, try setting it\n if ('driver' in options && options.driver) {\n return this.setDriver(this._config.driver);\n }\n\n return true;\n } else if (typeof options === 'string') {\n return this._config[options];\n } else {\n return this._config;\n }\n };\n\n // Used to define a custom driver, shared across all instances of\n // localForage.\n\n\n LocalForage.prototype.defineDriver = function defineDriver(driverObject, callback, errorCallback) {\n var promise = new Promise$1(function (resolve, reject) {\n try {\n var driverName = driverObject._driver;\n var complianceError = new Error('Custom driver not compliant; see ' + 'https://mozilla.github.io/localForage/#definedriver');\n\n // A driver name should be defined and not overlap with the\n // library-defined, default drivers.\n if (!driverObject._driver) {\n reject(complianceError);\n return;\n }\n\n var driverMethods = LibraryMethods.concat('_initStorage');\n for (var i = 0, len = driverMethods.length; i < len; i++) {\n var driverMethodName = driverMethods[i];\n\n // when the property is there,\n // it should be a method even when optional\n var isRequired = !includes(OptionalDriverMethods, driverMethodName);\n if ((isRequired || driverObject[driverMethodName]) && typeof driverObject[driverMethodName] !== 'function') {\n reject(complianceError);\n return;\n }\n }\n\n var configureMissingMethods = function configureMissingMethods() {\n var methodNotImplementedFactory = function methodNotImplementedFactory(methodName) {\n return function () {\n var error = new Error('Method ' + methodName + ' is not implemented by the current driver');\n var promise = Promise$1.reject(error);\n executeCallback(promise, arguments[arguments.length - 1]);\n return promise;\n };\n };\n\n for (var _i = 0, _len = OptionalDriverMethods.length; _i < _len; _i++) {\n var optionalDriverMethod = OptionalDriverMethods[_i];\n if (!driverObject[optionalDriverMethod]) {\n driverObject[optionalDriverMethod] = methodNotImplementedFactory(optionalDriverMethod);\n }\n }\n };\n\n configureMissingMethods();\n\n var setDriverSupport = function setDriverSupport(support) {\n if (DefinedDrivers[driverName]) {\n console.info('Redefining LocalForage driver: ' + driverName);\n }\n DefinedDrivers[driverName] = driverObject;\n DriverSupport[driverName] = support;\n // don't use a then, so that we can define\n // drivers that have simple _support methods\n // in a blocking manner\n resolve();\n };\n\n if ('_support' in driverObject) {\n if (driverObject._support && typeof driverObject._support === 'function') {\n driverObject._support().then(setDriverSupport, reject);\n } else {\n setDriverSupport(!!driverObject._support);\n }\n } else {\n setDriverSupport(true);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n executeTwoCallbacks(promise, callback, errorCallback);\n return promise;\n };\n\n LocalForage.prototype.driver = function driver() {\n return this._driver || null;\n };\n\n LocalForage.prototype.getDriver = function getDriver(driverName, callback, errorCallback) {\n var getDriverPromise = DefinedDrivers[driverName] ? Promise$1.resolve(DefinedDrivers[driverName]) : Promise$1.reject(new Error('Driver not found.'));\n\n executeTwoCallbacks(getDriverPromise, callback, errorCallback);\n return getDriverPromise;\n };\n\n LocalForage.prototype.getSerializer = function getSerializer(callback) {\n var serializerPromise = Promise$1.resolve(localforageSerializer);\n executeTwoCallbacks(serializerPromise, callback);\n return serializerPromise;\n };\n\n LocalForage.prototype.ready = function ready(callback) {\n var self = this;\n\n var promise = self._driverSet.then(function () {\n if (self._ready === null) {\n self._ready = self._initDriver();\n }\n\n return self._ready;\n });\n\n executeTwoCallbacks(promise, callback, callback);\n return promise;\n };\n\n LocalForage.prototype.setDriver = function setDriver(drivers, callback, errorCallback) {\n var self = this;\n\n if (!isArray(drivers)) {\n drivers = [drivers];\n }\n\n var supportedDrivers = this._getSupportedDrivers(drivers);\n\n function setDriverToConfig() {\n self._config.driver = self.driver();\n }\n\n function extendSelfWithDriver(driver) {\n self._extend(driver);\n setDriverToConfig();\n\n self._ready = self._initStorage(self._config);\n return self._ready;\n }\n\n function initDriver(supportedDrivers) {\n return function () {\n var currentDriverIndex = 0;\n\n function driverPromiseLoop() {\n while (currentDriverIndex < supportedDrivers.length) {\n var driverName = supportedDrivers[currentDriverIndex];\n currentDriverIndex++;\n\n self._dbInfo = null;\n self._ready = null;\n\n return self.getDriver(driverName).then(extendSelfWithDriver)[\"catch\"](driverPromiseLoop);\n }\n\n setDriverToConfig();\n var error = new Error('No available storage method found.');\n self._driverSet = Promise$1.reject(error);\n return self._driverSet;\n }\n\n return driverPromiseLoop();\n };\n }\n\n // There might be a driver initialization in progress\n // so wait for it to finish in order to avoid a possible\n // race condition to set _dbInfo\n var oldDriverSetDone = this._driverSet !== null ? this._driverSet[\"catch\"](function () {\n return Promise$1.resolve();\n }) : Promise$1.resolve();\n\n this._driverSet = oldDriverSetDone.then(function () {\n var driverName = supportedDrivers[0];\n self._dbInfo = null;\n self._ready = null;\n\n return self.getDriver(driverName).then(function (driver) {\n self._driver = driver._driver;\n setDriverToConfig();\n self._wrapLibraryMethodsWithReady();\n self._initDriver = initDriver(supportedDrivers);\n });\n })[\"catch\"](function () {\n setDriverToConfig();\n var error = new Error('No available storage method found.');\n self._driverSet = Promise$1.reject(error);\n return self._driverSet;\n });\n\n executeTwoCallbacks(this._driverSet, callback, errorCallback);\n return this._driverSet;\n };\n\n LocalForage.prototype.supports = function supports(driverName) {\n return !!DriverSupport[driverName];\n };\n\n LocalForage.prototype._extend = function _extend(libraryMethodsAndProperties) {\n extend(this, libraryMethodsAndProperties);\n };\n\n LocalForage.prototype._getSupportedDrivers = function _getSupportedDrivers(drivers) {\n var supportedDrivers = [];\n for (var i = 0, len = drivers.length; i < len; i++) {\n var driverName = drivers[i];\n if (this.supports(driverName)) {\n supportedDrivers.push(driverName);\n }\n }\n return supportedDrivers;\n };\n\n LocalForage.prototype._wrapLibraryMethodsWithReady = function _wrapLibraryMethodsWithReady() {\n // Add a stub for each driver API method that delays the call to the\n // corresponding driver method until localForage is ready. These stubs\n // will be replaced by the driver methods as soon as the driver is\n // loaded, so there is no performance impact.\n for (var i = 0, len = LibraryMethods.length; i < len; i++) {\n callWhenReady(this, LibraryMethods[i]);\n }\n };\n\n LocalForage.prototype.createInstance = function createInstance(options) {\n return new LocalForage(options);\n };\n\n return LocalForage;\n}();\n\n// The actual localForage object that we expose as a module or via a\n// global. It's extended by pulling in one of our other libraries.\n\n\nvar localforage_js = new LocalForage();\n\nmodule.exports = localforage_js;\n\n},{\"3\":3}]},{},[4])(4)\n});\n","/**\n * A doubly linked list-based Least Recently Used (LRU) cache. Will keep most\n * recently used items while discarding least recently used items when its limit\n * is reached.\n *\n * Licensed under MIT. Copyright (c) 2010 Rasmus Andersson \n * See README.md for details.\n *\n * Illustration of the design:\n *\n * entry entry entry entry\n * ______ ______ ______ ______\n * | head |.newer => | |.newer => | |.newer => | tail |\n * | A | | B | | C | | D |\n * |______| <= older.|______| <= older.|______| <= older.|______|\n *\n * removed <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- added\n */\n(function(g,f){\n const e = typeof exports == 'object' ? exports : typeof g == 'object' ? g : {};\n f(e);\n if (typeof define == 'function' && define.amd) { define('lru', e); }\n})(this, function(exports) {\n\nconst NEWER = Symbol('newer');\nconst OLDER = Symbol('older');\n\nfunction LRUMap(limit, entries) {\n if (typeof limit !== 'number') {\n // called as (entries)\n entries = limit;\n limit = 0;\n }\n\n this.size = 0;\n this.limit = limit;\n this.oldest = this.newest = undefined;\n this._keymap = new Map();\n\n if (entries) {\n this.assign(entries);\n if (limit < 1) {\n this.limit = this.size;\n }\n }\n}\n\nexports.LRUMap = LRUMap;\n\nfunction Entry(key, value) {\n this.key = key;\n this.value = value;\n this[NEWER] = undefined;\n this[OLDER] = undefined;\n}\n\n\nLRUMap.prototype._markEntryAsUsed = function(entry) {\n if (entry === this.newest) {\n // Already the most recenlty used entry, so no need to update the list\n return;\n }\n // HEAD--------------TAIL\n // <.older .newer>\n // <--- add direction --\n // A B C E\n if (entry[NEWER]) {\n if (entry === this.oldest) {\n this.oldest = entry[NEWER];\n }\n entry[NEWER][OLDER] = entry[OLDER]; // C <-- E.\n }\n if (entry[OLDER]) {\n entry[OLDER][NEWER] = entry[NEWER]; // C. --> E\n }\n entry[NEWER] = undefined; // D --x\n entry[OLDER] = this.newest; // D. --> E\n if (this.newest) {\n this.newest[NEWER] = entry; // E. <-- D\n }\n this.newest = entry;\n};\n\nLRUMap.prototype.assign = function(entries) {\n let entry, limit = this.limit || Number.MAX_VALUE;\n this._keymap.clear();\n let it = entries[Symbol.iterator]();\n for (let itv = it.next(); !itv.done; itv = it.next()) {\n let e = new Entry(itv.value[0], itv.value[1]);\n this._keymap.set(e.key, e);\n if (!entry) {\n this.oldest = e;\n } else {\n entry[NEWER] = e;\n e[OLDER] = entry;\n }\n entry = e;\n if (limit-- == 0) {\n throw new Error('overflow');\n }\n }\n this.newest = entry;\n this.size = this._keymap.size;\n};\n\nLRUMap.prototype.get = function(key) {\n // First, find our cache entry\n var entry = this._keymap.get(key);\n if (!entry) return; // Not cached. Sorry.\n // As was found in the cache, register it as being requested recently\n this._markEntryAsUsed(entry);\n return entry.value;\n};\n\nLRUMap.prototype.set = function(key, value) {\n var entry = this._keymap.get(key);\n\n if (entry) {\n // update existing\n entry.value = value;\n this._markEntryAsUsed(entry);\n return this;\n }\n\n // new entry\n this._keymap.set(key, (entry = new Entry(key, value)));\n\n if (this.newest) {\n // link previous tail to the new tail (entry)\n this.newest[NEWER] = entry;\n entry[OLDER] = this.newest;\n } else {\n // we're first in -- yay\n this.oldest = entry;\n }\n\n // add new entry to the end of the linked list -- it's now the freshest entry.\n this.newest = entry;\n ++this.size;\n if (this.size > this.limit) {\n // we hit the limit -- remove the head\n this.shift();\n }\n\n return this;\n};\n\nLRUMap.prototype.shift = function() {\n // todo: handle special case when limit == 1\n var entry = this.oldest;\n if (entry) {\n if (this.oldest[NEWER]) {\n // advance the list\n this.oldest = this.oldest[NEWER];\n this.oldest[OLDER] = undefined;\n } else {\n // the cache is exhausted\n this.oldest = undefined;\n this.newest = undefined;\n }\n // Remove last strong reference to and remove links from the purged\n // entry being returned:\n entry[NEWER] = entry[OLDER] = undefined;\n this._keymap.delete(entry.key);\n --this.size;\n return [entry.key, entry.value];\n }\n};\n\n// ----------------------------------------------------------------------------\n// Following code is optional and can be removed without breaking the core\n// functionality.\n\nLRUMap.prototype.find = function(key) {\n let e = this._keymap.get(key);\n return e ? e.value : undefined;\n};\n\nLRUMap.prototype.has = function(key) {\n return this._keymap.has(key);\n};\n\nLRUMap.prototype['delete'] = function(key) {\n var entry = this._keymap.get(key);\n if (!entry) return;\n this._keymap.delete(entry.key);\n if (entry[NEWER] && entry[OLDER]) {\n // relink the older entry with the newer entry\n entry[OLDER][NEWER] = entry[NEWER];\n entry[NEWER][OLDER] = entry[OLDER];\n } else if (entry[NEWER]) {\n // remove the link to us\n entry[NEWER][OLDER] = undefined;\n // link the newer entry to head\n this.oldest = entry[NEWER];\n } else if (entry[OLDER]) {\n // remove the link to us\n entry[OLDER][NEWER] = undefined;\n // link the newer entry to head\n this.newest = entry[OLDER];\n } else {// if(entry[OLDER] === undefined && entry.newer === undefined) {\n this.oldest = this.newest = undefined;\n }\n\n this.size--;\n return entry.value;\n};\n\nLRUMap.prototype.clear = function() {\n // Not clearing links should be safe, as we don't expose live links to user\n this.oldest = this.newest = undefined;\n this.size = 0;\n this._keymap.clear();\n};\n\n\nfunction EntryIterator(oldestEntry) { this.entry = oldestEntry; }\nEntryIterator.prototype[Symbol.iterator] = function() { return this; }\nEntryIterator.prototype.next = function() {\n let ent = this.entry;\n if (ent) {\n this.entry = ent[NEWER];\n return { done: false, value: [ent.key, ent.value] };\n } else {\n return { done: true, value: undefined };\n }\n};\n\n\nfunction KeyIterator(oldestEntry) { this.entry = oldestEntry; }\nKeyIterator.prototype[Symbol.iterator] = function() { return this; }\nKeyIterator.prototype.next = function() {\n let ent = this.entry;\n if (ent) {\n this.entry = ent[NEWER];\n return { done: false, value: ent.key };\n } else {\n return { done: true, value: undefined };\n }\n};\n\nfunction ValueIterator(oldestEntry) { this.entry = oldestEntry; }\nValueIterator.prototype[Symbol.iterator] = function() { return this; }\nValueIterator.prototype.next = function() {\n let ent = this.entry;\n if (ent) {\n this.entry = ent[NEWER];\n return { done: false, value: ent.value };\n } else {\n return { done: true, value: undefined };\n }\n};\n\n\nLRUMap.prototype.keys = function() {\n return new KeyIterator(this.oldest);\n};\n\nLRUMap.prototype.values = function() {\n return new ValueIterator(this.oldest);\n};\n\nLRUMap.prototype.entries = function() {\n return this;\n};\n\nLRUMap.prototype[Symbol.iterator] = function() {\n return new EntryIterator(this.oldest);\n};\n\nLRUMap.prototype.forEach = function(fun, thisObj) {\n if (typeof thisObj !== 'object') {\n thisObj = this;\n }\n let entry = this.oldest;\n while (entry) {\n fun.call(thisObj, entry.value, entry.key, this);\n entry = entry[NEWER];\n }\n};\n\n/** Returns a JSON (array) representation */\nLRUMap.prototype.toJSON = function() {\n var s = new Array(this.size), i = 0, entry = this.oldest;\n while (entry) {\n s[i++] = { key: entry.key, value: entry.value };\n entry = entry[NEWER];\n }\n return s;\n};\n\n/** Returns a String representation */\nLRUMap.prototype.toString = function() {\n var s = '', entry = this.oldest;\n while (entry) {\n s += String(entry.key)+':'+entry.value;\n entry = entry[NEWER];\n if (entry) {\n s += ' < ';\n }\n }\n return s;\n};\n\n});\n","import { addInstrumentationHandler, logger } from '@sentry/utils';\nimport { SpanStatus } from './spanstatus';\nimport { getActiveTransaction } from './utils';\n/**\n * Configures global error listeners\n */\nexport function registerErrorInstrumentation() {\n addInstrumentationHandler({\n callback: errorCallback,\n type: 'error',\n });\n addInstrumentationHandler({\n callback: errorCallback,\n type: 'unhandledrejection',\n });\n}\n/**\n * If an error or unhandled promise occurs, we mark the active transaction as failed\n */\nfunction errorCallback() {\n var activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n logger.log(\"[Tracing] Transaction: \" + SpanStatus.InternalError + \" -> Global error occured\");\n activeTransaction.setStatus(SpanStatus.InternalError);\n }\n}\n//# sourceMappingURL=errors.js.map","/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n\n/**\n * Module variables.\n * @private\n */\n\nvar decode = decodeURIComponent;\nvar encode = encodeURIComponent;\nvar pairSplitRegExp = /; */;\n\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {}\n var opt = options || {};\n var pairs = str.split(pairSplitRegExp);\n var dec = opt.decode || decode;\n\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n var eq_idx = pair.indexOf('=');\n\n // skip things that don't look like key=value\n if (eq_idx < 0) {\n continue;\n }\n\n var key = pair.substr(0, eq_idx).trim()\n var val = pair.substr(++eq_idx, pair.length).trim();\n\n // quoted values\n if ('\"' == val[0]) {\n val = val.slice(1, -1);\n }\n\n // only assign once\n if (undefined == obj[key]) {\n obj[key] = tryDecode(val, dec);\n }\n }\n\n return obj;\n}\n\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid')\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string'\n ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n","import { __assign, __values } from \"tslib\";\nimport { getGlobalObject } from './global';\nimport { isInstanceOf, isString } from './is';\nimport { logger } from './logger';\nimport { fill } from './object';\nimport { getFunctionName } from './stacktrace';\nimport { supportsHistory, supportsNativeFetch } from './supports';\nvar global = getGlobalObject();\n/**\n * Instrument native APIs to call handlers that can be used to create breadcrumbs, APM spans etc.\n * - Console API\n * - Fetch API\n * - XHR API\n * - History API\n * - DOM API (click/typing)\n * - Error API\n * - UnhandledRejection API\n */\nvar handlers = {};\nvar instrumented = {};\n/** Instruments given API */\nfunction instrument(type) {\n if (instrumented[type]) {\n return;\n }\n instrumented[type] = true;\n switch (type) {\n case 'console':\n instrumentConsole();\n break;\n case 'dom':\n instrumentDOM();\n break;\n case 'xhr':\n instrumentXHR();\n break;\n case 'fetch':\n instrumentFetch();\n break;\n case 'history':\n instrumentHistory();\n break;\n case 'error':\n instrumentError();\n break;\n case 'unhandledrejection':\n instrumentUnhandledRejection();\n break;\n default:\n logger.warn('unknown instrumentation type:', type);\n }\n}\n/**\n * Add handler that will be called when given type of instrumentation triggers.\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addInstrumentationHandler(handler) {\n if (!handler || typeof handler.type !== 'string' || typeof handler.callback !== 'function') {\n return;\n }\n handlers[handler.type] = handlers[handler.type] || [];\n handlers[handler.type].push(handler.callback);\n instrument(handler.type);\n}\n/** JSDoc */\nfunction triggerHandlers(type, data) {\n var e_1, _a;\n if (!type || !handlers[type]) {\n return;\n }\n try {\n for (var _b = __values(handlers[type] || []), _c = _b.next(); !_c.done; _c = _b.next()) {\n var handler = _c.value;\n try {\n handler(data);\n }\n catch (e) {\n logger.error(\"Error while triggering instrumentation handler.\\nType: \" + type + \"\\nName: \" + getFunctionName(handler) + \"\\nError: \" + e);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n}\n/** JSDoc */\nfunction instrumentConsole() {\n if (!('console' in global)) {\n return;\n }\n ['debug', 'info', 'warn', 'error', 'log', 'assert'].forEach(function (level) {\n if (!(level in global.console)) {\n return;\n }\n fill(global.console, level, function (originalConsoleLevel) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n triggerHandlers('console', { args: args, level: level });\n // this fails for some browsers. :(\n if (originalConsoleLevel) {\n Function.prototype.apply.call(originalConsoleLevel, global.console, args);\n }\n };\n });\n });\n}\n/** JSDoc */\nfunction instrumentFetch() {\n if (!supportsNativeFetch()) {\n return;\n }\n fill(global, 'fetch', function (originalFetch) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var handlerData = {\n args: args,\n fetchData: {\n method: getFetchMethod(args),\n url: getFetchUrl(args),\n },\n startTimestamp: Date.now(),\n };\n triggerHandlers('fetch', __assign({}, handlerData));\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalFetch.apply(global, args).then(function (response) {\n triggerHandlers('fetch', __assign(__assign({}, handlerData), { endTimestamp: Date.now(), response: response }));\n return response;\n }, function (error) {\n triggerHandlers('fetch', __assign(__assign({}, handlerData), { endTimestamp: Date.now(), error: error }));\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the sentry.javascript SDK caught an error invoking your application code.\n // This is expected behavior and NOT indicative of a bug with sentry.javascript.\n throw error;\n });\n };\n });\n}\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/** Extract `method` from fetch call arguments */\nfunction getFetchMethod(fetchArgs) {\n if (fetchArgs === void 0) { fetchArgs = []; }\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request) && fetchArgs[0].method) {\n return String(fetchArgs[0].method).toUpperCase();\n }\n if (fetchArgs[1] && fetchArgs[1].method) {\n return String(fetchArgs[1].method).toUpperCase();\n }\n return 'GET';\n}\n/** Extract `url` from fetch call arguments */\nfunction getFetchUrl(fetchArgs) {\n if (fetchArgs === void 0) { fetchArgs = []; }\n if (typeof fetchArgs[0] === 'string') {\n return fetchArgs[0];\n }\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request)) {\n return fetchArgs[0].url;\n }\n return String(fetchArgs[0]);\n}\n/* eslint-enable @typescript-eslint/no-unsafe-member-access */\n/** JSDoc */\nfunction instrumentXHR() {\n if (!('XMLHttpRequest' in global)) {\n return;\n }\n // Poor man's implementation of ES6 `Map`, tracking and keeping in sync key and value separately.\n var requestKeys = [];\n var requestValues = [];\n var xhrproto = XMLHttpRequest.prototype;\n fill(xhrproto, 'open', function (originalOpen) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var xhr = this;\n var url = args[1];\n xhr.__sentry_xhr__ = {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n method: isString(args[0]) ? args[0].toUpperCase() : args[0],\n url: args[1],\n };\n // if Sentry key appears in URL, don't capture it as a request\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (isString(url) && xhr.__sentry_xhr__.method === 'POST' && url.match(/sentry_key/)) {\n xhr.__sentry_own_request__ = true;\n }\n var onreadystatechangeHandler = function () {\n if (xhr.readyState === 4) {\n try {\n // touching statusCode in some platforms throws\n // an exception\n if (xhr.__sentry_xhr__) {\n xhr.__sentry_xhr__.status_code = xhr.status;\n }\n }\n catch (e) {\n /* do nothing */\n }\n try {\n var requestPos = requestKeys.indexOf(xhr);\n if (requestPos !== -1) {\n // Make sure to pop both key and value to keep it in sync.\n requestKeys.splice(requestPos);\n var args_1 = requestValues.splice(requestPos)[0];\n if (xhr.__sentry_xhr__ && args_1[0] !== undefined) {\n xhr.__sentry_xhr__.body = args_1[0];\n }\n }\n }\n catch (e) {\n /* do nothing */\n }\n triggerHandlers('xhr', {\n args: args,\n endTimestamp: Date.now(),\n startTimestamp: Date.now(),\n xhr: xhr,\n });\n }\n };\n if ('onreadystatechange' in xhr && typeof xhr.onreadystatechange === 'function') {\n fill(xhr, 'onreadystatechange', function (original) {\n return function () {\n var readyStateArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n readyStateArgs[_i] = arguments[_i];\n }\n onreadystatechangeHandler();\n return original.apply(xhr, readyStateArgs);\n };\n });\n }\n else {\n xhr.addEventListener('readystatechange', onreadystatechangeHandler);\n }\n return originalOpen.apply(xhr, args);\n };\n });\n fill(xhrproto, 'send', function (originalSend) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n requestKeys.push(this);\n requestValues.push(args);\n triggerHandlers('xhr', {\n args: args,\n startTimestamp: Date.now(),\n xhr: this,\n });\n return originalSend.apply(this, args);\n };\n });\n}\nvar lastHref;\n/** JSDoc */\nfunction instrumentHistory() {\n if (!supportsHistory()) {\n return;\n }\n var oldOnPopState = global.onpopstate;\n global.onpopstate = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var to = global.location.href;\n // keep track of the current URL state, as we always receive only the updated state\n var from = lastHref;\n lastHref = to;\n triggerHandlers('history', {\n from: from,\n to: to,\n });\n if (oldOnPopState) {\n // Apparently this can throw in Firefox when incorrectly implemented plugin is installed.\n // https://github.com/getsentry/sentry-javascript/issues/3344\n // https://github.com/bugsnag/bugsnag-js/issues/469\n try {\n return oldOnPopState.apply(this, args);\n }\n catch (_oO) {\n // no-empty\n }\n }\n };\n /** @hidden */\n function historyReplacementFunction(originalHistoryFunction) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var url = args.length > 2 ? args[2] : undefined;\n if (url) {\n // coerce to string (this is what pushState does)\n var from = lastHref;\n var to = String(url);\n // keep track of the current URL state, as we always receive only the updated state\n lastHref = to;\n triggerHandlers('history', {\n from: from,\n to: to,\n });\n }\n return originalHistoryFunction.apply(this, args);\n };\n }\n fill(global.history, 'pushState', historyReplacementFunction);\n fill(global.history, 'replaceState', historyReplacementFunction);\n}\nvar debounceDuration = 1000;\nvar debounceTimerID;\nvar lastCapturedEvent;\n/**\n * Decide whether the current event should finish the debounce of previously captured one.\n * @param previous previously captured event\n * @param current event to be captured\n */\nfunction shouldShortcircuitPreviousDebounce(previous, current) {\n // If there was no previous event, it should always be swapped for the new one.\n if (!previous) {\n return true;\n }\n // If both events have different type, then user definitely performed two separate actions. e.g. click + keypress.\n if (previous.type !== current.type) {\n return true;\n }\n try {\n // If both events have the same type, it's still possible that actions were performed on different targets.\n // e.g. 2 clicks on different buttons.\n if (previous.target !== current.target) {\n return true;\n }\n }\n catch (e) {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n // If both events have the same type _and_ same `target` (an element which triggered an event, _not necessarily_\n // to which an event listener was attached), we treat them as the same action, as we want to capture\n // only one breadcrumb. e.g. multiple clicks on the same button, or typing inside a user input box.\n return false;\n}\n/**\n * Decide whether an event should be captured.\n * @param event event to be captured\n */\nfunction shouldSkipDOMEvent(event) {\n // We are only interested in filtering `keypress` events for now.\n if (event.type !== 'keypress') {\n return false;\n }\n try {\n var target = event.target;\n if (!target || !target.tagName) {\n return true;\n }\n // Only consider keypress events on actual input elements. This will disregard keypresses targeting body\n // e.g.tabbing through elements, hotkeys, etc.\n if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {\n return false;\n }\n }\n catch (e) {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n return true;\n}\n/**\n * Wraps addEventListener to capture UI breadcrumbs\n * @param handler function that will be triggered\n * @param globalListener indicates whether event was captured by the global event listener\n * @returns wrapped breadcrumb events handler\n * @hidden\n */\nfunction makeDOMEventHandler(handler, globalListener) {\n if (globalListener === void 0) { globalListener = false; }\n return function (event) {\n // It's possible this handler might trigger multiple times for the same\n // event (e.g. event propagation through node ancestors).\n // Ignore if we've already captured that event.\n if (!event || lastCapturedEvent === event) {\n return;\n }\n // We always want to skip _some_ events.\n if (shouldSkipDOMEvent(event)) {\n return;\n }\n var name = event.type === 'keypress' ? 'input' : event.type;\n // If there is no debounce timer, it means that we can safely capture the new event and store it for future comparisons.\n if (debounceTimerID === undefined) {\n handler({\n event: event,\n name: name,\n global: globalListener,\n });\n lastCapturedEvent = event;\n }\n // If there is a debounce awaiting, see if the new event is different enough to treat it as a unique one.\n // If that's the case, emit the previous event and store locally the newly-captured DOM event.\n else if (shouldShortcircuitPreviousDebounce(lastCapturedEvent, event)) {\n handler({\n event: event,\n name: name,\n global: globalListener,\n });\n lastCapturedEvent = event;\n }\n // Start a new debounce timer that will prevent us from capturing multiple events that should be grouped together.\n clearTimeout(debounceTimerID);\n debounceTimerID = global.setTimeout(function () {\n debounceTimerID = undefined;\n }, debounceDuration);\n };\n}\n/** JSDoc */\nfunction instrumentDOM() {\n if (!('document' in global)) {\n return;\n }\n // Make it so that any click or keypress that is unhandled / bubbled up all the way to the document triggers our dom\n // handlers. (Normally we have only one, which captures a breadcrumb for each click or keypress.) Do this before\n // we instrument `addEventListener` so that we don't end up attaching this handler twice.\n var triggerDOMHandler = triggerHandlers.bind(null, 'dom');\n var globalDOMEventHandler = makeDOMEventHandler(triggerDOMHandler, true);\n global.document.addEventListener('click', globalDOMEventHandler, false);\n global.document.addEventListener('keypress', globalDOMEventHandler, false);\n // After hooking into click and keypress events bubbled up to `document`, we also hook into user-handled\n // clicks & keypresses, by adding an event listener of our own to any element to which they add a listener. That\n // way, whenever one of their handlers is triggered, ours will be, too. (This is needed because their handler\n // could potentially prevent the event from bubbling up to our global listeners. This way, our handler are still\n // guaranteed to fire at least once.)\n ['EventTarget', 'Node'].forEach(function (target) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var proto = global[target] && global[target].prototype;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n fill(proto, 'addEventListener', function (originalAddEventListener) {\n return function (type, listener, options) {\n if (type === 'click' || type == 'keypress') {\n try {\n var el = this;\n var handlers_1 = (el.__sentry_instrumentation_handlers__ = el.__sentry_instrumentation_handlers__ || {});\n var handlerForType = (handlers_1[type] = handlers_1[type] || { refCount: 0 });\n if (!handlerForType.handler) {\n var handler = makeDOMEventHandler(triggerDOMHandler);\n handlerForType.handler = handler;\n originalAddEventListener.call(this, type, handler, options);\n }\n handlerForType.refCount += 1;\n }\n catch (e) {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n return originalAddEventListener.call(this, type, listener, options);\n };\n });\n fill(proto, 'removeEventListener', function (originalRemoveEventListener) {\n return function (type, listener, options) {\n if (type === 'click' || type == 'keypress') {\n try {\n var el = this;\n var handlers_2 = el.__sentry_instrumentation_handlers__ || {};\n var handlerForType = handlers_2[type];\n if (handlerForType) {\n handlerForType.refCount -= 1;\n // If there are no longer any custom handlers of the current type on this element, we can remove ours, too.\n if (handlerForType.refCount <= 0) {\n originalRemoveEventListener.call(this, type, handlerForType.handler, options);\n handlerForType.handler = undefined;\n delete handlers_2[type]; // eslint-disable-line @typescript-eslint/no-dynamic-delete\n }\n // If there are no longer any custom handlers of any type on this element, cleanup everything.\n if (Object.keys(handlers_2).length === 0) {\n delete el.__sentry_instrumentation_handlers__;\n }\n }\n }\n catch (e) {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n return originalRemoveEventListener.call(this, type, listener, options);\n };\n });\n });\n}\nvar _oldOnErrorHandler = null;\n/** JSDoc */\nfunction instrumentError() {\n _oldOnErrorHandler = global.onerror;\n global.onerror = function (msg, url, line, column, error) {\n triggerHandlers('error', {\n column: column,\n error: error,\n line: line,\n msg: msg,\n url: url,\n });\n if (_oldOnErrorHandler) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnErrorHandler.apply(this, arguments);\n }\n return false;\n };\n}\nvar _oldOnUnhandledRejectionHandler = null;\n/** JSDoc */\nfunction instrumentUnhandledRejection() {\n _oldOnUnhandledRejectionHandler = global.onunhandledrejection;\n global.onunhandledrejection = function (e) {\n triggerHandlers('unhandledrejection', e);\n if (_oldOnUnhandledRejectionHandler) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnUnhandledRejectionHandler.apply(this, arguments);\n }\n return true;\n };\n}\n//# sourceMappingURL=instrument.js.map","var SqlString = exports;\n\nvar ID_GLOBAL_REGEXP = /`/g;\nvar QUAL_GLOBAL_REGEXP = /\\./g;\nvar CHARS_GLOBAL_REGEXP = /[\\0\\b\\t\\n\\r\\x1a\\\"\\'\\\\]/g; // eslint-disable-line no-control-regex\nvar CHARS_ESCAPE_MAP = {\n '\\0' : '\\\\0',\n '\\b' : '\\\\b',\n '\\t' : '\\\\t',\n '\\n' : '\\\\n',\n '\\r' : '\\\\r',\n '\\x1a' : '\\\\Z',\n '\"' : '\\\\\"',\n '\\'' : '\\\\\\'',\n '\\\\' : '\\\\\\\\'\n};\n\nSqlString.escapeId = function escapeId(val, forbidQualified) {\n if (Array.isArray(val)) {\n var sql = '';\n\n for (var i = 0; i < val.length; i++) {\n sql += (i === 0 ? '' : ', ') + SqlString.escapeId(val[i], forbidQualified);\n }\n\n return sql;\n } else if (forbidQualified) {\n return '`' + String(val).replace(ID_GLOBAL_REGEXP, '``') + '`';\n } else {\n return '`' + String(val).replace(ID_GLOBAL_REGEXP, '``').replace(QUAL_GLOBAL_REGEXP, '`.`') + '`';\n }\n};\n\nSqlString.escape = function escape(val, stringifyObjects, timeZone) {\n if (val === undefined || val === null) {\n return 'NULL';\n }\n\n switch (typeof val) {\n case 'boolean': return (val) ? 'true' : 'false';\n case 'number': return val + '';\n case 'object':\n if (val instanceof Date) {\n return SqlString.dateToString(val, timeZone || 'local');\n } else if (Array.isArray(val)) {\n return SqlString.arrayToList(val, timeZone);\n } else if (Buffer.isBuffer(val)) {\n return SqlString.bufferToString(val);\n } else if (typeof val.toSqlString === 'function') {\n return String(val.toSqlString());\n } else if (stringifyObjects) {\n return escapeString(val.toString());\n } else {\n return SqlString.objectToValues(val, timeZone);\n }\n default: return escapeString(val);\n }\n};\n\nSqlString.arrayToList = function arrayToList(array, timeZone) {\n var sql = '';\n\n for (var i = 0; i < array.length; i++) {\n var val = array[i];\n\n if (Array.isArray(val)) {\n sql += (i === 0 ? '' : ', ') + '(' + SqlString.arrayToList(val, timeZone) + ')';\n } else {\n sql += (i === 0 ? '' : ', ') + SqlString.escape(val, true, timeZone);\n }\n }\n\n return sql;\n};\n\nSqlString.format = function format(sql, values, stringifyObjects, timeZone) {\n if (values == null) {\n return sql;\n }\n\n if (!Array.isArray(values)) {\n values = [values];\n }\n\n var chunkIndex = 0;\n var placeholdersRegex = /\\?+/g;\n var result = '';\n var valuesIndex = 0;\n var match;\n\n while (valuesIndex < values.length && (match = placeholdersRegex.exec(sql))) {\n var len = match[0].length;\n\n if (len > 2) {\n continue;\n }\n\n var value = len === 2\n ? SqlString.escapeId(values[valuesIndex])\n : SqlString.escape(values[valuesIndex], stringifyObjects, timeZone);\n\n result += sql.slice(chunkIndex, match.index) + value;\n chunkIndex = placeholdersRegex.lastIndex;\n valuesIndex++;\n }\n\n if (chunkIndex === 0) {\n // Nothing was replaced\n return sql;\n }\n\n if (chunkIndex < sql.length) {\n return result + sql.slice(chunkIndex);\n }\n\n return result;\n};\n\nSqlString.dateToString = function dateToString(date, timeZone) {\n var dt = new Date(date);\n\n if (isNaN(dt.getTime())) {\n return 'NULL';\n }\n\n var year;\n var month;\n var day;\n var hour;\n var minute;\n var second;\n var millisecond;\n\n if (timeZone === 'local') {\n year = dt.getFullYear();\n month = dt.getMonth() + 1;\n day = dt.getDate();\n hour = dt.getHours();\n minute = dt.getMinutes();\n second = dt.getSeconds();\n millisecond = dt.getMilliseconds();\n } else {\n var tz = convertTimezone(timeZone);\n\n if (tz !== false && tz !== 0) {\n dt.setTime(dt.getTime() + (tz * 60000));\n }\n\n year = dt.getUTCFullYear();\n month = dt.getUTCMonth() + 1;\n day = dt.getUTCDate();\n hour = dt.getUTCHours();\n minute = dt.getUTCMinutes();\n second = dt.getUTCSeconds();\n millisecond = dt.getUTCMilliseconds();\n }\n\n // YYYY-MM-DD HH:mm:ss.mmm\n var str = zeroPad(year, 4) + '-' + zeroPad(month, 2) + '-' + zeroPad(day, 2) + ' ' +\n zeroPad(hour, 2) + ':' + zeroPad(minute, 2) + ':' + zeroPad(second, 2) + '.' +\n zeroPad(millisecond, 3);\n\n return escapeString(str);\n};\n\nSqlString.bufferToString = function bufferToString(buffer) {\n return 'X' + escapeString(buffer.toString('hex'));\n};\n\nSqlString.objectToValues = function objectToValues(object, timeZone) {\n var sql = '';\n\n for (var key in object) {\n var val = object[key];\n\n if (typeof val === 'function') {\n continue;\n }\n\n sql += (sql.length === 0 ? '' : ', ') + SqlString.escapeId(key) + ' = ' + SqlString.escape(val, true, timeZone);\n }\n\n return sql;\n};\n\nSqlString.raw = function raw(sql) {\n if (typeof sql !== 'string') {\n throw new TypeError('argument sql must be a string');\n }\n\n return {\n toSqlString: function toSqlString() { return sql; }\n };\n};\n\nfunction escapeString(val) {\n var chunkIndex = CHARS_GLOBAL_REGEXP.lastIndex = 0;\n var escapedVal = '';\n var match;\n\n while ((match = CHARS_GLOBAL_REGEXP.exec(val))) {\n escapedVal += val.slice(chunkIndex, match.index) + CHARS_ESCAPE_MAP[match[0]];\n chunkIndex = CHARS_GLOBAL_REGEXP.lastIndex;\n }\n\n if (chunkIndex === 0) {\n // Nothing was escaped\n return \"'\" + val + \"'\";\n }\n\n if (chunkIndex < val.length) {\n return \"'\" + escapedVal + val.slice(chunkIndex) + \"'\";\n }\n\n return \"'\" + escapedVal + \"'\";\n}\n\nfunction zeroPad(number, length) {\n number = number.toString();\n while (number.length < length) {\n number = '0' + number;\n }\n\n return number;\n}\n\nfunction convertTimezone(tz) {\n if (tz === 'Z') {\n return 0;\n }\n\n var m = tz.match(/([\\+\\-\\s])(\\d\\d):?(\\d\\d)?/);\n if (m) {\n return (m[1] === '-' ? -1 : 1) * (parseInt(m[2], 10) + ((m[3] ? parseInt(m[3], 10) : 0) / 60)) * 60;\n }\n return false;\n}\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","module.exports = Long;\r\n\r\n/**\r\n * wasm optimizations, to do native i64 multiplication and divide\r\n */\r\nvar wasm = null;\r\n\r\ntry {\r\n wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([\r\n 0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11\r\n ])), {}).exports;\r\n} catch (e) {\r\n // no wasm support :(\r\n}\r\n\r\n/**\r\n * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.\r\n * See the from* functions below for more convenient ways of constructing Longs.\r\n * @exports Long\r\n * @class A Long class for representing a 64 bit two's-complement integer value.\r\n * @param {number} low The low (signed) 32 bits of the long\r\n * @param {number} high The high (signed) 32 bits of the long\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @constructor\r\n */\r\nfunction Long(low, high, unsigned) {\r\n\r\n /**\r\n * The low 32 bits as a signed value.\r\n * @type {number}\r\n */\r\n this.low = low | 0;\r\n\r\n /**\r\n * The high 32 bits as a signed value.\r\n * @type {number}\r\n */\r\n this.high = high | 0;\r\n\r\n /**\r\n * Whether unsigned or not.\r\n * @type {boolean}\r\n */\r\n this.unsigned = !!unsigned;\r\n}\r\n\r\n// The internal representation of a long is the two given signed, 32-bit values.\r\n// We use 32-bit pieces because these are the size of integers on which\r\n// Javascript performs bit-operations. For operations like addition and\r\n// multiplication, we split each number into 16 bit pieces, which can easily be\r\n// multiplied within Javascript's floating-point representation without overflow\r\n// or change in sign.\r\n//\r\n// In the algorithms below, we frequently reduce the negative case to the\r\n// positive case by negating the input(s) and then post-processing the result.\r\n// Note that we must ALWAYS check specially whether those values are MIN_VALUE\r\n// (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as\r\n// a positive number, it overflows back into a negative). Not handling this\r\n// case would often result in infinite recursion.\r\n//\r\n// Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*\r\n// methods on which they depend.\r\n\r\n/**\r\n * An indicator used to reliably determine if an object is a Long or not.\r\n * @type {boolean}\r\n * @const\r\n * @private\r\n */\r\nLong.prototype.__isLong__;\r\n\r\nObject.defineProperty(Long.prototype, \"__isLong__\", { value: true });\r\n\r\n/**\r\n * @function\r\n * @param {*} obj Object\r\n * @returns {boolean}\r\n * @inner\r\n */\r\nfunction isLong(obj) {\r\n return (obj && obj[\"__isLong__\"]) === true;\r\n}\r\n\r\n/**\r\n * Tests if the specified object is a Long.\r\n * @function\r\n * @param {*} obj Object\r\n * @returns {boolean}\r\n */\r\nLong.isLong = isLong;\r\n\r\n/**\r\n * A cache of the Long representations of small integer values.\r\n * @type {!Object}\r\n * @inner\r\n */\r\nvar INT_CACHE = {};\r\n\r\n/**\r\n * A cache of the Long representations of small unsigned integer values.\r\n * @type {!Object}\r\n * @inner\r\n */\r\nvar UINT_CACHE = {};\r\n\r\n/**\r\n * @param {number} value\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromInt(value, unsigned) {\r\n var obj, cachedObj, cache;\r\n if (unsigned) {\r\n value >>>= 0;\r\n if (cache = (0 <= value && value < 256)) {\r\n cachedObj = UINT_CACHE[value];\r\n if (cachedObj)\r\n return cachedObj;\r\n }\r\n obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);\r\n if (cache)\r\n UINT_CACHE[value] = obj;\r\n return obj;\r\n } else {\r\n value |= 0;\r\n if (cache = (-128 <= value && value < 128)) {\r\n cachedObj = INT_CACHE[value];\r\n if (cachedObj)\r\n return cachedObj;\r\n }\r\n obj = fromBits(value, value < 0 ? -1 : 0, false);\r\n if (cache)\r\n INT_CACHE[value] = obj;\r\n return obj;\r\n }\r\n}\r\n\r\n/**\r\n * Returns a Long representing the given 32 bit integer value.\r\n * @function\r\n * @param {number} value The 32 bit integer in question\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromInt = fromInt;\r\n\r\n/**\r\n * @param {number} value\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromNumber(value, unsigned) {\r\n if (isNaN(value))\r\n return unsigned ? UZERO : ZERO;\r\n if (unsigned) {\r\n if (value < 0)\r\n return UZERO;\r\n if (value >= TWO_PWR_64_DBL)\r\n return MAX_UNSIGNED_VALUE;\r\n } else {\r\n if (value <= -TWO_PWR_63_DBL)\r\n return MIN_VALUE;\r\n if (value + 1 >= TWO_PWR_63_DBL)\r\n return MAX_VALUE;\r\n }\r\n if (value < 0)\r\n return fromNumber(-value, unsigned).neg();\r\n return fromBits((value % TWO_PWR_32_DBL) | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);\r\n}\r\n\r\n/**\r\n * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.\r\n * @function\r\n * @param {number} value The number in question\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromNumber = fromNumber;\r\n\r\n/**\r\n * @param {number} lowBits\r\n * @param {number} highBits\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromBits(lowBits, highBits, unsigned) {\r\n return new Long(lowBits, highBits, unsigned);\r\n}\r\n\r\n/**\r\n * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is\r\n * assumed to use 32 bits.\r\n * @function\r\n * @param {number} lowBits The low 32 bits\r\n * @param {number} highBits The high 32 bits\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromBits = fromBits;\r\n\r\n/**\r\n * @function\r\n * @param {number} base\r\n * @param {number} exponent\r\n * @returns {number}\r\n * @inner\r\n */\r\nvar pow_dbl = Math.pow; // Used 4 times (4*8 to 15+4)\r\n\r\n/**\r\n * @param {string} str\r\n * @param {(boolean|number)=} unsigned\r\n * @param {number=} radix\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromString(str, unsigned, radix) {\r\n if (str.length === 0)\r\n throw Error('empty string');\r\n if (str === \"NaN\" || str === \"Infinity\" || str === \"+Infinity\" || str === \"-Infinity\")\r\n return ZERO;\r\n if (typeof unsigned === 'number') {\r\n // For goog.math.long compatibility\r\n radix = unsigned,\r\n unsigned = false;\r\n } else {\r\n unsigned = !! unsigned;\r\n }\r\n radix = radix || 10;\r\n if (radix < 2 || 36 < radix)\r\n throw RangeError('radix');\r\n\r\n var p;\r\n if ((p = str.indexOf('-')) > 0)\r\n throw Error('interior hyphen');\r\n else if (p === 0) {\r\n return fromString(str.substring(1), unsigned, radix).neg();\r\n }\r\n\r\n // Do several (8) digits each time through the loop, so as to\r\n // minimize the calls to the very expensive emulated div.\r\n var radixToPower = fromNumber(pow_dbl(radix, 8));\r\n\r\n var result = ZERO;\r\n for (var i = 0; i < str.length; i += 8) {\r\n var size = Math.min(8, str.length - i),\r\n value = parseInt(str.substring(i, i + size), radix);\r\n if (size < 8) {\r\n var power = fromNumber(pow_dbl(radix, size));\r\n result = result.mul(power).add(fromNumber(value));\r\n } else {\r\n result = result.mul(radixToPower);\r\n result = result.add(fromNumber(value));\r\n }\r\n }\r\n result.unsigned = unsigned;\r\n return result;\r\n}\r\n\r\n/**\r\n * Returns a Long representation of the given string, written using the specified radix.\r\n * @function\r\n * @param {string} str The textual representation of the Long\r\n * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed\r\n * @param {number=} radix The radix in which the text is written (2-36), defaults to 10\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromString = fromString;\r\n\r\n/**\r\n * @function\r\n * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromValue(val, unsigned) {\r\n if (typeof val === 'number')\r\n return fromNumber(val, unsigned);\r\n if (typeof val === 'string')\r\n return fromString(val, unsigned);\r\n // Throws for non-objects, converts non-instanceof Long:\r\n return fromBits(val.low, val.high, typeof unsigned === 'boolean' ? unsigned : val.unsigned);\r\n}\r\n\r\n/**\r\n * Converts the specified value to a Long using the appropriate from* function for its type.\r\n * @function\r\n * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val Value\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long}\r\n */\r\nLong.fromValue = fromValue;\r\n\r\n// NOTE: the compiler should inline these constant values below and then remove these variables, so there should be\r\n// no runtime penalty for these.\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_16_DBL = 1 << 16;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_24_DBL = 1 << 24;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;\r\n\r\n/**\r\n * @type {!Long}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar ZERO = fromInt(0);\r\n\r\n/**\r\n * Signed zero.\r\n * @type {!Long}\r\n */\r\nLong.ZERO = ZERO;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar UZERO = fromInt(0, true);\r\n\r\n/**\r\n * Unsigned zero.\r\n * @type {!Long}\r\n */\r\nLong.UZERO = UZERO;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar ONE = fromInt(1);\r\n\r\n/**\r\n * Signed one.\r\n * @type {!Long}\r\n */\r\nLong.ONE = ONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar UONE = fromInt(1, true);\r\n\r\n/**\r\n * Unsigned one.\r\n * @type {!Long}\r\n */\r\nLong.UONE = UONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar NEG_ONE = fromInt(-1);\r\n\r\n/**\r\n * Signed negative one.\r\n * @type {!Long}\r\n */\r\nLong.NEG_ONE = NEG_ONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MAX_VALUE = fromBits(0xFFFFFFFF|0, 0x7FFFFFFF|0, false);\r\n\r\n/**\r\n * Maximum signed value.\r\n * @type {!Long}\r\n */\r\nLong.MAX_VALUE = MAX_VALUE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MAX_UNSIGNED_VALUE = fromBits(0xFFFFFFFF|0, 0xFFFFFFFF|0, true);\r\n\r\n/**\r\n * Maximum unsigned value.\r\n * @type {!Long}\r\n */\r\nLong.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MIN_VALUE = fromBits(0, 0x80000000|0, false);\r\n\r\n/**\r\n * Minimum signed value.\r\n * @type {!Long}\r\n */\r\nLong.MIN_VALUE = MIN_VALUE;\r\n\r\n/**\r\n * @alias Long.prototype\r\n * @inner\r\n */\r\nvar LongPrototype = Long.prototype;\r\n\r\n/**\r\n * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.\r\n * @returns {number}\r\n */\r\nLongPrototype.toInt = function toInt() {\r\n return this.unsigned ? this.low >>> 0 : this.low;\r\n};\r\n\r\n/**\r\n * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).\r\n * @returns {number}\r\n */\r\nLongPrototype.toNumber = function toNumber() {\r\n if (this.unsigned)\r\n return ((this.high >>> 0) * TWO_PWR_32_DBL) + (this.low >>> 0);\r\n return this.high * TWO_PWR_32_DBL + (this.low >>> 0);\r\n};\r\n\r\n/**\r\n * Converts the Long to a string written in the specified radix.\r\n * @param {number=} radix Radix (2-36), defaults to 10\r\n * @returns {string}\r\n * @override\r\n * @throws {RangeError} If `radix` is out of range\r\n */\r\nLongPrototype.toString = function toString(radix) {\r\n radix = radix || 10;\r\n if (radix < 2 || 36 < radix)\r\n throw RangeError('radix');\r\n if (this.isZero())\r\n return '0';\r\n if (this.isNegative()) { // Unsigned Longs are never negative\r\n if (this.eq(MIN_VALUE)) {\r\n // We need to change the Long value before it can be negated, so we remove\r\n // the bottom-most digit in this base and then recurse to do the rest.\r\n var radixLong = fromNumber(radix),\r\n div = this.div(radixLong),\r\n rem1 = div.mul(radixLong).sub(this);\r\n return div.toString(radix) + rem1.toInt().toString(radix);\r\n } else\r\n return '-' + this.neg().toString(radix);\r\n }\r\n\r\n // Do several (6) digits each time through the loop, so as to\r\n // minimize the calls to the very expensive emulated div.\r\n var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned),\r\n rem = this;\r\n var result = '';\r\n while (true) {\r\n var remDiv = rem.div(radixToPower),\r\n intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0,\r\n digits = intval.toString(radix);\r\n rem = remDiv;\r\n if (rem.isZero())\r\n return digits + result;\r\n else {\r\n while (digits.length < 6)\r\n digits = '0' + digits;\r\n result = '' + digits + result;\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * Gets the high 32 bits as a signed integer.\r\n * @returns {number} Signed high bits\r\n */\r\nLongPrototype.getHighBits = function getHighBits() {\r\n return this.high;\r\n};\r\n\r\n/**\r\n * Gets the high 32 bits as an unsigned integer.\r\n * @returns {number} Unsigned high bits\r\n */\r\nLongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {\r\n return this.high >>> 0;\r\n};\r\n\r\n/**\r\n * Gets the low 32 bits as a signed integer.\r\n * @returns {number} Signed low bits\r\n */\r\nLongPrototype.getLowBits = function getLowBits() {\r\n return this.low;\r\n};\r\n\r\n/**\r\n * Gets the low 32 bits as an unsigned integer.\r\n * @returns {number} Unsigned low bits\r\n */\r\nLongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {\r\n return this.low >>> 0;\r\n};\r\n\r\n/**\r\n * Gets the number of bits needed to represent the absolute value of this Long.\r\n * @returns {number}\r\n */\r\nLongPrototype.getNumBitsAbs = function getNumBitsAbs() {\r\n if (this.isNegative()) // Unsigned Longs are never negative\r\n return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();\r\n var val = this.high != 0 ? this.high : this.low;\r\n for (var bit = 31; bit > 0; bit--)\r\n if ((val & (1 << bit)) != 0)\r\n break;\r\n return this.high != 0 ? bit + 33 : bit + 1;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals zero.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isZero = function isZero() {\r\n return this.high === 0 && this.low === 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.eqz = LongPrototype.isZero;\r\n\r\n/**\r\n * Tests if this Long's value is negative.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isNegative = function isNegative() {\r\n return !this.unsigned && this.high < 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is positive.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isPositive = function isPositive() {\r\n return this.unsigned || this.high >= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is odd.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isOdd = function isOdd() {\r\n return (this.low & 1) === 1;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is even.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isEven = function isEven() {\r\n return (this.low & 1) === 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.equals = function equals(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n if (this.unsigned !== other.unsigned && (this.high >>> 31) === 1 && (other.high >>> 31) === 1)\r\n return false;\r\n return this.high === other.high && this.low === other.low;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.eq = LongPrototype.equals;\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.notEquals = function notEquals(other) {\r\n return !this.eq(/* validates */ other);\r\n};\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.neq = LongPrototype.notEquals;\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.ne = LongPrototype.notEquals;\r\n\r\n/**\r\n * Tests if this Long's value is less than the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lessThan = function lessThan(other) {\r\n return this.comp(/* validates */ other) < 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lt = LongPrototype.lessThan;\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {\r\n return this.comp(/* validates */ other) <= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lte = LongPrototype.lessThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.le = LongPrototype.lessThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is greater than the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.greaterThan = function greaterThan(other) {\r\n return this.comp(/* validates */ other) > 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.gt = LongPrototype.greaterThan;\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {\r\n return this.comp(/* validates */ other) >= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.gte = LongPrototype.greaterThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.ge = LongPrototype.greaterThanOrEqual;\r\n\r\n/**\r\n * Compares this Long's value with the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\r\n * if the given one is greater\r\n */\r\nLongPrototype.compare = function compare(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n if (this.eq(other))\r\n return 0;\r\n var thisNeg = this.isNegative(),\r\n otherNeg = other.isNegative();\r\n if (thisNeg && !otherNeg)\r\n return -1;\r\n if (!thisNeg && otherNeg)\r\n return 1;\r\n // At this point the sign bits are the same\r\n if (!this.unsigned)\r\n return this.sub(other).isNegative() ? -1 : 1;\r\n // Both are positive if at least one is unsigned\r\n return (other.high >>> 0) > (this.high >>> 0) || (other.high === this.high && (other.low >>> 0) > (this.low >>> 0)) ? -1 : 1;\r\n};\r\n\r\n/**\r\n * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\r\n * if the given one is greater\r\n */\r\nLongPrototype.comp = LongPrototype.compare;\r\n\r\n/**\r\n * Negates this Long's value.\r\n * @returns {!Long} Negated Long\r\n */\r\nLongPrototype.negate = function negate() {\r\n if (!this.unsigned && this.eq(MIN_VALUE))\r\n return MIN_VALUE;\r\n return this.not().add(ONE);\r\n};\r\n\r\n/**\r\n * Negates this Long's value. This is an alias of {@link Long#negate}.\r\n * @function\r\n * @returns {!Long} Negated Long\r\n */\r\nLongPrototype.neg = LongPrototype.negate;\r\n\r\n/**\r\n * Returns the sum of this and the specified Long.\r\n * @param {!Long|number|string} addend Addend\r\n * @returns {!Long} Sum\r\n */\r\nLongPrototype.add = function add(addend) {\r\n if (!isLong(addend))\r\n addend = fromValue(addend);\r\n\r\n // Divide each number into 4 chunks of 16 bits, and then sum the chunks.\r\n\r\n var a48 = this.high >>> 16;\r\n var a32 = this.high & 0xFFFF;\r\n var a16 = this.low >>> 16;\r\n var a00 = this.low & 0xFFFF;\r\n\r\n var b48 = addend.high >>> 16;\r\n var b32 = addend.high & 0xFFFF;\r\n var b16 = addend.low >>> 16;\r\n var b00 = addend.low & 0xFFFF;\r\n\r\n var c48 = 0, c32 = 0, c16 = 0, c00 = 0;\r\n c00 += a00 + b00;\r\n c16 += c00 >>> 16;\r\n c00 &= 0xFFFF;\r\n c16 += a16 + b16;\r\n c32 += c16 >>> 16;\r\n c16 &= 0xFFFF;\r\n c32 += a32 + b32;\r\n c48 += c32 >>> 16;\r\n c32 &= 0xFFFF;\r\n c48 += a48 + b48;\r\n c48 &= 0xFFFF;\r\n return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the difference of this and the specified Long.\r\n * @param {!Long|number|string} subtrahend Subtrahend\r\n * @returns {!Long} Difference\r\n */\r\nLongPrototype.subtract = function subtract(subtrahend) {\r\n if (!isLong(subtrahend))\r\n subtrahend = fromValue(subtrahend);\r\n return this.add(subtrahend.neg());\r\n};\r\n\r\n/**\r\n * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.\r\n * @function\r\n * @param {!Long|number|string} subtrahend Subtrahend\r\n * @returns {!Long} Difference\r\n */\r\nLongPrototype.sub = LongPrototype.subtract;\r\n\r\n/**\r\n * Returns the product of this and the specified Long.\r\n * @param {!Long|number|string} multiplier Multiplier\r\n * @returns {!Long} Product\r\n */\r\nLongPrototype.multiply = function multiply(multiplier) {\r\n if (this.isZero())\r\n return ZERO;\r\n if (!isLong(multiplier))\r\n multiplier = fromValue(multiplier);\r\n\r\n // use wasm support if present\r\n if (wasm) {\r\n var low = wasm.mul(this.low,\r\n this.high,\r\n multiplier.low,\r\n multiplier.high);\r\n return fromBits(low, wasm.get_high(), this.unsigned);\r\n }\r\n\r\n if (multiplier.isZero())\r\n return ZERO;\r\n if (this.eq(MIN_VALUE))\r\n return multiplier.isOdd() ? MIN_VALUE : ZERO;\r\n if (multiplier.eq(MIN_VALUE))\r\n return this.isOdd() ? MIN_VALUE : ZERO;\r\n\r\n if (this.isNegative()) {\r\n if (multiplier.isNegative())\r\n return this.neg().mul(multiplier.neg());\r\n else\r\n return this.neg().mul(multiplier).neg();\r\n } else if (multiplier.isNegative())\r\n return this.mul(multiplier.neg()).neg();\r\n\r\n // If both longs are small, use float multiplication\r\n if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))\r\n return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);\r\n\r\n // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.\r\n // We can skip products that would overflow.\r\n\r\n var a48 = this.high >>> 16;\r\n var a32 = this.high & 0xFFFF;\r\n var a16 = this.low >>> 16;\r\n var a00 = this.low & 0xFFFF;\r\n\r\n var b48 = multiplier.high >>> 16;\r\n var b32 = multiplier.high & 0xFFFF;\r\n var b16 = multiplier.low >>> 16;\r\n var b00 = multiplier.low & 0xFFFF;\r\n\r\n var c48 = 0, c32 = 0, c16 = 0, c00 = 0;\r\n c00 += a00 * b00;\r\n c16 += c00 >>> 16;\r\n c00 &= 0xFFFF;\r\n c16 += a16 * b00;\r\n c32 += c16 >>> 16;\r\n c16 &= 0xFFFF;\r\n c16 += a00 * b16;\r\n c32 += c16 >>> 16;\r\n c16 &= 0xFFFF;\r\n c32 += a32 * b00;\r\n c48 += c32 >>> 16;\r\n c32 &= 0xFFFF;\r\n c32 += a16 * b16;\r\n c48 += c32 >>> 16;\r\n c32 &= 0xFFFF;\r\n c32 += a00 * b32;\r\n c48 += c32 >>> 16;\r\n c32 &= 0xFFFF;\r\n c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;\r\n c48 &= 0xFFFF;\r\n return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.\r\n * @function\r\n * @param {!Long|number|string} multiplier Multiplier\r\n * @returns {!Long} Product\r\n */\r\nLongPrototype.mul = LongPrototype.multiply;\r\n\r\n/**\r\n * Returns this Long divided by the specified. The result is signed if this Long is signed or\r\n * unsigned if this Long is unsigned.\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Quotient\r\n */\r\nLongPrototype.divide = function divide(divisor) {\r\n if (!isLong(divisor))\r\n divisor = fromValue(divisor);\r\n if (divisor.isZero())\r\n throw Error('division by zero');\r\n\r\n // use wasm support if present\r\n if (wasm) {\r\n // guard against signed division overflow: the largest\r\n // negative number / -1 would be 1 larger than the largest\r\n // positive number, due to two's complement.\r\n if (!this.unsigned &&\r\n this.high === -0x80000000 &&\r\n divisor.low === -1 && divisor.high === -1) {\r\n // be consistent with non-wasm code path\r\n return this;\r\n }\r\n var low = (this.unsigned ? wasm.div_u : wasm.div_s)(\r\n this.low,\r\n this.high,\r\n divisor.low,\r\n divisor.high\r\n );\r\n return fromBits(low, wasm.get_high(), this.unsigned);\r\n }\r\n\r\n if (this.isZero())\r\n return this.unsigned ? UZERO : ZERO;\r\n var approx, rem, res;\r\n if (!this.unsigned) {\r\n // This section is only relevant for signed longs and is derived from the\r\n // closure library as a whole.\r\n if (this.eq(MIN_VALUE)) {\r\n if (divisor.eq(ONE) || divisor.eq(NEG_ONE))\r\n return MIN_VALUE; // recall that -MIN_VALUE == MIN_VALUE\r\n else if (divisor.eq(MIN_VALUE))\r\n return ONE;\r\n else {\r\n // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.\r\n var halfThis = this.shr(1);\r\n approx = halfThis.div(divisor).shl(1);\r\n if (approx.eq(ZERO)) {\r\n return divisor.isNegative() ? ONE : NEG_ONE;\r\n } else {\r\n rem = this.sub(divisor.mul(approx));\r\n res = approx.add(rem.div(divisor));\r\n return res;\r\n }\r\n }\r\n } else if (divisor.eq(MIN_VALUE))\r\n return this.unsigned ? UZERO : ZERO;\r\n if (this.isNegative()) {\r\n if (divisor.isNegative())\r\n return this.neg().div(divisor.neg());\r\n return this.neg().div(divisor).neg();\r\n } else if (divisor.isNegative())\r\n return this.div(divisor.neg()).neg();\r\n res = ZERO;\r\n } else {\r\n // The algorithm below has not been made for unsigned longs. It's therefore\r\n // required to take special care of the MSB prior to running it.\r\n if (!divisor.unsigned)\r\n divisor = divisor.toUnsigned();\r\n if (divisor.gt(this))\r\n return UZERO;\r\n if (divisor.gt(this.shru(1))) // 15 >>> 1 = 7 ; with divisor = 8 ; true\r\n return UONE;\r\n res = UZERO;\r\n }\r\n\r\n // Repeat the following until the remainder is less than other: find a\r\n // floating-point that approximates remainder / other *from below*, add this\r\n // into the result, and subtract it from the remainder. It is critical that\r\n // the approximate value is less than or equal to the real value so that the\r\n // remainder never becomes negative.\r\n rem = this;\r\n while (rem.gte(divisor)) {\r\n // Approximate the result of division. This may be a little greater or\r\n // smaller than the actual value.\r\n approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));\r\n\r\n // We will tweak the approximate result by changing it in the 48-th digit or\r\n // the smallest non-fractional digit, whichever is larger.\r\n var log2 = Math.ceil(Math.log(approx) / Math.LN2),\r\n delta = (log2 <= 48) ? 1 : pow_dbl(2, log2 - 48),\r\n\r\n // Decrease the approximation until it is smaller than the remainder. Note\r\n // that if it is too large, the product overflows and is negative.\r\n approxRes = fromNumber(approx),\r\n approxRem = approxRes.mul(divisor);\r\n while (approxRem.isNegative() || approxRem.gt(rem)) {\r\n approx -= delta;\r\n approxRes = fromNumber(approx, this.unsigned);\r\n approxRem = approxRes.mul(divisor);\r\n }\r\n\r\n // We know the answer can't be zero... and actually, zero would cause\r\n // infinite recursion since we would make no progress.\r\n if (approxRes.isZero())\r\n approxRes = ONE;\r\n\r\n res = res.add(approxRes);\r\n rem = rem.sub(approxRem);\r\n }\r\n return res;\r\n};\r\n\r\n/**\r\n * Returns this Long divided by the specified. This is an alias of {@link Long#divide}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Quotient\r\n */\r\nLongPrototype.div = LongPrototype.divide;\r\n\r\n/**\r\n * Returns this Long modulo the specified.\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.modulo = function modulo(divisor) {\r\n if (!isLong(divisor))\r\n divisor = fromValue(divisor);\r\n\r\n // use wasm support if present\r\n if (wasm) {\r\n var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(\r\n this.low,\r\n this.high,\r\n divisor.low,\r\n divisor.high\r\n );\r\n return fromBits(low, wasm.get_high(), this.unsigned);\r\n }\r\n\r\n return this.sub(this.div(divisor).mul(divisor));\r\n};\r\n\r\n/**\r\n * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.mod = LongPrototype.modulo;\r\n\r\n/**\r\n * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.rem = LongPrototype.modulo;\r\n\r\n/**\r\n * Returns the bitwise NOT of this Long.\r\n * @returns {!Long}\r\n */\r\nLongPrototype.not = function not() {\r\n return fromBits(~this.low, ~this.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise AND of this Long and the specified.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.and = function and(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n return fromBits(this.low & other.low, this.high & other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise OR of this Long and the specified.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.or = function or(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n return fromBits(this.low | other.low, this.high | other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise XOR of this Long and the given one.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.xor = function xor(other) {\r\n if (!isLong(other))\r\n other = fromValue(other);\r\n return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits shifted to the left by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftLeft = function shiftLeft(numBits) {\r\n if (isLong(numBits))\r\n numBits = numBits.toInt();\r\n if ((numBits &= 63) === 0)\r\n return this;\r\n else if (numBits < 32)\r\n return fromBits(this.low << numBits, (this.high << numBits) | (this.low >>> (32 - numBits)), this.unsigned);\r\n else\r\n return fromBits(0, this.low << (numBits - 32), this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shl = LongPrototype.shiftLeft;\r\n\r\n/**\r\n * Returns this Long with bits arithmetically shifted to the right by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftRight = function shiftRight(numBits) {\r\n if (isLong(numBits))\r\n numBits = numBits.toInt();\r\n if ((numBits &= 63) === 0)\r\n return this;\r\n else if (numBits < 32)\r\n return fromBits((this.low >>> numBits) | (this.high << (32 - numBits)), this.high >> numBits, this.unsigned);\r\n else\r\n return fromBits(this.high >> (numBits - 32), this.high >= 0 ? 0 : -1, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shr = LongPrototype.shiftRight;\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {\r\n if (isLong(numBits))\r\n numBits = numBits.toInt();\r\n numBits &= 63;\r\n if (numBits === 0)\r\n return this;\r\n else {\r\n var high = this.high;\r\n if (numBits < 32) {\r\n var low = this.low;\r\n return fromBits((low >>> numBits) | (high << (32 - numBits)), high >>> numBits, this.unsigned);\r\n } else if (numBits === 32)\r\n return fromBits(high, 0, this.unsigned);\r\n else\r\n return fromBits(high >>> (numBits - 32), 0, this.unsigned);\r\n }\r\n};\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shru = LongPrototype.shiftRightUnsigned;\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shr_u = LongPrototype.shiftRightUnsigned;\r\n\r\n/**\r\n * Converts this Long to signed.\r\n * @returns {!Long} Signed long\r\n */\r\nLongPrototype.toSigned = function toSigned() {\r\n if (!this.unsigned)\r\n return this;\r\n return fromBits(this.low, this.high, false);\r\n};\r\n\r\n/**\r\n * Converts this Long to unsigned.\r\n * @returns {!Long} Unsigned long\r\n */\r\nLongPrototype.toUnsigned = function toUnsigned() {\r\n if (this.unsigned)\r\n return this;\r\n return fromBits(this.low, this.high, true);\r\n};\r\n\r\n/**\r\n * Converts this Long to its byte representation.\r\n * @param {boolean=} le Whether little or big endian, defaults to big endian\r\n * @returns {!Array.} Byte representation\r\n */\r\nLongPrototype.toBytes = function toBytes(le) {\r\n return le ? this.toBytesLE() : this.toBytesBE();\r\n};\r\n\r\n/**\r\n * Converts this Long to its little endian byte representation.\r\n * @returns {!Array.} Little endian byte representation\r\n */\r\nLongPrototype.toBytesLE = function toBytesLE() {\r\n var hi = this.high,\r\n lo = this.low;\r\n return [\r\n lo & 0xff,\r\n lo >>> 8 & 0xff,\r\n lo >>> 16 & 0xff,\r\n lo >>> 24 ,\r\n hi & 0xff,\r\n hi >>> 8 & 0xff,\r\n hi >>> 16 & 0xff,\r\n hi >>> 24\r\n ];\r\n};\r\n\r\n/**\r\n * Converts this Long to its big endian byte representation.\r\n * @returns {!Array.} Big endian byte representation\r\n */\r\nLongPrototype.toBytesBE = function toBytesBE() {\r\n var hi = this.high,\r\n lo = this.low;\r\n return [\r\n hi >>> 24 ,\r\n hi >>> 16 & 0xff,\r\n hi >>> 8 & 0xff,\r\n hi & 0xff,\r\n lo >>> 24 ,\r\n lo >>> 16 & 0xff,\r\n lo >>> 8 & 0xff,\r\n lo & 0xff\r\n ];\r\n};\r\n\r\n/**\r\n * Creates a Long from its byte representation.\r\n * @param {!Array.} bytes Byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @param {boolean=} le Whether little or big endian, defaults to big endian\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytes = function fromBytes(bytes, unsigned, le) {\r\n return le ? Long.fromBytesLE(bytes, unsigned) : Long.fromBytesBE(bytes, unsigned);\r\n};\r\n\r\n/**\r\n * Creates a Long from its little endian byte representation.\r\n * @param {!Array.} bytes Little endian byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytesLE = function fromBytesLE(bytes, unsigned) {\r\n return new Long(\r\n bytes[0] |\r\n bytes[1] << 8 |\r\n bytes[2] << 16 |\r\n bytes[3] << 24,\r\n bytes[4] |\r\n bytes[5] << 8 |\r\n bytes[6] << 16 |\r\n bytes[7] << 24,\r\n unsigned\r\n );\r\n};\r\n\r\n/**\r\n * Creates a Long from its big endian byte representation.\r\n * @param {!Array.} bytes Big endian byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytesBE = function fromBytesBE(bytes, unsigned) {\r\n return new Long(\r\n bytes[4] << 24 |\r\n bytes[5] << 16 |\r\n bytes[6] << 8 |\r\n bytes[7],\r\n bytes[0] << 24 |\r\n bytes[1] << 16 |\r\n bytes[2] << 8 |\r\n bytes[3],\r\n unsigned\r\n );\r\n};\r\n","\"use strict\";\n\nvar Buffer = require(\"safer-buffer\").Buffer;\n\nvar bomHandling = require(\"./bom-handling\"),\n iconv = module.exports;\n\n// All codecs and aliases are kept here, keyed by encoding name/alias.\n// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.\niconv.encodings = null;\n\n// Characters emitted in case of error.\niconv.defaultCharUnicode = '�';\niconv.defaultCharSingleByte = '?';\n\n// Public API.\niconv.encode = function encode(str, encoding, options) {\n str = \"\" + (str || \"\"); // Ensure string.\n\n var encoder = iconv.getEncoder(encoding, options);\n\n var res = encoder.write(str);\n var trail = encoder.end();\n \n return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res;\n}\n\niconv.decode = function decode(buf, encoding, options) {\n if (typeof buf === 'string') {\n if (!iconv.skipDecodeWarning) {\n console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding');\n iconv.skipDecodeWarning = true;\n }\n\n buf = Buffer.from(\"\" + (buf || \"\"), \"binary\"); // Ensure buffer.\n }\n\n var decoder = iconv.getDecoder(encoding, options);\n\n var res = decoder.write(buf);\n var trail = decoder.end();\n\n return trail ? (res + trail) : res;\n}\n\niconv.encodingExists = function encodingExists(enc) {\n try {\n iconv.getCodec(enc);\n return true;\n } catch (e) {\n return false;\n }\n}\n\n// Legacy aliases to convert functions\niconv.toEncoding = iconv.encode;\niconv.fromEncoding = iconv.decode;\n\n// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.\niconv._codecDataCache = {};\niconv.getCodec = function getCodec(encoding) {\n if (!iconv.encodings)\n iconv.encodings = require(\"../encodings\"); // Lazy load all encoding definitions.\n \n // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.\n var enc = iconv._canonicalizeEncoding(encoding);\n\n // Traverse iconv.encodings to find actual codec.\n var codecOptions = {};\n while (true) {\n var codec = iconv._codecDataCache[enc];\n if (codec)\n return codec;\n\n var codecDef = iconv.encodings[enc];\n\n switch (typeof codecDef) {\n case \"string\": // Direct alias to other encoding.\n enc = codecDef;\n break;\n\n case \"object\": // Alias with options. Can be layered.\n for (var key in codecDef)\n codecOptions[key] = codecDef[key];\n\n if (!codecOptions.encodingName)\n codecOptions.encodingName = enc;\n \n enc = codecDef.type;\n break;\n\n case \"function\": // Codec itself.\n if (!codecOptions.encodingName)\n codecOptions.encodingName = enc;\n\n // The codec function must load all tables and return object with .encoder and .decoder methods.\n // It'll be called only once (for each different options object).\n codec = new codecDef(codecOptions, iconv);\n\n iconv._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later.\n return codec;\n\n default:\n throw new Error(\"Encoding not recognized: '\" + encoding + \"' (searched as: '\"+enc+\"')\");\n }\n }\n}\n\niconv._canonicalizeEncoding = function(encoding) {\n // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.\n return (''+encoding).toLowerCase().replace(/:\\d{4}$|[^0-9a-z]/g, \"\");\n}\n\niconv.getEncoder = function getEncoder(encoding, options) {\n var codec = iconv.getCodec(encoding),\n encoder = new codec.encoder(options, codec);\n\n if (codec.bomAware && options && options.addBOM)\n encoder = new bomHandling.PrependBOM(encoder, options);\n\n return encoder;\n}\n\niconv.getDecoder = function getDecoder(encoding, options) {\n var codec = iconv.getCodec(encoding),\n decoder = new codec.decoder(options, codec);\n\n if (codec.bomAware && !(options && options.stripBOM === false))\n decoder = new bomHandling.StripBOM(decoder, options);\n\n return decoder;\n}\n\n// Streaming API\n// NOTE: Streaming API naturally depends on 'stream' module from Node.js. Unfortunately in browser environments this module can add\n// up to 100Kb to the output bundle. To avoid unnecessary code bloat, we don't enable Streaming API in browser by default.\n// If you would like to enable it explicitly, please add the following code to your app:\n// > iconv.enableStreamingAPI(require('stream'));\niconv.enableStreamingAPI = function enableStreamingAPI(stream_module) {\n if (iconv.supportsStreams)\n return;\n\n // Dependency-inject stream module to create IconvLite stream classes.\n var streams = require(\"./streams\")(stream_module);\n\n // Not public API yet, but expose the stream classes.\n iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;\n iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;\n\n // Streaming API.\n iconv.encodeStream = function encodeStream(encoding, options) {\n return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);\n }\n\n iconv.decodeStream = function decodeStream(encoding, options) {\n return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);\n }\n\n iconv.supportsStreams = true;\n}\n\n// Enable Streaming API automatically if 'stream' module is available and non-empty (the majority of environments).\nvar stream_module;\ntry {\n stream_module = require(\"stream\");\n} catch (e) {}\n\nif (stream_module && stream_module.Transform) {\n iconv.enableStreamingAPI(stream_module);\n\n} else {\n // In rare cases where 'stream' module is not available by default, throw a helpful exception.\n iconv.encodeStream = iconv.decodeStream = function() {\n throw new Error(\"iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.\");\n };\n}\n\nif (\"Ā\" != \"\\u0100\") {\n console.error(\"iconv-lite warning: js files use non-utf8 encoding. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info.\");\n}\n","\"use strict\";\n\nvar BOMChar = '\\uFEFF';\n\nexports.PrependBOM = PrependBOMWrapper\nfunction PrependBOMWrapper(encoder, options) {\n this.encoder = encoder;\n this.addBOM = true;\n}\n\nPrependBOMWrapper.prototype.write = function(str) {\n if (this.addBOM) {\n str = BOMChar + str;\n this.addBOM = false;\n }\n\n return this.encoder.write(str);\n}\n\nPrependBOMWrapper.prototype.end = function() {\n return this.encoder.end();\n}\n\n\n//------------------------------------------------------------------------------\n\nexports.StripBOM = StripBOMWrapper;\nfunction StripBOMWrapper(decoder, options) {\n this.decoder = decoder;\n this.pass = false;\n this.options = options || {};\n}\n\nStripBOMWrapper.prototype.write = function(buf) {\n var res = this.decoder.write(buf);\n if (this.pass || !res)\n return res;\n\n if (res[0] === BOMChar) {\n res = res.slice(1);\n if (typeof this.options.stripBOM === 'function')\n this.options.stripBOM();\n }\n\n this.pass = true;\n return res;\n}\n\nStripBOMWrapper.prototype.end = function() {\n return this.decoder.end();\n}\n\n","\"use strict\";\n\n// Update this array if you add/rename/remove files in this directory.\n// We support Browserify by skipping automatic module discovery and requiring modules directly.\nvar modules = [\n require(\"./internal\"),\n require(\"./utf32\"),\n require(\"./utf16\"),\n require(\"./utf7\"),\n require(\"./sbcs-codec\"),\n require(\"./sbcs-data\"),\n require(\"./sbcs-data-generated\"),\n require(\"./dbcs-codec\"),\n require(\"./dbcs-data\"),\n];\n\n// Put all encoding/alias/codec definitions to single object and export it.\nfor (var i = 0; i < modules.length; i++) {\n var module = modules[i];\n for (var enc in module)\n if (Object.prototype.hasOwnProperty.call(module, enc))\n exports[enc] = module[enc];\n}\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Export Node.js internal encodings.\n\nmodule.exports = {\n // Encodings\n utf8: { type: \"_internal\", bomAware: true},\n cesu8: { type: \"_internal\", bomAware: true},\n unicode11utf8: \"utf8\",\n\n ucs2: { type: \"_internal\", bomAware: true},\n utf16le: \"ucs2\",\n\n binary: { type: \"_internal\" },\n base64: { type: \"_internal\" },\n hex: { type: \"_internal\" },\n\n // Codec.\n _internal: InternalCodec,\n};\n\n//------------------------------------------------------------------------------\n\nfunction InternalCodec(codecOptions, iconv) {\n this.enc = codecOptions.encodingName;\n this.bomAware = codecOptions.bomAware;\n\n if (this.enc === \"base64\")\n this.encoder = InternalEncoderBase64;\n else if (this.enc === \"cesu8\") {\n this.enc = \"utf8\"; // Use utf8 for decoding.\n this.encoder = InternalEncoderCesu8;\n\n // Add decoder for versions of Node not supporting CESU-8\n if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') {\n this.decoder = InternalDecoderCesu8;\n this.defaultCharUnicode = iconv.defaultCharUnicode;\n }\n }\n}\n\nInternalCodec.prototype.encoder = InternalEncoder;\nInternalCodec.prototype.decoder = InternalDecoder;\n\n//------------------------------------------------------------------------------\n\n// We use node.js internal decoder. Its signature is the same as ours.\nvar StringDecoder = require('string_decoder').StringDecoder;\n\nif (!StringDecoder.prototype.end) // Node v0.8 doesn't have this method.\n StringDecoder.prototype.end = function() {};\n\n\nfunction InternalDecoder(options, codec) {\n this.decoder = new StringDecoder(codec.enc);\n}\n\nInternalDecoder.prototype.write = function(buf) {\n if (!Buffer.isBuffer(buf)) {\n buf = Buffer.from(buf);\n }\n\n return this.decoder.write(buf);\n}\n\nInternalDecoder.prototype.end = function() {\n return this.decoder.end();\n}\n\n\n//------------------------------------------------------------------------------\n// Encoder is mostly trivial\n\nfunction InternalEncoder(options, codec) {\n this.enc = codec.enc;\n}\n\nInternalEncoder.prototype.write = function(str) {\n return Buffer.from(str, this.enc);\n}\n\nInternalEncoder.prototype.end = function() {\n}\n\n\n//------------------------------------------------------------------------------\n// Except base64 encoder, which must keep its state.\n\nfunction InternalEncoderBase64(options, codec) {\n this.prevStr = '';\n}\n\nInternalEncoderBase64.prototype.write = function(str) {\n str = this.prevStr + str;\n var completeQuads = str.length - (str.length % 4);\n this.prevStr = str.slice(completeQuads);\n str = str.slice(0, completeQuads);\n\n return Buffer.from(str, \"base64\");\n}\n\nInternalEncoderBase64.prototype.end = function() {\n return Buffer.from(this.prevStr, \"base64\");\n}\n\n\n//------------------------------------------------------------------------------\n// CESU-8 encoder is also special.\n\nfunction InternalEncoderCesu8(options, codec) {\n}\n\nInternalEncoderCesu8.prototype.write = function(str) {\n var buf = Buffer.alloc(str.length * 3), bufIdx = 0;\n for (var i = 0; i < str.length; i++) {\n var charCode = str.charCodeAt(i);\n // Naive implementation, but it works because CESU-8 is especially easy\n // to convert from UTF-16 (which all JS strings are encoded in).\n if (charCode < 0x80)\n buf[bufIdx++] = charCode;\n else if (charCode < 0x800) {\n buf[bufIdx++] = 0xC0 + (charCode >>> 6);\n buf[bufIdx++] = 0x80 + (charCode & 0x3f);\n }\n else { // charCode will always be < 0x10000 in javascript.\n buf[bufIdx++] = 0xE0 + (charCode >>> 12);\n buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f);\n buf[bufIdx++] = 0x80 + (charCode & 0x3f);\n }\n }\n return buf.slice(0, bufIdx);\n}\n\nInternalEncoderCesu8.prototype.end = function() {\n}\n\n//------------------------------------------------------------------------------\n// CESU-8 decoder is not implemented in Node v4.0+\n\nfunction InternalDecoderCesu8(options, codec) {\n this.acc = 0;\n this.contBytes = 0;\n this.accBytes = 0;\n this.defaultCharUnicode = codec.defaultCharUnicode;\n}\n\nInternalDecoderCesu8.prototype.write = function(buf) {\n var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, \n res = '';\n for (var i = 0; i < buf.length; i++) {\n var curByte = buf[i];\n if ((curByte & 0xC0) !== 0x80) { // Leading byte\n if (contBytes > 0) { // Previous code is invalid\n res += this.defaultCharUnicode;\n contBytes = 0;\n }\n\n if (curByte < 0x80) { // Single-byte code\n res += String.fromCharCode(curByte);\n } else if (curByte < 0xE0) { // Two-byte code\n acc = curByte & 0x1F;\n contBytes = 1; accBytes = 1;\n } else if (curByte < 0xF0) { // Three-byte code\n acc = curByte & 0x0F;\n contBytes = 2; accBytes = 1;\n } else { // Four or more are not supported for CESU-8.\n res += this.defaultCharUnicode;\n }\n } else { // Continuation byte\n if (contBytes > 0) { // We're waiting for it.\n acc = (acc << 6) | (curByte & 0x3f);\n contBytes--; accBytes++;\n if (contBytes === 0) {\n // Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80)\n if (accBytes === 2 && acc < 0x80 && acc > 0)\n res += this.defaultCharUnicode;\n else if (accBytes === 3 && acc < 0x800)\n res += this.defaultCharUnicode;\n else\n // Actually add character.\n res += String.fromCharCode(acc);\n }\n } else { // Unexpected continuation byte\n res += this.defaultCharUnicode;\n }\n }\n }\n this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes;\n return res;\n}\n\nInternalDecoderCesu8.prototype.end = function() {\n var res = 0;\n if (this.contBytes > 0)\n res += this.defaultCharUnicode;\n return res;\n}\n","'use strict';\n\nvar Buffer = require('safer-buffer').Buffer;\n\n// == UTF32-LE/BE codec. ==========================================================\n\nexports._utf32 = Utf32Codec;\n\nfunction Utf32Codec(codecOptions, iconv) {\n this.iconv = iconv;\n this.bomAware = true;\n this.isLE = codecOptions.isLE;\n}\n\nexports.utf32le = { type: '_utf32', isLE: true };\nexports.utf32be = { type: '_utf32', isLE: false };\n\n// Aliases\nexports.ucs4le = 'utf32le';\nexports.ucs4be = 'utf32be';\n\nUtf32Codec.prototype.encoder = Utf32Encoder;\nUtf32Codec.prototype.decoder = Utf32Decoder;\n\n// -- Encoding\n\nfunction Utf32Encoder(options, codec) {\n this.isLE = codec.isLE;\n this.highSurrogate = 0;\n}\n\nUtf32Encoder.prototype.write = function(str) {\n var src = Buffer.from(str, 'ucs2');\n var dst = Buffer.alloc(src.length * 2);\n var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;\n var offset = 0;\n\n for (var i = 0; i < src.length; i += 2) {\n var code = src.readUInt16LE(i);\n var isHighSurrogate = (0xD800 <= code && code < 0xDC00);\n var isLowSurrogate = (0xDC00 <= code && code < 0xE000);\n\n if (this.highSurrogate) {\n if (isHighSurrogate || !isLowSurrogate) {\n // There shouldn't be two high surrogates in a row, nor a high surrogate which isn't followed by a low\n // surrogate. If this happens, keep the pending high surrogate as a stand-alone semi-invalid character\n // (technically wrong, but expected by some applications, like Windows file names).\n write32.call(dst, this.highSurrogate, offset);\n offset += 4;\n }\n else {\n // Create 32-bit value from high and low surrogates;\n var codepoint = (((this.highSurrogate - 0xD800) << 10) | (code - 0xDC00)) + 0x10000;\n\n write32.call(dst, codepoint, offset);\n offset += 4;\n this.highSurrogate = 0;\n\n continue;\n }\n }\n\n if (isHighSurrogate)\n this.highSurrogate = code;\n else {\n // Even if the current character is a low surrogate, with no previous high surrogate, we'll\n // encode it as a semi-invalid stand-alone character for the same reasons expressed above for\n // unpaired high surrogates.\n write32.call(dst, code, offset);\n offset += 4;\n this.highSurrogate = 0;\n }\n }\n\n if (offset < dst.length)\n dst = dst.slice(0, offset);\n\n return dst;\n};\n\nUtf32Encoder.prototype.end = function() {\n // Treat any leftover high surrogate as a semi-valid independent character.\n if (!this.highSurrogate)\n return;\n\n var buf = Buffer.alloc(4);\n\n if (this.isLE)\n buf.writeUInt32LE(this.highSurrogate, 0);\n else\n buf.writeUInt32BE(this.highSurrogate, 0);\n\n this.highSurrogate = 0;\n\n return buf;\n};\n\n// -- Decoding\n\nfunction Utf32Decoder(options, codec) {\n this.isLE = codec.isLE;\n this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0);\n this.overflow = [];\n}\n\nUtf32Decoder.prototype.write = function(src) {\n if (src.length === 0)\n return '';\n\n var i = 0;\n var codepoint = 0;\n var dst = Buffer.alloc(src.length + 4);\n var offset = 0;\n var isLE = this.isLE;\n var overflow = this.overflow;\n var badChar = this.badChar;\n\n if (overflow.length > 0) {\n for (; i < src.length && overflow.length < 4; i++)\n overflow.push(src[i]);\n \n if (overflow.length === 4) {\n // NOTE: codepoint is a signed int32 and can be negative.\n // NOTE: We copied this block from below to help V8 optimize it (it works with array, not buffer).\n if (isLE) {\n codepoint = overflow[i] | (overflow[i+1] << 8) | (overflow[i+2] << 16) | (overflow[i+3] << 24);\n } else {\n codepoint = overflow[i+3] | (overflow[i+2] << 8) | (overflow[i+1] << 16) | (overflow[i] << 24);\n }\n overflow.length = 0;\n\n offset = _writeCodepoint(dst, offset, codepoint, badChar);\n }\n }\n\n // Main loop. Should be as optimized as possible.\n for (; i < src.length - 3; i += 4) {\n // NOTE: codepoint is a signed int32 and can be negative.\n if (isLE) {\n codepoint = src[i] | (src[i+1] << 8) | (src[i+2] << 16) | (src[i+3] << 24);\n } else {\n codepoint = src[i+3] | (src[i+2] << 8) | (src[i+1] << 16) | (src[i] << 24);\n }\n offset = _writeCodepoint(dst, offset, codepoint, badChar);\n }\n\n // Keep overflowing bytes.\n for (; i < src.length; i++) {\n overflow.push(src[i]);\n }\n\n return dst.slice(0, offset).toString('ucs2');\n};\n\nfunction _writeCodepoint(dst, offset, codepoint, badChar) {\n // NOTE: codepoint is signed int32 and can be negative. We keep it that way to help V8 with optimizations.\n if (codepoint < 0 || codepoint > 0x10FFFF) {\n // Not a valid Unicode codepoint\n codepoint = badChar;\n } \n\n // Ephemeral Planes: Write high surrogate.\n if (codepoint >= 0x10000) {\n codepoint -= 0x10000;\n\n var high = 0xD800 | (codepoint >> 10);\n dst[offset++] = high & 0xff;\n dst[offset++] = high >> 8;\n\n // Low surrogate is written below.\n var codepoint = 0xDC00 | (codepoint & 0x3FF);\n }\n\n // Write BMP char or low surrogate.\n dst[offset++] = codepoint & 0xff;\n dst[offset++] = codepoint >> 8;\n\n return offset;\n};\n\nUtf32Decoder.prototype.end = function() {\n this.overflow.length = 0;\n};\n\n// == UTF-32 Auto codec =============================================================\n// Decoder chooses automatically from UTF-32LE and UTF-32BE using BOM and space-based heuristic.\n// Defaults to UTF-32LE. http://en.wikipedia.org/wiki/UTF-32\n// Encoder/decoder default can be changed: iconv.decode(buf, 'utf32', {defaultEncoding: 'utf-32be'});\n\n// Encoder prepends BOM (which can be overridden with (addBOM: false}).\n\nexports.utf32 = Utf32AutoCodec;\nexports.ucs4 = 'utf32';\n\nfunction Utf32AutoCodec(options, iconv) {\n this.iconv = iconv;\n}\n\nUtf32AutoCodec.prototype.encoder = Utf32AutoEncoder;\nUtf32AutoCodec.prototype.decoder = Utf32AutoDecoder;\n\n// -- Encoding\n\nfunction Utf32AutoEncoder(options, codec) {\n options = options || {};\n\n if (options.addBOM === undefined)\n options.addBOM = true;\n\n this.encoder = codec.iconv.getEncoder(options.defaultEncoding || 'utf-32le', options);\n}\n\nUtf32AutoEncoder.prototype.write = function(str) {\n return this.encoder.write(str);\n};\n\nUtf32AutoEncoder.prototype.end = function() {\n return this.encoder.end();\n};\n\n// -- Decoding\n\nfunction Utf32AutoDecoder(options, codec) {\n this.decoder = null;\n this.initialBufs = [];\n this.initialBufsLen = 0;\n this.options = options || {};\n this.iconv = codec.iconv;\n}\n\nUtf32AutoDecoder.prototype.write = function(buf) {\n if (!this.decoder) { \n // Codec is not chosen yet. Accumulate initial bytes.\n this.initialBufs.push(buf);\n this.initialBufsLen += buf.length;\n\n if (this.initialBufsLen < 32) // We need more bytes to use space heuristic (see below)\n return '';\n\n // We have enough bytes -> detect endianness.\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.write(buf);\n};\n\nUtf32AutoDecoder.prototype.end = function() {\n if (!this.decoder) {\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n var trail = this.decoder.end();\n if (trail)\n resStr += trail;\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.end();\n};\n\nfunction detectEncoding(bufs, defaultEncoding) {\n var b = [];\n var charsProcessed = 0;\n var invalidLE = 0, invalidBE = 0; // Number of invalid chars when decoded as LE or BE.\n var bmpCharsLE = 0, bmpCharsBE = 0; // Number of BMP chars when decoded as LE or BE.\n\n outer_loop:\n for (var i = 0; i < bufs.length; i++) {\n var buf = bufs[i];\n for (var j = 0; j < buf.length; j++) {\n b.push(buf[j]);\n if (b.length === 4) {\n if (charsProcessed === 0) {\n // Check BOM first.\n if (b[0] === 0xFF && b[1] === 0xFE && b[2] === 0 && b[3] === 0) {\n return 'utf-32le';\n }\n if (b[0] === 0 && b[1] === 0 && b[2] === 0xFE && b[3] === 0xFF) {\n return 'utf-32be';\n }\n }\n\n if (b[0] !== 0 || b[1] > 0x10) invalidBE++;\n if (b[3] !== 0 || b[2] > 0x10) invalidLE++;\n\n if (b[0] === 0 && b[1] === 0 && (b[2] !== 0 || b[3] !== 0)) bmpCharsBE++;\n if ((b[0] !== 0 || b[1] !== 0) && b[2] === 0 && b[3] === 0) bmpCharsLE++;\n\n b.length = 0;\n charsProcessed++;\n\n if (charsProcessed >= 100) {\n break outer_loop;\n }\n }\n }\n }\n\n // Make decisions.\n if (bmpCharsBE - invalidBE > bmpCharsLE - invalidLE) return 'utf-32be';\n if (bmpCharsBE - invalidBE < bmpCharsLE - invalidLE) return 'utf-32le';\n\n // Couldn't decide (likely all zeros or not enough data).\n return defaultEncoding || 'utf-32le';\n}\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js\n\n// == UTF16-BE codec. ==========================================================\n\nexports.utf16be = Utf16BECodec;\nfunction Utf16BECodec() {\n}\n\nUtf16BECodec.prototype.encoder = Utf16BEEncoder;\nUtf16BECodec.prototype.decoder = Utf16BEDecoder;\nUtf16BECodec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nfunction Utf16BEEncoder() {\n}\n\nUtf16BEEncoder.prototype.write = function(str) {\n var buf = Buffer.from(str, 'ucs2');\n for (var i = 0; i < buf.length; i += 2) {\n var tmp = buf[i]; buf[i] = buf[i+1]; buf[i+1] = tmp;\n }\n return buf;\n}\n\nUtf16BEEncoder.prototype.end = function() {\n}\n\n\n// -- Decoding\n\nfunction Utf16BEDecoder() {\n this.overflowByte = -1;\n}\n\nUtf16BEDecoder.prototype.write = function(buf) {\n if (buf.length == 0)\n return '';\n\n var buf2 = Buffer.alloc(buf.length + 1),\n i = 0, j = 0;\n\n if (this.overflowByte !== -1) {\n buf2[0] = buf[0];\n buf2[1] = this.overflowByte;\n i = 1; j = 2;\n }\n\n for (; i < buf.length-1; i += 2, j+= 2) {\n buf2[j] = buf[i+1];\n buf2[j+1] = buf[i];\n }\n\n this.overflowByte = (i == buf.length-1) ? buf[buf.length-1] : -1;\n\n return buf2.slice(0, j).toString('ucs2');\n}\n\nUtf16BEDecoder.prototype.end = function() {\n this.overflowByte = -1;\n}\n\n\n// == UTF-16 codec =============================================================\n// Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic.\n// Defaults to UTF-16LE, as it's prevalent and default in Node.\n// http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le\n// Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'});\n\n// Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false).\n\nexports.utf16 = Utf16Codec;\nfunction Utf16Codec(codecOptions, iconv) {\n this.iconv = iconv;\n}\n\nUtf16Codec.prototype.encoder = Utf16Encoder;\nUtf16Codec.prototype.decoder = Utf16Decoder;\n\n\n// -- Encoding (pass-through)\n\nfunction Utf16Encoder(options, codec) {\n options = options || {};\n if (options.addBOM === undefined)\n options.addBOM = true;\n this.encoder = codec.iconv.getEncoder('utf-16le', options);\n}\n\nUtf16Encoder.prototype.write = function(str) {\n return this.encoder.write(str);\n}\n\nUtf16Encoder.prototype.end = function() {\n return this.encoder.end();\n}\n\n\n// -- Decoding\n\nfunction Utf16Decoder(options, codec) {\n this.decoder = null;\n this.initialBufs = [];\n this.initialBufsLen = 0;\n\n this.options = options || {};\n this.iconv = codec.iconv;\n}\n\nUtf16Decoder.prototype.write = function(buf) {\n if (!this.decoder) {\n // Codec is not chosen yet. Accumulate initial bytes.\n this.initialBufs.push(buf);\n this.initialBufsLen += buf.length;\n \n if (this.initialBufsLen < 16) // We need more bytes to use space heuristic (see below)\n return '';\n\n // We have enough bytes -> detect endianness.\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.write(buf);\n}\n\nUtf16Decoder.prototype.end = function() {\n if (!this.decoder) {\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n var trail = this.decoder.end();\n if (trail)\n resStr += trail;\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n return this.decoder.end();\n}\n\nfunction detectEncoding(bufs, defaultEncoding) {\n var b = [];\n var charsProcessed = 0;\n var asciiCharsLE = 0, asciiCharsBE = 0; // Number of ASCII chars when decoded as LE or BE.\n\n outer_loop:\n for (var i = 0; i < bufs.length; i++) {\n var buf = bufs[i];\n for (var j = 0; j < buf.length; j++) {\n b.push(buf[j]);\n if (b.length === 2) {\n if (charsProcessed === 0) {\n // Check BOM first.\n if (b[0] === 0xFF && b[1] === 0xFE) return 'utf-16le';\n if (b[0] === 0xFE && b[1] === 0xFF) return 'utf-16be';\n }\n\n if (b[0] === 0 && b[1] !== 0) asciiCharsBE++;\n if (b[0] !== 0 && b[1] === 0) asciiCharsLE++;\n\n b.length = 0;\n charsProcessed++;\n\n if (charsProcessed >= 100) {\n break outer_loop;\n }\n }\n }\n }\n\n // Make decisions.\n // Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon.\n // So, we count ASCII as if it was LE or BE, and decide from that.\n if (asciiCharsBE > asciiCharsLE) return 'utf-16be';\n if (asciiCharsBE < asciiCharsLE) return 'utf-16le';\n\n // Couldn't decide (likely all zeros or not enough data).\n return defaultEncoding || 'utf-16le';\n}\n\n\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152\n// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3\n\nexports.utf7 = Utf7Codec;\nexports.unicode11utf7 = 'utf7'; // Alias UNICODE-1-1-UTF-7\nfunction Utf7Codec(codecOptions, iconv) {\n this.iconv = iconv;\n};\n\nUtf7Codec.prototype.encoder = Utf7Encoder;\nUtf7Codec.prototype.decoder = Utf7Decoder;\nUtf7Codec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nvar nonDirectChars = /[^A-Za-z0-9'\\(\\),-\\.\\/:\\? \\n\\r\\t]+/g;\n\nfunction Utf7Encoder(options, codec) {\n this.iconv = codec.iconv;\n}\n\nUtf7Encoder.prototype.write = function(str) {\n // Naive implementation.\n // Non-direct chars are encoded as \"+-\"; single \"+\" char is encoded as \"+-\".\n return Buffer.from(str.replace(nonDirectChars, function(chunk) {\n return \"+\" + (chunk === '+' ? '' : \n this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, '')) \n + \"-\";\n }.bind(this)));\n}\n\nUtf7Encoder.prototype.end = function() {\n}\n\n\n// -- Decoding\n\nfunction Utf7Decoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = '';\n}\n\nvar base64Regex = /[A-Za-z0-9\\/+]/;\nvar base64Chars = [];\nfor (var i = 0; i < 256; i++)\n base64Chars[i] = base64Regex.test(String.fromCharCode(i));\n\nvar plusChar = '+'.charCodeAt(0), \n minusChar = '-'.charCodeAt(0),\n andChar = '&'.charCodeAt(0);\n\nUtf7Decoder.prototype.write = function(buf) {\n var res = \"\", lastI = 0,\n inBase64 = this.inBase64,\n base64Accum = this.base64Accum;\n\n // The decoder is more involved as we must handle chunks in stream.\n\n for (var i = 0; i < buf.length; i++) {\n if (!inBase64) { // We're in direct mode.\n // Write direct chars until '+'\n if (buf[i] == plusChar) {\n res += this.iconv.decode(buf.slice(lastI, i), \"ascii\"); // Write direct chars.\n lastI = i+1;\n inBase64 = true;\n }\n } else { // We decode base64.\n if (!base64Chars[buf[i]]) { // Base64 ended.\n if (i == lastI && buf[i] == minusChar) {// \"+-\" -> \"+\"\n res += \"+\";\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), \"ascii\");\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n if (buf[i] != minusChar) // Minus is absorbed after base64.\n i--;\n\n lastI = i+1;\n inBase64 = false;\n base64Accum = '';\n }\n }\n }\n\n if (!inBase64) {\n res += this.iconv.decode(buf.slice(lastI), \"ascii\"); // Write direct chars.\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), \"ascii\");\n\n var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.\n base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.\n b64str = b64str.slice(0, canBeDecoded);\n\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n this.inBase64 = inBase64;\n this.base64Accum = base64Accum;\n\n return res;\n}\n\nUtf7Decoder.prototype.end = function() {\n var res = \"\";\n if (this.inBase64 && this.base64Accum.length > 0)\n res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), \"utf16-be\");\n\n this.inBase64 = false;\n this.base64Accum = '';\n return res;\n}\n\n\n// UTF-7-IMAP codec.\n// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)\n// Differences:\n// * Base64 part is started by \"&\" instead of \"+\"\n// * Direct characters are 0x20-0x7E, except \"&\" (0x26)\n// * In Base64, \",\" is used instead of \"/\"\n// * Base64 must not be used to represent direct characters.\n// * No implicit shift back from Base64 (should always end with '-')\n// * String must end in non-shifted position.\n// * \"-&\" while in base64 is not allowed.\n\n\nexports.utf7imap = Utf7IMAPCodec;\nfunction Utf7IMAPCodec(codecOptions, iconv) {\n this.iconv = iconv;\n};\n\nUtf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;\nUtf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;\nUtf7IMAPCodec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nfunction Utf7IMAPEncoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = Buffer.alloc(6);\n this.base64AccumIdx = 0;\n}\n\nUtf7IMAPEncoder.prototype.write = function(str) {\n var inBase64 = this.inBase64,\n base64Accum = this.base64Accum,\n base64AccumIdx = this.base64AccumIdx,\n buf = Buffer.alloc(str.length*5 + 10), bufIdx = 0;\n\n for (var i = 0; i < str.length; i++) {\n var uChar = str.charCodeAt(i);\n if (0x20 <= uChar && uChar <= 0x7E) { // Direct character or '&'.\n if (inBase64) {\n if (base64AccumIdx > 0) {\n bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString('base64').replace(/\\//g, ',').replace(/=+$/, ''), bufIdx);\n base64AccumIdx = 0;\n }\n\n buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.\n inBase64 = false;\n }\n\n if (!inBase64) {\n buf[bufIdx++] = uChar; // Write direct character\n\n if (uChar === andChar) // Ampersand -> '&-'\n buf[bufIdx++] = minusChar;\n }\n\n } else { // Non-direct character\n if (!inBase64) {\n buf[bufIdx++] = andChar; // Write '&', then go to base64 mode.\n inBase64 = true;\n }\n if (inBase64) {\n base64Accum[base64AccumIdx++] = uChar >> 8;\n base64Accum[base64AccumIdx++] = uChar & 0xFF;\n\n if (base64AccumIdx == base64Accum.length) {\n bufIdx += buf.write(base64Accum.toString('base64').replace(/\\//g, ','), bufIdx);\n base64AccumIdx = 0;\n }\n }\n }\n }\n\n this.inBase64 = inBase64;\n this.base64AccumIdx = base64AccumIdx;\n\n return buf.slice(0, bufIdx);\n}\n\nUtf7IMAPEncoder.prototype.end = function() {\n var buf = Buffer.alloc(10), bufIdx = 0;\n if (this.inBase64) {\n if (this.base64AccumIdx > 0) {\n bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString('base64').replace(/\\//g, ',').replace(/=+$/, ''), bufIdx);\n this.base64AccumIdx = 0;\n }\n\n buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.\n this.inBase64 = false;\n }\n\n return buf.slice(0, bufIdx);\n}\n\n\n// -- Decoding\n\nfunction Utf7IMAPDecoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = '';\n}\n\nvar base64IMAPChars = base64Chars.slice();\nbase64IMAPChars[','.charCodeAt(0)] = true;\n\nUtf7IMAPDecoder.prototype.write = function(buf) {\n var res = \"\", lastI = 0,\n inBase64 = this.inBase64,\n base64Accum = this.base64Accum;\n\n // The decoder is more involved as we must handle chunks in stream.\n // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).\n\n for (var i = 0; i < buf.length; i++) {\n if (!inBase64) { // We're in direct mode.\n // Write direct chars until '&'\n if (buf[i] == andChar) {\n res += this.iconv.decode(buf.slice(lastI, i), \"ascii\"); // Write direct chars.\n lastI = i+1;\n inBase64 = true;\n }\n } else { // We decode base64.\n if (!base64IMAPChars[buf[i]]) { // Base64 ended.\n if (i == lastI && buf[i] == minusChar) { // \"&-\" -> \"&\"\n res += \"&\";\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), \"ascii\").replace(/,/g, '/');\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n if (buf[i] != minusChar) // Minus may be absorbed after base64.\n i--;\n\n lastI = i+1;\n inBase64 = false;\n base64Accum = '';\n }\n }\n }\n\n if (!inBase64) {\n res += this.iconv.decode(buf.slice(lastI), \"ascii\"); // Write direct chars.\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), \"ascii\").replace(/,/g, '/');\n\n var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.\n base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.\n b64str = b64str.slice(0, canBeDecoded);\n\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n this.inBase64 = inBase64;\n this.base64Accum = base64Accum;\n\n return res;\n}\n\nUtf7IMAPDecoder.prototype.end = function() {\n var res = \"\";\n if (this.inBase64 && this.base64Accum.length > 0)\n res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), \"utf16-be\");\n\n this.inBase64 = false;\n this.base64Accum = '';\n return res;\n}\n\n\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that\n// correspond to encoded bytes (if 128 - then lower half is ASCII). \n\nexports._sbcs = SBCSCodec;\nfunction SBCSCodec(codecOptions, iconv) {\n if (!codecOptions)\n throw new Error(\"SBCS codec is called without the data.\")\n \n // Prepare char buffer for decoding.\n if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256))\n throw new Error(\"Encoding '\"+codecOptions.type+\"' has incorrect 'chars' (must be of len 128 or 256)\");\n \n if (codecOptions.chars.length === 128) {\n var asciiString = \"\";\n for (var i = 0; i < 128; i++)\n asciiString += String.fromCharCode(i);\n codecOptions.chars = asciiString + codecOptions.chars;\n }\n\n this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2');\n \n // Encoding buffer.\n var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));\n\n for (var i = 0; i < codecOptions.chars.length; i++)\n encodeBuf[codecOptions.chars.charCodeAt(i)] = i;\n\n this.encodeBuf = encodeBuf;\n}\n\nSBCSCodec.prototype.encoder = SBCSEncoder;\nSBCSCodec.prototype.decoder = SBCSDecoder;\n\n\nfunction SBCSEncoder(options, codec) {\n this.encodeBuf = codec.encodeBuf;\n}\n\nSBCSEncoder.prototype.write = function(str) {\n var buf = Buffer.alloc(str.length);\n for (var i = 0; i < str.length; i++)\n buf[i] = this.encodeBuf[str.charCodeAt(i)];\n \n return buf;\n}\n\nSBCSEncoder.prototype.end = function() {\n}\n\n\nfunction SBCSDecoder(options, codec) {\n this.decodeBuf = codec.decodeBuf;\n}\n\nSBCSDecoder.prototype.write = function(buf) {\n // Strings are immutable in JS -> we use ucs2 buffer to speed up computations.\n var decodeBuf = this.decodeBuf;\n var newBuf = Buffer.alloc(buf.length*2);\n var idx1 = 0, idx2 = 0;\n for (var i = 0; i < buf.length; i++) {\n idx1 = buf[i]*2; idx2 = i*2;\n newBuf[idx2] = decodeBuf[idx1];\n newBuf[idx2+1] = decodeBuf[idx1+1];\n }\n return newBuf.toString('ucs2');\n}\n\nSBCSDecoder.prototype.end = function() {\n}\n","\"use strict\";\n\n// Manually added data to be used by sbcs codec in addition to generated one.\n\nmodule.exports = {\n // Not supported by iconv, not sure why.\n \"10029\": \"maccenteuro\",\n \"maccenteuro\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\"\n },\n\n \"808\": \"cp808\",\n \"ibm808\": \"cp808\",\n \"cp808\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ \"\n },\n\n \"mik\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n\n \"cp720\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\x80\\x81éâ\\x84à\\x86çêëèïî\\x8d\\x8e\\x8f\\x90\\u0651\\u0652ô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡\\u064b\\u064c\\u064d\\u064e\\u064f\\u0650≈°∙·√ⁿ²■\\u00a0\"\n },\n\n // Aliases of generated encodings.\n \"ascii8bit\": \"ascii\",\n \"usascii\": \"ascii\",\n \"ansix34\": \"ascii\",\n \"ansix341968\": \"ascii\",\n \"ansix341986\": \"ascii\",\n \"csascii\": \"ascii\",\n \"cp367\": \"ascii\",\n \"ibm367\": \"ascii\",\n \"isoir6\": \"ascii\",\n \"iso646us\": \"ascii\",\n \"iso646irv\": \"ascii\",\n \"us\": \"ascii\",\n\n \"latin1\": \"iso88591\",\n \"latin2\": \"iso88592\",\n \"latin3\": \"iso88593\",\n \"latin4\": \"iso88594\",\n \"latin5\": \"iso88599\",\n \"latin6\": \"iso885910\",\n \"latin7\": \"iso885913\",\n \"latin8\": \"iso885914\",\n \"latin9\": \"iso885915\",\n \"latin10\": \"iso885916\",\n\n \"csisolatin1\": \"iso88591\",\n \"csisolatin2\": \"iso88592\",\n \"csisolatin3\": \"iso88593\",\n \"csisolatin4\": \"iso88594\",\n \"csisolatincyrillic\": \"iso88595\",\n \"csisolatinarabic\": \"iso88596\",\n \"csisolatingreek\" : \"iso88597\",\n \"csisolatinhebrew\": \"iso88598\",\n \"csisolatin5\": \"iso88599\",\n \"csisolatin6\": \"iso885910\",\n\n \"l1\": \"iso88591\",\n \"l2\": \"iso88592\",\n \"l3\": \"iso88593\",\n \"l4\": \"iso88594\",\n \"l5\": \"iso88599\",\n \"l6\": \"iso885910\",\n \"l7\": \"iso885913\",\n \"l8\": \"iso885914\",\n \"l9\": \"iso885915\",\n \"l10\": \"iso885916\",\n\n \"isoir14\": \"iso646jp\",\n \"isoir57\": \"iso646cn\",\n \"isoir100\": \"iso88591\",\n \"isoir101\": \"iso88592\",\n \"isoir109\": \"iso88593\",\n \"isoir110\": \"iso88594\",\n \"isoir144\": \"iso88595\",\n \"isoir127\": \"iso88596\",\n \"isoir126\": \"iso88597\",\n \"isoir138\": \"iso88598\",\n \"isoir148\": \"iso88599\",\n \"isoir157\": \"iso885910\",\n \"isoir166\": \"tis620\",\n \"isoir179\": \"iso885913\",\n \"isoir199\": \"iso885914\",\n \"isoir203\": \"iso885915\",\n \"isoir226\": \"iso885916\",\n\n \"cp819\": \"iso88591\",\n \"ibm819\": \"iso88591\",\n\n \"cyrillic\": \"iso88595\",\n\n \"arabic\": \"iso88596\",\n \"arabic8\": \"iso88596\",\n \"ecma114\": \"iso88596\",\n \"asmo708\": \"iso88596\",\n\n \"greek\" : \"iso88597\",\n \"greek8\" : \"iso88597\",\n \"ecma118\" : \"iso88597\",\n \"elot928\" : \"iso88597\",\n\n \"hebrew\": \"iso88598\",\n \"hebrew8\": \"iso88598\",\n\n \"turkish\": \"iso88599\",\n \"turkish8\": \"iso88599\",\n\n \"thai\": \"iso885911\",\n \"thai8\": \"iso885911\",\n\n \"celtic\": \"iso885914\",\n \"celtic8\": \"iso885914\",\n \"isoceltic\": \"iso885914\",\n\n \"tis6200\": \"tis620\",\n \"tis62025291\": \"tis620\",\n \"tis62025330\": \"tis620\",\n\n \"10000\": \"macroman\",\n \"10006\": \"macgreek\",\n \"10007\": \"maccyrillic\",\n \"10079\": \"maciceland\",\n \"10081\": \"macturkish\",\n\n \"cspc8codepage437\": \"cp437\",\n \"cspc775baltic\": \"cp775\",\n \"cspc850multilingual\": \"cp850\",\n \"cspcp852\": \"cp852\",\n \"cspc862latinhebrew\": \"cp862\",\n \"cpgr\": \"cp869\",\n\n \"msee\": \"cp1250\",\n \"mscyrl\": \"cp1251\",\n \"msansi\": \"cp1252\",\n \"msgreek\": \"cp1253\",\n \"msturk\": \"cp1254\",\n \"mshebr\": \"cp1255\",\n \"msarab\": \"cp1256\",\n \"winbaltrim\": \"cp1257\",\n\n \"cp20866\": \"koi8r\",\n \"20866\": \"koi8r\",\n \"ibm878\": \"koi8r\",\n \"cskoi8r\": \"koi8r\",\n\n \"cp21866\": \"koi8u\",\n \"21866\": \"koi8u\",\n \"ibm1168\": \"koi8u\",\n\n \"strk10482002\": \"rk1048\",\n\n \"tcvn5712\": \"tcvn\",\n \"tcvn57121\": \"tcvn\",\n\n \"gb198880\": \"iso646cn\",\n \"cn\": \"iso646cn\",\n\n \"csiso14jisc6220ro\": \"iso646jp\",\n \"jisc62201969ro\": \"iso646jp\",\n \"jp\": \"iso646jp\",\n\n \"cshproman8\": \"hproman8\",\n \"r8\": \"hproman8\",\n \"roman8\": \"hproman8\",\n \"xroman8\": \"hproman8\",\n \"ibm1051\": \"hproman8\",\n\n \"mac\": \"macintosh\",\n \"csmacintosh\": \"macintosh\",\n};\n\n","\"use strict\";\n\n// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.\nmodule.exports = {\n \"437\": \"cp437\",\n \"737\": \"cp737\",\n \"775\": \"cp775\",\n \"850\": \"cp850\",\n \"852\": \"cp852\",\n \"855\": \"cp855\",\n \"856\": \"cp856\",\n \"857\": \"cp857\",\n \"858\": \"cp858\",\n \"860\": \"cp860\",\n \"861\": \"cp861\",\n \"862\": \"cp862\",\n \"863\": \"cp863\",\n \"864\": \"cp864\",\n \"865\": \"cp865\",\n \"866\": \"cp866\",\n \"869\": \"cp869\",\n \"874\": \"windows874\",\n \"922\": \"cp922\",\n \"1046\": \"cp1046\",\n \"1124\": \"cp1124\",\n \"1125\": \"cp1125\",\n \"1129\": \"cp1129\",\n \"1133\": \"cp1133\",\n \"1161\": \"cp1161\",\n \"1162\": \"cp1162\",\n \"1163\": \"cp1163\",\n \"1250\": \"windows1250\",\n \"1251\": \"windows1251\",\n \"1252\": \"windows1252\",\n \"1253\": \"windows1253\",\n \"1254\": \"windows1254\",\n \"1255\": \"windows1255\",\n \"1256\": \"windows1256\",\n \"1257\": \"windows1257\",\n \"1258\": \"windows1258\",\n \"28591\": \"iso88591\",\n \"28592\": \"iso88592\",\n \"28593\": \"iso88593\",\n \"28594\": \"iso88594\",\n \"28595\": \"iso88595\",\n \"28596\": \"iso88596\",\n \"28597\": \"iso88597\",\n \"28598\": \"iso88598\",\n \"28599\": \"iso88599\",\n \"28600\": \"iso885910\",\n \"28601\": \"iso885911\",\n \"28603\": \"iso885913\",\n \"28604\": \"iso885914\",\n \"28605\": \"iso885915\",\n \"28606\": \"iso885916\",\n \"windows874\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"win874\": \"windows874\",\n \"cp874\": \"windows874\",\n \"windows1250\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙\"\n },\n \"win1250\": \"windows1250\",\n \"cp1250\": \"windows1250\",\n \"windows1251\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"win1251\": \"windows1251\",\n \"cp1251\": \"windows1251\",\n \"windows1252\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"win1252\": \"windows1252\",\n \"cp1252\": \"windows1252\",\n \"windows1253\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�\"\n },\n \"win1253\": \"windows1253\",\n \"cp1253\": \"windows1253\",\n \"windows1254\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ\"\n },\n \"win1254\": \"windows1254\",\n \"cp1254\": \"windows1254\",\n \"windows1255\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�\"\n },\n \"win1255\": \"windows1255\",\n \"cp1255\": \"windows1255\",\n \"windows1256\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے\"\n },\n \"win1256\": \"windows1256\",\n \"cp1256\": \"windows1256\",\n \"windows1257\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙\"\n },\n \"win1257\": \"windows1257\",\n \"cp1257\": \"windows1257\",\n \"windows1258\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"win1258\": \"windows1258\",\n \"cp1258\": \"windows1258\",\n \"iso88591\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"cp28591\": \"iso88591\",\n \"iso88592\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙\"\n },\n \"cp28592\": \"iso88592\",\n \"iso88593\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙\"\n },\n \"cp28593\": \"iso88593\",\n \"iso88594\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙\"\n },\n \"cp28594\": \"iso88594\",\n \"iso88595\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ\"\n },\n \"cp28595\": \"iso88595\",\n \"iso88596\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������\"\n },\n \"cp28596\": \"iso88596\",\n \"iso88597\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�\"\n },\n \"cp28597\": \"iso88597\",\n \"iso88598\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�\"\n },\n \"cp28598\": \"iso88598\",\n \"iso88599\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ\"\n },\n \"cp28599\": \"iso88599\",\n \"iso885910\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ\"\n },\n \"cp28600\": \"iso885910\",\n \"iso885911\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"cp28601\": \"iso885911\",\n \"iso885913\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’\"\n },\n \"cp28603\": \"iso885913\",\n \"iso885914\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ\"\n },\n \"cp28604\": \"iso885914\",\n \"iso885915\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"cp28605\": \"iso885915\",\n \"iso885916\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ\"\n },\n \"cp28606\": \"iso885916\",\n \"cp437\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm437\": \"cp437\",\n \"csibm437\": \"cp437\",\n \"cp737\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ \"\n },\n \"ibm737\": \"cp737\",\n \"csibm737\": \"cp737\",\n \"cp775\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ \"\n },\n \"ibm775\": \"cp775\",\n \"csibm775\": \"cp775\",\n \"cp850\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm850\": \"cp850\",\n \"csibm850\": \"cp850\",\n \"cp852\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ \"\n },\n \"ibm852\": \"cp852\",\n \"csibm852\": \"cp852\",\n \"cp855\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ \"\n },\n \"ibm855\": \"cp855\",\n \"csibm855\": \"cp855\",\n \"cp856\": {\n \"type\": \"_sbcs\",\n \"chars\": \"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm856\": \"cp856\",\n \"csibm856\": \"cp856\",\n \"cp857\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm857\": \"cp857\",\n \"csibm857\": \"cp857\",\n \"cp858\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm858\": \"cp858\",\n \"csibm858\": \"cp858\",\n \"cp860\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm860\": \"cp860\",\n \"csibm860\": \"cp860\",\n \"cp861\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm861\": \"cp861\",\n \"csibm861\": \"cp861\",\n \"cp862\": {\n \"type\": \"_sbcs\",\n \"chars\": \"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm862\": \"cp862\",\n \"csibm862\": \"cp862\",\n \"cp863\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm863\": \"cp863\",\n \"csibm863\": \"cp863\",\n \"cp864\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�\"\n },\n \"ibm864\": \"cp864\",\n \"csibm864\": \"cp864\",\n \"cp865\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm865\": \"cp865\",\n \"csibm865\": \"cp865\",\n \"cp866\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ \"\n },\n \"ibm866\": \"cp866\",\n \"csibm866\": \"cp866\",\n \"cp869\": {\n \"type\": \"_sbcs\",\n \"chars\": \"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ \"\n },\n \"ibm869\": \"cp869\",\n \"csibm869\": \"cp869\",\n \"cp922\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ\"\n },\n \"ibm922\": \"cp922\",\n \"csibm922\": \"cp922\",\n \"cp1046\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�\"\n },\n \"ibm1046\": \"cp1046\",\n \"csibm1046\": \"cp1046\",\n \"cp1124\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ\"\n },\n \"ibm1124\": \"cp1124\",\n \"csibm1124\": \"cp1124\",\n \"cp1125\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ \"\n },\n \"ibm1125\": \"cp1125\",\n \"csibm1125\": \"cp1125\",\n \"cp1129\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"ibm1129\": \"cp1129\",\n \"csibm1129\": \"cp1129\",\n \"cp1133\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�\"\n },\n \"ibm1133\": \"cp1133\",\n \"csibm1133\": \"cp1133\",\n \"cp1161\": {\n \"type\": \"_sbcs\",\n \"chars\": \"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ \"\n },\n \"ibm1161\": \"cp1161\",\n \"csibm1161\": \"cp1161\",\n \"cp1162\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"ibm1162\": \"cp1162\",\n \"csibm1162\": \"cp1162\",\n \"cp1163\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"ibm1163\": \"cp1163\",\n \"csibm1163\": \"cp1163\",\n \"maccroatian\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\"\n },\n \"maccyrillic\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤\"\n },\n \"macgreek\": {\n \"type\": \"_sbcs\",\n \"chars\": \"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�\"\n },\n \"maciceland\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macroman\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macromania\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macthai\": {\n \"type\": \"_sbcs\",\n \"chars\": \"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����\"\n },\n \"macturkish\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macukraine\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤\"\n },\n \"koi8r\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8u\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8ru\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8t\": {\n \"type\": \"_sbcs\",\n \"chars\": \"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"armscii8\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�\"\n },\n \"rk1048\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"tcvn\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000ÚỤ\\u0003ỪỬỮ\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010ỨỰỲỶỸÝỴ\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ\"\n },\n \"georgianacademy\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"georgianps\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"pt154\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"viscii\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001Ẳ\\u0003\\u0004ẴẪ\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013Ỷ\\u0015\\u0016\\u0017\\u0018Ỹ\\u001a\\u001b\\u001c\\u001dỴ\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ\"\n },\n \"iso646cn\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"iso646jp\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"hproman8\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�\"\n },\n \"macintosh\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"ascii\": {\n \"type\": \"_sbcs\",\n \"chars\": \"��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"tis620\": {\n \"type\": \"_sbcs\",\n \"chars\": \"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n }\n}","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.\n// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.\n// To save memory and loading time, we read table files only when requested.\n\nexports._dbcs = DBCSCodec;\n\nvar UNASSIGNED = -1,\n GB18030_CODE = -2,\n SEQ_START = -10,\n NODE_START = -1000,\n UNASSIGNED_NODE = new Array(0x100),\n DEF_CHAR = -1;\n\nfor (var i = 0; i < 0x100; i++)\n UNASSIGNED_NODE[i] = UNASSIGNED;\n\n\n// Class DBCSCodec reads and initializes mapping tables.\nfunction DBCSCodec(codecOptions, iconv) {\n this.encodingName = codecOptions.encodingName;\n if (!codecOptions)\n throw new Error(\"DBCS codec is called without the data.\")\n if (!codecOptions.table)\n throw new Error(\"Encoding '\" + this.encodingName + \"' has no data.\");\n\n // Load tables.\n var mappingTable = codecOptions.table();\n\n\n // Decode tables: MBCS -> Unicode.\n\n // decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.\n // Trie root is decodeTables[0].\n // Values: >= 0 -> unicode character code. can be > 0xFFFF\n // == UNASSIGNED -> unknown/unassigned sequence.\n // == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.\n // <= NODE_START -> index of the next node in our trie to process next byte.\n // <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq.\n this.decodeTables = [];\n this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.\n\n // Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here. \n this.decodeTableSeq = [];\n\n // Actual mapping tables consist of chunks. Use them to fill up decode tables.\n for (var i = 0; i < mappingTable.length; i++)\n this._addDecodeChunk(mappingTable[i]);\n\n // Load & create GB18030 tables when needed.\n if (typeof codecOptions.gb18030 === 'function') {\n this.gb18030 = codecOptions.gb18030(); // Load GB18030 ranges.\n\n // Add GB18030 common decode nodes.\n var commonThirdByteNodeIdx = this.decodeTables.length;\n this.decodeTables.push(UNASSIGNED_NODE.slice(0));\n\n var commonFourthByteNodeIdx = this.decodeTables.length;\n this.decodeTables.push(UNASSIGNED_NODE.slice(0));\n\n // Fill out the tree\n var firstByteNode = this.decodeTables[0];\n for (var i = 0x81; i <= 0xFE; i++) {\n var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]];\n for (var j = 0x30; j <= 0x39; j++) {\n if (secondByteNode[j] === UNASSIGNED) {\n secondByteNode[j] = NODE_START - commonThirdByteNodeIdx;\n } else if (secondByteNode[j] > NODE_START) {\n throw new Error(\"gb18030 decode tables conflict at byte 2\");\n }\n\n var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]];\n for (var k = 0x81; k <= 0xFE; k++) {\n if (thirdByteNode[k] === UNASSIGNED) {\n thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx;\n } else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) {\n continue;\n } else if (thirdByteNode[k] > NODE_START) {\n throw new Error(\"gb18030 decode tables conflict at byte 3\");\n }\n\n var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];\n for (var l = 0x30; l <= 0x39; l++) {\n if (fourthByteNode[l] === UNASSIGNED)\n fourthByteNode[l] = GB18030_CODE;\n }\n }\n }\n }\n }\n\n this.defaultCharUnicode = iconv.defaultCharUnicode;\n\n \n // Encode tables: Unicode -> DBCS.\n\n // `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.\n // Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.\n // Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).\n // == UNASSIGNED -> no conversion found. Output a default char.\n // <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.\n this.encodeTable = [];\n \n // `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of\n // objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key\n // means end of sequence (needed when one sequence is a strict subsequence of another).\n // Objects are kept separately from encodeTable to increase performance.\n this.encodeTableSeq = [];\n\n // Some chars can be decoded, but need not be encoded.\n var skipEncodeChars = {};\n if (codecOptions.encodeSkipVals)\n for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {\n var val = codecOptions.encodeSkipVals[i];\n if (typeof val === 'number')\n skipEncodeChars[val] = true;\n else\n for (var j = val.from; j <= val.to; j++)\n skipEncodeChars[j] = true;\n }\n \n // Use decode trie to recursively fill out encode tables.\n this._fillEncodeTable(0, 0, skipEncodeChars);\n\n // Add more encoding pairs when needed.\n if (codecOptions.encodeAdd) {\n for (var uChar in codecOptions.encodeAdd)\n if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))\n this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);\n }\n\n this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];\n if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?'];\n if (this.defCharSB === UNASSIGNED) this.defCharSB = \"?\".charCodeAt(0);\n}\n\nDBCSCodec.prototype.encoder = DBCSEncoder;\nDBCSCodec.prototype.decoder = DBCSDecoder;\n\n// Decoder helpers\nDBCSCodec.prototype._getDecodeTrieNode = function(addr) {\n var bytes = [];\n for (; addr > 0; addr >>>= 8)\n bytes.push(addr & 0xFF);\n if (bytes.length == 0)\n bytes.push(0);\n\n var node = this.decodeTables[0];\n for (var i = bytes.length-1; i > 0; i--) { // Traverse nodes deeper into the trie.\n var val = node[bytes[i]];\n\n if (val == UNASSIGNED) { // Create new node.\n node[bytes[i]] = NODE_START - this.decodeTables.length;\n this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));\n }\n else if (val <= NODE_START) { // Existing node.\n node = this.decodeTables[NODE_START - val];\n }\n else\n throw new Error(\"Overwrite byte in \" + this.encodingName + \", addr: \" + addr.toString(16));\n }\n return node;\n}\n\n\nDBCSCodec.prototype._addDecodeChunk = function(chunk) {\n // First element of chunk is the hex mbcs code where we start.\n var curAddr = parseInt(chunk[0], 16);\n\n // Choose the decoding node where we'll write our chars.\n var writeTable = this._getDecodeTrieNode(curAddr);\n curAddr = curAddr & 0xFF;\n\n // Write all other elements of the chunk to the table.\n for (var k = 1; k < chunk.length; k++) {\n var part = chunk[k];\n if (typeof part === \"string\") { // String, write as-is.\n for (var l = 0; l < part.length;) {\n var code = part.charCodeAt(l++);\n if (0xD800 <= code && code < 0xDC00) { // Decode surrogate\n var codeTrail = part.charCodeAt(l++);\n if (0xDC00 <= codeTrail && codeTrail < 0xE000)\n writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);\n else\n throw new Error(\"Incorrect surrogate pair in \" + this.encodingName + \" at chunk \" + chunk[0]);\n }\n else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used)\n var len = 0xFFF - code + 2;\n var seq = [];\n for (var m = 0; m < len; m++)\n seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq.\n\n writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;\n this.decodeTableSeq.push(seq);\n }\n else\n writeTable[curAddr++] = code; // Basic char\n }\n } \n else if (typeof part === \"number\") { // Integer, meaning increasing sequence starting with prev character.\n var charCode = writeTable[curAddr - 1] + 1;\n for (var l = 0; l < part; l++)\n writeTable[curAddr++] = charCode++;\n }\n else\n throw new Error(\"Incorrect type '\" + typeof part + \"' given in \" + this.encodingName + \" at chunk \" + chunk[0]);\n }\n if (curAddr > 0xFF)\n throw new Error(\"Incorrect chunk in \" + this.encodingName + \" at addr \" + chunk[0] + \": too long\" + curAddr);\n}\n\n// Encoder helpers\nDBCSCodec.prototype._getEncodeBucket = function(uCode) {\n var high = uCode >> 8; // This could be > 0xFF because of astral characters.\n if (this.encodeTable[high] === undefined)\n this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand.\n return this.encodeTable[high];\n}\n\nDBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {\n var bucket = this._getEncodeBucket(uCode);\n var low = uCode & 0xFF;\n if (bucket[low] <= SEQ_START)\n this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode; // There's already a sequence, set a single-char subsequence of it.\n else if (bucket[low] == UNASSIGNED)\n bucket[low] = dbcsCode;\n}\n\nDBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {\n \n // Get the root of character tree according to first character of the sequence.\n var uCode = seq[0];\n var bucket = this._getEncodeBucket(uCode);\n var low = uCode & 0xFF;\n\n var node;\n if (bucket[low] <= SEQ_START) {\n // There's already a sequence with - use it.\n node = this.encodeTableSeq[SEQ_START-bucket[low]];\n }\n else {\n // There was no sequence object - allocate a new one.\n node = {};\n if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; // If a char was set before - make it a single-char subsequence.\n bucket[low] = SEQ_START - this.encodeTableSeq.length;\n this.encodeTableSeq.push(node);\n }\n\n // Traverse the character tree, allocating new nodes as needed.\n for (var j = 1; j < seq.length-1; j++) {\n var oldVal = node[uCode];\n if (typeof oldVal === 'object')\n node = oldVal;\n else {\n node = node[uCode] = {}\n if (oldVal !== undefined)\n node[DEF_CHAR] = oldVal\n }\n }\n\n // Set the leaf to given dbcsCode.\n uCode = seq[seq.length-1];\n node[uCode] = dbcsCode;\n}\n\nDBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {\n var node = this.decodeTables[nodeIdx];\n var hasValues = false;\n var subNodeEmpty = {};\n for (var i = 0; i < 0x100; i++) {\n var uCode = node[i];\n var mbCode = prefix + i;\n if (skipEncodeChars[mbCode])\n continue;\n\n if (uCode >= 0) {\n this._setEncodeChar(uCode, mbCode);\n hasValues = true;\n } else if (uCode <= NODE_START) {\n var subNodeIdx = NODE_START - uCode;\n if (!subNodeEmpty[subNodeIdx]) { // Skip empty subtrees (they are too large in gb18030).\n var newPrefix = (mbCode << 8) >>> 0; // NOTE: '>>> 0' keeps 32-bit num positive.\n if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))\n hasValues = true;\n else\n subNodeEmpty[subNodeIdx] = true;\n }\n } else if (uCode <= SEQ_START) {\n this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);\n hasValues = true;\n }\n }\n return hasValues;\n}\n\n\n\n// == Encoder ==================================================================\n\nfunction DBCSEncoder(options, codec) {\n // Encoder state\n this.leadSurrogate = -1;\n this.seqObj = undefined;\n \n // Static data\n this.encodeTable = codec.encodeTable;\n this.encodeTableSeq = codec.encodeTableSeq;\n this.defaultCharSingleByte = codec.defCharSB;\n this.gb18030 = codec.gb18030;\n}\n\nDBCSEncoder.prototype.write = function(str) {\n var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),\n leadSurrogate = this.leadSurrogate,\n seqObj = this.seqObj, nextChar = -1,\n i = 0, j = 0;\n\n while (true) {\n // 0. Get next character.\n if (nextChar === -1) {\n if (i == str.length) break;\n var uCode = str.charCodeAt(i++);\n }\n else {\n var uCode = nextChar;\n nextChar = -1; \n }\n\n // 1. Handle surrogates.\n if (0xD800 <= uCode && uCode < 0xE000) { // Char is one of surrogates.\n if (uCode < 0xDC00) { // We've got lead surrogate.\n if (leadSurrogate === -1) {\n leadSurrogate = uCode;\n continue;\n } else {\n leadSurrogate = uCode;\n // Double lead surrogate found.\n uCode = UNASSIGNED;\n }\n } else { // We've got trail surrogate.\n if (leadSurrogate !== -1) {\n uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00);\n leadSurrogate = -1;\n } else {\n // Incomplete surrogate pair - only trail surrogate found.\n uCode = UNASSIGNED;\n }\n \n }\n }\n else if (leadSurrogate !== -1) {\n // Incomplete surrogate pair - only lead surrogate found.\n nextChar = uCode; uCode = UNASSIGNED; // Write an error, then current char.\n leadSurrogate = -1;\n }\n\n // 2. Convert uCode character.\n var dbcsCode = UNASSIGNED;\n if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence\n var resCode = seqObj[uCode];\n if (typeof resCode === 'object') { // Sequence continues.\n seqObj = resCode;\n continue;\n\n } else if (typeof resCode == 'number') { // Sequence finished. Write it.\n dbcsCode = resCode;\n\n } else if (resCode == undefined) { // Current character is not part of the sequence.\n\n // Try default character for this sequence\n resCode = seqObj[DEF_CHAR];\n if (resCode !== undefined) {\n dbcsCode = resCode; // Found. Write it.\n nextChar = uCode; // Current character will be written too in the next iteration.\n\n } else {\n // TODO: What if we have no default? (resCode == undefined)\n // Then, we should write first char of the sequence as-is and try the rest recursively.\n // Didn't do it for now because no encoding has this situation yet.\n // Currently, just skip the sequence and write current char.\n }\n }\n seqObj = undefined;\n }\n else if (uCode >= 0) { // Regular character\n var subtable = this.encodeTable[uCode >> 8];\n if (subtable !== undefined)\n dbcsCode = subtable[uCode & 0xFF];\n \n if (dbcsCode <= SEQ_START) { // Sequence start\n seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];\n continue;\n }\n\n if (dbcsCode == UNASSIGNED && this.gb18030) {\n // Use GB18030 algorithm to find character(s) to write.\n var idx = findIdx(this.gb18030.uChars, uCode);\n if (idx != -1) {\n var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);\n newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;\n newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;\n newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;\n newBuf[j++] = 0x30 + dbcsCode;\n continue;\n }\n }\n }\n\n // 3. Write dbcsCode character.\n if (dbcsCode === UNASSIGNED)\n dbcsCode = this.defaultCharSingleByte;\n \n if (dbcsCode < 0x100) {\n newBuf[j++] = dbcsCode;\n }\n else if (dbcsCode < 0x10000) {\n newBuf[j++] = dbcsCode >> 8; // high byte\n newBuf[j++] = dbcsCode & 0xFF; // low byte\n }\n else if (dbcsCode < 0x1000000) {\n newBuf[j++] = dbcsCode >> 16;\n newBuf[j++] = (dbcsCode >> 8) & 0xFF;\n newBuf[j++] = dbcsCode & 0xFF;\n } else {\n newBuf[j++] = dbcsCode >>> 24;\n newBuf[j++] = (dbcsCode >>> 16) & 0xFF;\n newBuf[j++] = (dbcsCode >>> 8) & 0xFF;\n newBuf[j++] = dbcsCode & 0xFF;\n }\n }\n\n this.seqObj = seqObj;\n this.leadSurrogate = leadSurrogate;\n return newBuf.slice(0, j);\n}\n\nDBCSEncoder.prototype.end = function() {\n if (this.leadSurrogate === -1 && this.seqObj === undefined)\n return; // All clean. Most often case.\n\n var newBuf = Buffer.alloc(10), j = 0;\n\n if (this.seqObj) { // We're in the sequence.\n var dbcsCode = this.seqObj[DEF_CHAR];\n if (dbcsCode !== undefined) { // Write beginning of the sequence.\n if (dbcsCode < 0x100) {\n newBuf[j++] = dbcsCode;\n }\n else {\n newBuf[j++] = dbcsCode >> 8; // high byte\n newBuf[j++] = dbcsCode & 0xFF; // low byte\n }\n } else {\n // See todo above.\n }\n this.seqObj = undefined;\n }\n\n if (this.leadSurrogate !== -1) {\n // Incomplete surrogate pair - only lead surrogate found.\n newBuf[j++] = this.defaultCharSingleByte;\n this.leadSurrogate = -1;\n }\n \n return newBuf.slice(0, j);\n}\n\n// Export for testing\nDBCSEncoder.prototype.findIdx = findIdx;\n\n\n// == Decoder ==================================================================\n\nfunction DBCSDecoder(options, codec) {\n // Decoder state\n this.nodeIdx = 0;\n this.prevBytes = [];\n\n // Static data\n this.decodeTables = codec.decodeTables;\n this.decodeTableSeq = codec.decodeTableSeq;\n this.defaultCharUnicode = codec.defaultCharUnicode;\n this.gb18030 = codec.gb18030;\n}\n\nDBCSDecoder.prototype.write = function(buf) {\n var newBuf = Buffer.alloc(buf.length*2),\n nodeIdx = this.nodeIdx, \n prevBytes = this.prevBytes, prevOffset = this.prevBytes.length,\n seqStart = -this.prevBytes.length, // idx of the start of current parsed sequence.\n uCode;\n\n for (var i = 0, j = 0; i < buf.length; i++) {\n var curByte = (i >= 0) ? buf[i] : prevBytes[i + prevOffset];\n\n // Lookup in current trie node.\n var uCode = this.decodeTables[nodeIdx][curByte];\n\n if (uCode >= 0) { \n // Normal character, just use it.\n }\n else if (uCode === UNASSIGNED) { // Unknown char.\n // TODO: Callback with seq.\n uCode = this.defaultCharUnicode.charCodeAt(0);\n i = seqStart; // Skip one byte ('i' will be incremented by the for loop) and try to parse again.\n }\n else if (uCode === GB18030_CODE) {\n if (i >= 3) {\n var ptr = (buf[i-3]-0x81)*12600 + (buf[i-2]-0x30)*1260 + (buf[i-1]-0x81)*10 + (curByte-0x30);\n } else {\n var ptr = (prevBytes[i-3+prevOffset]-0x81)*12600 + \n (((i-2 >= 0) ? buf[i-2] : prevBytes[i-2+prevOffset])-0x30)*1260 + \n (((i-1 >= 0) ? buf[i-1] : prevBytes[i-1+prevOffset])-0x81)*10 + \n (curByte-0x30);\n }\n var idx = findIdx(this.gb18030.gbChars, ptr);\n uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];\n }\n else if (uCode <= NODE_START) { // Go to next trie node.\n nodeIdx = NODE_START - uCode;\n continue;\n }\n else if (uCode <= SEQ_START) { // Output a sequence of chars.\n var seq = this.decodeTableSeq[SEQ_START - uCode];\n for (var k = 0; k < seq.length - 1; k++) {\n uCode = seq[k];\n newBuf[j++] = uCode & 0xFF;\n newBuf[j++] = uCode >> 8;\n }\n uCode = seq[seq.length-1];\n }\n else\n throw new Error(\"iconv-lite internal error: invalid decoding table value \" + uCode + \" at \" + nodeIdx + \"/\" + curByte);\n\n // Write the character to buffer, handling higher planes using surrogate pair.\n if (uCode >= 0x10000) { \n uCode -= 0x10000;\n var uCodeLead = 0xD800 | (uCode >> 10);\n newBuf[j++] = uCodeLead & 0xFF;\n newBuf[j++] = uCodeLead >> 8;\n\n uCode = 0xDC00 | (uCode & 0x3FF);\n }\n newBuf[j++] = uCode & 0xFF;\n newBuf[j++] = uCode >> 8;\n\n // Reset trie node.\n nodeIdx = 0; seqStart = i+1;\n }\n\n this.nodeIdx = nodeIdx;\n this.prevBytes = (seqStart >= 0)\n ? Array.prototype.slice.call(buf, seqStart)\n : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf));\n\n return newBuf.slice(0, j).toString('ucs2');\n}\n\nDBCSDecoder.prototype.end = function() {\n var ret = '';\n\n // Try to parse all remaining chars.\n while (this.prevBytes.length > 0) {\n // Skip 1 character in the buffer.\n ret += this.defaultCharUnicode;\n var bytesArr = this.prevBytes.slice(1);\n\n // Parse remaining as usual.\n this.prevBytes = [];\n this.nodeIdx = 0;\n if (bytesArr.length > 0)\n ret += this.write(bytesArr);\n }\n\n this.prevBytes = [];\n this.nodeIdx = 0;\n return ret;\n}\n\n// Binary search for GB18030. Returns largest i such that table[i] <= val.\nfunction findIdx(table, val) {\n if (table[0] > val)\n return -1;\n\n var l = 0, r = table.length;\n while (l < r-1) { // always table[l] <= val < table[r]\n var mid = l + ((r-l+1) >> 1);\n if (table[mid] <= val)\n l = mid;\n else\n r = mid;\n }\n return l;\n}\n\n","\"use strict\";\n\n// Description of supported double byte encodings and aliases.\n// Tables are not require()-d until they are needed to speed up library load.\n// require()-s are direct to support Browserify.\n\nmodule.exports = {\n \n // == Japanese/ShiftJIS ====================================================\n // All japanese encodings are based on JIS X set of standards:\n // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.\n // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes. \n // Has several variations in 1978, 1983, 1990 and 1997.\n // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.\n // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.\n // 2 planes, first is superset of 0208, second - revised 0212.\n // Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx)\n\n // Byte encodings are:\n // * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte\n // encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC.\n // Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI.\n // * EUC-JP: Up to 3 bytes per character. Used mostly on *nixes.\n // 0x00-0x7F - lower part of 0201\n // 0x8E, 0xA1-0xDF - upper part of 0201\n // (0xA1-0xFE)x2 - 0208 plane (94x94).\n // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).\n // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.\n // Used as-is in ISO2022 family.\n // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII, \n // 0201-1976 Roman, 0208-1978, 0208-1983.\n // * ISO2022-JP-1: Adds esc seq for 0212-1990.\n // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.\n // * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2.\n // * ISO2022-JP-2004: Adds 0213-2004 Plane 1.\n //\n // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.\n //\n // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html\n\n 'shiftjis': {\n type: '_dbcs',\n table: function() { return require('./tables/shiftjis.json') },\n encodeAdd: {'\\u00a5': 0x5C, '\\u203E': 0x7E},\n encodeSkipVals: [{from: 0xED40, to: 0xF940}],\n },\n 'csshiftjis': 'shiftjis',\n 'mskanji': 'shiftjis',\n 'sjis': 'shiftjis',\n 'windows31j': 'shiftjis',\n 'ms31j': 'shiftjis',\n 'xsjis': 'shiftjis',\n 'windows932': 'shiftjis',\n 'ms932': 'shiftjis',\n '932': 'shiftjis',\n 'cp932': 'shiftjis',\n\n 'eucjp': {\n type: '_dbcs',\n table: function() { return require('./tables/eucjp.json') },\n encodeAdd: {'\\u00a5': 0x5C, '\\u203E': 0x7E},\n },\n\n // TODO: KDDI extension to Shift_JIS\n // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.\n // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.\n\n\n // == Chinese/GBK ==========================================================\n // http://en.wikipedia.org/wiki/GBK\n // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder\n\n // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936\n 'gb2312': 'cp936',\n 'gb231280': 'cp936',\n 'gb23121980': 'cp936',\n 'csgb2312': 'cp936',\n 'csiso58gb231280': 'cp936',\n 'euccn': 'cp936',\n\n // Microsoft's CP936 is a subset and approximation of GBK.\n 'windows936': 'cp936',\n 'ms936': 'cp936',\n '936': 'cp936',\n 'cp936': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json') },\n },\n\n // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.\n 'gbk': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json').concat(require('./tables/gbk-added.json')) },\n },\n 'xgbk': 'gbk',\n 'isoir58': 'gbk',\n\n // GB18030 is an algorithmic extension of GBK.\n // Main source: https://www.w3.org/TR/encoding/#gbk-encoder\n // http://icu-project.org/docs/papers/gb18030.html\n // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml\n // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0\n 'gb18030': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json').concat(require('./tables/gbk-added.json')) },\n gb18030: function() { return require('./tables/gb18030-ranges.json') },\n encodeSkipVals: [0x80],\n encodeAdd: {'€': 0xA2E3},\n },\n\n 'chinese': 'gb18030',\n\n\n // == Korean ===============================================================\n // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.\n 'windows949': 'cp949',\n 'ms949': 'cp949',\n '949': 'cp949',\n 'cp949': {\n type: '_dbcs',\n table: function() { return require('./tables/cp949.json') },\n },\n\n 'cseuckr': 'cp949',\n 'csksc56011987': 'cp949',\n 'euckr': 'cp949',\n 'isoir149': 'cp949',\n 'korean': 'cp949',\n 'ksc56011987': 'cp949',\n 'ksc56011989': 'cp949',\n 'ksc5601': 'cp949',\n\n\n // == Big5/Taiwan/Hong Kong ================================================\n // There are lots of tables for Big5 and cp950. Please see the following links for history:\n // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html\n // Variations, in roughly number of defined chars:\n // * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT\n // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/\n // * Big5-2003 (Taiwan standard) almost superset of cp950.\n // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.\n // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard. \n // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.\n // Plus, it has 4 combining sequences.\n // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299\n // because big5-hkscs is the only encoding to include astral characters in non-algorithmic way.\n // Implementations are not consistent within browsers; sometimes labeled as just big5.\n // MS Internet Explorer switches from big5 to big5-hkscs when a patch applied.\n // Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31\n // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.\n // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt\n // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt\n // \n // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder\n // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.\n\n 'windows950': 'cp950',\n 'ms950': 'cp950',\n '950': 'cp950',\n 'cp950': {\n type: '_dbcs',\n table: function() { return require('./tables/cp950.json') },\n },\n\n // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.\n 'big5': 'big5hkscs',\n 'big5hkscs': {\n type: '_dbcs',\n table: function() { return require('./tables/cp950.json').concat(require('./tables/big5-added.json')) },\n encodeSkipVals: [\n // Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of\n // https://encoding.spec.whatwg.org/#index-big5-pointer), we still do it to increase compatibility with ICU.\n // But if a single unicode point can be encoded both as HKSCS and regular Big5, we prefer the latter.\n 0x8e69, 0x8e6f, 0x8e7e, 0x8eab, 0x8eb4, 0x8ecd, 0x8ed0, 0x8f57, 0x8f69, 0x8f6e, 0x8fcb, 0x8ffe,\n 0x906d, 0x907a, 0x90c4, 0x90dc, 0x90f1, 0x91bf, 0x92af, 0x92b0, 0x92b1, 0x92b2, 0x92d1, 0x9447, 0x94ca,\n 0x95d9, 0x96fc, 0x9975, 0x9b76, 0x9b78, 0x9b7b, 0x9bc6, 0x9bde, 0x9bec, 0x9bf6, 0x9c42, 0x9c53, 0x9c62,\n 0x9c68, 0x9c6b, 0x9c77, 0x9cbc, 0x9cbd, 0x9cd0, 0x9d57, 0x9d5a, 0x9dc4, 0x9def, 0x9dfb, 0x9ea9, 0x9eef,\n 0x9efd, 0x9f60, 0x9fcb, 0xa077, 0xa0dc, 0xa0df, 0x8fcc, 0x92c8, 0x9644, 0x96ed,\n\n // Step 2 of https://encoding.spec.whatwg.org/#index-big5-pointer: Use last pointer for U+2550, U+255E, U+2561, U+256A, U+5341, or U+5345\n 0xa2a4, 0xa2a5, 0xa2a7, 0xa2a6, 0xa2cc, 0xa2ce,\n ],\n },\n\n 'cnbig5': 'big5hkscs',\n 'csbig5': 'big5hkscs',\n 'xxbig5': 'big5hkscs',\n};\n","\"use strict\";\n\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// NOTE: Due to 'stream' module being pretty large (~100Kb, significant in browser environments), \n// we opt to dependency-inject it instead of creating a hard dependency.\nmodule.exports = function(stream_module) {\n var Transform = stream_module.Transform;\n\n // == Encoder stream =======================================================\n\n function IconvLiteEncoderStream(conv, options) {\n this.conv = conv;\n options = options || {};\n options.decodeStrings = false; // We accept only strings, so we don't need to decode them.\n Transform.call(this, options);\n }\n\n IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {\n constructor: { value: IconvLiteEncoderStream }\n });\n\n IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {\n if (typeof chunk != 'string')\n return done(new Error(\"Iconv encoding stream needs strings as its input.\"));\n try {\n var res = this.conv.write(chunk);\n if (res && res.length) this.push(res);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteEncoderStream.prototype._flush = function(done) {\n try {\n var res = this.conv.end();\n if (res && res.length) this.push(res);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteEncoderStream.prototype.collect = function(cb) {\n var chunks = [];\n this.on('error', cb);\n this.on('data', function(chunk) { chunks.push(chunk); });\n this.on('end', function() {\n cb(null, Buffer.concat(chunks));\n });\n return this;\n }\n\n\n // == Decoder stream =======================================================\n\n function IconvLiteDecoderStream(conv, options) {\n this.conv = conv;\n options = options || {};\n options.encoding = this.encoding = 'utf8'; // We output strings.\n Transform.call(this, options);\n }\n\n IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {\n constructor: { value: IconvLiteDecoderStream }\n });\n\n IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {\n if (!Buffer.isBuffer(chunk) && !(chunk instanceof Uint8Array))\n return done(new Error(\"Iconv decoding stream needs buffers as its input.\"));\n try {\n var res = this.conv.write(chunk);\n if (res && res.length) this.push(res, this.encoding);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteDecoderStream.prototype._flush = function(done) {\n try {\n var res = this.conv.end();\n if (res && res.length) this.push(res, this.encoding); \n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteDecoderStream.prototype.collect = function(cb) {\n var res = '';\n this.on('error', cb);\n this.on('data', function(chunk) { res += chunk; });\n this.on('end', function() {\n cb(null, res);\n });\n return this;\n }\n\n return {\n IconvLiteEncoderStream: IconvLiteEncoderStream,\n IconvLiteDecoderStream: IconvLiteDecoderStream,\n };\n};\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest\n\nconst Packet = require('../packets/packet');\n\nclass AuthSwitchRequest {\n constructor(opts) {\n this.pluginName = opts.pluginName;\n this.pluginData = opts.pluginData;\n }\n\n toPacket() {\n const length = 6 + this.pluginName.length + this.pluginData.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(0xfe);\n // TODO: use server encoding\n packet.writeNullTerminatedString(this.pluginName, 'cesu8');\n packet.writeBuffer(this.pluginData);\n return packet;\n }\n\n static fromPacket(packet) {\n packet.readInt8(); // marker\n // assert marker == 0xfe?\n // TODO: use server encoding\n const name = packet.readNullTerminatedString('cesu8');\n const data = packet.readBuffer();\n return new AuthSwitchRequest({\n pluginName: name,\n pluginData: data\n });\n }\n}\n\nmodule.exports = AuthSwitchRequest;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest\n\nconst Packet = require('../packets/packet');\n\nclass AuthSwitchRequestMoreData {\n constructor(data) {\n this.data = data;\n }\n\n toPacket() {\n const length = 5 + this.data.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(0x01);\n packet.writeBuffer(this.data);\n return packet;\n }\n\n static fromPacket(packet) {\n packet.readInt8(); // marker\n const data = packet.readBuffer();\n return new AuthSwitchRequestMoreData(data);\n }\n\n static verifyMarker(packet) {\n return packet.peekByte() === 0x01;\n }\n}\n\nmodule.exports = AuthSwitchRequestMoreData;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest\n\nconst Packet = require('../packets/packet');\n\nclass AuthSwitchResponse {\n constructor(data) {\n if (!Buffer.isBuffer(data)) {\n data = Buffer.from(data);\n }\n this.data = data;\n }\n\n toPacket() {\n const length = 4 + this.data.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeBuffer(this.data);\n return packet;\n }\n\n static fromPacket(packet) {\n const data = packet.readBuffer();\n return new AuthSwitchResponse(data);\n }\n}\n\nmodule.exports = AuthSwitchResponse;\n","'use strict';\n\nconst Types = require('../constants/types');\nconst Packet = require('../packets/packet');\n\nconst binaryReader = new Array(256);\n\nclass BinaryRow {\n constructor(columns) {\n this.columns = columns || [];\n }\n\n toPacket() {\n throw new Error('Not implemented');\n }\n\n // TODO: complete list of types...\n static fromPacket(fields, packet) {\n const columns = new Array(fields.length);\n packet.readInt8(); // TODO check it's 0\n const nullBitmapLength = Math.floor((fields.length + 7 + 2) / 8);\n // TODO: read and interpret null bitmap\n packet.skip(nullBitmapLength);\n for (let i = 0; i < columns.length; ++i) {\n columns[i] = binaryReader[fields[i].columnType].apply(packet);\n }\n return new BinaryRow(columns);\n }\n}\n\n// TODO: replace with constants.MYSQL_TYPE_*\nbinaryReader[Types.DECIMAL] = Packet.prototype.readLengthCodedString;\nbinaryReader[1] = Packet.prototype.readInt8; // tiny\nbinaryReader[2] = Packet.prototype.readInt16; // short\nbinaryReader[3] = Packet.prototype.readInt32; // long\nbinaryReader[4] = Packet.prototype.readFloat; // float\nbinaryReader[5] = Packet.prototype.readDouble; // double\nbinaryReader[6] = Packet.prototype.assertInvalid; // null, should be skipped vie null bitmap\nbinaryReader[7] = Packet.prototype.readTimestamp; // timestamp, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_TIMESTAMP\nbinaryReader[8] = Packet.prototype.readInt64; // long long\nbinaryReader[9] = Packet.prototype.readInt32; // int24\nbinaryReader[10] = Packet.prototype.readTimestamp; // date\nbinaryReader[11] = Packet.prototype.readTime; // time, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_TIME\nbinaryReader[12] = Packet.prototype.readDateTime; // datetime, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_DATETIME\nbinaryReader[13] = Packet.prototype.readInt16; // year\nbinaryReader[Types.VAR_STRING] = Packet.prototype.readLengthCodedString; // var string\n\nmodule.exports = BinaryRow;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/com-binlog-dump.html#packet-COM_BINLOG_DUMP\n\nconst Packet = require('../packets/packet');\nconst CommandCodes = require('../constants/commands');\n\n// TODO: add flag to constants\n// 0x01 - BINLOG_DUMP_NON_BLOCK\n// send EOF instead of blocking\nclass BinlogDump {\n constructor(opts) {\n this.binlogPos = opts.binlogPos || 0;\n this.serverId = opts.serverId || 0;\n this.flags = opts.flags || 0;\n this.filename = opts.filename || '';\n }\n\n toPacket() {\n const length = 15 + Buffer.byteLength(this.filename, 'utf8'); // TODO: should be ascii?\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.BINLOG_DUMP);\n packet.writeInt32(this.binlogPos);\n packet.writeInt16(this.flags);\n packet.writeInt32(this.serverId);\n packet.writeString(this.filename);\n return packet;\n }\n}\n\nmodule.exports = BinlogDump;\n","'use strict';\n\nconst CommandCode = require('../constants/commands.js');\nconst ClientConstants = require('../constants/client.js');\nconst Packet = require('../packets/packet.js');\nconst auth41 = require('../auth_41.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\n// https://dev.mysql.com/doc/internals/en/com-change-user.html#packet-COM_CHANGE_USER\nclass ChangeUser {\n constructor(opts) {\n this.flags = opts.flags;\n this.user = opts.user || '';\n this.database = opts.database || '';\n this.password = opts.password || '';\n this.passwordSha1 = opts.passwordSha1;\n this.authPluginData1 = opts.authPluginData1;\n this.authPluginData2 = opts.authPluginData2;\n this.connectAttributes = opts.connectAttrinutes || {};\n let authToken;\n if (this.passwordSha1) {\n authToken = auth41.calculateTokenFromPasswordSha(\n this.passwordSha1,\n this.authPluginData1,\n this.authPluginData2\n );\n } else {\n authToken = auth41.calculateToken(\n this.password,\n this.authPluginData1,\n this.authPluginData2\n );\n }\n this.authToken = authToken;\n this.charsetNumber = opts.charsetNumber;\n }\n\n // TODO\n // ChangeUser.fromPacket = function(packet)\n // };\n serializeToBuffer(buffer) {\n const isSet = flag => this.flags & ClientConstants[flag];\n const packet = new Packet(0, buffer, 0, buffer.length);\n packet.offset = 4;\n const encoding = CharsetToEncoding[this.charsetNumber];\n packet.writeInt8(CommandCode.CHANGE_USER);\n packet.writeNullTerminatedString(this.user, encoding);\n if (isSet('SECURE_CONNECTION')) {\n packet.writeInt8(this.authToken.length);\n packet.writeBuffer(this.authToken);\n } else {\n packet.writeBuffer(this.authToken);\n packet.writeInt8(0);\n }\n packet.writeNullTerminatedString(this.database, encoding);\n packet.writeInt16(this.charsetNumber);\n if (isSet('PLUGIN_AUTH')) {\n // TODO: read this from parameters\n packet.writeNullTerminatedString('mysql_native_password', 'latin1');\n }\n if (isSet('CONNECT_ATTRS')) {\n const connectAttributes = this.connectAttributes;\n const attrNames = Object.keys(connectAttributes);\n let keysLength = 0;\n for (let k = 0; k < attrNames.length; ++k) {\n keysLength += Packet.lengthCodedStringLength(attrNames[k], encoding);\n keysLength += Packet.lengthCodedStringLength(\n connectAttributes[attrNames[k]],\n encoding\n );\n }\n packet.writeLengthCodedNumber(keysLength);\n for (let k = 0; k < attrNames.length; ++k) {\n packet.writeLengthCodedString(attrNames[k], encoding);\n packet.writeLengthCodedString(\n connectAttributes[attrNames[k]],\n encoding\n );\n }\n }\n return packet;\n }\n\n toPacket() {\n if (typeof this.user !== 'string') {\n throw new Error('\"user\" connection config property must be a string');\n }\n if (typeof this.database !== 'string') {\n throw new Error('\"database\" connection config property must be a string');\n }\n // dry run: calculate resulting packet length\n const p = this.serializeToBuffer(Packet.MockBuffer());\n return this.serializeToBuffer(Buffer.allocUnsafe(p.offset));\n }\n}\n\nmodule.exports = ChangeUser;\n","'use strict';\n\nconst Packet = require('../packets/packet');\nconst CommandCodes = require('../constants/commands');\n\nclass CloseStatement {\n constructor(id) {\n this.id = id;\n }\n\n // note: no response sent back\n toPacket() {\n const packet = new Packet(0, Buffer.allocUnsafe(9), 0, 9);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.STMT_CLOSE);\n packet.writeInt32(this.id);\n return packet;\n }\n}\n\nmodule.exports = CloseStatement;\n","'use strict';\n\nconst Packet = require('../packets/packet');\nconst StringParser = require('../parsers/string');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nconst fields = ['catalog', 'schema', 'table', 'orgTable', 'name', 'orgName'];\n\n// creating JS string is relatively expensive (compared to\n// reading few bytes from buffer) because all string properties\n// except for name are unlikely to be used we postpone\n// string conversion until property access\n//\n// TODO: watch for integration benchmarks (one with real network buffer)\n// there could be bad side effect as keeping reference to a buffer makes it\n// sit in the memory longer (usually until final .query() callback)\n// Latest v8 perform much better in regard to bufferer -> string conversion,\n// at some point of time this optimisation might become unnecessary\n// see https://github.com/sidorares/node-mysql2/pull/137\n//\nclass ColumnDefinition {\n constructor(packet, clientEncoding) {\n this._buf = packet.buffer;\n this._clientEncoding = clientEncoding;\n this._catalogLength = packet.readLengthCodedNumber();\n this._catalogStart = packet.offset;\n packet.offset += this._catalogLength;\n this._schemaLength = packet.readLengthCodedNumber();\n this._schemaStart = packet.offset;\n packet.offset += this._schemaLength;\n this._tableLength = packet.readLengthCodedNumber();\n this._tableStart = packet.offset;\n packet.offset += this._tableLength;\n this._orgTableLength = packet.readLengthCodedNumber();\n this._orgTableStart = packet.offset;\n packet.offset += this._orgTableLength;\n // name is always used, don't make it lazy\n const _nameLength = packet.readLengthCodedNumber();\n const _nameStart = packet.offset;\n packet.offset += _nameLength;\n this._orgNameLength = packet.readLengthCodedNumber();\n this._orgNameStart = packet.offset;\n packet.offset += this._orgNameLength;\n packet.skip(1); // length of the following fields (always 0x0c)\n this.characterSet = packet.readInt16();\n this.encoding = CharsetToEncoding[this.characterSet];\n this.name = StringParser.decode(\n this._buf,\n this.encoding === 'binary' ? this._clientEncoding : this.encoding,\n _nameStart, \n _nameStart + _nameLength\n );\n this.columnLength = packet.readInt32();\n this.columnType = packet.readInt8();\n this.flags = packet.readInt16();\n this.decimals = packet.readInt8();\n }\n\n inspect() {\n return {\n catalog: this.catalog,\n schema: this.schema,\n name: this.name,\n orgName: this.orgName,\n table: this.table,\n orgTable: this.orgTable,\n characterSet: this.characterSet,\n columnLength: this.columnLength,\n columnType: this.columnType,\n flags: this.flags,\n decimals: this.decimals\n };\n }\n\n static toPacket(column, sequenceId) {\n let length = 17; // = 4 padding + 1 + 12 for the rest\n fields.forEach(field => {\n length += Packet.lengthCodedStringLength(\n column[field],\n CharsetToEncoding[column.characterSet]\n );\n });\n const buffer = Buffer.allocUnsafe(length);\n\n const packet = new Packet(sequenceId, buffer, 0, length);\n function writeField(name) {\n packet.writeLengthCodedString(\n column[name],\n CharsetToEncoding[column.characterSet]\n );\n }\n packet.offset = 4;\n fields.forEach(writeField);\n packet.writeInt8(0x0c);\n packet.writeInt16(column.characterSet);\n packet.writeInt32(column.columnLength);\n packet.writeInt8(column.columnType);\n packet.writeInt16(column.flags);\n packet.writeInt8(column.decimals);\n packet.writeInt16(0); // filler\n return packet;\n }\n\n // node-mysql compatibility: alias \"db\" to \"schema\"\n get db() {\n return this.schema;\n }\n}\n\nconst addString = function(name) {\n Object.defineProperty(ColumnDefinition.prototype, name, {\n get: function() {\n const start = this[`_${name}Start`];\n const end = start + this[`_${name}Length`];\n const val = StringParser.decode(\n this._buf,\n this.encoding === 'binary' ? this._clientEncoding : this.encoding,\n start, \n end\n );\n \n Object.defineProperty(this, name, {\n value: val,\n writable: false,\n configurable: false,\n enumerable: false\n });\n\n return val;\n }\n });\n};\n\naddString('catalog');\naddString('schema');\naddString('table');\naddString('orgTable');\naddString('orgName');\n\nmodule.exports = ColumnDefinition;\n","'use strict';\n\nconst CursorType = require('../constants/cursor');\nconst CommandCodes = require('../constants/commands');\nconst Types = require('../constants/types');\nconst Packet = require('../packets/packet');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nfunction isJSON(value) {\n return (\n Array.isArray(value) ||\n value.constructor === Object ||\n (typeof value.toJSON === 'function' && !Buffer.isBuffer(value))\n );\n}\n\n/**\n * Converts a value to an object describing type, String/Buffer representation and length\n * @param {*} value\n */\nfunction toParameter(value, encoding, timezone) {\n let type = Types.VAR_STRING;\n let length;\n let writer = function(value) {\n // eslint-disable-next-line no-invalid-this\n return Packet.prototype.writeLengthCodedString.call(this, value, encoding);\n };\n if (value !== null) {\n switch (typeof value) {\n case 'undefined':\n throw new TypeError('Bind parameters must not contain undefined');\n\n case 'number':\n type = Types.DOUBLE;\n length = 8;\n writer = Packet.prototype.writeDouble;\n break;\n\n case 'boolean':\n value = value | 0;\n type = Types.TINY;\n length = 1;\n writer = Packet.prototype.writeInt8;\n break;\n\n case 'object':\n if (Object.prototype.toString.call(value) === '[object Date]') {\n type = Types.DATETIME;\n length = 12;\n writer = function(value) {\n // eslint-disable-next-line no-invalid-this\n return Packet.prototype.writeDate.call(this, value, timezone);\n };\n } else if (isJSON(value)) {\n value = JSON.stringify(value);\n type = Types.JSON;\n } else if (Buffer.isBuffer(value)) {\n length = Packet.lengthCodedNumberLength(value.length) + value.length;\n writer = Packet.prototype.writeLengthCodedBuffer;\n }\n break;\n\n default:\n value = value.toString();\n }\n } else {\n value = '';\n type = Types.NULL;\n }\n if (!length) {\n length = Packet.lengthCodedStringLength(value, encoding);\n }\n return { value, type, length, writer };\n}\n\nclass Execute {\n constructor(id, parameters, charsetNumber, timezone) {\n this.id = id;\n this.parameters = parameters;\n this.encoding = CharsetToEncoding[charsetNumber];\n this.timezone = timezone;\n }\n\n toPacket() {\n // TODO: don't try to calculate packet length in advance, allocate some big buffer in advance (header + 256 bytes?)\n // and copy + reallocate if not enough\n // 0 + 4 - length, seqId\n // 4 + 1 - COM_EXECUTE\n // 5 + 4 - stmtId\n // 9 + 1 - flags\n // 10 + 4 - iteration-count (always 1)\n let length = 14;\n let parameters;\n if (this.parameters && this.parameters.length > 0) {\n length += Math.floor((this.parameters.length + 7) / 8);\n length += 1; // new-params-bound-flag\n length += 2 * this.parameters.length; // type byte for each parameter if new-params-bound-flag is set\n parameters = this.parameters.map(value =>\n toParameter(value, this.encoding, this.timezone)\n );\n length += parameters.reduce(\n (accumulator, parameter) => accumulator + parameter.length,\n 0\n );\n }\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.STMT_EXECUTE);\n packet.writeInt32(this.id);\n packet.writeInt8(CursorType.NO_CURSOR); // flags\n packet.writeInt32(1); // iteration-count, always 1\n if (parameters) {\n let bitmap = 0;\n let bitValue = 1;\n parameters.forEach(parameter => {\n if (parameter.type === Types.NULL) {\n bitmap += bitValue;\n }\n bitValue *= 2;\n if (bitValue === 256) {\n packet.writeInt8(bitmap);\n bitmap = 0;\n bitValue = 1;\n }\n });\n if (bitValue !== 1) {\n packet.writeInt8(bitmap);\n }\n // TODO: explain meaning of the flag\n // afaik, if set n*2 bytes with type of parameter are sent before parameters\n // if not, previous execution types are used (TODO prooflink)\n packet.writeInt8(1); // new-params-bound-flag\n // Write parameter types\n parameters.forEach(parameter => {\n packet.writeInt8(parameter.type); // field type\n packet.writeInt8(0); // parameter flag\n });\n // Write parameter values\n parameters.forEach(parameter => {\n if (parameter.type !== Types.NULL) {\n parameter.writer.call(packet, parameter.value);\n }\n });\n }\n return packet;\n }\n}\n\nmodule.exports = Execute;\n","'use strict';\n\nmodule.exports = {\n NO_CURSOR: 0,\n READ_ONLY: 1,\n FOR_UPDATE: 2,\n SCROLLABLE: 3\n};\n","'use strict';\n\nconst Packet = require('../packets/packet');\nconst ClientConstants = require('../constants/client.js');\n\n// https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::Handshake\n\nclass Handshake {\n constructor(args) {\n this.protocolVersion = args.protocolVersion;\n this.serverVersion = args.serverVersion;\n this.capabilityFlags = args.capabilityFlags;\n this.connectionId = args.connectionId;\n this.authPluginData1 = args.authPluginData1;\n this.authPluginData2 = args.authPluginData2;\n this.characterSet = args.characterSet;\n this.statusFlags = args.statusFlags;\n this.autPluginName = args.autPluginName;\n }\n\n setScrambleData(cb) {\n require('crypto').randomBytes(20, (err, data) => {\n if (err) {\n cb(err);\n return;\n }\n this.authPluginData1 = data.slice(0, 8);\n this.authPluginData2 = data.slice(8, 20);\n cb();\n });\n }\n\n toPacket(sequenceId) {\n const length = 68 + Buffer.byteLength(this.serverVersion, 'utf8');\n const buffer = Buffer.alloc(length + 4, 0); // zero fill, 10 bytes filler later needs to contain zeros\n const packet = new Packet(sequenceId, buffer, 0, length + 4);\n packet.offset = 4;\n packet.writeInt8(this.protocolVersion);\n packet.writeString(this.serverVersion, 'cesu8');\n packet.writeInt8(0);\n packet.writeInt32(this.connectionId);\n packet.writeBuffer(this.authPluginData1);\n packet.writeInt8(0);\n const capabilityFlagsBuffer = Buffer.allocUnsafe(4);\n capabilityFlagsBuffer.writeUInt32LE(this.capabilityFlags, 0);\n packet.writeBuffer(capabilityFlagsBuffer.slice(0, 2));\n packet.writeInt8(this.characterSet);\n packet.writeInt16(this.statusFlags);\n packet.writeBuffer(capabilityFlagsBuffer.slice(2, 4));\n packet.writeInt8(21); // authPluginDataLength\n packet.skip(10);\n packet.writeBuffer(this.authPluginData2);\n packet.writeInt8(0);\n packet.writeString('mysql_native_password', 'latin1');\n packet.writeInt8(0);\n return packet;\n }\n\n static fromPacket(packet) {\n const args = {};\n args.protocolVersion = packet.readInt8();\n args.serverVersion = packet.readNullTerminatedString('cesu8');\n args.connectionId = packet.readInt32();\n args.authPluginData1 = packet.readBuffer(8);\n packet.skip(1);\n const capabilityFlagsBuffer = Buffer.allocUnsafe(4);\n capabilityFlagsBuffer[0] = packet.readInt8();\n capabilityFlagsBuffer[1] = packet.readInt8();\n if (packet.haveMoreData()) {\n args.characterSet = packet.readInt8();\n args.statusFlags = packet.readInt16();\n // upper 2 bytes\n capabilityFlagsBuffer[2] = packet.readInt8();\n capabilityFlagsBuffer[3] = packet.readInt8();\n args.capabilityFlags = capabilityFlagsBuffer.readUInt32LE(0);\n if (args.capabilityFlags & ClientConstants.PLUGIN_AUTH) {\n args.authPluginDataLength = packet.readInt8();\n } else {\n args.authPluginDataLength = 0;\n packet.skip(1);\n }\n packet.skip(10);\n } else {\n args.capabilityFlags = capabilityFlagsBuffer.readUInt16LE(0);\n }\n\n const isSecureConnection =\n args.capabilityFlags & ClientConstants.SECURE_CONNECTION;\n if (isSecureConnection) {\n const authPluginDataLength = args.authPluginDataLength;\n if (authPluginDataLength === 0) {\n // for Secure Password Authentication\n args.authPluginDataLength = 20;\n args.authPluginData2 = packet.readBuffer(12);\n packet.skip(1);\n } else {\n // length > 0\n // for Custom Auth Plugin (PLUGIN_AUTH)\n const len = Math.max(13, authPluginDataLength - 8);\n args.authPluginData2 = packet.readBuffer(len);\n }\n }\n\n if (args.capabilityFlags & ClientConstants.PLUGIN_AUTH) {\n args.autPluginName = packet.readNullTerminatedString('ascii');\n }\n\n return new Handshake(args);\n }\n}\n\nmodule.exports = Handshake;\n","'use strict';\n\nconst ClientConstants = require('../constants/client.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\nconst Packet = require('../packets/packet.js');\n\nconst auth41 = require('../auth_41.js');\n\nclass HandshakeResponse {\n constructor(handshake) {\n this.user = handshake.user || '';\n this.database = handshake.database || '';\n this.password = handshake.password || '';\n this.passwordSha1 = handshake.passwordSha1;\n this.authPluginData1 = handshake.authPluginData1;\n this.authPluginData2 = handshake.authPluginData2;\n this.compress = handshake.compress;\n this.clientFlags = handshake.flags;\n // TODO: pre-4.1 auth support\n let authToken;\n if (this.passwordSha1) {\n authToken = auth41.calculateTokenFromPasswordSha(\n this.passwordSha1,\n this.authPluginData1,\n this.authPluginData2\n );\n } else {\n authToken = auth41.calculateToken(\n this.password,\n this.authPluginData1,\n this.authPluginData2\n );\n }\n this.authToken = authToken;\n this.charsetNumber = handshake.charsetNumber;\n this.encoding = CharsetToEncoding[handshake.charsetNumber];\n this.connectAttributes = handshake.connectAttributes;\n }\n\n serializeResponse(buffer) {\n const isSet = flag => this.clientFlags & ClientConstants[flag];\n const packet = new Packet(0, buffer, 0, buffer.length);\n packet.offset = 4;\n packet.writeInt32(this.clientFlags);\n packet.writeInt32(0); // max packet size. todo: move to config\n packet.writeInt8(this.charsetNumber);\n packet.skip(23);\n const encoding = this.encoding;\n packet.writeNullTerminatedString(this.user, encoding);\n let k;\n if (isSet('PLUGIN_AUTH_LENENC_CLIENT_DATA')) {\n packet.writeLengthCodedNumber(this.authToken.length);\n packet.writeBuffer(this.authToken);\n } else if (isSet('SECURE_CONNECTION')) {\n packet.writeInt8(this.authToken.length);\n packet.writeBuffer(this.authToken);\n } else {\n packet.writeBuffer(this.authToken);\n packet.writeInt8(0);\n }\n if (isSet('CONNECT_WITH_DB')) {\n packet.writeNullTerminatedString(this.database, encoding);\n }\n if (isSet('PLUGIN_AUTH')) {\n // TODO: pass from config\n packet.writeNullTerminatedString('mysql_native_password', 'latin1');\n }\n if (isSet('CONNECT_ATTRS')) {\n const connectAttributes = this.connectAttributes || {};\n const attrNames = Object.keys(connectAttributes);\n let keysLength = 0;\n for (k = 0; k < attrNames.length; ++k) {\n keysLength += Packet.lengthCodedStringLength(attrNames[k], encoding);\n keysLength += Packet.lengthCodedStringLength(\n connectAttributes[attrNames[k]],\n encoding\n );\n }\n packet.writeLengthCodedNumber(keysLength);\n for (k = 0; k < attrNames.length; ++k) {\n packet.writeLengthCodedString(attrNames[k], encoding);\n packet.writeLengthCodedString(\n connectAttributes[attrNames[k]],\n encoding\n );\n }\n }\n return packet;\n }\n\n toPacket() {\n if (typeof this.user !== 'string') {\n throw new Error('\"user\" connection config property must be a string');\n }\n if (typeof this.database !== 'string') {\n throw new Error('\"database\" connection config property must be a string');\n }\n // dry run: calculate resulting packet length\n const p = this.serializeResponse(Packet.MockBuffer());\n return this.serializeResponse(Buffer.alloc(p.offset));\n }\n static fromPacket(packet) {\n const args = {};\n args.clientFlags = packet.readInt32();\n function isSet(flag) {\n return args.clientFlags & ClientConstants[flag];\n }\n args.maxPacketSize = packet.readInt32();\n args.charsetNumber = packet.readInt8();\n const encoding = CharsetToEncoding[args.charsetNumber];\n args.encoding = encoding;\n packet.skip(23);\n args.user = packet.readNullTerminatedString(encoding);\n let authTokenLength;\n if (isSet('PLUGIN_AUTH_LENENC_CLIENT_DATA')) {\n authTokenLength = packet.readLengthCodedNumber(encoding);\n args.authToken = packet.readBuffer(authTokenLength);\n } else if (isSet('SECURE_CONNECTION')) {\n authTokenLength = packet.readInt8();\n args.authToken = packet.readBuffer(authTokenLength);\n } else {\n args.authToken = packet.readNullTerminatedString(encoding);\n }\n if (isSet('CONNECT_WITH_DB')) {\n args.database = packet.readNullTerminatedString(encoding);\n }\n if (isSet('PLUGIN_AUTH')) {\n args.authPluginName = packet.readNullTerminatedString(encoding);\n }\n if (isSet('CONNECT_ATTRS')) {\n const keysLength = packet.readLengthCodedNumber(encoding);\n const keysEnd = packet.offset + keysLength;\n const attrs = {};\n while (packet.offset < keysEnd) {\n attrs[\n packet.readLengthCodedString(encoding)\n ] = packet.readLengthCodedString(encoding);\n }\n args.connectAttributes = attrs;\n }\n return args;\n }\n}\n\nmodule.exports = HandshakeResponse;\n","'use strict';\n\nconst Packet = require('../packets/packet');\nconst CommandCodes = require('../constants/commands');\nconst StringParser = require('../parsers/string.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nclass PrepareStatement {\n constructor(sql, charsetNumber) {\n this.query = sql;\n this.charsetNumber = charsetNumber;\n this.encoding = CharsetToEncoding[charsetNumber];\n }\n\n toPacket() {\n const buf = StringParser.encode(this.query, this.encoding);\n const length = 5 + buf.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.STMT_PREPARE);\n packet.writeBuffer(buf);\n return packet;\n }\n}\n\nmodule.exports = PrepareStatement;\n","'use strict';\n\nclass PreparedStatementHeader {\n constructor(packet) {\n packet.skip(1); // should be 0\n this.id = packet.readInt32();\n this.fieldCount = packet.readInt16();\n this.parameterCount = packet.readInt16();\n packet.skip(1); // should be 0\n this.warningCount = packet.readInt16();\n }\n}\n\n// TODO: toPacket\n\nmodule.exports = PreparedStatementHeader;\n","'use strict';\n\nconst Packet = require('../packets/packet.js');\nconst CommandCode = require('../constants/commands.js');\nconst StringParser = require('../parsers/string.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nclass Query {\n constructor(sql, charsetNumber) {\n this.query = sql;\n this.charsetNumber = charsetNumber;\n this.encoding = CharsetToEncoding[charsetNumber];\n }\n\n toPacket() {\n const buf = StringParser.encode(this.query, this.encoding);\n const length = 5 + buf.length;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCode.QUERY);\n packet.writeBuffer(buf);\n return packet;\n }\n}\n\nmodule.exports = Query;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/com-register-slave.html\n// note that documentation is incorrect, for example command code is actually 0x15 but documented as 0x14\n\nconst Packet = require('../packets/packet');\nconst CommandCodes = require('../constants/commands');\n\nclass RegisterSlave {\n constructor(opts) {\n this.serverId = opts.serverId || 0;\n this.slaveHostname = opts.slaveHostname || '';\n this.slaveUser = opts.slaveUser || '';\n this.slavePassword = opts.slavePassword || '';\n this.slavePort = opts.slavePort || 0;\n this.replicationRank = opts.replicationRank || 0;\n this.masterId = opts.masterId || 0;\n }\n\n toPacket() {\n const length =\n 15 + // TODO: should be ascii?\n Buffer.byteLength(this.slaveHostname, 'utf8') +\n Buffer.byteLength(this.slaveUser, 'utf8') +\n Buffer.byteLength(this.slavePassword, 'utf8') +\n 3 +\n 4;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeInt8(CommandCodes.REGISTER_SLAVE);\n packet.writeInt32(this.serverId);\n packet.writeInt8(Buffer.byteLength(this.slaveHostname, 'utf8'));\n packet.writeString(this.slaveHostname);\n packet.writeInt8(Buffer.byteLength(this.slaveUser, 'utf8'));\n packet.writeString(this.slaveUser);\n packet.writeInt8(Buffer.byteLength(this.slavePassword, 'utf8'));\n packet.writeString(this.slavePassword);\n packet.writeInt16(this.slavePort);\n packet.writeInt32(this.replicationRank);\n packet.writeInt32(this.masterId);\n return packet;\n }\n}\n\nmodule.exports = RegisterSlave;\n","'use strict';\n\n// TODO: rename to OK packet\n// https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html\n\nconst Packet = require('./packet.js');\nconst ClientConstants = require('../constants/client.js');\nconst ServerSatusFlags = require('../constants/server_status.js');\n\nconst EncodingToCharset = require('../constants/encoding_charset.js');\nconst sessionInfoTypes = require('../constants/session_track.js');\n\nclass ResultSetHeader {\n constructor(packet, connection) {\n const bigNumberStrings = connection.config.bigNumberStrings;\n const encoding = connection.serverEncoding;\n const flags = connection._handshakePacket.capabilityFlags;\n const isSet = function(flag) {\n return flags & ClientConstants[flag];\n };\n if (packet.buffer[packet.offset] !== 0) {\n this.fieldCount = packet.readLengthCodedNumber();\n if (this.fieldCount === null) {\n this.infileName = packet.readString(undefined, encoding);\n }\n return;\n }\n this.fieldCount = packet.readInt8(); // skip OK byte\n this.affectedRows = packet.readLengthCodedNumber(bigNumberStrings);\n this.insertId = packet.readLengthCodedNumberSigned(bigNumberStrings);\n this.info = '';\n if (isSet('PROTOCOL_41')) {\n this.serverStatus = packet.readInt16();\n this.warningStatus = packet.readInt16();\n } else if (isSet('TRANSACTIONS')) {\n this.serverStatus = packet.readInt16();\n }\n let stateChanges = null;\n if (isSet('SESSION_TRACK') && packet.offset < packet.end) {\n this.info = packet.readLengthCodedString(encoding);\n\n if (this.serverStatus && ServerSatusFlags.SERVER_SESSION_STATE_CHANGED) {\n // session change info record - see\n // https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html#cs-sect-packet-ok-sessioninfo\n let len =\n packet.offset < packet.end ? packet.readLengthCodedNumber() : 0;\n const end = packet.offset + len;\n let type, key, stateEnd;\n if (len > 0) {\n stateChanges = {\n systemVariables: {},\n schema: null,\n trackStateChange: null\n };\n }\n while (packet.offset < end) {\n type = packet.readInt8();\n len = packet.readLengthCodedNumber();\n stateEnd = packet.offset + len;\n if (type === sessionInfoTypes.SYSTEM_VARIABLES) {\n key = packet.readLengthCodedString(encoding);\n const val = packet.readLengthCodedString(encoding);\n stateChanges.systemVariables[key] = val;\n if (key === 'character_set_client') {\n const charsetNumber = EncodingToCharset[val];\n connection.config.charsetNumber = charsetNumber;\n }\n } else if (type === sessionInfoTypes.SCHEMA) {\n key = packet.readLengthCodedString(encoding);\n stateChanges.schema = key;\n } else if (type === sessionInfoTypes.STATE_CHANGE) {\n stateChanges.trackStateChange = packet.readLengthCodedString(\n encoding\n );\n } else {\n // unsupported session track type. For now just ignore\n }\n packet.offset = stateEnd;\n }\n }\n } else {\n this.info = packet.readString(undefined, encoding);\n }\n if (stateChanges) {\n this.stateChanges = stateChanges;\n }\n const m = this.info.match(/\\schanged:\\s*(\\d+)/i);\n if (m !== null) {\n this.changedRows = parseInt(m[1], 10);\n }\n }\n\n // TODO: should be consistent instance member, but it's just easier here to have just function\n static toPacket(fieldCount, insertId) {\n let length = 4 + Packet.lengthCodedNumberLength(fieldCount);\n if (typeof insertId !== 'undefined') {\n length += Packet.lengthCodedNumberLength(insertId);\n }\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n packet.offset = 4;\n packet.writeLengthCodedNumber(fieldCount);\n if (typeof insertId !== 'undefined') {\n packet.writeLengthCodedNumber(insertId);\n }\n return packet;\n }\n}\n\nmodule.exports = ResultSetHeader;\n","'use strict';\n\n// inverse of charset_encodings\n// given encoding, get matching mysql charset number\n\nmodule.exports = {\n big5: 1,\n latin2: 2,\n dec8: 3,\n cp850: 4,\n latin1: 5,\n hp8: 6,\n koi8r: 7,\n swe7: 10,\n ascii: 11,\n eucjp: 12,\n sjis: 13,\n cp1251: 14,\n hebrew: 16,\n tis620: 18,\n euckr: 19,\n latin7: 20,\n koi8u: 22,\n gb2312: 24,\n greek: 25,\n cp1250: 26,\n gbk: 28,\n cp1257: 29,\n latin5: 30,\n armscii8: 32,\n cesu8: 33,\n ucs2: 35,\n cp866: 36,\n keybcs2: 37,\n macintosh: 38,\n macroman: 39,\n cp852: 40,\n utf8: 45,\n utf8mb4: 45,\n utf16: 54,\n utf16le: 56,\n cp1256: 57,\n utf32: 60,\n binary: 63,\n geostd8: 92,\n cp932: 95,\n eucjpms: 97,\n gb18030: 248\n};\n","'use strict';\n\nexports.SYSTEM_VARIABLES = 0;\nexports.SCHEMA = 1;\nexports.STATE_CHANGE = 2;\nexports.STATE_GTIDS = 3;\nexports.TRANSACTION_CHARACTERISTICS = 4;\nexports.TRANSACTION_STATE = 5;\n\nexports.FIRST_KEY = exports.SYSTEM_VARIABLES;\nexports.LAST_KEY = exports.TRANSACTION_STATE;\n","'use strict';\n\nconst ClientConstants = require('../constants/client');\nconst Packet = require('../packets/packet');\n\nclass SSLRequest {\n constructor(flags, charset) {\n this.clientFlags = flags | ClientConstants.SSL;\n this.charset = charset;\n }\n\n toPacket() {\n const length = 36;\n const buffer = Buffer.allocUnsafe(length);\n const packet = new Packet(0, buffer, 0, length);\n buffer.fill(0);\n packet.offset = 4;\n packet.writeInt32(this.clientFlags);\n packet.writeInt32(0); // max packet size. todo: move to config\n packet.writeInt8(this.charset);\n return packet;\n }\n}\n\nmodule.exports = SSLRequest;\n","'use strict';\n\nconst Packet = require('../packets/packet');\n\nclass TextRow {\n constructor(columns) {\n this.columns = columns || [];\n }\n\n static fromPacket(packet) {\n // packet.reset(); // set offset to starting point?\n const columns = [];\n while (packet.haveMoreData()) {\n columns.push(packet.readLengthCodedString());\n }\n return new TextRow(columns);\n }\n\n static toPacket(columns, encoding) {\n const sequenceId = 0; // TODO remove, this is calculated now in connecton\n let length = 0;\n columns.forEach(val => {\n if (val === null || typeof val === 'undefined') {\n ++length;\n return;\n }\n length += Packet.lengthCodedStringLength(val.toString(10), encoding);\n });\n const buffer = Buffer.allocUnsafe(length + 4);\n const packet = new Packet(sequenceId, buffer, 0, length + 4);\n packet.offset = 4;\n columns.forEach(val => {\n if (val === null) {\n packet.writeNull();\n return;\n }\n if (typeof val === 'undefined') {\n packet.writeInt8(0);\n return;\n }\n packet.writeLengthCodedString(val.toString(10), encoding);\n });\n return packet;\n }\n}\n\nmodule.exports = TextRow;\n","'use strict';\n\nconst ClientHandshake = require('./client_handshake.js');\nconst ServerHandshake = require('./server_handshake.js');\nconst Query = require('./query.js');\nconst Prepare = require('./prepare.js');\nconst CloseStatement = require('./close_statement.js');\nconst Execute = require('./execute.js');\nconst Ping = require('./ping.js');\nconst RegisterSlave = require('./register_slave.js');\nconst BinlogDump = require('./binlog_dump.js');\nconst ChangeUser = require('./change_user.js');\nconst Quit = require('./quit.js');\n\nmodule.exports = {\n ClientHandshake,\n ServerHandshake,\n Query,\n Prepare,\n CloseStatement,\n Execute,\n Ping,\n RegisterSlave,\n BinlogDump,\n ChangeUser,\n Quit\n};\n","// This file was modified by Oracle on July 5, 2021.\n// Errors generated by asynchronous authentication plugins are now being\n// handled and subsequently emitted at the command level.\n// Modifications copyright (c) 2021, Oracle and/or its affiliates.\n\n'use strict';\n\nconst Packets = require('../packets/index.js');\nconst sha256_password = require('../auth_plugins/sha256_password');\nconst caching_sha2_password = require('../auth_plugins/caching_sha2_password.js');\nconst mysql_native_password = require('../auth_plugins/mysql_native_password.js');\n\nconst standardAuthPlugins = {\n sha256_password: sha256_password({}),\n caching_sha2_password: caching_sha2_password({}),\n mysql_native_password: mysql_native_password({})\n};\n\nfunction warnLegacyAuthSwitch() {\n console.warn(\n 'WARNING! authSwitchHandler api is deprecated, please use new authPlugins api'\n );\n}\n\nfunction authSwitchPluginError(error, command) {\n // Authentication errors are fatal\n error.code = 'AUTH_SWITCH_PLUGIN_ERROR';\n error.fatal = true;\n\n command.emit('error', error);\n}\n\nfunction authSwitchRequest(packet, connection, command) {\n const { pluginName, pluginData } = Packets.AuthSwitchRequest.fromPacket(\n packet\n );\n let authPlugin =\n connection.config.authPlugins && connection.config.authPlugins[pluginName];\n\n // legacy plugin api don't allow to override mysql_native_password\n // if pluginName is mysql_native_password it's using standard auth4.1 auth\n if (\n connection.config.authSwitchHandler &&\n pluginName !== 'mysql_native_password'\n ) {\n const legacySwitchHandler = connection.config.authSwitchHandler;\n warnLegacyAuthSwitch();\n legacySwitchHandler({ pluginName, pluginData }, (err, data) => {\n if (err) {\n return authSwitchPluginError(err, command);\n }\n connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());\n });\n return;\n }\n if (!authPlugin) {\n authPlugin = standardAuthPlugins[pluginName];\n }\n if (!authPlugin) {\n throw new Error(\n `Server requests authentication using unknown plugin ${pluginName}. See ${'TODO: add plugins doco here'} on how to configure or author authentication plugins.`\n );\n }\n connection._authPlugin = authPlugin({ connection, command });\n Promise.resolve(connection._authPlugin(pluginData)).then(data => {\n if (data) {\n connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());\n }\n }).catch(err => {\n authSwitchPluginError(err, command);\n });\n}\n\nfunction authSwitchRequestMoreData(packet, connection, command) {\n const { data } = Packets.AuthSwitchRequestMoreData.fromPacket(packet);\n\n if (connection.config.authSwitchHandler) {\n const legacySwitchHandler = connection.config.authSwitchHandler;\n warnLegacyAuthSwitch();\n legacySwitchHandler({ pluginData: data }, (err, data) => {\n if (err) {\n return authSwitchPluginError(err, command);\n }\n connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());\n });\n return;\n }\n\n if (!connection._authPlugin) {\n throw new Error(\n 'AuthPluginMoreData received but no auth plugin instance found'\n );\n }\n Promise.resolve(connection._authPlugin(data)).then(data => {\n if (data) {\n connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());\n }\n }).catch(err => {\n authSwitchPluginError(err, command);\n });\n}\n\nmodule.exports = {\n authSwitchRequest,\n authSwitchRequestMoreData\n};\n","'use strict';\n\nconst PLUGIN_NAME = 'sha256_password';\nconst crypto = require('crypto');\nconst { xor } = require('../auth_41');\n\nconst REQUEST_SERVER_KEY_PACKET = Buffer.from([1]);\n\nconst STATE_INITIAL = 0;\nconst STATE_WAIT_SERVER_KEY = 1;\nconst STATE_FINAL = -1;\n\nfunction encrypt(password, scramble, key) {\n const stage1 = xor(\n Buffer.from(`${password}\\0`, 'utf8').toString('binary'),\n scramble.toString('binary')\n );\n return crypto.publicEncrypt(key, stage1);\n}\n\nmodule.exports = (pluginOptions = {}) => ({ connection }) => {\n let state = 0;\n let scramble = null;\n\n const password = connection.config.password;\n\n const authWithKey = serverKey => {\n const _password = encrypt(password, scramble, serverKey);\n state = STATE_FINAL;\n return _password;\n };\n\n return data => {\n switch (state) {\n case STATE_INITIAL:\n scramble = data.slice(0, 20);\n // if client provides key we can save one extra roundrip on first connection\n if (pluginOptions.serverPublicKey) {\n return authWithKey(pluginOptions.serverPublicKey);\n }\n\n state = STATE_WAIT_SERVER_KEY;\n return REQUEST_SERVER_KEY_PACKET;\n\n case STATE_WAIT_SERVER_KEY:\n if (pluginOptions.onServerPublicKey) {\n pluginOptions.onServerPublicKey(data);\n }\n return authWithKey(data);\n case STATE_FINAL:\n throw new Error(\n `Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in STATE_FINAL state.`\n );\n }\n\n throw new Error(\n `Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in state ${state}`\n );\n };\n};\n","'use strict';\n\n// https://mysqlserverteam.com/mysql-8-0-4-new-default-authentication-plugin-caching_sha2_password/\n\nconst PLUGIN_NAME = 'caching_sha2_password';\nconst crypto = require('crypto');\nconst { xor, xorRotating } = require('../auth_41');\n\nconst REQUEST_SERVER_KEY_PACKET = Buffer.from([2]);\nconst FAST_AUTH_SUCCESS_PACKET = Buffer.from([3]);\nconst PERFORM_FULL_AUTHENTICATION_PACKET = Buffer.from([4]);\n\nconst STATE_INITIAL = 0;\nconst STATE_TOKEN_SENT = 1;\nconst STATE_WAIT_SERVER_KEY = 2;\nconst STATE_FINAL = -1;\n\nfunction sha256(msg) {\n const hash = crypto.createHash('sha256');\n hash.update(msg, 'binary');\n return hash.digest('binary');\n}\n\nfunction calculateToken(password, scramble) {\n if (!password) {\n return Buffer.alloc(0);\n }\n const stage1 = sha256(Buffer.from(password, 'utf8').toString('binary'));\n const stage2 = sha256(stage1);\n const stage3 = sha256(stage2 + scramble.toString('binary'));\n return xor(stage1, stage3);\n}\n\nfunction encrypt(password, scramble, key) {\n const stage1 = xorRotating(\n Buffer.from(`${password}\\0`, 'utf8').toString('binary'),\n scramble.toString('binary')\n );\n return crypto.publicEncrypt(key, stage1);\n}\n\nmodule.exports = (pluginOptions = {}) => ({ connection }) => {\n let state = 0;\n let scramble = null;\n\n const password = connection.config.password;\n\n const authWithKey = serverKey => {\n const _password = encrypt(password, scramble, serverKey);\n state = STATE_FINAL;\n return _password;\n };\n\n return data => {\n switch (state) {\n case STATE_INITIAL:\n scramble = data.slice(0, 20);\n state = STATE_TOKEN_SENT;\n return calculateToken(password, scramble);\n\n case STATE_TOKEN_SENT:\n if (FAST_AUTH_SUCCESS_PACKET.equals(data)) {\n state = STATE_FINAL;\n return null;\n }\n\n if (PERFORM_FULL_AUTHENTICATION_PACKET.equals(data)) {\n const isSecureConnection =\n typeof pluginOptions.overrideIsSecure === 'undefined'\n ? connection.config.ssl || connection.config.socketPath\n : pluginOptions.overrideIsSecure;\n if (isSecureConnection) {\n state = STATE_FINAL;\n return Buffer.from(`${password}\\0`, 'utf8');\n }\n\n // if client provides key we can save one extra roundrip on first connection\n if (pluginOptions.serverPublicKey) {\n return authWithKey(pluginOptions.serverPublicKey);\n }\n\n state = STATE_WAIT_SERVER_KEY;\n return REQUEST_SERVER_KEY_PACKET;\n }\n throw new Error(\n `Invalid AuthMoreData packet received by ${PLUGIN_NAME} plugin in STATE_TOKEN_SENT state.`\n );\n case STATE_WAIT_SERVER_KEY:\n if (pluginOptions.onServerPublicKey) {\n pluginOptions.onServerPublicKey(data);\n }\n return authWithKey(data);\n case STATE_FINAL:\n throw new Error(\n `Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in STATE_FINAL state.`\n );\n }\n\n throw new Error(\n `Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in state ${state}`\n );\n };\n};\n","'use strict';\n\n//const PLUGIN_NAME = 'mysql_native_password';\nconst auth41 = require('../auth_41.js');\n\nmodule.exports = pluginOptions => ({ connection, command }) => {\n const password =\n command.password || pluginOptions.password || connection.config.password;\n const passwordSha1 =\n command.passwordSha1 ||\n pluginOptions.passwordSha1 ||\n connection.config.passwordSha1;\n return data => {\n const authPluginData1 = data.slice(0, 8);\n const authPluginData2 = data.slice(8, 20);\n let authToken;\n if (passwordSha1) {\n authToken = auth41.calculateTokenFromPasswordSha(\n passwordSha1,\n authPluginData1,\n authPluginData2\n );\n } else {\n authToken = auth41.calculateToken(\n password,\n authPluginData1,\n authPluginData2\n );\n }\n return authToken;\n };\n};\n","'use strict';\n\n// connection mixins\n// implementation of http://dev.mysql.com/doc/internals/en/compression.html\n\nconst zlib = require('zlib');\nconst PacketParser = require('./packet_parser.js');\n\nfunction handleCompressedPacket(packet) {\n // eslint-disable-next-line consistent-this, no-invalid-this\n const connection = this;\n const deflatedLength = packet.readInt24();\n const body = packet.readBuffer();\n\n if (deflatedLength !== 0) {\n connection.inflateQueue.push(task => {\n zlib.inflate(body, (err, data) => {\n if (err) {\n connection._handleNetworkError(err);\n return;\n }\n connection._bumpCompressedSequenceId(packet.numPackets);\n connection._inflatedPacketsParser.execute(data);\n task.done();\n });\n });\n } else {\n connection.inflateQueue.push(task => {\n connection._bumpCompressedSequenceId(packet.numPackets);\n connection._inflatedPacketsParser.execute(body);\n task.done();\n });\n }\n}\n\nfunction writeCompressed(buffer) {\n // http://dev.mysql.com/doc/internals/en/example-several-mysql-packets.html\n // note: sending a MySQL Packet of the size 2^24−5 to 2^24−1 via compression\n // leads to at least one extra compressed packet.\n // (this is because \"length of the packet before compression\" need to fit\n // into 3 byte unsigned int. \"length of the packet before compression\" includes\n // 4 byte packet header, hence 2^24−5)\n const MAX_COMPRESSED_LENGTH = 16777210;\n let start;\n if (buffer.length > MAX_COMPRESSED_LENGTH) {\n for (start = 0; start < buffer.length; start += MAX_COMPRESSED_LENGTH) {\n writeCompressed.call(\n // eslint-disable-next-line no-invalid-this\n this,\n buffer.slice(start, start + MAX_COMPRESSED_LENGTH)\n );\n }\n return;\n }\n\n // eslint-disable-next-line no-invalid-this, consistent-this\n const connection = this;\n\n let packetLen = buffer.length;\n const compressHeader = Buffer.allocUnsafe(7);\n\n // seqqueue is used here because zlib async execution is routed via thread pool\n // internally and when we have multiple compressed packets arriving we need\n // to assemble uncompressed result sequentially\n (function(seqId) {\n connection.deflateQueue.push(task => {\n zlib.deflate(buffer, (err, compressed) => {\n if (err) {\n connection._handleFatalError(err);\n return;\n }\n let compressedLength = compressed.length;\n\n if (compressedLength < packetLen) {\n compressHeader.writeUInt8(compressedLength & 0xff, 0);\n compressHeader.writeUInt16LE(compressedLength >> 8, 1);\n compressHeader.writeUInt8(seqId, 3);\n compressHeader.writeUInt8(packetLen & 0xff, 4);\n compressHeader.writeUInt16LE(packetLen >> 8, 5);\n connection.writeUncompressed(compressHeader);\n connection.writeUncompressed(compressed);\n } else {\n // http://dev.mysql.com/doc/internals/en/uncompressed-payload.html\n // To send an uncompressed payload:\n // - set length of payload before compression to 0\n // - the compressed payload contains the uncompressed payload instead.\n compressedLength = packetLen;\n packetLen = 0;\n compressHeader.writeUInt8(compressedLength & 0xff, 0);\n compressHeader.writeUInt16LE(compressedLength >> 8, 1);\n compressHeader.writeUInt8(seqId, 3);\n compressHeader.writeUInt8(packetLen & 0xff, 4);\n compressHeader.writeUInt16LE(packetLen >> 8, 5);\n connection.writeUncompressed(compressHeader);\n connection.writeUncompressed(buffer);\n }\n task.done();\n });\n });\n })(connection.compressedSequenceId);\n connection._bumpCompressedSequenceId(1);\n}\n\nfunction enableCompression(connection) {\n connection._lastWrittenPacketId = 0;\n connection._lastReceivedPacketId = 0;\n\n connection._handleCompressedPacket = handleCompressedPacket;\n connection._inflatedPacketsParser = new PacketParser(p => {\n connection.handlePacket(p);\n }, 4);\n connection._inflatedPacketsParser._lastPacket = 0;\n connection.packetParser = new PacketParser(packet => {\n connection._handleCompressedPacket(packet);\n }, 7);\n\n connection.writeUncompressed = connection.write;\n connection.write = writeCompressed;\n\n const seqqueue = require('seq-queue');\n connection.inflateQueue = seqqueue.createQueue();\n connection.deflateQueue = seqqueue.createQueue();\n}\n\nmodule.exports = {\n enableCompression: enableCompression\n};\n","module.exports = require('./lib/seq-queue');","var EventEmitter = require('events').EventEmitter;\nvar util = require('util');\n\nvar DEFAULT_TIMEOUT = 3000;\nvar INIT_ID = 0;\nvar EVENT_CLOSED = 'closed';\nvar EVENT_DRAINED = 'drained';\n\n/**\n * Instance a new queue\n *\n * @param {Number} timeout a global timeout for new queue\n * @class\n * @constructor\n */\nvar SeqQueue = function(timeout) {\n\tEventEmitter.call(this);\n\t\n\tif(timeout && timeout > 0) {\n\t\tthis.timeout = timeout;\n\t} else {\n\t\tthis.timeout = DEFAULT_TIMEOUT;\n\t}\n\t\n\tthis.status = SeqQueueManager.STATUS_IDLE;\n\tthis.curId = INIT_ID;\n\tthis.queue = [];\n};\nutil.inherits(SeqQueue, EventEmitter);\n\n/**\n * Add a task into queue.\n * \n * @param fn new request\n * @param ontimeout callback when task timeout\n * @param timeout timeout for current request. take the global timeout if this is invalid\n * @returns true or false\n */\nSeqQueue.prototype.push = function(fn, ontimeout, timeout) {\n\tif(this.status !== SeqQueueManager.STATUS_IDLE && this.status !== SeqQueueManager.STATUS_BUSY) {\n\t\t//ignore invalid status\n\t\treturn false;\n\t}\n\t\n\tif(typeof fn !== 'function') {\n\t\tthrow new Error('fn should be a function.');\n\t}\n\tthis.queue.push({fn: fn, ontimeout: ontimeout, timeout: timeout});\n\n\tif(this.status === SeqQueueManager.STATUS_IDLE) {\n\t\tthis.status = SeqQueueManager.STATUS_BUSY;\n\t\tvar self = this;\n\t\tprocess.nextTick(function() {\n\t\t\tself._next(self.curId);\n\t\t});\n\t}\n\treturn true;\n};\n\n/**\n * Close queue\n * \n * @param {Boolean} force if true will close the queue immediately else will execute the rest task in queue\n */\nSeqQueue.prototype.close = function(force) {\n\tif(this.status !== SeqQueueManager.STATUS_IDLE && this.status !== SeqQueueManager.STATUS_BUSY) {\n\t\t//ignore invalid status\n\t\treturn;\n\t}\n\t\n\tif(force) {\n\t\tthis.status = SeqQueueManager.STATUS_DRAINED;\n\t\tif(this.timerId) {\n\t\t\tclearTimeout(this.timerId);\n\t\t\tthis.timerId = undefined;\n\t\t}\n\t\tthis.emit(EVENT_DRAINED);\n\t} else {\n\t\tthis.status = SeqQueueManager.STATUS_CLOSED;\n\t\tthis.emit(EVENT_CLOSED);\n\t}\n};\n\n/**\n * Invoke next task\n * \n * @param {String|Number} tid last executed task id\n * @api private\n */\nSeqQueue.prototype._next = function(tid) {\n\tif(tid !== this.curId || this.status !== SeqQueueManager.STATUS_BUSY && this.status !== SeqQueueManager.STATUS_CLOSED) {\n\t\t//ignore invalid next call\n\t\treturn;\n\t}\n\t\n\tif(this.timerId) {\n\t\tclearTimeout(this.timerId);\n\t\tthis.timerId = undefined;\n\t}\n\t\n\tvar task = this.queue.shift();\n\tif(!task) {\n\t\tif(this.status === SeqQueueManager.STATUS_BUSY) {\n\t\t\tthis.status = SeqQueueManager.STATUS_IDLE;\n\t\t\tthis.curId++;\t//modify curId to invalidate timeout task\n\t\t} else {\n\t\t\tthis.status = SeqQueueManager.STATUS_DRAINED;\n\t\t\tthis.emit(EVENT_DRAINED);\n\t\t}\n\t\treturn;\n\t}\n\t\n\tvar self = this;\n\ttask.id = ++this.curId;\n\n\tvar timeout = task.timeout > 0 ? task.timeout : this.timeout;\n\ttimeout = timeout > 0 ? timeout : DEFAULT_TIMEOUT;\n\tthis.timerId = setTimeout(function() {\n\t\tprocess.nextTick(function() {\n\t\t\tself._next(task.id);\n\t\t});\n\t\tself.emit('timeout', task);\n\t\tif(task.ontimeout) {\n\t\t\ttask.ontimeout();\n\t\t}\n\t}, timeout);\n\n\ttry {\n\t\ttask.fn({\n\t\t\tdone: function() {\n\t\t\t\tvar res = task.id === self.curId;\n\t\t\t\tprocess.nextTick(function() {\n\t\t\t\t\tself._next(task.id);\n\t\t\t\t});\n\t\t\t\treturn res;\n\t\t\t}\n\t\t});\n\t} catch(err) {\n\t\tself.emit('error', err, task);\n\t\tprocess.nextTick(function() {\n\t\t\tself._next(task.id);\n\t\t});\n\t}\n};\n\n/**\n * Queue manager.\n * \n * @module\n */\nvar SeqQueueManager = module.exports;\n\n/**\n * Queue status: idle, welcome new tasks\n *\n * @const\n * @type {Number}\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.STATUS_IDLE = 0;\n\n/**\n * Queue status: busy, queue is working for some tasks now\n *\n * @const\n * @type {Number}\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.STATUS_BUSY = 1;\n\n/**\n * Queue status: closed, queue has closed and would not receive task any more \n * \t\t\t\t\tand is processing the remaining tasks now.\n *\n * @const\n * @type {Number}\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.STATUS_CLOSED = 2; \n\n/**\n * Queue status: drained, queue is ready to be destroy\n *\n * @const\n * @type {Number}\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.STATUS_DRAINED = 3;\n\n/**\n * Create Sequence queue\n * \n * @param {Number} timeout a global timeout for the new queue instance\n * @return {Object} new queue instance\n * @memberOf SeqQueueManager\n */\nSeqQueueManager.createQueue = function(timeout) {\n\treturn new SeqQueue(timeout);\n};","'use strict';\n\nconst CommandCode = require('../constants/commands.js');\nconst Errors = require('../constants/errors.js');\n\nconst Command = require('./command.js');\nconst Packets = require('../packets/index.js');\n\nclass ServerHandshake extends Command {\n constructor(args) {\n super();\n this.args = args;\n /*\n this.protocolVersion = args.protocolVersion || 10;\n this.serverVersion = args.serverVersion;\n this.connectionId = args.connectionId,\n this.statusFlags = args.statusFlags,\n this.characterSet = args.characterSet,\n this.capabilityFlags = args.capabilityFlags || 512;\n */\n }\n\n start(packet, connection) {\n const serverHelloPacket = new Packets.Handshake(this.args);\n this.serverHello = serverHelloPacket;\n serverHelloPacket.setScrambleData(err => {\n if (err) {\n connection.emit('error', new Error('Error generating random bytes'));\n return;\n }\n connection.writePacket(serverHelloPacket.toPacket(0));\n });\n return ServerHandshake.prototype.readClientReply;\n }\n\n readClientReply(packet, connection) {\n // check auth here\n const clientHelloReply = Packets.HandshakeResponse.fromPacket(packet);\n // TODO check we don't have something similar already\n connection.clientHelloReply = clientHelloReply;\n if (this.args.authCallback) {\n this.args.authCallback(\n {\n user: clientHelloReply.user,\n database: clientHelloReply.database,\n address: connection.stream.remoteAddress,\n authPluginData1: this.serverHello.authPluginData1,\n authPluginData2: this.serverHello.authPluginData2,\n authToken: clientHelloReply.authToken\n },\n (err, mysqlError) => {\n // if (err)\n if (!mysqlError) {\n connection.writeOk();\n } else {\n // TODO create constants / errorToCode\n // 1045 = ER_ACCESS_DENIED_ERROR\n connection.writeError({\n message: mysqlError.message || '',\n code: mysqlError.code || 1045\n });\n connection.close();\n }\n }\n );\n } else {\n connection.writeOk();\n }\n return ServerHandshake.prototype.dispatchCommands;\n }\n\n dispatchCommands(packet, connection) {\n // command from client to server\n let knownCommand = true;\n const encoding = connection.clientHelloReply.encoding;\n const commandCode = packet.readInt8();\n switch (commandCode) {\n case CommandCode.QUIT:\n if (connection.listeners('quit').length) {\n connection.emit('quit');\n } else {\n connection.stream.end();\n }\n break;\n case CommandCode.INIT_DB:\n if (connection.listeners('init_db').length) {\n const schemaName = packet.readString(undefined, encoding);\n connection.emit('init_db', schemaName);\n } else {\n connection.writeOk();\n }\n break;\n case CommandCode.QUERY:\n if (connection.listeners('query').length) {\n const query = packet.readString(undefined, encoding);\n connection.emit('query', query);\n } else {\n connection.writeError({\n code: Errors.HA_ERR_INTERNAL_ERROR,\n message: 'No query handler'\n });\n }\n break;\n case CommandCode.FIELD_LIST:\n if (connection.listeners('field_list').length) {\n const table = packet.readNullTerminatedString();\n const fields = packet.readString(undefined, encoding);\n connection.emit('field_list', table, fields);\n } else {\n connection.writeError({\n code: Errors.ER_WARN_DEPRECATED_SYNTAX,\n message:\n 'As of MySQL 5.7.11, COM_FIELD_LIST is deprecated and will be removed in a future version of MySQL.'\n });\n }\n break;\n case CommandCode.PING:\n if (connection.listeners('ping').length) {\n connection.emit('ping');\n } else {\n connection.writeOk();\n }\n break;\n default:\n knownCommand = false;\n }\n if (connection.listeners('packet').length) {\n connection.emit('packet', packet.clone(), knownCommand, commandCode);\n } else if (!knownCommand) {\n // eslint-disable-next-line no-console\n console.log('Unknown command:', commandCode);\n }\n return ServerHandshake.prototype.dispatchCommands;\n }\n}\n\nmodule.exports = ServerHandshake;\n\n// TODO: implement server-side 4.1 authentication\n/*\n4.1 authentication: (http://bazaar.launchpad.net/~mysql/mysql-server/5.5/view/head:/sql/password.c)\n\n SERVER: public_seed=create_random_string()\n send(public_seed)\n\n CLIENT: recv(public_seed)\n hash_stage1=sha1(\"password\")\n hash_stage2=sha1(hash_stage1)\n reply=xor(hash_stage1, sha1(public_seed,hash_stage2)\n\n // this three steps are done in scramble()\n\n send(reply)\n\n\n SERVER: recv(reply)\n hash_stage1=xor(reply, sha1(public_seed,hash_stage2))\n candidate_hash2=sha1(hash_stage1)\n check(candidate_hash2==hash_stage2)\n\nserver stores sha1(sha1(password)) ( hash_stag2)\n*/\n","'use strict';\n\nconst Types = require('../constants/types.js');\nconst Charsets = require('../constants/charsets.js');\nconst helpers = require('../helpers');\nconst genFunc = require('generate-function');\nconst parserCache = require('./parser_cache.js');\n\nconst typeNames = [];\nfor (const t in Types) {\n typeNames[Types[t]] = t;\n}\n\nfunction readCodeFor(type, charset, encodingExpr, config, options) {\n const supportBigNumbers =\n options.supportBigNumbers || config.supportBigNumbers;\n const bigNumberStrings = options.bigNumberStrings || config.bigNumberStrings;\n const timezone = options.timezone || config.timezone;\n const dateStrings = options.dateStrings || config.dateStrings;\n\n switch (type) {\n case Types.TINY:\n case Types.SHORT:\n case Types.LONG:\n case Types.INT24:\n case Types.YEAR:\n return 'packet.parseLengthCodedIntNoBigCheck()';\n case Types.LONGLONG:\n if (supportBigNumbers && bigNumberStrings) {\n return 'packet.parseLengthCodedIntString()';\n }\n return `packet.parseLengthCodedInt(${supportBigNumbers})`;\n case Types.FLOAT:\n case Types.DOUBLE:\n return 'packet.parseLengthCodedFloat()';\n case Types.NULL:\n return 'packet.readLengthCodedNumber()';\n case Types.DECIMAL:\n case Types.NEWDECIMAL:\n if (config.decimalNumbers) {\n return 'packet.parseLengthCodedFloat()';\n }\n return 'packet.readLengthCodedString(\"ascii\")';\n case Types.DATE:\n if (helpers.typeMatch(type, dateStrings, Types)) {\n return 'packet.readLengthCodedString(\"ascii\")';\n }\n return `packet.parseDate('${timezone}')`;\n case Types.DATETIME:\n case Types.TIMESTAMP:\n if (helpers.typeMatch(type, dateStrings, Types)) {\n return 'packet.readLengthCodedString(\"ascii\")';\n }\n return `packet.parseDateTime('${timezone}')`;\n case Types.TIME:\n return 'packet.readLengthCodedString(\"ascii\")';\n case Types.GEOMETRY:\n return 'packet.parseGeometryValue()';\n case Types.JSON:\n // Since for JSON columns mysql always returns charset 63 (BINARY),\n // we have to handle it according to JSON specs and use \"utf8\",\n // see https://github.com/sidorares/node-mysql2/issues/409\n return 'JSON.parse(packet.readLengthCodedString(\"utf8\"))';\n default:\n if (charset === Charsets.BINARY) {\n return 'packet.readLengthCodedBuffer()';\n }\n return `packet.readLengthCodedString(${encodingExpr})`;\n }\n}\n\nfunction compile(fields, options, config) {\n // use global typeCast if current query doesn't specify one\n if (\n typeof config.typeCast === 'function' &&\n typeof options.typeCast !== 'function'\n ) {\n options.typeCast = config.typeCast;\n }\n\n function wrap(field, _this) {\n return {\n type: typeNames[field.columnType],\n length: field.columnLength,\n db: field.schema,\n table: field.table,\n name: field.name,\n string: function() {\n return _this.packet.readLengthCodedString(field.encoding);\n },\n buffer: function() {\n return _this.packet.readLengthCodedBuffer();\n },\n geometry: function() {\n return _this.packet.parseGeometryValue();\n }\n };\n }\n\n const parserFn = genFunc();\n\n /* eslint-disable no-trailing-spaces */\n /* eslint-disable no-spaced-func */\n /* eslint-disable no-unexpected-multiline */\n parserFn('(function () {')(\n 'return class TextRow {'\n );\n\n // constructor method\n parserFn('constructor(fields) {');\n // node-mysql typeCast compatibility wrapper\n // see https://github.com/mysqljs/mysql/blob/96fdd0566b654436624e2375c7b6604b1f50f825/lib/protocol/packets/Field.js\n if (typeof options.typeCast === 'function') {\n parserFn('const _this = this;');\n parserFn('for(let i=0; i 0) {\n return Prepare.prototype.readParameter;\n } if (this.fieldCount > 0) {\n return Prepare.prototype.readField;\n } \n return this.prepareDone(connection);\n \n }\n\n readParameter(packet, connection) {\n const def = new Packets.ColumnDefinition(packet, connection.clientEncoding);\n this.parameterDefinitions.push(def);\n if (this.parameterDefinitions.length === this.parameterCount) {\n return Prepare.prototype.parametersEOF;\n }\n return this.readParameter;\n }\n\n readField(packet, connection) {\n const def = new Packets.ColumnDefinition(packet, connection.clientEncoding);\n this.fields.push(def);\n if (this.fields.length === this.fieldCount) {\n return Prepare.prototype.fieldsEOF;\n }\n return Prepare.prototype.readField;\n }\n\n parametersEOF(packet, connection) {\n if (!packet.isEOF()) {\n return connection.protocolError('Expected EOF packet after parameters');\n }\n if (this.fieldCount > 0) {\n return Prepare.prototype.readField;\n } \n return this.prepareDone(connection);\n \n }\n\n fieldsEOF(packet, connection) {\n if (!packet.isEOF()) {\n return connection.protocolError('Expected EOF packet after fields');\n }\n return this.prepareDone(connection);\n }\n\n prepareDone(connection) {\n const statement = new PreparedStatementInfo(\n this.query,\n this.id,\n this.fields,\n this.parameterDefinitions,\n connection\n );\n connection._statements.set(this.key, statement);\n if (this.onResult) {\n this.onResult(null, statement);\n }\n return null;\n }\n}\n\nmodule.exports = Prepare;\n","'use strict';\n\nconst FieldFlags = require('../constants/field_flags.js');\nconst Charsets = require('../constants/charsets.js');\nconst Types = require('../constants/types.js');\nconst helpers = require('../helpers');\nconst genFunc = require('generate-function');\nconst parserCache = require('./parser_cache.js');\nconst typeNames = [];\nfor (const t in Types) {\n typeNames[Types[t]] = t;\n}\n\nfunction readCodeFor(field, config, options, fieldNum) {\n const supportBigNumbers =\n options.supportBigNumbers || config.supportBigNumbers;\n const bigNumberStrings = options.bigNumberStrings || config.bigNumberStrings;\n const timezone = options.timezone || config.timezone;\n const dateStrings = options.dateStrings || config.dateStrings;\n const unsigned = field.flags & FieldFlags.UNSIGNED;\n switch (field.columnType) {\n case Types.TINY:\n return unsigned ? 'packet.readInt8();' : 'packet.readSInt8();';\n case Types.SHORT:\n return unsigned ? 'packet.readInt16();' : 'packet.readSInt16();';\n case Types.LONG:\n case Types.INT24: // in binary protocol int24 is encoded in 4 bytes int32\n return unsigned ? 'packet.readInt32();' : 'packet.readSInt32();';\n case Types.YEAR:\n return 'packet.readInt16()';\n case Types.FLOAT:\n return 'packet.readFloat();';\n case Types.DOUBLE:\n return 'packet.readDouble();';\n case Types.NULL:\n return 'null;';\n case Types.DATE:\n case Types.DATETIME:\n case Types.TIMESTAMP:\n case Types.NEWDATE:\n if (helpers.typeMatch(field.columnType, dateStrings, Types)) {\n return `packet.readDateTimeString(${field.decimals});`;\n }\n return `packet.readDateTime('${timezone}');`;\n case Types.TIME:\n return 'packet.readTimeString()';\n case Types.DECIMAL:\n case Types.NEWDECIMAL:\n if (config.decimalNumbers) {\n return 'packet.parseLengthCodedFloat();';\n }\n return 'packet.readLengthCodedString(\"ascii\");';\n case Types.GEOMETRY:\n return 'packet.parseGeometryValue();';\n case Types.JSON:\n // Since for JSON columns mysql always returns charset 63 (BINARY),\n // we have to handle it according to JSON specs and use \"utf8\",\n // see https://github.com/sidorares/node-mysql2/issues/409\n return 'JSON.parse(packet.readLengthCodedString(\"utf8\"));';\n case Types.LONGLONG:\n if (!supportBigNumbers) {\n return unsigned\n ? 'packet.readInt64JSNumber();'\n : 'packet.readSInt64JSNumber();';\n }\n if (bigNumberStrings) {\n return unsigned\n ? 'packet.readInt64String();'\n : 'packet.readSInt64String();';\n }\n return unsigned ? 'packet.readInt64();' : 'packet.readSInt64();';\n\n default:\n if (field.characterSet === Charsets.BINARY) {\n return 'packet.readLengthCodedBuffer();';\n }\n return `packet.readLengthCodedString(fields[${fieldNum}].encoding)`;\n }\n}\n\nfunction compile(fields, options, config) {\n const parserFn = genFunc();\n let i = 0;\n const nullBitmapLength = Math.floor((fields.length + 7 + 2) / 8);\n\n /* eslint-disable no-trailing-spaces */\n /* eslint-disable no-spaced-func */\n /* eslint-disable no-unexpected-multiline */\n\n parserFn('(function(){');\n parserFn('return class BinaryRow {');\n parserFn('constructor() {');\n parserFn('}');\n\n parserFn('next(packet, fields, options) {');\n if (options.rowsAsArray) {\n parserFn(`const result = new Array(${fields.length});`);\n } else {\n parserFn(\"const result = {};\");\n }\n\n const resultTables = {};\n let resultTablesArray = [];\n\n if (options.nestTables === true) {\n for (i = 0; i < fields.length; i++) {\n resultTables[fields[i].table] = 1;\n }\n resultTablesArray = Object.keys(resultTables);\n for (i = 0; i < resultTablesArray.length; i++) {\n parserFn(`result[${helpers.srcEscape(resultTablesArray[i])}] = {};`);\n }\n }\n\n parserFn('packet.readInt8();'); // status byte\n for (i = 0; i < nullBitmapLength; ++i) {\n parserFn(`const nullBitmaskByte${i} = packet.readInt8();`);\n }\n\n let lvalue = '';\n let currentFieldNullBit = 4;\n let nullByteIndex = 0;\n let fieldName = '';\n let tableName = '';\n\n for (i = 0; i < fields.length; i++) {\n fieldName = helpers.srcEscape(fields[i].name);\n parserFn(`// ${fieldName}: ${typeNames[fields[i].columnType]}`);\n\n if (typeof options.nestTables === 'string') {\n tableName = helpers.srcEscape(fields[i].table);\n lvalue = `result[${helpers.srcEscape(\n fields[i].table + options.nestTables + fields[i].name\n )}]`;\n } else if (options.nestTables === true) {\n tableName = helpers.srcEscape(fields[i].table);\n lvalue = `result[${tableName}][${fieldName}]`;\n } else if (options.rowsAsArray) {\n lvalue = `result[${i.toString(10)}]`;\n } else {\n lvalue = `result[${helpers.srcEscape(fields[i].name)}]`;\n }\n\n // TODO: this used to be an optimisation ( if column marked as NOT_NULL don't include code to check null\n // bitmap at all, but it seems that we can't rely on this flag, see #178\n // TODO: benchmark performance difference\n //\n // if (fields[i].flags & FieldFlags.NOT_NULL) { // don't need to check null bitmap if field can't be null.\n // result.push(lvalue + ' = ' + readCodeFor(fields[i], config));\n // } else if (fields[i].columnType == Types.NULL) {\n // result.push(lvalue + ' = null;');\n // } else {\n parserFn(`if (nullBitmaskByte${nullByteIndex} & ${currentFieldNullBit})`);\n parserFn(`${lvalue} = null;`);\n parserFn('else');\n parserFn(`${lvalue} = ${readCodeFor(fields[i], config, options, i)}`);\n // }\n currentFieldNullBit *= 2;\n if (currentFieldNullBit === 0x100) {\n currentFieldNullBit = 1;\n nullByteIndex++;\n }\n }\n\n parserFn('return result;');\n parserFn('}');\n parserFn('};')('})()');\n\n /* eslint-enable no-trailing-spaces */\n /* eslint-enable no-spaced-func */\n /* eslint-enable no-unexpected-multiline */\n\n if (config.debug) {\n helpers.printDebugWithCode(\n 'Compiled binary protocol row parser',\n parserFn.toString()\n );\n }\n return parserFn.toFunction();\n}\n\nfunction getBinaryParser(fields, options, config) {\n return parserCache.getParser('binary', fields, options, config, compile);\n}\n\nmodule.exports = getBinaryParser;\n","'use strict';\n\n// Manually extracted from mysql-5.5.23/include/mysql_com.h\nexports.NOT_NULL = 1; /* Field can't be NULL */\nexports.PRI_KEY = 2; /* Field is part of a primary key */\nexports.UNIQUE_KEY = 4; /* Field is part of a unique key */\nexports.MULTIPLE_KEY = 8; /* Field is part of a key */\nexports.BLOB = 16; /* Field is a blob */\nexports.UNSIGNED = 32; /* Field is unsigned */\nexports.ZEROFILL = 64; /* Field is zerofill */\nexports.BINARY = 128; /* Field is binary */\n\n/* The following are only sent to new clients */\nexports.ENUM = 256; /* field is an enum */\nexports.AUTO_INCREMENT = 512; /* field is a autoincrement field */\nexports.TIMESTAMP = 1024; /* Field is a timestamp */\nexports.SET = 2048; /* field is a set */\nexports.NO_DEFAULT_VALUE = 4096; /* Field doesn't have default value */\nexports.ON_UPDATE_NOW = 8192; /* Field is set to NOW on UPDATE */\nexports.NUM = 32768; /* Field is num (for clients) */\n","'use strict';\n\nconst Command = require('./command');\nconst CommandCode = require('../constants/commands');\nconst Packet = require('../packets/packet');\n\n// TODO: time statistics?\n// usefull for queue size and network latency monitoring\n// store created,sent,reply timestamps\nclass Ping extends Command {\n constructor(callback) {\n super();\n this.onResult = callback;\n }\n\n start(packet, connection) {\n const ping = new Packet(\n 0,\n Buffer.from([1, 0, 0, 0, CommandCode.PING]),\n 0,\n 5\n );\n connection.writePacket(ping);\n return Ping.prototype.pingResponse;\n }\n\n pingResponse() {\n // TODO: check it's OK packet. error check already done in caller\n if (this.onResult) {\n process.nextTick(this.onResult.bind(this));\n }\n return null;\n }\n}\n\nmodule.exports = Ping;\n","'use strict';\n\nconst Command = require('./command');\nconst Packets = require('../packets');\n\nclass RegisterSlave extends Command {\n constructor(opts, callback) {\n super();\n this.onResult = callback;\n this.opts = opts;\n }\n\n start(packet, connection) {\n const newPacket = new Packets.RegisterSlave(this.opts);\n connection.writePacket(newPacket.toPacket(1));\n return RegisterSlave.prototype.registerResponse;\n }\n\n registerResponse() {\n if (this.onResult) {\n process.nextTick(this.onResult.bind(this));\n }\n return null;\n }\n}\n\nmodule.exports = RegisterSlave;\n","'use strict';\n\nconst Command = require('./command');\nconst Packets = require('../packets');\n\nconst eventParsers = [];\n\nclass BinlogEventHeader {\n constructor(packet) {\n this.timestamp = packet.readInt32();\n this.eventType = packet.readInt8();\n this.serverId = packet.readInt32();\n this.eventSize = packet.readInt32();\n this.logPos = packet.readInt32();\n this.flags = packet.readInt16();\n }\n}\n\nclass BinlogDump extends Command {\n constructor(opts) {\n super();\n // this.onResult = callback;\n this.opts = opts;\n }\n\n start(packet, connection) {\n const newPacket = new Packets.BinlogDump(this.opts);\n connection.writePacket(newPacket.toPacket(1));\n return BinlogDump.prototype.binlogData;\n }\n\n binlogData(packet) {\n // ok - continue consuming events\n // error - error\n // eof - end of binlog\n if (packet.isEOF()) {\n this.emit('eof');\n return null;\n }\n // binlog event header\n packet.readInt8();\n const header = new BinlogEventHeader(packet);\n const EventParser = eventParsers[header.eventType];\n let event;\n if (EventParser) {\n event = new EventParser(packet);\n } else {\n event = {\n name: 'UNKNOWN'\n };\n }\n event.header = header;\n this.emit('event', event);\n return BinlogDump.prototype.binlogData;\n }\n}\n\nclass RotateEvent {\n constructor(packet) {\n this.pposition = packet.readInt32();\n // TODO: read uint64 here\n packet.readInt32(); // positionDword2\n this.nextBinlog = packet.readString();\n this.name = 'RotateEvent';\n }\n}\n\nclass FormatDescriptionEvent {\n constructor(packet) {\n this.binlogVersion = packet.readInt16();\n this.serverVersion = packet.readString(50).replace(/\\u0000.*/, ''); // eslint-disable-line no-control-regex\n this.createTimestamp = packet.readInt32();\n this.eventHeaderLength = packet.readInt8(); // should be 19\n this.eventsLength = packet.readBuffer();\n this.name = 'FormatDescriptionEvent';\n }\n}\n\nclass QueryEvent {\n constructor(packet) {\n const parseStatusVars = require('../packets/binlog_query_statusvars.js');\n this.slaveProxyId = packet.readInt32();\n this.executionTime = packet.readInt32();\n const schemaLength = packet.readInt8();\n this.errorCode = packet.readInt16();\n const statusVarsLength = packet.readInt16();\n const statusVars = packet.readBuffer(statusVarsLength);\n this.schema = packet.readString(schemaLength);\n packet.readInt8(); // should be zero\n this.statusVars = parseStatusVars(statusVars);\n this.query = packet.readString();\n this.name = 'QueryEvent';\n }\n}\n\nclass XidEvent {\n constructor(packet) {\n this.binlogVersion = packet.readInt16();\n this.xid = packet.readInt64();\n this.name = 'XidEvent';\n }\n}\n\neventParsers[2] = QueryEvent;\neventParsers[4] = RotateEvent;\neventParsers[15] = FormatDescriptionEvent;\neventParsers[16] = XidEvent;\n\nmodule.exports = BinlogDump;\n","'use strict';\n\n// http://dev.mysql.com/doc/internals/en/query-event.html\n\nconst keys = {\n FLAGS2: 0,\n SQL_MODE: 1,\n CATALOG: 2,\n AUTO_INCREMENT: 3,\n CHARSET: 4,\n TIME_ZONE: 5,\n CATALOG_NZ: 6,\n LC_TIME_NAMES: 7,\n CHARSET_DATABASE: 8,\n TABLE_MAP_FOR_UPDATE: 9,\n MASTER_DATA_WRITTEN: 10,\n INVOKERS: 11,\n UPDATED_DB_NAMES: 12,\n MICROSECONDS: 3\n};\n\nmodule.exports = function parseStatusVars(buffer) {\n const result = {};\n let offset = 0;\n let key, length, prevOffset;\n while (offset < buffer.length) {\n key = buffer[offset++];\n switch (key) {\n case keys.FLAGS2:\n result.flags = buffer.readUInt32LE(offset);\n offset += 4;\n break;\n case keys.SQL_MODE:\n // value is 8 bytes, but all dcumented flags are in first 4 bytes\n result.sqlMode = buffer.readUInt32LE(offset);\n offset += 8;\n break;\n case keys.CATALOG:\n length = buffer[offset++];\n result.catalog = buffer.toString('utf8', offset, offset + length);\n offset += length + 1; // null byte after string\n break;\n case keys.CHARSET:\n result.clientCharset = buffer.readUInt16LE(offset);\n result.connectionCollation = buffer.readUInt16LE(offset + 2);\n result.serverCharset = buffer.readUInt16LE(offset + 4);\n offset += 6;\n break;\n case keys.TIME_ZONE:\n length = buffer[offset++];\n result.timeZone = buffer.toString('utf8', offset, offset + length);\n offset += length; // no null byte\n break;\n case keys.CATALOG_NZ:\n length = buffer[offset++];\n result.catalogNz = buffer.toString('utf8', offset, offset + length);\n offset += length; // no null byte\n break;\n case keys.LC_TIME_NAMES:\n result.lcTimeNames = buffer.readUInt16LE(offset);\n offset += 2;\n break;\n case keys.CHARSET_DATABASE:\n result.schemaCharset = buffer.readUInt16LE(offset);\n offset += 2;\n break;\n case keys.TABLE_MAP_FOR_UPDATE:\n result.mapForUpdate1 = buffer.readUInt32LE(offset);\n result.mapForUpdate2 = buffer.readUInt32LE(offset + 4);\n offset += 8;\n break;\n case keys.MASTER_DATA_WRITTEN:\n result.masterDataWritten = buffer.readUInt32LE(offset);\n offset += 4;\n break;\n case keys.INVOKERS:\n length = buffer[offset++];\n result.invokerUsername = buffer.toString(\n 'utf8',\n offset,\n offset + length\n );\n offset += length;\n length = buffer[offset++];\n result.invokerHostname = buffer.toString(\n 'utf8',\n offset,\n offset + length\n );\n offset += length;\n break;\n case keys.UPDATED_DB_NAMES:\n length = buffer[offset++];\n // length - number of null-terminated strings\n result.updatedDBs = []; // we'll store them as array here\n for (; length; --length) {\n prevOffset = offset;\n // fast forward to null terminating byte\n while (buffer[offset++] && offset < buffer.length) {\n // empty body, everything inside while condition\n }\n result.updatedDBs.push(\n buffer.toString('utf8', prevOffset, offset - 1)\n );\n }\n break;\n case keys.MICROSECONDS:\n result.microseconds =\n // REVIEW: INVALID UNKNOWN VARIABLE!\n buffer.readInt16LE(offset) + (buffer[offset + 2] << 16);\n offset += 3;\n }\n }\n return result;\n};\n","'use strict';\n\nconst Command = require('./command.js');\nconst Packets = require('../packets/index.js');\nconst ClientHandshake = require('./client_handshake.js');\nconst CharsetToEncoding = require('../constants/charset_encodings.js');\n\nclass ChangeUser extends Command {\n constructor(options, callback) {\n super();\n this.onResult = callback;\n this.user = options.user;\n this.password = options.password;\n this.database = options.database;\n this.passwordSha1 = options.passwordSha1;\n this.charsetNumber = options.charsetNumber;\n this.currentConfig = options.currentConfig;\n }\n start(packet, connection) {\n const newPacket = new Packets.ChangeUser({\n flags: connection.config.clientFlags,\n user: this.user,\n database: this.database,\n charsetNumber: this.charsetNumber,\n password: this.password,\n passwordSha1: this.passwordSha1,\n authPluginData1: connection._handshakePacket.authPluginData1,\n authPluginData2: connection._handshakePacket.authPluginData2\n });\n this.currentConfig.user = this.user;\n this.currentConfig.password = this.password;\n this.currentConfig.database = this.database;\n this.currentConfig.charsetNumber = this.charsetNumber;\n connection.clientEncoding = CharsetToEncoding[this.charsetNumber];\n // reset prepared statements cache as all statements become invalid after changeUser\n connection._statements.reset();\n connection.writePacket(newPacket.toPacket());\n return ChangeUser.prototype.handshakeResult;\n }\n}\n\nChangeUser.prototype.handshakeResult =\n ClientHandshake.prototype.handshakeResult;\nChangeUser.prototype.calculateNativePasswordAuthToken =\n ClientHandshake.prototype.calculateNativePasswordAuthToken;\n\nmodule.exports = ChangeUser;\n","'use strict';\n\nconst Command = require('./command.js');\nconst CommandCode = require('../constants/commands.js');\nconst Packet = require('../packets/packet.js');\n\nclass Quit extends Command {\n constructor(callback) {\n super();\n this.done = callback;\n }\n\n start(packet, connection) {\n connection._closing = true;\n const quit = new Packet(\n 0,\n Buffer.from([1, 0, 0, 0, CommandCode.QUIT]),\n 0,\n 5\n );\n if (this.done) {\n this.done();\n }\n connection.writePacket(quit);\n return null;\n }\n}\n\nmodule.exports = Quit;\n","'use strict';\n\n// Certificate for Amazon RDS (Updated for 2019)\n// https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html\n// https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.tls\nexports['Amazon RDS'] = {\n ca: [\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID9DCCAtygAwIBAgIBQjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUwOTExMzFaFw0y\\n' +\n 'MDAzMDUwOTExMzFaMIGKMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEbMBkGA1UEAwwSQW1hem9uIFJE\\n' +\n 'UyBSb290IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuD8nrZ8V\\n' +\n 'u+VA8yVlUipCZIKPTDcOILYpUe8Tct0YeQQr0uyl018StdBsa3CjBgvwpDRq1HgF\\n' +\n 'Ji2N3+39+shCNspQeE6aYU+BHXhKhIIStt3r7gl/4NqYiDDMWKHxHq0nsGDFfArf\\n' +\n 'AOcjZdJagOMqb3fF46flc8k2E7THTm9Sz4L7RY1WdABMuurpICLFE3oHcGdapOb9\\n' +\n 'T53pQR+xpHW9atkcf3pf7gbO0rlKVSIoUenBlZipUlp1VZl/OD/E+TtRhDDNdI2J\\n' +\n 'P/DSMM3aEsq6ZQkfbz/Ilml+Lx3tJYXUDmp+ZjzMPLk/+3beT8EhrwtcG3VPpvwp\\n' +\n 'BIOqsqVVTvw/CwIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw\\n' +\n 'AwEB/zAdBgNVHQ4EFgQUTgLurD72FchM7Sz1BcGPnIQISYMwHwYDVR0jBBgwFoAU\\n' +\n 'TgLurD72FchM7Sz1BcGPnIQISYMwDQYJKoZIhvcNAQEFBQADggEBAHZcgIio8pAm\\n' +\n 'MjHD5cl6wKjXxScXKtXygWH2BoDMYBJF9yfyKO2jEFxYKbHePpnXB1R04zJSWAw5\\n' +\n '2EUuDI1pSBh9BA82/5PkuNlNeSTB3dXDD2PEPdzVWbSKvUB8ZdooV+2vngL0Zm4r\\n' +\n '47QPyd18yPHrRIbtBtHR/6CwKevLZ394zgExqhnekYKIqqEX41xsUV0Gm6x4vpjf\\n' +\n '2u6O/+YE2U+qyyxHE5Wd5oqde0oo9UUpFETJPVb6Q2cEeQib8PBAyi0i6KnF+kIV\\n' +\n 'A9dY7IHSubtCK/i8wxMVqfd5GtbA8mmpeJFwnDvm9rBEsHybl08qlax9syEwsUYr\\n' +\n '/40NawZfTUU=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBRDANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMDZaFw0y\\n' +\n 'MDAzMDUyMjAzMDZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1ub3J0aGVhc3QtMSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBAMmM2B4PfTXCZjbZMWiDPyxvk/eeNwIRJAhfzesiGUiLozX6CRy3rwC1ZOPV\\n' +\n 'AcQf0LB+O8wY88C/cV+d4Q2nBDmnk+Vx7o2MyMh343r5rR3Na+4izd89tkQVt0WW\\n' +\n 'vO21KRH5i8EuBjinboOwAwu6IJ+HyiQiM0VjgjrmEr/YzFPL8MgHD/YUHehqjACn\\n' +\n 'C0+B7/gu7W4qJzBL2DOf7ub2qszGtwPE+qQzkCRDwE1A4AJmVE++/FLH2Zx78Egg\\n' +\n 'fV1sUxPtYgjGH76VyyO6GNKM6rAUMD/q5mnPASQVIXgKbupr618bnH+SWHFjBqZq\\n' +\n 'HvDGPMtiiWII41EmGUypyt5AbysCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFIiKM0Q6n1K4EmLxs3ZXxINbwEwR\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQBezGbE9Rw/k2e25iGjj5n8r+M3dlye8ORfCE/dijHtxqAKasXHgKX8I9Tw\\n' +\n 'JkBiGWiuzqn7gO5MJ0nMMro1+gq29qjZnYX1pDHPgsRjUX8R+juRhgJ3JSHijRbf\\n' +\n '4qNJrnwga7pj94MhcLq9u0f6dxH6dXbyMv21T4TZMTmcFduf1KgaiVx1PEyJjC6r\\n' +\n 'M+Ru+A0eM+jJ7uCjUoZKcpX8xkj4nmSnz9NMPog3wdOSB9cAW7XIc5mHa656wr7I\\n' +\n 'WJxVcYNHTXIjCcng2zMKd1aCcl2KSFfy56sRfT7J5Wp69QSr+jq8KM55gw8uqAwi\\n' +\n 'VPrXn2899T1rcTtFYFP16WXjGuc0\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBRTANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMTlaFw0y\\n' +\n 'MDAzMDUyMjAzMTlaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1zb3V0aGVhc3QtMSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBANaXElmSEYt/UtxHFsARFhSUahTf1KNJzR0Dmay6hqOXQuRVbKRwPd19u5vx\\n' +\n 'DdF1sLT7D69IK3VDnUiQScaCv2Dpu9foZt+rLx+cpx1qiQd1UHrvqq8xPzQOqCdC\\n' +\n 'RFStq6yVYZ69yfpfoI67AjclMOjl2Vph3ftVnqP0IgVKZdzeC7fd+umGgR9xY0Qr\\n' +\n 'Ubhd/lWdsbNvzK3f1TPWcfIKQnpvSt85PIEDJir6/nuJUKMtmJRwTymJf0i+JZ4x\\n' +\n '7dJa341p2kHKcHMgOPW7nJQklGBA70ytjUV6/qebS3yIugr/28mwReflg3TJzVDl\\n' +\n 'EOvi6pqbqNbkMuEwGDCmEQIVqgkCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFAu93/4k5xbWOsgdCdn+/KdiRuit\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQBlcjSyscpPjf5+MgzMuAsCxByqUt+WFspwcMCpwdaBeHOPSQrXNqX2Sk6P\\n' +\n 'kth6oCivA64trWo8tFMvPYlUA1FYVD5WpN0kCK+P5pD4KHlaDsXhuhClJzp/OP8t\\n' +\n 'pOyUr5109RHLxqoKB5J5m1XA7rgcFjnMxwBSWFe3/4uMk/+4T53YfCVXuc6QV3i7\\n' +\n 'I/2LAJwFf//pTtt6fZenYfCsahnr2nvrNRNyAxcfvGZ/4Opn/mJtR6R/AjvQZHiR\\n' +\n 'bkRNKF2GW0ueK5W4FkZVZVhhX9xh1Aj2Ollb+lbOqADaVj+AT3PoJPZ3MPQHKCXm\\n' +\n 'xwG0LOLlRr/TfD6li1AfOVTAJXv9\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBRjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMjRaFw0y\\n' +\n 'MDAzMDUyMjAzMjRaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1zb3V0aGVhc3QtMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBAJqBAJutz69hFOh3BtLHZTbwE8eejGGKayn9hu98YMDPzWzGXWCmW+ZYWELA\\n' +\n 'cY3cNWNF8K4FqKXFr2ssorBYim1UtYFX8yhydT2hMD5zgQ2sCGUpuidijuPA6zaq\\n' +\n 'Z3tdhVR94f0q8mpwpv2zqR9PcqaGDx2VR1x773FupRPRo7mEW1vC3IptHCQlP/zE\\n' +\n '7jQiLl28bDIH2567xg7e7E9WnZToRnhlYdTaDaJsHTzi5mwILi4cihSok7Shv/ME\\n' +\n 'hnukvxeSPUpaVtFaBhfBqq055ePq9I+Ns4KGreTKMhU0O9fkkaBaBmPaFgmeX/XO\\n' +\n 'n2AX7gMouo3mtv34iDTZ0h6YCGkCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFIlQnY0KHYWn1jYumSdJYfwj/Nfw\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQA0wVU6/l41cTzHc4azc4CDYY2Wd90DFWiH9C/mw0SgToYfCJ/5Cfi0NT/Y\\n' +\n 'PRnk3GchychCJgoPA/k9d0//IhYEAIiIDjyFVgjbTkKV3sh4RbdldKVOUB9kumz/\\n' +\n 'ZpShplsGt3z4QQiVnKfrAgqxWDjR0I0pQKkxXa6Sjkicos9LQxVtJ0XA4ieG1E7z\\n' +\n 'zJr+6t80wmzxvkInSaWP3xNJK9azVRTrgQZQlvkbpDbExl4mNTG66VD3bAp6t3Wa\\n' +\n 'B49//uDdfZmPkqqbX+hsxp160OH0rxJppwO3Bh869PkDnaPEd/Pxw7PawC+li0gi\\n' +\n 'NRV8iCEx85aFxcyOhqn0WZOasxee\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/zCCAuegAwIBAgIBRzANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMzFaFw0y\\n' +\n 'MDAzMDUyMjAzMzFaMIGSMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEjMCEGA1UEAwwaQW1hem9uIFJE\\n' +\n 'UyBldS1jZW50cmFsLTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\\n' +\n 'AQDFtP2dhSLuaPOI4ZrrPWsK4OY9ocQBp3yApH1KJYmI9wpQKZG/KCH2E6Oo7JAw\\n' +\n 'QORU519r033T+FO2Z7pFPlmz1yrxGXyHpJs8ySx3Yo5S8ncDCdZJCLmtPiq/hahg\\n' +\n '5/0ffexMFUCQaYicFZsrJ/cStdxUV+tSw2JQLD7UxS9J97LQWUPyyG+ZrjYVTVq+\\n' +\n 'zudnFmNSe4QoecXMhAFTGJFQXxP7nhSL9Ao5FGgdXy7/JWeWdQIAj8ku6cBDKPa6\\n' +\n 'Y6kP+ak+In+Lye8z9qsCD/afUozfWjPR2aA4JoIZVF8dNRShIMo8l0XfgfM2q0+n\\n' +\n 'ApZWZ+BjhIO5XuoUgHS3D2YFAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNV\\n' +\n 'HRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBRm4GsWIA/M6q+tK8WGHWDGh2gcyTAf\\n' +\n 'BgNVHSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOC\\n' +\n 'AQEAHpMmeVQNqcxgfQdbDIi5UIy+E7zZykmtAygN1XQrvga9nXTis4kOTN6g5/+g\\n' +\n 'HCx7jIXeNJzAbvg8XFqBN84Quqgpl/tQkbpco9Jh1HDs558D5NnZQxNqH5qXQ3Mm\\n' +\n 'uPgCw0pYcPOa7bhs07i+MdVwPBsX27CFDtsgAIru8HvKxY1oTZrWnyIRo93tt/pk\\n' +\n 'WuItVMVHjaQZVfTCow0aDUbte6Vlw82KjUFq+n2NMSCJDiDKsDDHT6BJc4AJHIq3\\n' +\n '/4Z52MSC9KMr0yAaaoWfW/yMEj9LliQauAgwVjArF4q78rxpfKTG9Rfd8U1BZANP\\n' +\n '7FrFMN0ThjfA1IvmOYcgskY5bQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBSDANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzMzVaFw0y\\n' +\n 'MDAzMDUyMjAzMzVaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyBldS13ZXN0LTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx\\n' +\n 'PdbqQ0HKRj79Pmocxvjc+P6i4Ux24kgFIl+ckiir1vzkmesc3a58gjrMlCksEObt\\n' +\n 'Yihs5IhzEq1ePT0gbfS9GYFp34Uj/MtPwlrfCBWG4d2TcrsKRHr1/EXUYhWqmdrb\\n' +\n 'RhX8XqoRhVkbF/auzFSBhTzcGGvZpQ2KIaxRcQfcXlMVhj/pxxAjh8U4F350Fb0h\\n' +\n 'nX1jw4/KvEreBL0Xb2lnlGTkwVxaKGSgXEnOgIyOFdOQc61vdome0+eeZsP4jqeR\\n' +\n 'TGYJA9izJsRbe2YJxHuazD+548hsPlM3vFzKKEVURCha466rAaYAHy3rKur3HYQx\\n' +\n 'Yt+SoKcEz9PXuSGj96ejAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBTebg//h2oeXbZjQ4uuoiuLYzuiPDAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'TikPaGeZasTPw+4RBemlsyPAjtFFQLo7ddaFdORLgdEysVf8aBqndvbA6MT/v4lj\\n' +\n 'GtEtUdF59ZcbWOrVm+fBZ2h/jYJ59dYF/xzb09nyRbdMSzB9+mkSsnOMqluq5y8o\\n' +\n 'DY/PfP2vGhEg/2ZncRC7nlQU1Dm8F4lFWEiQ2fi7O1cW852Vmbq61RIfcYsH/9Ma\\n' +\n 'kpgk10VZ75b8m3UhmpZ/2uRY+JEHImH5WpcTJ7wNiPNJsciZMznGtrgOnPzYco8L\\n' +\n 'cDleOASIZifNMQi9PKOJKvi0ITz0B/imr8KBsW0YjZVJ54HMa7W1lwugSM7aMAs+\\n' +\n 'E3Sd5lS+SHwWaOCHwhOEVA==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBSTANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzNDBaFw0y\\n' +\n 'MDAzMDUyMjAzNDBaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyBzYS1lYXN0LTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCU\\n' +\n 'X4OBnQ5xA6TLJAiFEI6l7bUWjoVJBa/VbMdCCSs2i2dOKmqUaXu2ix2zcPILj3lZ\\n' +\n 'GMk3d/2zvTK/cKhcFrewHUBamTeVHdEmynhMQamqNmkM4ptYzFcvEUw1TGxHT4pV\\n' +\n 'Q6gSN7+/AJewQvyHexHo8D0+LDN0/Wa9mRm4ixCYH2CyYYJNKaZt9+EZfNu+PPS4\\n' +\n '8iB0TWH0DgQkbWMBfCRgolLLitAZklZ4dvdlEBS7evN1/7ttBxUK6SvkeeSx3zBl\\n' +\n 'ww3BlXqc3bvTQL0A+RRysaVyFbvtp9domFaDKZCpMmDFAN/ntx215xmQdrSt+K3F\\n' +\n 'cXdGQYHx5q410CAclGnbAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBT6iVWnm/uakS+tEX2mzIfw+8JL0zAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'FmDD+QuDklXn2EgShwQxV13+txPRuVdOSrutHhoCgMwFWCMtPPtBAKs6KPY7Guvw\\n' +\n 'DpJoZSehDiOfsgMirjOWjvfkeWSNvKfjWTVneX7pZD9W5WPnsDBvTbCGezm+v87z\\n' +\n 'b+ZM2ZMo98m/wkMcIEAgdSKilR2fuw8rLkAjhYFfs0A7tDgZ9noKwgHvoE4dsrI0\\n' +\n 'KZYco6DlP/brASfHTPa2puBLN9McK3v+h0JaSqqm5Ro2Bh56tZkQh8AWy/miuDuK\\n' +\n '3+hNEVdxosxlkM1TPa1DGj0EzzK0yoeerXuH2HX7LlCrrxf6/wdKnjR12PMrLQ4A\\n' +\n 'pCqkcWw894z6bV9MAvKe6A==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBQzANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMTU0MDRaFw0y\\n' +\n 'MDAzMDUyMTU0MDRaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyB1cy1lYXN0LTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDI\\n' +\n 'UIuwh8NusKHk1SqPXcP7OqxY3S/M2ZyQWD3w7Bfihpyyy/fc1w0/suIpX3kbMhAV\\n' +\n '2ESwged2/2zSx4pVnjp/493r4luhSqQYzru78TuPt9bhJIJ51WXunZW2SWkisSaf\\n' +\n 'USYUzVN9ezR/bjXTumSUQaLIouJt3OHLX49s+3NAbUyOI8EdvgBQWD68H1epsC0n\\n' +\n 'CI5s+pIktyOZ59c4DCDLQcXErQ+tNbDC++oct1ANd/q8p9URonYwGCGOBy7sbCYq\\n' +\n '9eVHh1Iy2M+SNXddVOGw5EuruvHoCIQyOz5Lz4zSuZA9dRbrfztNOpezCNYu6NKM\\n' +\n 'n+hzcvdiyxv77uNm8EaxAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBQSQG3TmMe6Sa3KufaPBa72v4QFDzAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'L/mOZfB3187xTmjOHMqN2G2oSKHBKiQLM9uv8+97qT+XR+TVsBT6b3yoPpMAGhHA\\n' +\n 'Pc7nxAF5gPpuzatx0OTLPcmYucFmfqT/1qA5WlgCnMNtczyNMH97lKFTNV7Njtek\\n' +\n 'jWEzAEQSyEWrkNpNlC4j6kMYyPzVXQeXUeZTgJ9FNnVZqmvfjip2N22tawMjrCn5\\n' +\n '7KN/zN65EwY2oO9XsaTwwWmBu3NrDdMbzJnbxoWcFWj4RBwanR1XjQOVNhDwmCOl\\n' +\n '/1Et13b8CPyj69PC8BOVU6cfTSx8WUVy0qvYOKHNY9Bqa5BDnIL3IVmUkeTlM1mt\\n' +\n 'enRpyBj+Bk9rh/ICdiRKmA==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBSjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzNDVaFw0y\\n' +\n 'MDAzMDUyMjAzNDVaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyB1cy13ZXN0LTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDE\\n' +\n 'Dhw+uw/ycaiIhhyu2pXFRimq0DlB8cNtIe8hdqndH8TV/TFrljNgR8QdzOgZtZ9C\\n' +\n 'zzQ2GRpInN/qJF6slEd6wO+6TaDBQkPY+07TXNt52POFUhdVkhJXHpE2BS7Xn6J7\\n' +\n '7RFAOeG1IZmc2DDt+sR1BgXzUqHslQGfFYNS0/MBO4P+ya6W7IhruB1qfa4HiYQS\\n' +\n 'dbe4MvGWnv0UzwAqdR7OF8+8/5c58YXZIXCO9riYF2ql6KNSL5cyDPcYK5VK0+Q9\\n' +\n 'VI6vuJHSMYcF7wLePw8jtBktqAFE/wbdZiIHhZvNyiNWPPNTGUmQbaJ+TzQEHDs5\\n' +\n '8en+/W7JKnPyBOkxxENbAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBS0nw/tFR9bCjgqWTPJkyy4oOD8bzAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'CXGAY3feAak6lHdqj6+YWjy6yyUnLK37bRxZDsyDVXrPRQaXRzPTzx79jvDwEb/H\\n' +\n 'Q/bdQ7zQRWqJcbivQlwhuPJ4kWPUZgSt3JUUuqkMsDzsvj/bwIjlrEFDOdHGh0mi\\n' +\n 'eVIngFEjUXjMh+5aHPEF9BlQnB8LfVtKj18e15UDTXFa+xJPFxUR7wDzCfo4WI1m\\n' +\n 'sUMG4q1FkGAZgsoyFPZfF8IVvgCuGdR8z30VWKklFxttlK0eGLlPAyIO0CQxPQlo\\n' +\n 'saNJrHf4tLOgZIWk+LpDhNd9Et5EzvJ3aURUsKY4pISPPF5WdvM9OE59bERwUErd\\n' +\n 'nuOuQWQeeadMceZnauRzJQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBSzANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTAyMDUyMjAzNTBaFw0y\\n' +\n 'MDAzMDUyMjAzNTBaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyB1cy13ZXN0LTIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDM\\n' +\n 'H58SR48U6jyERC1vYTnub34smf5EQVXyzaTmspWGWGzT31NLNZGSDFaa7yef9kdO\\n' +\n 'mzJsgebR5tXq6LdwlIoWkKYQ7ycUaadtVKVYdI40QcI3cHn0qLFlg2iBXmWp/B+i\\n' +\n 'Z34VuVlCh31Uj5WmhaBoz8t/GRqh1V/aCsf3Wc6jCezH3QfuCjBpzxdOOHN6Ie2v\\n' +\n 'xX09O5qmZTvMoRBAvPkxdaPg/Mi7fxueWTbEVk78kuFbF1jHYw8U1BLILIAhcqlq\\n' +\n 'x4u8nl73t3O3l/soNUcIwUDK0/S+Kfqhwn9yQyPlhb4Wy3pfnZLJdkyHldktnQav\\n' +\n '9TB9u7KH5Lk0aAYslMLxAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBT8roM4lRnlFHWMPWRz0zkwFZog1jAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQUFAAOCAQEA\\n' +\n 'JwrxwgwmPtcdaU7O7WDdYa4hprpOMamI49NDzmE0s10oGrqmLwZygcWU0jT+fJ+Y\\n' +\n 'pJe1w0CVfKaeLYNsOBVW3X4ZPmffYfWBheZiaiEflq/P6t7/Eg81gaKYnZ/x1Dfa\\n' +\n 'sUYkzPvCkXe9wEz5zdUTOCptDt89rBR9CstL9vE7WYUgiVVmBJffWbHQLtfjv6OF\\n' +\n 'NMb0QME981kGRzc2WhgP71YS2hHd1kXtsoYP1yTu4vThSKsoN4bkiHsaC1cRkLoy\\n' +\n '0fFA4wpB3WloMEvCDaUvvH1LZlBXTNlwi9KtcwD4tDxkkBt4tQczKLGpQ/nF/W9n\\n' +\n '8YDWk3IIc1sd0bkZqoau2Q==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBTDANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNTExMDYwMDA1NDZaFw0y\\n' +\n 'MDAzMDUwMDA1NDZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1ub3J0aGVhc3QtMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBAKSwd+RVUzTRH0FgnbwoTK8TMm/zMT4+2BvALpAUe6YXbkisg2goycWuuWLg\\n' +\n 'jOpFBB3GtyvXZnkqi7MkDWUmj1a2kf8l2oLyoaZ+Hm9x/sV+IJzOqPvj1XVUGjP6\\n' +\n 'yYYnPJmUYqvZeI7fEkIGdFkP2m4/sgsSGsFvpD9FK1bL1Kx2UDpYX0kHTtr18Zm/\\n' +\n '1oN6irqWALSmXMDydb8hE0FB2A1VFyeKE6PnoDj/Y5cPHwPPdEi6/3gkDkSaOG30\\n' +\n 'rWeQfL3pOcKqzbHaWTxMphd0DSL/quZ64Nr+Ly65Q5PRcTrtr55ekOUziuqXwk+o\\n' +\n '9QpACMwcJ7ROqOznZTqTzSFVXFECAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFM6Nox/QWbhzWVvzoJ/y0kGpNPK+\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQCTkWBqNvyRf3Y/W21DwFx3oT/AIWrHt0BdGZO34tavummXemTH9LZ/mqv9\\n' +\n 'aljt6ZuDtf5DEQjdsAwXMsyo03ffnP7doWm8iaF1+Mui77ot0TmTsP/deyGwukvJ\\n' +\n 'tkxX8bZjDh+EaNauWKr+CYnniNxCQLfFtXYJsfOdVBzK3xNL+Z3ucOQRhr2helWc\\n' +\n 'CDQgwfhP1+3pRVKqHvWCPC4R3fT7RZHuRmZ38kndv476GxRntejh+ePffif78bFI\\n' +\n '3rIZCPBGobrrUMycafSbyXteoGca/kA+/IqrAPlk0pWQ4aEL0yTWN2h2dnjoD7oX\\n' +\n 'byIuL/g9AGRh97+ssn7D6bDRPTbW\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/TCCAuWgAwIBAgIBTTANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNjA1MDMyMTI5MjJaFw0y\\n' +\n 'MDAzMDUyMTI5MjJaMIGQMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEhMB8GA1UEAwwYQW1hem9uIFJE\\n' +\n 'UyBhcC1zb3V0aC0xIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA\\n' +\n '06eWGLE0TeqL9kyWOLkS8q0fXO97z+xyBV3DKSB2lg2GkgBz3B98MkmkeB0SZy3G\\n' +\n 'Ce4uCpCPbFKiFEdiUclOlhZsrBuCeaimxLM3Ig2wuenElO/7TqgaYHYUbT3d+VQW\\n' +\n 'GUbLn5GRZJZe1OAClYdOWm7A1CKpuo+cVV1vxbY2nGUQSJPpVn2sT9gnwvjdE60U\\n' +\n 'JGYU/RLCTm8zmZBvlWaNIeKDnreIc4rKn6gUnJ2cQn1ryCVleEeyc3xjYDSrjgdn\\n' +\n 'FLYGcp9mphqVT0byeQMOk0c7RHpxrCSA0V5V6/CreFV2LteK50qcDQzDSM18vWP/\\n' +\n 'p09FoN8O7QrtOeZJzH/lmwIDAQABo2YwZDAOBgNVHQ8BAf8EBAMCAQYwEgYDVR0T\\n' +\n 'AQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU2i83QHuEl/d0keXF+69HNJph7cMwHwYD\\n' +\n 'VR0jBBgwFoAUTgLurD72FchM7Sz1BcGPnIQISYMwDQYJKoZIhvcNAQELBQADggEB\\n' +\n 'ACqnH2VjApoDqoSQOky52QBwsGaj+xWYHW5Gm7EvCqvQuhWMkeBuD6YJmMvNyA9G\\n' +\n 'I2lh6/o+sUk/RIsbYbxPRdhNPTOgDR9zsNRw6qxaHztq/CEC+mxDCLa3O1hHBaDV\\n' +\n 'BmB3nCZb93BvO0EQSEk7aytKq/f+sjyxqOcs385gintdHGU9uM7gTZHnU9vByJsm\\n' +\n '/TL07Miq67X0NlhIoo3jAk+xHaeKJdxdKATQp0448P5cY20q4b8aMk1twcNaMvCP\\n' +\n 'dG4M5doaoUA8OQ/0ukLLae/LBxLeTw04q1/a2SyFaVUX2Twbb1S3xVWwLA8vsyGr\\n' +\n 'igXx7B5GgP+IHb6DTjPJAi0=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBTjANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNjA4MTExOTU4NDVaFw0y\\n' +\n 'MDAzMDUxOTU4NDVaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyB1cy1lYXN0LTIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCp\\n' +\n 'WnnUX7wM0zzstccX+4iXKJa9GR0a2PpvB1paEX4QRCgfhEdQWDaSqyrWNgdVCKkt\\n' +\n '1aQkWu5j6VAC2XIG7kKoonm1ZdBVyBLqW5lXNywlaiU9yhJkwo8BR+/OqgE+PLt/\\n' +\n 'EO1mlN0PQudja/XkExCXTO29TG2j7F/O7hox6vTyHNHc0H88zS21uPuBE+jivViS\\n' +\n 'yzj/BkyoQ85hnkues3f9R6gCGdc+J51JbZnmgzUkvXjAEuKhAm9JksVOxcOKUYe5\\n' +\n 'ERhn0U9zjzpfbAITIkul97VVa5IxskFFTHIPJbvRKHJkiF6wTJww/tc9wm+fSCJ1\\n' +\n '+DbQTGZgkQ3bJrqRN29/AgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBSAHQzUYYZbepwKEMvGdHp8wzHnfDAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQsFAAOCAQEA\\n' +\n 'MbaEzSYZ+aZeTBxf8yi0ta8K4RdwEJsEmP6IhFFQHYUtva2Cynl4Q9tZg3RMsybT\\n' +\n '9mlnSQQlbN/wqIIXbkrcgFcHoXG9Odm/bDtUwwwDaiEhXVfeQom3G77QHOWMTCGK\\n' +\n 'qadwuh5msrb17JdXZoXr4PYHDKP7j0ONfAyFNER2+uecblHfRSpVq5UeF3L6ZJb8\\n' +\n 'fSw/GtAV6an+/0r+Qm+PiI2H5XuZ4GmRJYnGMhqWhBYrY7p3jtVnKcsh39wgfUnW\\n' +\n 'AvZEZG/yhFyAZW0Essa39LiL5VSq14Y1DOj0wgnhSY/9WHxaAo1HB1T9OeZknYbD\\n' +\n 'fl/EGSZ0TEvZkENrXcPlVA==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/zCCAuegAwIBAgIBTzANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNjA5MTUwMDEwMTFaFw0y\\n' +\n 'MDAzMDUwMDEwMTFaMIGSMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEjMCEGA1UEAwwaQW1hem9uIFJE\\n' +\n 'UyBjYS1jZW50cmFsLTEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\\n' +\n 'AQCZYI/iQ6DrS3ny3t1EwX1wAD+3LMgh7Fd01EW5LIuaK2kYIIQpsVKhxLCit/V5\\n' +\n 'AGc/1qiJS1Qz9ODLTh0Na6bZW6EakRzuHJLe32KJtoFYPC7Z09UqzXrpA/XL+1hM\\n' +\n 'P0ZmCWsU7Nn/EmvfBp9zX3dZp6P6ATrvDuYaVFr+SA7aT3FXpBroqBS1fyzUPs+W\\n' +\n 'c6zTR6+yc4zkHX0XQxC5RH6xjgpeRkoOajA/sNo7AQF7KlWmKHbdVF44cvvAhRKZ\\n' +\n 'XaoVs/C4GjkaAEPTCbopYdhzg+KLx9eB2BQnYLRrIOQZtRfbQI2Nbj7p3VsRuOW1\\n' +\n 'tlcks2w1Gb0YC6w6SuIMFkl1AgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNV\\n' +\n 'HRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBToYWxE1lawl6Ks6NsvpbHQ3GKEtzAf\\n' +\n 'BgNVHSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQsFAAOC\\n' +\n 'AQEAG/8tQ0ooi3hoQpa5EJz0/E5VYBsAz3YxA2HoIonn0jJyG16bzB4yZt4vNQMA\\n' +\n 'KsNlQ1uwDWYL1nz63axieUUFIxqxl1KmwfhsmLgZ0Hd2mnTPIl2Hw3uj5+wdgGBg\\n' +\n 'agnAZ0bajsBYgD2VGQbqjdk2Qn7Fjy3LEWIvGZx4KyZ99OJ2QxB7JOPdauURAtWA\\n' +\n 'DKYkP4LLJxtj07DSzG8kuRWb9B47uqUD+eKDIyjfjbnzGtd9HqqzYFau7EX3HVD9\\n' +\n '9Qhnjl7bTZ6YfAEZ3nH2t3Vc0z76XfGh47rd0pNRhMV+xpok75asKf/lNh5mcUrr\\n' +\n 'VKwflyMkQpSbDCmcdJ90N2xEXQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBUDANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNjEwMTAxNzQ0NDJaFw0y\\n' +\n 'MDAzMDUxNzQ0NDJaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyBldS13ZXN0LTIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDO\\n' +\n 'cttLJfubB4XMMIGWNfJISkIdCMGJyOzLiMJaiWB5GYoXKhEl7YGotpy0qklwW3BQ\\n' +\n 'a0fmVdcCLX+dIuVQ9iFK+ZcK7zwm7HtdDTCHOCKeOh2IcnU4c/VIokFi6Gn8udM6\\n' +\n 'N/Zi5M5OGpVwLVALQU7Yctsn3c95el6MdVx6mJiIPVu7tCVZn88Z2koBQ2gq9P4O\\n' +\n 'Sb249SHFqOb03lYDsaqy1NDsznEOhaRBw7DPJFpvmw1lA3/Y6qrExRI06H2VYR2i\\n' +\n '7qxwDV50N58fs10n7Ye1IOxTVJsgEA7X6EkRRXqYaM39Z76R894548WHfwXWjUsi\\n' +\n 'MEX0RS0/t1GmnUQjvevDAgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBQBxmcuRSxERYCtNnSr5xNfySokHjAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQsFAAOCAQEA\\n' +\n 'UyCUQjsF3nUAABjfEZmpksTuUo07aT3KGYt+EMMFdejnBQ0+2lJJFGtT+CDAk1SD\\n' +\n 'RSgfEBon5vvKEtlnTf9a3pv8WXOAkhfxnryr9FH6NiB8obISHNQNPHn0ljT2/T+I\\n' +\n 'Y6ytfRvKHa0cu3V0NXbJm2B4KEOt4QCDiFxUIX9z6eB4Kditwu05OgQh6KcogOiP\\n' +\n 'JesWxBMXXGoDC1rIYTFO7szwDyOHlCcVXJDNsTJhc32oDWYdeIbW7o/5I+aQsrXZ\\n' +\n 'C96HykZcgWzz6sElrQxUaT3IoMw/5nmw4uWKKnZnxgI9bY4fpQwMeBZ96iHfFxvH\\n' +\n 'mqfEEuC7uUoPofXdBp2ObQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/DCCAuSgAwIBAgIBUTANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNzA4MjUyMTM5MjZaFw0y\\n' +\n 'MDAzMDUyMTM5MjZaMIGPMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJE\\n' +\n 'UyBldS13ZXN0LTMgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC+\\n' +\n 'xmlEC/3a4cJH+UPwXCE02lC7Zq5NHd0dn6peMeLN8agb6jW4VfSY0NydjRj2DJZ8\\n' +\n 'K7wV6sub5NUGT1NuFmvSmdbNR2T59KX0p2dVvxmXHHtIpQ9Y8Aq3ZfhmC5q5Bqgw\\n' +\n 'tMA1xayDi7HmoPX3R8kk9ktAZQf6lDeksCvok8idjTu9tiSpDiMwds5BjMsWfyjZ\\n' +\n 'd13PTGGNHYVdP692BSyXzSP1Vj84nJKnciW8tAqwIiadreJt5oXyrCXi8ekUMs80\\n' +\n 'cUTuGm3aA3Q7PB5ljJMPqz0eVddaiIvmTJ9O3Ez3Du/HpImyMzXjkFaf+oNXf/Hx\\n' +\n '/EW5jCRR6vEiXJcDRDS7AgMBAAGjZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMB\\n' +\n 'Af8ECDAGAQH/AgEAMB0GA1UdDgQWBBRZ9mRtS5fHk3ZKhG20Oack4cAqMTAfBgNV\\n' +\n 'HSMEGDAWgBROAu6sPvYVyEztLPUFwY+chAhJgzANBgkqhkiG9w0BAQsFAAOCAQEA\\n' +\n 'F/u/9L6ExQwD73F/bhCw7PWcwwqsK1mypIdrjdIsu0JSgwWwGCXmrIspA3n3Dqxq\\n' +\n 'sMhAJD88s9Em7337t+naar2VyLO63MGwjj+vA4mtvQRKq8ScIpiEc7xN6g8HUMsd\\n' +\n 'gPG9lBGfNjuAZsrGJflrko4HyuSM7zHExMjXLH+CXcv/m3lWOZwnIvlVMa4x0Tz0\\n' +\n 'A4fklaawryngzeEjuW6zOiYCzjZtPlP8Fw0SpzppJ8VpQfrZ751RDo4yudmPqoPK\\n' +\n '5EUe36L8U+oYBXnC5TlYs9bpVv9o5wJQI5qA9oQE2eFWxF1E0AyZ4V5sgGUBStaX\\n' +\n 'BjDDWul0wSo7rt1Tq7XpnA==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEATCCAumgAwIBAgIBTjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNzEyMDEwMDU1NDJaFw0y\\n' +\n 'MDAzMDUwMDU1NDJaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJE\\n' +\n 'UyBhcC1ub3J0aGVhc3QtMyBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\\n' +\n 'ggEBAMZtQNnm/XT19mTa10ftHLzg5UhajoI65JHv4TQNdGXdsv+CQdGYU49BJ9Eu\\n' +\n '3bYgiEtTzR2lQe9zGMvtuJobLhOWuavzp7IixoIQcHkFHN6wJ1CvqrxgvJfBq6Hy\\n' +\n 'EuCDCiU+PPDLUNA6XM6Qx3IpHd1wrJkjRB80dhmMSpxmRmx849uFafhN+P1QybsM\\n' +\n 'TI0o48VON2+vj+mNuQTyLMMP8D4odSQHjaoG+zyJfJGZeAyqQyoOUOFEyQaHC3TT\\n' +\n '3IDSNCQlpxb9LerbCoKu79WFBBq3CS5cYpg8/fsnV2CniRBFFUumBt5z4dhw9RJU\\n' +\n 'qlUXXO1ZyzpGd+c5v6FtrfXtnIUCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEGMBIG\\n' +\n 'A1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFETv7ELNplYy/xTeIOInl6nzeiHg\\n' +\n 'MB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEBBQUA\\n' +\n 'A4IBAQCpKxOQcd0tEKb3OtsOY8q/MPwTyustGk2Rt7t9G68idADp8IytB7M0SDRo\\n' +\n 'wWZqynEq7orQVKdVOanhEWksNDzGp0+FPAf/KpVvdYCd7ru3+iI+V4ZEp2JFdjuZ\\n' +\n 'Zz0PIjS6AgsZqE5Ri1J+NmfmjGZCPhsHnGZiBaenX6K5VRwwwmLN6xtoqrrfR5zL\\n' +\n 'QfBeeZNJG6KiM3R/DxJ5rAa6Fz+acrhJ60L7HprhB7SFtj1RCijau3+ZwiGmUOMr\\n' +\n 'yKlMv+VgmzSw7o4Hbxy1WVrA6zQsTHHSGf+vkQn2PHvnFMUEu/ZLbTDYFNmTLK91\\n' +\n 'K6o4nMsEvhBKgo4z7H1EqqxXhvN2\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBDCCAuygAwIBAgIBTTANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xNzEyMDYyMjQyMjdaFw0y\\n' +\n 'MDAzMDQyMjQyMjdaMIGXMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEoMCYGA1UEAwwfQW1hem9uIFJE\\n' +\n 'UyBwcmV2aWV3LXVzLWVhc3QtMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC\\n' +\n 'AQoCggEBAMw0E8k8URanS0c/i1S7wzFf5+XC9H2bm+4pENdElGP5s9rVCybrzJaw\\n' +\n '6zZgVLpOFnS9mJ+sDHIMUexPjj0X4+r7wZ4+hPfy7Rmrgbt23IQwr+PIBxsKAVjj\\n' +\n 'iaQ3bSm5WQ79an5elfQqEDdZ13ckUcLBJDA8bUDthI8m7gnteGtx0M1D0VS5PDs9\\n' +\n 'cf96QlBia9Lx3VcNo3cc0PzP30E4j3h/Ywlb0jXUgB6oVlTxK70BjD3kZa+2xlea\\n' +\n 'vKmm4NqGVhPY7BWd4XNdbSYsPDeZ9HxHNWXZxoHcQ7vSU8RKYVPtoBK/zIp3eWOi\\n' +\n 'gzZlm5vYPvlkYh2pshttPPVyhZqlEZ8CAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEG\\n' +\n 'MBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFI93K+FRhste6w3MiD+IK3Tc\\n' +\n 'g/BsMB8GA1UdIwQYMBaAFE4C7qw+9hXITO0s9QXBj5yECEmDMA0GCSqGSIb3DQEB\\n' +\n 'BQUAA4IBAQAs4RsC8MJVOvrlRi5sgKC9LJ4BvSrrbR5V8CdIEwlPqrVOSsU5t7Py\\n' +\n 'j8CHoPUY/ya1azlBSO62BqdZxipFuAR06NdxNG2Gy0fGl71N2udxokwEPW+IEZ81\\n' +\n 'G6JeX8HNFjnna8ehimz1VJDDW7qborhg3dCAgEWkgv5PDR9/zoUu6bbmHPV77zbx\\n' +\n 'Gq7Sybz5OiagC7Nj9N1WgjNXUEmlfY2DHXnJmIVgUGEVrBgu5tGcIU/bQCRznH1N\\n' +\n 'JsBH0SalneCbSzMBhQdnzL+L5KOERibWAZvS6ebmomTBwa03kgo/T0DfEccgobTs\\n' +\n 'rV6T9/8Vg9T18vEeqURL+LOGs7+lIKmN\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIID/TCCAuWgAwIBAgIBUjANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCVVMx\\n' +\n 'EzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'GzAZBgNVBAMMEkFtYXpvbiBSRFMgUm9vdCBDQTAeFw0xODA5MjgxNzM0NTJaFw0y\\n' +\n 'MDAzMDUxNzM0NTJaMIGQMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3Rv\\n' +\n 'bjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNl\\n' +\n 'cywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEhMB8GA1UEAwwYQW1hem9uIFJE\\n' +\n 'UyBldS1ub3J0aC0xIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA\\n' +\n 'wvHfpoixHNy1jvcq/WNhXDHlsFVbEOX7mp01YQeK0wWqlpFvjs2HFJ1sRnnmyhdT\\n' +\n 'sv4VQuXnQw2V2iFAO2HveDi8pcJ+eIXY+wloSVBytgYLTMcNpn5LmqIeyGO+Lr6p\\n' +\n 'KUr78I4uE0mnabxyILA96CYrYtgwpLCtpEXSdSJPwOSK9nX9++molxLcJ5v4fiPS\\n' +\n 'j46PETsbFoFdXXwYCdiJKpzO4zUAkKzzvzbF7cXg9R4noJuytjEKbluxugDHdnwl\\n' +\n 'SctGZ3moju2I0OpPbJKUI3wHsUMtY5v15X74MOED5lbtaW5+/6JIERggve0b23Ni\\n' +\n '4nlYSt0Bb3z3Zwc83twCUwIDAQABo2YwZDAOBgNVHQ8BAf8EBAMCAQYwEgYDVR0T\\n' +\n 'AQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU4stOy1OAFRyvZCSKNfCiPRD+rPowHwYD\\n' +\n 'VR0jBBgwFoAUTgLurD72FchM7Sz1BcGPnIQISYMwDQYJKoZIhvcNAQELBQADggEB\\n' +\n 'AHpRIlKh1fqbMHl0+VnJ/52XQy1F5gM2hnw3lYkOLsDyzj9W4V6D1v2EDgYW+ZVH\\n' +\n '0wWqo8m0jS6CDn14W2HqNlyXyHpJK3eh3088zxvJgKqzKS4ghNzafN7axwYIwRN6\\n' +\n '9rrhRWy9MaFHaSPKtgiuTxw9fOekqyJdO+OYpBVEp7KEEyEG9/W5xZcU64zGb6UT\\n' +\n '8/g4+5t+HlT0nYBMvt8HW7w2XbFBetfKKK4WaoPKloOMN+RLO/JgJ6pVWvxM8nhC\\n' +\n 'PbVtr43OI1sQAXYk0an7aUDgXT98vGwovWNHI6lFCMGRG+WXhauLtKRsIr4hR1LV\\n' +\n 'fES7Q9MWPzPYHQoKELF9Jhk=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwgZQxCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSUwIwYDVQQDDBxBbWF6b24gUkRTIGFwLWVhc3QtMSBSb290IENBMB4XDTE5MDIx\\n' +\n 'NzAyNDcwMFoXDTIyMDYwMTEyMDAwMFowgY8xCzAJBgNVBAYTAlVTMRMwEQYDVQQI\\n' +\n 'DApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMSIwIAYDVQQKDBlBbWF6b24g\\n' +\n 'V2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRTMSAwHgYDVQQD\\n' +\n 'DBdBbWF6b24gUkRTIGFwLWVhc3QtMSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAOcJAUofyJuBuPr5ISHi/Ha5ed8h3eGdzn4MBp6rytPOg9NVGRQs\\n' +\n 'O93fNGCIKsUT6gPuk+1f1ncMTV8Y0Fdf4aqGWme+Khm3ZOP3V1IiGnVq0U2xiOmn\\n' +\n 'SQ4Q7LoeQC4lC6zpoCHVJyDjZ4pAknQQfsXb77Togdt/tK5ahev0D+Q3gCwAoBoO\\n' +\n 'DHKJ6t820qPi63AeGbJrsfNjLKiXlFPDUj4BGir4dUzjEeH7/hx37na1XG/3EcxP\\n' +\n '399cT5k7sY/CR9kctMlUyEEUNQOmhi/ly1Lgtihm3QfjL6K9aGLFNwX35Bkh9aL2\\n' +\n 'F058u+n8DP/dPeKUAcJKiQZUmzuen5n57x8CAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFFlqgF4FQlb9yP6c+Q3E\\n' +\n 'O3tXv+zOMB8GA1UdIwQYMBaAFK9T6sY/PBZVbnHcNcQXf58P4OuPMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQDeXiS3v1z4jWAo1UvVyKDeHjtrtEH1Rida1eOXauFuEQa5tuOk\\n' +\n 'E53Os4haZCW4mOlKjigWs4LN+uLIAe1aFXGo92nGIqyJISHJ1L+bopx/JmIbHMCZ\\n' +\n '0lTNJfR12yBma5VQy7vzeFku/SisKwX0Lov1oHD4MVhJoHbUJYkmAjxorcIHORvh\\n' +\n 'I3Vj5XrgDWtLDPL8/Id/roul/L+WX5ir+PGScKBfQIIN2lWdZoqdsx8YWqhm/ikL\\n' +\n 'C6qNieSwcvWL7C03ri0DefTQMY54r5wP33QU5hJ71JoaZI3YTeT0Nf+NRL4hM++w\\n' +\n 'Q0veeNzBQXg1f/JxfeA39IDIX1kiCf71tGlT\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEEDCCAvigAwIBAgIJAJF3HxEqKM4lMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJEUyBhcC1lYXN0LTEgUm9vdCBDQTAe\\n' +\n 'Fw0xOTAyMTcwMjQ2MTFaFw0yNDAyMTYwMjQ2MTFaMIGUMQswCQYDVQQGEwJVUzEQ\\n' +\n 'MA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UECgwZ\\n' +\n 'QW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEl\\n' +\n 'MCMGA1UEAwwcQW1hem9uIFJEUyBhcC1lYXN0LTEgUm9vdCBDQTCCASIwDQYJKoZI\\n' +\n 'hvcNAQEBBQADggEPADCCAQoCggEBAOCVr1Yj5IW4XWa9QOLGJDSz4pqIM6BAbqQp\\n' +\n 'gYvzIO4Lv8c8dEnuuuCY8M/zOrJ1iQJ3cDiKGa32HVBVcH+nUdXzw4Jq5jw0hsb6\\n' +\n '/WW2RD2aUe4jCkRD5wNzmeHM4gTgtMZnXNVHpELgKR4wVhSHEfWFTiMsZi35y8mj\\n' +\n 'PL98Mz/m/nMnB/59EjMvcJMrsUljHO6B9BMEcvNkwvre9xza0BQWKyiVRcbOpoj1\\n' +\n 'w4BPtYYZ+dW2QKw9AmYXwAmCLeATsxrHIJ/IbzS7obxv2QN2Eh4pJ3ghRCFv1XM9\\n' +\n 'XVkm13oiCjj7jsxAwF7o+VggPl/GG+/Gwk+TLuaTFNAtROpPxL8CAwEAAaNjMGEw\\n' +\n 'DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFK9T6sY/\\n' +\n 'PBZVbnHcNcQXf58P4OuPMB8GA1UdIwQYMBaAFK9T6sY/PBZVbnHcNcQXf58P4OuP\\n' +\n 'MA0GCSqGSIb3DQEBCwUAA4IBAQBBY+KATaT7ndYT3Ky0VWaiwNfyl1u3aDxr+MKP\\n' +\n 'VeDhtOhlob5u0E+edOXUvEXd4A+ntS+U0HmwvtMXtQbQ2EJbsNRqZnS8KG9YB2Yc\\n' +\n 'Q99auphW3wMjwHRtflLO5h14aa9SspqJJgcM1R7Z3pAYeq6bpBDxZSGrYtWI64q4\\n' +\n 'h4i67qWAGDFcXSTW1kJ00GMlBCIGTeYiu8LYutdsDWzYKkeezJRjx9VR4w7A7e1G\\n' +\n 'WmY4aUg/8aPxCioY2zEQKNl55Ghg6Dwy+6BxaV6RlV9r9EaSCai11p1bgS568WQn\\n' +\n '4WNQK36EGe37l2SOpDB6STrq57/rjREvmq803Ylg/Gf6qqzK\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECTCCAvGgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwgZUxCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSYwJAYDVQQDDB1BbWF6b24gUkRTIG1lLXNvdXRoLTEgUm9vdCBDQTAeFw0xOTA1\\n' +\n 'MTAyMTU4NDNaFw0yNTA2MDExMjAwMDBaMIGQMQswCQYDVQQGEwJVUzETMBEGA1UE\\n' +\n 'CAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9u\\n' +\n 'IFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEhMB8GA1UE\\n' +\n 'AwwYQW1hem9uIFJEUyBtZS1zb3V0aC0xIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC\\n' +\n 'AQ8AMIIBCgKCAQEAudOYPZH+ihJAo6hNYMB5izPVBe3TYhnZm8+X3IoaaYiKtsp1\\n' +\n 'JJhkTT0CEejYIQ58Fh4QrMUyWvU8qsdK3diNyQRoYLbctsBPgxBR1u07eUJDv38/\\n' +\n 'C1JlqgHmMnMi4y68Iy7ymv50QgAMuaBqgEBRI1R6Lfbyrb2YvH5txjJyTVMwuCfd\\n' +\n 'YPAtZVouRz0JxmnfsHyxjE+So56uOKTDuw++Ho4HhZ7Qveej7XB8b+PIPuroknd3\\n' +\n 'FQB5RVbXRvt5ZcVD4F2fbEdBniF7FAF4dEiofVCQGQ2nynT7dZdEIPfPdH3n7ZmE\\n' +\n 'lAOmwHQ6G83OsiHRBLnbp+QZRgOsjkHJxT20bQIDAQABo2YwZDAOBgNVHQ8BAf8E\\n' +\n 'BAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUOEVDM7VomRH4HVdA\\n' +\n 'QvIMNq2tXOcwHwYDVR0jBBgwFoAU54cfDjgwBx4ycBH8+/r8WXdaiqYwDQYJKoZI\\n' +\n 'hvcNAQELBQADggEBAHhvMssj+Th8IpNePU6RH0BiL6o9c437R3Q4IEJeFdYL+nZz\\n' +\n 'PW/rELDPvLRUNMfKM+KzduLZ+l29HahxefejYPXtvXBlq/E/9czFDD4fWXg+zVou\\n' +\n 'uDXhyrV4kNmP4S0eqsAP/jQHPOZAMFA4yVwO9hlqmePhyDnszCh9c1PfJSBh49+b\\n' +\n '4w7i/L3VBOMt8j3EKYvqz0gVfpeqhJwL4Hey8UbVfJRFJMJzfNHpePqtDRAY7yjV\\n' +\n 'PYquRaV2ab/E+/7VFkWMM4tazYz/qsYA2jSH+4xDHvYk8LnsbcrF9iuidQmEc5sb\\n' +\n 'FgcWaSKG4DJjcI5k7AJLWcXyTDt21Ci43LE+I9Q=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEEjCCAvqgAwIBAgIJANew34ehz5l8MA0GCSqGSIb3DQEBCwUAMIGVMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzEmMCQGA1UEAwwdQW1hem9uIFJEUyBtZS1zb3V0aC0xIFJvb3QgQ0Ew\\n' +\n 'HhcNMTkwNTEwMjE0ODI3WhcNMjQwNTA4MjE0ODI3WjCBlTELMAkGA1UEBhMCVVMx\\n' +\n 'EDAOBgNVBAcMB1NlYXR0bGUxEzARBgNVBAgMCldhc2hpbmd0b24xIjAgBgNVBAoM\\n' +\n 'GUFtYXpvbiBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMx\\n' +\n 'JjAkBgNVBAMMHUFtYXpvbiBSRFMgbWUtc291dGgtMSBSb290IENBMIIBIjANBgkq\\n' +\n 'hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp7BYV88MukcY+rq0r79+C8UzkT30fEfT\\n' +\n 'aPXbx1d6M7uheGN4FMaoYmL+JE1NZPaMRIPTHhFtLSdPccInvenRDIatcXX+jgOk\\n' +\n 'UA6lnHQ98pwN0pfDUyz/Vph4jBR9LcVkBbe0zdoKKp+HGbMPRU0N2yNrog9gM5O8\\n' +\n 'gkU/3O2csJ/OFQNnj4c2NQloGMUpEmedwJMOyQQfcUyt9CvZDfIPNnheUS29jGSw\\n' +\n 'ERpJe/AENu8Pxyc72jaXQuD+FEi2Ck6lBkSlWYQFhTottAeGvVFNCzKszCntrtqd\\n' +\n 'rdYUwurYsLTXDHv9nW2hfDUQa0mhXf9gNDOBIVAZugR9NqNRNyYLHQIDAQABo2Mw\\n' +\n 'YTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU54cf\\n' +\n 'DjgwBx4ycBH8+/r8WXdaiqYwHwYDVR0jBBgwFoAU54cfDjgwBx4ycBH8+/r8WXda\\n' +\n 'iqYwDQYJKoZIhvcNAQELBQADggEBAIIMTSPx/dR7jlcxggr+O6OyY49Rlap2laKA\\n' +\n 'eC/XI4ySP3vQkIFlP822U9Kh8a9s46eR0uiwV4AGLabcu0iKYfXjPkIprVCqeXV7\\n' +\n 'ny9oDtrbflyj7NcGdZLvuzSwgl9SYTJp7PVCZtZutsPYlbJrBPHwFABvAkMvRtDB\\n' +\n 'hitIg4AESDGPoCl94sYHpfDfjpUDMSrAMDUyO6DyBdZH5ryRMAs3lGtsmkkNUrso\\n' +\n 'aTW6R05681Z0mvkRdb+cdXtKOSuDZPoe2wJJIaz3IlNQNSrB5TImMYgmt6iAsFhv\\n' +\n '3vfTSTKrZDNTJn4ybG6pq1zWExoXsktZPylJly6R3RBwV6nwqBM=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEETCCAvmgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwgZQxCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSUwIwYDVQQDDBxBbWF6b24gUkRTIEJldGEgUm9vdCAyMDE5IENBMB4XDTE5MDgy\\n' +\n 'MDE3MTAwN1oXDTI0MDgxOTE3MzgyNlowgZkxCzAJBgNVBAYTAlVTMRMwEQYDVQQI\\n' +\n 'DApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMSIwIAYDVQQKDBlBbWF6b24g\\n' +\n 'V2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRTMSowKAYDVQQD\\n' +\n 'DCFBbWF6b24gUkRTIEJldGEgdXMtZWFzdC0xIDIwMTkgQ0EwggEiMA0GCSqGSIb3\\n' +\n 'DQEBAQUAA4IBDwAwggEKAoIBAQDTNCOlotQcLP8TP82U2+nk0bExVuuMVOgFeVMx\\n' +\n 'vbUHZQeIj9ikjk+jm6eTDnnkhoZcmJiJgRy+5Jt69QcRbb3y3SAU7VoHgtraVbxF\\n' +\n 'QDh7JEHI9tqEEVOA5OvRrDRcyeEYBoTDgh76ROco2lR+/9uCvGtHVrMCtG7BP7ZB\\n' +\n 'sSVNAr1IIRZZqKLv2skKT/7mzZR2ivcw9UeBBTUf8xsfiYVBvMGoEsXEycjYdf6w\\n' +\n 'WV+7XS7teNOc9UgsFNN+9AhIBc1jvee5E//72/4F8pAttAg/+mmPUyIKtekNJ4gj\\n' +\n 'OAR2VAzGx1ybzWPwIgOudZFHXFduxvq4f1hIRPH0KbQ/gkRrAgMBAAGjZjBkMA4G\\n' +\n 'A1UdDwEB/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBTkvpCD\\n' +\n '6C43rar9TtJoXr7q8dkrrjAfBgNVHSMEGDAWgBStoQwVpbGx87fxB3dEGDqKKnBT\\n' +\n '4TANBgkqhkiG9w0BAQsFAAOCAQEAJd9fOSkwB3uVdsS+puj6gCER8jqmhd3g/J5V\\n' +\n 'Zjk9cKS8H0e8pq/tMxeJ8kpurPAzUk5RkCspGt2l0BSwmf3ahr8aJRviMX6AuW3/\\n' +\n 'g8aKplTvq/WMNGKLXONa3Sq8591J+ce8gtOX/1rDKmFI4wQ/gUzOSYiT991m7QKS\\n' +\n 'Fr6HMgFuz7RNJbb3Fy5cnurh8eYWA7mMv7laiLwTNsaro5qsqErD5uXuot6o9beT\\n' +\n 'a+GiKinEur35tNxAr47ax4IRubuIzyfCrezjfKc5raVV2NURJDyKP0m0CCaffAxE\\n' +\n 'qn2dNfYc3v1D8ypg3XjHlOzRo32RB04o8ALHMD9LSwsYDLpMag==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEEDCCAvigAwIBAgIJAKFMXyltvuRdMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzElMCMGA1UEAwwcQW1hem9uIFJEUyBCZXRhIFJvb3QgMjAxOSBDQTAe\\n' +\n 'Fw0xOTA4MTkxNzM4MjZaFw0yNDA4MTkxNzM4MjZaMIGUMQswCQYDVQQGEwJVUzEQ\\n' +\n 'MA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UECgwZ\\n' +\n 'QW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEl\\n' +\n 'MCMGA1UEAwwcQW1hem9uIFJEUyBCZXRhIFJvb3QgMjAxOSBDQTCCASIwDQYJKoZI\\n' +\n 'hvcNAQEBBQADggEPADCCAQoCggEBAMkZdnIH9ndatGAcFo+DppGJ1HUt4x+zeO+0\\n' +\n 'ZZ29m0sfGetVulmTlv2d5b66e+QXZFWpcPQMouSxxYTW08TbrQiZngKr40JNXftA\\n' +\n 'atvzBqIImD4II0ZX5UEVj2h98qe/ypW5xaDN7fEa5e8FkYB1TEemPaWIbNXqchcL\\n' +\n 'tV7IJPr3Cd7Z5gZJlmujIVDPpMuSiNaal9/6nT9oqN+JSM1fx5SzrU5ssg1Vp1vv\\n' +\n '5Xab64uOg7wCJRB9R2GC9XD04odX6VcxUAGrZo6LR64ZSifupo3l+R5sVOc5i8NH\\n' +\n 'skdboTzU9H7+oSdqoAyhIU717PcqeDum23DYlPE2nGBWckE+eT8CAwEAAaNjMGEw\\n' +\n 'DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFK2hDBWl\\n' +\n 'sbHzt/EHd0QYOooqcFPhMB8GA1UdIwQYMBaAFK2hDBWlsbHzt/EHd0QYOooqcFPh\\n' +\n 'MA0GCSqGSIb3DQEBCwUAA4IBAQAO/718k8EnOqJDx6wweUscGTGL/QdKXUzTVRAx\\n' +\n 'JUsjNUv49mH2HQVEW7oxszfH6cPCaupNAddMhQc4C/af6GHX8HnqfPDk27/yBQI+\\n' +\n 'yBBvIanGgxv9c9wBbmcIaCEWJcsLp3HzXSYHmjiqkViXwCpYfkoV3Ns2m8bp+KCO\\n' +\n 'y9XmcCKRaXkt237qmoxoh2sGmBHk2UlQtOsMC0aUQ4d7teAJG0q6pbyZEiPyKZY1\\n' +\n 'XR/UVxMJL0Q4iVpcRS1kaNCMfqS2smbLJeNdsan8pkw1dvPhcaVTb7CvjhJtjztF\\n' +\n 'YfDzAI5794qMlWxwilKMmUvDlPPOTen8NNHkLwWvyFCH7Doh\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEFzCCAv+gAwIBAgICFSUwDQYJKoZIhvcNAQELBQAwgZcxCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSgwJgYDVQQDDB9BbWF6b24gUkRTIFByZXZpZXcgUm9vdCAyMDE5IENBMB4XDTE5\\n' +\n 'MDgyMTIyMzk0N1oXDTI0MDgyMTIyMjk0OVowgZwxCzAJBgNVBAYTAlVTMRMwEQYD\\n' +\n 'VQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMSIwIAYDVQQKDBlBbWF6\\n' +\n 'b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRTMS0wKwYD\\n' +\n 'VQQDDCRBbWF6b24gUkRTIFByZXZpZXcgdXMtZWFzdC0yIDIwMTkgQ0EwggEiMA0G\\n' +\n 'CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD0dB/U7qRnSf05wOi7m10Pa2uPMTJv\\n' +\n 'r6U/3Y17a5prq5Zr4++CnSUYarG51YuIf355dKs+7Lpzs782PIwCmLpzAHKWzix6\\n' +\n 'pOaTQ+WZ0+vUMTxyqgqWbsBgSCyP7pVBiyqnmLC/L4az9XnscrbAX4pNaoJxsuQe\\n' +\n 'mzBo6yofjQaAzCX69DuqxFkVTRQnVy7LCFkVaZtjNAftnAHJjVgQw7lIhdGZp9q9\\n' +\n 'IafRt2gteihYfpn+EAQ/t/E4MnhrYs4CPLfS7BaYXBycEKC5Muj1l4GijNNQ0Efo\\n' +\n 'xG8LSZz7SNgUvfVwiNTaqfLP3AtEAWiqxyMyh3VO+1HpCjT7uNBFtmF3AgMBAAGj\\n' +\n 'ZjBkMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQW\\n' +\n 'BBQtinkdrj+0B2+qdXngV2tgHnPIujAfBgNVHSMEGDAWgBRp0xqULkNh/w2ZVzEI\\n' +\n 'o2RIY7O03TANBgkqhkiG9w0BAQsFAAOCAQEAtJdqbCxDeMc8VN1/RzCabw9BIL/z\\n' +\n '73Auh8eFTww/sup26yn8NWUkfbckeDYr1BrXa+rPyLfHpg06kwR8rBKyrs5mHwJx\\n' +\n 'bvOzXD/5WTdgreB+2Fb7mXNvWhenYuji1MF+q1R2DXV3I05zWHteKX6Dajmx+Uuq\\n' +\n 'Yq78oaCBSV48hMxWlp8fm40ANCL1+gzQ122xweMFN09FmNYFhwuW+Ao+Vv90ZfQG\\n' +\n 'PYwTvN4n/gegw2TYcifGZC2PNX74q3DH03DXe5fvNgRW5plgz/7f+9mS+YHd5qa9\\n' +\n 'tYTPUvoRbi169ou6jicsMKUKPORHWhiTpSCWR1FMMIbsAcsyrvtIsuaGCQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEFjCCAv6gAwIBAgIJAMzYZJ+R9NBVMA0GCSqGSIb3DQEBCwUAMIGXMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzEoMCYGA1UEAwwfQW1hem9uIFJEUyBQcmV2aWV3IFJvb3QgMjAxOSBD\\n' +\n 'QTAeFw0xOTA4MjEyMjI5NDlaFw0yNDA4MjEyMjI5NDlaMIGXMQswCQYDVQQGEwJV\\n' +\n 'UzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UE\\n' +\n 'CgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJE\\n' +\n 'UzEoMCYGA1UEAwwfQW1hem9uIFJEUyBQcmV2aWV3IFJvb3QgMjAxOSBDQTCCASIw\\n' +\n 'DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM7kkS6vjgKKQTPynC2NjdN5aPPV\\n' +\n 'O71G0JJS/2ARVBVJd93JLiGovVJilfWYfwZCs4gTRSSjrUD4D4HyqCd6A+eEEtJq\\n' +\n 'M0DEC7i0dC+9WNTsPszuB206Jy2IUmxZMIKJAA1NHSbIMjB+b6/JhbSUi7nKdbR/\\n' +\n 'brj83bF+RoSA+ogrgX7mQbxhmFcoZN9OGaJgYKsKWUt5Wqv627KkGodUK8mDepgD\\n' +\n 'S3ZfoRQRx3iceETpcmHJvaIge6+vyDX3d9Z22jmvQ4AKv3py2CmU2UwuhOltFDwB\\n' +\n '0ddtb39vgwrJxaGfiMRHpEP1DfNLWHAnA69/pgZPwIggidS+iBPUhgucMp8CAwEA\\n' +\n 'AaNjMGEwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE\\n' +\n 'FGnTGpQuQ2H/DZlXMQijZEhjs7TdMB8GA1UdIwQYMBaAFGnTGpQuQ2H/DZlXMQij\\n' +\n 'ZEhjs7TdMA0GCSqGSIb3DQEBCwUAA4IBAQC3xz1vQvcXAfpcZlngiRWeqU8zQAMQ\\n' +\n 'LZPCFNv7PVk4pmqX+ZiIRo4f9Zy7TrOVcboCnqmP/b/mNq0gVF4O+88jwXJZD+f8\\n' +\n '/RnABMZcnGU+vK0YmxsAtYU6TIb1uhRFmbF8K80HHbj9vSjBGIQdPCbvmR2zY6VJ\\n' +\n 'BYM+w9U9hp6H4DVMLKXPc1bFlKA5OBTgUtgkDibWJKFOEPW3UOYwp9uq6pFoN0AO\\n' +\n 'xMTldqWFsOF3bJIlvOY0c/1EFZXu3Ns6/oCP//Ap9vumldYMUZWmbK+gK33FPOXV\\n' +\n '8BQ6jNC29icv7lLDpRPwjibJBXX+peDR5UK4FdYcswWEB1Tix5X8dYu6\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECDCCAvCgAwIBAgICVIYwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MDQxNzEz\\n' +\n 'MDRaFw0yNDA4MjIxNzA4NTBaMIGVMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEmMCQGA1UEAwwdQW1h\\n' +\n 'em9uIFJEUyBhcC1zb3V0aC0xIDIwMTkgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IB\\n' +\n 'DwAwggEKAoIBAQDUYOz1hGL42yUCrcsMSOoU8AeD/3KgZ4q7gP+vAz1WnY9K/kim\\n' +\n 'eWN/2Qqzlo3+mxSFQFyD4MyV3+CnCPnBl9Sh1G/F6kThNiJ7dEWSWBQGAB6HMDbC\\n' +\n 'BaAsmUc1UIz8sLTL3fO+S9wYhA63Wun0Fbm/Rn2yk/4WnJAaMZcEtYf6e0KNa0LM\\n' +\n 'p/kN/70/8cD3iz3dDR8zOZFpHoCtf0ek80QqTich0A9n3JLxR6g6tpwoYviVg89e\\n' +\n 'qCjQ4axxOkWWeusLeTJCcY6CkVyFvDAKvcUl1ytM5AiaUkXblE7zDFXRM4qMMRdt\\n' +\n 'lPm8d3pFxh0fRYk8bIKnpmtOpz3RIctDrZZxAgMBAAGjZjBkMA4GA1UdDwEB/wQE\\n' +\n 'AwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBT99wKJftD3jb4sHoHG\\n' +\n 'i3uGlH6W6TAfBgNVHSMEGDAWgBRzX2DYvMsDmPQrFzQuNlqmYP+8HzANBgkqhkiG\\n' +\n '9w0BAQsFAAOCAQEAZ17hhr3dII3hUfuHQ1hPWGrpJOX/G9dLzkprEIcCidkmRYl+\\n' +\n 'hu1Pe3caRMh/17+qsoEErmnVq5jNY9X1GZL04IZH8YbHc7iRHw3HcWAdhN8633+K\\n' +\n 'jYEB2LbJ3vluCGnCejq9djDb6alOugdLMJzxOkHDhMZ6/gYbECOot+ph1tQuZXzD\\n' +\n 'tZ7prRsrcuPBChHlPjmGy8M9z8u+kF196iNSUGC4lM8vLkHM7ycc1/ZOwRq9aaTe\\n' +\n 'iOghbQQyAEe03MWCyDGtSmDfr0qEk+CHN+6hPiaL8qKt4s+V9P7DeK4iW08ny8Ox\\n' +\n 'AVS7u0OK/5+jKMAMrKwpYrBydOjTUTHScocyNw==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBjCCAu6gAwIBAgIJAMc0ZzaSUK51MA0GCSqGSIb3DQEBCwUAMIGPMQswCQYD\\n' +\n 'VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi\\n' +\n 'MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h\\n' +\n 'em9uIFJEUzEgMB4GA1UEAwwXQW1hem9uIFJEUyBSb290IDIwMTkgQ0EwHhcNMTkw\\n' +\n 'ODIyMTcwODUwWhcNMjQwODIyMTcwODUwWjCBjzELMAkGA1UEBhMCVVMxEDAOBgNV\\n' +\n 'BAcMB1NlYXR0bGUxEzARBgNVBAgMCldhc2hpbmd0b24xIjAgBgNVBAoMGUFtYXpv\\n' +\n 'biBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMxIDAeBgNV\\n' +\n 'BAMMF0FtYXpvbiBSRFMgUm9vdCAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEFAAOC\\n' +\n 'AQ8AMIIBCgKCAQEArXnF/E6/Qh+ku3hQTSKPMhQQlCpoWvnIthzX6MK3p5a0eXKZ\\n' +\n 'oWIjYcNNG6UwJjp4fUXl6glp53Jobn+tWNX88dNH2n8DVbppSwScVE2LpuL+94vY\\n' +\n '0EYE/XxN7svKea8YvlrqkUBKyxLxTjh+U/KrGOaHxz9v0l6ZNlDbuaZw3qIWdD/I\\n' +\n '6aNbGeRUVtpM6P+bWIoxVl/caQylQS6CEYUk+CpVyJSkopwJlzXT07tMoDL5WgX9\\n' +\n 'O08KVgDNz9qP/IGtAcRduRcNioH3E9v981QO1zt/Gpb2f8NqAjUUCUZzOnij6mx9\\n' +\n 'McZ+9cWX88CRzR0vQODWuZscgI08NvM69Fn2SQIDAQABo2MwYTAOBgNVHQ8BAf8E\\n' +\n 'BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUc19g2LzLA5j0Kxc0LjZa\\n' +\n 'pmD/vB8wHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJKoZIhvcN\\n' +\n 'AQELBQADggEBAHAG7WTmyjzPRIM85rVj+fWHsLIvqpw6DObIjMWokpliCeMINZFV\\n' +\n 'ynfgBKsf1ExwbvJNzYFXW6dihnguDG9VMPpi2up/ctQTN8tm9nDKOy08uNZoofMc\\n' +\n 'NUZxKCEkVKZv+IL4oHoeayt8egtv3ujJM6V14AstMQ6SwvwvA93EP/Ug2e4WAXHu\\n' +\n 'cbI1NAbUgVDqp+DRdfvZkgYKryjTWd/0+1fS8X1bBZVWzl7eirNVnHbSH2ZDpNuY\\n' +\n '0SBd8dj5F6ld3t58ydZbrTHze7JJOd8ijySAp4/kiu9UfZWuTPABzDa/DSdz9Dk/\\n' +\n 'zPW4CXXvhLmE02TA9/HeCw3KEHIwicNuEfw=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICQ2QwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MDUxODQ2\\n' +\n 'MjlaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyBzYS1lYXN0LTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAMMvR+ReRnOzqJzoaPipNTt1Z2VA968jlN1+SYKUrYM3No+Vpz0H\\n' +\n 'M6Tn0oYB66ByVsXiGc28ulsqX1HbHsxqDPwvQTKvO7SrmDokoAkjJgLocOLUAeld\\n' +\n '5AwvUjxGRP6yY90NV7X786MpnYb2Il9DIIaV9HjCmPt+rjy2CZjS0UjPjCKNfB8J\\n' +\n 'bFjgW6GGscjeyGb/zFwcom5p4j0rLydbNaOr9wOyQrtt3ZQWLYGY9Zees/b8pmcc\\n' +\n 'Jt+7jstZ2UMV32OO/kIsJ4rMUn2r/uxccPwAc1IDeRSSxOrnFKhW3Cu69iB3bHp7\\n' +\n 'JbawY12g7zshE4I14sHjv3QoXASoXjx4xgMCAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFI1Fc/Ql2jx+oJPgBVYq\\n' +\n 'ccgP0pQ8MB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQB4VVVabVp70myuYuZ3vltQIWqSUMhkaTzehMgGcHjMf9iLoZ/I\\n' +\n '93KiFUSGnek5cRePyS9wcpp0fcBT3FvkjpUdCjVtdttJgZFhBxgTd8y26ImdDDMR\\n' +\n '4+BUuhI5msvjL08f+Vkkpu1GQcGmyFVPFOy/UY8iefu+QyUuiBUnUuEDd49Hw0Fn\\n' +\n '/kIPII6Vj82a2mWV/Q8e+rgN8dIRksRjKI03DEoP8lhPlsOkhdwU6Uz9Vu6NOB2Q\\n' +\n 'Ls1kbcxAc7cFSyRVJEhh12Sz9d0q/CQSTFsVJKOjSNQBQfVnLz1GwO/IieUEAr4C\\n' +\n 'jkTntH0r1LX5b/GwN4R887LvjAEdTbg1his7\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECDCCAvCgAwIBAgIDAIkHMA0GCSqGSIb3DQEBCwUAMIGPMQswCQYDVQQGEwJV\\n' +\n 'UzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UE\\n' +\n 'CgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJE\\n' +\n 'UzEgMB4GA1UEAwwXQW1hem9uIFJEUyBSb290IDIwMTkgQ0EwHhcNMTkwOTA2MTc0\\n' +\n 'MDIxWhcNMjQwODIyMTcwODUwWjCBlDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldh\\n' +\n 'c2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoMGUFtYXpvbiBXZWIg\\n' +\n 'U2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMxJTAjBgNVBAMMHEFt\\n' +\n 'YXpvbiBSRFMgdXMtd2VzdC0xIDIwMTkgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IB\\n' +\n 'DwAwggEKAoIBAQDD2yzbbAl77OofTghDMEf624OvU0eS9O+lsdO0QlbfUfWa1Kd6\\n' +\n '0WkgjkLZGfSRxEHMCnrv4UPBSK/Qwn6FTjkDLgemhqBtAnplN4VsoDL+BkRX4Wwq\\n' +\n '/dSQJE2b+0hm9w9UMVGFDEq1TMotGGTD2B71eh9HEKzKhGzqiNeGsiX4VV+LJzdH\\n' +\n 'uM23eGisNqmd4iJV0zcAZ+Gbh2zK6fqTOCvXtm7Idccv8vZZnyk1FiWl3NR4WAgK\\n' +\n 'AkvWTIoFU3Mt7dIXKKClVmvssG8WHCkd3Xcb4FHy/G756UZcq67gMMTX/9fOFM/v\\n' +\n 'l5C0+CHl33Yig1vIDZd+fXV1KZD84dEJfEvHAgMBAAGjZjBkMA4GA1UdDwEB/wQE\\n' +\n 'AwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBR+ap20kO/6A7pPxo3+\\n' +\n 'T3CfqZpQWjAfBgNVHSMEGDAWgBRzX2DYvMsDmPQrFzQuNlqmYP+8HzANBgkqhkiG\\n' +\n '9w0BAQsFAAOCAQEAHCJky2tPjPttlDM/RIqExupBkNrnSYnOK4kr9xJ3sl8UF2DA\\n' +\n 'PAnYsjXp3rfcjN/k/FVOhxwzi3cXJF/2Tjj39Bm/OEfYTOJDNYtBwB0VVH4ffa/6\\n' +\n 'tZl87jaIkrxJcreeeHqYMnIxeN0b/kliyA+a5L2Yb0VPjt9INq34QDc1v74FNZ17\\n' +\n '4z8nr1nzg4xsOWu0Dbjo966lm4nOYIGBRGOKEkHZRZ4mEiMgr3YLkv8gSmeitx57\\n' +\n 'Z6dVemNtUic/LVo5Iqw4n3TBS0iF2C1Q1xT/s3h+0SXZlfOWttzSluDvoMv5PvCd\\n' +\n 'pFjNn+aXLAALoihL1MJSsxydtsLjOBro5eK0Vw==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICOFAwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTAxNzQ2\\n' +\n 'MjFaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1ub3J0aGVhc3QtMiAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEAzU72e6XbaJbi4HjJoRNjKxzUEuChKQIt7k3CWzNnmjc5\\n' +\n '8I1MjCpa2W1iw1BYVysXSNSsLOtUsfvBZxi/1uyMn5ZCaf9aeoA9UsSkFSZBjOCN\\n' +\n 'DpKPCmfV1zcEOvJz26+1m8WDg+8Oa60QV0ou2AU1tYcw98fOQjcAES0JXXB80P2s\\n' +\n '3UfkNcnDz+l4k7j4SllhFPhH6BQ4lD2NiFAP4HwoG6FeJUn45EPjzrydxjq6v5Fc\\n' +\n 'cQ8rGuHADVXotDbEhaYhNjIrsPL+puhjWfhJjheEw8c4whRZNp6gJ/b6WEes/ZhZ\\n' +\n 'h32DwsDsZw0BfRDUMgUn8TdecNexHUw8vQWeC181hwIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUwW9bWgkWkr0U\\n' +\n 'lrOsq2kvIdrECDgwHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBAEugF0Gj7HVhX0ehPZoGRYRt3PBuI2YjfrrJRTZ9X5wc\\n' +\n '9T8oHmw07mHmNy1qqWvooNJg09bDGfB0k5goC2emDiIiGfc/kvMLI7u+eQOoMKj6\\n' +\n 'mkfCncyRN3ty08Po45vTLBFZGUvtQmjM6yKewc4sXiASSBmQUpsMbiHRCL72M5qV\\n' +\n 'obcJOjGcIdDTmV1BHdWT+XcjynsGjUqOvQWWhhLPrn4jWe6Xuxll75qlrpn3IrIx\\n' +\n 'CRBv/5r7qbcQJPOgwQsyK4kv9Ly8g7YT1/vYBlR3cRsYQjccw5ceWUj2DrMVWhJ4\\n' +\n 'prf+E3Aa4vYmLLOUUvKnDQ1k3RGNu56V0tonsQbfsaM=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECjCCAvKgAwIBAgICEzUwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTAyMDUy\\n' +\n 'MjVaFw0yNDA4MjIxNzA4NTBaMIGXMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEoMCYGA1UEAwwfQW1h\\n' +\n 'em9uIFJEUyBjYS1jZW50cmFsLTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQAD\\n' +\n 'ggEPADCCAQoCggEBAOxHqdcPSA2uBjsCP4DLSlqSoPuQ/X1kkJLusVRKiQE2zayB\\n' +\n 'viuCBt4VB9Qsh2rW3iYGM+usDjltGnI1iUWA5KHcvHszSMkWAOYWLiMNKTlg6LCp\\n' +\n 'XnE89tvj5dIH6U8WlDvXLdjB/h30gW9JEX7S8supsBSci2GxEzb5mRdKaDuuF/0O\\n' +\n 'qvz4YE04pua3iZ9QwmMFuTAOYzD1M72aOpj+7Ac+YLMM61qOtU+AU6MndnQkKoQi\\n' +\n 'qmUN2A9IFaqHFzRlSdXwKCKUA4otzmz+/N3vFwjb5F4DSsbsrMfjeHMo6o/nb6Nh\\n' +\n 'YDb0VJxxPee6TxSuN7CQJ2FxMlFUezcoXqwqXD0CAwEAAaNmMGQwDgYDVR0PAQH/\\n' +\n 'BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDGGpon9WfIpsggE\\n' +\n 'CxHq8hZ7E2ESMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqG\\n' +\n 'SIb3DQEBCwUAA4IBAQAvpeQYEGZvoTVLgV9rd2+StPYykMsmFjWQcyn3dBTZRXC2\\n' +\n 'lKq7QhQczMAOhEaaN29ZprjQzsA2X/UauKzLR2Uyqc2qOeO9/YOl0H3qauo8C/W9\\n' +\n 'r8xqPbOCDLEXlOQ19fidXyyEPHEq5WFp8j+fTh+s8WOx2M7IuC0ANEetIZURYhSp\\n' +\n 'xl9XOPRCJxOhj7JdelhpweX0BJDNHeUFi0ClnFOws8oKQ7sQEv66d5ddxqqZ3NVv\\n' +\n 'RbCvCtEutQMOUMIuaygDlMn1anSM8N7Wndx8G6+Uy67AnhjGx7jw/0YPPxopEj6x\\n' +\n 'JXP8j0sJbcT9K/9/fPVLNT25RvQ/93T2+IQL4Ca2\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICYpgwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTExNzMx\\n' +\n 'NDhaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyBldS13ZXN0LTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAMk3YdSZ64iAYp6MyyKtYJtNzv7zFSnnNf6vv0FB4VnfITTMmOyZ\\n' +\n 'LXqKAT2ahZ00hXi34ewqJElgU6eUZT/QlzdIu359TEZyLVPwURflL6SWgdG01Q5X\\n' +\n 'O++7fSGcBRyIeuQWs9FJNIIqK8daF6qw0Rl5TXfu7P9dBc3zkgDXZm2DHmxGDD69\\n' +\n '7liQUiXzoE1q2Z9cA8+jirDioJxN9av8hQt12pskLQumhlArsMIhjhHRgF03HOh5\\n' +\n 'tvi+RCfihVOxELyIRTRpTNiIwAqfZxxTWFTgfn+gijTmd0/1DseAe82aYic8JbuS\\n' +\n 'EMbrDduAWsqrnJ4GPzxHKLXX0JasCUcWyMECAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFPLtsq1NrwJXO13C9eHt\\n' +\n 'sLY11AGwMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQAnWBKj5xV1A1mYd0kIgDdkjCwQkiKF5bjIbGkT3YEFFbXoJlSP\\n' +\n '0lZZ/hDaOHI8wbLT44SzOvPEEmWF9EE7SJzkvSdQrUAWR9FwDLaU427ALI3ngNHy\\n' +\n 'lGJ2hse1fvSRNbmg8Sc9GBv8oqNIBPVuw+AJzHTacZ1OkyLZrz1c1QvwvwN2a+Jd\\n' +\n 'vH0V0YIhv66llKcYDMUQJAQi4+8nbRxXWv6Gq3pvrFoorzsnkr42V3JpbhnYiK+9\\n' +\n 'nRKd4uWl62KRZjGkfMbmsqZpj2fdSWMY1UGyN1k+kDmCSWYdrTRDP0xjtIocwg+A\\n' +\n 'J116n4hV/5mbA0BaPiS2krtv17YAeHABZcvz\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECjCCAvKgAwIBAgICV2YwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTExOTM2\\n' +\n 'MjBaFw0yNDA4MjIxNzA4NTBaMIGXMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEoMCYGA1UEAwwfQW1h\\n' +\n 'em9uIFJEUyBldS1jZW50cmFsLTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQAD\\n' +\n 'ggEPADCCAQoCggEBAMEx54X2pHVv86APA0RWqxxRNmdkhAyp2R1cFWumKQRofoFv\\n' +\n 'n+SPXdkpIINpMuEIGJANozdiEz7SPsrAf8WHyD93j/ZxrdQftRcIGH41xasetKGl\\n' +\n 'I67uans8d+pgJgBKGb/Z+B5m+UsIuEVekpvgpwKtmmaLFC/NCGuSsJoFsRqoa6Gh\\n' +\n 'm34W6yJoY87UatddCqLY4IIXaBFsgK9Q/wYzYLbnWM6ZZvhJ52VMtdhcdzeTHNW0\\n' +\n '5LGuXJOF7Ahb4JkEhoo6TS2c0NxB4l4MBfBPgti+O7WjR3FfZHpt18A6Zkq6A2u6\\n' +\n 'D/oTSL6c9/3sAaFTFgMyL3wHb2YlW0BPiljZIqECAwEAAaNmMGQwDgYDVR0PAQH/\\n' +\n 'BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFOcAToAc6skWffJa\\n' +\n 'TnreaswAfrbcMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqG\\n' +\n 'SIb3DQEBCwUAA4IBAQA1d0Whc1QtspK496mFWfFEQNegLh0a9GWYlJm+Htcj5Nxt\\n' +\n 'DAIGXb+8xrtOZFHmYP7VLCT5Zd2C+XytqseK/+s07iAr0/EPF+O2qcyQWMN5KhgE\\n' +\n 'cXw2SwuP9FPV3i+YAm11PBVeenrmzuk9NrdHQ7TxU4v7VGhcsd2C++0EisrmquWH\\n' +\n 'mgIfmVDGxphwoES52cY6t3fbnXmTkvENvR+h3rj+fUiSz0aSo+XZUGHPgvuEKM/W\\n' +\n 'CBD9Smc9CBoBgvy7BgHRgRUmwtABZHFUIEjHI5rIr7ZvYn+6A0O6sogRfvVYtWFc\\n' +\n 'qpyrW1YX8mD0VlJ8fGKM3G+aCOsiiPKDV/Uafrm+\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECDCCAvCgAwIBAgICGAcwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTIxODE5\\n' +\n 'NDRaFw0yNDA4MjIxNzA4NTBaMIGVMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEmMCQGA1UEAwwdQW1h\\n' +\n 'em9uIFJEUyBldS1ub3J0aC0xIDIwMTkgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IB\\n' +\n 'DwAwggEKAoIBAQCiIYnhe4UNBbdBb/nQxl5giM0XoVHWNrYV5nB0YukA98+TPn9v\\n' +\n 'Aoj1RGYmtryjhrf01Kuv8SWO+Eom95L3zquoTFcE2gmxCfk7bp6qJJ3eHOJB+QUO\\n' +\n 'XsNRh76fwDzEF1yTeZWH49oeL2xO13EAx4PbZuZpZBttBM5zAxgZkqu4uWQczFEs\\n' +\n 'JXfla7z2fvWmGcTagX10O5C18XaFroV0ubvSyIi75ue9ykg/nlFAeB7O0Wxae88e\\n' +\n 'uhiBEFAuLYdqWnsg3459NfV8Yi1GnaitTym6VI3tHKIFiUvkSiy0DAlAGV2iiyJE\\n' +\n 'q+DsVEO4/hSINJEtII4TMtysOsYPpINqeEzRAgMBAAGjZjBkMA4GA1UdDwEB/wQE\\n' +\n 'AwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBRR0UpnbQyjnHChgmOc\\n' +\n 'hnlc0PogzTAfBgNVHSMEGDAWgBRzX2DYvMsDmPQrFzQuNlqmYP+8HzANBgkqhkiG\\n' +\n '9w0BAQsFAAOCAQEAKJD4xVzSf4zSGTBJrmamo86jl1NHQxXUApAZuBZEc8tqC6TI\\n' +\n 'T5CeoSr9CMuVC8grYyBjXblC4OsM5NMvmsrXl/u5C9dEwtBFjo8mm53rOOIm1fxl\\n' +\n 'I1oYB/9mtO9ANWjkykuLzWeBlqDT/i7ckaKwalhLODsRDO73vRhYNjsIUGloNsKe\\n' +\n 'pxw3dzHwAZx4upSdEVG4RGCZ1D0LJ4Gw40OfD69hfkDfRVVxKGrbEzqxXRvovmDc\\n' +\n 'tKLdYZO/6REoca36v4BlgIs1CbUXJGLSXUwtg7YXGLSVBJ/U0+22iGJmBSNcoyUN\\n' +\n 'cjPFD9JQEhDDIYYKSGzIYpvslvGc4T5ISXFiuQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICZIEwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTIyMTMy\\n' +\n 'MzJaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyBldS13ZXN0LTIgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBALGiwqjiF7xIjT0Sx7zB3764K2T2a1DHnAxEOr+/EIftWKxWzT3u\\n' +\n 'PFwS2eEZcnKqSdRQ+vRzonLBeNLO4z8aLjQnNbkizZMBuXGm4BqRm1Kgq3nlLDQn\\n' +\n '7YqdijOq54SpShvR/8zsO4sgMDMmHIYAJJOJqBdaus2smRt0NobIKc0liy7759KB\\n' +\n '6kmQ47Gg+kfIwxrQA5zlvPLeQImxSoPi9LdbRoKvu7Iot7SOa+jGhVBh3VdqndJX\\n' +\n '7tm/saj4NE375csmMETFLAOXjat7zViMRwVorX4V6AzEg1vkzxXpA9N7qywWIT5Y\\n' +\n 'fYaq5M8i6vvLg0CzrH9fHORtnkdjdu1y+0MCAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFFOhOx1yt3Z7mvGB9jBv\\n' +\n '2ymdZwiOMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQBehqY36UGDvPVU9+vtaYGr38dBbp+LzkjZzHwKT1XJSSUc2wqM\\n' +\n 'hnCIQKilonrTIvP1vmkQi8qHPvDRtBZKqvz/AErW/ZwQdZzqYNFd+BmOXaeZWV0Q\\n' +\n 'oHtDzXmcwtP8aUQpxN0e1xkWb1E80qoy+0uuRqb/50b/R4Q5qqSfJhkn6z8nwB10\\n' +\n '7RjLtJPrK8igxdpr3tGUzfAOyiPrIDncY7UJaL84GFp7WWAkH0WG3H8Y8DRcRXOU\\n' +\n 'mqDxDLUP3rNuow3jnGxiUY+gGX5OqaZg4f4P6QzOSmeQYs6nLpH0PiN00+oS1BbD\\n' +\n 'bpWdZEttILPI+vAYkU4QuBKKDjJL6HbSd+cn\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIECDCCAvCgAwIBAgIDAIVCMA0GCSqGSIb3DQEBCwUAMIGPMQswCQYDVQQGEwJV\\n' +\n 'UzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEiMCAGA1UE\\n' +\n 'CgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJE\\n' +\n 'UzEgMB4GA1UEAwwXQW1hem9uIFJEUyBSb290IDIwMTkgQ0EwHhcNMTkwOTEzMTcw\\n' +\n 'NjQxWhcNMjQwODIyMTcwODUwWjCBlDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldh\\n' +\n 'c2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxIjAgBgNVBAoMGUFtYXpvbiBXZWIg\\n' +\n 'U2VydmljZXMsIEluYy4xEzARBgNVBAsMCkFtYXpvbiBSRFMxJTAjBgNVBAMMHEFt\\n' +\n 'YXpvbiBSRFMgdXMtZWFzdC0yIDIwMTkgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IB\\n' +\n 'DwAwggEKAoIBAQDE+T2xYjUbxOp+pv+gRA3FO24+1zCWgXTDF1DHrh1lsPg5k7ht\\n' +\n '2KPYzNc+Vg4E+jgPiW0BQnA6jStX5EqVh8BU60zELlxMNvpg4KumniMCZ3krtMUC\\n' +\n 'au1NF9rM7HBh+O+DYMBLK5eSIVt6lZosOb7bCi3V6wMLA8YqWSWqabkxwN4w0vXI\\n' +\n '8lu5uXXFRemHnlNf+yA/4YtN4uaAyd0ami9+klwdkZfkrDOaiy59haOeBGL8EB/c\\n' +\n 'dbJJlguHH5CpCscs3RKtOOjEonXnKXldxarFdkMzi+aIIjQ8GyUOSAXHtQHb3gZ4\\n' +\n 'nS6Ey0CMlwkB8vUObZU9fnjKJcL5QCQqOfwvAgMBAAGjZjBkMA4GA1UdDwEB/wQE\\n' +\n 'AwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBQUPuRHohPxx4VjykmH\\n' +\n '6usGrLL1ETAfBgNVHSMEGDAWgBRzX2DYvMsDmPQrFzQuNlqmYP+8HzANBgkqhkiG\\n' +\n '9w0BAQsFAAOCAQEAUdR9Vb3y33Yj6X6KGtuthZ08SwjImVQPtknzpajNE5jOJAh8\\n' +\n 'quvQnU9nlnMO85fVDU1Dz3lLHGJ/YG1pt1Cqq2QQ200JcWCvBRgdvH6MjHoDQpqZ\\n' +\n 'HvQ3vLgOGqCLNQKFuet9BdpsHzsctKvCVaeBqbGpeCtt3Hh/26tgx0rorPLw90A2\\n' +\n 'V8QSkZJjlcKkLa58N5CMM8Xz8KLWg3MZeT4DmlUXVCukqK2RGuP2L+aME8dOxqNv\\n' +\n 'OnOz1zrL5mR2iJoDpk8+VE/eBDmJX40IJk6jBjWoxAO/RXq+vBozuF5YHN1ujE92\\n' +\n 'tO8HItgTp37XT8bJBAiAnt5mxw+NLSqtxk2QdQ==\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICY4kwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTMyMDEx\\n' +\n 'NDJaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1zb3V0aGVhc3QtMSAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEAr5u9OuLL/OF/fBNUX2kINJLzFl4DnmrhnLuSeSnBPgbb\\n' +\n 'qddjf5EFFJBfv7IYiIWEFPDbDG5hoBwgMup5bZDbas+ZTJTotnnxVJTQ6wlhTmns\\n' +\n 'eHECcg2pqGIKGrxZfbQhlj08/4nNAPvyYCTS0bEcmQ1emuDPyvJBYDDLDU6AbCB5\\n' +\n '6Z7YKFQPTiCBblvvNzchjLWF9IpkqiTsPHiEt21sAdABxj9ityStV3ja/W9BfgxH\\n' +\n 'wzABSTAQT6FbDwmQMo7dcFOPRX+hewQSic2Rn1XYjmNYzgEHisdUsH7eeXREAcTw\\n' +\n '61TRvaLH8AiOWBnTEJXPAe6wYfrcSd1pD0MXpoB62wIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUytwMiomQOgX5\\n' +\n 'Ichd+2lDWRUhkikwHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBACf6lRDpfCD7BFRqiWM45hqIzffIaysmVfr+Jr+fBTjP\\n' +\n 'uYe/ba1omSrNGG23bOcT9LJ8hkQJ9d+FxUwYyICQNWOy6ejicm4z0C3VhphbTPqj\\n' +\n 'yjpt9nG56IAcV8BcRJh4o/2IfLNzC/dVuYJV8wj7XzwlvjysenwdrJCoLadkTr1h\\n' +\n 'eIdG6Le07sB9IxrGJL9e04afk37h7c8ESGSE4E+oS4JQEi3ATq8ne1B9DQ9SasXi\\n' +\n 'IRmhNAaISDzOPdyLXi9N9V9Lwe/DHcja7hgLGYx3UqfjhLhOKwp8HtoZORixAmOI\\n' +\n 'HfILgNmwyugAbuZoCazSKKBhQ0wgO0WZ66ZKTMG8Oho=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICUYkwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTYxODIx\\n' +\n 'MTVaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyB1cy13ZXN0LTIgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBANCEZBZyu6yJQFZBJmSUZfSZd3Ui2gitczMKC4FLr0QzkbxY+cLa\\n' +\n 'uVONIOrPt4Rwi+3h/UdnUg917xao3S53XDf1TDMFEYp4U8EFPXqCn/GXBIWlU86P\\n' +\n 'PvBN+gzw3nS+aco7WXb+woTouvFVkk8FGU7J532llW8o/9ydQyDIMtdIkKTuMfho\\n' +\n 'OiNHSaNc+QXQ32TgvM9A/6q7ksUoNXGCP8hDOkSZ/YOLiI5TcdLh/aWj00ziL5bj\\n' +\n 'pvytiMZkilnc9dLY9QhRNr0vGqL0xjmWdoEXz9/OwjmCihHqJq+20MJPsvFm7D6a\\n' +\n '2NKybR9U+ddrjb8/iyLOjURUZnj5O+2+OPcCAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFEBxMBdv81xuzqcK5TVu\\n' +\n 'pHj+Aor8MB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQBZkfiVqGoJjBI37aTlLOSjLcjI75L5wBrwO39q+B4cwcmpj58P\\n' +\n '3sivv+jhYfAGEbQnGRzjuFoyPzWnZ1DesRExX+wrmHsLLQbF2kVjLZhEJMHF9eB7\\n' +\n 'GZlTPdTzHErcnuXkwA/OqyXMpj9aghcQFuhCNguEfnROY9sAoK2PTfnTz9NJHL+Q\\n' +\n 'UpDLEJEUfc0GZMVWYhahc0x38ZnSY2SKacIPECQrTI0KpqZv/P+ijCEcMD9xmYEb\\n' +\n 'jL4en+XKS1uJpw5fIU5Sj0MxhdGstH6S84iAE5J3GM3XHklGSFwwqPYvuTXvANH6\\n' +\n 'uboynxRgSae59jIlAK6Jrr6GWMwQRbgcaAlW\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICEkYwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTYxOTUz\\n' +\n 'NDdaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1zb3V0aGVhc3QtMiAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEAufodI2Flker8q7PXZG0P0vmFSlhQDw907A6eJuF/WeMo\\n' +\n 'GHnll3b4S6nC3oRS3nGeRMHbyU2KKXDwXNb3Mheu+ox+n5eb/BJ17eoj9HbQR1cd\\n' +\n 'gEkIciiAltf8gpMMQH4anP7TD+HNFlZnP7ii3geEJB2GGXSxgSWvUzH4etL67Zmn\\n' +\n 'TpGDWQMB0T8lK2ziLCMF4XAC/8xDELN/buHCNuhDpxpPebhct0T+f6Arzsiswt2j\\n' +\n '7OeNeLLZwIZvVwAKF7zUFjC6m7/VmTQC8nidVY559D6l0UhhU0Co/txgq3HVsMOH\\n' +\n 'PbxmQUwJEKAzQXoIi+4uZzHFZrvov/nDTNJUhC6DqwIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUwaZpaCme+EiV\\n' +\n 'M5gcjeHZSTgOn4owHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBAAR6a2meCZuXO2TF9bGqKGtZmaah4pH2ETcEVUjkvXVz\\n' +\n 'sl+ZKbYjrun+VkcMGGKLUjS812e7eDF726ptoku9/PZZIxlJB0isC/0OyixI8N4M\\n' +\n 'NsEyvp52XN9QundTjkl362bomPnHAApeU0mRbMDRR2JdT70u6yAzGLGsUwMkoNnw\\n' +\n '1VR4XKhXHYGWo7KMvFrZ1KcjWhubxLHxZWXRulPVtGmyWg/MvE6KF+2XMLhojhUL\\n' +\n '+9jB3Fpn53s6KMx5tVq1x8PukHmowcZuAF8k+W4gk8Y68wIwynrdZrKRyRv6CVtR\\n' +\n 'FZ8DeJgoNZT3y/GT254VqMxxfuy2Ccb/RInd16tEvVk=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICOYIwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTcyMDA1\\n' +\n 'MjlaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1ub3J0aGVhc3QtMyAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEA4dMak8W+XW8y/2F6nRiytFiA4XLwePadqWebGtlIgyCS\\n' +\n 'kbug8Jv5w7nlMkuxOxoUeD4WhI6A9EkAn3r0REM/2f0aYnd2KPxeqS2MrtdxxHw1\\n' +\n 'xoOxk2x0piNSlOz6yog1idsKR5Wurf94fvM9FdTrMYPPrDabbGqiBMsZZmoHLvA3\\n' +\n 'Z+57HEV2tU0Ei3vWeGIqnNjIekS+E06KhASxrkNU5vi611UsnYZlSi0VtJsH4UGV\\n' +\n 'LhnHl53aZL0YFO5mn/fzuNG/51qgk/6EFMMhaWInXX49Dia9FnnuWXwVwi6uX1Wn\\n' +\n '7kjoHi5VtmC8ZlGEHroxX2DxEr6bhJTEpcLMnoQMqwIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUsUI5Cb3SWB8+\\n' +\n 'gv1YLN/ABPMdxSAwHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBAJAF3E9PM1uzVL8YNdzb6fwJrxxqI2shvaMVmC1mXS+w\\n' +\n 'G0zh4v2hBZOf91l1EO0rwFD7+fxoI6hzQfMxIczh875T6vUXePKVOCOKI5wCrDad\\n' +\n 'zQbVqbFbdhsBjF4aUilOdtw2qjjs9JwPuB0VXN4/jY7m21oKEOcnpe36+7OiSPjN\\n' +\n 'xngYewCXKrSRqoj3mw+0w/+exYj3Wsush7uFssX18av78G+ehKPIVDXptOCP/N7W\\n' +\n '8iKVNeQ2QGTnu2fzWsGUSvMGyM7yqT+h1ILaT//yQS8er511aHMLc142bD4D9VSy\\n' +\n 'DgactwPDTShK/PXqhvNey9v/sKXm4XatZvwcc8KYlW4=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEDDCCAvSgAwIBAgICcEUwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTgxNjU2\\n' +\n 'MjBaFw0yNDA4MjIxNzA4NTBaMIGZMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzEqMCgGA1UEAwwhQW1h\\n' +\n 'em9uIFJEUyBhcC1ub3J0aGVhc3QtMSAyMDE5IENBMIIBIjANBgkqhkiG9w0BAQEF\\n' +\n 'AAOCAQ8AMIIBCgKCAQEAndtkldmHtk4TVQAyqhAvtEHSMb6pLhyKrIFved1WO3S7\\n' +\n '+I+bWwv9b2W/ljJxLq9kdT43bhvzonNtI4a1LAohS6bqyirmk8sFfsWT3akb+4Sx\\n' +\n '1sjc8Ovc9eqIWJCrUiSvv7+cS7ZTA9AgM1PxvHcsqrcUXiK3Jd/Dax9jdZE1e15s\\n' +\n 'BEhb2OEPE+tClFZ+soj8h8Pl2Clo5OAppEzYI4LmFKtp1X/BOf62k4jviXuCSst3\\n' +\n 'UnRJzE/CXtjmN6oZySVWSe0rQYuyqRl6//9nK40cfGKyxVnimB8XrrcxUN743Vud\\n' +\n 'QQVU0Esm8OVTX013mXWQXJHP2c0aKkog8LOga0vobQIDAQABo2YwZDAOBgNVHQ8B\\n' +\n 'Af8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQULmoOS1mFSjj+\\n' +\n 'snUPx4DgS3SkLFYwHwYDVR0jBBgwFoAUc19g2LzLA5j0Kxc0LjZapmD/vB8wDQYJ\\n' +\n 'KoZIhvcNAQELBQADggEBAAkVL2P1M2/G9GM3DANVAqYOwmX0Xk58YBHQu6iiQg4j\\n' +\n 'b4Ky/qsZIsgT7YBsZA4AOcPKQFgGTWhe9pvhmXqoN3RYltN8Vn7TbUm/ZVDoMsrM\\n' +\n 'gwv0+TKxW1/u7s8cXYfHPiTzVSJuOogHx99kBW6b2f99GbP7O1Sv3sLq4j6lVvBX\\n' +\n 'Fiacf5LAWC925nvlTzLlBgIc3O9xDtFeAGtZcEtxZJ4fnGXiqEnN4539+nqzIyYq\\n' +\n 'nvlgCzyvcfRAxwltrJHuuRu6Maw5AGcd2Y0saMhqOVq9KYKFKuD/927BTrbd2JVf\\n' +\n '2sGWyuPZPCk3gq+5pCjbD0c6DkhcMGI6WwxvM5V/zSM=\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICJDQwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTgxNzAz\\n' +\n 'MTVaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyBldS13ZXN0LTMgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAL9bL7KE0n02DLVtlZ2PL+g/BuHpMYFq2JnE2RgompGurDIZdjmh\\n' +\n '1pxfL3nT+QIVMubuAOy8InRfkRxfpxyjKYdfLJTPJG+jDVL+wDcPpACFVqoV7Prg\\n' +\n 'pVYEV0lc5aoYw4bSeYFhdzgim6F8iyjoPnObjll9mo4XsHzSoqJLCd0QC+VG9Fw2\\n' +\n 'q+GDRZrLRmVM2oNGDRbGpGIFg77aRxRapFZa8SnUgs2AqzuzKiprVH5i0S0M6dWr\\n' +\n 'i+kk5epmTtkiDHceX+dP/0R1NcnkCPoQ9TglyXyPdUdTPPRfKCq12dftqll+u4mV\\n' +\n 'ARdN6WFjovxax8EAP2OAUTi1afY+1JFMj+sCAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFLfhrbrO5exkCVgxW0x3\\n' +\n 'Y2mAi8lNMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQAigQ5VBNGyw+OZFXwxeJEAUYaXVoP/qrhTOJ6mCE2DXUVEoJeV\\n' +\n 'SxScy/TlFA9tJXqmit8JH8VQ/xDL4ubBfeMFAIAo4WzNWDVoeVMqphVEcDWBHsI1\\n' +\n 'AETWzfsapRS9yQekOMmxg63d/nV8xewIl8aNVTHdHYXMqhhik47VrmaVEok1UQb3\\n' +\n 'O971RadLXIEbVd9tjY5bMEHm89JsZDnDEw1hQXBb67Elu64OOxoKaHBgUH8AZn/2\\n' +\n 'zFsL1ynNUjOhCSAA15pgd1vjwc0YsBbAEBPcHBWYBEyME6NLNarjOzBl4FMtATSF\\n' +\n 'wWCKRGkvqN8oxYhwR2jf2rR5Mu4DWkK5Q8Ep\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIEBzCCAu+gAwIBAgICJVUwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAlVT\\n' +\n 'MRAwDgYDVQQHDAdTZWF0dGxlMRMwEQYDVQQIDApXYXNoaW5ndG9uMSIwIAYDVQQK\\n' +\n 'DBlBbWF6b24gV2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQLDApBbWF6b24gUkRT\\n' +\n 'MSAwHgYDVQQDDBdBbWF6b24gUkRTIFJvb3QgMjAxOSBDQTAeFw0xOTA5MTkxODE2\\n' +\n 'NTNaFw0yNDA4MjIxNzA4NTBaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2Fz\\n' +\n 'aGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEiMCAGA1UECgwZQW1hem9uIFdlYiBT\\n' +\n 'ZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1hem9uIFJEUzElMCMGA1UEAwwcQW1h\\n' +\n 'em9uIFJEUyB1cy1lYXN0LTEgMjAxOSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP\\n' +\n 'ADCCAQoCggEBAM3i/k2u6cqbMdcISGRvh+m+L0yaSIoOXjtpNEoIftAipTUYoMhL\\n' +\n 'InXGlQBVA4shkekxp1N7HXe1Y/iMaPEyb3n+16pf3vdjKl7kaSkIhjdUz3oVUEYt\\n' +\n 'i8Z/XeJJ9H2aEGuiZh3kHixQcZczn8cg3dA9aeeyLSEnTkl/npzLf//669Ammyhs\\n' +\n 'XcAo58yvT0D4E0D/EEHf2N7HRX7j/TlyWvw/39SW0usiCrHPKDLxByLojxLdHzso\\n' +\n 'QIp/S04m+eWn6rmD+uUiRteN1hI5ncQiA3wo4G37mHnUEKo6TtTUh+sd/ku6a8HK\\n' +\n 'glMBcgqudDI90s1OpuIAWmuWpY//8xEG2YECAwEAAaNmMGQwDgYDVR0PAQH/BAQD\\n' +\n 'AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFPqhoWZcrVY9mU7tuemR\\n' +\n 'RBnQIj1jMB8GA1UdIwQYMBaAFHNfYNi8ywOY9CsXNC42WqZg/7wfMA0GCSqGSIb3\\n' +\n 'DQEBCwUAA4IBAQB6zOLZ+YINEs72heHIWlPZ8c6WY8MDU+Be5w1M+BK2kpcVhCUK\\n' +\n 'PJO4nMXpgamEX8DIiaO7emsunwJzMSvavSPRnxXXTKIc0i/g1EbiDjnYX9d85DkC\\n' +\n 'E1LaAUCmCZBVi9fIe0H2r9whIh4uLWZA41oMnJx/MOmo3XyMfQoWcqaSFlMqfZM4\\n' +\n '0rNoB/tdHLNuV4eIdaw2mlHxdWDtF4oH+HFm+2cVBUVC1jXKrFv/euRVtsTT+A6i\\n' +\n 'h2XBHKxQ1Y4HgAn0jACP2QSPEmuoQEIa57bEKEcZsBR8SDY6ZdTd2HLRIApcCOSF\\n' +\n 'MRM8CKLeF658I0XgF8D5EsYoKPsA+74Z+jDH\\n' +\n '-----END CERTIFICATE-----\\n',\n '-----BEGIN CERTIFICATE-----\\n' +\n 'MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF\\n' +\n 'ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\\n' +\n 'b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL\\n' +\n 'MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv\\n' +\n 'b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj\\n' +\n 'ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM\\n' +\n '9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw\\n' +\n 'IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6\\n' +\n 'VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L\\n' +\n '93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm\\n' +\n 'jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC\\n' +\n 'AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA\\n' +\n 'A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI\\n' +\n 'U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs\\n' +\n 'N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv\\n' +\n 'o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU\\n' +\n '5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy\\n' +\n 'rqXRfboQnoZsG4q5WTP468SQvvG5\\n' +\n '-----END CERTIFICATE-----\\n'\n ]\n};\n","'use strict';\r\n\r\n// based on code from Brian White @mscdex mariasql library - https://github.com/mscdex/node-mariasql/blob/master/lib/Client.js#L272-L332\r\n// License: https://github.com/mscdex/node-mariasql/blob/master/LICENSE\r\n\r\nconst RE_PARAM = /(?:\\?)|(?::(\\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g,\r\nDQUOTE = 34,\r\nSQUOTE = 39,\r\nBSLASH = 92;\r\n\r\nfunction parse(query) {\r\n let ppos = RE_PARAM.exec(query);\r\n let curpos = 0;\r\n let start = 0;\r\n let end;\r\n const parts = [];\r\n let inQuote = false;\r\n let escape = false;\r\n let qchr;\r\n const tokens = [];\r\n let qcnt = 0;\r\n let lastTokenEndPos = 0;\r\n let i;\r\n\r\n if (ppos) {\r\n do {\r\n for (i=curpos,end=ppos.index; i {};\r\n\r\nfunction createCompiler(config) {\r\n if (!config)\r\n config = {};\r\n if (!config.placeholder) {\r\n config.placeholder = '?';\r\n }\r\n let ncache = 100;\r\n let cache;\r\n if (typeof config.cache === 'number') {\r\n ncache = config.cache;\r\n }\r\n if (typeof config.cache === 'object') {\r\n cache = config.cache;\r\n }\r\n if (config.cache !== false && !cache) {\r\n cache = require('lru-cache')({ max: ncache, dispose: EMPTY_LRU_FN });\r\n }\r\n\r\n function toArrayParams(tree, params) {\r\n const arr = [];\r\n if (tree.length == 1) {\r\n return [tree[0], []];\r\n }\r\n\r\n if (typeof params == 'undefined')\r\n throw new Error('Named query contains placeholders, but parameters object is undefined');\r\n\r\n const tokens = tree[1];\r\n for (let i=0; i < tokens.length; ++i) {\r\n arr.push(params[tokens[i]]);\r\n }\r\n return [tree[0], arr];\r\n }\r\n\r\n function noTailingSemicolon(s) {\r\n if (s.slice(-1) == ':') {\r\n return s.slice(0, -1);\r\n }\r\n return s;\r\n }\r\n\r\n function join(tree) {\r\n if (tree.length == 1) {\r\n return tree;\r\n }\r\n\r\n let unnamed = noTailingSemicolon(tree[0][0]);\r\n for (let i=1; i < tree[0].length; ++i) {\r\n if (tree[0][i-1].slice(-1) == ':') {\r\n unnamed += config.placeholder;\r\n }\r\n unnamed += config.placeholder;\r\n unnamed += noTailingSemicolon(tree[0][i]);\r\n }\r\n\r\n const last = tree[0][tree[0].length -1];\r\n if (tree[0].length == tree[1].length) {\r\n if (last.slice(-1) == ':') {\r\n unnamed += config.placeholder;\r\n }\r\n unnamed += config.placeholder;\r\n }\r\n return [unnamed, tree[1]];\r\n }\r\n\r\n function compile(query, paramsObj) {\r\n let tree;\r\n if (cache && (tree = cache.get(query))) {\r\n return toArrayParams(tree, paramsObj)\r\n }\r\n tree = join(parse(query));\r\n if(cache) {\r\n cache.set(query, tree);\r\n }\r\n return toArrayParams(tree, paramsObj);\r\n }\r\n\r\n compile.parse = parse;\r\n return compile;\r\n}\r\n\r\n// named :one :two to postgres-style numbered $1 $2 $3\r\nfunction toNumbered(q, params) {\r\n const tree = parse(q);\r\n const paramsArr = [];\r\n if (tree.length == 1) {\r\n return [tree[0], paramsArr];\r\n }\r\n\r\n const pIndexes = {};\r\n let pLastIndex = 0;\r\n let qs = '';\r\n let varIndex;\r\n const varNames = [];\r\n for (let i=0; i < tree[0].length; ++i) {\r\n varIndex = pIndexes[tree[1][i]];\r\n if (!varIndex) {\r\n varIndex = ++pLastIndex;\r\n pIndexes[tree[1][i]] = varIndex;\r\n }\r\n if (tree[1][i]) {\r\n varNames[varIndex - 1] = tree[1][i];\r\n qs += tree[0][i] + '$' + varIndex;\r\n } else {\r\n qs += tree[0][i];\r\n }\r\n }\r\n return [qs, varNames.map(n => params[n])];\r\n}\r\n\r\nmodule.exports = createCompiler;\r\nmodule.exports.toNumbered = toNumbered;\r\n","'use strict'\n\nmodule.exports = LRUCache\n\n// This will be a proper iterable 'Map' in engines that support it,\n// or a fakey-fake PseudoMap in older versions.\nvar Map = require('pseudomap')\nvar util = require('util')\n\n// A linked list to keep track of recently-used-ness\nvar Yallist = require('yallist')\n\n// use symbols if possible, otherwise just _props\nvar hasSymbol = typeof Symbol === 'function' && process.env._nodeLRUCacheForceNoSymbol !== '1'\nvar makeSymbol\nif (hasSymbol) {\n makeSymbol = function (key) {\n return Symbol(key)\n }\n} else {\n makeSymbol = function (key) {\n return '_' + key\n }\n}\n\nvar MAX = makeSymbol('max')\nvar LENGTH = makeSymbol('length')\nvar LENGTH_CALCULATOR = makeSymbol('lengthCalculator')\nvar ALLOW_STALE = makeSymbol('allowStale')\nvar MAX_AGE = makeSymbol('maxAge')\nvar DISPOSE = makeSymbol('dispose')\nvar NO_DISPOSE_ON_SET = makeSymbol('noDisposeOnSet')\nvar LRU_LIST = makeSymbol('lruList')\nvar CACHE = makeSymbol('cache')\n\nfunction naiveLength () { return 1 }\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nfunction LRUCache (options) {\n if (!(this instanceof LRUCache)) {\n return new LRUCache(options)\n }\n\n if (typeof options === 'number') {\n options = { max: options }\n }\n\n if (!options) {\n options = {}\n }\n\n var max = this[MAX] = options.max\n // Kind of weird to have a default max of Infinity, but oh well.\n if (!max ||\n !(typeof max === 'number') ||\n max <= 0) {\n this[MAX] = Infinity\n }\n\n var lc = options.length || naiveLength\n if (typeof lc !== 'function') {\n lc = naiveLength\n }\n this[LENGTH_CALCULATOR] = lc\n\n this[ALLOW_STALE] = options.stale || false\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this.reset()\n}\n\n// resize the cache when the max changes.\nObject.defineProperty(LRUCache.prototype, 'max', {\n set: function (mL) {\n if (!mL || !(typeof mL === 'number') || mL <= 0) {\n mL = Infinity\n }\n this[MAX] = mL\n trim(this)\n },\n get: function () {\n return this[MAX]\n },\n enumerable: true\n})\n\nObject.defineProperty(LRUCache.prototype, 'allowStale', {\n set: function (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n },\n get: function () {\n return this[ALLOW_STALE]\n },\n enumerable: true\n})\n\nObject.defineProperty(LRUCache.prototype, 'maxAge', {\n set: function (mA) {\n if (!mA || !(typeof mA === 'number') || mA < 0) {\n mA = 0\n }\n this[MAX_AGE] = mA\n trim(this)\n },\n get: function () {\n return this[MAX_AGE]\n },\n enumerable: true\n})\n\n// resize the cache when the lengthCalculator changes.\nObject.defineProperty(LRUCache.prototype, 'lengthCalculator', {\n set: function (lC) {\n if (typeof lC !== 'function') {\n lC = naiveLength\n }\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(function (hit) {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n }, this)\n }\n trim(this)\n },\n get: function () { return this[LENGTH_CALCULATOR] },\n enumerable: true\n})\n\nObject.defineProperty(LRUCache.prototype, 'length', {\n get: function () { return this[LENGTH] },\n enumerable: true\n})\n\nObject.defineProperty(LRUCache.prototype, 'itemCount', {\n get: function () { return this[LRU_LIST].length },\n enumerable: true\n})\n\nLRUCache.prototype.rforEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this[LRU_LIST].tail; walker !== null;) {\n var prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n}\n\nfunction forEachStep (self, fn, node, thisp) {\n var hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE]) {\n hit = undefined\n }\n }\n if (hit) {\n fn.call(thisp, hit.value, hit.key, self)\n }\n}\n\nLRUCache.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this[LRU_LIST].head; walker !== null;) {\n var next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n}\n\nLRUCache.prototype.keys = function () {\n return this[LRU_LIST].toArray().map(function (k) {\n return k.key\n }, this)\n}\n\nLRUCache.prototype.values = function () {\n return this[LRU_LIST].toArray().map(function (k) {\n return k.value\n }, this)\n}\n\nLRUCache.prototype.reset = function () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(function (hit) {\n this[DISPOSE](hit.key, hit.value)\n }, this)\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n}\n\nLRUCache.prototype.dump = function () {\n return this[LRU_LIST].map(function (hit) {\n if (!isStale(this, hit)) {\n return {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }\n }\n }, this).toArray().filter(function (h) {\n return h\n })\n}\n\nLRUCache.prototype.dumpLru = function () {\n return this[LRU_LIST]\n}\n\n/* istanbul ignore next */\nLRUCache.prototype.inspect = function (n, opts) {\n var str = 'LRUCache {'\n var extras = false\n\n var as = this[ALLOW_STALE]\n if (as) {\n str += '\\n allowStale: true'\n extras = true\n }\n\n var max = this[MAX]\n if (max && max !== Infinity) {\n if (extras) {\n str += ','\n }\n str += '\\n max: ' + util.inspect(max, opts)\n extras = true\n }\n\n var maxAge = this[MAX_AGE]\n if (maxAge) {\n if (extras) {\n str += ','\n }\n str += '\\n maxAge: ' + util.inspect(maxAge, opts)\n extras = true\n }\n\n var lc = this[LENGTH_CALCULATOR]\n if (lc && lc !== naiveLength) {\n if (extras) {\n str += ','\n }\n str += '\\n length: ' + util.inspect(this[LENGTH], opts)\n extras = true\n }\n\n var didFirst = false\n this[LRU_LIST].forEach(function (item) {\n if (didFirst) {\n str += ',\\n '\n } else {\n if (extras) {\n str += ',\\n'\n }\n didFirst = true\n str += '\\n '\n }\n var key = util.inspect(item.key).split('\\n').join('\\n ')\n var val = { value: item.value }\n if (item.maxAge !== maxAge) {\n val.maxAge = item.maxAge\n }\n if (lc !== naiveLength) {\n val.length = item.length\n }\n if (isStale(this, item)) {\n val.stale = true\n }\n\n val = util.inspect(val, opts).split('\\n').join('\\n ')\n str += key + ' => ' + val\n })\n\n if (didFirst || extras) {\n str += '\\n'\n }\n str += '}'\n\n return str\n}\n\nLRUCache.prototype.set = function (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n var now = maxAge ? Date.now() : 0\n var len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n var node = this[CACHE].get(key)\n var item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET]) {\n this[DISPOSE](key, item.value)\n }\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n var hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE]) {\n this[DISPOSE](key, value)\n }\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n}\n\nLRUCache.prototype.has = function (key) {\n if (!this[CACHE].has(key)) return false\n var hit = this[CACHE].get(key).value\n if (isStale(this, hit)) {\n return false\n }\n return true\n}\n\nLRUCache.prototype.get = function (key) {\n return get(this, key, true)\n}\n\nLRUCache.prototype.peek = function (key) {\n return get(this, key, false)\n}\n\nLRUCache.prototype.pop = function () {\n var node = this[LRU_LIST].tail\n if (!node) return null\n del(this, node)\n return node.value\n}\n\nLRUCache.prototype.del = function (key) {\n del(this, this[CACHE].get(key))\n}\n\nLRUCache.prototype.load = function (arr) {\n // reset the cache\n this.reset()\n\n var now = Date.now()\n // A previous serialized cache has the most recent items first\n for (var l = arr.length - 1; l >= 0; l--) {\n var hit = arr[l]\n var expiresAt = hit.e || 0\n if (expiresAt === 0) {\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n } else {\n var maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n}\n\nLRUCache.prototype.prune = function () {\n var self = this\n this[CACHE].forEach(function (value, key) {\n get(self, key, false)\n })\n}\n\nfunction get (self, key, doUse) {\n var node = self[CACHE].get(key)\n if (node) {\n var hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE]) hit = undefined\n } else {\n if (doUse) {\n self[LRU_LIST].unshiftNode(node)\n }\n }\n if (hit) hit = hit.value\n }\n return hit\n}\n\nfunction isStale (self, hit) {\n if (!hit || (!hit.maxAge && !self[MAX_AGE])) {\n return false\n }\n var stale = false\n var diff = Date.now() - hit.now\n if (hit.maxAge) {\n stale = diff > hit.maxAge\n } else {\n stale = self[MAX_AGE] && (diff > self[MAX_AGE])\n }\n return stale\n}\n\nfunction trim (self) {\n if (self[LENGTH] > self[MAX]) {\n for (var walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n var prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nfunction del (self, node) {\n if (node) {\n var hit = node.value\n if (self[DISPOSE]) {\n self[DISPOSE](hit.key, hit.value)\n }\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\n// classy, since V8 prefers predictable objects.\nfunction Entry (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n}\n","if (process.env.npm_package_name === 'pseudomap' &&\n process.env.npm_lifecycle_script === 'test')\n process.env.TEST_PSEUDOMAP = 'true'\n\nif (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) {\n module.exports = Map\n} else {\n module.exports = require('./pseudomap')\n}\n","var hasOwnProperty = Object.prototype.hasOwnProperty\n\nmodule.exports = PseudoMap\n\nfunction PseudoMap (set) {\n if (!(this instanceof PseudoMap)) // whyyyyyyy\n throw new TypeError(\"Constructor PseudoMap requires 'new'\")\n\n this.clear()\n\n if (set) {\n if ((set instanceof PseudoMap) ||\n (typeof Map === 'function' && set instanceof Map))\n set.forEach(function (value, key) {\n this.set(key, value)\n }, this)\n else if (Array.isArray(set))\n set.forEach(function (kv) {\n this.set(kv[0], kv[1])\n }, this)\n else\n throw new TypeError('invalid argument')\n }\n}\n\nPseudoMap.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n Object.keys(this._data).forEach(function (k) {\n if (k !== 'size')\n fn.call(thisp, this._data[k].value, this._data[k].key)\n }, this)\n}\n\nPseudoMap.prototype.has = function (k) {\n return !!find(this._data, k)\n}\n\nPseudoMap.prototype.get = function (k) {\n var res = find(this._data, k)\n return res && res.value\n}\n\nPseudoMap.prototype.set = function (k, v) {\n set(this._data, k, v)\n}\n\nPseudoMap.prototype.delete = function (k) {\n var res = find(this._data, k)\n if (res) {\n delete this._data[res._index]\n this._data.size--\n }\n}\n\nPseudoMap.prototype.clear = function () {\n var data = Object.create(null)\n data.size = 0\n\n Object.defineProperty(this, '_data', {\n value: data,\n enumerable: false,\n configurable: true,\n writable: false\n })\n}\n\nObject.defineProperty(PseudoMap.prototype, 'size', {\n get: function () {\n return this._data.size\n },\n set: function (n) {},\n enumerable: true,\n configurable: true\n})\n\nPseudoMap.prototype.values =\nPseudoMap.prototype.keys =\nPseudoMap.prototype.entries = function () {\n throw new Error('iterators are not implemented in this version')\n}\n\n// Either identical, or both NaN\nfunction same (a, b) {\n return a === b || a !== a && b !== b\n}\n\nfunction Entry (k, v, i) {\n this.key = k\n this.value = v\n this._index = i\n}\n\nfunction find (data, k) {\n for (var i = 0, s = '_' + k, key = s;\n hasOwnProperty.call(data, key);\n key = s + i++) {\n if (same(data[key].key, k))\n return data[key]\n }\n}\n\nfunction set (data, k, v) {\n for (var i = 0, s = '_' + k, key = s;\n hasOwnProperty.call(data, key);\n key = s + i++) {\n if (same(data[key].key, k)) {\n data[key].value = v\n return\n }\n }\n data.size++\n data[key] = new Entry(k, v, key)\n}\n","module.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n","'use strict';\n\nconst net = require('net');\nconst EventEmitter = require('events').EventEmitter;\n\nconst Connection = require('./connection');\nconst ConnectionConfig = require('./connection_config');\n\n// TODO: inherit Server from net.Server\nclass Server extends EventEmitter {\n constructor() {\n super();\n this.connections = [];\n this._server = net.createServer(this._handleConnection.bind(this));\n }\n\n _handleConnection(socket) {\n const connectionConfig = new ConnectionConfig({\n stream: socket,\n isServer: true\n });\n const connection = new Connection({ config: connectionConfig });\n this.emit('connection', connection);\n }\n\n listen(port) {\n this._port = port;\n this._server.listen.apply(this._server, arguments);\n return this;\n }\n\n close(cb) {\n this._server.close(cb);\n }\n}\n\nmodule.exports = Server;\n","export const CONNECTION_STRING = 'mysql_connection_string';\ninterface Map {\n [key: string]: string;\n}\n\n/**\n * parse the connection string from the format server=127.0.0.1;database=es_extended;userid=user;password=pass\n * @param connectionString - mysql_connection_string value\n */\nexport function parseSemiColonFormat(connectionString: string): Map {\n const parts = connectionString\n .replace(/(?:host(?:name)|ip|server|data\\s?source|addr(?:ess)?)=/gi, 'host=')\n .replace(/(?:user\\s?(?:id|name)?|uid)=/gi, 'user=')\n .replace(/(?:pwd|pass)=/gi, 'password=')\n .replace(/(?:db)=/gi, 'database=')\n .split(';');\n\n if (parts.length === 1) {\n throw new Error(\n `Connection string ${connectionString} is in the incorrect format. Please follow the README.`,\n );\n }\n\n return parts.reduce>((connectionInfo, parameter) => {\n const [key, value] = parameter.split('=');\n if (value) connectionInfo[key] = value;\n return connectionInfo;\n }, {});\n}\n","/**\n * winston.js: Top-level include defining Winston.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst logform = require('logform');\nconst { warn } = require('./winston/common');\n\n/**\n * Setup to expose.\n * @type {Object}\n */\nconst winston = exports;\n\n/**\n * Expose version. Use `require` method for `webpack` support.\n * @type {string}\n */\nwinston.version = require('../package.json').version;\n/**\n * Include transports defined by default by winston\n * @type {Array}\n */\nwinston.transports = require('./winston/transports');\n/**\n * Expose utility methods\n * @type {Object}\n */\nwinston.config = require('./winston/config');\n/**\n * Hoist format-related functionality from logform.\n * @type {Object}\n */\nwinston.addColors = logform.levels;\n/**\n * Hoist format-related functionality from logform.\n * @type {Object}\n */\nwinston.format = logform.format;\n/**\n * Expose core Logging-related prototypes.\n * @type {function}\n */\nwinston.createLogger = require('./winston/create-logger');\n/**\n * Expose core Logging-related prototypes.\n * @type {Object}\n */\nwinston.ExceptionHandler = require('./winston/exception-handler');\n/**\n * Expose core Logging-related prototypes.\n * @type {Object}\n */\nwinston.RejectionHandler = require('./winston/rejection-handler');\n/**\n * Expose core Logging-related prototypes.\n * @type {Container}\n */\nwinston.Container = require('./winston/container');\n/**\n * Expose core Logging-related prototypes.\n * @type {Object}\n */\nwinston.Transport = require('winston-transport');\n/**\n * We create and expose a default `Container` to `winston.loggers` so that the\n * programmer may manage multiple `winston.Logger` instances without any\n * additional overhead.\n * @example\n * // some-file1.js\n * const logger = require('winston').loggers.get('something');\n *\n * // some-file2.js\n * const logger = require('winston').loggers.get('something');\n */\nwinston.loggers = new winston.Container();\n\n/**\n * We create and expose a 'defaultLogger' so that the programmer may do the\n * following without the need to create an instance of winston.Logger directly:\n * @example\n * const winston = require('winston');\n * winston.log('info', 'some message');\n * winston.error('some error');\n */\nconst defaultLogger = winston.createLogger();\n\n// Pass through the target methods onto `winston.\nObject.keys(winston.config.npm.levels)\n .concat([\n 'log',\n 'query',\n 'stream',\n 'add',\n 'remove',\n 'clear',\n 'profile',\n 'startTimer',\n 'handleExceptions',\n 'unhandleExceptions',\n 'handleRejections',\n 'unhandleRejections',\n 'configure',\n 'child'\n ])\n .forEach(\n method => (winston[method] = (...args) => defaultLogger[method](...args))\n );\n\n/**\n * Define getter / setter for the default logger level which need to be exposed\n * by winston.\n * @type {string}\n */\nObject.defineProperty(winston, 'level', {\n get() {\n return defaultLogger.level;\n },\n set(val) {\n defaultLogger.level = val;\n }\n});\n\n/**\n * Define getter for `exceptions` which replaces `handleExceptions` and\n * `unhandleExceptions`.\n * @type {Object}\n */\nObject.defineProperty(winston, 'exceptions', {\n get() {\n return defaultLogger.exceptions;\n }\n});\n\n/**\n * Define getters / setters for appropriate properties of the default logger\n * which need to be exposed by winston.\n * @type {Logger}\n */\n['exitOnError'].forEach(prop => {\n Object.defineProperty(winston, prop, {\n get() {\n return defaultLogger[prop];\n },\n set(val) {\n defaultLogger[prop] = val;\n }\n });\n});\n\n/**\n * The default transports and exceptionHandlers for the default winston logger.\n * @type {Object}\n */\nObject.defineProperty(winston, 'default', {\n get() {\n return {\n exceptionHandlers: defaultLogger.exceptionHandlers,\n rejectionHandlers: defaultLogger.rejectionHandlers,\n transports: defaultLogger.transports\n };\n }\n});\n\n// Have friendlier breakage notices for properties that were exposed by default\n// on winston < 3.0.\nwarn.deprecated(winston, 'setLevels');\nwarn.forFunctions(winston, 'useFormat', ['cli']);\nwarn.forProperties(winston, 'useFormat', ['padLevels', 'stripColors']);\nwarn.forFunctions(winston, 'deprecated', [\n 'addRewriter',\n 'addFilter',\n 'clone',\n 'extend'\n]);\nwarn.forProperties(winston, 'deprecated', ['emitErrs', 'levelLength']);\n// Throw a useful error when users attempt to run `new winston.Logger`.\nwarn.moved(winston, 'createLogger', 'Logger');\n","/*\n\nThe MIT License (MIT)\n\nOriginal Library\n - Copyright (c) Marak Squires\n\nAdditional functionality\n - Copyright (c) Sindre Sorhus (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n*/\n\nvar colors = {};\nmodule['exports'] = colors;\n\ncolors.themes = {};\n\nvar util = require('util');\nvar ansiStyles = colors.styles = require('./styles');\nvar defineProps = Object.defineProperties;\nvar newLineRegex = new RegExp(/[\\r\\n]+/g);\n\ncolors.supportsColor = require('./system/supports-colors').supportsColor;\n\nif (typeof colors.enabled === 'undefined') {\n colors.enabled = colors.supportsColor() !== false;\n}\n\ncolors.enable = function() {\n colors.enabled = true;\n};\n\ncolors.disable = function() {\n colors.enabled = false;\n};\n\ncolors.stripColors = colors.strip = function(str) {\n return ('' + str).replace(/\\x1B\\[\\d+m/g, '');\n};\n\n// eslint-disable-next-line no-unused-vars\nvar stylize = colors.stylize = function stylize(str, style) {\n if (!colors.enabled) {\n return str+'';\n }\n\n var styleMap = ansiStyles[style];\n\n // Stylize should work for non-ANSI styles, too\n if(!styleMap && style in colors){\n // Style maps like trap operate as functions on strings;\n // they don't have properties like open or close.\n return colors[style](str);\n }\n\n return styleMap.open + str + styleMap.close;\n};\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\nvar escapeStringRegexp = function(str) {\n if (typeof str !== 'string') {\n throw new TypeError('Expected a string');\n }\n return str.replace(matchOperatorsRe, '\\\\$&');\n};\n\nfunction build(_styles) {\n var builder = function builder() {\n return applyStyle.apply(builder, arguments);\n };\n builder._styles = _styles;\n // __proto__ is used because we must return a function, but there is\n // no way to create a function with a different prototype.\n builder.__proto__ = proto;\n return builder;\n}\n\nvar styles = (function() {\n var ret = {};\n ansiStyles.grey = ansiStyles.gray;\n Object.keys(ansiStyles).forEach(function(key) {\n ansiStyles[key].closeRe =\n new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');\n ret[key] = {\n get: function() {\n return build(this._styles.concat(key));\n },\n };\n });\n return ret;\n})();\n\nvar proto = defineProps(function colors() {}, styles);\n\nfunction applyStyle() {\n var args = Array.prototype.slice.call(arguments);\n\n var str = args.map(function(arg) {\n // Use weak equality check so we can colorize null/undefined in safe mode\n if (arg != null && arg.constructor === String) {\n return arg;\n } else {\n return util.inspect(arg);\n }\n }).join(' ');\n\n if (!colors.enabled || !str) {\n return str;\n }\n\n var newLinesPresent = str.indexOf('\\n') != -1;\n\n var nestedStyles = this._styles;\n\n var i = nestedStyles.length;\n while (i--) {\n var code = ansiStyles[nestedStyles[i]];\n str = code.open + str.replace(code.closeRe, code.open) + code.close;\n if (newLinesPresent) {\n str = str.replace(newLineRegex, function(match) {\n return code.close + match + code.open;\n });\n }\n }\n\n return str;\n}\n\ncolors.setTheme = function(theme) {\n if (typeof theme === 'string') {\n console.log('colors.setTheme now only accepts an object, not a string. ' +\n 'If you are trying to set a theme from a file, it is now your (the ' +\n 'caller\\'s) responsibility to require the file. The old syntax ' +\n 'looked like colors.setTheme(__dirname + ' +\n '\\'/../themes/generic-logging.js\\'); The new syntax looks like '+\n 'colors.setTheme(require(__dirname + ' +\n '\\'/../themes/generic-logging.js\\'));');\n return;\n }\n for (var style in theme) {\n (function(style) {\n colors[style] = function(str) {\n if (typeof theme[style] === 'object') {\n var out = str;\n for (var i in theme[style]) {\n out = colors[theme[style][i]](out);\n }\n return out;\n }\n return colors[theme[style]](str);\n };\n })(style);\n }\n};\n\nfunction init() {\n var ret = {};\n Object.keys(styles).forEach(function(name) {\n ret[name] = {\n get: function() {\n return build([name]);\n },\n };\n });\n return ret;\n}\n\nvar sequencer = function sequencer(map, str) {\n var exploded = str.split('');\n exploded = exploded.map(map);\n return exploded.join('');\n};\n\n// custom formatter methods\ncolors.trap = require('./custom/trap');\ncolors.zalgo = require('./custom/zalgo');\n\n// maps\ncolors.maps = {};\ncolors.maps.america = require('./maps/america')(colors);\ncolors.maps.zebra = require('./maps/zebra')(colors);\ncolors.maps.rainbow = require('./maps/rainbow')(colors);\ncolors.maps.random = require('./maps/random')(colors);\n\nfor (var map in colors.maps) {\n (function(map) {\n colors[map] = function(str) {\n return sequencer(colors.maps[map], str);\n };\n })(map);\n}\n\ndefineProps(colors, init());\n","/*\nThe MIT License (MIT)\n\nCopyright (c) Sindre Sorhus (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n*/\n\nvar styles = {};\nmodule['exports'] = styles;\n\nvar codes = {\n reset: [0, 0],\n\n bold: [1, 22],\n dim: [2, 22],\n italic: [3, 23],\n underline: [4, 24],\n inverse: [7, 27],\n hidden: [8, 28],\n strikethrough: [9, 29],\n\n black: [30, 39],\n red: [31, 39],\n green: [32, 39],\n yellow: [33, 39],\n blue: [34, 39],\n magenta: [35, 39],\n cyan: [36, 39],\n white: [37, 39],\n gray: [90, 39],\n grey: [90, 39],\n\n brightRed: [91, 39],\n brightGreen: [92, 39],\n brightYellow: [93, 39],\n brightBlue: [94, 39],\n brightMagenta: [95, 39],\n brightCyan: [96, 39],\n brightWhite: [97, 39],\n\n bgBlack: [40, 49],\n bgRed: [41, 49],\n bgGreen: [42, 49],\n bgYellow: [43, 49],\n bgBlue: [44, 49],\n bgMagenta: [45, 49],\n bgCyan: [46, 49],\n bgWhite: [47, 49],\n bgGray: [100, 49],\n bgGrey: [100, 49],\n\n bgBrightRed: [101, 49],\n bgBrightGreen: [102, 49],\n bgBrightYellow: [103, 49],\n bgBrightBlue: [104, 49],\n bgBrightMagenta: [105, 49],\n bgBrightCyan: [106, 49],\n bgBrightWhite: [107, 49],\n\n // legacy styles for colors pre v1.0.0\n blackBG: [40, 49],\n redBG: [41, 49],\n greenBG: [42, 49],\n yellowBG: [43, 49],\n blueBG: [44, 49],\n magentaBG: [45, 49],\n cyanBG: [46, 49],\n whiteBG: [47, 49],\n\n};\n\nObject.keys(codes).forEach(function(key) {\n var val = codes[key];\n var style = styles[key] = [];\n style.open = '\\u001b[' + val[0] + 'm';\n style.close = '\\u001b[' + val[1] + 'm';\n});\n","/*\nThe MIT License (MIT)\n\nCopyright (c) Sindre Sorhus (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n*/\n\n'use strict';\n\nvar os = require('os');\nvar hasFlag = require('./has-flag.js');\n\nvar env = process.env;\n\nvar forceColor = void 0;\nif (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false')) {\n forceColor = false;\n} else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true')\n || hasFlag('color=always')) {\n forceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n forceColor = env.FORCE_COLOR.length === 0\n || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n if (level === 0) {\n return false;\n }\n\n return {\n level: level,\n hasBasic: true,\n has256: level >= 2,\n has16m: level >= 3,\n };\n}\n\nfunction supportsColor(stream) {\n if (forceColor === false) {\n return 0;\n }\n\n if (hasFlag('color=16m') || hasFlag('color=full')\n || hasFlag('color=truecolor')) {\n return 3;\n }\n\n if (hasFlag('color=256')) {\n return 2;\n }\n\n if (stream && !stream.isTTY && forceColor !== true) {\n return 0;\n }\n\n var min = forceColor ? 1 : 0;\n\n if (process.platform === 'win32') {\n // Node.js 7.5.0 is the first version of Node.js to include a patch to\n // libuv that enables 256 color output on Windows. Anything earlier and it\n // won't work. However, here we target Node.js 8 at minimum as it is an LTS\n // release, and Node.js 7 is not. Windows 10 build 10586 is the first\n // Windows release that supports 256 colors. Windows 10 build 14931 is the\n // first release that supports 16m/TrueColor.\n var osRelease = os.release().split('.');\n if (Number(process.versions.node.split('.')[0]) >= 8\n && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {\n return Number(osRelease[2]) >= 14931 ? 3 : 2;\n }\n\n return 1;\n }\n\n if ('CI' in env) {\n if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(function(sign) {\n return sign in env;\n }) || env.CI_NAME === 'codeship') {\n return 1;\n }\n\n return min;\n }\n\n if ('TEAMCITY_VERSION' in env) {\n return (/^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0\n );\n }\n\n if ('TERM_PROGRAM' in env) {\n var version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n switch (env.TERM_PROGRAM) {\n case 'iTerm.app':\n return version >= 3 ? 3 : 2;\n case 'Hyper':\n return 3;\n case 'Apple_Terminal':\n return 2;\n // No default\n }\n }\n\n if (/-256(color)?$/i.test(env.TERM)) {\n return 2;\n }\n\n if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n return 1;\n }\n\n if ('COLORTERM' in env) {\n return 1;\n }\n\n if (env.TERM === 'dumb') {\n return min;\n }\n\n return min;\n}\n\nfunction getSupportLevel(stream) {\n var level = supportsColor(stream);\n return translateLevel(level);\n}\n\nmodule.exports = {\n supportsColor: getSupportLevel,\n stdout: getSupportLevel(process.stdout),\n stderr: getSupportLevel(process.stderr),\n};\n","/*\nMIT License\n\nCopyright (c) Sindre Sorhus (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\n'use strict';\n\nmodule.exports = function(flag, argv) {\n argv = argv || process.argv;\n\n var terminatorPos = argv.indexOf('--');\n var prefix = /^-{1,2}/.test(flag) ? '' : '--';\n var pos = argv.indexOf(prefix + flag);\n\n return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n","module['exports'] = function runTheTrap(text, options) {\n var result = '';\n text = text || 'Run the trap, drop the bass';\n text = text.split('');\n var trap = {\n a: ['\\u0040', '\\u0104', '\\u023a', '\\u0245', '\\u0394', '\\u039b', '\\u0414'],\n b: ['\\u00df', '\\u0181', '\\u0243', '\\u026e', '\\u03b2', '\\u0e3f'],\n c: ['\\u00a9', '\\u023b', '\\u03fe'],\n d: ['\\u00d0', '\\u018a', '\\u0500', '\\u0501', '\\u0502', '\\u0503'],\n e: ['\\u00cb', '\\u0115', '\\u018e', '\\u0258', '\\u03a3', '\\u03be', '\\u04bc',\n '\\u0a6c'],\n f: ['\\u04fa'],\n g: ['\\u0262'],\n h: ['\\u0126', '\\u0195', '\\u04a2', '\\u04ba', '\\u04c7', '\\u050a'],\n i: ['\\u0f0f'],\n j: ['\\u0134'],\n k: ['\\u0138', '\\u04a0', '\\u04c3', '\\u051e'],\n l: ['\\u0139'],\n m: ['\\u028d', '\\u04cd', '\\u04ce', '\\u0520', '\\u0521', '\\u0d69'],\n n: ['\\u00d1', '\\u014b', '\\u019d', '\\u0376', '\\u03a0', '\\u048a'],\n o: ['\\u00d8', '\\u00f5', '\\u00f8', '\\u01fe', '\\u0298', '\\u047a', '\\u05dd',\n '\\u06dd', '\\u0e4f'],\n p: ['\\u01f7', '\\u048e'],\n q: ['\\u09cd'],\n r: ['\\u00ae', '\\u01a6', '\\u0210', '\\u024c', '\\u0280', '\\u042f'],\n s: ['\\u00a7', '\\u03de', '\\u03df', '\\u03e8'],\n t: ['\\u0141', '\\u0166', '\\u0373'],\n u: ['\\u01b1', '\\u054d'],\n v: ['\\u05d8'],\n w: ['\\u0428', '\\u0460', '\\u047c', '\\u0d70'],\n x: ['\\u04b2', '\\u04fe', '\\u04fc', '\\u04fd'],\n y: ['\\u00a5', '\\u04b0', '\\u04cb'],\n z: ['\\u01b5', '\\u0240'],\n };\n text.forEach(function(c) {\n c = c.toLowerCase();\n var chars = trap[c] || [' '];\n var rand = Math.floor(Math.random() * chars.length);\n if (typeof trap[c] !== 'undefined') {\n result += trap[c][rand];\n } else {\n result += c;\n }\n });\n return result;\n};\n","// please no\nmodule['exports'] = function zalgo(text, options) {\n text = text || ' he is here ';\n var soul = {\n 'up': [\n '̍', '̎', '̄', '̅',\n '̿', '̑', '̆', '̐',\n '͒', '͗', '͑', '̇',\n '̈', '̊', '͂', '̓',\n '̈', '͊', '͋', '͌',\n '̃', '̂', '̌', '͐',\n '̀', '́', '̋', '̏',\n '̒', '̓', '̔', '̽',\n '̉', 'ͣ', 'ͤ', 'ͥ',\n 'ͦ', 'ͧ', 'ͨ', 'ͩ',\n 'ͪ', 'ͫ', 'ͬ', 'ͭ',\n 'ͮ', 'ͯ', '̾', '͛',\n '͆', '̚',\n ],\n 'down': [\n '̖', '̗', '̘', '̙',\n '̜', '̝', '̞', '̟',\n '̠', '̤', '̥', '̦',\n '̩', '̪', '̫', '̬',\n '̭', '̮', '̯', '̰',\n '̱', '̲', '̳', '̹',\n '̺', '̻', '̼', 'ͅ',\n '͇', '͈', '͉', '͍',\n '͎', '͓', '͔', '͕',\n '͖', '͙', '͚', '̣',\n ],\n 'mid': [\n '̕', '̛', '̀', '́',\n '͘', '̡', '̢', '̧',\n '̨', '̴', '̵', '̶',\n '͜', '͝', '͞',\n '͟', '͠', '͢', '̸',\n '̷', '͡', ' ҉',\n ],\n };\n var all = [].concat(soul.up, soul.down, soul.mid);\n\n function randomNumber(range) {\n var r = Math.floor(Math.random() * range);\n return r;\n }\n\n function isChar(character) {\n var bool = false;\n all.filter(function(i) {\n bool = (i === character);\n });\n return bool;\n }\n\n\n function heComes(text, options) {\n var result = '';\n var counts;\n var l;\n options = options || {};\n options['up'] =\n typeof options['up'] !== 'undefined' ? options['up'] : true;\n options['mid'] =\n typeof options['mid'] !== 'undefined' ? options['mid'] : true;\n options['down'] =\n typeof options['down'] !== 'undefined' ? options['down'] : true;\n options['size'] =\n typeof options['size'] !== 'undefined' ? options['size'] : 'maxi';\n text = text.split('');\n for (l in text) {\n if (isChar(l)) {\n continue;\n }\n result = result + text[l];\n counts = {'up': 0, 'down': 0, 'mid': 0};\n switch (options.size) {\n case 'mini':\n counts.up = randomNumber(8);\n counts.mid = randomNumber(2);\n counts.down = randomNumber(8);\n break;\n case 'maxi':\n counts.up = randomNumber(16) + 3;\n counts.mid = randomNumber(4) + 1;\n counts.down = randomNumber(64) + 3;\n break;\n default:\n counts.up = randomNumber(8) + 1;\n counts.mid = randomNumber(6) / 2;\n counts.down = randomNumber(8) + 1;\n break;\n }\n\n var arr = ['up', 'mid', 'down'];\n for (var d in arr) {\n var index = arr[d];\n for (var i = 0; i <= counts[index]; i++) {\n if (options[index]) {\n result = result + soul[index][randomNumber(soul[index].length)];\n }\n }\n }\n }\n return result;\n }\n // don't summon him\n return heComes(text, options);\n};\n\n","module['exports'] = function(colors) {\n return function(letter, i, exploded) {\n if (letter === ' ') return letter;\n switch (i%3) {\n case 0: return colors.red(letter);\n case 1: return colors.white(letter);\n case 2: return colors.blue(letter);\n }\n };\n};\n","module['exports'] = function(colors) {\n return function(letter, i, exploded) {\n return i % 2 === 0 ? letter : colors.inverse(letter);\n };\n};\n","module['exports'] = function(colors) {\n // RoY G BiV\n var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta'];\n return function(letter, i, exploded) {\n if (letter === ' ') {\n return letter;\n } else {\n return colors[rainbowColors[i++ % rainbowColors.length]](letter);\n }\n };\n};\n\n","module['exports'] = function(colors) {\n var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green',\n 'blue', 'white', 'cyan', 'magenta', 'brightYellow', 'brightRed',\n 'brightGreen', 'brightBlue', 'brightWhite', 'brightCyan', 'brightMagenta'];\n return function(letter, i, exploded) {\n return letter === ' ' ? letter :\n colors[\n available[Math.round(Math.random() * (available.length - 2))]\n ](letter);\n };\n};\n","/**\n * index.js: Default settings for all levels that winston knows about.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * Export config set for the CLI.\n * @type {Object}\n */\nObject.defineProperty(exports, 'cli', {\n value: require('./cli')\n});\n\n/**\n * Export config set for npm.\n * @type {Object}\n */\nObject.defineProperty(exports, 'npm', {\n value: require('./npm')\n});\n\n/**\n * Export config set for the syslog.\n * @type {Object}\n */\nObject.defineProperty(exports, 'syslog', {\n value: require('./syslog')\n});\n","/**\n * cli.js: Config that conform to commonly used CLI logging levels.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * Default levels for the CLI configuration.\n * @type {Object}\n */\nexports.levels = {\n error: 0,\n warn: 1,\n help: 2,\n data: 3,\n info: 4,\n debug: 5,\n prompt: 6,\n verbose: 7,\n input: 8,\n silly: 9\n};\n\n/**\n * Default colors for the CLI configuration.\n * @type {Object}\n */\nexports.colors = {\n error: 'red',\n warn: 'yellow',\n help: 'cyan',\n data: 'grey',\n info: 'green',\n debug: 'blue',\n prompt: 'grey',\n verbose: 'cyan',\n input: 'grey',\n silly: 'magenta'\n};\n","/**\n * npm.js: Config that conform to npm logging levels.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * Default levels for the npm configuration.\n * @type {Object}\n */\nexports.levels = {\n error: 0,\n warn: 1,\n info: 2,\n http: 3,\n verbose: 4,\n debug: 5,\n silly: 6\n};\n\n/**\n * Default levels for the npm configuration.\n * @type {Object}\n */\nexports.colors = {\n error: 'red',\n warn: 'yellow',\n info: 'green',\n http: 'green',\n verbose: 'cyan',\n debug: 'blue',\n silly: 'magenta'\n};\n","/**\n * syslog.js: Config that conform to syslog logging levels.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * Default levels for the syslog configuration.\n * @type {Object}\n */\nexports.levels = {\n emerg: 0,\n alert: 1,\n crit: 2,\n error: 3,\n warning: 4,\n notice: 5,\n info: 6,\n debug: 7\n};\n\n/**\n * Default levels for the syslog configuration.\n * @type {Object}\n */\nexports.colors = {\n emerg: 'red',\n alert: 'yellow',\n crit: 'red',\n error: 'red',\n warning: 'red',\n notice: 'yellow',\n info: 'green',\n debug: 'blue'\n};\n","var map = {\n\t\"./align.js\": 139,\n\t\"./browser.js\": 302,\n\t\"./cli.js\": 140,\n\t\"./colorize.js\": 68,\n\t\"./combine.js\": 141,\n\t\"./dist/align.js\": 90,\n\t\"./dist/browser.js\": 152,\n\t\"./dist/cli.js\": 91,\n\t\"./dist/colorize.js\": 57,\n\t\"./dist/combine.js\": 92,\n\t\"./dist/errors.js\": 153,\n\t\"./dist/format.js\": 11,\n\t\"./dist/index.js\": 154,\n\t\"./dist/json.js\": 93,\n\t\"./dist/label.js\": 94,\n\t\"./dist/levels.js\": 70,\n\t\"./dist/logstash.js\": 95,\n\t\"./dist/metadata.js\": 96,\n\t\"./dist/ms.js\": 155,\n\t\"./dist/pad-levels.js\": 71,\n\t\"./dist/pretty-print.js\": 97,\n\t\"./dist/printf.js\": 98,\n\t\"./dist/simple.js\": 99,\n\t\"./dist/splat.js\": 100,\n\t\"./dist/timestamp.js\": 101,\n\t\"./dist/uncolorize.js\": 102,\n\t\"./errors.js\": 304,\n\t\"./examples/combine.js\": 305,\n\t\"./examples/filter.js\": 306,\n\t\"./examples/invalid.js\": 307,\n\t\"./examples/metadata.js\": 308,\n\t\"./examples/padLevels.js\": 309,\n\t\"./examples/volume.js\": 310,\n\t\"./format.js\": 13,\n\t\"./index.js\": 29,\n\t\"./json.js\": 89,\n\t\"./label.js\": 142,\n\t\"./levels.js\": 87,\n\t\"./logstash.js\": 143,\n\t\"./metadata.js\": 144,\n\t\"./ms.js\": 311,\n\t\"./pad-levels.js\": 88,\n\t\"./pretty-print.js\": 145,\n\t\"./printf.js\": 146,\n\t\"./simple.js\": 147,\n\t\"./splat.js\": 148,\n\t\"./timestamp.js\": 149,\n\t\"./uncolorize.js\": 151\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 301;","'use strict';\n\n/*\n * @api public\n * @property {function} format\n * Both the construction method and set of exposed\n * formats.\n */\nconst format = exports.format = require('././format');\n\n/*\n * @api public\n * @method {function} levels\n * Registers the specified levels with logform.\n */\nexports.levels = require('././levels');\n\n//\n// Setup all transports as eager-loaded exports\n// so that they are static for the bundlers.\n//\nObject.defineProperty(format, 'align', { value: require('./align') });\nObject.defineProperty(format, 'cli', { value: require('./cli') });\nObject.defineProperty(format, 'combine', { value: require('./combine') });\nObject.defineProperty(format, 'colorize', { value: require('./colorize') });\nObject.defineProperty(format, 'json', { value: require('./json') });\nObject.defineProperty(format, 'label', { value: require('./label') });\nObject.defineProperty(format, 'logstash', { value: require('./logstash') });\nObject.defineProperty(format, 'metadata', { value: require('./metadata') });\nObject.defineProperty(format, 'padLevels', { value: require('./pad-levels') });\nObject.defineProperty(format, 'prettyPrint', { value: require('./pretty-print') });\nObject.defineProperty(format, 'printf', { value: require('./printf') });\nObject.defineProperty(format, 'simple', { value: require('./simple') });\nObject.defineProperty(format, 'splat', { value: require('./splat') });\nObject.defineProperty(format, 'timestamp', { value: require('./timestamp') });\nObject.defineProperty(format, 'uncolorize', { value: require('./uncolorize') });\n","var map = {\n\t\"./align.js\": 90,\n\t\"./browser.js\": 152,\n\t\"./cli.js\": 91,\n\t\"./colorize.js\": 57,\n\t\"./combine.js\": 92,\n\t\"./errors.js\": 153,\n\t\"./format.js\": 11,\n\t\"./index.js\": 154,\n\t\"./json.js\": 93,\n\t\"./label.js\": 94,\n\t\"./levels.js\": 70,\n\t\"./logstash.js\": 95,\n\t\"./metadata.js\": 96,\n\t\"./ms.js\": 155,\n\t\"./pad-levels.js\": 71,\n\t\"./pretty-print.js\": 97,\n\t\"./printf.js\": 98,\n\t\"./simple.js\": 99,\n\t\"./splat.js\": 100,\n\t\"./timestamp.js\": 101,\n\t\"./uncolorize.js\": 102\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 303;","/* eslint no-undefined: 0 */\n'use strict';\n\nconst format = require('./format');\nconst { LEVEL, MESSAGE } = require('triple-beam');\n\n/*\n * function errors (info)\n * If the `message` property of the `info` object is an instance of `Error`,\n * replace the `Error` object its own `message` property.\n *\n * Optionally, the Error's `stack` property can also be appended to the `info` object.\n */\nmodule.exports = format((einfo, { stack }) => {\n if (einfo instanceof Error) {\n const info = Object.assign({}, einfo, {\n level: einfo.level,\n [LEVEL]: einfo[LEVEL] || einfo.level,\n message: einfo.message,\n [MESSAGE]: einfo[MESSAGE] || einfo.message\n });\n\n if (stack) info.stack = einfo.stack;\n return info;\n }\n\n if (!(einfo.message instanceof Error)) return einfo;\n\n // Assign all enumerable properties and the\n // message property from the error provided.\n Object.assign(einfo, einfo.message);\n const err = einfo.message;\n einfo.message = err.message;\n einfo[MESSAGE] = err.message;\n\n // Assign the stack if requested.\n if (stack) einfo.stack = err.stack;\n return einfo;\n});\n","const { format } = require('../');\nconst { combine, timestamp, label } = format;\n\nconst labelTimestamp = combine(\n label({ label: 'right meow!' }),\n timestamp()\n);\n\nconst info = labelTimestamp.transform({\n level: 'info',\n message: 'What time is the testing at?'\n});\n\nconsole.dir(info);\n","/* eslint no-unused-vars: 0 */\n\nconst { format } = require('../');\nconst { combine, timestamp, label } = format;\n\nconst ignorePrivate = format((info, opts) => {\n if (info.private) { return false; }\n return info;\n})();\n\nconsole.dir(ignorePrivate.transform({\n level: 'error',\n message: 'Public error to share'\n}));\n\nconsole.dir(ignorePrivate.transform({\n level: 'error',\n private: true,\n message: 'This is super secret - hide it.'\n}));\n\nconst willNeverThrow = format.combine(\n format(info => { return false; })(), // Ignores everything\n format(info => { throw new Error('Never reached'); })()\n);\n\nconsole.dir(willNeverThrow.transform({\n level: 'info',\n message: 'wow such testing'\n}));\n","/* eslint no-unused-vars: 0 */\nconst { format } = require('../');\n\nconst invalid = format(function invalid(just, too, many, args) {\n return just;\n});\n","const { format } = require('../');\nconst { combine, json, metadata, timestamp } = format;\n\n// Default Functionality (no options passed)\nconst defaultFormatter = combine(\n timestamp(),\n metadata(),\n json()\n);\n\nconst defaultMessage = defaultFormatter.transform({\n level: 'info',\n message: 'This should be a message.',\n application: 'Microsoft Office',\n store: 'Big Box Store',\n purchaseAmount: '9.99'\n});\n\nconsole.dir(defaultMessage);\n\n\n// Fill all keys into metadata except those provided\nconst formattedLogger = combine(\n timestamp(),\n metadata({ fillExcept: ['message', 'level', 'timestamp'] }),\n json()\n);\n\nconst fillExceptMessage = formattedLogger.transform({\n level: 'info',\n message: 'This should have attached metadata',\n category: 'movies',\n subCategory: 'action'\n});\n\nconsole.dir(fillExceptMessage);\n\n\n// Fill only the keys provided into the object, and also give it a different key\nconst customMetadataLogger = combine(\n timestamp(),\n metadata({ fillWith: ['publisher', 'author', 'book'], key: 'bookInfo' }),\n json()\n);\n\nconst fillWithMessage = customMetadataLogger.transform({\n level: 'debug',\n message: 'This message should be outside of the bookInfo object',\n publisher: 'Lorem Press',\n author: 'Albert Einstein',\n book: '4D Chess for Dummies',\n label: 'myCustomLabel'\n});\n\nconsole.dir(fillWithMessage);\n\n// Demonstrates Metadata 'chaining' to combine multiple datapoints.\nconst chainedMetadata = combine(\n timestamp(),\n metadata({ fillWith: ['publisher', 'author', 'book'], key: 'bookInfo' }),\n metadata({ fillWith: ['purchasePrice', 'purchaseDate', 'transactionId'], key: 'transactionInfo' }),\n metadata({ fillExcept: ['level', 'message', 'label', 'timestamp'] }),\n json()\n);\n\nconst chainedMessage = chainedMetadata.transform({\n level: 'debug',\n message: 'This message should be outside of the bookInfo object',\n publisher: 'Lorem Press',\n author: 'Albert Einstein',\n book: '4D Chess for Dummies',\n label: 'myCustomLabel',\n purchasePrice: '9.99',\n purchaseDate: '2.10.2018',\n transactionId: '123ABC'\n});\n\nconsole.dir(chainedMessage);\n","const { format } = require('../');\nconst { combine, padLevels, simple } = format;\n\nconst { MESSAGE } = require('triple-beam');\n\nconst paddedFormat = combine(\n padLevels({\n // Uncomment for a custom filler for the padding, defaults to ' '.\n // filler: 'foo',\n // Levels has to be defined, same as `winston.createLoggers({ levels })`.\n levels: {\n error: 0,\n warn: 1,\n info: 2,\n http: 3,\n verbose: 4,\n debug: 5,\n silly: 6\n }\n }),\n simple()\n);\n\nconst info = paddedFormat.transform({\n level: 'info',\n message: 'This is an info level message.'\n});\nconst error = paddedFormat.transform({\n level: 'error',\n message: 'This is an error level message.'\n});\nconst verbose = paddedFormat.transform({\n level: 'verbose',\n message: 'This is a verbose level message.'\n});\n\nconsole.dir(info[MESSAGE]);\nconsole.dir(error[MESSAGE]);\nconsole.dir(verbose[MESSAGE]);\n","const { format } = require('../');\n\nconst volume = format((info, opts) => {\n if (opts.yell) {\n info.message = info.message.toUpperCase();\n } else if (opts.whisper) {\n info.message = info.message.toLowerCase();\n }\n\n return info;\n});\n\n// `volume` is now a function that returns instances of the format.\nconst scream = volume({ yell: true });\nconsole.dir(scream.transform({\n level: 'info',\n message: `sorry for making you YELL in your head!`\n}, scream.options));\n\n// `volume` can be used multiple times to create different formats.\nconst whisper = volume({ whisper: true });\nconsole.dir(whisper.transform({\n level: 'info',\n message: `WHY ARE THEY MAKING US YELL SO MUCH!`\n}, whisper.options));\n","'use strict';\n\nconst format = require('./format');\nconst ms = require('ms');\n\n/*\n * function ms (info)\n * Returns an `info` with a `ms` property. The `ms` property holds the Value\n * of the time difference between two calls in milliseconds.\n */\nmodule.exports = format(info => {\n const curr = +new Date();\n this.diff = curr - (this.prevTime || curr);\n this.prevTime = curr;\n info.ms = `+${ms(this.diff)}`;\n\n return info;\n});\n","/**\n * transports.js: Set of all transports Winston knows about.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * TODO: add property description.\n * @type {Console}\n */\nObject.defineProperty(exports, 'Console', {\n configurable: true,\n enumerable: true,\n get() {\n return require('./console');\n }\n});\n\n/**\n * TODO: add property description.\n * @type {File}\n */\nObject.defineProperty(exports, 'File', {\n configurable: true,\n enumerable: true,\n get() {\n return require('./file');\n }\n});\n\n/**\n * TODO: add property description.\n * @type {Http}\n */\nObject.defineProperty(exports, 'Http', {\n configurable: true,\n enumerable: true,\n get() {\n return require('./http');\n }\n});\n\n/**\n * TODO: add property description.\n * @type {Stream}\n */\nObject.defineProperty(exports, 'Stream', {\n configurable: true,\n enumerable: true,\n get() {\n return require('./stream');\n }\n});\n","/* eslint-disable no-console */\n/*\n * console.js: Transport for outputting to the console.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst os = require('os');\nconst { LEVEL, MESSAGE } = require('triple-beam');\nconst TransportStream = require('winston-transport');\n\n/**\n * Transport for outputting to the console.\n * @type {Console}\n * @extends {TransportStream}\n */\nmodule.exports = class Console extends TransportStream {\n /**\n * Constructor function for the Console transport object responsible for\n * persisting log messages and metadata to a terminal or TTY.\n * @param {!Object} [options={}] - Options for this instance.\n */\n constructor(options = {}) {\n super(options);\n\n // Expose the name of this Transport on the prototype\n this.name = options.name || 'console';\n this.stderrLevels = this._stringArrayToSet(options.stderrLevels);\n this.consoleWarnLevels = this._stringArrayToSet(options.consoleWarnLevels);\n this.eol = options.eol || os.EOL;\n\n this.setMaxListeners(30);\n }\n\n /**\n * Core logging method exposed to Winston.\n * @param {Object} info - TODO: add param description.\n * @param {Function} callback - TODO: add param description.\n * @returns {undefined}\n */\n log(info, callback) {\n setImmediate(() => this.emit('logged', info));\n\n // Remark: what if there is no raw...?\n if (this.stderrLevels[info[LEVEL]]) {\n if (console._stderr) {\n // Node.js maps `process.stderr` to `console._stderr`.\n console._stderr.write(`${info[MESSAGE]}${this.eol}`);\n } else {\n // console.error adds a newline\n console.error(info[MESSAGE]);\n }\n\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n return;\n } else if (this.consoleWarnLevels[info[LEVEL]]) {\n if (console._stderr) {\n // Node.js maps `process.stderr` to `console._stderr`.\n // in Node.js console.warn is an alias for console.error\n console._stderr.write(`${info[MESSAGE]}${this.eol}`);\n } else {\n // console.warn adds a newline\n console.warn(info[MESSAGE]);\n }\n\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n return;\n }\n\n if (console._stdout) {\n // Node.js maps `process.stdout` to `console._stdout`.\n console._stdout.write(`${info[MESSAGE]}${this.eol}`);\n } else {\n // console.log adds a newline.\n console.log(info[MESSAGE]);\n }\n\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n }\n\n /**\n * Returns a Set-like object with strArray's elements as keys (each with the\n * value true).\n * @param {Array} strArray - Array of Set-elements as strings.\n * @param {?string} [errMsg] - Custom error message thrown on invalid input.\n * @returns {Object} - TODO: add return description.\n * @private\n */\n _stringArrayToSet(strArray, errMsg) {\n if (!strArray)\n return {};\n\n errMsg = errMsg || 'Cannot make set from type other than Array of string elements';\n\n if (!Array.isArray(strArray)) {\n throw new Error(errMsg);\n }\n\n return strArray.reduce((set, el) => {\n if (typeof el !== 'string') {\n throw new Error(errMsg);\n }\n set[el] = true;\n\n return set;\n }, {});\n }\n};\n","var Stream = require(\"stream\")\nvar Writable = require(\"./lib/_stream_writable.js\")\n\nif (process.env.READABLE_STREAM === 'disable') {\n module.exports = Stream && Stream.Writable || Writable\n} else {\n module.exports = Writable\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = require('isarray');\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n\n/**/\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar debugUtil = require('util');\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar BufferList = require('./internal/streams/BufferList');\nvar destroyImpl = require('./internal/streams/destroy');\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, unpipeInfo);\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark;\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Buffer = require('safe-buffer').Buffer;\nvar util = require('util');\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n if (this.length === 1) return this.head.data;\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({ length: this.length });\n return this.constructor.name + ' ' + obj;\n };\n}","/* eslint-disable complexity,max-statements */\n/**\n * file.js: Transport for outputting to a local log file.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst fs = require('fs');\nconst path = require('path');\nconst asyncSeries = require('async/series');\nconst zlib = require('zlib');\nconst { MESSAGE } = require('triple-beam');\nconst { Stream, PassThrough } = require('readable-stream');\nconst TransportStream = require('winston-transport');\nconst debug = require('@dabh/diagnostics')('winston:file');\nconst os = require('os');\nconst tailFile = require('../tail-file');\n\n/**\n * Transport for outputting to a local log file.\n * @type {File}\n * @extends {TransportStream}\n */\nmodule.exports = class File extends TransportStream {\n /**\n * Constructor function for the File transport object responsible for\n * persisting log messages and metadata to one or more files.\n * @param {Object} options - Options for this instance.\n */\n constructor(options = {}) {\n super(options);\n\n // Expose the name of this Transport on the prototype.\n this.name = options.name || 'file';\n\n // Helper function which throws an `Error` in the event that any of the\n // rest of the arguments is present in `options`.\n function throwIf(target, ...args) {\n args.slice(1).forEach(name => {\n if (options[name]) {\n throw new Error(`Cannot set ${name} and ${target} together`);\n }\n });\n }\n\n // Setup the base stream that always gets piped to to handle buffering.\n this._stream = new PassThrough();\n this._stream.setMaxListeners(30);\n\n // Bind this context for listener methods.\n this._onError = this._onError.bind(this);\n\n if (options.filename || options.dirname) {\n throwIf('filename or dirname', 'stream');\n this._basename = this.filename = options.filename\n ? path.basename(options.filename)\n : 'winston.log';\n\n this.dirname = options.dirname || path.dirname(options.filename);\n this.options = options.options || { flags: 'a' };\n } else if (options.stream) {\n // eslint-disable-next-line no-console\n console.warn('options.stream will be removed in winston@4. Use winston.transports.Stream');\n throwIf('stream', 'filename', 'maxsize');\n this._dest = this._stream.pipe(this._setupStream(options.stream));\n this.dirname = path.dirname(this._dest.path);\n // We need to listen for drain events when write() returns false. This\n // can make node mad at times.\n } else {\n throw new Error('Cannot log to file without filename or stream.');\n }\n\n this.maxsize = options.maxsize || null;\n this.rotationFormat = options.rotationFormat || false;\n this.zippedArchive = options.zippedArchive || false;\n this.maxFiles = options.maxFiles || null;\n this.eol = options.eol || os.EOL;\n this.tailable = options.tailable || false;\n\n // Internal state variables representing the number of files this instance\n // has created and the current size (in bytes) of the current logfile.\n this._size = 0;\n this._pendingSize = 0;\n this._created = 0;\n this._drain = false;\n this._opening = false;\n this._ending = false;\n\n if (this.dirname) this._createLogDirIfNotExist(this.dirname);\n this.open();\n }\n\n finishIfEnding() {\n if (this._ending) {\n if (this._opening) {\n this.once('open', () => {\n this._stream.once('finish', () => this.emit('finish'));\n setImmediate(() => this._stream.end());\n });\n } else {\n this._stream.once('finish', () => this.emit('finish'));\n setImmediate(() => this._stream.end());\n }\n }\n }\n\n\n /**\n * Core logging method exposed to Winston. Metadata is optional.\n * @param {Object} info - TODO: add param description.\n * @param {Function} callback - TODO: add param description.\n * @returns {undefined}\n */\n log(info, callback = () => {}) {\n // Remark: (jcrugzz) What is necessary about this callback(null, true) now\n // when thinking about 3.x? Should silent be handled in the base\n // TransportStream _write method?\n if (this.silent) {\n callback();\n return true;\n }\n\n // Output stream buffer is full and has asked us to wait for the drain event\n if (this._drain) {\n this._stream.once('drain', () => {\n this._drain = false;\n this.log(info, callback);\n });\n return;\n }\n if (this._rotate) {\n this._stream.once('rotate', () => {\n this._rotate = false;\n this.log(info, callback);\n });\n return;\n }\n\n // Grab the raw string and append the expected EOL.\n const output = `${info[MESSAGE]}${this.eol}`;\n const bytes = Buffer.byteLength(output);\n\n // After we have written to the PassThrough check to see if we need\n // to rotate to the next file.\n //\n // Remark: This gets called too early and does not depict when data\n // has been actually flushed to disk.\n function logged() {\n this._size += bytes;\n this._pendingSize -= bytes;\n\n debug('logged %s %s', this._size, output);\n this.emit('logged', info);\n\n // Do not attempt to rotate files while opening\n if (this._opening) {\n return;\n }\n\n // Check to see if we need to end the stream and create a new one.\n if (!this._needsNewFile()) {\n return;\n }\n\n // End the current stream, ensure it flushes and create a new one.\n // This could potentially be optimized to not run a stat call but its\n // the safest way since we are supporting `maxFiles`.\n this._rotate = true;\n this._endStream(() => this._rotateFile());\n }\n\n // Keep track of the pending bytes being written while files are opening\n // in order to properly rotate the PassThrough this._stream when the file\n // eventually does open.\n this._pendingSize += bytes;\n if (this._opening\n && !this.rotatedWhileOpening\n && this._needsNewFile(this._size + this._pendingSize)) {\n this.rotatedWhileOpening = true;\n }\n\n const written = this._stream.write(output, logged.bind(this));\n if (!written) {\n this._drain = true;\n this._stream.once('drain', () => {\n this._drain = false;\n callback();\n });\n } else {\n callback(); // eslint-disable-line callback-return\n }\n\n debug('written', written, this._drain);\n\n this.finishIfEnding();\n\n return written;\n }\n\n /**\n * Query the transport. Options object is optional.\n * @param {Object} options - Loggly-like query options for this instance.\n * @param {function} callback - Continuation to respond to when complete.\n * TODO: Refactor me.\n */\n query(options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n options = normalizeQuery(options);\n const file = path.join(this.dirname, this.filename);\n let buff = '';\n let results = [];\n let row = 0;\n\n const stream = fs.createReadStream(file, {\n encoding: 'utf8'\n });\n\n stream.on('error', err => {\n if (stream.readable) {\n stream.destroy();\n }\n if (!callback) {\n return;\n }\n\n return err.code !== 'ENOENT' ? callback(err) : callback(null, results);\n });\n\n stream.on('data', data => {\n data = (buff + data).split(/\\n+/);\n const l = data.length - 1;\n let i = 0;\n\n for (; i < l; i++) {\n if (!options.start || row >= options.start) {\n add(data[i]);\n }\n row++;\n }\n\n buff = data[l];\n });\n\n stream.on('close', () => {\n if (buff) {\n add(buff, true);\n }\n if (options.order === 'desc') {\n results = results.reverse();\n }\n\n // eslint-disable-next-line callback-return\n if (callback) callback(null, results);\n });\n\n function add(buff, attempt) {\n try {\n const log = JSON.parse(buff);\n if (check(log)) {\n push(log);\n }\n } catch (e) {\n if (!attempt) {\n stream.emit('error', e);\n }\n }\n }\n\n function push(log) {\n if (\n options.rows &&\n results.length >= options.rows &&\n options.order !== 'desc'\n ) {\n if (stream.readable) {\n stream.destroy();\n }\n return;\n }\n\n if (options.fields) {\n log = options.fields.reduce((obj, key) => {\n obj[key] = log[key];\n return obj;\n }, {});\n }\n\n if (options.order === 'desc') {\n if (results.length >= options.rows) {\n results.shift();\n }\n }\n results.push(log);\n }\n\n function check(log) {\n if (!log) {\n return;\n }\n\n if (typeof log !== 'object') {\n return;\n }\n\n const time = new Date(log.timestamp);\n if (\n (options.from && time < options.from) ||\n (options.until && time > options.until) ||\n (options.level && options.level !== log.level)\n ) {\n return;\n }\n\n return true;\n }\n\n function normalizeQuery(options) {\n options = options || {};\n\n // limit\n options.rows = options.rows || options.limit || 10;\n\n // starting row offset\n options.start = options.start || 0;\n\n // now\n options.until = options.until || new Date();\n if (typeof options.until !== 'object') {\n options.until = new Date(options.until);\n }\n\n // now - 24\n options.from = options.from || (options.until - (24 * 60 * 60 * 1000));\n if (typeof options.from !== 'object') {\n options.from = new Date(options.from);\n }\n\n // 'asc' or 'desc'\n options.order = options.order || 'desc';\n\n return options;\n }\n }\n\n /**\n * Returns a log stream for this transport. Options object is optional.\n * @param {Object} options - Stream options for this instance.\n * @returns {Stream} - TODO: add return description.\n * TODO: Refactor me.\n */\n stream(options = {}) {\n const file = path.join(this.dirname, this.filename);\n const stream = new Stream();\n const tail = {\n file,\n start: options.start\n };\n\n stream.destroy = tailFile(tail, (err, line) => {\n if (err) {\n return stream.emit('error', err);\n }\n\n try {\n stream.emit('data', line);\n line = JSON.parse(line);\n stream.emit('log', line);\n } catch (e) {\n stream.emit('error', e);\n }\n });\n\n return stream;\n }\n\n /**\n * Checks to see the filesize of.\n * @returns {undefined}\n */\n open() {\n // If we do not have a filename then we were passed a stream and\n // don't need to keep track of size.\n if (!this.filename) return;\n if (this._opening) return;\n\n this._opening = true;\n\n // Stat the target file to get the size and create the stream.\n this.stat((err, size) => {\n if (err) {\n return this.emit('error', err);\n }\n debug('stat done: %s { size: %s }', this.filename, size);\n this._size = size;\n this._dest = this._createStream(this._stream);\n this._opening = false;\n this.once('open', () => {\n if (this._stream.eventNames().includes('rotate')) {\n this._stream.emit('rotate');\n } else {\n this._rotate = false;\n }\n });\n });\n }\n\n /**\n * Stat the file and assess information in order to create the proper stream.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n */\n stat(callback) {\n const target = this._getFile();\n const fullpath = path.join(this.dirname, target);\n\n fs.stat(fullpath, (err, stat) => {\n if (err && err.code === 'ENOENT') {\n debug('ENOENT ok', fullpath);\n // Update internally tracked filename with the new target name.\n this.filename = target;\n return callback(null, 0);\n }\n\n if (err) {\n debug(`err ${err.code} ${fullpath}`);\n return callback(err);\n }\n\n if (!stat || this._needsNewFile(stat.size)) {\n // If `stats.size` is greater than the `maxsize` for this\n // instance then try again.\n return this._incFile(() => this.stat(callback));\n }\n\n // Once we have figured out what the filename is, set it\n // and return the size.\n this.filename = target;\n callback(null, stat.size);\n });\n }\n\n /**\n * Closes the stream associated with this instance.\n * @param {function} cb - TODO: add param description.\n * @returns {undefined}\n */\n close(cb) {\n if (!this._stream) {\n return;\n }\n\n this._stream.end(() => {\n if (cb) {\n cb(); // eslint-disable-line callback-return\n }\n this.emit('flush');\n this.emit('closed');\n });\n }\n\n /**\n * TODO: add method description.\n * @param {number} size - TODO: add param description.\n * @returns {undefined}\n */\n _needsNewFile(size) {\n size = size || this._size;\n return this.maxsize && size >= this.maxsize;\n }\n\n /**\n * TODO: add method description.\n * @param {Error} err - TODO: add param description.\n * @returns {undefined}\n */\n _onError(err) {\n this.emit('error', err);\n }\n\n /**\n * TODO: add method description.\n * @param {Stream} stream - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n */\n _setupStream(stream) {\n stream.on('error', this._onError);\n\n return stream;\n }\n\n /**\n * TODO: add method description.\n * @param {Stream} stream - TODO: add param description.\n * @returns {mixed} - TODO: add return description.\n */\n _cleanupStream(stream) {\n stream.removeListener('error', this._onError);\n\n return stream;\n }\n\n /**\n * TODO: add method description.\n */\n _rotateFile() {\n this._incFile(() => this.open());\n }\n\n /**\n * Unpipe from the stream that has been marked as full and end it so it\n * flushes to disk.\n *\n * @param {function} callback - Callback for when the current file has closed.\n * @private\n */\n _endStream(callback = () => {}) {\n if (this._dest) {\n this._stream.unpipe(this._dest);\n this._dest.end(() => {\n this._cleanupStream(this._dest);\n callback();\n });\n } else {\n callback(); // eslint-disable-line callback-return\n }\n }\n\n /**\n * Returns the WritableStream for the active file on this instance. If we\n * should gzip the file then a zlib stream is returned.\n *\n * @param {ReadableStream} source – PassThrough to pipe to the file when open.\n * @returns {WritableStream} Stream that writes to disk for the active file.\n */\n _createStream(source) {\n const fullpath = path.join(this.dirname, this.filename);\n\n debug('create stream start', fullpath, this.options);\n const dest = fs.createWriteStream(fullpath, this.options)\n // TODO: What should we do with errors here?\n .on('error', err => debug(err))\n .on('close', () => debug('close', dest.path, dest.bytesWritten))\n .on('open', () => {\n debug('file open ok', fullpath);\n this.emit('open', fullpath);\n source.pipe(dest);\n\n // If rotation occured during the open operation then we immediately\n // start writing to a new PassThrough, begin opening the next file\n // and cleanup the previous source and dest once the source has drained.\n if (this.rotatedWhileOpening) {\n this._stream = new PassThrough();\n this._stream.setMaxListeners(30);\n this._rotateFile();\n this.rotatedWhileOpening = false;\n this._cleanupStream(dest);\n source.end();\n }\n });\n\n debug('create stream ok', fullpath);\n if (this.zippedArchive) {\n const gzip = zlib.createGzip();\n gzip.pipe(dest);\n return gzip;\n }\n\n return dest;\n }\n\n /**\n * TODO: add method description.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n */\n _incFile(callback) {\n debug('_incFile', this.filename);\n const ext = path.extname(this._basename);\n const basename = path.basename(this._basename, ext);\n\n if (!this.tailable) {\n this._created += 1;\n this._checkMaxFilesIncrementing(ext, basename, callback);\n } else {\n this._checkMaxFilesTailable(ext, basename, callback);\n }\n }\n\n /**\n * Gets the next filename to use for this instance in the case that log\n * filesizes are being capped.\n * @returns {string} - TODO: add return description.\n * @private\n */\n _getFile() {\n const ext = path.extname(this._basename);\n const basename = path.basename(this._basename, ext);\n const isRotation = this.rotationFormat\n ? this.rotationFormat()\n : this._created;\n\n // Caveat emptor (indexzero): rotationFormat() was broken by design When\n // combined with max files because the set of files to unlink is never\n // stored.\n const target = !this.tailable && this._created\n ? `${basename}${isRotation}${ext}`\n : `${basename}${ext}`;\n\n return this.zippedArchive && !this.tailable\n ? `${target}.gz`\n : target;\n }\n\n /**\n * Increment the number of files created or checked by this instance.\n * @param {mixed} ext - TODO: add param description.\n * @param {mixed} basename - TODO: add param description.\n * @param {mixed} callback - TODO: add param description.\n * @returns {undefined}\n * @private\n */\n _checkMaxFilesIncrementing(ext, basename, callback) {\n // Check for maxFiles option and delete file.\n if (!this.maxFiles || this._created < this.maxFiles) {\n return setImmediate(callback);\n }\n\n const oldest = this._created - this.maxFiles;\n const isOldest = oldest !== 0 ? oldest : '';\n const isZipped = this.zippedArchive ? '.gz' : '';\n const filePath = `${basename}${isOldest}${ext}${isZipped}`;\n const target = path.join(this.dirname, filePath);\n\n fs.unlink(target, callback);\n }\n\n /**\n * Roll files forward based on integer, up to maxFiles. e.g. if base if\n * file.log and it becomes oversized, roll to file1.log, and allow file.log\n * to be re-used. If file is oversized again, roll file1.log to file2.log,\n * roll file.log to file1.log, and so on.\n * @param {mixed} ext - TODO: add param description.\n * @param {mixed} basename - TODO: add param description.\n * @param {mixed} callback - TODO: add param description.\n * @returns {undefined}\n * @private\n */\n _checkMaxFilesTailable(ext, basename, callback) {\n const tasks = [];\n if (!this.maxFiles) {\n return;\n }\n\n // const isZipped = this.zippedArchive ? '.gz' : '';\n const isZipped = this.zippedArchive ? '.gz' : '';\n for (let x = this.maxFiles - 1; x > 1; x--) {\n tasks.push(function (i, cb) {\n let fileName = `${basename}${(i - 1)}${ext}${isZipped}`;\n const tmppath = path.join(this.dirname, fileName);\n\n fs.exists(tmppath, exists => {\n if (!exists) {\n return cb(null);\n }\n\n fileName = `${basename}${i}${ext}${isZipped}`;\n fs.rename(tmppath, path.join(this.dirname, fileName), cb);\n });\n }.bind(this, x));\n }\n\n asyncSeries(tasks, () => {\n fs.rename(\n path.join(this.dirname, `${basename}${ext}`),\n path.join(this.dirname, `${basename}1${ext}${isZipped}`),\n callback\n );\n });\n }\n\n _createLogDirIfNotExist(dirPath) {\n /* eslint-disable no-sync */\n if (!fs.existsSync(dirPath)) {\n fs.mkdirSync(dirPath, { recursive: true });\n }\n /* eslint-enable no-sync */\n }\n};\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = series;\n\nvar _parallel2 = require('./internal/parallel');\n\nvar _parallel3 = _interopRequireDefault(_parallel2);\n\nvar _eachOfSeries = require('./eachOfSeries');\n\nvar _eachOfSeries2 = _interopRequireDefault(_eachOfSeries);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Run the functions in the `tasks` collection in series, each one running once\n * the previous function has completed. If any functions in the series pass an\n * error to its callback, no more functions are run, and `callback` is\n * immediately called with the value of the error. Otherwise, `callback`\n * receives an array of results when `tasks` have completed.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function, and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.series}.\n *\n * **Note** that while many implementations preserve the order of object\n * properties, the [ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)\n * explicitly states that\n *\n * > The mechanics and order of enumerating the properties is not specified.\n *\n * So if you rely on the order in which your series of functions are executed,\n * and want this to work on all platforms, consider using an array.\n *\n * @name series\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection containing\n * [async functions]{@link AsyncFunction} to run in series.\n * Each function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This function gets a results array (or object)\n * containing all the result arguments passed to the `task` callbacks. Invoked\n * with (err, result).\n * @return {Promise} a promise, if no callback is passed\n * @example\n * async.series([\n * function(callback) {\n * // do some stuff ...\n * callback(null, 'one');\n * },\n * function(callback) {\n * // do some more stuff ...\n * callback(null, 'two');\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * // results is now equal to ['one', 'two']\n * });\n *\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback){\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * // results is now equal to: {one: 1, two: 2}\n * });\n */\nfunction series(tasks, callback) {\n return (0, _parallel3.default)(_eachOfSeries2.default, tasks, callback);\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _isArrayLike = require('./isArrayLike');\n\nvar _isArrayLike2 = _interopRequireDefault(_isArrayLike);\n\nvar _wrapAsync = require('./wrapAsync');\n\nvar _wrapAsync2 = _interopRequireDefault(_wrapAsync);\n\nvar _awaitify = require('./awaitify');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = (0, _awaitify2.default)((eachfn, tasks, callback) => {\n var results = (0, _isArrayLike2.default)(tasks) ? [] : {};\n\n eachfn(tasks, (task, key, taskCb) => {\n (0, _wrapAsync2.default)(task)((err, ...result) => {\n if (result.length < 2) {\n [result] = result;\n }\n results[key] = result;\n taskCb(err);\n });\n }, err => callback(err, results));\n}, 3);\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = asyncify;\n\nvar _initialParams = require('./internal/initialParams');\n\nvar _initialParams2 = _interopRequireDefault(_initialParams);\n\nvar _setImmediate = require('./internal/setImmediate');\n\nvar _setImmediate2 = _interopRequireDefault(_setImmediate);\n\nvar _wrapAsync = require('./internal/wrapAsync');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Take a sync function and make it async, passing its return value to a\n * callback. This is useful for plugging sync functions into a waterfall,\n * series, or other async functions. Any arguments passed to the generated\n * function will be passed to the wrapped function (except for the final\n * callback argument). Errors thrown will be passed to the callback.\n *\n * If the function passed to `asyncify` returns a Promise, that promises's\n * resolved/rejected state will be used to call the callback, rather than simply\n * the synchronous return value.\n *\n * This also means you can asyncify ES2017 `async` functions.\n *\n * @name asyncify\n * @static\n * @memberOf module:Utils\n * @method\n * @alias wrapSync\n * @category Util\n * @param {Function} func - The synchronous function, or Promise-returning\n * function to convert to an {@link AsyncFunction}.\n * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be\n * invoked with `(args..., callback)`.\n * @example\n *\n * // passing a regular synchronous function\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(JSON.parse),\n * function (data, next) {\n * // data is the result of parsing the text.\n * // If there was a parsing error, it would have been caught.\n * }\n * ], callback);\n *\n * // passing a function returning a promise\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(function (contents) {\n * return db.model.create(contents);\n * }),\n * function (model, next) {\n * // `model` is the instantiated model object.\n * // If there was an error, this function would be skipped.\n * }\n * ], callback);\n *\n * // es2017 example, though `asyncify` is not needed if your JS environment\n * // supports async functions out of the box\n * var q = async.queue(async.asyncify(async function(file) {\n * var intermediateStep = await processFile(file);\n * return await somePromise(intermediateStep)\n * }));\n *\n * q.push(files);\n */\nfunction asyncify(func) {\n if ((0, _wrapAsync.isAsync)(func)) {\n return function (...args /*, callback*/) {\n const callback = args.pop();\n const promise = func.apply(this, args);\n return handlePromise(promise, callback);\n };\n }\n\n return (0, _initialParams2.default)(function (args, callback) {\n var result;\n try {\n result = func.apply(this, args);\n } catch (e) {\n return callback(e);\n }\n // if result is Promise object\n if (result && typeof result.then === 'function') {\n return handlePromise(result, callback);\n } else {\n callback(null, result);\n }\n });\n}\n\nfunction handlePromise(promise, callback) {\n return promise.then(value => {\n invokeCallback(callback, null, value);\n }, err => {\n invokeCallback(callback, err && err.message ? err : new Error(err));\n });\n}\n\nfunction invokeCallback(callback, error, value) {\n try {\n callback(error, value);\n } catch (err) {\n (0, _setImmediate2.default)(e => {\n throw e;\n }, err);\n }\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (fn) {\n return function (...args /*, callback*/) {\n var callback = args.pop();\n return fn.call(this, args, callback);\n };\n};\n\nmodule.exports = exports[\"default\"];","'use strict';\n/* istanbul ignore file */\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fallback = fallback;\nexports.wrap = wrap;\nvar hasSetImmediate = exports.hasSetImmediate = typeof setImmediate === 'function' && setImmediate;\nvar hasNextTick = exports.hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function';\n\nfunction fallback(fn) {\n setTimeout(fn, 0);\n}\n\nfunction wrap(defer) {\n return (fn, ...args) => defer(() => fn(...args));\n}\n\nvar _defer;\n\nif (hasSetImmediate) {\n _defer = setImmediate;\n} else if (hasNextTick) {\n _defer = process.nextTick;\n} else {\n _defer = fallback;\n}\n\nexports.default = wrap(_defer);","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _eachOfLimit = require('./eachOfLimit');\n\nvar _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);\n\nvar _awaitify = require('./internal/awaitify');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.\n *\n * @name eachOfSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\nfunction eachOfSeries(coll, iteratee, callback) {\n return (0, _eachOfLimit2.default)(coll, 1, iteratee, callback);\n}\nexports.default = (0, _awaitify2.default)(eachOfSeries, 3);\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _once = require('./once');\n\nvar _once2 = _interopRequireDefault(_once);\n\nvar _iterator = require('./iterator');\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _onlyOnce = require('./onlyOnce');\n\nvar _onlyOnce2 = _interopRequireDefault(_onlyOnce);\n\nvar _wrapAsync = require('./wrapAsync');\n\nvar _asyncEachOfLimit = require('./asyncEachOfLimit');\n\nvar _asyncEachOfLimit2 = _interopRequireDefault(_asyncEachOfLimit);\n\nvar _breakLoop = require('./breakLoop');\n\nvar _breakLoop2 = _interopRequireDefault(_breakLoop);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = limit => {\n return (obj, iteratee, callback) => {\n callback = (0, _once2.default)(callback);\n if (limit <= 0) {\n throw new RangeError('concurrency limit cannot be less than 1');\n }\n if (!obj) {\n return callback(null);\n }\n if ((0, _wrapAsync.isAsyncGenerator)(obj)) {\n return (0, _asyncEachOfLimit2.default)(obj, limit, iteratee, callback);\n }\n if ((0, _wrapAsync.isAsyncIterable)(obj)) {\n return (0, _asyncEachOfLimit2.default)(obj[Symbol.asyncIterator](), limit, iteratee, callback);\n }\n var nextElem = (0, _iterator2.default)(obj);\n var done = false;\n var canceled = false;\n var running = 0;\n var looping = false;\n\n function iterateeCallback(err, value) {\n if (canceled) return;\n running -= 1;\n if (err) {\n done = true;\n callback(err);\n } else if (err === false) {\n done = true;\n canceled = true;\n } else if (value === _breakLoop2.default || done && running <= 0) {\n done = true;\n return callback(null);\n } else if (!looping) {\n replenish();\n }\n }\n\n function replenish() {\n looping = true;\n while (running < limit && !done) {\n var elem = nextElem();\n if (elem === null) {\n done = true;\n if (running <= 0) {\n callback(null);\n }\n return;\n }\n running += 1;\n iteratee(elem.value, elem.key, (0, _onlyOnce2.default)(iterateeCallback));\n }\n looping = false;\n }\n\n replenish();\n };\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createIterator;\n\nvar _isArrayLike = require('./isArrayLike');\n\nvar _isArrayLike2 = _interopRequireDefault(_isArrayLike);\n\nvar _getIterator = require('./getIterator');\n\nvar _getIterator2 = _interopRequireDefault(_getIterator);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createArrayIterator(coll) {\n var i = -1;\n var len = coll.length;\n return function next() {\n return ++i < len ? { value: coll[i], key: i } : null;\n };\n}\n\nfunction createES2015Iterator(iterator) {\n var i = -1;\n return function next() {\n var item = iterator.next();\n if (item.done) return null;\n i++;\n return { value: item.value, key: i };\n };\n}\n\nfunction createObjectIterator(obj) {\n var okeys = obj ? Object.keys(obj) : [];\n var i = -1;\n var len = okeys.length;\n return function next() {\n var key = okeys[++i];\n return i < len ? { value: obj[key], key } : null;\n };\n}\n\nfunction createIterator(coll) {\n if ((0, _isArrayLike2.default)(coll)) {\n return createArrayIterator(coll);\n }\n\n var iterator = (0, _getIterator2.default)(coll);\n return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (coll) {\n return coll[Symbol.iterator] && coll[Symbol.iterator]();\n};\n\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = asyncEachOfLimit;\n\nvar _breakLoop = require('./breakLoop');\n\nvar _breakLoop2 = _interopRequireDefault(_breakLoop);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// for async generators\nfunction asyncEachOfLimit(generator, limit, iteratee, callback) {\n let done = false;\n let canceled = false;\n let awaiting = false;\n let running = 0;\n let idx = 0;\n\n function replenish() {\n //console.log('replenish')\n if (running >= limit || awaiting || done) return;\n //console.log('replenish awaiting')\n awaiting = true;\n generator.next().then(({ value, done: iterDone }) => {\n //console.log('got value', value)\n if (canceled || done) return;\n awaiting = false;\n if (iterDone) {\n done = true;\n if (running <= 0) {\n //console.log('done nextCb')\n callback(null);\n }\n return;\n }\n running++;\n iteratee(value, idx, iterateeCallback);\n idx++;\n replenish();\n }).catch(handleError);\n }\n\n function iterateeCallback(err, result) {\n //console.log('iterateeCallback')\n running -= 1;\n if (canceled) return;\n if (err) return handleError(err);\n\n if (err === false) {\n done = true;\n canceled = true;\n return;\n }\n\n if (result === _breakLoop2.default || done && running <= 0) {\n done = true;\n //console.log('done iterCb')\n return callback(null);\n }\n replenish();\n }\n\n function handleError(err) {\n if (canceled) return;\n awaiting = false;\n done = true;\n callback(err);\n }\n\n replenish();\n}\nmodule.exports = exports['default'];","'use strict';\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar _require = require('buffer'),\n Buffer = _require.Buffer;\n\nvar _require2 = require('util'),\n inspect = _require2.inspect;\n\nvar custom = inspect && inspect.custom || 'inspect';\n\nfunction copyBuffer(src, target, offset) {\n Buffer.prototype.copy.call(src, target, offset);\n}\n\nmodule.exports =\n/*#__PURE__*/\nfunction () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n _createClass(BufferList, [{\n key: \"push\",\n value: function push(v) {\n var entry = {\n data: v,\n next: null\n };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n }\n }, {\n key: \"unshift\",\n value: function unshift(v) {\n var entry = {\n data: v,\n next: this.head\n };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n }\n }, {\n key: \"shift\",\n value: function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.head = this.tail = null;\n this.length = 0;\n }\n }, {\n key: \"join\",\n value: function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n\n while (p = p.next) {\n ret += s + p.data;\n }\n\n return ret;\n }\n }, {\n key: \"concat\",\n value: function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n\n return ret;\n } // Consumes a specified amount of bytes or characters from the buffered data.\n\n }, {\n key: \"consume\",\n value: function consume(n, hasStrings) {\n var ret;\n\n if (n < this.head.data.length) {\n // `slice` is the same for buffers and strings.\n ret = this.head.data.slice(0, n);\n this.head.data = this.head.data.slice(n);\n } else if (n === this.head.data.length) {\n // First chunk is a perfect match.\n ret = this.shift();\n } else {\n // Result spans more than one buffer.\n ret = hasStrings ? this._getString(n) : this._getBuffer(n);\n }\n\n return ret;\n }\n }, {\n key: \"first\",\n value: function first() {\n return this.head.data;\n } // Consumes a specified amount of characters from the buffered data.\n\n }, {\n key: \"_getString\",\n value: function _getString(n) {\n var p = this.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = str.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Consumes a specified amount of bytes from the buffered data.\n\n }, {\n key: \"_getBuffer\",\n value: function _getBuffer(n) {\n var ret = Buffer.allocUnsafe(n);\n var p = this.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = buf.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Make sure the linked list only shows the minimal necessary information.\n\n }, {\n key: custom,\n value: function value(_, options) {\n return inspect(this, _objectSpread({}, options, {\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n }));\n }\n }]);\n\n return BufferList;\n}();","/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","'use strict';\n\nvar _Object$setPrototypeO;\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar finished = require('./end-of-stream');\n\nvar kLastResolve = Symbol('lastResolve');\nvar kLastReject = Symbol('lastReject');\nvar kError = Symbol('error');\nvar kEnded = Symbol('ended');\nvar kLastPromise = Symbol('lastPromise');\nvar kHandlePromise = Symbol('handlePromise');\nvar kStream = Symbol('stream');\n\nfunction createIterResult(value, done) {\n return {\n value: value,\n done: done\n };\n}\n\nfunction readAndResolve(iter) {\n var resolve = iter[kLastResolve];\n\n if (resolve !== null) {\n var data = iter[kStream].read(); // we defer if data is null\n // we can be expecting either 'end' or\n // 'error'\n\n if (data !== null) {\n iter[kLastPromise] = null;\n iter[kLastResolve] = null;\n iter[kLastReject] = null;\n resolve(createIterResult(data, false));\n }\n }\n}\n\nfunction onReadable(iter) {\n // we wait for the next tick, because it might\n // emit an error with process.nextTick\n process.nextTick(readAndResolve, iter);\n}\n\nfunction wrapForNext(lastPromise, iter) {\n return function (resolve, reject) {\n lastPromise.then(function () {\n if (iter[kEnded]) {\n resolve(createIterResult(undefined, true));\n return;\n }\n\n iter[kHandlePromise](resolve, reject);\n }, reject);\n };\n}\n\nvar AsyncIteratorPrototype = Object.getPrototypeOf(function () {});\nvar ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {\n get stream() {\n return this[kStream];\n },\n\n next: function next() {\n var _this = this;\n\n // if we have detected an error in the meanwhile\n // reject straight away\n var error = this[kError];\n\n if (error !== null) {\n return Promise.reject(error);\n }\n\n if (this[kEnded]) {\n return Promise.resolve(createIterResult(undefined, true));\n }\n\n if (this[kStream].destroyed) {\n // We need to defer via nextTick because if .destroy(err) is\n // called, the error will be emitted via nextTick, and\n // we cannot guarantee that there is no error lingering around\n // waiting to be emitted.\n return new Promise(function (resolve, reject) {\n process.nextTick(function () {\n if (_this[kError]) {\n reject(_this[kError]);\n } else {\n resolve(createIterResult(undefined, true));\n }\n });\n });\n } // if we have multiple next() calls\n // we will wait for the previous Promise to finish\n // this logic is optimized to support for await loops,\n // where next() is only called once at a time\n\n\n var lastPromise = this[kLastPromise];\n var promise;\n\n if (lastPromise) {\n promise = new Promise(wrapForNext(lastPromise, this));\n } else {\n // fast path needed to support multiple this.push()\n // without triggering the next() queue\n var data = this[kStream].read();\n\n if (data !== null) {\n return Promise.resolve(createIterResult(data, false));\n }\n\n promise = new Promise(this[kHandlePromise]);\n }\n\n this[kLastPromise] = promise;\n return promise;\n }\n}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {\n return this;\n}), _defineProperty(_Object$setPrototypeO, \"return\", function _return() {\n var _this2 = this;\n\n // destroy(err, cb) is a private API\n // we can guarantee we have that here, because we control the\n // Readable class this is attached to\n return new Promise(function (resolve, reject) {\n _this2[kStream].destroy(null, function (err) {\n if (err) {\n reject(err);\n return;\n }\n\n resolve(createIterResult(undefined, true));\n });\n });\n}), _Object$setPrototypeO), AsyncIteratorPrototype);\n\nvar createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {\n var _Object$create;\n\n var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {\n value: stream,\n writable: true\n }), _defineProperty(_Object$create, kLastResolve, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kLastReject, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kError, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kEnded, {\n value: stream._readableState.endEmitted,\n writable: true\n }), _defineProperty(_Object$create, kHandlePromise, {\n value: function value(resolve, reject) {\n var data = iterator[kStream].read();\n\n if (data) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(data, false));\n } else {\n iterator[kLastResolve] = resolve;\n iterator[kLastReject] = reject;\n }\n },\n writable: true\n }), _Object$create));\n iterator[kLastPromise] = null;\n finished(stream, function (err) {\n if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise\n // returned by next() and store the error\n\n if (reject !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n reject(err);\n }\n\n iterator[kError] = err;\n return;\n }\n\n var resolve = iterator[kLastResolve];\n\n if (resolve !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(undefined, true));\n }\n\n iterator[kEnded] = true;\n });\n stream.on('readable', onReadable.bind(null, iterator));\n return iterator;\n};\n\nmodule.exports = createReadableStreamAsyncIterator;","'use strict';\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar ERR_INVALID_ARG_TYPE = require('../../../errors').codes.ERR_INVALID_ARG_TYPE;\n\nfunction from(Readable, iterable, opts) {\n var iterator;\n\n if (iterable && typeof iterable.next === 'function') {\n iterator = iterable;\n } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable);\n\n var readable = new Readable(_objectSpread({\n objectMode: true\n }, opts)); // Reading boolean to protect against _read\n // being called before last iteration completion.\n\n var reading = false;\n\n readable._read = function () {\n if (!reading) {\n reading = true;\n next();\n }\n };\n\n function next() {\n return _next2.apply(this, arguments);\n }\n\n function _next2() {\n _next2 = _asyncToGenerator(function* () {\n try {\n var _ref = yield iterator.next(),\n value = _ref.value,\n done = _ref.done;\n\n if (done) {\n readable.push(null);\n } else if (readable.push((yield value))) {\n next();\n } else {\n reading = false;\n }\n } catch (err) {\n readable.destroy(err);\n }\n });\n return _next2.apply(this, arguments);\n }\n\n return readable;\n}\n\nmodule.exports = from;","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n\nrequire('inherits')(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","// Ported from https://github.com/mafintosh/pump with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar eos;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n callback.apply(void 0, arguments);\n };\n}\n\nvar _require$codes = require('../../../errors').codes,\n ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;\n\nfunction noop(err) {\n // Rethrow the error if it exists to avoid swallowing it\n if (err) throw err;\n}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction destroyer(stream, reading, writing, callback) {\n callback = once(callback);\n var closed = false;\n stream.on('close', function () {\n closed = true;\n });\n if (eos === undefined) eos = require('./end-of-stream');\n eos(stream, {\n readable: reading,\n writable: writing\n }, function (err) {\n if (err) return callback(err);\n closed = true;\n callback();\n });\n var destroyed = false;\n return function (err) {\n if (closed) return;\n if (destroyed) return;\n destroyed = true; // request.destroy just do .end - .abort is what we want\n\n if (isRequest(stream)) return stream.abort();\n if (typeof stream.destroy === 'function') return stream.destroy();\n callback(err || new ERR_STREAM_DESTROYED('pipe'));\n };\n}\n\nfunction call(fn) {\n fn();\n}\n\nfunction pipe(from, to) {\n return from.pipe(to);\n}\n\nfunction popCallback(streams) {\n if (!streams.length) return noop;\n if (typeof streams[streams.length - 1] !== 'function') return noop;\n return streams.pop();\n}\n\nfunction pipeline() {\n for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {\n streams[_key] = arguments[_key];\n }\n\n var callback = popCallback(streams);\n if (Array.isArray(streams[0])) streams = streams[0];\n\n if (streams.length < 2) {\n throw new ERR_MISSING_ARGS('streams');\n }\n\n var error;\n var destroys = streams.map(function (stream, i) {\n var reading = i < streams.length - 1;\n var writing = i > 0;\n return destroyer(stream, reading, writing, function (err) {\n if (!error) error = err;\n if (err) destroys.forEach(call);\n if (reading) return;\n destroys.forEach(call);\n callback(error);\n });\n });\n return streams.reduce(pipe);\n}\n\nmodule.exports = pipeline;","var create = require('../diagnostics');\n\n/**\n * Create a new diagnostics logger.\n *\n * @param {String} namespace The namespace it should enable.\n * @param {Object} options Additional options.\n * @returns {Function} The logger.\n * @public\n */\nvar diagnostics = create(function prod(namespace, options) {\n options = options || {};\n options.namespace = namespace;\n options.prod = true;\n options.dev = false;\n\n if (!(options.force || prod.force)) return prod.nope(options);\n return prod.yep(options);\n});\n\n//\n// Expose the diagnostics logger.\n//\nmodule.exports = diagnostics;\n","/**\n * Contains all configured adapters for the given environment.\n *\n * @type {Array}\n * @public\n */\nvar adapters = [];\n\n/**\n * Contains all modifier functions.\n *\n * @typs {Array}\n * @public\n */\nvar modifiers = [];\n\n/**\n * Our default logger.\n *\n * @public\n */\nvar logger = function devnull() {};\n\n/**\n * Register a new adapter that will used to find environments.\n *\n * @param {Function} adapter A function that will return the possible env.\n * @returns {Boolean} Indication of a successful add.\n * @public\n */\nfunction use(adapter) {\n if (~adapters.indexOf(adapter)) return false;\n\n adapters.push(adapter);\n return true;\n}\n\n/**\n * Assign a new log method.\n *\n * @param {Function} custom The log method.\n * @public\n */\nfunction set(custom) {\n logger = custom;\n}\n\n/**\n * Check if the namespace is allowed by any of our adapters.\n *\n * @param {String} namespace The namespace that needs to be enabled\n * @returns {Boolean|Promise} Indication if the namespace is enabled by our adapters.\n * @public\n */\nfunction enabled(namespace) {\n var async = [];\n\n for (var i = 0; i < adapters.length; i++) {\n if (adapters[i].async) {\n async.push(adapters[i]);\n continue;\n }\n\n if (adapters[i](namespace)) return true;\n }\n\n if (!async.length) return false;\n\n //\n // Now that we know that we Async functions, we know we run in an ES6\n // environment and can use all the API's that they offer, in this case\n // we want to return a Promise so that we can `await` in React-Native\n // for an async adapter.\n //\n return new Promise(function pinky(resolve) {\n Promise.all(\n async.map(function prebind(fn) {\n return fn(namespace);\n })\n ).then(function resolved(values) {\n resolve(values.some(Boolean));\n });\n });\n}\n\n/**\n * Add a new message modifier to the debugger.\n *\n * @param {Function} fn Modification function.\n * @returns {Boolean} Indication of a successful add.\n * @public\n */\nfunction modify(fn) {\n if (~modifiers.indexOf(fn)) return false;\n\n modifiers.push(fn);\n return true;\n}\n\n/**\n * Write data to the supplied logger.\n *\n * @param {Object} meta Meta information about the log.\n * @param {Array} args Arguments for console.log.\n * @public\n */\nfunction write() {\n logger.apply(logger, arguments);\n}\n\n/**\n * Process the message with the modifiers.\n *\n * @param {Mixed} message The message to be transformed by modifers.\n * @returns {String} Transformed message.\n * @public\n */\nfunction process(message) {\n for (var i = 0; i < modifiers.length; i++) {\n message = modifiers[i].apply(modifiers[i], arguments);\n }\n\n return message;\n}\n\n/**\n * Introduce options to the logger function.\n *\n * @param {Function} fn Calback function.\n * @param {Object} options Properties to introduce on fn.\n * @returns {Function} The passed function\n * @public\n */\nfunction introduce(fn, options) {\n var has = Object.prototype.hasOwnProperty;\n\n for (var key in options) {\n if (has.call(options, key)) {\n fn[key] = options[key];\n }\n }\n\n return fn;\n}\n\n/**\n * Nope, we're not allowed to write messages.\n *\n * @returns {Boolean} false\n * @public\n */\nfunction nope(options) {\n options.enabled = false;\n options.modify = modify;\n options.set = set;\n options.use = use;\n\n return introduce(function diagnopes() {\n return false;\n }, options);\n}\n\n/**\n * Yep, we're allowed to write debug messages.\n *\n * @param {Object} options The options for the process.\n * @returns {Function} The function that does the logging.\n * @public\n */\nfunction yep(options) {\n /**\n * The function that receives the actual debug information.\n *\n * @returns {Boolean} indication that we're logging.\n * @public\n */\n function diagnostics() {\n var args = Array.prototype.slice.call(arguments, 0);\n\n write.call(write, options, process(args, options));\n return true;\n }\n\n options.enabled = true;\n options.modify = modify;\n options.set = set;\n options.use = use;\n\n return introduce(diagnostics, options);\n}\n\n/**\n * Simple helper function to introduce various of helper methods to our given\n * diagnostics function.\n *\n * @param {Function} diagnostics The diagnostics function.\n * @returns {Function} diagnostics\n * @public\n */\nmodule.exports = function create(diagnostics) {\n diagnostics.introduce = introduce;\n diagnostics.enabled = enabled;\n diagnostics.process = process;\n diagnostics.modify = modify;\n diagnostics.write = write;\n diagnostics.nope = nope;\n diagnostics.yep = yep;\n diagnostics.set = set;\n diagnostics.use = use;\n\n return diagnostics;\n}\n","/**\n * tail-file.js: TODO: add file header description.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst fs = require('fs');\nconst { StringDecoder } = require('string_decoder');\nconst { Stream } = require('readable-stream');\n\n/**\n * Simple no-op function.\n * @returns {undefined}\n */\nfunction noop() {}\n\n/**\n * TODO: add function description.\n * @param {Object} options - Options for tail.\n * @param {function} iter - Iterator function to execute on every line.\n* `tail -f` a file. Options must include file.\n * @returns {mixed} - TODO: add return description.\n */\nmodule.exports = (options, iter) => {\n const buffer = Buffer.alloc(64 * 1024);\n const decode = new StringDecoder('utf8');\n const stream = new Stream();\n let buff = '';\n let pos = 0;\n let row = 0;\n\n if (options.start === -1) {\n delete options.start;\n }\n\n stream.readable = true;\n stream.destroy = () => {\n stream.destroyed = true;\n stream.emit('end');\n stream.emit('close');\n };\n\n fs.open(options.file, 'a+', '0644', (err, fd) => {\n if (err) {\n if (!iter) {\n stream.emit('error', err);\n } else {\n iter(err);\n }\n stream.destroy();\n return;\n }\n\n (function read() {\n if (stream.destroyed) {\n fs.close(fd, noop);\n return;\n }\n\n return fs.read(fd, buffer, 0, buffer.length, pos, (error, bytes) => {\n if (error) {\n if (!iter) {\n stream.emit('error', error);\n } else {\n iter(error);\n }\n stream.destroy();\n return;\n }\n\n if (!bytes) {\n if (buff) {\n // eslint-disable-next-line eqeqeq\n if (options.start == null || row > options.start) {\n if (!iter) {\n stream.emit('line', buff);\n } else {\n iter(null, buff);\n }\n }\n row++;\n buff = '';\n }\n return setTimeout(read, 1000);\n }\n\n let data = decode.write(buffer.slice(0, bytes));\n if (!iter) {\n stream.emit('data', data);\n }\n\n data = (buff + data).split(/\\n+/);\n\n const l = data.length - 1;\n let i = 0;\n\n for (; i < l; i++) {\n // eslint-disable-next-line eqeqeq\n if (options.start == null || row > options.start) {\n if (!iter) {\n stream.emit('line', data[i]);\n } else {\n iter(null, data[i]);\n }\n }\n row++;\n }\n\n buff = data[l];\n pos += bytes;\n return read();\n });\n }());\n });\n\n if (!iter) {\n return stream;\n }\n\n return stream.destroy;\n};\n","/**\n * http.js: Transport for outputting to a json-rpcserver.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst http = require('http');\nconst https = require('https');\nconst { Stream } = require('readable-stream');\nconst TransportStream = require('winston-transport');\n\n/**\n * Transport for outputting to a json-rpc server.\n * @type {Stream}\n * @extends {TransportStream}\n */\nmodule.exports = class Http extends TransportStream {\n /**\n * Constructor function for the Http transport object responsible for\n * persisting log messages and metadata to a terminal or TTY.\n * @param {!Object} [options={}] - Options for this instance.\n */\n constructor(options = {}) {\n super(options);\n\n this.options = options;\n this.name = options.name || 'http';\n this.ssl = !!options.ssl;\n this.host = options.host || 'localhost';\n this.port = options.port;\n this.auth = options.auth;\n this.path = options.path || '';\n this.agent = options.agent;\n this.headers = options.headers || {};\n this.headers['content-type'] = 'application/json';\n\n if (!this.port) {\n this.port = this.ssl ? 443 : 80;\n }\n }\n\n /**\n * Core logging method exposed to Winston.\n * @param {Object} info - TODO: add param description.\n * @param {function} callback - TODO: add param description.\n * @returns {undefined}\n */\n log(info, callback) {\n this._request(info, (err, res) => {\n if (res && res.statusCode !== 200) {\n err = new Error(`Invalid HTTP Status Code: ${res.statusCode}`);\n }\n\n if (err) {\n this.emit('warn', err);\n } else {\n this.emit('logged', info);\n }\n });\n\n // Remark: (jcrugzz) Fire and forget here so requests dont cause buffering\n // and block more requests from happening?\n if (callback) {\n setImmediate(callback);\n }\n }\n\n /**\n * Query the transport. Options object is optional.\n * @param {Object} options - Loggly-like query options for this instance.\n * @param {function} callback - Continuation to respond to when complete.\n * @returns {undefined}\n */\n query(options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n options = {\n method: 'query',\n params: this.normalizeQuery(options)\n };\n\n if (options.params.path) {\n options.path = options.params.path;\n delete options.params.path;\n }\n\n if (options.params.auth) {\n options.auth = options.params.auth;\n delete options.params.auth;\n }\n\n this._request(options, (err, res, body) => {\n if (res && res.statusCode !== 200) {\n err = new Error(`Invalid HTTP Status Code: ${res.statusCode}`);\n }\n\n if (err) {\n return callback(err);\n }\n\n if (typeof body === 'string') {\n try {\n body = JSON.parse(body);\n } catch (e) {\n return callback(e);\n }\n }\n\n callback(null, body);\n });\n }\n\n /**\n * Returns a log stream for this transport. Options object is optional.\n * @param {Object} options - Stream options for this instance.\n * @returns {Stream} - TODO: add return description\n */\n stream(options = {}) {\n const stream = new Stream();\n options = {\n method: 'stream',\n params: options\n };\n\n if (options.params.path) {\n options.path = options.params.path;\n delete options.params.path;\n }\n\n if (options.params.auth) {\n options.auth = options.params.auth;\n delete options.params.auth;\n }\n\n let buff = '';\n const req = this._request(options);\n\n stream.destroy = () => req.destroy();\n req.on('data', data => {\n data = (buff + data).split(/\\n+/);\n const l = data.length - 1;\n\n let i = 0;\n for (; i < l; i++) {\n try {\n stream.emit('log', JSON.parse(data[i]));\n } catch (e) {\n stream.emit('error', e);\n }\n }\n\n buff = data[l];\n });\n req.on('error', err => stream.emit('error', err));\n\n return stream;\n }\n\n /**\n * Make a request to a winstond server or any http server which can\n * handle json-rpc.\n * @param {function} options - Options to sent the request.\n * @param {function} callback - Continuation to respond to when complete.\n */\n _request(options, callback) {\n options = options || {};\n\n const auth = options.auth || this.auth;\n const path = options.path || this.path || '';\n\n delete options.auth;\n delete options.path;\n\n // Prepare options for outgoing HTTP request\n const headers = Object.assign({}, this.headers);\n if (auth && auth.bearer) {\n headers.Authorization = `Bearer ${auth.bearer}`;\n }\n const req = (this.ssl ? https : http).request({\n ...this.options,\n method: 'POST',\n host: this.host,\n port: this.port,\n path: `/${path.replace(/^\\//, '')}`,\n headers: headers,\n auth: (auth && auth.username && auth.password) ? (`${auth.username}:${auth.password}`) : '',\n agent: this.agent\n });\n\n req.on('error', callback);\n req.on('response', res => (\n res.on('end', () => callback(null, res)).resume()\n ));\n req.end(Buffer.from(JSON.stringify(options), 'utf8'));\n }\n};\n","/**\n * stream.js: Transport for outputting to any arbitrary stream.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst isStream = require('is-stream');\nconst { MESSAGE } = require('triple-beam');\nconst os = require('os');\nconst TransportStream = require('winston-transport');\n\n/**\n * Transport for outputting to any arbitrary stream.\n * @type {Stream}\n * @extends {TransportStream}\n */\nmodule.exports = class Stream extends TransportStream {\n /**\n * Constructor function for the Console transport object responsible for\n * persisting log messages and metadata to a terminal or TTY.\n * @param {!Object} [options={}] - Options for this instance.\n */\n constructor(options = {}) {\n super(options);\n\n if (!options.stream || !isStream(options.stream)) {\n throw new Error('options.stream is required.');\n }\n\n // We need to listen for drain events when write() returns false. This can\n // make node mad at times.\n this._stream = options.stream;\n this._stream.setMaxListeners(Infinity);\n this.isObjectMode = options.stream._writableState.objectMode;\n this.eol = options.eol || os.EOL;\n }\n\n /**\n * Core logging method exposed to Winston.\n * @param {Object} info - TODO: add param description.\n * @param {Function} callback - TODO: add param description.\n * @returns {undefined}\n */\n log(info, callback) {\n setImmediate(() => this.emit('logged', info));\n if (this.isObjectMode) {\n this._stream.write(info);\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n return;\n }\n\n this._stream.write(`${info[MESSAGE]}${this.eol}`);\n if (callback) {\n callback(); // eslint-disable-line callback-return\n }\n return;\n }\n};\n","/**\n * logger.js: TODO: add file header description.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst { Stream, Transform } = require('readable-stream');\nconst asyncForEach = require('async/forEach');\nconst { LEVEL, SPLAT } = require('triple-beam');\nconst isStream = require('is-stream');\nconst ExceptionHandler = require('./exception-handler');\nconst RejectionHandler = require('./rejection-handler');\nconst LegacyTransportStream = require('winston-transport/legacy');\nconst Profiler = require('./profiler');\nconst { warn } = require('./common');\nconst config = require('./config');\n\n/**\n * Captures the number of format (i.e. %s strings) in a given string.\n * Based on `util.format`, see Node.js source:\n * https://github.com/nodejs/node/blob/b1c8f15c5f169e021f7c46eb7b219de95fe97603/lib/util.js#L201-L230\n * @type {RegExp}\n */\nconst formatRegExp = /%[scdjifoO%]/g;\n\n/**\n * TODO: add class description.\n * @type {Logger}\n * @extends {Transform}\n */\nclass Logger extends Transform {\n /**\n * Constructor function for the Logger object responsible for persisting log\n * messages and metadata to one or more transports.\n * @param {!Object} options - foo\n */\n constructor(options) {\n super({ objectMode: true });\n this.configure(options);\n }\n\n child(defaultRequestMetadata) {\n const logger = this;\n return Object.create(logger, {\n write: {\n value: function (info) {\n const infoClone = Object.assign(\n {},\n defaultRequestMetadata,\n info\n );\n\n // Object.assign doesn't copy inherited Error\n // properties so we have to do that explicitly\n //\n // Remark (indexzero): we should remove this\n // since the errors format will handle this case.\n //\n if (info instanceof Error) {\n infoClone.stack = info.stack;\n infoClone.message = info.message;\n }\n\n logger.write(infoClone);\n }\n }\n });\n }\n\n /**\n * This will wholesale reconfigure this instance by:\n * 1. Resetting all transports. Older transports will be removed implicitly.\n * 2. Set all other options including levels, colors, rewriters, filters,\n * exceptionHandlers, etc.\n * @param {!Object} options - TODO: add param description.\n * @returns {undefined}\n */\n configure({\n silent,\n format,\n defaultMeta,\n levels,\n level = 'info',\n exitOnError = true,\n transports,\n colors,\n emitErrs,\n formatters,\n padLevels,\n rewriters,\n stripColors,\n exceptionHandlers,\n rejectionHandlers\n } = {}) {\n // Reset transports if we already have them\n if (this.transports.length) {\n this.clear();\n }\n\n this.silent = silent;\n this.format = format || this.format || require('logform/json')();\n\n this.defaultMeta = defaultMeta || null;\n // Hoist other options onto this instance.\n this.levels = levels || this.levels || config.npm.levels;\n this.level = level;\n this.exceptions = new ExceptionHandler(this);\n this.rejections = new RejectionHandler(this);\n this.profilers = {};\n this.exitOnError = exitOnError;\n\n // Add all transports we have been provided.\n if (transports) {\n transports = Array.isArray(transports) ? transports : [transports];\n transports.forEach(transport => this.add(transport));\n }\n\n if (\n colors ||\n emitErrs ||\n formatters ||\n padLevels ||\n rewriters ||\n stripColors\n ) {\n throw new Error(\n [\n '{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.',\n 'Use a custom winston.format(function) instead.',\n 'See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md'\n ].join('\\n')\n );\n }\n\n if (exceptionHandlers) {\n this.exceptions.handle(exceptionHandlers);\n }\n if (rejectionHandlers) {\n this.rejections.handle(rejectionHandlers);\n }\n }\n\n isLevelEnabled(level) {\n const givenLevelValue = getLevelValue(this.levels, level);\n if (givenLevelValue === null) {\n return false;\n }\n\n const configuredLevelValue = getLevelValue(this.levels, this.level);\n if (configuredLevelValue === null) {\n return false;\n }\n\n if (!this.transports || this.transports.length === 0) {\n return configuredLevelValue >= givenLevelValue;\n }\n\n const index = this.transports.findIndex(transport => {\n let transportLevelValue = getLevelValue(this.levels, transport.level);\n if (transportLevelValue === null) {\n transportLevelValue = configuredLevelValue;\n }\n return transportLevelValue >= givenLevelValue;\n });\n return index !== -1;\n }\n\n /* eslint-disable valid-jsdoc */\n /**\n * Ensure backwards compatibility with a `log` method\n * @param {mixed} level - Level the log message is written at.\n * @param {mixed} msg - TODO: add param description.\n * @param {mixed} meta - TODO: add param description.\n * @returns {Logger} - TODO: add return description.\n *\n * @example\n * // Supports the existing API:\n * logger.log('info', 'Hello world', { custom: true });\n * logger.log('info', new Error('Yo, it\\'s on fire'));\n *\n * // Requires winston.format.splat()\n * logger.log('info', '%s %d%%', 'A string', 50, { thisIsMeta: true });\n *\n * // And the new API with a single JSON literal:\n * logger.log({ level: 'info', message: 'Hello world', custom: true });\n * logger.log({ level: 'info', message: new Error('Yo, it\\'s on fire') });\n *\n * // Also requires winston.format.splat()\n * logger.log({\n * level: 'info',\n * message: '%s %d%%',\n * [SPLAT]: ['A string', 50],\n * meta: { thisIsMeta: true }\n * });\n *\n */\n /* eslint-enable valid-jsdoc */\n log(level, msg, ...splat) {\n // eslint-disable-line max-params\n // Optimize for the hotpath of logging JSON literals\n if (arguments.length === 1) {\n // Yo dawg, I heard you like levels ... seriously ...\n // In this context the LHS `level` here is actually the `info` so read\n // this as: info[LEVEL] = info.level;\n level[LEVEL] = level.level;\n this._addDefaultMeta(level);\n this.write(level);\n return this;\n }\n\n // Slightly less hotpath, but worth optimizing for.\n if (arguments.length === 2) {\n if (msg && typeof msg === 'object') {\n msg[LEVEL] = msg.level = level;\n this._addDefaultMeta(msg);\n this.write(msg);\n return this;\n }\n\n this.write({ [LEVEL]: level, level, message: msg });\n return this;\n }\n\n const [meta] = splat;\n if (typeof meta === 'object' && meta !== null) {\n // Extract tokens, if none available default to empty array to\n // ensure consistancy in expected results\n const tokens = msg && msg.match && msg.match(formatRegExp);\n\n if (!tokens) {\n const info = Object.assign({}, this.defaultMeta, meta, {\n [LEVEL]: level,\n [SPLAT]: splat,\n level,\n message: msg\n });\n\n if (meta.message) info.message = `${info.message} ${meta.message}`;\n if (meta.stack) info.stack = meta.stack;\n\n this.write(info);\n return this;\n }\n }\n\n this.write(Object.assign({}, this.defaultMeta, {\n [LEVEL]: level,\n [SPLAT]: splat,\n level,\n message: msg\n }));\n\n return this;\n }\n\n /**\n * Pushes data so that it can be picked up by all of our pipe targets.\n * @param {mixed} info - TODO: add param description.\n * @param {mixed} enc - TODO: add param description.\n * @param {mixed} callback - Continues stream processing.\n * @returns {undefined}\n * @private\n */\n _transform(info, enc, callback) {\n if (this.silent) {\n return callback();\n }\n\n // [LEVEL] is only soft guaranteed to be set here since we are a proper\n // stream. It is likely that `info` came in through `.log(info)` or\n // `.info(info)`. If it is not defined, however, define it.\n // This LEVEL symbol is provided by `triple-beam` and also used in:\n // - logform\n // - winston-transport\n // - abstract-winston-transport\n if (!info[LEVEL]) {\n info[LEVEL] = info.level;\n }\n\n // Remark: really not sure what to do here, but this has been reported as\n // very confusing by pre winston@2.0.0 users as quite confusing when using\n // custom levels.\n if (!this.levels[info[LEVEL]] && this.levels[info[LEVEL]] !== 0) {\n // eslint-disable-next-line no-console\n console.error('[winston] Unknown logger level: %s', info[LEVEL]);\n }\n\n // Remark: not sure if we should simply error here.\n if (!this._readableState.pipes) {\n // eslint-disable-next-line no-console\n console.error(\n '[winston] Attempt to write logs with no transports %j',\n info\n );\n }\n\n // Here we write to the `format` pipe-chain, which on `readable` above will\n // push the formatted `info` Object onto the buffer for this instance. We trap\n // (and re-throw) any errors generated by the user-provided format, but also\n // guarantee that the streams callback is invoked so that we can continue flowing.\n try {\n this.push(this.format.transform(info, this.format.options));\n } catch (ex) {\n throw ex;\n } finally {\n // eslint-disable-next-line callback-return\n callback();\n }\n }\n\n /**\n * Delays the 'finish' event until all transport pipe targets have\n * also emitted 'finish' or are already finished.\n * @param {mixed} callback - Continues stream processing.\n */\n _final(callback) {\n const transports = this.transports.slice();\n asyncForEach(\n transports,\n (transport, next) => {\n if (!transport || transport.finished) return setImmediate(next);\n transport.once('finish', next);\n transport.end();\n },\n callback\n );\n }\n\n /**\n * Adds the transport to this logger instance by piping to it.\n * @param {mixed} transport - TODO: add param description.\n * @returns {Logger} - TODO: add return description.\n */\n add(transport) {\n // Support backwards compatibility with all existing `winston < 3.x.x`\n // transports which meet one of two criteria:\n // 1. They inherit from winston.Transport in < 3.x.x which is NOT a stream.\n // 2. They expose a log method which has a length greater than 2 (i.e. more then\n // just `log(info, callback)`.\n const target =\n !isStream(transport) || transport.log.length > 2\n ? new LegacyTransportStream({ transport })\n : transport;\n\n if (!target._writableState || !target._writableState.objectMode) {\n throw new Error(\n 'Transports must WritableStreams in objectMode. Set { objectMode: true }.'\n );\n }\n\n // Listen for the `error` event and the `warn` event on the new Transport.\n this._onEvent('error', target);\n this._onEvent('warn', target);\n this.pipe(target);\n\n if (transport.handleExceptions) {\n this.exceptions.handle();\n }\n\n if (transport.handleRejections) {\n this.rejections.handle();\n }\n\n return this;\n }\n\n /**\n * Removes the transport from this logger instance by unpiping from it.\n * @param {mixed} transport - TODO: add param description.\n * @returns {Logger} - TODO: add return description.\n */\n remove(transport) {\n if (!transport) return this;\n let target = transport;\n if (!isStream(transport) || transport.log.length > 2) {\n target = this.transports.filter(\n match => match.transport === transport\n )[0];\n }\n\n if (target) {\n this.unpipe(target);\n }\n return this;\n }\n\n /**\n * Removes all transports from this logger instance.\n * @returns {Logger} - TODO: add return description.\n */\n clear() {\n this.unpipe();\n return this;\n }\n\n /**\n * Cleans up resources (streams, event listeners) for all transports\n * associated with this instance (if necessary).\n * @returns {Logger} - TODO: add return description.\n */\n close() {\n this.clear();\n this.emit('close');\n return this;\n }\n\n /**\n * Sets the `target` levels specified on this instance.\n * @param {Object} Target levels to use on this instance.\n */\n setLevels() {\n warn.deprecated('setLevels');\n }\n\n /**\n * Queries the all transports for this instance with the specified `options`.\n * This will aggregate each transport's results into one object containing\n * a property per transport.\n * @param {Object} options - Query options for this instance.\n * @param {function} callback - Continuation to respond to when complete.\n */\n query(options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n options = options || {};\n const results = {};\n const queryObject = Object.assign({}, options.query || {});\n\n // Helper function to query a single transport\n function queryTransport(transport, next) {\n if (options.query && typeof transport.formatQuery === 'function') {\n options.query = transport.formatQuery(queryObject);\n }\n\n transport.query(options, (err, res) => {\n if (err) {\n return next(err);\n }\n\n if (typeof transport.formatResults === 'function') {\n res = transport.formatResults(res, options.format);\n }\n\n next(null, res);\n });\n }\n\n // Helper function to accumulate the results from `queryTransport` into\n // the `results`.\n function addResults(transport, next) {\n queryTransport(transport, (err, result) => {\n // queryTransport could potentially invoke the callback multiple times\n // since Transport code can be unpredictable.\n if (next) {\n result = err || result;\n if (result) {\n results[transport.name] = result;\n }\n\n // eslint-disable-next-line callback-return\n next();\n }\n\n next = null;\n });\n }\n\n // Iterate over the transports in parallel setting the appropriate key in\n // the `results`.\n asyncForEach(\n this.transports.filter(transport => !!transport.query),\n addResults,\n () => callback(null, results)\n );\n }\n\n /**\n * Returns a log stream for all transports. Options object is optional.\n * @param{Object} options={} - Stream options for this instance.\n * @returns {Stream} - TODO: add return description.\n */\n stream(options = {}) {\n const out = new Stream();\n const streams = [];\n\n out._streams = streams;\n out.destroy = () => {\n let i = streams.length;\n while (i--) {\n streams[i].destroy();\n }\n };\n\n // Create a list of all transports for this instance.\n this.transports\n .filter(transport => !!transport.stream)\n .forEach(transport => {\n const str = transport.stream(options);\n if (!str) {\n return;\n }\n\n streams.push(str);\n\n str.on('log', log => {\n log.transport = log.transport || [];\n log.transport.push(transport.name);\n out.emit('log', log);\n });\n\n str.on('error', err => {\n err.transport = err.transport || [];\n err.transport.push(transport.name);\n out.emit('error', err);\n });\n });\n\n return out;\n }\n\n /**\n * Returns an object corresponding to a specific timing. When done is called\n * the timer will finish and log the duration. e.g.:\n * @returns {Profile} - TODO: add return description.\n * @example\n * const timer = winston.startTimer()\n * setTimeout(() => {\n * timer.done({\n * message: 'Logging message'\n * });\n * }, 1000);\n */\n startTimer() {\n return new Profiler(this);\n }\n\n /**\n * Tracks the time inbetween subsequent calls to this method with the same\n * `id` parameter. The second call to this method will log the difference in\n * milliseconds along with the message.\n * @param {string} id Unique id of the profiler\n * @returns {Logger} - TODO: add return description.\n */\n profile(id, ...args) {\n const time = Date.now();\n if (this.profilers[id]) {\n const timeEnd = this.profilers[id];\n delete this.profilers[id];\n\n // Attempt to be kind to users if they are still using older APIs.\n if (typeof args[args.length - 2] === 'function') {\n // eslint-disable-next-line no-console\n console.warn(\n 'Callback function no longer supported as of winston@3.0.0'\n );\n args.pop();\n }\n\n // Set the duration property of the metadata\n const info = typeof args[args.length - 1] === 'object' ? args.pop() : {};\n info.level = info.level || 'info';\n info.durationMs = time - timeEnd;\n info.message = info.message || id;\n return this.write(info);\n }\n\n this.profilers[id] = time;\n return this;\n }\n\n /**\n * Backwards compatibility to `exceptions.handle` in winston < 3.0.0.\n * @returns {undefined}\n * @deprecated\n */\n handleExceptions(...args) {\n // eslint-disable-next-line no-console\n console.warn(\n 'Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()'\n );\n this.exceptions.handle(...args);\n }\n\n /**\n * Backwards compatibility to `exceptions.handle` in winston < 3.0.0.\n * @returns {undefined}\n * @deprecated\n */\n unhandleExceptions(...args) {\n // eslint-disable-next-line no-console\n console.warn(\n 'Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()'\n );\n this.exceptions.unhandle(...args);\n }\n\n /**\n * Throw a more meaningful deprecation notice\n * @throws {Error} - TODO: add throws description.\n */\n cli() {\n throw new Error(\n [\n 'Logger.cli() was removed in winston@3.0.0',\n 'Use a custom winston.formats.cli() instead.',\n 'See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md'\n ].join('\\n')\n );\n }\n\n /**\n * Bubbles the `event` that occured on the specified `transport` up\n * from this instance.\n * @param {string} event - The event that occured\n * @param {Object} transport - Transport on which the event occured\n * @private\n */\n _onEvent(event, transport) {\n function transportEvent(err) {\n // https://github.com/winstonjs/winston/issues/1364\n if (event === 'error' && !this.transports.includes(transport)) {\n this.add(transport);\n }\n this.emit(event, err, transport);\n }\n\n if (!transport['__winston' + event]) {\n transport['__winston' + event] = transportEvent.bind(this);\n transport.on(event, transport['__winston' + event]);\n }\n }\n\n _addDefaultMeta(msg) {\n if (this.defaultMeta) {\n Object.assign(msg, this.defaultMeta);\n }\n }\n}\n\nfunction getLevelValue(levels, level) {\n const value = levels[level];\n if (!value && value !== 0) {\n return null;\n }\n return value;\n}\n\n/**\n * Represents the current readableState pipe targets for this Logger instance.\n * @type {Array|Object}\n */\nObject.defineProperty(Logger.prototype, 'transports', {\n configurable: false,\n enumerable: true,\n get() {\n const { pipes } = this._readableState;\n return !Array.isArray(pipes) ? [pipes].filter(Boolean) : pipes;\n }\n});\n\nmodule.exports = Logger;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _isArrayLike = require('./internal/isArrayLike');\n\nvar _isArrayLike2 = _interopRequireDefault(_isArrayLike);\n\nvar _breakLoop = require('./internal/breakLoop');\n\nvar _breakLoop2 = _interopRequireDefault(_breakLoop);\n\nvar _eachOfLimit = require('./eachOfLimit');\n\nvar _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);\n\nvar _once = require('./internal/once');\n\nvar _once2 = _interopRequireDefault(_once);\n\nvar _onlyOnce = require('./internal/onlyOnce');\n\nvar _onlyOnce2 = _interopRequireDefault(_onlyOnce);\n\nvar _wrapAsync = require('./internal/wrapAsync');\n\nvar _wrapAsync2 = _interopRequireDefault(_wrapAsync);\n\nvar _awaitify = require('./internal/awaitify');\n\nvar _awaitify2 = _interopRequireDefault(_awaitify);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// eachOf implementation optimized for array-likes\nfunction eachOfArrayLike(coll, iteratee, callback) {\n callback = (0, _once2.default)(callback);\n var index = 0,\n completed = 0,\n { length } = coll,\n canceled = false;\n if (length === 0) {\n callback(null);\n }\n\n function iteratorCallback(err, value) {\n if (err === false) {\n canceled = true;\n }\n if (canceled === true) return;\n if (err) {\n callback(err);\n } else if (++completed === length || value === _breakLoop2.default) {\n callback(null);\n }\n }\n\n for (; index < length; index++) {\n iteratee(coll[index], index, (0, _onlyOnce2.default)(iteratorCallback));\n }\n}\n\n// a generic version of eachOf which can handle array, object, and iterator cases.\nfunction eachOfGeneric(coll, iteratee, callback) {\n return (0, _eachOfLimit2.default)(coll, Infinity, iteratee, callback);\n}\n\n/**\n * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument\n * to the iteratee.\n *\n * @name eachOf\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEachOf\n * @category Collection\n * @see [async.each]{@link module:Collections.each}\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each\n * item in `coll`.\n * The `key` is the item's key, or index in the case of an array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * var obj = {dev: \"/dev.json\", test: \"/test.json\", prod: \"/prod.json\"};\n * var configs = {};\n *\n * async.forEachOf(obj, function (value, key, callback) {\n * fs.readFile(__dirname + value, \"utf8\", function (err, data) {\n * if (err) return callback(err);\n * try {\n * configs[key] = JSON.parse(data);\n * } catch (e) {\n * return callback(e);\n * }\n * callback();\n * });\n * }, function (err) {\n * if (err) console.error(err.message);\n * // configs is now a map of JSON data\n * doSomethingWith(configs);\n * });\n */\nfunction eachOf(coll, iteratee, callback) {\n var eachOfImplementation = (0, _isArrayLike2.default)(coll) ? eachOfArrayLike : eachOfGeneric;\n return eachOfImplementation(coll, (0, _wrapAsync2.default)(iteratee), callback);\n}\n\nexports.default = (0, _awaitify2.default)(eachOf, 3);\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = _withoutIndex;\nfunction _withoutIndex(iteratee) {\n return (value, index, callback) => iteratee(value, callback);\n}\nmodule.exports = exports[\"default\"];","'use strict';\n\nvar toString = Object.prototype.toString;\n\n/**\n * Extract names from functions.\n *\n * @param {Function} fn The function who's name we need to extract.\n * @returns {String} The name of the function.\n * @public\n */\nmodule.exports = function name(fn) {\n if ('string' === typeof fn.displayName && fn.constructor.name) {\n return fn.displayName;\n } else if ('string' === typeof fn.name && fn.name) {\n return fn.name;\n }\n\n //\n // Check to see if the constructor has a name.\n //\n if (\n 'object' === typeof fn\n && fn.constructor\n && 'string' === typeof fn.constructor.name\n ) return fn.constructor.name;\n\n //\n // toString the given function and attempt to parse it out of it, or determine\n // the class.\n //\n var named = fn.toString()\n , type = toString.call(fn).slice(8, -1);\n\n if ('Function' === type) {\n named = named.substring(named.indexOf('(') + 1, named.indexOf(')'));\n } else {\n named = type;\n }\n\n return named || 'anonymous';\n};\n","/**\n * profiler.js: TODO: add file header description.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\n/**\n * TODO: add class description.\n * @type {Profiler}\n * @private\n */\nmodule.exports = class Profiler {\n /**\n * Constructor function for the Profiler instance used by\n * `Logger.prototype.startTimer`. When done is called the timer will finish\n * and log the duration.\n * @param {!Logger} logger - TODO: add param description.\n * @private\n */\n constructor(logger) {\n if (!logger) {\n throw new Error('Logger is required for profiling.');\n }\n\n this.logger = logger;\n this.start = Date.now();\n }\n\n /**\n * Ends the current timer (i.e. Profiler) instance and logs the `msg` along\n * with the duration since creation.\n * @returns {mixed} - TODO: add return description.\n * @private\n */\n done(...args) {\n if (typeof args[args.length - 1] === 'function') {\n // eslint-disable-next-line no-console\n console.warn('Callback function no longer supported as of winston@3.0.0');\n args.pop();\n }\n\n const info = typeof args[args.length - 1] === 'object' ? args.pop() : {};\n info.level = info.level || 'info';\n info.durationMs = (Date.now()) - this.start;\n\n return this.logger.write(info);\n }\n};\n","/**\n * container.js: Inversion of control container for winston logger instances.\n *\n * (C) 2010 Charlie Robbins\n * MIT LICENCE\n */\n\n'use strict';\n\nconst createLogger = require('./create-logger');\n\n/**\n * Inversion of control container for winston logger instances.\n * @type {Container}\n */\nmodule.exports = class Container {\n /**\n * Constructor function for the Container object responsible for managing a\n * set of `winston.Logger` instances based on string ids.\n * @param {!Object} [options={}] - Default pass-thru options for Loggers.\n */\n constructor(options = {}) {\n this.loggers = new Map();\n this.options = options;\n }\n\n /**\n * Retreives a `winston.Logger` instance for the specified `id`. If an\n * instance does not exist, one is created.\n * @param {!string} id - The id of the Logger to get.\n * @param {?Object} [options] - Options for the Logger instance.\n * @returns {Logger} - A configured Logger instance with a specified id.\n */\n add(id, options) {\n if (!this.loggers.has(id)) {\n // Remark: Simple shallow clone for configuration options in case we pass\n // in instantiated protoypal objects\n options = Object.assign({}, options || this.options);\n const existing = options.transports || this.options.transports;\n\n // Remark: Make sure if we have an array of transports we slice it to\n // make copies of those references.\n options.transports = existing ? existing.slice() : [];\n\n const logger = createLogger(options);\n logger.on('close', () => this._delete(id));\n this.loggers.set(id, logger);\n }\n\n return this.loggers.get(id);\n }\n\n /**\n * Retreives a `winston.Logger` instance for the specified `id`. If\n * an instance does not exist, one is created.\n * @param {!string} id - The id of the Logger to get.\n * @param {?Object} [options] - Options for the Logger instance.\n * @returns {Logger} - A configured Logger instance with a specified id.\n */\n get(id, options) {\n return this.add(id, options);\n }\n\n /**\n * Check if the container has a logger with the id.\n * @param {?string} id - The id of the Logger instance to find.\n * @returns {boolean} - Boolean value indicating if this instance has a\n * logger with the specified `id`.\n */\n has(id) {\n return !!this.loggers.has(id);\n }\n\n /**\n * Closes a `Logger` instance with the specified `id` if it exists.\n * If no `id` is supplied then all Loggers are closed.\n * @param {?string} id - The id of the Logger instance to close.\n * @returns {undefined}\n */\n close(id) {\n if (id) {\n return this._removeLogger(id);\n }\n\n this.loggers.forEach((val, key) => this._removeLogger(key));\n }\n\n /**\n * Remove a logger based on the id.\n * @param {!string} id - The id of the logger to remove.\n * @returns {undefined}\n * @private\n */\n _removeLogger(id) {\n if (!this.loggers.has(id)) {\n return;\n }\n\n const logger = this.loggers.get(id);\n logger.close();\n this._delete(id);\n }\n\n /**\n * Deletes a `Logger` instance with the specified `id`.\n * @param {!string} id - The id of the Logger instance to delete from\n * container.\n * @returns {undefined}\n * @private\n */\n _delete(id) {\n this.loggers.delete(id);\n }\n};\n","import { getSource } from '../utils/miscUtils';\nimport PlayerService from './player.service';\nimport { config } from '../server';\nimport { playerLogger } from './player.utils';\nimport { PhoneEvents } from '../../../typings/phone';\n\nonNet(PhoneEvents.FETCH_CREDENTIALS, () => {\n const src = getSource();\n const phoneNumber = PlayerService.getPlayer(src).getPhoneNumber();\n\n emitNet(PhoneEvents.SEND_CREDENTIALS, src, phoneNumber);\n});\n\n/**\n * Essentially this whole file acts as a controller layer\n * for player related actions. Everything here is registered,\n * within the global scope like routes in a web server.\n */\n\n// If multicharacter mode is disabled, we instantiate a new\n// NPWD player by ourselves without waiting for an export\n\nif (!config.general.useResourceIntegration) {\n on('playerJoining', async () => {\n const src = getSource();\n await PlayerService.handleNewPlayerJoined(src);\n });\n}\n\n// Handle removing from player maps when player disconnects\non('playerDropped', async () => {\n const src = getSource();\n // Get identifier for player to remove\n try {\n await PlayerService.handleUnloadPlayerEvent(src);\n } catch (e) {\n playerLogger.debug(`${src} failed to unload, likely was never loaded in the first place.`);\n }\n});\n\n// Can use this to debug the player table if needed. Disabled by default\n// RegisterCommand(\n// 'getPlayers',\n// () => {\n// playerLogger.debug(Players);\n// },\n// false,\n// );\n\n// Used for debug purposes, if the resource is restarted and the multicharacter option is false\n// we will handle all the currently online players\nif (!config.general.useResourceIntegration) {\n on('onServerResourceStart', async (resource: string) => {\n if (resource === GetCurrentResourceName()) {\n const onlinePlayers = getPlayers();\n for (const player of onlinePlayers) {\n await PlayerService.handleNewPlayerJoined(parseInt(player));\n }\n }\n });\n}\n","import { config } from '../server';\nimport DbInterface from '../db/db_wrapper';\nimport { generateUniquePhoneNumber } from './generateUniquePhoneNumber';\nimport { playerLogger } from '../players/player.utils';\n\nexport async function findOrGeneratePhoneNumber(identifier: string): Promise {\n const query = `SELECT ${config.database.phoneNumberColumn} FROM ${config.database.playerTable} WHERE ${config.database.identifierColumn} = ? LIMIT 1`;\n const [res] = await DbInterface._rawExec(query, [identifier]);\n\n playerLogger.debug('Find user for number generation data >');\n playerLogger.debug(res);\n\n const castRes = res as Record[];\n\n if (castRes && castRes[0][config.database.phoneNumberColumn] !== null)\n return castRes[0][config.database.phoneNumberColumn] as string;\n\n playerLogger.debug('Phone number was returned as null, generating new number');\n const gennedNumber = await generateUniquePhoneNumber();\n\n playerLogger.debug(`Phone number generated > ${gennedNumber}`);\n\n const updateQuery = `UPDATE ${config.database.playerTable} SET ${config.database.phoneNumberColumn} = ? WHERE ${config.database.identifierColumn} = ?`;\n // Update profile with new generated number\n await DbInterface._rawExec(updateQuery, [gennedNumber, identifier]);\n\n return gennedNumber;\n}\n","import { mainLogger } from '../sv_logger';\n\nconst profilerLog = mainLogger.child({ module: 'profiler' });\n\nconst RESOURCE_NAME = GetCurrentResourceName();\n\n// Simple higher order function profiler\n// currently targeted towards ms as unit and db queries\n// but can be altered to be generic in future\nexport const withProfile = async (fn: Function, ...args: any[]) => {\n const startTime = process.hrtime.bigint();\n\n // https://forum.cfx.re/t/node-mysql2-question-about-performance-process-nexttick/4550064/2?u=taso\n ScheduleResourceTick(RESOURCE_NAME);\n const res = await fn(...args);\n\n const endTime = process.hrtime.bigint();\n\n const timeMs = Number(endTime - startTime) / 1e6;\n\n profilerLog.info(`Executed '${fn.name} (${[...args].join(', ')}) in ${timeMs}ms'`);\n\n return res;\n};\n","import { CreatePlayerInstance } from './player.interfaces';\n\nexport class Player {\n public readonly source: number;\n public readonly username: string;\n private _phoneNumber: string;\n private _identifier: string;\n private _firstname: string | null;\n private _lastname: string | null;\n\n constructor({ source, identifier, phoneNumber, username }: CreatePlayerInstance) {\n this.source = source;\n this._identifier = identifier;\n this._phoneNumber = phoneNumber;\n this.username = username;\n }\n\n public getIdentifier(): string {\n return this._identifier;\n }\n\n /**\n * Set the identifier for a player, useful in systems with multicharacter\n * players\n * @param identifier {string} - Set the identifier for a player\n */\n public setIdentifier(identifier: string): Player {\n this._identifier = identifier;\n return this;\n }\n\n /**\n * Returns the stored firstname for a user\n */\n public getFirstName(): string | null {\n return this._firstname;\n }\n\n /**\n * Set the first name for a user\n * @param firstname {string} The first name to set for the user\n **/\n public setFirstName(firstname: string): Player {\n this._firstname = firstname;\n return this;\n }\n\n /**\n * Returns the stored lastname for a user\n **/\n public getLastName(): string | null {\n return this._lastname;\n }\n\n /**\n * Set the last name for a user\n * @param lastname {string} The last name to set for the user\n **/\n public setLastName(lastname: string): Player {\n this._lastname = lastname;\n return this;\n }\n\n /**\n * Get the full name of the user\n **/\n public getName(): string | null {\n if (!this._firstname || !this._lastname) return null;\n return `${this._firstname} ${this._lastname}`;\n }\n\n /**\n * Get the stored phone number for a user\n **/\n public getPhoneNumber(): string {\n return this._phoneNumber;\n }\n\n /**\n * Set the stored phone number for a user\n **/\n public setPhoneNumber(number: string): Player {\n this._phoneNumber = number;\n return this;\n }\n}\n","import { config } from '../server';\n\nexport const getPlayerGameLicense = (src: number): null | string => {\n // Parse specifically for license identifier as its\n // guaranteed\n const playerIdentifiers = getPlayerIdentifiers(src.toString());\n\n let playerIdentifier;\n for (const identifier of playerIdentifiers) {\n if (identifier.includes(config.database.identifierType + ':')) {\n if (config.database.useIdentifierPrefix) playerIdentifier = identifier;\n else playerIdentifier = identifier.split(':')[1];\n }\n }\n\n if (!playerIdentifier) return null;\n return playerIdentifier;\n};\n","import { config } from '../server';\nimport DbInterface from '../db/db_wrapper';\n\nexport class PlayerRepo {\n async fetchIdentifierFromPhoneNumber(phoneNumber: string): Promise {\n const query = `SELECT ${config.database.identifierColumn} FROM ${config.database.playerTable} WHERE ${config.database.phoneNumberColumn} = ?`;\n const [results] = await DbInterface._rawExec(query, [phoneNumber]);\n // Get identifier from results\n return (results as any[])[0][config.database.identifierColumn] || null;\n }\n}\n\nexport default new PlayerRepo();\n","import {\n MarketplaceDeleteDTO,\n MarketplaceListing,\n MarketplaceListingBase,\n ReportListingDTO,\n} from '../../../typings/marketplace';\nimport { ResultSetHeader } from 'mysql2';\nimport DbInterface from '../db/db_wrapper';\n\nexport class _MarketplaceDB {\n async addListing(\n identifier: string,\n username: string,\n name: string,\n number: string,\n listing: MarketplaceListingBase,\n ): Promise {\n const query =\n 'INSERT INTO npwd_marketplace_listings (identifier, username, name, number, title, url, description) VALUES (?, ?, ?, ?, ?, ?, ?)';\n\n const [result] = await DbInterface._rawExec(query, [\n identifier,\n username,\n name,\n number,\n listing.title,\n listing.url,\n listing.description,\n ]);\n\n const resultCast = result as ResultSetHeader;\n\n return resultCast.insertId;\n }\n\n async fetchListings(): Promise {\n const query = 'SELECT * FROM npwd_marketplace_listings WHERE reported = 0 ORDER BY id DESC';\n\n const [results] = await DbInterface._rawExec(query);\n return results;\n }\n\n async deleteListing(listingId: number, identifier: string): Promise {\n const query = 'DELETE FROM npwd_marketplace_listings WHERE id = ? AND identifier = ?';\n\n await DbInterface._rawExec(query, [listingId, identifier]);\n }\n\n async deleteListingsOnDrop(identifier: string) {\n const query = `DELETE FROM npwd_marketplace_listings WHERE identifier = ? AND reported = 0`;\n await DbInterface._rawExec(query, [identifier]);\n }\n\n async getListing(listingId: number): Promise {\n const query = `SELECT * FROM npwd_marketplace_listings WHERE id = ?`;\n const [results] = await DbInterface._rawExec(query, [listingId]);\n const listings = results;\n return listings[0];\n }\n\n async getListingIdsByIdentifier(identifier: string): Promise {\n const query = `SELECT id FROM npwd_marketplace_listings WHERE identifier = ?`;\n const [results] = await DbInterface._rawExec(query, [identifier]);\n\n return results;\n }\n\n async reportListing(listing: ReportListingDTO): Promise {\n const query = `UPDATE npwd_marketplace_listings SET reported = 1 WHERE id = ?`;\n await DbInterface._rawExec(query, [listing.id]);\n }\n\n async doesListingExist(listing: MarketplaceListingBase, identifier: string): Promise {\n const query = `SELECT * FROM npwd_marketplace_listings WHERE title = ? AND identifier = ?`;\n const [results] = await DbInterface._rawExec(query, [listing.title, identifier]);\n const listings = results;\n\n return listings.length > 0;\n }\n\n async doesReportExist(listingId: number, profile: string): Promise {\n const query = `SELECT * FROM npwd_marketplace_listings WHERE id = ? AND username = ? AND reported = 1`;\n const [results] = await DbInterface._rawExec(query, [listingId, profile]);\n const result = results;\n\n return result.length > 0;\n }\n}\n\nconst MarketplaceDB = new _MarketplaceDB();\n\nexport default MarketplaceDB;\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n","var debug;\n\nmodule.exports = function () {\n if (!debug) {\n try {\n /* eslint global-require: off */\n debug = require(\"debug\")(\"follow-redirects\");\n }\n catch (error) { /* */ }\n if (typeof debug !== \"function\") {\n debug = function () { /* */ };\n }\n }\n debug.apply(null, arguments);\n};\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n","'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n","'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n","'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n","// https://forum.cfx.re/t/typescript-vs-lua-questions/612483/11\nexport const Delay = (ms: number): Promise => new Promise((res) => setTimeout(res, ms));\n\n// Credits to d0p3t\n// https://github.com/d0p3t/fivem-js/blob/master/src/utils/UUIDV4.ts\nexport const uuidv4 = (): string => {\n let uuid = '';\n for (let ii = 0; ii < 32; ii += 1) {\n switch (ii) {\n case 8:\n case 20:\n uuid += '-';\n uuid += ((Math.random() * 16) | 0).toString(16);\n break;\n case 12:\n uuid += '-';\n uuid += '4';\n break;\n case 16:\n uuid += '-';\n uuid += ((Math.random() * 4) | 8).toString(16);\n break;\n default:\n uuid += ((Math.random() * 16) | 0).toString(16);\n }\n }\n return uuid;\n};\n","import {\n CallEvents,\n CallHistoryItem,\n TransmitterNumDTO,\n EndCallDTO,\n InitializeCallDTO,\n ActiveCall,\n} from '../../../typings/call';\nimport { getSource, onNetTyped } from '../utils/miscUtils';\nimport CallService from './calls.service';\nimport { callLogger } from './calls.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(CallEvents.INITIALIZE_CALL, (reqObj, resp) => {\n CallService.handleInitializeCall(reqObj, resp).catch((e) => {\n resp({ status: 'error', errorMsg: 'SERVER_ERROR' });\n callLogger.error(`Error occured handling init call: ${e.message}`);\n });\n});\n\nonNetTyped(CallEvents.ACCEPT_CALL, ({ transmitterNumber }) => {\n const src = getSource();\n CallService.handleAcceptCall(src, transmitterNumber).catch((e) =>\n callLogger.error(\n `Error occured in accept call event (${transmitterNumber}), Error: ${e.message}`,\n ),\n );\n});\n\n// Fire and forget event, client doesn't care what response is we reject no matter what.\n// thats the reason its not promise\nonNetTyped(CallEvents.REJECTED, (data) => {\n const src = getSource();\n CallService.handleRejectCall(src, data.transmitterNumber).catch((e) =>\n callLogger.error(\n `Error occured in rejectcall event (${data.transmitterNumber}), Error: ${e.message}`,\n ),\n );\n});\n\nonNetPromise(CallEvents.END_CALL, (reqObj, resp) => {\n CallService.handleEndCall(reqObj, resp).catch((e) => {\n callLogger.error(\n `Error occured in end call event (${reqObj.data.transmitterNumber}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'SERVER_ERROR' });\n });\n});\n\nonNetPromise(CallEvents.FETCH_CALLS, (reqObj, resp) => {\n CallService.handleFetchCalls(reqObj, resp).catch((e) => {\n resp({ status: 'error', errorMsg: 'SERVER_ERROR' });\n callLogger.error(`Error occured in fetch call event, Error: ${e.message}`);\n });\n});\n","import Collection from '@discordjs/collection';\nimport {\n CallEvents,\n CallHistoryItem,\n InitializeCallDTO,\n EndCallDTO,\n ActiveCall,\n ActiveCallRaw,\n} from '../../../typings/call';\nimport CallsDB, { CallsRepo } from './calls.db';\nimport { v4 as uuidv4 } from 'uuid';\nimport PlayerService from '../players/player.service';\nimport { callLogger } from './calls.utils';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\nimport { emitNetTyped } from '../utils/miscUtils';\nimport { mainLogger } from '../sv_logger';\n\nclass CallsService {\n private callMap: Collection;\n private readonly callsDB: CallsRepo;\n\n constructor() {\n this.callMap = new Collection();\n this.callsDB = CallsDB;\n callLogger.debug('Call service started');\n }\n\n private setCallInMap(transmitterNumber: string, callObj: ActiveCallRaw): void {\n this.callMap.set(transmitterNumber, callObj);\n callLogger.debug(`Call obj set with key ${transmitterNumber}, value:`);\n callLogger.debug(callObj);\n }\n\n async handleInitializeCall(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n // Create initial call data\n const transmittingPlayer = PlayerService.getPlayer(reqObj.source);\n const transmitterNumber = transmittingPlayer.getPhoneNumber();\n const receiverIdentifier = await PlayerService.getIdentifierFromPhoneNumber(\n reqObj.data.receiverNumber,\n true,\n );\n\n // If not online we immediately let the caller know that is an invalid\n // number\n if (!receiverIdentifier) {\n return resp({\n status: 'ok',\n data: {\n transmitter: transmitterNumber,\n isTransmitter: true,\n receiver: reqObj.data.receiverNumber,\n isUnavailable: true,\n is_accepted: false,\n },\n });\n }\n\n const startCallTimeUnix = Math.floor(new Date().getTime() / 1000);\n const callIdentifier = uuidv4();\n\n // Will be null if the player is offline\n const receivingPlayer = PlayerService.getPlayerFromIdentifier(receiverIdentifier);\n\n // Now if the player is offline, we send the same resp\n // as before\n if (!receivingPlayer) {\n return resp({\n status: 'ok',\n data: {\n is_accepted: false,\n transmitter: transmitterNumber,\n isTransmitter: true,\n receiver: reqObj.data.receiverNumber,\n isUnavailable: true,\n },\n });\n }\n\n callLogger.debug(`Receiving Identifier: ${receiverIdentifier}`);\n callLogger.debug(`Receiving source: ${receivingPlayer.source} `);\n\n const callObj: ActiveCallRaw = {\n identifier: callIdentifier,\n transmitter: transmitterNumber,\n transmitterSource: transmittingPlayer.source,\n receiver: reqObj.data.receiverNumber,\n receiverSource: receivingPlayer.source,\n start: startCallTimeUnix.toString(),\n is_accepted: false,\n };\n\n // Now we can add the call to our memory map\n this.setCallInMap(callObj.transmitter, callObj);\n\n try {\n await this.callsDB.saveCall(callObj);\n } catch (e) {\n callLogger.error(\n `Unable to save call object for transmitter number ${transmitterNumber}. Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'DATABASE_ERROR' });\n }\n\n // At this point we return back to the client that the player contacted\n // is technically available and therefore intialization process ic omplete\n resp({\n status: 'ok',\n data: {\n is_accepted: false,\n transmitter: transmitterNumber,\n receiver: reqObj.data.receiverNumber,\n isTransmitter: true,\n },\n });\n\n emitNetTyped(\n CallEvents.START_CALL,\n {\n is_accepted: false,\n transmitter: transmitterNumber,\n receiver: reqObj.data.receiverNumber,\n isTransmitter: false,\n },\n receivingPlayer.source,\n );\n }\n\n async handleAcceptCall(src: number, transmitterNumber: string): Promise {\n // We retrieve the call that was accepted from the current calls map\n const targetCallItem = this.callMap.get(transmitterNumber);\n // We update its reference\n targetCallItem.is_accepted = true;\n\n const channelId = src;\n\n await this.callsDB.updateCall(targetCallItem, true, null);\n callLogger.debug(`Call with key ${transmitterNumber} was updated to be accepted`);\n\n // player who is being called\n emitNetTyped(\n CallEvents.WAS_ACCEPTED,\n {\n is_accepted: true,\n transmitter: transmitterNumber,\n receiver: targetCallItem.receiver,\n isTransmitter: false,\n channelId,\n },\n targetCallItem.receiverSource,\n );\n\n mainLogger.debug(targetCallItem);\n\n // player who is calling\n emitNetTyped(\n CallEvents.WAS_ACCEPTED,\n {\n is_accepted: true,\n transmitter: transmitterNumber,\n receiver: targetCallItem.receiver,\n isTransmitter: true,\n channelId,\n },\n targetCallItem.transmitterSource,\n );\n }\n\n async handleFetchCalls(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n const player = PlayerService.getPlayer(reqObj.source);\n const srcPlayerNumber = player.getPhoneNumber();\n const calls = await this.callsDB.fetchCalls(srcPlayerNumber);\n resp({ status: 'ok', data: calls });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DATABASE_ERROR' });\n console.error(`Error while fetching calls, ${e.message}`);\n }\n }\n\n async handleRejectCall(src: number, transmitterNumber: string): Promise {\n const currentCall = this.callMap.get(transmitterNumber);\n\n const endCallTimeUnix = Math.floor(new Date().getTime() / 1000);\n\n if (!currentCall) {\n callLogger.error(\n `Call with transmitter number ${transmitterNumber} does not exist in current calls map!`,\n );\n return;\n }\n\n // player who is calling and recieved the rejection.\n emitNet(CallEvents.WAS_REJECTED, currentCall.transmitterSource);\n emitNet(CallEvents.WAS_REJECTED, currentCall.receiverSource);\n\n // Update our database\n await this.callsDB.updateCall(currentCall, false, endCallTimeUnix);\n\n // Remove from active memory map\n this.callMap.delete(transmitterNumber);\n }\n\n async handleEndCall(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const transmitterNumber = reqObj.data.transmitterNumber;\n const endCallTimeUnix = Math.floor(new Date().getTime() / 1000);\n\n const currentCall = this.callMap.get(transmitterNumber);\n\n if (!currentCall) {\n callLogger.error(\n `Call with transmitter number ${transmitterNumber} does not exist in current calls map!`,\n );\n return resp({ status: 'error', errorMsg: 'DOES_NOT_EXIST' });\n }\n\n // Just in case currentCall for some reason at this point is falsy\n // lets protect against that\n if (currentCall) {\n emitNet(CallEvents.WAS_ENDED, currentCall.receiverSource);\n emitNet(CallEvents.WAS_ENDED, currentCall.transmitterSource);\n }\n // player who is calling (transmitter)\n resp({ status: 'ok' });\n\n // We should be fine once here but sentry was acting up idk\n await this.callsDB.updateCall(currentCall, currentCall?.is_accepted, endCallTimeUnix);\n // Clear from memory\n this.callMap.delete(transmitterNumber);\n }\n}\n\nexport default new CallsService();\n","import { CallHistoryItem } from '../../../typings/call';\nimport { FetchDefaultLimits } from '../utils/ServerConstants';\nimport DbInterface from '../db/db_wrapper';\n\nexport class CallsRepo {\n async saveCall(call: CallHistoryItem): Promise {\n const query =\n 'INSERT INTO npwd_calls (identifier, transmitter, receiver, `start`) VALUES (?, ?, ?, ?)';\n await DbInterface._rawExec(query, [\n call.identifier,\n call.transmitter,\n call.receiver,\n call.start,\n ]);\n }\n\n async updateCall(call: CallHistoryItem, isAccepted: boolean, end: number): Promise {\n const query = 'UPDATE npwd_calls SET is_accepted=?, end=? WHERE identifier = ?';\n await DbInterface._rawExec(query, [isAccepted, end, call.identifier]);\n }\n\n async fetchCalls(\n phoneNumber: string,\n limit = FetchDefaultLimits.CALLS_FETCH_LIMIT,\n ): Promise {\n const query =\n 'SELECT * FROM npwd_calls WHERE receiver = ? OR transmitter = ? ORDER BY id DESC LIMIT ?';\n const [result] = await DbInterface._rawExec(query, [phoneNumber, phoneNumber, limit]);\n\n return result;\n }\n}\n\nexport default new CallsRepo();\n","export enum FetchDefaultLimits {\n NOTES_FETCH_LIMIT = 20,\n CALLS_FETCH_LIMIT = 50,\n CONTACTS_FETCH_LIMIT = 20,\n}\n","import { BeforeDBNote, DeleteNoteDTO, NoteItem, NotesEvents } from '../../../typings/notes';\nimport NotesService from './notes.service';\nimport { notesLogger } from './notes.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(NotesEvents.ADD_NOTE, (reqObj, resp) => {\n NotesService.handleAddNote(reqObj, resp).catch((e) => {\n notesLogger.error(`Error occured in add note event (${reqObj.source}), Error: ${e.message}`);\n resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n});\n\nonNetPromise(NotesEvents.FETCH_ALL_NOTES, (reqObj, resp) => {\n NotesService.handleFetchNotes(reqObj, resp).catch((e) => {\n notesLogger.error(\n `Error occurred in fetch note event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n});\n\nonNetPromise(NotesEvents.DELETE_NOTE, async (reqObj, resp) => {\n NotesService.handleDeleteNote(reqObj, resp).catch((e) => {\n notesLogger.error(\n `Error occured in delete note event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n});\n\nonNetPromise(NotesEvents.UPDATE_NOTE, async (reqObj, resp) => {\n NotesService.handleUpdateNote(reqObj, resp).catch((e) => {\n notesLogger.error(`Error occured in fetch note event (${reqObj.source}), Error: ${e.message}`);\n resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' });\n });\n});\n","import { IAlertProps } from './alerts';\n\nexport type AlertCategory =\n | 'NOTES_ADD_SUCCESS'\n | 'NOTES_ADD_FAILED'\n | 'NOTES_UPDATE_SUCCESS'\n | 'NOTES_UPDATE_FAILED'\n | 'NOTES_DELETE_SUCCESS'\n | 'NOTES_DELETE_FAILED';\n\nexport interface INotesAlert {\n alert: AlertCategory;\n setAlert: (type: AlertCategory) => void;\n}\n\nexport interface BeforeDBNote {\n title: string;\n content: string;\n}\n\nexport interface NoteItem extends BeforeDBNote {\n id: number;\n title: string;\n content: string;\n}\n\nexport interface DeleteNoteDTO {\n id: number;\n}\n\nexport enum NotesEvents {\n ADD_NOTE = 'npwd:addNote',\n FETCH_ALL_NOTES = 'npwd:fetchAllNotes',\n DELETE_NOTE = 'npwd:deleteNote',\n UPDATE_NOTE = 'npwd:updateNote',\n ADD_NOTE_EXPORT = 'npwd:addNoteExport',\n}\n\nexport interface AddNoteExportData {\n title?: string;\n content?: string;\n}\n","import { BeforeDBNote, DeleteNoteDTO, NoteItem } from '../../../typings/notes';\nimport PlayerService from '../players/player.service';\nimport NotesDB, { _NotesDB } from './notes.db';\nimport { notesLogger } from './notes.utils';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\n\nclass _NotesService {\n private readonly notesDB: _NotesDB;\n\n constructor() {\n this.notesDB = NotesDB;\n notesLogger.debug('Notes service started');\n }\n\n async handleAddNote(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n notesLogger.debug('Handling add note, note:');\n notesLogger.debug(reqObj.data);\n\n const identifer = PlayerService.getIdentifier(reqObj.source);\n\n try {\n const noteId = await this.notesDB.addNote(identifer, reqObj.data);\n resp({\n status: 'ok',\n data: { id: noteId, content: reqObj.data.content, title: reqObj.data.title },\n });\n } catch (e) {\n notesLogger.error(`Error in handleAddNote, ${e.message}`);\n\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleFetchNotes(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const notes = await this.notesDB.fetchNotes(identifier);\n resp({ status: 'ok', data: notes });\n } catch (e) {\n notesLogger.error(`Error in handleFetchNote, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleUpdateNote(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.notesDB.updateNote(reqObj.data, identifier);\n resp({ status: 'ok' });\n } catch (e) {\n notesLogger.error(`Error in handleUpdateNote, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n // async handleShareNote(src: number) {\n // // To implement someday\n // }\n\n async handleDeleteNote(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.notesDB.deleteNote(reqObj.data.id, identifier);\n resp({ status: 'ok', data: reqObj.data });\n } catch (e) {\n notesLogger.error(`Error in handleDeleteNote, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n}\n\nconst NotesService = new _NotesService();\nexport default NotesService;\n","import { BeforeDBNote, NoteItem } from '../../../typings/notes';\nimport { ResultSetHeader } from 'mysql2';\nimport DbInterface from '../db/db_wrapper';\n\nexport class _NotesDB {\n async addNote(identifier: string, note: BeforeDBNote): Promise {\n const query = 'INSERT INTO npwd_notes (identifier, title, content) VALUES (?, ?, ?)';\n const [result] = await DbInterface._rawExec(query, [identifier, note.title, note.content]);\n return (result).insertId;\n }\n\n async fetchNotes(identifier: string): Promise {\n const query = 'SELECT * FROM npwd_notes WHERE identifier = ? ORDER BY id DESC';\n const [result] = await DbInterface._rawExec(query, [identifier]);\n return result;\n }\n\n async deleteNote(noteId: number, identifier: string): Promise {\n const query = 'DELETE FROM npwd_notes WHERE id = ? AND identifier = ?';\n await DbInterface._rawExec(query, [noteId, identifier]);\n }\n\n async updateNote(note: NoteItem, identifier: string): Promise {\n const query = 'UPDATE npwd_notes SET title = ?, content = ? WHERE id = ? AND identifier = ?';\n await DbInterface._rawExec(query, [note.title, note.content, note.id, identifier]);\n }\n}\n\nconst NotesDB = new _NotesDB();\n\nexport default NotesDB;\n","import { Contact, ContactDeleteDTO, ContactEvents, PreDBContact } from '../../../typings/contact';\nimport ContactService from './contacts.service';\nimport { contactsLogger } from './contacts.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(ContactEvents.GET_CONTACTS, (reqObj, resp) => {\n ContactService.handleFetchContacts(reqObj, resp).catch((e) => {\n contactsLogger.error(\n `Error occured in fetch contacts event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(ContactEvents.ADD_CONTACT, (reqObj, resp) => {\n ContactService.handleAddContact(reqObj, resp).catch((e) => {\n contactsLogger.error(\n `Error occured in fetch contacts event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(ContactEvents.UPDATE_CONTACT, (reqObj, resp) => {\n ContactService.handleUpdateContact(reqObj, resp).catch((e) => {\n contactsLogger.error(\n `Error occured in update contact event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(ContactEvents.DELETE_CONTACT, (reqObj, resp) => {\n ContactService.handleDeleteContact(reqObj, resp).catch((e) => {\n contactsLogger.error(\n `Error occured in delete contact event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n","export type AlertCategory =\n | 'CONTACT_ADD_SUCCESS'\n | 'CONTACT_ADD_FAILED'\n | 'CONTACT_UPDATE_SUCCESS'\n | 'CONTACT_UPDATE_FAILED'\n | 'CONTACT_DELETE_SUCCESS'\n | 'CONTACT_DELETE_FAILED';\n\nexport interface PreDBContact {\n display: string;\n number: string;\n avatar?: string;\n}\n\nexport interface Contact extends PreDBContact {\n id: number;\n}\n\nexport interface ContactDeleteDTO {\n id: number;\n}\n\nexport enum ContactsDatabaseLimits {\n avatar = 255,\n number = 20,\n display = 255,\n}\n\nexport enum ContactEvents {\n GET_CONTACTS = 'npwd:getContacts',\n ADD_CONTACT = 'npwd:addContacts',\n UPDATE_CONTACT = 'npwd:updateContact',\n DELETE_CONTACT = 'npwd:deleteContact',\n // Used to fill in information through an export event\n ADD_CONTACT_EXPORT = 'npwd:addContactExport',\n}\n\nexport interface AddContactExportData {\n name?: string;\n number: string;\n avatar?: string;\n}\n","import PlayerService from '../players/player.service';\nimport { contactsLogger } from './contacts.utils';\nimport ContactsDB, { _ContactsDB } from './contacts.db';\nimport { Contact, ContactDeleteDTO, PreDBContact } from '../../../typings/contact';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\n\nclass _ContactService {\n private readonly contactsDB: _ContactsDB;\n\n constructor() {\n this.contactsDB = ContactsDB;\n contactsLogger.debug('Contacts service started');\n }\n\n async handleUpdateContact(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.contactsDB.updateContact(reqObj.data, identifier);\n resp({ status: 'ok' });\n } catch (e) {\n contactsLogger.error(`Error in handleUpdateContact (${identifier}), ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n async handleDeleteContact(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n await this.contactsDB.deleteContact(reqObj.data.id, identifier);\n resp({ status: 'ok' });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n contactsLogger.error(`Error in handleDeleteContact (${identifier}), ${e.message}`);\n }\n }\n async handleAddContact(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const contact = await this.contactsDB.addContact(identifier, reqObj.data);\n\n resp({ status: 'ok', data: contact });\n } catch (e) {\n contactsLogger.error(`Error in handleAddContact, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n async handleFetchContacts(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const contacts = await this.contactsDB.fetchAllContacts(identifier);\n resp({ status: 'ok', data: contacts });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n contactsLogger.error(`Error in handleFetchContact (${identifier}), ${e.message}`);\n }\n }\n}\n\nconst ContactService = new _ContactService();\nexport default ContactService;\n","import { Contact, PreDBContact } from '../../../typings/contact';\nimport { ResultSetHeader } from 'mysql2';\nimport DbInterface from '../db/db_wrapper';\n\nexport class _ContactsDB {\n async fetchAllContacts(identifier: string): Promise {\n const query = 'SELECT * FROM npwd_phone_contacts WHERE identifier = ? ORDER BY display ASC';\n const [results] = await DbInterface._rawExec(query, [identifier]);\n return results;\n }\n\n async addContact(\n identifier: string,\n { display, avatar, number }: PreDBContact,\n ): Promise {\n const query =\n 'INSERT INTO npwd_phone_contacts (identifier, number, display, avatar) VALUES (?, ?, ?, ?)';\n\n const [setResult] = await DbInterface._rawExec(query, [identifier, number, display, avatar]);\n\n return {\n id: (setResult).insertId,\n number,\n avatar,\n display,\n };\n }\n\n async updateContact(contact: Contact, identifier: string): Promise {\n const query =\n 'UPDATE npwd_phone_contacts SET number = ?, display = ?, avatar = ? WHERE id = ? AND identifier = ?';\n await DbInterface._rawExec(query, [\n contact.number,\n contact.display,\n contact.avatar,\n contact.id,\n identifier,\n ]);\n }\n\n async deleteContact(contactId: number, identifier: string): Promise {\n const query = 'DELETE FROM npwd_phone_contacts WHERE id = ? AND identifier = ?';\n await DbInterface._rawExec(query, [contactId, identifier]);\n }\n}\n\nconst ContactsDB = new _ContactsDB();\nexport default ContactsDB;\n","import { GalleryPhoto, PhotoEvents } from '../../../typings/photo';\nimport PhotoService from './photo.service';\nimport { photoLogger } from './photo.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(PhotoEvents.UPLOAD_PHOTO, (reqObj, resp) => {\n PhotoService.handleUploadPhoto(reqObj, resp).catch((e) => {\n photoLogger.error(\n `Error occurred in upload photo event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(PhotoEvents.FETCH_PHOTOS, (reqObj, resp) => {\n PhotoService.handleFetchPhotos(reqObj, resp).catch((e) => {\n photoLogger.error(\n `Error occurred in upload photo event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(PhotoEvents.DELETE_PHOTO, (reqObj, resp) => {\n PhotoService.handleDeletePhoto(reqObj, resp).catch((e) => {\n photoLogger.error(\n `Error occurred in delete photo event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n","export interface GalleryPhoto {\n image: string;\n id: number;\n}\n\nexport enum PhotoEvents {\n TAKE_PHOTO = 'npwd:TakePhoto',\n CAMERA_EXITED = 'npwd:cameraExited',\n NPWD_PHOTO_MODE_STARTED = 'npwd:PhotoModeStarted',\n NPWD_PHOTO_MODE_ENDED = 'npwd:PhotoModeEnded',\n TAKE_PHOTO_SUCCESS = 'npwd:TakePhotoSuccess',\n UPLOAD_PHOTO = 'npwd:UploadPhoto',\n FETCH_PHOTOS = 'npwd:FetchPhotos',\n DELETE_PHOTO = 'npwd:deletePhoto',\n}\n","import PlayerService from '../players/player.service';\nimport { GalleryPhoto } from '../../../typings/photo';\nimport PhotoDB, { _PhotoDB } from './photo.db';\nimport { photoLogger } from './photo.utils';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\n\nclass _PhotoService {\n private readonly photoDB: _PhotoDB;\n\n constructor() {\n this.photoDB = PhotoDB;\n photoLogger.debug('Photo service started');\n }\n\n async handleUploadPhoto(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n if (!reqObj.data) resp({ status: 'error', errorMsg: 'DB_ERROR' });\n\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const photo = await this.photoDB.uploadPhoto(identifier, reqObj.data);\n\n resp({ status: 'ok', data: photo });\n } catch (e) {\n photoLogger.error(`Failed to upload photo, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleFetchPhotos(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const photos = await this.photoDB.getPhotosByIdentifier(identifier);\n\n resp({ status: 'ok', data: photos });\n } catch (e) {\n photoLogger.error(`Failed to fetch photos, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleDeletePhoto(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n await this.photoDB.deletePhoto(reqObj.data, identifier);\n\n resp({ status: 'ok' });\n } catch (e) {\n photoLogger.error(`Failed to delete photo, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n}\n\nconst PhotoService = new _PhotoService();\n\nexport default PhotoService;\n","import { GalleryPhoto } from '../../../typings/photo';\nimport DbInterface from '../db/db_wrapper';\n\nexport class _PhotoDB {\n async uploadPhoto(identifier: string, image: string): Promise {\n const query = 'INSERT INTO npwd_phone_gallery (identifier, image) VALUES (?, ?)';\n const [results] = (await DbInterface._rawExec(query, [identifier, image])) as any;\n return { id: results.insertId, image };\n }\n\n async getPhotosByIdentifier(identifier: string): Promise {\n const query = 'SELECT id, image FROM npwd_phone_gallery WHERE identifier = ? ORDER BY id DESC';\n const [results] = await DbInterface._rawExec(query, [identifier]);\n return results;\n }\n\n async deletePhoto(photo: GalleryPhoto, identifier: string) {\n const query = 'DELETE FROM npwd_phone_gallery WHERE image = ? AND identifier = ?';\n await DbInterface._rawExec(query, [photo.image, identifier]);\n }\n}\n\nconst PhotoDB = new _PhotoDB();\n\nexport default PhotoDB;\n","import { getSource } from '../utils/miscUtils';\nimport {\n Message,\n MessageConversation,\n MessageEvents,\n PreDBMessage,\n} from '../../../typings/messages';\nimport MessagesService from './messages.service';\nimport { messagesLogger } from './messages.utils';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(\n MessageEvents.FETCH_MESSAGE_CONVERSATIONS,\n async (reqObj, resp) => {\n MessagesService.handleFetchMessageConversations(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred in fetch message conversations (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise<{ targetNumber: string }, MessageConversation>(\n MessageEvents.CREATE_MESSAGE_CONVERSATION,\n async (reqObj, resp) => {\n MessagesService.handleCreateMessageConversation(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred on creating messsage converations (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise<{ conversationId: string; page: number }, Message[]>(\n MessageEvents.FETCH_MESSAGES,\n async (reqObj, resp) => {\n MessagesService.handleFetchMessages(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred in fetch messages (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise(MessageEvents.SEND_MESSAGE, async (reqObj, resp) => {\n MessagesService.handleSendMessage(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred while sending message (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise<{ conversationsId: string[] }, void>(\n MessageEvents.DELETE_CONVERSATION,\n async (reqObj, resp) => {\n MessagesService.handleDeleteConversation(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred while deleting conversation (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise(MessageEvents.DELETE_MESSAGE, async (reqObj, resp) => {\n MessagesService.handleDeleteMessage(reqObj, resp).catch((e) => {\n messagesLogger.error(\n `Error occurred while deleting message (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNet(MessageEvents.SET_MESSAGE_READ, async (groupId: string) => {\n const src = getSource();\n MessagesService.handleSetMessageRead(src, groupId).catch((e) =>\n messagesLogger.error(`Error occurred in set message read event (${src}), Error: ${e.message}`),\n );\n});\n","import PlayerService from '../players/player.service';\nimport {\n Message,\n MessageConversationResponse,\n MessageEvents,\n PreDBMessage,\n} from '../../../typings/messages';\nimport MessagesDB, { _MessagesDB } from './messages.db';\nimport {\n createMessageGroupsFromPhoneNumber,\n getFormattedMessageConversations,\n getIdentifiersFromParticipants,\n messagesLogger,\n} from './messages.utils';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\n\nclass _MessagesService {\n private readonly messagesDB: _MessagesDB;\n\n constructor() {\n this.messagesDB = MessagesDB;\n messagesLogger.debug('Messages service started');\n }\n\n async handleFetchMessageConversations(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const phoneNumber = PlayerService.getPlayer(reqObj.source).getPhoneNumber();\n const messageConversations = await getFormattedMessageConversations(phoneNumber);\n\n resp({ status: 'ok', data: messageConversations });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n messagesLogger.error(`Failed to fetch messages groups, ${e.message}`);\n }\n }\n\n async handleCreateMessageConversation(\n reqObj: PromiseRequest<{ targetNumber: string }>,\n resp: PromiseEventResp,\n ) {\n try {\n const sourcePlayer = PlayerService.getPlayer(reqObj.source);\n\n const result = await createMessageGroupsFromPhoneNumber(\n sourcePlayer.getPhoneNumber(),\n reqObj.data.targetNumber,\n );\n\n if (result.error) {\n return resp({ status: 'error' });\n }\n\n if (!result.doesExist) {\n try {\n const participant = PlayerService.getPlayerFromIdentifier(result.participant);\n\n if (participant) {\n emitNet(MessageEvents.CREATE_MESSAGE_CONVERSATION_SUCCESS, participant.source, {\n conversation_id: result.conversationId,\n phoneNumber: sourcePlayer.getPhoneNumber(),\n });\n }\n } catch (e) {\n resp({ status: 'error', errorMsg: e.message });\n messagesLogger.error(e.message);\n }\n }\n\n resp({\n status: 'ok',\n data: { conversation_id: result.conversationId, phoneNumber: result.phoneNumber },\n });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n\n messagesLogger.error(`Failed to create message group, ${e.message}`, {\n source: reqObj.source,\n e,\n });\n }\n }\n\n async handleFetchMessages(\n reqObj: PromiseRequest<{ conversationId: string; page: number }>,\n resp: PromiseEventResp,\n ) {\n try {\n const messages = await this.messagesDB.getMessages(\n reqObj.data.conversationId,\n reqObj.data.page,\n );\n\n messages.sort((a, b) => a.id - b.id);\n\n resp({ status: 'ok', data: messages });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n messagesLogger.error(`Failed to fetch messages, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n\n async handleSendMessage(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const player = PlayerService.getPlayer(reqObj.source);\n const authorPhoneNumber = player.getPhoneNumber();\n const messageData = reqObj.data;\n const participants = getIdentifiersFromParticipants(messageData.conversationId);\n const userIdentifier = player.getIdentifier();\n\n const messageId = await this.messagesDB.createMessage(\n userIdentifier,\n authorPhoneNumber,\n messageData.conversationId,\n messageData.message,\n );\n\n resp({\n status: 'ok',\n data: {\n ...messageData,\n conversation_id: messageData.conversationId,\n author: authorPhoneNumber,\n id: messageId,\n },\n });\n\n // participantId is the participants phone number\n for (const participantId of participants) {\n if (participantId !== player.getPhoneNumber()) {\n const participantIdentifier = await PlayerService.getIdentifierByPhoneNumber(\n participantId,\n );\n const participantPlayer = PlayerService.getPlayerFromIdentifier(participantIdentifier);\n\n if (participantPlayer) {\n emitNet(MessageEvents.SEND_MESSAGE_SUCCESS, participantPlayer.source, messageData);\n emitNet(MessageEvents.CREATE_MESSAGE_BROADCAST, participantPlayer.source, {\n conversationName: player.getPhoneNumber(),\n conversationId: messageData.conversationId,\n message: messageData.message,\n });\n }\n }\n }\n } catch (e) {\n resp({ status: 'error', errorMsg: e.message });\n messagesLogger.error(`Failed to send message, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n\n async handleSetMessageRead(src: number, groupId: string) {\n try {\n const identifier = PlayerService.getIdentifier(src);\n await this.messagesDB.setMessageRead(groupId, identifier);\n emitNet(MessageEvents.FETCH_MESSAGE_CONVERSATIONS, src);\n } catch (e) {\n messagesLogger.error(`Failed to set message as read, ${e.message}`, {\n source: src,\n });\n }\n }\n\n async handleDeleteConversation(\n reqObj: PromiseRequest<{ conversationsId: string[] }>,\n resp: PromiseEventResp,\n ) {\n try {\n const sourcePhoneNumber = PlayerService.getPlayer(reqObj.source).getPhoneNumber();\n\n for (const id of reqObj.data.conversationsId) {\n await this.messagesDB.deleteConversation(id, sourcePhoneNumber);\n }\n resp({ status: 'ok' });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n messagesLogger.error(`Failed to delete conversation, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n\n async handleDeleteMessage(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n await this.messagesDB.deleteMessage(reqObj.data);\n resp({ status: 'ok' });\n } catch (e) {\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n messagesLogger.error(`Failed to delete message, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n}\n\nconst MessagesService = new _MessagesService();\n\nexport default MessagesService;\n","import {\n ListingTypeResp,\n MarketplaceEvents,\n MarketplaceListing,\n MarketplaceListingBase,\n MarketplaceReportDTO,\n} from '../../../typings/marketplace';\nimport { marketplaceLogger } from './marketplace.utils';\nimport MarketplaceService from './marketplace.service';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\nimport { MarketplaceDeleteDTO } from '../../../typings/marketplace';\n\nonNetPromise(MarketplaceEvents.FETCH_LISTING, async (reqObj, resp) => {\n MarketplaceService.handleFetchListings(reqObj, resp).catch((e) => {\n marketplaceLogger.error(\n `Error occurred in fetch listing event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(\n MarketplaceEvents.ADD_LISTING,\n async (reqObj, resp) => {\n MarketplaceService.handleAddListing(reqObj, resp).catch((e) => {\n marketplaceLogger.error(\n `Error occurred in add listing event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n },\n);\n\nonNetPromise(MarketplaceEvents.DELETE_LISTING, async (reqObj, resp) => {\n MarketplaceService.handleDeleteListing(reqObj, resp).catch((e) => {\n marketplaceLogger.error(\n `Error occurred in delete listing event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MarketplaceEvents.REPORT_LISTING, async (reqObj, resp) => {\n // TODO: Needs a permission check of some sort here eventually\n MarketplaceService.handleReportListing(reqObj, resp).catch((e) => {\n marketplaceLogger.error(\n `Error occurred in report listing event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\non(MarketplaceEvents.DELETE_LISTINGS_ON_DROP, (identifier: string) => {\n MarketplaceService.handleDeleteListingsOnDrop(identifier).catch((e) => {\n marketplaceLogger.error(\n `Error occurred when deleting listing on player drop event, Error: ${e.message}`,\n );\n });\n});\n","import { config } from '../server';\nimport { twitterLogger } from './twitter.utils';\nimport { Profile, Tweet, TwitterEvents } from '../../../typings/twitter';\nimport { getSource } from '../utils/miscUtils';\nimport TwitterService from './twitter.service';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(\n TwitterEvents.GET_OR_CREATE_PROFILE,\n async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleGetOrCreateProfile(reqObj, resp).catch((e) => {\n twitterLogger.error(\n `Error occurred in getOrCreateProfile event (${_source}), Error: ${e.message}`,\n );\n });\n },\n);\n\nonNetPromise(TwitterEvents.CREATE_PROFILE, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleCreateProfile(reqObj, resp).catch((e) =>\n twitterLogger.error(`Error occurred in createProfile event (${_source}), Error: ${e.message}`),\n );\n});\n\nonNetPromise(TwitterEvents.UPDATE_PROFILE, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleUpdateProfile(reqObj, resp).catch((e) =>\n twitterLogger.error(`Error occurred in updateProfile event (${_source}), Error: ${e.message}`),\n );\n});\n\nonNetPromise<{ searchValue: string }, Tweet[]>(\n TwitterEvents.FETCH_TWEETS_FILTERED,\n async (reqObj, resp) => {\n console.log('getting some filtered tweets');\n const _source = getSource();\n TwitterService.handleFetchTweetsFiltered(reqObj, resp).catch((e) =>\n twitterLogger.error(\n `Error occurred in fetchTweetsFiltered event (${_source}), Error: ${e.message}`,\n ),\n );\n },\n);\n\nonNetPromise(TwitterEvents.CREATE_TWEET, async (reqObj, resp) => {\n TwitterService.handleCreateTweet(reqObj, resp).catch((e) => {\n twitterLogger.error(\n `Error occurred in createTweet event (${reqObj.source}), Error: ${e.message}`,\n );\n });\n});\n\nonNetPromise<{ tweetId: number }, void>(TwitterEvents.DELETE_TWEET, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleDeleteTweet(reqObj, resp).catch((e) => {\n twitterLogger.error(`Error occurred in deleteTweet event (${_source}), Error: ${e.message}`);\n });\n});\n\nonNetPromise<{ tweetId: number }, void>(TwitterEvents.TOGGLE_LIKE, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleToggleLike(reqObj, resp).catch((e) => {\n twitterLogger.error(`Error occurred in toggleEvent event (${_source}), Error: ${e.message}`);\n });\n});\n\nonNetPromise<{ tweetId: number }, void>(TwitterEvents.RETWEET, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleRetweet(reqObj, resp).catch((e) =>\n twitterLogger.error(`Error occurred in retweet event (${_source}), Error: ${e.message}`),\n );\n});\n\nonNetPromise<{ tweetId: number }, void>(TwitterEvents.REPORT, async (reqObj, resp) => {\n const _source = getSource();\n TwitterService.handleReport(reqObj, resp).catch((e) =>\n twitterLogger.error(`Error occurred in report event (${_source}), Error: ${e.message}`),\n );\n});\n\nonNetPromise<{ pageId: number }, Tweet[]>(TwitterEvents.FETCH_TWEETS, (req, res) => {\n TwitterService.handleFetchTweets(req.source, req.data.pageId, res).catch((e) =>\n twitterLogger.error(`Error occurred in fetchTweets event (${req.source}), Error: ${e.message}`),\n );\n});\n\nif (!config.twitter.allowEditableProfileName && !config.twitter.generateProfileNameFromUsers) {\n const warning =\n `Both allowEdtiableProfileName and generateProfileNameFromUsers ` +\n `are set false - this means users will likely not have profile names ` +\n `for the Twitter App and won't be able to use it!`;\n twitterLogger.warn(warning);\n}\n","import PlayerService from '../players/player.service';\nimport TwitterDB, { _TwitterDB } from './twitter.db';\nimport { NewTweet, Profile, Tweet, TwitterEvents } from '../../../typings/twitter';\nimport { twitterLogger } from './twitter.utils';\nimport { reportTweetToDiscord } from '../misc/discord';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\nimport { getDefaultProfileNames } from '../players/player.utils';\n\nclass _TwitterService {\n private readonly twitterDB: _TwitterDB;\n\n constructor() {\n this.twitterDB = TwitterDB;\n twitterLogger.debug('Twitter service started');\n }\n\n async handleGetOrCreateProfile(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n\n try {\n if (!identifier) return;\n\n const profile = await this.twitterDB.getOrCreateProfile(identifier);\n\n // if we got null from getOrCreateProfile it means it doesn't exist and\n // we failed to create it. In this case we pass the UI some default\n // profile names it can choose from.\n\n // We should be able to comment this out as profile **should** be guranteed,\n // as we create a default profile in that process.\n\n if (!profile) {\n const defaultProfileNames = await getDefaultProfileNames(reqObj.source);\n if (!defaultProfileNames) return;\n } else {\n resp({ status: 'ok', data: profile });\n }\n } catch (e) {\n resp({ status: 'error', errorMsg: e.message });\n twitterLogger.error(`Failed to get or create profile, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n\n async handleCreateProfile(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.createProfile(identifier, reqObj.data.profile_name);\n\n resp({ status: 'ok', data: profile });\n } catch (e) {\n twitterLogger.error(`Failed to create twitter profile: ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n // we get both the profile and a profile name\n async handleUpdateProfile(reqObj: PromiseRequest, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.updateProfile(identifier, reqObj.data);\n\n resp({ status: 'ok', data: profile });\n } catch (e) {\n twitterLogger.error(`Failed to update twitter profile: ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleFetchTweets(src: number, pageIdx: number, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(src);\n const profile = await this.twitterDB.getProfile(identifier);\n\n if (!profile)\n return twitterLogger.warn(\n `Aborted fetching tweets for user ${identifier} because they do not have a profile.`,\n );\n\n const tweets = await this.twitterDB.fetchAllTweets(profile.id, pageIdx);\n\n resp({ data: tweets, status: 'ok' });\n } catch (e) {\n twitterLogger.error(`Fetching tweets failed, ${e.message}`, {\n source: src,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleFetchTweetsFiltered(\n reqObj: PromiseRequest<{ searchValue: string }>,\n resp: PromiseEventResp,\n ) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.getProfile(identifier);\n const tweets = await this.twitterDB.fetchTweetsFiltered(profile.id, reqObj.data.searchValue);\n\n resp({ status: 'ok', data: tweets });\n } catch (e) {\n twitterLogger.error(`Fetch filtered tweets failed, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleCreateTweet(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const createdTweet = await this.twitterDB.createTweet(identifier, reqObj.data);\n\n resp({ status: 'ok' });\n emitNet(TwitterEvents.CREATE_TWEET_BROADCAST, -1, createdTweet);\n } catch (e) {\n twitterLogger.error(`Create tweet failed, ${e.message}`, {\n source: reqObj.source,\n });\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleDeleteTweet(\n reqObj: PromiseRequest<{ tweetId: number }>,\n resp: PromiseEventResp,\n ) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n await this.twitterDB.deleteTweet(identifier, reqObj.data.tweetId);\n\n resp({ status: 'ok' });\n } catch (e) {\n twitterLogger.error(`Delete tweet failed, ${e.message}`, {\n source: reqObj.source,\n });\n\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleToggleLike(\n reqObj: PromiseRequest<{ tweetId: number }>,\n resp: PromiseEventResp,\n ) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.getOrCreateProfile(identifier);\n const likeExists = await this.twitterDB.doesLikeExist(profile.id, reqObj.data.tweetId);\n\n if (likeExists) {\n await this.twitterDB.deleteLike(profile.id, reqObj.data.tweetId);\n } else {\n await this.twitterDB.createLike(profile.id, reqObj.data.tweetId);\n }\n\n resp({ status: 'ok' });\n } catch (e) {\n twitterLogger.error(`Like failed, ${e.message}`, {\n source: reqObj.source,\n });\n\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleRetweet(reqObj: PromiseRequest<{ tweetId: number }>, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n\n // alert the player that they have already retweeted\n // this post (or that they are the original poster)\n if (await this.twitterDB.doesRetweetExist(reqObj.data.tweetId, identifier)) {\n resp({\n status: 'error',\n errorMsg: 'FEEDBACK.RETWEET_EXISTS',\n });\n }\n\n // our message for this row is blank because when we\n // query for this tweet it will join off of the retweet\n // column and fetch the message from the related tweet\n const retweet: NewTweet = { message: '', retweet: reqObj.data.tweetId };\n const createdTweet = await this.twitterDB.createTweet(identifier, retweet);\n\n const profile = await this.twitterDB.getProfile(identifier);\n const tweet = await this.twitterDB.getTweet(profile.id, createdTweet.id);\n\n resp({ status: 'ok' });\n emitNet(TwitterEvents.CREATE_TWEET_BROADCAST, -1, tweet);\n } catch (e) {\n twitterLogger.error(`Retweet failed, ${e.message}`, {\n source: reqObj.source,\n });\n\n resp({ status: 'error', errorMsg: e.message });\n }\n }\n\n async handleReport(reqObj: PromiseRequest<{ tweetId: number }>, resp: PromiseEventResp) {\n try {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = await this.twitterDB.getProfile(identifier);\n const tweet = await this.twitterDB.getTweet(profile.id, reqObj.data.tweetId);\n\n const reportExists = await this.twitterDB.doesReportExist(tweet.id, profile.id);\n\n if (reportExists) {\n return twitterLogger.warn('This profile has already reported this tweet');\n }\n\n await this.twitterDB.createTweetReport(tweet.id, profile.id);\n await reportTweetToDiscord(tweet, profile);\n\n resp({ status: 'ok' });\n } catch (e) {\n resp({ status: 'error', errorMsg: e.message });\n twitterLogger.error(`Twitter report failed, ${e.message}`, {\n source: reqObj.source,\n });\n }\n }\n}\n\nconst TwitterService = new _TwitterService();\n\nexport default TwitterService;\n","import { NewTweet, Profile, Tweet } from '../../../typings/twitter';\nimport { pool } from '../db/pool';\nimport { ResultSetHeader } from 'mysql2';\nimport { config } from '../server';\nimport { generateProfileName } from '../utils/generateProfileName';\nimport { twitterLogger } from './twitter.utils';\nimport DbInterface from '../db/db_wrapper';\n\nconst SELECT_FIELDS = `\n npwd_twitter_tweets.id,\n npwd_twitter_tweets.identifier,\n npwd_twitter_profiles.id AS profile_id,\n npwd_twitter_profiles.profile_name,\n npwd_twitter_profiles.avatar_url,\n npwd_twitter_tweets.likes,\n npwd_twitter_tweets.visible,\n IFNULL(COALESCE(retweets.message, npwd_twitter_tweets.message), '') AS message,\n IFNULL(COALESCE(retweets.images, npwd_twitter_tweets.images), '') AS images,\n npwd_twitter_tweets.retweet IS NOT NULL AS isRetweet,\n retweets.id AS retweetId,\n retweets_profiles.profile_name AS retweetProfileName,\n retweets_profiles.avatar_url AS retweetAvatarUrl,\n npwd_twitter_likes.id IS NOT NULL AS isLiked,\n npwd_twitter_reports.id IS NOT NULL AS isReported,\n npwd_twitter_tweets.createdAt,\n npwd_twitter_tweets.updatedAt,\n TIME_TO_SEC(TIMEDIFF( NOW(), npwd_twitter_tweets.createdAt)) AS seconds_since_tweet\n`;\n\nconst TWEETS_PER_PAGE = 25;\n\nconst formatTweets =\n (profileId: number) =>\n (tweet: Tweet): Tweet => ({\n ...tweet,\n isMine: tweet.profile_id === profileId,\n isRetweet: tweet.isRetweet === 1,\n });\n\nexport class _TwitterDB {\n /**\n * Retrieve the latest 50 tweets\n * @param profileId - twitter profile id of the player\n */\n async fetchAllTweets(profileId: number, currPage: number): Promise {\n currPage = typeof currPage === 'number' ? currPage : 1; // avoid sql injection without prepared query\n const offset = currPage * TWEETS_PER_PAGE;\n const query = `\n SELECT ${SELECT_FIELDS}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n WHERE npwd_twitter_tweets.visible = 1\n ORDER BY id DESC\n LIMIT ? OFFSET ?\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [\n profileId,\n profileId,\n TWEETS_PER_PAGE,\n offset,\n ]);\n const tweets = results;\n return tweets.map(formatTweets(profileId));\n }\n\n /**\n * Fetch tweets by some search value submitted by the user. Intended to let\n * player's search for tweets by profile, message or more.\n * @param profileId - twitter profile id of the player\n * @param searchValue - value to search\n */\n async fetchTweetsFiltered(profileId: number, searchValue: string): Promise {\n const parameterizedSearchValue = `%${searchValue}%`;\n const query = `\n SELECT ${SELECT_FIELDS}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n WHERE npwd_twitter_tweets.visible = 1\n AND (npwd_twitter_profiles.profile_name LIKE ? OR npwd_twitter_tweets.message LIKE ?)\n ORDER BY npwd_twitter_tweets.id DESC\n LIMIT 25\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [\n profileId,\n profileId,\n parameterizedSearchValue,\n parameterizedSearchValue,\n ]);\n const tweets = results;\n return tweets.map(formatTweets(profileId));\n }\n\n /**\n * Retrieve a Tweet by ID\n * @param profileId Unique id for the twitter profile (NOT user identifier)\n * @param tweetId - primary key of the tweet ID\n */\n async getTweet(profileId: number, tweetId: number): Promise {\n const query = `\n SELECT ${SELECT_FIELDS}\n FROM npwd_twitter_tweets\n LEFT OUTER JOIN npwd_twitter_likes ON npwd_twitter_tweets.id = npwd_twitter_likes.tweet_id AND\n npwd_twitter_likes.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_reports ON npwd_twitter_tweets.id = npwd_twitter_reports.tweet_id AND\n npwd_twitter_reports.profile_id = ?\n LEFT OUTER JOIN npwd_twitter_tweets AS retweets ON retweets.id = npwd_twitter_tweets.retweet\n LEFT OUTER JOIN npwd_twitter_profiles AS retweets_profiles\n ON retweets.identifier = retweets_profiles.identifier\n LEFT OUTER JOIN npwd_twitter_profiles\n ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier\n WHERE npwd_twitter_tweets.id = ?\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [profileId, profileId, tweetId]);\n const tweets = results;\n return tweets.map(formatTweets(profileId))[0];\n }\n\n /**\n * Creates a tweet in the database and then retrieves the tweet\n * @param identifier - player identifier\n * @param tweet - tweet to be created\n */\n async createTweet(identifier: string, tweet: NewTweet): Promise {\n const profile = await this.getProfile(identifier);\n const query = `\n INSERT INTO npwd_twitter_tweets (identifier, message, images, retweet)\n VALUES (?, ?, ?, ?)\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [\n identifier,\n tweet.message,\n tweet.images,\n tweet.retweet,\n ]);\n // This should not be an any type and instead should be\n // a Tweet[] according to mysql2 documentation. But instead\n // this exec promise returns the row itself, not an array of rows like it states\n // Therefore type assertion doesn't work here for correctly typing this out.\n const insertData = results;\n return await this.getTweet(profile.id, insertData.insertId);\n }\n\n async createTweetReport(tweetId: number, profileId: number): Promise {\n const query = `\n INSERT INTO npwd_twitter_reports (tweet_id, profile_id)\n VALUES (?, ?)\n\t\t`;\n await pool.execute(query, [tweetId, profileId]);\n }\n\n /**\n * Retrieve a player's twitter profile by their identifier\n * @param identifier - player identifier\n */\n async getProfile(identifier: string): Promise {\n const query = `\n SELECT *\n FROM npwd_twitter_profiles\n WHERE identifier = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier]);\n const profiles = results;\n return profiles.length > 0 ? profiles[0] : null;\n }\n\n /**\n * Create a twitter profile\n * @param identifier - player's identifier\n * @param profileName - profile name to be created\n * @returns\n */\n async createProfile(identifier: string, profileName: string): Promise {\n const query = `\n INSERT INTO npwd_twitter_profiles (identifier, profile_name)\n VALUES (?, ?)\n\t\t`;\n\n await pool.execute(query, [identifier, profileName]);\n return await this.getProfile(identifier);\n }\n\n /**\n * Create a default twitter profile for a player. This is the intial profile\n * that all player's will receive and can then customize.\n * @param identifier - player's identifier\n */\n async createDefaultProfile(identifier: string): Promise {\n // case where the server owner wants players to select their own names\n if (!config.twitter.generateProfileNameFromUsers) return null;\n\n const defaultProfileName = await generateProfileName(identifier);\n // case where we tried to generate a profile name but failed due to\n // some database misconfiguration or error\n if (!defaultProfileName) return null;\n\n twitterLogger.info(`Creating default Twitter profile ${defaultProfileName} for ${identifier}`);\n return await this.createProfile(identifier, defaultProfileName);\n }\n\n /**\n * Retrieve the player's profile by their identifier if it exists. If\n * not, create it and return it.\n * @param identifier - player's identifier\n */\n async getOrCreateProfile(identifier: string): Promise {\n const profile = await this.getProfile(identifier);\n return profile || (await this.createDefaultProfile(identifier));\n }\n\n async updateProfile(identifier: string, profile: Profile): Promise {\n const { avatar_url, profile_name } = profile;\n const query = `\n UPDATE npwd_twitter_profiles\n SET avatar_url = ?,\n profile_name = ?\n WHERE identifier = ?\n\t\t`;\n await pool.execute(query, [avatar_url, profile_name, identifier]);\n\n return profile;\n }\n\n /**\n * Create a \"like\" in the database that ties a profile & tweet together\n * @param profileId - primary key of the profile conducting the like\n * @param tweetId - primary key of the tweet being liked\n */\n async createLike(profileId: number, tweetId: number): Promise {\n const query = `\n INSERT INTO npwd_twitter_likes (profile_id, tweet_id)\n VALUES (?, ?)\n\t\t`;\n await pool.execute(query, [profileId, tweetId]);\n }\n\n /**\n * Delete a \"like\" relationship from the database\n * @param profileId - primary key of the profile removing the like\n * @param tweetId - primary key of the tweet to remove the like from\n */\n async deleteLike(profileId: number, tweetId: number): Promise {\n const query = `\n DELETE\n FROM npwd_twitter_likes\n WHERE profile_id = ?\n AND tweet_id = ?\n\t\t`;\n await pool.execute(query, [profileId, tweetId]);\n }\n\n /**\n * Delete a tweet from the database\n * @param identifier - identifier of the source user\n * @param tweetId - primary key of the tweet to remove the like from\n */\n async deleteTweet(identifier: string, tweetId: number): Promise {\n if (!config.twitter.allowDeleteTweets) return;\n\n const query = `\n DELETE\n FROM npwd_twitter_tweets\n WHERE identifier = ?\n AND id = ?\n\t\t`;\n await pool.execute(query, [identifier, tweetId]);\n }\n\n /**\n * Check if a \"like\" relationship between a profile and a tweet exists\n * @param profileId - primary key of the profile to check\n * @param tweetId - primary key of the tweet to check\n */\n async doesLikeExist(profileId: number, tweetId: number): Promise {\n const query = `\n SELECT *\n FROM npwd_twitter_likes\n WHERE profile_id = ?\n AND tweet_id = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [profileId, tweetId]);\n const likes = results;\n return likes.length > 0;\n }\n\n /**\n * Check if a tweet has been reported by this profile already\n * @param tweetId - primary key of the tweet to check\n * @param profileId - primary key of the profile to check\n */\n async doesReportExist(tweetId: number, profileId: number): Promise {\n const query = `\n SELECT *\n FROM npwd_twitter_reports\n WHERE tweet_id = ?\n AND profile_id = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [tweetId, profileId]);\n const reports = results;\n return reports.length > 0;\n }\n\n /**\n * Check to see if this player has already retweeted this tweet or\n * is the original poster of a retweeted tweet\n * @param tweetId - ID of the tweet in question\n * @param identifier - player identifier of the person performing the retweet\n */\n async doesRetweetExist(tweetId: number, identifier: string): Promise {\n const query = `\n SELECT COUNT(id) as count\n FROM npwd_twitter_tweets\n WHERE (id = ? OR retweet = ?)\n AND identifier = ?\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [tweetId, tweetId, identifier]);\n const counts = results;\n return counts[0].count > 0;\n }\n}\n\nconst TwitterDB = new _TwitterDB();\n\nexport default TwitterDB;\n","import {\n FormattedMatch,\n FormattedProfile,\n Like,\n MatchEvents,\n Profile,\n} from '../../../typings/match';\nimport MatchService from './match.service';\nimport { getSource } from '../utils/miscUtils';\nimport { matchLogger } from './match.utils';\nimport { config } from '../server';\nimport { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise';\n\nonNetPromise(MatchEvents.GET_PROFILES, (reqObj, resp) => {\n MatchService.handleGetProfiles(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in fetch profiles event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.GET_MY_PROFILE, (reqObj, resp) => {\n MatchService.handleGetMyProfile(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in fetch my profile event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.GET_MATCHES, (reqObj, resp) => {\n MatchService.handleGetMatches(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in fetch matches event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.SAVE_LIKES, (reqObj, resp) => {\n MatchService.handleSaveLikes(reqObj, resp).catch((e) => {\n matchLogger.error(`Error occurred in save likes event (${reqObj.source}), Error: ${e.message}`);\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.CREATE_MY_PROFILE, (reqObj, resp) => {\n MatchService.handleCreateMyProfile(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in create my profile event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNetPromise(MatchEvents.UPDATE_MY_PROFILE, (reqObj, resp) => {\n MatchService.handleUpdateMyProfile(reqObj, resp).catch((e) => {\n matchLogger.error(\n `Error occurred in update my profile event (${reqObj.source}), Error: ${e.message}`,\n );\n resp({ status: 'error', errorMsg: 'INTERNAL_ERROR' });\n });\n});\n\nonNet(MatchEvents.INITIALIZE, () => {\n const _source = getSource();\n MatchService.handleInitialize(_source).catch((e) =>\n matchLogger.error(`Error occurred in initialize event (${_source}), Error: ${e.message}`),\n );\n});\n\nif (!config.match.allowEditableProfileName && !config.match.generateProfileNameFromUsers) {\n const warning =\n `Both allowEdtiableProfileName and generateProfileNameFromUsers ` +\n `are set false - this means users will likely not have profile names ` +\n `for the Match App and won't be able to use it!`;\n matchLogger.warn(warning);\n}\n","export interface NewProfile {\n name: string;\n image: string;\n bio: string;\n job: string;\n location: string;\n tags: string;\n}\n\nexport interface Profile extends NewProfile {\n id: number;\n identifier: string;\n phoneNumber: string;\n viewed: boolean;\n createdAt: number;\n updatedAt: number;\n lastActive: number;\n}\n\nexport interface FormattedProfile extends Profile {\n lastActiveFormatted: string;\n tagList: string[];\n}\n\nexport interface Match extends Profile {\n matchedAt: number;\n}\n\nexport interface FormattedMatch extends FormattedProfile {\n matchedAtFormatted: string;\n}\n\nexport interface Like {\n id: number; // profile id\n liked: boolean;\n}\n\nexport enum MatchEvents {\n INITIALIZE = 'phone:initializeMatch',\n GET_PROFILES = 'phone:getMatchProfiles',\n CREATE_MY_PROFILE = 'phone:createMyProfile',\n GET_MY_PROFILE = 'phone:getMyProfile',\n UPDATE_MY_PROFILE = 'phone:updateMyProfile',\n GET_MATCHES = 'phone:getMatches',\n SAVE_LIKES = 'phone:saveLikes',\n}\n","import { formatMatches, formatProfile, matchLogger } from './match.utils';\nimport MatchDB, { _MatchDB } from './match.db';\nimport {\n FormattedMatch,\n FormattedProfile,\n Like,\n MatchEvents,\n Profile,\n} from '../../../typings/match';\nimport PlayerService from '../players/player.service';\nimport { PromiseEventResp, PromiseRequest } from '../lib/PromiseNetEvents/promise.types';\n\nclass _MatchService {\n private readonly matchDB: _MatchDB;\n\n constructor() {\n this.matchDB = MatchDB;\n matchLogger.debug('Match service started');\n }\n\n async handleGetProfiles(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const profiles = await this.dispatchProfiles(identifier);\n resp({ status: 'ok', data: profiles });\n } catch (e) {\n matchLogger.error(`Error in handleGetProfiles, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleGetMyProfile(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ): Promise {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const profile = await this.dispatchPlayerProfile(identifier);\n resp({ status: 'ok', data: profile });\n } catch (e) {\n matchLogger.error(`Error in handleGetMyProfile, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleSaveLikes(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n matchLogger.debug(`Saving likes for identifier ${identifier}`);\n\n try {\n await this.matchDB.saveLikes(identifier, reqObj.data);\n } catch (e) {\n matchLogger.error(`Failed to save likes, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n\n try {\n const newMatches = await this.matchDB.findNewMatches(identifier, reqObj.data);\n\n if (newMatches.length > 0) {\n resp({ status: 'ok', data: true });\n } else {\n resp({ status: 'ok', data: false });\n }\n } catch (e) {\n matchLogger.error(`Failed to find new matches, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleGetMatches(reqObj: PromiseRequest, resp: PromiseEventResp) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n try {\n const matchedProfiles = await this.matchDB.findAllMatches(identifier);\n const formattedMatches = matchedProfiles.map(formatMatches);\n resp({ status: 'ok', data: formattedMatches });\n } catch (e) {\n matchLogger.error(`Failed to retrieve matches, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleCreateMyProfile(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = reqObj.data;\n\n matchLogger.debug(`Creating profile for identifier: ${identifier}`);\n matchLogger.debug(profile);\n\n try {\n if (!profile.name || !profile.name.trim()) {\n throw new Error('Profile name must not be blank');\n }\n\n const newProfile = await this.matchDB.createProfile(identifier, profile);\n const formattedProfile = formatProfile(newProfile);\n\n resp({ status: 'ok', data: formattedProfile });\n } catch (e) {\n matchLogger.error(`Failed to update profile for identifier ${identifier}, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async handleUpdateMyProfile(\n reqObj: PromiseRequest,\n resp: PromiseEventResp,\n ) {\n const identifier = PlayerService.getIdentifier(reqObj.source);\n const profile = reqObj.data;\n\n matchLogger.debug(`Updating profile for identifier: ${identifier}`);\n matchLogger.debug(profile);\n\n try {\n if (!profile.name || !profile.name.trim()) {\n throw new Error('Profile name must not be blank');\n }\n\n const updatedProfile = await this.matchDB.updateProfile(identifier, profile);\n const formattedProfile = formatProfile(updatedProfile);\n\n resp({ status: 'ok', data: formattedProfile });\n } catch (e) {\n matchLogger.error(`Failed to update profile for identifier ${identifier}, ${e.message}`);\n resp({ status: 'error', errorMsg: 'DB_ERROR' });\n }\n }\n\n async dispatchPlayerProfile(identifier: string): Promise {\n try {\n const profile = await this.matchDB.getOrCreateProfile(identifier);\n return formatProfile(profile);\n } catch (e) {\n matchLogger.error(`Failed to get player profile, ${e.message}`);\n }\n }\n\n async dispatchProfiles(identifier: string): Promise {\n try {\n const profiles = await this.matchDB.getPotentialProfiles(identifier);\n return profiles.map(formatProfile);\n } catch (e) {\n matchLogger.error(`Failed to retrieve profiles, ${e.message}`);\n }\n }\n\n async handleInitialize(src: number) {\n const identifier = PlayerService.getIdentifier(src);\n matchLogger.debug(`Initializing match for identifier: ${identifier}`);\n await this.matchDB.updateLastActive(identifier);\n }\n}\n\nconst MatchService = new _MatchService();\n\nexport default MatchService;\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",f=\"month\",h=\"quarter\",c=\"year\",d=\"date\",$=\"Invalid Date\",l=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\")},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date() {\n const query = `\n SELECT npwd_match_profiles.*,\n UNIX_TIMESTAMP(npwd_match_profiles.updatedAt) AS lastActive,\n MaxDates.lastSeen\n FROM npwd_match_profiles\n LEFT OUTER JOIN (\n SELECT id, profile, MAX(createdAt) AS lastSeen\n FROM npwd_match_views\n WHERE identifier = ?\n GROUP BY id, profile\n ) AS MaxDates ON npwd_match_profiles.id = MaxDates.profile\n WHERE npwd_match_profiles.identifier != ?\n AND (MaxDates.lastSeen IS NULL OR MaxDates.lastSeen < NOW() - INTERVAL 7 DAY)\n ORDER BY npwd_match_profiles.updatedAt DESC\n LIMIT 25\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier, identifier]);\n return results;\n }\n\n /**\n * Save a list of Like objects\n * @param identifier - player's identifier\n * @param likes - likes to be saved to the database\n * @returns ResultSet\n */\n async saveLikes(identifier: string, likes: Like[]): Promise {\n const query = `INSERT INTO npwd_match_views (identifier, profile, liked)\n VALUES ?`;\n const formattedLikes = likes.map((like) => [identifier, like.id, like.liked]);\n\n const results = await DbInterface._rawExec(query, [formattedLikes]);\n return results;\n }\n\n /**\n * Determines if a profile we just liked has already liked us in the past which\n * indicates a match has occurred\n * @param identifier - player's identifier\n * @param id - profile ID we just liked\n * @returns Profile[] - list of profiles that are a match\n */\n async checkForMatchById(identifier: string, id: number): Promise {\n const query = `\n SELECT targetProfile.*,\n UNIX_TIMESTAMP(targetProfile.updatedAt) AS lastActive\n FROM npwd_match_views\n LEFT OUTER JOIN npwd_match_profiles AS playerProfile ON npwd_match_views.profile = playerProfile.id\n LEFT OUTER JOIN npwd_match_profiles AS targetProfile\n ON npwd_match_views.identifier = targetProfile.identifier\n WHERE playerProfile.identifier = ?\n AND targetProfile.id = ?\n AND Liked = 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier, id]);\n return results;\n }\n\n /**\n * Return all matches associated with a player regardless of date/time. A\n * match is a case where two profiles have liked each other.\n * @param identifier - player's identifier\n * @returns Match[] - all matches associated with the current player\n */\n async findAllMatches(identifier: string): Promise {\n const query = `\n SELECT targetProfile.*,\n UNIX_TIMESTAMP(targetProfile.updatedAt) AS lastActive,\n UNIX_TIMESTAMP(GREATEST(npwd_match_views.createdAt, targetViews.createdAt)) AS matchedAt,\n targetUser.${config.database.phoneNumberColumn} AS phoneNumber\n FROM npwd_match_views\n LEFT OUTER JOIN npwd_match_profiles AS targetProfile ON npwd_match_views.profile = targetProfile.id\n LEFT OUTER JOIN npwd_match_profiles AS myProfile ON npwd_match_views.identifier = myProfile.identifier\n LEFT OUTER JOIN npwd_match_views AS targetViews\n ON targetProfile.identifier = targetViews.identifier AND\n targetViews.profile = myProfile.id\n LEFT OUTER JOIN ${config.database.playerTable} AS targetUser ON targetProfile.identifier = targetUser.${config.database.identifierColumn}\n WHERE npwd_match_views.identifier = ?\n AND npwd_match_views.liked = 1\n AND targetViews.liked = 1\n ORDER BY matchedAt DESC\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier]);\n return results;\n }\n\n /**\n * Retrieve the current player's profile\n * @param identifier - player's identifier\n * @returns Profile - player's current profile\n */\n async getPlayerProfile(identifier: string): Promise {\n const query = `\n SELECT *,\n UNIX_TIMESTAMP(updatedAt) AS lastActive\n FROM npwd_match_profiles\n WHERE identifier = ?\n LIMIT 1\n\t\t`;\n const [results] = await DbInterface._rawExec(query, [identifier]);\n const profiles = results;\n return profiles[0];\n }\n\n /**\n * Create a profile and associate it with the current player\n * @param identifier - player's identifier\n * @param profile - profile we are going to create\n * @returns Profile - the created profile\n */\n async createProfile(identifier: string, profile: NewProfile): Promise {\n const { name, image, bio, location, job, tags } = profile;\n const query = `\n INSERT INTO npwd_match_profiles (identifier, name, image, bio, location, job, tags)\n VALUES (?, ?, ?, ?, ?, ?, ?)\n `;\n\n await pool.execute(query, [identifier, name, image, bio, location, job, tags]);\n return await this.getPlayerProfile(identifier);\n }\n\n /**\n * Update the current player's profile\n * @param identifier - player's identifier\n * @param profile Profile - player's updated profile\n */\n async updateProfile(identifier: string, profile: Profile): Promise {\n const { image, name, bio, location, job, tags } = profile;\n const query = `\n UPDATE npwd_match_profiles\n SET image = ?, name = ?, bio = ?, location = ?, job = ?, tags = ?\n WHERE identifier = ?\n `;\n await pool.execute(query, [image, name, bio, location, job, tags, identifier]);\n return await this.getPlayerProfile(identifier);\n }\n\n /**\n * Create a default profile for a player based on information\n * associated with them (name, phone number, etc.)\n * @param identifier - player's identifier\n * @returns Profile | null - the player's profile or null if it does not exist\n * and could not be created\n */\n async createDefaultProfile(identifier: string): Promise {\n // case where the server owner wants players to select their own names\n if (!config.match.generateProfileNameFromUsers) return null;\n\n const defaultProfileName = await generateProfileName(identifier, ' ');\n // case where we tried to generate a profile name but failed due to\n // some database misconfiguration or error\n if (!defaultProfileName) return null;\n\n const defaultProfile = {\n name: defaultProfileName,\n image: DEFAULT_IMAGE,\n bio: '',\n location: '',\n job: '',\n tags: '',\n };\n\n matchLogger.info(`Creating default match profile ${defaultProfileName} for ${identifier}`);\n return await this.createProfile(identifier, defaultProfile);\n }\n\n /**\n * Given a list of likes determine if any of the profiles we liked have also\n * liked us which indicates a match has occurred.\n * @param identifier - player's identifier\n * @param likes - list of new Likes\n * @returns Profile[] - list of profiles we matched with\n */\n async findNewMatches(identifier: string, likes: Like[]): Promise {\n let matches: Profile[] = [];\n for (const like of likes) {\n if (!like.liked) continue;\n const matchedProfiles = await this.checkForMatchById(identifier, like.id);\n matches = matches.concat(matchedProfiles);\n }\n return matches;\n }\n\n /**\n * Retrieve the player's profile by their identifier if it exists. If\n * not, create it and return it.\n * @param identifier - player's identifier\n * @returns Profile - player's profile\n */\n async getOrCreateProfile(identifier: string): Promise {\n const profile = await this.getPlayerProfile(identifier);\n return profile || (await this.createDefaultProfile(identifier));\n }\n\n /**\n * We track when the player last used the app so other players can\n * be aware of how active that player is when they are liking/disliking\n * @param identifier - player's identifier\n */\n async updateLastActive(identifier: string): Promise {\n const query = `\n UPDATE npwd_match_profiles\n SET updatedAt = CURRENT_TIMESTAMP()\n WHERE identifier = ?\n `;\n await pool.execute(query, [identifier]);\n }\n}\n\nconst MatchDB = new _MatchDB();\n\nexport default MatchDB;\n","import { generateUniquePhoneNumber } from '../misc/generateUniquePhoneNumber';\nimport { bridgeLogger } from './bridge.utils';\nimport { config } from '../server';\nimport { PlayerAddData } from '../players/player.interfaces';\nimport { playerLogger } from '../players/player.utils';\nimport PlayerService from '../players/player.service';\nimport { PhoneEvents } from '../../../typings/phone';\n\nconst exp = global.exports;\n\nconst logExport = (exportName: string, msg: string) => {\n bridgeLogger.debug(`[${exportName}] ${msg}`);\n};\n\n// Will generate and return a unique phone number\nexp('generatePhoneNumber', async () => {\n const num = await generateUniquePhoneNumber();\n logExport('generatePhoneNumber', num);\n return num;\n});\n\n// For multicharacter frameworks, we enable these events for\n// instantiating/deleting a player. The config option must be set to true\n// for these to be available\nif (config.general.useResourceIntegration) {\n exp('newPlayer', async (playerDTO: PlayerAddData) => {\n if (typeof playerDTO.source !== 'number') {\n return playerLogger.error('Source must be passed as a number when loading a player');\n }\n await PlayerService.handleNewPlayerEvent(playerDTO);\n emitNet(PhoneEvents.SET_PLAYER_LOADED, playerDTO.source, true);\n });\n\n exp('unloadPlayer', async (src: number) => {\n if (typeof src !== 'number') {\n return playerLogger.error('Source must be passed as a number when unloading a player');\n }\n playerLogger.debug(`Received unloadPlayer event for ${src}`);\n await PlayerService.handleUnloadPlayerEvent(src);\n });\n}\n","import { mainLogger } from '../sv_logger';\n\nexport const bridgeLogger = mainLogger.child({ module: 'bridge' });\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst net_1 = __importDefault(require(\"net\"));\nconst tls_1 = __importDefault(require(\"tls\"));\nconst url_1 = __importDefault(require(\"url\"));\nconst assert_1 = __importDefault(require(\"assert\"));\nconst debug_1 = __importDefault(require(\"debug\"));\nconst agent_base_1 = require(\"agent-base\");\nconst parse_proxy_response_1 = __importDefault(require(\"./parse-proxy-response\"));\nconst debug = debug_1.default('https-proxy-agent:agent');\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n *\n * @api public\n */\nclass HttpsProxyAgent extends agent_base_1.Agent {\n constructor(_opts) {\n let opts;\n if (typeof _opts === 'string') {\n opts = url_1.default.parse(_opts);\n }\n else {\n opts = _opts;\n }\n if (!opts) {\n throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!');\n }\n debug('creating new HttpsProxyAgent instance: %o', opts);\n super(opts);\n const proxy = Object.assign({}, opts);\n // If `true`, then connect to the proxy server over TLS.\n // Defaults to `false`.\n this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);\n // Prefer `hostname` over `host`, and set the `port` if needed.\n proxy.host = proxy.hostname || proxy.host;\n if (typeof proxy.port === 'string') {\n proxy.port = parseInt(proxy.port, 10);\n }\n if (!proxy.port && proxy.host) {\n proxy.port = this.secureProxy ? 443 : 80;\n }\n // ALPN is supported by Node.js >= v5.\n // attempt to negotiate http/1.1 for proxy servers that support http/2\n if (this.secureProxy && !('ALPNProtocols' in proxy)) {\n proxy.ALPNProtocols = ['http 1.1'];\n }\n if (proxy.host && proxy.path) {\n // If both a `host` and `path` are specified then it's most likely\n // the result of a `url.parse()` call... we need to remove the\n // `path` portion so that `net.connect()` doesn't attempt to open\n // that as a Unix socket file.\n delete proxy.path;\n delete proxy.pathname;\n }\n this.proxy = proxy;\n }\n /**\n * Called when the node-core HTTP client library is creating a\n * new HTTP request.\n *\n * @api protected\n */\n callback(req, opts) {\n return __awaiter(this, void 0, void 0, function* () {\n const { proxy, secureProxy } = this;\n // Create a socket connection to the proxy server.\n let socket;\n if (secureProxy) {\n debug('Creating `tls.Socket`: %o', proxy);\n socket = tls_1.default.connect(proxy);\n }\n else {\n debug('Creating `net.Socket`: %o', proxy);\n socket = net_1.default.connect(proxy);\n }\n const headers = Object.assign({}, proxy.headers);\n const hostname = `${opts.host}:${opts.port}`;\n let payload = `CONNECT ${hostname} HTTP/1.1\\r\\n`;\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.auth) {\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`;\n }\n // The `Host` header should only include the port\n // number when it is not the default port.\n let { host, port, secureEndpoint } = opts;\n if (!isDefaultPort(port, secureEndpoint)) {\n host += `:${port}`;\n }\n headers.Host = host;\n headers.Connection = 'close';\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n const proxyResponsePromise = parse_proxy_response_1.default(socket);\n socket.write(`${payload}\\r\\n`);\n const { statusCode, buffered } = yield proxyResponsePromise;\n if (statusCode === 200) {\n req.once('socket', resume);\n if (opts.secureEndpoint) {\n const servername = opts.servername || opts.host;\n if (!servername) {\n throw new Error('Could not determine \"servername\"');\n }\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debug('Upgrading socket connection to TLS');\n return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket,\n servername }));\n }\n return socket;\n }\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n const fakeSocket = new net_1.default.Socket();\n fakeSocket.readable = true;\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s) => {\n debug('replaying proxy buffer for failed request');\n assert_1.default(s.listenerCount('data') > 0);\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n return fakeSocket;\n });\n }\n}\nexports.default = HttpsProxyAgent;\nfunction resume(socket) {\n socket.resume();\n}\nfunction isDefaultPort(port, secure) {\n return Boolean((!secure && port === 80) || (secure && port === 443));\n}\nfunction isHTTPS(protocol) {\n return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false;\n}\nfunction omit(obj, ...keys) {\n const ret = {};\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n//# sourceMappingURL=agent.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nconst events_1 = require(\"events\");\nconst debug_1 = __importDefault(require(\"debug\"));\nconst promisify_1 = __importDefault(require(\"./promisify\"));\nconst debug = debug_1.default('agent-base');\nfunction isAgent(v) {\n return Boolean(v) && typeof v.addRequest === 'function';\n}\nfunction isSecureEndpoint() {\n const { stack } = new Error();\n if (typeof stack !== 'string')\n return false;\n return stack.split('\\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);\n}\nfunction createAgent(callback, opts) {\n return new createAgent.Agent(callback, opts);\n}\n(function (createAgent) {\n /**\n * Base `http.Agent` implementation.\n * No pooling/keep-alive is implemented by default.\n *\n * @param {Function} callback\n * @api public\n */\n class Agent extends events_1.EventEmitter {\n constructor(callback, _opts) {\n super();\n let opts = _opts;\n if (typeof callback === 'function') {\n this.callback = callback;\n }\n else if (callback) {\n opts = callback;\n }\n // Timeout for the socket to be returned from the callback\n this.timeout = null;\n if (opts && typeof opts.timeout === 'number') {\n this.timeout = opts.timeout;\n }\n // These aren't actually used by `agent-base`, but are required\n // for the TypeScript definition files in `@types/node` :/\n this.maxFreeSockets = 1;\n this.maxSockets = 1;\n this.maxTotalSockets = Infinity;\n this.sockets = {};\n this.freeSockets = {};\n this.requests = {};\n this.options = {};\n }\n get defaultPort() {\n if (typeof this.explicitDefaultPort === 'number') {\n return this.explicitDefaultPort;\n }\n return isSecureEndpoint() ? 443 : 80;\n }\n set defaultPort(v) {\n this.explicitDefaultPort = v;\n }\n get protocol() {\n if (typeof this.explicitProtocol === 'string') {\n return this.explicitProtocol;\n }\n return isSecureEndpoint() ? 'https:' : 'http:';\n }\n set protocol(v) {\n this.explicitProtocol = v;\n }\n callback(req, opts, fn) {\n throw new Error('\"agent-base\" has no default implementation, you must subclass and override `callback()`');\n }\n /**\n * Called by node-core's \"_http_client.js\" module when creating\n * a new HTTP request with this Agent instance.\n *\n * @api public\n */\n addRequest(req, _opts) {\n const opts = Object.assign({}, _opts);\n if (typeof opts.secureEndpoint !== 'boolean') {\n opts.secureEndpoint = isSecureEndpoint();\n }\n if (opts.host == null) {\n opts.host = 'localhost';\n }\n if (opts.port == null) {\n opts.port = opts.secureEndpoint ? 443 : 80;\n }\n if (opts.protocol == null) {\n opts.protocol = opts.secureEndpoint ? 'https:' : 'http:';\n }\n if (opts.host && opts.path) {\n // If both a `host` and `path` are specified then it's most\n // likely the result of a `url.parse()` call... we need to\n // remove the `path` portion so that `net.connect()` doesn't\n // attempt to open that as a unix socket file.\n delete opts.path;\n }\n delete opts.agent;\n delete opts.hostname;\n delete opts._defaultAgent;\n delete opts.defaultPort;\n delete opts.createConnection;\n // Hint to use \"Connection: close\"\n // XXX: non-documented `http` module API :(\n req._last = true;\n req.shouldKeepAlive = false;\n let timedOut = false;\n let timeoutId = null;\n const timeoutMs = opts.timeout || this.timeout;\n const onerror = (err) => {\n if (req._hadError)\n return;\n req.emit('error', err);\n // For Safety. Some additional errors might fire later on\n // and we need to make sure we don't double-fire the error event.\n req._hadError = true;\n };\n const ontimeout = () => {\n timeoutId = null;\n timedOut = true;\n const err = new Error(`A \"socket\" was not created for HTTP request before ${timeoutMs}ms`);\n err.code = 'ETIMEOUT';\n onerror(err);\n };\n const callbackError = (err) => {\n if (timedOut)\n return;\n if (timeoutId !== null) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n onerror(err);\n };\n const onsocket = (socket) => {\n if (timedOut)\n return;\n if (timeoutId != null) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n if (isAgent(socket)) {\n // `socket` is actually an `http.Agent` instance, so\n // relinquish responsibility for this `req` to the Agent\n // from here on\n debug('Callback returned another Agent instance %o', socket.constructor.name);\n socket.addRequest(req, opts);\n return;\n }\n if (socket) {\n socket.once('free', () => {\n this.freeSocket(socket, opts);\n });\n req.onSocket(socket);\n return;\n }\n const err = new Error(`no Duplex stream was returned to agent-base for \\`${req.method} ${req.path}\\``);\n onerror(err);\n };\n if (typeof this.callback !== 'function') {\n onerror(new Error('`callback` is not defined'));\n return;\n }\n if (!this.promisifiedCallback) {\n if (this.callback.length >= 3) {\n debug('Converting legacy callback function to promise');\n this.promisifiedCallback = promisify_1.default(this.callback);\n }\n else {\n this.promisifiedCallback = this.callback;\n }\n }\n if (typeof timeoutMs === 'number' && timeoutMs > 0) {\n timeoutId = setTimeout(ontimeout, timeoutMs);\n }\n if ('port' in opts && typeof opts.port !== 'number') {\n opts.port = Number(opts.port);\n }\n try {\n debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`);\n Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);\n }\n catch (err) {\n Promise.reject(err).catch(callbackError);\n }\n }\n freeSocket(socket, opts) {\n debug('Freeing socket %o %o', socket.constructor.name, opts);\n socket.destroy();\n }\n destroy() {\n debug('Destroying agent %o', this.constructor.name);\n }\n }\n createAgent.Agent = Agent;\n // So that `instanceof` works correctly\n createAgent.prototype = createAgent.Agent.prototype;\n})(createAgent || (createAgent = {}));\nmodule.exports = createAgent;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction promisify(fn) {\n return function (req, opts) {\n return new Promise((resolve, reject) => {\n fn.call(this, req, opts, (err, rtn) => {\n if (err) {\n reject(err);\n }\n else {\n resolve(rtn);\n }\n });\n });\n };\n}\nexports.default = promisify;\n//# sourceMappingURL=promisify.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst debug_1 = __importDefault(require(\"debug\"));\nconst debug = debug_1.default('https-proxy-agent:parse-proxy-response');\nfunction parseProxyResponse(socket) {\n return new Promise((resolve, reject) => {\n // we need to buffer any HTTP traffic that happens with the proxy before we get\n // the CONNECT response, so that if the response is anything other than an \"200\"\n // response code, then we can re-play the \"data\" events on the socket once the\n // HTTP parser is hooked up...\n let buffersLength = 0;\n const buffers = [];\n function read() {\n const b = socket.read();\n if (b)\n ondata(b);\n else\n socket.once('readable', read);\n }\n function cleanup() {\n socket.removeListener('end', onend);\n socket.removeListener('error', onerror);\n socket.removeListener('close', onclose);\n socket.removeListener('readable', read);\n }\n function onclose(err) {\n debug('onclose had error %o', err);\n }\n function onend() {\n debug('onend');\n }\n function onerror(err) {\n cleanup();\n debug('onerror %o', err);\n reject(err);\n }\n function ondata(b) {\n buffers.push(b);\n buffersLength += b.length;\n const buffered = Buffer.concat(buffers, buffersLength);\n const endOfHeaders = buffered.indexOf('\\r\\n\\r\\n');\n if (endOfHeaders === -1) {\n // keep buffering\n debug('have not received end of HTTP headers yet...');\n read();\n return;\n }\n const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\\r\\n'));\n const statusCode = +firstLine.split(' ')[1];\n debug('got proxy server response: %o', firstLine);\n resolve({\n statusCode,\n buffered\n });\n }\n socket.on('error', onerror);\n socket.on('close', onclose);\n socket.on('end', onend);\n read();\n });\n}\nexports.default = parseProxyResponse;\n//# sourceMappingURL=parse-proxy-response.js.map","/** The status of an event. */\n// eslint-disable-next-line import/export\nexport var Status;\n(function (Status) {\n /** The status could not be determined. */\n Status[\"Unknown\"] = \"unknown\";\n /** The event was skipped due to configuration or callbacks. */\n Status[\"Skipped\"] = \"skipped\";\n /** The event was sent to Sentry successfully. */\n Status[\"Success\"] = \"success\";\n /** The client is currently rate limited and will try again later. */\n Status[\"RateLimit\"] = \"rate_limit\";\n /** The event could not be processed. */\n Status[\"Invalid\"] = \"invalid\";\n /** A server-side error occurred during submission. */\n Status[\"Failed\"] = \"failed\";\n})(Status || (Status = {}));\n// eslint-disable-next-line @typescript-eslint/no-namespace, import/export\n(function (Status) {\n /**\n * Converts a HTTP status code into a {@link Status}.\n *\n * @param code The HTTP response status code.\n * @returns The send status or {@link Status.Unknown}.\n */\n function fromHttpCode(code) {\n if (code >= 200 && code < 300) {\n return Status.Success;\n }\n if (code === 429) {\n return Status.RateLimit;\n }\n if (code >= 400 && code < 500) {\n return Status.Invalid;\n }\n if (code >= 500) {\n return Status.Failed;\n }\n return Status.Unknown;\n }\n Status.fromHttpCode = fromHttpCode;\n})(Status || (Status = {}));\n//# sourceMappingURL=status.js.map","import { __assign, __read, __spread } from \"tslib\";\nimport { getCurrentHub } from '@sentry/hub';\n/**\n * This calls a function on the current hub.\n * @param method function to call on hub.\n * @param args to pass to function.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction callOnHub(method) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var hub = getCurrentHub();\n if (hub && hub[method]) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return hub[method].apply(hub, __spread(args));\n }\n throw new Error(\"No hub defined or \" + method + \" was not found on the hub, please open a bug report.\");\n}\n/**\n * Captures an exception event and sends it to Sentry.\n *\n * @param exception An exception-like object.\n * @returns The generated eventId.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\nexport function captureException(exception, captureContext) {\n var syntheticException;\n try {\n throw new Error('Sentry syntheticException');\n }\n catch (exception) {\n syntheticException = exception;\n }\n return callOnHub('captureException', exception, {\n captureContext: captureContext,\n originalException: exception,\n syntheticException: syntheticException,\n });\n}\n/**\n * Captures a message event and sends it to Sentry.\n *\n * @param message The message to send to Sentry.\n * @param level Define the level of the message.\n * @returns The generated eventId.\n */\nexport function captureMessage(message, captureContext) {\n var syntheticException;\n try {\n throw new Error(message);\n }\n catch (exception) {\n syntheticException = exception;\n }\n // This is necessary to provide explicit scopes upgrade, without changing the original\n // arity of the `captureMessage(message, level)` method.\n var level = typeof captureContext === 'string' ? captureContext : undefined;\n var context = typeof captureContext !== 'string' ? { captureContext: captureContext } : undefined;\n return callOnHub('captureMessage', message, level, __assign({ originalException: message, syntheticException: syntheticException }, context));\n}\n/**\n * Captures a manually created event and sends it to Sentry.\n *\n * @param event The event to send to Sentry.\n * @returns The generated eventId.\n */\nexport function captureEvent(event) {\n return callOnHub('captureEvent', event);\n}\n/**\n * Callback to set context information onto the scope.\n * @param callback Callback function that receives Scope.\n */\nexport function configureScope(callback) {\n callOnHub('configureScope', callback);\n}\n/**\n * Records a new breadcrumb which will be attached to future events.\n *\n * Breadcrumbs will be added to subsequent events to provide more context on\n * user's actions prior to an error or crash.\n *\n * @param breadcrumb The breadcrumb to record.\n */\nexport function addBreadcrumb(breadcrumb) {\n callOnHub('addBreadcrumb', breadcrumb);\n}\n/**\n * Sets context data with the given name.\n * @param name of the context\n * @param context Any kind of data. This data will be normalized.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function setContext(name, context) {\n callOnHub('setContext', name, context);\n}\n/**\n * Set an object that will be merged sent as extra data with the event.\n * @param extras Extras object to merge into current context.\n */\nexport function setExtras(extras) {\n callOnHub('setExtras', extras);\n}\n/**\n * Set an object that will be merged sent as tags data with the event.\n * @param tags Tags context object to merge into current context.\n */\nexport function setTags(tags) {\n callOnHub('setTags', tags);\n}\n/**\n * Set key:value that will be sent as extra data with the event.\n * @param key String of extra\n * @param extra Any kind of data. This data will be normalized.\n */\nexport function setExtra(key, extra) {\n callOnHub('setExtra', key, extra);\n}\n/**\n * Set key:value that will be sent as tags data with the event.\n *\n * Can also be used to unset a tag, by passing `undefined`.\n *\n * @param key String key of tag\n * @param value Value of tag\n */\nexport function setTag(key, value) {\n callOnHub('setTag', key, value);\n}\n/**\n * Updates user context information for future events.\n *\n * @param user User context object to be set in the current context. Pass `null` to unset the user.\n */\nexport function setUser(user) {\n callOnHub('setUser', user);\n}\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n *\n * This is essentially a convenience function for:\n *\n * pushScope();\n * callback();\n * popScope();\n *\n * @param callback that will be enclosed into push/popScope.\n */\nexport function withScope(callback) {\n callOnHub('withScope', callback);\n}\n/**\n * Calls a function on the latest client. Use this with caution, it's meant as\n * in \"internal\" helper so we don't need to expose every possible function in\n * the shim. It is not guaranteed that the client actually implements the\n * function.\n *\n * @param method The method to call on the client/client.\n * @param args Arguments to pass to the client/fontend.\n * @hidden\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function _callOnClient(method) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n callOnHub.apply(void 0, __spread(['_invokeClient', method], args));\n}\n/**\n * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.\n *\n * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a\n * new child span within the transaction or any span, call the respective `.startChild()` method.\n *\n * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.\n *\n * The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its\n * finished child spans will be sent to Sentry.\n *\n * @param context Properties of the new `Transaction`.\n * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent\n * default values). See {@link Options.tracesSampler}.\n *\n * @returns The transaction which was just started\n */\nexport function startTransaction(context, customSamplingContext) {\n return callOnHub('startTransaction', __assign({}, context), customSamplingContext);\n}\n//# sourceMappingURL=index.js.map","export var SDK_VERSION = '6.15.0';\n//# sourceMappingURL=version.js.map","export var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties);\n/**\n * setPrototypeOf polyfill using __proto__\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction setProtoOf(obj, proto) {\n // @ts-ignore __proto__ does not exist on obj\n obj.__proto__ = proto;\n return obj;\n}\n/**\n * setPrototypeOf polyfill using mixin\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction mixinProperties(obj, proto) {\n for (var prop in proto) {\n if (!Object.prototype.hasOwnProperty.call(obj, prop)) {\n // @ts-ignore typescript complains about indexing so we remove\n obj[prop] = proto[prop];\n }\n }\n return obj;\n}\n//# sourceMappingURL=polyfill.js.map","import { __extends } from \"tslib\";\nimport { setPrototypeOf } from './polyfill';\n/** An error emitted by Sentry SDKs and related utilities. */\nvar SentryError = /** @class */ (function (_super) {\n __extends(SentryError, _super);\n function SentryError(message) {\n var _newTarget = this.constructor;\n var _this = _super.call(this, message) || this;\n _this.message = message;\n _this.name = _newTarget.prototype.constructor.name;\n setPrototypeOf(_this, _newTarget.prototype);\n return _this;\n }\n return SentryError;\n}(Error));\nexport { SentryError };\n//# sourceMappingURL=error.js.map","import { Status } from '@sentry/types';\nimport { SyncPromise } from '@sentry/utils';\n/** Noop transport */\nvar NoopTransport = /** @class */ (function () {\n function NoopTransport() {\n }\n /**\n * @inheritDoc\n */\n NoopTransport.prototype.sendEvent = function (_) {\n return SyncPromise.resolve({\n reason: \"NoopTransport: Event has been skipped because no Dsn is configured.\",\n status: Status.Skipped,\n });\n };\n /**\n * @inheritDoc\n */\n NoopTransport.prototype.close = function (_) {\n return SyncPromise.resolve(true);\n };\n return NoopTransport;\n}());\nexport { NoopTransport };\n//# sourceMappingURL=noop.js.map","import { logger, SentryError } from '@sentry/utils';\nimport { NoopTransport } from './transports/noop';\n/**\n * This is the base implemention of a Backend.\n * @hidden\n */\nvar BaseBackend = /** @class */ (function () {\n /** Creates a new backend instance. */\n function BaseBackend(options) {\n this._options = options;\n if (!this._options.dsn) {\n logger.warn('No DSN provided, backend will not do anything.');\n }\n this._transport = this._setupTransport();\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n BaseBackend.prototype.eventFromException = function (_exception, _hint) {\n throw new SentryError('Backend has to implement `eventFromException` method');\n };\n /**\n * @inheritDoc\n */\n BaseBackend.prototype.eventFromMessage = function (_message, _level, _hint) {\n throw new SentryError('Backend has to implement `eventFromMessage` method');\n };\n /**\n * @inheritDoc\n */\n BaseBackend.prototype.sendEvent = function (event) {\n void this._transport.sendEvent(event).then(null, function (reason) {\n logger.error(\"Error while sending event: \" + reason);\n });\n };\n /**\n * @inheritDoc\n */\n BaseBackend.prototype.sendSession = function (session) {\n if (!this._transport.sendSession) {\n logger.warn(\"Dropping session because custom transport doesn't implement sendSession\");\n return;\n }\n void this._transport.sendSession(session).then(null, function (reason) {\n logger.error(\"Error while sending session: \" + reason);\n });\n };\n /**\n * @inheritDoc\n */\n BaseBackend.prototype.getTransport = function () {\n return this._transport;\n };\n /**\n * Sets up the transport so it can be used later to send requests.\n */\n BaseBackend.prototype._setupTransport = function () {\n return new NoopTransport();\n };\n return BaseBackend;\n}());\nexport { BaseBackend };\n//# sourceMappingURL=basebackend.js.map","import { __read } from \"tslib\";\nimport { SentryError } from './error';\n/** Regular expression used to parse a Dsn. */\nvar DSN_REGEX = /^(?:(\\w+):)\\/\\/(?:(\\w+)(?::(\\w+))?@)([\\w.-]+)(?::(\\d+))?\\/(.+)/;\n/** Error message */\nvar ERROR_MESSAGE = 'Invalid Dsn';\n/** The Sentry Dsn, identifying a Sentry instance and project. */\nvar Dsn = /** @class */ (function () {\n /** Creates a new Dsn component */\n function Dsn(from) {\n if (typeof from === 'string') {\n this._fromString(from);\n }\n else {\n this._fromComponents(from);\n }\n this._validate();\n }\n /**\n * Renders the string representation of this Dsn.\n *\n * By default, this will render the public representation without the password\n * component. To get the deprecated private representation, set `withPassword`\n * to true.\n *\n * @param withPassword When set to true, the password will be included.\n */\n Dsn.prototype.toString = function (withPassword) {\n if (withPassword === void 0) { withPassword = false; }\n var _a = this, host = _a.host, path = _a.path, pass = _a.pass, port = _a.port, projectId = _a.projectId, protocol = _a.protocol, publicKey = _a.publicKey;\n return (protocol + \"://\" + publicKey + (withPassword && pass ? \":\" + pass : '') +\n (\"@\" + host + (port ? \":\" + port : '') + \"/\" + (path ? path + \"/\" : path) + projectId));\n };\n /** Parses a string into this Dsn. */\n Dsn.prototype._fromString = function (str) {\n var match = DSN_REGEX.exec(str);\n if (!match) {\n throw new SentryError(ERROR_MESSAGE);\n }\n var _a = __read(match.slice(1), 6), protocol = _a[0], publicKey = _a[1], _b = _a[2], pass = _b === void 0 ? '' : _b, host = _a[3], _c = _a[4], port = _c === void 0 ? '' : _c, lastPath = _a[5];\n var path = '';\n var projectId = lastPath;\n var split = projectId.split('/');\n if (split.length > 1) {\n path = split.slice(0, -1).join('/');\n projectId = split.pop();\n }\n if (projectId) {\n var projectMatch = projectId.match(/^\\d+/);\n if (projectMatch) {\n projectId = projectMatch[0];\n }\n }\n this._fromComponents({ host: host, pass: pass, path: path, projectId: projectId, port: port, protocol: protocol, publicKey: publicKey });\n };\n /** Maps Dsn components into this instance. */\n Dsn.prototype._fromComponents = function (components) {\n // TODO this is for backwards compatibility, and can be removed in a future version\n if ('user' in components && !('publicKey' in components)) {\n components.publicKey = components.user;\n }\n this.user = components.publicKey || '';\n this.protocol = components.protocol;\n this.publicKey = components.publicKey || '';\n this.pass = components.pass || '';\n this.host = components.host;\n this.port = components.port || '';\n this.path = components.path || '';\n this.projectId = components.projectId;\n };\n /** Validates this Dsn and throws on error. */\n Dsn.prototype._validate = function () {\n var _this = this;\n ['protocol', 'publicKey', 'host', 'projectId'].forEach(function (component) {\n if (!_this[component]) {\n throw new SentryError(ERROR_MESSAGE + \": \" + component + \" missing\");\n }\n });\n if (!this.projectId.match(/^\\d+$/)) {\n throw new SentryError(ERROR_MESSAGE + \": Invalid projectId \" + this.projectId);\n }\n if (this.protocol !== 'http' && this.protocol !== 'https') {\n throw new SentryError(ERROR_MESSAGE + \": Invalid protocol \" + this.protocol);\n }\n if (this.port && isNaN(parseInt(this.port, 10))) {\n throw new SentryError(ERROR_MESSAGE + \": Invalid port \" + this.port);\n }\n };\n return Dsn;\n}());\nexport { Dsn };\n//# sourceMappingURL=dsn.js.map","import { addContextToFrame, basename, dirname, SyncPromise } from '@sentry/utils';\nimport { readFile } from 'fs';\nimport { LRUMap } from 'lru_map';\nimport * as stacktrace from './stacktrace';\nvar DEFAULT_LINES_OF_CONTEXT = 7;\nvar FILE_CONTENT_CACHE = new LRUMap(100);\n/**\n * Resets the file cache. Exists for testing purposes.\n * @hidden\n */\nexport function resetFileContentCache() {\n FILE_CONTENT_CACHE.clear();\n}\n/** JSDoc */\nfunction getFunction(frame) {\n try {\n return frame.functionName || frame.typeName + \".\" + (frame.methodName || '');\n }\n catch (e) {\n // This seems to happen sometimes when using 'use strict',\n // stemming from `getTypeName`.\n // [TypeError: Cannot read property 'constructor' of undefined]\n return '';\n }\n}\nvar mainModule = ((require.main && require.main.filename && dirname(require.main.filename)) ||\n global.process.cwd()) + \"/\";\n/** JSDoc */\nfunction getModule(filename, base) {\n if (!base) {\n // eslint-disable-next-line no-param-reassign\n base = mainModule;\n }\n // It's specifically a module\n var file = basename(filename, '.js');\n // eslint-disable-next-line no-param-reassign\n filename = dirname(filename);\n var n = filename.lastIndexOf('/node_modules/');\n if (n > -1) {\n // /node_modules/ is 14 chars\n return filename.substr(n + 14).replace(/\\//g, '.') + \":\" + file;\n }\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n n = (filename + \"/\").lastIndexOf(base, 0);\n if (n === 0) {\n var moduleName = filename.substr(base.length).replace(/\\//g, '.');\n if (moduleName) {\n moduleName += ':';\n }\n moduleName += file;\n return moduleName;\n }\n return file;\n}\n/**\n * This function reads file contents and caches them in a global LRU cache.\n * Returns a Promise filepath => content array for all files that we were able to read.\n *\n * @param filenames Array of filepaths to read content from.\n */\nfunction readSourceFiles(filenames) {\n // we're relying on filenames being de-duped already\n if (filenames.length === 0) {\n return SyncPromise.resolve({});\n }\n return new SyncPromise(function (resolve) {\n var sourceFiles = {};\n var count = 0;\n var _loop_1 = function (i) {\n var filename = filenames[i];\n var cache = FILE_CONTENT_CACHE.get(filename);\n // We have a cache hit\n if (cache !== undefined) {\n // If it's not null (which means we found a file and have a content)\n // we set the content and return it later.\n if (cache !== null) {\n sourceFiles[filename] = cache;\n }\n // eslint-disable-next-line no-plusplus\n count++;\n // In any case we want to skip here then since we have a content already or we couldn't\n // read the file and don't want to try again.\n if (count === filenames.length) {\n resolve(sourceFiles);\n }\n return \"continue\";\n }\n readFile(filename, function (err, data) {\n var content = err ? null : data.toString();\n sourceFiles[filename] = content;\n // We always want to set the cache, even to null which means there was an error reading the file.\n // We do not want to try to read the file again.\n FILE_CONTENT_CACHE.set(filename, content);\n // eslint-disable-next-line no-plusplus\n count++;\n if (count === filenames.length) {\n resolve(sourceFiles);\n }\n });\n };\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < filenames.length; i++) {\n _loop_1(i);\n }\n });\n}\n/**\n * @hidden\n */\nexport function extractStackFromError(error) {\n var stack = stacktrace.parse(error);\n if (!stack) {\n return [];\n }\n return stack;\n}\n/**\n * @hidden\n */\nexport function parseStack(stack, options) {\n var filesToRead = [];\n var linesOfContext = options && options.frameContextLines !== undefined ? options.frameContextLines : DEFAULT_LINES_OF_CONTEXT;\n var frames = stack.map(function (frame) {\n var _a;\n var parsedFrame = {\n colno: frame.columnNumber,\n filename: ((_a = frame.fileName) === null || _a === void 0 ? void 0 : _a.startsWith('file://')) ? frame.fileName.substr(7) : frame.fileName || '',\n function: getFunction(frame),\n lineno: frame.lineNumber,\n };\n var isInternal = frame.native ||\n (parsedFrame.filename &&\n !parsedFrame.filename.startsWith('/') &&\n !parsedFrame.filename.startsWith('.') &&\n parsedFrame.filename.indexOf(':\\\\') !== 1);\n // in_app is all that's not an internal Node function or a module within node_modules\n // note that isNative appears to return true even for node core libraries\n // see https://github.com/getsentry/raven-node/issues/176\n parsedFrame.in_app =\n !isInternal && parsedFrame.filename !== undefined && parsedFrame.filename.indexOf('node_modules/') === -1;\n // Extract a module name based on the filename\n if (parsedFrame.filename) {\n parsedFrame.module = getModule(parsedFrame.filename);\n if (!isInternal && linesOfContext > 0 && filesToRead.indexOf(parsedFrame.filename) === -1) {\n filesToRead.push(parsedFrame.filename);\n }\n }\n return parsedFrame;\n });\n // We do an early return if we do not want to fetch context liens\n if (linesOfContext <= 0) {\n return SyncPromise.resolve(frames);\n }\n try {\n return addPrePostContext(filesToRead, frames, linesOfContext);\n }\n catch (_) {\n // This happens in electron for example where we are not able to read files from asar.\n // So it's fine, we recover be just returning all frames without pre/post context.\n return SyncPromise.resolve(frames);\n }\n}\n/**\n * This function tries to read the source files + adding pre and post context (source code)\n * to a frame.\n * @param filesToRead string[] of filepaths\n * @param frames StackFrame[] containg all frames\n */\nfunction addPrePostContext(filesToRead, frames, linesOfContext) {\n return new SyncPromise(function (resolve) {\n return readSourceFiles(filesToRead).then(function (sourceFiles) {\n var result = frames.map(function (frame) {\n if (frame.filename && sourceFiles[frame.filename]) {\n try {\n var lines = sourceFiles[frame.filename].split('\\n');\n addContextToFrame(lines, frame, linesOfContext);\n }\n catch (e) {\n // anomaly, being defensive in case\n // unlikely to ever happen in practice but can definitely happen in theory\n }\n }\n return frame;\n });\n resolve(result);\n });\n });\n}\n/**\n * @hidden\n */\nexport function getExceptionFromError(error, options) {\n var name = error.name || error.constructor.name;\n var stack = extractStackFromError(error);\n return new SyncPromise(function (resolve) {\n return parseStack(stack, options).then(function (frames) {\n var result = {\n stacktrace: {\n frames: prepareFramesForEvent(frames),\n },\n type: name,\n value: error.message,\n };\n resolve(result);\n });\n });\n}\n/**\n * @hidden\n */\nexport function parseError(error, options) {\n return new SyncPromise(function (resolve) {\n return getExceptionFromError(error, options).then(function (exception) {\n resolve({\n exception: {\n values: [exception],\n },\n });\n });\n });\n}\n/**\n * @hidden\n */\nexport function prepareFramesForEvent(stack) {\n if (!stack || !stack.length) {\n return [];\n }\n var localStack = stack;\n var firstFrameFunction = localStack[0].function || '';\n if (firstFrameFunction.indexOf('captureMessage') !== -1 || firstFrameFunction.indexOf('captureException') !== -1) {\n localStack = localStack.slice(1);\n }\n // The frame where the crash happened, should be the last entry in the array\n return localStack.reverse();\n}\n//# sourceMappingURL=parsers.js.map","/**\n * stack-trace - Parses node.js stack traces\n *\n * This was originally forked to fix this issue:\n * https://github.com/felixge/node-stack-trace/issues/31\n *\n * Mar 19,2019 - #4fd379e\n *\n * https://github.com/felixge/node-stack-trace/\n * @license MIT\n */\n/** Extracts StackFrames from the Error */\nexport function parse(err) {\n if (!err.stack) {\n return [];\n }\n var lines = err.stack.split('\\n').slice(1);\n return lines\n .map(function (line) {\n if (line.match(/^\\s*[-]{4,}$/)) {\n return {\n columnNumber: null,\n fileName: line,\n functionName: null,\n lineNumber: null,\n methodName: null,\n native: null,\n typeName: null,\n };\n }\n var lineMatch = line.match(/at (?:(.+?)\\s+\\()?(?:(.+?):(\\d+)(?::(\\d+))?|([^)]+))\\)?/);\n if (!lineMatch) {\n return undefined;\n }\n var object = null;\n var method = null;\n var functionName = null;\n var typeName = null;\n var methodName = null;\n var isNative = lineMatch[5] === 'native';\n if (lineMatch[1]) {\n functionName = lineMatch[1];\n var methodStart = functionName.lastIndexOf('.');\n if (functionName[methodStart - 1] === '.') {\n // eslint-disable-next-line no-plusplus\n methodStart--;\n }\n if (methodStart > 0) {\n object = functionName.substr(0, methodStart);\n method = functionName.substr(methodStart + 1);\n var objectEnd = object.indexOf('.Module');\n if (objectEnd > 0) {\n functionName = functionName.substr(objectEnd + 1);\n object = object.substr(0, objectEnd);\n }\n }\n typeName = null;\n }\n if (method) {\n typeName = object;\n methodName = method;\n }\n if (method === '') {\n methodName = null;\n functionName = null;\n }\n var properties = {\n columnNumber: parseInt(lineMatch[4], 10) || null,\n fileName: lineMatch[2] || null,\n functionName: functionName,\n lineNumber: parseInt(lineMatch[3], 10) || null,\n methodName: methodName,\n native: isNative,\n typeName: typeName,\n };\n return properties;\n })\n .filter(function (callSite) { return !!callSite; });\n}\n//# sourceMappingURL=stacktrace.js.map","import { Dsn, urlEncode } from '@sentry/utils';\nvar SENTRY_API_VERSION = '7';\n/**\n * Helper class to provide urls, headers and metadata that can be used to form\n * different types of requests to Sentry endpoints.\n * Supports both envelopes and regular event requests.\n **/\nvar API = /** @class */ (function () {\n /** Create a new instance of API */\n function API(dsn, metadata, tunnel) {\n if (metadata === void 0) { metadata = {}; }\n this.dsn = dsn;\n this._dsnObject = new Dsn(dsn);\n this.metadata = metadata;\n this._tunnel = tunnel;\n }\n /** Returns the Dsn object. */\n API.prototype.getDsn = function () {\n return this._dsnObject;\n };\n /** Does this transport force envelopes? */\n API.prototype.forceEnvelope = function () {\n return !!this._tunnel;\n };\n /** Returns the prefix to construct Sentry ingestion API endpoints. */\n API.prototype.getBaseApiEndpoint = function () {\n var dsn = this.getDsn();\n var protocol = dsn.protocol ? dsn.protocol + \":\" : '';\n var port = dsn.port ? \":\" + dsn.port : '';\n return protocol + \"//\" + dsn.host + port + (dsn.path ? \"/\" + dsn.path : '') + \"/api/\";\n };\n /** Returns the store endpoint URL. */\n API.prototype.getStoreEndpoint = function () {\n return this._getIngestEndpoint('store');\n };\n /**\n * Returns the store endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\n API.prototype.getStoreEndpointWithUrlEncodedAuth = function () {\n return this.getStoreEndpoint() + \"?\" + this._encodedAuth();\n };\n /**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\n API.prototype.getEnvelopeEndpointWithUrlEncodedAuth = function () {\n if (this.forceEnvelope()) {\n return this._tunnel;\n }\n return this._getEnvelopeEndpoint() + \"?\" + this._encodedAuth();\n };\n /** Returns only the path component for the store endpoint. */\n API.prototype.getStoreEndpointPath = function () {\n var dsn = this.getDsn();\n return (dsn.path ? \"/\" + dsn.path : '') + \"/api/\" + dsn.projectId + \"/store/\";\n };\n /**\n * Returns an object that can be used in request headers.\n * This is needed for node and the old /store endpoint in sentry\n */\n API.prototype.getRequestHeaders = function (clientName, clientVersion) {\n // CHANGE THIS to use metadata but keep clientName and clientVersion compatible\n var dsn = this.getDsn();\n var header = [\"Sentry sentry_version=\" + SENTRY_API_VERSION];\n header.push(\"sentry_client=\" + clientName + \"/\" + clientVersion);\n header.push(\"sentry_key=\" + dsn.publicKey);\n if (dsn.pass) {\n header.push(\"sentry_secret=\" + dsn.pass);\n }\n return {\n 'Content-Type': 'application/json',\n 'X-Sentry-Auth': header.join(', '),\n };\n };\n /** Returns the url to the report dialog endpoint. */\n API.prototype.getReportDialogEndpoint = function (dialogOptions) {\n if (dialogOptions === void 0) { dialogOptions = {}; }\n var dsn = this.getDsn();\n var endpoint = this.getBaseApiEndpoint() + \"embed/error-page/\";\n var encodedOptions = [];\n encodedOptions.push(\"dsn=\" + dsn.toString());\n for (var key in dialogOptions) {\n if (key === 'dsn') {\n continue;\n }\n if (key === 'user') {\n if (!dialogOptions.user) {\n continue;\n }\n if (dialogOptions.user.name) {\n encodedOptions.push(\"name=\" + encodeURIComponent(dialogOptions.user.name));\n }\n if (dialogOptions.user.email) {\n encodedOptions.push(\"email=\" + encodeURIComponent(dialogOptions.user.email));\n }\n }\n else {\n encodedOptions.push(encodeURIComponent(key) + \"=\" + encodeURIComponent(dialogOptions[key]));\n }\n }\n if (encodedOptions.length) {\n return endpoint + \"?\" + encodedOptions.join('&');\n }\n return endpoint;\n };\n /** Returns the envelope endpoint URL. */\n API.prototype._getEnvelopeEndpoint = function () {\n return this._getIngestEndpoint('envelope');\n };\n /** Returns the ingest API endpoint for target. */\n API.prototype._getIngestEndpoint = function (target) {\n if (this._tunnel) {\n return this._tunnel;\n }\n var base = this.getBaseApiEndpoint();\n var dsn = this.getDsn();\n return \"\" + base + dsn.projectId + \"/\" + target + \"/\";\n };\n /** Returns a URL-encoded string with auth config suitable for a query string. */\n API.prototype._encodedAuth = function () {\n var dsn = this.getDsn();\n var auth = {\n // We send only the minimum set of required information. See\n // https://github.com/getsentry/sentry-javascript/issues/2572.\n sentry_key: dsn.publicKey,\n sentry_version: SENTRY_API_VERSION,\n };\n return urlEncode(auth);\n };\n return API;\n}());\nexport { API };\n//# sourceMappingURL=api.js.map","import { SentryError } from './error';\nimport { SyncPromise } from './syncpromise';\n/** A simple queue that holds promises. */\nvar PromiseBuffer = /** @class */ (function () {\n function PromiseBuffer(_limit) {\n this._limit = _limit;\n /** Internal set of queued Promises */\n this._buffer = [];\n }\n /**\n * Says if the buffer is ready to take more requests\n */\n PromiseBuffer.prototype.isReady = function () {\n return this._limit === undefined || this.length() < this._limit;\n };\n /**\n * Add a promise (representing an in-flight action) to the queue, and set it to remove itself on fulfillment.\n *\n * @param taskProducer A function producing any PromiseLike; In previous versions this used to be `task:\n * PromiseLike`, but under that model, Promises were instantly created on the call-site and their executor\n * functions therefore ran immediately. Thus, even if the buffer was full, the action still happened. By\n * requiring the promise to be wrapped in a function, we can defer promise creation until after the buffer\n * limit check.\n * @returns The original promise.\n */\n PromiseBuffer.prototype.add = function (taskProducer) {\n var _this = this;\n if (!this.isReady()) {\n return SyncPromise.reject(new SentryError('Not adding Promise due to buffer limit reached.'));\n }\n // start the task and add its promise to the queue\n var task = taskProducer();\n if (this._buffer.indexOf(task) === -1) {\n this._buffer.push(task);\n }\n void task\n .then(function () { return _this.remove(task); })\n // Use `then(null, rejectionHandler)` rather than `catch(rejectionHandler)` so that we can use `PromiseLike`\n // rather than `Promise`. `PromiseLike` doesn't have a `.catch` method, making its polyfill smaller. (ES5 didn't\n // have promises, so TS has to polyfill when down-compiling.)\n .then(null, function () {\n return _this.remove(task).then(null, function () {\n // We have to add another catch here because `this.remove()` starts a new promise chain.\n });\n });\n return task;\n };\n /**\n * Remove a promise from the queue.\n *\n * @param task Can be any PromiseLike\n * @returns Removed promise.\n */\n PromiseBuffer.prototype.remove = function (task) {\n var removedTask = this._buffer.splice(this._buffer.indexOf(task), 1)[0];\n return removedTask;\n };\n /**\n * This function returns the number of unresolved promises in the queue.\n */\n PromiseBuffer.prototype.length = function () {\n return this._buffer.length;\n };\n /**\n * Wait for all promises in the queue to resolve or for timeout to expire, whichever comes first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the queue is still non-empty. Passing `0` (or\n * not passing anything) will make the promise wait as long as it takes for the queue to drain before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if the queue is already empty or drains before the timeout, and\n * `false` otherwise\n */\n PromiseBuffer.prototype.drain = function (timeout) {\n var _this = this;\n return new SyncPromise(function (resolve) {\n // wait for `timeout` ms and then resolve to `false` (if not cancelled first)\n var capturedSetTimeout = setTimeout(function () {\n if (timeout && timeout > 0) {\n resolve(false);\n }\n }, timeout);\n // if all promises resolve in time, cancel the timer and resolve to `true`\n void SyncPromise.all(_this._buffer)\n .then(function () {\n clearTimeout(capturedSetTimeout);\n resolve(true);\n })\n .then(null, function () {\n resolve(true);\n });\n });\n };\n return PromiseBuffer;\n}());\nexport { PromiseBuffer };\n//# sourceMappingURL=promisebuffer.js.map","// TODO: Remove in the next major release and rely only on @sentry/core SDK_VERSION and SdkMetadata\nexport var SDK_NAME = 'sentry.javascript.node';\n//# sourceMappingURL=version.js.map","import { __assign, __awaiter, __generator, __read, __spread, __values } from \"tslib\";\nimport { API, SDK_VERSION } from '@sentry/core';\nimport { Status, } from '@sentry/types';\nimport { logger, parseRetryAfterHeader, PromiseBuffer, SentryError } from '@sentry/utils';\nimport * as fs from 'fs';\nimport { URL } from 'url';\nimport { SDK_NAME } from '../../version';\nvar CATEGORY_MAPPING = {\n event: 'error',\n transaction: 'transaction',\n session: 'session',\n attachment: 'attachment',\n};\n/** Base Transport class implementation */\nvar BaseTransport = /** @class */ (function () {\n /** Create instance and set this.dsn */\n function BaseTransport(options) {\n this.options = options;\n /** A simple buffer holding all requests. */\n this._buffer = new PromiseBuffer(30);\n /** Locks transport after receiving rate limits in a response */\n this._rateLimits = {};\n /** Default function used to parse URLs */\n this.urlParser = function (url) { return new URL(url); };\n this._api = new API(options.dsn, options._metadata, options.tunnel);\n }\n /**\n * @inheritDoc\n */\n BaseTransport.prototype.sendEvent = function (_) {\n throw new SentryError('Transport Class has to implement `sendEvent` method.');\n };\n /**\n * @inheritDoc\n */\n BaseTransport.prototype.close = function (timeout) {\n return this._buffer.drain(timeout);\n };\n /**\n * Extracts proxy settings from client options and env variables.\n *\n * Honors `no_proxy` env variable with the highest priority to allow for hosts exclusion.\n *\n * An order of priority for available protocols is:\n * `http` => `options.httpProxy` | `process.env.http_proxy`\n * `https` => `options.httpsProxy` | `options.httpProxy` | `process.env.https_proxy` | `process.env.http_proxy`\n */\n BaseTransport.prototype._getProxy = function (protocol) {\n var e_1, _a;\n var _b = process.env, no_proxy = _b.no_proxy, http_proxy = _b.http_proxy, https_proxy = _b.https_proxy;\n var _c = this.options, httpProxy = _c.httpProxy, httpsProxy = _c.httpsProxy;\n var proxy = protocol === 'http' ? httpProxy || http_proxy : httpsProxy || httpProxy || https_proxy || http_proxy;\n if (!no_proxy) {\n return proxy;\n }\n var _d = this._api.getDsn(), host = _d.host, port = _d.port;\n try {\n for (var _e = __values(no_proxy.split(',')), _f = _e.next(); !_f.done; _f = _e.next()) {\n var np = _f.value;\n if (host.endsWith(np) || (host + \":\" + port).endsWith(np)) {\n return;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_f && !_f.done && (_a = _e.return)) _a.call(_e);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return proxy;\n };\n /** Returns a build request option object used by request */\n BaseTransport.prototype._getRequestOptions = function (urlParts) {\n var headers = __assign(__assign({}, this._api.getRequestHeaders(SDK_NAME, SDK_VERSION)), this.options.headers);\n var hostname = urlParts.hostname, pathname = urlParts.pathname, port = urlParts.port, protocol = urlParts.protocol;\n // See https://github.com/nodejs/node/blob/38146e717fed2fabe3aacb6540d839475e0ce1c6/lib/internal/url.js#L1268-L1290\n // We ignore the query string on purpose\n var path = \"\" + pathname;\n return __assign({ agent: this.client, headers: headers,\n hostname: hostname, method: 'POST', path: path,\n port: port,\n protocol: protocol }, (this.options.caCerts && {\n ca: fs.readFileSync(this.options.caCerts),\n }));\n };\n /**\n * Gets the time that given category is disabled until for rate limiting\n */\n BaseTransport.prototype._disabledUntil = function (requestType) {\n var category = CATEGORY_MAPPING[requestType];\n return this._rateLimits[category] || this._rateLimits.all;\n };\n /**\n * Checks if a category is rate limited\n */\n BaseTransport.prototype._isRateLimited = function (requestType) {\n return this._disabledUntil(requestType) > new Date(Date.now());\n };\n /**\n * Sets internal _rateLimits from incoming headers. Returns true if headers contains a non-empty rate limiting header.\n */\n BaseTransport.prototype._handleRateLimit = function (headers) {\n var e_2, _a, e_3, _b;\n var now = Date.now();\n var rlHeader = headers['x-sentry-rate-limits'];\n var raHeader = headers['retry-after'];\n if (rlHeader) {\n try {\n // rate limit headers are of the form\n //

,
,..\n // where each
is of the form\n // : : : \n // where\n // is a delay in ms\n // is the event type(s) (error, transaction, etc) being rate limited and is of the form\n // ;;...\n // is what's being limited (org, project, or key) - ignored by SDK\n // is an arbitrary string like \"org_quota\" - ignored by SDK\n for (var _c = __values(rlHeader.trim().split(',')), _d = _c.next(); !_d.done; _d = _c.next()) {\n var limit = _d.value;\n var parameters = limit.split(':', 2);\n var headerDelay = parseInt(parameters[0], 10);\n var delay = (!isNaN(headerDelay) ? headerDelay : 60) * 1000; // 60sec default\n try {\n for (var _e = (e_3 = void 0, __values((parameters[1] && parameters[1].split(';')) || ['all'])), _f = _e.next(); !_f.done; _f = _e.next()) {\n var category = _f.value;\n // categoriesAllowed is added here to ensure we are only storing rate limits for categories we support in this\n // sdk and any categories that are not supported will not be added redundantly to the rateLimits object\n var categoriesAllowed = __spread(Object.keys(CATEGORY_MAPPING).map(function (k) { return CATEGORY_MAPPING[k]; }), [\n 'all',\n ]);\n if (categoriesAllowed.includes(category))\n this._rateLimits[category] = new Date(now + delay);\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (_f && !_f.done && (_b = _e.return)) _b.call(_e);\n }\n finally { if (e_3) throw e_3.error; }\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return true;\n }\n else if (raHeader) {\n this._rateLimits.all = new Date(now + parseRetryAfterHeader(now, raHeader));\n return true;\n }\n return false;\n };\n /** JSDoc */\n BaseTransport.prototype._send = function (sentryRequest, originalPayload) {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n if (!this.module) {\n throw new SentryError('No module available');\n }\n if (originalPayload && this._isRateLimited(sentryRequest.type)) {\n return [2 /*return*/, Promise.reject({\n payload: originalPayload,\n type: sentryRequest.type,\n reason: \"Transport for \" + sentryRequest.type + \" requests locked till \" + this._disabledUntil(sentryRequest.type) + \" due to too many requests.\",\n status: 429,\n })];\n }\n return [2 /*return*/, this._buffer.add(function () {\n return new Promise(function (resolve, reject) {\n if (!_this.module) {\n throw new SentryError('No module available');\n }\n var options = _this._getRequestOptions(_this.urlParser(sentryRequest.url));\n var req = _this.module.request(options, function (res) {\n var statusCode = res.statusCode || 500;\n var status = Status.fromHttpCode(statusCode);\n res.setEncoding('utf8');\n /**\n * \"Key-value pairs of header names and values. Header names are lower-cased.\"\n * https://nodejs.org/api/http.html#http_message_headers\n */\n var retryAfterHeader = res.headers ? res.headers['retry-after'] : '';\n retryAfterHeader = (Array.isArray(retryAfterHeader) ? retryAfterHeader[0] : retryAfterHeader);\n var rlHeader = res.headers ? res.headers['x-sentry-rate-limits'] : '';\n rlHeader = (Array.isArray(rlHeader) ? rlHeader[0] : rlHeader);\n var headers = {\n 'x-sentry-rate-limits': rlHeader,\n 'retry-after': retryAfterHeader,\n };\n var limited = _this._handleRateLimit(headers);\n if (limited)\n logger.warn(\"Too many \" + sentryRequest.type + \" requests, backing off until: \" + _this._disabledUntil(sentryRequest.type));\n if (status === Status.Success) {\n resolve({ status: status });\n }\n else {\n var rejectionMessage = \"HTTP Error (\" + statusCode + \")\";\n if (res.headers && res.headers['x-sentry-error']) {\n rejectionMessage += \": \" + res.headers['x-sentry-error'];\n }\n reject(new SentryError(rejectionMessage));\n }\n // Force the socket to drain\n res.on('data', function () {\n // Drain\n });\n res.on('end', function () {\n // Drain\n });\n });\n req.on('error', reject);\n req.end(sentryRequest.body);\n });\n })];\n });\n });\n };\n return BaseTransport;\n}());\nexport { BaseTransport };\n//# sourceMappingURL=index.js.map","import { __assign, __read, __rest, __spread } from \"tslib\";\n/** Extract sdk info from from the API metadata */\nfunction getSdkMetadataForEnvelopeHeader(api) {\n if (!api.metadata || !api.metadata.sdk) {\n return;\n }\n var _a = api.metadata.sdk, name = _a.name, version = _a.version;\n return { name: name, version: version };\n}\n/**\n * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.\n * Merge with existing data if any.\n **/\nfunction enhanceEventWithSdkInfo(event, sdkInfo) {\n if (!sdkInfo) {\n return event;\n }\n event.sdk = event.sdk || {};\n event.sdk.name = event.sdk.name || sdkInfo.name;\n event.sdk.version = event.sdk.version || sdkInfo.version;\n event.sdk.integrations = __spread((event.sdk.integrations || []), (sdkInfo.integrations || []));\n event.sdk.packages = __spread((event.sdk.packages || []), (sdkInfo.packages || []));\n return event;\n}\n/** Creates a SentryRequest from a Session. */\nexport function sessionToSentryRequest(session, api) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(api);\n var envelopeHeaders = JSON.stringify(__assign(__assign({ sent_at: new Date().toISOString() }, (sdkInfo && { sdk: sdkInfo })), (api.forceEnvelope() && { dsn: api.getDsn().toString() })));\n // I know this is hacky but we don't want to add `session` to request type since it's never rate limited\n var type = 'aggregates' in session ? 'sessions' : 'session';\n var itemHeaders = JSON.stringify({\n type: type,\n });\n return {\n body: envelopeHeaders + \"\\n\" + itemHeaders + \"\\n\" + JSON.stringify(session),\n type: type,\n url: api.getEnvelopeEndpointWithUrlEncodedAuth(),\n };\n}\n/** Creates a SentryRequest from an event. */\nexport function eventToSentryRequest(event, api) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(api);\n var eventType = event.type || 'event';\n var useEnvelope = eventType === 'transaction' || api.forceEnvelope();\n var _a = event.debug_meta || {}, transactionSampling = _a.transactionSampling, metadata = __rest(_a, [\"transactionSampling\"]);\n var _b = transactionSampling || {}, samplingMethod = _b.method, sampleRate = _b.rate;\n if (Object.keys(metadata).length === 0) {\n delete event.debug_meta;\n }\n else {\n event.debug_meta = metadata;\n }\n var req = {\n body: JSON.stringify(sdkInfo ? enhanceEventWithSdkInfo(event, api.metadata.sdk) : event),\n type: eventType,\n url: useEnvelope ? api.getEnvelopeEndpointWithUrlEncodedAuth() : api.getStoreEndpointWithUrlEncodedAuth(),\n };\n // https://develop.sentry.dev/sdk/envelopes/\n // Since we don't need to manipulate envelopes nor store them, there is no\n // exported concept of an Envelope with operations including serialization and\n // deserialization. Instead, we only implement a minimal subset of the spec to\n // serialize events inline here.\n if (useEnvelope) {\n var envelopeHeaders = JSON.stringify(__assign(__assign({ event_id: event.event_id, sent_at: new Date().toISOString() }, (sdkInfo && { sdk: sdkInfo })), (api.forceEnvelope() && { dsn: api.getDsn().toString() })));\n var itemHeaders = JSON.stringify({\n type: eventType,\n // TODO: Right now, sampleRate may or may not be defined (it won't be in the cases of inheritance and\n // explicitly-set sampling decisions). Are we good with that?\n sample_rates: [{ id: samplingMethod, rate: sampleRate }],\n });\n // The trailing newline is optional. We intentionally don't send it to avoid\n // sending unnecessary bytes.\n //\n // const envelope = `${envelopeHeaders}\\n${itemHeaders}\\n${req.body}\\n`;\n var envelope = envelopeHeaders + \"\\n\" + itemHeaders + \"\\n\" + req.body;\n req.body = envelope;\n }\n return req;\n}\n//# sourceMappingURL=request.js.map","import { __extends } from \"tslib\";\nimport { eventToSentryRequest, sessionToSentryRequest } from '@sentry/core';\nimport * as http from 'http';\nimport { BaseTransport } from './base';\n/** Node http module transport */\nvar HTTPTransport = /** @class */ (function (_super) {\n __extends(HTTPTransport, _super);\n /** Create a new instance and set this.agent */\n function HTTPTransport(options) {\n var _this = _super.call(this, options) || this;\n _this.options = options;\n var proxy = _this._getProxy('http');\n _this.module = http;\n _this.client = proxy\n ? new (require('https-proxy-agent'))(proxy)\n : new http.Agent({ keepAlive: false, maxSockets: 30, timeout: 2000 });\n return _this;\n }\n /**\n * @inheritDoc\n */\n HTTPTransport.prototype.sendEvent = function (event) {\n return this._send(eventToSentryRequest(event, this._api), event);\n };\n /**\n * @inheritDoc\n */\n HTTPTransport.prototype.sendSession = function (session) {\n return this._send(sessionToSentryRequest(session, this._api), session);\n };\n return HTTPTransport;\n}(BaseTransport));\nexport { HTTPTransport };\n//# sourceMappingURL=http.js.map","import { __extends } from \"tslib\";\nimport { eventToSentryRequest, sessionToSentryRequest } from '@sentry/core';\nimport * as https from 'https';\nimport { BaseTransport } from './base';\n/** Node https module transport */\nvar HTTPSTransport = /** @class */ (function (_super) {\n __extends(HTTPSTransport, _super);\n /** Create a new instance and set this.agent */\n function HTTPSTransport(options) {\n var _this = _super.call(this, options) || this;\n _this.options = options;\n var proxy = _this._getProxy('https');\n _this.module = https;\n _this.client = proxy\n ? new (require('https-proxy-agent'))(proxy)\n : new https.Agent({ keepAlive: false, maxSockets: 30, timeout: 2000 });\n return _this;\n }\n /**\n * @inheritDoc\n */\n HTTPSTransport.prototype.sendEvent = function (event) {\n return this._send(eventToSentryRequest(event, this._api), event);\n };\n /**\n * @inheritDoc\n */\n HTTPSTransport.prototype.sendSession = function (session) {\n return this._send(sessionToSentryRequest(session, this._api), session);\n };\n return HTTPSTransport;\n}(BaseTransport));\nexport { HTTPSTransport };\n//# sourceMappingURL=https.js.map","import { __assign, __extends } from \"tslib\";\nimport { BaseBackend, getCurrentHub } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { addExceptionMechanism, addExceptionTypeValue, Dsn, extractExceptionKeysForMessage, isError, isPlainObject, normalizeToSize, SyncPromise, } from '@sentry/utils';\nimport { extractStackFromError, parseError, parseStack, prepareFramesForEvent } from './parsers';\nimport { HTTPSTransport, HTTPTransport } from './transports';\n/**\n * The Sentry Node SDK Backend.\n * @hidden\n */\nvar NodeBackend = /** @class */ (function (_super) {\n __extends(NodeBackend, _super);\n function NodeBackend() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n NodeBackend.prototype.eventFromException = function (exception, hint) {\n var _this = this;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var ex = exception;\n var providedMechanism = hint && hint.data && hint.data.mechanism;\n var mechanism = providedMechanism || {\n handled: true,\n type: 'generic',\n };\n if (!isError(exception)) {\n if (isPlainObject(exception)) {\n // This will allow us to group events based on top-level keys\n // which is much better than creating new group when any key/value change\n var message = \"Non-Error exception captured with keys: \" + extractExceptionKeysForMessage(exception);\n getCurrentHub().configureScope(function (scope) {\n scope.setExtra('__serialized__', normalizeToSize(exception));\n });\n ex = (hint && hint.syntheticException) || new Error(message);\n ex.message = message;\n }\n else {\n // This handles when someone does: `throw \"something awesome\";`\n // We use synthesized Error here so we can extract a (rough) stack trace.\n ex = (hint && hint.syntheticException) || new Error(exception);\n ex.message = exception;\n }\n mechanism.synthetic = true;\n }\n return new SyncPromise(function (resolve, reject) {\n return parseError(ex, _this._options)\n .then(function (event) {\n addExceptionTypeValue(event, undefined, undefined);\n addExceptionMechanism(event, mechanism);\n resolve(__assign(__assign({}, event), { event_id: hint && hint.event_id }));\n })\n .then(null, reject);\n });\n };\n /**\n * @inheritDoc\n */\n NodeBackend.prototype.eventFromMessage = function (message, level, hint) {\n var _this = this;\n if (level === void 0) { level = Severity.Info; }\n var event = {\n event_id: hint && hint.event_id,\n level: level,\n message: message,\n };\n return new SyncPromise(function (resolve) {\n if (_this._options.attachStacktrace && hint && hint.syntheticException) {\n var stack = hint.syntheticException ? extractStackFromError(hint.syntheticException) : [];\n void parseStack(stack, _this._options)\n .then(function (frames) {\n event.stacktrace = {\n frames: prepareFramesForEvent(frames),\n };\n resolve(event);\n })\n .then(null, function () {\n resolve(event);\n });\n }\n else {\n resolve(event);\n }\n });\n };\n /**\n * @inheritDoc\n */\n NodeBackend.prototype._setupTransport = function () {\n if (!this._options.dsn) {\n // We return the noop transport here in case there is no Dsn.\n return _super.prototype._setupTransport.call(this);\n }\n var dsn = new Dsn(this._options.dsn);\n var transportOptions = __assign(__assign(__assign(__assign(__assign({}, this._options.transportOptions), (this._options.httpProxy && { httpProxy: this._options.httpProxy })), (this._options.httpsProxy && { httpsProxy: this._options.httpsProxy })), (this._options.caCerts && { caCerts: this._options.caCerts })), { dsn: this._options.dsn, tunnel: this._options.tunnel, _metadata: this._options._metadata });\n if (this._options.transport) {\n return new this._options.transport(transportOptions);\n }\n if (dsn.protocol === 'http') {\n return new HTTPTransport(transportOptions);\n }\n return new HTTPSTransport(transportOptions);\n };\n return NodeBackend;\n}(BaseBackend));\nexport { NodeBackend };\n//# sourceMappingURL=backend.js.map","import { __read, __spread } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\nexport var installedIntegrations = [];\n/**\n * @private\n */\nfunction filterDuplicates(integrations) {\n return integrations.reduce(function (acc, integrations) {\n if (acc.every(function (accIntegration) { return integrations.name !== accIntegration.name; })) {\n acc.push(integrations);\n }\n return acc;\n }, []);\n}\n/** Gets integration to install */\nexport function getIntegrationsToSetup(options) {\n var defaultIntegrations = (options.defaultIntegrations && __spread(options.defaultIntegrations)) || [];\n var userIntegrations = options.integrations;\n var integrations = __spread(filterDuplicates(defaultIntegrations));\n if (Array.isArray(userIntegrations)) {\n // Filter out integrations that are also included in user options\n integrations = __spread(integrations.filter(function (integrations) {\n return userIntegrations.every(function (userIntegration) { return userIntegration.name !== integrations.name; });\n }), filterDuplicates(userIntegrations));\n }\n else if (typeof userIntegrations === 'function') {\n integrations = userIntegrations(integrations);\n integrations = Array.isArray(integrations) ? integrations : [integrations];\n }\n // Make sure that if present, `Debug` integration will always run last\n var integrationsNames = integrations.map(function (i) { return i.name; });\n var alwaysLastToRun = 'Debug';\n if (integrationsNames.indexOf(alwaysLastToRun) !== -1) {\n integrations.push.apply(integrations, __spread(integrations.splice(integrationsNames.indexOf(alwaysLastToRun), 1)));\n }\n return integrations;\n}\n/** Setup given integration */\nexport function setupIntegration(integration) {\n if (installedIntegrations.indexOf(integration.name) !== -1) {\n return;\n }\n integration.setupOnce(addGlobalEventProcessor, getCurrentHub);\n installedIntegrations.push(integration.name);\n logger.log(\"Integration installed: \" + integration.name);\n}\n/**\n * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default\n * integrations are added unless they were already provided before.\n * @param integrations array of integration instances\n * @param withDefault should enable default integrations\n */\nexport function setupIntegrations(options) {\n var integrations = {};\n getIntegrationsToSetup(options).forEach(function (integration) {\n integrations[integration.name] = integration;\n setupIntegration(integration);\n });\n // set the `initialized` flag so we don't run through the process again unecessarily; use `Object.defineProperty`\n // because by default it creates a property which is nonenumerable, which we want since `initialized` shouldn't be\n // considered a member of the index the way the actual integrations are\n Object.defineProperty(integrations, 'initialized', { value: true });\n return integrations;\n}\n//# sourceMappingURL=integration.js.map","import { __assign, __read, __spread, __values } from \"tslib\";\n/* eslint-disable max-lines */\nimport { Scope } from '@sentry/hub';\nimport { Outcome, SessionStatus, } from '@sentry/types';\nimport { checkOrSetAlreadyCaught, dateTimestampInSeconds, Dsn, isPlainObject, isPrimitive, isThenable, logger, normalize, SentryError, SyncPromise, truncate, uuid4, } from '@sentry/utils';\nimport { setupIntegrations } from './integration';\nvar ALREADY_SEEN_ERROR = \"Not capturing exception because it's already been captured.\";\n/**\n * Base implementation for all JavaScript SDK clients.\n *\n * Call the constructor with the corresponding backend constructor and options\n * specific to the client subclass. To access these options later, use\n * {@link Client.getOptions}. Also, the Backend instance is available via\n * {@link Client.getBackend}.\n *\n * If a Dsn is specified in the options, it will be parsed and stored. Use\n * {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is\n * invalid, the constructor will throw a {@link SentryException}. Note that\n * without a valid Dsn, the SDK will not send any events to Sentry.\n *\n * Before sending an event via the backend, it is passed through\n * {@link BaseClient._prepareEvent} to add SDK information and scope data\n * (breadcrumbs and context). To add more custom information, override this\n * method and extend the resulting prepared event.\n *\n * To issue automatically created events (e.g. via instrumentation), use\n * {@link Client.captureEvent}. It will prepare the event and pass it through\n * the callback lifecycle. To issue auto-breadcrumbs, use\n * {@link Client.addBreadcrumb}.\n *\n * @example\n * class NodeClient extends BaseClient {\n * public constructor(options: NodeOptions) {\n * super(NodeBackend, options);\n * }\n *\n * // ...\n * }\n */\nvar BaseClient = /** @class */ (function () {\n /**\n * Initializes this client instance.\n *\n * @param backendClass A constructor function to create the backend.\n * @param options Options for the client.\n */\n function BaseClient(backendClass, options) {\n /** Array of used integrations. */\n this._integrations = {};\n /** Number of calls being processed */\n this._numProcessing = 0;\n this._backend = new backendClass(options);\n this._options = options;\n if (options.dsn) {\n this._dsn = new Dsn(options.dsn);\n }\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n BaseClient.prototype.captureException = function (exception, hint, scope) {\n var _this = this;\n // ensure we haven't captured this very object before\n if (checkOrSetAlreadyCaught(exception)) {\n logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n var eventId = hint && hint.event_id;\n this._process(this._getBackend()\n .eventFromException(exception, hint)\n .then(function (event) { return _this._captureEvent(event, hint, scope); })\n .then(function (result) {\n eventId = result;\n }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureMessage = function (message, level, hint, scope) {\n var _this = this;\n var eventId = hint && hint.event_id;\n var promisedEvent = isPrimitive(message)\n ? this._getBackend().eventFromMessage(String(message), level, hint)\n : this._getBackend().eventFromException(message, hint);\n this._process(promisedEvent\n .then(function (event) { return _this._captureEvent(event, hint, scope); })\n .then(function (result) {\n eventId = result;\n }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureEvent = function (event, hint, scope) {\n var _a;\n // ensure we haven't captured this very object before\n if (((_a = hint) === null || _a === void 0 ? void 0 : _a.originalException) && checkOrSetAlreadyCaught(hint.originalException)) {\n logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n var eventId = hint && hint.event_id;\n this._process(this._captureEvent(event, hint, scope).then(function (result) {\n eventId = result;\n }));\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureSession = function (session) {\n if (!this._isEnabled()) {\n logger.warn('SDK not enabled, will not capture session.');\n return;\n }\n if (!(typeof session.release === 'string')) {\n logger.warn('Discarded session because of missing or non-string release');\n }\n else {\n this._sendSession(session);\n // After sending, we set init false to indicate it's not the first occurrence\n session.update({ init: false });\n }\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getDsn = function () {\n return this._dsn;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getOptions = function () {\n return this._options;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getTransport = function () {\n return this._getBackend().getTransport();\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.flush = function (timeout) {\n var _this = this;\n return this._isClientDoneProcessing(timeout).then(function (clientFinished) {\n return _this.getTransport()\n .close(timeout)\n .then(function (transportFlushed) { return clientFinished && transportFlushed; });\n });\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.close = function (timeout) {\n var _this = this;\n return this.flush(timeout).then(function (result) {\n _this.getOptions().enabled = false;\n return result;\n });\n };\n /**\n * Sets up the integrations\n */\n BaseClient.prototype.setupIntegrations = function () {\n if (this._isEnabled() && !this._integrations.initialized) {\n this._integrations = setupIntegrations(this._options);\n }\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getIntegration = function (integration) {\n try {\n return this._integrations[integration.id] || null;\n }\n catch (_oO) {\n logger.warn(\"Cannot retrieve integration \" + integration.id + \" from the current Client\");\n return null;\n }\n };\n /** Updates existing session based on the provided event */\n BaseClient.prototype._updateSessionFromEvent = function (session, event) {\n var e_1, _a;\n var crashed = false;\n var errored = false;\n var exceptions = event.exception && event.exception.values;\n if (exceptions) {\n errored = true;\n try {\n for (var exceptions_1 = __values(exceptions), exceptions_1_1 = exceptions_1.next(); !exceptions_1_1.done; exceptions_1_1 = exceptions_1.next()) {\n var ex = exceptions_1_1.value;\n var mechanism = ex.mechanism;\n if (mechanism && mechanism.handled === false) {\n crashed = true;\n break;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (exceptions_1_1 && !exceptions_1_1.done && (_a = exceptions_1.return)) _a.call(exceptions_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n // A session is updated and that session update is sent in only one of the two following scenarios:\n // 1. Session with non terminal status and 0 errors + an error occurred -> Will set error count to 1 and send update\n // 2. Session with non terminal status and 1 error + a crash occurred -> Will set status crashed and send update\n var sessionNonTerminal = session.status === SessionStatus.Ok;\n var shouldUpdateAndSend = (sessionNonTerminal && session.errors === 0) || (sessionNonTerminal && crashed);\n if (shouldUpdateAndSend) {\n session.update(__assign(__assign({}, (crashed && { status: SessionStatus.Crashed })), { errors: session.errors || Number(errored || crashed) }));\n this.captureSession(session);\n }\n };\n /** Deliver captured session to Sentry */\n BaseClient.prototype._sendSession = function (session) {\n this._getBackend().sendSession(session);\n };\n /**\n * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying\n * \"no\" (resolving to `false`) in order to give the client a chance to potentially finish first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the client is still busy. Passing `0` (or not\n * passing anything) will make the promise wait as long as it takes for processing to finish before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if processing is already done or finishes before the timeout, and\n * `false` otherwise\n */\n BaseClient.prototype._isClientDoneProcessing = function (timeout) {\n var _this = this;\n return new SyncPromise(function (resolve) {\n var ticked = 0;\n var tick = 1;\n var interval = setInterval(function () {\n if (_this._numProcessing == 0) {\n clearInterval(interval);\n resolve(true);\n }\n else {\n ticked += tick;\n if (timeout && ticked >= timeout) {\n clearInterval(interval);\n resolve(false);\n }\n }\n }, tick);\n });\n };\n /** Returns the current backend. */\n BaseClient.prototype._getBackend = function () {\n return this._backend;\n };\n /** Determines whether this SDK is enabled and a valid Dsn is present. */\n BaseClient.prototype._isEnabled = function () {\n return this.getOptions().enabled !== false && this._dsn !== undefined;\n };\n /**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information.\n */\n BaseClient.prototype._prepareEvent = function (event, scope, hint) {\n var _this = this;\n var _a = this.getOptions().normalizeDepth, normalizeDepth = _a === void 0 ? 3 : _a;\n var prepared = __assign(__assign({}, event), { event_id: event.event_id || (hint && hint.event_id ? hint.event_id : uuid4()), timestamp: event.timestamp || dateTimestampInSeconds() });\n this._applyClientOptions(prepared);\n this._applyIntegrationsMetadata(prepared);\n // If we have scope given to us, use it as the base for further modifications.\n // This allows us to prevent unnecessary copying of data if `captureContext` is not provided.\n var finalScope = scope;\n if (hint && hint.captureContext) {\n finalScope = Scope.clone(finalScope).update(hint.captureContext);\n }\n // We prepare the result here with a resolved Event.\n var result = SyncPromise.resolve(prepared);\n // This should be the last thing called, since we want that\n // {@link Hub.addEventProcessor} gets the finished prepared event.\n if (finalScope) {\n // In case we have a hub we reassign it.\n result = finalScope.applyToEvent(prepared, hint);\n }\n return result.then(function (evt) {\n if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n return _this._normalizeEvent(evt, normalizeDepth);\n }\n return evt;\n });\n };\n /**\n * Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.\n * Normalized keys:\n * - `breadcrumbs.data`\n * - `user`\n * - `contexts`\n * - `extra`\n * @param event Event\n * @returns Normalized event\n */\n BaseClient.prototype._normalizeEvent = function (event, depth) {\n if (!event) {\n return null;\n }\n var normalized = __assign(__assign(__assign(__assign(__assign({}, event), (event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(function (b) { return (__assign(__assign({}, b), (b.data && {\n data: normalize(b.data, depth),\n }))); }),\n })), (event.user && {\n user: normalize(event.user, depth),\n })), (event.contexts && {\n contexts: normalize(event.contexts, depth),\n })), (event.extra && {\n extra: normalize(event.extra, depth),\n }));\n // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n if (event.contexts && event.contexts.trace) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n normalized.contexts.trace = event.contexts.trace;\n }\n var _a = this.getOptions()._experiments, _experiments = _a === void 0 ? {} : _a;\n if (_experiments.ensureNoCircularStructures) {\n return normalize(normalized);\n }\n return normalized;\n };\n /**\n * Enhances event using the client configuration.\n * It takes care of all \"static\" values like environment, release and `dist`,\n * as well as truncating overly long values.\n * @param event event instance to be enhanced\n */\n BaseClient.prototype._applyClientOptions = function (event) {\n var options = this.getOptions();\n var environment = options.environment, release = options.release, dist = options.dist, _a = options.maxValueLength, maxValueLength = _a === void 0 ? 250 : _a;\n if (!('environment' in event)) {\n event.environment = 'environment' in options ? environment : 'production';\n }\n if (event.release === undefined && release !== undefined) {\n event.release = release;\n }\n if (event.dist === undefined && dist !== undefined) {\n event.dist = dist;\n }\n if (event.message) {\n event.message = truncate(event.message, maxValueLength);\n }\n var exception = event.exception && event.exception.values && event.exception.values[0];\n if (exception && exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n var request = event.request;\n if (request && request.url) {\n request.url = truncate(request.url, maxValueLength);\n }\n };\n /**\n * This function adds all used integrations to the SDK info in the event.\n * @param event The event that will be filled with all integrations.\n */\n BaseClient.prototype._applyIntegrationsMetadata = function (event) {\n var integrationsArray = Object.keys(this._integrations);\n if (integrationsArray.length > 0) {\n event.sdk = event.sdk || {};\n event.sdk.integrations = __spread((event.sdk.integrations || []), integrationsArray);\n }\n };\n /**\n * Tells the backend to send this event\n * @param event The Sentry event to send\n */\n BaseClient.prototype._sendEvent = function (event) {\n this._getBackend().sendEvent(event);\n };\n /**\n * Processes the event and logs an error in case of rejection\n * @param event\n * @param hint\n * @param scope\n */\n BaseClient.prototype._captureEvent = function (event, hint, scope) {\n return this._processEvent(event, hint, scope).then(function (finalEvent) {\n return finalEvent.event_id;\n }, function (reason) {\n logger.error(reason);\n return undefined;\n });\n };\n /**\n * Processes an event (either error or message) and sends it to Sentry.\n *\n * This also adds breadcrumbs and context information to the event. However,\n * platform specific meta data (such as the User's IP address) must be added\n * by the SDK implementor.\n *\n *\n * @param event The event to send to Sentry.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.\n */\n BaseClient.prototype._processEvent = function (event, hint, scope) {\n var _this = this;\n var _a, _b;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _c = this.getOptions(), beforeSend = _c.beforeSend, sampleRate = _c.sampleRate;\n var transport = this.getTransport();\n if (!this._isEnabled()) {\n return SyncPromise.reject(new SentryError('SDK not enabled, will not capture event.'));\n }\n var isTransaction = event.type === 'transaction';\n // 1.0 === 100% events are sent\n // 0.0 === 0% events are sent\n // Sampling for transaction happens somewhere else\n if (!isTransaction && typeof sampleRate === 'number' && Math.random() > sampleRate) {\n (_b = (_a = transport).recordLostEvent) === null || _b === void 0 ? void 0 : _b.call(_a, Outcome.SampleRate, 'event');\n return SyncPromise.reject(new SentryError(\"Discarding event because it's not included in the random sample (sampling rate = \" + sampleRate + \")\"));\n }\n return this._prepareEvent(event, scope, hint)\n .then(function (prepared) {\n var _a, _b;\n if (prepared === null) {\n (_b = (_a = transport).recordLostEvent) === null || _b === void 0 ? void 0 : _b.call(_a, Outcome.EventProcessor, event.type || 'event');\n throw new SentryError('An event processor returned null, will not send event.');\n }\n var isInternalException = hint && hint.data && hint.data.__sentry__ === true;\n if (isInternalException || isTransaction || !beforeSend) {\n return prepared;\n }\n var beforeSendResult = beforeSend(prepared, hint);\n return _this._ensureBeforeSendRv(beforeSendResult);\n })\n .then(function (processedEvent) {\n var _a, _b;\n if (processedEvent === null) {\n (_b = (_a = transport).recordLostEvent) === null || _b === void 0 ? void 0 : _b.call(_a, Outcome.BeforeSend, event.type || 'event');\n throw new SentryError('`beforeSend` returned `null`, will not send event.');\n }\n var session = scope && scope.getSession && scope.getSession();\n if (!isTransaction && session) {\n _this._updateSessionFromEvent(session, processedEvent);\n }\n _this._sendEvent(processedEvent);\n return processedEvent;\n })\n .then(null, function (reason) {\n if (reason instanceof SentryError) {\n throw reason;\n }\n _this.captureException(reason, {\n data: {\n __sentry__: true,\n },\n originalException: reason,\n });\n throw new SentryError(\"Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\\nReason: \" + reason);\n });\n };\n /**\n * Occupies the client with processing and event\n */\n BaseClient.prototype._process = function (promise) {\n var _this = this;\n this._numProcessing += 1;\n void promise.then(function (value) {\n _this._numProcessing -= 1;\n return value;\n }, function (reason) {\n _this._numProcessing -= 1;\n return reason;\n });\n };\n /**\n * Verifies that return value of configured `beforeSend` is of expected type.\n */\n BaseClient.prototype._ensureBeforeSendRv = function (rv) {\n var nullErr = '`beforeSend` method has to return `null` or a valid event.';\n if (isThenable(rv)) {\n return rv.then(function (event) {\n if (!(isPlainObject(event) || event === null)) {\n throw new SentryError(nullErr);\n }\n return event;\n }, function (e) {\n throw new SentryError(\"beforeSend rejected with \" + e);\n });\n }\n else if (!(isPlainObject(rv) || rv === null)) {\n throw new SentryError(nullErr);\n }\n return rv;\n };\n return BaseClient;\n}());\nexport { BaseClient };\n//# sourceMappingURL=baseclient.js.map","var originalFunctionToString;\n/** Patch toString calls to return proper name for wrapped functions */\nvar FunctionToString = /** @class */ (function () {\n function FunctionToString() {\n /**\n * @inheritDoc\n */\n this.name = FunctionToString.id;\n }\n /**\n * @inheritDoc\n */\n FunctionToString.prototype.setupOnce = function () {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n originalFunctionToString = Function.prototype.toString;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Function.prototype.toString = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var context = this.__sentry_original__ || this;\n return originalFunctionToString.apply(context, args);\n };\n };\n /**\n * @inheritDoc\n */\n FunctionToString.id = 'FunctionToString';\n return FunctionToString;\n}());\nexport { FunctionToString };\n//# sourceMappingURL=functiontostring.js.map","import { RequestSessionStatus, } from '@sentry/types';\nimport { dropUndefinedKeys, logger } from '@sentry/utils';\nimport { getCurrentHub } from './hub';\n/**\n * @inheritdoc\n */\nvar SessionFlusher = /** @class */ (function () {\n function SessionFlusher(transport, attrs) {\n var _this = this;\n this.flushTimeout = 60;\n this._pendingAggregates = {};\n this._isEnabled = true;\n this._transport = transport;\n // Call to setInterval, so that flush is called every 60 seconds\n this._intervalId = setInterval(function () { return _this.flush(); }, this.flushTimeout * 1000);\n this._sessionAttrs = attrs;\n }\n /** Sends session aggregates to Transport */\n SessionFlusher.prototype.sendSessionAggregates = function (sessionAggregates) {\n if (!this._transport.sendSession) {\n logger.warn(\"Dropping session because custom transport doesn't implement sendSession\");\n return;\n }\n void this._transport.sendSession(sessionAggregates).then(null, function (reason) {\n logger.error(\"Error while sending session: \" + reason);\n });\n };\n /** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSessions` */\n SessionFlusher.prototype.flush = function () {\n var sessionAggregates = this.getSessionAggregates();\n if (sessionAggregates.aggregates.length === 0) {\n return;\n }\n this._pendingAggregates = {};\n this.sendSessionAggregates(sessionAggregates);\n };\n /** Massages the entries in `pendingAggregates` and returns aggregated sessions */\n SessionFlusher.prototype.getSessionAggregates = function () {\n var _this = this;\n var aggregates = Object.keys(this._pendingAggregates).map(function (key) {\n return _this._pendingAggregates[parseInt(key)];\n });\n var sessionAggregates = {\n attrs: this._sessionAttrs,\n aggregates: aggregates,\n };\n return dropUndefinedKeys(sessionAggregates);\n };\n /** JSDoc */\n SessionFlusher.prototype.close = function () {\n clearInterval(this._intervalId);\n this._isEnabled = false;\n this.flush();\n };\n /**\n * Wrapper function for _incrementSessionStatusCount that checks if the instance of SessionFlusher is enabled then\n * fetches the session status of the request from `Scope.getRequestSession().status` on the scope and passes them to\n * `_incrementSessionStatusCount` along with the start date\n */\n SessionFlusher.prototype.incrementSessionStatusCount = function () {\n var _a, _b;\n if (!this._isEnabled) {\n return;\n }\n var scope = getCurrentHub().getScope();\n var requestSession = (_a = scope) === null || _a === void 0 ? void 0 : _a.getRequestSession();\n if (requestSession && requestSession.status) {\n this._incrementSessionStatusCount(requestSession.status, new Date());\n // This is not entirely necessarily but is added as a safe guard to indicate the bounds of a request and so in\n // case captureRequestSession is called more than once to prevent double count\n (_b = scope) === null || _b === void 0 ? void 0 : _b.setRequestSession(undefined);\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n }\n };\n /**\n * Increments status bucket in pendingAggregates buffer (internal state) corresponding to status of\n * the session received\n */\n SessionFlusher.prototype._incrementSessionStatusCount = function (status, date) {\n // Truncate minutes and seconds on Session Started attribute to have one minute bucket keys\n var sessionStartedTrunc = new Date(date).setSeconds(0, 0);\n this._pendingAggregates[sessionStartedTrunc] = this._pendingAggregates[sessionStartedTrunc] || {};\n // corresponds to aggregated sessions in one specific minute bucket\n // for example, {\"started\":\"2021-03-16T08:00:00.000Z\",\"exited\":4, \"errored\": 1}\n var aggregationCounts = this._pendingAggregates[sessionStartedTrunc];\n if (!aggregationCounts.started) {\n aggregationCounts.started = new Date(sessionStartedTrunc).toISOString();\n }\n switch (status) {\n case RequestSessionStatus.Errored:\n aggregationCounts.errored = (aggregationCounts.errored || 0) + 1;\n return aggregationCounts.errored;\n case RequestSessionStatus.Ok:\n aggregationCounts.exited = (aggregationCounts.exited || 0) + 1;\n return aggregationCounts.exited;\n case RequestSessionStatus.Crashed:\n aggregationCounts.crashed = (aggregationCounts.crashed || 0) + 1;\n return aggregationCounts.crashed;\n }\n };\n return SessionFlusher;\n}());\nexport { SessionFlusher };\n//# sourceMappingURL=sessionflusher.js.map","import { __extends } from \"tslib\";\nimport { BaseClient, SDK_VERSION } from '@sentry/core';\nimport { SessionFlusher } from '@sentry/hub';\nimport { RequestSessionStatus } from '@sentry/types';\nimport { logger } from '@sentry/utils';\nimport { NodeBackend } from './backend';\n/**\n * The Sentry Node SDK Client.\n *\n * @see NodeOptions for documentation on configuration options.\n * @see SentryClient for usage documentation.\n */\nvar NodeClient = /** @class */ (function (_super) {\n __extends(NodeClient, _super);\n /**\n * Creates a new Node SDK instance.\n * @param options Configuration options for this SDK.\n */\n function NodeClient(options) {\n var _this = this;\n options._metadata = options._metadata || {};\n options._metadata.sdk = options._metadata.sdk || {\n name: 'sentry.javascript.node',\n packages: [\n {\n name: 'npm:@sentry/node',\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n };\n _this = _super.call(this, NodeBackend, options) || this;\n return _this;\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n NodeClient.prototype.captureException = function (exception, hint, scope) {\n // Check if the flag `autoSessionTracking` is enabled, and if `_sessionFlusher` exists because it is initialised only\n // when the `requestHandler` middleware is used, and hence the expectation is to have SessionAggregates payload\n // sent to the Server only when the `requestHandler` middleware is used\n if (this._options.autoSessionTracking && this._sessionFlusher && scope) {\n var requestSession = scope.getRequestSession();\n // Necessary checks to ensure this is code block is executed only within a request\n // Should override the status only if `requestSession.status` is `Ok`, which is its initial stage\n if (requestSession && requestSession.status === RequestSessionStatus.Ok) {\n requestSession.status = RequestSessionStatus.Errored;\n }\n }\n return _super.prototype.captureException.call(this, exception, hint, scope);\n };\n /**\n * @inheritDoc\n */\n NodeClient.prototype.captureEvent = function (event, hint, scope) {\n // Check if the flag `autoSessionTracking` is enabled, and if `_sessionFlusher` exists because it is initialised only\n // when the `requestHandler` middleware is used, and hence the expectation is to have SessionAggregates payload\n // sent to the Server only when the `requestHandler` middleware is used\n if (this._options.autoSessionTracking && this._sessionFlusher && scope) {\n var eventType = event.type || 'exception';\n var isException = eventType === 'exception' && event.exception && event.exception.values && event.exception.values.length > 0;\n // If the event is of type Exception, then a request session should be captured\n if (isException) {\n var requestSession = scope.getRequestSession();\n // Ensure that this is happening within the bounds of a request, and make sure not to override\n // Session Status if Errored / Crashed\n if (requestSession && requestSession.status === RequestSessionStatus.Ok) {\n requestSession.status = RequestSessionStatus.Errored;\n }\n }\n }\n return _super.prototype.captureEvent.call(this, event, hint, scope);\n };\n /**\n *\n * @inheritdoc\n */\n NodeClient.prototype.close = function (timeout) {\n var _a;\n (_a = this._sessionFlusher) === null || _a === void 0 ? void 0 : _a.close();\n return _super.prototype.close.call(this, timeout);\n };\n /** Method that initialises an instance of SessionFlusher on Client */\n NodeClient.prototype.initSessionFlusher = function () {\n var _a = this._options, release = _a.release, environment = _a.environment;\n if (!release) {\n logger.warn('Cannot initialise an instance of SessionFlusher if no release is provided!');\n }\n else {\n this._sessionFlusher = new SessionFlusher(this.getTransport(), {\n release: release,\n environment: environment,\n });\n }\n };\n /**\n * @inheritDoc\n */\n NodeClient.prototype._prepareEvent = function (event, scope, hint) {\n event.platform = event.platform || 'node';\n if (this.getOptions().serverName) {\n event.server_name = this.getOptions().serverName;\n }\n return _super.prototype._prepareEvent.call(this, event, scope, hint);\n };\n /**\n * Method responsible for capturing/ending a request session by calling `incrementSessionStatusCount` to increment\n * appropriate session aggregates bucket\n */\n NodeClient.prototype._captureRequestSession = function () {\n if (!this._sessionFlusher) {\n logger.warn('Discarded request mode session because autoSessionTracking option was disabled');\n }\n else {\n this._sessionFlusher.incrementSessionStatusCount();\n }\n };\n return NodeClient;\n}(BaseClient));\nexport { NodeClient };\n//# sourceMappingURL=client.js.map","import { __read, __spread } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';\nimport { getEventDescription, isMatchingPattern, logger } from '@sentry/utils';\n// \"Script error.\" is hard coded into browsers for errors that it can't read.\n// this is the result of a script being pulled in from an external domain and CORS.\nvar DEFAULT_IGNORE_ERRORS = [/^Script error\\.?$/, /^Javascript error: Script error\\.? on line 0$/];\n/** Inbound filters configurable by the user */\nvar InboundFilters = /** @class */ (function () {\n function InboundFilters(_options) {\n if (_options === void 0) { _options = {}; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = InboundFilters.id;\n }\n /**\n * @inheritDoc\n */\n InboundFilters.prototype.setupOnce = function () {\n addGlobalEventProcessor(function (event) {\n var hub = getCurrentHub();\n if (!hub) {\n return event;\n }\n var self = hub.getIntegration(InboundFilters);\n if (self) {\n var client = hub.getClient();\n var clientOptions = client ? client.getOptions() : {};\n // This checks prevents most of the occurrences of the bug linked below:\n // https://github.com/getsentry/sentry-javascript/issues/2622\n // The bug is caused by multiple SDK instances, where one is minified and one is using non-mangled code.\n // Unfortunatelly we cannot fix it reliably (thus reserved property in rollup's terser config),\n // as we cannot force people using multiple instances in their apps to sync SDK versions.\n var options = typeof self._mergeOptions === 'function' ? self._mergeOptions(clientOptions) : {};\n if (typeof self._shouldDropEvent !== 'function') {\n return event;\n }\n return self._shouldDropEvent(event, options) ? null : event;\n }\n return event;\n });\n };\n /** JSDoc */\n InboundFilters.prototype._shouldDropEvent = function (event, options) {\n if (this._isSentryError(event, options)) {\n logger.warn(\"Event dropped due to being internal Sentry Error.\\nEvent: \" + getEventDescription(event));\n return true;\n }\n if (this._isIgnoredError(event, options)) {\n logger.warn(\"Event dropped due to being matched by `ignoreErrors` option.\\nEvent: \" + getEventDescription(event));\n return true;\n }\n if (this._isDeniedUrl(event, options)) {\n logger.warn(\"Event dropped due to being matched by `denyUrls` option.\\nEvent: \" + getEventDescription(event) + \".\\nUrl: \" + this._getEventFilterUrl(event));\n return true;\n }\n if (!this._isAllowedUrl(event, options)) {\n logger.warn(\"Event dropped due to not being matched by `allowUrls` option.\\nEvent: \" + getEventDescription(event) + \".\\nUrl: \" + this._getEventFilterUrl(event));\n return true;\n }\n return false;\n };\n /** JSDoc */\n InboundFilters.prototype._isSentryError = function (event, options) {\n if (!options.ignoreInternal) {\n return false;\n }\n try {\n return ((event &&\n event.exception &&\n event.exception.values &&\n event.exception.values[0] &&\n event.exception.values[0].type === 'SentryError') ||\n false);\n }\n catch (_oO) {\n return false;\n }\n };\n /** JSDoc */\n InboundFilters.prototype._isIgnoredError = function (event, options) {\n if (!options.ignoreErrors || !options.ignoreErrors.length) {\n return false;\n }\n return this._getPossibleEventMessages(event).some(function (message) {\n // Not sure why TypeScript complains here...\n return options.ignoreErrors.some(function (pattern) { return isMatchingPattern(message, pattern); });\n });\n };\n /** JSDoc */\n InboundFilters.prototype._isDeniedUrl = function (event, options) {\n // TODO: Use Glob instead?\n if (!options.denyUrls || !options.denyUrls.length) {\n return false;\n }\n var url = this._getEventFilterUrl(event);\n return !url ? false : options.denyUrls.some(function (pattern) { return isMatchingPattern(url, pattern); });\n };\n /** JSDoc */\n InboundFilters.prototype._isAllowedUrl = function (event, options) {\n // TODO: Use Glob instead?\n if (!options.allowUrls || !options.allowUrls.length) {\n return true;\n }\n var url = this._getEventFilterUrl(event);\n return !url ? true : options.allowUrls.some(function (pattern) { return isMatchingPattern(url, pattern); });\n };\n /** JSDoc */\n InboundFilters.prototype._mergeOptions = function (clientOptions) {\n if (clientOptions === void 0) { clientOptions = {}; }\n return {\n allowUrls: __spread((this._options.whitelistUrls || []), (this._options.allowUrls || []), (clientOptions.whitelistUrls || []), (clientOptions.allowUrls || [])),\n denyUrls: __spread((this._options.blacklistUrls || []), (this._options.denyUrls || []), (clientOptions.blacklistUrls || []), (clientOptions.denyUrls || [])),\n ignoreErrors: __spread((this._options.ignoreErrors || []), (clientOptions.ignoreErrors || []), DEFAULT_IGNORE_ERRORS),\n ignoreInternal: typeof this._options.ignoreInternal !== 'undefined' ? this._options.ignoreInternal : true,\n };\n };\n /** JSDoc */\n InboundFilters.prototype._getPossibleEventMessages = function (event) {\n if (event.message) {\n return [event.message];\n }\n if (event.exception) {\n try {\n var _a = (event.exception.values && event.exception.values[0]) || {}, _b = _a.type, type = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c;\n return [\"\" + value, type + \": \" + value];\n }\n catch (oO) {\n logger.error(\"Cannot extract message for event \" + getEventDescription(event));\n return [];\n }\n }\n return [];\n };\n /** JSDoc */\n InboundFilters.prototype._getLastValidUrl = function (frames) {\n if (frames === void 0) { frames = []; }\n var _a, _b;\n for (var i = frames.length - 1; i >= 0; i--) {\n var frame = frames[i];\n if (((_a = frame) === null || _a === void 0 ? void 0 : _a.filename) !== '' && ((_b = frame) === null || _b === void 0 ? void 0 : _b.filename) !== '[native code]') {\n return frame.filename || null;\n }\n }\n return null;\n };\n /** JSDoc */\n InboundFilters.prototype._getEventFilterUrl = function (event) {\n try {\n if (event.stacktrace) {\n var frames_1 = event.stacktrace.frames;\n return this._getLastValidUrl(frames_1);\n }\n if (event.exception) {\n var frames_2 = event.exception.values && event.exception.values[0].stacktrace && event.exception.values[0].stacktrace.frames;\n return this._getLastValidUrl(frames_2);\n }\n return null;\n }\n catch (oO) {\n logger.error(\"Cannot extract url for event \" + getEventDescription(event));\n return null;\n }\n };\n /**\n * @inheritDoc\n */\n InboundFilters.id = 'InboundFilters';\n return InboundFilters;\n}());\nexport { InboundFilters };\n//# sourceMappingURL=inboundfilters.js.map","import { __read, __spread, __values } from \"tslib\";\nimport { getCurrentHub } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { fill } from '@sentry/utils';\nimport * as util from 'util';\n/** Console module integration */\nvar Console = /** @class */ (function () {\n function Console() {\n /**\n * @inheritDoc\n */\n this.name = Console.id;\n }\n /**\n * @inheritDoc\n */\n Console.prototype.setupOnce = function () {\n var e_1, _a;\n try {\n for (var _b = __values(['debug', 'info', 'warn', 'error', 'log']), _c = _b.next(); !_c.done; _c = _b.next()) {\n var level = _c.value;\n fill(console, level, createConsoleWrapper(level));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n /**\n * @inheritDoc\n */\n Console.id = 'Console';\n return Console;\n}());\nexport { Console };\n/**\n * Wrapper function that'll be used for every console level\n */\nfunction createConsoleWrapper(level) {\n return function consoleWrapper(originalConsoleMethod) {\n var sentryLevel;\n switch (level) {\n case 'debug':\n sentryLevel = Severity.Debug;\n break;\n case 'error':\n sentryLevel = Severity.Error;\n break;\n case 'info':\n sentryLevel = Severity.Info;\n break;\n case 'warn':\n sentryLevel = Severity.Warning;\n break;\n default:\n sentryLevel = Severity.Log;\n }\n /* eslint-disable prefer-rest-params */\n return function () {\n if (getCurrentHub().getIntegration(Console)) {\n getCurrentHub().addBreadcrumb({\n category: 'console',\n level: sentryLevel,\n message: util.format.apply(undefined, arguments),\n }, {\n input: __spread(arguments),\n level: level,\n });\n }\n originalConsoleMethod.apply(this, arguments);\n };\n /* eslint-enable prefer-rest-params */\n };\n}\n//# sourceMappingURL=console.js.map","import { __assign, __read } from \"tslib\";\nimport { getCurrentHub } from '@sentry/core';\nimport { parseSemver } from '@sentry/utils';\nimport { URL } from 'url';\nvar NODE_VERSION = parseSemver(process.versions.node);\n/**\n * Checks whether given url points to Sentry server\n * @param url url to verify\n */\nexport function isSentryRequest(url) {\n var _a;\n var dsn = (_a = getCurrentHub()\n .getClient()) === null || _a === void 0 ? void 0 : _a.getDsn();\n return dsn ? url.includes(dsn.host) : false;\n}\n/**\n * Assemble a URL to be used for breadcrumbs and spans.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\nexport function extractUrl(requestOptions) {\n var protocol = requestOptions.protocol || '';\n var hostname = requestOptions.hostname || requestOptions.host || '';\n // Don't log standard :80 (http) and :443 (https) ports to reduce the noise\n var port = !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 ? '' : \":\" + requestOptions.port;\n var path = requestOptions.path ? requestOptions.path : '/';\n return protocol + \"//\" + hostname + port + path;\n}\n/**\n * Handle various edge cases in the span description (for spans representing http(s) requests).\n *\n * @param description current `description` property of the span representing the request\n * @param requestOptions Configuration data for the request\n * @param Request Request object\n *\n * @returns The cleaned description\n */\nexport function cleanSpanDescription(description, requestOptions, request) {\n var _a, _b, _c;\n // nothing to clean\n if (!description) {\n return description;\n }\n // eslint-disable-next-line prefer-const\n var _d = __read(description.split(' '), 2), method = _d[0], requestUrl = _d[1];\n // superagent sticks the protocol in a weird place (we check for host because if both host *and* protocol are missing,\n // we're likely dealing with an internal route and this doesn't apply)\n if (requestOptions.host && !requestOptions.protocol) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n requestOptions.protocol = (_b = (_a = request) === null || _a === void 0 ? void 0 : _a.agent) === null || _b === void 0 ? void 0 : _b.protocol; // worst comes to worst, this is undefined and nothing changes\n requestUrl = extractUrl(requestOptions);\n }\n // internal routes can end up starting with a triple slash rather than a single one\n if ((_c = requestUrl) === null || _c === void 0 ? void 0 : _c.startsWith('///')) {\n requestUrl = requestUrl.slice(2);\n }\n return method + \" \" + requestUrl;\n}\n/**\n * Convert a URL object into a RequestOptions object.\n *\n * Copied from Node's internals (where it's used in http(s).request() and http(s).get()), modified only to use the\n * RequestOptions type above.\n *\n * See https://github.com/nodejs/node/blob/master/lib/internal/url.js.\n */\nexport function urlToOptions(url) {\n var options = {\n protocol: url.protocol,\n hostname: typeof url.hostname === 'string' && url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname,\n hash: url.hash,\n search: url.search,\n pathname: url.pathname,\n path: \"\" + (url.pathname || '') + (url.search || ''),\n href: url.href,\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = url.username + \":\" + url.password;\n }\n return options;\n}\n/**\n * Normalize inputs to `http(s).request()` and `http(s).get()`.\n *\n * Legal inputs to `http(s).request()` and `http(s).get()` can take one of ten forms:\n * [ RequestOptions | string | URL ],\n * [ RequestOptions | string | URL, RequestCallback ],\n * [ string | URL, RequestOptions ], and\n * [ string | URL, RequestOptions, RequestCallback ].\n *\n * This standardizes to one of two forms: [ RequestOptions ] and [ RequestOptions, RequestCallback ]. A similar thing is\n * done as the first step of `http(s).request()` and `http(s).get()`; this just does it early so that we can interact\n * with the args in a standard way.\n *\n * @param requestArgs The inputs to `http(s).request()` or `http(s).get()`, as an array.\n *\n * @returns Equivalent args of the form [ RequestOptions ] or [ RequestOptions, RequestCallback ].\n */\nexport function normalizeRequestArgs(httpModule, requestArgs) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n var callback, requestOptions;\n // pop off the callback, if there is one\n if (typeof requestArgs[requestArgs.length - 1] === 'function') {\n callback = requestArgs.pop();\n }\n // create a RequestOptions object of whatever's at index 0\n if (typeof requestArgs[0] === 'string') {\n requestOptions = urlToOptions(new URL(requestArgs[0]));\n }\n else if (requestArgs[0] instanceof URL) {\n requestOptions = urlToOptions(requestArgs[0]);\n }\n else {\n requestOptions = requestArgs[0];\n }\n // if the options were given separately from the URL, fold them in\n if (requestArgs.length === 2) {\n requestOptions = __assign(__assign({}, requestOptions), requestArgs[1]);\n }\n // Figure out the protocol if it's currently missing\n if (requestOptions.protocol === undefined) {\n // Worst case we end up populating protocol with undefined, which it already is\n /* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n // NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.\n // Because of that, we cannot rely on `httpModule` to provide us with valid protocol,\n // as it will always return `http`, even when using `https` module.\n //\n // See test/integrations/http.test.ts for more details on Node <=v8 protocol issue.\n if (NODE_VERSION.major && NODE_VERSION.major > 8) {\n requestOptions.protocol =\n ((_b = (_a = httpModule) === null || _a === void 0 ? void 0 : _a.globalAgent) === null || _b === void 0 ? void 0 : _b.protocol) || ((_c = requestOptions.agent) === null || _c === void 0 ? void 0 : _c.protocol) || ((_d = requestOptions._defaultAgent) === null || _d === void 0 ? void 0 : _d.protocol);\n }\n else {\n requestOptions.protocol =\n ((_e = requestOptions.agent) === null || _e === void 0 ? void 0 : _e.protocol) || ((_f = requestOptions._defaultAgent) === null || _f === void 0 ? void 0 : _f.protocol) || ((_h = (_g = httpModule) === null || _g === void 0 ? void 0 : _g.globalAgent) === null || _h === void 0 ? void 0 : _h.protocol);\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n }\n // return args in standardized form\n if (callback) {\n return [requestOptions, callback];\n }\n else {\n return [requestOptions];\n }\n}\n//# sourceMappingURL=http.js.map","import { __assign } from \"tslib\";\nimport { getCurrentHub } from '@sentry/core';\nimport { fill, logger, parseSemver } from '@sentry/utils';\nimport { cleanSpanDescription, extractUrl, isSentryRequest, normalizeRequestArgs, } from './utils/http';\nvar NODE_VERSION = parseSemver(process.versions.node);\n/** http module integration */\nvar Http = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Http(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Http.id;\n this._breadcrumbs = typeof options.breadcrumbs === 'undefined' ? true : options.breadcrumbs;\n this._tracing = typeof options.tracing === 'undefined' ? false : options.tracing;\n }\n /**\n * @inheritDoc\n */\n Http.prototype.setupOnce = function () {\n // No need to instrument if we don't want to track anything\n if (!this._breadcrumbs && !this._tracing) {\n return;\n }\n var wrappedHandlerMaker = _createWrappedRequestMethodFactory(this._breadcrumbs, this._tracing);\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n var httpModule = require('http');\n fill(httpModule, 'get', wrappedHandlerMaker);\n fill(httpModule, 'request', wrappedHandlerMaker);\n // NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.\n // If we do, we'd get double breadcrumbs and double spans for `https` calls.\n // It has been changed in Node 9, so for all versions equal and above, we patch `https` separately.\n if (NODE_VERSION.major && NODE_VERSION.major > 8) {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n var httpsModule = require('https');\n fill(httpsModule, 'get', wrappedHandlerMaker);\n fill(httpsModule, 'request', wrappedHandlerMaker);\n }\n };\n /**\n * @inheritDoc\n */\n Http.id = 'Http';\n return Http;\n}());\nexport { Http };\n/**\n * Function which creates a function which creates wrapped versions of internal `request` and `get` calls within `http`\n * and `https` modules. (NB: Not a typo - this is a creator^2!)\n *\n * @param breadcrumbsEnabled Whether or not to record outgoing requests as breadcrumbs\n * @param tracingEnabled Whether or not to record outgoing requests as tracing spans\n *\n * @returns A function which accepts the exiting handler and returns a wrapped handler\n */\nfunction _createWrappedRequestMethodFactory(breadcrumbsEnabled, tracingEnabled) {\n return function wrappedRequestMethodFactory(originalRequestMethod) {\n return function wrappedMethod() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var httpModule = this;\n var requestArgs = normalizeRequestArgs(this, args);\n var requestOptions = requestArgs[0];\n var requestUrl = extractUrl(requestOptions);\n // we don't want to record requests to Sentry as either breadcrumbs or spans, so just use the original method\n if (isSentryRequest(requestUrl)) {\n return originalRequestMethod.apply(httpModule, requestArgs);\n }\n var span;\n var parentSpan;\n var scope = getCurrentHub().getScope();\n if (scope && tracingEnabled) {\n parentSpan = scope.getSpan();\n if (parentSpan) {\n span = parentSpan.startChild({\n description: (requestOptions.method || 'GET') + \" \" + requestUrl,\n op: 'request',\n });\n var sentryTraceHeader = span.toTraceparent();\n logger.log(\"[Tracing] Adding sentry-trace header \" + sentryTraceHeader + \" to outgoing request to \" + requestUrl + \": \");\n requestOptions.headers = __assign(__assign({}, requestOptions.headers), { 'sentry-trace': sentryTraceHeader });\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalRequestMethod\n .apply(httpModule, requestArgs)\n .once('response', function (res) {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var req = this;\n if (breadcrumbsEnabled) {\n addRequestBreadcrumb('response', requestUrl, req, res);\n }\n if (tracingEnabled && span) {\n if (res.statusCode) {\n span.setHttpStatus(res.statusCode);\n }\n span.description = cleanSpanDescription(span.description, requestOptions, req);\n span.finish();\n }\n })\n .once('error', function () {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var req = this;\n if (breadcrumbsEnabled) {\n addRequestBreadcrumb('error', requestUrl, req);\n }\n if (tracingEnabled && span) {\n span.setHttpStatus(500);\n span.description = cleanSpanDescription(span.description, requestOptions, req);\n span.finish();\n }\n });\n };\n };\n}\n/**\n * Captures Breadcrumb based on provided request/response pair\n */\nfunction addRequestBreadcrumb(event, url, req, res) {\n if (!getCurrentHub().getIntegration(Http)) {\n return;\n }\n getCurrentHub().addBreadcrumb({\n category: 'http',\n data: {\n method: req.method,\n status_code: res && res.statusCode,\n url: url,\n },\n type: 'http',\n }, {\n event: event,\n request: req,\n response: res,\n });\n}\n//# sourceMappingURL=http.js.map","import { getCurrentHub } from '@sentry/core';\nimport { forget, logger } from '@sentry/utils';\nvar DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n/**\n * @hidden\n */\nexport function logAndExitProcess(error) {\n // eslint-disable-next-line no-console\n console.error(error && error.stack ? error.stack : error);\n var client = getCurrentHub().getClient();\n if (client === undefined) {\n logger.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n return;\n }\n var options = client.getOptions();\n var timeout = (options && options.shutdownTimeout && options.shutdownTimeout > 0 && options.shutdownTimeout) ||\n DEFAULT_SHUTDOWN_TIMEOUT;\n forget(client.close(timeout).then(function (result) {\n if (!result) {\n logger.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n }));\n}\n//# sourceMappingURL=errorhandling.js.map","/**\n * Consumes the promise and logs the error when it rejects.\n * @param promise A promise to forget.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function forget(promise) {\n void promise.then(null, function (e) {\n // TODO: Use a better logging mechanism\n // eslint-disable-next-line no-console\n console.error(e);\n });\n}\n//# sourceMappingURL=async.js.map","import { getCurrentHub } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { logger } from '@sentry/utils';\nimport { logAndExitProcess } from './utils/errorhandling';\n/** Global Promise Rejection handler */\nvar OnUncaughtException = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function OnUncaughtException(_options) {\n if (_options === void 0) { _options = {}; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = OnUncaughtException.id;\n /**\n * @inheritDoc\n */\n this.handler = this._makeErrorHandler();\n }\n /**\n * @inheritDoc\n */\n OnUncaughtException.prototype.setupOnce = function () {\n global.process.on('uncaughtException', this.handler.bind(this));\n };\n /**\n * @hidden\n */\n OnUncaughtException.prototype._makeErrorHandler = function () {\n var _this = this;\n var timeout = 2000;\n var caughtFirstError = false;\n var caughtSecondError = false;\n var calledFatalError = false;\n var firstError;\n return function (error) {\n var onFatalError = logAndExitProcess;\n var client = getCurrentHub().getClient();\n if (_this._options.onFatalError) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n onFatalError = _this._options.onFatalError;\n }\n else if (client && client.getOptions().onFatalError) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n onFatalError = client.getOptions().onFatalError;\n }\n if (!caughtFirstError) {\n var hub_1 = getCurrentHub();\n // this is the first uncaught error and the ultimate reason for shutting down\n // we want to do absolutely everything possible to ensure it gets captured\n // also we want to make sure we don't go recursion crazy if more errors happen after this one\n firstError = error;\n caughtFirstError = true;\n if (hub_1.getIntegration(OnUncaughtException)) {\n hub_1.withScope(function (scope) {\n scope.setLevel(Severity.Fatal);\n hub_1.captureException(error, {\n originalException: error,\n data: { mechanism: { handled: false, type: 'onuncaughtexception' } },\n });\n if (!calledFatalError) {\n calledFatalError = true;\n onFatalError(error);\n }\n });\n }\n else {\n if (!calledFatalError) {\n calledFatalError = true;\n onFatalError(error);\n }\n }\n }\n else if (calledFatalError) {\n // we hit an error *after* calling onFatalError - pretty boned at this point, just shut it down\n logger.warn('uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown');\n logAndExitProcess(error);\n }\n else if (!caughtSecondError) {\n // two cases for how we can hit this branch:\n // - capturing of first error blew up and we just caught the exception from that\n // - quit trying to capture, proceed with shutdown\n // - a second independent error happened while waiting for first error to capture\n // - want to avoid causing premature shutdown before first error capture finishes\n // it's hard to immediately tell case 1 from case 2 without doing some fancy/questionable domain stuff\n // so let's instead just delay a bit before we proceed with our action here\n // in case 1, we just wait a bit unnecessarily but ultimately do the same thing\n // in case 2, the delay hopefully made us wait long enough for the capture to finish\n // two potential nonideal outcomes:\n // nonideal case 1: capturing fails fast, we sit around for a few seconds unnecessarily before proceeding correctly by calling onFatalError\n // nonideal case 2: case 2 happens, 1st error is captured but slowly, timeout completes before capture and we treat second error as the sendErr of (nonexistent) failure from trying to capture first error\n // note that after hitting this branch, we might catch more errors where (caughtSecondError && !calledFatalError)\n // we ignore them - they don't matter to us, we're just waiting for the second error timeout to finish\n caughtSecondError = true;\n setTimeout(function () {\n if (!calledFatalError) {\n // it was probably case 1, let's treat err as the sendErr and call onFatalError\n calledFatalError = true;\n onFatalError(firstError, error);\n }\n else {\n // it was probably case 2, our first error finished capturing while we waited, cool, do nothing\n }\n }, timeout); // capturing could take at least sendTimeout to fail, plus an arbitrary second for how long it takes to collect surrounding source etc\n }\n };\n };\n /**\n * @inheritDoc\n */\n OnUncaughtException.id = 'OnUncaughtException';\n return OnUncaughtException;\n}());\nexport { OnUncaughtException };\n//# sourceMappingURL=onuncaughtexception.js.map","import { __assign } from \"tslib\";\nimport { existsSync, readFileSync } from 'fs';\nimport { dirname, join } from 'path';\nvar moduleCache;\n/** Extract information about paths */\nfunction getPaths() {\n try {\n return require.cache ? Object.keys(require.cache) : [];\n }\n catch (e) {\n return [];\n }\n}\n/** Extract information about package.json modules */\nfunction collectModules() {\n var mainPaths = (require.main && require.main.paths) || [];\n var paths = getPaths();\n var infos = {};\n var seen = {};\n paths.forEach(function (path) {\n var dir = path;\n /** Traverse directories upward in the search of package.json file */\n var updir = function () {\n var orig = dir;\n dir = dirname(orig);\n if (!dir || orig === dir || seen[orig]) {\n return undefined;\n }\n if (mainPaths.indexOf(dir) < 0) {\n return updir();\n }\n var pkgfile = join(orig, 'package.json');\n seen[orig] = true;\n if (!existsSync(pkgfile)) {\n return updir();\n }\n try {\n var info = JSON.parse(readFileSync(pkgfile, 'utf8'));\n infos[info.name] = info.version;\n }\n catch (_oO) {\n // no-empty\n }\n };\n updir();\n });\n return infos;\n}\n/** Add node modules / packages to the event */\nvar Modules = /** @class */ (function () {\n function Modules() {\n /**\n * @inheritDoc\n */\n this.name = Modules.id;\n }\n /**\n * @inheritDoc\n */\n Modules.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n var _this = this;\n addGlobalEventProcessor(function (event) {\n if (!getCurrentHub().getIntegration(Modules)) {\n return event;\n }\n return __assign(__assign({}, event), { modules: _this._getModules() });\n });\n };\n /** Fetches the list of modules and the versions loaded by the entry file for your node.js app. */\n Modules.prototype._getModules = function () {\n if (!moduleCache) {\n moduleCache = collectModules();\n }\n return moduleCache;\n };\n /**\n * @inheritDoc\n */\n Modules.id = 'Modules';\n return Modules;\n}());\nexport { Modules };\n//# sourceMappingURL=modules.js.map","import { getCurrentHub } from '@sentry/core';\nimport { consoleSandbox } from '@sentry/utils';\nimport { logAndExitProcess } from './utils/errorhandling';\n/** Global Promise Rejection handler */\nvar OnUnhandledRejection = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function OnUnhandledRejection(_options) {\n if (_options === void 0) { _options = { mode: 'warn' }; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = OnUnhandledRejection.id;\n }\n /**\n * @inheritDoc\n */\n OnUnhandledRejection.prototype.setupOnce = function () {\n global.process.on('unhandledRejection', this.sendUnhandledPromise.bind(this));\n };\n /**\n * Send an exception with reason\n * @param reason string\n * @param promise promise\n */\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any\n OnUnhandledRejection.prototype.sendUnhandledPromise = function (reason, promise) {\n var hub = getCurrentHub();\n if (!hub.getIntegration(OnUnhandledRejection)) {\n this._handleRejection(reason);\n return;\n }\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n var context = (promise.domain && promise.domain.sentryContext) || {};\n hub.withScope(function (scope) {\n scope.setExtra('unhandledPromiseRejection', true);\n // Preserve backwards compatibility with raven-node for now\n if (context.user) {\n scope.setUser(context.user);\n }\n if (context.tags) {\n scope.setTags(context.tags);\n }\n if (context.extra) {\n scope.setExtras(context.extra);\n }\n hub.captureException(reason, {\n originalException: promise,\n data: { mechanism: { handled: false, type: 'onunhandledrejection' } },\n });\n });\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n this._handleRejection(reason);\n };\n /**\n * Handler for `mode` option\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n OnUnhandledRejection.prototype._handleRejection = function (reason) {\n // https://github.com/nodejs/node/blob/7cf6f9e964aa00772965391c23acda6d71972a9a/lib/internal/process/promises.js#L234-L240\n var rejectionWarning = 'This error originated either by ' +\n 'throwing inside of an async function without a catch block, ' +\n 'or by rejecting a promise which was not handled with .catch().' +\n ' The promise rejected with the reason:';\n /* eslint-disable no-console */\n if (this._options.mode === 'warn') {\n consoleSandbox(function () {\n console.warn(rejectionWarning);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n console.error(reason && reason.stack ? reason.stack : reason);\n });\n }\n else if (this._options.mode === 'strict') {\n consoleSandbox(function () {\n console.warn(rejectionWarning);\n });\n logAndExitProcess(reason);\n }\n /* eslint-enable no-console */\n };\n /**\n * @inheritDoc\n */\n OnUnhandledRejection.id = 'OnUnhandledRejection';\n return OnUnhandledRejection;\n}());\nexport { OnUnhandledRejection };\n//# sourceMappingURL=onunhandledrejection.js.map","import { __read, __spread } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';\nimport { isInstanceOf, SyncPromise } from '@sentry/utils';\nimport { getExceptionFromError } from '../parsers';\nvar DEFAULT_KEY = 'cause';\nvar DEFAULT_LIMIT = 5;\n/** Adds SDK info to an event. */\nvar LinkedErrors = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function LinkedErrors(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = LinkedErrors.id;\n this._key = options.key || DEFAULT_KEY;\n this._limit = options.limit || DEFAULT_LIMIT;\n }\n /**\n * @inheritDoc\n */\n LinkedErrors.prototype.setupOnce = function () {\n addGlobalEventProcessor(function (event, hint) {\n var self = getCurrentHub().getIntegration(LinkedErrors);\n if (self) {\n var handler = self._handler && self._handler.bind(self);\n return typeof handler === 'function' ? handler(event, hint) : event;\n }\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n LinkedErrors.prototype._handler = function (event, hint) {\n var _this = this;\n if (!event.exception || !event.exception.values || !hint || !isInstanceOf(hint.originalException, Error)) {\n return SyncPromise.resolve(event);\n }\n return new SyncPromise(function (resolve) {\n void _this._walkErrorTree(hint.originalException, _this._key)\n .then(function (linkedErrors) {\n if (event && event.exception && event.exception.values) {\n event.exception.values = __spread(linkedErrors, event.exception.values);\n }\n resolve(event);\n })\n .then(null, function () {\n resolve(event);\n });\n });\n };\n /**\n * @inheritDoc\n */\n LinkedErrors.prototype._walkErrorTree = function (error, key, stack) {\n var _this = this;\n if (stack === void 0) { stack = []; }\n if (!isInstanceOf(error[key], Error) || stack.length + 1 >= this._limit) {\n return SyncPromise.resolve(stack);\n }\n return new SyncPromise(function (resolve, reject) {\n void getExceptionFromError(error[key])\n .then(function (exception) {\n void _this._walkErrorTree(error[key], key, __spread([exception], stack))\n .then(resolve)\n .then(null, function () {\n reject();\n });\n })\n .then(null, function () {\n reject();\n });\n });\n };\n /**\n * @inheritDoc\n */\n LinkedErrors.id = 'LinkedErrors';\n return LinkedErrors;\n}());\nexport { LinkedErrors };\n//# sourceMappingURL=linkederrors.js.map","import { __awaiter, __generator, __read, __spread } from \"tslib\";\nimport { getCurrentHub, initAndBind, Integrations as CoreIntegrations } from '@sentry/core';\nimport { getMainCarrier, setHubOnCarrier } from '@sentry/hub';\nimport { SessionStatus } from '@sentry/types';\nimport { getGlobalObject, logger } from '@sentry/utils';\nimport * as domain from 'domain';\nimport { NodeClient } from './client';\nimport { Console, Http, LinkedErrors, OnUncaughtException, OnUnhandledRejection } from './integrations';\nexport var defaultIntegrations = [\n // Common\n new CoreIntegrations.InboundFilters(),\n new CoreIntegrations.FunctionToString(),\n // Native Wrappers\n new Console(),\n new Http(),\n // Global Handlers\n new OnUncaughtException(),\n new OnUnhandledRejection(),\n // Misc\n new LinkedErrors(),\n];\n/**\n * The Sentry Node SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible in the\n * main entry module. To set context information or send manual events, use the\n * provided methods.\n *\n * @example\n * ```\n *\n * const { init } = require('@sentry/node');\n *\n * init({\n * dsn: '__DSN__',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * const { configureScope } = require('@sentry/node');\n * configureScope((scope: Scope) => {\n * scope.setExtra({ battery: 0.7 });\n * scope.setTag({ user_mode: 'admin' });\n * scope.setUser({ id: '4711' });\n * });\n * ```\n *\n * @example\n * ```\n *\n * const { addBreadcrumb } = require('@sentry/node');\n * addBreadcrumb({\n * message: 'My Breadcrumb',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * const Sentry = require('@sentry/node');\n * Sentry.captureMessage('Hello, world!');\n * Sentry.captureException(new Error('Good bye'));\n * Sentry.captureEvent({\n * message: 'Manual',\n * stacktrace: [\n * // ...\n * ],\n * });\n * ```\n *\n * @see {@link NodeOptions} for documentation on configuration options.\n */\nexport function init(options) {\n if (options === void 0) { options = {}; }\n var _a;\n var carrier = getMainCarrier();\n var autoloadedIntegrations = ((_a = carrier.__SENTRY__) === null || _a === void 0 ? void 0 : _a.integrations) || [];\n options.defaultIntegrations =\n options.defaultIntegrations === false\n ? []\n : __spread((Array.isArray(options.defaultIntegrations) ? options.defaultIntegrations : defaultIntegrations), autoloadedIntegrations);\n if (options.dsn === undefined && process.env.SENTRY_DSN) {\n options.dsn = process.env.SENTRY_DSN;\n }\n if (options.tracesSampleRate === undefined && process.env.SENTRY_TRACES_SAMPLE_RATE) {\n var tracesSampleRate = parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);\n if (isFinite(tracesSampleRate)) {\n options.tracesSampleRate = tracesSampleRate;\n }\n }\n if (options.release === undefined) {\n var detectedRelease = getSentryRelease();\n if (detectedRelease !== undefined) {\n options.release = detectedRelease;\n }\n else {\n // If release is not provided, then we should disable autoSessionTracking\n options.autoSessionTracking = false;\n }\n }\n if (options.environment === undefined && process.env.SENTRY_ENVIRONMENT) {\n options.environment = process.env.SENTRY_ENVIRONMENT;\n }\n if (options.autoSessionTracking === undefined && options.dsn !== undefined) {\n options.autoSessionTracking = true;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n if (domain.active) {\n setHubOnCarrier(carrier, getCurrentHub());\n }\n initAndBind(NodeClient, options);\n if (options.autoSessionTracking) {\n startSessionTracking();\n }\n}\n/**\n * This is the getter for lastEventId.\n *\n * @returns The last event id of a captured event.\n */\nexport function lastEventId() {\n return getCurrentHub().lastEventId();\n}\n/**\n * Call `flush()` on the current client, if there is one. See {@link Client.flush}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause\n * the client to wait until all events are sent before resolving the promise.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport function flush(timeout) {\n return __awaiter(this, void 0, void 0, function () {\n var client;\n return __generator(this, function (_a) {\n client = getCurrentHub().getClient();\n if (client) {\n return [2 /*return*/, client.flush(timeout)];\n }\n logger.warn('Cannot flush events. No client defined.');\n return [2 /*return*/, Promise.resolve(false)];\n });\n });\n}\n/**\n * Call `close()` on the current client, if there is one. See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport function close(timeout) {\n return __awaiter(this, void 0, void 0, function () {\n var client;\n return __generator(this, function (_a) {\n client = getCurrentHub().getClient();\n if (client) {\n return [2 /*return*/, client.close(timeout)];\n }\n logger.warn('Cannot flush events and disable SDK. No client defined.');\n return [2 /*return*/, Promise.resolve(false)];\n });\n });\n}\n/**\n * Function that takes an instance of NodeClient and checks if autoSessionTracking option is enabled for that client\n */\nexport function isAutoSessionTrackingEnabled(client) {\n if (client === undefined) {\n return false;\n }\n var clientOptions = client && client.getOptions();\n if (clientOptions && clientOptions.autoSessionTracking !== undefined) {\n return clientOptions.autoSessionTracking;\n }\n return false;\n}\n/**\n * Returns a release dynamically from environment variables.\n */\nexport function getSentryRelease(fallback) {\n // Always read first as Sentry takes this as precedence\n if (process.env.SENTRY_RELEASE) {\n return process.env.SENTRY_RELEASE;\n }\n // This supports the variable that sentry-webpack-plugin injects\n var global = getGlobalObject();\n if (global.SENTRY_RELEASE && global.SENTRY_RELEASE.id) {\n return global.SENTRY_RELEASE.id;\n }\n return (\n // GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables\n process.env.GITHUB_SHA ||\n // Netlify - https://docs.netlify.com/configure-builds/environment-variables/#build-metadata\n process.env.COMMIT_REF ||\n // Vercel - https://vercel.com/docs/v2/build-step#system-environment-variables\n process.env.VERCEL_GIT_COMMIT_SHA ||\n process.env.VERCEL_GITHUB_COMMIT_SHA ||\n process.env.VERCEL_GITLAB_COMMIT_SHA ||\n process.env.VERCEL_BITBUCKET_COMMIT_SHA ||\n // Zeit (now known as Vercel)\n process.env.ZEIT_GITHUB_COMMIT_SHA ||\n process.env.ZEIT_GITLAB_COMMIT_SHA ||\n process.env.ZEIT_BITBUCKET_COMMIT_SHA ||\n fallback);\n}\n/**\n * Enable automatic Session Tracking for the node process.\n */\nfunction startSessionTracking() {\n var hub = getCurrentHub();\n hub.startSession();\n // Emitted in the case of healthy sessions, error of `mechanism.handled: true` and unhandledrejections because\n // The 'beforeExit' event is not emitted for conditions causing explicit termination,\n // such as calling process.exit() or uncaught exceptions.\n // Ref: https://nodejs.org/api/process.html#process_event_beforeexit\n process.on('beforeExit', function () {\n var _a;\n var session = (_a = hub.getScope()) === null || _a === void 0 ? void 0 : _a.getSession();\n var terminalStates = [SessionStatus.Exited, SessionStatus.Crashed];\n // Only call endSession, if the Session exists on Scope and SessionStatus is not a\n // Terminal Status i.e. Exited or Crashed because\n // \"When a session is moved away from ok it must not be updated anymore.\"\n // Ref: https://develop.sentry.dev/sdk/sessions/\n if (session && !terminalStates.includes(session.status))\n hub.endSession();\n });\n}\n//# sourceMappingURL=sdk.js.map","import { getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\nexport function initAndBind(clientClass, options) {\n var _a;\n if (options.debug === true) {\n logger.enable();\n }\n var hub = getCurrentHub();\n (_a = hub.getScope()) === null || _a === void 0 ? void 0 : _a.update(options.initialScope);\n var client = new clientClass(options);\n hub.bindClient(client);\n}\n//# sourceMappingURL=sdk.js.map","import { __read, __spread } from \"tslib\";\nimport * as fs from 'fs';\nimport * as path from 'path';\n/**\n * Recursively read the contents of a directory.\n *\n * @param targetDir Absolute or relative path of the directory to scan. All returned paths will be relative to this\n * directory.\n * @returns Array holding all relative paths\n */\nexport function deepReadDirSync(targetDir) {\n var targetDirAbsPath = path.resolve(targetDir);\n if (!fs.existsSync(targetDirAbsPath)) {\n throw new Error(\"Cannot read contents of \" + targetDirAbsPath + \". Directory does not exist.\");\n }\n if (!fs.statSync(targetDirAbsPath).isDirectory()) {\n throw new Error(\"Cannot read contents of \" + targetDirAbsPath + \", because it is not a directory.\");\n }\n // This does the same thing as its containing function, `deepReadDirSync` (except that - purely for convenience - it\n // deals in absolute paths rather than relative ones). We need this to be separate from the outer function to preserve\n // the difference between `targetDirAbsPath` and `currentDirAbsPath`.\n var deepReadCurrentDir = function (currentDirAbsPath) {\n return fs.readdirSync(currentDirAbsPath).reduce(function (absPaths, itemName) {\n var itemAbsPath = path.join(currentDirAbsPath, itemName);\n if (fs.statSync(itemAbsPath).isDirectory()) {\n return __spread(absPaths, deepReadCurrentDir(itemAbsPath));\n }\n return __spread(absPaths, [itemAbsPath]);\n }, []);\n };\n return deepReadCurrentDir(targetDirAbsPath).map(function (absPath) { return path.relative(targetDirAbsPath, absPath); });\n}\n//# sourceMappingURL=utils.js.map","import { getGlobalObject, logger } from '@sentry/utils';\nimport { SpanStatus } from '../spanstatus';\nimport { getActiveTransaction } from '../utils';\nvar global = getGlobalObject();\n/**\n * Add a listener that cancels and finishes a transaction when the global\n * document is hidden.\n */\nexport function registerBackgroundTabDetection() {\n if (global && global.document) {\n global.document.addEventListener('visibilitychange', function () {\n var activeTransaction = getActiveTransaction();\n if (global.document.hidden && activeTransaction) {\n logger.log(\"[Tracing] Transaction: \" + SpanStatus.Cancelled + \" -> since tab moved to the background, op: \" + activeTransaction.op);\n // We should not set status if it is already set, this prevent important statuses like\n // error or data loss from being overwritten on transaction.\n if (!activeTransaction.status) {\n activeTransaction.setStatus(SpanStatus.Cancelled);\n }\n activeTransaction.setTag('visibilitychange', 'document.hidden');\n activeTransaction.finish();\n }\n });\n }\n else {\n logger.warn('[Tracing] Could not set up background tab detection due to lack of global document');\n }\n}\n//# sourceMappingURL=backgroundtab.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var bindReporter = function (callback, metric, reportAllChanges) {\n var prevValue;\n return function (forceReport) {\n if (metric.value >= 0) {\n if (forceReport || reportAllChanges) {\n metric.delta = metric.value - (prevValue || 0);\n // Report the metric if there's a non-zero delta or if no previous\n // value exists (which can happen in the case of the document becoming\n // hidden when the metric value is 0).\n // See: https://github.com/GoogleChrome/web-vitals/issues/14\n if (metric.delta || prevValue === undefined) {\n prevValue = metric.value;\n callback(metric);\n }\n }\n }\n };\n};\n//# sourceMappingURL=bindReporter.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { generateUniqueID } from './generateUniqueID';\nexport var initMetric = function (name, value) {\n return {\n name: name,\n value: (value !== null && value !== void 0 ? value : -1),\n delta: 0,\n entries: [],\n id: generateUniqueID(),\n };\n};\n//# sourceMappingURL=initMetric.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Performantly generate a unique, 30-char string by combining a version\n * number, the current timestamp with a 13-digit number integer.\n * @return {string}\n */\nexport var generateUniqueID = function () {\n return \"v2-\" + Date.now() + \"-\" + (Math.floor(Math.random() * (9e12 - 1)) + 1e12);\n};\n//# sourceMappingURL=generateUniqueID.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Takes a performance entry type and a callback function, and creates a\n * `PerformanceObserver` instance that will observe the specified entry type\n * with buffering enabled and call the callback _for each entry_.\n *\n * This function also feature-detects entry support and wraps the logic in a\n * try/catch to avoid errors in unsupporting browsers.\n */\nexport var observe = function (type, callback) {\n try {\n if (PerformanceObserver.supportedEntryTypes.includes(type)) {\n // More extensive feature detect needed for Firefox due to:\n // https://github.com/GoogleChrome/web-vitals/issues/142\n if (type === 'first-input' && !('PerformanceEventTiming' in self)) {\n return;\n }\n var po = new PerformanceObserver(function (l) { return l.getEntries().map(callback); });\n po.observe({ type: type, buffered: true });\n return po;\n }\n }\n catch (e) {\n // Do nothing.\n }\n return;\n};\n//# sourceMappingURL=observe.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { getGlobalObject } from '@sentry/utils';\nexport var onHidden = function (cb, once) {\n var onHiddenOrPageHide = function (event) {\n if (event.type === 'pagehide' || getGlobalObject().document.visibilityState === 'hidden') {\n cb(event);\n if (once) {\n removeEventListener('visibilitychange', onHiddenOrPageHide, true);\n removeEventListener('pagehide', onHiddenOrPageHide, true);\n }\n }\n };\n addEventListener('visibilitychange', onHiddenOrPageHide, true);\n // Some browsers have buggy implementations of visibilitychange,\n // so we use pagehide in addition, just to be safe.\n addEventListener('pagehide', onHiddenOrPageHide, true);\n};\n//# sourceMappingURL=onHidden.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { getGlobalObject } from '@sentry/utils';\nimport { onHidden } from './onHidden';\nvar firstHiddenTime = -1;\nvar initHiddenTime = function () {\n return getGlobalObject().document.visibilityState === 'hidden' ? 0 : Infinity;\n};\nvar trackChanges = function () {\n // Update the time if/when the document becomes hidden.\n onHidden(function (_a) {\n var timeStamp = _a.timeStamp;\n firstHiddenTime = timeStamp;\n }, true);\n};\nexport var getVisibilityWatcher = function () {\n if (firstHiddenTime < 0) {\n // If the document is hidden when this code runs, assume it was hidden\n // since navigation start. This isn't a perfect heuristic, but it's the\n // best we can do until an API is available to support querying past\n // visibilityState.\n firstHiddenTime = initHiddenTime();\n trackChanges();\n }\n return {\n get firstHiddenTime() {\n return firstHiddenTime;\n },\n };\n};\n//# sourceMappingURL=getVisibilityWatcher.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nvar reportedMetricIDs = {};\nexport var getLCP = function (onReport, reportAllChanges) {\n var visibilityWatcher = getVisibilityWatcher();\n var metric = initMetric('LCP');\n var report;\n var entryHandler = function (entry) {\n // The startTime attribute returns the value of the renderTime if it is not 0,\n // and the value of the loadTime otherwise.\n var value = entry.startTime;\n // If the page was hidden prior to paint time of the entry,\n // ignore it and mark the metric as final, otherwise add the entry.\n if (value < visibilityWatcher.firstHiddenTime) {\n metric.value = value;\n metric.entries.push(entry);\n }\n if (report) {\n report();\n }\n };\n var po = observe('largest-contentful-paint', entryHandler);\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n var stopListening_1 = function () {\n if (!reportedMetricIDs[metric.id]) {\n po.takeRecords().map(entryHandler);\n po.disconnect();\n reportedMetricIDs[metric.id] = true;\n report(true);\n }\n };\n // Stop listening after input. Note: while scrolling is an input that\n // stop LCP observation, it's unreliable since it can be programmatically\n // generated. See: https://github.com/GoogleChrome/web-vitals/issues/75\n ['keydown', 'click'].forEach(function (type) {\n addEventListener(type, stopListening_1, { once: true, capture: true });\n });\n onHidden(stopListening_1, true);\n }\n};\n//# sourceMappingURL=getLCP.js.map","import { __assign, __rest } from \"tslib\";\nimport { browserPerformanceTimeOrigin, getGlobalObject, htmlTreeAsString, isNodeEnv, logger } from '@sentry/utils';\nimport { msToSec } from '../utils';\nimport { getCLS } from './web-vitals/getCLS';\nimport { getFID } from './web-vitals/getFID';\nimport { getLCP } from './web-vitals/getLCP';\nimport { getVisibilityWatcher } from './web-vitals/lib/getVisibilityWatcher';\nvar global = getGlobalObject();\nexport var DEFAULT_METRICS_INSTR_OPTIONS = {\n _reportAllChanges: false,\n};\n/** Class tracking metrics */\nvar MetricsInstrumentation = /** @class */ (function () {\n function MetricsInstrumentation(_options) {\n var _a, _b;\n this._measurements = {};\n this._performanceCursor = 0;\n if (!isNodeEnv() && ((_a = global) === null || _a === void 0 ? void 0 : _a.performance) && ((_b = global) === null || _b === void 0 ? void 0 : _b.document)) {\n if (global.performance.mark) {\n global.performance.mark('sentry-tracing-init');\n }\n this._trackCLS();\n this._trackLCP(_options._reportAllChanges);\n this._trackFID();\n }\n }\n /** Add performance related spans to a transaction */\n MetricsInstrumentation.prototype.addPerformanceEntries = function (transaction) {\n var _this = this;\n if (!global || !global.performance || !global.performance.getEntries || !browserPerformanceTimeOrigin) {\n // Gatekeeper if performance API not available\n return;\n }\n logger.log('[Tracing] Adding & adjusting spans using Performance API');\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var entryScriptSrc;\n if (global.document && global.document.scripts) {\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < global.document.scripts.length; i++) {\n // We go through all scripts on the page and look for 'data-entry'\n // We remember the name and measure the time between this script finished loading and\n // our mark 'sentry-tracing-init'\n if (global.document.scripts[i].dataset.entry === 'true') {\n entryScriptSrc = global.document.scripts[i].src;\n break;\n }\n }\n }\n var entryScriptStartTimestamp;\n var tracingInitMarkStartTime;\n var responseStartTimestamp;\n var requestStartTimestamp;\n global.performance\n .getEntries()\n .slice(this._performanceCursor)\n .forEach(function (entry) {\n var startTime = msToSec(entry.startTime);\n var duration = msToSec(entry.duration);\n if (transaction.op === 'navigation' && timeOrigin + startTime < transaction.startTimestamp) {\n return;\n }\n switch (entry.entryType) {\n case 'navigation': {\n addNavigationSpans(transaction, entry, timeOrigin);\n responseStartTimestamp = timeOrigin + msToSec(entry.responseStart);\n requestStartTimestamp = timeOrigin + msToSec(entry.requestStart);\n break;\n }\n case 'mark':\n case 'paint':\n case 'measure': {\n var startTimestamp = addMeasureSpans(transaction, entry, startTime, duration, timeOrigin);\n if (tracingInitMarkStartTime === undefined && entry.name === 'sentry-tracing-init') {\n tracingInitMarkStartTime = startTimestamp;\n }\n // capture web vitals\n var firstHidden = getVisibilityWatcher();\n // Only report if the page wasn't hidden prior to the web vital.\n var shouldRecord = entry.startTime < firstHidden.firstHiddenTime;\n if (entry.name === 'first-paint' && shouldRecord) {\n logger.log('[Measurements] Adding FP');\n _this._measurements['fp'] = { value: entry.startTime };\n _this._measurements['mark.fp'] = { value: startTimestamp };\n }\n if (entry.name === 'first-contentful-paint' && shouldRecord) {\n logger.log('[Measurements] Adding FCP');\n _this._measurements['fcp'] = { value: entry.startTime };\n _this._measurements['mark.fcp'] = { value: startTimestamp };\n }\n break;\n }\n case 'resource': {\n var resourceName = entry.name.replace(global.location.origin, '');\n var endTimestamp = addResourceSpans(transaction, entry, resourceName, startTime, duration, timeOrigin);\n // We remember the entry script end time to calculate the difference to the first init mark\n if (entryScriptStartTimestamp === undefined && (entryScriptSrc || '').indexOf(resourceName) > -1) {\n entryScriptStartTimestamp = endTimestamp;\n }\n break;\n }\n default:\n // Ignore other entry types.\n }\n });\n if (entryScriptStartTimestamp !== undefined && tracingInitMarkStartTime !== undefined) {\n _startChild(transaction, {\n description: 'evaluation',\n endTimestamp: tracingInitMarkStartTime,\n op: 'script',\n startTimestamp: entryScriptStartTimestamp,\n });\n }\n this._performanceCursor = Math.max(performance.getEntries().length - 1, 0);\n this._trackNavigator(transaction);\n // Measurements are only available for pageload transactions\n if (transaction.op === 'pageload') {\n // normalize applicable web vital values to be relative to transaction.startTimestamp\n var timeOrigin_1 = msToSec(browserPerformanceTimeOrigin);\n // Generate TTFB (Time to First Byte), which measured as the time between the beginning of the transaction and the\n // start of the response in milliseconds\n if (typeof responseStartTimestamp === 'number') {\n logger.log('[Measurements] Adding TTFB');\n this._measurements['ttfb'] = { value: (responseStartTimestamp - transaction.startTimestamp) * 1000 };\n if (typeof requestStartTimestamp === 'number' && requestStartTimestamp <= responseStartTimestamp) {\n // Capture the time spent making the request and receiving the first byte of the response.\n // This is the time between the start of the request and the start of the response in milliseconds.\n this._measurements['ttfb.requestTime'] = { value: (responseStartTimestamp - requestStartTimestamp) * 1000 };\n }\n }\n ['fcp', 'fp', 'lcp'].forEach(function (name) {\n if (!_this._measurements[name] || timeOrigin_1 >= transaction.startTimestamp) {\n return;\n }\n // The web vitals, fcp, fp, lcp, and ttfb, all measure relative to timeOrigin.\n // Unfortunately, timeOrigin is not captured within the transaction span data, so these web vitals will need\n // to be adjusted to be relative to transaction.startTimestamp.\n var oldValue = _this._measurements[name].value;\n var measurementTimestamp = timeOrigin_1 + msToSec(oldValue);\n // normalizedValue should be in milliseconds\n var normalizedValue = Math.abs((measurementTimestamp - transaction.startTimestamp) * 1000);\n var delta = normalizedValue - oldValue;\n logger.log(\"[Measurements] Normalized \" + name + \" from \" + oldValue + \" to \" + normalizedValue + \" (\" + delta + \")\");\n _this._measurements[name].value = normalizedValue;\n });\n if (this._measurements['mark.fid'] && this._measurements['fid']) {\n // create span for FID\n _startChild(transaction, {\n description: 'first input delay',\n endTimestamp: this._measurements['mark.fid'].value + msToSec(this._measurements['fid'].value),\n op: 'web.vitals',\n startTimestamp: this._measurements['mark.fid'].value,\n });\n }\n // If FCP is not recorded we should not record the cls value\n // according to the new definition of CLS.\n if (!('fcp' in this._measurements)) {\n delete this._measurements.cls;\n }\n transaction.setMeasurements(this._measurements);\n this._tagMetricInfo(transaction);\n }\n };\n /** Add LCP / CLS data to transaction to allow debugging */\n MetricsInstrumentation.prototype._tagMetricInfo = function (transaction) {\n if (this._lcpEntry) {\n logger.log('[Measurements] Adding LCP Data');\n // Capture Properties of the LCP element that contributes to the LCP.\n if (this._lcpEntry.element) {\n transaction.setTag('lcp.element', htmlTreeAsString(this._lcpEntry.element));\n }\n if (this._lcpEntry.id) {\n transaction.setTag('lcp.id', this._lcpEntry.id);\n }\n if (this._lcpEntry.url) {\n // Trim URL to the first 200 characters.\n transaction.setTag('lcp.url', this._lcpEntry.url.trim().slice(0, 200));\n }\n transaction.setTag('lcp.size', this._lcpEntry.size);\n }\n // See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift\n if (this._clsEntry && this._clsEntry.sources) {\n logger.log('[Measurements] Adding CLS Data');\n this._clsEntry.sources.forEach(function (source, index) {\n return transaction.setTag(\"cls.source.\" + (index + 1), htmlTreeAsString(source.node));\n });\n }\n };\n /** Starts tracking the Cumulative Layout Shift on the current page. */\n MetricsInstrumentation.prototype._trackCLS = function () {\n var _this = this;\n // See:\n // https://web.dev/evolving-cls/\n // https://web.dev/cls-web-tooling/\n getCLS(function (metric) {\n var entry = metric.entries.pop();\n if (!entry) {\n return;\n }\n logger.log('[Measurements] Adding CLS');\n _this._measurements['cls'] = { value: metric.value };\n _this._clsEntry = entry;\n });\n };\n /**\n * Capture the information of the user agent.\n */\n MetricsInstrumentation.prototype._trackNavigator = function (transaction) {\n var navigator = global.navigator;\n if (!navigator) {\n return;\n }\n // track network connectivity\n var connection = navigator.connection;\n if (connection) {\n if (connection.effectiveType) {\n transaction.setTag('effectiveConnectionType', connection.effectiveType);\n }\n if (connection.type) {\n transaction.setTag('connectionType', connection.type);\n }\n if (isMeasurementValue(connection.rtt)) {\n this._measurements['connection.rtt'] = { value: connection.rtt };\n }\n if (isMeasurementValue(connection.downlink)) {\n this._measurements['connection.downlink'] = { value: connection.downlink };\n }\n }\n if (isMeasurementValue(navigator.deviceMemory)) {\n transaction.setTag('deviceMemory', String(navigator.deviceMemory));\n }\n if (isMeasurementValue(navigator.hardwareConcurrency)) {\n transaction.setTag('hardwareConcurrency', String(navigator.hardwareConcurrency));\n }\n };\n /** Starts tracking the Largest Contentful Paint on the current page. */\n MetricsInstrumentation.prototype._trackLCP = function (reportAllChanges) {\n var _this = this;\n getLCP(function (metric) {\n var entry = metric.entries.pop();\n if (!entry) {\n return;\n }\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var startTime = msToSec(entry.startTime);\n logger.log('[Measurements] Adding LCP');\n _this._measurements['lcp'] = { value: metric.value };\n _this._measurements['mark.lcp'] = { value: timeOrigin + startTime };\n _this._lcpEntry = entry;\n }, reportAllChanges);\n };\n /** Starts tracking the First Input Delay on the current page. */\n MetricsInstrumentation.prototype._trackFID = function () {\n var _this = this;\n getFID(function (metric) {\n var entry = metric.entries.pop();\n if (!entry) {\n return;\n }\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var startTime = msToSec(entry.startTime);\n logger.log('[Measurements] Adding FID');\n _this._measurements['fid'] = { value: metric.value };\n _this._measurements['mark.fid'] = { value: timeOrigin + startTime };\n });\n };\n return MetricsInstrumentation;\n}());\nexport { MetricsInstrumentation };\n/** Instrument navigation entries */\nfunction addNavigationSpans(transaction, entry, timeOrigin) {\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'unloadEvent', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'redirect', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'domContentLoadedEvent', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'loadEvent', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'connect', timeOrigin: timeOrigin });\n addPerformanceNavigationTiming({\n transaction: transaction,\n entry: entry,\n event: 'secureConnection',\n timeOrigin: timeOrigin,\n eventEnd: 'connectEnd',\n description: 'TLS/SSL',\n });\n addPerformanceNavigationTiming({\n transaction: transaction,\n entry: entry,\n event: 'fetch',\n timeOrigin: timeOrigin,\n eventEnd: 'domainLookupStart',\n description: 'cache',\n });\n addPerformanceNavigationTiming({ transaction: transaction, entry: entry, event: 'domainLookup', timeOrigin: timeOrigin, description: 'DNS' });\n addRequest(transaction, entry, timeOrigin);\n}\n/** Create measure related spans */\nfunction addMeasureSpans(transaction, entry, startTime, duration, timeOrigin) {\n var measureStartTimestamp = timeOrigin + startTime;\n var measureEndTimestamp = measureStartTimestamp + duration;\n _startChild(transaction, {\n description: entry.name,\n endTimestamp: measureEndTimestamp,\n op: entry.entryType,\n startTimestamp: measureStartTimestamp,\n });\n return measureStartTimestamp;\n}\n/** Create resource-related spans */\nexport function addResourceSpans(transaction, entry, resourceName, startTime, duration, timeOrigin) {\n // we already instrument based on fetch and xhr, so we don't need to\n // duplicate spans here.\n if (entry.initiatorType === 'xmlhttprequest' || entry.initiatorType === 'fetch') {\n return undefined;\n }\n var data = {};\n if ('transferSize' in entry) {\n data['Transfer Size'] = entry.transferSize;\n }\n if ('encodedBodySize' in entry) {\n data['Encoded Body Size'] = entry.encodedBodySize;\n }\n if ('decodedBodySize' in entry) {\n data['Decoded Body Size'] = entry.decodedBodySize;\n }\n var startTimestamp = timeOrigin + startTime;\n var endTimestamp = startTimestamp + duration;\n _startChild(transaction, {\n description: resourceName,\n endTimestamp: endTimestamp,\n op: entry.initiatorType ? \"resource.\" + entry.initiatorType : 'resource',\n startTimestamp: startTimestamp,\n data: data,\n });\n return endTimestamp;\n}\n/** Create performance navigation related spans */\nfunction addPerformanceNavigationTiming(props) {\n var transaction = props.transaction, entry = props.entry, event = props.event, timeOrigin = props.timeOrigin, eventEnd = props.eventEnd, description = props.description;\n var end = eventEnd ? entry[eventEnd] : entry[event + \"End\"];\n var start = entry[event + \"Start\"];\n if (!start || !end) {\n return;\n }\n _startChild(transaction, {\n op: 'browser',\n description: (description !== null && description !== void 0 ? description : event),\n startTimestamp: timeOrigin + msToSec(start),\n endTimestamp: timeOrigin + msToSec(end),\n });\n}\n/** Create request and response related spans */\nfunction addRequest(transaction, entry, timeOrigin) {\n _startChild(transaction, {\n op: 'browser',\n description: 'request',\n startTimestamp: timeOrigin + msToSec(entry.requestStart),\n endTimestamp: timeOrigin + msToSec(entry.responseEnd),\n });\n _startChild(transaction, {\n op: 'browser',\n description: 'response',\n startTimestamp: timeOrigin + msToSec(entry.responseStart),\n endTimestamp: timeOrigin + msToSec(entry.responseEnd),\n });\n}\n/**\n * Helper function to start child on transactions. This function will make sure that the transaction will\n * use the start timestamp of the created child span if it is earlier than the transactions actual\n * start timestamp.\n */\nexport function _startChild(transaction, _a) {\n var startTimestamp = _a.startTimestamp, ctx = __rest(_a, [\"startTimestamp\"]);\n if (startTimestamp && transaction.startTimestamp > startTimestamp) {\n transaction.startTimestamp = startTimestamp;\n }\n return transaction.startChild(__assign({ startTimestamp: startTimestamp }, ctx));\n}\n/**\n * Checks if a given value is a valid measurement value.\n */\nfunction isMeasurementValue(value) {\n return typeof value === 'number' && isFinite(value);\n}\n//# sourceMappingURL=metrics.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nexport var getCLS = function (onReport, reportAllChanges) {\n var metric = initMetric('CLS', 0);\n var report;\n var sessionValue = 0;\n var sessionEntries = [];\n var entryHandler = function (entry) {\n // Only count layout shifts without recent user input.\n // TODO: Figure out why entry can be undefined\n if (entry && !entry.hadRecentInput) {\n var firstSessionEntry = sessionEntries[0];\n var lastSessionEntry = sessionEntries[sessionEntries.length - 1];\n // If the entry occurred less than 1 second after the previous entry and\n // less than 5 seconds after the first entry in the session, include the\n // entry in the current session. Otherwise, start a new session.\n if (sessionValue &&\n sessionEntries.length !== 0 &&\n entry.startTime - lastSessionEntry.startTime < 1000 &&\n entry.startTime - firstSessionEntry.startTime < 5000) {\n sessionValue += entry.value;\n sessionEntries.push(entry);\n }\n else {\n sessionValue = entry.value;\n sessionEntries = [entry];\n }\n // If the current session value is larger than the current CLS value,\n // update CLS and the entries contributing to it.\n if (sessionValue > metric.value) {\n metric.value = sessionValue;\n metric.entries = sessionEntries;\n if (report) {\n report();\n }\n }\n }\n };\n var po = observe('layout-shift', entryHandler);\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n onHidden(function () {\n po.takeRecords().map(entryHandler);\n report(true);\n });\n }\n};\n//# sourceMappingURL=getCLS.js.map","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nexport var getFID = function (onReport, reportAllChanges) {\n var visibilityWatcher = getVisibilityWatcher();\n var metric = initMetric('FID');\n var report;\n var entryHandler = function (entry) {\n // Only report if the page wasn't hidden prior to the first input.\n if (report && entry.startTime < visibilityWatcher.firstHiddenTime) {\n metric.value = entry.processingStart - entry.startTime;\n metric.entries.push(entry);\n report(true);\n }\n };\n var po = observe('first-input', entryHandler);\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n onHidden(function () {\n po.takeRecords().map(entryHandler);\n po.disconnect();\n }, true);\n }\n};\n//# sourceMappingURL=getFID.js.map","import { __assign, __read, __spread } from \"tslib\";\nimport { addInstrumentationHandler, isInstanceOf, isMatchingPattern } from '@sentry/utils';\nimport { SpanStatus } from '../spanstatus';\nimport { getActiveTransaction, hasTracingEnabled } from '../utils';\nexport var DEFAULT_TRACING_ORIGINS = ['localhost', /^\\//];\nexport var defaultRequestInstrumentationOptions = {\n traceFetch: true,\n traceXHR: true,\n tracingOrigins: DEFAULT_TRACING_ORIGINS,\n};\n/** Registers span creators for xhr and fetch requests */\nexport function instrumentOutgoingRequests(_options) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _a = __assign(__assign({}, defaultRequestInstrumentationOptions), _options), traceFetch = _a.traceFetch, traceXHR = _a.traceXHR, tracingOrigins = _a.tracingOrigins, shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;\n // We should cache url -> decision so that we don't have to compute\n // regexp everytime we create a request.\n var urlMap = {};\n var defaultShouldCreateSpan = function (url) {\n if (urlMap[url]) {\n return urlMap[url];\n }\n var origins = tracingOrigins;\n urlMap[url] =\n origins.some(function (origin) { return isMatchingPattern(url, origin); }) &&\n !isMatchingPattern(url, 'sentry_key');\n return urlMap[url];\n };\n // We want that our users don't have to re-implement shouldCreateSpanForRequest themselves\n // That's why we filter out already unwanted Spans from tracingOrigins\n var shouldCreateSpan = defaultShouldCreateSpan;\n if (typeof shouldCreateSpanForRequest === 'function') {\n shouldCreateSpan = function (url) {\n return defaultShouldCreateSpan(url) && shouldCreateSpanForRequest(url);\n };\n }\n var spans = {};\n if (traceFetch) {\n addInstrumentationHandler({\n callback: function (handlerData) {\n fetchCallback(handlerData, shouldCreateSpan, spans);\n },\n type: 'fetch',\n });\n }\n if (traceXHR) {\n addInstrumentationHandler({\n callback: function (handlerData) {\n xhrCallback(handlerData, shouldCreateSpan, spans);\n },\n type: 'xhr',\n });\n }\n}\n/**\n * Create and track fetch request spans\n */\nexport function fetchCallback(handlerData, shouldCreateSpan, spans) {\n if (!hasTracingEnabled() || !(handlerData.fetchData && shouldCreateSpan(handlerData.fetchData.url))) {\n return;\n }\n if (handlerData.endTimestamp && handlerData.fetchData.__span) {\n var span = spans[handlerData.fetchData.__span];\n if (span) {\n if (handlerData.response) {\n // TODO (kmclb) remove this once types PR goes through\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n span.setHttpStatus(handlerData.response.status);\n }\n else if (handlerData.error) {\n span.setStatus(SpanStatus.InternalError);\n }\n span.finish();\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete spans[handlerData.fetchData.__span];\n }\n return;\n }\n var activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n var span = activeTransaction.startChild({\n data: __assign(__assign({}, handlerData.fetchData), { type: 'fetch' }),\n description: handlerData.fetchData.method + \" \" + handlerData.fetchData.url,\n op: 'http.client',\n });\n handlerData.fetchData.__span = span.spanId;\n spans[span.spanId] = span;\n var request = (handlerData.args[0] = handlerData.args[0]);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var options = (handlerData.args[1] = handlerData.args[1] || {});\n var headers = options.headers;\n if (isInstanceOf(request, Request)) {\n headers = request.headers;\n }\n if (headers) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (typeof headers.append === 'function') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n headers.append('sentry-trace', span.toTraceparent());\n }\n else if (Array.isArray(headers)) {\n headers = __spread(headers, [['sentry-trace', span.toTraceparent()]]);\n }\n else {\n headers = __assign(__assign({}, headers), { 'sentry-trace': span.toTraceparent() });\n }\n }\n else {\n headers = { 'sentry-trace': span.toTraceparent() };\n }\n options.headers = headers;\n }\n}\n/**\n * Create and track xhr request spans\n */\nexport function xhrCallback(handlerData, shouldCreateSpan, spans) {\n var _a, _b;\n if (!hasTracingEnabled() || ((_a = handlerData.xhr) === null || _a === void 0 ? void 0 : _a.__sentry_own_request__) ||\n !(((_b = handlerData.xhr) === null || _b === void 0 ? void 0 : _b.__sentry_xhr__) && shouldCreateSpan(handlerData.xhr.__sentry_xhr__.url))) {\n return;\n }\n var xhr = handlerData.xhr.__sentry_xhr__;\n // check first if the request has finished and is tracked by an existing span which should now end\n if (handlerData.endTimestamp && handlerData.xhr.__sentry_xhr_span_id__) {\n var span = spans[handlerData.xhr.__sentry_xhr_span_id__];\n if (span) {\n span.setHttpStatus(xhr.status_code);\n span.finish();\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete spans[handlerData.xhr.__sentry_xhr_span_id__];\n }\n return;\n }\n // if not, create a new span to track it\n var activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n var span = activeTransaction.startChild({\n data: __assign(__assign({}, xhr.data), { type: 'xhr', method: xhr.method, url: xhr.url }),\n description: xhr.method + \" \" + xhr.url,\n op: 'http.client',\n });\n handlerData.xhr.__sentry_xhr_span_id__ = span.spanId;\n spans[handlerData.xhr.__sentry_xhr_span_id__] = span;\n if (handlerData.xhr.setRequestHeader) {\n try {\n handlerData.xhr.setRequestHeader('sentry-trace', span.toTraceparent());\n }\n catch (_) {\n // Error: InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.\n }\n }\n }\n}\n//# sourceMappingURL=request.js.map","import { addInstrumentationHandler, getGlobalObject, logger } from '@sentry/utils';\nvar global = getGlobalObject();\n/**\n * Default function implementing pageload and navigation transactions\n */\nexport function instrumentRoutingWithDefaults(customStartTransaction, startTransactionOnPageLoad, startTransactionOnLocationChange) {\n if (startTransactionOnPageLoad === void 0) { startTransactionOnPageLoad = true; }\n if (startTransactionOnLocationChange === void 0) { startTransactionOnLocationChange = true; }\n if (!global || !global.location) {\n logger.warn('Could not initialize routing instrumentation due to invalid location');\n return;\n }\n var startingUrl = global.location.href;\n var activeTransaction;\n if (startTransactionOnPageLoad) {\n activeTransaction = customStartTransaction({ name: global.location.pathname, op: 'pageload' });\n }\n if (startTransactionOnLocationChange) {\n addInstrumentationHandler({\n callback: function (_a) {\n var to = _a.to, from = _a.from;\n /**\n * This early return is there to account for some cases where a navigation transaction starts right after\n * long-running pageload. We make sure that if `from` is undefined and a valid `startingURL` exists, we don't\n * create an uneccessary navigation transaction.\n *\n * This was hard to duplicate, but this behavior stopped as soon as this fix was applied. This issue might also\n * only be caused in certain development environments where the usage of a hot module reloader is causing\n * errors.\n */\n if (from === undefined && startingUrl && startingUrl.indexOf(to) !== -1) {\n startingUrl = undefined;\n return;\n }\n if (from !== to) {\n startingUrl = undefined;\n if (activeTransaction) {\n logger.log(\"[Tracing] Finishing current transaction with op: \" + activeTransaction.op);\n // If there's an open transaction on the scope, we need to finish it before creating an new one.\n activeTransaction.finish();\n }\n activeTransaction = customStartTransaction({ name: global.location.pathname, op: 'navigation' });\n }\n },\n type: 'history',\n });\n }\n}\n//# sourceMappingURL=router.js.map","import { __assign } from \"tslib\";\nimport { getGlobalObject, logger } from '@sentry/utils';\nimport { startIdleTransaction } from '../hubextensions';\nimport { DEFAULT_IDLE_TIMEOUT } from '../idletransaction';\nimport { SpanStatus } from '../spanstatus';\nimport { extractTraceparentData, secToMs } from '../utils';\nimport { registerBackgroundTabDetection } from './backgroundtab';\nimport { DEFAULT_METRICS_INSTR_OPTIONS, MetricsInstrumentation } from './metrics';\nimport { defaultRequestInstrumentationOptions, instrumentOutgoingRequests, } from './request';\nimport { instrumentRoutingWithDefaults } from './router';\nexport var DEFAULT_MAX_TRANSACTION_DURATION_SECONDS = 600;\nvar DEFAULT_BROWSER_TRACING_OPTIONS = __assign({ idleTimeout: DEFAULT_IDLE_TIMEOUT, markBackgroundTransactions: true, maxTransactionDuration: DEFAULT_MAX_TRANSACTION_DURATION_SECONDS, routingInstrumentation: instrumentRoutingWithDefaults, startTransactionOnLocationChange: true, startTransactionOnPageLoad: true }, defaultRequestInstrumentationOptions);\n/**\n * The Browser Tracing integration automatically instruments browser pageload/navigation\n * actions as transactions, and captures requests, metrics and errors as spans.\n *\n * The integration can be configured with a variety of options, and can be extended to use\n * any routing library. This integration uses {@see IdleTransaction} to create transactions.\n */\nvar BrowserTracing = /** @class */ (function () {\n function BrowserTracing(_options) {\n /**\n * @inheritDoc\n */\n this.name = BrowserTracing.id;\n this._emitOptionsWarning = false;\n var tracingOrigins = defaultRequestInstrumentationOptions.tracingOrigins;\n // NOTE: Logger doesn't work in constructors, as it's initialized after integrations instances\n if (_options &&\n _options.tracingOrigins &&\n Array.isArray(_options.tracingOrigins) &&\n _options.tracingOrigins.length !== 0) {\n tracingOrigins = _options.tracingOrigins;\n }\n else {\n this._emitOptionsWarning = true;\n }\n this.options = __assign(__assign(__assign({}, DEFAULT_BROWSER_TRACING_OPTIONS), _options), { tracingOrigins: tracingOrigins });\n this._metrics = new MetricsInstrumentation(__assign(__assign({}, DEFAULT_METRICS_INSTR_OPTIONS), this.options._metricOptions));\n }\n /**\n * @inheritDoc\n */\n BrowserTracing.prototype.setupOnce = function (_, getCurrentHub) {\n var _this = this;\n this._getCurrentHub = getCurrentHub;\n if (this._emitOptionsWarning) {\n logger.warn('[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');\n logger.warn(\"[Tracing] We added a reasonable default for you: \" + defaultRequestInstrumentationOptions.tracingOrigins);\n }\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _a = this.options, instrumentRouting = _a.routingInstrumentation, startTransactionOnLocationChange = _a.startTransactionOnLocationChange, startTransactionOnPageLoad = _a.startTransactionOnPageLoad, markBackgroundTransactions = _a.markBackgroundTransactions, traceFetch = _a.traceFetch, traceXHR = _a.traceXHR, tracingOrigins = _a.tracingOrigins, shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;\n instrumentRouting(function (context) { return _this._createRouteTransaction(context); }, startTransactionOnPageLoad, startTransactionOnLocationChange);\n if (markBackgroundTransactions) {\n registerBackgroundTabDetection();\n }\n instrumentOutgoingRequests({ traceFetch: traceFetch, traceXHR: traceXHR, tracingOrigins: tracingOrigins, shouldCreateSpanForRequest: shouldCreateSpanForRequest });\n };\n /** Create routing idle transaction. */\n BrowserTracing.prototype._createRouteTransaction = function (context) {\n var _this = this;\n if (!this._getCurrentHub) {\n logger.warn(\"[Tracing] Did not create \" + context.op + \" transaction because _getCurrentHub is invalid.\");\n return undefined;\n }\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _a = this.options, beforeNavigate = _a.beforeNavigate, idleTimeout = _a.idleTimeout, maxTransactionDuration = _a.maxTransactionDuration;\n var parentContextFromHeader = context.op === 'pageload' ? getHeaderContext() : undefined;\n var expandedContext = __assign(__assign(__assign({}, context), parentContextFromHeader), { trimEnd: true });\n var modifiedContext = typeof beforeNavigate === 'function' ? beforeNavigate(expandedContext) : expandedContext;\n // For backwards compatibility reasons, beforeNavigate can return undefined to \"drop\" the transaction (prevent it\n // from being sent to Sentry).\n var finalContext = modifiedContext === undefined ? __assign(__assign({}, expandedContext), { sampled: false }) : modifiedContext;\n if (finalContext.sampled === false) {\n logger.log(\"[Tracing] Will not send \" + finalContext.op + \" transaction because of beforeNavigate.\");\n }\n logger.log(\"[Tracing] Starting \" + finalContext.op + \" transaction on scope\");\n var hub = this._getCurrentHub();\n var location = getGlobalObject().location;\n var idleTransaction = startIdleTransaction(hub, finalContext, idleTimeout, true, { location: location });\n idleTransaction.registerBeforeFinishCallback(function (transaction, endTimestamp) {\n _this._metrics.addPerformanceEntries(transaction);\n adjustTransactionDuration(secToMs(maxTransactionDuration), transaction, endTimestamp);\n });\n return idleTransaction;\n };\n /**\n * @inheritDoc\n */\n BrowserTracing.id = 'BrowserTracing';\n return BrowserTracing;\n}());\nexport { BrowserTracing };\n/**\n * Gets transaction context from a sentry-trace meta.\n *\n * @returns Transaction context data from the header or undefined if there's no header or the header is malformed\n */\nexport function getHeaderContext() {\n var header = getMetaContent('sentry-trace');\n if (header) {\n return extractTraceparentData(header);\n }\n return undefined;\n}\n/** Returns the value of a meta tag */\nexport function getMetaContent(metaName) {\n var el = getGlobalObject().document.querySelector(\"meta[name=\" + metaName + \"]\");\n return el ? el.getAttribute('content') : null;\n}\n/** Adjusts transaction value based on max transaction duration */\nfunction adjustTransactionDuration(maxDuration, transaction, endTimestamp) {\n var diff = endTimestamp - transaction.startTimestamp;\n var isOutdatedTransaction = endTimestamp && (diff > maxDuration || diff < 0);\n if (isOutdatedTransaction) {\n transaction.setStatus(SpanStatus.DeadlineExceeded);\n transaction.setTag('maxTransactionDurationExceeded', 'true');\n }\n}\n//# sourceMappingURL=browsertracing.js.map","import { __read, __spread } from \"tslib\";\nimport { logger } from '@sentry/utils';\n/**\n * Express integration\n *\n * Provides an request and error handler for Express framework as well as tracing capabilities\n */\nvar Express = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Express(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Express.id;\n this._router = options.router || options.app;\n this._methods = (Array.isArray(options.methods) ? options.methods : []).concat('use');\n }\n /**\n * @inheritDoc\n */\n Express.prototype.setupOnce = function () {\n if (!this._router) {\n logger.error('ExpressIntegration is missing an Express instance');\n return;\n }\n instrumentMiddlewares(this._router, this._methods);\n };\n /**\n * @inheritDoc\n */\n Express.id = 'Express';\n return Express;\n}());\nexport { Express };\n/**\n * Wraps original middleware function in a tracing call, which stores the info about the call as a span,\n * and finishes it once the middleware is done invoking.\n *\n * Express middlewares have 3 various forms, thus we have to take care of all of them:\n * // sync\n * app.use(function (req, res) { ... })\n * // async\n * app.use(function (req, res, next) { ... })\n * // error handler\n * app.use(function (err, req, res, next) { ... })\n *\n * They all internally delegate to the `router[method]` of the given application instance.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any\nfunction wrap(fn, method) {\n var arity = fn.length;\n switch (arity) {\n case 2: {\n return function (req, res) {\n var transaction = res.__sentry_transaction;\n if (transaction) {\n var span_1 = transaction.startChild({\n description: fn.name,\n op: \"middleware.\" + method,\n });\n res.once('finish', function () {\n span_1.finish();\n });\n }\n return fn.call(this, req, res);\n };\n }\n case 3: {\n return function (req, res, next) {\n var _a;\n var transaction = res.__sentry_transaction;\n var span = (_a = transaction) === null || _a === void 0 ? void 0 : _a.startChild({\n description: fn.name,\n op: \"middleware.\" + method,\n });\n fn.call(this, req, res, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n next.call.apply(next, __spread([this], args));\n });\n };\n }\n case 4: {\n return function (err, req, res, next) {\n var _a;\n var transaction = res.__sentry_transaction;\n var span = (_a = transaction) === null || _a === void 0 ? void 0 : _a.startChild({\n description: fn.name,\n op: \"middleware.\" + method,\n });\n fn.call(this, err, req, res, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n next.call.apply(next, __spread([this], args));\n });\n };\n }\n default: {\n throw new Error(\"Express middleware takes 2-4 arguments. Got: \" + arity);\n }\n }\n}\n/**\n * Takes all the function arguments passed to the original `app` or `router` method, eg. `app.use` or `router.use`\n * and wraps every function, as well as array of functions with a call to our `wrap` method.\n * We have to take care of the arrays as well as iterate over all of the arguments,\n * as `app.use` can accept middlewares in few various forms.\n *\n * app.use([], )\n * app.use([], , ...)\n * app.use([], ...[])\n */\nfunction wrapMiddlewareArgs(args, method) {\n return args.map(function (arg) {\n if (typeof arg === 'function') {\n return wrap(arg, method);\n }\n if (Array.isArray(arg)) {\n return arg.map(function (a) {\n if (typeof a === 'function') {\n return wrap(a, method);\n }\n return a;\n });\n }\n return arg;\n });\n}\n/**\n * Patches original router to utilize our tracing functionality\n */\nfunction patchMiddleware(router, method) {\n var originalCallback = router[method];\n router[method] = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return originalCallback.call.apply(originalCallback, __spread([this], wrapMiddlewareArgs(args, method)));\n };\n return router;\n}\n/**\n * Patches original router methods\n */\nfunction instrumentMiddlewares(router, methods) {\n if (methods === void 0) { methods = []; }\n methods.forEach(function (method) { return patchMiddleware(router, method); });\n}\n//# sourceMappingURL=express.js.map","import { fill, isThenable, loadModule, logger } from '@sentry/utils';\n/** Tracing integration for node-postgres package */\nvar Postgres = /** @class */ (function () {\n function Postgres(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Postgres.id;\n this._usePgNative = !!options.usePgNative;\n }\n /**\n * @inheritDoc\n */\n Postgres.prototype.setupOnce = function (_, getCurrentHub) {\n var _a;\n var pkg = loadModule('pg');\n if (!pkg) {\n logger.error('Postgres Integration was unable to require `pg` package.');\n return;\n }\n if (this._usePgNative && !((_a = pkg.native) === null || _a === void 0 ? void 0 : _a.Client)) {\n logger.error(\"Postgres Integration was unable to access 'pg-native' bindings.\");\n return;\n }\n var Client = (this._usePgNative ? pkg.native : pkg).Client;\n /**\n * function (query, callback) => void\n * function (query, params, callback) => void\n * function (query) => Promise\n * function (query, params) => Promise\n * function (pg.Cursor) => pg.Cursor\n */\n fill(Client.prototype, 'query', function (orig) {\n return function (config, values, callback) {\n var _a, _b, _c;\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();\n var span = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild({\n description: typeof config === 'string' ? config : config.text,\n op: \"db\",\n });\n if (typeof callback === 'function') {\n return orig.call(this, config, values, function (err, result) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n callback(err, result);\n });\n }\n if (typeof values === 'function') {\n return orig.call(this, config, function (err, result) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n values(err, result);\n });\n }\n var rv = typeof values !== 'undefined' ? orig.call(this, config, values) : orig.call(this, config);\n if (isThenable(rv)) {\n return rv.then(function (res) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n return res;\n });\n }\n (_c = span) === null || _c === void 0 ? void 0 : _c.finish();\n return rv;\n };\n });\n };\n /**\n * @inheritDoc\n */\n Postgres.id = 'Postgres';\n return Postgres;\n}());\nexport { Postgres };\n//# sourceMappingURL=postgres.js.map","import { fill, loadModule, logger } from '@sentry/utils';\n/** Tracing integration for node-mysql package */\nvar Mysql = /** @class */ (function () {\n function Mysql() {\n /**\n * @inheritDoc\n */\n this.name = Mysql.id;\n }\n /**\n * @inheritDoc\n */\n Mysql.prototype.setupOnce = function (_, getCurrentHub) {\n var pkg = loadModule('mysql/lib/Connection.js');\n if (!pkg) {\n logger.error('Mysql Integration was unable to require `mysql` package.');\n return;\n }\n // The original function will have one of these signatures:\n // function (callback) => void\n // function (options, callback) => void\n // function (options, values, callback) => void\n fill(pkg, 'createQuery', function (orig) {\n return function (options, values, callback) {\n var _a, _b;\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();\n var span = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild({\n description: typeof options === 'string' ? options : options.sql,\n op: \"db\",\n });\n if (typeof callback === 'function') {\n return orig.call(this, options, values, function (err, result, fields) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n callback(err, result, fields);\n });\n }\n if (typeof values === 'function') {\n return orig.call(this, options, function (err, result, fields) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n values(err, result, fields);\n });\n }\n return orig.call(this, options, values, callback);\n };\n });\n };\n /**\n * @inheritDoc\n */\n Mysql.id = 'Mysql';\n return Mysql;\n}());\nexport { Mysql };\n//# sourceMappingURL=mysql.js.map","import { __read, __spread } from \"tslib\";\nimport { fill, isThenable, loadModule, logger } from '@sentry/utils';\nvar OPERATIONS = [\n 'aggregate',\n 'bulkWrite',\n 'countDocuments',\n 'createIndex',\n 'createIndexes',\n 'deleteMany',\n 'deleteOne',\n 'distinct',\n 'drop',\n 'dropIndex',\n 'dropIndexes',\n 'estimatedDocumentCount',\n 'find',\n 'findOne',\n 'findOneAndDelete',\n 'findOneAndReplace',\n 'findOneAndUpdate',\n 'indexes',\n 'indexExists',\n 'indexInformation',\n 'initializeOrderedBulkOp',\n 'insertMany',\n 'insertOne',\n 'isCapped',\n 'mapReduce',\n 'options',\n 'parallelCollectionScan',\n 'rename',\n 'replaceOne',\n 'stats',\n 'updateMany',\n 'updateOne',\n];\n// All of the operations above take `options` and `callback` as their final parameters, but some of them\n// take additional parameters as well. For those operations, this is a map of\n// { : [] }, as a way to know what to call the operation's\n// positional arguments when we add them to the span's `data` object later\nvar OPERATION_SIGNATURES = {\n // aggregate intentionally not included because `pipeline` arguments are too complex to serialize well\n // see https://github.com/getsentry/sentry-javascript/pull/3102\n bulkWrite: ['operations'],\n countDocuments: ['query'],\n createIndex: ['fieldOrSpec'],\n createIndexes: ['indexSpecs'],\n deleteMany: ['filter'],\n deleteOne: ['filter'],\n distinct: ['key', 'query'],\n dropIndex: ['indexName'],\n find: ['query'],\n findOne: ['query'],\n findOneAndDelete: ['filter'],\n findOneAndReplace: ['filter', 'replacement'],\n findOneAndUpdate: ['filter', 'update'],\n indexExists: ['indexes'],\n insertMany: ['docs'],\n insertOne: ['doc'],\n mapReduce: ['map', 'reduce'],\n rename: ['newName'],\n replaceOne: ['filter', 'doc'],\n updateMany: ['filter', 'update'],\n updateOne: ['filter', 'update'],\n};\n/** Tracing integration for mongo package */\nvar Mongo = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Mongo(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Mongo.id;\n this._operations = Array.isArray(options.operations)\n ? options.operations\n : OPERATIONS;\n this._describeOperations = 'describeOperations' in options ? options.describeOperations : true;\n this._useMongoose = !!options.useMongoose;\n }\n /**\n * @inheritDoc\n */\n Mongo.prototype.setupOnce = function (_, getCurrentHub) {\n var moduleName = this._useMongoose ? 'mongoose' : 'mongodb';\n var pkg = loadModule(moduleName);\n if (!pkg) {\n logger.error(\"Mongo Integration was unable to require `\" + moduleName + \"` package.\");\n return;\n }\n this._instrumentOperations(pkg.Collection, this._operations, getCurrentHub);\n };\n /**\n * Patches original collection methods\n */\n Mongo.prototype._instrumentOperations = function (collection, operations, getCurrentHub) {\n var _this = this;\n operations.forEach(function (operation) { return _this._patchOperation(collection, operation, getCurrentHub); });\n };\n /**\n * Patches original collection to utilize our tracing functionality\n */\n Mongo.prototype._patchOperation = function (collection, operation, getCurrentHub) {\n if (!(operation in collection.prototype))\n return;\n var getSpanContext = this._getSpanContextFromOperationArguments.bind(this);\n fill(collection.prototype, operation, function (orig) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _a, _b, _c, _d;\n var lastArg = args[args.length - 1];\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();\n // Check if the operation was passed a callback. (mapReduce requires a different check, as\n // its (non-callback) arguments can also be functions.)\n if (typeof lastArg !== 'function' || (operation === 'mapReduce' && args.length === 2)) {\n var span_1 = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild(getSpanContext(this, operation, args));\n var maybePromise = orig.call.apply(orig, __spread([this], args));\n if (isThenable(maybePromise)) {\n return maybePromise.then(function (res) {\n var _a;\n (_a = span_1) === null || _a === void 0 ? void 0 : _a.finish();\n return res;\n });\n }\n else {\n (_c = span_1) === null || _c === void 0 ? void 0 : _c.finish();\n return maybePromise;\n }\n }\n var span = (_d = parentSpan) === null || _d === void 0 ? void 0 : _d.startChild(getSpanContext(this, operation, args.slice(0, -1)));\n return orig.call.apply(orig, __spread([this], args.slice(0, -1), [function (err, result) {\n var _a;\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n lastArg(err, result);\n }]));\n };\n });\n };\n /**\n * Form a SpanContext based on the user input to a given operation.\n */\n Mongo.prototype._getSpanContextFromOperationArguments = function (collection, operation, args) {\n var data = {\n collectionName: collection.collectionName,\n dbName: collection.dbName,\n namespace: collection.namespace,\n };\n var spanContext = {\n op: \"db\",\n description: operation,\n data: data,\n };\n // If the operation takes no arguments besides `options` and `callback`, or if argument\n // collection is disabled for this operation, just return early.\n var signature = OPERATION_SIGNATURES[operation];\n var shouldDescribe = Array.isArray(this._describeOperations)\n ? this._describeOperations.includes(operation)\n : this._describeOperations;\n if (!signature || !shouldDescribe) {\n return spanContext;\n }\n try {\n // Special case for `mapReduce`, as the only one accepting functions as arguments.\n if (operation === 'mapReduce') {\n var _a = __read(args, 2), map = _a[0], reduce = _a[1];\n data[signature[0]] = typeof map === 'string' ? map : map.name || '';\n data[signature[1]] = typeof reduce === 'string' ? reduce : reduce.name || '';\n }\n else {\n for (var i = 0; i < signature.length; i++) {\n data[signature[i]] = JSON.stringify(args[i]);\n }\n }\n }\n catch (_oO) {\n // no-empty\n }\n return spanContext;\n };\n /**\n * @inheritDoc\n */\n Mongo.id = 'Mongo';\n return Mongo;\n}());\nexport { Mongo };\n//# sourceMappingURL=mongo.js.map","import { __assign } from \"tslib\";\nimport { BrowserTracing } from './browser';\nimport { addExtensionMethods } from './hubextensions';\nimport * as TracingIntegrations from './integrations';\nvar Integrations = __assign(__assign({}, TracingIntegrations), { BrowserTracing: BrowserTracing });\nexport { Integrations };\nexport { Span } from './span';\nexport { Transaction } from './transaction';\nexport { \n// TODO deprecate old name in v7\ninstrumentOutgoingRequests as registerRequestInstrumentation, defaultRequestInstrumentationOptions, } from './browser';\nexport { SpanStatus } from './spanstatus';\nexport { IdleTransaction } from './idletransaction';\nexport { startIdleTransaction } from './hubextensions';\n// We are patching the global object with our hub extension methods\naddExtensionMethods();\nexport { addExtensionMethods };\nexport { extractTraceparentData, getActiveTransaction, hasTracingEnabled, stripUrlQueryAndFragment, TRACEPARENT_REGEXP, } from './utils';\n//# sourceMappingURL=index.js.map","import { __assign } from \"tslib\";\n/* eslint-disable max-lines */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { captureException, getCurrentHub, startTransaction, withScope } from '@sentry/core';\nimport { extractTraceparentData } from '@sentry/tracing';\nimport { RequestSessionStatus } from '@sentry/types';\nimport { isPlainObject, isString, logger, normalize, stripUrlQueryAndFragment } from '@sentry/utils';\nimport * as cookie from 'cookie';\nimport * as domain from 'domain';\nimport * as os from 'os';\nimport * as url from 'url';\nimport { flush, isAutoSessionTrackingEnabled } from './sdk';\n/**\n * Express-compatible tracing handler.\n * @see Exposed as `Handlers.tracingHandler`\n */\nexport function tracingHandler() {\n return function sentryTracingMiddleware(req, res, next) {\n // If there is a trace header set, we extract the data from it (parentSpanId, traceId, and sampling decision)\n var traceparentData;\n if (req.headers && isString(req.headers['sentry-trace'])) {\n traceparentData = extractTraceparentData(req.headers['sentry-trace']);\n }\n var transaction = startTransaction(__assign({ name: extractExpressTransactionName(req, { path: true, method: true }), op: 'http.server' }, traceparentData), \n // extra context passed to the tracesSampler\n { request: extractRequestData(req) });\n // We put the transaction on the scope so users can attach children to it\n getCurrentHub().configureScope(function (scope) {\n scope.setSpan(transaction);\n });\n // We also set __sentry_transaction on the response so people can grab the transaction there to add\n // spans to it later.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n res.__sentry_transaction = transaction;\n res.once('finish', function () {\n // Push `transaction.finish` to the next event loop so open spans have a chance to finish before the transaction\n // closes\n setImmediate(function () {\n addExpressReqToTransaction(transaction, req);\n transaction.setHttpStatus(res.statusCode);\n transaction.finish();\n });\n });\n next();\n };\n}\n/**\n * Set parameterized as transaction name e.g.: `GET /users/:id`\n * Also adds more context data on the transaction from the request\n */\nfunction addExpressReqToTransaction(transaction, req) {\n if (!transaction)\n return;\n transaction.name = extractExpressTransactionName(req, { path: true, method: true });\n transaction.setData('url', req.originalUrl);\n transaction.setData('baseUrl', req.baseUrl);\n transaction.setData('query', req.query);\n}\n/**\n * Extracts complete generalized path from the request object and uses it to construct transaction name.\n *\n * eg. GET /mountpoint/user/:id\n *\n * @param req The ExpressRequest object\n * @param options What to include in the transaction name (method, path, or both)\n *\n * @returns The fully constructed transaction name\n */\nfunction extractExpressTransactionName(req, options) {\n if (options === void 0) { options = {}; }\n var _a;\n var method = (_a = req.method) === null || _a === void 0 ? void 0 : _a.toUpperCase();\n var path = '';\n if (req.route) {\n path = \"\" + (req.baseUrl || '') + req.route.path;\n }\n else if (req.originalUrl || req.url) {\n path = stripUrlQueryAndFragment(req.originalUrl || req.url || '');\n }\n var info = '';\n if (options.method && method) {\n info += method;\n }\n if (options.method && options.path) {\n info += \" \";\n }\n if (options.path && path) {\n info += path;\n }\n return info;\n}\n/** JSDoc */\nfunction extractTransaction(req, type) {\n var _a;\n switch (type) {\n case 'path': {\n return extractExpressTransactionName(req, { path: true });\n }\n case 'handler': {\n return ((_a = req.route) === null || _a === void 0 ? void 0 : _a.stack[0].name) || '';\n }\n case 'methodPath':\n default: {\n return extractExpressTransactionName(req, { path: true, method: true });\n }\n }\n}\n/** Default user keys that'll be used to extract data from the request */\nvar DEFAULT_USER_KEYS = ['id', 'username', 'email'];\n/** JSDoc */\nfunction extractUserData(user, keys) {\n var extractedUser = {};\n var attributes = Array.isArray(keys) ? keys : DEFAULT_USER_KEYS;\n attributes.forEach(function (key) {\n if (user && key in user) {\n extractedUser[key] = user[key];\n }\n });\n return extractedUser;\n}\n/** Default request keys that'll be used to extract data from the request */\nvar DEFAULT_REQUEST_KEYS = ['cookies', 'data', 'headers', 'method', 'query_string', 'url'];\n/**\n * Normalizes data from the request object, accounting for framework differences.\n *\n * @param req The request object from which to extract data\n * @param keys An optional array of keys to include in the normalized data. Defaults to DEFAULT_REQUEST_KEYS if not\n * provided.\n * @returns An object containing normalized request data\n */\nexport function extractRequestData(req, keys) {\n if (keys === void 0) { keys = DEFAULT_REQUEST_KEYS; }\n var requestData = {};\n // headers:\n // node, express, nextjs: req.headers\n // koa: req.header\n var headers = (req.headers || req.header || {});\n // method:\n // node, express, koa, nextjs: req.method\n var method = req.method;\n // host:\n // express: req.hostname in > 4 and req.host in < 4\n // koa: req.host\n // node, nextjs: req.headers.host\n var host = req.hostname || req.host || headers.host || '';\n // protocol:\n // node, nextjs: \n // express, koa: req.protocol\n var protocol = req.protocol === 'https' || req.secure || (req.socket || {}).encrypted\n ? 'https'\n : 'http';\n // url (including path and query string):\n // node, express: req.originalUrl\n // koa, nextjs: req.url\n var originalUrl = (req.originalUrl || req.url || '');\n // absolute url\n var absoluteUrl = protocol + \"://\" + host + originalUrl;\n keys.forEach(function (key) {\n switch (key) {\n case 'headers':\n requestData.headers = headers;\n break;\n case 'method':\n requestData.method = method;\n break;\n case 'url':\n requestData.url = absoluteUrl;\n break;\n case 'cookies':\n // cookies:\n // node, express, koa: req.headers.cookie\n // vercel, sails.js, express (w/ cookie middleware), nextjs: req.cookies\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.cookies = req.cookies || cookie.parse(headers.cookie || '');\n break;\n case 'query_string':\n // query string:\n // node: req.url (raw)\n // express, koa, nextjs: req.query\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.query_string = req.query || url.parse(originalUrl || '', false).query;\n break;\n case 'data':\n if (method === 'GET' || method === 'HEAD') {\n break;\n }\n // body data:\n // express, koa, nextjs: req.body\n //\n // when using node by itself, you have to read the incoming stream(see\n // https://nodejs.dev/learn/get-http-request-body-data-using-nodejs); if a user is doing that, we can't know\n // where they're going to store the final result, so they'll have to capture this data themselves\n if (req.body !== undefined) {\n requestData.data = isString(req.body) ? req.body : JSON.stringify(normalize(req.body));\n }\n break;\n default:\n if ({}.hasOwnProperty.call(req, key)) {\n requestData[key] = req[key];\n }\n }\n });\n return requestData;\n}\n/**\n * Enriches passed event with request data.\n *\n * @param event Will be mutated and enriched with req data\n * @param req Request object\n * @param options object containing flags to enable functionality\n * @hidden\n */\nexport function parseRequest(event, req, options) {\n // eslint-disable-next-line no-param-reassign\n options = __assign({ ip: false, request: true, serverName: true, transaction: true, user: true, version: true }, options);\n if (options.version) {\n event.contexts = __assign(__assign({}, event.contexts), { runtime: {\n name: 'node',\n version: global.process.version,\n } });\n }\n if (options.request) {\n // if the option value is `true`, use the default set of keys by not passing anything to `extractRequestData()`\n var extractedRequestData = Array.isArray(options.request)\n ? extractRequestData(req, options.request)\n : extractRequestData(req);\n event.request = __assign(__assign({}, event.request), extractedRequestData);\n }\n if (options.serverName && !event.server_name) {\n event.server_name = global.process.env.SENTRY_NAME || os.hostname();\n }\n if (options.user) {\n var extractedUser = req.user && isPlainObject(req.user) ? extractUserData(req.user, options.user) : {};\n if (Object.keys(extractedUser)) {\n event.user = __assign(__assign({}, event.user), extractedUser);\n }\n }\n // client ip:\n // node, nextjs: req.connection.remoteAddress\n // express, koa: req.ip\n if (options.ip) {\n var ip = req.ip || (req.connection && req.connection.remoteAddress);\n if (ip) {\n event.user = __assign(__assign({}, event.user), { ip_address: ip });\n }\n }\n if (options.transaction && !event.transaction) {\n // TODO do we even need this anymore?\n // TODO make this work for nextjs\n event.transaction = extractTransaction(req, options.transaction);\n }\n return event;\n}\n/**\n * Express compatible request handler.\n * @see Exposed as `Handlers.requestHandler`\n */\nexport function requestHandler(options) {\n var currentHub = getCurrentHub();\n var client = currentHub.getClient();\n // Initialise an instance of SessionFlusher on the client when `autoSessionTracking` is enabled and the\n // `requestHandler` middleware is used indicating that we are running in SessionAggregates mode\n if (client && isAutoSessionTrackingEnabled(client)) {\n client.initSessionFlusher();\n // If Scope contains a Single mode Session, it is removed in favor of using Session Aggregates mode\n var scope = currentHub.getScope();\n if (scope && scope.getSession()) {\n scope.setSession();\n }\n }\n return function sentryRequestMiddleware(req, res, next) {\n if (options && options.flushTimeout && options.flushTimeout > 0) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _end_1 = res.end;\n res.end = function (chunk, encoding, cb) {\n var _this = this;\n void flush(options.flushTimeout)\n .then(function () {\n _end_1.call(_this, chunk, encoding, cb);\n })\n .then(null, function (e) {\n logger.error(e);\n });\n };\n }\n var local = domain.create();\n local.add(req);\n local.add(res);\n local.on('error', next);\n local.run(function () {\n var currentHub = getCurrentHub();\n currentHub.configureScope(function (scope) {\n scope.addEventProcessor(function (event) { return parseRequest(event, req, options); });\n var client = currentHub.getClient();\n if (isAutoSessionTrackingEnabled(client)) {\n var scope_1 = currentHub.getScope();\n if (scope_1) {\n // Set `status` of `RequestSession` to Ok, at the beginning of the request\n scope_1.setRequestSession({ status: RequestSessionStatus.Ok });\n }\n }\n });\n res.once('finish', function () {\n var client = currentHub.getClient();\n if (isAutoSessionTrackingEnabled(client)) {\n setImmediate(function () {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (client && client._captureRequestSession) {\n // Calling _captureRequestSession to capture request session at the end of the request by incrementing\n // the correct SessionAggregates bucket i.e. crashed, errored or exited\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n client._captureRequestSession();\n }\n });\n }\n });\n next();\n });\n };\n}\n/** JSDoc */\nfunction getStatusCodeFromResponse(error) {\n var statusCode = error.status || error.statusCode || error.status_code || (error.output && error.output.statusCode);\n return statusCode ? parseInt(statusCode, 10) : 500;\n}\n/** Returns true if response code is internal server error */\nfunction defaultShouldHandleError(error) {\n var status = getStatusCodeFromResponse(error);\n return status >= 500;\n}\n/**\n * Express compatible error handler.\n * @see Exposed as `Handlers.errorHandler`\n */\nexport function errorHandler(options) {\n return function sentryErrorMiddleware(error, _req, res, next) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var shouldHandleError = (options && options.shouldHandleError) || defaultShouldHandleError;\n if (shouldHandleError(error)) {\n withScope(function (_scope) {\n // For some reason we need to set the transaction on the scope again\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var transaction = res.__sentry_transaction;\n if (transaction && _scope.getSpan() === undefined) {\n _scope.setSpan(transaction);\n }\n var client = getCurrentHub().getClient();\n if (client && isAutoSessionTrackingEnabled(client)) {\n // Check if the `SessionFlusher` is instantiated on the client to go into this branch that marks the\n // `requestSession.status` as `Crashed`, and this check is necessary because the `SessionFlusher` is only\n // instantiated when the the`requestHandler` middleware is initialised, which indicates that we should be\n // running in SessionAggregates mode\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var isSessionAggregatesMode = client._sessionFlusher !== undefined;\n if (isSessionAggregatesMode) {\n var requestSession = _scope.getRequestSession();\n // If an error bubbles to the `errorHandler`, then this is an unhandled error, and should be reported as a\n // Crashed session. The `_requestSession.status` is checked to ensure that this error is happening within\n // the bounds of a request, and if so the status is updated\n if (requestSession && requestSession.status !== undefined)\n requestSession.status = RequestSessionStatus.Crashed;\n }\n }\n var eventId = captureException(error);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n res.sentry = eventId;\n next(error);\n });\n return;\n }\n next(error);\n };\n}\n//# sourceMappingURL=handlers.js.map","import { __assign } from \"tslib\";\nexport { Severity, Status, } from '@sentry/types';\nexport { addGlobalEventProcessor, addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, getHubFromCarrier, getCurrentHub, Hub, makeMain, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, } from '@sentry/core';\nexport { NodeBackend } from './backend';\nexport { NodeClient } from './client';\nexport { defaultIntegrations, init, lastEventId, flush, close, getSentryRelease } from './sdk';\nexport { deepReadDirSync } from './utils';\nexport { SDK_NAME } from './version';\nimport { Integrations as CoreIntegrations } from '@sentry/core';\nimport { getMainCarrier } from '@sentry/hub';\nimport * as domain from 'domain';\nimport * as Handlers from './handlers';\nimport * as NodeIntegrations from './integrations';\nimport * as Transports from './transports';\nvar INTEGRATIONS = __assign(__assign({}, CoreIntegrations), NodeIntegrations);\nexport { INTEGRATIONS as Integrations, Transports, Handlers };\n// We need to patch domain on the global __SENTRY__ object to make it work for node in cross-platform packages like\n// @sentry/hub. If we don't do this, browser bundlers will have troubles resolving `require('domain')`.\nvar carrier = getMainCarrier();\nif (carrier.__SENTRY__) {\n carrier.__SENTRY__.extensions = carrier.__SENTRY__.extensions || {};\n carrier.__SENTRY__.extensions.domain = carrier.__SENTRY__.extensions.domain || domain;\n}\n//# sourceMappingURL=index.js.map","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js'; // **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nlet _nodeId;\n\nlet _clockseq; // Previous uuid creation time\n\n\nlet _lastMSecs = 0;\nlet _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details\n\nfunction v1(options, buf, offset) {\n let i = buf && offset || 0;\n const b = buf || new Array(16);\n options = options || {};\n let node = options.node || _nodeId;\n let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n\n if (node == null || clockseq == null) {\n const seedBytes = options.random || (options.rng || rng)();\n\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];\n }\n\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n } // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n\n\n let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n\n let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)\n\n const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression\n\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n\n\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n } // Per 4.2.1.2 Throw error if too many uuids are requested\n\n\n if (nsecs >= 10000) {\n throw new Error(\"uuid.v1(): Can't create more than 10M uuids/sec\");\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n\n msecs += 12219292800000; // `time_low`\n\n const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff; // `time_mid`\n\n const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff; // `time_high_and_version`\n\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n\n b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n\n b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`\n\n b[i++] = clockseq & 0xff; // `node`\n\n for (let n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf || stringify(b);\n}\n\nexport default v1;","import validate from './validate.js';\n\nfunction parse(uuid) {\n if (!validate(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n let v;\n const arr = new Uint8Array(16); // Parse ########-....-....-....-............\n\n arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;\n arr[1] = v >>> 16 & 0xff;\n arr[2] = v >>> 8 & 0xff;\n arr[3] = v & 0xff; // Parse ........-####-....-....-............\n\n arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;\n arr[5] = v & 0xff; // Parse ........-....-####-....-............\n\n arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;\n arr[7] = v & 0xff; // Parse ........-....-....-####-............\n\n arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;\n arr[9] = v & 0xff; // Parse ........-....-....-....-############\n // (Use \"/\" to avoid 32-bit truncation when bit-shifting high-order bytes)\n\n arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;\n arr[11] = v / 0x100000000 & 0xff;\n arr[12] = v >>> 24 & 0xff;\n arr[13] = v >>> 16 & 0xff;\n arr[14] = v >>> 8 & 0xff;\n arr[15] = v & 0xff;\n return arr;\n}\n\nexport default parse;","import stringify from './stringify.js';\nimport parse from './parse.js';\n\nfunction stringToBytes(str) {\n str = unescape(encodeURIComponent(str)); // UTF8 escape\n\n const bytes = [];\n\n for (let i = 0; i < str.length; ++i) {\n bytes.push(str.charCodeAt(i));\n }\n\n return bytes;\n}\n\nexport const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';\nexport const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';\nexport default function (name, version, hashfunc) {\n function generateUUID(value, namespace, buf, offset) {\n if (typeof value === 'string') {\n value = stringToBytes(value);\n }\n\n if (typeof namespace === 'string') {\n namespace = parse(namespace);\n }\n\n if (namespace.length !== 16) {\n throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');\n } // Compute hash of namespace and value, Per 4.3\n // Future: Use spread syntax when supported on all platforms, e.g. `bytes =\n // hashfunc([...namespace, ... value])`\n\n\n let bytes = new Uint8Array(16 + value.length);\n bytes.set(namespace);\n bytes.set(value, namespace.length);\n bytes = hashfunc(bytes);\n bytes[6] = bytes[6] & 0x0f | version;\n bytes[8] = bytes[8] & 0x3f | 0x80;\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = bytes[i];\n }\n\n return buf;\n }\n\n return stringify(bytes);\n } // Function#name is not settable on some platforms (#270)\n\n\n try {\n generateUUID.name = name; // eslint-disable-next-line no-empty\n } catch (err) {} // For CommonJS default export support\n\n\n generateUUID.DNS = DNS;\n generateUUID.URL = URL;\n return generateUUID;\n}","import v35 from './v35.js';\nimport md5 from './md5.js';\nconst v3 = v35('v3', 0x30, md5);\nexport default v3;","import crypto from 'crypto';\n\nfunction md5(bytes) {\n if (Array.isArray(bytes)) {\n bytes = Buffer.from(bytes);\n } else if (typeof bytes === 'string') {\n bytes = Buffer.from(bytes, 'utf8');\n }\n\n return crypto.createHash('md5').update(bytes).digest();\n}\n\nexport default md5;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import v35 from './v35.js';\nimport sha1 from './sha1.js';\nconst v5 = v35('v5', 0x50, sha1);\nexport default v5;","import crypto from 'crypto';\n\nfunction sha1(bytes) {\n if (Array.isArray(bytes)) {\n bytes = Buffer.from(bytes);\n } else if (typeof bytes === 'string') {\n bytes = Buffer.from(bytes, 'utf8');\n }\n\n return crypto.createHash('sha1').update(bytes).digest();\n}\n\nexport default sha1;","export default '00000000-0000-0000-0000-000000000000';","import validate from './validate.js';\n\nfunction version(uuid) {\n if (!validate(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n return parseInt(uuid.substr(14, 1), 16);\n}\n\nexport default version;","import { __values } from \"tslib\";\nimport { getGlobalObject, supportsReportingObserver } from '@sentry/utils';\n/** JSDoc */\nvar ReportTypes;\n(function (ReportTypes) {\n /** JSDoc */\n ReportTypes[\"Crash\"] = \"crash\";\n /** JSDoc */\n ReportTypes[\"Deprecation\"] = \"deprecation\";\n /** JSDoc */\n ReportTypes[\"Intervention\"] = \"intervention\";\n})(ReportTypes || (ReportTypes = {}));\n/** Reporting API integration - https://w3c.github.io/reporting/ */\nvar ReportingObserver = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function ReportingObserver(_options) {\n if (_options === void 0) { _options = {\n types: [ReportTypes.Crash, ReportTypes.Deprecation, ReportTypes.Intervention],\n }; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = ReportingObserver.id;\n }\n /**\n * @inheritDoc\n */\n ReportingObserver.prototype.setupOnce = function (_, getCurrentHub) {\n if (!supportsReportingObserver()) {\n return;\n }\n this._getCurrentHub = getCurrentHub;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var observer = new (getGlobalObject().ReportingObserver)(this.handler.bind(this), {\n buffered: true,\n types: this._options.types,\n });\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n observer.observe();\n };\n /**\n * @inheritDoc\n */\n ReportingObserver.prototype.handler = function (reports) {\n var e_1, _a;\n var hub = this._getCurrentHub && this._getCurrentHub();\n if (!hub || !hub.getIntegration(ReportingObserver)) {\n return;\n }\n var _loop_1 = function (report) {\n hub.withScope(function (scope) {\n scope.setExtra('url', report.url);\n var label = \"ReportingObserver [\" + report.type + \"]\";\n var details = 'No details available';\n if (report.body) {\n // Object.keys doesn't work on ReportBody, as all properties are inheirted\n var plainBody = {};\n // eslint-disable-next-line guard-for-in\n for (var prop in report.body) {\n plainBody[prop] = report.body[prop];\n }\n scope.setExtra('body', plainBody);\n if (report.type === ReportTypes.Crash) {\n var body = report.body;\n // A fancy way to create a message out of crashId OR reason OR both OR fallback\n details = [body.crashId || '', body.reason || ''].join(' ').trim() || details;\n }\n else {\n var body = report.body;\n details = body.message || details;\n }\n }\n hub.captureMessage(label + \": \" + details);\n });\n };\n try {\n for (var reports_1 = __values(reports), reports_1_1 = reports_1.next(); !reports_1_1.done; reports_1_1 = reports_1.next()) {\n var report = reports_1_1.value;\n _loop_1(report);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (reports_1_1 && !reports_1_1.done && (_a = reports_1.return)) _a.call(reports_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n /**\n * @inheritDoc\n */\n ReportingObserver.id = 'ReportingObserver';\n return ReportingObserver;\n}());\nexport { ReportingObserver };\n//# sourceMappingURL=reportingobserver.js.map","import { __assign } from \"tslib\";\nimport { getGlobalObject, logger } from '@sentry/utils';\n// See https://github.com/angular/angular.js/blob/v1.4.7/src/minErr.js\nvar angularPattern = /^\\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\\] (.*?)\\n?(\\S+)$/;\n/**\n * AngularJS integration\n *\n * Provides an $exceptionHandler for AngularJS\n */\nvar Angular = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function Angular(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Angular.id;\n logger.log('You are still using the Angular integration, consider moving to @sentry/angular');\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n this._angular = options.angular || getGlobalObject().angular;\n if (!this._angular) {\n logger.error('AngularIntegration is missing an Angular instance');\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n this._module = this._angular.module(Angular.moduleName, []);\n }\n /**\n * @inheritDoc\n */\n Angular.prototype.setupOnce = function (_, getCurrentHub) {\n var _this = this;\n if (!this._module) {\n return;\n }\n this._getCurrentHub = getCurrentHub;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n this._module.config([\n '$provide',\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function ($provide) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n $provide.decorator('$exceptionHandler', ['$delegate', _this._$exceptionHandlerDecorator.bind(_this)]);\n },\n ]);\n };\n /**\n * Angular's exceptionHandler for Sentry integration\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Angular.prototype._$exceptionHandlerDecorator = function ($delegate) {\n var _this = this;\n return function (exception, cause) {\n var hub = _this._getCurrentHub && _this._getCurrentHub();\n if (hub && hub.getIntegration(Angular)) {\n hub.withScope(function (scope) {\n if (cause) {\n scope.setExtra('cause', cause);\n }\n scope.addEventProcessor(function (event) {\n var ex = event.exception && event.exception.values && event.exception.values[0];\n if (ex) {\n var matches = angularPattern.exec(ex.value || '');\n if (matches) {\n // This type now becomes something like: $rootScope:inprog\n ex.type = matches[1];\n ex.value = matches[2];\n event.message = ex.type + \": \" + ex.value;\n // auto set a new tag specifically for the angular error url\n event.extra = __assign(__assign({}, event.extra), { angularDocs: matches[3].substr(0, 250) });\n }\n }\n return event;\n });\n hub.captureException(exception);\n });\n }\n $delegate(exception, cause);\n };\n };\n /**\n * @inheritDoc\n */\n Angular.id = 'AngularJS';\n /**\n * moduleName used in Angular's DI resolution algorithm\n */\n Angular.moduleName = 'ngSentry';\n return Angular;\n}());\nexport { Angular };\n//# sourceMappingURL=angular.js.map","import { Severity } from '@sentry/types';\nimport { fill, getGlobalObject, safeJoin } from '@sentry/utils';\nvar global = getGlobalObject();\n/** Send Console API calls as Sentry Events */\nvar CaptureConsole = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function CaptureConsole(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = CaptureConsole.id;\n /**\n * @inheritDoc\n */\n this._levels = ['log', 'info', 'warn', 'error', 'debug', 'assert'];\n if (options.levels) {\n this._levels = options.levels;\n }\n }\n /**\n * @inheritDoc\n */\n CaptureConsole.prototype.setupOnce = function (_, getCurrentHub) {\n if (!('console' in global)) {\n return;\n }\n this._levels.forEach(function (level) {\n if (!(level in global.console)) {\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fill(global.console, level, function (originalConsoleLevel) { return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var hub = getCurrentHub();\n if (hub.getIntegration(CaptureConsole)) {\n hub.withScope(function (scope) {\n scope.setLevel(Severity.fromString(level));\n scope.setExtra('arguments', args);\n scope.addEventProcessor(function (event) {\n event.logger = 'console';\n return event;\n });\n var message = safeJoin(args, ' ');\n if (level === 'assert') {\n if (args[0] === false) {\n message = \"Assertion failed: \" + (safeJoin(args.slice(1), ' ') || 'console.assert');\n scope.setExtra('arguments', args.slice(1));\n hub.captureMessage(message);\n }\n }\n else if (level === 'error' && args[0] instanceof Error) {\n hub.captureException(args[0]);\n }\n else {\n hub.captureMessage(message);\n }\n });\n }\n // this fails for some browsers. :(\n if (originalConsoleLevel) {\n Function.prototype.apply.call(originalConsoleLevel, global.console, args);\n }\n }; });\n });\n };\n /**\n * @inheritDoc\n */\n CaptureConsole.id = 'CaptureConsole';\n return CaptureConsole;\n}());\nexport { CaptureConsole };\n//# sourceMappingURL=captureconsole.js.map","import { __assign } from \"tslib\";\nimport { consoleSandbox } from '@sentry/utils';\n/** JSDoc */\nvar Debug = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Debug(options) {\n /**\n * @inheritDoc\n */\n this.name = Debug.id;\n this._options = __assign({ debugger: false, stringify: false }, options);\n }\n /**\n * @inheritDoc\n */\n Debug.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event, hint) {\n var self = getCurrentHub().getIntegration(Debug);\n if (self) {\n if (self._options.debugger) {\n // eslint-disable-next-line no-debugger\n debugger;\n }\n /* eslint-disable no-console */\n consoleSandbox(function () {\n if (self._options.stringify) {\n console.log(JSON.stringify(event, null, 2));\n if (hint) {\n console.log(JSON.stringify(hint, null, 2));\n }\n }\n else {\n console.log(event);\n if (hint) {\n console.log(hint);\n }\n }\n });\n /* eslint-enable no-console */\n }\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n Debug.id = 'Debug';\n return Debug;\n}());\nexport { Debug };\n//# sourceMappingURL=debug.js.map","import { logger } from '@sentry/utils';\n/** Deduplication filter */\nvar Dedupe = /** @class */ (function () {\n function Dedupe() {\n /**\n * @inheritDoc\n */\n this.name = Dedupe.id;\n }\n /**\n * @inheritDoc\n */\n Dedupe.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (currentEvent) {\n var self = getCurrentHub().getIntegration(Dedupe);\n if (self) {\n // Juuust in case something goes wrong\n try {\n if (self._shouldDropEvent(currentEvent, self._previousEvent)) {\n logger.warn(\"Event dropped due to being a duplicate of previously captured event.\");\n return null;\n }\n }\n catch (_oO) {\n return (self._previousEvent = currentEvent);\n }\n return (self._previousEvent = currentEvent);\n }\n return currentEvent;\n });\n };\n /** JSDoc */\n Dedupe.prototype._shouldDropEvent = function (currentEvent, previousEvent) {\n if (!previousEvent) {\n return false;\n }\n if (this._isSameMessageEvent(currentEvent, previousEvent)) {\n return true;\n }\n if (this._isSameExceptionEvent(currentEvent, previousEvent)) {\n return true;\n }\n return false;\n };\n /** JSDoc */\n Dedupe.prototype._isSameMessageEvent = function (currentEvent, previousEvent) {\n var currentMessage = currentEvent.message;\n var previousMessage = previousEvent.message;\n // If neither event has a message property, they were both exceptions, so bail out\n if (!currentMessage && !previousMessage) {\n return false;\n }\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentMessage && !previousMessage) || (!currentMessage && previousMessage)) {\n return false;\n }\n if (currentMessage !== previousMessage) {\n return false;\n }\n if (!this._isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n if (!this._isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n return true;\n };\n /** JSDoc */\n Dedupe.prototype._getFramesFromEvent = function (event) {\n var exception = event.exception;\n if (exception) {\n try {\n // @ts-ignore Object could be undefined\n return exception.values[0].stacktrace.frames;\n }\n catch (_oO) {\n return undefined;\n }\n }\n else if (event.stacktrace) {\n return event.stacktrace.frames;\n }\n return undefined;\n };\n /** JSDoc */\n Dedupe.prototype._isSameStacktrace = function (currentEvent, previousEvent) {\n var currentFrames = this._getFramesFromEvent(currentEvent);\n var previousFrames = this._getFramesFromEvent(previousEvent);\n // If neither event has a stacktrace, they are assumed to be the same\n if (!currentFrames && !previousFrames) {\n return true;\n }\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentFrames && !previousFrames) || (!currentFrames && previousFrames)) {\n return false;\n }\n currentFrames = currentFrames;\n previousFrames = previousFrames;\n // If number of frames differ, they are not the same\n if (previousFrames.length !== currentFrames.length) {\n return false;\n }\n // Otherwise, compare the two\n for (var i = 0; i < previousFrames.length; i++) {\n var frameA = previousFrames[i];\n var frameB = currentFrames[i];\n if (frameA.filename !== frameB.filename ||\n frameA.lineno !== frameB.lineno ||\n frameA.colno !== frameB.colno ||\n frameA.function !== frameB.function) {\n return false;\n }\n }\n return true;\n };\n /** JSDoc */\n Dedupe.prototype._getExceptionFromEvent = function (event) {\n return event.exception && event.exception.values && event.exception.values[0];\n };\n /** JSDoc */\n Dedupe.prototype._isSameExceptionEvent = function (currentEvent, previousEvent) {\n var previousException = this._getExceptionFromEvent(previousEvent);\n var currentException = this._getExceptionFromEvent(currentEvent);\n if (!previousException || !currentException) {\n return false;\n }\n if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n return false;\n }\n if (!this._isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n if (!this._isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n return true;\n };\n /** JSDoc */\n Dedupe.prototype._isSameFingerprint = function (currentEvent, previousEvent) {\n var currentFingerprint = currentEvent.fingerprint;\n var previousFingerprint = previousEvent.fingerprint;\n // If neither event has a fingerprint, they are assumed to be the same\n if (!currentFingerprint && !previousFingerprint) {\n return true;\n }\n // If only one event has a fingerprint, but not the other one, they are not the same\n if ((currentFingerprint && !previousFingerprint) || (!currentFingerprint && previousFingerprint)) {\n return false;\n }\n currentFingerprint = currentFingerprint;\n previousFingerprint = previousFingerprint;\n // Otherwise, compare the two\n try {\n return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n }\n catch (_oO) {\n return false;\n }\n };\n /**\n * @inheritDoc\n */\n Dedupe.id = 'Dedupe';\n return Dedupe;\n}());\nexport { Dedupe };\n//# sourceMappingURL=dedupe.js.map","import { getGlobalObject, isInstanceOf, logger } from '@sentry/utils';\n/** JSDoc */\nvar Ember = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function Ember(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Ember.id;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n this._Ember = options.Ember || getGlobalObject().Ember;\n }\n /**\n * @inheritDoc\n */\n Ember.prototype.setupOnce = function (_, getCurrentHub) {\n var _this = this;\n if (!this._Ember) {\n logger.error('EmberIntegration is missing an Ember instance');\n return;\n }\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n var oldOnError = this._Ember.onerror;\n this._Ember.onerror = function (error) {\n if (getCurrentHub().getIntegration(Ember)) {\n getCurrentHub().captureException(error, { originalException: error });\n }\n if (typeof oldOnError === 'function') {\n oldOnError.call(_this._Ember, error);\n }\n else if (_this._Ember.testing) {\n throw error;\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this._Ember.RSVP.on('error', function (reason) {\n if (getCurrentHub().getIntegration(Ember)) {\n getCurrentHub().withScope(function (scope) {\n if (isInstanceOf(reason, Error)) {\n scope.setExtra('context', 'Unhandled Promise error detected');\n getCurrentHub().captureException(reason, { originalException: reason });\n }\n else {\n scope.setExtra('reason', reason);\n getCurrentHub().captureMessage('Unhandled Promise error detected');\n }\n });\n }\n });\n };\n /**\n * @inheritDoc\n */\n Ember.id = 'Ember';\n return Ember;\n}());\nexport { Ember };\n//# sourceMappingURL=ember.js.map","import { __assign, __values } from \"tslib\";\nimport { isError, isPlainObject, logger, normalize } from '@sentry/utils';\n/** Patch toString calls to return proper name for wrapped functions */\nvar ExtraErrorData = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function ExtraErrorData(_options) {\n if (_options === void 0) { _options = { depth: 3 }; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = ExtraErrorData.id;\n }\n /**\n * @inheritDoc\n */\n ExtraErrorData.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event, hint) {\n var self = getCurrentHub().getIntegration(ExtraErrorData);\n if (!self) {\n return event;\n }\n return self.enhanceEventWithErrorData(event, hint);\n });\n };\n /**\n * Attaches extracted information from the Error object to extra field in the Event\n */\n ExtraErrorData.prototype.enhanceEventWithErrorData = function (event, hint) {\n var _a;\n if (!hint || !hint.originalException || !isError(hint.originalException)) {\n return event;\n }\n var name = hint.originalException.name || hint.originalException.constructor.name;\n var errorData = this._extractErrorData(hint.originalException);\n if (errorData) {\n var contexts = __assign({}, event.contexts);\n var normalizedErrorData = normalize(errorData, this._options.depth);\n if (isPlainObject(normalizedErrorData)) {\n contexts = __assign(__assign({}, event.contexts), (_a = {}, _a[name] = __assign({}, normalizedErrorData), _a));\n }\n return __assign(__assign({}, event), { contexts: contexts });\n }\n return event;\n };\n /**\n * Extract extra information from the Error object\n */\n ExtraErrorData.prototype._extractErrorData = function (error) {\n var e_1, _a, e_2, _b;\n // We are trying to enhance already existing event, so no harm done if it won't succeed\n try {\n var nativeKeys = [\n 'name',\n 'message',\n 'stack',\n 'line',\n 'column',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'toJSON',\n ];\n var extraErrorInfo = {};\n try {\n // We want only enumerable properties, thus `getOwnPropertyNames` is redundant here, as we filter keys anyway.\n for (var _c = __values(Object.keys(error)), _d = _c.next(); !_d.done; _d = _c.next()) {\n var key = _d.value;\n if (nativeKeys.indexOf(key) !== -1) {\n continue;\n }\n var value = error[key];\n extraErrorInfo[key] = isError(value) ? value.toString() : value;\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n }\n finally { if (e_1) throw e_1.error; }\n }\n // Check if someone attached `toJSON` method to grab even more properties (eg. axios is doing that)\n if (typeof error.toJSON === 'function') {\n var serializedError = error.toJSON();\n try {\n for (var _e = __values(Object.keys(serializedError)), _f = _e.next(); !_f.done; _f = _e.next()) {\n var key = _f.value;\n var value = serializedError[key];\n extraErrorInfo[key] = isError(value) ? value.toString() : value;\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_f && !_f.done && (_b = _e.return)) _b.call(_e);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n return extraErrorInfo;\n }\n catch (oO) {\n logger.error('Unable to extract extra data from the Error object:', oO);\n }\n return null;\n };\n /**\n * @inheritDoc\n */\n ExtraErrorData.id = 'ExtraErrorData';\n return ExtraErrorData;\n}());\nexport { ExtraErrorData };\n//# sourceMappingURL=extraerrordata.js.map","import { __awaiter, __generator } from \"tslib\";\nimport { getGlobalObject, logger, normalize, uuid4 } from '@sentry/utils';\nimport localForage from 'localforage';\n/**\n * cache offline errors and send when connected\n */\nvar Offline = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Offline(options) {\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = Offline.id;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.global = getGlobalObject();\n this.maxStoredEvents = options.maxStoredEvents || 30; // set a reasonable default\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n this.offlineEventStore = localForage.createInstance({\n name: 'sentry/offlineEventStore',\n });\n }\n /**\n * @inheritDoc\n */\n Offline.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n var _this = this;\n this.hub = getCurrentHub();\n if ('addEventListener' in this.global) {\n this.global.addEventListener('online', function () {\n void _this._sendEvents().catch(function () {\n logger.warn('could not send cached events');\n });\n });\n }\n addGlobalEventProcessor(function (event) {\n if (_this.hub && _this.hub.getIntegration(Offline)) {\n // cache if we are positively offline\n if ('navigator' in _this.global && 'onLine' in _this.global.navigator && !_this.global.navigator.onLine) {\n void _this._cacheEvent(event)\n .then(function (_event) { return _this._enforceMaxEvents(); })\n .catch(function (_error) {\n logger.warn('could not cache event while offline');\n });\n // return null on success or failure, because being offline will still result in an error\n return null;\n }\n }\n return event;\n });\n // if online now, send any events stored in a previous offline session\n if ('navigator' in this.global && 'onLine' in this.global.navigator && this.global.navigator.onLine) {\n void this._sendEvents().catch(function () {\n logger.warn('could not send cached events');\n });\n }\n };\n /**\n * cache an event to send later\n * @param event an event\n */\n Offline.prototype._cacheEvent = function (event) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.offlineEventStore.setItem(uuid4(), normalize(event))];\n });\n });\n };\n /**\n * purge excess events if necessary\n */\n Offline.prototype._enforceMaxEvents = function () {\n return __awaiter(this, void 0, void 0, function () {\n var events;\n var _this = this;\n return __generator(this, function (_a) {\n events = [];\n return [2 /*return*/, this.offlineEventStore\n .iterate(function (event, cacheKey, _index) {\n // aggregate events\n events.push({ cacheKey: cacheKey, event: event });\n })\n .then(function () {\n // this promise resolves when the iteration is finished\n return _this._purgeEvents(\n // purge all events past maxStoredEvents in reverse chronological order\n events\n .sort(function (a, b) { return (b.event.timestamp || 0) - (a.event.timestamp || 0); })\n .slice(_this.maxStoredEvents < events.length ? _this.maxStoredEvents : events.length)\n .map(function (event) { return event.cacheKey; }));\n })\n .catch(function (_error) {\n logger.warn('could not enforce max events');\n })];\n });\n });\n };\n /**\n * purge event from cache\n */\n Offline.prototype._purgeEvent = function (cacheKey) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.offlineEventStore.removeItem(cacheKey)];\n });\n });\n };\n /**\n * purge events from cache\n */\n Offline.prototype._purgeEvents = function (cacheKeys) {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n // trail with .then to ensure the return type as void and not void|void[]\n return [2 /*return*/, Promise.all(cacheKeys.map(function (cacheKey) { return _this._purgeEvent(cacheKey); })).then()];\n });\n });\n };\n /**\n * send all events\n */\n Offline.prototype._sendEvents = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n return [2 /*return*/, this.offlineEventStore.iterate(function (event, cacheKey, _index) {\n if (_this.hub) {\n _this.hub.captureEvent(event);\n void _this._purgeEvent(cacheKey).catch(function (_error) {\n logger.warn('could not purge event from cache');\n });\n }\n else {\n logger.warn('no hub found - could not send cached event');\n }\n })];\n });\n });\n };\n /**\n * @inheritDoc\n */\n Offline.id = 'Offline';\n return Offline;\n}());\nexport { Offline };\n//# sourceMappingURL=offline.js.map","import { __assign } from \"tslib\";\nimport { basename, relative } from '@sentry/utils';\n/** Rewrite event frames paths */\nvar RewriteFrames = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function RewriteFrames(options) {\n var _this = this;\n if (options === void 0) { options = {}; }\n /**\n * @inheritDoc\n */\n this.name = RewriteFrames.id;\n /**\n * @inheritDoc\n */\n this._prefix = 'app:///';\n /**\n * @inheritDoc\n */\n this._iteratee = function (frame) {\n if (!frame.filename) {\n return frame;\n }\n // Check if the frame filename begins with `/` or a Windows-style prefix such as `C:\\`\n var isWindowsFrame = /^[A-Z]:\\\\/.test(frame.filename);\n var startsWithSlash = /^\\//.test(frame.filename);\n if (isWindowsFrame || startsWithSlash) {\n var filename = isWindowsFrame\n ? frame.filename\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/') // replace all `\\\\` instances with `/`\n : frame.filename;\n var base = _this._root ? relative(_this._root, filename) : basename(filename);\n frame.filename = \"\" + _this._prefix + base;\n }\n return frame;\n };\n if (options.root) {\n this._root = options.root;\n }\n if (options.prefix) {\n this._prefix = options.prefix;\n }\n if (options.iteratee) {\n this._iteratee = options.iteratee;\n }\n }\n /**\n * @inheritDoc\n */\n RewriteFrames.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event) {\n var self = getCurrentHub().getIntegration(RewriteFrames);\n if (self) {\n return self.process(event);\n }\n return event;\n });\n };\n /** JSDoc */\n RewriteFrames.prototype.process = function (originalEvent) {\n var processedEvent = originalEvent;\n if (originalEvent.exception && Array.isArray(originalEvent.exception.values)) {\n processedEvent = this._processExceptionsEvent(processedEvent);\n }\n if (originalEvent.stacktrace) {\n processedEvent = this._processStacktraceEvent(processedEvent);\n }\n return processedEvent;\n };\n /** JSDoc */\n RewriteFrames.prototype._processExceptionsEvent = function (event) {\n var _this = this;\n try {\n return __assign(__assign({}, event), { exception: __assign(__assign({}, event.exception), { \n // The check for this is performed inside `process` call itself, safe to skip here\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n values: event.exception.values.map(function (value) { return (__assign(__assign({}, value), { stacktrace: _this._processStacktrace(value.stacktrace) })); }) }) });\n }\n catch (_oO) {\n return event;\n }\n };\n /** JSDoc */\n RewriteFrames.prototype._processStacktraceEvent = function (event) {\n try {\n return __assign(__assign({}, event), { stacktrace: this._processStacktrace(event.stacktrace) });\n }\n catch (_oO) {\n return event;\n }\n };\n /** JSDoc */\n RewriteFrames.prototype._processStacktrace = function (stacktrace) {\n var _this = this;\n return __assign(__assign({}, stacktrace), { frames: stacktrace && stacktrace.frames && stacktrace.frames.map(function (f) { return _this._iteratee(f); }) });\n };\n /**\n * @inheritDoc\n */\n RewriteFrames.id = 'RewriteFrames';\n return RewriteFrames;\n}());\nexport { RewriteFrames };\n//# sourceMappingURL=rewriteframes.js.map","import { __assign } from \"tslib\";\n/** This function adds duration since Sentry was initialized till the time event was sent */\nvar SessionTiming = /** @class */ (function () {\n function SessionTiming() {\n /**\n * @inheritDoc\n */\n this.name = SessionTiming.id;\n /** Exact time Client was initialized expressed in milliseconds since Unix Epoch. */\n this._startTime = Date.now();\n }\n /**\n * @inheritDoc\n */\n SessionTiming.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event) {\n var self = getCurrentHub().getIntegration(SessionTiming);\n if (self) {\n return self.process(event);\n }\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n SessionTiming.prototype.process = function (event) {\n var _a;\n var now = Date.now();\n return __assign(__assign({}, event), { extra: __assign(__assign({}, event.extra), (_a = {}, _a['session:start'] = this._startTime, _a['session:duration'] = now - this._startTime, _a['session:end'] = now, _a)) });\n };\n /**\n * @inheritDoc\n */\n SessionTiming.id = 'SessionTiming';\n return SessionTiming;\n}());\nexport { SessionTiming };\n//# sourceMappingURL=sessiontiming.js.map","/** Add node transaction to the event */\nvar Transaction = /** @class */ (function () {\n function Transaction() {\n /**\n * @inheritDoc\n */\n this.name = Transaction.id;\n }\n /**\n * @inheritDoc\n */\n Transaction.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event) {\n var self = getCurrentHub().getIntegration(Transaction);\n if (self) {\n return self.process(event);\n }\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n Transaction.prototype.process = function (event) {\n var frames = this._getFramesFromEvent(event);\n // use for loop so we don't have to reverse whole frames array\n for (var i = frames.length - 1; i >= 0; i--) {\n var frame = frames[i];\n if (frame.in_app === true) {\n event.transaction = this._getTransaction(frame);\n break;\n }\n }\n return event;\n };\n /** JSDoc */\n Transaction.prototype._getFramesFromEvent = function (event) {\n var exception = event.exception && event.exception.values && event.exception.values[0];\n return (exception && exception.stacktrace && exception.stacktrace.frames) || [];\n };\n /** JSDoc */\n Transaction.prototype._getTransaction = function (frame) {\n return frame.module || frame.function ? (frame.module || '?') + \"/\" + (frame.function || '?') : '';\n };\n /**\n * @inheritDoc\n */\n Transaction.id = 'Transaction';\n return Transaction;\n}());\nexport { Transaction };\n//# sourceMappingURL=transaction.js.map","import { __assign, __read, __spread } from \"tslib\";\nimport { basename, getGlobalObject, logger, timestampWithMs } from '@sentry/utils';\n/**\n * Used to extract Tracing integration from the current client,\n * without the need to import `Tracing` itself from the @sentry/apm package.\n * @deprecated as @sentry/tracing should be used over @sentry/apm.\n */\nvar TRACING_GETTER = {\n id: 'Tracing',\n};\n/**\n * Used to extract BrowserTracing integration from @sentry/tracing\n */\nvar BROWSER_TRACING_GETTER = {\n id: 'BrowserTracing',\n};\n// Mappings from operation to corresponding lifecycle hook.\nvar HOOKS = {\n activate: ['activated', 'deactivated'],\n create: ['beforeCreate', 'created'],\n destroy: ['beforeDestroy', 'destroyed'],\n mount: ['beforeMount', 'mounted'],\n update: ['beforeUpdate', 'updated'],\n};\nvar COMPONENT_NAME_REGEXP = /(?:^|[-_/])(\\w)/g;\nvar ROOT_COMPONENT_NAME = 'root';\nvar ANONYMOUS_COMPONENT_NAME = 'anonymous component';\n/** JSDoc */\nvar Vue = /** @class */ (function () {\n /**\n * @inheritDoc\n */\n function Vue(options) {\n var _this = this;\n /**\n * @inheritDoc\n */\n this.name = Vue.id;\n /**\n * Cache holding already processed component names\n */\n this._componentsCache = {};\n /** Keep it as attribute function, to keep correct `this` binding inside the hooks callbacks */\n // eslint-disable-next-line @typescript-eslint/typedef\n this._applyTracingHooks = function (vm, getCurrentHub) {\n // Don't attach twice, just in case\n if (vm.$options.$_sentryPerfHook) {\n return;\n }\n vm.$options.$_sentryPerfHook = true;\n var name = _this._getComponentName(vm);\n var rootMount = name === ROOT_COMPONENT_NAME;\n var spans = {};\n // Render hook starts after once event is emitted,\n // but it ends before the second event of the same type.\n //\n // Because of this, we start measuring inside the first event,\n // but finish it before it triggers, to skip the event emitter timing itself.\n var rootHandler = function (hook) {\n var now = timestampWithMs();\n // On the first handler call (before), it'll be undefined, as `$once` will add it in the future.\n // However, on the second call (after), it'll be already in place.\n if (_this._rootSpan) {\n _this._finishRootSpan(now, getCurrentHub);\n }\n else {\n vm.$once(\"hook:\" + hook, function () {\n // Create an activity on the first event call. There'll be no second call, as rootSpan will be in place,\n // thus new event handler won't be attached.\n // We do this whole dance with `TRACING_GETTER` to prevent `@sentry/apm` from becoming a peerDependency.\n // We also need to ask for the `.constructor`, as `pushActivity` and `popActivity` are static, not instance methods.\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line deprecation/deprecation\n var tracingIntegration = getCurrentHub().getIntegration(TRACING_GETTER);\n if (tracingIntegration) {\n _this._tracingActivity = tracingIntegration.constructor.pushActivity('Vue Application Render');\n var transaction = tracingIntegration.constructor.getTransaction();\n if (transaction) {\n _this._rootSpan = transaction.startChild({\n description: 'Application Render',\n op: 'vue',\n });\n }\n // Use functionality from @sentry/tracing\n }\n else {\n var activeTransaction = getActiveTransaction(getCurrentHub());\n if (activeTransaction) {\n _this._rootSpan = activeTransaction.startChild({\n description: 'Application Render',\n op: 'vue',\n });\n }\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n });\n }\n };\n var childHandler = function (hook, operation) {\n // Skip components that we don't want to track to minimize the noise and give a more granular control to the user\n var shouldTrack = Array.isArray(_this._options.tracingOptions.trackComponents)\n ? _this._options.tracingOptions.trackComponents.indexOf(name) > -1\n : _this._options.tracingOptions.trackComponents;\n if (!_this._rootSpan || !shouldTrack) {\n return;\n }\n var now = timestampWithMs();\n var span = spans[operation];\n // On the first handler call (before), it'll be undefined, as `$once` will add it in the future.\n // However, on the second call (after), it'll be already in place.\n if (span) {\n span.finish();\n _this._finishRootSpan(now, getCurrentHub);\n }\n else {\n vm.$once(\"hook:\" + hook, function () {\n if (_this._rootSpan) {\n spans[operation] = _this._rootSpan.startChild({\n description: \"Vue <\" + name + \">\",\n op: operation,\n });\n }\n });\n }\n };\n // Each component has it's own scope, so all activities are only related to one of them\n _this._options.tracingOptions.hooks.forEach(function (operation) {\n // Retrieve corresponding hooks from Vue lifecycle.\n // eg. mount => ['beforeMount', 'mounted']\n var internalHooks = HOOKS[operation];\n if (!internalHooks) {\n logger.warn(\"Unknown hook: \" + operation);\n return;\n }\n internalHooks.forEach(function (internalHook) {\n var handler = rootMount\n ? rootHandler.bind(_this, internalHook)\n : childHandler.bind(_this, internalHook, operation);\n var currentValue = vm.$options[internalHook];\n if (Array.isArray(currentValue)) {\n vm.$options[internalHook] = __spread([handler], currentValue);\n }\n else if (typeof currentValue === 'function') {\n vm.$options[internalHook] = [handler, currentValue];\n }\n else {\n vm.$options[internalHook] = [handler];\n }\n });\n });\n };\n logger.log('You are still using the Vue.js integration, consider moving to @sentry/vue');\n this._options = __assign(__assign({ \n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Vue: getGlobalObject().Vue, attachProps: true, logErrors: false, tracing: false }, options), { tracingOptions: __assign({ hooks: ['mount', 'update'], timeout: 2000, trackComponents: false }, options.tracingOptions) });\n }\n /**\n * @inheritDoc\n */\n Vue.prototype.setupOnce = function (_, getCurrentHub) {\n if (!this._options.Vue) {\n logger.error('Vue integration is missing a Vue instance');\n return;\n }\n this._attachErrorHandler(getCurrentHub);\n if (this._options.tracing) {\n this._startTracing(getCurrentHub);\n }\n };\n /**\n * Extract component name from the ViewModel\n */\n Vue.prototype._getComponentName = function (vm) {\n // Such level of granularity is most likely not necessary, but better safe than sorry. — Kamil\n if (!vm) {\n return ANONYMOUS_COMPONENT_NAME;\n }\n if (vm.$root === vm) {\n return ROOT_COMPONENT_NAME;\n }\n if (!vm.$options) {\n return ANONYMOUS_COMPONENT_NAME;\n }\n if (vm.$options.name) {\n return vm.$options.name;\n }\n if (vm.$options._componentTag) {\n return vm.$options._componentTag;\n }\n // injected by vue-loader\n if (vm.$options.__file) {\n var unifiedFile = vm.$options.__file.replace(/^[a-zA-Z]:/, '').replace(/\\\\/g, '/');\n var filename = basename(unifiedFile, '.vue');\n return (this._componentsCache[filename] ||\n (this._componentsCache[filename] = filename.replace(COMPONENT_NAME_REGEXP, function (_, c) {\n return c ? c.toUpperCase() : '';\n })));\n }\n return ANONYMOUS_COMPONENT_NAME;\n };\n /** Finish top-level span and activity with a debounce configured using `timeout` option */\n Vue.prototype._finishRootSpan = function (timestamp, getCurrentHub) {\n var _this = this;\n if (this._rootSpanTimer) {\n clearTimeout(this._rootSpanTimer);\n }\n this._rootSpanTimer = setTimeout(function () {\n if (_this._tracingActivity) {\n // We do this whole dance with `TRACING_GETTER` to prevent `@sentry/apm` from becoming a peerDependency.\n // We also need to ask for the `.constructor`, as `pushActivity` and `popActivity` are static, not instance methods.\n // eslint-disable-next-line deprecation/deprecation\n var tracingIntegration = getCurrentHub().getIntegration(TRACING_GETTER);\n if (tracingIntegration) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n tracingIntegration.constructor.popActivity(_this._tracingActivity);\n }\n }\n // We should always finish the span, only should pop activity if using @sentry/apm\n if (_this._rootSpan) {\n _this._rootSpan.finish(timestamp);\n }\n }, this._options.tracingOptions.timeout);\n };\n /** Inject configured tracing hooks into Vue's component lifecycles */\n Vue.prototype._startTracing = function (getCurrentHub) {\n var applyTracingHooks = this._applyTracingHooks;\n this._options.Vue.mixin({\n beforeCreate: function () {\n // eslint-disable-next-line deprecation/deprecation\n if (getCurrentHub().getIntegration(TRACING_GETTER) || getCurrentHub().getIntegration(BROWSER_TRACING_GETTER)) {\n // `this` points to currently rendered component\n applyTracingHooks(this, getCurrentHub);\n }\n else {\n logger.error('Vue integration has tracing enabled, but Tracing integration is not configured');\n }\n },\n });\n };\n /** Inject Sentry's handler into owns Vue's error handler */\n Vue.prototype._attachErrorHandler = function (getCurrentHub) {\n var _this = this;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var currentErrorHandler = this._options.Vue.config.errorHandler;\n this._options.Vue.config.errorHandler = function (error, vm, info) {\n var metadata = {};\n if (vm) {\n try {\n metadata.componentName = _this._getComponentName(vm);\n if (_this._options.attachProps) {\n metadata.propsData = vm.$options.propsData;\n }\n }\n catch (_oO) {\n logger.warn('Unable to extract metadata from Vue component.');\n }\n }\n if (info) {\n metadata.lifecycleHook = info;\n }\n if (getCurrentHub().getIntegration(Vue)) {\n // Capture exception in the next event loop, to make sure that all breadcrumbs are recorded in time.\n setTimeout(function () {\n getCurrentHub().withScope(function (scope) {\n scope.setContext('vue', metadata);\n getCurrentHub().captureException(error);\n });\n });\n }\n if (typeof currentErrorHandler === 'function') {\n currentErrorHandler.call(_this._options.Vue, error, vm, info);\n }\n if (_this._options.logErrors) {\n if (_this._options.Vue.util) {\n _this._options.Vue.util.warn(\"Error in \" + info + \": \\\"\" + (error && error.toString()) + \"\\\"\", vm);\n }\n // eslint-disable-next-line no-console\n console.error(error);\n }\n };\n };\n /**\n * @inheritDoc\n */\n Vue.id = 'Vue';\n return Vue;\n}());\nexport { Vue };\n/** Grabs active transaction off scope */\nexport function getActiveTransaction(hub) {\n if (hub && hub.getScope) {\n var scope = hub.getScope();\n if (scope) {\n return scope.getTransaction();\n }\n }\n return undefined;\n}\n//# sourceMappingURL=vue.js.map","export var Outcome;\n(function (Outcome) {\n Outcome[\"BeforeSend\"] = \"before_send\";\n Outcome[\"EventProcessor\"] = \"event_processor\";\n Outcome[\"NetworkError\"] = \"network_error\";\n Outcome[\"QueueOverflow\"] = \"queue_overflow\";\n Outcome[\"RateLimitBackoff\"] = \"ratelimit_backoff\";\n Outcome[\"SampleRate\"] = \"sample_rate\";\n})(Outcome || (Outcome = {}));\n//# sourceMappingURL=transport.js.map","/** JSDoc */\n// eslint-disable-next-line import/export\nexport var Severity;\n(function (Severity) {\n /** JSDoc */\n Severity[\"Fatal\"] = \"fatal\";\n /** JSDoc */\n Severity[\"Error\"] = \"error\";\n /** JSDoc */\n Severity[\"Warning\"] = \"warning\";\n /** JSDoc */\n Severity[\"Log\"] = \"log\";\n /** JSDoc */\n Severity[\"Info\"] = \"info\";\n /** JSDoc */\n Severity[\"Debug\"] = \"debug\";\n /** JSDoc */\n Severity[\"Critical\"] = \"critical\";\n})(Severity || (Severity = {}));\n// eslint-disable-next-line @typescript-eslint/no-namespace, import/export\n(function (Severity) {\n /**\n * Converts a string-based level into a {@link Severity}.\n *\n * @param level string representation of Severity\n * @returns Severity\n */\n function fromString(level) {\n switch (level) {\n case 'debug':\n return Severity.Debug;\n case 'info':\n return Severity.Info;\n case 'warn':\n case 'warning':\n return Severity.Warning;\n case 'error':\n return Severity.Error;\n case 'fatal':\n return Severity.Fatal;\n case 'critical':\n return Severity.Critical;\n case 'log':\n default:\n return Severity.Log;\n }\n }\n Severity.fromString = fromString;\n})(Severity || (Severity = {}));\n//# sourceMappingURL=severity.js.map","// Slightly modified (no IE8 support, ES6) and transcribed to TypeScript\n// https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-builtins/master/src/es6/path.js\n/** JSDoc */\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n }\n else if (last === '..') {\n parts.splice(i, 1);\n // eslint-disable-next-line no-plusplus\n up++;\n }\n else if (up) {\n parts.splice(i, 1);\n // eslint-disable-next-line no-plusplus\n up--;\n }\n }\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n // eslint-disable-next-line no-plusplus\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n return parts;\n}\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nvar splitPathRe = /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^/]+?|)(\\.[^./]*|))(?:[/]*)$/;\n/** JSDoc */\nfunction splitPath(filename) {\n var parts = splitPathRe.exec(filename);\n return parts ? parts.slice(1) : [];\n}\n// path.resolve([from ...], to)\n// posix version\n/** JSDoc */\nexport function resolve() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var resolvedPath = '';\n var resolvedAbsolute = false;\n for (var i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = i >= 0 ? args[i] : '/';\n // Skip empty entries\n if (!path) {\n continue;\n }\n resolvedPath = path + \"/\" + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n // Normalize the path\n resolvedPath = normalizeArray(resolvedPath.split('/').filter(function (p) { return !!p; }), !resolvedAbsolute).join('/');\n return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';\n}\n/** JSDoc */\nfunction trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') {\n break;\n }\n }\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') {\n break;\n }\n }\n if (start > end) {\n return [];\n }\n return arr.slice(start, end - start + 1);\n}\n// path.relative(from, to)\n// posix version\n/** JSDoc */\nexport function relative(from, to) {\n /* eslint-disable no-param-reassign */\n from = resolve(from).substr(1);\n to = resolve(to).substr(1);\n /* eslint-enable no-param-reassign */\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n return outputParts.join('/');\n}\n// path.normalize(path)\n// posix version\n/** JSDoc */\nexport function normalizePath(path) {\n var isPathAbsolute = isAbsolute(path);\n var trailingSlash = path.substr(-1) === '/';\n // Normalize the path\n var normalizedPath = normalizeArray(path.split('/').filter(function (p) { return !!p; }), !isPathAbsolute).join('/');\n if (!normalizedPath && !isPathAbsolute) {\n normalizedPath = '.';\n }\n if (normalizedPath && trailingSlash) {\n normalizedPath += '/';\n }\n return (isPathAbsolute ? '/' : '') + normalizedPath;\n}\n// posix version\n/** JSDoc */\nexport function isAbsolute(path) {\n return path.charAt(0) === '/';\n}\n// posix version\n/** JSDoc */\nexport function join() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return normalizePath(args.join('/'));\n}\n/** JSDoc */\nexport function dirname(path) {\n var result = splitPath(path);\n var root = result[0];\n var dir = result[1];\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n return root + dir;\n}\n/** JSDoc */\nexport function basename(path, ext) {\n var f = splitPath(path)[2];\n if (ext && f.substr(ext.length * -1) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n}\n//# sourceMappingURL=path.js.map","/**\n * Session Status\n */\nexport var SessionStatus;\n(function (SessionStatus) {\n /** JSDoc */\n SessionStatus[\"Ok\"] = \"ok\";\n /** JSDoc */\n SessionStatus[\"Exited\"] = \"exited\";\n /** JSDoc */\n SessionStatus[\"Crashed\"] = \"crashed\";\n /** JSDoc */\n SessionStatus[\"Abnormal\"] = \"abnormal\";\n})(SessionStatus || (SessionStatus = {}));\nexport var RequestSessionStatus;\n(function (RequestSessionStatus) {\n /** JSDoc */\n RequestSessionStatus[\"Ok\"] = \"ok\";\n /** JSDoc */\n RequestSessionStatus[\"Errored\"] = \"errored\";\n /** JSDoc */\n RequestSessionStatus[\"Crashed\"] = \"crashed\";\n})(RequestSessionStatus || (RequestSessionStatus = {}));\n//# sourceMappingURL=session.js.map"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/asset-manifest.json b/resources/[EGRP-Phone]/npwd/resources/html/asset-manifest.json index b27400b7b..8e4916e1a 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/asset-manifest.json +++ b/resources/[EGRP-Phone]/npwd/resources/html/asset-manifest.json @@ -1,10 +1,10 @@ { "files": { "main.css": "/resources/html/static/css/main.7912319c.css", - "main.js": "/resources/html/static/js/main.9dbca9f3.js", + "main.js": "/resources/html/static/js/main.23e596c0.js", "static/js/534.575896d0.chunk.js": "/resources/html/static/js/534.575896d0.chunk.js", "static/js/8160.0eaa0c71.chunk.js": "/resources/html/static/js/8160.0eaa0c71.chunk.js", - "static/js/687.6987a382.chunk.js": "/resources/html/static/js/687.6987a382.chunk.js", + "static/js/687.d92ace5a.chunk.js": "/resources/html/static/js/687.d92ace5a.chunk.js", "static/js/1444.4142f507.chunk.js": "/resources/html/static/js/1444.4142f507.chunk.js", "static/js/479.3b186760.chunk.js": "/resources/html/static/js/479.3b186760.chunk.js", "static/js/6755.2b83229f.chunk.js": "/resources/html/static/js/6755.2b83229f.chunk.js", @@ -14,14 +14,14 @@ "static/js/5095.ba6a9d3a.chunk.js": "/resources/html/static/js/5095.ba6a9d3a.chunk.js", "static/js/8557.1aebd7f5.chunk.js": "/resources/html/static/js/8557.1aebd7f5.chunk.js", "static/js/5590.09bb4cd5.chunk.js": "/resources/html/static/js/5590.09bb4cd5.chunk.js", - "static/js/9058.c94b1bde.chunk.js": "/resources/html/static/js/9058.c94b1bde.chunk.js", + "static/js/9058.b4991e7e.chunk.js": "/resources/html/static/js/9058.b4991e7e.chunk.js", "static/js/4003.aac4c062.chunk.js": "/resources/html/static/js/4003.aac4c062.chunk.js", "static/js/9337.05f0e4d7.chunk.js": "/resources/html/static/js/9337.05f0e4d7.chunk.js", - "static/js/1864.e773ba5b.chunk.js": "/resources/html/static/js/1864.e773ba5b.chunk.js", + "static/js/1864.e453093d.chunk.js": "/resources/html/static/js/1864.e453093d.chunk.js", "static/js/9237.6b3e9d07.chunk.js": "/resources/html/static/js/9237.6b3e9d07.chunk.js", "static/js/503.c59355ee.chunk.js": "/resources/html/static/js/503.c59355ee.chunk.js", - "static/js/4273.45b7c0c1.chunk.js": "/resources/html/static/js/4273.45b7c0c1.chunk.js", - "static/js/8535.766ee0ce.chunk.js": "/resources/html/static/js/8535.766ee0ce.chunk.js", + "static/js/4273.c1337d5d.chunk.js": "/resources/html/static/js/4273.c1337d5d.chunk.js", + "static/js/8535.e96d1705.chunk.js": "/resources/html/static/js/8535.e96d1705.chunk.js", "static/js/8019.6259af18.chunk.js": "/resources/html/static/js/8019.6259af18.chunk.js", "static/js/4238.15b1745c.chunk.js": "/resources/html/static/js/4238.15b1745c.chunk.js", "static/js/6821.23ed8083.chunk.js": "/resources/html/static/js/6821.23ed8083.chunk.js", @@ -30,45 +30,45 @@ "static/js/3291.641371c9.chunk.js": "/resources/html/static/js/3291.641371c9.chunk.js", "static/js/8425.708ad813.chunk.js": "/resources/html/static/js/8425.708ad813.chunk.js", "static/js/8090.122817b1.chunk.js": "/resources/html/static/js/8090.122817b1.chunk.js", - "static/js/7522.bb8f8c13.chunk.js": "/resources/html/static/js/7522.bb8f8c13.chunk.js", + "static/js/7522.0b9eefe8.chunk.js": "/resources/html/static/js/7522.0b9eefe8.chunk.js", "static/js/559.7c8b055f.chunk.js": "/resources/html/static/js/559.7c8b055f.chunk.js", "static/js/7984.1fe3f9d1.chunk.js": "/resources/html/static/js/7984.1fe3f9d1.chunk.js", - "static/js/9255.c76d474c.chunk.js": "/resources/html/static/js/9255.c76d474c.chunk.js", + "static/js/9255.cf330298.chunk.js": "/resources/html/static/js/9255.cf330298.chunk.js", "static/js/9800.cc1d887e.chunk.js": "/resources/html/static/js/9800.cc1d887e.chunk.js", - "static/js/2038.df458e78.chunk.js": "/resources/html/static/js/2038.df458e78.chunk.js", - "static/js/7871.c0357ad8.chunk.js": "/resources/html/static/js/7871.c0357ad8.chunk.js", - "static/js/8667.bb960f3c.chunk.js": "/resources/html/static/js/8667.bb960f3c.chunk.js", - "static/js/1740.f61ef39e.chunk.js": "/resources/html/static/js/1740.f61ef39e.chunk.js", - "static/js/7797.5274746f.chunk.js": "/resources/html/static/js/7797.5274746f.chunk.js", - "static/js/5874.3abad4dd.chunk.js": "/resources/html/static/js/5874.3abad4dd.chunk.js", + "static/js/2038.45d82eb7.chunk.js": "/resources/html/static/js/2038.45d82eb7.chunk.js", + "static/js/7871.885b2520.chunk.js": "/resources/html/static/js/7871.885b2520.chunk.js", + "static/js/8667.ec6d0419.chunk.js": "/resources/html/static/js/8667.ec6d0419.chunk.js", + "static/js/1740.ae115105.chunk.js": "/resources/html/static/js/1740.ae115105.chunk.js", + "static/js/7797.c9293d06.chunk.js": "/resources/html/static/js/7797.c9293d06.chunk.js", + "static/js/5874.930fcd3a.chunk.js": "/resources/html/static/js/5874.930fcd3a.chunk.js", "static/js/6161.3f209447.chunk.js": "/resources/html/static/js/6161.3f209447.chunk.js", - "static/js/2798.01c77e65.chunk.js": "/resources/html/static/js/2798.01c77e65.chunk.js", - "static/js/9268.6d5bb6df.chunk.js": "/resources/html/static/js/9268.6d5bb6df.chunk.js", - "static/js/1264.3e233fab.chunk.js": "/resources/html/static/js/1264.3e233fab.chunk.js", - "static/js/872.5c594ced.chunk.js": "/resources/html/static/js/872.5c594ced.chunk.js", - "static/js/7796.5eaff788.chunk.js": "/resources/html/static/js/7796.5eaff788.chunk.js", - "static/js/6466.54d4060f.chunk.js": "/resources/html/static/js/6466.54d4060f.chunk.js", - "static/js/5647.cc497184.chunk.js": "/resources/html/static/js/5647.cc497184.chunk.js", + "static/js/2798.647d86bd.chunk.js": "/resources/html/static/js/2798.647d86bd.chunk.js", + "static/js/9268.f4645a8b.chunk.js": "/resources/html/static/js/9268.f4645a8b.chunk.js", + "static/js/1264.cda3f0b2.chunk.js": "/resources/html/static/js/1264.cda3f0b2.chunk.js", + "static/js/872.3ebf4ebb.chunk.js": "/resources/html/static/js/872.3ebf4ebb.chunk.js", + "static/js/7796.d06baa1a.chunk.js": "/resources/html/static/js/7796.d06baa1a.chunk.js", + "static/js/6466.5e437501.chunk.js": "/resources/html/static/js/6466.5e437501.chunk.js", + "static/js/5647.94ba8391.chunk.js": "/resources/html/static/js/5647.94ba8391.chunk.js", "static/js/9932.24ff6750.chunk.js": "/resources/html/static/js/9932.24ff6750.chunk.js", - "static/js/7051.97c03daf.chunk.js": "/resources/html/static/js/7051.97c03daf.chunk.js", - "static/js/461.a0746c0b.chunk.js": "/resources/html/static/js/461.a0746c0b.chunk.js", - "static/js/7546.d9b181a5.chunk.js": "/resources/html/static/js/7546.d9b181a5.chunk.js", - "static/js/9005.840fe1f6.chunk.js": "/resources/html/static/js/9005.840fe1f6.chunk.js", - "static/js/5019.20070e0e.chunk.js": "/resources/html/static/js/5019.20070e0e.chunk.js", - "static/js/5370.13cf9da9.chunk.js": "/resources/html/static/js/5370.13cf9da9.chunk.js", + "static/js/7051.ff755156.chunk.js": "/resources/html/static/js/7051.ff755156.chunk.js", + "static/js/461.0fbd7224.chunk.js": "/resources/html/static/js/461.0fbd7224.chunk.js", + "static/js/7546.b18b1ff1.chunk.js": "/resources/html/static/js/7546.b18b1ff1.chunk.js", + "static/js/9005.db99157e.chunk.js": "/resources/html/static/js/9005.db99157e.chunk.js", + "static/js/5019.392cfd0b.chunk.js": "/resources/html/static/js/5019.392cfd0b.chunk.js", + "static/js/5370.18a7faf0.chunk.js": "/resources/html/static/js/5370.18a7faf0.chunk.js", "static/js/7305.f8f7f6db.chunk.js": "/resources/html/static/js/7305.f8f7f6db.chunk.js", - "static/js/1187.3f1f4288.chunk.js": "/resources/html/static/js/1187.3f1f4288.chunk.js", - "static/js/5154.11f59f8e.chunk.js": "/resources/html/static/js/5154.11f59f8e.chunk.js", - "static/js/4738.ab52560e.chunk.js": "/resources/html/static/js/4738.ab52560e.chunk.js", - "static/js/8037.52bc07dd.chunk.js": "/resources/html/static/js/8037.52bc07dd.chunk.js", - "static/js/9854.e09a7916.chunk.js": "/resources/html/static/js/9854.e09a7916.chunk.js", - "static/js/1104.a3e1cd1f.chunk.js": "/resources/html/static/js/1104.a3e1cd1f.chunk.js", + "static/js/1187.0c47dc44.chunk.js": "/resources/html/static/js/1187.0c47dc44.chunk.js", + "static/js/5154.20ccace4.chunk.js": "/resources/html/static/js/5154.20ccace4.chunk.js", + "static/js/4738.a9100487.chunk.js": "/resources/html/static/js/4738.a9100487.chunk.js", + "static/js/8037.a10870ef.chunk.js": "/resources/html/static/js/8037.a10870ef.chunk.js", + "static/js/9854.7b6092aa.chunk.js": "/resources/html/static/js/9854.7b6092aa.chunk.js", + "static/js/1104.44f78f48.chunk.js": "/resources/html/static/js/1104.44f78f48.chunk.js", "index.html": "/resources/html/index.html", "main.7912319c.css.map": "/resources/html/static/css/main.7912319c.css.map", - "main.9dbca9f3.js.map": "/resources/html/static/js/main.9dbca9f3.js.map", + "main.23e596c0.js.map": "/resources/html/static/js/main.23e596c0.js.map", "534.575896d0.chunk.js.map": "/resources/html/static/js/534.575896d0.chunk.js.map", "8160.0eaa0c71.chunk.js.map": "/resources/html/static/js/8160.0eaa0c71.chunk.js.map", - "687.6987a382.chunk.js.map": "/resources/html/static/js/687.6987a382.chunk.js.map", + "687.d92ace5a.chunk.js.map": "/resources/html/static/js/687.d92ace5a.chunk.js.map", "1444.4142f507.chunk.js.map": "/resources/html/static/js/1444.4142f507.chunk.js.map", "479.3b186760.chunk.js.map": "/resources/html/static/js/479.3b186760.chunk.js.map", "6755.2b83229f.chunk.js.map": "/resources/html/static/js/6755.2b83229f.chunk.js.map", @@ -78,14 +78,14 @@ "5095.ba6a9d3a.chunk.js.map": "/resources/html/static/js/5095.ba6a9d3a.chunk.js.map", "8557.1aebd7f5.chunk.js.map": "/resources/html/static/js/8557.1aebd7f5.chunk.js.map", "5590.09bb4cd5.chunk.js.map": "/resources/html/static/js/5590.09bb4cd5.chunk.js.map", - "9058.c94b1bde.chunk.js.map": "/resources/html/static/js/9058.c94b1bde.chunk.js.map", + "9058.b4991e7e.chunk.js.map": "/resources/html/static/js/9058.b4991e7e.chunk.js.map", "4003.aac4c062.chunk.js.map": "/resources/html/static/js/4003.aac4c062.chunk.js.map", "9337.05f0e4d7.chunk.js.map": "/resources/html/static/js/9337.05f0e4d7.chunk.js.map", - "1864.e773ba5b.chunk.js.map": "/resources/html/static/js/1864.e773ba5b.chunk.js.map", + "1864.e453093d.chunk.js.map": "/resources/html/static/js/1864.e453093d.chunk.js.map", "9237.6b3e9d07.chunk.js.map": "/resources/html/static/js/9237.6b3e9d07.chunk.js.map", "503.c59355ee.chunk.js.map": "/resources/html/static/js/503.c59355ee.chunk.js.map", - "4273.45b7c0c1.chunk.js.map": "/resources/html/static/js/4273.45b7c0c1.chunk.js.map", - "8535.766ee0ce.chunk.js.map": "/resources/html/static/js/8535.766ee0ce.chunk.js.map", + "4273.c1337d5d.chunk.js.map": "/resources/html/static/js/4273.c1337d5d.chunk.js.map", + "8535.e96d1705.chunk.js.map": "/resources/html/static/js/8535.e96d1705.chunk.js.map", "8019.6259af18.chunk.js.map": "/resources/html/static/js/8019.6259af18.chunk.js.map", "4238.15b1745c.chunk.js.map": "/resources/html/static/js/4238.15b1745c.chunk.js.map", "6821.23ed8083.chunk.js.map": "/resources/html/static/js/6821.23ed8083.chunk.js.map", @@ -94,42 +94,42 @@ "3291.641371c9.chunk.js.map": "/resources/html/static/js/3291.641371c9.chunk.js.map", "8425.708ad813.chunk.js.map": "/resources/html/static/js/8425.708ad813.chunk.js.map", "8090.122817b1.chunk.js.map": "/resources/html/static/js/8090.122817b1.chunk.js.map", - "7522.bb8f8c13.chunk.js.map": "/resources/html/static/js/7522.bb8f8c13.chunk.js.map", + "7522.0b9eefe8.chunk.js.map": "/resources/html/static/js/7522.0b9eefe8.chunk.js.map", "559.7c8b055f.chunk.js.map": "/resources/html/static/js/559.7c8b055f.chunk.js.map", "7984.1fe3f9d1.chunk.js.map": "/resources/html/static/js/7984.1fe3f9d1.chunk.js.map", - "9255.c76d474c.chunk.js.map": "/resources/html/static/js/9255.c76d474c.chunk.js.map", + "9255.cf330298.chunk.js.map": "/resources/html/static/js/9255.cf330298.chunk.js.map", "9800.cc1d887e.chunk.js.map": "/resources/html/static/js/9800.cc1d887e.chunk.js.map", - "2038.df458e78.chunk.js.map": "/resources/html/static/js/2038.df458e78.chunk.js.map", - "7871.c0357ad8.chunk.js.map": "/resources/html/static/js/7871.c0357ad8.chunk.js.map", - "8667.bb960f3c.chunk.js.map": "/resources/html/static/js/8667.bb960f3c.chunk.js.map", - "1740.f61ef39e.chunk.js.map": "/resources/html/static/js/1740.f61ef39e.chunk.js.map", - "7797.5274746f.chunk.js.map": "/resources/html/static/js/7797.5274746f.chunk.js.map", - "5874.3abad4dd.chunk.js.map": "/resources/html/static/js/5874.3abad4dd.chunk.js.map", + "2038.45d82eb7.chunk.js.map": "/resources/html/static/js/2038.45d82eb7.chunk.js.map", + "7871.885b2520.chunk.js.map": "/resources/html/static/js/7871.885b2520.chunk.js.map", + "8667.ec6d0419.chunk.js.map": "/resources/html/static/js/8667.ec6d0419.chunk.js.map", + "1740.ae115105.chunk.js.map": "/resources/html/static/js/1740.ae115105.chunk.js.map", + "7797.c9293d06.chunk.js.map": "/resources/html/static/js/7797.c9293d06.chunk.js.map", + "5874.930fcd3a.chunk.js.map": "/resources/html/static/js/5874.930fcd3a.chunk.js.map", "6161.3f209447.chunk.js.map": "/resources/html/static/js/6161.3f209447.chunk.js.map", - "2798.01c77e65.chunk.js.map": "/resources/html/static/js/2798.01c77e65.chunk.js.map", - "9268.6d5bb6df.chunk.js.map": "/resources/html/static/js/9268.6d5bb6df.chunk.js.map", - "1264.3e233fab.chunk.js.map": "/resources/html/static/js/1264.3e233fab.chunk.js.map", - "872.5c594ced.chunk.js.map": "/resources/html/static/js/872.5c594ced.chunk.js.map", - "7796.5eaff788.chunk.js.map": "/resources/html/static/js/7796.5eaff788.chunk.js.map", - "6466.54d4060f.chunk.js.map": "/resources/html/static/js/6466.54d4060f.chunk.js.map", - "5647.cc497184.chunk.js.map": "/resources/html/static/js/5647.cc497184.chunk.js.map", + "2798.647d86bd.chunk.js.map": "/resources/html/static/js/2798.647d86bd.chunk.js.map", + "9268.f4645a8b.chunk.js.map": "/resources/html/static/js/9268.f4645a8b.chunk.js.map", + "1264.cda3f0b2.chunk.js.map": "/resources/html/static/js/1264.cda3f0b2.chunk.js.map", + "872.3ebf4ebb.chunk.js.map": "/resources/html/static/js/872.3ebf4ebb.chunk.js.map", + "7796.d06baa1a.chunk.js.map": "/resources/html/static/js/7796.d06baa1a.chunk.js.map", + "6466.5e437501.chunk.js.map": "/resources/html/static/js/6466.5e437501.chunk.js.map", + "5647.94ba8391.chunk.js.map": "/resources/html/static/js/5647.94ba8391.chunk.js.map", "9932.24ff6750.chunk.js.map": "/resources/html/static/js/9932.24ff6750.chunk.js.map", - "7051.97c03daf.chunk.js.map": "/resources/html/static/js/7051.97c03daf.chunk.js.map", - "461.a0746c0b.chunk.js.map": "/resources/html/static/js/461.a0746c0b.chunk.js.map", - "7546.d9b181a5.chunk.js.map": "/resources/html/static/js/7546.d9b181a5.chunk.js.map", - "9005.840fe1f6.chunk.js.map": "/resources/html/static/js/9005.840fe1f6.chunk.js.map", - "5019.20070e0e.chunk.js.map": "/resources/html/static/js/5019.20070e0e.chunk.js.map", - "5370.13cf9da9.chunk.js.map": "/resources/html/static/js/5370.13cf9da9.chunk.js.map", + "7051.ff755156.chunk.js.map": "/resources/html/static/js/7051.ff755156.chunk.js.map", + "461.0fbd7224.chunk.js.map": "/resources/html/static/js/461.0fbd7224.chunk.js.map", + "7546.b18b1ff1.chunk.js.map": "/resources/html/static/js/7546.b18b1ff1.chunk.js.map", + "9005.db99157e.chunk.js.map": "/resources/html/static/js/9005.db99157e.chunk.js.map", + "5019.392cfd0b.chunk.js.map": "/resources/html/static/js/5019.392cfd0b.chunk.js.map", + "5370.18a7faf0.chunk.js.map": "/resources/html/static/js/5370.18a7faf0.chunk.js.map", "7305.f8f7f6db.chunk.js.map": "/resources/html/static/js/7305.f8f7f6db.chunk.js.map", - "1187.3f1f4288.chunk.js.map": "/resources/html/static/js/1187.3f1f4288.chunk.js.map", - "5154.11f59f8e.chunk.js.map": "/resources/html/static/js/5154.11f59f8e.chunk.js.map", - "4738.ab52560e.chunk.js.map": "/resources/html/static/js/4738.ab52560e.chunk.js.map", - "8037.52bc07dd.chunk.js.map": "/resources/html/static/js/8037.52bc07dd.chunk.js.map", - "9854.e09a7916.chunk.js.map": "/resources/html/static/js/9854.e09a7916.chunk.js.map", - "1104.a3e1cd1f.chunk.js.map": "/resources/html/static/js/1104.a3e1cd1f.chunk.js.map" + "1187.0c47dc44.chunk.js.map": "/resources/html/static/js/1187.0c47dc44.chunk.js.map", + "5154.20ccace4.chunk.js.map": "/resources/html/static/js/5154.20ccace4.chunk.js.map", + "4738.a9100487.chunk.js.map": "/resources/html/static/js/4738.a9100487.chunk.js.map", + "8037.a10870ef.chunk.js.map": "/resources/html/static/js/8037.a10870ef.chunk.js.map", + "9854.7b6092aa.chunk.js.map": "/resources/html/static/js/9854.7b6092aa.chunk.js.map", + "1104.44f78f48.chunk.js.map": "/resources/html/static/js/1104.44f78f48.chunk.js.map" }, "entrypoints": [ "static/css/main.7912319c.css", - "static/js/main.9dbca9f3.js" + "static/js/main.23e596c0.js" ] } \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/index.html b/resources/[EGRP-Phone]/npwd/resources/html/index.html index e3c3fb33e..6b881f463 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/index.html +++ b/resources/[EGRP-Phone]/npwd/resources/html/index.html @@ -1 +1 @@ -Project Error - New Phone Who Dis
\ No newline at end of file +Project Error - New Phone Who Dis
\ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.a3e1cd1f.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.44f78f48.chunk.js similarity index 96% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.a3e1cd1f.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.44f78f48.chunk.js index 3dc5cf781..eedc8515d 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.a3e1cd1f.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.44f78f48.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1104],{1104:function(a,l,c){c.r(l);var e=c(8489),n=(c(2791),c(9259)),i=c(184);l.default=function(a){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},a),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsx)("path",{fill:a.htmlColor||"#000",d:"M15.373 71.516c-.976.343-1.8.782-2.409 1.277-1.084.883-1.736 1.985-1.998 3.238-.255 1.222-.158 2.727.861 4.466 1.92 3.275 6.039 7.24 11.434 10.253a40.21 40.21 0 003.963 1.936c-.494.126-1.021.244-1.579.352-3.09.598-7.009.859-11.938.471-3.986-.314-5.969 1.349-6.773 2.75-.922 1.605-1.138 4.438 1.445 7.463 3.159 3.701 11.91 9.405 23.927 12.954 13.438 3.969 30.98 5.376 48.819-1.405 15.38-5.871 27.118-16.79 33.43-30.389 5.835-12.573 7.072-27.437 2.204-42.688 2.012-1.429 5.108-3.879 7.502-6.894 2.014-2.536 3.526-5.456 3.793-8.49a2.84 2.84 0 00-3.485-3.035l-3.248.842c.434-1.082.808-2.172 1.012-3.113.383-1.771.15-3.231-.387-4.086a3.36 3.36 0 00-1.841-1.433c-.78-.259-2.031-.317-3.535-.009-2.84.581-7.083 2.356-9.333 3.35a38.387 38.387 0 00-7.794-5.107c-3.057-1.499-6.729-2.735-10.77-3.053-6.354-.5-16.405 1.068-22.709 8.579-3.644 4.342-6.112 10.71-5.729 19.961-8.256-.641-16.085-2.819-23.392-6.878-7.478-4.154-14.391-10.288-20.682-18.722a3.578 3.578 0 00-5.92.316s-5.003 8.031-3.425 19.976a37.832 37.832 0 002.316 8.878l-.154-.003c-2.199-.023-3.86.859-4.915 2.336-.717 1.003-1.244 2.456-1.004 4.575.411 3.607 2.13 8.553 5.732 13.752 1.731 2.5 3.906 5.07 6.582 7.58zm101.602-51.231l-3.074 7.118a2.758 2.758 0 003.135 4.025l3.524-.847a19.45 19.45 0 01-.82 1.065c-3.288 3.998-8.086 6.732-8.086 6.732a3.008 3.008 0 00-1.322 3.584c4.865 14.376 3.763 28.36-1.877 40.031-5.758 11.914-16.264 21.381-29.911 26.367-10.201 3.739-20.259 4.503-29.322 3.643-12.914-1.225-23.812-5.779-30.208-9.937l-.32-.205c4.706-.022 8.442-.618 11.381-1.438 8.669-2.419 11.242-6.909 11.242-6.909a4.113 4.113 0 00-3.037-6.329c-3.984-.398-7.795-1.792-11.036-3.589-2.646-1.468-4.926-3.188-6.552-4.88 2.525-.157 5.275.192 5.275.192a4.025 4.025 0 002.554-7.426c-4.899-3.002-8.662-6.378-11.45-9.725-3.01-3.615-4.883-7.152-5.767-10.064.16.057.31.116.443.175 1.9.836 3.549 1.856 3.549 1.856a3.811 3.811 0 005.152-5.413c-3.842-5.413-5.655-10.496-6.298-14.929-.58-4-.217-7.439.371-10.035 5.959 6.7 12.35 11.749 19.113 15.366 9.317 4.985 19.333 7.283 29.92 7.395a3.113 3.113 0 003.147-3.489c-1.183-9.055.533-15.16 3.77-19.158 4.857-5.999 12.818-7.181 17.825-6.88 3.323.201 6.351 1.181 8.884 2.365 4.766 2.228 7.816 5.159 7.816 5.159.75.742 1.882.939 2.839.496 0 0 6.21-3.857 9.14-4.316zM14.481 98.981c-.468-.444-.623-.792-.245-.977.459-.225.4.376.245.977z"})]})}))}}}]); -//# sourceMappingURL=1104.a3e1cd1f.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1104],{1104:function(a,l,c){c.r(l);var e=c(1413),n=(c(2791),c(9259)),i=c(184);l.default=function(a){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},a),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsx)("path",{fill:a.htmlColor||"#000",d:"M15.373 71.516c-.976.343-1.8.782-2.409 1.277-1.084.883-1.736 1.985-1.998 3.238-.255 1.222-.158 2.727.861 4.466 1.92 3.275 6.039 7.24 11.434 10.253a40.21 40.21 0 003.963 1.936c-.494.126-1.021.244-1.579.352-3.09.598-7.009.859-11.938.471-3.986-.314-5.969 1.349-6.773 2.75-.922 1.605-1.138 4.438 1.445 7.463 3.159 3.701 11.91 9.405 23.927 12.954 13.438 3.969 30.98 5.376 48.819-1.405 15.38-5.871 27.118-16.79 33.43-30.389 5.835-12.573 7.072-27.437 2.204-42.688 2.012-1.429 5.108-3.879 7.502-6.894 2.014-2.536 3.526-5.456 3.793-8.49a2.84 2.84 0 00-3.485-3.035l-3.248.842c.434-1.082.808-2.172 1.012-3.113.383-1.771.15-3.231-.387-4.086a3.36 3.36 0 00-1.841-1.433c-.78-.259-2.031-.317-3.535-.009-2.84.581-7.083 2.356-9.333 3.35a38.387 38.387 0 00-7.794-5.107c-3.057-1.499-6.729-2.735-10.77-3.053-6.354-.5-16.405 1.068-22.709 8.579-3.644 4.342-6.112 10.71-5.729 19.961-8.256-.641-16.085-2.819-23.392-6.878-7.478-4.154-14.391-10.288-20.682-18.722a3.578 3.578 0 00-5.92.316s-5.003 8.031-3.425 19.976a37.832 37.832 0 002.316 8.878l-.154-.003c-2.199-.023-3.86.859-4.915 2.336-.717 1.003-1.244 2.456-1.004 4.575.411 3.607 2.13 8.553 5.732 13.752 1.731 2.5 3.906 5.07 6.582 7.58zm101.602-51.231l-3.074 7.118a2.758 2.758 0 003.135 4.025l3.524-.847a19.45 19.45 0 01-.82 1.065c-3.288 3.998-8.086 6.732-8.086 6.732a3.008 3.008 0 00-1.322 3.584c4.865 14.376 3.763 28.36-1.877 40.031-5.758 11.914-16.264 21.381-29.911 26.367-10.201 3.739-20.259 4.503-29.322 3.643-12.914-1.225-23.812-5.779-30.208-9.937l-.32-.205c4.706-.022 8.442-.618 11.381-1.438 8.669-2.419 11.242-6.909 11.242-6.909a4.113 4.113 0 00-3.037-6.329c-3.984-.398-7.795-1.792-11.036-3.589-2.646-1.468-4.926-3.188-6.552-4.88 2.525-.157 5.275.192 5.275.192a4.025 4.025 0 002.554-7.426c-4.899-3.002-8.662-6.378-11.45-9.725-3.01-3.615-4.883-7.152-5.767-10.064.16.057.31.116.443.175 1.9.836 3.549 1.856 3.549 1.856a3.811 3.811 0 005.152-5.413c-3.842-5.413-5.655-10.496-6.298-14.929-.58-4-.217-7.439.371-10.035 5.959 6.7 12.35 11.749 19.113 15.366 9.317 4.985 19.333 7.283 29.92 7.395a3.113 3.113 0 003.147-3.489c-1.183-9.055.533-15.16 3.77-19.158 4.857-5.999 12.818-7.181 17.825-6.88 3.323.201 6.351 1.181 8.884 2.365 4.766 2.228 7.816 5.159 7.816 5.159.75.742 1.882.939 2.839.496 0 0 6.21-3.857 9.14-4.316zM14.481 98.981c-.468-.444-.623-.792-.245-.977.459-.225.4.376.245.977z"})]})}))}}}]); +//# sourceMappingURL=1104.44f78f48.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.a3e1cd1f.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.44f78f48.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.a3e1cd1f.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.44f78f48.chunk.js.map index d1f9c4183..b84956ee3 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.a3e1cd1f.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1104.44f78f48.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/1104.a3e1cd1f.chunk.js","mappings":"4JAyBA,UAtBuB,SAACA,GACtB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/TWITTER.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst TwitterAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n
\n \n \n );\n};\n\nexport default TwitterAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/1104.44f78f48.chunk.js","mappings":"4JAyBA,UAtBuB,SAACA,GACtB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/TWITTER.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst TwitterAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n
\n \n \n );\n};\n\nexport default TwitterAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.3f1f4288.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.0c47dc44.chunk.js similarity index 95% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.3f1f4288.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.0c47dc44.chunk.js index a3de681eb..d5afe50ba 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.3f1f4288.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.0c47dc44.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1187],{1187:function(e,n,a){a.r(n);var i=a(8489),l=(a(2791),a(9259)),s=a(184);n.default=function(e){return(0,s.jsx)(l.Z,(0,i.Z)((0,i.Z)({},e),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,s.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,s.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,s.jsx)("path",{fill:e.htmlColor||"#000",d:"M43.919 28.044a2.526 2.526 0 00-4.39-2.005s-4.317 4.726-8.949 10.134a252.323 252.323 0 00-5.781 6.973c-2.936 3.702-5.696 9.381-7.842 15.18-2.25 6.084-3.813 12.295-4.27 16.414-.589 5.346-2.07 24.963 11.759 39.217 7.41 7.638 19.252 13.81 38.169 15.23 20.106 1.439 33.837-6.196 42.733-17.689 7.125-9.205 11.098-20.996 12.634-32.683 1.705-12.98.389-25.812-2.632-34.743-2.777-8.147-7.949-15.299-13.905-21.261C88.049 9.403 70.859 2.018 70.859 2.018a3.465 3.465 0 00-4.602 4.481c4.231 10.065 3.339 19.01.151 26.089C63.491 39.063 58.73 44 54.296 46.805c-2.506 1.585-4.83 2.547-6.562 2.452-.944-.052-1.572-.685-2.07-1.522-.684-1.15-1.137-2.63-1.453-4.236-1.324-6.725-.292-15.455-.292-15.455zm-5.573 7.177c-.089 3.934.119 8.623 1.226 12.245 1.316 4.309 3.929 7.158 7.784 7.46 2.593.203 6.223-.818 10.033-3.112 5.339-3.215 11.133-8.95 14.757-16.57 3.087-6.49 4.599-14.344 2.924-23.183 5.706 3.31 13.945 8.764 20.994 16.043 5.058 5.223 9.515 11.398 11.814 18.458 4.213 12.772 4.261 34.333-3.734 51.209-6.747 14.241-19.476 25.037-41.014 23.697-16.539-.965-27.054-5.938-33.647-12.488-12.122-12.043-10.951-29.005-10.536-33.614.335-3.764 1.671-9.449 3.602-15.04 1.806-5.229 4.11-10.389 6.664-13.757a250.419 250.419 0 015.491-6.949 445.087 445.087 0 013.642-4.4v.001zm20.935 78.514s1.164 1.218 4.515 1.85c.846.16 1.843.277 2.998.22.88-.044 1.846-.205 2.896-.47 1.254-.315 2.578-.799 4.083-1.409a1.218 1.218 0 00-.591-2.362c-1.021.098-1.94.121-2.82.166-1.009.053-1.912.044-2.746.075-.642.023-1.231.06-1.775.09-.649.035-1.223.088-1.745.102-2.381.066-3.4-.243-3.4-.243a1.218 1.218 0 00-1.415 1.981zm-32.335-46.71s-2.825 7.737-1.909 17.262c.354 3.681 1.264 7.633 3.136 11.432 1.648 3.345 4.047 6.574 7.344 9.413 3.815 3.285 8.864 6.036 15.467 7.9a1.62 1.62 0 001.024-3.074c-4.696-1.822-8.382-4.111-11.348-6.611a30.405 30.405 0 01-5.176-5.618c-1.016-1.422-1.85-2.883-2.58-4.341-2.09-4.176-3.092-8.448-3.47-12.307-.718-7.348.612-13.116.612-13.116a1.62 1.62 0 00-3.1-.94z"})]})}))}}}]); -//# sourceMappingURL=1187.3f1f4288.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1187],{1187:function(e,n,a){a.r(n);var i=a(1413),l=(a(2791),a(9259)),s=a(184);n.default=function(e){return(0,s.jsx)(l.Z,(0,i.Z)((0,i.Z)({},e),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,s.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,s.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,s.jsx)("path",{fill:e.htmlColor||"#000",d:"M43.919 28.044a2.526 2.526 0 00-4.39-2.005s-4.317 4.726-8.949 10.134a252.323 252.323 0 00-5.781 6.973c-2.936 3.702-5.696 9.381-7.842 15.18-2.25 6.084-3.813 12.295-4.27 16.414-.589 5.346-2.07 24.963 11.759 39.217 7.41 7.638 19.252 13.81 38.169 15.23 20.106 1.439 33.837-6.196 42.733-17.689 7.125-9.205 11.098-20.996 12.634-32.683 1.705-12.98.389-25.812-2.632-34.743-2.777-8.147-7.949-15.299-13.905-21.261C88.049 9.403 70.859 2.018 70.859 2.018a3.465 3.465 0 00-4.602 4.481c4.231 10.065 3.339 19.01.151 26.089C63.491 39.063 58.73 44 54.296 46.805c-2.506 1.585-4.83 2.547-6.562 2.452-.944-.052-1.572-.685-2.07-1.522-.684-1.15-1.137-2.63-1.453-4.236-1.324-6.725-.292-15.455-.292-15.455zm-5.573 7.177c-.089 3.934.119 8.623 1.226 12.245 1.316 4.309 3.929 7.158 7.784 7.46 2.593.203 6.223-.818 10.033-3.112 5.339-3.215 11.133-8.95 14.757-16.57 3.087-6.49 4.599-14.344 2.924-23.183 5.706 3.31 13.945 8.764 20.994 16.043 5.058 5.223 9.515 11.398 11.814 18.458 4.213 12.772 4.261 34.333-3.734 51.209-6.747 14.241-19.476 25.037-41.014 23.697-16.539-.965-27.054-5.938-33.647-12.488-12.122-12.043-10.951-29.005-10.536-33.614.335-3.764 1.671-9.449 3.602-15.04 1.806-5.229 4.11-10.389 6.664-13.757a250.419 250.419 0 015.491-6.949 445.087 445.087 0 013.642-4.4v.001zm20.935 78.514s1.164 1.218 4.515 1.85c.846.16 1.843.277 2.998.22.88-.044 1.846-.205 2.896-.47 1.254-.315 2.578-.799 4.083-1.409a1.218 1.218 0 00-.591-2.362c-1.021.098-1.94.121-2.82.166-1.009.053-1.912.044-2.746.075-.642.023-1.231.06-1.775.09-.649.035-1.223.088-1.745.102-2.381.066-3.4-.243-3.4-.243a1.218 1.218 0 00-1.415 1.981zm-32.335-46.71s-2.825 7.737-1.909 17.262c.354 3.681 1.264 7.633 3.136 11.432 1.648 3.345 4.047 6.574 7.344 9.413 3.815 3.285 8.864 6.036 15.467 7.9a1.62 1.62 0 001.024-3.074c-4.696-1.822-8.382-4.111-11.348-6.611a30.405 30.405 0 01-5.176-5.618c-1.016-1.422-1.85-2.883-2.58-4.341-2.09-4.176-3.092-8.448-3.47-12.307-.718-7.348.612-13.116.612-13.116a1.62 1.62 0 00-3.1-.94z"})]})}))}}}]); +//# sourceMappingURL=1187.0c47dc44.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.3f1f4288.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.0c47dc44.chunk.js.map similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.3f1f4288.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.0c47dc44.chunk.js.map index 634d071ca..2039e0bf9 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.3f1f4288.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1187.0c47dc44.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/1187.3f1f4288.chunk.js","mappings":"4JAyBA,UAtBwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/MATCH.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst SettingsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n
\n \n \n );\n};\n\nexport default SettingsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/1187.0c47dc44.chunk.js","mappings":"4JAyBA,UAtBwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/MATCH.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst SettingsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default SettingsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.3e233fab.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.cda3f0b2.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.3e233fab.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.cda3f0b2.chunk.js index 1d75fa11d..d62e0e1b7 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.3e233fab.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.cda3f0b2.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1264],{1264:function(c,a,l){l.r(a);var i=l(8489),e=(l(2791),l(9259)),n=l(184);a.default=function(c){return(0,n.jsx)(e.Z,(0,i.Z)((0,i.Z)({},c),{},{children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,n.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,n.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,n.jsx)("clipPath",{id:"_clip1",children:(0,n.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,n.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,n.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{fill:"#2b3465",d:"M36.451 98.07c-6.811-5.643-10.329-12.592-10.828-20.066-1.454-21.768 31.364-33.901 62.962-33.901 31.598 0 59.882 13.785 59.291 32.707-.816 26.094-29.359 37.519-60.12 38.941-9.988.462-26.875-2.565-26.875-2.565-9.969 20.142-36.177 23.559-33.645 21.247 15.134-13.819 9.214-36.364 9.214-36.364l.001.001z"}),(0,n.jsx)("path",{fill:"#fff",d:"M34.352 99.342c.408 2.235 1.47 9.625-.473 17.62-1.262 5.191-3.851 10.642-8.884 15.017-1.491 1.296-1.377 2.725-1.132 3.685.221.862 1.171 2.484 3.778 2.732 1.957.186 6.877-.45 12.698-2.634 7.622-2.858 16.766-8.42 22.735-17.787 3.089.552 8.213 1.4 13.461 1.979 4.01.443 8.09.706 11.444.611 18.265-.605 35.832-4.66 47.937-12.928 10.443-7.133 16.984-17.298 17.406-30.657.244-10.923-6.966-20.778-19.355-27.527-11.734-6.391-28.113-10.127-45.382-9.867-17.328.349-34.936 4.198-47.425 11.096-12.026 6.643-19.418 16.036-18.394 27.512.389 4.295 1.649 8.416 3.884 12.228 1.883 3.213 4.427 6.223 7.702 8.92zm.572 30.764c2.358-3.882 3.761-7.981 4.51-11.944 2.071-10.959-.751-20.679-.751-20.679a2.302 2.302 0 00-.759-1.191c-2.945-2.559-5.179-5.38-6.752-8.379-1.672-3.189-2.541-6.59-2.692-10.1-.405-9.13 6.242-15.955 15.996-20.814 11.772-5.865 28.135-8.701 44.109-8.38 15.433.232 29.966 3.92 40.312 9.882 8.221 4.737 13.828 10.797 13.533 18.138-.299 9.647-5.238 16.806-12.709 22.057-10.611 7.457-26.047 11.283-42.187 12.24-2.969.191-6.59.063-10.157-.195-8.006-.579-15.736-1.793-15.736-1.793a4.306 4.306 0 00-4.619 2.328c-4.969 10.648-14.97 16.329-22.098 18.83zm.058-30.257c.143.119.301.22.469.3l-.001.001c-.265.573.988.231 1 .228-.355 0-.695-.081-.999-.229.026-.054.086-.074.166-.071l.833.3c-.021-.011-.548-.296-.833-.3l-.635-.229z"}),(0,n.jsx)("g",{fill:"#fff",fillRule:"nonzero",children:(0,n.jsx)("path",{d:"M62.965 66.921c1.334.738 2.355 1.716 3.064 2.936.709 1.22 1.035 2.596.979 4.127-.057 2.638-.88 5.333-2.468 8.085-1.646 2.865-3.589 4.553-5.83 5.063-.964.199-1.872-.071-2.723-.808a1.19 1.19 0 01-.298-.341c-.51-.312-.836-.666-.978-1.063-.539.113-1.107.085-1.702-.085-1.617-.398-2.752-1.249-3.404-2.553-.482-.908-.638-2-.468-3.277.142-1.078.489-2.035 1.042-2.872.553-.837 1.312-1.439 2.277-1.808 1.475-.568 3.035-.454 4.68.34.454-1.106.738-1.815.851-2.127.114-.256.333-.405.66-.447.326-.043.631-.028.914.042.284.071.539.149.766.234.426.199.809.461 1.149.788.341.326.44.673.298 1.042-1.39 3.461-2.156 5.39-2.298 5.787-.454 1.248-.751 2.34-.893 3.276.908-.822 1.787-2.042 2.638-3.659 1.447-2.808 2.085-5.376 1.915-7.702-.085-1.134-.383-2.028-.894-2.68a6.544 6.544 0 00-.383-.426c-.142-.113-.241-.17-.298-.17a.496.496 0 00-.127-.085.34.34 0 00-.128-.043l-.17-.085c-.256-.056-.412-.099-.468-.127-1.731-.369-3.73-.085-6 .851-2.071.879-3.829 2.219-5.276 4.021a16.204 16.204 0 00-3.064 6.106 16.421 16.421 0 00-.255 6.85c.397 2.354 1.277 4.085 2.638 5.191.227.199.482.355.766.468.341.114.723.199 1.149.255.964.114 1.971.029 3.021-.255 1.929-.539 3.986-1.773 6.17-3.702.51-.425 1.305-.354 2.383.213.964.511 1.389 1.021 1.276 1.532l-.255.383c-2.865 2.524-5.716 3.985-8.553 4.382-1.673.227-3.347.071-5.021-.468-1.673-.539-3.106-1.404-4.297-2.595-1.248-1.248-2.149-2.78-2.702-4.596a16.076 16.076 0 01-.702-5.467c.085-1.83.44-3.596 1.064-5.298a16.007 16.007 0 014.403-6.637c2.029-1.844 4.362-3.036 7-3.575 3.234-.68 6.085-.354 8.552.979zm-7.361 11.616c.199-.539.426-1.149.681-1.829a.677.677 0 01-.17-.128h-.043c-.454.028-.879.17-1.276.425-.908.596-1.489 1.575-1.745 2.936a6.196 6.196 0 00-.042 1.915c.17-.142.397-.383.681-.723.482-.539.95-1.092 1.404-1.66.085-.113.184-.212.298-.298.056-.198.127-.411.212-.638zM93.474 74.878c.255.34.319.652.191.936-.128.284-.404.44-.83.468-1.815.085-3.702.213-5.659.383a86.787 86.787 0 00-.595 3.191 99.746 99.746 0 012.638-.213c.453-.056.936.029 1.446.256.511.227.908.525 1.192.893.255.341.326.653.212.936-.113.284-.383.44-.808.468a84.872 84.872 0 00-5.191.511c-.851 5.219-1.39 9.942-1.617 14.169-.057.681-.61.908-1.659.681-1.05-.227-1.745-.653-2.085-1.277a1.132 1.132 0 01-.128-.51c.199-3.801.652-7.957 1.362-12.467l-2.213.425a258.056 258.056 0 00-.808 7.957c-.057.397-.305.638-.745.723-.44.085-.816.057-1.128-.085a5.085 5.085 0 01-1.361-.681c-.454-.312-.667-.666-.638-1.063.17-1.901.368-3.886.595-5.957-.681.17-1.347.34-2 .51-.453.114-.929.085-1.425-.085a4.525 4.525 0 01-1.34-.723 2.341 2.341 0 01-.319-.404 1.619 1.619 0 01-.213-.49.655.655 0 01.042-.468c.071-.141.22-.241.447-.298a76.963 76.963 0 015.191-1.191c.17-1.39.326-2.638.468-3.744-1.617.17-3.12.354-4.51.553-.454.057-.943-.036-1.468-.277-.525-.241-.929-.546-1.213-.915-.255-.34-.319-.645-.191-.914.127-.27.404-.433.83-.49 2.241-.283 4.552-.553 6.935-.808.255-1.674.511-3.333.766-4.978.114-.71.723-.908 1.83-.596.567.142 1.035.397 1.404.766.454.369.666.681.638.936-.17.993-.354 2.142-.553 3.446.879-.085 1.73-.156 2.553-.212.312-1.617.78-3.986 1.404-7.106.057-.255.255-.397.596-.426a3.2 3.2 0 01.978.064c.312.071.568.149.766.234 1.107.511 1.589 1.121 1.447 1.83-.426 2.127-.766 3.815-1.021 5.063 1.163-.085 2.198-.156 3.106-.213.482-.028.979.071 1.489.298.511.227.908.525 1.192.894zm-11.063 5.446c.198-1.049.397-2.156.595-3.319-.766.085-1.574.171-2.425.256-.17 1.191-.326 2.34-.468 3.446a65.51 65.51 0 012.298-.383zM98.197 90.664c-.426-.369-.624-.681-.596-.936a612.33 612.33 0 002.085-25.87c.028-.71.581-.937 1.659-.681 1.021.227 1.716.652 2.085 1.276.085.17.128.341.128.511a606.458 606.458 0 01-2.085 25.827c-.057.398-.305.639-.745.724-.439.085-.815.057-1.127-.085a3.964 3.964 0 01-1.404-.766zm1.276 2.68c.454-.453 1.22-.397 2.298.171.993.51 1.432 1.049 1.319 1.617l-.213.34a26.387 26.387 0 01-4 3.149c-.709.425-1.588.297-2.638-.383a3.84 3.84 0 01-.553-.468 2.274 2.274 0 01-.468-.681c-.113-.255-.028-.468.255-.638a27.976 27.976 0 004-3.107zM113.217 93.174c.453.284.766.596.936.936.17.426.113.71-.17.851a25.238 25.238 0 01-3.49 1.49c-.425.113-.893.085-1.404-.086-.51-.17-.95-.411-1.319-.723a1.623 1.623 0 01-.361-.404 1.677 1.677 0 01-.213-.468.607.607 0 01.042-.447c.071-.142.22-.255.447-.34a17.11 17.11 0 002.894-1.192c.737-.368 1.616-.241 2.638.383zM124.492 93.174c.454.284.766.596.936.936.171.426.114.71-.17.851a25.28 25.28 0 01-3.489 1.49c-.425.113-.893.085-1.404-.086a3.945 3.945 0 01-1.319-.723 1.647 1.647 0 01-.362-.404 1.702 1.702 0 01-.212-.468.607.607 0 01.042-.447c.071-.142.22-.255.447-.34a17.099 17.099 0 002.893-1.192c.738-.368 1.617-.241 2.638.383z"})})]})]})]})}))}}}]); -//# sourceMappingURL=1264.3e233fab.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1264],{1264:function(c,a,l){l.r(a);var i=l(1413),e=(l(2791),l(9259)),n=l(184);a.default=function(c){return(0,n.jsx)(e.Z,(0,i.Z)((0,i.Z)({},c),{},{children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,n.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,n.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,n.jsx)("clipPath",{id:"_clip1",children:(0,n.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,n.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,n.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{fill:"#2b3465",d:"M36.451 98.07c-6.811-5.643-10.329-12.592-10.828-20.066-1.454-21.768 31.364-33.901 62.962-33.901 31.598 0 59.882 13.785 59.291 32.707-.816 26.094-29.359 37.519-60.12 38.941-9.988.462-26.875-2.565-26.875-2.565-9.969 20.142-36.177 23.559-33.645 21.247 15.134-13.819 9.214-36.364 9.214-36.364l.001.001z"}),(0,n.jsx)("path",{fill:"#fff",d:"M34.352 99.342c.408 2.235 1.47 9.625-.473 17.62-1.262 5.191-3.851 10.642-8.884 15.017-1.491 1.296-1.377 2.725-1.132 3.685.221.862 1.171 2.484 3.778 2.732 1.957.186 6.877-.45 12.698-2.634 7.622-2.858 16.766-8.42 22.735-17.787 3.089.552 8.213 1.4 13.461 1.979 4.01.443 8.09.706 11.444.611 18.265-.605 35.832-4.66 47.937-12.928 10.443-7.133 16.984-17.298 17.406-30.657.244-10.923-6.966-20.778-19.355-27.527-11.734-6.391-28.113-10.127-45.382-9.867-17.328.349-34.936 4.198-47.425 11.096-12.026 6.643-19.418 16.036-18.394 27.512.389 4.295 1.649 8.416 3.884 12.228 1.883 3.213 4.427 6.223 7.702 8.92zm.572 30.764c2.358-3.882 3.761-7.981 4.51-11.944 2.071-10.959-.751-20.679-.751-20.679a2.302 2.302 0 00-.759-1.191c-2.945-2.559-5.179-5.38-6.752-8.379-1.672-3.189-2.541-6.59-2.692-10.1-.405-9.13 6.242-15.955 15.996-20.814 11.772-5.865 28.135-8.701 44.109-8.38 15.433.232 29.966 3.92 40.312 9.882 8.221 4.737 13.828 10.797 13.533 18.138-.299 9.647-5.238 16.806-12.709 22.057-10.611 7.457-26.047 11.283-42.187 12.24-2.969.191-6.59.063-10.157-.195-8.006-.579-15.736-1.793-15.736-1.793a4.306 4.306 0 00-4.619 2.328c-4.969 10.648-14.97 16.329-22.098 18.83zm.058-30.257c.143.119.301.22.469.3l-.001.001c-.265.573.988.231 1 .228-.355 0-.695-.081-.999-.229.026-.054.086-.074.166-.071l.833.3c-.021-.011-.548-.296-.833-.3l-.635-.229z"}),(0,n.jsx)("g",{fill:"#fff",fillRule:"nonzero",children:(0,n.jsx)("path",{d:"M62.965 66.921c1.334.738 2.355 1.716 3.064 2.936.709 1.22 1.035 2.596.979 4.127-.057 2.638-.88 5.333-2.468 8.085-1.646 2.865-3.589 4.553-5.83 5.063-.964.199-1.872-.071-2.723-.808a1.19 1.19 0 01-.298-.341c-.51-.312-.836-.666-.978-1.063-.539.113-1.107.085-1.702-.085-1.617-.398-2.752-1.249-3.404-2.553-.482-.908-.638-2-.468-3.277.142-1.078.489-2.035 1.042-2.872.553-.837 1.312-1.439 2.277-1.808 1.475-.568 3.035-.454 4.68.34.454-1.106.738-1.815.851-2.127.114-.256.333-.405.66-.447.326-.043.631-.028.914.042.284.071.539.149.766.234.426.199.809.461 1.149.788.341.326.44.673.298 1.042-1.39 3.461-2.156 5.39-2.298 5.787-.454 1.248-.751 2.34-.893 3.276.908-.822 1.787-2.042 2.638-3.659 1.447-2.808 2.085-5.376 1.915-7.702-.085-1.134-.383-2.028-.894-2.68a6.544 6.544 0 00-.383-.426c-.142-.113-.241-.17-.298-.17a.496.496 0 00-.127-.085.34.34 0 00-.128-.043l-.17-.085c-.256-.056-.412-.099-.468-.127-1.731-.369-3.73-.085-6 .851-2.071.879-3.829 2.219-5.276 4.021a16.204 16.204 0 00-3.064 6.106 16.421 16.421 0 00-.255 6.85c.397 2.354 1.277 4.085 2.638 5.191.227.199.482.355.766.468.341.114.723.199 1.149.255.964.114 1.971.029 3.021-.255 1.929-.539 3.986-1.773 6.17-3.702.51-.425 1.305-.354 2.383.213.964.511 1.389 1.021 1.276 1.532l-.255.383c-2.865 2.524-5.716 3.985-8.553 4.382-1.673.227-3.347.071-5.021-.468-1.673-.539-3.106-1.404-4.297-2.595-1.248-1.248-2.149-2.78-2.702-4.596a16.076 16.076 0 01-.702-5.467c.085-1.83.44-3.596 1.064-5.298a16.007 16.007 0 014.403-6.637c2.029-1.844 4.362-3.036 7-3.575 3.234-.68 6.085-.354 8.552.979zm-7.361 11.616c.199-.539.426-1.149.681-1.829a.677.677 0 01-.17-.128h-.043c-.454.028-.879.17-1.276.425-.908.596-1.489 1.575-1.745 2.936a6.196 6.196 0 00-.042 1.915c.17-.142.397-.383.681-.723.482-.539.95-1.092 1.404-1.66.085-.113.184-.212.298-.298.056-.198.127-.411.212-.638zM93.474 74.878c.255.34.319.652.191.936-.128.284-.404.44-.83.468-1.815.085-3.702.213-5.659.383a86.787 86.787 0 00-.595 3.191 99.746 99.746 0 012.638-.213c.453-.056.936.029 1.446.256.511.227.908.525 1.192.893.255.341.326.653.212.936-.113.284-.383.44-.808.468a84.872 84.872 0 00-5.191.511c-.851 5.219-1.39 9.942-1.617 14.169-.057.681-.61.908-1.659.681-1.05-.227-1.745-.653-2.085-1.277a1.132 1.132 0 01-.128-.51c.199-3.801.652-7.957 1.362-12.467l-2.213.425a258.056 258.056 0 00-.808 7.957c-.057.397-.305.638-.745.723-.44.085-.816.057-1.128-.085a5.085 5.085 0 01-1.361-.681c-.454-.312-.667-.666-.638-1.063.17-1.901.368-3.886.595-5.957-.681.17-1.347.34-2 .51-.453.114-.929.085-1.425-.085a4.525 4.525 0 01-1.34-.723 2.341 2.341 0 01-.319-.404 1.619 1.619 0 01-.213-.49.655.655 0 01.042-.468c.071-.141.22-.241.447-.298a76.963 76.963 0 015.191-1.191c.17-1.39.326-2.638.468-3.744-1.617.17-3.12.354-4.51.553-.454.057-.943-.036-1.468-.277-.525-.241-.929-.546-1.213-.915-.255-.34-.319-.645-.191-.914.127-.27.404-.433.83-.49 2.241-.283 4.552-.553 6.935-.808.255-1.674.511-3.333.766-4.978.114-.71.723-.908 1.83-.596.567.142 1.035.397 1.404.766.454.369.666.681.638.936-.17.993-.354 2.142-.553 3.446.879-.085 1.73-.156 2.553-.212.312-1.617.78-3.986 1.404-7.106.057-.255.255-.397.596-.426a3.2 3.2 0 01.978.064c.312.071.568.149.766.234 1.107.511 1.589 1.121 1.447 1.83-.426 2.127-.766 3.815-1.021 5.063 1.163-.085 2.198-.156 3.106-.213.482-.028.979.071 1.489.298.511.227.908.525 1.192.894zm-11.063 5.446c.198-1.049.397-2.156.595-3.319-.766.085-1.574.171-2.425.256-.17 1.191-.326 2.34-.468 3.446a65.51 65.51 0 012.298-.383zM98.197 90.664c-.426-.369-.624-.681-.596-.936a612.33 612.33 0 002.085-25.87c.028-.71.581-.937 1.659-.681 1.021.227 1.716.652 2.085 1.276.085.17.128.341.128.511a606.458 606.458 0 01-2.085 25.827c-.057.398-.305.639-.745.724-.439.085-.815.057-1.127-.085a3.964 3.964 0 01-1.404-.766zm1.276 2.68c.454-.453 1.22-.397 2.298.171.993.51 1.432 1.049 1.319 1.617l-.213.34a26.387 26.387 0 01-4 3.149c-.709.425-1.588.297-2.638-.383a3.84 3.84 0 01-.553-.468 2.274 2.274 0 01-.468-.681c-.113-.255-.028-.468.255-.638a27.976 27.976 0 004-3.107zM113.217 93.174c.453.284.766.596.936.936.17.426.113.71-.17.851a25.238 25.238 0 01-3.49 1.49c-.425.113-.893.085-1.404-.086-.51-.17-.95-.411-1.319-.723a1.623 1.623 0 01-.361-.404 1.677 1.677 0 01-.213-.468.607.607 0 01.042-.447c.071-.142.22-.255.447-.34a17.11 17.11 0 002.894-1.192c.737-.368 1.616-.241 2.638.383zM124.492 93.174c.454.284.766.596.936.936.171.426.114.71-.17.851a25.28 25.28 0 01-3.489 1.49c-.425.113-.893.085-1.404-.086a3.945 3.945 0 01-1.319-.723 1.647 1.647 0 01-.362-.404 1.702 1.702 0 01-.212-.468.607.607 0 01.042-.447c.071-.142.22-.255.447-.34a17.099 17.099 0 002.893-1.192c.738-.368 1.617-.241 2.638.383z"})})]})]})]})}))}}}]); +//# sourceMappingURL=1264.cda3f0b2.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.3e233fab.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.cda3f0b2.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.3e233fab.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.cda3f0b2.chunk.js.map index 8a3ccd29e..13b8d61ff 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.3e233fab.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1264.cda3f0b2.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/1264.3e233fab.chunk.js","mappings":"4JA2CA,UAxCwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,gTAEJ,iBACED,KAAK,OACLC,EAAE,wyCAEJ,cAAGD,KAAK,OAAON,SAAS,UAAxB,UACE,iBAAMO,EAAE","sources":["os/apps/icons/npwd_icons/app/MESSAGES.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MessagesAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default MessagesAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/1264.cda3f0b2.chunk.js","mappings":"4JA2CA,UAxCwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,gTAEJ,iBACED,KAAK,OACLC,EAAE,wyCAEJ,cAAGD,KAAK,OAAON,SAAS,UAAxB,UACE,iBAAMO,EAAE","sources":["os/apps/icons/npwd_icons/app/MESSAGES.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MessagesAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default MessagesAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.f61ef39e.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.ae115105.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.f61ef39e.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.ae115105.chunk.js index 559eb578f..bfd2b1dce 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.f61ef39e.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.ae115105.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1740],{1740:function(i,l,s){s.r(l);var e=s(8489),n=(s(2791),s(9259)),c=s(184);l.default=function(i){return(0,c.jsx)(n.Z,(0,e.Z)((0,e.Z)({},i),{},{children:(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,c.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,c.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,c.jsx)("clipPath",{id:"_clip1",children:(0,c.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,c.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,c.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,c.jsxs)("g",{children:[(0,c.jsx)("path",{fill:"#a25888",d:"M47.757 48.955L29.88 66.011l7.269 29.118 26.756 36.312 38.223 14.525 31.343-9.938-1.147-20.641-16.818-14.142-10.32-1.529-9.938 11.085-22.552-8.409-7.262-13.761 11.467-9.555-5.733-16.818-10.703-11.467-12.708-1.836z"}),(0,c.jsx)("path",{fill:"#fff",d:"M91.1 107.253c-.5-.11-3.811-1.343-5.703-2.523-2.593-1.617-5.034-3.696-7.024-5.261-3.146-3.224-5.052-6.328-6.494-8.424 2.566-1.094 5.528-3.355 7.946-7.885 1.637-3.025 1.674-7.972-.13-13.203-1.654-4.795-4.682-9.901-7.746-13.269-1.172-1.433-7.139-8.401-14.299-10.99-4.939-1.786-10.324-1.72-15.568 1.742-7.488 4.909-12.991 12.386-14.741 22.046-1.286 7.096-.4 15.487 3.699 25.106 1.986 4.713 5.062 10.885 9.072 17.235 3.428 5.428 7.59 10.922 12.332 15.784 4.63 4.783 9.908 8.854 15.1 12.258 6.258 4.102 12.461 7.093 17.371 9.021 12.816 4.147 24.185 4.21 33.182 1.391 8.632-2.704 15.335-7.753 19.328-14.51 3.151-5.334 3.431-10.974 1.794-16.256-2.722-8.783-10.691-16.232-10.691-16.232a5.23 5.23 0 00-.174-.16c-4.992-4.235-9.703-7.624-14.114-8.934-5.304-1.575-10.444-1.168-15.477 2.908-4.201 3.384-6.533 6.425-7.392 9.157-.105.333-.197.665-.271.999zM65.429 84.627c.743 1.319.624 1.376 2.004 1.246 2.025-.191 5.244-2.259 6.951-5.453 2.322-4.344-2.415-14.69-7.245-19.808 0 0-11.312-14.684-21.226-7.897-10.48 7.174-16.269 20.483-7.88 38.869 3.645 7.989 10.765 20.544 20.566 30.036 9.473 9.173 21.551 15.371 29.715 18.28 19.444 6.929 35.162 2.182 41.853-8.439 6.33-10.047-7.085-22.764-7.085-22.764-7.228-6.443-13.497-10.973-19.814-6.098-3.459 2.669-5.317 4.823-5.411 7.014-.008.182-.097 1.309.635 1.626.864.373.767.33 1.684.688 1.474.482 2.267 2.035 1.771 3.466s-2.03 1.932-3.57 1.719c-2.505-.346-8.951-2.746-9.693-3.092-2.267-.896-5.02-2.12-6.955-3.121-2.465-1.274-4.672-2.617-6.598-4.036-4.103-3.023-7.066-6.207-9.236-9.07-5.093-6.719-5.933-11.839-5.933-11.839-.377-1.464.541-2.951 2.05-3.317 1.509-.366 2.336.07 3.417 1.99zm7.382-46.162s14.152-2.748 29.965-.665c9.098 1.198 18.721 4.068 26.529 10.256 11.212 8.886 18.458 24.623 14.974 52.525-.241 1.673.962 3.22 2.685 3.454 1.723.235 3.317-.933 3.558-2.606 3.21-19.245 1.34-33.469-3.432-43.915-3.066-6.711-7.335-11.938-12.315-15.915-9.06-7.234-20.446-10.414-31.08-11.429-17.182-1.64-32.339 2.341-32.339 2.341-1.692.389-2.74 2.04-2.339 3.683.401 1.643 2.101 2.661 3.794 2.271zm10.474 12.419s7.799-.714 16.939 1.51c4.868 1.185 10.064 3.301 14.772 6.872 4.547 3.448 8.661 8.239 11.344 15.311 1.419 3.741 2.54 8.036 3.108 13.043.105 1.506 1.45 2.647 3.002 2.545 1.551-.101 2.726-1.407 2.622-2.913-.321-10.921-3.033-19.15-7.027-25.33-2.314-3.579-5.074-6.49-8.092-8.785-5.691-4.327-12.221-6.573-18.196-7.63-10.553-1.866-19.363-.026-19.363-.026-1.536.238-2.583 1.643-2.337 3.134.246 1.49 1.692 2.507 3.228 2.269zm7.436 18.268s4.599.71 9.399 3.095c1.709.85 3.457 1.896 5.037 3.346 2.209 2.027 4.268 4.651 5.151 8.659.225 1.674 1.808 2.856 3.533 2.638 1.725-.219 2.942-1.756 2.717-3.431-.461-7.718-3.919-12.924-8.278-16.112-2.697-1.973-5.783-3.08-8.559-3.692-5.038-1.112-9.069-.622-9.069-.622-1.74.018-3.136 1.404-3.117 3.093.019 1.689 1.447 3.044 3.186 3.026z"})]})]})]})}))}}}]); -//# sourceMappingURL=1740.f61ef39e.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1740],{1740:function(i,l,s){s.r(l);var e=s(1413),n=(s(2791),s(9259)),c=s(184);l.default=function(i){return(0,c.jsx)(n.Z,(0,e.Z)((0,e.Z)({},i),{},{children:(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,c.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,c.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,c.jsx)("clipPath",{id:"_clip1",children:(0,c.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,c.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,c.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,c.jsxs)("g",{children:[(0,c.jsx)("path",{fill:"#a25888",d:"M47.757 48.955L29.88 66.011l7.269 29.118 26.756 36.312 38.223 14.525 31.343-9.938-1.147-20.641-16.818-14.142-10.32-1.529-9.938 11.085-22.552-8.409-7.262-13.761 11.467-9.555-5.733-16.818-10.703-11.467-12.708-1.836z"}),(0,c.jsx)("path",{fill:"#fff",d:"M91.1 107.253c-.5-.11-3.811-1.343-5.703-2.523-2.593-1.617-5.034-3.696-7.024-5.261-3.146-3.224-5.052-6.328-6.494-8.424 2.566-1.094 5.528-3.355 7.946-7.885 1.637-3.025 1.674-7.972-.13-13.203-1.654-4.795-4.682-9.901-7.746-13.269-1.172-1.433-7.139-8.401-14.299-10.99-4.939-1.786-10.324-1.72-15.568 1.742-7.488 4.909-12.991 12.386-14.741 22.046-1.286 7.096-.4 15.487 3.699 25.106 1.986 4.713 5.062 10.885 9.072 17.235 3.428 5.428 7.59 10.922 12.332 15.784 4.63 4.783 9.908 8.854 15.1 12.258 6.258 4.102 12.461 7.093 17.371 9.021 12.816 4.147 24.185 4.21 33.182 1.391 8.632-2.704 15.335-7.753 19.328-14.51 3.151-5.334 3.431-10.974 1.794-16.256-2.722-8.783-10.691-16.232-10.691-16.232a5.23 5.23 0 00-.174-.16c-4.992-4.235-9.703-7.624-14.114-8.934-5.304-1.575-10.444-1.168-15.477 2.908-4.201 3.384-6.533 6.425-7.392 9.157-.105.333-.197.665-.271.999zM65.429 84.627c.743 1.319.624 1.376 2.004 1.246 2.025-.191 5.244-2.259 6.951-5.453 2.322-4.344-2.415-14.69-7.245-19.808 0 0-11.312-14.684-21.226-7.897-10.48 7.174-16.269 20.483-7.88 38.869 3.645 7.989 10.765 20.544 20.566 30.036 9.473 9.173 21.551 15.371 29.715 18.28 19.444 6.929 35.162 2.182 41.853-8.439 6.33-10.047-7.085-22.764-7.085-22.764-7.228-6.443-13.497-10.973-19.814-6.098-3.459 2.669-5.317 4.823-5.411 7.014-.008.182-.097 1.309.635 1.626.864.373.767.33 1.684.688 1.474.482 2.267 2.035 1.771 3.466s-2.03 1.932-3.57 1.719c-2.505-.346-8.951-2.746-9.693-3.092-2.267-.896-5.02-2.12-6.955-3.121-2.465-1.274-4.672-2.617-6.598-4.036-4.103-3.023-7.066-6.207-9.236-9.07-5.093-6.719-5.933-11.839-5.933-11.839-.377-1.464.541-2.951 2.05-3.317 1.509-.366 2.336.07 3.417 1.99zm7.382-46.162s14.152-2.748 29.965-.665c9.098 1.198 18.721 4.068 26.529 10.256 11.212 8.886 18.458 24.623 14.974 52.525-.241 1.673.962 3.22 2.685 3.454 1.723.235 3.317-.933 3.558-2.606 3.21-19.245 1.34-33.469-3.432-43.915-3.066-6.711-7.335-11.938-12.315-15.915-9.06-7.234-20.446-10.414-31.08-11.429-17.182-1.64-32.339 2.341-32.339 2.341-1.692.389-2.74 2.04-2.339 3.683.401 1.643 2.101 2.661 3.794 2.271zm10.474 12.419s7.799-.714 16.939 1.51c4.868 1.185 10.064 3.301 14.772 6.872 4.547 3.448 8.661 8.239 11.344 15.311 1.419 3.741 2.54 8.036 3.108 13.043.105 1.506 1.45 2.647 3.002 2.545 1.551-.101 2.726-1.407 2.622-2.913-.321-10.921-3.033-19.15-7.027-25.33-2.314-3.579-5.074-6.49-8.092-8.785-5.691-4.327-12.221-6.573-18.196-7.63-10.553-1.866-19.363-.026-19.363-.026-1.536.238-2.583 1.643-2.337 3.134.246 1.49 1.692 2.507 3.228 2.269zm7.436 18.268s4.599.71 9.399 3.095c1.709.85 3.457 1.896 5.037 3.346 2.209 2.027 4.268 4.651 5.151 8.659.225 1.674 1.808 2.856 3.533 2.638 1.725-.219 2.942-1.756 2.717-3.431-.461-7.718-3.919-12.924-8.278-16.112-2.697-1.973-5.783-3.08-8.559-3.692-5.038-1.112-9.069-.622-9.069-.622-1.74.018-3.136 1.404-3.117 3.093.019 1.689 1.447 3.044 3.186 3.026z"})]})]})]})}))}}}]); +//# sourceMappingURL=1740.ae115105.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.f61ef39e.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.ae115105.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.f61ef39e.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.ae115105.chunk.js.map index ab562fab3..4fe9ba057 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.f61ef39e.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1740.ae115105.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/1740.f61ef39e.chunk.js","mappings":"4JAwCA,UArCsB,SAACA,GACrB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,2NAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/DIALER.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst DialerAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default DialerAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/1740.ae115105.chunk.js","mappings":"4JAwCA,UArCsB,SAACA,GACrB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,2NAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/DIALER.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst DialerAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default DialerAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e773ba5b.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e453093d.chunk.js similarity index 80% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e773ba5b.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e453093d.chunk.js index 5d8e0c256..a64383d1a 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e773ba5b.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e453093d.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1864],{1864:function(n,s,e){e.r(s);var h=e(8489),l=(e(2791),e(9259)),t=e(184);s.default=function(n){return(0,t.jsx)(l.Z,(0,h.Z)((0,h.Z)({},n),{},{children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,t.jsx)("rect",{fill:"none"}),(0,t.jsx)("path",{d:"M19,3H4.99C3.89,3,3,3.9,3,5l0.01,14c0,1.1,0.89,2,1.99,2h10l6-6V5C21,3.9,20.1,3,19,3z M7,8h10v2H7V8z M12,14H7v-2h5V14z M14,19.5V14h5.5L14,19.5z"})]})}))}}}]); -//# sourceMappingURL=1864.e773ba5b.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[1864],{1864:function(n,s,e){e.r(s);var h=e(1413),l=(e(2791),e(9259)),t=e(184);s.default=function(n){return(0,t.jsx)(l.Z,(0,h.Z)((0,h.Z)({},n),{},{children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,t.jsx)("rect",{fill:"none"}),(0,t.jsx)("path",{d:"M19,3H4.99C3.89,3,3,3.9,3,5l0.01,14c0,1.1,0.89,2,1.99,2h10l6-6V5C21,3.9,20.1,3,19,3z M7,8h10v2H7V8z M12,14H7v-2h5V14z M14,19.5V14h5.5L14,19.5z"})]})}))}}}]); +//# sourceMappingURL=1864.e453093d.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e773ba5b.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e453093d.chunk.js.map similarity index 92% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e773ba5b.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e453093d.chunk.js.map index 233440b78..abe6253fe 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e773ba5b.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/1864.e453093d.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/1864.e773ba5b.chunk.js","mappings":"4JAaA,UAT2C,SAACA,GAAD,OACzC,SAAC,KAAD,kBAAaA,GAAb,cACE,iBAAKC,MAAM,6BAA6BC,QAAQ,YAAhD,WACE,iBAAMC,KAAK,UACX,iBAAMC,EAAE","sources":["os/apps/icons/material/misc/StickyNote.tsx"],"sourcesContent":["import { SvgIconProps } from '@mui/material/SvgIcon';\nimport React from 'react';\nimport { SvgIcon } from '@mui/material';\n\nconst StickyNote: React.FC = (props) => (\n \n \n \n \n \n \n);\n\nexport default StickyNote;\n"],"names":["props","xmlns","viewBox","fill","d"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/1864.e453093d.chunk.js","mappings":"4JAaA,UAT2C,SAACA,GAAD,OACzC,SAAC,KAAD,kBAAaA,GAAb,cACE,iBAAKC,MAAM,6BAA6BC,QAAQ,YAAhD,WACE,iBAAMC,KAAK,UACX,iBAAMC,EAAE","sources":["os/apps/icons/material/misc/StickyNote.tsx"],"sourcesContent":["import { SvgIconProps } from '@mui/material/SvgIcon';\nimport React from 'react';\nimport { SvgIcon } from '@mui/material';\n\nconst StickyNote: React.FC = (props) => (\n \n \n \n \n \n \n);\n\nexport default StickyNote;\n"],"names":["props","xmlns","viewBox","fill","d"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.df458e78.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.45d82eb7.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.df458e78.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.45d82eb7.chunk.js index 43bdd0c19..0327a9367 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.df458e78.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.45d82eb7.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[2038],{2038:function(c,l,h){h.r(l);var f=h(8489),i=(h(2791),h(9259)),a=h(184);l.default=function(c){return(0,a.jsx)(i.Z,(0,f.Z)((0,f.Z)({},c),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,a.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,a.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,a.jsx)("clipPath",{id:"_clip1",children:(0,a.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,a.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,a.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{fill:"#a25888",d:"M125.556 44.085a2.846 2.846 0 00-2.867-2.741c-21.536-2.067-41.711-2.015-68.084-.228-1.58.107-2.867 1.227-2.867 2.74 0 26.094-.088 59.787-2.393 87.915-.123 1.508 1.284 2.74 2.867 2.74 28.042 2.719 53.22 3.447 72.391 0 1.559-.281 2.867-1.227 2.867-2.74 1.22-28.062-.716-57.312-1.914-87.686z"}),(0,a.jsx)("path",{fill:"#fff",d:"M123.058 36.89l.039.002c-11.484-1.386-22.589-2.167-34.456-2.41-10.607-.216-21.809.02-34.427.598-2.644.124-4.932 1.438-6.456 3.22-1.285 1.502-1.981 3.424-2.018 5.556-.228 15.727-.609 34.214-1.331 52.573-.468 11.906-1.048 23.757-2.014 34.746a9.452 9.452 0 002.14 6.832c1.71 2.078 4.406 3.528 7.347 3.616 15.677 1.373 30.478 2.183 43.85 1.927 11.033-.211 21.105-1.136 29.932-2.868 2.321-.462 4.368-1.585 5.698-3.137 1.342-1.567 2.194-3.482 2.156-5.763.278-11.555.049-23.299-.484-35.237-.766-17.156-2.124-34.69-3.215-52.636-.031-1.965-.906-3.727-2.22-5.032-1.161-1.153-2.75-1.862-4.541-1.987zm2.498 7.195a2.846 2.846 0 00-2.867-2.741c-21.536-2.067-41.711-2.015-68.084-.228-1.58.107-2.867 1.227-2.867 2.74 0 26.094-.088 59.787-2.393 87.915-.123 1.508 1.284 2.74 2.867 2.74 28.042 2.719 53.22 3.447 72.391 0 1.559-.281 2.867-1.227 2.867-2.74 1.22-28.062-.716-57.312-1.914-87.686z"}),(0,a.jsx)("path",{fill:"#444e87",d:"M61.527 52.251l-1 19.25 56.25.5.5-18.75-55.75-1z"}),(0,a.jsx)("path",{fill:"#fff",d:"M118.634 53.695c-.071-.623-.43-1.42-1.341-2.077-.514-.37-1.889-.813-2.664-1.016-5.084-1.317-11.949-2.002-20.383-2.152-8.476-.15-18.552.278-29.995.952-1.653.117-3.115.574-3.7.915-1.775 1.033-2.228 2.585-2.259 3.918l-.084 15.943c-.052 1.359.334 2.981 2.071 4.167.661.452 2.354 1.121 4.398 1.098 10.71.044 20.635.052 29.605-.211a384.889 384.889 0 0019.874-1.093c1.589-.133 2.933-.559 3.451-.919 1.19-.825 1.618-1.861 1.64-2.811.333-2.702.462-5.454.351-8.257a58.223 58.223 0 00-.964-8.457zm-2.703.43c-.043-.277-29.041-2.26-51.319-.339-1.05.09-1.989.231-1.988.509-.093 5.979.272 11.218.048 16.097-.013.278.892.501 1.991.497 19.461.438 36.027.518 49.328-.157 1.082-.055 1.989-.232 1.988-.509.832-5.155.8-10.524-.048-16.098z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M73.417 90.142c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.297 3.223 3.297h6.445c1.779 0 3.223-1.478 3.223-3.297v-6.593z"}),(0,a.jsx)("path",{fill:"#fff",d:"M76.153 90.142c.592-1.176.069-2.116-.009-3.35-.02-.327-.238-.524-.317-.84-.099-.395-.358-.641-.576-.981-1.017-1.584-3.063-2.174-5.057-2.29l-6.445.146c-1.964.057-3.757.837-5.006 2.195-1.236 1.343-2.055 3.133-1.992 5.12l.21 6.593c.061 1.905.786 3.641 2.047 4.849 1.246 1.193 2.902 1.985 4.741 1.922l6.445-.243c1.749-.065 3.342-.763 4.447-1.979 1.089-1.199 1.813-2.786 1.75-4.549l-.238-6.593zm-2.736 0c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.297 3.223 3.297h6.445c1.779 0 3.223-1.478 3.223-3.297v-6.593z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M96.264 89.694c0-1.819-1.444-3.296-3.222-3.296h-6.446c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.446c1.778 0 3.222-1.477 3.222-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#fff",d:"M99.001 89.694c.188-1.724-.562-3.257-1.546-4.514-1.028-1.313-2.65-1.956-4.413-2.153l-6.446-.629c-1.997-.159-3.779.751-5.184 1.995-1.438 1.274-2.179 3.208-2.313 5.301l-.195 6.593c.049 2.163.859 4.153 2.295 5.52 1.421 1.353 3.307 2.266 5.397 2.162l6.446-.458c1.92-.166 3.696-.867 4.842-2.271 1.109-1.36 1.942-3.052 1.764-4.953l-.647-6.593zm-2.737 0c0-1.819-1.444-3.296-3.222-3.296h-6.446c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.446c1.778 0 3.222-1.477 3.222-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M74.224 114.364c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.445c1.779 0 3.223-1.477 3.223-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#fff",d:"M76.96 114.364c.189-1.725-.561-3.258-1.545-4.514-1.029-1.314-2.65-1.957-4.414-2.153l-6.445-.629c-1.997-.16-3.779.75-5.184 1.994-1.438 1.274-2.179 3.208-2.313 5.302l-.195 6.593c.049 2.163.858 4.152 2.295 5.52 1.42 1.352 3.307 2.265 5.397 2.162l6.445-.459c1.921-.166 3.697-.867 4.842-2.271 1.11-1.36 1.943-3.052 1.765-4.952l-.648-6.593zm-2.736 0c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.445c1.779 0 3.223-1.477 3.223-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M96.68 113.359c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.445c1.779 0 3.223-1.477 3.223-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#fff",d:"M99.416 113.359c.592-1.176.069-2.117-.009-3.35-.02-.327-.238-.525-.317-.84-.099-.395-.358-.642-.576-.982-1.017-1.584-3.063-2.174-5.057-2.289l-6.445.146c-1.964.057-3.757.837-5.006 2.195-1.236 1.343-2.055 3.133-1.992 5.12l.211 6.593c.06 1.904.785 3.64 2.046 4.848 1.246 1.193 2.902 1.985 4.741 1.922l6.445-.242c1.749-.066 3.342-.764 4.447-1.98 1.089-1.199 1.813-2.786 1.75-4.548l-.238-6.593zm-2.736 0c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.445c1.779 0 3.223-1.477 3.223-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#ffcd55",d:"M119.968 89.269c0-1.819-1.444-3.296-3.223-3.296H110.3c-1.779 0-3.223 1.477-3.223 3.296v29.986c0 1.82 1.444 3.297 3.223 3.297h6.445c1.779 0 3.223-1.477 3.223-3.297V89.269z"}),(0,a.jsx)("path",{fill:"#fff",d:"M122.704 89.269c.094-1.703-.614-3.233-1.645-4.412-1.055-1.208-2.61-1.876-4.314-1.974l-6.445-.353c-1.836-.092-3.483.713-4.747 1.884-1.287 1.193-1.999 2.942-2.091 4.855 0 0-.47 9.633-.688 17.992-.166 6.373-.167 11.994-.167 11.994.025 2.167.869 4.137 2.275 5.542 1.4 1.399 3.307 2.291 5.418 2.265l6.445-.163c2.052-.063 3.929-.872 5.231-2.294 1.287-1.406 2.149-3.274 2.075-5.35l-1.347-29.986zm-2.736 0c0-1.819-1.444-3.296-3.223-3.296H110.3c-1.779 0-3.223 1.477-3.223 3.296v29.986c0 1.82 1.444 3.297 3.223 3.297h6.445c1.779 0 3.223-1.477 3.223-3.297V89.269z"})]})]})]})}))}}}]); -//# sourceMappingURL=2038.df458e78.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[2038],{2038:function(c,l,h){h.r(l);var f=h(1413),i=(h(2791),h(9259)),a=h(184);l.default=function(c){return(0,a.jsx)(i.Z,(0,f.Z)((0,f.Z)({},c),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,a.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,a.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,a.jsx)("clipPath",{id:"_clip1",children:(0,a.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,a.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,a.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{fill:"#a25888",d:"M125.556 44.085a2.846 2.846 0 00-2.867-2.741c-21.536-2.067-41.711-2.015-68.084-.228-1.58.107-2.867 1.227-2.867 2.74 0 26.094-.088 59.787-2.393 87.915-.123 1.508 1.284 2.74 2.867 2.74 28.042 2.719 53.22 3.447 72.391 0 1.559-.281 2.867-1.227 2.867-2.74 1.22-28.062-.716-57.312-1.914-87.686z"}),(0,a.jsx)("path",{fill:"#fff",d:"M123.058 36.89l.039.002c-11.484-1.386-22.589-2.167-34.456-2.41-10.607-.216-21.809.02-34.427.598-2.644.124-4.932 1.438-6.456 3.22-1.285 1.502-1.981 3.424-2.018 5.556-.228 15.727-.609 34.214-1.331 52.573-.468 11.906-1.048 23.757-2.014 34.746a9.452 9.452 0 002.14 6.832c1.71 2.078 4.406 3.528 7.347 3.616 15.677 1.373 30.478 2.183 43.85 1.927 11.033-.211 21.105-1.136 29.932-2.868 2.321-.462 4.368-1.585 5.698-3.137 1.342-1.567 2.194-3.482 2.156-5.763.278-11.555.049-23.299-.484-35.237-.766-17.156-2.124-34.69-3.215-52.636-.031-1.965-.906-3.727-2.22-5.032-1.161-1.153-2.75-1.862-4.541-1.987zm2.498 7.195a2.846 2.846 0 00-2.867-2.741c-21.536-2.067-41.711-2.015-68.084-.228-1.58.107-2.867 1.227-2.867 2.74 0 26.094-.088 59.787-2.393 87.915-.123 1.508 1.284 2.74 2.867 2.74 28.042 2.719 53.22 3.447 72.391 0 1.559-.281 2.867-1.227 2.867-2.74 1.22-28.062-.716-57.312-1.914-87.686z"}),(0,a.jsx)("path",{fill:"#444e87",d:"M61.527 52.251l-1 19.25 56.25.5.5-18.75-55.75-1z"}),(0,a.jsx)("path",{fill:"#fff",d:"M118.634 53.695c-.071-.623-.43-1.42-1.341-2.077-.514-.37-1.889-.813-2.664-1.016-5.084-1.317-11.949-2.002-20.383-2.152-8.476-.15-18.552.278-29.995.952-1.653.117-3.115.574-3.7.915-1.775 1.033-2.228 2.585-2.259 3.918l-.084 15.943c-.052 1.359.334 2.981 2.071 4.167.661.452 2.354 1.121 4.398 1.098 10.71.044 20.635.052 29.605-.211a384.889 384.889 0 0019.874-1.093c1.589-.133 2.933-.559 3.451-.919 1.19-.825 1.618-1.861 1.64-2.811.333-2.702.462-5.454.351-8.257a58.223 58.223 0 00-.964-8.457zm-2.703.43c-.043-.277-29.041-2.26-51.319-.339-1.05.09-1.989.231-1.988.509-.093 5.979.272 11.218.048 16.097-.013.278.892.501 1.991.497 19.461.438 36.027.518 49.328-.157 1.082-.055 1.989-.232 1.988-.509.832-5.155.8-10.524-.048-16.098z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M73.417 90.142c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.297 3.223 3.297h6.445c1.779 0 3.223-1.478 3.223-3.297v-6.593z"}),(0,a.jsx)("path",{fill:"#fff",d:"M76.153 90.142c.592-1.176.069-2.116-.009-3.35-.02-.327-.238-.524-.317-.84-.099-.395-.358-.641-.576-.981-1.017-1.584-3.063-2.174-5.057-2.29l-6.445.146c-1.964.057-3.757.837-5.006 2.195-1.236 1.343-2.055 3.133-1.992 5.12l.21 6.593c.061 1.905.786 3.641 2.047 4.849 1.246 1.193 2.902 1.985 4.741 1.922l6.445-.243c1.749-.065 3.342-.763 4.447-1.979 1.089-1.199 1.813-2.786 1.75-4.549l-.238-6.593zm-2.736 0c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.297 3.223 3.297h6.445c1.779 0 3.223-1.478 3.223-3.297v-6.593z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M96.264 89.694c0-1.819-1.444-3.296-3.222-3.296h-6.446c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.446c1.778 0 3.222-1.477 3.222-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#fff",d:"M99.001 89.694c.188-1.724-.562-3.257-1.546-4.514-1.028-1.313-2.65-1.956-4.413-2.153l-6.446-.629c-1.997-.159-3.779.751-5.184 1.995-1.438 1.274-2.179 3.208-2.313 5.301l-.195 6.593c.049 2.163.859 4.153 2.295 5.52 1.421 1.353 3.307 2.266 5.397 2.162l6.446-.458c1.92-.166 3.696-.867 4.842-2.271 1.109-1.36 1.942-3.052 1.764-4.953l-.647-6.593zm-2.737 0c0-1.819-1.444-3.296-3.222-3.296h-6.446c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.446c1.778 0 3.222-1.477 3.222-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M74.224 114.364c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.445c1.779 0 3.223-1.477 3.223-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#fff",d:"M76.96 114.364c.189-1.725-.561-3.258-1.545-4.514-1.029-1.314-2.65-1.957-4.414-2.153l-6.445-.629c-1.997-.16-3.779.75-5.184 1.994-1.438 1.274-2.179 3.208-2.313 5.302l-.195 6.593c.049 2.163.858 4.152 2.295 5.52 1.42 1.352 3.307 2.265 5.397 2.162l6.445-.459c1.921-.166 3.697-.867 4.842-2.271 1.11-1.36 1.943-3.052 1.765-4.952l-.648-6.593zm-2.736 0c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.445c1.779 0 3.223-1.477 3.223-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M96.68 113.359c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.445c1.779 0 3.223-1.477 3.223-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#fff",d:"M99.416 113.359c.592-1.176.069-2.117-.009-3.35-.02-.327-.238-.525-.317-.84-.099-.395-.358-.642-.576-.982-1.017-1.584-3.063-2.174-5.057-2.289l-6.445.146c-1.964.057-3.757.837-5.006 2.195-1.236 1.343-2.055 3.133-1.992 5.12l.211 6.593c.06 1.904.785 3.64 2.046 4.848 1.246 1.193 2.902 1.985 4.741 1.922l6.445-.242c1.749-.066 3.342-.764 4.447-1.98 1.089-1.199 1.813-2.786 1.75-4.548l-.238-6.593zm-2.736 0c0-1.819-1.444-3.296-3.223-3.296h-6.445c-1.779 0-3.223 1.477-3.223 3.296v6.593c0 1.819 1.444 3.296 3.223 3.296h6.445c1.779 0 3.223-1.477 3.223-3.296v-6.593z"}),(0,a.jsx)("path",{fill:"#ffcd55",d:"M119.968 89.269c0-1.819-1.444-3.296-3.223-3.296H110.3c-1.779 0-3.223 1.477-3.223 3.296v29.986c0 1.82 1.444 3.297 3.223 3.297h6.445c1.779 0 3.223-1.477 3.223-3.297V89.269z"}),(0,a.jsx)("path",{fill:"#fff",d:"M122.704 89.269c.094-1.703-.614-3.233-1.645-4.412-1.055-1.208-2.61-1.876-4.314-1.974l-6.445-.353c-1.836-.092-3.483.713-4.747 1.884-1.287 1.193-1.999 2.942-2.091 4.855 0 0-.47 9.633-.688 17.992-.166 6.373-.167 11.994-.167 11.994.025 2.167.869 4.137 2.275 5.542 1.4 1.399 3.307 2.291 5.418 2.265l6.445-.163c2.052-.063 3.929-.872 5.231-2.294 1.287-1.406 2.149-3.274 2.075-5.35l-1.347-29.986zm-2.736 0c0-1.819-1.444-3.296-3.223-3.296H110.3c-1.779 0-3.223 1.477-3.223 3.296v29.986c0 1.82 1.444 3.297 3.223 3.297h6.445c1.779 0 3.223-1.477 3.223-3.297V89.269z"})]})]})]})}))}}}]); +//# sourceMappingURL=2038.45d82eb7.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.df458e78.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.45d82eb7.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.df458e78.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.45d82eb7.chunk.js.map index aa9da4347..bf25d8c23 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.df458e78.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/2038.45d82eb7.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/2038.df458e78.chunk.js","mappings":"4JAqFA,UAlF0B,SAACA,GACzB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,sSAEJ,iBACED,KAAK,OACLC,EAAE,+2BAEJ,iBAAMD,KAAK,UAAUC,EAAE,sDACvB,iBACED,KAAK,OACLC,EAAE,mtBAEJ,iBACED,KAAK,UACLC,EAAE,gLAEJ,iBACED,KAAK,OACLC,EAAE,gjBAEJ,iBACED,KAAK,UACLC,EAAE,gLAEJ,iBACED,KAAK,OACLC,EAAE,4fAEJ,iBACED,KAAK,UACLC,EAAE,iLAEJ,iBACED,KAAK,OACLC,EAAE,yfAEJ,iBACED,KAAK,UACLC,EAAE,gLAEJ,iBACED,KAAK,OACLC,EAAE,gjBAEJ,iBACED,KAAK,UACLC,EAAE,gLAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/CALCULATOR.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst CalculatorAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default CalculatorAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/2038.45d82eb7.chunk.js","mappings":"4JAqFA,UAlF0B,SAACA,GACzB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,sSAEJ,iBACED,KAAK,OACLC,EAAE,+2BAEJ,iBAAMD,KAAK,UAAUC,EAAE,sDACvB,iBACED,KAAK,OACLC,EAAE,mtBAEJ,iBACED,KAAK,UACLC,EAAE,gLAEJ,iBACED,KAAK,OACLC,EAAE,gjBAEJ,iBACED,KAAK,UACLC,EAAE,gLAEJ,iBACED,KAAK,OACLC,EAAE,4fAEJ,iBACED,KAAK,UACLC,EAAE,iLAEJ,iBACED,KAAK,OACLC,EAAE,yfAEJ,iBACED,KAAK,UACLC,EAAE,gLAEJ,iBACED,KAAK,OACLC,EAAE,gjBAEJ,iBACED,KAAK,UACLC,EAAE,gLAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/CALCULATOR.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst CalculatorAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default CalculatorAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.01c77e65.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.647d86bd.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.01c77e65.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.647d86bd.chunk.js index 1c3d79adf..b9a19fb43 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.01c77e65.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.647d86bd.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[2798],{2798:function(l,c,a){a.r(c);var i=a(8489),s=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#c1365b",d:"M44.306 64.705l89.146.254 9.134 71.051s-9.464-3.681-16.824.526c-7.361 4.206-83.598 2.628-83.598 2.628l2.142-74.459z"}),(0,e.jsx)("path",{fill:"#fff",d:"M93.841 28.166c-2.814-1.213-6.161-1.425-10.116-1.509-12.572.242-18.095 6.625-21.315 15.708-2.097 5.918-3.903 12.698-3.569 19.047l.017.308-11.194-.007a3.314 3.314 0 00-3.358 2.992l-8.635 75.413a4.611 4.611 0 004.589 5.057s26.65.414 49.73.577c17.618.124 33.153.082 33.153.082a5.269 5.269 0 004.86-3.233l15.181-.211a5.276 5.276 0 005.112-6.029s-1.924-12.8-4.313-27.286c-3.13-18.984-7.015-40.85-7.015-40.85a3.824 3.824 0 00-3.516-3.266l-5.13-.194c.672-3.366 1.487-8.944 1.062-14.777-.314-4.308-1.888-8.869-3.983-12.712-3.325-6.099-8.634-10.093-18.664-11.057-5.158-.236-9.517.192-12.896 1.947zM59.55 68.768l-10.563-.818-3.728 67.929c8.799-.126 27.733-.383 44.731-.502 10.182-.072 19.669-.089 25.863-.09l-.097-10.462c-.209-1.637-.6-28.861-.848-34.393-.345-7.7.4-16.23.148-20.674l-10.165.636a102.328 102.328 0 01-1.511 5.852 6.256 6.256 0 011.761 4.358 6.279 6.279 0 01-6.276 6.276 6.279 6.279 0 01-6.276-6.276 6.281 6.281 0 014.044-5.867 92.93 92.93 0 00.79-4.611l-10.067-.361a3.302 3.302 0 01-3.735-.134l-16.454-.59c.112 2.018.279 3.815.444 5.273a6.282 6.282 0 014.057 5.872 6.279 6.279 0 01-6.276 6.276 6.279 6.279 0 01-6.276-6.276c0-1.65.638-3.152 1.68-4.273-.396-1.869-.86-4.329-1.246-7.145zm62.083 2.66c.387 4.554.946 11.392 1.433 18.362.393 5.624.728 11.333.914 16.009.144 3.882.655 8.689 1.255 13.44.593 4.708 1.289 9.36 1.87 13.032l9.95-.268c-.69-5.111-1.739-13.017-2.799-21.52-1.857-14.891-3.771-31.594-4.523-38.224l-8.1-.831zm-.278-6.927c.361-3.731.726-11.951-1.978-18.878-1.935-4.959-5.839-9.038-13.535-9.335a17.997 17.997 0 00-2.882-.046c1.167 1.969 2.051 4.152 2.692 6.481 1.315 4.77 1.566 10.178 1.162 15.394a73.631 73.631 0 01-.375 3.633l10.282.006a4.53 4.53 0 014.072 2.724l.562.021zm-27.288-23.48c-.089.122-.176.246-.261.371-4.149 6.087-4.985 14.943-5.067 20.347l9.505.006c.246-5.371-.076-11.255-1.77-16.199-.577-1.682-1.36-3.221-2.407-4.525zm-8.782-4.243a18.58 18.58 0 00-1.56-.029c-7.383-.142-11.411 3.741-13.621 8.95-2.064 4.868-2.852 10.674-3.031 16.026l14.461.009c-.245-2.675-.405-6.066-.198-9.665.298-5.171 1.446-10.7 3.949-15.291z"}),(0,e.jsx)("path",{fill:"#fff",fillRule:"nonzero",d:"M78.073 114.796c.707-.125 1.135-.482 1.356-.95.251-.529.215-1.152-.337-1.819a3.805 3.805 0 00-1.607-1.176c-.136-.927-.328-2.179-.576-3.757a339.37 339.37 0 01-.652-4.279l-.003-.016c-.135-.842-.333-2.12-.591-3.833a805.162 805.162 0 00-.592-3.881c-.088-.634-.418-1.186-1.032-1.631a4.468 4.468 0 00-1.493-.71c-.34-.158-.843-.237-1.518-.146-.633.086-1.017.362-1.229.684a1.394 1.394 0 00-.207.997l.309 2.091c-.589.124-.957.469-1.145.907l-.007.017a6652.127 6652.127 0 01-6.061 14.936l-.198.026c-.26.034-.447.054-.56.054a.92.92 0 00-.117.008c-.783.104-1.248.475-1.483.971-.248.523-.219 1.132.276 1.792.178.238.397.456.66.652-.45 1.094-.899 2.225-1.348 3.393-.26.638-.153 1.298.485 1.936a4.15 4.15 0 001.37.92c.26.127.555.234.882.315.375.094.778.116 1.209.06.7-.091 1.114-.45 1.307-.989.268-.615.663-1.562 1.179-2.826.4-.98.72-1.778.959-2.395.735-.085 1.713-.208 2.933-.37 1.039-.138 1.9-.248 2.583-.33l.365 2.441c.218 1.462.897 5.507.897 5.507.123.616.459 1.148 1.034 1.579a4.23 4.23 0 001.49.72c.334.155.843.235 1.529.145.661-.087 1.048-.38 1.249-.706.17-.276.246-.613.162-1.021l.341 2.239c-1.034-6.84-1.341-8.473-1.819-11.555zm13.686-16.819l.13.056c.149.042.278.084.387.127.079.044.173.09.282.133l.203.111c.499.31.881.582 1.145.822l.033.028c.396.326.743.722 1.046 1.188.01.015.02.031.032.045.612.825.98 1.718 1.098 2.684.12.987.051 1.913-.213 2.78-.28.915-.721 1.862-1.319 2.841a20.064 20.064 0 01-1.897 2.642c-.663.77-1.394 1.54-2.19 2.31-.52.496-1.012.948-1.476 1.354a811.113 811.113 0 001.464-13.623c.046-.41-.148-1.022-.85-1.677a4.203 4.203 0 00-1.667-.888c-.415-.174-.923-.232-1.513-.137-.875.141-1.341.636-1.454 1.426l-.004.038a728.796 728.796 0 01-2.047 18.291c-.073.016-.145.03-.218.043-.782.112-1.236.471-1.467.933-.253.506-.238 1.116.268 1.79a.055.055 0 00.006.008c.349.454.847.847 1.51 1.161.718.34 1.366.427 1.934.315 3.137-.516 6.263-2.199 9.35-5.085 3.251-2.997 5.384-5.78 6.43-8.324v-.001c.683-1.663.942-3.363.778-5.1-.164-1.745-.765-3.365-1.808-4.856a12.931 12.931 0 00-2.346-2.567 14.037 14.037 0 00-2.968-1.92 15.736 15.736 0 00-3.265-1.146c-4.132-.997-8.509-.444-13.125 1.693l-.024.012a2.287 2.287 0 00-.599.411 1.016 1.016 0 00-.062.069c-.611.752-.537 1.819 1.015 2.853a.2.2 0 01.01.007c1.259.814 2.303.935 3.081.602l.016-.007c3.259-1.475 6.139-2.092 8.648-1.807l.011.001c.485.049 1.03.172 1.635.364zm-22.54 13.411c.444-1.087.987-2.422 1.628-4.006l.544-1.345.205 1.367c.22 1.482.403 2.692.55 3.631l-2.927.353z"})]})]})]})}))}}}]); -//# sourceMappingURL=2798.01c77e65.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[2798],{2798:function(l,c,a){a.r(c);var i=a(1413),s=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#c1365b",d:"M44.306 64.705l89.146.254 9.134 71.051s-9.464-3.681-16.824.526c-7.361 4.206-83.598 2.628-83.598 2.628l2.142-74.459z"}),(0,e.jsx)("path",{fill:"#fff",d:"M93.841 28.166c-2.814-1.213-6.161-1.425-10.116-1.509-12.572.242-18.095 6.625-21.315 15.708-2.097 5.918-3.903 12.698-3.569 19.047l.017.308-11.194-.007a3.314 3.314 0 00-3.358 2.992l-8.635 75.413a4.611 4.611 0 004.589 5.057s26.65.414 49.73.577c17.618.124 33.153.082 33.153.082a5.269 5.269 0 004.86-3.233l15.181-.211a5.276 5.276 0 005.112-6.029s-1.924-12.8-4.313-27.286c-3.13-18.984-7.015-40.85-7.015-40.85a3.824 3.824 0 00-3.516-3.266l-5.13-.194c.672-3.366 1.487-8.944 1.062-14.777-.314-4.308-1.888-8.869-3.983-12.712-3.325-6.099-8.634-10.093-18.664-11.057-5.158-.236-9.517.192-12.896 1.947zM59.55 68.768l-10.563-.818-3.728 67.929c8.799-.126 27.733-.383 44.731-.502 10.182-.072 19.669-.089 25.863-.09l-.097-10.462c-.209-1.637-.6-28.861-.848-34.393-.345-7.7.4-16.23.148-20.674l-10.165.636a102.328 102.328 0 01-1.511 5.852 6.256 6.256 0 011.761 4.358 6.279 6.279 0 01-6.276 6.276 6.279 6.279 0 01-6.276-6.276 6.281 6.281 0 014.044-5.867 92.93 92.93 0 00.79-4.611l-10.067-.361a3.302 3.302 0 01-3.735-.134l-16.454-.59c.112 2.018.279 3.815.444 5.273a6.282 6.282 0 014.057 5.872 6.279 6.279 0 01-6.276 6.276 6.279 6.279 0 01-6.276-6.276c0-1.65.638-3.152 1.68-4.273-.396-1.869-.86-4.329-1.246-7.145zm62.083 2.66c.387 4.554.946 11.392 1.433 18.362.393 5.624.728 11.333.914 16.009.144 3.882.655 8.689 1.255 13.44.593 4.708 1.289 9.36 1.87 13.032l9.95-.268c-.69-5.111-1.739-13.017-2.799-21.52-1.857-14.891-3.771-31.594-4.523-38.224l-8.1-.831zm-.278-6.927c.361-3.731.726-11.951-1.978-18.878-1.935-4.959-5.839-9.038-13.535-9.335a17.997 17.997 0 00-2.882-.046c1.167 1.969 2.051 4.152 2.692 6.481 1.315 4.77 1.566 10.178 1.162 15.394a73.631 73.631 0 01-.375 3.633l10.282.006a4.53 4.53 0 014.072 2.724l.562.021zm-27.288-23.48c-.089.122-.176.246-.261.371-4.149 6.087-4.985 14.943-5.067 20.347l9.505.006c.246-5.371-.076-11.255-1.77-16.199-.577-1.682-1.36-3.221-2.407-4.525zm-8.782-4.243a18.58 18.58 0 00-1.56-.029c-7.383-.142-11.411 3.741-13.621 8.95-2.064 4.868-2.852 10.674-3.031 16.026l14.461.009c-.245-2.675-.405-6.066-.198-9.665.298-5.171 1.446-10.7 3.949-15.291z"}),(0,e.jsx)("path",{fill:"#fff",fillRule:"nonzero",d:"M78.073 114.796c.707-.125 1.135-.482 1.356-.95.251-.529.215-1.152-.337-1.819a3.805 3.805 0 00-1.607-1.176c-.136-.927-.328-2.179-.576-3.757a339.37 339.37 0 01-.652-4.279l-.003-.016c-.135-.842-.333-2.12-.591-3.833a805.162 805.162 0 00-.592-3.881c-.088-.634-.418-1.186-1.032-1.631a4.468 4.468 0 00-1.493-.71c-.34-.158-.843-.237-1.518-.146-.633.086-1.017.362-1.229.684a1.394 1.394 0 00-.207.997l.309 2.091c-.589.124-.957.469-1.145.907l-.007.017a6652.127 6652.127 0 01-6.061 14.936l-.198.026c-.26.034-.447.054-.56.054a.92.92 0 00-.117.008c-.783.104-1.248.475-1.483.971-.248.523-.219 1.132.276 1.792.178.238.397.456.66.652-.45 1.094-.899 2.225-1.348 3.393-.26.638-.153 1.298.485 1.936a4.15 4.15 0 001.37.92c.26.127.555.234.882.315.375.094.778.116 1.209.06.7-.091 1.114-.45 1.307-.989.268-.615.663-1.562 1.179-2.826.4-.98.72-1.778.959-2.395.735-.085 1.713-.208 2.933-.37 1.039-.138 1.9-.248 2.583-.33l.365 2.441c.218 1.462.897 5.507.897 5.507.123.616.459 1.148 1.034 1.579a4.23 4.23 0 001.49.72c.334.155.843.235 1.529.145.661-.087 1.048-.38 1.249-.706.17-.276.246-.613.162-1.021l.341 2.239c-1.034-6.84-1.341-8.473-1.819-11.555zm13.686-16.819l.13.056c.149.042.278.084.387.127.079.044.173.09.282.133l.203.111c.499.31.881.582 1.145.822l.033.028c.396.326.743.722 1.046 1.188.01.015.02.031.032.045.612.825.98 1.718 1.098 2.684.12.987.051 1.913-.213 2.78-.28.915-.721 1.862-1.319 2.841a20.064 20.064 0 01-1.897 2.642c-.663.77-1.394 1.54-2.19 2.31-.52.496-1.012.948-1.476 1.354a811.113 811.113 0 001.464-13.623c.046-.41-.148-1.022-.85-1.677a4.203 4.203 0 00-1.667-.888c-.415-.174-.923-.232-1.513-.137-.875.141-1.341.636-1.454 1.426l-.004.038a728.796 728.796 0 01-2.047 18.291c-.073.016-.145.03-.218.043-.782.112-1.236.471-1.467.933-.253.506-.238 1.116.268 1.79a.055.055 0 00.006.008c.349.454.847.847 1.51 1.161.718.34 1.366.427 1.934.315 3.137-.516 6.263-2.199 9.35-5.085 3.251-2.997 5.384-5.78 6.43-8.324v-.001c.683-1.663.942-3.363.778-5.1-.164-1.745-.765-3.365-1.808-4.856a12.931 12.931 0 00-2.346-2.567 14.037 14.037 0 00-2.968-1.92 15.736 15.736 0 00-3.265-1.146c-4.132-.997-8.509-.444-13.125 1.693l-.024.012a2.287 2.287 0 00-.599.411 1.016 1.016 0 00-.062.069c-.611.752-.537 1.819 1.015 2.853a.2.2 0 01.01.007c1.259.814 2.303.935 3.081.602l.016-.007c3.259-1.475 6.139-2.092 8.648-1.807l.011.001c.485.049 1.03.172 1.635.364zm-22.54 13.411c.444-1.087.987-2.422 1.628-4.006l.544-1.345.205 1.367c.22 1.482.403 2.692.55 3.631l-2.927.353z"})]})]})]})}))}}}]); +//# sourceMappingURL=2798.647d86bd.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.01c77e65.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.647d86bd.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.01c77e65.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.647d86bd.chunk.js.map index 1f59210c9..57f319b21 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.01c77e65.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/2798.647d86bd.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/2798.01c77e65.chunk.js","mappings":"4JA6CA,UA1C2B,SAACA,GAC1B,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,yHAEJ,iBACED,KAAK,OACLC,EAAE,sgEAEJ,iBACED,KAAK,OACLN,SAAS,UACTO,EAAE","sources":["os/apps/icons/npwd_icons/app/MARKETPLACE.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MarketplaceAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default MarketplaceAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/2798.647d86bd.chunk.js","mappings":"4JA6CA,UA1C2B,SAACA,GAC1B,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,yHAEJ,iBACED,KAAK,OACLC,EAAE,sgEAEJ,iBACED,KAAK,OACLN,SAAS,UACTO,EAAE","sources":["os/apps/icons/npwd_icons/app/MARKETPLACE.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MarketplaceAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default MarketplaceAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.45b7c0c1.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.c1337d5d.chunk.js similarity index 92% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.45b7c0c1.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.c1337d5d.chunk.js index 87ad9ee8a..8e7102f42 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.45b7c0c1.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.c1337d5d.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[4273],{1489:function(a,l,n){n.d(l,{X:function(){return e}});var s=n(8489),t=(n(2791),n(9259)),i=n(184),e=function(a){var l=Object.assign({},a);return(0,i.jsx)(t.Z,(0,s.Z)((0,s.Z)({},l),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 56 56",version:"1.1",viewBox:"0 0 56 56",xmlSpace:"preserve",children:[(0,i.jsx)("path",{fill:"#EBBA16",d:"M0 0H28V28H0z"}),(0,i.jsx)("path",{fill:"#ED8A19",d:"M28 0H56V28H28z"}),(0,i.jsx)("path",{fill:"#ED8A19",d:"M0 28H28V56H0z"}),(0,i.jsx)("path",{fill:"#556080",d:"M28 28H56V56H28z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M48 46H36a1 1 0 110-2h12a1 1 0 110 2zM48 40H36a1 1 0 110-2h12a1 1 0 110 2zM14 43a.999.999 0 01-.707-1.707l5-5a.999.999 0 111.414 1.414l-5 5A.997.997 0 0114 43z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M9 48a.999.999 0 01-.707-1.707l5-5a.999.999 0 111.414 1.414l-5 5A.997.997 0 019 48z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M19 48a.997.997 0 01-.707-.293l-5-5a.999.999 0 111.414-1.414l5 5A.999.999 0 0119 48z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M14 43a.997.997 0 01-.707-.293l-5-5a.999.999 0 111.414-1.414l5 5A.999.999 0 0114 43zM20 15H8a1 1 0 110-2h12a1 1 0 110 2z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M14 21a1 1 0 01-1-1V8a1 1 0 112 0v12a1 1 0 01-1 1zM48 15H36a1 1 0 110-2h12a1 1 0 110 2z"})]})}))}},4273:function(a,l,n){n.r(l);n(2791);var s=n(1489),t=n(184);l.default=function(){return(0,t.jsx)(s.X,{fontSize:"small"})}}}]); -//# sourceMappingURL=4273.45b7c0c1.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[4273],{1489:function(a,l,n){n.d(l,{X:function(){return e}});var s=n(1413),t=(n(2791),n(9259)),i=n(184),e=function(a){var l=Object.assign({},a);return(0,i.jsx)(t.Z,(0,s.Z)((0,s.Z)({},l),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 56 56",version:"1.1",viewBox:"0 0 56 56",xmlSpace:"preserve",children:[(0,i.jsx)("path",{fill:"#EBBA16",d:"M0 0H28V28H0z"}),(0,i.jsx)("path",{fill:"#ED8A19",d:"M28 0H56V28H28z"}),(0,i.jsx)("path",{fill:"#ED8A19",d:"M0 28H28V56H0z"}),(0,i.jsx)("path",{fill:"#556080",d:"M28 28H56V56H28z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M48 46H36a1 1 0 110-2h12a1 1 0 110 2zM48 40H36a1 1 0 110-2h12a1 1 0 110 2zM14 43a.999.999 0 01-.707-1.707l5-5a.999.999 0 111.414 1.414l-5 5A.997.997 0 0114 43z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M9 48a.999.999 0 01-.707-1.707l5-5a.999.999 0 111.414 1.414l-5 5A.997.997 0 019 48z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M19 48a.997.997 0 01-.707-.293l-5-5a.999.999 0 111.414-1.414l5 5A.999.999 0 0119 48z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M14 43a.997.997 0 01-.707-.293l-5-5a.999.999 0 111.414-1.414l5 5A.999.999 0 0114 43zM20 15H8a1 1 0 110-2h12a1 1 0 110 2z"}),(0,i.jsx)("path",{fill:"#FFF",d:"M14 21a1 1 0 01-1-1V8a1 1 0 112 0v12a1 1 0 01-1 1zM48 15H36a1 1 0 110-2h12a1 1 0 110 2z"})]})}))}},4273:function(a,l,n){n.r(l);n(2791);var s=n(1489),t=n(184);l.default=function(){return(0,t.jsx)(s.X,{fontSize:"small"})}}}]); +//# sourceMappingURL=4273.c1337d5d.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.45b7c0c1.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.c1337d5d.chunk.js.map similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.45b7c0c1.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.c1337d5d.chunk.js.map index b6f7223b4..74ce7d707 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.45b7c0c1.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/4273.c1337d5d.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/4273.45b7c0c1.chunk.js","mappings":"qLAGaA,EAAyC,SAAC,GAAkB,IAAbC,EAAY,oBACtE,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,EAAE,IACFC,EAAE,IACFC,iBAAiB,gBACjBC,QAAQ,MACRC,QAAQ,YACRC,SAAS,WAPX,WASE,iBAAMC,KAAK,UAAUC,EAAE,mBACvB,iBAAMD,KAAK,UAAUC,EAAE,qBACvB,iBAAMD,KAAK,UAAUC,EAAE,oBACvB,iBAAMD,KAAK,UAAUC,EAAE,sBACvB,iBACED,KAAK,OACLC,EAAE,qKAEJ,iBACED,KAAK,OACLC,EAAE,yFAEJ,iBACED,KAAK,OACLC,EAAE,0FAEJ,iBACED,KAAK,OACLC,EAAE,8HAEJ,iBACED,KAAK,OACLC,EAAE,oG,2DChCZ,UAF6B,kBAAM,SAAC,IAAD,CAAgBC,SAAS","sources":["apps/calculator/components/CalculatorIcon.tsx","os/apps/icons/material/svg/CALCULATOR.tsx"],"sourcesContent":["import React from 'react';\nimport { SvgIcon, SvgIconProps } from '@mui/material';\n\nexport const CalculatorIcon: React.FC = ({ ...props }) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import React from 'react';\nimport { CalculatorIcon } from '../../../../../apps/calculator/components/CalculatorIcon';\n\nconst Calculator: React.FC = () => ;\n\nexport default Calculator;\n"],"names":["CalculatorIcon","props","xmlns","x","y","enableBackground","version","viewBox","xmlSpace","fill","d","fontSize"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/4273.c1337d5d.chunk.js","mappings":"qLAGaA,EAAyC,SAAC,GAAkB,IAAbC,EAAY,oBACtE,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,EAAE,IACFC,EAAE,IACFC,iBAAiB,gBACjBC,QAAQ,MACRC,QAAQ,YACRC,SAAS,WAPX,WASE,iBAAMC,KAAK,UAAUC,EAAE,mBACvB,iBAAMD,KAAK,UAAUC,EAAE,qBACvB,iBAAMD,KAAK,UAAUC,EAAE,oBACvB,iBAAMD,KAAK,UAAUC,EAAE,sBACvB,iBACED,KAAK,OACLC,EAAE,qKAEJ,iBACED,KAAK,OACLC,EAAE,yFAEJ,iBACED,KAAK,OACLC,EAAE,0FAEJ,iBACED,KAAK,OACLC,EAAE,8HAEJ,iBACED,KAAK,OACLC,EAAE,oG,2DChCZ,UAF6B,kBAAM,SAAC,IAAD,CAAgBC,SAAS","sources":["apps/calculator/components/CalculatorIcon.tsx","os/apps/icons/material/svg/CALCULATOR.tsx"],"sourcesContent":["import React from 'react';\nimport { SvgIcon, SvgIconProps } from '@mui/material';\n\nexport const CalculatorIcon: React.FC = ({ ...props }) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import React from 'react';\nimport { CalculatorIcon } from '../../../../../apps/calculator/components/CalculatorIcon';\n\nconst Calculator: React.FC = () => ;\n\nexport default Calculator;\n"],"names":["CalculatorIcon","props","xmlns","x","y","enableBackground","version","viewBox","xmlSpace","fill","d","fontSize"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/461.a0746c0b.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/461.0fbd7224.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/461.a0746c0b.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/461.0fbd7224.chunk.js index a81d9d213..3092f3dc3 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/461.a0746c0b.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/461.0fbd7224.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[461],{461:function(c,s,e){e.r(s);var l=e(8489),n=(e(2791),e(9259)),a=e(184);s.default=function(c){return(0,a.jsx)(n.Z,(0,l.Z)((0,l.Z)({},c),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,a.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,a.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,a.jsxs)("g",{fill:c.htmlColor||"#000",children:[(0,a.jsx)("path",{d:"M99.419 19.052c.322.042.521.368.579.441.415.975.499 3.369.682 4.833a70.65 70.65 0 01.46 5.978 3.203 3.203 0 003.082 3.315 3.202 3.202 0 003.315-3.081s.47-5.32.086-9.516c-.191-2.093-.725-3.919-1.347-5.095-.762-1.431-2.242-2.536-4.298-3.237-2.913-.995-7.732-.875-11.395-1.014-3.315.046-7.424.224-10.498 1.072-2.571.709-4.57 1.857-5.654 3.288-1.303 1.766-2.049 4.184-2.074 6.749-.04 4.009 1.223 8.187 1.223 8.187a3.201 3.201 0 003.884 2.323 3.201 3.201 0 002.323-3.884s-.412-2.53-.262-5.185c.068-1.2.227-3.494.926-4.253.126-.141 2.614-.502 3.759-.601 2.082-.181 4.352-.191 6.296-.142.41-.005.836-.015 1.272-.028 1.773-.051 3.723-.138 5.49-.09.727.02 1.588-.133 2.151-.06z"}),(0,a.jsx)("path",{d:"M39.166 25.241h-.084s-14.768.147-24.513 7.739c-4.632 3.608-8.219 8.771-8.984 16.157C4.43 60.283 1.233 83.329 3.719 99.084c1.767 11.196 6.747 18.788 15.038 19.591 5.535.536 12.72.728 20.425.735 17.379.014 37.457-.911 46.648-.741 9.187.175 22.857-1.228 31.542-5.736 5.882-3.052 9.625-7.521 9.979-13.272.468-7.575.971-26.683.916-41.105-.036-9.768-.563-17.548-1.222-19.12-1.759-4.197-3.927-7.511-7.789-9.867-3.528-2.153-8.675-3.529-16.91-3.533l-63.18-.795zm81.626 16.192c.041.314.252 1.947.336 3.367.255 4.301-.527 12.247-.559 19.587-.058 13.172-1.498 28.251-1.892 34.743-.237 3.888-4.16 5.936-8.727 7.575-7.427 2.667-17.118 3.425-23.956 3.297-9.221-.177-29.365.731-46.802.703-7.39-.011-14.283-.19-19.592-.709-2.336-.228-3.822-1.883-4.942-4.149-1.839-3.722-2.649-8.913-2.973-14.649-.811-14.374-.365-31.791.6-40.975.626-5.957 6.276-9.75 10.366-12.013 7.068-3.91 15.643-4.094 16.409-4.103h.029l63.257.699c4.807-.003 10.128-.741 12.658.258 3.221 1.271 4.586 3.545 5.788 6.369z"}),(0,a.jsx)("path",{d:"M101.655 43.026c-1.02-.082-6.863-.465-10.334 1.27-2.132 1.065-3.467 2.829-3.604 5.307-.131 2.637-.577 4.694-.345 6.233.247 1.636 1.003 2.92 2.574 3.925 1.87 1.176 4.806 1.951 8.112 2.176 3.746.254 7.978-.135 11.348-.884.76-.173 2.165-.957 2.563-3.049.474-2.485.18-8.597-.473-11.043-.402-1.493-1.514-2.673-3.28-3.302-1.811-.645-4.432-.748-6.561-.633zm5.067 5.293c.343 1.781.406 5.461.131 7.651-2.119.3-4.488.415-6.749.348-2.865-.086-5.567-.401-7.139-1.385l.134-5.186c-.004-1.126 1.315-1.325 2.472-1.619 2.734-.696 5.854-.554 5.854-.554.09.008.18.01.27.007 1.231-.014 2.692.042 3.925.314.386.085.889.319 1.102.424zM55.449 43.864c-1.615-.323-11.247-1.973-19.84 2.654-5.142 2.769-9.898 7.754-12.45 16.486-3.281 11.647-1.489 20.925 3.149 27.364 5.419 7.52 14.903 11.368 25.8 10.615 10.499-.845 19.757-5.419 24.764-13.057 4.475-6.825 5.823-16.17 1.176-27.707-2.21-5.456-5.581-9.121-9.098-11.553-5.917-4.091-12.161-4.713-13.501-4.802zm-1.07 6.315c.164.035.331.056.498.064 0 0 5.218.425 10.028 4.036 2.468 1.852 4.786 4.595 6.231 8.59 3.139 8.621 2.361 15.497-1.093 20.428-3.836 5.477-10.829 8.357-18.53 8.764-7.51.482-14.09-1.9-17.887-7.035-3.429-4.638-4.546-11.345-2.41-19.88 1.502-6.257 4.573-10.013 8.1-12.162 6.911-4.212 15.063-2.805 15.063-2.805z"}),(0,a.jsx)("path",{d:"M57.194 57.138s-2.102-.509-5.096-.428a17.56 17.56 0 00-5.198.941c-2.218.759-4.441 2.097-6.18 4.195-1.116 1.347-2.008 3.038-2.535 5.046a16.988 16.988 0 00-.574 4.945c.068 2.075.399 4.308 1.144 6.889a1.345 1.345 0 102.671-.318c.116-2.844.654-5.097 1.295-7.08.289-.894.668-1.66 1.02-2.404.561-1.188 1.281-2.119 1.987-2.973.66-.797 1.306-1.522 2.039-2.109.873-.698 1.719-1.325 2.618-1.795 3.412-1.783 6.597-2.227 6.597-2.227a1.345 1.345 0 00.212-2.682z"})]})]})}))}}}]); -//# sourceMappingURL=461.a0746c0b.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[461],{461:function(c,s,e){e.r(s);var l=e(1413),n=(e(2791),e(9259)),a=e(184);s.default=function(c){return(0,a.jsx)(n.Z,(0,l.Z)((0,l.Z)({},c),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,a.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,a.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,a.jsxs)("g",{fill:c.htmlColor||"#000",children:[(0,a.jsx)("path",{d:"M99.419 19.052c.322.042.521.368.579.441.415.975.499 3.369.682 4.833a70.65 70.65 0 01.46 5.978 3.203 3.203 0 003.082 3.315 3.202 3.202 0 003.315-3.081s.47-5.32.086-9.516c-.191-2.093-.725-3.919-1.347-5.095-.762-1.431-2.242-2.536-4.298-3.237-2.913-.995-7.732-.875-11.395-1.014-3.315.046-7.424.224-10.498 1.072-2.571.709-4.57 1.857-5.654 3.288-1.303 1.766-2.049 4.184-2.074 6.749-.04 4.009 1.223 8.187 1.223 8.187a3.201 3.201 0 003.884 2.323 3.201 3.201 0 002.323-3.884s-.412-2.53-.262-5.185c.068-1.2.227-3.494.926-4.253.126-.141 2.614-.502 3.759-.601 2.082-.181 4.352-.191 6.296-.142.41-.005.836-.015 1.272-.028 1.773-.051 3.723-.138 5.49-.09.727.02 1.588-.133 2.151-.06z"}),(0,a.jsx)("path",{d:"M39.166 25.241h-.084s-14.768.147-24.513 7.739c-4.632 3.608-8.219 8.771-8.984 16.157C4.43 60.283 1.233 83.329 3.719 99.084c1.767 11.196 6.747 18.788 15.038 19.591 5.535.536 12.72.728 20.425.735 17.379.014 37.457-.911 46.648-.741 9.187.175 22.857-1.228 31.542-5.736 5.882-3.052 9.625-7.521 9.979-13.272.468-7.575.971-26.683.916-41.105-.036-9.768-.563-17.548-1.222-19.12-1.759-4.197-3.927-7.511-7.789-9.867-3.528-2.153-8.675-3.529-16.91-3.533l-63.18-.795zm81.626 16.192c.041.314.252 1.947.336 3.367.255 4.301-.527 12.247-.559 19.587-.058 13.172-1.498 28.251-1.892 34.743-.237 3.888-4.16 5.936-8.727 7.575-7.427 2.667-17.118 3.425-23.956 3.297-9.221-.177-29.365.731-46.802.703-7.39-.011-14.283-.19-19.592-.709-2.336-.228-3.822-1.883-4.942-4.149-1.839-3.722-2.649-8.913-2.973-14.649-.811-14.374-.365-31.791.6-40.975.626-5.957 6.276-9.75 10.366-12.013 7.068-3.91 15.643-4.094 16.409-4.103h.029l63.257.699c4.807-.003 10.128-.741 12.658.258 3.221 1.271 4.586 3.545 5.788 6.369z"}),(0,a.jsx)("path",{d:"M101.655 43.026c-1.02-.082-6.863-.465-10.334 1.27-2.132 1.065-3.467 2.829-3.604 5.307-.131 2.637-.577 4.694-.345 6.233.247 1.636 1.003 2.92 2.574 3.925 1.87 1.176 4.806 1.951 8.112 2.176 3.746.254 7.978-.135 11.348-.884.76-.173 2.165-.957 2.563-3.049.474-2.485.18-8.597-.473-11.043-.402-1.493-1.514-2.673-3.28-3.302-1.811-.645-4.432-.748-6.561-.633zm5.067 5.293c.343 1.781.406 5.461.131 7.651-2.119.3-4.488.415-6.749.348-2.865-.086-5.567-.401-7.139-1.385l.134-5.186c-.004-1.126 1.315-1.325 2.472-1.619 2.734-.696 5.854-.554 5.854-.554.09.008.18.01.27.007 1.231-.014 2.692.042 3.925.314.386.085.889.319 1.102.424zM55.449 43.864c-1.615-.323-11.247-1.973-19.84 2.654-5.142 2.769-9.898 7.754-12.45 16.486-3.281 11.647-1.489 20.925 3.149 27.364 5.419 7.52 14.903 11.368 25.8 10.615 10.499-.845 19.757-5.419 24.764-13.057 4.475-6.825 5.823-16.17 1.176-27.707-2.21-5.456-5.581-9.121-9.098-11.553-5.917-4.091-12.161-4.713-13.501-4.802zm-1.07 6.315c.164.035.331.056.498.064 0 0 5.218.425 10.028 4.036 2.468 1.852 4.786 4.595 6.231 8.59 3.139 8.621 2.361 15.497-1.093 20.428-3.836 5.477-10.829 8.357-18.53 8.764-7.51.482-14.09-1.9-17.887-7.035-3.429-4.638-4.546-11.345-2.41-19.88 1.502-6.257 4.573-10.013 8.1-12.162 6.911-4.212 15.063-2.805 15.063-2.805z"}),(0,a.jsx)("path",{d:"M57.194 57.138s-2.102-.509-5.096-.428a17.56 17.56 0 00-5.198.941c-2.218.759-4.441 2.097-6.18 4.195-1.116 1.347-2.008 3.038-2.535 5.046a16.988 16.988 0 00-.574 4.945c.068 2.075.399 4.308 1.144 6.889a1.345 1.345 0 102.671-.318c.116-2.844.654-5.097 1.295-7.08.289-.894.668-1.66 1.02-2.404.561-1.188 1.281-2.119 1.987-2.973.66-.797 1.306-1.522 2.039-2.109.873-.698 1.719-1.325 2.618-1.795 3.412-1.783 6.597-2.227 6.597-2.227a1.345 1.345 0 00.212-2.682z"})]})]})}))}}}]); +//# sourceMappingURL=461.0fbd7224.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/461.a0746c0b.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/461.0fbd7224.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/461.a0746c0b.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/461.0fbd7224.chunk.js.map index c116b0725..ed6e03b1d 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/461.a0746c0b.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/461.0fbd7224.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/461.a0746c0b.chunk.js","mappings":"0JA2BA,UAxBsB,SAACA,GACrB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBAAMD,EAAE,kqBACR,iBAAMA,EAAE,+8BACR,iBAAMA,EAAE,kuCACR,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/CAMERA.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst CameraAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default CameraAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/461.0fbd7224.chunk.js","mappings":"0JA2BA,UAxBsB,SAACA,GACrB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBAAMD,EAAE,kqBACR,iBAAMA,EAAE,+8BACR,iBAAMA,EAAE,kuCACR,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/CAMERA.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst CameraAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default CameraAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.ab52560e.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.a9100487.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.ab52560e.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.a9100487.chunk.js index 26b18878c..3b8f64188 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.ab52560e.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.a9100487.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[4738],{4738:function(l,c,a){a.r(c);var s=a(8489),e=(a(2791),a(9259)),n=a(184);c.default=function(l){return(0,n.jsx)(e.Z,(0,s.Z)((0,s.Z)({},l),{},{children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,n.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,n.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,n.jsx)("path",{fill:l.htmlColor||"#000",d:"M64.798 11.355l-4.528.002c-.384-2.379-1.11-4.383-1.981-5.646-1.039-1.507-2.307-2.326-3.72-2.381-3.274-.065-5.201.982-6.314 2.441-.742.973-1.211 2.057-1.378 3.111a10.805 10.805 0 00-.092 2.482l-3.739.002c-.353-2.273-1.006-4.194-1.796-5.439-1.034-1.628-2.341-2.492-3.79-2.554-3.454-.083-5.497 1.19-6.653 2.963-1.088 1.67-1.359 3.725-1.408 5.036l-3.276.002a3.36 3.36 0 00-3.38 3.148l-6.156 5.537a3.01 3.01 0 00-.986 2.215l-.966 102.263a3.518 3.518 0 003.626 3.531l86.36-2.573a3.62 3.62 0 003.1-1.951l3.761-7.283 1.259-.23a4.507 4.507 0 003.56-5.511l-2.391-9.623-2.101-85.572a4.07 4.07 0 00-4.036-3.99l-13 .006c-.387-2.444-1.111-4.51-1.975-5.819-1.052-1.594-2.354-2.44-3.78-2.5-3.544-.082-5.528 1.25-6.584 3.064-1.032 1.772-1.129 3.97-1.075 5.261l-3.05.002c-.37-2.439-1.08-4.503-1.933-5.812-1.046-1.605-2.35-2.457-3.783-2.518-3.513-.083-5.516 1.229-6.606 3.028-1.086 1.792-1.22 4.023-1.189 5.308zM22.703 22.621l-1.073.988-1.847 95.434c-.047 2.427 1.071 3.74 3.09 3.63 15.133-.829 78.838-3.956 78.838-3.956l.434-.903s-1.527.104-1.758.111l-73.818 1.982a4.14 4.14 0 01-4.256-4.126l.39-93.16zm7.449 21.602l1.273 67.239 68.355-2.195 6.633-1.229-1.34-5.461a4.514 4.514 0 01-.13-.988l-.839-56.769c-5.46.118-14.36.288-24.279.392-4.153.043-8.484.086-12.816.045-7.418-.071-14.833-.287-21.354-.484a1479.66 1479.66 0 01-15.503-.55zM40.846 97.86s5.715.357 13.444.623c4.105.142 8.772.296 13.444.304 2.727.005 5.452-.074 8.066-.153 10.289-.309 18.821-.774 18.821-.774a2.719 2.719 0 002.717-2.717 2.719 2.719 0 00-2.717-2.717s-8.532-.465-18.821-.774c-2.614-.079-5.339-.158-8.066-.153-4.672.008-9.339.162-13.444.304-7.729.266-13.444.623-13.444.623a2.719 2.719 0 00-2.717 2.717 2.719 2.719 0 002.717 2.717zm.979-18.921s5.642.392 13.274.706c4.054.167 8.662.35 13.276.387 2.693.022 5.385-.041 7.967-.103a844.825 844.825 0 0018.594-.658 2.72 2.72 0 002.734-2.7 2.718 2.718 0 00-2.7-2.733s-8.423-.518-18.584-.891c-2.581-.095-5.272-.191-7.966-.203-4.614-.02-9.224.105-13.279.221-7.635.219-13.282.541-13.282.541a2.718 2.718 0 00-2.734 2.699 2.72 2.72 0 002.7 2.734zM39.55 61.014s6.109.286 14.363.457c4.386.091 9.372.187 14.361.138 2.912-.029 5.821-.142 8.612-.253a985.932 985.932 0 0020.09-1.006 2.719 2.719 0 002.685-2.748 2.718 2.718 0 00-2.748-2.685s-9.118-.36-20.108-.542c-2.792-.046-5.704-.092-8.616-.054-4.988.066-9.97.278-14.353.47-8.248.362-14.349.79-14.349.79a2.718 2.718 0 00.063 5.433zm-9.509-22.629c3.827-.092 9.324-.208 15.67-.292 6.524-.087 13.941-.178 21.36-.124 4.331.032 8.661.148 12.813.261 9.834.269 18.665.587 24.134.797l-.29-19.62-8.578-.145a88.92 88.92 0 01-.423 6.377 3.854 3.854 0 012.107 3.434 3.855 3.855 0 01-3.853 3.853 3.855 3.855 0 01-3.852-3.853c0-1.198.548-2.269 1.407-2.975a193.066 193.066 0 00-.578-6.924l-11.314-.191a90.389 90.389 0 01-.571 7.523c1.191.656 2 1.923 2 3.378a3.855 3.855 0 01-3.853 3.853 3.855 3.855 0 01-3.852-3.853c0-1.305.65-2.459 1.644-3.156a194.99 194.99 0 00-.593-7.834l-12.789-.217c-.093 3.238-.425 6.274-.662 8.104a3.854 3.854 0 01-1.86 7.226 3.855 3.855 0 01-3.853-3.852 3.85 3.85 0 011.767-3.239c-.099-1.77-.304-4.97-.648-8.328l-12.005-.203a87.896 87.896 0 01-.62 7.806 3.854 3.854 0 01-2.213 7.005 3.85 3.85 0 01-1.983-7.155 183.94 183.94 0 00-.521-7.746l-8.374-.142.383 20.232zm7.137-27.017c-.166-1.016-.345-1.904-.656-2.566-.026-.056-.04-.148-.055-.222a.224.224 0 01-.086-.03c-.916-.083-1.57.079-1.996.548-.626.69-.964 1.577-1.144 2.272l3.937-.002zm17.216-.008c-.186-1.051-.371-1.972-.71-2.641-.026-.052-.039-.139-.054-.208-.059-.009-.097-.025-.09-.053-.9-.12-1.534-.066-1.949.323-.878.823-1.077 2.098-1.121 2.581l3.924-.002zm18.041-.009c-.197-1.151-.392-2.16-.746-2.891-.029-.06-.045-.161-.063-.239-.051-.008-.089-.02-.103-.039-.875-.086-1.49.05-1.877.505-.707.831-.985 1.95-1.094 2.666l3.883-.002zm16.458-.007c-.203-1.145-.405-2.148-.761-2.875-.031-.063-.048-.167-.068-.247-.056-.008-.097-.021-.106-.044-.858-.087-1.455.035-1.823.482-.69.84-.938 1.974-1.027 2.685l3.785-.001zm-52.43-2.786c-.016-.072-.035-.12-.072-.085-.038.034-.037.059-.01.077l.082.008.004.022c.136.028.367.027.481.045a6.76 6.76 0 00-.485-.067zm17.156-.09c-.013-.048-.029-.073-.057-.046-.013.014-.021.025-.022.036l.079.01.011.043c.12.02.329.011.431.027-.154-.027-.301-.05-.442-.07zm18-.277c-.017-.065-.038-.105-.074-.071-.028.026-.033.046-.022.062l.096.009.007.03c.132.024.349.02.456.037a7.496 7.496 0 00-.463-.067zm16.436-.002c-.017-.063-.039-.099-.074-.066-.024.023-.031.041-.023.055l.097.011.009.033c.13.021.34.016.444.033a7.085 7.085 0 00-.453-.066z"})]})}))}}}]); -//# sourceMappingURL=4738.ab52560e.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[4738],{4738:function(l,c,a){a.r(c);var s=a(1413),e=(a(2791),a(9259)),n=a(184);c.default=function(l){return(0,n.jsx)(e.Z,(0,s.Z)((0,s.Z)({},l),{},{children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,n.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,n.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,n.jsx)("path",{fill:l.htmlColor||"#000",d:"M64.798 11.355l-4.528.002c-.384-2.379-1.11-4.383-1.981-5.646-1.039-1.507-2.307-2.326-3.72-2.381-3.274-.065-5.201.982-6.314 2.441-.742.973-1.211 2.057-1.378 3.111a10.805 10.805 0 00-.092 2.482l-3.739.002c-.353-2.273-1.006-4.194-1.796-5.439-1.034-1.628-2.341-2.492-3.79-2.554-3.454-.083-5.497 1.19-6.653 2.963-1.088 1.67-1.359 3.725-1.408 5.036l-3.276.002a3.36 3.36 0 00-3.38 3.148l-6.156 5.537a3.01 3.01 0 00-.986 2.215l-.966 102.263a3.518 3.518 0 003.626 3.531l86.36-2.573a3.62 3.62 0 003.1-1.951l3.761-7.283 1.259-.23a4.507 4.507 0 003.56-5.511l-2.391-9.623-2.101-85.572a4.07 4.07 0 00-4.036-3.99l-13 .006c-.387-2.444-1.111-4.51-1.975-5.819-1.052-1.594-2.354-2.44-3.78-2.5-3.544-.082-5.528 1.25-6.584 3.064-1.032 1.772-1.129 3.97-1.075 5.261l-3.05.002c-.37-2.439-1.08-4.503-1.933-5.812-1.046-1.605-2.35-2.457-3.783-2.518-3.513-.083-5.516 1.229-6.606 3.028-1.086 1.792-1.22 4.023-1.189 5.308zM22.703 22.621l-1.073.988-1.847 95.434c-.047 2.427 1.071 3.74 3.09 3.63 15.133-.829 78.838-3.956 78.838-3.956l.434-.903s-1.527.104-1.758.111l-73.818 1.982a4.14 4.14 0 01-4.256-4.126l.39-93.16zm7.449 21.602l1.273 67.239 68.355-2.195 6.633-1.229-1.34-5.461a4.514 4.514 0 01-.13-.988l-.839-56.769c-5.46.118-14.36.288-24.279.392-4.153.043-8.484.086-12.816.045-7.418-.071-14.833-.287-21.354-.484a1479.66 1479.66 0 01-15.503-.55zM40.846 97.86s5.715.357 13.444.623c4.105.142 8.772.296 13.444.304 2.727.005 5.452-.074 8.066-.153 10.289-.309 18.821-.774 18.821-.774a2.719 2.719 0 002.717-2.717 2.719 2.719 0 00-2.717-2.717s-8.532-.465-18.821-.774c-2.614-.079-5.339-.158-8.066-.153-4.672.008-9.339.162-13.444.304-7.729.266-13.444.623-13.444.623a2.719 2.719 0 00-2.717 2.717 2.719 2.719 0 002.717 2.717zm.979-18.921s5.642.392 13.274.706c4.054.167 8.662.35 13.276.387 2.693.022 5.385-.041 7.967-.103a844.825 844.825 0 0018.594-.658 2.72 2.72 0 002.734-2.7 2.718 2.718 0 00-2.7-2.733s-8.423-.518-18.584-.891c-2.581-.095-5.272-.191-7.966-.203-4.614-.02-9.224.105-13.279.221-7.635.219-13.282.541-13.282.541a2.718 2.718 0 00-2.734 2.699 2.72 2.72 0 002.7 2.734zM39.55 61.014s6.109.286 14.363.457c4.386.091 9.372.187 14.361.138 2.912-.029 5.821-.142 8.612-.253a985.932 985.932 0 0020.09-1.006 2.719 2.719 0 002.685-2.748 2.718 2.718 0 00-2.748-2.685s-9.118-.36-20.108-.542c-2.792-.046-5.704-.092-8.616-.054-4.988.066-9.97.278-14.353.47-8.248.362-14.349.79-14.349.79a2.718 2.718 0 00.063 5.433zm-9.509-22.629c3.827-.092 9.324-.208 15.67-.292 6.524-.087 13.941-.178 21.36-.124 4.331.032 8.661.148 12.813.261 9.834.269 18.665.587 24.134.797l-.29-19.62-8.578-.145a88.92 88.92 0 01-.423 6.377 3.854 3.854 0 012.107 3.434 3.855 3.855 0 01-3.853 3.853 3.855 3.855 0 01-3.852-3.853c0-1.198.548-2.269 1.407-2.975a193.066 193.066 0 00-.578-6.924l-11.314-.191a90.389 90.389 0 01-.571 7.523c1.191.656 2 1.923 2 3.378a3.855 3.855 0 01-3.853 3.853 3.855 3.855 0 01-3.852-3.853c0-1.305.65-2.459 1.644-3.156a194.99 194.99 0 00-.593-7.834l-12.789-.217c-.093 3.238-.425 6.274-.662 8.104a3.854 3.854 0 01-1.86 7.226 3.855 3.855 0 01-3.853-3.852 3.85 3.85 0 011.767-3.239c-.099-1.77-.304-4.97-.648-8.328l-12.005-.203a87.896 87.896 0 01-.62 7.806 3.854 3.854 0 01-2.213 7.005 3.85 3.85 0 01-1.983-7.155 183.94 183.94 0 00-.521-7.746l-8.374-.142.383 20.232zm7.137-27.017c-.166-1.016-.345-1.904-.656-2.566-.026-.056-.04-.148-.055-.222a.224.224 0 01-.086-.03c-.916-.083-1.57.079-1.996.548-.626.69-.964 1.577-1.144 2.272l3.937-.002zm17.216-.008c-.186-1.051-.371-1.972-.71-2.641-.026-.052-.039-.139-.054-.208-.059-.009-.097-.025-.09-.053-.9-.12-1.534-.066-1.949.323-.878.823-1.077 2.098-1.121 2.581l3.924-.002zm18.041-.009c-.197-1.151-.392-2.16-.746-2.891-.029-.06-.045-.161-.063-.239-.051-.008-.089-.02-.103-.039-.875-.086-1.49.05-1.877.505-.707.831-.985 1.95-1.094 2.666l3.883-.002zm16.458-.007c-.203-1.145-.405-2.148-.761-2.875-.031-.063-.048-.167-.068-.247-.056-.008-.097-.021-.106-.044-.858-.087-1.455.035-1.823.482-.69.84-.938 1.974-1.027 2.685l3.785-.001zm-52.43-2.786c-.016-.072-.035-.12-.072-.085-.038.034-.037.059-.01.077l.082.008.004.022c.136.028.367.027.481.045a6.76 6.76 0 00-.485-.067zm17.156-.09c-.013-.048-.029-.073-.057-.046-.013.014-.021.025-.022.036l.079.01.011.043c.12.02.329.011.431.027-.154-.027-.301-.05-.442-.07zm18-.277c-.017-.065-.038-.105-.074-.071-.028.026-.033.046-.022.062l.096.009.007.03c.132.024.349.02.456.037a7.496 7.496 0 00-.463-.067zm16.436-.002c-.017-.063-.039-.099-.074-.066-.024.023-.031.041-.023.055l.097.011.009.033c.13.021.34.016.444.033a7.085 7.085 0 00-.453-.066z"})]})}))}}}]); +//# sourceMappingURL=4738.a9100487.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.ab52560e.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.a9100487.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.ab52560e.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.a9100487.chunk.js.map index be63bee9f..6dfe07523 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.ab52560e.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/4738.a9100487.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/4738.ab52560e.chunk.js","mappings":"4JAyBA,UAtBqB,SAACA,GACpB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/NOTES.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst NotesAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default NotesAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/4738.a9100487.chunk.js","mappings":"4JAyBA,UAtBqB,SAACA,GACpB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/NOTES.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst NotesAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default NotesAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.20070e0e.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.392cfd0b.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.20070e0e.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.392cfd0b.chunk.js index 7dcffcd79..264d52bee 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.20070e0e.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.392cfd0b.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5019],{5019:function(a,c,l){l.r(c);var e=l(8489),n=(l(2791),l(9259)),s=l(184);c.default=function(a){return(0,s.jsx)(n.Z,(0,e.Z)((0,e.Z)({},a),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,s.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,s.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,s.jsx)("path",{fill:a.htmlColor||"#000",d:"M7.664 35.298l2.39 27.015c.406 5.316-2.013 21.435-1.663 31.003.119 3.274.631 5.901 1.421 7.47.677 1.343 1.621 2.175 2.622 2.644 2.334 1.09 16.658 2.368 33.136 3.118 18.128.825 38.925 1.214 48.306.931 11.064-.378 19.38-2.591 24.544-5.799 4.796-2.98 7.199-6.895 7.463-11.134.122-2.115.502-8.029.529-15.536.017-4.759-.11-10.154-.518-15.629-.425-5.567-1.081-11.195-1.765-16.153a350.294 350.294 0 00-2.103-13.321c.07-.8-.077-1.486-.375-2.056-.077-.411-.12-.63-.12-.63a3.79 3.79 0 00-3.579-3.099s-34.558-1.002-64.444-.279l-10.735-.327-.074-.001s-23.413-.06-31.819 1.421c-2.13.375-3.6 1.013-4.302 1.521-1.146.83-1.624 1.853-1.821 2.761-.226 1.037-.1 2.125.571 3.233.319.523 1.145 1.522 2.336 2.847zm71.997 33.409a214.753 214.753 0 01-5.349 3.63c-5.605 3.675-10.104 5.96-12.117 6.339-3.783.71-7.903-.575-11.965-3.159a40.025 40.025 0 01-3.556-2.578 270.262 270.262 0 01-7.698 6.888c-2.074 1.784-4.321 3.7-6.69 5.469-2.369 1.77-4.844 3.38-7.144 4.863a265.043 265.043 0 01-9.827 6.034c.108.464.261.948.362 1.245.887.205 2.556.334 4.792.528 5.92.514 15.223.899 25.372 1.182 17.921.499 38.469.646 47.732.231 7.607-.312 13.697-1.511 18.045-3.435l.145-.065c-2.022-.976-4.066-2.201-6.064-3.586a65.585 65.585 0 01-8.763-7.297c-3.446-3.435-5.952-6.778-7.295-8.314a28.76 28.76 0 00-5.187-4.992 34.136 34.136 0 00-4.793-2.983zm8.807 17.751s-.855.055-2.09.307c-.432.087-.88.21-1.358.375a7.46 7.46 0 00-1.31.591 5.46 5.46 0 00-.807.579c-.341.293-.661.584-.924.922-.819 1.053-1.406 2.078-1.348 3.186a1.218 1.218 0 002.402.4c.136-.328.516-.435.84-.678.282-.212.627-.331.962-.524.343-.196.71-.366 1.054-.575.458-.278.873-.595 1.28-.868 1.169-.784 2.015-1.388 2.015-1.388a1.218 1.218 0 00-.716-2.327zm27.228-47.195a90.697 90.697 0 01-2.382 2.376c-7.26 6.987-18.335 15.937-28.309 23.239.896.378 1.864.827 2.877 1.361 2.347 1.237 4.851 2.994 7.299 5.273a672.217 672.217 0 015.39 5.38c1.083 1.094 2.259 2.277 3.469 3.522 2.737 2.815 5.712 5.862 8.808 8.285 1.459 1.142 2.891 2.196 4.308 3.009a4.224 4.224 0 00.447-1.664c.131-2.054.52-7.8.602-15.095.051-4.568-.013-9.748-.355-15.007-.342-5.408-.915-10.877-1.507-15.699a372.05 372.05 0 00-.647-4.98zm-102.178 2.19l2.332 20.349c.413 4.111-.652 14.627-.943 23.711a119.155 119.155 0 00-.067 3.753 266.611 266.611 0 015.798-5.139c2.074-1.784 4.321-3.7 6.69-5.469 2.37-1.769 4.845-3.38 7.144-4.862 3.01-1.94 5.733-3.603 7.729-4.796-3.501-3.303-6.759-6.784-9.442-9.163-3.655-3.288-10.599-9.814-16.516-15.66-.94-.927-1.853-1.84-2.725-2.724zm85.023-10.536l-55.796.074s-17.022.262-26.69 1.36c1.682 1.704 3.771 3.758 5.989 5.94 5.837 5.741 12.609 12.23 16.194 15.481 3.782 3.477 8.729 9.35 13.883 13.503 2.996 2.413 5.913 4.46 8.778 3.994.888-.144 2.406-.917 4.422-2.015 5.086-2.771 12.544-7.632 20.247-13.093 10.972-7.778 22.442-16.749 28.183-22.754.322-.337.637-.695.935-1.052a92.205 92.205 0 00-.126-.801c-3.278-.147-8.956-.39-16.019-.637zM50.885 49.999v-.001s.026.016.03.044c.005.029.097.049.095.135-.002.06.166.104.122.206-.012.03.072.056.05.09-.023.036.165.135.124.086-.039-.047.13.017.197-.025.156-.097.38-.098.633-.22.155-.074.332-.139.513-.247.167-.1.325-.231.504-.372.49-.386.918-.872 1.617-1.396a1.217 1.217 0 00-.831-2.288c-.669.02-1.178.056-1.709.134a5.185 5.185 0 00-1.135.293 3.581 3.581 0 00-.889.502c-.352.27-.618.524-.811.79-.39.535-.666.893-.754 1.276-.159.698-.301 1.113-.167 1.446.149.37.17.623.271.72.65.625 1.113.697 1.113.697-.64.017.116.168.675-.204.552-.368.707-1.11.352-1.666zm-6.689-3.455s1.423-.967 3.503-2.266c.72-.451 1.52-.922 2.352-1.438.625-.388 1.27-.789 1.918-1.202.629-.401 1.245-.824 1.88-1.214 1.407-.866 2.781-1.674 4.188-2.058a1.218 1.218 0 00-.37-2.406c-1.736.067-3.59.513-5.419 1.238a19.35 19.35 0 00-3.215 1.618c-1.047.665-1.982 1.429-2.809 2.159-2.288 2.021-3.693 3.793-3.693 3.793a1.218 1.218 0 001.665 1.776z"})]})}))}}}]); -//# sourceMappingURL=5019.20070e0e.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5019],{5019:function(a,c,l){l.r(c);var e=l(1413),n=(l(2791),l(9259)),s=l(184);c.default=function(a){return(0,s.jsx)(n.Z,(0,e.Z)((0,e.Z)({},a),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,s.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,s.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,s.jsx)("path",{fill:a.htmlColor||"#000",d:"M7.664 35.298l2.39 27.015c.406 5.316-2.013 21.435-1.663 31.003.119 3.274.631 5.901 1.421 7.47.677 1.343 1.621 2.175 2.622 2.644 2.334 1.09 16.658 2.368 33.136 3.118 18.128.825 38.925 1.214 48.306.931 11.064-.378 19.38-2.591 24.544-5.799 4.796-2.98 7.199-6.895 7.463-11.134.122-2.115.502-8.029.529-15.536.017-4.759-.11-10.154-.518-15.629-.425-5.567-1.081-11.195-1.765-16.153a350.294 350.294 0 00-2.103-13.321c.07-.8-.077-1.486-.375-2.056-.077-.411-.12-.63-.12-.63a3.79 3.79 0 00-3.579-3.099s-34.558-1.002-64.444-.279l-10.735-.327-.074-.001s-23.413-.06-31.819 1.421c-2.13.375-3.6 1.013-4.302 1.521-1.146.83-1.624 1.853-1.821 2.761-.226 1.037-.1 2.125.571 3.233.319.523 1.145 1.522 2.336 2.847zm71.997 33.409a214.753 214.753 0 01-5.349 3.63c-5.605 3.675-10.104 5.96-12.117 6.339-3.783.71-7.903-.575-11.965-3.159a40.025 40.025 0 01-3.556-2.578 270.262 270.262 0 01-7.698 6.888c-2.074 1.784-4.321 3.7-6.69 5.469-2.369 1.77-4.844 3.38-7.144 4.863a265.043 265.043 0 01-9.827 6.034c.108.464.261.948.362 1.245.887.205 2.556.334 4.792.528 5.92.514 15.223.899 25.372 1.182 17.921.499 38.469.646 47.732.231 7.607-.312 13.697-1.511 18.045-3.435l.145-.065c-2.022-.976-4.066-2.201-6.064-3.586a65.585 65.585 0 01-8.763-7.297c-3.446-3.435-5.952-6.778-7.295-8.314a28.76 28.76 0 00-5.187-4.992 34.136 34.136 0 00-4.793-2.983zm8.807 17.751s-.855.055-2.09.307c-.432.087-.88.21-1.358.375a7.46 7.46 0 00-1.31.591 5.46 5.46 0 00-.807.579c-.341.293-.661.584-.924.922-.819 1.053-1.406 2.078-1.348 3.186a1.218 1.218 0 002.402.4c.136-.328.516-.435.84-.678.282-.212.627-.331.962-.524.343-.196.71-.366 1.054-.575.458-.278.873-.595 1.28-.868 1.169-.784 2.015-1.388 2.015-1.388a1.218 1.218 0 00-.716-2.327zm27.228-47.195a90.697 90.697 0 01-2.382 2.376c-7.26 6.987-18.335 15.937-28.309 23.239.896.378 1.864.827 2.877 1.361 2.347 1.237 4.851 2.994 7.299 5.273a672.217 672.217 0 015.39 5.38c1.083 1.094 2.259 2.277 3.469 3.522 2.737 2.815 5.712 5.862 8.808 8.285 1.459 1.142 2.891 2.196 4.308 3.009a4.224 4.224 0 00.447-1.664c.131-2.054.52-7.8.602-15.095.051-4.568-.013-9.748-.355-15.007-.342-5.408-.915-10.877-1.507-15.699a372.05 372.05 0 00-.647-4.98zm-102.178 2.19l2.332 20.349c.413 4.111-.652 14.627-.943 23.711a119.155 119.155 0 00-.067 3.753 266.611 266.611 0 015.798-5.139c2.074-1.784 4.321-3.7 6.69-5.469 2.37-1.769 4.845-3.38 7.144-4.862 3.01-1.94 5.733-3.603 7.729-4.796-3.501-3.303-6.759-6.784-9.442-9.163-3.655-3.288-10.599-9.814-16.516-15.66-.94-.927-1.853-1.84-2.725-2.724zm85.023-10.536l-55.796.074s-17.022.262-26.69 1.36c1.682 1.704 3.771 3.758 5.989 5.94 5.837 5.741 12.609 12.23 16.194 15.481 3.782 3.477 8.729 9.35 13.883 13.503 2.996 2.413 5.913 4.46 8.778 3.994.888-.144 2.406-.917 4.422-2.015 5.086-2.771 12.544-7.632 20.247-13.093 10.972-7.778 22.442-16.749 28.183-22.754.322-.337.637-.695.935-1.052a92.205 92.205 0 00-.126-.801c-3.278-.147-8.956-.39-16.019-.637zM50.885 49.999v-.001s.026.016.03.044c.005.029.097.049.095.135-.002.06.166.104.122.206-.012.03.072.056.05.09-.023.036.165.135.124.086-.039-.047.13.017.197-.025.156-.097.38-.098.633-.22.155-.074.332-.139.513-.247.167-.1.325-.231.504-.372.49-.386.918-.872 1.617-1.396a1.217 1.217 0 00-.831-2.288c-.669.02-1.178.056-1.709.134a5.185 5.185 0 00-1.135.293 3.581 3.581 0 00-.889.502c-.352.27-.618.524-.811.79-.39.535-.666.893-.754 1.276-.159.698-.301 1.113-.167 1.446.149.37.17.623.271.72.65.625 1.113.697 1.113.697-.64.017.116.168.675-.204.552-.368.707-1.11.352-1.666zm-6.689-3.455s1.423-.967 3.503-2.266c.72-.451 1.52-.922 2.352-1.438.625-.388 1.27-.789 1.918-1.202.629-.401 1.245-.824 1.88-1.214 1.407-.866 2.781-1.674 4.188-2.058a1.218 1.218 0 00-.37-2.406c-1.736.067-3.59.513-5.419 1.238a19.35 19.35 0 00-3.215 1.618c-1.047.665-1.982 1.429-2.809 2.159-2.288 2.021-3.693 3.793-3.693 3.793a1.218 1.218 0 001.665 1.776z"})]})}))}}}]); +//# sourceMappingURL=5019.392cfd0b.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.20070e0e.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.392cfd0b.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.20070e0e.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.392cfd0b.chunk.js.map index b79002ed5..5bd52051c 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.20070e0e.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5019.392cfd0b.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/5019.20070e0e.chunk.js","mappings":"4JAyBA,UAtBwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/EMAIL.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst SettingsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default SettingsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/5019.392cfd0b.chunk.js","mappings":"4JAyBA,UAtBwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/EMAIL.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst SettingsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default SettingsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.11f59f8e.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.20ccace4.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.11f59f8e.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.20ccace4.chunk.js index 3f5e18c69..570ecf9f2 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.11f59f8e.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.20ccace4.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5154],{5154:function(c,l,a){a.r(l);var e=a(8489),n=(a(2791),a(9259)),i=a(184);l.default=function(c){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},c),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsxs)("g",{children:[(0,i.jsx)("path",{fill:c.htmlColor||"#000",d:"M11.886 75.885c.408 2.235 1.47 9.625-.474 17.62-1.262 5.191-3.85 10.642-8.883 15.016-1.492 1.297-1.378 2.726-1.132 3.686.221.861 1.17 2.484 3.777 2.732 1.958.186 6.878-.451 12.699-2.634 7.622-2.858 16.765-8.42 22.734-17.787 3.09.552 8.213 1.4 13.462 1.979 4.01.443 8.089.706 11.443.611 18.265-.605 35.832-4.66 47.938-12.929 10.443-7.132 16.984-17.297 17.406-30.656.244-10.923-6.967-20.778-19.356-27.527-11.733-6.392-28.112-10.127-45.381-9.867-17.329.348-34.936 4.197-47.426 11.096C6.668 33.868-.725 43.261.3 54.737c.389 4.295 1.649 8.416 3.883 12.228 1.884 3.213 4.427 6.223 7.703 8.92zm.572 30.764c2.358-3.882 4.427-8.537 5.176-12.5 2.071-10.959-.751-20.679-.751-20.679a2.296 2.296 0 00-.759-1.191c-2.944-2.559-5.179-5.38-6.751-8.379-1.672-3.188-3.208-6.035-3.36-9.544-.405-9.131 6.242-15.955 15.996-20.815 11.773-5.865 28.136-8.701 44.11-8.379 15.433.232 29.965 3.919 40.311 9.881 8.221 4.738 13.828 10.797 13.533 18.139-.298 9.646-5.238 16.806-12.708 22.056-10.611 7.458-26.048 11.284-42.188 12.241-2.968.191-6.59.063-10.157-.195-8.005-.58-15.736-1.794-15.736-1.794a4.305 4.305 0 00-4.618 2.329c-4.97 10.648-14.971 16.328-22.098 18.83z"}),(0,i.jsx)("path",{fill:c.htmlColor||"#000",fillRule:"nonzero",d:"M74.925 67.723a28.759 28.759 0 01-4.093 3.183c-.269.165-.425.357-.504.555a.962.962 0 00.03.775c.145.327.344.617.598.871.236.236.456.421.658.556l.006.003c1.314.854 2.424.945 3.313.411l.012-.008a28.024 28.024 0 004.239-3.338.602.602 0 00.112-.132l.21-.338a.503.503 0 00.076-.185c.152-.762-.321-1.576-1.651-2.262-1.404-.739-2.411-.679-3.006-.091zM67.65 53.226c-.677.046-1.37.099-2.08.162a89.3 89.3 0 01.427-2.272c1.901-.161 3.738-.283 5.509-.366l.01-.001c.685-.046 1.105-.341 1.31-.798.205-.455.15-.964-.258-1.51l-.004-.005c-.346-.45-.826-.818-1.449-1.095-.617-.275-1.218-.391-1.8-.356h-.002c-.768.048-1.624.106-2.566.173.248-1.22.558-2.763.93-4.629.188-.937-.347-1.82-1.806-2.495l-.014-.006a5.194 5.194 0 00-.891-.274 3.86 3.86 0 00-1.183-.079c-.643.054-.983.371-1.09.855l-.002.01c-.604 3.025-1.069 5.376-1.393 7.053-.527.039-1.066.083-1.615.133.169-1.093.327-2.072.476-2.938l.004-.031c.042-.375-.181-.887-.838-1.429-.444-.438-1.005-.747-1.684-.918-1.056-.297-1.773-.154-2.167.232-.202.198-.341.467-.397.816l-.001.002c-.246 1.593-.493 3.199-.74 4.818-2.355.255-4.643.523-6.864.805h-.003c-.665.089-1.072.386-1.272.808-.207.438-.159.944.255 1.497l.004.005c.343.447.829.822 1.464 1.115.65.299 1.257.404 1.819.333l.009-.001a122.91 122.91 0 014.041-.506c-.112.884-.232 1.848-.36 2.89a80.488 80.488 0 00-5.089 1.182c-.418.106-.672.322-.803.584a1.202 1.202 0 00-.084.852c.058.232.154.454.289.667.126.198.261.368.405.512a.47.47 0 00.047.042 5.25 5.25 0 001.555.841c.623.214 1.219.245 1.788.102l1.364-.351a308.685 308.685 0 00-.544 5.502v.009c-.042.582.228 1.126.893 1.583.512.353 1.025.61 1.537.773.404.177.892.223 1.462.112.717-.139 1.105-.549 1.197-1.198.001-.009.003-.019.003-.029.227-2.632.493-5.278.8-7.938l1.209-.233c-.68 4.461-1.118 8.587-1.316 12.378l-.001.027c0 .257.061.513.189.77l.008.016c.417.765 1.246 1.32 2.53 1.599.852.184 1.457.089 1.826-.169.309-.217.503-.548.541-1.013l.001-.016c.231-4.306.772-9.106 1.623-14.4a87.43 87.43 0 015.011-.483c.698-.047 1.11-.352 1.296-.818.179-.449.113-.952-.29-1.49a.018.018 0 00-.004-.005c-.345-.45-.826-.818-1.448-1.095-.625-.279-1.218-.377-1.774-.311zm22.289 14.252l-.005-.002c-1.261-.773-2.354-.879-3.265-.423l-.013.006c-.864.462-1.843.865-2.937 1.211l-.027.009c-.391.147-.629.368-.751.613a1.146 1.146 0 00-.081.84c.057.211.151.422.286.633v.001c.133.21.296.392.486.546.433.366.948.65 1.547.85.643.215 1.233.242 1.769.099l.031-.009a26.836 26.836 0 003.722-1.591.982.982 0 00.49-.522c.102-.256.106-.602-.065-1.03l-.017-.04c-.215-.43-.598-.833-1.17-1.191zm11.794 0l-.005-.002c-1.261-.773-2.354-.879-3.266-.423l-.012.006c-.864.462-1.843.865-2.938 1.211l-.026.009c-.391.147-.629.368-.751.613a1.146 1.146 0 00-.081.84c.057.211.151.422.285.633v.001c.134.21.297.392.487.546.433.366.948.65 1.547.85.643.215 1.233.242 1.769.099l.031-.009a26.836 26.836 0 003.722-1.591.977.977 0 00.489-.522c.103-.256.107-.602-.064-1.03l-.017-.04c-.215-.43-.598-.833-1.17-1.191zm-60.905-2.262l-.014.011.012-.009a.592.592 0 00.121-.134l.261-.392a.517.517 0 00.075-.177c.092-.415-.008-.837-.353-1.252-.256-.307-.668-.622-1.248-.929l-.001-.001c-1.385-.73-2.414-.71-3.07-.162l-.012.01c-2.213 1.957-4.291 3.218-6.245 3.765-1.027.278-2.013.364-2.957.253a6 6 0 01-1.075-.236 2.25 2.25 0 01-.648-.396l-.015-.012c-1.338-1.089-2.183-2.802-2.573-5.119v-.002a16.696 16.696 0 01.258-6.957 16.477 16.477 0 013.105-6.199c1.457-1.817 3.228-3.169 5.313-4.057 2.239-.924 4.213-1.225 5.924-.871.096.034.252.079.469.129.219.102.348.114.348.114a.795.795 0 01-.096-.014l-.007-.005.006.005-.018-.003.032.016c.065.059.143.1.226.12.02.013.053.036.083.059.107.107.221.235.346.385.476.613.741 1.455.82 2.518.172 2.353-.484 4.947-1.945 7.787-.432.823-.87 1.544-1.316 2.163.128-.425.277-.872.447-1.34l.001-.003c.148-.415.947-2.429 2.396-6.043l.003-.008c.224-.583.1-1.142-.438-1.658a4.993 4.993 0 00-1.38-.937 8.099 8.099 0 00-.858-.263 3.068 3.068 0 00-1.151-.055c-.551.072-.909.343-1.1.774a57.784 57.784 0 01-.692 1.743c-1.681-.69-3.282-.733-4.803-.147-1.115.427-1.991 1.126-2.63 2.095-.621.941-1.013 2.016-1.173 3.228-.194 1.458-.005 2.704.543 3.741.75 1.498 2.044 2.486 3.899 2.943a4.288 4.288 0 001.608.157c.205.332.518.642.947.921.108.156.232.286.369.39l-.012-.009c1.026.884 2.123 1.192 3.284.953a.036.036 0 01.011-.002c2.465-.563 4.624-2.398 6.434-5.554 1.709-2.966 2.589-5.872 2.651-8.716.062-1.708-.305-3.241-1.095-4.601-.788-1.358-1.921-2.45-3.403-3.271l-.005-.003c-2.684-1.452-5.783-1.818-9.3-1.077-2.852.584-5.374 1.873-7.567 3.87a17.296 17.296 0 00-4.746 7.164 19.038 19.038 0 00-1.143 5.702 17.39 17.39 0 00.756 5.905c.605 1.988 1.592 3.664 2.957 5.031 1.304 1.307 2.872 2.257 4.704 2.848 1.828.589 3.655.759 5.483.51h.002c3.048-.427 6.116-1.985 9.195-4.696zm34.097 2.506l-.004.004.004-.004zm-1.316-2.034l.002.002a4.64 4.64 0 001.63.897c.397.175.886.222 1.458.111.717-.139 1.105-.549 1.197-1.198l.003-.02a635.625 635.625 0 002.182-27.079l.001-.031a1.704 1.704 0 00-.206-.801c-.448-.76-1.275-1.305-2.514-1.582-.878-.207-1.495-.114-1.86.15-.306.221-.494.562-.515 1.046a640.975 640.975 0 01-2.179 27.076c-.041.373.172.883.801 1.429zm-41.1-14.52l-.46 1.239a9.237 9.237 0 00-.188.549 2.065 2.065 0 00-.268.291 39.527 39.527 0 01-1.288 1.533 5.96 5.96 0 01.078-.625c.237-1.261.756-2.179 1.595-2.731.171-.11.348-.195.531-.256zm27.623 2.831c-.449.069-.898.143-1.347.221.106-.808.219-1.638.339-2.488.495-.051.977-.101 1.444-.151-.145.835-.29 1.641-.436 2.418zm7.518-.773l-.013.002.013-.002z"})]})]})}))}}}]); -//# sourceMappingURL=5154.11f59f8e.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5154],{5154:function(c,l,a){a.r(l);var e=a(1413),n=(a(2791),a(9259)),i=a(184);l.default=function(c){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},c),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsxs)("g",{children:[(0,i.jsx)("path",{fill:c.htmlColor||"#000",d:"M11.886 75.885c.408 2.235 1.47 9.625-.474 17.62-1.262 5.191-3.85 10.642-8.883 15.016-1.492 1.297-1.378 2.726-1.132 3.686.221.861 1.17 2.484 3.777 2.732 1.958.186 6.878-.451 12.699-2.634 7.622-2.858 16.765-8.42 22.734-17.787 3.09.552 8.213 1.4 13.462 1.979 4.01.443 8.089.706 11.443.611 18.265-.605 35.832-4.66 47.938-12.929 10.443-7.132 16.984-17.297 17.406-30.656.244-10.923-6.967-20.778-19.356-27.527-11.733-6.392-28.112-10.127-45.381-9.867-17.329.348-34.936 4.197-47.426 11.096C6.668 33.868-.725 43.261.3 54.737c.389 4.295 1.649 8.416 3.883 12.228 1.884 3.213 4.427 6.223 7.703 8.92zm.572 30.764c2.358-3.882 4.427-8.537 5.176-12.5 2.071-10.959-.751-20.679-.751-20.679a2.296 2.296 0 00-.759-1.191c-2.944-2.559-5.179-5.38-6.751-8.379-1.672-3.188-3.208-6.035-3.36-9.544-.405-9.131 6.242-15.955 15.996-20.815 11.773-5.865 28.136-8.701 44.11-8.379 15.433.232 29.965 3.919 40.311 9.881 8.221 4.738 13.828 10.797 13.533 18.139-.298 9.646-5.238 16.806-12.708 22.056-10.611 7.458-26.048 11.284-42.188 12.241-2.968.191-6.59.063-10.157-.195-8.005-.58-15.736-1.794-15.736-1.794a4.305 4.305 0 00-4.618 2.329c-4.97 10.648-14.971 16.328-22.098 18.83z"}),(0,i.jsx)("path",{fill:c.htmlColor||"#000",fillRule:"nonzero",d:"M74.925 67.723a28.759 28.759 0 01-4.093 3.183c-.269.165-.425.357-.504.555a.962.962 0 00.03.775c.145.327.344.617.598.871.236.236.456.421.658.556l.006.003c1.314.854 2.424.945 3.313.411l.012-.008a28.024 28.024 0 004.239-3.338.602.602 0 00.112-.132l.21-.338a.503.503 0 00.076-.185c.152-.762-.321-1.576-1.651-2.262-1.404-.739-2.411-.679-3.006-.091zM67.65 53.226c-.677.046-1.37.099-2.08.162a89.3 89.3 0 01.427-2.272c1.901-.161 3.738-.283 5.509-.366l.01-.001c.685-.046 1.105-.341 1.31-.798.205-.455.15-.964-.258-1.51l-.004-.005c-.346-.45-.826-.818-1.449-1.095-.617-.275-1.218-.391-1.8-.356h-.002c-.768.048-1.624.106-2.566.173.248-1.22.558-2.763.93-4.629.188-.937-.347-1.82-1.806-2.495l-.014-.006a5.194 5.194 0 00-.891-.274 3.86 3.86 0 00-1.183-.079c-.643.054-.983.371-1.09.855l-.002.01c-.604 3.025-1.069 5.376-1.393 7.053-.527.039-1.066.083-1.615.133.169-1.093.327-2.072.476-2.938l.004-.031c.042-.375-.181-.887-.838-1.429-.444-.438-1.005-.747-1.684-.918-1.056-.297-1.773-.154-2.167.232-.202.198-.341.467-.397.816l-.001.002c-.246 1.593-.493 3.199-.74 4.818-2.355.255-4.643.523-6.864.805h-.003c-.665.089-1.072.386-1.272.808-.207.438-.159.944.255 1.497l.004.005c.343.447.829.822 1.464 1.115.65.299 1.257.404 1.819.333l.009-.001a122.91 122.91 0 014.041-.506c-.112.884-.232 1.848-.36 2.89a80.488 80.488 0 00-5.089 1.182c-.418.106-.672.322-.803.584a1.202 1.202 0 00-.084.852c.058.232.154.454.289.667.126.198.261.368.405.512a.47.47 0 00.047.042 5.25 5.25 0 001.555.841c.623.214 1.219.245 1.788.102l1.364-.351a308.685 308.685 0 00-.544 5.502v.009c-.042.582.228 1.126.893 1.583.512.353 1.025.61 1.537.773.404.177.892.223 1.462.112.717-.139 1.105-.549 1.197-1.198.001-.009.003-.019.003-.029.227-2.632.493-5.278.8-7.938l1.209-.233c-.68 4.461-1.118 8.587-1.316 12.378l-.001.027c0 .257.061.513.189.77l.008.016c.417.765 1.246 1.32 2.53 1.599.852.184 1.457.089 1.826-.169.309-.217.503-.548.541-1.013l.001-.016c.231-4.306.772-9.106 1.623-14.4a87.43 87.43 0 015.011-.483c.698-.047 1.11-.352 1.296-.818.179-.449.113-.952-.29-1.49a.018.018 0 00-.004-.005c-.345-.45-.826-.818-1.448-1.095-.625-.279-1.218-.377-1.774-.311zm22.289 14.252l-.005-.002c-1.261-.773-2.354-.879-3.265-.423l-.013.006c-.864.462-1.843.865-2.937 1.211l-.027.009c-.391.147-.629.368-.751.613a1.146 1.146 0 00-.081.84c.057.211.151.422.286.633v.001c.133.21.296.392.486.546.433.366.948.65 1.547.85.643.215 1.233.242 1.769.099l.031-.009a26.836 26.836 0 003.722-1.591.982.982 0 00.49-.522c.102-.256.106-.602-.065-1.03l-.017-.04c-.215-.43-.598-.833-1.17-1.191zm11.794 0l-.005-.002c-1.261-.773-2.354-.879-3.266-.423l-.012.006c-.864.462-1.843.865-2.938 1.211l-.026.009c-.391.147-.629.368-.751.613a1.146 1.146 0 00-.081.84c.057.211.151.422.285.633v.001c.134.21.297.392.487.546.433.366.948.65 1.547.85.643.215 1.233.242 1.769.099l.031-.009a26.836 26.836 0 003.722-1.591.977.977 0 00.489-.522c.103-.256.107-.602-.064-1.03l-.017-.04c-.215-.43-.598-.833-1.17-1.191zm-60.905-2.262l-.014.011.012-.009a.592.592 0 00.121-.134l.261-.392a.517.517 0 00.075-.177c.092-.415-.008-.837-.353-1.252-.256-.307-.668-.622-1.248-.929l-.001-.001c-1.385-.73-2.414-.71-3.07-.162l-.012.01c-2.213 1.957-4.291 3.218-6.245 3.765-1.027.278-2.013.364-2.957.253a6 6 0 01-1.075-.236 2.25 2.25 0 01-.648-.396l-.015-.012c-1.338-1.089-2.183-2.802-2.573-5.119v-.002a16.696 16.696 0 01.258-6.957 16.477 16.477 0 013.105-6.199c1.457-1.817 3.228-3.169 5.313-4.057 2.239-.924 4.213-1.225 5.924-.871.096.034.252.079.469.129.219.102.348.114.348.114a.795.795 0 01-.096-.014l-.007-.005.006.005-.018-.003.032.016c.065.059.143.1.226.12.02.013.053.036.083.059.107.107.221.235.346.385.476.613.741 1.455.82 2.518.172 2.353-.484 4.947-1.945 7.787-.432.823-.87 1.544-1.316 2.163.128-.425.277-.872.447-1.34l.001-.003c.148-.415.947-2.429 2.396-6.043l.003-.008c.224-.583.1-1.142-.438-1.658a4.993 4.993 0 00-1.38-.937 8.099 8.099 0 00-.858-.263 3.068 3.068 0 00-1.151-.055c-.551.072-.909.343-1.1.774a57.784 57.784 0 01-.692 1.743c-1.681-.69-3.282-.733-4.803-.147-1.115.427-1.991 1.126-2.63 2.095-.621.941-1.013 2.016-1.173 3.228-.194 1.458-.005 2.704.543 3.741.75 1.498 2.044 2.486 3.899 2.943a4.288 4.288 0 001.608.157c.205.332.518.642.947.921.108.156.232.286.369.39l-.012-.009c1.026.884 2.123 1.192 3.284.953a.036.036 0 01.011-.002c2.465-.563 4.624-2.398 6.434-5.554 1.709-2.966 2.589-5.872 2.651-8.716.062-1.708-.305-3.241-1.095-4.601-.788-1.358-1.921-2.45-3.403-3.271l-.005-.003c-2.684-1.452-5.783-1.818-9.3-1.077-2.852.584-5.374 1.873-7.567 3.87a17.296 17.296 0 00-4.746 7.164 19.038 19.038 0 00-1.143 5.702 17.39 17.39 0 00.756 5.905c.605 1.988 1.592 3.664 2.957 5.031 1.304 1.307 2.872 2.257 4.704 2.848 1.828.589 3.655.759 5.483.51h.002c3.048-.427 6.116-1.985 9.195-4.696zm34.097 2.506l-.004.004.004-.004zm-1.316-2.034l.002.002a4.64 4.64 0 001.63.897c.397.175.886.222 1.458.111.717-.139 1.105-.549 1.197-1.198l.003-.02a635.625 635.625 0 002.182-27.079l.001-.031a1.704 1.704 0 00-.206-.801c-.448-.76-1.275-1.305-2.514-1.582-.878-.207-1.495-.114-1.86.15-.306.221-.494.562-.515 1.046a640.975 640.975 0 01-2.179 27.076c-.041.373.172.883.801 1.429zm-41.1-14.52l-.46 1.239a9.237 9.237 0 00-.188.549 2.065 2.065 0 00-.268.291 39.527 39.527 0 01-1.288 1.533 5.96 5.96 0 01.078-.625c.237-1.261.756-2.179 1.595-2.731.171-.11.348-.195.531-.256zm27.623 2.831c-.449.069-.898.143-1.347.221.106-.808.219-1.638.339-2.488.495-.051.977-.101 1.444-.151-.145.835-.29 1.641-.436 2.418zm7.518-.773l-.013.002.013-.002z"})]})]})}))}}}]); +//# sourceMappingURL=5154.20ccace4.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.11f59f8e.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.20ccace4.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.11f59f8e.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.20ccace4.chunk.js.map index 4cdc84091..4d62bb84d 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.11f59f8e.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5154.20ccace4.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/5154.11f59f8e.chunk.js","mappings":"4JAgCA,UA7BwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,0BACE,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE,wnCAEJ,iBACED,KAAMR,EAAMU,WAAa,OACzBR,SAAS,UACTO,EAAE","sources":["os/apps/icons/npwd_icons/svg/MESSAGES.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MessagesAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default MessagesAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/5154.20ccace4.chunk.js","mappings":"4JAgCA,UA7BwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,0BACE,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE,wnCAEJ,iBACED,KAAMR,EAAMU,WAAa,OACzBR,SAAS,UACTO,EAAE","sources":["os/apps/icons/npwd_icons/svg/MESSAGES.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MessagesAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default MessagesAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.cc497184.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.18a7faf0.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.cc497184.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.18a7faf0.chunk.js index 3eaaa038c..2037333dd 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.cc497184.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.18a7faf0.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5647],{5647:function(c,l,a){a.r(l);var e=a(8489),n=(a(2791),a(9259)),i=a(184);l.default=function(c){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},c),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsxs)("g",{fill:c.htmlColor||"#000",children:[(0,i.jsx)("path",{fillRule:"nonzero",d:"M58.446 100.843l-.002.001-.111-.814-.423.072a4.189 4.189 0 01-.628.059c-.215-.004-.373 0-.488.006-.457-.006-1.092-.107-1.901-.287l-.027-.006a9.083 9.083 0 00-1.957-.157 8.404 8.404 0 00-2.156.327c-.984.281-1.545.797-1.734 1.512-.175.65.03 1.248.659 1.785.655.559 1.911 1.072 3.819 1.456 4.335.947 8.77.769 13.305-.549.309 2.174.647 4.292 1.012 6.353l.087.326a.72.72 0 00.103.217c.624.898 1.978 1.497 4.182 1.594 1.511.08 2.51-.179 3.051-.589.482-.366.725-.866.629-1.524a1239.382 1239.382 0 01-1.545-9.553c.72-.411 1.412-.848 2.077-1.312 7.412-4.882 10.396-9.629 9.221-14.124-.847-3.503-4.878-6.508-12.293-8.84a37.323 37.323 0 00-2.198-.635c-.34-3.261-.616-6.387-.829-9.379a.643.643 0 00-.014-.098c-.001-.012-.052-.501-.112-1.217a46.405 46.405 0 017.372-1.382l.015-.002c1.086-.126 1.95-.436 2.606-.901.396-.28.616-.596.7-.929.112-.447-.019-.964-.535-1.518-.612-.657-1.577-1.186-2.932-1.546-1.293-.345-2.472-.442-3.533-.315a70.99 70.99 0 00-4.211.627 211.48 211.48 0 00-.383-5.395.658.658 0 00-.027-.163l-.082-.293a.71.71 0 00-.047-.111c-.476-.887-1.732-1.54-3.935-1.708l-.008-.001c-1.873-.131-3.01.255-3.52.838-.275.315-.42.707-.383 1.186.132 2.266.303 4.766.513 7.5-.402.11-.779.226-1.131.347-.887.294-1.603.547-2.15.759-.54.21-1.239.494-2.097.852-.901.376-1.648.74-2.243 1.088-.6.352-1.211.779-1.832 1.283-.646.525-1.156 1.055-1.537 1.586l-.007.01c-.917 1.325-1.276 2.575-1.122 3.743.156 1.185.668 2.201 1.519 3.052.794.793 1.877 1.553 3.257 2.271a29.99 29.99 0 003.778 1.671c1.179.42 2.454.8 3.823 1.139.373.106.86.234 1.448.383a604.656 604.656 0 002.224 17.775c-.711.422-1.436.786-2.178 1.093l-.038.017c-1.679.767-3.286 1.286-4.826 1.549l-.335.057.11.814zm13.367-18.787c.275.109.554.235.839.379l.56.129-.558-.128.329.163c.207.142.482.335.824.578l.249.139c.088.072.176.149.266.235l.382.506.21.259a.693.693 0 00.051.086c.406.585.605 1.225.601 1.918v.011c.019 1.744-.84 3.531-2.528 5.377a658.143 658.143 0 01-1.225-9.652zm-8.924-8.139c-1.188-.383-2.026-.773-2.479-1.216l-.021-.02c-.756-.69-.707-1.539-.028-2.542l.001-.002c.41-.61 1.089-1.176 2.024-1.711l.503 5.491z"}),(0,i.jsx)("path",{d:"M46.249 27.211a1.879 1.879 0 001.015 3.598s.527-.047 1.468-.123c.015.23.024.474.029.729-.558.043-.864.069-.864.069a1.36 1.36 0 00-.794 2.446 1.36 1.36 0 00.917 2.201l.575.098c-.036.468-.072.895-.106 1.258-.825.119-1.288.191-1.288.191a1.88 1.88 0 00-1.486 2.848c-.606.38-1.34.798-2.223 1.249-1.736.885-3.984 1.833-6.882 2.8-6.965 2.325-15.771 8.42-21.67 17.453-4.799 7.349-7.651 16.623-6.169 27.345 1.398 10.098 7.128 18.379 15.434 24.695 10.511 7.992 25.239 12.766 40.136 14.111 12.423 1.091 24.62-1.912 34.562-7.464 11.755-6.564 20.295-16.711 22.802-27.706 2.092-9.335.674-16.82-2.607-23.035-4.929-9.337-14.317-15.729-22.31-21.233-3.373-2.323-6.463-4.463-8.642-6.699-.662-.68-1.248-1.346-1.683-2.033a1.88 1.88 0 00.625-2.853c-.054-.079-.172-.185-.356-.301a1.36 1.36 0 00-1.306-1.582l-.14-1.035c.316.005.579.016.784.032a1.36 1.36 0 00.346-2.696 23.32 23.32 0 00-1.429-.186c-.042-.617-.097-1.209.016-1.704.426.087.838.186 1.234.297a1.879 1.879 0 001.24-3.546c-.223-.093-.45-.184-.682-.272 1.019-1.804 2.367-3.983 3.877-5.911 1.331-1.7 2.707-3.28 4.162-3.843 3.255-1.26 4.81-2.409 5.598-3.425 1.247-1.606 1.369-3.239.948-5.737a3.421 3.421 0 00-3.225-2.88l-33.093-.974c-2.56-.035-4.433.096-5.889.297a24.995 24.995 0 00-3.595.769c-1.129.319-1.903.621-3.564.373-1.588-.238-2.938-1.148-4.52-1.637-.946-.292-1.942-.495-3.033-.509a5.642 5.642 0 00-1.977.317 7.959 7.959 0 00-1.67.844c-.233.151-.462.31-.693.459-.107.069-.164.224-.297.225-1.511.014-2.736-.964-3.937-1.304-.731-.206-1.454-.311-2.174-.26-2.383.167-4.265.453-5.384.835-.984.335-1.651.824-2.084 1.323-.438.409-1.124 1.29-1.173 2.794-.031.92.16 2.309 1.5 4.126 1.152 1.563 3.305 3.682 6.393 6.136 2.708 2.152 6.155 4.601 10.255 7.218 1.083.69 2.12 1.239 3.029 1.812zm32.361 13.2c-1.061.089-2.208.188-3.417.289-2.669.221-5.614.512-8.575.666-2.615.135-5.233.165-7.656.18-2.86.018-4.243.131-6.235.101-.8.921-2.556 2.416-4.83 3.797-2.025 1.231-5.681 2.769-9.701 4.224-6.066 2.196-13.625 7.254-18.618 15.311-3.955 6.381-6.258 14.353-4.787 23.493 1.349 8.389 6.386 15.105 13.41 20.232 9.698 7.079 19.205 10.618 32.77 11.608 10.868.82 24.209-1.713 32.853-6.643 9.604-5.478 16.825-13.624 18.831-22.665 1.607-7.115.62-12.825-1.854-17.579-5.146-9.886-14.875-15.621-22.445-21.301-5.022-3.767-8.623-7.607-9.746-11.713zm-.712-5.983c-1.002.036-2.059.073-3.154.109-1.346.045-2.748.097-4.175.138l1.161.101c2.234.194 4.369.389 6.271.53l-.103-.878zm-.152-5.327a98.866 98.866 0 00-2.854.042c-1.797.051-3.633.17-5.473.272-1.854.104-3.706.216-5.506.316-2.344.131-4.596.237-6.65.359-1.422.085-2.746.172-3.936.254.016.243.026.494.032.751 1.743-.109 3.806-.224 6.04-.323 2.422-.108 5.044-.203 7.674-.209 2.619-.005 5.242.087 7.682.182.996.038 1.961.081 2.882.127l.002-.191c.008-.543.043-1.072.107-1.58zm1.763-4.717c1.23-2.241 3.264-5.652 5.61-8.551 1.665-2.058 3.511-3.84 5.341-4.988L64.909 9.613c-6.684-.236-8.083.956-10.283 1.21-.976.113-2.066.119-3.552-.135-1.876-.322-3.493-1.333-5.357-1.952-.434-.145-.891-.264-1.395-.282-.399-.014-.626.342-.924.531-.505.321-1.015.618-1.558.826a5.391 5.391 0 01-2.023.384 8.043 8.043 0 01-1.891-.248c-.981-.249-1.896-.665-2.764-1.05-.397-.175-.741-.428-1.121-.409a32.788 32.788 0 00-3.217.345l.065.099c.944 1.339 2.762 3.127 5.322 5.254 2.55 2.119 6.07 3.938 9.943 6.533 1.97 1.321 3.514 2.855 4.801 4.115.334.328.641.673.916 1.044 1.892-.394 4.193-.829 6.738-1.215 2.534-.384 5.306-.726 8.143-.87 2.753-.139 5.561-.079 8.259.11 1.546.109 3.054.268 4.498.481zm15.26-15.558l.074.231-.179.08c.016-.101.055-.215.105-.311zm.365-.049l-.177-.158c.037-.015.076-.007.111.028.044.045.066.088.066.13z"})]})]})}))}}}]); -//# sourceMappingURL=5647.cc497184.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5370],{5370:function(c,l,a){a.r(l);var e=a(1413),n=(a(2791),a(9259)),i=a(184);l.default=function(c){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},c),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsxs)("g",{fill:c.htmlColor||"#000",children:[(0,i.jsx)("path",{fillRule:"nonzero",d:"M58.446 100.843l-.002.001-.111-.814-.423.072a4.189 4.189 0 01-.628.059c-.215-.004-.373 0-.488.006-.457-.006-1.092-.107-1.901-.287l-.027-.006a9.083 9.083 0 00-1.957-.157 8.404 8.404 0 00-2.156.327c-.984.281-1.545.797-1.734 1.512-.175.65.03 1.248.659 1.785.655.559 1.911 1.072 3.819 1.456 4.335.947 8.77.769 13.305-.549.309 2.174.647 4.292 1.012 6.353l.087.326a.72.72 0 00.103.217c.624.898 1.978 1.497 4.182 1.594 1.511.08 2.51-.179 3.051-.589.482-.366.725-.866.629-1.524a1239.382 1239.382 0 01-1.545-9.553c.72-.411 1.412-.848 2.077-1.312 7.412-4.882 10.396-9.629 9.221-14.124-.847-3.503-4.878-6.508-12.293-8.84a37.323 37.323 0 00-2.198-.635c-.34-3.261-.616-6.387-.829-9.379a.643.643 0 00-.014-.098c-.001-.012-.052-.501-.112-1.217a46.405 46.405 0 017.372-1.382l.015-.002c1.086-.126 1.95-.436 2.606-.901.396-.28.616-.596.7-.929.112-.447-.019-.964-.535-1.518-.612-.657-1.577-1.186-2.932-1.546-1.293-.345-2.472-.442-3.533-.315a70.99 70.99 0 00-4.211.627 211.48 211.48 0 00-.383-5.395.658.658 0 00-.027-.163l-.082-.293a.71.71 0 00-.047-.111c-.476-.887-1.732-1.54-3.935-1.708l-.008-.001c-1.873-.131-3.01.255-3.52.838-.275.315-.42.707-.383 1.186.132 2.266.303 4.766.513 7.5-.402.11-.779.226-1.131.347-.887.294-1.603.547-2.15.759-.54.21-1.239.494-2.097.852-.901.376-1.648.74-2.243 1.088-.6.352-1.211.779-1.832 1.283-.646.525-1.156 1.055-1.537 1.586l-.007.01c-.917 1.325-1.276 2.575-1.122 3.743.156 1.185.668 2.201 1.519 3.052.794.793 1.877 1.553 3.257 2.271a29.99 29.99 0 003.778 1.671c1.179.42 2.454.8 3.823 1.139.373.106.86.234 1.448.383a604.656 604.656 0 002.224 17.775c-.711.422-1.436.786-2.178 1.093l-.038.017c-1.679.767-3.286 1.286-4.826 1.549l-.335.057.11.814zm13.367-18.787c.275.109.554.235.839.379l.56.129-.558-.128.329.163c.207.142.482.335.824.578l.249.139c.088.072.176.149.266.235l.382.506.21.259a.693.693 0 00.051.086c.406.585.605 1.225.601 1.918v.011c.019 1.744-.84 3.531-2.528 5.377a658.143 658.143 0 01-1.225-9.652zm-8.924-8.139c-1.188-.383-2.026-.773-2.479-1.216l-.021-.02c-.756-.69-.707-1.539-.028-2.542l.001-.002c.41-.61 1.089-1.176 2.024-1.711l.503 5.491z"}),(0,i.jsx)("path",{d:"M46.249 27.211a1.879 1.879 0 001.015 3.598s.527-.047 1.468-.123c.015.23.024.474.029.729-.558.043-.864.069-.864.069a1.36 1.36 0 00-.794 2.446 1.36 1.36 0 00.917 2.201l.575.098c-.036.468-.072.895-.106 1.258-.825.119-1.288.191-1.288.191a1.88 1.88 0 00-1.486 2.848c-.606.38-1.34.798-2.223 1.249-1.736.885-3.984 1.833-6.882 2.8-6.965 2.325-15.771 8.42-21.67 17.453-4.799 7.349-7.651 16.623-6.169 27.345 1.398 10.098 7.128 18.379 15.434 24.695 10.511 7.992 25.239 12.766 40.136 14.111 12.423 1.091 24.62-1.912 34.562-7.464 11.755-6.564 20.295-16.711 22.802-27.706 2.092-9.335.674-16.82-2.607-23.035-4.929-9.337-14.317-15.729-22.31-21.233-3.373-2.323-6.463-4.463-8.642-6.699-.662-.68-1.248-1.346-1.683-2.033a1.88 1.88 0 00.625-2.853c-.054-.079-.172-.185-.356-.301a1.36 1.36 0 00-1.306-1.582l-.14-1.035c.316.005.579.016.784.032a1.36 1.36 0 00.346-2.696 23.32 23.32 0 00-1.429-.186c-.042-.617-.097-1.209.016-1.704.426.087.838.186 1.234.297a1.879 1.879 0 001.24-3.546c-.223-.093-.45-.184-.682-.272 1.019-1.804 2.367-3.983 3.877-5.911 1.331-1.7 2.707-3.28 4.162-3.843 3.255-1.26 4.81-2.409 5.598-3.425 1.247-1.606 1.369-3.239.948-5.737a3.421 3.421 0 00-3.225-2.88l-33.093-.974c-2.56-.035-4.433.096-5.889.297a24.995 24.995 0 00-3.595.769c-1.129.319-1.903.621-3.564.373-1.588-.238-2.938-1.148-4.52-1.637-.946-.292-1.942-.495-3.033-.509a5.642 5.642 0 00-1.977.317 7.959 7.959 0 00-1.67.844c-.233.151-.462.31-.693.459-.107.069-.164.224-.297.225-1.511.014-2.736-.964-3.937-1.304-.731-.206-1.454-.311-2.174-.26-2.383.167-4.265.453-5.384.835-.984.335-1.651.824-2.084 1.323-.438.409-1.124 1.29-1.173 2.794-.031.92.16 2.309 1.5 4.126 1.152 1.563 3.305 3.682 6.393 6.136 2.708 2.152 6.155 4.601 10.255 7.218 1.083.69 2.12 1.239 3.029 1.812zm32.361 13.2c-1.061.089-2.208.188-3.417.289-2.669.221-5.614.512-8.575.666-2.615.135-5.233.165-7.656.18-2.86.018-4.243.131-6.235.101-.8.921-2.556 2.416-4.83 3.797-2.025 1.231-5.681 2.769-9.701 4.224-6.066 2.196-13.625 7.254-18.618 15.311-3.955 6.381-6.258 14.353-4.787 23.493 1.349 8.389 6.386 15.105 13.41 20.232 9.698 7.079 19.205 10.618 32.77 11.608 10.868.82 24.209-1.713 32.853-6.643 9.604-5.478 16.825-13.624 18.831-22.665 1.607-7.115.62-12.825-1.854-17.579-5.146-9.886-14.875-15.621-22.445-21.301-5.022-3.767-8.623-7.607-9.746-11.713zm-.712-5.983c-1.002.036-2.059.073-3.154.109-1.346.045-2.748.097-4.175.138l1.161.101c2.234.194 4.369.389 6.271.53l-.103-.878zm-.152-5.327a98.866 98.866 0 00-2.854.042c-1.797.051-3.633.17-5.473.272-1.854.104-3.706.216-5.506.316-2.344.131-4.596.237-6.65.359-1.422.085-2.746.172-3.936.254.016.243.026.494.032.751 1.743-.109 3.806-.224 6.04-.323 2.422-.108 5.044-.203 7.674-.209 2.619-.005 5.242.087 7.682.182.996.038 1.961.081 2.882.127l.002-.191c.008-.543.043-1.072.107-1.58zm1.763-4.717c1.23-2.241 3.264-5.652 5.61-8.551 1.665-2.058 3.511-3.84 5.341-4.988L64.909 9.613c-6.684-.236-8.083.956-10.283 1.21-.976.113-2.066.119-3.552-.135-1.876-.322-3.493-1.333-5.357-1.952-.434-.145-.891-.264-1.395-.282-.399-.014-.626.342-.924.531-.505.321-1.015.618-1.558.826a5.391 5.391 0 01-2.023.384 8.043 8.043 0 01-1.891-.248c-.981-.249-1.896-.665-2.764-1.05-.397-.175-.741-.428-1.121-.409a32.788 32.788 0 00-3.217.345l.065.099c.944 1.339 2.762 3.127 5.322 5.254 2.55 2.119 6.07 3.938 9.943 6.533 1.97 1.321 3.514 2.855 4.801 4.115.334.328.641.673.916 1.044 1.892-.394 4.193-.829 6.738-1.215 2.534-.384 5.306-.726 8.143-.87 2.753-.139 5.561-.079 8.259.11 1.546.109 3.054.268 4.498.481zm15.26-15.558l.074.231-.179.08c.016-.101.055-.215.105-.311zm.365-.049l-.177-.158c.037-.015.076-.007.111.028.044.045.066.088.066.13z"})]})]})}))}}}]); +//# sourceMappingURL=5370.18a7faf0.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.13cf9da9.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.18a7faf0.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.13cf9da9.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.18a7faf0.chunk.js.map index 6bae89074..303b68ec4 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.13cf9da9.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.18a7faf0.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/5370.13cf9da9.chunk.js","mappings":"4JA4BA,UAzBoB,SAACA,GACnB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBACER,SAAS,UACTO,EAAE,uhEAEJ,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/EXAMPLE.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst BankAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default BankAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/5370.18a7faf0.chunk.js","mappings":"4JA4BA,UAzBoB,SAACA,GACnB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBACER,SAAS,UACTO,EAAE,uhEAEJ,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/EXAMPLE.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst BankAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default BankAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.13cf9da9.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.94ba8391.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.13cf9da9.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.94ba8391.chunk.js index fe0fcf34d..f3f77a09d 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5370.13cf9da9.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.94ba8391.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5370],{5370:function(c,l,a){a.r(l);var e=a(8489),n=(a(2791),a(9259)),i=a(184);l.default=function(c){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},c),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsxs)("g",{fill:c.htmlColor||"#000",children:[(0,i.jsx)("path",{fillRule:"nonzero",d:"M58.446 100.843l-.002.001-.111-.814-.423.072a4.189 4.189 0 01-.628.059c-.215-.004-.373 0-.488.006-.457-.006-1.092-.107-1.901-.287l-.027-.006a9.083 9.083 0 00-1.957-.157 8.404 8.404 0 00-2.156.327c-.984.281-1.545.797-1.734 1.512-.175.65.03 1.248.659 1.785.655.559 1.911 1.072 3.819 1.456 4.335.947 8.77.769 13.305-.549.309 2.174.647 4.292 1.012 6.353l.087.326a.72.72 0 00.103.217c.624.898 1.978 1.497 4.182 1.594 1.511.08 2.51-.179 3.051-.589.482-.366.725-.866.629-1.524a1239.382 1239.382 0 01-1.545-9.553c.72-.411 1.412-.848 2.077-1.312 7.412-4.882 10.396-9.629 9.221-14.124-.847-3.503-4.878-6.508-12.293-8.84a37.323 37.323 0 00-2.198-.635c-.34-3.261-.616-6.387-.829-9.379a.643.643 0 00-.014-.098c-.001-.012-.052-.501-.112-1.217a46.405 46.405 0 017.372-1.382l.015-.002c1.086-.126 1.95-.436 2.606-.901.396-.28.616-.596.7-.929.112-.447-.019-.964-.535-1.518-.612-.657-1.577-1.186-2.932-1.546-1.293-.345-2.472-.442-3.533-.315a70.99 70.99 0 00-4.211.627 211.48 211.48 0 00-.383-5.395.658.658 0 00-.027-.163l-.082-.293a.71.71 0 00-.047-.111c-.476-.887-1.732-1.54-3.935-1.708l-.008-.001c-1.873-.131-3.01.255-3.52.838-.275.315-.42.707-.383 1.186.132 2.266.303 4.766.513 7.5-.402.11-.779.226-1.131.347-.887.294-1.603.547-2.15.759-.54.21-1.239.494-2.097.852-.901.376-1.648.74-2.243 1.088-.6.352-1.211.779-1.832 1.283-.646.525-1.156 1.055-1.537 1.586l-.007.01c-.917 1.325-1.276 2.575-1.122 3.743.156 1.185.668 2.201 1.519 3.052.794.793 1.877 1.553 3.257 2.271a29.99 29.99 0 003.778 1.671c1.179.42 2.454.8 3.823 1.139.373.106.86.234 1.448.383a604.656 604.656 0 002.224 17.775c-.711.422-1.436.786-2.178 1.093l-.038.017c-1.679.767-3.286 1.286-4.826 1.549l-.335.057.11.814zm13.367-18.787c.275.109.554.235.839.379l.56.129-.558-.128.329.163c.207.142.482.335.824.578l.249.139c.088.072.176.149.266.235l.382.506.21.259a.693.693 0 00.051.086c.406.585.605 1.225.601 1.918v.011c.019 1.744-.84 3.531-2.528 5.377a658.143 658.143 0 01-1.225-9.652zm-8.924-8.139c-1.188-.383-2.026-.773-2.479-1.216l-.021-.02c-.756-.69-.707-1.539-.028-2.542l.001-.002c.41-.61 1.089-1.176 2.024-1.711l.503 5.491z"}),(0,i.jsx)("path",{d:"M46.249 27.211a1.879 1.879 0 001.015 3.598s.527-.047 1.468-.123c.015.23.024.474.029.729-.558.043-.864.069-.864.069a1.36 1.36 0 00-.794 2.446 1.36 1.36 0 00.917 2.201l.575.098c-.036.468-.072.895-.106 1.258-.825.119-1.288.191-1.288.191a1.88 1.88 0 00-1.486 2.848c-.606.38-1.34.798-2.223 1.249-1.736.885-3.984 1.833-6.882 2.8-6.965 2.325-15.771 8.42-21.67 17.453-4.799 7.349-7.651 16.623-6.169 27.345 1.398 10.098 7.128 18.379 15.434 24.695 10.511 7.992 25.239 12.766 40.136 14.111 12.423 1.091 24.62-1.912 34.562-7.464 11.755-6.564 20.295-16.711 22.802-27.706 2.092-9.335.674-16.82-2.607-23.035-4.929-9.337-14.317-15.729-22.31-21.233-3.373-2.323-6.463-4.463-8.642-6.699-.662-.68-1.248-1.346-1.683-2.033a1.88 1.88 0 00.625-2.853c-.054-.079-.172-.185-.356-.301a1.36 1.36 0 00-1.306-1.582l-.14-1.035c.316.005.579.016.784.032a1.36 1.36 0 00.346-2.696 23.32 23.32 0 00-1.429-.186c-.042-.617-.097-1.209.016-1.704.426.087.838.186 1.234.297a1.879 1.879 0 001.24-3.546c-.223-.093-.45-.184-.682-.272 1.019-1.804 2.367-3.983 3.877-5.911 1.331-1.7 2.707-3.28 4.162-3.843 3.255-1.26 4.81-2.409 5.598-3.425 1.247-1.606 1.369-3.239.948-5.737a3.421 3.421 0 00-3.225-2.88l-33.093-.974c-2.56-.035-4.433.096-5.889.297a24.995 24.995 0 00-3.595.769c-1.129.319-1.903.621-3.564.373-1.588-.238-2.938-1.148-4.52-1.637-.946-.292-1.942-.495-3.033-.509a5.642 5.642 0 00-1.977.317 7.959 7.959 0 00-1.67.844c-.233.151-.462.31-.693.459-.107.069-.164.224-.297.225-1.511.014-2.736-.964-3.937-1.304-.731-.206-1.454-.311-2.174-.26-2.383.167-4.265.453-5.384.835-.984.335-1.651.824-2.084 1.323-.438.409-1.124 1.29-1.173 2.794-.031.92.16 2.309 1.5 4.126 1.152 1.563 3.305 3.682 6.393 6.136 2.708 2.152 6.155 4.601 10.255 7.218 1.083.69 2.12 1.239 3.029 1.812zm32.361 13.2c-1.061.089-2.208.188-3.417.289-2.669.221-5.614.512-8.575.666-2.615.135-5.233.165-7.656.18-2.86.018-4.243.131-6.235.101-.8.921-2.556 2.416-4.83 3.797-2.025 1.231-5.681 2.769-9.701 4.224-6.066 2.196-13.625 7.254-18.618 15.311-3.955 6.381-6.258 14.353-4.787 23.493 1.349 8.389 6.386 15.105 13.41 20.232 9.698 7.079 19.205 10.618 32.77 11.608 10.868.82 24.209-1.713 32.853-6.643 9.604-5.478 16.825-13.624 18.831-22.665 1.607-7.115.62-12.825-1.854-17.579-5.146-9.886-14.875-15.621-22.445-21.301-5.022-3.767-8.623-7.607-9.746-11.713zm-.712-5.983c-1.002.036-2.059.073-3.154.109-1.346.045-2.748.097-4.175.138l1.161.101c2.234.194 4.369.389 6.271.53l-.103-.878zm-.152-5.327a98.866 98.866 0 00-2.854.042c-1.797.051-3.633.17-5.473.272-1.854.104-3.706.216-5.506.316-2.344.131-4.596.237-6.65.359-1.422.085-2.746.172-3.936.254.016.243.026.494.032.751 1.743-.109 3.806-.224 6.04-.323 2.422-.108 5.044-.203 7.674-.209 2.619-.005 5.242.087 7.682.182.996.038 1.961.081 2.882.127l.002-.191c.008-.543.043-1.072.107-1.58zm1.763-4.717c1.23-2.241 3.264-5.652 5.61-8.551 1.665-2.058 3.511-3.84 5.341-4.988L64.909 9.613c-6.684-.236-8.083.956-10.283 1.21-.976.113-2.066.119-3.552-.135-1.876-.322-3.493-1.333-5.357-1.952-.434-.145-.891-.264-1.395-.282-.399-.014-.626.342-.924.531-.505.321-1.015.618-1.558.826a5.391 5.391 0 01-2.023.384 8.043 8.043 0 01-1.891-.248c-.981-.249-1.896-.665-2.764-1.05-.397-.175-.741-.428-1.121-.409a32.788 32.788 0 00-3.217.345l.065.099c.944 1.339 2.762 3.127 5.322 5.254 2.55 2.119 6.07 3.938 9.943 6.533 1.97 1.321 3.514 2.855 4.801 4.115.334.328.641.673.916 1.044 1.892-.394 4.193-.829 6.738-1.215 2.534-.384 5.306-.726 8.143-.87 2.753-.139 5.561-.079 8.259.11 1.546.109 3.054.268 4.498.481zm15.26-15.558l.074.231-.179.08c.016-.101.055-.215.105-.311zm.365-.049l-.177-.158c.037-.015.076-.007.111.028.044.045.066.088.066.13z"})]})]})}))}}}]); -//# sourceMappingURL=5370.13cf9da9.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5647],{5647:function(c,l,a){a.r(l);var e=a(1413),n=(a(2791),a(9259)),i=a(184);l.default=function(c){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},c),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsxs)("g",{fill:c.htmlColor||"#000",children:[(0,i.jsx)("path",{fillRule:"nonzero",d:"M58.446 100.843l-.002.001-.111-.814-.423.072a4.189 4.189 0 01-.628.059c-.215-.004-.373 0-.488.006-.457-.006-1.092-.107-1.901-.287l-.027-.006a9.083 9.083 0 00-1.957-.157 8.404 8.404 0 00-2.156.327c-.984.281-1.545.797-1.734 1.512-.175.65.03 1.248.659 1.785.655.559 1.911 1.072 3.819 1.456 4.335.947 8.77.769 13.305-.549.309 2.174.647 4.292 1.012 6.353l.087.326a.72.72 0 00.103.217c.624.898 1.978 1.497 4.182 1.594 1.511.08 2.51-.179 3.051-.589.482-.366.725-.866.629-1.524a1239.382 1239.382 0 01-1.545-9.553c.72-.411 1.412-.848 2.077-1.312 7.412-4.882 10.396-9.629 9.221-14.124-.847-3.503-4.878-6.508-12.293-8.84a37.323 37.323 0 00-2.198-.635c-.34-3.261-.616-6.387-.829-9.379a.643.643 0 00-.014-.098c-.001-.012-.052-.501-.112-1.217a46.405 46.405 0 017.372-1.382l.015-.002c1.086-.126 1.95-.436 2.606-.901.396-.28.616-.596.7-.929.112-.447-.019-.964-.535-1.518-.612-.657-1.577-1.186-2.932-1.546-1.293-.345-2.472-.442-3.533-.315a70.99 70.99 0 00-4.211.627 211.48 211.48 0 00-.383-5.395.658.658 0 00-.027-.163l-.082-.293a.71.71 0 00-.047-.111c-.476-.887-1.732-1.54-3.935-1.708l-.008-.001c-1.873-.131-3.01.255-3.52.838-.275.315-.42.707-.383 1.186.132 2.266.303 4.766.513 7.5-.402.11-.779.226-1.131.347-.887.294-1.603.547-2.15.759-.54.21-1.239.494-2.097.852-.901.376-1.648.74-2.243 1.088-.6.352-1.211.779-1.832 1.283-.646.525-1.156 1.055-1.537 1.586l-.007.01c-.917 1.325-1.276 2.575-1.122 3.743.156 1.185.668 2.201 1.519 3.052.794.793 1.877 1.553 3.257 2.271a29.99 29.99 0 003.778 1.671c1.179.42 2.454.8 3.823 1.139.373.106.86.234 1.448.383a604.656 604.656 0 002.224 17.775c-.711.422-1.436.786-2.178 1.093l-.038.017c-1.679.767-3.286 1.286-4.826 1.549l-.335.057.11.814zm13.367-18.787c.275.109.554.235.839.379l.56.129-.558-.128.329.163c.207.142.482.335.824.578l.249.139c.088.072.176.149.266.235l.382.506.21.259a.693.693 0 00.051.086c.406.585.605 1.225.601 1.918v.011c.019 1.744-.84 3.531-2.528 5.377a658.143 658.143 0 01-1.225-9.652zm-8.924-8.139c-1.188-.383-2.026-.773-2.479-1.216l-.021-.02c-.756-.69-.707-1.539-.028-2.542l.001-.002c.41-.61 1.089-1.176 2.024-1.711l.503 5.491z"}),(0,i.jsx)("path",{d:"M46.249 27.211a1.879 1.879 0 001.015 3.598s.527-.047 1.468-.123c.015.23.024.474.029.729-.558.043-.864.069-.864.069a1.36 1.36 0 00-.794 2.446 1.36 1.36 0 00.917 2.201l.575.098c-.036.468-.072.895-.106 1.258-.825.119-1.288.191-1.288.191a1.88 1.88 0 00-1.486 2.848c-.606.38-1.34.798-2.223 1.249-1.736.885-3.984 1.833-6.882 2.8-6.965 2.325-15.771 8.42-21.67 17.453-4.799 7.349-7.651 16.623-6.169 27.345 1.398 10.098 7.128 18.379 15.434 24.695 10.511 7.992 25.239 12.766 40.136 14.111 12.423 1.091 24.62-1.912 34.562-7.464 11.755-6.564 20.295-16.711 22.802-27.706 2.092-9.335.674-16.82-2.607-23.035-4.929-9.337-14.317-15.729-22.31-21.233-3.373-2.323-6.463-4.463-8.642-6.699-.662-.68-1.248-1.346-1.683-2.033a1.88 1.88 0 00.625-2.853c-.054-.079-.172-.185-.356-.301a1.36 1.36 0 00-1.306-1.582l-.14-1.035c.316.005.579.016.784.032a1.36 1.36 0 00.346-2.696 23.32 23.32 0 00-1.429-.186c-.042-.617-.097-1.209.016-1.704.426.087.838.186 1.234.297a1.879 1.879 0 001.24-3.546c-.223-.093-.45-.184-.682-.272 1.019-1.804 2.367-3.983 3.877-5.911 1.331-1.7 2.707-3.28 4.162-3.843 3.255-1.26 4.81-2.409 5.598-3.425 1.247-1.606 1.369-3.239.948-5.737a3.421 3.421 0 00-3.225-2.88l-33.093-.974c-2.56-.035-4.433.096-5.889.297a24.995 24.995 0 00-3.595.769c-1.129.319-1.903.621-3.564.373-1.588-.238-2.938-1.148-4.52-1.637-.946-.292-1.942-.495-3.033-.509a5.642 5.642 0 00-1.977.317 7.959 7.959 0 00-1.67.844c-.233.151-.462.31-.693.459-.107.069-.164.224-.297.225-1.511.014-2.736-.964-3.937-1.304-.731-.206-1.454-.311-2.174-.26-2.383.167-4.265.453-5.384.835-.984.335-1.651.824-2.084 1.323-.438.409-1.124 1.29-1.173 2.794-.031.92.16 2.309 1.5 4.126 1.152 1.563 3.305 3.682 6.393 6.136 2.708 2.152 6.155 4.601 10.255 7.218 1.083.69 2.12 1.239 3.029 1.812zm32.361 13.2c-1.061.089-2.208.188-3.417.289-2.669.221-5.614.512-8.575.666-2.615.135-5.233.165-7.656.18-2.86.018-4.243.131-6.235.101-.8.921-2.556 2.416-4.83 3.797-2.025 1.231-5.681 2.769-9.701 4.224-6.066 2.196-13.625 7.254-18.618 15.311-3.955 6.381-6.258 14.353-4.787 23.493 1.349 8.389 6.386 15.105 13.41 20.232 9.698 7.079 19.205 10.618 32.77 11.608 10.868.82 24.209-1.713 32.853-6.643 9.604-5.478 16.825-13.624 18.831-22.665 1.607-7.115.62-12.825-1.854-17.579-5.146-9.886-14.875-15.621-22.445-21.301-5.022-3.767-8.623-7.607-9.746-11.713zm-.712-5.983c-1.002.036-2.059.073-3.154.109-1.346.045-2.748.097-4.175.138l1.161.101c2.234.194 4.369.389 6.271.53l-.103-.878zm-.152-5.327a98.866 98.866 0 00-2.854.042c-1.797.051-3.633.17-5.473.272-1.854.104-3.706.216-5.506.316-2.344.131-4.596.237-6.65.359-1.422.085-2.746.172-3.936.254.016.243.026.494.032.751 1.743-.109 3.806-.224 6.04-.323 2.422-.108 5.044-.203 7.674-.209 2.619-.005 5.242.087 7.682.182.996.038 1.961.081 2.882.127l.002-.191c.008-.543.043-1.072.107-1.58zm1.763-4.717c1.23-2.241 3.264-5.652 5.61-8.551 1.665-2.058 3.511-3.84 5.341-4.988L64.909 9.613c-6.684-.236-8.083.956-10.283 1.21-.976.113-2.066.119-3.552-.135-1.876-.322-3.493-1.333-5.357-1.952-.434-.145-.891-.264-1.395-.282-.399-.014-.626.342-.924.531-.505.321-1.015.618-1.558.826a5.391 5.391 0 01-2.023.384 8.043 8.043 0 01-1.891-.248c-.981-.249-1.896-.665-2.764-1.05-.397-.175-.741-.428-1.121-.409a32.788 32.788 0 00-3.217.345l.065.099c.944 1.339 2.762 3.127 5.322 5.254 2.55 2.119 6.07 3.938 9.943 6.533 1.97 1.321 3.514 2.855 4.801 4.115.334.328.641.673.916 1.044 1.892-.394 4.193-.829 6.738-1.215 2.534-.384 5.306-.726 8.143-.87 2.753-.139 5.561-.079 8.259.11 1.546.109 3.054.268 4.498.481zm15.26-15.558l.074.231-.179.08c.016-.101.055-.215.105-.311zm.365-.049l-.177-.158c.037-.015.076-.007.111.028.044.045.066.088.066.13z"})]})]})}))}}}]); +//# sourceMappingURL=5647.94ba8391.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.cc497184.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.94ba8391.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.cc497184.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.94ba8391.chunk.js.map index f020cae0c..f93edcb57 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.cc497184.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5647.94ba8391.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/5647.cc497184.chunk.js","mappings":"4JA4BA,UAzBoB,SAACA,GACnB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBACER,SAAS,UACTO,EAAE,uhEAEJ,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/BANK.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst BankAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default BankAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/5647.94ba8391.chunk.js","mappings":"4JA4BA,UAzBoB,SAACA,GACnB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBACER,SAAS,UACTO,EAAE,uhEAEJ,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/BANK.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst BankAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default BankAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.3abad4dd.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.930fcd3a.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.3abad4dd.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.930fcd3a.chunk.js index 4961514fc..d896957a4 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.3abad4dd.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.930fcd3a.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5874],{5874:function(l,c,a){a.r(c);var i=a(8489),s=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#2b3465",d:"M53.83 35.564l11.15.471 27.64.315 23.714 1.256-13.035 15.547-.157 16.333 18.06 13.035 15.233 17.117-2.827 18.06-9.893 12.564-25.127 11.621-31.095-3.141-19.945-11.778-6.596-13.192-.471-19.002 12.25-16.804L71.233 67.25l2.542-7.03-4.241-9.108-10.679-7.538s-6.438-4.712-5.025-8.01z"}),(0,e.jsxs)("g",{fill:"#fff",children:[(0,e.jsx)("path",{fillRule:"nonzero",d:"M80.941 121.515h-.002l-.101-.74-.384.066a3.835 3.835 0 01-.571.053c-.195-.003-.338 0-.443.006-.415-.005-.992-.097-1.728-.261l-.024-.005a8.197 8.197 0 00-1.778-.143 7.664 7.664 0 00-1.959.297c-.894.256-1.405.725-1.577 1.374-.158.59.028 1.134.6 1.622.595.508 1.736.974 3.47 1.323 3.939.861 7.969.699 12.09-.499.281 1.976.587 3.9.92 5.773l.079.296a.65.65 0 00.093.198c.567.815 1.797 1.36 3.8 1.448 1.373.073 2.281-.163 2.772-.536.439-.332.659-.786.572-1.384l-.002-.012c-.46-2.776-.927-5.666-1.401-8.669.653-.373 1.282-.77 1.887-1.192 6.735-4.437 9.446-8.75 8.378-12.834-.769-3.184-4.432-5.914-11.17-8.033a33.098 33.098 0 00-1.998-.577 261.97 261.97 0 01-.752-8.523.682.682 0 00-.013-.089c-.002-.01-.047-.455-.102-1.105a42.095 42.095 0 016.699-1.256l.014-.002c.987-.115 1.771-.396 2.367-.819.36-.254.56-.541.636-.844.103-.406-.017-.876-.486-1.379-.555-.597-1.433-1.078-2.664-1.406-1.175-.312-2.246-.401-3.21-.285-1.27.15-2.546.34-3.827.569-.094-1.623-.21-3.257-.348-4.902a.611.611 0 00-.024-.148l-.074-.266a.595.595 0 00-.044-.101c-.432-.806-1.574-1.399-3.575-1.552l-.008-.001c-1.701-.119-2.734.231-3.198.761-.25.286-.382.643-.348 1.078.12 2.059.275 4.331.466 6.815-.365.101-.708.206-1.028.315a42.83 42.83 0 00-1.953.691c-.491.19-1.126.448-1.906.774a17.2 17.2 0 00-2.038.988c-.545.319-1.1.708-1.664 1.166-.587.477-1.051.958-1.397 1.441l-.007.009c-.833 1.204-1.159 2.34-1.019 3.401.142 1.077.607 2 1.381 2.773.721.721 1.705 1.412 2.959 2.064a27.306 27.306 0 003.433 1.519c1.071.381 2.23.726 3.474 1.035.339.095.781.212 1.315.348.606 5.49 1.28 10.874 2.021 16.152-.645.383-1.305.714-1.979.993l-.034.015c-1.526.697-2.986 1.169-4.385 1.408l-.305.052.1.74zm12.146-17.073c.25.099.504.214.762.345l.509.118-.507-.117.299.148c.188.129.439.304.749.526l.226.126c.081.065.16.135.242.213l.347.46.191.235a.613.613 0 00.046.078c.37.532.55 1.113.546 1.744v.009c.017 1.585-.763 3.209-2.296 4.886a606.308 606.308 0 01-1.114-8.771zm-8.109-7.395c-1.079-.348-1.841-.703-2.252-1.105l-.02-.018c-.686-.628-.641-1.399-.025-2.31l.001-.002c.372-.554.99-1.068 1.839-1.555l.457 4.99z"}),(0,e.jsx)("path",{d:"M69.858 54.606a1.708 1.708 0 00-1.06 1.891 1.708 1.708 0 001.982 1.378s.479-.042 1.334-.111c.014.209.022.431.027.662-.508.039-.786.063-.786.063a1.236 1.236 0 00-.722 2.223 1.236 1.236 0 00.834 2s.183.032.522.088c-.032.426-.065.813-.096 1.144-.75.108-1.17.174-1.17.174a1.707 1.707 0 00-1.35 2.587c-.552.345-1.218.726-2.021 1.135-1.577.804-3.619 1.665-6.253 2.544-6.329 2.113-14.331 7.652-19.691 15.859-4.361 6.679-6.952 15.106-5.605 24.848 1.269 9.176 6.476 16.701 14.024 22.44 9.551 7.263 22.934 11.6 36.471 12.822 11.288.992 22.371-1.736 31.405-6.781 10.682-5.965 18.442-15.186 20.72-25.176 1.901-8.483.613-15.284-2.369-20.932-4.479-8.484-13.01-14.293-20.272-19.294-3.065-2.111-5.874-4.055-7.853-6.087-.602-.618-1.134-1.223-1.53-1.848a1.708 1.708 0 00.569-2.592 1.173 1.173 0 00-.324-.274 1.236 1.236 0 00-1.187-1.437l-.127-.94c.287.004.526.014.712.029a1.236 1.236 0 00.314-2.45c-.302-.053-.742-.11-1.298-.169-.038-.561-.088-1.099.015-1.549.387.079.762.169 1.121.27a1.708 1.708 0 001.127-3.222 18.615 18.615 0 00-.62-.247c.926-1.639 2.151-3.62 3.523-5.371 1.21-1.545 2.46-2.981 3.782-3.493 2.958-1.144 4.371-2.189 5.087-3.112 1.133-1.459 1.244-2.943.861-5.213a3.107 3.107 0 00-2.93-2.616l-30.071-.885c-2.326-.033-4.029.086-5.351.269a22.657 22.657 0 00-3.267.699c-1.026.29-1.73.564-3.239.338-1.442-.216-2.669-1.043-4.107-1.487-.859-.265-1.765-.449-2.756-.463a5.123 5.123 0 00-1.797.289c-.539.19-1.04.458-1.517.766-.212.138-.42.282-.63.418-.097.062-.148.203-.27.204-1.373.013-2.486-.876-3.577-1.184-.665-.188-1.321-.283-1.975-.237-2.166.151-3.876.412-4.893.759-.894.304-1.5.748-1.893 1.202-.398.372-1.021 1.172-1.067 2.538-.028.837.146 2.099 1.363 3.75 1.048 1.42 3.004 3.346 5.81 5.576 2.461 1.955 5.593 4.181 9.319 6.558.984.627 1.926 1.126 2.752 1.647zM99.263 66.6c-.964.082-2.006.172-3.105.263-2.424.201-5.101.466-7.791.605-2.376.123-4.755.15-6.958.164-2.598.017-3.855.119-5.664.092-.728.837-2.323 2.195-4.389 3.45-1.841 1.119-5.163 2.516-8.816 3.838-5.512 1.996-12.38 6.592-16.917 13.913-3.594 5.799-5.687 13.043-4.351 21.348 1.226 7.623 5.803 13.725 12.186 18.384 8.812 6.433 17.452 9.649 29.777 10.548 9.876.746 21.998-1.556 29.854-6.037 8.727-4.977 15.288-12.379 17.111-20.594 1.46-6.466.563-11.655-1.685-15.974-4.676-8.984-13.517-14.195-20.396-19.356-4.562-3.423-7.834-6.912-8.856-10.644zm-.646-5.436c-.91.032-1.871.066-2.866.099-1.224.041-2.497.088-3.794.125l1.055.092c2.03.177 3.97.354 5.699.481l-.094-.797zm-.139-4.841a87.853 87.853 0 00-2.593.039c-1.633.046-3.301.154-4.973.247-1.685.094-3.367.196-5.003.287-2.13.119-4.176.215-6.043.327-1.292.077-2.496.155-3.576.23.014.221.023.449.029.682a297.1 297.1 0 015.488-.293c2.201-.098 4.583-.184 6.973-.19 2.38-.005 4.763.079 6.98.165.905.035 1.782.074 2.62.116l.001-.174c.007-.494.039-.974.097-1.436zm1.602-4.286c1.119-2.036 2.967-5.135 5.099-7.77 1.512-1.87 3.189-3.489 4.853-4.532l-23.218-1.12c-6.074-.215-7.345.869-9.344 1.1-.887.102-1.878.108-3.228-.124-1.705-.292-3.174-1.21-4.867-1.773-.395-.132-.81-.24-1.269-.256-.362-.013-.568.31-.839.483-.459.291-.922.561-1.416.75a4.896 4.896 0 01-1.838.349 7.337 7.337 0 01-1.718-.225c-.892-.227-1.723-.605-2.512-.954-.36-.16-.674-.389-1.019-.372-1.07.052-2.194.201-2.923.314l.059.089c.858 1.217 2.51 2.842 4.837 4.775 2.317 1.925 5.515 3.578 9.035 5.936 1.79 1.2 3.192 2.594 4.362 3.739.303.298.582.612.833.949 1.719-.359 3.81-.753 6.122-1.104 2.303-.35 4.821-.66 7.399-.791 2.502-.127 5.054-.072 7.505.1 1.405.099 2.775.244 4.087.437zM113.947 37.9l.067.21-.163.073a.987.987 0 01.096-.283zm.331-.045l-.161-.143c.035-.014.07-.007.102.026.04.04.059.079.059.117z"})]})]})]})]})}))}}}]); -//# sourceMappingURL=5874.3abad4dd.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[5874],{5874:function(l,c,a){a.r(c);var i=a(1413),s=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#2b3465",d:"M53.83 35.564l11.15.471 27.64.315 23.714 1.256-13.035 15.547-.157 16.333 18.06 13.035 15.233 17.117-2.827 18.06-9.893 12.564-25.127 11.621-31.095-3.141-19.945-11.778-6.596-13.192-.471-19.002 12.25-16.804L71.233 67.25l2.542-7.03-4.241-9.108-10.679-7.538s-6.438-4.712-5.025-8.01z"}),(0,e.jsxs)("g",{fill:"#fff",children:[(0,e.jsx)("path",{fillRule:"nonzero",d:"M80.941 121.515h-.002l-.101-.74-.384.066a3.835 3.835 0 01-.571.053c-.195-.003-.338 0-.443.006-.415-.005-.992-.097-1.728-.261l-.024-.005a8.197 8.197 0 00-1.778-.143 7.664 7.664 0 00-1.959.297c-.894.256-1.405.725-1.577 1.374-.158.59.028 1.134.6 1.622.595.508 1.736.974 3.47 1.323 3.939.861 7.969.699 12.09-.499.281 1.976.587 3.9.92 5.773l.079.296a.65.65 0 00.093.198c.567.815 1.797 1.36 3.8 1.448 1.373.073 2.281-.163 2.772-.536.439-.332.659-.786.572-1.384l-.002-.012c-.46-2.776-.927-5.666-1.401-8.669.653-.373 1.282-.77 1.887-1.192 6.735-4.437 9.446-8.75 8.378-12.834-.769-3.184-4.432-5.914-11.17-8.033a33.098 33.098 0 00-1.998-.577 261.97 261.97 0 01-.752-8.523.682.682 0 00-.013-.089c-.002-.01-.047-.455-.102-1.105a42.095 42.095 0 016.699-1.256l.014-.002c.987-.115 1.771-.396 2.367-.819.36-.254.56-.541.636-.844.103-.406-.017-.876-.486-1.379-.555-.597-1.433-1.078-2.664-1.406-1.175-.312-2.246-.401-3.21-.285-1.27.15-2.546.34-3.827.569-.094-1.623-.21-3.257-.348-4.902a.611.611 0 00-.024-.148l-.074-.266a.595.595 0 00-.044-.101c-.432-.806-1.574-1.399-3.575-1.552l-.008-.001c-1.701-.119-2.734.231-3.198.761-.25.286-.382.643-.348 1.078.12 2.059.275 4.331.466 6.815-.365.101-.708.206-1.028.315a42.83 42.83 0 00-1.953.691c-.491.19-1.126.448-1.906.774a17.2 17.2 0 00-2.038.988c-.545.319-1.1.708-1.664 1.166-.587.477-1.051.958-1.397 1.441l-.007.009c-.833 1.204-1.159 2.34-1.019 3.401.142 1.077.607 2 1.381 2.773.721.721 1.705 1.412 2.959 2.064a27.306 27.306 0 003.433 1.519c1.071.381 2.23.726 3.474 1.035.339.095.781.212 1.315.348.606 5.49 1.28 10.874 2.021 16.152-.645.383-1.305.714-1.979.993l-.034.015c-1.526.697-2.986 1.169-4.385 1.408l-.305.052.1.74zm12.146-17.073c.25.099.504.214.762.345l.509.118-.507-.117.299.148c.188.129.439.304.749.526l.226.126c.081.065.16.135.242.213l.347.46.191.235a.613.613 0 00.046.078c.37.532.55 1.113.546 1.744v.009c.017 1.585-.763 3.209-2.296 4.886a606.308 606.308 0 01-1.114-8.771zm-8.109-7.395c-1.079-.348-1.841-.703-2.252-1.105l-.02-.018c-.686-.628-.641-1.399-.025-2.31l.001-.002c.372-.554.99-1.068 1.839-1.555l.457 4.99z"}),(0,e.jsx)("path",{d:"M69.858 54.606a1.708 1.708 0 00-1.06 1.891 1.708 1.708 0 001.982 1.378s.479-.042 1.334-.111c.014.209.022.431.027.662-.508.039-.786.063-.786.063a1.236 1.236 0 00-.722 2.223 1.236 1.236 0 00.834 2s.183.032.522.088c-.032.426-.065.813-.096 1.144-.75.108-1.17.174-1.17.174a1.707 1.707 0 00-1.35 2.587c-.552.345-1.218.726-2.021 1.135-1.577.804-3.619 1.665-6.253 2.544-6.329 2.113-14.331 7.652-19.691 15.859-4.361 6.679-6.952 15.106-5.605 24.848 1.269 9.176 6.476 16.701 14.024 22.44 9.551 7.263 22.934 11.6 36.471 12.822 11.288.992 22.371-1.736 31.405-6.781 10.682-5.965 18.442-15.186 20.72-25.176 1.901-8.483.613-15.284-2.369-20.932-4.479-8.484-13.01-14.293-20.272-19.294-3.065-2.111-5.874-4.055-7.853-6.087-.602-.618-1.134-1.223-1.53-1.848a1.708 1.708 0 00.569-2.592 1.173 1.173 0 00-.324-.274 1.236 1.236 0 00-1.187-1.437l-.127-.94c.287.004.526.014.712.029a1.236 1.236 0 00.314-2.45c-.302-.053-.742-.11-1.298-.169-.038-.561-.088-1.099.015-1.549.387.079.762.169 1.121.27a1.708 1.708 0 001.127-3.222 18.615 18.615 0 00-.62-.247c.926-1.639 2.151-3.62 3.523-5.371 1.21-1.545 2.46-2.981 3.782-3.493 2.958-1.144 4.371-2.189 5.087-3.112 1.133-1.459 1.244-2.943.861-5.213a3.107 3.107 0 00-2.93-2.616l-30.071-.885c-2.326-.033-4.029.086-5.351.269a22.657 22.657 0 00-3.267.699c-1.026.29-1.73.564-3.239.338-1.442-.216-2.669-1.043-4.107-1.487-.859-.265-1.765-.449-2.756-.463a5.123 5.123 0 00-1.797.289c-.539.19-1.04.458-1.517.766-.212.138-.42.282-.63.418-.097.062-.148.203-.27.204-1.373.013-2.486-.876-3.577-1.184-.665-.188-1.321-.283-1.975-.237-2.166.151-3.876.412-4.893.759-.894.304-1.5.748-1.893 1.202-.398.372-1.021 1.172-1.067 2.538-.028.837.146 2.099 1.363 3.75 1.048 1.42 3.004 3.346 5.81 5.576 2.461 1.955 5.593 4.181 9.319 6.558.984.627 1.926 1.126 2.752 1.647zM99.263 66.6c-.964.082-2.006.172-3.105.263-2.424.201-5.101.466-7.791.605-2.376.123-4.755.15-6.958.164-2.598.017-3.855.119-5.664.092-.728.837-2.323 2.195-4.389 3.45-1.841 1.119-5.163 2.516-8.816 3.838-5.512 1.996-12.38 6.592-16.917 13.913-3.594 5.799-5.687 13.043-4.351 21.348 1.226 7.623 5.803 13.725 12.186 18.384 8.812 6.433 17.452 9.649 29.777 10.548 9.876.746 21.998-1.556 29.854-6.037 8.727-4.977 15.288-12.379 17.111-20.594 1.46-6.466.563-11.655-1.685-15.974-4.676-8.984-13.517-14.195-20.396-19.356-4.562-3.423-7.834-6.912-8.856-10.644zm-.646-5.436c-.91.032-1.871.066-2.866.099-1.224.041-2.497.088-3.794.125l1.055.092c2.03.177 3.97.354 5.699.481l-.094-.797zm-.139-4.841a87.853 87.853 0 00-2.593.039c-1.633.046-3.301.154-4.973.247-1.685.094-3.367.196-5.003.287-2.13.119-4.176.215-6.043.327-1.292.077-2.496.155-3.576.23.014.221.023.449.029.682a297.1 297.1 0 015.488-.293c2.201-.098 4.583-.184 6.973-.19 2.38-.005 4.763.079 6.98.165.905.035 1.782.074 2.62.116l.001-.174c.007-.494.039-.974.097-1.436zm1.602-4.286c1.119-2.036 2.967-5.135 5.099-7.77 1.512-1.87 3.189-3.489 4.853-4.532l-23.218-1.12c-6.074-.215-7.345.869-9.344 1.1-.887.102-1.878.108-3.228-.124-1.705-.292-3.174-1.21-4.867-1.773-.395-.132-.81-.24-1.269-.256-.362-.013-.568.31-.839.483-.459.291-.922.561-1.416.75a4.896 4.896 0 01-1.838.349 7.337 7.337 0 01-1.718-.225c-.892-.227-1.723-.605-2.512-.954-.36-.16-.674-.389-1.019-.372-1.07.052-2.194.201-2.923.314l.059.089c.858 1.217 2.51 2.842 4.837 4.775 2.317 1.925 5.515 3.578 9.035 5.936 1.79 1.2 3.192 2.594 4.362 3.739.303.298.582.612.833.949 1.719-.359 3.81-.753 6.122-1.104 2.303-.35 4.821-.66 7.399-.791 2.502-.127 5.054-.072 7.505.1 1.405.099 2.775.244 4.087.437zM113.947 37.9l.067.21-.163.073a.987.987 0 01.096-.283zm.331-.045l-.161-.143c.035-.014.07-.007.102.026.04.04.059.079.059.117z"})]})]})]})]})}))}}}]); +//# sourceMappingURL=5874.930fcd3a.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.3abad4dd.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.930fcd3a.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.3abad4dd.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.930fcd3a.chunk.js.map index 67d940456..938ed0e4d 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.3abad4dd.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/5874.930fcd3a.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/5874.3abad4dd.chunk.js","mappings":"4JA2CA,UAxCoB,SAACA,GACnB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,2RAEJ,eAAGD,KAAK,OAAR,WACE,iBACEN,SAAS,UACTO,EAAE,wgEAEJ,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/app/EXAMPLE.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst BankAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default BankAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/5874.930fcd3a.chunk.js","mappings":"4JA2CA,UAxCoB,SAACA,GACnB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,2RAEJ,eAAGD,KAAK,OAAR,WACE,iBACEN,SAAS,UACTO,EAAE,wgEAEJ,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/app/EXAMPLE.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst BankAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default BankAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.54d4060f.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.5e437501.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.54d4060f.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.5e437501.chunk.js index ea491b034..c4eb6cc8f 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.54d4060f.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.5e437501.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[6466],{6466:function(l,c,a){a.r(c);var i=a(8489),s=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#00dea7",d:"M134.136 50.66s-7.772-7.7-18.248-8.429c-9.398-.654-27.937 3.521-24.819 29.1-19.029-.356-36.082-8.062-50.195-26.707 0 0-9.207 15.317 4.01 34.204 0 0-11.132-7.019-10.39-.773.743 6.246 6.232 16.983 19.449 25.163 0 0-14.013-1.535-11.043 3.521 2.97 5.056 12.231 11.796 22.478 12.837 0 0-5.08 7.853-24.433 6.288-14.461-1.169 24.946 29.709 66.312 14.235 28.59-10.695 43.957-40.004 33.265-70.789 0 0 11.275-6.603 12.029-14.425 0 0-6.237 1.487-8.91 2.231 0 0 4.566-8.019 3.378-9.952-1.188-1.934-12.883 3.496-12.883 3.496z"}),(0,e.jsx)("path",{fill:"#fff",d:"M42.935 99.829c-.974.343-1.797.782-2.404 1.277-1.082.882-1.733 1.983-1.994 3.235-.254 1.222-.157 2.725.859 4.462 1.916 3.274 6.026 7.235 11.41 10.246a40.027 40.027 0 003.953 1.935c-.492.126-1.018.244-1.574.352-3.084.597-6.994.857-11.912.47-3.978-.314-5.957 1.348-6.76 2.748-.92 1.604-1.135 4.434 1.442 7.457 3.153 3.698 11.885 9.399 23.876 12.945 13.409 3.965 30.913 5.371 48.714-1.404 15.346-5.867 27.059-16.778 33.357-30.367 5.822-12.563 7.057-27.416 2.199-42.655 2.008-1.428 5.097-3.876 7.486-6.889 2.01-2.534 3.518-5.452 3.785-8.483a2.841 2.841 0 00-.96-2.413 2.83 2.83 0 00-2.517-.621l-3.241.842c.433-1.082.806-2.171 1.009-3.111.382-1.77.15-3.229-.386-4.083a3.357 3.357 0 00-1.837-1.432c-.778-.258-2.027-.317-3.528-.009-2.833.581-7.067 2.355-9.312 3.348a38.287 38.287 0 00-7.777-5.103c-3.051-1.498-6.715-2.733-10.747-3.051-6.34-.5-16.369 1.067-22.66 8.573-3.636 4.338-6.098 10.701-5.716 19.946-8.239-.641-16.051-2.817-23.342-6.874-7.462-4.15-14.36-10.28-20.637-18.707a3.571 3.571 0 00-3.037-1.412 3.573 3.573 0 00-2.87 1.728s-4.992 8.024-3.418 19.96c.364 2.76 1.083 5.736 2.311 8.872l-.154-.003c-2.194-.023-3.852.859-4.904 2.334-.715 1.003-1.241 2.455-1.001 4.571.409 3.605 2.125 8.547 5.718 13.743 1.728 2.497 3.899 5.065 6.569 7.573zm101.382-51.192l-3.068 7.113a2.759 2.759 0 00.22 3.06 2.751 2.751 0 002.909.962l3.516-.847c-.259.363-.534.719-.818 1.065-3.281 3.994-8.069 6.727-8.069 6.727a3.007 3.007 0 00-1.319 3.58c4.855 14.366 3.755 28.34-1.873 40.001-5.745 11.906-16.229 21.366-29.846 26.348-10.179 3.736-20.215 4.5-29.259 3.64-12.886-1.224-23.761-5.775-30.142-9.93l-.32-.205c4.696-.021 8.424-.617 11.356-1.436 8.651-2.418 11.219-6.904 11.219-6.904a4.115 4.115 0 00.255-4.013 4.104 4.104 0 00-3.286-2.311c-3.976-.398-7.779-1.79-11.013-3.587-2.64-1.467-4.914-3.185-6.537-4.876 2.52-.156 5.264.192 5.264.192a4.016 4.016 0 004.235-2.69 4.024 4.024 0 00-1.687-4.73c-4.889-3-8.643-6.373-11.425-9.718-3.004-3.612-4.872-7.147-5.755-10.057.159.058.309.117.442.175 1.897.835 3.541 1.855 3.541 1.855a3.8 3.8 0 004.782-.597 3.813 3.813 0 00.359-4.812c-3.833-5.409-5.642-10.488-6.284-14.918a27.57 27.57 0 01.37-10.027c5.947 6.694 12.324 11.74 19.072 15.355 9.296 4.98 19.292 7.277 29.855 7.389a3.11 3.11 0 003.141-3.487c-1.181-9.048.531-15.148 3.761-19.143 4.847-5.994 12.791-7.176 17.787-6.875 3.316.201 6.337 1.18 8.865 2.363 4.756 2.226 7.799 5.155 7.799 5.155a2.518 2.518 0 002.832.496s6.197-3.854 9.121-4.313zm.469-.043c.631-.013 1.023.215 1.026.796.004.606-.799-.438-1.026-.796z"})]})]})]})}))}}}]); -//# sourceMappingURL=6466.54d4060f.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[6466],{6466:function(l,c,a){a.r(c);var i=a(1413),s=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#00dea7",d:"M134.136 50.66s-7.772-7.7-18.248-8.429c-9.398-.654-27.937 3.521-24.819 29.1-19.029-.356-36.082-8.062-50.195-26.707 0 0-9.207 15.317 4.01 34.204 0 0-11.132-7.019-10.39-.773.743 6.246 6.232 16.983 19.449 25.163 0 0-14.013-1.535-11.043 3.521 2.97 5.056 12.231 11.796 22.478 12.837 0 0-5.08 7.853-24.433 6.288-14.461-1.169 24.946 29.709 66.312 14.235 28.59-10.695 43.957-40.004 33.265-70.789 0 0 11.275-6.603 12.029-14.425 0 0-6.237 1.487-8.91 2.231 0 0 4.566-8.019 3.378-9.952-1.188-1.934-12.883 3.496-12.883 3.496z"}),(0,e.jsx)("path",{fill:"#fff",d:"M42.935 99.829c-.974.343-1.797.782-2.404 1.277-1.082.882-1.733 1.983-1.994 3.235-.254 1.222-.157 2.725.859 4.462 1.916 3.274 6.026 7.235 11.41 10.246a40.027 40.027 0 003.953 1.935c-.492.126-1.018.244-1.574.352-3.084.597-6.994.857-11.912.47-3.978-.314-5.957 1.348-6.76 2.748-.92 1.604-1.135 4.434 1.442 7.457 3.153 3.698 11.885 9.399 23.876 12.945 13.409 3.965 30.913 5.371 48.714-1.404 15.346-5.867 27.059-16.778 33.357-30.367 5.822-12.563 7.057-27.416 2.199-42.655 2.008-1.428 5.097-3.876 7.486-6.889 2.01-2.534 3.518-5.452 3.785-8.483a2.841 2.841 0 00-.96-2.413 2.83 2.83 0 00-2.517-.621l-3.241.842c.433-1.082.806-2.171 1.009-3.111.382-1.77.15-3.229-.386-4.083a3.357 3.357 0 00-1.837-1.432c-.778-.258-2.027-.317-3.528-.009-2.833.581-7.067 2.355-9.312 3.348a38.287 38.287 0 00-7.777-5.103c-3.051-1.498-6.715-2.733-10.747-3.051-6.34-.5-16.369 1.067-22.66 8.573-3.636 4.338-6.098 10.701-5.716 19.946-8.239-.641-16.051-2.817-23.342-6.874-7.462-4.15-14.36-10.28-20.637-18.707a3.571 3.571 0 00-3.037-1.412 3.573 3.573 0 00-2.87 1.728s-4.992 8.024-3.418 19.96c.364 2.76 1.083 5.736 2.311 8.872l-.154-.003c-2.194-.023-3.852.859-4.904 2.334-.715 1.003-1.241 2.455-1.001 4.571.409 3.605 2.125 8.547 5.718 13.743 1.728 2.497 3.899 5.065 6.569 7.573zm101.382-51.192l-3.068 7.113a2.759 2.759 0 00.22 3.06 2.751 2.751 0 002.909.962l3.516-.847c-.259.363-.534.719-.818 1.065-3.281 3.994-8.069 6.727-8.069 6.727a3.007 3.007 0 00-1.319 3.58c4.855 14.366 3.755 28.34-1.873 40.001-5.745 11.906-16.229 21.366-29.846 26.348-10.179 3.736-20.215 4.5-29.259 3.64-12.886-1.224-23.761-5.775-30.142-9.93l-.32-.205c4.696-.021 8.424-.617 11.356-1.436 8.651-2.418 11.219-6.904 11.219-6.904a4.115 4.115 0 00.255-4.013 4.104 4.104 0 00-3.286-2.311c-3.976-.398-7.779-1.79-11.013-3.587-2.64-1.467-4.914-3.185-6.537-4.876 2.52-.156 5.264.192 5.264.192a4.016 4.016 0 004.235-2.69 4.024 4.024 0 00-1.687-4.73c-4.889-3-8.643-6.373-11.425-9.718-3.004-3.612-4.872-7.147-5.755-10.057.159.058.309.117.442.175 1.897.835 3.541 1.855 3.541 1.855a3.8 3.8 0 004.782-.597 3.813 3.813 0 00.359-4.812c-3.833-5.409-5.642-10.488-6.284-14.918a27.57 27.57 0 01.37-10.027c5.947 6.694 12.324 11.74 19.072 15.355 9.296 4.98 19.292 7.277 29.855 7.389a3.11 3.11 0 003.141-3.487c-1.181-9.048.531-15.148 3.761-19.143 4.847-5.994 12.791-7.176 17.787-6.875 3.316.201 6.337 1.18 8.865 2.363 4.756 2.226 7.799 5.155 7.799 5.155a2.518 2.518 0 002.832.496s6.197-3.854 9.121-4.313zm.469-.043c.631-.013 1.023.215 1.026.796.004.606-.799-.438-1.026-.796z"})]})]})]})}))}}}]); +//# sourceMappingURL=6466.5e437501.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.54d4060f.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.5e437501.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.54d4060f.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.5e437501.chunk.js.map index bc81fdd9d..ea831772f 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.54d4060f.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/6466.5e437501.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/6466.54d4060f.chunk.js","mappings":"4JAwCA,UArCuB,SAACA,GACtB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,sgBAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/TWITTER.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst TwitterAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default TwitterAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/6466.5e437501.chunk.js","mappings":"4JAwCA,UArCuB,SAACA,GACtB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,sgBAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/TWITTER.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst TwitterAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default TwitterAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/687.6987a382.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/687.d92ace5a.chunk.js similarity index 92% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/687.6987a382.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/687.d92ace5a.chunk.js index 94e82c7d9..8331edcdd 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/687.6987a382.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/687.d92ace5a.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[687],{1489:function(a,l,n){n.d(l,{X:function(){return i}});var s=n(8489),t=(n(2791),n(9259)),e=n(184),i=function(a){var l=Object.assign({},a);return(0,e.jsx)(t.Z,(0,s.Z)((0,s.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 56 56",version:"1.1",viewBox:"0 0 56 56",xmlSpace:"preserve",children:[(0,e.jsx)("path",{fill:"#EBBA16",d:"M0 0H28V28H0z"}),(0,e.jsx)("path",{fill:"#ED8A19",d:"M28 0H56V28H28z"}),(0,e.jsx)("path",{fill:"#ED8A19",d:"M0 28H28V56H0z"}),(0,e.jsx)("path",{fill:"#556080",d:"M28 28H56V56H28z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M48 46H36a1 1 0 110-2h12a1 1 0 110 2zM48 40H36a1 1 0 110-2h12a1 1 0 110 2zM14 43a.999.999 0 01-.707-1.707l5-5a.999.999 0 111.414 1.414l-5 5A.997.997 0 0114 43z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M9 48a.999.999 0 01-.707-1.707l5-5a.999.999 0 111.414 1.414l-5 5A.997.997 0 019 48z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M19 48a.997.997 0 01-.707-.293l-5-5a.999.999 0 111.414-1.414l5 5A.999.999 0 0119 48z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M14 43a.997.997 0 01-.707-.293l-5-5a.999.999 0 111.414-1.414l5 5A.999.999 0 0114 43zM20 15H8a1 1 0 110-2h12a1 1 0 110 2z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M14 21a1 1 0 01-1-1V8a1 1 0 112 0v12a1 1 0 01-1 1zM48 15H36a1 1 0 110-2h12a1 1 0 110 2z"})]})}))}},687:function(a,l,n){n.r(l);n(2791);var s=n(1489),t=n(184);l.default=function(){return(0,t.jsx)(s.X,{fontSize:"large"})}}}]); -//# sourceMappingURL=687.6987a382.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[687],{1489:function(a,l,n){n.d(l,{X:function(){return i}});var s=n(1413),t=(n(2791),n(9259)),e=n(184),i=function(a){var l=Object.assign({},a);return(0,e.jsx)(t.Z,(0,s.Z)((0,s.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 56 56",version:"1.1",viewBox:"0 0 56 56",xmlSpace:"preserve",children:[(0,e.jsx)("path",{fill:"#EBBA16",d:"M0 0H28V28H0z"}),(0,e.jsx)("path",{fill:"#ED8A19",d:"M28 0H56V28H28z"}),(0,e.jsx)("path",{fill:"#ED8A19",d:"M0 28H28V56H0z"}),(0,e.jsx)("path",{fill:"#556080",d:"M28 28H56V56H28z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M48 46H36a1 1 0 110-2h12a1 1 0 110 2zM48 40H36a1 1 0 110-2h12a1 1 0 110 2zM14 43a.999.999 0 01-.707-1.707l5-5a.999.999 0 111.414 1.414l-5 5A.997.997 0 0114 43z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M9 48a.999.999 0 01-.707-1.707l5-5a.999.999 0 111.414 1.414l-5 5A.997.997 0 019 48z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M19 48a.997.997 0 01-.707-.293l-5-5a.999.999 0 111.414-1.414l5 5A.999.999 0 0119 48z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M14 43a.997.997 0 01-.707-.293l-5-5a.999.999 0 111.414-1.414l5 5A.999.999 0 0114 43zM20 15H8a1 1 0 110-2h12a1 1 0 110 2z"}),(0,e.jsx)("path",{fill:"#FFF",d:"M14 21a1 1 0 01-1-1V8a1 1 0 112 0v12a1 1 0 01-1 1zM48 15H36a1 1 0 110-2h12a1 1 0 110 2z"})]})}))}},687:function(a,l,n){n.r(l);n(2791);var s=n(1489),t=n(184);l.default=function(){return(0,t.jsx)(s.X,{fontSize:"large"})}}}]); +//# sourceMappingURL=687.d92ace5a.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/687.6987a382.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/687.d92ace5a.chunk.js.map similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/687.6987a382.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/687.d92ace5a.chunk.js.map index d57eb6d04..2a846ad71 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/687.6987a382.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/687.d92ace5a.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/687.6987a382.chunk.js","mappings":"oLAGaA,EAAyC,SAAC,GAAkB,IAAbC,EAAY,oBACtE,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,EAAE,IACFC,EAAE,IACFC,iBAAiB,gBACjBC,QAAQ,MACRC,QAAQ,YACRC,SAAS,WAPX,WASE,iBAAMC,KAAK,UAAUC,EAAE,mBACvB,iBAAMD,KAAK,UAAUC,EAAE,qBACvB,iBAAMD,KAAK,UAAUC,EAAE,oBACvB,iBAAMD,KAAK,UAAUC,EAAE,sBACvB,iBACED,KAAK,OACLC,EAAE,qKAEJ,iBACED,KAAK,OACLC,EAAE,yFAEJ,iBACED,KAAK,OACLC,EAAE,0FAEJ,iBACED,KAAK,OACLC,EAAE,8HAEJ,iBACED,KAAK,OACLC,EAAE,oG,0DChCZ,UAF6B,kBAAM,SAAC,IAAD,CAAgBC,SAAS","sources":["apps/calculator/components/CalculatorIcon.tsx","os/apps/icons/material/app/CALCULATOR.tsx"],"sourcesContent":["import React from 'react';\nimport { SvgIcon, SvgIconProps } from '@mui/material';\n\nexport const CalculatorIcon: React.FC = ({ ...props }) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import React from 'react';\nimport { CalculatorIcon } from '../../../../../apps/calculator/components/CalculatorIcon';\n\nconst Calculator: React.FC = () => ;\n\nexport default Calculator;\n"],"names":["CalculatorIcon","props","xmlns","x","y","enableBackground","version","viewBox","xmlSpace","fill","d","fontSize"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/687.d92ace5a.chunk.js","mappings":"oLAGaA,EAAyC,SAAC,GAAkB,IAAbC,EAAY,oBACtE,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,EAAE,IACFC,EAAE,IACFC,iBAAiB,gBACjBC,QAAQ,MACRC,QAAQ,YACRC,SAAS,WAPX,WASE,iBAAMC,KAAK,UAAUC,EAAE,mBACvB,iBAAMD,KAAK,UAAUC,EAAE,qBACvB,iBAAMD,KAAK,UAAUC,EAAE,oBACvB,iBAAMD,KAAK,UAAUC,EAAE,sBACvB,iBACED,KAAK,OACLC,EAAE,qKAEJ,iBACED,KAAK,OACLC,EAAE,yFAEJ,iBACED,KAAK,OACLC,EAAE,0FAEJ,iBACED,KAAK,OACLC,EAAE,8HAEJ,iBACED,KAAK,OACLC,EAAE,oG,0DChCZ,UAF6B,kBAAM,SAAC,IAAD,CAAgBC,SAAS","sources":["apps/calculator/components/CalculatorIcon.tsx","os/apps/icons/material/app/CALCULATOR.tsx"],"sourcesContent":["import React from 'react';\nimport { SvgIcon, SvgIconProps } from '@mui/material';\n\nexport const CalculatorIcon: React.FC = ({ ...props }) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import React from 'react';\nimport { CalculatorIcon } from '../../../../../apps/calculator/components/CalculatorIcon';\n\nconst Calculator: React.FC = () => ;\n\nexport default Calculator;\n"],"names":["CalculatorIcon","props","xmlns","x","y","enableBackground","version","viewBox","xmlSpace","fill","d","fontSize"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.97c03daf.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.ff755156.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.97c03daf.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.ff755156.chunk.js index caaf82c30..c8c4b6a71 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.97c03daf.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.ff755156.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7051],{7051:function(l,c,e){e.r(c);var n=e(8489),i=(e(2791),e(9259)),s=e(184);c.default=function(l){return(0,s.jsx)(i.Z,(0,n.Z)((0,n.Z)({},l),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,s.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,s.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,s.jsxs)("g",{fill:l.htmlColor||"#000",children:[(0,s.jsx)("path",{d:"M104.884 7.053l.043.002C92.038 5.5 79.573 4.623 66.254 4.351c-11.907-.243-24.48.022-38.642.671-2.968.139-5.536 1.613-7.247 3.614-1.442 1.686-2.223 3.844-2.265 6.236-.256 17.652-.683 38.403-1.494 59.01-.525 13.363-1.176 26.665-2.261 38.999a10.607 10.607 0 002.402 7.668c1.92 2.333 4.946 3.961 8.247 4.059 17.596 1.54 34.209 2.45 49.218 2.163 12.384-.237 23.689-1.276 33.596-3.219 2.606-.519 4.904-1.779 6.396-3.521 1.506-1.759 2.463-3.909 2.42-6.469.312-12.969.055-26.151-.543-39.551-.86-19.256-2.385-38.937-3.609-59.08-.034-2.205-1.017-4.183-2.491-5.647-1.304-1.294-3.087-2.09-5.097-2.231zm1.4 8.497a3.194 3.194 0 00-3.218-3.076c-24.172-2.32-45.414-2.683-75.016-.677-1.773.12-3.218 1.377-3.218 3.075 0 29.289-.099 67.107-2.685 98.677-.139 1.693 1.44 3.076 3.218 3.076 31.474 3.052 59.735 3.87 81.252 0 1.751-.315 3.218-1.377 3.218-3.076 1.37-31.497-2.206-63.907-3.551-97.999z"}),(0,s.jsx)("path",{d:"M99.918 25.915c-.08-.699-.483-1.594-1.505-2.331-.577-.415-2.12-.912-2.991-1.14-5.706-1.478-13.411-2.247-22.877-2.415-9.515-.169-20.824.312-33.668 1.068-1.855.132-3.496.644-4.153 1.027-1.992 1.16-2.5 2.901-2.535 4.397l-.095 17.896c-.058 1.525.375 3.346 2.325 4.677.742.507 2.642 1.258 4.936 1.232 12.021.05 23.162.058 33.23-.237 8.156-.24 15.596-.681 22.307-1.227 1.783-.149 3.291-.627 3.873-1.031 1.336-.926 1.816-2.088 1.841-3.155a57.19 57.19 0 00.394-9.268 65.311 65.311 0 00-1.082-9.493zm-3.981.702c-.048-.311-31.65-2.755-56.655-.6-1.178.102-2.232.26-2.231.572-.104 6.712.305 12.591.054 18.068-.014.312 1.002.562 2.235.558 21.843.491 39.199.362 54.128-.395 1.214-.062 2.888.031 2.887-.281.934-5.785.534-11.666-.418-17.922zM51.355 66.473c.637-1.267.074-2.28-.009-3.609-.022-.352-.257-.564-.342-.904-.107-.426-.386-.691-.621-1.057-1.095-1.706-3.298-2.342-5.445-2.466l-6.942.157c-2.116.061-4.047.902-5.392 2.364-1.331 1.447-2.213 3.375-2.145 5.515l.227 7.1c.065 2.051.845 3.921 2.204 5.222 1.342 1.285 3.125 2.138 5.106 2.07l6.942-.261c1.883-.071 3.599-.822 4.789-2.132 1.173-1.291 1.952-3.001 1.884-4.899l-.256-7.1zM77.309 66.663c.203-1.857-.605-3.508-1.665-4.861-1.107-1.415-2.854-2.107-4.753-2.319l-6.942-.677c-2.151-.172-4.07.808-5.583 2.147-1.549 1.373-2.347 3.456-2.491 5.71l-.211 7.101c.054 2.329.926 4.472 2.472 5.945 1.531 1.457 3.562 2.44 5.813 2.329l6.942-.494c2.069-.179 3.981-.934 5.215-2.446 1.195-1.465 2.092-3.287 1.901-5.334l-.698-7.101zM51.551 95.477c.203-1.857-.605-3.508-1.664-4.861-1.108-1.415-2.855-2.107-4.754-2.319l-6.942-.677c-2.151-.172-4.07.808-5.582 2.147-1.55 1.373-2.348 3.456-2.492 5.71l-.21 7.101c.053 2.329.925 4.472 2.472 5.945 1.53 1.457 3.561 2.44 5.812 2.329l6.942-.494c2.069-.179 3.981-.934 5.215-2.446 1.195-1.465 2.092-3.287 1.901-5.334l-.698-7.101zM77.532 97.538c.637-1.267.074-2.28-.009-3.609-.023-.352-.257-.564-.342-.904-.107-.425-.386-.691-.621-1.057-1.095-1.706-3.298-2.341-5.446-2.466l-6.942.157c-2.115.062-4.046.902-5.391 2.364-1.331 1.447-2.213 3.375-2.145 5.515l.227 7.1c.065 2.051.845 3.921 2.204 5.222 1.342 1.285 3.125 2.138 5.105 2.07l6.942-.261c1.884-.071 3.6-.822 4.79-2.132 1.172-1.291 1.952-3.001 1.884-4.899l-.256-7.1zM102.44 68.09c.091-1.912-.6-3.629-1.606-4.953-1.029-1.355-2.547-2.105-4.21-2.215l-6.29-.396c-1.792-.104-3.399.8-4.632 2.115-1.256 1.339-1.951 3.301-2.041 5.449 0 0-.458 10.812-.671 20.194-.162 7.153-.163 13.463-.163 13.463.024 2.432.848 4.643 2.22 6.219 1.367 1.571 3.227 2.572 5.287 2.543l6.29-.183a6.757 6.757 0 005.105-2.575c1.256-1.578 2.097-3.675 2.025-6.004L102.44 68.09z"})]})]})}))}}}]); -//# sourceMappingURL=7051.97c03daf.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7051],{7051:function(l,c,e){e.r(c);var n=e(1413),i=(e(2791),e(9259)),s=e(184);c.default=function(l){return(0,s.jsx)(i.Z,(0,n.Z)((0,n.Z)({},l),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,s.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,s.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,s.jsxs)("g",{fill:l.htmlColor||"#000",children:[(0,s.jsx)("path",{d:"M104.884 7.053l.043.002C92.038 5.5 79.573 4.623 66.254 4.351c-11.907-.243-24.48.022-38.642.671-2.968.139-5.536 1.613-7.247 3.614-1.442 1.686-2.223 3.844-2.265 6.236-.256 17.652-.683 38.403-1.494 59.01-.525 13.363-1.176 26.665-2.261 38.999a10.607 10.607 0 002.402 7.668c1.92 2.333 4.946 3.961 8.247 4.059 17.596 1.54 34.209 2.45 49.218 2.163 12.384-.237 23.689-1.276 33.596-3.219 2.606-.519 4.904-1.779 6.396-3.521 1.506-1.759 2.463-3.909 2.42-6.469.312-12.969.055-26.151-.543-39.551-.86-19.256-2.385-38.937-3.609-59.08-.034-2.205-1.017-4.183-2.491-5.647-1.304-1.294-3.087-2.09-5.097-2.231zm1.4 8.497a3.194 3.194 0 00-3.218-3.076c-24.172-2.32-45.414-2.683-75.016-.677-1.773.12-3.218 1.377-3.218 3.075 0 29.289-.099 67.107-2.685 98.677-.139 1.693 1.44 3.076 3.218 3.076 31.474 3.052 59.735 3.87 81.252 0 1.751-.315 3.218-1.377 3.218-3.076 1.37-31.497-2.206-63.907-3.551-97.999z"}),(0,s.jsx)("path",{d:"M99.918 25.915c-.08-.699-.483-1.594-1.505-2.331-.577-.415-2.12-.912-2.991-1.14-5.706-1.478-13.411-2.247-22.877-2.415-9.515-.169-20.824.312-33.668 1.068-1.855.132-3.496.644-4.153 1.027-1.992 1.16-2.5 2.901-2.535 4.397l-.095 17.896c-.058 1.525.375 3.346 2.325 4.677.742.507 2.642 1.258 4.936 1.232 12.021.05 23.162.058 33.23-.237 8.156-.24 15.596-.681 22.307-1.227 1.783-.149 3.291-.627 3.873-1.031 1.336-.926 1.816-2.088 1.841-3.155a57.19 57.19 0 00.394-9.268 65.311 65.311 0 00-1.082-9.493zm-3.981.702c-.048-.311-31.65-2.755-56.655-.6-1.178.102-2.232.26-2.231.572-.104 6.712.305 12.591.054 18.068-.014.312 1.002.562 2.235.558 21.843.491 39.199.362 54.128-.395 1.214-.062 2.888.031 2.887-.281.934-5.785.534-11.666-.418-17.922zM51.355 66.473c.637-1.267.074-2.28-.009-3.609-.022-.352-.257-.564-.342-.904-.107-.426-.386-.691-.621-1.057-1.095-1.706-3.298-2.342-5.445-2.466l-6.942.157c-2.116.061-4.047.902-5.392 2.364-1.331 1.447-2.213 3.375-2.145 5.515l.227 7.1c.065 2.051.845 3.921 2.204 5.222 1.342 1.285 3.125 2.138 5.106 2.07l6.942-.261c1.883-.071 3.599-.822 4.789-2.132 1.173-1.291 1.952-3.001 1.884-4.899l-.256-7.1zM77.309 66.663c.203-1.857-.605-3.508-1.665-4.861-1.107-1.415-2.854-2.107-4.753-2.319l-6.942-.677c-2.151-.172-4.07.808-5.583 2.147-1.549 1.373-2.347 3.456-2.491 5.71l-.211 7.101c.054 2.329.926 4.472 2.472 5.945 1.531 1.457 3.562 2.44 5.813 2.329l6.942-.494c2.069-.179 3.981-.934 5.215-2.446 1.195-1.465 2.092-3.287 1.901-5.334l-.698-7.101zM51.551 95.477c.203-1.857-.605-3.508-1.664-4.861-1.108-1.415-2.855-2.107-4.754-2.319l-6.942-.677c-2.151-.172-4.07.808-5.582 2.147-1.55 1.373-2.348 3.456-2.492 5.71l-.21 7.101c.053 2.329.925 4.472 2.472 5.945 1.53 1.457 3.561 2.44 5.812 2.329l6.942-.494c2.069-.179 3.981-.934 5.215-2.446 1.195-1.465 2.092-3.287 1.901-5.334l-.698-7.101zM77.532 97.538c.637-1.267.074-2.28-.009-3.609-.023-.352-.257-.564-.342-.904-.107-.425-.386-.691-.621-1.057-1.095-1.706-3.298-2.341-5.446-2.466l-6.942.157c-2.115.062-4.046.902-5.391 2.364-1.331 1.447-2.213 3.375-2.145 5.515l.227 7.1c.065 2.051.845 3.921 2.204 5.222 1.342 1.285 3.125 2.138 5.105 2.07l6.942-.261c1.884-.071 3.6-.822 4.79-2.132 1.172-1.291 1.952-3.001 1.884-4.899l-.256-7.1zM102.44 68.09c.091-1.912-.6-3.629-1.606-4.953-1.029-1.355-2.547-2.105-4.21-2.215l-6.29-.396c-1.792-.104-3.399.8-4.632 2.115-1.256 1.339-1.951 3.301-2.041 5.449 0 0-.458 10.812-.671 20.194-.162 7.153-.163 13.463-.163 13.463.024 2.432.848 4.643 2.22 6.219 1.367 1.571 3.227 2.572 5.287 2.543l6.29-.183a6.757 6.757 0 005.105-2.575c1.256-1.578 2.097-3.675 2.025-6.004L102.44 68.09z"})]})]})}))}}}]); +//# sourceMappingURL=7051.ff755156.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.97c03daf.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.ff755156.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.97c03daf.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.ff755156.chunk.js.map index 349a8260d..b49b6c312 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.97c03daf.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7051.ff755156.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/7051.97c03daf.chunk.js","mappings":"4JAyBA,UAtB0B,SAACA,GACzB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBAAMD,EAAE,i3BACR,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/CALCULATOR.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst CalculatorAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default CalculatorAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7051.ff755156.chunk.js","mappings":"4JAyBA,UAtB0B,SAACA,GACzB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBAAMD,EAAE,i3BACR,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/CALCULATOR.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst CalculatorAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default CalculatorAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.bb8f8c13.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.0b9eefe8.chunk.js similarity index 75% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.bb8f8c13.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.0b9eefe8.chunk.js index 5a3318ab4..47c7c506f 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.bb8f8c13.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.0b9eefe8.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7522,1864],{1864:function(n,e,t){t.r(e);var s=t(8489),u=(t(2791),t(9259)),l=t(184);e.default=function(n){return(0,l.jsx)(u.Z,(0,s.Z)((0,s.Z)({},n),{},{children:(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)("rect",{fill:"none"}),(0,l.jsx)("path",{d:"M19,3H4.99C3.89,3,3,3.9,3,5l0.01,14c0,1.1,0.89,2,1.99,2h10l6-6V5C21,3.9,20.1,3,19,3z M7,8h10v2H7V8z M12,14H7v-2h5V14z M14,19.5V14h5.5L14,19.5z"})]})}))}},7522:function(n,e,t){t.r(e);t(2791);var s=t(1864),u=t(184);e.default=function(){return(0,u.jsx)(s.default,{fontSize:"small"})}}}]); -//# sourceMappingURL=7522.bb8f8c13.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7522,1864],{1864:function(n,e,t){t.r(e);var s=t(1413),u=(t(2791),t(9259)),l=t(184);e.default=function(n){return(0,l.jsx)(u.Z,(0,s.Z)((0,s.Z)({},n),{},{children:(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)("rect",{fill:"none"}),(0,l.jsx)("path",{d:"M19,3H4.99C3.89,3,3,3.9,3,5l0.01,14c0,1.1,0.89,2,1.99,2h10l6-6V5C21,3.9,20.1,3,19,3z M7,8h10v2H7V8z M12,14H7v-2h5V14z M14,19.5V14h5.5L14,19.5z"})]})}))}},7522:function(n,e,t){t.r(e);t(2791);var s=t(1864),u=t(184);e.default=function(){return(0,u.jsx)(s.default,{fontSize:"small"})}}}]); +//# sourceMappingURL=7522.0b9eefe8.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.bb8f8c13.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.0b9eefe8.chunk.js.map similarity index 94% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.bb8f8c13.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.0b9eefe8.chunk.js.map index f1460e0bd..cce6d936a 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.bb8f8c13.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7522.0b9eefe8.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/7522.bb8f8c13.chunk.js","mappings":"iKAaA,UAT2C,SAACA,GAAD,OACzC,SAAC,KAAD,kBAAaA,GAAb,cACE,iBAAKC,MAAM,6BAA6BC,QAAQ,YAAhD,WACE,iBAAMC,KAAK,UACX,iBAAMC,EAAE,2J,2DCHd,UAF4B,kBAAM,SAAC,UAAD,CAAYC,SAAS","sources":["os/apps/icons/material/misc/StickyNote.tsx","os/apps/icons/material/svg/NOTES.tsx"],"sourcesContent":["import { SvgIconProps } from '@mui/material/SvgIcon';\nimport React from 'react';\nimport { SvgIcon } from '@mui/material';\n\nconst StickyNote: React.FC = (props) => (\n \n \n \n \n \n \n);\n\nexport default StickyNote;\n","import React from 'react';\nimport StickyNote from '../misc/StickyNote';\n\nconst NotesIcon: React.FC = () => ;\n\nexport default NotesIcon;\n"],"names":["props","xmlns","viewBox","fill","d","fontSize"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7522.0b9eefe8.chunk.js","mappings":"iKAaA,UAT2C,SAACA,GAAD,OACzC,SAAC,KAAD,kBAAaA,GAAb,cACE,iBAAKC,MAAM,6BAA6BC,QAAQ,YAAhD,WACE,iBAAMC,KAAK,UACX,iBAAMC,EAAE,2J,2DCHd,UAF4B,kBAAM,SAAC,UAAD,CAAYC,SAAS","sources":["os/apps/icons/material/misc/StickyNote.tsx","os/apps/icons/material/svg/NOTES.tsx"],"sourcesContent":["import { SvgIconProps } from '@mui/material/SvgIcon';\nimport React from 'react';\nimport { SvgIcon } from '@mui/material';\n\nconst StickyNote: React.FC = (props) => (\n \n \n \n \n \n \n);\n\nexport default StickyNote;\n","import React from 'react';\nimport StickyNote from '../misc/StickyNote';\n\nconst NotesIcon: React.FC = () => ;\n\nexport default NotesIcon;\n"],"names":["props","xmlns","viewBox","fill","d","fontSize"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.d9b181a5.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.b18b1ff1.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.d9b181a5.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.b18b1ff1.chunk.js index 98a8e8a77..b86d50604 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.d9b181a5.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.b18b1ff1.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7546],{7546:function(c,a,e){e.r(a);var n=e(8489),l=(e(2791),e(9259)),i=e(184);a.default=function(c){return(0,i.jsx)(l.Z,(0,n.Z)((0,n.Z)({},c),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsx)("path",{fill:c.htmlColor||"#000",d:"M32.743 29.128a10.908 10.908 0 01-2.085-1.956c-1.383-1.692-2.306-3.891-2.934-6.938-.11-.531-.46-5.525 4.371-6.47 1.599-.313 3.949-.126 7.347 1.197-.004-.78.008-1.664.057-2.416.08-1.254.294-2.501.716-3.516.437-1.051 1.101-1.878 1.985-2.397.592-.346 1.363-.479 2.278-.271.75.17 1.68.611 2.658 1.228 1.448.913 3.066 2.236 4.309 3.203.58-2.03 1.553-4.832 3.256-6.696 1.697-1.857 4.033-2.942 7.318-1.983 1.266.371 2.307 1.773 2.695 3.826.258 1.36.301 3.02.284 4.42 1.184-.822 2.647-1.864 4.143-2.662 2.239-1.193 4.564-1.801 6.39-1.18 1.357.462 2.05 1.495 2.171 2.95.113 1.352-.44 3.251-.969 4.916 1.498-.827 3.395-1.872 5.24-2.739 2.663-1.252 5.268-2.043 6.717-1.742 1.929.401 2.692 1.764 2.641 3.6-.025.92-.316 1.997-.69 3.019.609-.286 1.23-.547 1.809-.738 1.301-.428 2.461-.45 3.158-.094 1.288.658 1.782 1.642 1.829 2.747.032.742-.172 1.567-.511 2.366a4.24 4.24 0 011.188-.074c.852.084 1.555.462 1.989 1.248.783 1.421.272 3.198-1.213 4.836-1.173 1.295-2.914 2.544-4.512 3.45 1.138.818 2.278 1.657 3.43 2.507a12.119 12.119 0 012.284-.256 14.52 14.52 0 013.975.485c1.177.313 2.384.736 3.618 1.383 1.506.79 3.014 1.8 4.59 3.151a1.036 1.036 0 01-1.115 1.748c-2.403-1.111-4.553-1.607-6.535-1.887-.44-.062-.867-.101-1.283-.122 4.275 3.828 8.106 8.134 11.267 12.739 3.181 1.596 5.785 4.12 7.944 6.95 3.566 4.675 4.187 10.763 3.285 17.037-.388 2.151-2.658 11.628-3.387 14.443-3.997 14.741-14.119 26.606-26.857 33.743-12.969 7.266-28.742 9.2-43.666 4.834-14.276-4.756-26.578-14.309-33.861-26.525-2.73-4.58-4.811-9.486-6.115-14.577l-.015-.015c-2.1-1.998-3.784-4.339-4.897-6.98-2.47-5.861-3.181-12.625-.339-18.864 2.541-4.927 5.862-9.122 10.382-11.309a70.866 70.866 0 013.467-5.932c-.44.022-.884.059-1.333.114-1.674.206-3.362.491-5.111 1.152a1.037 1.037 0 01-1.004-1.814 21.225 21.225 0 014.654-2.701c1.161-.493 2.325-.824 3.498-1.079.898-.196 1.789-.32 2.673-.384 2.66-3.377 5.61-6.399 8.816-8.975zm59.068 6.434c-5.585-4.186-12.121-6.051-18.304-7.987-16.45-5.151-30.827-.215-40.982 11.975.2.077.396.155.59.236 4.697 1.944 7.566 4.53 7.566 4.53a1.036 1.036 0 11-1.142 1.73s-3.865-1.706-9.183-2.546a32.492 32.492 0 00-.745-.109 56.536 56.536 0 00-2.044 3.179c2.618.059 5.226.646 7.73 2.014 5.762.722 10.051 4.306 13.318 8.589 3.566 4.675 4.187 10.763 3.285 17.037-1.201 6.651-5.613 11.663-10.857 15.1-4.53 2.969-12.377 3.599-18.06 2.887 1.402 10.259 17.683 23.175 30.598 27.219 22.542 7.059 56.729-7.848 60.893-29.443l-2.293.643c-4.943 2.178-10.765 2.338-16.485.989-6.645-2.393-12.173-6.861-14.718-12.899-2.47-5.86-3.18-12.624-.338-18.863 2.949-5.72 6.95-10.453 12.657-12.203 3.26-.999 6.671-1.563 10.031-1.153a68.082 68.082 0 00-7.839-7.966c-1.033.421-1.983.882-2.836 1.41-3.212 1.992-5.133 4.351-5.133 4.351a1.036 1.036 0 01-1.796-1.036s1.382-3.318 4.544-6.374c.472-.456.987-.895 1.543-1.31zM67.268 93.107c-3.015-.099-5.174 1.653-6.635 4.415-1.401 2.648-1.854 6.454-1.584 10.617.215 2.187 1.521 4.158 3.369 5.417 1.74 1.186 3.988 1.653 6.154 1.193 1.713-.417 3.488-1.494 4.727-3.074 1.195-1.524 1.988-3.38 1.972-5.179-.164-5.574-1.009-9.17-2.522-11.111-1.402-1.798-3.167-2.638-5.481-2.278zm.208 3.182c1.242.028 1.894.83 2.283 2.21.495 1.756.433 4.284.012 7.741-.061.597-.521 1.108-.963 1.579-.423.45-.958.792-1.493.884-.532.108-1.062-.069-1.5-.344-.42-.263-.867-.562-.956-1.041-.672-3.064-.836-5.927-.143-8.071.488-1.509 1.249-2.709 2.76-2.958zm-9-9.076c.042.055.173.229.248.334.184.26.383.517.606.735.213.207.459.366.728.489a12.253 12.253 0 005.156 1.12c2.334.008 4.718-.616 7.418-1.489.527-.172.894-.495 1.194-.887.115-.149.282-.43.382-.604.099.015.214.042.292.04.337-.008.674-.033.979-.091.355-.069.675-.198.959-.368a1.684 1.684 0 00.733-1.864s-.798-3.277-2.201-6.976c-.873-2.302-1.986-4.759-3.238-6.723-.857-1.343-1.794-2.461-2.75-3.212-1.092-.858-2.234-1.29-3.372-1.237-.944.05-1.854.38-2.694 1.013-1.154.871-2.234 2.331-3.126 4.145-2.787 5.666-4.125 14.762-4.125 14.762a1.113 1.113 0 001.096 1.306s.545-.178 1.191-.372c.174-.053.369-.131.524-.121zm15.667-.31c-.081-.008-.138.004-.126.068.005.032.057-.03.084-.042a.24.24 0 00.042-.026zm-50.502-2.368c-3.909-1.13-10.094-6.424-10.498-14.703-.468-9.578 7.003-14.278 7.609-14.715 3.677-2.651 8.515-3.599 13.17-2.142 7.843 2.456 13.826 10.237 11.267 19.54-2.162 7.857-9.978 15.367-21.548 12.02zM108.72 53.06c5.092 1.939 7.746 5.575 8.968 9.689.814 2.74 1.268 5.408.184 9.679-2.374 9.353-11.46 13.769-19.289 11.267-11.609-3.712-13.096-13.329-10.639-21.172 2.456-7.843 12.073-12.217 19.916-9.761.292.092.578.191.86.298zm-72.81 9.586a5.272 5.272 0 015.269 5.269 5.272 5.272 0 01-5.269 5.269 5.272 5.272 0 01-5.269-5.269 5.272 5.272 0 015.269-5.269zm73.087-1.16a5.272 5.272 0 015.269 5.269 5.272 5.272 0 01-5.269 5.269 5.27 5.27 0 01-5.268-5.269 5.27 5.27 0 015.268-5.269z"})]})}))}}}]); -//# sourceMappingURL=7546.d9b181a5.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7546],{7546:function(c,a,e){e.r(a);var n=e(1413),l=(e(2791),e(9259)),i=e(184);a.default=function(c){return(0,i.jsx)(l.Z,(0,n.Z)((0,n.Z)({},c),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsx)("path",{fill:c.htmlColor||"#000",d:"M32.743 29.128a10.908 10.908 0 01-2.085-1.956c-1.383-1.692-2.306-3.891-2.934-6.938-.11-.531-.46-5.525 4.371-6.47 1.599-.313 3.949-.126 7.347 1.197-.004-.78.008-1.664.057-2.416.08-1.254.294-2.501.716-3.516.437-1.051 1.101-1.878 1.985-2.397.592-.346 1.363-.479 2.278-.271.75.17 1.68.611 2.658 1.228 1.448.913 3.066 2.236 4.309 3.203.58-2.03 1.553-4.832 3.256-6.696 1.697-1.857 4.033-2.942 7.318-1.983 1.266.371 2.307 1.773 2.695 3.826.258 1.36.301 3.02.284 4.42 1.184-.822 2.647-1.864 4.143-2.662 2.239-1.193 4.564-1.801 6.39-1.18 1.357.462 2.05 1.495 2.171 2.95.113 1.352-.44 3.251-.969 4.916 1.498-.827 3.395-1.872 5.24-2.739 2.663-1.252 5.268-2.043 6.717-1.742 1.929.401 2.692 1.764 2.641 3.6-.025.92-.316 1.997-.69 3.019.609-.286 1.23-.547 1.809-.738 1.301-.428 2.461-.45 3.158-.094 1.288.658 1.782 1.642 1.829 2.747.032.742-.172 1.567-.511 2.366a4.24 4.24 0 011.188-.074c.852.084 1.555.462 1.989 1.248.783 1.421.272 3.198-1.213 4.836-1.173 1.295-2.914 2.544-4.512 3.45 1.138.818 2.278 1.657 3.43 2.507a12.119 12.119 0 012.284-.256 14.52 14.52 0 013.975.485c1.177.313 2.384.736 3.618 1.383 1.506.79 3.014 1.8 4.59 3.151a1.036 1.036 0 01-1.115 1.748c-2.403-1.111-4.553-1.607-6.535-1.887-.44-.062-.867-.101-1.283-.122 4.275 3.828 8.106 8.134 11.267 12.739 3.181 1.596 5.785 4.12 7.944 6.95 3.566 4.675 4.187 10.763 3.285 17.037-.388 2.151-2.658 11.628-3.387 14.443-3.997 14.741-14.119 26.606-26.857 33.743-12.969 7.266-28.742 9.2-43.666 4.834-14.276-4.756-26.578-14.309-33.861-26.525-2.73-4.58-4.811-9.486-6.115-14.577l-.015-.015c-2.1-1.998-3.784-4.339-4.897-6.98-2.47-5.861-3.181-12.625-.339-18.864 2.541-4.927 5.862-9.122 10.382-11.309a70.866 70.866 0 013.467-5.932c-.44.022-.884.059-1.333.114-1.674.206-3.362.491-5.111 1.152a1.037 1.037 0 01-1.004-1.814 21.225 21.225 0 014.654-2.701c1.161-.493 2.325-.824 3.498-1.079.898-.196 1.789-.32 2.673-.384 2.66-3.377 5.61-6.399 8.816-8.975zm59.068 6.434c-5.585-4.186-12.121-6.051-18.304-7.987-16.45-5.151-30.827-.215-40.982 11.975.2.077.396.155.59.236 4.697 1.944 7.566 4.53 7.566 4.53a1.036 1.036 0 11-1.142 1.73s-3.865-1.706-9.183-2.546a32.492 32.492 0 00-.745-.109 56.536 56.536 0 00-2.044 3.179c2.618.059 5.226.646 7.73 2.014 5.762.722 10.051 4.306 13.318 8.589 3.566 4.675 4.187 10.763 3.285 17.037-1.201 6.651-5.613 11.663-10.857 15.1-4.53 2.969-12.377 3.599-18.06 2.887 1.402 10.259 17.683 23.175 30.598 27.219 22.542 7.059 56.729-7.848 60.893-29.443l-2.293.643c-4.943 2.178-10.765 2.338-16.485.989-6.645-2.393-12.173-6.861-14.718-12.899-2.47-5.86-3.18-12.624-.338-18.863 2.949-5.72 6.95-10.453 12.657-12.203 3.26-.999 6.671-1.563 10.031-1.153a68.082 68.082 0 00-7.839-7.966c-1.033.421-1.983.882-2.836 1.41-3.212 1.992-5.133 4.351-5.133 4.351a1.036 1.036 0 01-1.796-1.036s1.382-3.318 4.544-6.374c.472-.456.987-.895 1.543-1.31zM67.268 93.107c-3.015-.099-5.174 1.653-6.635 4.415-1.401 2.648-1.854 6.454-1.584 10.617.215 2.187 1.521 4.158 3.369 5.417 1.74 1.186 3.988 1.653 6.154 1.193 1.713-.417 3.488-1.494 4.727-3.074 1.195-1.524 1.988-3.38 1.972-5.179-.164-5.574-1.009-9.17-2.522-11.111-1.402-1.798-3.167-2.638-5.481-2.278zm.208 3.182c1.242.028 1.894.83 2.283 2.21.495 1.756.433 4.284.012 7.741-.061.597-.521 1.108-.963 1.579-.423.45-.958.792-1.493.884-.532.108-1.062-.069-1.5-.344-.42-.263-.867-.562-.956-1.041-.672-3.064-.836-5.927-.143-8.071.488-1.509 1.249-2.709 2.76-2.958zm-9-9.076c.042.055.173.229.248.334.184.26.383.517.606.735.213.207.459.366.728.489a12.253 12.253 0 005.156 1.12c2.334.008 4.718-.616 7.418-1.489.527-.172.894-.495 1.194-.887.115-.149.282-.43.382-.604.099.015.214.042.292.04.337-.008.674-.033.979-.091.355-.069.675-.198.959-.368a1.684 1.684 0 00.733-1.864s-.798-3.277-2.201-6.976c-.873-2.302-1.986-4.759-3.238-6.723-.857-1.343-1.794-2.461-2.75-3.212-1.092-.858-2.234-1.29-3.372-1.237-.944.05-1.854.38-2.694 1.013-1.154.871-2.234 2.331-3.126 4.145-2.787 5.666-4.125 14.762-4.125 14.762a1.113 1.113 0 001.096 1.306s.545-.178 1.191-.372c.174-.053.369-.131.524-.121zm15.667-.31c-.081-.008-.138.004-.126.068.005.032.057-.03.084-.042a.24.24 0 00.042-.026zm-50.502-2.368c-3.909-1.13-10.094-6.424-10.498-14.703-.468-9.578 7.003-14.278 7.609-14.715 3.677-2.651 8.515-3.599 13.17-2.142 7.843 2.456 13.826 10.237 11.267 19.54-2.162 7.857-9.978 15.367-21.548 12.02zM108.72 53.06c5.092 1.939 7.746 5.575 8.968 9.689.814 2.74 1.268 5.408.184 9.679-2.374 9.353-11.46 13.769-19.289 11.267-11.609-3.712-13.096-13.329-10.639-21.172 2.456-7.843 12.073-12.217 19.916-9.761.292.092.578.191.86.298zm-72.81 9.586a5.272 5.272 0 015.269 5.269 5.272 5.272 0 01-5.269 5.269 5.272 5.272 0 01-5.269-5.269 5.272 5.272 0 015.269-5.269zm73.087-1.16a5.272 5.272 0 015.269 5.269 5.272 5.272 0 01-5.269 5.269 5.27 5.27 0 01-5.268-5.269 5.27 5.27 0 015.268-5.269z"})]})}))}}}]); +//# sourceMappingURL=7546.b18b1ff1.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.d9b181a5.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.b18b1ff1.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.d9b181a5.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.b18b1ff1.chunk.js.map index c4235842f..f64a312f2 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.d9b181a5.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7546.b18b1ff1.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/7546.d9b181a5.chunk.js","mappings":"4JAyBA,UAtBwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/CONTACTS.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst ContactsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default ContactsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7546.b18b1ff1.chunk.js","mappings":"4JAyBA,UAtBwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/CONTACTS.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst ContactsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default ContactsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.5eaff788.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.d06baa1a.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.5eaff788.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.d06baa1a.chunk.js index 913565354..29422595b 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.5eaff788.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.d06baa1a.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7796],{7796:function(a,c,l){l.r(c);var i=l(8489),e=(l(2791),l(9259)),s=l(184);c.default=function(a){return(0,s.jsx)(e.Z,(0,i.Z)((0,i.Z)({},a),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,s.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,s.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,s.jsx)("clipPath",{id:"_clip1",children:(0,s.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,s.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,s.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{fill:"#c1365b",d:"M79.377 49.064c.769-9.323 2.448-16.301 8.523-16.124 7.975.231 6.722 7.324 8.035 17.73 4.882 1.714 7.674 3.161 12.097 6.463 8.082-7.14 15.029-10.901 19.322-6.442 5.587 5.802 2.301 11.826-4.41 20.7 3.869 5.176 5.77 8.524 7.069 14.387 9.478.868 15.681 1.389 15.03 9.07-.761 8.969-6.074 8.546-16.116 9.68-1.889 4.874-3.355 5.753-6.849 9.633 4.461 5.752 9.096 12.66 2.489 17.334-6.336 4.483-7.934 3.407-17.547-5.275-2.08 1.863-5.074 3.629-8.98 3.836-.892 12.48-.035 14.354-8.868 15.239-7.828.785-6.966-2.718-8.466-15.511-.575.736-7.05-1.179-9.71-3.64-11.192 10.154-11.951 13.344-18.796 7.35-4.839-4.237-4.098-7.13 4.68-18.491-2.661-3.13-4.857-6.593-6.475-10.274-5.485.951-12.251-.149-12.251-.149-4.45-1.152-6.504 1.138-7.122-6.98-.619-8.123 5.651-9.871 16.432-11.101.191-2.591.561-4.133 1.377-6.74a55.35 55.35 0 014.71-10.871c-7.668-10.069-10.27-13.947-5.257-18.64 4.952-4.636 9.169-2.535 17.732 5.106 4.351-3.395 7.988-5.37 13.351-6.29zm12.434 20.705c13.974.932 15.683 13.959 15.012 21.864-.892 10.497-10.802 15.617-21.802 14.696-14.614-1.224-16.59-16.76-13.244-25.314 3.908-9.99 14.914-11.587 20.034-11.246z"}),(0,s.jsx)("path",{fill:"#fff",d:"M76.544 46.524a27.506 27.506 0 00-5.605 2.033c-1.618.795-3.172 1.752-4.773 2.895-3.76-3.193-6.75-5.219-9.329-6.082-3.865-1.292-7.117-.566-10.585 2.696-2.886 2.715-3.832 5.311-3.425 8.292.428 3.133 2.892 7.029 7.236 12.795a57.17 57.17 0 00-1.843 3.884 59.756 59.756 0 00-2.156 5.852c-.43 1.384-.742 2.49-.974 3.59-.099.473-.185.945-.258 1.436-5.181.71-9.236 1.703-11.942 3.463-3.331 2.166-5.097 5.337-4.699 10.438.333 4.274 1.248 6.285 2.257 7.351.852.9 1.851 1.379 3.082 1.615 1.007.192 2.297.119 3.915.536.085.021.17.039.256.053 0 0 2.9.47 6.509.549 1.444.031 3 0 4.532-.144a43.633 43.633 0 002.165 3.818 45.892 45.892 0 002.434 3.467c-4.556 6.091-6.601 9.872-6.838 12.685-.249 2.947.975 5.27 3.889 7.813 3.539 3.091 6.026 3.993 8.405 3.598 1.284-.213 2.614-.825 4.113-1.941 2.004-1.492 4.502-4.049 8.303-7.577 2.148 1.282 4.875 2.312 6.825 2.747l.238.05c.361 3.327.588 5.931.928 7.925.42 2.462 1.085 4.171 2.053 5.336 1.515 1.821 3.866 2.714 8.184 2.278 5.593-.566 8.032-1.882 9.396-4.455 1.086-2.047 1.329-5.385 1.725-11.082a16.573 16.573 0 003.37-1.057 17.599 17.599 0 002.971-1.654c4.154 3.694 6.847 5.779 9.124 6.578 3.19 1.119 5.897.368 10.102-2.603 3.832-2.707 4.828-6.002 4.335-9.457-.459-3.216-2.512-6.687-4.854-9.909 1.437-1.538 2.49-2.636 3.435-4.021.617-.906 1.193-1.927 1.783-3.246 5.331-.574 9.296-.968 11.969-2.543 2.755-1.623 4.559-4.293 5.004-9.444.435-5.029-1.402-7.792-4.648-9.525-2.53-1.35-6.284-1.912-10.889-2.376-.635-2.362-1.406-4.359-2.403-6.308-.911-1.779-2.016-3.517-3.4-5.461 3.209-4.372 5.457-8.128 6.25-11.496.948-4.032.133-7.665-3.279-11.226-2.4-2.504-5.367-3.273-8.807-2.593-3.645.721-8.015 3.378-12.74 7.3-1.493-1.047-2.845-1.891-4.22-2.632-1.553-.838-3.137-1.544-4.992-2.252-.692-6.342-.821-11.361-2.613-14.353-1.498-2.5-3.86-4.106-8.073-4.238-3.404-.107-5.886 1.292-7.72 3.823-2.007 2.768-3.111 7.305-3.723 12.779zm3.317 80.684c-1.73-.213-5.324-1.492-7.017-3.061a2.72 2.72 0 00-3.676-.018c-5.024 4.55-7.851 7.681-10.126 9.12-1.7 1.077-2.741.192-5.034-1.82-1.652-1.452-2.421-2.579-1.662-4.57.912-2.39 3.124-5.496 6.737-10.154a2.784 2.784 0 00-.082-3.505 40.619 40.619 0 01-3.37-4.593 37.945 37.945 0 01-2.658-5.007 2.807 2.807 0 00-3.048-1.635c-1.824.313-3.804.369-5.582.323a47.638 47.638 0 01-5.614-.48c-1.654-.412-3.694-.589-4.182-.627a5.468 5.468 0 01-.265-.76c-.186-.757-.314-1.746-.41-3.037-.186-2.504.494-4.14 2.132-5.197 2.553-1.645 6.61-2.233 11.788-2.812a2.895 2.895 0 002.559-2.664c.088-1.165.215-2.091.416-3.022.202-.938.478-1.88.851-3.061a54.144 54.144 0 011.97-5.271 50.77 50.77 0 012.515-5.013 2.937 2.937 0 00-.215-3.235c-3.381-4.462-5.754-7.602-6.779-10.166-.714-1.785-.319-3.072 1.228-4.514 1.523-1.419 2.891-1.931 4.579-1.358 2.461.836 5.263 3.12 9.088 6.549a3.036 3.036 0 003.89.129c1.982-1.539 3.797-2.764 5.728-3.704 1.889-.918 3.889-1.554 6.274-1.959a3.066 3.066 0 002.537-2.77c.348-4.341.849-8.139 2.056-10.785.708-1.553 1.664-2.618 3.323-2.573 2.165.058 3.157.966 3.65 2.607.899 2.999.865 7.318 1.528 12.477a2.97 2.97 0 001.962 2.429c2.327.811 4.149 1.552 5.922 2.497 1.707.911 3.369 2.008 5.402 3.518a2.936 2.936 0 003.7-.152c3.705-3.289 7.122-5.85 10.142-7.045 2.043-.808 3.821-.981 5.158.402 1.821 1.883 2.353 3.783 1.859 5.926-.739 3.206-3.194 6.743-6.448 11.068a2.829 2.829 0 00-.009 3.401c1.78 2.372 3.128 4.331 4.176 6.361 1.066 2.064 1.813 4.2 2.424 6.936a2.8 2.8 0 002.479 2.184c4.602.414 8.375.626 10.785 1.902 1.38.731 1.92 2.011 1.743 4.145-.227 2.727-.837 4.308-2.292 5.172-2.444 1.451-6.245 1.439-11.373 2.026a2.734 2.734 0 00-2.242 1.728c-.63 1.636-1.196 2.76-1.84 3.711-1.121 1.653-2.445 2.827-4.479 5.091a2.718 2.718 0 00-.128 3.484c2.28 2.936 4.731 6.147 5.17 9.189.227 1.58-.343 3.032-2.095 4.273-2.232 1.582-3.501 2.517-5.197 1.925-2.169-.758-4.65-3.077-8.987-6.989a2.689 2.689 0 00-3.596-.007c-.927.832-2.071 1.644-3.437 2.24-1.14.497-2.437.843-3.891.922a2.68 2.68 0 00-2.533 2.486c-.423 5.899-.25 9.217-1.271 11.136-.3.565-.832.811-1.606 1.034-.932.268-2.105.434-3.584.581-2.323.231-3.447.227-3.951-1.32-.759-2.328-.889-6.112-1.555-11.827a2.71 2.71 0 00-3.537-2.261zm12.154-60.499c-3.259-.189-8.618.321-13.454 2.829-3.901 2.025-7.481 5.291-9.443 10.437-1.968 5.136-2.237 12.468.393 18.43 2.43 5.508 7.198 9.947 15.286 10.596 5.876.506 11.461-.598 15.811-3.107 4.993-2.88 8.423-7.59 9.008-14.024.446-4.769.035-11.203-2.821-16.303-2.595-4.635-7.116-8.277-14.78-8.858zm-.408 6.12c5.153.297 8.303 2.565 10.1 5.647 2.336 4.006 2.612 9.13 2.322 12.92-.353 4.473-2.703 7.775-6.155 9.804-3.456 2.032-7.936 2.839-12.629 2.457-5.667-.495-9.046-3.559-10.709-7.438-1.973-4.601-1.667-10.239-.1-14.164 1.448-3.607 4.029-5.855 6.807-7.237 3.744-1.861 7.866-2.177 10.364-1.989z"}),(0,s.jsx)("path",{fill:"#fff",d:"M93.339 116.237c-.945.141-1.896.243-2.848.308a1.491 1.491 0 10.201 2.978 38.51 38.51 0 003.087-.334 1.493 1.493 0 00-.44-2.952zm-11.389-.175a30.547 30.547 0 01-2.769-.652 1.493 1.493 0 00-.822 2.87c.995.284 2.011.523 3.041.716a1.493 1.493 0 00.55-2.934zm22.188-3.362c-.83.45-1.686.861-2.562 1.234a1.493 1.493 0 001.168 2.747c.963-.41 1.904-.862 2.815-1.355a1.494 1.494 0 00-1.421-2.626zm-32.768-.702a28.106 28.106 0 01-2.335-1.602 1.493 1.493 0 00-1.813 2.372 30.93 30.93 0 002.586 1.773 1.493 1.493 0 001.562-2.543zm41.22-6.591a22.131 22.131 0 01-1.764 2.168 1.493 1.493 0 002.193 2.025 25.309 25.309 0 002.002-2.46 1.493 1.493 0 00-2.431-1.733zm-49.295-1.15a22.73 22.73 0 01-1.381-2.436 1.493 1.493 0 00-2.683 1.309c.464.95.985 1.869 1.561 2.755a1.494 1.494 0 002.503-1.628zm53.156-9.22a26.982 26.982 0 01-.469 2.775l-.003.012a1.493 1.493 0 002.912.656l.003-.013c.224-.996.398-2.027.522-3.084a1.493 1.493 0 00-2.965-.346zm-56.763-1.278a24.93 24.93 0 01-.09-2.814 1.493 1.493 0 00-2.984-.071c-.026 1.069.009 2.12.101 3.15a1.492 1.492 0 102.973-.265zm56.093-10.085c.211.937.384 1.878.519 2.819a1.493 1.493 0 002.955-.424 38.972 38.972 0 00-.562-3.051 1.493 1.493 0 00-2.912.656zm-54.699-1.09a33.4 33.4 0 01.994-2.679 1.493 1.493 0 00-2.751-1.159c-.392.93-.753 1.902-1.083 2.916a1.493 1.493 0 002.84.922zm50.388-9.422c.511.794.983 1.617 1.418 2.462a1.494 1.494 0 002.01.645 1.494 1.494 0 00.644-2.01 32.39 32.39 0 00-1.56-2.711 1.493 1.493 0 00-2.512 1.614zm-44.993-.483a24.677 24.677 0 011.947-2.031 1.494 1.494 0 00.076-2.11 1.494 1.494 0 00-2.11-.075 27.7 27.7 0 00-2.181 2.276 1.492 1.492 0 102.268 1.94zm35.041-7.287c.81.465 1.582.982 2.316 1.545a1.492 1.492 0 001.816-2.368 23.781 23.781 0 00-2.646-1.766 1.493 1.493 0 00-1.486 2.589zm-25.054.601c.86-.393 1.741-.746 2.643-1.062a1.492 1.492 0 00-.988-2.816c-.987.346-1.953.733-2.895 1.163a1.493 1.493 0 001.24 2.715zm13.045-2.954a51.563 51.563 0 012.889-.262 1.492 1.492 0 00-.188-2.979 53.677 53.677 0 00-3.056.278 1.493 1.493 0 00.355 2.963z"})]})]})]})}))}}}]); -//# sourceMappingURL=7796.5eaff788.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7796],{7796:function(a,c,l){l.r(c);var i=l(1413),e=(l(2791),l(9259)),s=l(184);c.default=function(a){return(0,s.jsx)(e.Z,(0,i.Z)((0,i.Z)({},a),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,s.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,s.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,s.jsx)("clipPath",{id:"_clip1",children:(0,s.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,s.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,s.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{fill:"#c1365b",d:"M79.377 49.064c.769-9.323 2.448-16.301 8.523-16.124 7.975.231 6.722 7.324 8.035 17.73 4.882 1.714 7.674 3.161 12.097 6.463 8.082-7.14 15.029-10.901 19.322-6.442 5.587 5.802 2.301 11.826-4.41 20.7 3.869 5.176 5.77 8.524 7.069 14.387 9.478.868 15.681 1.389 15.03 9.07-.761 8.969-6.074 8.546-16.116 9.68-1.889 4.874-3.355 5.753-6.849 9.633 4.461 5.752 9.096 12.66 2.489 17.334-6.336 4.483-7.934 3.407-17.547-5.275-2.08 1.863-5.074 3.629-8.98 3.836-.892 12.48-.035 14.354-8.868 15.239-7.828.785-6.966-2.718-8.466-15.511-.575.736-7.05-1.179-9.71-3.64-11.192 10.154-11.951 13.344-18.796 7.35-4.839-4.237-4.098-7.13 4.68-18.491-2.661-3.13-4.857-6.593-6.475-10.274-5.485.951-12.251-.149-12.251-.149-4.45-1.152-6.504 1.138-7.122-6.98-.619-8.123 5.651-9.871 16.432-11.101.191-2.591.561-4.133 1.377-6.74a55.35 55.35 0 014.71-10.871c-7.668-10.069-10.27-13.947-5.257-18.64 4.952-4.636 9.169-2.535 17.732 5.106 4.351-3.395 7.988-5.37 13.351-6.29zm12.434 20.705c13.974.932 15.683 13.959 15.012 21.864-.892 10.497-10.802 15.617-21.802 14.696-14.614-1.224-16.59-16.76-13.244-25.314 3.908-9.99 14.914-11.587 20.034-11.246z"}),(0,s.jsx)("path",{fill:"#fff",d:"M76.544 46.524a27.506 27.506 0 00-5.605 2.033c-1.618.795-3.172 1.752-4.773 2.895-3.76-3.193-6.75-5.219-9.329-6.082-3.865-1.292-7.117-.566-10.585 2.696-2.886 2.715-3.832 5.311-3.425 8.292.428 3.133 2.892 7.029 7.236 12.795a57.17 57.17 0 00-1.843 3.884 59.756 59.756 0 00-2.156 5.852c-.43 1.384-.742 2.49-.974 3.59-.099.473-.185.945-.258 1.436-5.181.71-9.236 1.703-11.942 3.463-3.331 2.166-5.097 5.337-4.699 10.438.333 4.274 1.248 6.285 2.257 7.351.852.9 1.851 1.379 3.082 1.615 1.007.192 2.297.119 3.915.536.085.021.17.039.256.053 0 0 2.9.47 6.509.549 1.444.031 3 0 4.532-.144a43.633 43.633 0 002.165 3.818 45.892 45.892 0 002.434 3.467c-4.556 6.091-6.601 9.872-6.838 12.685-.249 2.947.975 5.27 3.889 7.813 3.539 3.091 6.026 3.993 8.405 3.598 1.284-.213 2.614-.825 4.113-1.941 2.004-1.492 4.502-4.049 8.303-7.577 2.148 1.282 4.875 2.312 6.825 2.747l.238.05c.361 3.327.588 5.931.928 7.925.42 2.462 1.085 4.171 2.053 5.336 1.515 1.821 3.866 2.714 8.184 2.278 5.593-.566 8.032-1.882 9.396-4.455 1.086-2.047 1.329-5.385 1.725-11.082a16.573 16.573 0 003.37-1.057 17.599 17.599 0 002.971-1.654c4.154 3.694 6.847 5.779 9.124 6.578 3.19 1.119 5.897.368 10.102-2.603 3.832-2.707 4.828-6.002 4.335-9.457-.459-3.216-2.512-6.687-4.854-9.909 1.437-1.538 2.49-2.636 3.435-4.021.617-.906 1.193-1.927 1.783-3.246 5.331-.574 9.296-.968 11.969-2.543 2.755-1.623 4.559-4.293 5.004-9.444.435-5.029-1.402-7.792-4.648-9.525-2.53-1.35-6.284-1.912-10.889-2.376-.635-2.362-1.406-4.359-2.403-6.308-.911-1.779-2.016-3.517-3.4-5.461 3.209-4.372 5.457-8.128 6.25-11.496.948-4.032.133-7.665-3.279-11.226-2.4-2.504-5.367-3.273-8.807-2.593-3.645.721-8.015 3.378-12.74 7.3-1.493-1.047-2.845-1.891-4.22-2.632-1.553-.838-3.137-1.544-4.992-2.252-.692-6.342-.821-11.361-2.613-14.353-1.498-2.5-3.86-4.106-8.073-4.238-3.404-.107-5.886 1.292-7.72 3.823-2.007 2.768-3.111 7.305-3.723 12.779zm3.317 80.684c-1.73-.213-5.324-1.492-7.017-3.061a2.72 2.72 0 00-3.676-.018c-5.024 4.55-7.851 7.681-10.126 9.12-1.7 1.077-2.741.192-5.034-1.82-1.652-1.452-2.421-2.579-1.662-4.57.912-2.39 3.124-5.496 6.737-10.154a2.784 2.784 0 00-.082-3.505 40.619 40.619 0 01-3.37-4.593 37.945 37.945 0 01-2.658-5.007 2.807 2.807 0 00-3.048-1.635c-1.824.313-3.804.369-5.582.323a47.638 47.638 0 01-5.614-.48c-1.654-.412-3.694-.589-4.182-.627a5.468 5.468 0 01-.265-.76c-.186-.757-.314-1.746-.41-3.037-.186-2.504.494-4.14 2.132-5.197 2.553-1.645 6.61-2.233 11.788-2.812a2.895 2.895 0 002.559-2.664c.088-1.165.215-2.091.416-3.022.202-.938.478-1.88.851-3.061a54.144 54.144 0 011.97-5.271 50.77 50.77 0 012.515-5.013 2.937 2.937 0 00-.215-3.235c-3.381-4.462-5.754-7.602-6.779-10.166-.714-1.785-.319-3.072 1.228-4.514 1.523-1.419 2.891-1.931 4.579-1.358 2.461.836 5.263 3.12 9.088 6.549a3.036 3.036 0 003.89.129c1.982-1.539 3.797-2.764 5.728-3.704 1.889-.918 3.889-1.554 6.274-1.959a3.066 3.066 0 002.537-2.77c.348-4.341.849-8.139 2.056-10.785.708-1.553 1.664-2.618 3.323-2.573 2.165.058 3.157.966 3.65 2.607.899 2.999.865 7.318 1.528 12.477a2.97 2.97 0 001.962 2.429c2.327.811 4.149 1.552 5.922 2.497 1.707.911 3.369 2.008 5.402 3.518a2.936 2.936 0 003.7-.152c3.705-3.289 7.122-5.85 10.142-7.045 2.043-.808 3.821-.981 5.158.402 1.821 1.883 2.353 3.783 1.859 5.926-.739 3.206-3.194 6.743-6.448 11.068a2.829 2.829 0 00-.009 3.401c1.78 2.372 3.128 4.331 4.176 6.361 1.066 2.064 1.813 4.2 2.424 6.936a2.8 2.8 0 002.479 2.184c4.602.414 8.375.626 10.785 1.902 1.38.731 1.92 2.011 1.743 4.145-.227 2.727-.837 4.308-2.292 5.172-2.444 1.451-6.245 1.439-11.373 2.026a2.734 2.734 0 00-2.242 1.728c-.63 1.636-1.196 2.76-1.84 3.711-1.121 1.653-2.445 2.827-4.479 5.091a2.718 2.718 0 00-.128 3.484c2.28 2.936 4.731 6.147 5.17 9.189.227 1.58-.343 3.032-2.095 4.273-2.232 1.582-3.501 2.517-5.197 1.925-2.169-.758-4.65-3.077-8.987-6.989a2.689 2.689 0 00-3.596-.007c-.927.832-2.071 1.644-3.437 2.24-1.14.497-2.437.843-3.891.922a2.68 2.68 0 00-2.533 2.486c-.423 5.899-.25 9.217-1.271 11.136-.3.565-.832.811-1.606 1.034-.932.268-2.105.434-3.584.581-2.323.231-3.447.227-3.951-1.32-.759-2.328-.889-6.112-1.555-11.827a2.71 2.71 0 00-3.537-2.261zm12.154-60.499c-3.259-.189-8.618.321-13.454 2.829-3.901 2.025-7.481 5.291-9.443 10.437-1.968 5.136-2.237 12.468.393 18.43 2.43 5.508 7.198 9.947 15.286 10.596 5.876.506 11.461-.598 15.811-3.107 4.993-2.88 8.423-7.59 9.008-14.024.446-4.769.035-11.203-2.821-16.303-2.595-4.635-7.116-8.277-14.78-8.858zm-.408 6.12c5.153.297 8.303 2.565 10.1 5.647 2.336 4.006 2.612 9.13 2.322 12.92-.353 4.473-2.703 7.775-6.155 9.804-3.456 2.032-7.936 2.839-12.629 2.457-5.667-.495-9.046-3.559-10.709-7.438-1.973-4.601-1.667-10.239-.1-14.164 1.448-3.607 4.029-5.855 6.807-7.237 3.744-1.861 7.866-2.177 10.364-1.989z"}),(0,s.jsx)("path",{fill:"#fff",d:"M93.339 116.237c-.945.141-1.896.243-2.848.308a1.491 1.491 0 10.201 2.978 38.51 38.51 0 003.087-.334 1.493 1.493 0 00-.44-2.952zm-11.389-.175a30.547 30.547 0 01-2.769-.652 1.493 1.493 0 00-.822 2.87c.995.284 2.011.523 3.041.716a1.493 1.493 0 00.55-2.934zm22.188-3.362c-.83.45-1.686.861-2.562 1.234a1.493 1.493 0 001.168 2.747c.963-.41 1.904-.862 2.815-1.355a1.494 1.494 0 00-1.421-2.626zm-32.768-.702a28.106 28.106 0 01-2.335-1.602 1.493 1.493 0 00-1.813 2.372 30.93 30.93 0 002.586 1.773 1.493 1.493 0 001.562-2.543zm41.22-6.591a22.131 22.131 0 01-1.764 2.168 1.493 1.493 0 002.193 2.025 25.309 25.309 0 002.002-2.46 1.493 1.493 0 00-2.431-1.733zm-49.295-1.15a22.73 22.73 0 01-1.381-2.436 1.493 1.493 0 00-2.683 1.309c.464.95.985 1.869 1.561 2.755a1.494 1.494 0 002.503-1.628zm53.156-9.22a26.982 26.982 0 01-.469 2.775l-.003.012a1.493 1.493 0 002.912.656l.003-.013c.224-.996.398-2.027.522-3.084a1.493 1.493 0 00-2.965-.346zm-56.763-1.278a24.93 24.93 0 01-.09-2.814 1.493 1.493 0 00-2.984-.071c-.026 1.069.009 2.12.101 3.15a1.492 1.492 0 102.973-.265zm56.093-10.085c.211.937.384 1.878.519 2.819a1.493 1.493 0 002.955-.424 38.972 38.972 0 00-.562-3.051 1.493 1.493 0 00-2.912.656zm-54.699-1.09a33.4 33.4 0 01.994-2.679 1.493 1.493 0 00-2.751-1.159c-.392.93-.753 1.902-1.083 2.916a1.493 1.493 0 002.84.922zm50.388-9.422c.511.794.983 1.617 1.418 2.462a1.494 1.494 0 002.01.645 1.494 1.494 0 00.644-2.01 32.39 32.39 0 00-1.56-2.711 1.493 1.493 0 00-2.512 1.614zm-44.993-.483a24.677 24.677 0 011.947-2.031 1.494 1.494 0 00.076-2.11 1.494 1.494 0 00-2.11-.075 27.7 27.7 0 00-2.181 2.276 1.492 1.492 0 102.268 1.94zm35.041-7.287c.81.465 1.582.982 2.316 1.545a1.492 1.492 0 001.816-2.368 23.781 23.781 0 00-2.646-1.766 1.493 1.493 0 00-1.486 2.589zm-25.054.601c.86-.393 1.741-.746 2.643-1.062a1.492 1.492 0 00-.988-2.816c-.987.346-1.953.733-2.895 1.163a1.493 1.493 0 001.24 2.715zm13.045-2.954a51.563 51.563 0 012.889-.262 1.492 1.492 0 00-.188-2.979 53.677 53.677 0 00-3.056.278 1.493 1.493 0 00.355 2.963z"})]})]})]})}))}}}]); +//# sourceMappingURL=7796.d06baa1a.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.5eaff788.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.d06baa1a.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.5eaff788.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.d06baa1a.chunk.js.map index 0e6e7524a..1f1805061 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.5eaff788.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7796.d06baa1a.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/7796.5eaff788.chunk.js","mappings":"4JA4CA,UAzCwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,slCAEJ,iBACED,KAAK,OACLC,EAAE,uiJAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/SETTINGS.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst SettingsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default SettingsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7796.d06baa1a.chunk.js","mappings":"4JA4CA,UAzCwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,slCAEJ,iBACED,KAAK,OACLC,EAAE,uiJAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/SETTINGS.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst SettingsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default SettingsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.5274746f.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.c9293d06.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.5274746f.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.c9293d06.chunk.js index 261d34e42..6cc799b90 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.5274746f.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.c9293d06.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7797],{7797:function(c,a,l){l.r(a);var s=l(8489),i=(l(2791),l(9259)),e=l(184);a.default=function(c){return(0,e.jsx)(i.Z,(0,s.Z)((0,s.Z)({},c),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#ffcd55",d:"M32.573 57.496s2.189 20.576 2.846 28.019c.656 7.442-3.941 36.118.875 38.307s62.385 3.721 79.897 3.064c17.511-.657 27.581-5.91 28.018-13.134.206-3.398 1.098-16.75.129-30.633-1.09-15.627-4.069-31.752-4.069-31.752s-110.98-4.378-106.821 4.816"}),(0,e.jsx)("path",{fill:"#ffcd55",d:"M140.269 51.805c-2.877-.103-75.081-1.094-75.081-1.094s-35.68.218-33.928 3.064c1.751 2.846 19.919 20.357 26.705 26.486 6.785 6.13 17.292 19.701 26.048 18.169 8.756-1.533 68.514-46.187 56.256-46.625z"}),(0,e.jsx)("path",{fill:"#fff",d:"M30.13 58.756l2.39 27.015c.406 5.316-2.012 21.435-1.663 31.002.12 3.274.632 5.902 1.422 7.47.676 1.343 1.62 2.175 2.622 2.644 2.333 1.09 16.658 2.368 33.135 3.118 18.128.825 38.925 1.214 48.307.931 11.064-.378 19.379-2.591 24.543-5.799 4.796-2.98 7.2-6.895 7.463-11.134.122-2.115.502-8.029.529-15.536.017-4.759-.11-10.154-.517-15.629-.426-5.567-1.081-11.195-1.766-16.153a350.625 350.625 0 00-2.103-13.321c.07-.8-.077-1.485-.375-2.056l-.119-.629a3.791 3.791 0 00-3.579-3.1s-34.559-1.002-64.445-.279l-10.734-.327h-.075s-23.412-.061-31.819 1.42c-2.13.376-3.6 1.013-4.301 1.521-1.147.83-1.624 1.854-1.822 2.761-.225 1.038-.1 2.125.571 3.233.319.523 1.145 1.523 2.336 2.848zm71.997 33.408a215.824 215.824 0 01-5.348 3.631c-5.606 3.674-10.105 5.96-12.118 6.338-3.783.711-7.903-.575-11.964-3.159a39.89 39.89 0 01-3.557-2.578 270.262 270.262 0 01-7.698 6.888c-2.074 1.784-4.321 3.7-6.69 5.469-2.369 1.77-4.844 3.381-7.143 4.863a267.528 267.528 0 01-9.828 6.035c.108.463.261.947.362 1.245.887.204 2.556.333 4.792.527 5.92.515 15.223.9 25.372 1.182 17.921.499 38.469.646 47.732.231 7.607-.312 13.697-1.511 18.046-3.435l.144-.064c-2.021-.977-4.065-2.202-6.064-3.587a65.638 65.638 0 01-8.762-7.297c-3.447-3.435-5.953-6.778-7.295-8.314a28.796 28.796 0 00-5.188-4.992 34.174 34.174 0 00-4.793-2.983zm8.808 17.752s-.855.055-2.091.306c-.431.087-.88.21-1.357.375a7.51 7.51 0 00-1.311.591 5.395 5.395 0 00-.807.58c-.341.293-.661.584-.924.921-.818 1.053-1.406 2.079-1.347 3.186a1.218 1.218 0 002.401.4c.136-.328.517-.435.84-.677.282-.213.627-.332.963-.524.342-.197.709-.367 1.053-.576.459-.278.874-.595 1.281-.868 1.168-.784 2.015-1.388 2.015-1.388a1.217 1.217 0 10-.716-2.326zm27.227-47.196a87.63 87.63 0 01-2.381 2.376c-7.26 6.987-18.335 15.937-28.309 23.24.895.377 1.863.827 2.876 1.36 2.348 1.237 4.852 2.994 7.299 5.273a643.55 643.55 0 015.39 5.381c1.083 1.093 2.259 2.277 3.469 3.521 2.737 2.815 5.712 5.862 8.809 8.285 1.458 1.142 2.891 2.196 4.307 3.01a4.251 4.251 0 00.448-1.664c.13-2.055.52-7.801.601-15.095.051-4.569-.013-9.749-.355-15.008-.341-5.408-.915-10.877-1.507-15.699a356.395 356.395 0 00-.647-4.98zM35.984 64.91l2.333 20.349c.412 4.111-.652 14.627-.944 23.712-.041 1.291-.066 2.55-.067 3.752a269.234 269.234 0 015.798-5.138c2.074-1.784 4.321-3.7 6.691-5.47 2.369-1.769 4.844-3.379 7.144-4.862a267.196 267.196 0 017.729-4.795c-3.502-3.303-6.76-6.784-9.442-9.164-3.655-3.288-10.599-9.814-16.517-15.66-.939-.927-1.852-1.84-2.725-2.724zm85.023-10.536l-55.796.075s-17.022.262-26.69 1.359a609.162 609.162 0 005.989 5.94c5.838 5.741 12.61 12.23 16.194 15.481 3.783 3.477 8.729 9.35 13.884 13.503 2.995 2.413 5.912 4.46 8.777 3.994.889-.144 2.406-.917 4.422-2.015 5.086-2.77 12.544-7.632 20.247-13.092 10.972-7.779 22.442-16.75 28.183-22.754.322-.338.638-.696.936-1.053l-.126-.8c-3.279-.148-8.957-.39-16.02-.638zM73.351 73.456l.001-.001s.025.016.03.044c.005.029.097.05.094.135-.002.06.166.104.123.206-.013.03.072.056.05.09-.024.036.164.135.123.086-.038-.046.13.018.197-.025.156-.097.38-.098.634-.219.154-.075.332-.14.512-.248.167-.099.325-.231.504-.372.49-.385.918-.872 1.618-1.396.631-.23.957-.929.728-1.56a1.219 1.219 0 00-1.56-.728 14.04 14.04 0 00-1.709.135 5.145 5.145 0 00-1.135.292 3.544 3.544 0 00-.888.503c-.353.27-.619.523-.812.789-.389.535-.666.894-.753 1.276-.16.698-.302 1.113-.167 1.447.148.369.169.622.27.719.65.626 1.114.697 1.114.697-.641.017.116.169.675-.204.551-.368.706-1.11.351-1.666zm-6.689-3.455s1.423-.966 3.503-2.266c.721-.45 1.52-.921 2.352-1.438.625-.387 1.271-.789 1.918-1.201.629-.401 1.246-.825 1.881-1.215 1.406-.866 2.78-1.674 4.187-2.058a1.218 1.218 0 00-.37-2.406c-1.736.067-3.589.514-5.419 1.239a19.296 19.296 0 00-3.214 1.617c-1.048.665-1.982 1.429-2.809 2.159-2.289 2.021-3.694 3.793-3.694 3.793a1.218 1.218 0 001.665 1.776z"})]})]})]})}))}}}]); -//# sourceMappingURL=7797.5274746f.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7797],{7797:function(c,a,l){l.r(a);var s=l(1413),i=(l(2791),l(9259)),e=l(184);a.default=function(c){return(0,e.jsx)(i.Z,(0,s.Z)((0,s.Z)({},c),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#ffcd55",d:"M32.573 57.496s2.189 20.576 2.846 28.019c.656 7.442-3.941 36.118.875 38.307s62.385 3.721 79.897 3.064c17.511-.657 27.581-5.91 28.018-13.134.206-3.398 1.098-16.75.129-30.633-1.09-15.627-4.069-31.752-4.069-31.752s-110.98-4.378-106.821 4.816"}),(0,e.jsx)("path",{fill:"#ffcd55",d:"M140.269 51.805c-2.877-.103-75.081-1.094-75.081-1.094s-35.68.218-33.928 3.064c1.751 2.846 19.919 20.357 26.705 26.486 6.785 6.13 17.292 19.701 26.048 18.169 8.756-1.533 68.514-46.187 56.256-46.625z"}),(0,e.jsx)("path",{fill:"#fff",d:"M30.13 58.756l2.39 27.015c.406 5.316-2.012 21.435-1.663 31.002.12 3.274.632 5.902 1.422 7.47.676 1.343 1.62 2.175 2.622 2.644 2.333 1.09 16.658 2.368 33.135 3.118 18.128.825 38.925 1.214 48.307.931 11.064-.378 19.379-2.591 24.543-5.799 4.796-2.98 7.2-6.895 7.463-11.134.122-2.115.502-8.029.529-15.536.017-4.759-.11-10.154-.517-15.629-.426-5.567-1.081-11.195-1.766-16.153a350.625 350.625 0 00-2.103-13.321c.07-.8-.077-1.485-.375-2.056l-.119-.629a3.791 3.791 0 00-3.579-3.1s-34.559-1.002-64.445-.279l-10.734-.327h-.075s-23.412-.061-31.819 1.42c-2.13.376-3.6 1.013-4.301 1.521-1.147.83-1.624 1.854-1.822 2.761-.225 1.038-.1 2.125.571 3.233.319.523 1.145 1.523 2.336 2.848zm71.997 33.408a215.824 215.824 0 01-5.348 3.631c-5.606 3.674-10.105 5.96-12.118 6.338-3.783.711-7.903-.575-11.964-3.159a39.89 39.89 0 01-3.557-2.578 270.262 270.262 0 01-7.698 6.888c-2.074 1.784-4.321 3.7-6.69 5.469-2.369 1.77-4.844 3.381-7.143 4.863a267.528 267.528 0 01-9.828 6.035c.108.463.261.947.362 1.245.887.204 2.556.333 4.792.527 5.92.515 15.223.9 25.372 1.182 17.921.499 38.469.646 47.732.231 7.607-.312 13.697-1.511 18.046-3.435l.144-.064c-2.021-.977-4.065-2.202-6.064-3.587a65.638 65.638 0 01-8.762-7.297c-3.447-3.435-5.953-6.778-7.295-8.314a28.796 28.796 0 00-5.188-4.992 34.174 34.174 0 00-4.793-2.983zm8.808 17.752s-.855.055-2.091.306c-.431.087-.88.21-1.357.375a7.51 7.51 0 00-1.311.591 5.395 5.395 0 00-.807.58c-.341.293-.661.584-.924.921-.818 1.053-1.406 2.079-1.347 3.186a1.218 1.218 0 002.401.4c.136-.328.517-.435.84-.677.282-.213.627-.332.963-.524.342-.197.709-.367 1.053-.576.459-.278.874-.595 1.281-.868 1.168-.784 2.015-1.388 2.015-1.388a1.217 1.217 0 10-.716-2.326zm27.227-47.196a87.63 87.63 0 01-2.381 2.376c-7.26 6.987-18.335 15.937-28.309 23.24.895.377 1.863.827 2.876 1.36 2.348 1.237 4.852 2.994 7.299 5.273a643.55 643.55 0 015.39 5.381c1.083 1.093 2.259 2.277 3.469 3.521 2.737 2.815 5.712 5.862 8.809 8.285 1.458 1.142 2.891 2.196 4.307 3.01a4.251 4.251 0 00.448-1.664c.13-2.055.52-7.801.601-15.095.051-4.569-.013-9.749-.355-15.008-.341-5.408-.915-10.877-1.507-15.699a356.395 356.395 0 00-.647-4.98zM35.984 64.91l2.333 20.349c.412 4.111-.652 14.627-.944 23.712-.041 1.291-.066 2.55-.067 3.752a269.234 269.234 0 015.798-5.138c2.074-1.784 4.321-3.7 6.691-5.47 2.369-1.769 4.844-3.379 7.144-4.862a267.196 267.196 0 017.729-4.795c-3.502-3.303-6.76-6.784-9.442-9.164-3.655-3.288-10.599-9.814-16.517-15.66-.939-.927-1.852-1.84-2.725-2.724zm85.023-10.536l-55.796.075s-17.022.262-26.69 1.359a609.162 609.162 0 005.989 5.94c5.838 5.741 12.61 12.23 16.194 15.481 3.783 3.477 8.729 9.35 13.884 13.503 2.995 2.413 5.912 4.46 8.777 3.994.889-.144 2.406-.917 4.422-2.015 5.086-2.77 12.544-7.632 20.247-13.092 10.972-7.779 22.442-16.75 28.183-22.754.322-.338.638-.696.936-1.053l-.126-.8c-3.279-.148-8.957-.39-16.02-.638zM73.351 73.456l.001-.001s.025.016.03.044c.005.029.097.05.094.135-.002.06.166.104.123.206-.013.03.072.056.05.09-.024.036.164.135.123.086-.038-.046.13.018.197-.025.156-.097.38-.098.634-.219.154-.075.332-.14.512-.248.167-.099.325-.231.504-.372.49-.385.918-.872 1.618-1.396.631-.23.957-.929.728-1.56a1.219 1.219 0 00-1.56-.728 14.04 14.04 0 00-1.709.135 5.145 5.145 0 00-1.135.292 3.544 3.544 0 00-.888.503c-.353.27-.619.523-.812.789-.389.535-.666.894-.753 1.276-.16.698-.302 1.113-.167 1.447.148.369.169.622.27.719.65.626 1.114.697 1.114.697-.641.017.116.169.675-.204.551-.368.706-1.11.351-1.666zm-6.689-3.455s1.423-.966 3.503-2.266c.721-.45 1.52-.921 2.352-1.438.625-.387 1.271-.789 1.918-1.201.629-.401 1.246-.825 1.881-1.215 1.406-.866 2.78-1.674 4.187-2.058a1.218 1.218 0 00-.37-2.406c-1.736.067-3.589.514-5.419 1.239a19.296 19.296 0 00-3.214 1.617c-1.048.665-1.982 1.429-2.809 2.159-2.289 2.021-3.694 3.793-3.694 3.793a1.218 1.218 0 001.665 1.776z"})]})]})]})}))}}}]); +//# sourceMappingURL=7797.c9293d06.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.5274746f.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.c9293d06.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.5274746f.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.c9293d06.chunk.js.map index e019ea77c..14a73a5d5 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.5274746f.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7797.c9293d06.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/7797.5274746f.chunk.js","mappings":"4JA4CA,UAzCqB,SAACA,GACpB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,oPAEJ,iBACED,KAAK,UACLC,EAAE,2MAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/EMAIL.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst EmailAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default EmailAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7797.c9293d06.chunk.js","mappings":"4JA4CA,UAzCqB,SAACA,GACpB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,oPAEJ,iBACED,KAAK,UACLC,EAAE,2MAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/EMAIL.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst EmailAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default EmailAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.c0357ad8.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.885b2520.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.c0357ad8.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.885b2520.chunk.js index 133a9ea17..b9b2620f1 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.c0357ad8.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.885b2520.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7871],{7871:function(l,s,c){c.r(s);var i=c(8489),f=(c(2791),c(9259)),a=c(184);s.default=function(l){return(0,a.jsx)(f.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,a.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,a.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,a.jsx)("clipPath",{id:"_clip1",children:(0,a.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,a.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,a.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{fill:"#c1365b",d:"M99.654 54.684s-2.012-8 .736-11.33c1.881-2.279 8.157-2.518 12.72-2.477 4.377.04 10.633-.486 12.029 1.876 1.7 2.877 1.361 12.153 1.361 12.153"}),(0,a.jsx)("path",{fill:"#fff",d:"M121.986 44.845c.054.118.113.252.17.322.402.947.615 2.403.792 3.823.369 2.948.447 5.803.447 5.803a3.11 3.11 0 002.991 3.218 3.108 3.108 0 003.218-2.991s.457-5.164.084-9.237c-.185-2.032-.703-3.804-1.307-4.946-.74-1.389-2.177-2.461-4.172-3.142-2.829-.965-7.506-.85-11.062-.984-3.218.045-7.206.218-10.191 1.041-2.495.688-4.435 1.802-5.488 3.191-1.265 1.715-1.989 4.062-2.014 6.551-.038 3.892 1.188 7.948 1.188 7.948a3.108 3.108 0 003.77 2.255 3.109 3.109 0 002.255-3.771s-.4-2.455-.254-5.032c.066-1.166.22-2.392.898-3.129.123-.137.385-.054.621-.128.863-.271 1.917-.359 3.028-.456 2.022-.175 4.225-.185 6.112-.137 2.012-.027 4.426-.173 6.564-.115.706.019 1.804-.155 2.35-.084zm0 0l.017.002.095.188.058.132c.043.061.087.077.124.008.108-.2-.019-.293-.277-.328a2.7 2.7 0 00-.106-.178l.089.176z"}),(0,a.jsx)("path",{fill:"#2b3465",d:"M63.171 54.181s-26.273.099-28.281 19.337c-1.735 16.626-8.46 61.154 8.944 62.846 17.403 1.692 51.968-.242 64.779 0 12.811.242 35.29-2.659 36.015-14.503.725-11.844 1.523-52.933 0-56.561-2.692-6.413-6.284-10.394-20.062-10.394-13.778 0-61.395-.725-61.395-.725z"}),(0,a.jsx)("path",{fill:"#fff",d:"M63.236 49.879l-.081-.001s-14.336.143-23.796 7.513c-4.496 3.502-7.978 8.514-8.721 15.684-1.121 10.819-4.225 33.19-1.811 48.484 1.715 10.868 6.549 18.238 14.597 19.017 5.373.52 12.348.707 19.827.713 16.871.014 36.361-.884 45.282-.719 8.918.17 22.188-1.191 30.618-5.567 5.71-2.964 9.343-7.301 9.688-12.884.453-7.353.941-25.902.889-39.901-.036-9.482-.547-17.034-1.186-18.56-1.708-4.075-3.813-7.291-7.562-9.579-3.424-2.089-8.421-3.425-16.414-3.429l-61.33-.771zm77.402 16.884c.04.305.244 1.89.326 3.269.248 4.175.321 10.721.29 17.846-.056 12.786-.453 27.424-.836 33.725-.23 3.774-4.038 5.762-8.471 7.354-7.21 2.588-16.617 3.325-23.255 3.201-8.951-.173-28.505.709-45.431.682-7.173-.012-13.864-.185-19.018-.688-2.268-.222-3.71-1.829-4.797-4.029-1.786-3.612-2.572-8.651-2.886-14.219-.787-13.954 1.645-31.027 2.582-39.942.608-5.782 4.092-9.298 8.063-11.494 6.861-3.795 15.184-3.975 15.928-3.983h.028l61.405.678c4.666-.003 7.998.447 10.453 1.417 3.127 1.235 4.452 3.441 5.619 6.183z"}),(0,a.jsx)("path",{fill:"#ffcd55",d:"M123.858 69.357s-10.744-.909-10.881 4.24c-.099 3.711-1.075 6.139 1.017 7.447 3.442 2.154 11.407 2.155 16.888 1.017.987-.205.882-7.855.231-10.531-.5-2.056-4.433-2.27-7.255-2.173z"}),(0,a.jsx)("path",{fill:"#fff",d:"M123.894 67.143c-.989-.08-6.661-.452-10.031 1.233-2.069 1.034-3.366 2.746-3.498 5.151-.127 2.56-.56 4.557-.335 6.051.24 1.588.974 2.834 2.498 3.809 1.816 1.143 4.666 1.894 7.875 2.113 3.636.247 7.744-.131 11.015-.858.738-.168 2.103-.93 2.489-2.96.459-2.412.175-8.345-.459-10.72-.391-1.449-1.47-2.595-3.185-3.205-1.758-.626-4.301-.726-6.369-.614zm4.919 5.138c.333 1.729.394 5.3.128 7.426-2.057.292-4.357.404-6.552.338-2.781-.083-5.404-.389-6.929-1.344l.129-5.034c-.004-1.093 1.277-1.287 2.4-1.572 2.654-.675 5.682-.537 5.682-.537.087.007.175.009.263.006 1.194-.013 2.613.041 3.809.305.375.082.864.31 1.07.412z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M78.637 71.045s-21.444-4.467-27.029 16.53c-5.584 20.998 7.148 32.614 23.902 31.497 16.753-1.117 30.055-13.238 22.114-33.954-5.137-13.403-18.987-14.073-18.987-14.073z"}),(0,a.jsx)("path",{fill:"#fff",d:"M79.042 67.956c-1.568-.314-10.918-1.915-19.259 2.577-4.991 2.687-9.608 7.526-12.085 16.002-3.186 11.306-1.446 20.313 3.057 26.563 5.259 7.3 14.466 11.035 25.043 10.305 10.192-.821 19.179-5.261 24.04-12.675 4.344-6.625 5.652-15.697 1.141-26.896-2.145-5.296-5.417-8.854-8.832-11.214-5.744-3.971-11.804-4.576-13.105-4.662zm-1.039 6.131c.16.033.321.053.484.061 0 0 5.064.413 9.734 3.918 2.396 1.798 4.646 4.461 6.049 8.338 3.047 8.369 2.292 15.044-1.061 19.831-3.724 5.316-10.512 8.111-17.988 8.506-7.29.469-13.677-1.843-17.363-6.828-3.329-4.503-4.413-11.013-2.34-19.298 1.458-6.074 4.44-9.72 7.863-11.806 6.709-4.089 14.622-2.722 14.622-2.722z"}),(0,a.jsx)("path",{fill:"#fff",d:"M80.736 80.841s-2.04-.493-4.947-.415a17.035 17.035 0 00-5.045.914c-2.154.736-4.312 2.035-6 4.072-1.084 1.307-1.948 2.949-2.461 4.898a16.483 16.483 0 00-.556 4.8c.065 2.014.386 4.182 1.109 6.687a1.308 1.308 0 001.452 1.143 1.308 1.308 0 001.142-1.451c.112-2.761.635-4.948 1.256-6.873.281-.868.649-1.612.99-2.333.546-1.154 1.244-2.058 1.93-2.887.64-.774 1.267-1.477 1.979-2.047.847-.678 1.669-1.286 2.542-1.742 3.311-1.731 6.403-2.162 6.403-2.162a1.307 1.307 0 00.206-2.604z"})]})]})]})}))}}}]); -//# sourceMappingURL=7871.c0357ad8.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[7871],{7871:function(l,s,c){c.r(s);var i=c(1413),f=(c(2791),c(9259)),a=c(184);s.default=function(l){return(0,a.jsx)(f.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,a.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,a.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,a.jsx)("clipPath",{id:"_clip1",children:(0,a.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,a.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,a.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{fill:"#c1365b",d:"M99.654 54.684s-2.012-8 .736-11.33c1.881-2.279 8.157-2.518 12.72-2.477 4.377.04 10.633-.486 12.029 1.876 1.7 2.877 1.361 12.153 1.361 12.153"}),(0,a.jsx)("path",{fill:"#fff",d:"M121.986 44.845c.054.118.113.252.17.322.402.947.615 2.403.792 3.823.369 2.948.447 5.803.447 5.803a3.11 3.11 0 002.991 3.218 3.108 3.108 0 003.218-2.991s.457-5.164.084-9.237c-.185-2.032-.703-3.804-1.307-4.946-.74-1.389-2.177-2.461-4.172-3.142-2.829-.965-7.506-.85-11.062-.984-3.218.045-7.206.218-10.191 1.041-2.495.688-4.435 1.802-5.488 3.191-1.265 1.715-1.989 4.062-2.014 6.551-.038 3.892 1.188 7.948 1.188 7.948a3.108 3.108 0 003.77 2.255 3.109 3.109 0 002.255-3.771s-.4-2.455-.254-5.032c.066-1.166.22-2.392.898-3.129.123-.137.385-.054.621-.128.863-.271 1.917-.359 3.028-.456 2.022-.175 4.225-.185 6.112-.137 2.012-.027 4.426-.173 6.564-.115.706.019 1.804-.155 2.35-.084zm0 0l.017.002.095.188.058.132c.043.061.087.077.124.008.108-.2-.019-.293-.277-.328a2.7 2.7 0 00-.106-.178l.089.176z"}),(0,a.jsx)("path",{fill:"#2b3465",d:"M63.171 54.181s-26.273.099-28.281 19.337c-1.735 16.626-8.46 61.154 8.944 62.846 17.403 1.692 51.968-.242 64.779 0 12.811.242 35.29-2.659 36.015-14.503.725-11.844 1.523-52.933 0-56.561-2.692-6.413-6.284-10.394-20.062-10.394-13.778 0-61.395-.725-61.395-.725z"}),(0,a.jsx)("path",{fill:"#fff",d:"M63.236 49.879l-.081-.001s-14.336.143-23.796 7.513c-4.496 3.502-7.978 8.514-8.721 15.684-1.121 10.819-4.225 33.19-1.811 48.484 1.715 10.868 6.549 18.238 14.597 19.017 5.373.52 12.348.707 19.827.713 16.871.014 36.361-.884 45.282-.719 8.918.17 22.188-1.191 30.618-5.567 5.71-2.964 9.343-7.301 9.688-12.884.453-7.353.941-25.902.889-39.901-.036-9.482-.547-17.034-1.186-18.56-1.708-4.075-3.813-7.291-7.562-9.579-3.424-2.089-8.421-3.425-16.414-3.429l-61.33-.771zm77.402 16.884c.04.305.244 1.89.326 3.269.248 4.175.321 10.721.29 17.846-.056 12.786-.453 27.424-.836 33.725-.23 3.774-4.038 5.762-8.471 7.354-7.21 2.588-16.617 3.325-23.255 3.201-8.951-.173-28.505.709-45.431.682-7.173-.012-13.864-.185-19.018-.688-2.268-.222-3.71-1.829-4.797-4.029-1.786-3.612-2.572-8.651-2.886-14.219-.787-13.954 1.645-31.027 2.582-39.942.608-5.782 4.092-9.298 8.063-11.494 6.861-3.795 15.184-3.975 15.928-3.983h.028l61.405.678c4.666-.003 7.998.447 10.453 1.417 3.127 1.235 4.452 3.441 5.619 6.183z"}),(0,a.jsx)("path",{fill:"#ffcd55",d:"M123.858 69.357s-10.744-.909-10.881 4.24c-.099 3.711-1.075 6.139 1.017 7.447 3.442 2.154 11.407 2.155 16.888 1.017.987-.205.882-7.855.231-10.531-.5-2.056-4.433-2.27-7.255-2.173z"}),(0,a.jsx)("path",{fill:"#fff",d:"M123.894 67.143c-.989-.08-6.661-.452-10.031 1.233-2.069 1.034-3.366 2.746-3.498 5.151-.127 2.56-.56 4.557-.335 6.051.24 1.588.974 2.834 2.498 3.809 1.816 1.143 4.666 1.894 7.875 2.113 3.636.247 7.744-.131 11.015-.858.738-.168 2.103-.93 2.489-2.96.459-2.412.175-8.345-.459-10.72-.391-1.449-1.47-2.595-3.185-3.205-1.758-.626-4.301-.726-6.369-.614zm4.919 5.138c.333 1.729.394 5.3.128 7.426-2.057.292-4.357.404-6.552.338-2.781-.083-5.404-.389-6.929-1.344l.129-5.034c-.004-1.093 1.277-1.287 2.4-1.572 2.654-.675 5.682-.537 5.682-.537.087.007.175.009.263.006 1.194-.013 2.613.041 3.809.305.375.082.864.31 1.07.412z"}),(0,a.jsx)("path",{fill:"#00dea7",d:"M78.637 71.045s-21.444-4.467-27.029 16.53c-5.584 20.998 7.148 32.614 23.902 31.497 16.753-1.117 30.055-13.238 22.114-33.954-5.137-13.403-18.987-14.073-18.987-14.073z"}),(0,a.jsx)("path",{fill:"#fff",d:"M79.042 67.956c-1.568-.314-10.918-1.915-19.259 2.577-4.991 2.687-9.608 7.526-12.085 16.002-3.186 11.306-1.446 20.313 3.057 26.563 5.259 7.3 14.466 11.035 25.043 10.305 10.192-.821 19.179-5.261 24.04-12.675 4.344-6.625 5.652-15.697 1.141-26.896-2.145-5.296-5.417-8.854-8.832-11.214-5.744-3.971-11.804-4.576-13.105-4.662zm-1.039 6.131c.16.033.321.053.484.061 0 0 5.064.413 9.734 3.918 2.396 1.798 4.646 4.461 6.049 8.338 3.047 8.369 2.292 15.044-1.061 19.831-3.724 5.316-10.512 8.111-17.988 8.506-7.29.469-13.677-1.843-17.363-6.828-3.329-4.503-4.413-11.013-2.34-19.298 1.458-6.074 4.44-9.72 7.863-11.806 6.709-4.089 14.622-2.722 14.622-2.722z"}),(0,a.jsx)("path",{fill:"#fff",d:"M80.736 80.841s-2.04-.493-4.947-.415a17.035 17.035 0 00-5.045.914c-2.154.736-4.312 2.035-6 4.072-1.084 1.307-1.948 2.949-2.461 4.898a16.483 16.483 0 00-.556 4.8c.065 2.014.386 4.182 1.109 6.687a1.308 1.308 0 001.452 1.143 1.308 1.308 0 001.142-1.451c.112-2.761.635-4.948 1.256-6.873.281-.868.649-1.612.99-2.333.546-1.154 1.244-2.058 1.93-2.887.64-.774 1.267-1.477 1.979-2.047.847-.678 1.669-1.286 2.542-1.742 3.311-1.731 6.403-2.162 6.403-2.162a1.307 1.307 0 00.206-2.604z"})]})]})]})}))}}}]); +//# sourceMappingURL=7871.885b2520.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.c0357ad8.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.885b2520.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.c0357ad8.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.885b2520.chunk.js.map index ab4923bdd..2dfc551cc 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.c0357ad8.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/7871.885b2520.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/7871.c0357ad8.chunk.js","mappings":"4JAoEA,UAjEsB,SAACA,GACrB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,kJAEJ,iBACED,KAAK,OACLC,EAAE,wxBAEJ,iBACED,KAAK,UACLC,EAAE,sQAEJ,iBACED,KAAK,OACLC,EAAE,k9BAEJ,iBACED,KAAK,UACLC,EAAE,uLAEJ,iBACED,KAAK,OACLC,EAAE,smBAEJ,iBACED,KAAK,UACLC,EAAE,2KAEJ,iBACED,KAAK,OACLC,EAAE,soBAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/CAMERA.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst CameraAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default CameraAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7871.885b2520.chunk.js","mappings":"4JAoEA,UAjEsB,SAACA,GACrB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,kJAEJ,iBACED,KAAK,OACLC,EAAE,wxBAEJ,iBACED,KAAK,UACLC,EAAE,sQAEJ,iBACED,KAAK,OACLC,EAAE,k9BAEJ,iBACED,KAAK,UACLC,EAAE,uLAEJ,iBACED,KAAK,OACLC,EAAE,smBAEJ,iBACED,KAAK,UACLC,EAAE,2KAEJ,iBACED,KAAK,OACLC,EAAE,soBAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/CAMERA.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst CameraAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default CameraAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.52bc07dd.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.a10870ef.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.52bc07dd.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.a10870ef.chunk.js index 0c6f3ac4f..6ef0d6b17 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.52bc07dd.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.a10870ef.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[8037],{8037:function(l,c,a){a.r(c);var e=a(8489),n=(a(2791),a(9259)),i=a(184);c.default=function(l){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},l),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsxs)("g",{fill:l.htmlColor||"#000",children:[(0,i.jsx)("path",{d:"M67.522 3.067c-3.039-1.311-6.655-1.54-10.928-1.63-13.581.261-19.547 7.157-23.025 16.968-2.266 6.393-4.217 13.717-3.856 20.576l.019.333-12.093-.008a3.58 3.58 0 00-3.627 3.232l-9.329 81.467a4.982 4.982 0 004.958 5.462s28.788.448 53.721.623c19.032.135 35.814.09 35.814.09a5.692 5.692 0 005.251-3.493l16.399-.228a5.697 5.697 0 005.523-6.512s-2.079-13.828-4.659-29.477c-3.382-20.508-7.579-44.129-7.579-44.129a4.13 4.13 0 00-3.798-3.528l-5.542-.21c.726-3.636 1.606-9.661 1.147-15.963-.339-4.654-2.039-9.581-4.303-13.733C98.023 6.319 92.289 2.005 81.454.963c-5.572-.255-10.281.208-13.932 2.104zM30.479 46.928l-11.411-.885-4.027 73.383c9.506-.137 29.959-.414 48.321-.543 11-.078 21.248-.096 27.94-.097l-.106-11.302c-.225-1.768-.648-31.178-.915-37.153-.373-8.319.432-17.534.159-22.334l-10.98.687a110.854 110.854 0 01-1.633 6.321 6.758 6.758 0 011.903 4.709 6.783 6.783 0 01-6.78 6.78 6.783 6.783 0 01-6.78-6.78 6.786 6.786 0 014.368-6.338c.264-1.333.57-3.031.854-4.981l-10.875-.39a3.566 3.566 0 01-1.401.517 3.565 3.565 0 01-2.634-.662l-17.775-.637c.121 2.179.302 4.121.48 5.695a6.787 6.787 0 014.383 6.344 6.783 6.783 0 01-6.78 6.78 6.783 6.783 0 01-6.78-6.78c0-1.783.689-3.405 1.816-4.616a108.03 108.03 0 01-1.347-7.718zm67.066 2.874c.419 4.919 1.023 12.305 1.548 19.835.425 6.076.787 12.243.987 17.294.156 4.193.708 9.386 1.356 14.518a459.462 459.462 0 002.021 14.079l10.748-.29a2377.593 2377.593 0 01-3.024-23.247c-2.006-16.087-4.073-34.13-4.886-41.292l-8.75-.897zm-.3-7.484c.389-4.031.784-12.91-2.137-20.393-2.09-5.357-6.308-9.764-14.621-10.085a19.505 19.505 0 00-3.114-.049c1.261 2.127 2.216 4.485 2.909 7.002 1.42 5.152 1.691 10.994 1.255 16.628a80.12 80.12 0 01-.405 3.925l11.107.007a4.895 4.895 0 014.399 2.942l.607.023zM67.767 16.954c-.096.131-.191.265-.283.4-4.481 6.576-5.384 16.143-5.473 21.98l10.267.006c.266-5.801-.081-12.158-1.912-17.499-.622-1.817-1.468-3.479-2.599-4.887zm-9.488-4.584a20.678 20.678 0 00-1.685-.032c-7.976-.153-12.326 4.042-14.713 9.669-2.231 5.259-3.082 11.531-3.275 17.312l15.622.01c-.265-2.89-.438-6.553-.214-10.441.321-5.585 1.561-11.558 4.265-16.518z"}),(0,i.jsx)("path",{fillRule:"nonzero",d:"M50.489 96.651c.764-.136 1.225-.521 1.465-1.028.27-.57.231-1.243-.364-1.964a4.108 4.108 0 00-1.736-1.271 427.445 427.445 0 00-.623-4.058 366.046 366.046 0 01-.704-4.622l-.003-.018c-.147-.91-.359-2.29-.638-4.14-.28-1.852-.493-3.25-.64-4.193-.095-.685-.452-1.282-1.115-1.762a4.836 4.836 0 00-1.613-.767c-.367-.17-.911-.256-1.64-.157-.683.092-1.099.391-1.328.738-.191.29-.285.646-.223 1.078l.334 2.258c-.637.134-1.034.507-1.237.98l-.008.018a6973.574 6973.574 0 01-6.547 16.135l-.214.029a5.703 5.703 0 01-.605.058c-.042 0-.084.003-.127.008-.845.113-1.348.513-1.602 1.049-.267.565-.236 1.223.299 1.937.192.256.429.492.713.704a170.133 170.133 0 00-1.456 3.665c-.281.689-.166 1.402.523 2.091.439.44.933.77 1.48.994.281.137.6.252.953.341.405.101.84.125 1.306.064.756-.098 1.203-.486 1.412-1.068.289-.665.716-1.688 1.274-3.053.432-1.059.778-1.921 1.036-2.587.794-.092 1.85-.225 3.168-.4 1.123-.149 2.053-.268 2.791-.356l.393 2.636c.236 1.579.97 5.949.97 5.949.133.665.496 1.241 1.116 1.706a4.599 4.599 0 001.61.778c.361.168.911.254 1.653.157.713-.094 1.131-.41 1.349-.764.183-.297.265-.661.174-1.102l.368 2.418c-1.116-7.389-1.448-9.153-1.964-12.481zm14.784-18.17l.141.061c.161.046.3.091.417.137.086.048.187.097.306.143l.219.121c.538.334.952.628 1.237.887l.035.031c.428.352.803.78 1.13 1.283a.852.852 0 00.034.049c.662.891 1.059 1.856 1.187 2.899.13 1.066.056 2.067-.23 3.003-.303.989-.779 2.011-1.425 3.069a21.516 21.516 0 01-2.049 2.854 37.983 37.983 0 01-2.366 2.495 50.344 50.344 0 01-1.594 1.463 881.932 881.932 0 001.581-14.716c.05-.443-.16-1.104-.918-1.812l-.03-.027a4.55 4.55 0 00-1.771-.932c-.449-.188-.997-.251-1.634-.148-.946.152-1.449.687-1.571 1.541l-.005.041a784.496 784.496 0 01-2.211 19.759c-.078.017-.157.032-.235.047-.845.12-1.335.508-1.585 1.008-.273.546-.257 1.204.289 1.933l.007.009c.377.49.915.915 1.631 1.254.776.367 1.476.46 2.09.34 3.388-.558 6.765-2.375 10.1-5.493 3.512-3.238 5.816-6.244 6.946-8.993.738-1.797 1.017-3.634.841-5.51-.177-1.885-.827-3.635-1.954-5.246a13.942 13.942 0 00-2.534-2.773 15.146 15.146 0 00-3.206-2.073 16.995 16.995 0 00-3.527-1.239c-4.464-1.076-9.192-.48-14.179 1.829a2.444 2.444 0 00-.673.458.65.65 0 00-.066.073c-.661.813-.581 1.965 1.095 3.083a.067.067 0 01.011.007c1.36.88 2.488 1.01 3.329.65l.017-.008c3.521-1.592 6.631-2.259 9.342-1.951l.012.001a8.835 8.835 0 011.766.393zM40.924 92.968a1363.855 1363.855 0 002.347-5.779c.069.46.143.952.22 1.476.238 1.601.437 2.908.595 3.923l-3.162.38z"})]})]})}))}}}]); -//# sourceMappingURL=8037.52bc07dd.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[8037],{8037:function(l,c,a){a.r(c);var e=a(1413),n=(a(2791),a(9259)),i=a(184);c.default=function(l){return(0,i.jsx)(n.Z,(0,e.Z)((0,e.Z)({},l),{},{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,i.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,i.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,i.jsxs)("g",{fill:l.htmlColor||"#000",children:[(0,i.jsx)("path",{d:"M67.522 3.067c-3.039-1.311-6.655-1.54-10.928-1.63-13.581.261-19.547 7.157-23.025 16.968-2.266 6.393-4.217 13.717-3.856 20.576l.019.333-12.093-.008a3.58 3.58 0 00-3.627 3.232l-9.329 81.467a4.982 4.982 0 004.958 5.462s28.788.448 53.721.623c19.032.135 35.814.09 35.814.09a5.692 5.692 0 005.251-3.493l16.399-.228a5.697 5.697 0 005.523-6.512s-2.079-13.828-4.659-29.477c-3.382-20.508-7.579-44.129-7.579-44.129a4.13 4.13 0 00-3.798-3.528l-5.542-.21c.726-3.636 1.606-9.661 1.147-15.963-.339-4.654-2.039-9.581-4.303-13.733C98.023 6.319 92.289 2.005 81.454.963c-5.572-.255-10.281.208-13.932 2.104zM30.479 46.928l-11.411-.885-4.027 73.383c9.506-.137 29.959-.414 48.321-.543 11-.078 21.248-.096 27.94-.097l-.106-11.302c-.225-1.768-.648-31.178-.915-37.153-.373-8.319.432-17.534.159-22.334l-10.98.687a110.854 110.854 0 01-1.633 6.321 6.758 6.758 0 011.903 4.709 6.783 6.783 0 01-6.78 6.78 6.783 6.783 0 01-6.78-6.78 6.786 6.786 0 014.368-6.338c.264-1.333.57-3.031.854-4.981l-10.875-.39a3.566 3.566 0 01-1.401.517 3.565 3.565 0 01-2.634-.662l-17.775-.637c.121 2.179.302 4.121.48 5.695a6.787 6.787 0 014.383 6.344 6.783 6.783 0 01-6.78 6.78 6.783 6.783 0 01-6.78-6.78c0-1.783.689-3.405 1.816-4.616a108.03 108.03 0 01-1.347-7.718zm67.066 2.874c.419 4.919 1.023 12.305 1.548 19.835.425 6.076.787 12.243.987 17.294.156 4.193.708 9.386 1.356 14.518a459.462 459.462 0 002.021 14.079l10.748-.29a2377.593 2377.593 0 01-3.024-23.247c-2.006-16.087-4.073-34.13-4.886-41.292l-8.75-.897zm-.3-7.484c.389-4.031.784-12.91-2.137-20.393-2.09-5.357-6.308-9.764-14.621-10.085a19.505 19.505 0 00-3.114-.049c1.261 2.127 2.216 4.485 2.909 7.002 1.42 5.152 1.691 10.994 1.255 16.628a80.12 80.12 0 01-.405 3.925l11.107.007a4.895 4.895 0 014.399 2.942l.607.023zM67.767 16.954c-.096.131-.191.265-.283.4-4.481 6.576-5.384 16.143-5.473 21.98l10.267.006c.266-5.801-.081-12.158-1.912-17.499-.622-1.817-1.468-3.479-2.599-4.887zm-9.488-4.584a20.678 20.678 0 00-1.685-.032c-7.976-.153-12.326 4.042-14.713 9.669-2.231 5.259-3.082 11.531-3.275 17.312l15.622.01c-.265-2.89-.438-6.553-.214-10.441.321-5.585 1.561-11.558 4.265-16.518z"}),(0,i.jsx)("path",{fillRule:"nonzero",d:"M50.489 96.651c.764-.136 1.225-.521 1.465-1.028.27-.57.231-1.243-.364-1.964a4.108 4.108 0 00-1.736-1.271 427.445 427.445 0 00-.623-4.058 366.046 366.046 0 01-.704-4.622l-.003-.018c-.147-.91-.359-2.29-.638-4.14-.28-1.852-.493-3.25-.64-4.193-.095-.685-.452-1.282-1.115-1.762a4.836 4.836 0 00-1.613-.767c-.367-.17-.911-.256-1.64-.157-.683.092-1.099.391-1.328.738-.191.29-.285.646-.223 1.078l.334 2.258c-.637.134-1.034.507-1.237.98l-.008.018a6973.574 6973.574 0 01-6.547 16.135l-.214.029a5.703 5.703 0 01-.605.058c-.042 0-.084.003-.127.008-.845.113-1.348.513-1.602 1.049-.267.565-.236 1.223.299 1.937.192.256.429.492.713.704a170.133 170.133 0 00-1.456 3.665c-.281.689-.166 1.402.523 2.091.439.44.933.77 1.48.994.281.137.6.252.953.341.405.101.84.125 1.306.064.756-.098 1.203-.486 1.412-1.068.289-.665.716-1.688 1.274-3.053.432-1.059.778-1.921 1.036-2.587.794-.092 1.85-.225 3.168-.4 1.123-.149 2.053-.268 2.791-.356l.393 2.636c.236 1.579.97 5.949.97 5.949.133.665.496 1.241 1.116 1.706a4.599 4.599 0 001.61.778c.361.168.911.254 1.653.157.713-.094 1.131-.41 1.349-.764.183-.297.265-.661.174-1.102l.368 2.418c-1.116-7.389-1.448-9.153-1.964-12.481zm14.784-18.17l.141.061c.161.046.3.091.417.137.086.048.187.097.306.143l.219.121c.538.334.952.628 1.237.887l.035.031c.428.352.803.78 1.13 1.283a.852.852 0 00.034.049c.662.891 1.059 1.856 1.187 2.899.13 1.066.056 2.067-.23 3.003-.303.989-.779 2.011-1.425 3.069a21.516 21.516 0 01-2.049 2.854 37.983 37.983 0 01-2.366 2.495 50.344 50.344 0 01-1.594 1.463 881.932 881.932 0 001.581-14.716c.05-.443-.16-1.104-.918-1.812l-.03-.027a4.55 4.55 0 00-1.771-.932c-.449-.188-.997-.251-1.634-.148-.946.152-1.449.687-1.571 1.541l-.005.041a784.496 784.496 0 01-2.211 19.759c-.078.017-.157.032-.235.047-.845.12-1.335.508-1.585 1.008-.273.546-.257 1.204.289 1.933l.007.009c.377.49.915.915 1.631 1.254.776.367 1.476.46 2.09.34 3.388-.558 6.765-2.375 10.1-5.493 3.512-3.238 5.816-6.244 6.946-8.993.738-1.797 1.017-3.634.841-5.51-.177-1.885-.827-3.635-1.954-5.246a13.942 13.942 0 00-2.534-2.773 15.146 15.146 0 00-3.206-2.073 16.995 16.995 0 00-3.527-1.239c-4.464-1.076-9.192-.48-14.179 1.829a2.444 2.444 0 00-.673.458.65.65 0 00-.066.073c-.661.813-.581 1.965 1.095 3.083a.067.067 0 01.011.007c1.36.88 2.488 1.01 3.329.65l.017-.008c3.521-1.592 6.631-2.259 9.342-1.951l.012.001a8.835 8.835 0 011.766.393zM40.924 92.968a1363.855 1363.855 0 002.347-5.779c.069.46.143.952.22 1.476.238 1.601.437 2.908.595 3.923l-3.162.38z"})]})]})}))}}}]); +//# sourceMappingURL=8037.a10870ef.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.52bc07dd.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.a10870ef.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.52bc07dd.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.a10870ef.chunk.js.map index 827f45baa..fe2e354f5 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.52bc07dd.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8037.a10870ef.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8037.52bc07dd.chunk.js","mappings":"4JA4BA,UAzB2B,SAACA,GAC1B,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBAAMD,EAAE,siEACR,iBACEP,SAAS,UACTO,EAAE","sources":["os/apps/icons/npwd_icons/svg/SELLOUT.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MarketplaceAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default MarketplaceAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8037.a10870ef.chunk.js","mappings":"4JA4BA,UAzB2B,SAACA,GAC1B,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBAAMD,EAAE,siEACR,iBACEP,SAAS,UACTO,EAAE","sources":["os/apps/icons/npwd_icons/svg/SELLOUT.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MarketplaceAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default MarketplaceAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.766ee0ce.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.e96d1705.chunk.js similarity index 80% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.766ee0ce.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.e96d1705.chunk.js index 7b4197569..08fe0129e 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.766ee0ce.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.e96d1705.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[8535],{8535:function(c,n,u){u.r(n);u(2791);var e=u(567),s=u(184);n.default=function(){return(0,s.jsx)(e.Z,{fontSize:"small"})}},567:function(c,n,u){var e=u(4223),s=u(184);n.Z=(0,e.Z)([(0,s.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,s.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"1")],"CameraAlt")}}]); -//# sourceMappingURL=8535.766ee0ce.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[8535],{6527:function(c,n,u){u.r(n);u(2791);var e=u(567),s=u(184);n.default=function(){return(0,s.jsx)(e.Z,{fontSize:"small"})}},567:function(c,n,u){var e=u(4223),s=u(184);n.Z=(0,e.Z)([(0,s.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,s.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"1")],"CameraAlt")}}]); +//# sourceMappingURL=8535.e96d1705.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.766ee0ce.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.e96d1705.chunk.js.map similarity index 94% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.766ee0ce.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.e96d1705.chunk.js.map index 3c9c4e2a2..29ee42cb2 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.766ee0ce.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8535.e96d1705.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8535.766ee0ce.chunk.js","mappings":"+IAKA,UAFyB,kBAAM,SAAC,IAAD,CAAWA,SAAS,Y,2CCDnD,KAAeC,EAAAA,EAAAA,GAAc,EAAcC,EAAAA,EAAAA,KAAK,SAAU,CACxDC,GAAI,KACJC,GAAI,KACJC,EAAG,OACF,MAAmBH,EAAAA,EAAAA,KAAK,OAAQ,CACjCI,EAAG,6JACF,MAAO","sources":["os/apps/icons/material/svg/CAMERA.tsx","../node_modules/@mui/icons-material/esm/CameraAlt.js"],"sourcesContent":["import React from 'react';\nimport { CameraAlt } from '@mui/icons-material';\n\nconst Camera: React.FC = () => ;\n\nexport default Camera;\n","import createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"3.2\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z\"\n}, \"1\")], 'CameraAlt');"],"names":["fontSize","createSvgIcon","_jsx","cx","cy","r","d"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8535.e96d1705.chunk.js","mappings":"+IAKA,UAFyB,kBAAM,SAAC,IAAD,CAAWA,SAAS,Y,2CCDnD,KAAeC,EAAAA,EAAAA,GAAc,EAAcC,EAAAA,EAAAA,KAAK,SAAU,CACxDC,GAAI,KACJC,GAAI,KACJC,EAAG,OACF,MAAmBH,EAAAA,EAAAA,KAAK,OAAQ,CACjCI,EAAG,6JACF,MAAO","sources":["os/apps/icons/material/svg/CAMERA.tsx","../node_modules/@mui/icons-material/esm/CameraAlt.js"],"sourcesContent":["import React from 'react';\nimport { CameraAlt } from '@mui/icons-material';\n\nconst Camera: React.FC = () => ;\n\nexport default Camera;\n","import createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"3.2\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z\"\n}, \"1\")], 'CameraAlt');"],"names":["fontSize","createSvgIcon","_jsx","cx","cy","r","d"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.bb960f3c.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.ec6d0419.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.bb960f3c.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.ec6d0419.chunk.js index 25c2a508e..bc0930dee 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.bb960f3c.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.ec6d0419.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[8667],{8667:function(c,l,a){a.r(l);var i=a(8489),s=(a(2791),a(9259)),e=a(184);l.default=function(c){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},c),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#00dea7",d:"M86.698 43.182s-10.624.8-21.086 7.061c-7.568 4.528-14.932 13.822-18.698 18.616-18.623 23.701.282 60.382.282 60.382s21.162 18.905 38.374 20.033c17.212 1.129 35.834-2.821 44.017-12.979 8.182-10.158 22.008-41.76 2.257-66.026-19.751-24.265-45.146-27.087-45.146-27.087z"}),(0,e.jsx)("circle",{cx:"51.217",cy:"92.631",r:"18.129",fill:"#2b3465"}),(0,e.jsx)("circle",{cx:"126.271",cy:"93.195",r:"18.129",fill:"#2b3465"}),(0,e.jsx)("path",{fill:"#c1365b",d:"M95.445 120.212s6.208 20.315-8.182 15.519c0 0-5.643-20.316 8.182-15.519z"}),(0,e.jsx)("path",{fill:"#fff",d:"M55.21 52.585a10.91 10.91 0 01-2.086-1.955c-1.383-1.693-2.306-3.891-2.934-6.939-.109-.531-.459-5.525 4.372-6.47 1.599-.313 3.948-.126 7.346 1.197-.003-.78.009-1.663.057-2.416.081-1.254.294-2.5.716-3.516.437-1.051 1.101-1.878 1.986-2.397.592-.346 1.363-.479 2.278-.271.749.17 1.679.611 2.657 1.228 1.449.913 3.066 2.236 4.309 3.203.58-2.03 1.554-4.832 3.257-6.696 1.697-1.856 4.033-2.941 7.317-1.983 1.266.372 2.307 1.774 2.695 3.826.258 1.361.302 3.02.284 4.42 1.184-.822 2.648-1.864 4.144-2.661 2.238-1.194 4.563-1.802 6.389-1.181 1.358.462 2.05 1.495 2.172 2.95.112 1.352-.441 3.251-.969 4.916 1.498-.827 3.395-1.872 5.239-2.739 2.663-1.252 5.269-2.043 6.717-1.742 1.929.402 2.692 1.764 2.642 3.601-.026.919-.317 1.996-.691 3.019a16.635 16.635 0 011.81-.739c1.301-.428 2.46-.45 3.157-.094 1.288.658 1.782 1.642 1.829 2.747.032.742-.171 1.567-.51 2.366a4.27 4.27 0 011.187-.074c.852.084 1.556.462 1.989 1.248.783 1.421.272 3.198-1.212 4.836-1.174 1.295-2.915 2.544-4.513 3.45a331.24 331.24 0 013.43 2.507 12.222 12.222 0 012.285-.256 14.524 14.524 0 013.975.485c1.177.314 2.384.736 3.618 1.384 1.505.789 3.013 1.799 4.589 3.15a1.038 1.038 0 01-1.115 1.748c-2.402-1.111-4.553-1.607-6.535-1.887-.44-.062-.867-.1-1.283-.122 4.275 3.828 8.107 8.135 11.268 12.739 3.18 1.596 5.785 4.121 7.943 6.95 3.566 4.675 4.188 10.763 3.286 17.037-.389 2.151-2.659 11.628-3.388 14.443-3.997 14.741-14.118 26.606-26.857 33.743-12.969 7.267-28.741 9.2-43.666 4.834-14.276-4.755-26.578-14.308-33.861-26.525-2.73-4.58-4.811-9.486-6.114-14.577l-.016-.014c-2.099-1.999-3.784-4.34-4.897-6.981-2.47-5.861-3.18-12.625-.338-18.864 2.54-4.927 5.861-9.122 10.381-11.308a71.324 71.324 0 013.467-5.933c-.439.023-.883.059-1.333.115-1.673.206-3.361.49-5.111 1.151a1.037 1.037 0 01-1.004-1.814 21.248 21.248 0 014.654-2.701c1.161-.493 2.325-.824 3.498-1.079.898-.196 1.79-.32 2.673-.383 2.661-3.378 5.61-6.4 8.817-8.976zm59.067 6.434c-5.585-4.186-12.121-6.051-18.304-7.987-16.449-5.151-30.826-.214-40.982 11.975.2.077.397.156.59.236 4.697 1.944 7.567 4.531 7.567 4.531a1.036 1.036 0 01-1.143 1.73s-3.865-1.707-9.182-2.547a40.477 40.477 0 00-.746-.109 57.478 57.478 0 00-2.044 3.179c2.618.059 5.226.646 7.73 2.014 5.762.722 10.051 4.306 13.318 8.589 3.566 4.675 4.187 10.763 3.285 17.037-1.201 6.651-5.613 11.663-10.856 15.1-4.53 2.969-12.377 3.599-18.061 2.888 1.403 10.259 17.684 23.174 30.598 27.218 22.542 7.059 56.73-7.848 60.893-29.443l-2.293.643c-4.943 2.178-10.764 2.339-16.484.989-6.646-2.393-12.174-6.861-14.719-12.898-2.47-5.861-3.18-12.625-.338-18.864 2.949-5.72 6.95-10.453 12.658-12.203 3.26-.999 6.67-1.563 10.03-1.153a67.924 67.924 0 00-7.839-7.966c-1.032.421-1.983.882-2.835 1.411-3.213 1.992-5.133 4.35-5.133 4.35a1.037 1.037 0 01-1.796-1.035s1.381-3.319 4.543-6.374a16.07 16.07 0 011.543-1.311zm-24.543 57.545c-3.014-.099-5.174 1.653-6.635 4.415-1.401 2.648-1.853 6.455-1.584 10.617.215 2.187 1.522 4.158 3.369 5.417 1.741 1.186 3.988 1.653 6.154 1.194 1.714-.418 3.489-1.495 4.727-3.075 1.195-1.524 1.988-3.38 1.973-5.178-.164-5.575-1.009-9.17-2.523-11.112-1.401-1.798-3.166-2.638-5.481-2.278zm.209 3.182c1.241.028 1.893.83 2.282 2.21.495 1.756.433 4.284.012 7.742-.061.597-.52 1.107-.963 1.578-.422.45-.958.792-1.492.884-.533.108-1.063-.069-1.501-.344-.42-.263-.867-.562-.956-1.041-.671-3.064-.836-5.927-.142-8.071.488-1.509 1.249-2.709 2.759-2.958h.001zm-9-9.076c.042.055.173.229.247.334.184.26.383.518.606.735.213.207.459.366.728.49a12.271 12.271 0 005.157 1.119c2.333.008 4.717-.615 7.417-1.488.528-.173.894-.496 1.195-.887.115-.15.282-.431.381-.605.099.015.215.042.293.04.336-.008.673-.032.979-.091a2.94 2.94 0 00.958-.368 1.683 1.683 0 00.733-1.864s-.798-3.277-2.201-6.976c-.873-2.301-1.985-4.759-3.238-6.722-.857-1.343-1.794-2.462-2.75-3.213-1.091-.857-2.233-1.29-3.372-1.236-.944.049-1.854.379-2.694 1.013-1.154.871-2.234 2.331-3.125 4.144-2.787 5.666-4.126 14.762-4.126 14.762a1.113 1.113 0 001.096 1.306s.546-.178 1.191-.372c.174-.053.369-.131.525-.121zm15.667-.309c-.082-.008-.139.003-.127.067.006.032.057-.029.084-.042a.239.239 0 00.043-.025zm-50.503-2.368c-3.908-1.131-10.093-6.424-10.498-14.704-.467-9.578 7.003-14.278 7.609-14.715 3.677-2.651 8.515-3.599 13.17-2.141 7.843 2.456 13.827 10.236 11.267 19.539-2.162 7.857-9.978 15.367-21.548 12.021zm85.079-31.475c5.092 1.939 7.746 5.574 8.969 9.688.814 2.74 1.267 5.408.183 9.679-2.374 9.353-11.46 13.77-19.289 11.267-11.609-3.711-13.095-13.328-10.639-21.172 2.456-7.843 12.073-12.216 19.916-9.76.292.091.579.19.86.298zm-72.81 9.585a5.272 5.272 0 015.269 5.269 5.272 5.272 0 01-5.269 5.269 5.272 5.272 0 01-5.269-5.269 5.272 5.272 0 015.269-5.269zm73.088-1.16a5.272 5.272 0 015.269 5.269 5.272 5.272 0 01-5.269 5.269 5.272 5.272 0 01-5.269-5.269 5.272 5.272 0 015.269-5.269z"})]})]})]})}))}}}]); -//# sourceMappingURL=8667.bb960f3c.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[8667],{8667:function(c,l,a){a.r(l);var i=a(1413),s=(a(2791),a(9259)),e=a(184);l.default=function(c){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},c),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#00dea7",d:"M86.698 43.182s-10.624.8-21.086 7.061c-7.568 4.528-14.932 13.822-18.698 18.616-18.623 23.701.282 60.382.282 60.382s21.162 18.905 38.374 20.033c17.212 1.129 35.834-2.821 44.017-12.979 8.182-10.158 22.008-41.76 2.257-66.026-19.751-24.265-45.146-27.087-45.146-27.087z"}),(0,e.jsx)("circle",{cx:"51.217",cy:"92.631",r:"18.129",fill:"#2b3465"}),(0,e.jsx)("circle",{cx:"126.271",cy:"93.195",r:"18.129",fill:"#2b3465"}),(0,e.jsx)("path",{fill:"#c1365b",d:"M95.445 120.212s6.208 20.315-8.182 15.519c0 0-5.643-20.316 8.182-15.519z"}),(0,e.jsx)("path",{fill:"#fff",d:"M55.21 52.585a10.91 10.91 0 01-2.086-1.955c-1.383-1.693-2.306-3.891-2.934-6.939-.109-.531-.459-5.525 4.372-6.47 1.599-.313 3.948-.126 7.346 1.197-.003-.78.009-1.663.057-2.416.081-1.254.294-2.5.716-3.516.437-1.051 1.101-1.878 1.986-2.397.592-.346 1.363-.479 2.278-.271.749.17 1.679.611 2.657 1.228 1.449.913 3.066 2.236 4.309 3.203.58-2.03 1.554-4.832 3.257-6.696 1.697-1.856 4.033-2.941 7.317-1.983 1.266.372 2.307 1.774 2.695 3.826.258 1.361.302 3.02.284 4.42 1.184-.822 2.648-1.864 4.144-2.661 2.238-1.194 4.563-1.802 6.389-1.181 1.358.462 2.05 1.495 2.172 2.95.112 1.352-.441 3.251-.969 4.916 1.498-.827 3.395-1.872 5.239-2.739 2.663-1.252 5.269-2.043 6.717-1.742 1.929.402 2.692 1.764 2.642 3.601-.026.919-.317 1.996-.691 3.019a16.635 16.635 0 011.81-.739c1.301-.428 2.46-.45 3.157-.094 1.288.658 1.782 1.642 1.829 2.747.032.742-.171 1.567-.51 2.366a4.27 4.27 0 011.187-.074c.852.084 1.556.462 1.989 1.248.783 1.421.272 3.198-1.212 4.836-1.174 1.295-2.915 2.544-4.513 3.45a331.24 331.24 0 013.43 2.507 12.222 12.222 0 012.285-.256 14.524 14.524 0 013.975.485c1.177.314 2.384.736 3.618 1.384 1.505.789 3.013 1.799 4.589 3.15a1.038 1.038 0 01-1.115 1.748c-2.402-1.111-4.553-1.607-6.535-1.887-.44-.062-.867-.1-1.283-.122 4.275 3.828 8.107 8.135 11.268 12.739 3.18 1.596 5.785 4.121 7.943 6.95 3.566 4.675 4.188 10.763 3.286 17.037-.389 2.151-2.659 11.628-3.388 14.443-3.997 14.741-14.118 26.606-26.857 33.743-12.969 7.267-28.741 9.2-43.666 4.834-14.276-4.755-26.578-14.308-33.861-26.525-2.73-4.58-4.811-9.486-6.114-14.577l-.016-.014c-2.099-1.999-3.784-4.34-4.897-6.981-2.47-5.861-3.18-12.625-.338-18.864 2.54-4.927 5.861-9.122 10.381-11.308a71.324 71.324 0 013.467-5.933c-.439.023-.883.059-1.333.115-1.673.206-3.361.49-5.111 1.151a1.037 1.037 0 01-1.004-1.814 21.248 21.248 0 014.654-2.701c1.161-.493 2.325-.824 3.498-1.079.898-.196 1.79-.32 2.673-.383 2.661-3.378 5.61-6.4 8.817-8.976zm59.067 6.434c-5.585-4.186-12.121-6.051-18.304-7.987-16.449-5.151-30.826-.214-40.982 11.975.2.077.397.156.59.236 4.697 1.944 7.567 4.531 7.567 4.531a1.036 1.036 0 01-1.143 1.73s-3.865-1.707-9.182-2.547a40.477 40.477 0 00-.746-.109 57.478 57.478 0 00-2.044 3.179c2.618.059 5.226.646 7.73 2.014 5.762.722 10.051 4.306 13.318 8.589 3.566 4.675 4.187 10.763 3.285 17.037-1.201 6.651-5.613 11.663-10.856 15.1-4.53 2.969-12.377 3.599-18.061 2.888 1.403 10.259 17.684 23.174 30.598 27.218 22.542 7.059 56.73-7.848 60.893-29.443l-2.293.643c-4.943 2.178-10.764 2.339-16.484.989-6.646-2.393-12.174-6.861-14.719-12.898-2.47-5.861-3.18-12.625-.338-18.864 2.949-5.72 6.95-10.453 12.658-12.203 3.26-.999 6.67-1.563 10.03-1.153a67.924 67.924 0 00-7.839-7.966c-1.032.421-1.983.882-2.835 1.411-3.213 1.992-5.133 4.35-5.133 4.35a1.037 1.037 0 01-1.796-1.035s1.381-3.319 4.543-6.374a16.07 16.07 0 011.543-1.311zm-24.543 57.545c-3.014-.099-5.174 1.653-6.635 4.415-1.401 2.648-1.853 6.455-1.584 10.617.215 2.187 1.522 4.158 3.369 5.417 1.741 1.186 3.988 1.653 6.154 1.194 1.714-.418 3.489-1.495 4.727-3.075 1.195-1.524 1.988-3.38 1.973-5.178-.164-5.575-1.009-9.17-2.523-11.112-1.401-1.798-3.166-2.638-5.481-2.278zm.209 3.182c1.241.028 1.893.83 2.282 2.21.495 1.756.433 4.284.012 7.742-.061.597-.52 1.107-.963 1.578-.422.45-.958.792-1.492.884-.533.108-1.063-.069-1.501-.344-.42-.263-.867-.562-.956-1.041-.671-3.064-.836-5.927-.142-8.071.488-1.509 1.249-2.709 2.759-2.958h.001zm-9-9.076c.042.055.173.229.247.334.184.26.383.518.606.735.213.207.459.366.728.49a12.271 12.271 0 005.157 1.119c2.333.008 4.717-.615 7.417-1.488.528-.173.894-.496 1.195-.887.115-.15.282-.431.381-.605.099.015.215.042.293.04.336-.008.673-.032.979-.091a2.94 2.94 0 00.958-.368 1.683 1.683 0 00.733-1.864s-.798-3.277-2.201-6.976c-.873-2.301-1.985-4.759-3.238-6.722-.857-1.343-1.794-2.462-2.75-3.213-1.091-.857-2.233-1.29-3.372-1.236-.944.049-1.854.379-2.694 1.013-1.154.871-2.234 2.331-3.125 4.144-2.787 5.666-4.126 14.762-4.126 14.762a1.113 1.113 0 001.096 1.306s.546-.178 1.191-.372c.174-.053.369-.131.525-.121zm15.667-.309c-.082-.008-.139.003-.127.067.006.032.057-.029.084-.042a.239.239 0 00.043-.025zm-50.503-2.368c-3.908-1.131-10.093-6.424-10.498-14.704-.467-9.578 7.003-14.278 7.609-14.715 3.677-2.651 8.515-3.599 13.17-2.141 7.843 2.456 13.827 10.236 11.267 19.539-2.162 7.857-9.978 15.367-21.548 12.021zm85.079-31.475c5.092 1.939 7.746 5.574 8.969 9.688.814 2.74 1.267 5.408.183 9.679-2.374 9.353-11.46 13.77-19.289 11.267-11.609-3.711-13.095-13.328-10.639-21.172 2.456-7.843 12.073-12.216 19.916-9.76.292.091.579.19.86.298zm-72.81 9.585a5.272 5.272 0 015.269 5.269 5.272 5.272 0 01-5.269 5.269 5.272 5.272 0 01-5.269-5.269 5.272 5.272 0 015.269-5.269zm73.088-1.16a5.272 5.272 0 015.269 5.269 5.272 5.272 0 01-5.269 5.269 5.272 5.272 0 01-5.269-5.269 5.272 5.272 0 015.269-5.269z"})]})]})]})}))}}}]); +//# sourceMappingURL=8667.ec6d0419.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.bb960f3c.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.ec6d0419.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.bb960f3c.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.ec6d0419.chunk.js.map index f6d0f1f13..1130ddd7a 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.bb960f3c.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/8667.ec6d0419.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8667.bb960f3c.chunk.js","mappings":"4JA8CA,UA3CwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,8QAEJ,mBAAQE,GAAG,SAASC,GAAG,SAASC,EAAE,SAASL,KAAK,aAChD,mBAAQG,GAAG,UAAUC,GAAG,SAASC,EAAE,SAASL,KAAK,aACjD,iBACEA,KAAK,UACLC,EAAE,8EAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/CONTACTS.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst ContactsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default ContactsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath","cx","cy","r"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8667.ec6d0419.chunk.js","mappings":"4JA8CA,UA3CwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,8QAEJ,mBAAQE,GAAG,SAASC,GAAG,SAASC,EAAE,SAASL,KAAK,aAChD,mBAAQG,GAAG,UAAUC,GAAG,SAASC,EAAE,SAASL,KAAK,aACjD,iBACEA,KAAK,UACLC,EAAE,8EAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/CONTACTS.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst ContactsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default ContactsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath","cx","cy","r"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/872.5c594ced.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/872.3ebf4ebb.chunk.js similarity index 97% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/872.5c594ced.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/872.3ebf4ebb.chunk.js index 9bdb4bf9e..98d166061 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/872.5c594ced.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/872.3ebf4ebb.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[872],{872:function(l,c,a){a.r(c);var s=a(8489),i=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(i.Z,(0,s.Z)((0,s.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#ffcd55",d:"M56.795 46.197l-6.799 6.189-.393 86.565 73.099-2.266 3.665-7.063-68.308 1.483-1.264-84.908z"}),(0,e.jsx)("path",{fill:"#ffcd55",d:"M56.327 45.991l69.109.569 1.434 72.877 2.11 8.549-9.871 1.816-62.477 1.711-.305-85.522z"}),(0,e.jsx)("path",{fill:"#fff",d:"M89.088 43.132l-3.833.001c-.325-2.013-.94-3.71-1.677-4.779-.879-1.276-1.953-1.969-3.149-2.015-2.771-.055-4.402.831-5.344 2.066-.629.824-1.025 1.741-1.167 2.633a9.186 9.186 0 00-.078 2.101l-3.165.001c-.299-1.924-.851-3.549-1.52-4.603-.875-1.378-1.982-2.109-3.208-2.162-2.924-.07-4.653 1.008-5.632 2.508-.921 1.414-1.15 3.153-1.192 4.263l-2.773.001a2.843 2.843 0 00-2.861 2.666l-5.211 4.686a2.552 2.552 0 00-.834 1.875l-.817 86.563a2.976 2.976 0 003.069 2.989l73.1-2.178a3.065 3.065 0 002.625-1.651l3.184-6.165 1.065-.195a3.813 3.813 0 003.013-4.665l-2.023-8.146-1.779-72.434a3.446 3.446 0 00-3.416-3.378l-11.005.006c-.327-2.069-.94-3.818-1.671-4.926-.891-1.349-1.993-2.065-3.199-2.116-3.001-.07-4.68 1.058-5.574 2.594-.873 1.5-.955 3.36-.91 4.453l-2.581.001c-.314-2.064-.914-3.811-1.637-4.92-.885-1.358-1.989-2.079-3.202-2.131-2.973-.07-4.669 1.041-5.592 2.564-.919 1.517-1.032 3.404-1.006 4.493zm-35.633 9.536l-.907.836-1.564 80.783c-.04 2.054.906 3.165 2.616 3.072 12.809-.701 66.733-3.348 66.733-3.348l.368-.765s-1.293.089-1.488.094l-62.485 1.678a3.504 3.504 0 01-3.602-3.493l.329-78.857zm6.306 18.285l1.077 56.917 57.861-1.859 5.615-1.04-1.135-4.623a3.864 3.864 0 01-.11-.836l-.71-48.053c-4.622.099-12.155.243-20.552.332-3.515.036-7.181.073-10.847.038-6.28-.06-12.556-.244-18.076-.41-5.295-.16-9.891-.334-13.123-.466zm9.052 45.402s4.838.303 11.38.528c3.475.12 7.425.25 11.38.257 2.308.005 4.615-.063 6.827-.129 8.71-.262 15.932-.656 15.932-.656a2.3 2.3 0 002.3-2.299c0-1.269-1.031-2.3-2.3-2.3 0 0-7.222-.393-15.932-.655-2.212-.067-4.519-.134-6.827-.13-3.955.007-7.905.137-11.38.257-6.542.226-11.38.528-11.38.528a2.3 2.3 0 000 4.599zm.829-16.016s4.776.332 11.236.598c3.431.142 7.332.296 11.237.328 2.28.018 4.559-.035 6.745-.088 8.604-.208 15.739-.557 15.739-.557a2.3 2.3 0 002.314-2.285 2.3 2.3 0 00-2.285-2.314s-7.13-.438-15.731-.753c-2.185-.081-4.463-.162-6.743-.172-3.906-.018-7.808.088-11.241.187-6.463.185-11.243.457-11.243.457a2.3 2.3 0 00-.028 4.599zm-1.926-15.173s5.171.243 12.158.388c3.713.077 7.933.158 12.156.116 2.465-.024 4.928-.12 7.29-.214a831.959 831.959 0 0017.006-.852 2.3 2.3 0 00-.054-4.599s-7.718-.304-17.021-.458c-2.363-.039-4.828-.078-7.293-.046-4.222.056-8.439.235-12.149.398-6.982.306-12.146.668-12.146.668a2.3 2.3 0 00.053 4.599zm-8.049-19.155c3.24-.078 7.893-.175 13.265-.247 5.521-.073 11.8-.15 18.08-.104 3.666.026 7.331.125 10.845.221 8.325.228 15.8.496 20.429.674l-.245-16.607-7.261-.123a75.35 75.35 0 01-.358 5.398 3.261 3.261 0 11-3.548.388c-.1-1.523-.26-3.638-.489-5.861l-9.577-.162a75.999 75.999 0 01-.484 6.369 3.262 3.262 0 11-3.437.188 165.439 165.439 0 00-.502-6.632l-10.826-.183c-.078 2.74-.359 5.31-.559 6.86a3.26 3.26 0 11-3.341.114 159.7 159.7 0 00-.548-7.05l-10.163-.172c-.005.169-.01.338-.017.506a74.239 74.239 0 01-.507 6.102 3.262 3.262 0 01-1.874 5.929 3.259 3.259 0 01-1.678-6.056 155.41 155.41 0 00-.441-6.557l-7.088-.12.324 17.125zm6.041-22.868c-.14-.86-.292-1.612-.555-2.172-.022-.048-.034-.126-.046-.188a.19.19 0 01-.074-.026c-.775-.07-1.329.067-1.689.464-.53.584-.816 1.335-.968 1.923l3.332-.001zm14.573-.007c-.157-.89-.314-1.67-.601-2.236-.022-.044-.033-.118-.046-.176-.05-.007-.082-.021-.076-.045-.762-.101-1.298-.055-1.649.274-.744.697-.912 1.776-.95 2.184l3.322-.001zm15.271-.007c-.166-.975-.332-1.829-.631-2.448-.025-.051-.038-.136-.053-.202-.044-.007-.076-.017-.087-.034-.742-.072-1.262.043-1.589.428-.599.704-.835 1.651-.927 2.257l3.287-.001zm13.932-.007c-.173-.969-.344-1.818-.645-2.433-.026-.053-.041-.142-.057-.209-.048-.007-.082-.018-.09-.037-.726-.075-1.232.029-1.543.408-.584.71-.794 1.67-.869 2.272l3.204-.001zm-44.381-2.358c-.014-.061-.029-.102-.061-.072-.032.029-.031.05-.009.065l.07.007.004.019c.114.023.31.023.406.038a5.656 5.656 0 00-.41-.057zm14.522-.076c-.011-.04-.024-.062-.048-.039-.012.011-.018.021-.019.03l.067.009.009.036c.102.017.279.009.365.023a8.918 8.918 0 00-.374-.059zm15.236-.234c-.014-.056-.031-.09-.062-.061-.023.022-.028.039-.018.052l.08.009.007.025c.111.02.295.017.386.031a5.71 5.71 0 00-.393-.056zm13.913-.003c-.014-.053-.032-.083-.062-.055-.021.019-.027.035-.02.047l.082.008.008.029c.109.018.288.014.376.027a6.994 6.994 0 00-.384-.056z"})]})]})]})}))}}}]); -//# sourceMappingURL=872.5c594ced.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[872],{872:function(l,c,a){a.r(c);var s=a(1413),i=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(i.Z,(0,s.Z)((0,s.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#ffcd55",d:"M56.795 46.197l-6.799 6.189-.393 86.565 73.099-2.266 3.665-7.063-68.308 1.483-1.264-84.908z"}),(0,e.jsx)("path",{fill:"#ffcd55",d:"M56.327 45.991l69.109.569 1.434 72.877 2.11 8.549-9.871 1.816-62.477 1.711-.305-85.522z"}),(0,e.jsx)("path",{fill:"#fff",d:"M89.088 43.132l-3.833.001c-.325-2.013-.94-3.71-1.677-4.779-.879-1.276-1.953-1.969-3.149-2.015-2.771-.055-4.402.831-5.344 2.066-.629.824-1.025 1.741-1.167 2.633a9.186 9.186 0 00-.078 2.101l-3.165.001c-.299-1.924-.851-3.549-1.52-4.603-.875-1.378-1.982-2.109-3.208-2.162-2.924-.07-4.653 1.008-5.632 2.508-.921 1.414-1.15 3.153-1.192 4.263l-2.773.001a2.843 2.843 0 00-2.861 2.666l-5.211 4.686a2.552 2.552 0 00-.834 1.875l-.817 86.563a2.976 2.976 0 003.069 2.989l73.1-2.178a3.065 3.065 0 002.625-1.651l3.184-6.165 1.065-.195a3.813 3.813 0 003.013-4.665l-2.023-8.146-1.779-72.434a3.446 3.446 0 00-3.416-3.378l-11.005.006c-.327-2.069-.94-3.818-1.671-4.926-.891-1.349-1.993-2.065-3.199-2.116-3.001-.07-4.68 1.058-5.574 2.594-.873 1.5-.955 3.36-.91 4.453l-2.581.001c-.314-2.064-.914-3.811-1.637-4.92-.885-1.358-1.989-2.079-3.202-2.131-2.973-.07-4.669 1.041-5.592 2.564-.919 1.517-1.032 3.404-1.006 4.493zm-35.633 9.536l-.907.836-1.564 80.783c-.04 2.054.906 3.165 2.616 3.072 12.809-.701 66.733-3.348 66.733-3.348l.368-.765s-1.293.089-1.488.094l-62.485 1.678a3.504 3.504 0 01-3.602-3.493l.329-78.857zm6.306 18.285l1.077 56.917 57.861-1.859 5.615-1.04-1.135-4.623a3.864 3.864 0 01-.11-.836l-.71-48.053c-4.622.099-12.155.243-20.552.332-3.515.036-7.181.073-10.847.038-6.28-.06-12.556-.244-18.076-.41-5.295-.16-9.891-.334-13.123-.466zm9.052 45.402s4.838.303 11.38.528c3.475.12 7.425.25 11.38.257 2.308.005 4.615-.063 6.827-.129 8.71-.262 15.932-.656 15.932-.656a2.3 2.3 0 002.3-2.299c0-1.269-1.031-2.3-2.3-2.3 0 0-7.222-.393-15.932-.655-2.212-.067-4.519-.134-6.827-.13-3.955.007-7.905.137-11.38.257-6.542.226-11.38.528-11.38.528a2.3 2.3 0 000 4.599zm.829-16.016s4.776.332 11.236.598c3.431.142 7.332.296 11.237.328 2.28.018 4.559-.035 6.745-.088 8.604-.208 15.739-.557 15.739-.557a2.3 2.3 0 002.314-2.285 2.3 2.3 0 00-2.285-2.314s-7.13-.438-15.731-.753c-2.185-.081-4.463-.162-6.743-.172-3.906-.018-7.808.088-11.241.187-6.463.185-11.243.457-11.243.457a2.3 2.3 0 00-.028 4.599zm-1.926-15.173s5.171.243 12.158.388c3.713.077 7.933.158 12.156.116 2.465-.024 4.928-.12 7.29-.214a831.959 831.959 0 0017.006-.852 2.3 2.3 0 00-.054-4.599s-7.718-.304-17.021-.458c-2.363-.039-4.828-.078-7.293-.046-4.222.056-8.439.235-12.149.398-6.982.306-12.146.668-12.146.668a2.3 2.3 0 00.053 4.599zm-8.049-19.155c3.24-.078 7.893-.175 13.265-.247 5.521-.073 11.8-.15 18.08-.104 3.666.026 7.331.125 10.845.221 8.325.228 15.8.496 20.429.674l-.245-16.607-7.261-.123a75.35 75.35 0 01-.358 5.398 3.261 3.261 0 11-3.548.388c-.1-1.523-.26-3.638-.489-5.861l-9.577-.162a75.999 75.999 0 01-.484 6.369 3.262 3.262 0 11-3.437.188 165.439 165.439 0 00-.502-6.632l-10.826-.183c-.078 2.74-.359 5.31-.559 6.86a3.26 3.26 0 11-3.341.114 159.7 159.7 0 00-.548-7.05l-10.163-.172c-.005.169-.01.338-.017.506a74.239 74.239 0 01-.507 6.102 3.262 3.262 0 01-1.874 5.929 3.259 3.259 0 01-1.678-6.056 155.41 155.41 0 00-.441-6.557l-7.088-.12.324 17.125zm6.041-22.868c-.14-.86-.292-1.612-.555-2.172-.022-.048-.034-.126-.046-.188a.19.19 0 01-.074-.026c-.775-.07-1.329.067-1.689.464-.53.584-.816 1.335-.968 1.923l3.332-.001zm14.573-.007c-.157-.89-.314-1.67-.601-2.236-.022-.044-.033-.118-.046-.176-.05-.007-.082-.021-.076-.045-.762-.101-1.298-.055-1.649.274-.744.697-.912 1.776-.95 2.184l3.322-.001zm15.271-.007c-.166-.975-.332-1.829-.631-2.448-.025-.051-.038-.136-.053-.202-.044-.007-.076-.017-.087-.034-.742-.072-1.262.043-1.589.428-.599.704-.835 1.651-.927 2.257l3.287-.001zm13.932-.007c-.173-.969-.344-1.818-.645-2.433-.026-.053-.041-.142-.057-.209-.048-.007-.082-.018-.09-.037-.726-.075-1.232.029-1.543.408-.584.71-.794 1.67-.869 2.272l3.204-.001zm-44.381-2.358c-.014-.061-.029-.102-.061-.072-.032.029-.031.05-.009.065l.07.007.004.019c.114.023.31.023.406.038a5.656 5.656 0 00-.41-.057zm14.522-.076c-.011-.04-.024-.062-.048-.039-.012.011-.018.021-.019.03l.067.009.009.036c.102.017.279.009.365.023a8.918 8.918 0 00-.374-.059zm15.236-.234c-.014-.056-.031-.09-.062-.061-.023.022-.028.039-.018.052l.08.009.007.025c.111.02.295.017.386.031a5.71 5.71 0 00-.393-.056zm13.913-.003c-.014-.053-.032-.083-.062-.055-.021.019-.027.035-.02.047l.082.008.008.029c.109.018.288.014.376.027a6.994 6.994 0 00-.384-.056z"})]})]})]})}))}}}]); +//# sourceMappingURL=872.3ebf4ebb.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/872.5c594ced.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/872.3ebf4ebb.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/872.5c594ced.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/872.3ebf4ebb.chunk.js.map index 05b81afe0..44f1f58d0 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/872.5c594ced.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/872.3ebf4ebb.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/872.5c594ced.chunk.js","mappings":"0JA4CA,UAzCqB,SAACA,GACpB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,iGAEJ,iBACED,KAAK,UACLC,EAAE,6FAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/NOTES.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst NotesAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default NotesAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/872.3ebf4ebb.chunk.js","mappings":"0JA4CA,UAzCqB,SAACA,GACpB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,iGAEJ,iBACED,KAAK,UACLC,EAAE,6FAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/NOTES.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst NotesAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default NotesAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.840fe1f6.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.db99157e.chunk.js similarity index 96% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.840fe1f6.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.db99157e.chunk.js index c734a0a17..5bc39ca31 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.840fe1f6.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.db99157e.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9005],{9005:function(e,n,i){i.r(n);var l=i(8489),s=(i(2791),i(9259)),t=i(184);n.default=function(e){return(0,t.jsx)(s.Z,(0,l.Z)((0,l.Z)({},e),{},{children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,t.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,t.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,t.jsx)("path",{fill:e.htmlColor||"#000",d:"M67.177 81.796c-.501-.11-3.812-1.343-5.704-2.523-2.593-1.618-5.033-3.696-7.024-5.261-3.146-3.224-5.051-6.328-6.493-8.425 2.566-1.093 5.527-3.354 7.945-7.884 1.637-3.026 1.675-7.972-.129-13.203-1.654-4.795-4.682-9.901-7.747-13.27-1.172-1.433-7.138-8.4-14.298-10.989-4.94-1.786-10.324-1.72-15.569 1.741-7.488 4.91-12.99 12.386-14.74 22.046-1.286 7.097-.401 15.488 3.698 25.107 1.987 4.713 5.063 10.884 9.073 17.235 3.427 5.428 7.589 10.922 12.331 15.784 4.631 4.783 9.909 8.854 15.101 12.258 6.258 4.102 12.46 7.093 17.37 9.021h.001c12.815 4.147 24.184 4.21 33.181 1.391 8.632-2.704 15.335-7.754 19.328-14.511 3.152-5.333 3.431-10.974 1.794-16.255-2.721-8.784-10.691-16.233-10.691-16.233a8.563 8.563 0 00-.173-.159c-4.992-4.235-9.704-7.624-14.115-8.934-5.303-1.575-10.443-1.168-15.477 2.908-4.2 3.384-6.532 6.425-7.392 9.157-.104.332-.196.665-.27.999zM41.506 59.17c.742 1.319.624 1.376 2.003 1.246 2.025-.192 5.244-2.259 6.951-5.454 2.322-4.344-2.415-14.689-7.244-19.807 0 0-11.312-14.684-21.226-7.898-10.481 7.175-16.269 20.484-7.881 38.87 3.645 7.989 10.765 20.544 20.567 30.036 9.472 9.173 21.55 15.371 29.714 18.28 19.445 6.929 35.162 2.181 41.854-8.439 6.329-10.047-7.086-22.764-7.086-22.764-7.228-6.443-13.497-10.973-19.814-6.098-3.458 2.669-5.317 4.823-5.411 7.014-.008.182-.096 1.309.635 1.625.864.374.768.331 1.684.688 1.474.482 2.268 2.035 1.771 3.466-.496 1.431-2.03 1.933-3.57 1.72-2.504-.346-8.951-2.746-9.693-3.092-2.267-.896-5.02-2.121-6.955-3.121-2.465-1.275-4.672-2.617-6.597-4.036-4.103-3.023-7.066-6.207-9.237-9.071-5.093-6.718-5.933-11.838-5.933-11.838-.377-1.465.542-2.951 2.051-3.317 1.508-.367 2.336.07 3.417 1.99zm7.381-46.162s14.152-2.748 29.966-.666c9.097 1.199 18.721 4.069 26.528 10.257 11.212 8.886 18.458 24.623 14.975 52.525-.241 1.672.962 3.22 2.684 3.454 1.723.234 3.317-.934 3.558-2.606 3.21-19.245 1.34-33.469-3.432-43.916-3.065-6.71-7.334-11.937-12.315-15.914-9.06-7.234-20.445-10.414-31.079-11.429-17.183-1.641-32.339 2.341-32.339 2.341-1.693.389-2.741 2.04-2.34 3.683.402 1.643 2.102 2.661 3.794 2.271zm10.474 12.418s7.799-.713 16.939 1.511c4.869 1.185 10.064 3.301 14.772 6.872 4.547 3.448 8.662 8.239 11.344 15.311 1.419 3.741 2.54 8.036 3.109 13.042.104 1.507 1.449 2.648 3.001 2.546 1.552-.102 2.727-1.407 2.622-2.914-.321-10.92-3.032-19.15-7.027-25.329-2.313-3.579-5.073-6.49-8.092-8.785-5.691-4.327-12.221-6.574-18.195-7.63-10.553-1.866-19.364-.027-19.364-.027-1.535.239-2.583 1.643-2.337 3.134.246 1.491 1.692 2.508 3.228 2.269zm7.437 18.269s4.598.71 9.398 3.095c1.709.849 3.458 1.896 5.037 3.346 2.209 2.027 4.269 4.651 5.151 8.659.226 1.674 1.809 2.856 3.534 2.637 1.724-.218 2.942-1.756 2.717-3.43-.462-7.718-3.919-12.924-8.278-16.112-2.698-1.974-5.784-3.081-8.559-3.693-5.039-1.111-9.07-.622-9.07-.622-1.739.019-3.136 1.405-3.117 3.094.02 1.688 1.447 3.044 3.187 3.026z"})]})}))}}}]); -//# sourceMappingURL=9005.840fe1f6.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9005],{9005:function(e,n,i){i.r(n);var l=i(1413),s=(i(2791),i(9259)),t=i(184);n.default=function(e){return(0,t.jsx)(s.Z,(0,l.Z)((0,l.Z)({},e),{},{children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,t.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,t.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,t.jsx)("path",{fill:e.htmlColor||"#000",d:"M67.177 81.796c-.501-.11-3.812-1.343-5.704-2.523-2.593-1.618-5.033-3.696-7.024-5.261-3.146-3.224-5.051-6.328-6.493-8.425 2.566-1.093 5.527-3.354 7.945-7.884 1.637-3.026 1.675-7.972-.129-13.203-1.654-4.795-4.682-9.901-7.747-13.27-1.172-1.433-7.138-8.4-14.298-10.989-4.94-1.786-10.324-1.72-15.569 1.741-7.488 4.91-12.99 12.386-14.74 22.046-1.286 7.097-.401 15.488 3.698 25.107 1.987 4.713 5.063 10.884 9.073 17.235 3.427 5.428 7.589 10.922 12.331 15.784 4.631 4.783 9.909 8.854 15.101 12.258 6.258 4.102 12.46 7.093 17.37 9.021h.001c12.815 4.147 24.184 4.21 33.181 1.391 8.632-2.704 15.335-7.754 19.328-14.511 3.152-5.333 3.431-10.974 1.794-16.255-2.721-8.784-10.691-16.233-10.691-16.233a8.563 8.563 0 00-.173-.159c-4.992-4.235-9.704-7.624-14.115-8.934-5.303-1.575-10.443-1.168-15.477 2.908-4.2 3.384-6.532 6.425-7.392 9.157-.104.332-.196.665-.27.999zM41.506 59.17c.742 1.319.624 1.376 2.003 1.246 2.025-.192 5.244-2.259 6.951-5.454 2.322-4.344-2.415-14.689-7.244-19.807 0 0-11.312-14.684-21.226-7.898-10.481 7.175-16.269 20.484-7.881 38.87 3.645 7.989 10.765 20.544 20.567 30.036 9.472 9.173 21.55 15.371 29.714 18.28 19.445 6.929 35.162 2.181 41.854-8.439 6.329-10.047-7.086-22.764-7.086-22.764-7.228-6.443-13.497-10.973-19.814-6.098-3.458 2.669-5.317 4.823-5.411 7.014-.008.182-.096 1.309.635 1.625.864.374.768.331 1.684.688 1.474.482 2.268 2.035 1.771 3.466-.496 1.431-2.03 1.933-3.57 1.72-2.504-.346-8.951-2.746-9.693-3.092-2.267-.896-5.02-2.121-6.955-3.121-2.465-1.275-4.672-2.617-6.597-4.036-4.103-3.023-7.066-6.207-9.237-9.071-5.093-6.718-5.933-11.838-5.933-11.838-.377-1.465.542-2.951 2.051-3.317 1.508-.367 2.336.07 3.417 1.99zm7.381-46.162s14.152-2.748 29.966-.666c9.097 1.199 18.721 4.069 26.528 10.257 11.212 8.886 18.458 24.623 14.975 52.525-.241 1.672.962 3.22 2.684 3.454 1.723.234 3.317-.934 3.558-2.606 3.21-19.245 1.34-33.469-3.432-43.916-3.065-6.71-7.334-11.937-12.315-15.914-9.06-7.234-20.445-10.414-31.079-11.429-17.183-1.641-32.339 2.341-32.339 2.341-1.693.389-2.741 2.04-2.34 3.683.402 1.643 2.102 2.661 3.794 2.271zm10.474 12.418s7.799-.713 16.939 1.511c4.869 1.185 10.064 3.301 14.772 6.872 4.547 3.448 8.662 8.239 11.344 15.311 1.419 3.741 2.54 8.036 3.109 13.042.104 1.507 1.449 2.648 3.001 2.546 1.552-.102 2.727-1.407 2.622-2.914-.321-10.92-3.032-19.15-7.027-25.329-2.313-3.579-5.073-6.49-8.092-8.785-5.691-4.327-12.221-6.574-18.195-7.63-10.553-1.866-19.364-.027-19.364-.027-1.535.239-2.583 1.643-2.337 3.134.246 1.491 1.692 2.508 3.228 2.269zm7.437 18.269s4.598.71 9.398 3.095c1.709.849 3.458 1.896 5.037 3.346 2.209 2.027 4.269 4.651 5.151 8.659.226 1.674 1.809 2.856 3.534 2.637 1.724-.218 2.942-1.756 2.717-3.43-.462-7.718-3.919-12.924-8.278-16.112-2.698-1.974-5.784-3.081-8.559-3.693-5.039-1.111-9.07-.622-9.07-.622-1.739.019-3.136 1.405-3.117 3.094.02 1.688 1.447 3.044 3.187 3.026z"})]})}))}}}]); +//# sourceMappingURL=9005.db99157e.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.840fe1f6.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.db99157e.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.840fe1f6.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.db99157e.chunk.js.map index 373dbd7cf..24174bf05 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.840fe1f6.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9005.db99157e.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9005.840fe1f6.chunk.js","mappings":"4JAyBA,UAtBsB,SAACA,GACrB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/DIALER.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst DialerAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default DialerAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9005.db99157e.chunk.js","mappings":"4JAyBA,UAtBsB,SAACA,GACrB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,iBACED,KAAMR,EAAMU,WAAa,OACzBD,EAAE","sources":["os/apps/icons/npwd_icons/svg/DIALER.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst DialerAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n );\n};\n\nexport default DialerAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.c94b1bde.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.b4991e7e.chunk.js similarity index 75% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.c94b1bde.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.b4991e7e.chunk.js index d1913e00c..fac05bbd1 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.c94b1bde.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.b4991e7e.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9058,1864],{9058:function(n,e,t){t.r(e);t(2791);var u=t(1864),r=t(184);e.default=function(){return(0,r.jsx)(u.default,{fontSize:"large"})}},1864:function(n,e,t){t.r(e);var u=t(8489),r=(t(2791),t(9259)),s=t(184);e.default=function(n){return(0,s.jsx)(r.Z,(0,u.Z)((0,u.Z)({},n),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{fill:"none"}),(0,s.jsx)("path",{d:"M19,3H4.99C3.89,3,3,3.9,3,5l0.01,14c0,1.1,0.89,2,1.99,2h10l6-6V5C21,3.9,20.1,3,19,3z M7,8h10v2H7V8z M12,14H7v-2h5V14z M14,19.5V14h5.5L14,19.5z"})]})}))}}}]); -//# sourceMappingURL=9058.c94b1bde.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9058,1864],{9058:function(n,e,t){t.r(e);t(2791);var u=t(1864),r=t(184);e.default=function(){return(0,r.jsx)(u.default,{fontSize:"large"})}},1864:function(n,e,t){t.r(e);var u=t(1413),r=(t(2791),t(9259)),s=t(184);e.default=function(n){return(0,s.jsx)(r.Z,(0,u.Z)((0,u.Z)({},n),{},{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{fill:"none"}),(0,s.jsx)("path",{d:"M19,3H4.99C3.89,3,3,3.9,3,5l0.01,14c0,1.1,0.89,2,1.99,2h10l6-6V5C21,3.9,20.1,3,19,3z M7,8h10v2H7V8z M12,14H7v-2h5V14z M14,19.5V14h5.5L14,19.5z"})]})}))}}}]); +//# sourceMappingURL=9058.b4991e7e.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.c94b1bde.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.b4991e7e.chunk.js.map similarity index 94% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.c94b1bde.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.b4991e7e.chunk.js.map index 3a4034653..363185955 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.c94b1bde.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9058.b4991e7e.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9058.c94b1bde.chunk.js","mappings":"qJAKA,UAF4B,kBAAM,SAAC,UAAD,CAAYA,SAAS,Y,uECUvD,UAT2C,SAACC,GAAD,OACzC,SAAC,KAAD,kBAAaA,GAAb,cACE,iBAAKC,MAAM,6BAA6BC,QAAQ,YAAhD,WACE,iBAAMC,KAAK,UACX,iBAAMC,EAAE","sources":["os/apps/icons/material/app/NOTES.tsx","os/apps/icons/material/misc/StickyNote.tsx"],"sourcesContent":["import React from 'react';\nimport StickyNote from '../misc/StickyNote';\n\nconst NotesIcon: React.FC = () => ;\n\nexport default NotesIcon;\n","import { SvgIconProps } from '@mui/material/SvgIcon';\nimport React from 'react';\nimport { SvgIcon } from '@mui/material';\n\nconst StickyNote: React.FC = (props) => (\n \n \n \n \n \n \n);\n\nexport default StickyNote;\n"],"names":["fontSize","props","xmlns","viewBox","fill","d"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9058.b4991e7e.chunk.js","mappings":"qJAKA,UAF4B,kBAAM,SAAC,UAAD,CAAYA,SAAS,Y,uECUvD,UAT2C,SAACC,GAAD,OACzC,SAAC,KAAD,kBAAaA,GAAb,cACE,iBAAKC,MAAM,6BAA6BC,QAAQ,YAAhD,WACE,iBAAMC,KAAK,UACX,iBAAMC,EAAE","sources":["os/apps/icons/material/app/NOTES.tsx","os/apps/icons/material/misc/StickyNote.tsx"],"sourcesContent":["import React from 'react';\nimport StickyNote from '../misc/StickyNote';\n\nconst NotesIcon: React.FC = () => ;\n\nexport default NotesIcon;\n","import { SvgIconProps } from '@mui/material/SvgIcon';\nimport React from 'react';\nimport { SvgIcon } from '@mui/material';\n\nconst StickyNote: React.FC = (props) => (\n \n \n \n \n \n \n);\n\nexport default StickyNote;\n"],"names":["fontSize","props","xmlns","viewBox","fill","d"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.c76d474c.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.cf330298.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.c76d474c.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.cf330298.chunk.js index 9ac67d899..2a45b8c18 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.c76d474c.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.cf330298.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9255],{9255:function(l,c,a){a.r(c);var i=a(8489),s=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#2b3465",d:"M53.83 35.564l11.15.471 27.64.315 23.714 1.256-13.035 15.547-.157 16.333 18.06 13.035 15.233 17.117-2.827 18.06-9.893 12.564-25.127 11.621-31.095-3.141-19.945-11.778-6.596-13.192-.471-19.002 12.25-16.804L71.233 67.25l2.542-7.03-4.241-9.108-10.679-7.538s-6.438-4.712-5.025-8.01z"}),(0,e.jsxs)("g",{fill:"#fff",children:[(0,e.jsx)("path",{fillRule:"nonzero",d:"M80.941 121.515h-.002l-.101-.74-.384.066a3.835 3.835 0 01-.571.053c-.195-.003-.338 0-.443.006-.415-.005-.992-.097-1.728-.261l-.024-.005a8.197 8.197 0 00-1.778-.143 7.664 7.664 0 00-1.959.297c-.894.256-1.405.725-1.577 1.374-.158.59.028 1.134.6 1.622.595.508 1.736.974 3.47 1.323 3.939.861 7.969.699 12.09-.499.281 1.976.587 3.9.92 5.773l.079.296a.65.65 0 00.093.198c.567.815 1.797 1.36 3.8 1.448 1.373.073 2.281-.163 2.772-.536.439-.332.659-.786.572-1.384l-.002-.012c-.46-2.776-.927-5.666-1.401-8.669.653-.373 1.282-.77 1.887-1.192 6.735-4.437 9.446-8.75 8.378-12.834-.769-3.184-4.432-5.914-11.17-8.033a33.098 33.098 0 00-1.998-.577 261.97 261.97 0 01-.752-8.523.682.682 0 00-.013-.089c-.002-.01-.047-.455-.102-1.105a42.095 42.095 0 016.699-1.256l.014-.002c.987-.115 1.771-.396 2.367-.819.36-.254.56-.541.636-.844.103-.406-.017-.876-.486-1.379-.555-.597-1.433-1.078-2.664-1.406-1.175-.312-2.246-.401-3.21-.285-1.27.15-2.546.34-3.827.569-.094-1.623-.21-3.257-.348-4.902a.611.611 0 00-.024-.148l-.074-.266a.595.595 0 00-.044-.101c-.432-.806-1.574-1.399-3.575-1.552l-.008-.001c-1.701-.119-2.734.231-3.198.761-.25.286-.382.643-.348 1.078.12 2.059.275 4.331.466 6.815-.365.101-.708.206-1.028.315a42.83 42.83 0 00-1.953.691c-.491.19-1.126.448-1.906.774a17.2 17.2 0 00-2.038.988c-.545.319-1.1.708-1.664 1.166-.587.477-1.051.958-1.397 1.441l-.007.009c-.833 1.204-1.159 2.34-1.019 3.401.142 1.077.607 2 1.381 2.773.721.721 1.705 1.412 2.959 2.064a27.306 27.306 0 003.433 1.519c1.071.381 2.23.726 3.474 1.035.339.095.781.212 1.315.348.606 5.49 1.28 10.874 2.021 16.152-.645.383-1.305.714-1.979.993l-.034.015c-1.526.697-2.986 1.169-4.385 1.408l-.305.052.1.74zm12.146-17.073c.25.099.504.214.762.345l.509.118-.507-.117.299.148c.188.129.439.304.749.526l.226.126c.081.065.16.135.242.213l.347.46.191.235a.613.613 0 00.046.078c.37.532.55 1.113.546 1.744v.009c.017 1.585-.763 3.209-2.296 4.886a606.308 606.308 0 01-1.114-8.771zm-8.109-7.395c-1.079-.348-1.841-.703-2.252-1.105l-.02-.018c-.686-.628-.641-1.399-.025-2.31l.001-.002c.372-.554.99-1.068 1.839-1.555l.457 4.99z"}),(0,e.jsx)("path",{d:"M69.858 54.606a1.708 1.708 0 00-1.06 1.891 1.708 1.708 0 001.982 1.378s.479-.042 1.334-.111c.014.209.022.431.027.662-.508.039-.786.063-.786.063a1.236 1.236 0 00-.722 2.223 1.236 1.236 0 00.834 2s.183.032.522.088c-.032.426-.065.813-.096 1.144-.75.108-1.17.174-1.17.174a1.707 1.707 0 00-1.35 2.587c-.552.345-1.218.726-2.021 1.135-1.577.804-3.619 1.665-6.253 2.544-6.329 2.113-14.331 7.652-19.691 15.859-4.361 6.679-6.952 15.106-5.605 24.848 1.269 9.176 6.476 16.701 14.024 22.44 9.551 7.263 22.934 11.6 36.471 12.822 11.288.992 22.371-1.736 31.405-6.781 10.682-5.965 18.442-15.186 20.72-25.176 1.901-8.483.613-15.284-2.369-20.932-4.479-8.484-13.01-14.293-20.272-19.294-3.065-2.111-5.874-4.055-7.853-6.087-.602-.618-1.134-1.223-1.53-1.848a1.708 1.708 0 00.569-2.592 1.173 1.173 0 00-.324-.274 1.236 1.236 0 00-1.187-1.437l-.127-.94c.287.004.526.014.712.029a1.236 1.236 0 00.314-2.45c-.302-.053-.742-.11-1.298-.169-.038-.561-.088-1.099.015-1.549.387.079.762.169 1.121.27a1.708 1.708 0 001.127-3.222 18.615 18.615 0 00-.62-.247c.926-1.639 2.151-3.62 3.523-5.371 1.21-1.545 2.46-2.981 3.782-3.493 2.958-1.144 4.371-2.189 5.087-3.112 1.133-1.459 1.244-2.943.861-5.213a3.107 3.107 0 00-2.93-2.616l-30.071-.885c-2.326-.033-4.029.086-5.351.269a22.657 22.657 0 00-3.267.699c-1.026.29-1.73.564-3.239.338-1.442-.216-2.669-1.043-4.107-1.487-.859-.265-1.765-.449-2.756-.463a5.123 5.123 0 00-1.797.289c-.539.19-1.04.458-1.517.766-.212.138-.42.282-.63.418-.097.062-.148.203-.27.204-1.373.013-2.486-.876-3.577-1.184-.665-.188-1.321-.283-1.975-.237-2.166.151-3.876.412-4.893.759-.894.304-1.5.748-1.893 1.202-.398.372-1.021 1.172-1.067 2.538-.028.837.146 2.099 1.363 3.75 1.048 1.42 3.004 3.346 5.81 5.576 2.461 1.955 5.593 4.181 9.319 6.558.984.627 1.926 1.126 2.752 1.647zM99.263 66.6c-.964.082-2.006.172-3.105.263-2.424.201-5.101.466-7.791.605-2.376.123-4.755.15-6.958.164-2.598.017-3.855.119-5.664.092-.728.837-2.323 2.195-4.389 3.45-1.841 1.119-5.163 2.516-8.816 3.838-5.512 1.996-12.38 6.592-16.917 13.913-3.594 5.799-5.687 13.043-4.351 21.348 1.226 7.623 5.803 13.725 12.186 18.384 8.812 6.433 17.452 9.649 29.777 10.548 9.876.746 21.998-1.556 29.854-6.037 8.727-4.977 15.288-12.379 17.111-20.594 1.46-6.466.563-11.655-1.685-15.974-4.676-8.984-13.517-14.195-20.396-19.356-4.562-3.423-7.834-6.912-8.856-10.644zm-.646-5.436c-.91.032-1.871.066-2.866.099-1.224.041-2.497.088-3.794.125l1.055.092c2.03.177 3.97.354 5.699.481l-.094-.797zm-.139-4.841a87.853 87.853 0 00-2.593.039c-1.633.046-3.301.154-4.973.247-1.685.094-3.367.196-5.003.287-2.13.119-4.176.215-6.043.327-1.292.077-2.496.155-3.576.23.014.221.023.449.029.682a297.1 297.1 0 015.488-.293c2.201-.098 4.583-.184 6.973-.19 2.38-.005 4.763.079 6.98.165.905.035 1.782.074 2.62.116l.001-.174c.007-.494.039-.974.097-1.436zm1.602-4.286c1.119-2.036 2.967-5.135 5.099-7.77 1.512-1.87 3.189-3.489 4.853-4.532l-23.218-1.12c-6.074-.215-7.345.869-9.344 1.1-.887.102-1.878.108-3.228-.124-1.705-.292-3.174-1.21-4.867-1.773-.395-.132-.81-.24-1.269-.256-.362-.013-.568.31-.839.483-.459.291-.922.561-1.416.75a4.896 4.896 0 01-1.838.349 7.337 7.337 0 01-1.718-.225c-.892-.227-1.723-.605-2.512-.954-.36-.16-.674-.389-1.019-.372-1.07.052-2.194.201-2.923.314l.059.089c.858 1.217 2.51 2.842 4.837 4.775 2.317 1.925 5.515 3.578 9.035 5.936 1.79 1.2 3.192 2.594 4.362 3.739.303.298.582.612.833.949 1.719-.359 3.81-.753 6.122-1.104 2.303-.35 4.821-.66 7.399-.791 2.502-.127 5.054-.072 7.505.1 1.405.099 2.775.244 4.087.437zM113.947 37.9l.067.21-.163.073a.987.987 0 01.096-.283zm.331-.045l-.161-.143c.035-.014.07-.007.102.026.04.04.059.079.059.117z"})]})]})]})]})}))}}}]); -//# sourceMappingURL=9255.c76d474c.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9255],{9255:function(l,c,a){a.r(c);var i=a(1413),s=(a(2791),a(9259)),e=a(184);c.default=function(l){return(0,e.jsx)(s.Z,(0,i.Z)((0,i.Z)({},l),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#2b3465",d:"M53.83 35.564l11.15.471 27.64.315 23.714 1.256-13.035 15.547-.157 16.333 18.06 13.035 15.233 17.117-2.827 18.06-9.893 12.564-25.127 11.621-31.095-3.141-19.945-11.778-6.596-13.192-.471-19.002 12.25-16.804L71.233 67.25l2.542-7.03-4.241-9.108-10.679-7.538s-6.438-4.712-5.025-8.01z"}),(0,e.jsxs)("g",{fill:"#fff",children:[(0,e.jsx)("path",{fillRule:"nonzero",d:"M80.941 121.515h-.002l-.101-.74-.384.066a3.835 3.835 0 01-.571.053c-.195-.003-.338 0-.443.006-.415-.005-.992-.097-1.728-.261l-.024-.005a8.197 8.197 0 00-1.778-.143 7.664 7.664 0 00-1.959.297c-.894.256-1.405.725-1.577 1.374-.158.59.028 1.134.6 1.622.595.508 1.736.974 3.47 1.323 3.939.861 7.969.699 12.09-.499.281 1.976.587 3.9.92 5.773l.079.296a.65.65 0 00.093.198c.567.815 1.797 1.36 3.8 1.448 1.373.073 2.281-.163 2.772-.536.439-.332.659-.786.572-1.384l-.002-.012c-.46-2.776-.927-5.666-1.401-8.669.653-.373 1.282-.77 1.887-1.192 6.735-4.437 9.446-8.75 8.378-12.834-.769-3.184-4.432-5.914-11.17-8.033a33.098 33.098 0 00-1.998-.577 261.97 261.97 0 01-.752-8.523.682.682 0 00-.013-.089c-.002-.01-.047-.455-.102-1.105a42.095 42.095 0 016.699-1.256l.014-.002c.987-.115 1.771-.396 2.367-.819.36-.254.56-.541.636-.844.103-.406-.017-.876-.486-1.379-.555-.597-1.433-1.078-2.664-1.406-1.175-.312-2.246-.401-3.21-.285-1.27.15-2.546.34-3.827.569-.094-1.623-.21-3.257-.348-4.902a.611.611 0 00-.024-.148l-.074-.266a.595.595 0 00-.044-.101c-.432-.806-1.574-1.399-3.575-1.552l-.008-.001c-1.701-.119-2.734.231-3.198.761-.25.286-.382.643-.348 1.078.12 2.059.275 4.331.466 6.815-.365.101-.708.206-1.028.315a42.83 42.83 0 00-1.953.691c-.491.19-1.126.448-1.906.774a17.2 17.2 0 00-2.038.988c-.545.319-1.1.708-1.664 1.166-.587.477-1.051.958-1.397 1.441l-.007.009c-.833 1.204-1.159 2.34-1.019 3.401.142 1.077.607 2 1.381 2.773.721.721 1.705 1.412 2.959 2.064a27.306 27.306 0 003.433 1.519c1.071.381 2.23.726 3.474 1.035.339.095.781.212 1.315.348.606 5.49 1.28 10.874 2.021 16.152-.645.383-1.305.714-1.979.993l-.034.015c-1.526.697-2.986 1.169-4.385 1.408l-.305.052.1.74zm12.146-17.073c.25.099.504.214.762.345l.509.118-.507-.117.299.148c.188.129.439.304.749.526l.226.126c.081.065.16.135.242.213l.347.46.191.235a.613.613 0 00.046.078c.37.532.55 1.113.546 1.744v.009c.017 1.585-.763 3.209-2.296 4.886a606.308 606.308 0 01-1.114-8.771zm-8.109-7.395c-1.079-.348-1.841-.703-2.252-1.105l-.02-.018c-.686-.628-.641-1.399-.025-2.31l.001-.002c.372-.554.99-1.068 1.839-1.555l.457 4.99z"}),(0,e.jsx)("path",{d:"M69.858 54.606a1.708 1.708 0 00-1.06 1.891 1.708 1.708 0 001.982 1.378s.479-.042 1.334-.111c.014.209.022.431.027.662-.508.039-.786.063-.786.063a1.236 1.236 0 00-.722 2.223 1.236 1.236 0 00.834 2s.183.032.522.088c-.032.426-.065.813-.096 1.144-.75.108-1.17.174-1.17.174a1.707 1.707 0 00-1.35 2.587c-.552.345-1.218.726-2.021 1.135-1.577.804-3.619 1.665-6.253 2.544-6.329 2.113-14.331 7.652-19.691 15.859-4.361 6.679-6.952 15.106-5.605 24.848 1.269 9.176 6.476 16.701 14.024 22.44 9.551 7.263 22.934 11.6 36.471 12.822 11.288.992 22.371-1.736 31.405-6.781 10.682-5.965 18.442-15.186 20.72-25.176 1.901-8.483.613-15.284-2.369-20.932-4.479-8.484-13.01-14.293-20.272-19.294-3.065-2.111-5.874-4.055-7.853-6.087-.602-.618-1.134-1.223-1.53-1.848a1.708 1.708 0 00.569-2.592 1.173 1.173 0 00-.324-.274 1.236 1.236 0 00-1.187-1.437l-.127-.94c.287.004.526.014.712.029a1.236 1.236 0 00.314-2.45c-.302-.053-.742-.11-1.298-.169-.038-.561-.088-1.099.015-1.549.387.079.762.169 1.121.27a1.708 1.708 0 001.127-3.222 18.615 18.615 0 00-.62-.247c.926-1.639 2.151-3.62 3.523-5.371 1.21-1.545 2.46-2.981 3.782-3.493 2.958-1.144 4.371-2.189 5.087-3.112 1.133-1.459 1.244-2.943.861-5.213a3.107 3.107 0 00-2.93-2.616l-30.071-.885c-2.326-.033-4.029.086-5.351.269a22.657 22.657 0 00-3.267.699c-1.026.29-1.73.564-3.239.338-1.442-.216-2.669-1.043-4.107-1.487-.859-.265-1.765-.449-2.756-.463a5.123 5.123 0 00-1.797.289c-.539.19-1.04.458-1.517.766-.212.138-.42.282-.63.418-.097.062-.148.203-.27.204-1.373.013-2.486-.876-3.577-1.184-.665-.188-1.321-.283-1.975-.237-2.166.151-3.876.412-4.893.759-.894.304-1.5.748-1.893 1.202-.398.372-1.021 1.172-1.067 2.538-.028.837.146 2.099 1.363 3.75 1.048 1.42 3.004 3.346 5.81 5.576 2.461 1.955 5.593 4.181 9.319 6.558.984.627 1.926 1.126 2.752 1.647zM99.263 66.6c-.964.082-2.006.172-3.105.263-2.424.201-5.101.466-7.791.605-2.376.123-4.755.15-6.958.164-2.598.017-3.855.119-5.664.092-.728.837-2.323 2.195-4.389 3.45-1.841 1.119-5.163 2.516-8.816 3.838-5.512 1.996-12.38 6.592-16.917 13.913-3.594 5.799-5.687 13.043-4.351 21.348 1.226 7.623 5.803 13.725 12.186 18.384 8.812 6.433 17.452 9.649 29.777 10.548 9.876.746 21.998-1.556 29.854-6.037 8.727-4.977 15.288-12.379 17.111-20.594 1.46-6.466.563-11.655-1.685-15.974-4.676-8.984-13.517-14.195-20.396-19.356-4.562-3.423-7.834-6.912-8.856-10.644zm-.646-5.436c-.91.032-1.871.066-2.866.099-1.224.041-2.497.088-3.794.125l1.055.092c2.03.177 3.97.354 5.699.481l-.094-.797zm-.139-4.841a87.853 87.853 0 00-2.593.039c-1.633.046-3.301.154-4.973.247-1.685.094-3.367.196-5.003.287-2.13.119-4.176.215-6.043.327-1.292.077-2.496.155-3.576.23.014.221.023.449.029.682a297.1 297.1 0 015.488-.293c2.201-.098 4.583-.184 6.973-.19 2.38-.005 4.763.079 6.98.165.905.035 1.782.074 2.62.116l.001-.174c.007-.494.039-.974.097-1.436zm1.602-4.286c1.119-2.036 2.967-5.135 5.099-7.77 1.512-1.87 3.189-3.489 4.853-4.532l-23.218-1.12c-6.074-.215-7.345.869-9.344 1.1-.887.102-1.878.108-3.228-.124-1.705-.292-3.174-1.21-4.867-1.773-.395-.132-.81-.24-1.269-.256-.362-.013-.568.31-.839.483-.459.291-.922.561-1.416.75a4.896 4.896 0 01-1.838.349 7.337 7.337 0 01-1.718-.225c-.892-.227-1.723-.605-2.512-.954-.36-.16-.674-.389-1.019-.372-1.07.052-2.194.201-2.923.314l.059.089c.858 1.217 2.51 2.842 4.837 4.775 2.317 1.925 5.515 3.578 9.035 5.936 1.79 1.2 3.192 2.594 4.362 3.739.303.298.582.612.833.949 1.719-.359 3.81-.753 6.122-1.104 2.303-.35 4.821-.66 7.399-.791 2.502-.127 5.054-.072 7.505.1 1.405.099 2.775.244 4.087.437zM113.947 37.9l.067.21-.163.073a.987.987 0 01.096-.283zm.331-.045l-.161-.143c.035-.014.07-.007.102.026.04.04.059.079.059.117z"})]})]})]})]})}))}}}]); +//# sourceMappingURL=9255.cf330298.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.c76d474c.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.cf330298.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.c76d474c.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.cf330298.chunk.js.map index e5498e136..1235a7696 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.c76d474c.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9255.cf330298.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9255.c76d474c.chunk.js","mappings":"4JA2CA,UAxCoB,SAACA,GACnB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,2RAEJ,eAAGD,KAAK,OAAR,WACE,iBACEN,SAAS,UACTO,EAAE,wgEAEJ,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/app/BANK.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst BankAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default BankAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9255.cf330298.chunk.js","mappings":"4JA2CA,UAxCoB,SAACA,GACnB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,2RAEJ,eAAGD,KAAK,OAAR,WACE,iBACEN,SAAS,UACTO,EAAE,wgEAEJ,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/app/BANK.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst BankAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default BankAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.6d5bb6df.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.f4645a8b.chunk.js similarity index 96% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.6d5bb6df.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.f4645a8b.chunk.js index f4eb804b0..eab5afc3e 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.6d5bb6df.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.f4645a8b.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9268],{9268:function(i,l,s){s.r(l);var a=s(8489),c=(s(2791),s(9259)),e=s(184);l.default=function(i){return(0,e.jsx)(c.Z,(0,a.Z)((0,a.Z)({},i),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#c1365b",d:"M64.312 48.178s-3.065 23.758 6.131 24.371c9.197.613 33.261-19.129 21.919-46.903 0 0 33.721 14.838 42.151 40.128 8.43 25.291 1.839 83.382-48.742 80.01-50.581-3.372-47.822-42.61-47.056-50.274.767-7.664 5.543-22.915 11.189-30.196 5.825-7.51 14.408-17.136 14.408-17.136z"}),(0,e.jsx)("path",{fill:"#fff",d:"M66.817 48.501a2.525 2.525 0 00-4.39-2.004s-4.317 4.725-8.948 10.133a252.393 252.393 0 00-5.782 6.973c-2.936 3.702-5.696 9.381-7.841 15.181-2.251 6.083-3.814 12.294-4.271 16.413-.589 5.346-2.069 24.964 11.759 39.217 7.411 7.638 19.253 13.81 38.17 15.23 20.106 1.439 33.837-6.195 42.733-17.689 7.124-9.205 11.098-20.996 12.633-32.683 1.706-12.98.389-25.811-2.631-34.743-2.778-8.147-7.949-15.299-13.906-21.26-13.395-13.408-30.586-20.793-30.586-20.793a3.463 3.463 0 00-4.602 4.48c4.231 10.065 3.34 19.01.151 26.089-2.916 6.475-7.678 11.412-12.111 14.217-2.506 1.585-4.831 2.547-6.563 2.452-.944-.052-1.572-.685-2.07-1.522-.684-1.15-1.136-2.63-1.452-4.236-1.324-6.725-.293-15.455-.293-15.455zm-5.573 7.177c-.088 3.935.119 8.623 1.226 12.245 1.317 4.309 3.93 7.159 7.784 7.46 2.593.203 6.224-.818 10.033-3.112 5.339-3.214 11.134-8.95 14.757-16.57 3.087-6.489 4.6-14.343 2.925-23.183 5.706 3.31 13.944 8.765 20.994 16.044 5.057 5.222 9.514 11.397 11.814 18.458 4.212 12.771 4.26 34.332-3.735 51.208-6.747 14.241-19.475 25.037-41.014 23.697-16.539-.964-27.054-5.937-33.647-12.488-12.121-12.043-10.95-29.005-10.536-33.614.335-3.764 1.671-9.449 3.603-15.04 1.806-5.229 4.109-10.389 6.663-13.757a248.605 248.605 0 015.492-6.948 432.53 432.53 0 013.641-4.401v.001zm20.935 78.514s1.164 1.218 4.516 1.85c.845.16 1.842.277 2.997.22.881-.044 1.846-.205 2.896-.469 1.255-.316 2.579-.8 4.083-1.41a1.218 1.218 0 00-.59-2.362c-1.021.099-1.94.121-2.821.167-1.009.052-1.912.043-2.745.074-.642.024-1.232.061-1.776.09-.649.035-1.223.088-1.744.102-2.382.066-3.401-.243-3.401-.243a1.219 1.219 0 00-1.698.283 1.219 1.219 0 00.283 1.698zM49.844 87.483s-2.825 7.736-1.909 17.261c.354 3.681 1.265 7.633 3.136 11.432 1.649 3.346 4.047 6.575 7.344 9.413 3.816 3.285 8.865 6.037 15.467 7.9a1.62 1.62 0 001.024-3.073c-4.695-1.823-8.382-4.112-11.348-6.611a30.402 30.402 0 01-5.175-5.619c-1.016-1.422-1.851-2.883-2.581-4.341-2.09-4.175-3.092-8.448-3.469-12.307-.718-7.348.611-13.116.611-13.116a1.62 1.62 0 10-3.1-.939z"})]})]})]})}))}}}]); -//# sourceMappingURL=9268.6d5bb6df.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9268],{9268:function(i,l,s){s.r(l);var a=s(1413),c=(s(2791),s(9259)),e=s(184);l.default=function(i){return(0,e.jsx)(c.Z,(0,a.Z)((0,a.Z)({},i),{},{children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 176 178",children:[(0,e.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,e.jsx)("path",{fill:"none",d:"M0 0H176V178H0z"}),(0,e.jsx)("clipPath",{id:"_clip1",children:(0,e.jsx)("path",{d:"M0 0H176V178H0z"})}),(0,e.jsxs)("g",{clipPath:"url(#_clip1)",children:[(0,e.jsx)("path",{fill:"#444e87",d:"M87.594.286C152.799-3.983 176 40.142 176 89.135s-29.665 91.97-84.913 88.689C45.254 175.102-1.31 150.139.028 87.556.642 58.856 24.249 4.434 87.594.286z"}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{fill:"#c1365b",d:"M64.312 48.178s-3.065 23.758 6.131 24.371c9.197.613 33.261-19.129 21.919-46.903 0 0 33.721 14.838 42.151 40.128 8.43 25.291 1.839 83.382-48.742 80.01-50.581-3.372-47.822-42.61-47.056-50.274.767-7.664 5.543-22.915 11.189-30.196 5.825-7.51 14.408-17.136 14.408-17.136z"}),(0,e.jsx)("path",{fill:"#fff",d:"M66.817 48.501a2.525 2.525 0 00-4.39-2.004s-4.317 4.725-8.948 10.133a252.393 252.393 0 00-5.782 6.973c-2.936 3.702-5.696 9.381-7.841 15.181-2.251 6.083-3.814 12.294-4.271 16.413-.589 5.346-2.069 24.964 11.759 39.217 7.411 7.638 19.253 13.81 38.17 15.23 20.106 1.439 33.837-6.195 42.733-17.689 7.124-9.205 11.098-20.996 12.633-32.683 1.706-12.98.389-25.811-2.631-34.743-2.778-8.147-7.949-15.299-13.906-21.26-13.395-13.408-30.586-20.793-30.586-20.793a3.463 3.463 0 00-4.602 4.48c4.231 10.065 3.34 19.01.151 26.089-2.916 6.475-7.678 11.412-12.111 14.217-2.506 1.585-4.831 2.547-6.563 2.452-.944-.052-1.572-.685-2.07-1.522-.684-1.15-1.136-2.63-1.452-4.236-1.324-6.725-.293-15.455-.293-15.455zm-5.573 7.177c-.088 3.935.119 8.623 1.226 12.245 1.317 4.309 3.93 7.159 7.784 7.46 2.593.203 6.224-.818 10.033-3.112 5.339-3.214 11.134-8.95 14.757-16.57 3.087-6.489 4.6-14.343 2.925-23.183 5.706 3.31 13.944 8.765 20.994 16.044 5.057 5.222 9.514 11.397 11.814 18.458 4.212 12.771 4.26 34.332-3.735 51.208-6.747 14.241-19.475 25.037-41.014 23.697-16.539-.964-27.054-5.937-33.647-12.488-12.121-12.043-10.95-29.005-10.536-33.614.335-3.764 1.671-9.449 3.603-15.04 1.806-5.229 4.109-10.389 6.663-13.757a248.605 248.605 0 015.492-6.948 432.53 432.53 0 013.641-4.401v.001zm20.935 78.514s1.164 1.218 4.516 1.85c.845.16 1.842.277 2.997.22.881-.044 1.846-.205 2.896-.469 1.255-.316 2.579-.8 4.083-1.41a1.218 1.218 0 00-.59-2.362c-1.021.099-1.94.121-2.821.167-1.009.052-1.912.043-2.745.074-.642.024-1.232.061-1.776.09-.649.035-1.223.088-1.744.102-2.382.066-3.401-.243-3.401-.243a1.219 1.219 0 00-1.698.283 1.219 1.219 0 00.283 1.698zM49.844 87.483s-2.825 7.736-1.909 17.261c.354 3.681 1.265 7.633 3.136 11.432 1.649 3.346 4.047 6.575 7.344 9.413 3.816 3.285 8.865 6.037 15.467 7.9a1.62 1.62 0 001.024-3.073c-4.695-1.823-8.382-4.112-11.348-6.611a30.402 30.402 0 01-5.175-5.619c-1.016-1.422-1.851-2.883-2.581-4.341-2.09-4.175-3.092-8.448-3.469-12.307-.718-7.348.611-13.116.611-13.116a1.62 1.62 0 10-3.1-.939z"})]})]})]})}))}}}]); +//# sourceMappingURL=9268.f4645a8b.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.6d5bb6df.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.f4645a8b.chunk.js.map similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.6d5bb6df.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.f4645a8b.chunk.js.map index f7eca6571..6795f9ca6 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.6d5bb6df.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9268.f4645a8b.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9268.6d5bb6df.chunk.js","mappings":"4JAwCA,UArCqB,SAACA,GACpB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,gRAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/MATCH.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MatchAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default MatchAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9268.f4645a8b.chunk.js","mappings":"4JAwCA,UArCqB,SAACA,GACpB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,qBACpB,qBAAUF,GAAG,SAAb,UACE,iBAAME,EAAE,uBAEV,eAAGC,SAAS,eAAZ,WACE,iBACEF,KAAK,UACLC,EAAE,4JAEJ,0BACE,iBACED,KAAK,UACLC,EAAE,gRAEJ,iBACED,KAAK,OACLC,EAAE","sources":["os/apps/icons/npwd_icons/app/MATCH.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst MatchAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default MatchAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","clipPath"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.e09a7916.chunk.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.7b6092aa.chunk.js similarity index 98% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.e09a7916.chunk.js rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.7b6092aa.chunk.js index ba36e4ada..d5e8e8e2d 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.e09a7916.chunk.js +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.7b6092aa.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9854],{9854:function(a,c,l){l.r(c);var e=l(8489),m=(l(2791),l(9259)),n=l(184);c.default=function(a){return(0,n.jsx)(m.Z,(0,e.Z)((0,e.Z)({},a),{},{children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,n.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,n.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,n.jsxs)("g",{fill:a.htmlColor||"#000",children:[(0,n.jsx)("path",{d:"M52.583 20.24a29.644 29.644 0 00-5.373 2.022c-1.518.746-2.985 1.624-4.477 2.651-3.783-3.154-6.844-5.155-9.493-6.041-4.427-1.48-8.16-.682-12.132 3.053-3.33 3.132-4.375 6.147-3.905 9.586.45 3.295 2.928 7.401 7.382 13.358a60.256 60.256 0 00-1.661 3.549 63.595 63.595 0 00-2.295 6.229c-.461 1.485-.795 2.673-1.044 3.853-.055.263-.107.525-.154.79-5.248.765-9.367 1.858-12.165 3.678-3.798 2.47-5.846 6.07-5.393 11.887.379 4.86 1.499 7.122 2.647 8.334 1.049 1.108 2.274 1.708 3.79 1.999 1.038.198 2.367.118 4.035.547l.361.075s3.1.503 6.959.588c1.328.029 2.743.007 4.156-.096a46.725 46.725 0 001.995 3.457 48.413 48.413 0 002.122 3.075c-4.617 6.251-6.643 10.227-6.893 13.186-.288 3.403 1.06 6.119 4.426 9.056 4.049 3.536 6.939 4.464 9.66 4.012 1.483-.247 3.028-.937 4.76-2.226 2.017-1.502 4.512-4.022 8.217-7.481 2.038 1.117 4.416 2.018 6.283 2.491.337 3.157.568 5.665.902 7.619.479 2.811 1.271 4.75 2.376 6.079 1.76 2.116 4.461 3.265 9.478 2.758 6.381-.646 9.1-2.279 10.657-5.215 1.128-2.127 1.467-5.53 1.87-11.241a18.386 18.386 0 002.956-.998 19.246 19.246 0 002.6-1.377c4.161 3.666 6.945 5.734 9.299 6.559 3.632 1.274 6.74.525 11.527-2.857 4.415-3.119 5.539-6.925 4.971-10.904-.469-3.281-2.427-6.818-4.768-10.139 1.256-1.345 2.226-2.41 3.111-3.707a21.622 21.622 0 001.705-3.012c5.475-.592 9.564-1.09 12.359-2.737 3.13-1.844 5.244-4.845 5.75-10.699.503-5.812-1.665-8.984-5.416-10.986-2.609-1.392-6.413-2.039-11.076-2.533a33.378 33.378 0 00-2.401-6.112c-.878-1.714-1.923-3.394-3.204-5.231 3.224-4.458 5.457-8.329 6.275-11.806 1.074-4.565.168-8.684-3.696-12.716-2.776-2.896-6.201-3.804-10.179-3.017-3.786.748-8.312 3.395-13.19 7.359a43.16 43.16 0 00-3.867-2.367 42.887 42.887 0 00-4.75-2.182c-.691-6.533-.94-11.696-2.811-14.819-1.733-2.892-4.443-4.793-9.316-4.946-3.951-.124-6.835 1.497-8.964 4.435-2.092 2.887-3.323 7.532-4.006 13.16zm4.351 84.237c-1.731-.273-4.99-1.453-6.556-2.905h-.001a3.895 3.895 0 00-5.263-.026c-5.194 4.703-8.106 7.951-10.458 9.439-.327.207-.607.326-.891.321-.295-.005-.575-.136-.893-.33-.63-.385-1.331-1.006-2.235-1.799-.84-.738-1.459-1.34-1.642-2.097-.108-.445-.037-.933.189-1.527.932-2.443 3.211-5.604 6.902-10.363l.001-.001a3.962 3.962 0 00-.116-4.988 41.328 41.328 0 01-3.44-4.688 38.7 38.7 0 01-2.71-5.104l-.001-.002a3.983 3.983 0 00-4.327-2.322c-1.842.316-3.842.369-5.639.324a49.575 49.575 0 01-5.694-.483c-1.349-.331-2.912-.521-3.833-.613l-.016-.062c-.184-.75-.307-1.73-.402-3.008-.16-2.146.351-3.578 1.755-4.483 2.573-1.658 6.673-2.201 11.891-2.784h.002a4.077 4.077 0 003.604-3.752c.088-1.163.214-2.089.415-3.02.205-.953.487-1.911.866-3.11a55.555 55.555 0 012.025-5.417 52.008 52.008 0 012.58-5.145l.001-.002a4.122 4.122 0 00-.301-4.54c-3.461-4.567-5.908-7.771-6.959-10.397-.273-.685-.364-1.271-.208-1.827.168-.6.596-1.147 1.236-1.744 1.253-1.168 2.355-1.668 3.744-1.197 2.485.844 5.29 3.183 9.152 6.645l.002.002a4.226 4.226 0 005.414.178c2.01-1.56 3.85-2.807 5.811-3.761 1.891-.92 3.896-1.554 6.285-1.96l.002-.001a4.257 4.257 0 003.523-3.846v-.002c.353-4.402.838-8.257 2.061-10.94.548-1.202 1.215-2.117 2.499-2.082.862.023 1.5.181 1.963.531.439.333.696.831.883 1.453.929 3.098.879 7.563 1.564 12.895a4.153 4.153 0 002.748 3.398c2.378.829 4.24 1.584 6.052 2.55 1.746.931 3.445 2.055 5.523 3.599a4.122 4.122 0 005.193-.215l.001-.002c3.77-3.346 7.235-5.969 10.308-7.184 1.684-.667 3.16-.966 4.263.175 1.614 1.668 2.116 3.342 1.678 5.241-.748 3.248-3.27 6.812-6.567 11.193a4.008 4.008 0 00-.011 4.818c1.824 2.43 3.207 4.433 4.28 6.512 1.077 2.086 1.829 4.245 2.446 7.01a3.978 3.978 0 003.524 3.101c4.645.417 8.462.585 10.895 1.874 1.093.578 1.411 1.636 1.271 3.327-.199 2.398-.611 3.841-1.89 4.601-1.175.697-2.681 1.02-4.504 1.262-1.98.263-4.311.413-6.988.72a3.906 3.906 0 00-3.204 2.471l-.001.001c-.624 1.618-1.178 2.733-1.816 3.674-1.15 1.696-2.515 2.895-4.601 5.218a3.89 3.89 0 00-.183 4.989v.001c2.272 2.925 4.766 6.096 5.203 9.127.187 1.292-.329 2.456-1.762 3.47-.895.635-1.635 1.169-2.311 1.539-.764.419-1.41.61-2.179.342-2.193-.766-4.669-3.152-9.053-7.105a3.861 3.861 0 00-5.165-.01h-.001c-.895.803-1.998 1.589-3.317 2.164a10.658 10.658 0 01-3.712.88 3.854 3.854 0 00-3.639 3.574c-.265 3.688-.305 6.408-.525 8.426-.13 1.19-.31 2.108-.686 2.816-.187.352-.564.429-1.047.568-.927.266-2.095.426-3.566.572-.881.088-1.58.149-2.132.086-.236-.027-.432-.067-.582-.187-.152-.12-.241-.311-.323-.563-.781-2.397-.898-6.295-1.583-12.18v-.001a3.886 3.886 0 00-4.821-3.312h-.001zm-1.483 7.464l.001.013-.099.111s.038-.046.098-.124zm14.365-70.778l-.018-.002c-3.544-.205-9.371.35-14.628 3.078-4.292 2.226-8.225 5.823-10.383 11.482-2.145 5.598-2.435 13.592.431 20.091 2.684 6.083 7.943 10.996 16.875 11.714 6.379.549 12.44-.664 17.163-3.389 5.516-3.182 9.304-8.385 9.95-15.493.484-5.173.015-12.145-3.082-17.676-2.866-5.118-7.844-9.165-16.308-9.806v.001zm-.506 8.497l-.06-.001c4.954.285 8.001 2.431 9.729 5.393 2.335 4.004 2.582 9.13 2.292 12.918-.34 4.309-2.606 7.489-5.93 9.443-3.449 2.028-7.922 2.812-12.604 2.432-5.464-.478-8.734-3.416-10.338-7.156-1.953-4.557-1.646-10.14-.094-14.027 1.407-3.506 3.92-5.686 6.621-7.029 3.723-1.851 7.821-2.163 10.305-1.976l.079.003-.07-.002.07.002zm.165-1.036c-.06.52-.165 1.036-.165 1.036.547 0 .998-.419 1.043-.958a18.37 18.37 0 00-.878-.078z"}),(0,n.jsx)("path",{d:"M71.123 94.058c-.989.148-1.985.255-2.981.323a1.563 1.563 0 00.21 3.118c1.081-.073 2.16-.19 3.232-.35a1.563 1.563 0 00-.461-3.091zm-11.924-.183a31.736 31.736 0 01-2.899-.683 1.564 1.564 0 00-.86 3.005 35.07 35.07 0 003.183.75 1.563 1.563 0 00.576-3.072zm23.23-3.519c-.869.471-1.765.901-2.683 1.292a1.564 1.564 0 001.224 2.875 34.885 34.885 0 002.947-1.419 1.563 1.563 0 00-1.488-2.748zm-34.306-.736a28.875 28.875 0 01-2.445-1.677 1.564 1.564 0 00-1.898 2.483c.86.658 1.763 1.277 2.707 1.857a1.564 1.564 0 001.636-2.663zm43.154-6.9a23.147 23.147 0 01-1.846 2.27 1.563 1.563 0 002.296 2.12 26.196 26.196 0 002.095-2.576 1.563 1.563 0 00-2.545-1.814zm-51.609-1.204a23.97 23.97 0 01-1.445-2.55 1.563 1.563 0 00-2.809 1.37 26.926 26.926 0 001.635 2.884 1.563 1.563 0 002.619-1.704zm55.652-9.653a28.35 28.35 0 01-.491 2.906l-.003.012a1.563 1.563 0 103.052.674 31.64 31.64 0 00.546-3.229 1.563 1.563 0 00-3.104-.363zm-59.428-1.337a26.094 26.094 0 01-.094-2.946 1.563 1.563 0 00-3.124-.075c-.027 1.12.009 2.22.105 3.298a1.563 1.563 0 103.113-.277zm58.726-10.559c.222.981.403 1.966.544 2.951a1.562 1.562 0 103.093-.443 41.256 41.256 0 00-.588-3.195 1.565 1.565 0 00-1.868-1.181 1.565 1.565 0 00-1.181 1.868zm-57.266-1.141c.316-.976.664-1.91 1.041-2.805a1.564 1.564 0 00-.833-2.047 1.564 1.564 0 00-2.047.833 38.397 38.397 0 00-1.134 3.054 1.563 1.563 0 002.973.965zm52.753-9.864a30.957 30.957 0 011.484 2.577 1.563 1.563 0 002.779-1.429 33.99 33.99 0 00-1.633-2.838 1.564 1.564 0 00-2.63 1.69zM43 48.456a26.04 26.04 0 012.039-2.127 1.563 1.563 0 00-2.13-2.287 29.176 29.176 0 00-2.284 2.383A1.562 1.562 0 1043 48.456zm36.685-7.629a21.71 21.71 0 012.425 1.618 1.564 1.564 0 001.902-2.48 24.81 24.81 0 00-2.771-1.848 1.562 1.562 0 10-1.556 2.71zm-26.229.629c.9-.411 1.823-.78 2.766-1.111a1.563 1.563 0 10-1.034-2.949 35.549 35.549 0 00-3.031 1.218 1.563 1.563 0 001.299 2.842zm13.657-3.092c.999-.12 2.008-.211 3.024-.275a1.564 1.564 0 00-.196-3.119 56.831 56.831 0 00-3.2.291 1.563 1.563 0 00.372 3.103z"})]})]})}))}}}]); -//# sourceMappingURL=9854.e09a7916.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunknpwd_nui=self.webpackChunknpwd_nui||[]).push([[9854],{9854:function(a,c,l){l.r(c);var e=l(1413),m=(l(2791),l(9259)),n=l(184);c.default=function(a){return(0,n.jsx)(m.Z,(0,e.Z)((0,e.Z)({},a),{},{children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 132 132",children:[(0,n.jsx)("metadata",{id:"author",children:"dayiskuan@gmail.com"}),(0,n.jsx)("path",{fill:"none",d:"M0 0H131.067V131.086H0z"}),(0,n.jsxs)("g",{fill:a.htmlColor||"#000",children:[(0,n.jsx)("path",{d:"M52.583 20.24a29.644 29.644 0 00-5.373 2.022c-1.518.746-2.985 1.624-4.477 2.651-3.783-3.154-6.844-5.155-9.493-6.041-4.427-1.48-8.16-.682-12.132 3.053-3.33 3.132-4.375 6.147-3.905 9.586.45 3.295 2.928 7.401 7.382 13.358a60.256 60.256 0 00-1.661 3.549 63.595 63.595 0 00-2.295 6.229c-.461 1.485-.795 2.673-1.044 3.853-.055.263-.107.525-.154.79-5.248.765-9.367 1.858-12.165 3.678-3.798 2.47-5.846 6.07-5.393 11.887.379 4.86 1.499 7.122 2.647 8.334 1.049 1.108 2.274 1.708 3.79 1.999 1.038.198 2.367.118 4.035.547l.361.075s3.1.503 6.959.588c1.328.029 2.743.007 4.156-.096a46.725 46.725 0 001.995 3.457 48.413 48.413 0 002.122 3.075c-4.617 6.251-6.643 10.227-6.893 13.186-.288 3.403 1.06 6.119 4.426 9.056 4.049 3.536 6.939 4.464 9.66 4.012 1.483-.247 3.028-.937 4.76-2.226 2.017-1.502 4.512-4.022 8.217-7.481 2.038 1.117 4.416 2.018 6.283 2.491.337 3.157.568 5.665.902 7.619.479 2.811 1.271 4.75 2.376 6.079 1.76 2.116 4.461 3.265 9.478 2.758 6.381-.646 9.1-2.279 10.657-5.215 1.128-2.127 1.467-5.53 1.87-11.241a18.386 18.386 0 002.956-.998 19.246 19.246 0 002.6-1.377c4.161 3.666 6.945 5.734 9.299 6.559 3.632 1.274 6.74.525 11.527-2.857 4.415-3.119 5.539-6.925 4.971-10.904-.469-3.281-2.427-6.818-4.768-10.139 1.256-1.345 2.226-2.41 3.111-3.707a21.622 21.622 0 001.705-3.012c5.475-.592 9.564-1.09 12.359-2.737 3.13-1.844 5.244-4.845 5.75-10.699.503-5.812-1.665-8.984-5.416-10.986-2.609-1.392-6.413-2.039-11.076-2.533a33.378 33.378 0 00-2.401-6.112c-.878-1.714-1.923-3.394-3.204-5.231 3.224-4.458 5.457-8.329 6.275-11.806 1.074-4.565.168-8.684-3.696-12.716-2.776-2.896-6.201-3.804-10.179-3.017-3.786.748-8.312 3.395-13.19 7.359a43.16 43.16 0 00-3.867-2.367 42.887 42.887 0 00-4.75-2.182c-.691-6.533-.94-11.696-2.811-14.819-1.733-2.892-4.443-4.793-9.316-4.946-3.951-.124-6.835 1.497-8.964 4.435-2.092 2.887-3.323 7.532-4.006 13.16zm4.351 84.237c-1.731-.273-4.99-1.453-6.556-2.905h-.001a3.895 3.895 0 00-5.263-.026c-5.194 4.703-8.106 7.951-10.458 9.439-.327.207-.607.326-.891.321-.295-.005-.575-.136-.893-.33-.63-.385-1.331-1.006-2.235-1.799-.84-.738-1.459-1.34-1.642-2.097-.108-.445-.037-.933.189-1.527.932-2.443 3.211-5.604 6.902-10.363l.001-.001a3.962 3.962 0 00-.116-4.988 41.328 41.328 0 01-3.44-4.688 38.7 38.7 0 01-2.71-5.104l-.001-.002a3.983 3.983 0 00-4.327-2.322c-1.842.316-3.842.369-5.639.324a49.575 49.575 0 01-5.694-.483c-1.349-.331-2.912-.521-3.833-.613l-.016-.062c-.184-.75-.307-1.73-.402-3.008-.16-2.146.351-3.578 1.755-4.483 2.573-1.658 6.673-2.201 11.891-2.784h.002a4.077 4.077 0 003.604-3.752c.088-1.163.214-2.089.415-3.02.205-.953.487-1.911.866-3.11a55.555 55.555 0 012.025-5.417 52.008 52.008 0 012.58-5.145l.001-.002a4.122 4.122 0 00-.301-4.54c-3.461-4.567-5.908-7.771-6.959-10.397-.273-.685-.364-1.271-.208-1.827.168-.6.596-1.147 1.236-1.744 1.253-1.168 2.355-1.668 3.744-1.197 2.485.844 5.29 3.183 9.152 6.645l.002.002a4.226 4.226 0 005.414.178c2.01-1.56 3.85-2.807 5.811-3.761 1.891-.92 3.896-1.554 6.285-1.96l.002-.001a4.257 4.257 0 003.523-3.846v-.002c.353-4.402.838-8.257 2.061-10.94.548-1.202 1.215-2.117 2.499-2.082.862.023 1.5.181 1.963.531.439.333.696.831.883 1.453.929 3.098.879 7.563 1.564 12.895a4.153 4.153 0 002.748 3.398c2.378.829 4.24 1.584 6.052 2.55 1.746.931 3.445 2.055 5.523 3.599a4.122 4.122 0 005.193-.215l.001-.002c3.77-3.346 7.235-5.969 10.308-7.184 1.684-.667 3.16-.966 4.263.175 1.614 1.668 2.116 3.342 1.678 5.241-.748 3.248-3.27 6.812-6.567 11.193a4.008 4.008 0 00-.011 4.818c1.824 2.43 3.207 4.433 4.28 6.512 1.077 2.086 1.829 4.245 2.446 7.01a3.978 3.978 0 003.524 3.101c4.645.417 8.462.585 10.895 1.874 1.093.578 1.411 1.636 1.271 3.327-.199 2.398-.611 3.841-1.89 4.601-1.175.697-2.681 1.02-4.504 1.262-1.98.263-4.311.413-6.988.72a3.906 3.906 0 00-3.204 2.471l-.001.001c-.624 1.618-1.178 2.733-1.816 3.674-1.15 1.696-2.515 2.895-4.601 5.218a3.89 3.89 0 00-.183 4.989v.001c2.272 2.925 4.766 6.096 5.203 9.127.187 1.292-.329 2.456-1.762 3.47-.895.635-1.635 1.169-2.311 1.539-.764.419-1.41.61-2.179.342-2.193-.766-4.669-3.152-9.053-7.105a3.861 3.861 0 00-5.165-.01h-.001c-.895.803-1.998 1.589-3.317 2.164a10.658 10.658 0 01-3.712.88 3.854 3.854 0 00-3.639 3.574c-.265 3.688-.305 6.408-.525 8.426-.13 1.19-.31 2.108-.686 2.816-.187.352-.564.429-1.047.568-.927.266-2.095.426-3.566.572-.881.088-1.58.149-2.132.086-.236-.027-.432-.067-.582-.187-.152-.12-.241-.311-.323-.563-.781-2.397-.898-6.295-1.583-12.18v-.001a3.886 3.886 0 00-4.821-3.312h-.001zm-1.483 7.464l.001.013-.099.111s.038-.046.098-.124zm14.365-70.778l-.018-.002c-3.544-.205-9.371.35-14.628 3.078-4.292 2.226-8.225 5.823-10.383 11.482-2.145 5.598-2.435 13.592.431 20.091 2.684 6.083 7.943 10.996 16.875 11.714 6.379.549 12.44-.664 17.163-3.389 5.516-3.182 9.304-8.385 9.95-15.493.484-5.173.015-12.145-3.082-17.676-2.866-5.118-7.844-9.165-16.308-9.806v.001zm-.506 8.497l-.06-.001c4.954.285 8.001 2.431 9.729 5.393 2.335 4.004 2.582 9.13 2.292 12.918-.34 4.309-2.606 7.489-5.93 9.443-3.449 2.028-7.922 2.812-12.604 2.432-5.464-.478-8.734-3.416-10.338-7.156-1.953-4.557-1.646-10.14-.094-14.027 1.407-3.506 3.92-5.686 6.621-7.029 3.723-1.851 7.821-2.163 10.305-1.976l.079.003-.07-.002.07.002zm.165-1.036c-.06.52-.165 1.036-.165 1.036.547 0 .998-.419 1.043-.958a18.37 18.37 0 00-.878-.078z"}),(0,n.jsx)("path",{d:"M71.123 94.058c-.989.148-1.985.255-2.981.323a1.563 1.563 0 00.21 3.118c1.081-.073 2.16-.19 3.232-.35a1.563 1.563 0 00-.461-3.091zm-11.924-.183a31.736 31.736 0 01-2.899-.683 1.564 1.564 0 00-.86 3.005 35.07 35.07 0 003.183.75 1.563 1.563 0 00.576-3.072zm23.23-3.519c-.869.471-1.765.901-2.683 1.292a1.564 1.564 0 001.224 2.875 34.885 34.885 0 002.947-1.419 1.563 1.563 0 00-1.488-2.748zm-34.306-.736a28.875 28.875 0 01-2.445-1.677 1.564 1.564 0 00-1.898 2.483c.86.658 1.763 1.277 2.707 1.857a1.564 1.564 0 001.636-2.663zm43.154-6.9a23.147 23.147 0 01-1.846 2.27 1.563 1.563 0 002.296 2.12 26.196 26.196 0 002.095-2.576 1.563 1.563 0 00-2.545-1.814zm-51.609-1.204a23.97 23.97 0 01-1.445-2.55 1.563 1.563 0 00-2.809 1.37 26.926 26.926 0 001.635 2.884 1.563 1.563 0 002.619-1.704zm55.652-9.653a28.35 28.35 0 01-.491 2.906l-.003.012a1.563 1.563 0 103.052.674 31.64 31.64 0 00.546-3.229 1.563 1.563 0 00-3.104-.363zm-59.428-1.337a26.094 26.094 0 01-.094-2.946 1.563 1.563 0 00-3.124-.075c-.027 1.12.009 2.22.105 3.298a1.563 1.563 0 103.113-.277zm58.726-10.559c.222.981.403 1.966.544 2.951a1.562 1.562 0 103.093-.443 41.256 41.256 0 00-.588-3.195 1.565 1.565 0 00-1.868-1.181 1.565 1.565 0 00-1.181 1.868zm-57.266-1.141c.316-.976.664-1.91 1.041-2.805a1.564 1.564 0 00-.833-2.047 1.564 1.564 0 00-2.047.833 38.397 38.397 0 00-1.134 3.054 1.563 1.563 0 002.973.965zm52.753-9.864a30.957 30.957 0 011.484 2.577 1.563 1.563 0 002.779-1.429 33.99 33.99 0 00-1.633-2.838 1.564 1.564 0 00-2.63 1.69zM43 48.456a26.04 26.04 0 012.039-2.127 1.563 1.563 0 00-2.13-2.287 29.176 29.176 0 00-2.284 2.383A1.562 1.562 0 1043 48.456zm36.685-7.629a21.71 21.71 0 012.425 1.618 1.564 1.564 0 001.902-2.48 24.81 24.81 0 00-2.771-1.848 1.562 1.562 0 10-1.556 2.71zm-26.229.629c.9-.411 1.823-.78 2.766-1.111a1.563 1.563 0 10-1.034-2.949 35.549 35.549 0 00-3.031 1.218 1.563 1.563 0 001.299 2.842zm13.657-3.092c.999-.12 2.008-.211 3.024-.275a1.564 1.564 0 00-.196-3.119 56.831 56.831 0 00-3.2.291 1.563 1.563 0 00.372 3.103z"})]})]})}))}}}]); +//# sourceMappingURL=9854.7b6092aa.chunk.js.map \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.e09a7916.chunk.js.map b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.7b6092aa.chunk.js.map similarity index 99% rename from resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.e09a7916.chunk.js.map rename to resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.7b6092aa.chunk.js.map index b00de1e1d..ecbbc9030 100644 --- a/resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.e09a7916.chunk.js.map +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/9854.7b6092aa.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9854.e09a7916.chunk.js","mappings":"4JAyBA,UAtBwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBAAMD,EAAE,4kKACR,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/SETTINGS.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst SettingsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default SettingsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9854.7b6092aa.chunk.js","mappings":"4JAyBA,UAtBwB,SAACA,GACvB,OACE,SAAC,KAAD,kBAAaA,GAAb,cACE,iBACEC,MAAM,6BACNC,SAAS,UACTC,eAAe,QACfC,iBAAiB,IACjBC,SAAS,UACTC,QAAQ,cANV,WAQE,qBAAUC,GAAG,SAAb,kCACA,iBAAMC,KAAK,OAAOC,EAAE,6BACpB,eAAGD,KAAMR,EAAMU,WAAa,OAA5B,WACE,iBAAMD,EAAE,4kKACR,iBAAMA,EAAE","sources":["os/apps/icons/npwd_icons/svg/SETTINGS.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';\n\nconst SettingsAppIcon = (props: SvgIconProps) => {\n return (\n \n \n dayiskuan@gmail.com\n \n \n \n \n \n \n \n );\n};\n\nexport default SettingsAppIcon;\n"],"names":["props","xmlns","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","viewBox","id","fill","d","htmlColor"],"sourceRoot":""} \ No newline at end of file diff --git a/resources/[EGRP-Phone]/npwd/resources/html/static/js/main.23e596c0.js b/resources/[EGRP-Phone]/npwd/resources/html/static/js/main.23e596c0.js new file mode 100644 index 000000000..5a1c0640e --- /dev/null +++ b/resources/[EGRP-Phone]/npwd/resources/html/static/js/main.23e596c0.js @@ -0,0 +1,3 @@ +/*! For license information please see main.23e596c0.js.LICENSE.txt */ +!function(){var e={7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(u)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},9713:function(e){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e},e.exports.__esModule=!0,e.exports.default=e.exports},5318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6860:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},3884:function(e){e.exports=function(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,n,r=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(u){s=!0,n=u}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return r}},e.exports.__esModule=!0,e.exports.default=e.exports},521:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},8206:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},1109:function(e,t,a){var i=a(9713);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}e.exports=function(e){for(var t=1;t=0;d--){var c=n[d];"."===c?f(n,d):".."===c?(f(n,d),l++):l&&(f(n,d),l--)}if(!s)for(;l--;l)n.unshift("..");!s||""===n[0]||n[0]&&_(n[0])||n.unshift("");var g=n.join("/");return a&&"/"!==g.substr(-1)&&(g+="/"),g},c="Invariant failed";var g=function(e,t){if(!e)throw new Error(c)};function h(e){return"/"===e.charAt(0)?e:"/"+e}function F(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function E(e){var t=e.pathname,a=e.search,i=e.hash,n=t||"/";return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function b(e,t,a,i){var n;"string"===typeof e?(n=function(e){var t=e||"/",a="",i="",n=t.indexOf("#");-1!==n&&(i=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");return-1!==r&&(a=t.substr(r),t=t.substr(0,r)),{pathname:t,search:"?"===a?"":a,hash:"#"===i?"":i}}(e),n.state=t):(void 0===(n=l({},e)).pathname&&(n.pathname=""),n.search?"?"!==n.search.charAt(0)&&(n.search="?"+n.search):n.search="",n.hash?"#"!==n.hash.charAt(0)&&(n.hash="#"+n.hash):n.hash="",void 0!==t&&void 0===n.state&&(n.state=t));try{n.pathname=decodeURI(n.pathname)}catch(r){throw r instanceof URIError?new URIError('Pathname "'+n.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):r}return a&&(n.key=a),i?n.pathname?"/"!==n.pathname.charAt(0)&&(n.pathname=d(n.pathname,i.pathname)):n.pathname=i.pathname:n.pathname||(n.pathname="/"),n}function k(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,a,i,n){if(null!=e){var r="function"===typeof e?e(t,a):e;"string"===typeof r?"function"===typeof i?i(r,n):n(!0):n(!1!==r)}else n(!0)},appendListener:function(e){var a=!0;function i(){a&&e.apply(void 0,arguments)}return t.push(i),function(){a=!1,t=t.filter((function(e){return e!==i}))}},notifyListeners:function(){for(var e=arguments.length,a=new Array(e),i=0;it?a.splice(t,a.length-t,n):a.push(n),f({action:i,location:n,index:t,entries:a})}}))},replace:function(e,t){var i="REPLACE",n=b(e,t,d(),m.location);_.confirmTransitionTo(n,i,a,(function(e){e&&(m.entries[m.index]=n,f({action:i,location:n}))}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},canGo:function(e){var t=m.index+e;return t>=0&&t=0||(n[a]=e[a]);return n}r.Component;var pe=function(e){function t(){for(var t,a=arguments.length,i=new Array(a),n=0;n1&&(_=d.slice(0,-1).join("/"),f=d.pop()),f){var c=f.match(/^\d+/);c&&(f=c[0])}this._fromComponents({host:s,pass:o,path:_,projectId:f,port:l,protocol:i,user:n})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new qe("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new qe("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new qe("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new qe("Invalid Dsn: Invalid port "+this.port)},e}(),ze=a(8805),We=a(9153),He=a(9846),Ve=a(5708),Ke=[];function Ye(e){var t={};return function(e){var t=e.defaultIntegrations&&(0,Ie.fl)(e.defaultIntegrations)||[],a=e.integrations,i=[];if(Array.isArray(a)){var n=a.map((function(e){return e.name})),r=[];t.forEach((function(e){-1===n.indexOf(e.name)&&-1===r.indexOf(e.name)&&(i.push(e),r.push(e.name))})),a.forEach((function(e){-1===r.indexOf(e.name)&&(i.push(e),r.push(e.name))}))}else"function"===typeof a?(i=a(t),i=Array.isArray(i)?i:[i]):i=(0,Ie.fl)(t);var o=i.map((function(e){return e.name})),s="Debug";return-1!==o.indexOf(s)&&i.push.apply(i,(0,Ie.fl)(i.splice(o.indexOf(s),1))),i}(e).forEach((function(e){t[e.name]=e,function(e){-1===Ke.indexOf(e.name)&&(e.setupOnce(Re.c,Ae.Gd),Ke.push(e.name),Te.k.log("Integration installed: "+e.name))}(e)})),t}var $e,Je=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Ue(t.dsn))}return e.prototype.captureException=function(e,t,a){var i=this,n=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return i._captureEvent(e,t,a)})).then((function(e){n=e}))),n},e.prototype.captureMessage=function(e,t,a,i){var n=this,r=a&&a.event_id,o=(0,ze.pt)(e)?this._getBackend().eventFromMessage(String(e),t,a):this._getBackend().eventFromException(e,a);return this._process(o.then((function(e){return n._captureEvent(e,a,i)})).then((function(e){r=e}))),r},e.prototype.captureEvent=function(e,t,a){var i=t&&t.event_id;return this._process(this._captureEvent(e,t,a).then((function(e){i=e}))),i},e.prototype.captureSession=function(e){e.release?this._sendSession(e):Te.k.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(a){return t._getBackend().getTransport().close(e).then((function(e){return a&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Ye(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return Te.k.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var a,i,n,r=!1,o=!1,s=t.exception&&t.exception.values;if(s){o=!0;try{for(var u=(0,Ie.XA)(s),l=u.next();!l.done;l=u.next()){var _=l.value.mechanism;if(_&&!1===_.handled){r=!0;break}}}catch(g){a={error:g}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}}var f=t.user;if(!e.userAgent){var d=t.request?t.request.headers:{};for(var c in d)if("user-agent"===c.toLowerCase()){n=d[c];break}}e.update((0,Ie.pi)((0,Ie.pi)({},r&&{status:Be.$.Crashed}),{user:f,userAgent:n,errors:e.errors+Number(o||r)}))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new We.c((function(a){var i=0,n=setInterval((function(){0==t._processing?(clearInterval(n),a(!0)):(i+=1,e&&i>=e&&(clearInterval(n),a(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,a){var i=this,n=this.getOptions().normalizeDepth,r=void 0===n?3:n,o=(0,Ie.pi)((0,Ie.pi)({},e),{event_id:e.event_id||(a&&a.event_id?a.event_id:(0,Oe.DM)()),timestamp:e.timestamp||(0,He.yW)()});this._applyClientOptions(o),this._applyIntegrationsMetadata(o);var s=t;a&&a.captureContext&&(s=Re.s.clone(s).update(a.captureContext));var u=We.c.resolve(o);return s&&(u=s.applyToEvent(o,a)),u.then((function(e){return"number"===typeof r&&r>0?i._normalizeEvent(e,r):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var a=(0,Ie.pi)((0,Ie.pi)((0,Ie.pi)((0,Ie.pi)((0,Ie.pi)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,Ie.pi)((0,Ie.pi)({},e),e.data&&{data:(0,Ve.Fv)(e.data,t)})}))}),e.user&&{user:(0,Ve.Fv)(e.user,t)}),e.contexts&&{contexts:(0,Ve.Fv)(e.contexts,t)}),e.extra&&{extra:(0,Ve.Fv)(e.extra,t)});return e.contexts&&e.contexts.trace&&(a.contexts.trace=e.contexts.trace),a},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),a=t.environment,i=t.release,n=t.dist,r=t.maxValueLength,o=void 0===r?250:r;"environment"in e||(e.environment="environment"in t?a:"production"),void 0===e.release&&void 0!==i&&(e.release=i),void 0===e.dist&&void 0!==n&&(e.dist=n),e.message&&(e.message=(0,Le.$G)(e.message,o));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,Le.$G)(s.value,o));var u=e.request;u&&u.url&&(u.url=(0,Le.$G)(u.url,o))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,a=Object.keys(this._integrations);t&&a.length>0&&(t.integrations=a)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,a){return this._processEvent(e,t,a).then((function(e){return e.event_id}),(function(e){Te.k.error(e)}))},e.prototype._processEvent=function(e,t,a){var i=this,n=this.getOptions(),r=n.beforeSend,o=n.sampleRate;if(!this._isEnabled())return We.c.reject(new qe("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"===typeof o&&Math.random()>o?We.c.reject(new qe("Discarding event because it's not included in the random sample (sampling rate = "+o+")")):this._prepareEvent(e,a,t).then((function(e){if(null===e)throw new qe("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!r)return e;var a=r(e,t);if("undefined"===typeof a)throw new qe("`beforeSend` method has to return `null` or a valid event.");return(0,ze.J8)(a)?a.then((function(e){return e}),(function(e){throw new qe("beforeSend rejected with "+e)})):a})).then((function(e){if(null===e)throw new qe("`beforeSend` returned `null`, will not send event.");var t=a&&a.getSession&&a.getSession();return!s&&t&&i._updateSessionFromEvent(t,e),i._sendEvent(e),e})).then(null,(function(e){if(e instanceof qe)throw e;throw i.captureException(e,{data:{__sentry__:!0},originalException:e}),new qe("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}($e||($e={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}($e||($e={}));var Xe,Qe=function(){function e(){}return e.prototype.sendEvent=function(e){return We.c.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:$e.Skipped})},e.prototype.close=function(e){return We.c.resolve(!0)},e}(),et=function(){function e(e){this._options=e,this._options.dsn||Te.k.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new qe("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,a){throw new qe("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){Te.k.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){Te.k.error("Error while sending session: "+e)})):Te.k.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Qe},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(Xe||(Xe={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;default:return e.Log}}}(Xe||(Xe={}));var tt=a(4678),at="?",it=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ot=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,st=/\((\S*)(?::(\d+))(?::(\d+))\)/,ut=/Minified React error #\d+;/i;function lt(e){var t=null,a=0;e&&("number"===typeof e.framesToPop?a=e.framesToPop:ut.test(e.message)&&(a=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,a=e.stacktrace,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,n=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,r=a.split("\n"),o=[],s=0;s eval")>-1&&(t=ot.exec(a[3]))?(a[1]=a[1]||"eval",a[3]=t[1],a[4]=t[2],a[5]=""):0!==o||a[5]||void 0===e.columnNumber||(n[0].column=e.columnNumber+1),i={url:a[3],func:a[1]||at,args:a[2]?a[2].split(","):[],line:a[4]?+a[4]:null,column:a[5]?+a[5]:null}}!i.func&&i.line&&(i.func=at),n.push(i)}if(!n.length)return null;return{message:ft(e),name:e.name,stack:n}}(e),t)return _t(t,a)}catch(i){}return{message:ft(e),name:e&&e.name,stack:[],failed:!0}}function _t(e,t){try{return(0,Ie.pi)((0,Ie.pi)({},e),{stack:e.stack.slice(t)})}catch(a){return e}}function ft(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function dt(e){var t=gt(e.stack),a={type:e.name,value:e.message};return t&&t.length&&(a.stacktrace={frames:t}),void 0===a.type&&""===a.value&&(a.value="Unrecoverable error caught"),a}function ct(e){return{exception:{values:[dt(e)]}}}function gt(e){if(!e||!e.length)return[];var t=e,a=t[0].func||"",i=t[t.length-1].func||"";return-1===a.indexOf("captureMessage")&&-1===a.indexOf("captureException")||(t=t.slice(1)),-1!==i.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function ht(e,t,a){var i;if(void 0===a&&(a={}),(0,ze.VW)(e)&&e.error)return i=ct(lt(e=e.error));if((0,ze.TX)(e)||(0,ze.fm)(e)){var n=e,r=n.name||((0,ze.TX)(n)?"DOMError":"DOMException"),o=n.message?r+": "+n.message:r;return i=Ft(o,t,a),(0,Oe.Db)(i,o),"code"in n&&(i.tags=(0,Ie.pi)((0,Ie.pi)({},i.tags),{"DOMException.code":""+n.code})),i}return(0,ze.VZ)(e)?i=ct(lt(e)):(0,ze.PO)(e)||(0,ze.cO)(e)?(i=function(e,t,a){var i={exception:{values:[{type:(0,ze.cO)(e)?e.constructor.name:a?"UnhandledRejection":"Error",value:"Non-Error "+(a?"promise rejection":"exception")+" captured with keys: "+(0,Ve.zf)(e)}]},extra:{__serialized__:(0,Ve.Qy)(e)}};if(t){var n=gt(lt(t).stack);i.stacktrace={frames:n}}return i}(e,t,a.rejection),(0,Oe.EG)(i,{synthetic:!0}),i):(i=Ft(e,t,a),(0,Oe.Db)(i,""+e,void 0),(0,Oe.EG)(i,{synthetic:!0}),i)}function Ft(e,t,a){void 0===a&&(a={});var i={message:e};if(a.attachStacktrace&&t){var n=gt(lt(t).stack);i.stacktrace={frames:n}}return i}function mt(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function pt(e,t){var a=e.tags||{},i=a.__sentry_samplingMethod,n=a.__sentry_sampleRate,r=(0,Ie._T)(a,["__sentry_samplingMethod","__sentry_sampleRate"]);e.tags=r;var o="transaction"===e.type,s={body:JSON.stringify(e),type:e.type||"event",url:o?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(o){var u=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:i,rate:n}]})+"\n"+s.body;s.body=u}return s}var Et=function(){function e(e){this.dsn=e,this._dsnObject=new Ue(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",a=e.port?":"+e.port:"";return t+"//"+e.host+a+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var a=this._dsnObject,i=["Sentry sentry_version=7"];return i.push("sentry_client="+e+"/"+t),i.push("sentry_key="+a.user),a.pass&&i.push("sentry_secret="+a.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,a=this.getBaseApiEndpoint()+"embed/error-page/",i=[];for(var n in i.push("dsn="+t.toString()),e)if("dsn"!==n)if("user"===n){if(!e.user)continue;e.user.name&&i.push("name="+encodeURIComponent(e.user.name)),e.user.email&&i.push("email="+encodeURIComponent(e.user.email))}else i.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return i.length?a+"?"+i.join("&"):a},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return(0,Ve._j)(e)},e}(),bt=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()0&&a(!1)}),e);We.c.all(t._buffer).then((function(){clearTimeout(i),a(!0)})).then(null,(function(){a(!0)}))}))},e}(),kt=function(){function e(e){this.options=e,this._buffer=new bt(30),this._rateLimits={},this._api=new Et(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new qe("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,a=e.response,i=e.headers,n=e.resolve,r=e.reject,o=$e.fromHttpCode(a.status);this._handleRateLimit(i)&&Te.k.warn("Too many requests, backing off until: "+this._disabledUntil(t)),o!==$e.Success?r(a):n({status:o})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,a,i,n,r=Date.now(),o=e["x-sentry-rate-limits"],s=e["retry-after"];if(o){try{for(var u=(0,Ie.XA)(o.trim().split(",")),l=u.next();!l.done;l=u.next()){var _=l.value.split(":",2),f=parseInt(_[0],10),d=1e3*(isNaN(f)?60:f);try{for(var c=(i=void 0,(0,Ie.XA)(_[1].split(";"))),g=c.next();!g.done;g=c.next()){var h=g.value;this._rateLimits[h||"all"]=new Date(r+d)}}catch(F){i={error:F}}finally{try{g&&!g.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}}}catch(m){t={error:m}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(r+(0,Oe.JY)(r,s)),!0)},e}(),yt=(0,Oe.Rf)(),vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Ie.ZT)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(pt(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(mt(e,this._api),e)},t.prototype._sendRequest=function(e,t){var a=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var i={body:e.body,method:"POST",referrerPolicy:(0,tt.hv)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add(new We.c((function(t,n){yt.fetch(e.url,i).then((function(i){var r={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};a._handleResponse({requestType:e.type,response:i,headers:r,resolve:t,reject:n})})).catch(n)})))},t}(kt),Dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Ie.ZT)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(pt(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(mt(e,this._api),e)},t.prototype._sendRequest=function(e,t){var a=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new We.c((function(t,i){var n=new XMLHttpRequest;for(var r in n.onreadystatechange=function(){if(4===n.readyState){var r={"x-sentry-rate-limits":n.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":n.getResponseHeader("Retry-After")};a._handleResponse({requestType:e.type,response:n,headers:r,resolve:t,reject:i})}},n.open("POST",e.url),a.options.headers)a.options.headers.hasOwnProperty(r)&&n.setRequestHeader(r,a.options.headers[r]);n.send(e.body)})))},t}(kt),wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Ie.ZT)(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,a){var i=ht(t,a&&a.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return(0,Oe.EG)(i,{handled:!0,type:"generic"}),i.level=Xe.Error,a&&a.event_id&&(i.event_id=a.event_id),We.c.resolve(i)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,a){return void 0===t&&(t=Xe.Info),function(e,t,a,i){void 0===a&&(a=Xe.Info);var n=Ft(t,i&&i.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return n.level=a,i&&i.event_id&&(n.event_id=i.event_id),We.c.resolve(n)}(this._options,e,t,a)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=(0,Ie.pi)((0,Ie.pi)({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):(0,tt.Ak)()?new vt(t):new Dt(t)},t}(et);function St(e){for(var t=[],a=1;a0}function It(){Tt+=1,setTimeout((function(){Tt-=1}))}function Rt(e,t,a){if(void 0===t&&(t={}),"function"!==typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(r){return e}var i=function(){var i=Array.prototype.slice.call(arguments);try{a&&"function"===typeof a&&a.apply(this,arguments);var n=i.map((function(e){return Rt(e,t)}));return e.handleEvent?e.handleEvent.apply(this,n):e.apply(this,n)}catch(r){throw It(),At((function(e){e.addEventProcessor((function(e){var a=(0,Ie.pi)({},e);return t.mechanism&&((0,Oe.Db)(a,void 0,void 0),(0,Oe.EG)(a,t.mechanism)),a.extra=(0,Ie.pi)((0,Ie.pi)({},a.extra),{arguments:i}),a})),Ct(r)})),r}};try{for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}catch(o){}e.prototype=e.prototype||{},i.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(o){}return i}function Ot(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new Et(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else Te.k.error("Missing dsn option in showReportDialog call");else Te.k.error("Missing eventId option in showReportDialog call")}var Lt=a(2034),Nt=a(4044),Pt=function(){function e(t){this.name=e.id,this._options=(0,Ie.pi)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,Ae.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,Oe.jH)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&(0,Lt.o)({callback:function(){for(var t=[],a=0;a"}0!==t.length&&(0,Ae.Gd)().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},a=t.method,i=t.url,n=t.status_code,r=t.body;(0,Ae.Gd)().addBreadcrumb({category:"xhr",data:{method:a,url:i,status_code:n},type:"http"},{xhr:e.xhr,input:r})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,Ae.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:Xe.Error,type:"http"},{data:e.error,input:e.args}):(0,Ae.Gd)().addBreadcrumb({category:"fetch",data:(0,Ie.pi)((0,Ie.pi)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,Oe.Rf)(),a=e.from,i=e.to,n=(0,Oe.en)(t.location.href),r=(0,Oe.en)(a),o=(0,Oe.en)(i);r.path||(r=n),n.protocol===o.protocol&&n.host===o.host&&(i=o.relative),n.protocol===r.protocol&&n.host===r.host&&(a=r.relative),(0,Ae.Gd)().addBreadcrumb({category:"navigation",data:{from:a,to:i}})},e.id="Breadcrumbs",e}(),jt="5.30.0",Bt=function(e){function t(t){return void 0===t&&(t={}),e.call(this,wt,t)||this}return(0,Ie.ZT)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,Oe.Rf)().document&&(this._isEnabled()?Ot((0,Ie.pi)((0,Ie.pi)({},e),{dsn:e.dsn||this.getDsn()})):Te.k.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,a,i){return t.platform=t.platform||"javascript",t.sdk=(0,Ie.pi)((0,Ie.pi)({},t.sdk),{name:"sentry.javascript.browser",packages:(0,Ie.fl)(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:jt}]),version:jt}),e.prototype._prepareEvent.call(this,t,a,i)},t.prototype._sendEvent=function(t){var a=this.getIntegration(Pt);a&&a.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Je),Mt=a(8578),qt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Gt=function(){function e(t){this.name=e.id,this._options=(0,Ie.pi)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,Oe.Rf)();(this._options.setTimeout&&(0,Ve.hl)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&(0,Ve.hl)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&(0,Ve.hl)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,Ve.hl)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:qt).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],a=0;a0?t:(0,Oe.l4)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:n,filename:o,function:"?",in_app:!0,lineno:r}),e},e.id="GlobalHandlers",e}(),Ut=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){(0,Re.c)((function(t,a){var i=(0,Ae.Gd)().getIntegration(e);return i?i._handler(t,a):t}))},e.prototype._handler=function(e,t){if(!e.exception||!e.exception.values||!t||!(0,ze.V9)(t.originalException,Error))return e;var a=this._walkErrorTree(t.originalException,this._key);return e.exception.values=(0,Ie.fl)(a,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,a){if(void 0===a&&(a=[]),!(0,ze.V9)(e[t],Error)||a.length+1>=this._limit)return a;var i=dt(lt(e[t]));return this._walkErrorTree(e[t],t,(0,Ie.fl)([i],a))},e.id="LinkedErrors",e}(),zt=(0,Oe.Rf)(),Wt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){(0,Re.c)((function(t){var a,i,n;if((0,Ae.Gd)().getIntegration(e)){if(!zt.navigator&&!zt.location&&!zt.document)return t;var r=(null===(a=t.request)||void 0===a?void 0:a.url)||(null===(i=zt.location)||void 0===i?void 0:i.href),o=(zt.document||{}).referrer,s=(zt.navigator||{}).userAgent,u=(0,Ie.pi)((0,Ie.pi)((0,Ie.pi)({},null===(n=t.request)||void 0===n?void 0:n.headers),o&&{Referer:o}),s&&{"User-Agent":s}),l=(0,Ie.pi)((0,Ie.pi)({},r&&{url:r}),{headers:u});return(0,Ie.pi)((0,Ie.pi)({},t),{request:l})}return t}))},e.id="UserAgent",e}(),Ht=[new Pe,new je,new Gt,new Pt,new Zt,new Ut,new Wt];var Vt,Kt=(0,Oe.Rf)();function Yt(e,t,a,i){function n(e){if(a===[]||!i)return e;for(var t=$t(a,e,i),n=0;n=0&&(i||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(n||0),(t.delta||t.isFinal||void 0===n)&&(e(t),n=t.value))}},ra=function(e,t){return void 0===t&&(t=-1),{name:e,value:t,delta:0,entries:[],id:Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12),isFinal:!1}},oa=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var a=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return a.observe({type:e,buffered:!0}),a}}catch(i){}},sa=!1,ua=!1,la=function(e){sa=!e.persisted},_a=function(e,t){void 0===t&&(t=!1),ua||(addEventListener("pagehide",la),addEventListener("beforeunload",(function(){})),ua=!0),addEventListener("visibilitychange",(function(t){var a=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:a,isUnloading:sa})}),{capture:!0,once:t})},fa=function(){return void 0===aa&&(aa="hidden"===document.visibilityState?0:1/0,_a((function(e){var t=e.timeStamp;return aa=t}),!0)),{get timeStamp(){return aa}}},da=function(e,t){void 0===t&&(t=!1);var a,i=ra("LCP"),n=fa(),r=function(e){var t=e.startTime;t-1&&(i=c)}})),void 0!==i&&void 0!==n&&pa(e,{description:"evaluation",endTimestamp:n,op:"script",startTimestamp:i}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var s=(0,ea.XL)(He.Z1);["fcp","fp","lcp","ttfb"].forEach((function(a){if(t._measurements[a]&&!(s>=e.startTimestamp)){var i=t._measurements[a].value,n=s+(0,ea.XL)(i),r=Math.abs(1e3*(n-e.startTimestamp)),o=r-i;Te.k.log("[Measurements] Normalized "+a+" from "+i+" to "+r+" ("+o+")"),t._measurements[a].value=r}})),this._measurements["mark.fid"]&&this._measurements.fid&&pa(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,ea.XL)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),e.setMeasurements(this._measurements)}}},e.prototype._trackCLS=function(){var e=this;!function(e,t){void 0===t&&(t=!1);var a,i=ra("CLS",0),n=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),a())},r=oa("layout-shift",n);r&&(a=na(e,i,r,t),_a((function(e){var t=e.isUnloading;r.takeRecords().map(n),t&&(i.isFinal=!0),a()})))}((function(t){t.entries.pop()&&(Te.k.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value})}))},e.prototype._trackNavigator=function(e){var t=ha.navigator;if(t){var a=t.connection;a&&(a.effectiveType&&e.setTag("effectiveConnectionType",a.effectiveType),a.type&&e.setTag("connectionType",a.type),Ea(a.rtt)&&(this._measurements["connection.rtt"]={value:a.rtt}),Ea(a.downlink)&&(this._measurements["connection.downlink"]={value:a.downlink})),Ea(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),Ea(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(){var e=this;da((function(t){var a=t.entries.pop();if(a){var i=(0,ea.XL)(performance.timeOrigin),n=(0,ea.XL)(a.startTime);Te.k.log("[Measurements] Adding LCP"),e._measurements.lcp={value:t.value},e._measurements["mark.lcp"]={value:i+n}}}))},e.prototype._trackFID=function(){var e=this;!function(e){var t=ra("FID"),a=fa(),i=function(e){e.startTimea&&(e.startTimestamp=a),e.startChild((0,Ie.pi)({startTimestamp:a},i))}function Ea(e){return"number"===typeof e&&isFinite(e)}var ba={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function ka(e){var t=(0,Ie.pi)((0,Ie.pi)({},ba),e),a=t.traceFetch,i=t.traceXHR,n=t.tracingOrigins,r=t.shouldCreateSpanForRequest,o={},s=function(e){if(o[e])return o[e];var t=n;return o[e]=t.some((function(t){return(0,Le.zC)(e,t)}))&&!(0,Le.zC)(e,"sentry_key"),o[e]},u=s;"function"===typeof r&&(u=function(e){return s(e)&&r(e)});var l={};a&&(0,Lt.o)({callback:function(e){!function(e,t,a){var i,n=null===(i=(0,Ae.Gd)().getClient())||void 0===i?void 0:i.getOptions();if(!n||!(0,ea.zu)(n)||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp&&e.fetchData.__span){if(s=a[e.fetchData.__span]){var r=e.response;r&&s.setHttpStatus(r.status),s.finish(),delete a[e.fetchData.__span]}return}var o=(0,ea.x1)();if(o){var s=o.startChild({data:(0,Ie.pi)((0,Ie.pi)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http"});e.fetchData.__span=s.spanId,a[s.spanId]=s;var u=e.args[0]=e.args[0],l=e.args[1]=e.args[1]||{},_=l.headers;(0,ze.V9)(u,Request)&&(_=u.headers),_?"function"===typeof _.append?_.append("sentry-trace",s.toTraceparent()):_=Array.isArray(_)?(0,Ie.fl)(_,[["sentry-trace",s.toTraceparent()]]):(0,Ie.pi)((0,Ie.pi)({},_),{"sentry-trace":s.toTraceparent()}):_={"sentry-trace":s.toTraceparent()},l.headers=_}}(e,u,l)},type:"fetch"}),i&&(0,Lt.o)({callback:function(e){!function(e,t,a){var i,n=null===(i=(0,Ae.Gd)().getClient())||void 0===i?void 0:i.getOptions();if(!n||!(0,ea.zu)(n)||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url))||e.xhr.__sentry_own_request__)return;var r=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__){return void((s=a[e.xhr.__sentry_xhr_span_id__])&&(s.setHttpStatus(r.status_code),s.finish(),delete a[e.xhr.__sentry_xhr_span_id__]))}var o=(0,ea.x1)();if(o){var s=o.startChild({data:(0,Ie.pi)((0,Ie.pi)({},r.data),{type:"xhr",method:r.method,url:r.url}),description:r.method+" "+r.url,op:"http"});if(e.xhr.__sentry_xhr_span_id__=s.spanId,a[e.xhr.__sentry_xhr_span_id__]=s,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",s.toTraceparent())}catch(u){}}}(e,u,l)},type:"xhr"})}var ya=(0,Oe.Rf)();var va=(0,Ie.pi)({idleTimeout:Xt.nT,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,a){if(void 0===t&&(t=!0),void 0===a&&(a=!0),ya&&ya.location){var i,n=ya.location.href;t&&(i=e({name:ya.location.pathname,op:"pageload"})),a&&(0,Lt.o)({callback:function(t){var a=t.to,r=t.from;void 0===r&&n&&-1!==n.indexOf(a)?n=void 0:r!==a&&(n=void 0,i&&(Te.k.log("[Tracing] Finishing current transaction with op: "+i.op),i.finish()),i=e({name:ya.location.pathname,op:"navigation"}))},type:"history"})}else Te.k.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},ba),Da=function(){function e(t){this.name=e.id,this._metrics=new Fa,this._emitOptionsWarning=!1;var a=ba.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?a=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=(0,Ie.pi)((0,Ie.pi)((0,Ie.pi)({},va),t),{tracingOrigins:a})}return e.prototype.setupOnce=function(e,t){var a=this;this._getCurrentHub=t,this._emitOptionsWarning&&(Te.k.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),Te.k.warn("[Tracing] We added a reasonable default for you: "+ba.tracingOrigins));var i=this.options,n=i.routingInstrumentation,r=i.startTransactionOnLocationChange,o=i.startTransactionOnPageLoad,s=i.markBackgroundTransactions,u=i.traceFetch,l=i.traceXHR,_=i.tracingOrigins,f=i.shouldCreateSpanForRequest;n((function(e){return a._createRouteTransaction(e)}),o,r),s&&(ta&&ta.document?ta.document.addEventListener("visibilitychange",(function(){var e=(0,ea.x1)();ta.document.hidden&&e&&(Te.k.log("[Tracing] Transaction: "+Qt.p.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(Qt.p.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):Te.k.warn("[Tracing] Could not set up background tab detection due to lack of global document")),ka({traceFetch:u,traceXHR:l,tracingOrigins:_,shouldCreateSpanForRequest:f})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var a=this.options,i=a.beforeNavigate,n=a.idleTimeout,r=a.maxTransactionDuration,o="pageload"===e.op?function(){var e=function(e){var t=document.querySelector("meta[name="+e+"]");return t?t.getAttribute("content"):null}("sentry-trace");if(e)return(0,ea.qG)(e);return}():void 0,s=(0,Ie.pi)((0,Ie.pi)((0,Ie.pi)({},e),o),{trimEnd:!0}),u="function"===typeof i?i(s):s,l=void 0===u?(0,Ie.pi)((0,Ie.pi)({},s),{sampled:!1}):u;!1===l.sampled&&Te.k.log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate.");var _=this._getCurrentHub(),f=(0,Jt.lb)(_,l,n,!0);return Te.k.log("[Tracing] Starting "+l.op+" transaction on scope"),f.registerBeforeFinishCallback((function(e,a){t._metrics.addPerformanceEntries(e),function(e,t,a){var i=a-t.startTimestamp;a&&(i>e||i<0)&&(t.setStatus(Qt.p.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}((0,ea.WB)(r),e,a)})),f}Te.k.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();var wa=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){this._router?function(e,t){void 0===t&&(t=[]);t.forEach((function(t){return function(e,t){var a=e[t];return e[t]=function(){for(var e=[],i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function ii(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ni(e,t,a,i,n,r,o){try{var s=e[r](o),u=s.value}catch(l){return void a(l)}s.done?t(u):Promise.resolve(u).then(i,n)}function ri(e){return function(){var t=this,a=arguments;return new Promise((function(i,n){var r=e.apply(t,a);function o(e){ni(r,i,n,o,s,"next",e)}function s(e){ni(r,i,n,o,s,"throw",e)}o(void 0)}))}}function oi(e){return oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oi(e)}function si(e,t){return si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},si(e,t)}function ui(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function li(e,t,a){return li=ui()?Reflect.construct:function(e,t,a){var i=[null];i.push.apply(i,t);var n=new(Function.bind.apply(e,i));return a&&si(n,a.prototype),n},li.apply(null,arguments)}function _i(e){var t="function"===typeof Map?new Map:void 0;return _i=function(e){if(null===e||(a=e,-1===Function.toString.call(a).indexOf("[native code]")))return e;var a;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return li(e,arguments,oi(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),si(i,e)},_i(e)}function fi(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&si(e,t)}function di(e){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},di(e)}function ci(e,t){if(t&&("object"===di(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ii(e)}function gi(e){var t=ui();return function(){var a,i=oi(e);if(t){var n=oi(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return ci(this,a)}}function hi(e,t){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=(0,Xa.Z)(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function Fi(e,t){for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{};return a.error,null},Ui=Zi;var zi=function(e,t){var a=new Set(e);return a.add(t),a};function Wi(e,t){var a,i,n,r;return bi().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:a=0,i=hi(e),o.prev=2,i.s();case 4:if((n=i.n()).done){o.next=11;break}if(r=n.value,!t(r,a++)){o.next=9;break}return o.next=9,r;case 9:o.next=4;break;case 11:o.next=16;break;case 13:o.prev=13,o.t0=o.catch(2),i.e(o.t0);case 16:return o.prev=16,i.f(),o.finish(16);case 19:case"end":return o.stop()}}),Di,null,[[2,13,16,19]])}var Hi=Wi;var Vi=function(e,t){return bi().mark((function a(){var i,n,r,o;return bi().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:i=0,n=hi(e),a.prev=2,n.s();case 4:if((r=n.n()).done){a.next=10;break}return o=r.value,a.next=8,t(o,i++);case 8:a.next=4;break;case 10:a.next=15;break;case 12:a.prev=12,a.t0=a.catch(2),n.e(a.t0);case 15:return a.prev=15,n.f(),a.finish(15);case 18:case"end":return a.stop()}}),a,null,[[2,12,15,18]])}))()};var Ki=function(e){};function Yi(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var $i=mi((function e(t){pi(this,e),Yi(this,"key",void 0),this.key=t})),Ji=function(e){fi(a,e);var t=gi(a);function a(){return pi(this,a),t.apply(this,arguments)}return mi(a)}($i),Xi=function(e){fi(a,e);var t=gi(a);function a(){return pi(this,a),t.apply(this,arguments)}return mi(a)}($i);var Qi={AbstractRecoilValue:$i,RecoilState:Ji,RecoilValueReadOnly:Xi,isRecoilValue:function(e){return e instanceof Ji||e instanceof Xi}},en=Qi.AbstractRecoilValue,tn=Qi.RecoilState,an=Qi.RecoilValueReadOnly,nn=Qi.isRecoilValue,rn=Object.freeze({__proto__:null,AbstractRecoilValue:en,RecoilState:tn,RecoilValueReadOnly:an,isRecoilValue:nn}),on=mi((function e(){pi(this,e)})),sn=new on,un=function(e){fi(a,e);var t=gi(a);function a(e){return pi(this,a),t.call(this,"Tried to set the value of Recoil selector ".concat(e," using an updater function, but it is an async selector in a pending or error state; this is not supported."))}return mi(a)}(_i(Error)),ln=new Map,_n=new Map;var fn=function(e){fi(a,e);var t=gi(a);function a(){return pi(this,a),t.apply(this,arguments)}return mi(a)}(_i(Error));var dn=new Map;function cn(e){return dn.get(e)}var gn={nodes:ln,recoilValues:_n,registerNode:function(e){if(ln.has(e.key)){var t='Duplicate atom key "'.concat(e.key,'". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.');console.warn(t)}ln.set(e.key,e);var a=null==e.set?new rn.RecoilValueReadOnly(e.key):new rn.RecoilState(e.key);return _n.set(e.key,a),a},getNode:function(e){var t=ln.get(e);if(null==t)throw new fn('Missing definition for RecoilValue: "'.concat(e,'""'));return t},getNodeMaybe:function(e){return ln.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(Gi("recoil_memory_managament_2020")){var a,i=ln.get(e);if(null===i||void 0===i||null===(t=i.shouldDeleteConfigOnRelease)||void 0===t?void 0:t.call(i))ln.delete(e),null===(a=cn(e))||void 0===a||a(),dn.delete(e)}},setConfigDeletionHandler:function(e,t){Gi("recoil_memory_managament_2020")&&(void 0===t?dn.delete(e):dn.set(e,t))},getConfigDeletionHandler:cn,recoilValuesForKeys:function(e){return Vi(e,(function(e){return Ci(_n.get(e))}))},NodeMissingError:fn,DefaultValue:on,DEFAULT_VALUE:sn,RecoilValueNotReady:un},hn=mi((function e(){pi(this,e)}));var Fn={RetentionZone:hn,retentionZone:function(){return new hn}},mn=zi,pn=gn.getNode,En=gn.getNodeMaybe,bn=gn.recoilValuesForKeys,kn=Fn.RetentionZone,yn=Object.freeze(new Set),vn=function(e){fi(a,e);var t=gi(a);function a(){return pi(this,a),t.apply(this,arguments)}return mi(a)}(_i(Error));function Dn(e,t,a,i){var n=e.getState();if(!n.nodeCleanupFunctions.has(a)){var r=pn(a),o=function(e,t,a){if(!Gi("recoil_memory_managament_2020"))return function(){};var i=e.getState().retention.nodesRetainedByZone;function n(e){var a=i.get(e);a||i.set(e,a=new Set),a.add(t)}if(a instanceof kn)n(a);else if(Array.isArray(a)){var r,o=hi(a);try{for(o.s();!(r=o.n()).done;)n(r.value)}catch(s){o.e(s)}finally{o.f()}}return function(){if(Gi("recoil_memory_managament_2020")){var i=e.getState().retention.nodesRetainedByZone;if(a instanceof kn)o(a);else if(Array.isArray(a)){var n,r=hi(a);try{for(r.s();!(n=r.n()).done;)o(n.value)}catch(s){r.e(s)}finally{r.f()}}}function o(e){var a=i.get(e);a&&a.delete(t),a&&0===a.size&&i.delete(e)}}}(e,a,r.retainedBy),s=r.init(e,t,i);n.nodeCleanupFunctions.set(a,(function(){s(),o()}))}}function wn(e,t,a){return pn(a).peek(e,t)}function Sn(e,t,a){for(var i=new Set,n=Array.from(a),r=e.getGraph(t.version),o=n.pop();o;o=n.pop()){var s;i.add(o);var u,l=hi(null!==(s=r.nodeToNodeSubscriptions.get(o))&&void 0!==s?s:yn);try{for(l.s();!(u=l.n()).done;){var _=u.value;i.has(_)||n.push(_)}}catch(f){l.e(f)}finally{l.f()}}return i}var Cn=function(e,t,a){return Dn(e,t,a,"get"),pn(a).get(e,t)},An=wn,Tn=function(e,t,a,i){var n=pn(a);if(null==n.set)throw new vn("Attempt to set read-only RecoilValue: ".concat(a));var r=n.set;return Dn(e,t,a,"set"),r(e,t,i)},xn=function(e,t){var a,i=e.getState();null===(a=i.nodeCleanupFunctions.get(t))||void 0===a||a(),i.nodeCleanupFunctions.delete(t)},In=function(e,t,a){var i,n=En(t);return null===n||void 0===n||null===(i=n.invalidate)||void 0===i||i.call(n,e),(0,Ha.Z)((0,Ha.Z)({},e),{},{atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,a),dirtyAtoms:mn(e.dirtyAtoms,t)})},Rn=function(e,t,a){var i,n,r,o=e.getState(),s=e.getGraph(t.version),u=o.knownAtoms.has(a)?"atom":o.knownSelectors.has(a)?"selector":void 0,l=Hi(Sn(e,t,new Set([a])),(function(e){return e!==a}));return{loadable:wn(e,t,a),isActive:o.knownAtoms.has(a)||o.knownSelectors.has(a),isSet:"selector"!==u&&t.atomValues.has(a),isModified:t.dirtyAtoms.has(a),type:u,deps:bn(null!==(i=s.nodeDeps.get(a))&&void 0!==i?i:[]),subscribers:{nodes:bn(l),components:Vi(null!==(n=null===(r=o.nodeToComponentSubscriptions.get(a))||void 0===r?void 0:r.values())&&void 0!==n?n:[],(function(e){return{name:(0,Ka.Z)(e,1)[0]}}))}}},On=Sn,Ln=Dn,Nn=Ni.CANCELED,Pn=On,jn=Cn,Bn=Tn,Mn=gn.getNodeMaybe,qn=gn.DefaultValue,Gn=gn.RecoilValueNotReady,Zn=rn.AbstractRecoilValue,Un=rn.RecoilState,zn=rn.RecoilValueReadOnly,Wn=rn.isRecoilValue;function Hn(e,t,a){if("set"===a.type){var i,n=a.recoilValue,r=function(e,t,a,i){var n=a.key;if("function"===typeof i){var r=jn(e,t,n);if("loading"===r.state)throw new Gn(n);if("hasError"===r.state)throw r.contents;return i(r.contents)}return i}(e,t,n,a.valueOrUpdater),o=hi(Bn(e,t,n.key,r).entries());try{for(o.s();!(i=o.n()).done;){var s=(0,Ka.Z)(i.value,2);Vn(t,s[0],s[1])}}catch(c){o.e(c)}finally{o.f()}}else if("setLoadable"===a.type){Vn(t,a.recoilValue.key,a.loadable)}else if("markModified"===a.type){var u=a.recoilValue.key;t.dirtyAtoms.add(u)}else if("setUnvalidated"===a.type){var l,_=a.recoilValue.key,f=a.unvalidatedValue,d=Mn(_);null===d||void 0===d||null===(l=d.invalidate)||void 0===l||l.call(d,t),t.atomValues.delete(_),t.nonvalidatedAtoms.set(_,f),t.dirtyAtoms.add(_)}else Ui("Unknown action ".concat(a.type))}function Vn(e,t,a){"hasValue"===a.state&&a.contents instanceof qn?e.atomValues.delete(t):e.atomValues.set(t,a),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function Kn(e,t){e.replaceState((function(a){var i,n=Jn(a),r=hi(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;Hn(e,n,o)}}catch(s){r.e(s)}finally{r.f()}return Xn(e,n),n}))}function Yn(e,t){if($n.length){var a=$n[$n.length-1],i=a.get(e);i||a.set(e,i=[]),i.push(t)}else Kn(e,[t])}var $n=[];function Jn(e){return(0,Ha.Z)((0,Ha.Z)({},e),{},{atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)})}function Xn(e,t){var a,i=hi(Pn(e,t,t.dirtyAtoms));try{for(i.s();!(a=i.n()).done;){var n,r,o=a.value;null===(n=Mn(o))||void 0===n||null===(r=n.invalidate)||void 0===r||r.call(n,t)}}catch(s){i.e(s)}finally{i.f()}}function Qn(e,t,a){Yn(e,{type:"set",recoilValue:t,valueOrUpdater:a})}var er=0;var tr={RecoilValueReadOnly:zn,AbstractRecoilValue:Zn,RecoilState:Un,getRecoilValueAsLoadable:function(e,t){var a,i,n=t.key,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getState().currentTree,o=e.getState();r.version!==o.currentTree.version&&r.version!==(null===(a=o.nextTree)||void 0===a?void 0:a.version)&&r.version!==(null===(i=o.previousTree)||void 0===i?void 0:i.version)&&Ui("Tried to read from a discarded tree");var s=jn(e,r,n);return"loading"===s.state&&s.contents.catch((function(){return Nn})),s},setRecoilValue:Qn,setRecoilValueLoadable:function(e,t,a){if(a instanceof qn)return Qn(e,t,a);Yn(e,{type:"setLoadable",recoilValue:t,loadable:a})},markRecoilValueModified:function(e,t){Yn(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,a){Yn(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:a})},subscribeToRecoilValue:function(e,t,a){var i=t.key,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=er++,o=e.getState();if(o.nodeToComponentSubscriptions.has(i)||o.nodeToComponentSubscriptions.set(i,new Map),Ci(o.nodeToComponentSubscriptions.get(i)).set(r,[null!==n&&void 0!==n?n:"",a]),Gi("recoil_early_rendering_2021")){var s=e.getState().nextTree;s&&s.dirtyAtoms.has(i)&&a(s)}return{release:function(){var t=e.getState(),a=t.nodeToComponentSubscriptions.get(i);void 0!==a&&a.has(r)?(a.delete(r),0===a.size&&t.nodeToComponentSubscriptions.delete(i)):Ui("Subscription missing at release time for atom ".concat(i,". This is a bug in Recoil."))}}},isRecoilValue:Wn,applyAtomValueWrites:function(e,t){var a=e.clone();return t.forEach((function(e,t){"hasValue"===e.state&&e.contents instanceof qn?a.delete(t):a.set(t,e)})),a},batchStart:function(){var e=new Map;return $n.push(e),function(){var t,a=hi(e);try{for(a.s();!(t=a.n()).done;){var i=(0,Ka.Z)(t.value,2);Kn(i[0],i[1])}}catch(n){a.e(n)}finally{a.f()}$n.pop()!==e&&Ui("Incorrect order of batch popping")}},writeLoadableToTreeState:Vn,invalidateDownstreams:Xn,copyTreeState:Jn,invalidateDownstreams_FOR_TESTING:Xn},ar=o.unstable_batchedUpdates,ir=tr.batchStart,nr={unstable_batchedUpdates:{unstable_batchedUpdates:ar}.unstable_batchedUpdates}.unstable_batchedUpdates,rr=function(e){nr=e},or=function(e){nr((function(){var t=function(){};try{t=ir(),e()}finally{t()}}))};var sr={enqueueExecution:function(e,t){t()}};var ur=function(e){for(var t=new Set,a=arguments.length,i=new Array(a>1?a-1:0),n=1;n>>e&n},f=function(e){return 1<>1&1431655765))+(a>>2&858993459))+(a>>4)&252645135,127&(a+=a>>8)+(a>>16);var a},c=function(e,t,a,i){var n=i;if(!e){var r=i.length;n=new Array(r);for(var o=0;o1?p(e,this.hash,u):u[0]}var l=i();return l===s?this:(++o.value,k(e,a,this.hash,this,n,m(e,n,r,l)))},w=function(e,t,a,i,n,o,s){var u=this.mask,l=this.children,m=_(a,n),p=f(m),k=d(u,p),v=u&p,D=v?l[k]:h,w=D._modify(e,t,a+5,i,n,o,s);if(D===w)return this;var S,C=y(e,this),A=u,T=void 0;if(v&&F(w)){if(!(A&=~p))return h;if(l.length<=2&&((S=l[1^k])===h||1===S.type||2===S.type))return l[1^k];T=g(C,k,l)}else if(v||F(w))T=c(C,k,w,l);else{if(l.length>=r)return function(e,t,a,i,n){for(var r=[],o=i,s=0,u=0;o;++u)1&o&&(r[u]=n[s++]),o>>>=1;return r[t]=a,b(e,s+1,r)}(e,m,w,u,l);A|=p,T=function(e,t,a,i){var n=i.length;if(e){for(var r=n;r>=t;)i[r--]=i[r];return i[t]=a,i}for(var o=0,s=0,u=new Array(n+1);o0;)u(Ci(a.values().next().value));return o;function u(e){if(i.has(e)||n.has(e))a.delete(e);else if(!s.has(e)){var t=r.nodeToNodeSubscriptions.get(e);if(t){var l,_=hi(t);try{for(_.s();!(l=_.n()).done;){u(l.value)}}catch(g){_.e(g)}finally{_.f()}}s.add(e),a.delete(e),o.push(e)}}}(e,i,t,r,o),f=hi(_);try{for(f.s();!(u=f.n()).done;){var d,c=u.value;if("recoilRoot"!==Rr(c).retainedBy)if((null!==(d=a.retention.referenceCounts.get(c))&&void 0!==d?d:0)>0)o.add(c);else if(Br(c).some((function(e){return a.retention.referenceCounts.get(e)})))o.add(c);else{var h=n.nodeToNodeSubscriptions.get(c);h&&Tr(h,(function(e){return o.has(e)}))?o.add(c):(r.add(c),l.add(c))}else o.add(c)}}catch(g){f.e(g)}finally{f.f()}var F,m=new Set,p=hi(l);try{for(p.s();!(F=p.n()).done;){var E,b=F.value,k=hi(null!==(y=n.nodeDeps.get(b))&&void 0!==y?y:Lr);try{for(k.s();!(E=k.n()).done;){var y,v=E.value;r.has(v)||m.add(v)}}catch(g){k.e(g)}finally{k.f()}}}catch(g){p.e(g)}finally{p.f()}m.size&&s(m)}}(e,r),c=hi(d);try{for(c.s();!(f=c.n()).done;){Pr(e,i,f.value)}}catch(g){c.e(g)}finally{c.f()}}}function Pr(e,t,a){if(Gi("recoil_memory_managament_2020")){xr(e,a);var i=e.getState();i.knownAtoms.delete(a),i.knownSelectors.delete(a),i.nodeTransactionSubscriptions.delete(a),i.retention.referenceCounts.delete(a);var n,r=hi(Br(a));try{for(r.s();!(n=r.n()).done;){var o,s=n.value;null===(o=i.retention.nodesRetainedByZone.get(s))||void 0===o||o.delete(a)}}catch(g){r.e(g)}finally{r.f()}t.atomValues.delete(a),t.dirtyAtoms.delete(a),t.nonvalidatedAtoms.delete(a);var u=i.graphsByVersion.get(t.version);if(u){var l=u.nodeDeps.get(a);if(void 0!==l){u.nodeDeps.delete(a);var _,f=hi(l);try{for(f.s();!(_=f.n()).done;){var d,c=_.value;null===(d=u.nodeToNodeSubscriptions.get(c))||void 0===d||d.delete(a)}}catch(g){f.e(g)}finally{f.f()}}u.nodeToNodeSubscriptions.delete(a)}Ir(a)}}function jr(e,t){var a;return null!==(a=e.retention.nodesRetainedByZone.get(t))&&void 0!==a?a:Lr}function Br(e){var t=Rr(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof Or?[t]:t}function Mr(e,t){Gi("recoil_memory_managament_2020")&&(e.getState().retention.referenceCounts.delete(t),function(e,t){var a=e.getState();a.nextTree?a.retention.retainablesToCheckForRelease.add(t):Nr(e,new Set([t]))}(e,t))}var qr=function(e,t,a){var i;if(Gi("recoil_memory_managament_2020")){var n=e.getState().retention.referenceCounts,r=(null!==(i=n.get(t))&&void 0!==i?i:0)+a;0===r?Mr(e,t):n.set(t,r)}},Gr=function(e){if(Gi("recoil_memory_managament_2020")){var t=e.getState();Nr(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}},Zr=function(e){return void 0===e?"recoilRoot":e};function Ur(e){var t,a,i,n,r,o;return bi().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=hi(e),s.prev=1,t.s();case 3:if((a=t.n()).done){s.next=24;break}i=a.value,n=hi(i),s.prev=6,n.s();case 8:if((r=n.n()).done){s.next=14;break}return o=r.value,s.next=12,o;case 12:s.next=8;break;case 14:s.next=19;break;case 16:s.prev=16,s.t0=s.catch(6),n.e(s.t0);case 19:return s.prev=19,n.f(),s.finish(19);case 22:s.next=3;break;case 24:s.next=29;break;case 26:s.prev=26,s.t1=s.catch(1),t.e(s.t1);case 29:return s.prev=29,t.f(),s.finish(29);case 32:case"end":return s.stop()}}),wi,null,[[1,26,29,32],[6,16,19,22]])}var zr=Ur,Wr={isSSR:"undefined"===typeof window,isReactNative:"undefined"!==typeof navigator&&"ReactNative"===navigator.product},Hr=Wr.isSSR,Vr=or,Kr=Ln,Yr=Rn,$r=dr,Jr=gn.DEFAULT_VALUE,Xr=gn.recoilValues,Qr=gn.recoilValuesForKeys,eo=tr.AbstractRecoilValue,to=tr.getRecoilValueAsLoadable,ao=tr.setRecoilValue,io=tr.setUnvalidatedRecoilValue,no=qr,ro=Cr,oo=Sr,so=function(){function e(t){var a=this;pi(this,e),Yi(this,"_store",void 0),Yi(this,"_refCount",0),Yi(this,"getLoadable",(function(e){return a.checkRefCount_INTERNAL(),to(a._store,e)})),Yi(this,"getPromise",(function(e){return a.checkRefCount_INTERNAL(),a.getLoadable(e).toPromise()})),Yi(this,"getNodes_UNSTABLE",(function(e){if(a.checkRefCount_INTERNAL(),!0===(null===e||void 0===e?void 0:e.isModified)){if(!1===(null===e||void 0===e?void 0:e.isInitialized))return[];var t=a._store.getState().currentTree;return Qr(t.dirtyAtoms)}var i=a._store.getState().knownAtoms,n=a._store.getState().knownSelectors;return null==(null===e||void 0===e?void 0:e.isInitialized)?Xr.values():!0===e.isInitialized?Qr(zr([a._store.getState().knownAtoms,a._store.getState().knownSelectors])):Hi(Xr.values(),(function(e){var t=e.key;return!i.has(t)&&!n.has(t)}))})),Yi(this,"getInfo_UNSTABLE",(function(e){var t=e.key;return a.checkRefCount_INTERNAL(),Yr(a._store,a._store.getState().currentTree,t)})),Yi(this,"map",(function(e){a.checkRefCount_INTERNAL();var t=new _o(a,Vr);return e(t),lo(t.getStore_INTERNAL())})),Yi(this,"asyncMap",function(){var e=ri(bi().mark((function e(t){var i;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.checkRefCount_INTERNAL(),i=new _o(a,Vr),e.next=4,t(i);case 4:return e.abrupt("return",lo(i.getStore_INTERNAL()));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this._store={getState:function(){return t},replaceState:function(e){t.currentTree=e(t.currentTree)},getGraph:function(e){var a=t.graphsByVersion;if(a.has(e))return Ci(a.get(e));var i=$r();return a.set(e,i),i},subscribeToTransactions:function(){return{release:function(){}}},addTransactionMetadata:function(){throw new Error("Cannot subscribe to Snapshots")}};var i,n=hi(this._store.getState().nodeCleanupFunctions.keys());try{for(n.s();!(i=n.n()).done;){var r=i.value;Kr(this._store,t.currentTree,r,"get"),no(this._store,r,1)}}catch(o){n.e(o)}finally{n.f()}this.retain(),this.autorelease_INTERNAL()}return mi(e,[{key:"retain",value:function(){var e=this;if(!Gi("recoil_memory_managament_2020"))return function(){};this._refCount++;var t=!1;return function(){t||(t=!0,e.release_INTERNAL())}}},{key:"autorelease_INTERNAL",value:function(){var e=this;Gi("recoil_memory_managament_2020")&&(Hr||window.setTimeout((function(){return e.release_INTERNAL()}),0))}},{key:"release_INTERNAL",value:function(){Gi("recoil_memory_managament_2020")&&(this._refCount--,this._refCount)}},{key:"checkRefCount_INTERNAL",value:function(){Gi("recoil_memory_managament_2020")&&this._refCount}},{key:"getStore_INTERNAL",value:function(){return this.checkRefCount_INTERNAL(),this._store}},{key:"getID",value:function(){return this.checkRefCount_INTERNAL(),this.getID_INTERNAL()}},{key:"getID_INTERNAL",value:function(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}}]),e}();function uo(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.getState(),n=a?ro():t.version;return{currentTree:a?{version:n,stateID:n,transactionMetadata:(0,Ha.Z)({},t.transactionMetadata),dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()}:t,commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(i.knownAtoms),knownSelectors:new Set(i.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(n,e.getGraph(t.version)),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}function lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"current",a=e.getState(),i="current"===t?a.currentTree:Ci(a.previousTree);return new so(uo(e,i))}var _o=function(e){fi(a,e);var t=gi(a);function a(e,i){var n;return pi(this,a),Yi(ii(n=t.call(this,uo(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0))),"_batch",void 0),Yi(ii(n),"set",(function(e,t){n.checkRefCount_INTERNAL();var a=n.getStore_INTERNAL();n._batch((function(){no(a,e.key,1),ao(n.getStore_INTERNAL(),e,t)}))})),Yi(ii(n),"reset",(function(e){n.checkRefCount_INTERNAL();var t=n.getStore_INTERNAL();n._batch((function(){no(t,e.key,1),ao(n.getStore_INTERNAL(),e,Jr)}))})),Yi(ii(n),"setUnvalidatedAtomValues_DEPRECATED",(function(e){n.checkRefCount_INTERNAL();var t=n.getStore_INTERNAL();Vr((function(){var a,i=hi(e.entries());try{for(i.s();!(a=i.n()).done;){var n=(0,Ka.Z)(a.value,2),r=n[0],o=n[1];no(t,r,1),io(t,new eo(r),o)}}catch(s){i.e(s)}finally{i.f()}}))})),n._batch=i,n}return mi(a)}(so),fo={Snapshot:so,MutableSnapshot:_o,freshSnapshot:function(e){var t=new so(oo());return null!=e?t.map(e):t},cloneSnapshot:lo},co=fo.Snapshot,go=fo.MutableSnapshot,ho=fo.freshSnapshot,Fo=fo.cloneSnapshot,mo=Object.freeze({__proto__:null,Snapshot:co,MutableSnapshot:go,freshSnapshot:ho,cloneSnapshot:Fo}),po=Cr,Eo=Sr,bo=xn,ko=On,yo=Tn,vo=In,Do=dr,wo=fr,So=tr.applyAtomValueWrites,Co=Gr,Ao=mo.freshSnapshot,To=r.useCallback,xo=r.useContext,Io=r.useEffect,Ro=r.useMemo,Oo=r.useRef,Lo=r.useState;function No(){throw new Error("This component must be used inside a component.")}var Po=Object.freeze({getState:No,replaceState:No,getGraph:No,subscribeToTransactions:No,addTransactionMetadata:No}),jo=!1;function Bo(e){if(jo)throw new Error("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");var t=e.getState();if(null===t.nextTree){Gi("recoil_memory_managament_2020")&&Gi("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Co(e);var a=t.currentTree.version,i=po();t.nextTree=(0,Ha.Z)((0,Ha.Z)({},t.currentTree),{},{version:i,stateID:i,dirtyAtoms:new Set,transactionMetadata:{}}),t.graphsByVersion.set(i,wo(Ci(t.graphsByVersion.get(a))))}}var Mo=r.createContext({current:Po}),qo=function(){return xo(Mo)},Go=r.createContext(null);function Zo(e,t,a){var i,n=hi(ko(e,a,a.dirtyAtoms));try{for(n.s();!(i=n.n()).done;){var r=i.value,o=t.nodeToComponentSubscriptions.get(r);if(o){var s,u=hi(o);try{for(u.s();!(s=u.n()).done;){var l=(0,Ka.Z)(s.value,2),_=(l[0],(0,Ka.Z)(l[1],2));_[0];(0,_[1])(a)}}catch(f){u.e(f)}finally{u.f()}}}}catch(f){n.e(f)}finally{n.f()}}function Uo(e){var t=e.getState(),a=t.currentTree,i=a.dirtyAtoms;if(i.size){var n,r=hi(t.nodeTransactionSubscriptions);try{for(r.s();!(n=r.n()).done;){var o=(0,Ka.Z)(n.value,2),s=o[0],u=o[1];if(i.has(s)){var l,_=hi(u);try{for(_.s();!(l=_.n()).done;){var f=(0,Ka.Z)(l.value,2);f[0];(0,f[1])(e)}}catch(h){_.e(h)}finally{_.f()}}}}catch(h){r.e(h)}finally{r.f()}var d,c=hi(t.transactionSubscriptions);try{for(c.s();!(d=c.n()).done;){var g=(0,Ka.Z)(d.value,2);g[0];(0,g[1])(e)}}catch(h){c.e(h)}finally{c.f()}Gi("recoil_early_rendering_2021")&&!t.suspendedComponentResolvers.size||(Zo(e,t,a),t.suspendedComponentResolvers.forEach((function(e){return e()})),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach((function(e){return e(a)})),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function zo(e){var t=e.setNotifyBatcherOfChange,a=qo(),i=Lo([]),n=(0,Ka.Z)(i,2),r=(n[0],n[1]);return t((function(){return r({})})),Io((function(){sr.enqueueExecution("Batcher",(function(){!function(e){var t=e.current.getState();t.commitDepth++;try{var a=t.nextTree;if(null===a)return;t.previousTree=t.currentTree,t.currentTree=a,t.nextTree=null,Uo(e.current),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):Ui("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Gi("recoil_memory_managament_2020")&&Co(e.current)}finally{t.commitDepth--}}(a)}))})),Io((function(){return function(){t((function(){}))}}),[t]),null}var Wo=0;function Ho(e){var t,a,i=e.initializeState_DEPRECATED,n=e.initializeState,o=e.store_INTERNAL,s=e.children,u=Oo(null),l=To((function(e){u.current=e}),[u]),_=null!==(t=r.createMutableSource)&&void 0!==t?t:r.unstable_createMutableSource,f=null!==o&&void 0!==o?o:{getState:function(){return a.current},replaceState:function(e){var t=d.current.getState();Bo(d.current);var a,i=Ci(t.nextTree);try{jo=!0,a=e(i)}finally{jo=!1}a!==i&&(t.nextTree=a,Gi("recoil_early_rendering_2021")&&Zo(f,t,a),Ci(u.current)())},getGraph:function(e){var t=a.current.graphsByVersion;if(t.has(e))return Ci(t.get(e));var i=Do();return t.set(e,i),i},subscribeToTransactions:function(e,t){if(null==t){var a=d.current.getState().transactionSubscriptions,i=Wo++;return a.set(i,e),{release:function(){a.delete(i)}}}var n=d.current.getState().nodeTransactionSubscriptions;n.has(t)||n.set(t,new Map);var r=Wo++;return Ci(n.get(t)).set(r,e),{release:function(){var e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}},addTransactionMetadata:function(e){Bo(d.current);for(var t=0,a=Object.keys(e);t. must be an ancestor of any component that uses Recoil hooks."),e},Yo=function(e){var t=e.override,a=ai(e,ki),i=qo();return!1===t&&i.current!==Po?e.children:r.createElement(Ho,a)},$o=Ni.loadableWithValue,Jo=gn.DEFAULT_VALUE,Xo=gn.getNode,Qo=tr.copyTreeState,es=tr.getRecoilValueAsLoadable,ts=tr.invalidateDownstreams,as=tr.writeLoadableToTreeState;function is(e){return"atom"===Xo(e.key).nodeType}var ns=function(){function e(t,a){var i=this;pi(this,e),Yi(this,"_store",void 0),Yi(this,"_treeState",void 0),Yi(this,"_changes",void 0),Yi(this,"get",(function(e){if(i._changes.has(e.key))return i._changes.get(e.key);if(!is(e))throw new Error("Reading selectors within atomicUpdate is not supported");var t=es(i._store,e,i._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:new Error("Expected Recoil atom ".concat(e.key," to have a value, but it is in a loading state."))})),Yi(this,"set",(function(e,t){if(!is(e))throw new Error("Setting selectors within atomicUpdate is not supported");if("function"===typeof t){var a=i.get(e);i._changes.set(e.key,t(a))}else i._changes.set(e.key,t)})),Yi(this,"reset",(function(e){i.set(e,Jo)})),this._store=t,this._treeState=a,this._changes=new Map}return mi(e,[{key:"newTreeState_INTERNAL",value:function(){if(0===this._changes.size)return this._treeState;var e,t=Qo(this._treeState),a=hi(this._changes);try{for(a.s();!(e=a.n()).done;){var i=(0,Ka.Z)(e.value,2),n=i[0],r=i[1];as(t,n,$o(r))}}catch(o){a.e(o)}finally{a.f()}return ts(this._store,t),t}}]),e}();var rs=function(e){return function(t){e.replaceState((function(a){var i=new ns(e,a);return t(i),i.newTreeState_INTERNAL()}))}},os=rs,ss=Object.freeze({__proto__:null,atomicUpdater:os});var us=function(e,t){var a,i=new Map,n=hi(e);try{for(n.s();!(a=n.n()).done;){var r=(0,Ka.Z)(a.value,2),o=r[0],s=r[1];t(s,o)&&i.set(o,s)}}catch(u){n.e(u)}finally{n.f()}return i};var ls=function(e,t){var a,i=new Set,n=hi(e);try{for(n.s();!(a=n.n()).done;){var r=a.value;t(r)&&i.add(r)}}catch(o){n.e(o)}finally{n.f()}return i};var _s=function(e,t){if(!e)throw new Error(t)};var fs=function(){for(var e=new Map,t=arguments.length,a=new Array(t),i=0;i"},hs=ss.atomicUpdater,Fs=or,ms=gn.DEFAULT_VALUE,ps=gn.getNode,Es=gn.nodes,bs=Ko,ks=Vo,ys=(rn.isRecoilValue,tr.AbstractRecoilValue),vs=tr.getRecoilValueAsLoadable,Ds=tr.setRecoilValue,ws=tr.setRecoilValueLoadable,Ss=tr.setUnvalidatedRecoilValue,Cs=tr.subscribeToRecoilValue,As=qr,Ts=Fn.RetentionZone,xs=(mo.Snapshot,mo.cloneSnapshot),Is=Wr.isSSR,Rs=ji.mutableSourceExists,Os=ji.useMutableSource,Ls=r.useCallback,Ns=r.useEffect,Ps=r.useMemo,js=r.useRef,Bs=r.useState,Ms=12e4;function qs(e,t,a){if("hasValue"===e.state)return e.contents;if("loading"===e.state){var i=new Promise((function(e){a.current.getState().suspendedComponentResolvers.add(e)}));throw i}if("hasError"===e.state)throw e.contents;throw new Error('Invalid value of loadable atom "'.concat(t.key,'"'))}function Gs(e){return Gi("recoil_memory_managament_2020")&&$s(e),Rs()?function(e){var t=ks(),a=Ls((function(){var a,i=t.current,n=i.getState(),r=Gi("recoil_early_rendering_2021")&&null!==(a=n.nextTree)&&void 0!==a?a:n.currentTree;return vs(i,e,r)}),[t,e]),i=Ls((function(){return a()}),[a]),n=gs(),r=Ls((function(i,r){var o=t.current;return Cs(o,e,(function(){if(!Gi("recoil_suppress_rerender_in_callback"))return r();var e=a();u.current.is(e)||r(),u.current=e}),n).release}),[t,e,n,a]),o=bs(),s=Os(o,i,r),u=js(s);return Ns((function(){u.current=s})),s}(e):function(e){var t=ks(),a=Bs([]),i=(0,Ka.Z)(a,2),n=(i[0],i[1]),r=gs();Ns((function(){var a=t.current,i=a.getState(),o=Cs(a,e,(function(t){var i;if(!Gi("recoil_suppress_rerender_in_callback"))return n([]);var r=vs(a,e,a.getState().currentTree);(null===(i=s.current)||void 0===i?void 0:i.is(r))||n(r),s.current=r}),r);if(i.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push((function(){s.current=null,n([])}));else{var u;if(!Gi("recoil_suppress_rerender_in_callback"))return n([]);var l=vs(a,e,a.getState().currentTree);(null===(u=s.current)||void 0===u?void 0:u.is(l))||n(l),s.current=l}return o.release}),[r,e,t]);var o=vs(t.current,e),s=js(o);return Ns((function(){s.current=o})),o}(e)}function Zs(e){var t=ks();return qs(Gs(e),e,t)}function Us(e){var t=ks();return Ls((function(a){Ds(t.current,e,a)}),[t,e])}function zs(e){var t=ks();Ns((function(){return t.current.subscribeToTransactions(e).release}),[e,t])}function Ws(e){var t=e.atomValues.toMap(),a=lr(us(t,(function(e,t){var a=ps(t).persistence_UNSTABLE;return null!=a&&"none"!==a.type&&"hasValue"===e.state})),(function(e){return e.contents}));return fs(e.nonvalidatedAtoms.toMap(),a)}function Hs(e){var t=js();return Ns((function(){t.current=e})),t.current}function Vs(){var e=ks();return Ls((function(t){var a,i=e.current.getState(),n=null!==(a=i.nextTree)&&void 0!==a?a:i.currentTree,r=t.getStore_INTERNAL().getState().currentTree;Fs((function(){for(var a=new Set,i=0,o=[n.atomValues.keys(),r.atomValues.keys()];i1&&void 0!==arguments[1]?arguments[1]:{};Fs((function(){e.current.addTransactionMetadata(a),t.forEach((function(t,a){return Ss(e.current,new ys(a),t)}))}))}},_u=function(e){zs(Ls((function(t){var a=t.getState().previousTree,i=t.getState().currentTree;a||(Ui("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),a=t.getState().currentTree);var n=Ws(i),r=Ws(a),o=lr(Es,(function(e){var t,a,i,n;return{persistence_UNSTABLE:{type:null!==(t=null===(a=e.persistence_UNSTABLE)||void 0===a?void 0:a.type)&&void 0!==t?t:"none",backButton:null!==(i=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.backButton)&&void 0!==i&&i}}})),s=ls(i.dirtyAtoms,(function(e){return n.has(e)||r.has(e)}));e({atomValues:n,previousAtomValues:r,atomInfo:o,modifiedAtoms:s,transactionMetadata:(0,Ha.Z)({},i.transactionMetadata)})}),[e]))},fu=Rn,du=Vo;var cu=function(){var e=du();return function(t){var a=t.key;return fu(e.current,e.current.getState().currentTree,a)}},gu=Yo,hu=Vo,Fu=r.useMemo;var mu=function(){var e=hu().current;return Fu((function(){return function(t){var a=t.children;return r.createElement(gu,{store_INTERNAL:e},a)}}),[e])};function pu(e,t,a){if("string"===typeof e&&!e.includes('"')&&!e.includes("\\"))return'"'.concat(e,'"');switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if(!0!==(null===t||void 0===t?void 0:t.allowFunctions))throw new Error("Attempt to serialize function in a Recoil cache key");return"__FUNCTION(".concat(e.name,")__")}if(null===e)return"null";var i;if("object"!==typeof e)return null!==(i=JSON.stringify(e))&&void 0!==i?i:"";if(Si(e))return"__PROMISE__";if(Array.isArray(e))return"[".concat(e.map((function(e,a){return pu(e,t,a.toString())})),"]");if("function"===typeof e.toJSON)return pu(e.toJSON(a),t,a);if(e instanceof Map){var n,r={},o=hi(e);try{for(o.s();!(n=o.n()).done;){var s=(0,Ka.Z)(n.value,2),u=s[0],l=s[1];r["string"===typeof u?u:pu(u,t)]=l}}catch(_){o.e(_)}finally{o.f()}return pu(r,t,a)}return e instanceof Set?pu(Array.from(e).sort((function(e,a){return pu(e,t).localeCompare(pu(a,t))})),t,a):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?pu(Array.from(e),t,a):"{".concat(Object.keys(e).filter((function(t){return void 0!==e[t]})).sort().map((function(a){return"".concat(pu(a,t),":").concat(pu(e[a],t,a))})).join(","),"}")}var Eu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{allowFunctions:!1};return pu(e,t)},bu=function(){function e(t){var a,i,n;pi(this,e),Yi(this,"_numLeafs",void 0),Yi(this,"_root",void 0),Yi(this,"_onHit",void 0),Yi(this,"_onSet",void 0),Yi(this,"_mapNodeValue",void 0),this._numLeafs=0,this._root=null,this._onHit=null!==(a=null===t||void 0===t?void 0:t.onHit)&&void 0!==a?a:function(){},this._onSet=null!==(i=null===t||void 0===t?void 0:t.onSet)&&void 0!==i?i:function(){},this._mapNodeValue=null!==(n=null===t||void 0===t?void 0:t.mapNodeValue)&&void 0!==n?n:function(e){return e}}return mi(e,[{key:"size",value:function(){return this._numLeafs}},{key:"root",value:function(){return this._root}},{key:"get",value:function(e,t){var a;return null===(a=this.getLeafNode(e,t))||void 0===a?void 0:a.value}},{key:"getLeafNode",value:function(e,t){var a=this;return ku(this.root(),(function(t){return a._mapNodeValue(e(t))}),{onNodeVisit:function(e){null===t||void 0===t||t.onNodeVisit(e),"leaf"===e.type&&a._onHit(e)}})}},{key:"set",value:function(e,t,a){var i,n=this,r=yu(this.root(),e.map((function(e){var t=(0,Ka.Z)(e,2),a=t[0],i=t[1];return[a,n._mapNodeValue(i)]})),null,t,null,{onNodeVisit:function(e){null===a||void 0===a||a.onNodeVisit(e),"leaf"===e.type&&(i=e)}});this.root()||(this._root=r),this._numLeafs++,this._onSet(Ci(i))}},{key:"delete",value:function(e){if(!this.root())return!1;var t=Ci(this.root());return!!vu(t,e,e.parent)&&(e===t||"branch"===t.type&&!t.branches.size?(this._root=null,this._numLeafs=0,!0):(this._numLeafs-=wu(e),!0))}},{key:"clear",value:function(){this._numLeafs=0,this._root=null}}]),e}(),ku=function e(t,a,i){var n;if(null!=t){if(null===i||void 0===i||null===(n=i.onNodeVisit)||void 0===n||n.call(i,t),"leaf"===t.type)return t;var r=a(t.nodeKey);return e(t.branches.get(r),a,i)}},yu=function e(t,a,i,n,r,o){var s,u;if(null==t)if(0===a.length)u={type:"leaf",value:n,parent:i,branchKey:r};else{var l=ei(a),_=l[0],f=l.slice(1),d=(0,Ka.Z)(_,2),c=d[0],g=d[1];(u={type:"branch",nodeKey:c,parent:i,branches:new Map,branchKey:r}).branches.set(g,e(null,f,u,n,g,o))}else if(u=t,a.length){var h=ei(a),F=h[0],m=h.slice(1),p=(0,Ka.Z)(F,2),E=p[0],b=p[1];("branch"!==t.type||t.nodeKey!==E)&&_s(!1),t.branches.set(b,e(t.branches.get(b),m,t,n,b,o))}return null===o||void 0===o||null===(s=o.onNodeVisit)||void 0===s||s.call(o,u),u},vu=function(e,t,a){return a?(a.branches.delete(t.branchKey),Du(e,a,a.parent)):e===t},Du=function e(t,a,i){return i?(0===a.branches.size&&i.branches.delete(a.branchKey),e(t,i,i.parent)):t===a},wu=function e(t){return"leaf"===t.type?1:Array.from(t.branches.values()).reduce((function(t,a){return t+e(a)}),0)},Su={TreeCache:bu}.TreeCache,Cu=Object.freeze({__proto__:null,TreeCache:Su}),Au=function(){function e(t){var a;pi(this,e),Yi(this,"_maxSize",void 0),Yi(this,"_size",void 0),Yi(this,"_head",void 0),Yi(this,"_tail",void 0),Yi(this,"_map",void 0),Yi(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(a=t.mapKey)&&void 0!==a?a:function(e){return e}}return mi(e,[{key:"head",value:function(){return this._head}},{key:"tail",value:function(){return this._tail}},{key:"size",value:function(){return this._size}},{key:"maxSize",value:function(){return this._maxSize}},{key:"has",value:function(e){return this._map.has(this._keyMapper(e))}},{key:"get",value:function(e){var t=this._keyMapper(e),a=this._map.get(t);if(a)return this.set(e,a.value),a.value}},{key:"set",value:function(e,t){var a=this._keyMapper(e);this._map.get(a)&&this.delete(e);var i=this.head(),n={key:e,right:i,left:null,value:t};i?i.left=n:this._tail=n,this._map.set(a,n),this._head=n,this._size++,this._maybeDeleteLRU()}},{key:"_maybeDeleteLRU",value:function(){this.size()>this.maxSize()&&this.deleteLru()}},{key:"deleteLru",value:function(){var e=this.tail();e&&this.delete(e.key)}},{key:"delete",value:function(e){var t=this._keyMapper(e);if(this._size&&this._map.has(t)){var a=Ci(this._map.get(t)),i=a.right,n=a.left;i&&(i.left=a.left),n&&(n.right=a.right),a===this.head()&&(this._head=i),a===this.tail()&&(this._tail=n),this._map.delete(t),this._size--}}},{key:"clear",value:function(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}]),e}(),Tu={LRUCache:Au}.LRUCache,xu=Object.freeze({__proto__:null,LRUCache:Tu}),Iu=xu.LRUCache,Ru=Cu.TreeCache;var Ou=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},a=new Iu({maxSize:e}),i=new Ru({mapNodeValue:t,onHit:function(e){a.set(e,!0)},onSet:function(t){var n=a.tail();a.set(t,!0),n&&i.size()>e&&i.delete(n.key)}});return i},Lu=Cu.TreeCache,Nu={equality:"reference",eviction:"keep-all",maxSize:1/0};function Pu(e){switch(e){case"reference":return function(e){return e};case"value":return function(e){return Eu(e)}}throw new Error("Unrecognized equality policy ".concat(e))}function ju(e,t,a){switch(e){case"keep-all":return new Lu({mapNodeValue:a});case"lru":return Ou(Ci(t),a);case"most-recent":return Ou(1,a)}throw new Error("Unrecognized eviction policy ".concat(e))}var Bu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nu,t=e.equality,a=void 0===t?Nu.equality:t,i=e.eviction,n=void 0===i?Nu.eviction:i,r=e.maxSize,o=void 0===r?Nu.maxSize:r,s=Pu(a),u=ju(n,o,s);return u};var Mu=function(e){return function(){return null}},qu=Ni.CANCELED,Gu=Ni.Canceled,Zu=Ni.loadableWithError,Uu=Ni.loadableWithPromise,zu=Ni.loadableWithValue,Wu=Cn,Hu=An,Vu=Tn,Ku=cr,Yu=gn.DEFAULT_VALUE,$u=gn.RecoilValueNotReady,Ju=gn.getConfigDeletionHandler,Xu=gn.registerNode,Qu=rn.isRecoilValue,el=rn.AbstractRecoilValue,tl=tr.setRecoilValueLoadable,al=Zr,il=mo.cloneSnapshot,nl=Mu,rl=[],ol=new Map,sl=function(){var e=0;return function(){return e++}}();var ul=function(e){var t=e.key,a=e.get,i=e.cachePolicy_UNSTABLE,n=null!=e.set?e.set:void 0,r=Bu(null!==i&&void 0!==i?i:{equality:"reference",eviction:"keep-all"}),o=al(e.retainedBy_UNSTABLE),s=new Map,u=0;function l(){return!Gi("recoil_memory_managament_2020")||u>0}function _(e){return s.has(e)||s.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:null,latestLoadable:null,latestExecutionId:null,stateVersion:null}),Ci(s.get(e))}function f(e){return u++,e.getState().knownSelectors.add(t),function(){u--,e.getState().knownSelectors.delete(t),s.delete(e)}}function d(){return void 0!==Ju(t)&&!l()}function c(e,t,a){if("loading"===t.state){var i=ol.get(a);null==i&&ol.set(a,i=new Set),i.add(e)}}function g(e,t,a){var i=e.getState().knownSelectors.has(a);if(i&&t.atomValues.has(a))return Ci(t.atomValues.get(a));var n=Wu(e,t,a);return"loading"!==n.state&&i&&t.atomValues.set(a,n),n}function h(e,a,i,n,r){return a.then((function(a){if(!l())return A(e,r),qu;var o=zu(a);return I(a),R(i,y(n),o),p(e,i,new Set(n.keys()),r),m(e,o,r),{__value:a,__key:t}})).catch((function(t){if(!l())return A(e,r),qu;if(T(e,r)&&C(n,e,r),Si(t))return F(e,t,i,n,r);var a=Zu(t);throw I(t),R(i,y(n),a),p(e,i,new Set(n.keys()),r),m(e,a,r),t}))}function F(e,a,i,n,r){return a.then((function(a){if(!l())return A(e,r),qu;if(a instanceof Gu)return Ui("Selector was released while it had dependencies"),qu;var n=null!==a&&void 0!==a?a:{},o=n.__key,s=n.__value,u=!0;null!=o&&(i.atomValues.set(o,zu(s)),u=!1);var _=k(e,i);if(_&&"hasValue"===_.state)return S(_,e),{__value:_.contents,__key:t};if(!T(e,r)){var f,d=D(i);if("loading"===(null===d||void 0===d||null===(f=d.latestLoadable)||void 0===f?void 0:f.state))return d.latestLoadable.contents}var c=b(e,i,r,u),g=(0,Ka.Z)(c,2),h=g[0],F=g[1];if(T(e,r)&&C(F,e,r),x(h),"loading"!==h.state&&(R(i,y(F),h),p(e,i,new Set(F.keys()),r),m(e,h,r)),"hasError"===h.state)throw h.contents;return"hasValue"===h.state?{__value:h.contents,__key:t}:h.contents})).catch((function(t){if(!l())return A(e,r),qu;var a=Zu(t);throw I(t),R(i,y(n),Zu(t)),p(e,i,new Set(n.keys()),r),m(e,a,r),t}))}function m(e,a,i){T(e,i)&&(S(a,e),function(e,a){var i=ol.get(a);if(void 0!==i){var n,r=hi(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;tl(o,new el(t),e)}}catch(s){r.e(s)}finally{r.f()}ol.delete(a)}}(a,i))}function p(e,a,i,n){var r,o,s,u,l,_,f;(T(e,n)||a.version===(null===(r=e.getState())||void 0===r||null===(o=r.currentTree)||void 0===o?void 0:o.version)||a.version===(null===(s=e.getState())||void 0===s||null===(u=s.nextTree)||void 0===u?void 0:u.version))&&Ku(new Map([[t,i]]),e,null!==(l=null===(_=e.getState())||void 0===_||null===(f=_.nextTree)||void 0===f?void 0:f.version)&&void 0!==l?l:e.getState().currentTree.version)}function E(e,t,a,i,n){a.add(i),p(e,t,a,n)}function b(e,i,n){var r,o,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=nl(t),l=!1,_=new Map,f=new Set;function d(t){var a=t.key;E(e,i,f,a,n);var r=s?Wu(e,i,a):g(e,i,a);if(x(r),_.set(a,r),"hasValue"===r.state)return r.contents;throw r.contents}p(e,i,f,n);var c=!1,m=function(t){return function(){if(!c)throw new Error("getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can obtain the current Recoil state without a subscription.");var a=il(e),i=t({snapshot:a});if("function"!==typeof i)throw new Error("getCallback() expects a function that returns a function.");return i.apply(void 0,arguments)}};try{r=a({get:d,getCallback:m}),r=Qu(r)?d(r):r,c=!0,Si(r)?r=h(e,r,i,_,n).finally(u):u()}catch(b){Si(r=b)?r=F(e,r,i,_,n).finally(u):(l=!0,u())}return x(o=l?Zu(r):Si(r)?Uu(r):zu(r)),[o,_]}function k(e,a){var i=new Set,n=_(e),o=r.get((function(t){return"string"!==typeof t&&_s(!1),g(e,a,t).contents}),{onNodeVisit:function(e){"branch"===e.type&&e.nodeKey!==t&&"string"===typeof e.nodeKey&&i.add(e.nodeKey)}});return o&&p(e,a,i,n.latestExecutionId),o}function y(e){return Array.from(e.entries()).map((function(e){var t=(0,Ka.Z)(e,2);return[t[0],t[1].contents]}))}function v(e,t){var a=sl(),i=b(e,t,a),n=(0,Ka.Z)(i,2),r=n[0],o=n[1];return S(r,e,o,a,t),function(e,t,a){"loading"!==a.state&&R(e,t,a)}(t,y(o),r),c(e,r,a),r}function D(e){var t,a=null!==(t=Array.from(s.entries()).find((function(t){var a=(0,Ka.Z)(t,2),i=a[0],n=a[1];return null!=n.latestLoadable&&null!=n.latestExecutionId&&!function(e,t){var a,i,n=_(e),r=null!==(a=n.depValuesDiscoveredSoFarDuringAsyncWork)&&void 0!==a?a:new Map,o=Array((null!==(i=w.get(t.version))&&void 0!==i?i:new Map).entries()),s=w.has(t.version)&&o.length===r.size&&o.every((function(e){var t=(0,Ka.Z)(e,2),a=t[0],i=t[1];return r.get(a)===i}));if(null==r||t.version===n.stateVersion||s)return!1;return w.set(t.version,new Map(r)),Array.from(r).some((function(a){var i=(0,Ka.Z)(a,2),n=i[0],r=i[1];return g(e,t,n).contents!==r.contents}))}(i,e)})))&&void 0!==t?t:[];return(0,Ka.Z)(a,2)[1]}var w=new Map;function S(e,t,a,i,n){var r=_(t);"loading"===e.state?(r.depValuesDiscoveredSoFarDuringAsyncWork=a,r.latestExecutionId=i,r.latestLoadable=e,r.stateVersion=null===n||void 0===n?void 0:n.version):(r.depValuesDiscoveredSoFarDuringAsyncWork=null,r.latestExecutionId=null,r.latestLoadable=null,r.stateVersion=null)}function C(e,t,a){var i=_(t);T(t,a)&&(i.depValuesDiscoveredSoFarDuringAsyncWork=e)}function A(e,t){T(e,t)&&s.delete(e)}function T(e,t){return t===_(e).latestExecutionId}function x(e){"loading"!==e.state&&I(e.contents)}function I(e){0}function R(e,a,i){e.atomValues.set(t,i),r.set(a,i)}function O(e,t){return r.get((function(a){"string"!==typeof a&&_s(!1);var i=Hu(e,t,a);return null===i||void 0===i?void 0:i.contents}))}function L(e,a){return function(e){if(rl.includes(t)){var a="Recoil selector has circular dependencies: ".concat(rl.slice(rl.indexOf(t)).join(" \u2192 "));return Zu(new Error(a))}rl.push(t);try{return e()}finally{rl.pop()}}((function(){return function(e,t){var a=k(e,t);if(null!=a)return S(a,e),a;var i=D(t);if(i){var n=i;return c(e,Ci(n.latestLoadable),Ci(n.latestExecutionId)),Ci(n.latestLoadable)}return v(e,t)}(e,a)}))}function N(e){e.atomValues.delete(t)}if(null!=n){return Xu({key:t,nodeType:"selector",peek:O,get:L,set:function(e,t,a){var i=!1,r=new Map;function o(a){var n=a.key;if(i)throw new Error("Recoil: Async selector sets are not currently supported.");var r=g(e,t,n);if(x(r),"hasValue"===r.state)return r.contents;throw"loading"===r.state?new $u(n):r.contents}function s(a,n){if(i)throw new Error("Recoil: Async selector sets are not currently supported.");var s="function"===typeof n?n(o(a)):n;Vu(e,t,a.key,s).forEach((function(e,t){return r.set(t,e)}))}var u=n({set:s,get:o,reset:function(e){s(e,Yu)}},a);if(void 0!==u)throw Si(u)?new Error("Recoil: Async selector sets are not currently supported."):new Error("Recoil: selector set should be a void function.");return i=!0,r},init:f,invalidate:N,shouldDeleteConfigOnRelease:d,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:o})}return Xu({key:t,nodeType:"selector",peek:O,get:L,init:f,invalidate:N,shouldDeleteConfigOnRelease:d,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:o})},ll=Ni.loadableWithError,_l=Ni.loadableWithPromise,fl=Ni.loadableWithValue,dl=gn.DEFAULT_VALUE,cl=gn.DefaultValue,gl=gn.getConfigDeletionHandler,hl=gn.registerNode,Fl=gn.setConfigDeletionHandler,ml=rn.isRecoilValue,pl=tr.markRecoilValueModified,El=tr.setRecoilValue,bl=tr.setRecoilValueLoadable,kl=Zr;function yl(e){var t=e.key,a=e.persistence_UNSTABLE,i=kl(e.retainedBy_UNSTABLE),n=0,r=Si(e.default)?_l(e.default.then((function(e){return r=fl(e),{__key:t,__value:e}})).catch((function(e){throw r=ll(e),e}))):fl(e.default),o=void 0,s=new Map;var u=hl({key:t,nodeType:"atom",peek:function(e,a){var i,n,s;return null!==(i=null!==(n=a.atomValues.get(t))&&void 0!==n?n:null===(s=o)||void 0===s?void 0:s[1])&&void 0!==i?i:r},get:function(e,i){if(i.atomValues.has(t))return Ci(i.atomValues.get(t));if(i.nonvalidatedAtoms.has(t)){if(null!=o)return o;if(null==a)return Ki("Tried to restore a persisted value for atom ".concat(t," but it has no persistence settings.")),r;var n=i.nonvalidatedAtoms.get(t),s=a.validator(n,dl),u=s instanceof cl?r:fl(s);return o=u}return r},set:function(e,a,i){if(a.atomValues.has(t)){var n=Ci(a.atomValues.get(t));if("hasValue"===n.state&&i===n.contents)return new Map}else if(!a.nonvalidatedAtoms.has(t)&&i instanceof cl)return new Map;return o=void 0,(new Map).set(t,fl(i))},init:function(a,i,o){n++;var l=a.getState().knownAtoms.has(t);if(a.getState().knownAtoms.add(t),"loading"===r.state){var _=function(){var e;(null!==(e=a.getState().nextTree)&&void 0!==e?e:a.getState().currentTree).atomValues.has(t)||pl(a,u)};r.contents.then(_).catch(_)}var f=dl,d=null;if(null!=e.effects_UNSTABLE&&!l){var c,g=!0,h=function(e){return function(t){if(g){var i=f instanceof cl||Si(f)?"hasValue"===r.state?r.contents:dl:f;f="function"===typeof t?t(i):t,Si(f)&&(f=f.then((function(t){return d={effect:e,value:t},t})))}else{if(Si(t))throw new Error("Setting atoms to async values is not implemented.");"function"!==typeof t&&(d={effect:e,value:t}),El(a,u,"function"===typeof t?function(a){var i=t(a);return d={effect:e,value:i},i}:t)}}},F=function(e){return function(){return h(e)(dl)}},m=function(e){return function(i){a.subscribeToTransactions((function(a){var n,o=a.getState(),s=o.currentTree,u=o.previousTree;u||(Ui("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),u=s);var l=null!==(n=s.atomValues.get(t))&&void 0!==n?n:r;if("hasValue"===l.state){var _,f,c,g,h=l.contents,F=null!==(_=u.atomValues.get(t))&&void 0!==_?_:r,m="hasValue"===F.state?F.contents:dl;(null===(f=d)||void 0===f?void 0:f.effect)!==e||(null===(c=d)||void 0===c?void 0:c.value)!==h?i(h,m):(null===(g=d)||void 0===g?void 0:g.effect)===e&&(d=null)}}),t)}},p=hi(null!==(E=e.effects_UNSTABLE)&&void 0!==E?E:[]);try{for(p.s();!(c=p.n()).done;){var E,b,k=c.value,y=k({node:u,trigger:o,setSelf:h(k),resetSelf:F(k),onSet:m(k)});if(null!=y)s.set(a,[].concat((0,Va.Z)(null!==(b=s.get(a))&&void 0!==b?b:[]),[y]))}}catch(w){p.e(w)}finally{p.f()}g=!1}if(!(f instanceof cl)){var v,D=Si(f)?_l(function(e,a){var i=a.then((function(a){var n,r;return(null===(r=(null!==(n=e.getState().nextTree)&&void 0!==n?n:e.getState().currentTree).atomValues.get(t))||void 0===r?void 0:r.contents)===i&&El(e,u,a),{__key:t,__value:a}})).catch((function(a){var n,r;throw(null===(r=(null!==(n=e.getState().nextTree)&&void 0!==n?n:e.getState().currentTree).atomValues.get(t))||void 0===r?void 0:r.contents)===i&&bl(e,u,ll(a)),a}));return i}(a,f)):fl(f);i.atomValues.set(t,D),null===(v=a.getState().nextTree)||void 0===v||v.atomValues.set(t,D)}return function(){var e;n--,null===(e=s.get(a))||void 0===e||e.forEach((function(e){return e()})),s.delete(a),a.getState().knownAtoms.delete(t)}},invalidate:function(){o=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==gl(t)&&n<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:i});return u}function vl(e){var t=e.default,a=ai(e,yi);return ml(t)?function(e){var t=vl((0,Ha.Z)((0,Ha.Z)({},e),{},{default:dl,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:(0,Ha.Z)((0,Ha.Z)({},e.persistence_UNSTABLE),{},{validator:function(t){return t instanceof cl?t:Ci(e.persistence_UNSTABLE).validator(t,dl)}}),effects_UNSTABLE:e.effects_UNSTABLE})),a=ul({key:"".concat(e.key,"__withFallback"),get:function(a){var i=(0,a.get)(t);return i instanceof cl?e.default:i},set:function(e,a){return(0,e.set)(t,a)},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return Fl(a.key,gl(e.key)),a}((0,Ha.Z)((0,Ha.Z)({},a),{},{default:t})):yl((0,Ha.Z)((0,Ha.Z)({},a),{},{default:t}))}var Dl=vl,wl=function(){function e(t){var a;pi(this,e),Yi(this,"_map",void 0),Yi(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(a=null===t||void 0===t?void 0:t.mapKey)&&void 0!==a?a:function(e){return e}}return mi(e,[{key:"size",value:function(){return this._map.size}},{key:"has",value:function(e){return this._map.has(this._keyMapper(e))}},{key:"get",value:function(e){return this._map.get(this._keyMapper(e))}},{key:"set",value:function(e,t){this._map.set(this._keyMapper(e),t)}},{key:"delete",value:function(e){this._map.delete(this._keyMapper(e))}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Sl={MapCache:wl}.MapCache,Cl=Object.freeze({__proto__:null,MapCache:Sl}),Al=xu.LRUCache,Tl=Cl.MapCache,xl={equality:"reference",eviction:"none",maxSize:1/0};function Il(e){switch(e){case"reference":return function(e){return e};case"value":return function(e){return Eu(e)}}throw new Error("Unrecognized equality policy ".concat(e))}function Rl(e,t,a){switch(e){case"keep-all":return new Tl({mapKey:a});case"lru":return new Al({mapKey:a,maxSize:Ci(t)});case"most-recent":return new Al({mapKey:a,maxSize:1})}throw new Error("Unrecognized eviction policy ".concat(e))}var Ol=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xl,t=e.equality,a=void 0===t?xl.equality:t,i=e.eviction,n=void 0===i?xl.eviction:i,r=e.maxSize,o=void 0===r?xl.maxSize:r,s=Il(a),u=Rl(n,o,s);return u},Ll=gn.setConfigDeletionHandler;var Nl=function(e){var t,a,i=Ol({equality:null!==(t=null===(a=e.cachePolicyForParams_UNSTABLE)||void 0===a?void 0:a.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return function(t){var a,n=i.get(t);if(null!=n)return n;e.cachePolicyForParams_UNSTABLE;var r=ai(e,vi),o=Dl((0,Ha.Z)((0,Ha.Z)({},r),{},{key:"".concat(e.key,"__").concat(null!==(a=Eu(t))&&void 0!==a?a:"void"),default:"function"===typeof e.default?e.default(t):e.default,retainedBy_UNSTABLE:"function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects_UNSTABLE:"function"===typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):e.effects_UNSTABLE}));return i.set(t,o),Ll(o.key,(function(){i.delete(t)})),o}},Pl=gn.setConfigDeletionHandler,jl=0;var Bl=function(e){var t,a,i=Ol({equality:null!==(t=null===(a=e.cachePolicyForParams_UNSTABLE)||void 0===a?void 0:a.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return function(t){var a,n=i.get(t);if(null!=n)return n;var r,o="".concat(e.key,"__selectorFamily/").concat(null!==(a=Eu(t,{allowFunctions:!0}))&&void 0!==a?a:"void","/").concat(jl++),s=function(a){return e.get(t)(a)},u=e.cachePolicy_UNSTABLE,l="function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;if(null!=e.set){var _=e.set;r=ul({key:o,get:s,set:function(e,a){return _(t)(e,a)},cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else r=ul({key:o,get:s,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});return i.set(t,r),Pl(r.key,(function(){i.delete(t)})),r}},Ml=Bl({key:"__constant",get:function(e){return function(){return e}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var ql=function(e){return Ml(e)},Gl=Bl({key:"__error",get:function(e){return function(){throw new Error(e)}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Zl=function(e){return Gl(e)};var Ul=function(e){return e},zl=Ni.loadableWithError,Wl=Ni.loadableWithPromise,Hl=Ni.loadableWithValue;function Vl(e,t){var a,i=Array(t.length).fill(void 0),n=Array(t.length).fill(void 0),r=hi(t.entries());try{for(r.s();!(a=r.n()).done;){var o=(0,Ka.Z)(a.value,2),s=o[0],u=o[1];try{i[s]=e(u)}catch(l){n[s]=l}}}catch(_){r.e(_)}finally{r.f()}return[i,n]}function Kl(e){return null!=e&&!Si(e)}function Yl(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((function(t){return e[t]}))}function $l(e){return null!=e&&"object"===typeof e&&e.hasOwnProperty("__value")?e.__value:e}function Jl(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((function(e,a,i){return(0,Ha.Z)((0,Ha.Z)({},e),{},(0,Ya.Z)({},a,t[i]))}),{})}function Xl(e,t,a){return Jl(e,a.map((function(e,a){return null==e?Hl(t[a]):Si(e)?Wl(e):zl(e)})))}var Ql,e_=Bl({key:"__waitForNone",get:function(e){return function(t){var a=Vl(t.get,Yl(e)),i=(0,Ka.Z)(a,2),n=i[0],r=i[1];return Xl(e,n,r)}},dangerouslyAllowMutability:!0}),t_=Bl({key:"__waitForAny",get:function(e){return function(t){var a=Vl(t.get,Yl(e)),i=(0,Ka.Z)(a,2),n=i[0],r=i[1];return r.some((function(e){return!Si(e)}))?Xl(e,n,r):new Promise((function(t){var a,i=hi(r.entries());try{var o=function(){var i=(0,Ka.Z)(a.value,2),o=i[0],s=i[1];Si(s)&&s.then((function(a){n[o]=$l(a),r[o]=void 0,t(Xl(e,n,r))})).catch((function(a){r[o]=a,t(Xl(e,n,r))}))};for(i.s();!(a=i.n()).done;)o()}catch(s){i.e(s)}finally{i.f()}}))}},dangerouslyAllowMutability:!0}),a_=Bl({key:"__waitForAll",get:function(e){return function(t){var a=Vl(t.get,Yl(e)),i=(0,Ka.Z)(a,2),n=i[0],r=i[1];if(r.every((function(e){return null==e})))return Jl(e,n);var o=r.find(Kl);if(null!=o)throw o;return Promise.all(r).then((function(t){return Jl(e,(a=n,i=t,i.map((function(e,t){return void 0===e?a[t]:e}))).map($l));var a,i}))}},dangerouslyAllowMutability:!0}),i_=Bl({key:"__waitForAllSettled",get:function(e){return function(t){var a=Vl(t.get,Yl(e)),i=(0,Ka.Z)(a,2),n=i[0],r=i[1];return r.every((function(e){return!Si(e)}))?Xl(e,n,r):Promise.all(r.map((function(e,t){return Si(e)?e.then((function(e){n[t]=$l(e),r[t]=void 0})).catch((function(e){n[t]=void 0,r[t]=e})):null}))).then((function(){return Xl(e,n,r)}))}},dangerouslyAllowMutability:!0}),n_=Bl({key:"__noWait",get:function(e){return function(t){var a=t.get;try{return Hl(a(e))}catch(i){return Si(i)?Wl(i):zl(i)}}},dangerouslyAllowMutability:!0}),r_={waitForNone:e_,waitForAny:t_,waitForAll:a_,waitForAllSettled:i_,noWait:n_},o_=or,s_=rr,u_=gn.DefaultValue,l_=Yo,__=rn.isRecoilValue,f_=Fn.retentionZone,d_=mo.freshSnapshot,c_={DefaultValue:u_,RecoilRoot:l_,useRecoilBridgeAcrossReactRoots_UNSTABLE:mu,atom:Dl,selector:ul,retentionZone:f_,atomFamily:Nl,selectorFamily:Bl,constSelector:ql,errorSelector:Zl,readOnlySelector:Ul,useRecoilValue:nu,useRecoilValueLoadable:ru,useRecoilState:eu,useRecoilStateLoadable:tu,useSetRecoilState:uu,useResetRecoilState:su,useGetRecoilValueInfo_UNSTABLE:cu,useRetain:ou,useRecoilCallback:Xs,useRecoilTransaction_UNSTABLE:au,useGotoRecoilSnapshot:Js,useRecoilSnapshot:Qs,useRecoilTransactionObserver_UNSTABLE:iu,useTransactionObservation_UNSTABLE:_u,useSetUnvalidatedAtomValues_UNSTABLE:lu,noWait:r_.noWait,waitForNone:r_.waitForNone,waitForAny:r_.waitForAny,waitForAll:r_.waitForAll,waitForAllSettled:r_.waitForAllSettled,isRecoilValue:__,batchUpdates:o_,setBatcher:s_,snapshot_UNSTABLE:d_},g_=c_.DefaultValue,h_=c_.RecoilRoot,F_=c_.atom,m_=c_.selector,p_=c_.useRecoilValue,E_=c_.useRecoilValueLoadable,b_=c_.useRecoilState,k_=c_.useSetRecoilState,y_=c_.useResetRecoilState,v_=c_.useRecoilCallback,D_=c_.useRecoilSnapshot,w_=c_.waitForAll;!function(e){e.NUI_SETTINGS_UPDATED="npwd:nuiSettingsUpdated"}(Ql||(Ql={}));var S_=function(e){var t=e.level||1,a=e.action||"Undefined action";Ra.debug.printDebugLogs&&t>=Ra.debug.logLevel&&(console.group("".concat(a," | Level: ").concat(t)),console.dir(e.data),console.groupEnd())},C_=function(e,t,a){return{data:e,status:t,errorMsg:a}};function A_(){return(A_=ri(bi().mark((function e(t,a,i){var n,r,o,s;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(a)},e.next=4;break;case 4:return r=window.GetParentResourceName?window.GetParentResourceName():"npwd",e.next=7,fetch("https://".concat(r,"/").concat(t),n);case 7:return o=e.sent,e.next=10,o.json();case 10:return s=e.sent,S_({data:{request:a,response:s},action:"fetchNui (".concat(t,")")}),e.abrupt("return",s);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var T_=function(e,t,a){return A_.apply(this,arguments)},x_=a(4984),I_="npwd_settings",R_=new x_.Validator;R_.addSchema({id:"/IconSetValue",type:"object",properties:{name:{type:"string"},custom:{type:"boolean"}},required:!0},"/IconSetValue"),R_.addSchema({id:"/SettingOptionIconSet",type:"object",properties:{label:{type:"string"},value:{$ref:"/IconSetValue"}},required:!0},"/SettingOptionIconSet");var O_={type:"object",properties:{callVolume:{type:"number",required:!0},iconSet:{$ref:"/SettingOptionIconSet",required:!0},language:{$ref:"/SettingOption",required:!0},wallpaper:{$ref:"/SettingOption",required:!0},frame:{$ref:"/SettingOption",required:!0},theme:{$ref:"/SettingOption",required:!0},zoom:{$ref:"/SettingOption",required:!0},streamerMode:{type:"boolean",required:!0},ringtone:{$ref:"/SettingOption",required:!0},ringtoneVol:{type:"number",required:!0},notiSound:{$ref:"/SettingOption",required:!0},notiSoundVol:{type:"number",required:!0},TWITTER_notiFilter:{$ref:"/SettingOption",required:!0},TWITTER_notiSound:{$ref:"/SettingOption",required:!0},TWITTER_notiSoundVol:{type:"number",required:!0},TWITTER_notifyNewFeedTweet:{type:"boolean",required:!0},MARKETPLACE_notifyNewListing:{type:"boolean",required:!0}}};R_.addSchema({id:"/SettingOption",type:"object",properties:{label:{type:"string"},val:{type:"string"}},required:!0},"/SettingOption");var L_=F_({key:"settings",default:Ra.defaultSettings,effects_UNSTABLE:[function(e){return function(t){var a=t.setSelf,i=t.onSet,n=localStorage.getItem(e);n||a(new g_);try{var r=function(e){var t=JSON.parse(e);return R_.validate(t,O_).valid}(n),o=r?JSON.parse(n):Ra.defaultSettings;r||console.error("Settings Schema was invalid, applying default settings"),T_(Ql.NUI_SETTINGS_UPDATED,o,{}).catch(),a(o)}catch(s){console.error("Unable to parse JSON"),a(Ra.defaultSettings)}i((function(t){T_(Ql.NUI_SETTINGS_UPDATED,t,{}).catch(),t instanceof g_?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))}))}}(I_)]}),N_=function(){return b_(L_)},P_=function(){return p_(L_)},j_={visibility:F_({key:"phoneVisibility",default:!1}),resourceConfig:F_({key:"resourceConfig",default:null}),phoneTime:F_({key:"phoneTime",default:null}),isPhoneDisabled:F_({key:"isPhoneDisabled",default:!1})},B_=a(1845),M_=(0,r.createContext)(null),q_=function(e){var t=e.children,a=(0,r.useRef)();(0,r.useEffect)((function(){a.current=new Map}),[]);var i=(0,r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Promise((function(r){a.current||(a.current=new Map);var o=a.current.get(e);if(o)return o.howl.volume(t),o.howl.loop(i),n&&o.howl.play(),r({howl:o.howl,url:e});var s=new B_.Howl({src:e,loop:i,volume:t,autoplay:n});a.current.set(e,{howl:s,volume:t}),s.once("load",(function(){r({howl:s,url:e})}));var u=function(t,a){r(null),console.error("Howler Error \n",a,"\nid: ",t,"\nsrc: ",e)};s.once("loaderror",u),s.once("playerror",u)}))}),[]),n=(0,r.useCallback)((function(e,t,n){var r=a.current.get(e),o=[];if(r)return a.current.forEach((function(t,a){var i=a===e,n=t.howl.playing(),r=t.howl.loop();if(!i&&r&&n){o.push(t);var s=t.howl.volume();t.howl.fade(s,.3*s,50)}})),void 0!==t&&r.howl.volume(t),void 0!==n&&r.howl.loop(n),r.howl.play(),void r.howl.once("end",(function(){o.forEach((function(e){e.howl.fade(e.howl.volume(),e.volume,50)})),o=void 0}));i(e,t,n,!0)}),[i]),o=(0,r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=a.current.get(e);return null===i||void 0===i?void 0:i.howl.volume(t)}),[]),s=(0,r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=a.current.get(e);return i.howl.loop(t),i.howl.loop()}),[]),u=(0,r.useCallback)((function(e){if(a.current){var t=a.current.get(e);null===t||void 0===t||t.howl.stop()}}),[]),l=(0,r.useCallback)((function(e){if(a.current){var t=a.current.get(e);return!!t&&(t.howl.stop(),t.howl.unload(),a.current.delete(e),!0)}}),[]),_=(0,r.useCallback)((function(e){return!!a.current&&!!a.current.get(e)}),[]),f=(0,r.useCallback)((function(e){if(!a.current)return!1;var t=a.current.get(e);return(null===t||void 0===t?void 0:t.howl.playing())||!1}),[]);return(0,Na.jsx)(M_.Provider,{value:{mount:i,play:n,stop:u,playing:f,remove:l,volume:o,loop:s,isMounted:_},children:t})},G_=function(){return(0,r.useContext)(M_)},Z_={ringtone:function(e){return"media/ringtones/".concat(e||"pixel",".ogg")},notiSound:function(e){return"media/notifications/".concat(e||"online",".ogg")}},U_=function(e,t,a){try{var i;return a?{sound:Z_[e]((null===(i=t["".concat(a,"_").concat(e)])||void 0===i?void 0:i.value)||t[e].value),volume:(t["".concat(a,"_").concat(e,"Vol")]||t["".concat(e,"Vol")])/100}:{sound:Z_[e](t[e].value),volume:t["".concat(e,"Vol")]/100}}catch(n){return console.error("getSoundSettings.ts error",n,"Using default sounds"),{sound:Z_[e](),volume:0}}},z_=(0,r.createContext)(null);function W_(e){var t=e.children,a=p_(j_.visibility),i=p_(j_.isPhoneDisabled),n=N_(),o=(0,Ka.Z)(n,1)[0],s=(0,r.useState)(!1),u=(0,Ka.Z)(s,2),l=u[0],_=u[1],f=(0,r.useState)([]),d=(0,Ka.Z)(f,2),c=d[0],g=d[1],h=G_(),F=h.mount,m=h.play,p=(0,r.useRef)(),E=(0,r.useState)([]),b=(0,Ka.Z)(E,2),k=b[0],y=b[1],v=(0,r.useState)(),D=(0,Ka.Z)(v,2),w=D[0],S=D[1];(0,r.useEffect)((function(){a&&w&&!w.keepWhenPhoneClosed&&w.resolve()}),[a,w]);var C=(0,r.useCallback)((function(e,t){g((function(a){var i=(0,Va.Z)(a);return i.splice(e,1,t),i}))}),[]),A=(0,r.useCallback)((function(e){i||g((function(t){return[e].concat((0,Va.Z)(t))}))}),[i]),T=(0,r.useCallback)((function(e){return c.findIndex((function(t){return t.app===e}))}),[c]),x=(0,r.useCallback)((function(e){return c.find((function(t){return t.id===e}))||null}),[c]),I=(0,r.useCallback)((function(e,t,a){return new Promise((function(i){var n=function(){null===t||void 0===t||t(e),i()},r=function(t){return function(){null===t||void 0===t||t(e),clearTimeout(p.current),n()}};S((0,Ha.Z)((0,Ha.Z)({},e),{},{resolve:n,onClickAlert:r(e.onClick),onCloseAlert:r(e.onClose)})),e.sound&&a&&m(a),e.keepWhenPhoneClosed||(p.current=setTimeout((function(){n()}),3300))}))}),[m]);(0,r.useEffect)((function(){!w&&k.length&&I.apply(void 0,(0,Va.Z)(k[0])).then((function(){y((function(e){var t=e;return e.shift(),t})),S(null)}))}),[I,k,w]);var R=(0,r.useMemo)((function(){return c.reduce((function(e,t){var a=e.findIndex((function(e){return e.key===t.app}));return-1!==a?(e[a].badge++,e):(e.unshift({key:t.app,icon:t.notificationIcon,badge:1}),e)}),[])}),[c]);return(0,Na.jsx)(z_.Provider,{value:{setBarUncollapsed:_,barUncollapsed:l,currentAlert:w,notifications:c,removeAlerts:function(){y([]),S(null)},addNotification:A,removeNotification:function(e){g((function(t){var a=t;return a.splice(e,1),(0,Va.Z)(a)}))},updateId:function(e,t){var a=c.findIndex((function(t){return t.id===e}));if(-1!==a){var i=(0,Ha.Z)((0,Ha.Z)({},c[a]),t);C(a,i)}},removeId:function(e){g((function(t){return t.filter((function(t){return t.id!==e}))}))},hasNotification:x,hasAppNotification:T,addNotificationAlert:function(e,t){if(!i)if(e.sound){var a=U_("notiSound",o,e.app),n=a.sound,r=a.volume;F(n,r,!1).then((function(a){var i=a.url;return y((function(a){return[].concat((0,Va.Z)(a),[[e,t,i]])}))}))}else y((function(a){return[].concat((0,Va.Z)(a),[[e,t,void 0]])}))},icons:R,count:c.length},children:t})}var H_=a(8079),V_={"taso-dark":{typography:{fontFamily:"'SegoeUI', 'Roboto', 'Arial', sans-serif"},components:{MuiDivider:{styleOverrides:{root:{borderColor:"rgba(255, 255, 255, 0.12)"}}}},palette:{mode:"dark",primary:{main:"#a6d4fa"},text:{secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"}}},"default-light":{typography:{fontFamily:"'SegoeUI', 'Roboto', 'Arial', sans-serif"},palette:{mode:"light"}}},K_={components:{MuiListItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset"}}}}},Y_=function(){var e=N_(),t=(0,Ka.Z)(e,1)[0];return(0,r.useMemo)((function(){return(0,H_.Z)(V_[t.theme.value],K_)}),[t.theme])},$_=(0,r.createContext)(null),J_=function(e){var t=e.children,a=(0,r.useState)(!1),i=(0,Ka.Z)(a,2),n=i[0],o=i[1],s=(0,r.useState)(null),u=(0,Ka.Z)(s,2),l=u[0],_=u[1];return(0,Na.jsx)($_.Provider,{value:{alert:l,addAlert:function(e){_(e),o(!0)},handleClose:function(){o(!1)},isOpen:n},children:t})},X_=["children","style","handleClickAway"],Q_=function(e){var t=e.children,a=e.style,i=(e.handleClickAway,ai(e,X_));return(0,Na.jsx)("div",(0,Ha.Z)((0,Ha.Z)({},i),{},{style:(0,Ha.Z)({padding:0,margin:0,width:"100%",height:"100%",display:"flex",position:"relative",flexDirection:"column",minHeight:"720px"},a),children:t}))},ef=a(8182),tf=a(767),af=a(48),nf=a(33),rf=a(9888),of=a(5159),sf=a(208);function uf(e){return(0,of.Z)("MuiPaper",e)}(0,sf.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var lf=["className","component","elevation","square","variant"],_f=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)},ff=(0,nf.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t[a.variant],!a.square&&t.rounded,"elevation"===a.variant&&t["elevation".concat(a.elevation)]]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},!a.square&&{borderRadius:t.shape.borderRadius},"outlined"===a.variant&&{border:"1px solid ".concat(t.palette.divider)},"elevation"===a.variant&&(0,Ba.Z)({boxShadow:t.shadows[a.elevation]},"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,af.Fq)("#fff",_f(a.elevation)),", ").concat((0,af.Fq)("#fff",_f(a.elevation)),")")}))})),df=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiPaper"}),i=a.className,n=a.component,r=void 0===n?"div":n,o=a.elevation,s=void 0===o?1:o,u=a.square,l=void 0!==u&&u,_=a.variant,f=void 0===_?"elevation":_,d=(0,ti.Z)(a,lf),c=(0,Ba.Z)({},a,{component:r,elevation:s,square:l,variant:f}),g=function(e){var t=e.square,a=e.elevation,i=e.variant,n=e.classes,r={root:["root",i,!t&&"rounded","elevation"===i&&"elevation".concat(a)]};return(0,tf.Z)(r,uf,n)}(c);return(0,Na.jsx)(ff,(0,Ba.Z)({as:r,ownerState:c,className:(0,ef.Z)(g.root,i),ref:t},d))})),cf=df;var gf=function(e){return"string"===typeof e};function hf(e){return(0,of.Z)("MuiBackdrop",e)}(0,sf.Z)("MuiBackdrop",["root","invisible"]);var Ff=["classes","className","invisible","component","components","componentsProps","theme"],mf=r.forwardRef((function(e,t){var a=e.classes,i=e.className,n=e.invisible,r=void 0!==n&&n,o=e.component,s=void 0===o?"div":o,u=e.components,l=void 0===u?{}:u,_=e.componentsProps,f=void 0===_?{}:_,d=e.theme,c=(0,ti.Z)(e,Ff),g=(0,Ba.Z)({},e,{classes:a,invisible:r}),h=function(e){var t=e.classes,a={root:["root",e.invisible&&"invisible"]};return(0,tf.Z)(a,hf,t)}(g),F=l.Root||s,m=f.root||{};return(0,Na.jsx)(F,(0,Ba.Z)({"aria-hidden":!0},m,!gf(F)&&{as:s,ownerState:(0,Ba.Z)({},g,m.ownerState),theme:d},{ref:t},c,{className:(0,ef.Z)(h.root,m.className,i)}))})),pf=mf;function Ef(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,si(e,t)}var bf=!1,kf=r.createContext(null),yf="unmounted",vf="exited",Df="entering",wf="entered",Sf="exiting",Cf=function(e){function t(t,a){var i;i=e.call(this,t,a)||this;var n,r=a&&!a.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(n=vf,i.appearStatus=Df):n=wf:n=t.unmountOnExit||t.mountOnEnter?yf:vf,i.state={status:n},i.nextCallback=null,i}Ef(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yf?{status:vf}:null};var a=t.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var a=this.state.status;this.props.in?a!==Df&&a!==wf&&(t=Df):a!==Df&&a!==wf||(t=Sf)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,a,i=this.props.timeout;return e=t=a=i,null!=i&&"number"!==typeof i&&(e=i.exit,t=i.enter,a=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:a}},a.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Df?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===vf&&this.setState({status:yf})},a.performEnter=function(e){var t=this,a=this.props.enter,i=this.context?this.context.isMounting:e,n=this.props.nodeRef?[i]:[o.findDOMNode(this),i],r=n[0],s=n[1],u=this.getTimeouts(),l=i?u.appear:u.enter;!e&&!a||bf?this.safeSetState({status:wf},(function(){t.props.onEntered(r)})):(this.props.onEnter(r,s),this.safeSetState({status:Df},(function(){t.props.onEntering(r,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:wf},(function(){t.props.onEntered(r,s)}))}))})))},a.performExit=function(){var e=this,t=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!bf?(this.props.onExit(i),this.safeSetState({status:Sf},(function(){e.props.onExiting(i),e.onTransitionEnd(a.exit,(function(){e.safeSetState({status:vf},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:vf},(function(){e.props.onExited(i)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},a.onTransitionEnd=function(e,t){this.setNextCallback(t);var a=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(a&&!i){if(this.props.addEndListener){var n=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],r=n[0],s=n[1];this.props.addEndListener(r,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===yf)return null;var t=this.props,a=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,ti.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(kf.Provider,{value:null},"function"===typeof a?a(e,i):r.cloneElement(r.Children.only(a),i))},t}(r.Component);function Af(){}Cf.contextType=kf,Cf.propTypes={},Cf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Af,onEntering:Af,onEntered:Af,onExit:Af,onExiting:Af,onExited:Af},Cf.UNMOUNTED=yf,Cf.EXITED=vf,Cf.ENTERING=Df,Cf.ENTERED=wf,Cf.EXITING=Sf;var Tf=Cf,xf=a(1314),If=a(6482);function Rf(){return(0,Ua.Z)(If.Z)}var Of=function(e){return e.scrollTop};function Lf(e,t){var a,i,n=e.timeout,r=e.easing,o=e.style,s=void 0===o?{}:o;return{duration:null!=(a=s.transitionDuration)?a:"number"===typeof n?n:n[t.mode]||0,easing:null!=(i=s.transitionTimingFunction)?i:"object"===typeof r?r[t.mode]:r,delay:s.transitionDelay}}var Nf=a(2071),Pf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],jf={entering:{opacity:1},entered:{opacity:1}},Bf={enter:xf.x9.enteringScreen,exit:xf.x9.leavingScreen},Mf=r.forwardRef((function(e,t){var a=e.addEndListener,i=e.appear,n=void 0===i||i,o=e.children,s=e.easing,u=e.in,l=e.onEnter,_=e.onEntered,f=e.onEntering,d=e.onExit,c=e.onExited,g=e.onExiting,h=e.style,F=e.timeout,m=void 0===F?Bf:F,p=e.TransitionComponent,E=void 0===p?Tf:p,b=(0,ti.Z)(e,Pf),k=Rf(),y=r.useRef(null),v=(0,Nf.Z)(o.ref,t),D=(0,Nf.Z)(y,v),w=function(e){return function(t){if(e){var a=y.current;void 0===t?e(a):e(a,t)}}},S=w(f),C=w((function(e,t){Of(e);var a=Lf({style:h,timeout:m,easing:s},{mode:"enter"});e.style.webkitTransition=k.transitions.create("opacity",a),e.style.transition=k.transitions.create("opacity",a),l&&l(e,t)})),A=w(_),T=w(g),x=w((function(e){var t=Lf({style:h,timeout:m,easing:s},{mode:"exit"});e.style.webkitTransition=k.transitions.create("opacity",t),e.style.transition=k.transitions.create("opacity",t),d&&d(e)})),I=w(c);return(0,Na.jsx)(E,(0,Ba.Z)({appear:n,in:u,nodeRef:y,onEnter:C,onEntered:A,onEntering:S,onExit:x,onExited:I,onExiting:T,addEndListener:function(e){a&&a(y.current,e)},timeout:m},b,{children:function(e,t){return r.cloneElement(o,(0,Ba.Z)({style:(0,Ba.Z)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},jf[e],h,o.props.style),ref:D},t))}}))})),qf=Mf,Gf=["children","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],Zf=(0,nf.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),Uf=r.forwardRef((function(e,t){var a,i=(0,rf.Z)({props:e,name:"MuiBackdrop"}),n=i.children,r=i.components,o=void 0===r?{}:r,s=i.componentsProps,u=void 0===s?{}:s,l=i.className,_=i.invisible,f=void 0!==_&&_,d=i.open,c=i.transitionDuration,g=i.TransitionComponent,h=void 0===g?qf:g,F=(0,ti.Z)(i,Gf),m=function(e){return e.classes}((0,Ba.Z)({},i,{invisible:f}));return(0,Na.jsx)(h,(0,Ba.Z)({in:d,timeout:c},F,{children:(0,Na.jsx)(pf,{className:l,invisible:f,components:(0,Ba.Z)({Root:Zf},o),componentsProps:{root:(0,Ba.Z)({},u.root,(!o.Root||!gf(o.Root))&&{ownerState:(0,Ba.Z)({},null==(a=u.root)?void 0:a.ownerState)})},classes:m,ref:t,children:n})}))})),zf=Uf,Wf="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hf="object"===("undefined"===typeof window?"undefined":Wf(window))&&"object"===("undefined"===typeof document?"undefined":Wf(document))&&9===document.nodeType,Vf={}.constructor;function Kf(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(Kf);if(e.constructor!==Vf)return e;var t={};for(var a in e)t[a]=Kf(e[a]);return t}function Yf(e,t,a){void 0===e&&(e="unnamed");var i=a.jss,n=Kf(t),r=i.plugins.onCreateRule(e,n,a);return r||(e[0],null)}var $f=function(e,t){for(var a="",i=0;i<+~=|^:(),"'`\s])/g,ad="undefined"!==typeof CSS&&CSS.escape,id=function(e){return ad?ad(e):e.replace(td,"\\$1")},nd=function(){function e(e,t,a){this.type="style",this.isProcessed=!1;var i=a.sheet,n=a.Renderer;this.key=e,this.options=a,this.style=t,i?this.renderer=i.renderer:n&&(this.renderer=new n)}return e.prototype.prop=function(e,t,a){if(void 0===t)return this.style[e];var i=!!a&&a.force;if(!i&&this.style[e]===t)return this;var n=t;a&&!1===a.process||(n=this.options.jss.plugins.onChangeValue(t,e,this));var r=null==n||!1===n,o=e in this.style;if(r&&!o&&!i)return this;var s=r&&o;if(s?delete this.style[e]:this.style[e]=n,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,n),this;var u=this.options.sheet;return u&&u.attached,this},e}(),rd=function(e){function t(t,a,i){var n;n=e.call(this,t,a,i)||this;var r=i.selector,o=i.scoped,s=i.sheet,u=i.generateId;return r?n.selectorText=r:!1!==o&&(n.id=u(ii(ii(n)),s),n.selectorText="."+id(n.id)),n}Ef(t,e);var a=t.prototype;return a.applyTo=function(e){var t=this.renderer;if(t){var a=this.toJSON();for(var i in a)t.setProperty(e,i,a[i])}return this},a.toJSON=function(){var e={};for(var t in this.style){var a=this.style[t];"object"!==typeof a?e[t]=a:Array.isArray(a)&&(e[t]=Jf(a))}return e},a.toString=function(e){var t=this.options.sheet,a=!!t&&t.options.link?(0,Ba.Z)({},e,{allowEmpty:!0}):e;return ed(this.selectorText,this.style,a)},mi(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,a=this.renderable;if(a&&t)t.setSelector(a,e)||t.replaceRule(a,this)}},get:function(){return this.selectorText}}]),t}(nd),od={onCreateRule:function(e,t,a){return"@"===e[0]||a.parent&&"keyframes"===a.parent.type?null:new rd(e,t,a)}},sd={indent:1,children:!0},ud=/@([\w-]+)/,ld=function(){function e(e,t,a){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(ud);for(var n in this.at=i?i[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new Od((0,Ba.Z)({},a,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,a){var i=this.rules.add(e,t,a);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(e,t,a){var i=this.rules.replace(e,t,a);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(e){void 0===e&&(e=sd);var t=Xf(e).linebreak;if(null==e.indent&&(e.indent=sd.indent),null==e.children&&(e.children=sd.children),!1===e.children)return this.query+" {}";var a=this.rules.toString(e);return a?this.query+" {"+t+a+t+"}":""},e}(),_d=/@media|@supports\s+/,fd={onCreateRule:function(e,t,a){return _d.test(e)?new ld(e,t,a):null}},dd={indent:1,children:!0},cd=/@keyframes\s+([\w-]+)/,gd=function(){function e(e,t,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(cd);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var n=a.scoped,r=a.sheet,o=a.generateId;for(var s in this.id=!1===n?this.name:id(o(this,r)),this.rules=new Od((0,Ba.Z)({},a,{parent:this})),t)this.rules.add(s,t[s],(0,Ba.Z)({},a,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=dd);var t=Xf(e).linebreak;if(null==e.indent&&(e.indent=dd.indent),null==e.children&&(e.children=dd.children),!1===e.children)return this.at+" "+this.id+" {}";var a=this.rules.toString(e);return a&&(a=""+t+a+t),this.at+" "+this.id+" {"+a+"}"},e}(),hd=/@keyframes\s+/,Fd=/\$([\w-]+)/g,md=function(e,t){return"string"===typeof e?e.replace(Fd,(function(e,a){return a in t?t[a]:e})):e},pd=function(e,t,a){var i=e[t],n=md(i,a);n!==i&&(e[t]=n)},Ed={onCreateRule:function(e,t,a){return"string"===typeof e&&hd.test(e)?new gd(e,t,a):null},onProcessStyle:function(e,t,a){return"style"===t.type&&a?("animation-name"in e&&pd(e,"animation-name",a.keyframes),"animation"in e&&pd(e,"animation",a.keyframes),e):e},onChangeValue:function(e,t,a){var i=a.options.sheet;if(!i)return e;switch(t){case"animation":case"animation-name":return md(e,i.keyframes);default:return e}}},bd=function(e){function t(){return e.apply(this,arguments)||this}return Ef(t,e),t.prototype.toString=function(e){var t=this.options.sheet,a=!!t&&t.options.link?(0,Ba.Z)({},e,{allowEmpty:!0}):e;return ed(this.key,this.style,a)},t}(nd),kd={onCreateRule:function(e,t,a){return a.parent&&"keyframes"===a.parent.type?new bd(e,t,a):null}},yd=function(){function e(e,t,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=a}return e.prototype.toString=function(e){var t=Xf(e).linebreak;if(Array.isArray(this.style)){for(var a="",i=0;i=this.index)t.push(e);else for(var i=0;ia)return void t.splice(i,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,a=t.attached,i=(0,ti.Z)(t,["attached"]),n=Xf(i).linebreak,r="",o=0;o0){var a=function(e,t){for(var a=0;at.index&&i.options.insertionPoint===t.insertionPoint)return i}return null}(t,e);if(a&&a.renderer)return{parent:a.renderer.element.parentNode,node:a.renderer.element};if(a=function(e,t){for(var a=e.length-1;a>=0;a--){var i=e[a];if(i.attached&&i.options.insertionPoint===t.insertionPoint)return i}return null}(t,e),a&&a.renderer)return{parent:a.renderer.element.parentNode,node:a.renderer.element.nextSibling}}var i=e.insertionPoint;if(i&&"string"===typeof i){var n=function(e){for(var t=Vd(),a=0;aa?a:t},Xd=function(){function e(e){this.getPropertyValue=Ud,this.setProperty=zd,this.removeProperty=Wd,this.setSelector=Hd,this.hasInsertedRules=!1,this.cssRules=[],e&&jd.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},a=t.media,i=t.meta,n=t.element;this.element=n||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),i&&this.element.setAttribute("data-meta",i);var r=Yd();r&&this.element.setAttribute("nonce",r)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var a=t.insertionPoint,i=Kd(t);if(!1!==i&&i.parent)i.parent.insertBefore(e,i.node);else if(a&&"number"===typeof a.nodeType){var n=a,r=n.parentNode;r&&r.insertBefore(e,n.nextSibling)}else Vd().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,a=e.newClasses;e.Component;if(!a)return t;var i=(0,Ba.Z)({},t);return Object.keys(a).forEach((function(e){a[e]&&(i[e]="".concat(t[e]," ").concat(a[e]))})),i}var rc={set:function(e,t,a,i){var n=e.get(t);n||(n=new Map,e.set(t,n)),n.set(a,i)},get:function(e,t,a){var i=e.get(t);return i?i.get(a):void 0},delete:function(e,t,a){e.get(t).delete(a)}},oc=rc,sc=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var uc=Date.now(),lc="fnValues"+uc,_c="fnStyle"+ ++uc,fc=function(){return{onCreateRule:function(e,t,a){if("function"!==typeof t)return null;var i=Yf(e,{},a);return i[_c]=t,i},onProcessStyle:function(e,t){if(lc in t||_c in t)return e;var a={};for(var i in e){var n=e[i];"function"===typeof n&&(delete e[i],a[i]=n)}return t[lc]=a,e},onUpdate:function(e,t,a,i){var n=t,r=n[_c];r&&(n.style=r(e)||{});var o=n[lc];if(o)for(var s in o)n.prop(s,o[s](e),i)}}},dc="@global",cc="@global ",gc=function(){function e(e,t,a){for(var i in this.type="global",this.at=dc,this.isProcessed=!1,this.key=e,this.options=a,this.rules=new Od((0,Ba.Z)({},a,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,a){var i=this.rules.add(e,t,a);return i&&this.options.jss.plugins.onProcessRule(i),i},t.replaceRule=function(e,t,a){var i=this.rules.replace(e,t,a);return i&&this.options.jss.plugins.onProcessRule(i),i},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),hc=function(){function e(e,t,a){this.type="global",this.at=dc,this.isProcessed=!1,this.key=e,this.options=a;var i=e.substr(cc.length);this.rule=a.jss.createRule(i,t,(0,Ba.Z)({},a,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Fc=/\s*,\s*/g;function mc(e,t){for(var a=e.split(Fc),i="",n=0;n-1){var n=mg[e];if(!Array.isArray(n))return Wc+tg(n)in t&&Hc+n;if(!i)return!1;for(var r=0;rt?1:-1:e.length-t.length};return{onProcessStyle:function(t,a){if("style"!==a.type)return t;for(var i={},n=Object.keys(t).sort(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,a=void 0!==t&&t,i=e.productionPrefix,n=void 0===i?"jss":i,r=e.seed,o=void 0===r?"":r,s=""===o?"":"".concat(o,"-"),u=0,l=function(){return u+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!a){if(-1!==sc.indexOf(e.key))return"Mui-".concat(e.key);var r="".concat(s).concat(i,"-").concat(e.key);return t.options.theme[Ga]&&""===o?"".concat(r,"-").concat(l()):r}return"".concat(s).concat(n).concat(l())}}(),Bg={disableGeneration:!1,generateClassName:jg,jss:Pg,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Mg=r.createContext(Bg);var qg=-1e9;function Gg(){return qg+=1}var Zg=a(2466),Ug=a(7312),zg=["variant"];function Wg(e){return 0===e.length}function Hg(e){var t="function"===typeof e;return{create:function(a,i){var n;try{n=t?e(a):e}catch(u){throw u}if(!i||!a.components||!a.components[i]||!a.components[i].styleOverrides&&!a.components[i].variants)return n;var r=a.components[i].styleOverrides||{},o=a.components[i].variants||[],s=(0,Ba.Z)({},n);return Object.keys(r).forEach((function(e){s[e]=(0,Zg.Z)(s[e]||{},r[e])})),o.forEach((function(e){var t=function(e){var t=e.variant,a=(0,ti.Z)(e,zg),i=t||"";return Object.keys(a).sort().forEach((function(t){i+="color"===t?Wg(i)?e[t]:(0,Ug.Z)(e[t]):"".concat(Wg(i)?t:(0,Ug.Z)(t)).concat((0,Ug.Z)(e[t].toString()))})),i}(e.props);s[t]=(0,Zg.Z)(s[t]||{},e.style)})),s},options:{}}}var Vg={},Kg=["name","classNamePrefix","Component","defaultTheme"];function Yg(e,t,a){var i=e.state;if(e.stylesOptions.disableGeneration)return t||{};i.cacheClasses||(i.cacheClasses={value:null,lastProp:null,lastJSS:{}});var n=!1;return i.classes!==i.cacheClasses.lastJSS&&(i.cacheClasses.lastJSS=i.classes,n=!0),t!==i.cacheClasses.lastProp&&(i.cacheClasses.lastProp=t,n=!0),n&&(i.cacheClasses.value=nc({baseClasses:i.cacheClasses.lastJSS,newClasses:t,Component:a})),i.cacheClasses.value}function $g(e,t){var a=e.state,i=e.theme,n=e.stylesOptions,r=e.stylesCreator,o=e.name;if(!n.disableGeneration){var s=oc.get(n.sheetsManager,r,i);s||(s={refs:0,staticSheet:null,dynamicStyles:null},oc.set(n.sheetsManager,r,i,s));var u=(0,Ba.Z)({},r.options,n,{theme:i,flip:"boolean"===typeof n.flip?n.flip:"rtl"===i.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var l=n.sheetsRegistry;if(0===s.refs){var _;n.sheetsCache&&(_=oc.get(n.sheetsCache,r,i));var f=r.create(i,o);_||((_=n.jss.createStyleSheet(f,(0,Ba.Z)({link:!1},u))).attach(),n.sheetsCache&&oc.set(n.sheetsCache,r,i,_)),l&&l.add(_),s.staticSheet=_,s.dynamicStyles=ic(f)}if(s.dynamicStyles){var d=n.jss.createStyleSheet(s.dynamicStyles,(0,Ba.Z)({link:!0},u));d.update(t),d.attach(),a.dynamicSheet=d,a.classes=nc({baseClasses:s.staticSheet.classes,newClasses:d.classes}),l&&l.add(d)}else a.classes=s.staticSheet.classes;s.refs+=1}}function Jg(e,t){var a=e.state;a.dynamicSheet&&a.dynamicSheet.update(t)}function Xg(e){var t=e.state,a=e.theme,i=e.stylesOptions,n=e.stylesCreator;if(!i.disableGeneration){var r=oc.get(i.sheetsManager,n,a);r.refs-=1;var o=i.sheetsRegistry;0===r.refs&&(oc.delete(i.sheetsManager,n,a),i.jss.removeStyleSheet(r.staticSheet),o&&o.remove(r.staticSheet)),t.dynamicSheet&&(i.jss.removeStyleSheet(t.dynamicSheet),o&&o.remove(t.dynamicSheet))}}function Qg(e,t){var a,i=r.useRef([]),n=r.useMemo((function(){return{}}),t);i.current!==n&&(i.current=n,a=e()),r.useEffect((function(){return function(){a&&a()}}),[n])}function eh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.name,i=t.classNamePrefix,n=t.Component,o=t.defaultTheme,s=void 0===o?Vg:o,u=(0,ti.Z)(t,Kg),l=Hg(e),_=a||i||"makeStyles";l.options={index:Gg(),name:a,meta:_,classNamePrefix:_};var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,qa.Z)()||s,i=(0,Ba.Z)({},r.useContext(Mg),u),o=r.useRef(),_=r.useRef();Qg((function(){var n={name:a,state:{},stylesCreator:l,stylesOptions:i,theme:t};return $g(n,e),_.current=!1,o.current=n,function(){Xg(n)}}),[t,l]),r.useEffect((function(){_.current&&Jg(o.current,e),_.current=!0}));var f=Yg(o.current,e.classes,n);return f};return f}var th=a(8550),ah=a(2645),ih=a(3078),nh=["sx"];function rh(e){var t,a=e.sx,i=function(e){var t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((function(a){ih.G[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]})),t}((0,ti.Z)(e,nh)),n=i.systemProps,r=i.otherProps;return t=Array.isArray(a)?[n].concat((0,Va.Z)(a)):"function"===typeof a?function(){var e=a.apply(void 0,arguments);return(0,Zg.P)(e)?(0,Ba.Z)({},n,e):n}:(0,Ba.Z)({},n,a),(0,Ba.Z)({},r,{sx:t})}var oh=["className","component"];var sh=a(7125),uh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,a=e.defaultClassName,i=void 0===a?"MuiBox-root":a,n=e.generateClassName,o=(0,th.ZP)("div")(ah.Z),s=r.forwardRef((function(e,a){var r=(0,Ua.Z)(t),s=rh(e),u=s.className,l=s.component,_=void 0===l?"div":l,f=(0,ti.Z)(s,oh);return(0,Na.jsx)(o,(0,Ba.Z)({as:_,ref:a,className:(0,ef.Z)(u,n?n(i):i),theme:r},f))}));return s}({defaultTheme:(0,H_.Z)(),defaultClassName:"MuiBox-root",generateClassName:sh.Z.generate}),lh=uh;function _h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var fh=a(5438),dh=a(1346),ch=a(6567),gh=(0,Oa.w)((function(e,t){var a=e.styles,i=(0,dh.O)([a],void 0,(0,r.useContext)(Oa.T)),n=(0,r.useRef)();return(0,r.useLayoutEffect)((function(){var e=t.key+"-global",a=new ch.m({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),a.hydrate([o])),n.current=[a,r],function(){a.flush()}}),[t]),(0,r.useLayoutEffect)((function(){var e=n.current,a=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&(0,fh.M)(t,i.next,!0),a.tags.length){var r=a.tags[a.tags.length-1].nextElementSibling;a.before=r,a.flush()}t.insert("",i,a,!1)}}),[t,i.name]),null}));function hh(){for(var e=arguments.length,t=new Array(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};Yh=Vh(Vh({},Yh),e)}(e.options.react),function(e){Kh=e}(e)}};function tF(){if(console&&console.warn){for(var e,t=arguments.length,a=new Array(t),i=0;i2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return iF("i18n.languages were undefined or empty",t.languages),!0;var i=t.languages[0],n=!!t.options&&t.options.fallbackLng,r=t.languages[t.languages.length-1];if("cimode"===i.toLowerCase())return!0;var o=function(e,a){var i=t.services.backendConnector.state["".concat(e,"|").concat(a)];return-1===i||2===i};return!(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(i,e)||(!t.services.backendConnector.backend||!(!o(i,e)||n&&!o(r,e))))}function oF(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function sF(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},a=t.i18n,i=(0,r.useContext)($h)||{},n=i.i18n,o=i.defaultNS,s=a||n||Qh();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Xh),!s){iF("You will need to pass in an i18next instance by using initReactI18next");var u=function(e){return Array.isArray(e)?e[e.length-1]:e},l=[u,{},!1];return l.t=u,l.i18n={},l.ready=!1,l}s.options.react&&void 0!==s.options.react.wait&&iF("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var _=sF(sF(sF({},Jh()),s.options.react),t),f=_.useSuspense,d=_.keyPrefix,c=e||o||s.options&&s.options.defaultNS;c="string"===typeof c?[c]:c||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(c);var g=(s.isInitialized||s.initializedStoreOnce)&&c.every((function(e){return rF(e,s,_)}));function h(){return s.getFixedT(null,"fallback"===_.nsMode?c:c[0],d)}var F=(0,r.useState)(h),m=(0,Ka.Z)(F,2),p=m[0],E=m[1],b=(0,r.useRef)(!0);(0,r.useEffect)((function(){var e=_.bindI18n,t=_.bindI18nStore;function a(){b.current&&E(h)}return b.current=!0,g||f||nF(s,c,(function(){b.current&&E(h)})),e&&s&&s.on(e,a),t&&s&&s.store.on(t,a),function(){b.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,a)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,a)}))}}),[s,c.join()]);var k=(0,r.useRef)(!0);(0,r.useEffect)((function(){b.current&&!k.current&&E(h),k.current=!1}),[s]);var y=[p,s,g];if(y.t=p,y.i18n=s,y.ready=g,g)return y;if(!g&&!f)return y;throw new Promise((function(e){nF(s,c,(function(){e()}))}))}var lF="media/misc/Outgoing-Dial-Effect.ogg",_F={history:F_({key:"dialHistory",default:m_({key:"dialHistoryDefault",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(Ah.FETCH_CALLS);case 3:return t=e.sent,S_({action:Ah.FETCH_CALLS,data:t.data}),e.abrupt("return",t.data);case 8:e.prev=8,e.t0=e.catch(0),e.next=12;break;case 12:return console.error(e.t0),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()})})},fF=function(){var e=k_(_F.history);return{saveLocalCall:v_((function(t){var a=t.snapshot;return function(t){"hasValue"===a.getLoadable(_F.history).state&&(console.log("callObj",t),e((function(e){return[t].concat((0,Va.Z)(e))})))}}),[])}},dF=function(){var e=b_(Zh.currentCall),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=zh(),o=uF(),s=(0,Ka.Z)(o,1)[0],u=Wh().addAlert,l=function(){var e=G_();return(0,r.useEffect)((function(){e.isMounted(lF)?e.volume(lF,.1):e.mount(lF,.1,!0)}),[e]),{startDialTone:(0,r.useCallback)((function(){e.play(lF,.1,!0)}),[e]),endDialTone:(0,r.useCallback)((function(){e.stop(lF)}),[e])}}(),_=l.endDialTone,f=l.startDialTone,d=fF().saveLocalCall;(0,r.useEffect)((function(){null===a||void 0===a||!a.isTransmitter||null!==a&&void 0!==a&&a.is_accepted?_():f()}),[f,_,a]);var c=(0,r.useCallback)((function(e){if(n===e)return u({message:s("CALLS.FEEDBACK.ERROR_MYSELF"),type:"error"});T_(Ah.INITIALIZE_CALL,{receiverNumber:e}).then((function(e){if("ok"!==e.status)return u({message:s("CALLS.FEEDBACK.ERROR"),type:"error"}),void console.error(e.errorMsg);console.log("call resp",e),d({start:e.data.start,is_accepted:e.data.is_accepted,receiver:e.data.receiver,transmitter:e.data.transmitter,id:e.data.identifier})}))}),[u,n,s,d]),g=(0,r.useCallback)((function(){T_(Ah.ACCEPT_CALL,{transmitterNumber:a.transmitter})}),[a]),h=(0,r.useCallback)((function(){T_(Ah.REJECTED,{transmitterNumber:a.transmitter})}),[a]),F=(0,r.useCallback)((function(){T_(Ah.END_CALL,{transmitterNumber:a.transmitter,isUnavailable:a.isUnavailable,isTransmitter:a.transmitter===n})}),[a,n]);return{call:a,setCall:i,acceptCall:g,rejectCall:h,endCall:F,initializeCall:c}};function cF(e){return(0,of.Z)("MuiTypography",e)}(0,sf.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var gF=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],hF=(0,nf.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.variant&&t[a.variant],"inherit"!==a.align&&t["align".concat((0,mh.Z)(a.align))],a.noWrap&&t.noWrap,a.gutterBottom&&t.gutterBottom,a.paragraph&&t.paragraph]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({margin:0},a.variant&&t.typography[a.variant],"inherit"!==a.align&&{textAlign:a.align},a.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},a.gutterBottom&&{marginBottom:"0.35em"},a.paragraph&&{marginBottom:16})})),FF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mF={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pF=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiTypography"}),i=function(e){return mF[e]||e}(a.color),n=rh((0,Ba.Z)({},a,{color:i})),r=n.align,o=void 0===r?"inherit":r,s=n.className,u=n.component,l=n.gutterBottom,_=void 0!==l&&l,f=n.noWrap,d=void 0!==f&&f,c=n.paragraph,g=void 0!==c&&c,h=n.variant,F=void 0===h?"body1":h,m=n.variantMapping,p=void 0===m?FF:m,E=(0,ti.Z)(n,gF),b=(0,Ba.Z)({},n,{align:o,color:i,className:s,component:u,gutterBottom:_,noWrap:d,paragraph:g,variant:F,variantMapping:p}),k=u||(g?"p":p[F]||FF[F])||"span",y=function(e){var t=e.align,a=e.gutterBottom,i=e.noWrap,n=e.paragraph,r=e.variant,o=e.classes,s={root:["root",r,"inherit"!==e.align&&"align".concat((0,mh.Z)(t)),a&&"gutterBottom",i&&"noWrap",n&&"paragraph"]};return(0,tf.Z)(s,cF,o)}(b);return(0,Na.jsx)(hF,(0,Ba.Z)({as:k,ref:t,ownerState:b,className:(0,ef.Z)(y.root,s)},E))})),EF=pF,bF=function(){var e=(0,r.useRef)(),t=(0,r.useState)(0),a=(0,Ka.Z)(t,2),i=a[0],n=a[1],o=function(){e.current&&(clearInterval(e.current),e.current=void 0)},s=function(){e.current||(e.current=setInterval((function(){return n((function(e){return e+1}))}),1e3))};return(0,r.useEffect)((function(){return s(),o}),[]),(0,Ha.Z)((0,Ha.Z)({},function(e){var t=Math.ceil(e),a=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return{seconds:Math.floor(t%60),minutes:i,hours:a}}(i)),{},{startTimer:s,resetTimer:function(){o()}})},kF=function(e){return e<10?"0".concat(e):e},yF=function(){var e=bF(),t=e.seconds,a=e.hours,i=e.minutes;return(0,Na.jsx)(lh,{children:(0,Na.jsx)(EF,{variant:"body1",children:"".concat(kF(a),":").concat(kF(i),":").concat(kF(t))})})},vF=a(6002),DF=a(5430),wF=function(){var e=b_(Zh.callModal),t=(0,Ka.Z)(e,2);return{modal:t[0],setModal:t[1]}},SF=a(9683),CF=a(8221);function AF(e,t){var a=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){a[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),a}function TF(e,t,a){return null!=a[t]?a[t]:e.props[t]}function xF(e,t,a){var i=AF(e.children),n=function(e,t){function a(a){return a in t?t[a]:e[a]}e=e||{},t=t||{};var i,n=Object.create(null),r=[];for(var o in e)o in t?r.length&&(n[o]=r,r=[]):r.push(o);var s={};for(var u in t){if(n[u])for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,i=t.pulsate,r=void 0!==i&&i,o=t.center,s=void 0===o?n||t.pulsate:o,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&F.current)F.current=!1;else{"touchstart"===e.type&&(F.current=!0);var _,f,d,c=l?null:E.current,g=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)_=Math.round(g.width/2),f=Math.round(g.height/2);else{var h=e.touches?e.touches[0]:e,k=h.clientX,y=h.clientY;_=Math.round(k-g.left),f=Math.round(y-g.top)}if(s)(d=Math.sqrt((2*Math.pow(g.width,2)+Math.pow(g.height,2))/3))%2===0&&(d+=1);else{var v=2*Math.max(Math.abs((c?c.clientWidth:0)-_),_)+2,D=2*Math.max(Math.abs((c?c.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(v,2)+Math.pow(D,2))}e.touches?null===p.current&&(p.current=function(){b({pulsate:r,rippleX:_,rippleY:f,rippleSize:d,cb:a})},m.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):b({pulsate:r,rippleX:_,rippleY:f,rippleSize:d,cb:a})}}),[n,b]),y=r.useCallback((function(){k({},{pulsate:!0})}),[k]),v=r.useCallback((function(e,t){if(clearTimeout(m.current),"touchend"===e.type&&p.current)return p.current(),p.current=null,void(m.current=setTimeout((function(){v(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:y,start:k,stop:v}}),[y,k,v]),(0,Na.jsx)(KF,(0,Ba.Z)({className:(0,ef.Z)(s.root,UF.root,u),ref:E},l,{children:(0,Na.jsx)(OF,{component:null,exit:!0,children:d})}))})),JF=$F;function XF(e){return(0,of.Z)("MuiButtonBase",e)}var QF,em=(0,sf.Z)("MuiButtonBase",["root","disabled","focusVisible"]),tm=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","type"],am=(0,nf.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((QF={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},(0,Ya.Z)(QF,"&.".concat(em.disabled),{pointerEvents:"none",cursor:"default"}),(0,Ya.Z)(QF,"@media print",{colorAdjust:"exact"}),QF)),im=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiButtonBase"}),i=a.action,n=a.centerRipple,o=void 0!==n&&n,s=a.children,u=a.className,l=a.component,_=void 0===l?"button":l,f=a.disabled,d=void 0!==f&&f,c=a.disableRipple,g=void 0!==c&&c,h=a.disableTouchRipple,F=void 0!==h&&h,m=a.focusRipple,p=void 0!==m&&m,E=a.LinkComponent,b=void 0===E?"a":E,k=a.onBlur,y=a.onClick,v=a.onContextMenu,D=a.onDragLeave,w=a.onFocus,S=a.onFocusVisible,C=a.onKeyDown,A=a.onKeyUp,T=a.onMouseDown,x=a.onMouseLeave,I=a.onMouseUp,R=a.onTouchEnd,O=a.onTouchMove,L=a.onTouchStart,N=a.tabIndex,P=void 0===N?0:N,j=a.TouchRippleProps,B=a.type,M=(0,ti.Z)(a,tm),q=r.useRef(null),G=r.useRef(null),Z=(0,CF.Z)(),U=Z.isFocusVisibleRef,z=Z.onFocus,W=Z.onBlur,H=Z.ref,V=r.useState(!1),K=(0,Ka.Z)(V,2),Y=K[0],$=K[1];function J(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F;return(0,SF.Z)((function(i){return t&&t(i),!a&&G.current&&G.current[e](i),!0}))}d&&Y&&$(!1),r.useImperativeHandle(i,(function(){return{focusVisible:function(){$(!0),q.current.focus()}}}),[]),r.useEffect((function(){Y&&p&&!g&&G.current.pulsate()}),[g,p,Y]);var X=J("start",T),Q=J("stop",v),ee=J("stop",D),te=J("stop",I),ae=J("stop",(function(e){Y&&e.preventDefault(),x&&x(e)})),ie=J("start",L),ne=J("stop",R),re=J("stop",O),oe=J("stop",(function(e){W(e),!1===U.current&&$(!1),k&&k(e)}),!1),se=(0,SF.Z)((function(e){q.current||(q.current=e.currentTarget),z(e),!0===U.current&&($(!0),S&&S(e)),w&&w(e)})),ue=function(){var e=q.current;return _&&"button"!==_&&!("A"===e.tagName&&e.href)},le=r.useRef(!1),_e=(0,SF.Z)((function(e){p&&!le.current&&Y&&G.current&&" "===e.key&&(le.current=!0,G.current.stop(e,(function(){G.current.start(e)}))),e.target===e.currentTarget&&ue()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ue()&&"Enter"===e.key&&!d&&(e.preventDefault(),y&&y(e))})),fe=(0,SF.Z)((function(e){p&&" "===e.key&&G.current&&Y&&!e.defaultPrevented&&(le.current=!1,G.current.stop(e,(function(){G.current.pulsate(e)}))),A&&A(e),y&&e.target===e.currentTarget&&ue()&&" "===e.key&&!e.defaultPrevented&&y(e)})),de=_;"button"===de&&(M.href||M.to)&&(de=b);var ce={};"button"===de?(ce.type=void 0===B?"button":B,ce.disabled=d):(M.href||M.to||(ce.role="button"),d&&(ce["aria-disabled"]=d));var ge=(0,Nf.Z)(H,q),he=(0,Nf.Z)(t,ge),Fe=r.useState(!1),me=(0,Ka.Z)(Fe,2),pe=me[0],Ee=me[1];r.useEffect((function(){Ee(!0)}),[]);var be=pe&&!g&&!d;var ke=(0,Ba.Z)({},a,{centerRipple:o,component:_,disabled:d,disableRipple:g,disableTouchRipple:F,focusRipple:p,tabIndex:P,focusVisible:Y}),ye=function(e){var t=e.disabled,a=e.focusVisible,i=e.focusVisibleClassName,n=e.classes,r={root:["root",t&&"disabled",a&&"focusVisible"]},o=(0,tf.Z)(r,XF,n);return a&&i&&(o.root+=" ".concat(i)),o}(ke);return(0,Na.jsxs)(am,(0,Ba.Z)({as:de,className:(0,ef.Z)(ye.root,u),ownerState:ke,onBlur:oe,onClick:y,onContextMenu:Q,onFocus:se,onKeyDown:_e,onKeyUp:fe,onMouseDown:X,onMouseLeave:ae,onMouseUp:te,onDragLeave:ee,onTouchEnd:ne,onTouchMove:re,onTouchStart:ie,ref:he,tabIndex:d?-1:P,type:B},ce,M,{children:[s,be?(0,Na.jsx)(JF,(0,Ba.Z)({ref:G,center:o},j)):null]}))})),nm=im;function rm(e){return(0,of.Z)("MuiIconButton",e)}var om=(0,sf.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),sm=["edge","children","className","color","disabled","disableFocusRipple","size"],um=(0,nf.ZP)(nm,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,"default"!==a.color&&t["color".concat((0,mh.Z)(a.color))],a.edge&&t["edge".concat((0,mh.Z)(a.edge))],t["size".concat((0,mh.Z)(a.size))]]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!a.disableRipple&&{"&:hover":{backgroundColor:(0,af.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===a.edge&&{marginLeft:"small"===a.size?-3:-12},"end"===a.edge&&{marginRight:"small"===a.size?-3:-12})}),(function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({},"inherit"===a.color&&{color:"inherit"},"inherit"!==a.color&&"default"!==a.color&&(0,Ba.Z)({color:t.palette[a.color].main},!a.disableRipple&&{"&:hover":{backgroundColor:(0,af.Fq)(t.palette[a.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===a.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===a.size&&{padding:12,fontSize:t.typography.pxToRem(28)},(0,Ya.Z)({},"&.".concat(om.disabled),{backgroundColor:"transparent",color:t.palette.action.disabled}))})),lm=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiIconButton"}),i=a.edge,n=void 0!==i&&i,r=a.children,o=a.className,s=a.color,u=void 0===s?"default":s,l=a.disabled,_=void 0!==l&&l,f=a.disableFocusRipple,d=void 0!==f&&f,c=a.size,g=void 0===c?"medium":c,h=(0,ti.Z)(a,sm),F=(0,Ba.Z)({},a,{edge:n,color:u,disabled:_,disableFocusRipple:d,size:g}),m=function(e){var t=e.classes,a=e.disabled,i=e.color,n=e.edge,r=e.size,o={root:["root",a&&"disabled","default"!==i&&"color".concat((0,mh.Z)(i)),n&&"edge".concat((0,mh.Z)(n)),"size".concat((0,mh.Z)(r))]};return(0,tf.Z)(o,rm,t)}(F);return(0,Na.jsx)(um,(0,Ba.Z)({className:(0,ef.Z)(m.root,o),centerRipple:!0,focusRipple:!d,disabled:_,ref:t,ownerState:F},h,{children:r}))})),_m=lm,fm=["color","size","className"],dm=eh((function(e){return{root:{color:function(t){var a=t.color;return e.palette[a].contrastText},backgroundColor:function(t){var a=t.color;return e.palette[a].main},"&:hover":{backgroundColor:function(t){var a=t.color;return e.palette[a].light}}},outlined:{border:function(t){var a=t.color;return"1px solid ".concat((0,af.Fq)(e.palette[a].main,.5))},"&:hover":{border:function(t){var a=t.color;return"1px solid ".concat(e.palette[a].main)}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:function(t){var a=t.color;return e.palette[a].contrastText},backgroundColor:function(t){var a=t.color;return e.palette[a].main},"&:hover":{backgroundColor:function(t){var a=t.color;return e.palette[a].dark}}}}}),{name:"MuiIconButton"}),cm=function(e){var t=e.color,a=void 0===t?"info":t,i=e.size,n=e.className,r=ai(e,fm),o=dm({color:a});return(0,Na.jsx)(_m,(0,Ha.Z)({className:"".concat(o.root," ").concat(n),size:i},r))},gm=eh({icon:{color:"white",boxShadow:"0 .5rem 3rem -.25em rgba(0,0,0,.3)"},iconWrapper:{height:60,width:60},smallIconWrapper:{height:40,width:40}}),hm=function(e){var t=e.isSmall,a=gm(),i=fe(),n=wF().setModal,r=dF(),o=r.call,s=r.endCall,u=r.acceptCall,l=r.rejectCall;return null!==o&&void 0!==o&&o.is_accepted||null!==o&&void 0!==o&&o.isTransmitter?(0,Na.jsx)(lh,{display:"flex",justifyContent:"center",px:2,my:2,children:(0,Na.jsx)(cm,{color:"error",size:t?"small":"medium",onClick:function(e){e.stopPropagation(),n(!1),s()},className:t?a.smallIconWrapper:a.iconWrapper,children:(0,Na.jsx)(DF.Z,{className:a.icon})})}):(0,Na.jsxs)(lh,{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,my:2,children:[(0,Na.jsx)(cm,{color:"error",size:t?"small":"medium",onClick:function(e){e.stopPropagation(),n(!1),l()},className:t?a.smallIconWrapper:a.iconWrapper,children:(0,Na.jsx)(DF.Z,{className:a.icon})}),(0,Na.jsx)(cm,{color:"success",size:t?"small":"medium",onClick:function(e){e.stopPropagation(),i.push("/call"),u()},className:t?a.smallIconWrapper:a.iconWrapper,children:(0,Na.jsx)(vF.Z,{className:a.icon})})]})},Fm=a(4223),mm=(0,Fm.Z)((0,Na.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function pm(e){return(0,of.Z)("MuiAvatar",e)}(0,sf.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var Em=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],bm=(0,nf.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t[a.variant],a.colorDefault&&t.colorDefault]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===a.variant&&{borderRadius:t.shape.borderRadius},"square"===a.variant&&{borderRadius:0},a.colorDefault&&{color:t.palette.background.default,backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]})})),km=(0,nf.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,t){return t.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ym=(0,nf.ZP)(mm,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var vm,Dm,wm,Sm=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiAvatar"}),i=a.alt,n=a.children,o=a.className,s=a.component,u=void 0===s?"div":s,l=a.imgProps,_=a.sizes,f=a.src,d=a.srcSet,c=a.variant,g=void 0===c?"circular":c,h=(0,ti.Z)(a,Em),F=null,m=function(e){var t=e.crossOrigin,a=e.referrerPolicy,i=e.src,n=e.srcSet,o=r.useState(!1),s=(0,Ka.Z)(o,2),u=s[0],l=s[1];return r.useEffect((function(){if(i||n){l(!1);var e=!0,r=new Image;return r.onload=function(){e&&l("loaded")},r.onerror=function(){e&&l("error")},r.crossOrigin=t,r.referrerPolicy=a,r.src=i,n&&(r.srcset=n),function(){e=!1}}}),[t,a,i,n]),u}((0,Ba.Z)({},l,{src:f,srcSet:d})),p=f||d,E=p&&"error"!==m,b=(0,Ba.Z)({},a,{colorDefault:!E,component:u,variant:g}),k=function(e){var t=e.classes,a={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,tf.Z)(a,pm,t)}(b);return F=E?(0,Na.jsx)(km,(0,Ba.Z)({alt:i,src:f,srcSet:d,sizes:_,ownerState:b,className:k.img},l)):null!=n?n:p&&i?i[0]:(0,Na.jsx)(ym,{className:k.fallback}),(0,Na.jsx)(bm,(0,Ba.Z)({as:u,ownerState:b,className:(0,ef.Z)(k.root,o),ref:t},h,{children:F}))})),Cm=Sm;!function(e){e.ADD_FAILED="CONTACT.FEEDBACK.ADD_FAILED",e.UPDATE_FAILED="CONTACT.FEEDBACK.UPDATE_FAILED",e.INVALID_HOST="GENERIC_INVALID_IMAGE_HOST"}(vm||(vm={})),function(e){e[e.avatar=255]="avatar",e[e.number=20]="number",e[e.display=255]="display"}(Dm||(Dm={})),function(e){e.GET_CONTACTS="npwd:getContacts",e.ADD_CONTACT="npwd:addContacts",e.UPDATE_CONTACT="npwd:updateContact",e.DELETE_CONTACT="npwd:deleteContact",e.ADD_CONTACT_EXPORT="npwd:addContactExport"}(wm||(wm={}));var Am=[{id:1,display:"Rocko",number:"555-15196"},{id:2,display:"Taso",number:"215-8139",avatar:"http://i.tasoagc.dev/i9Ig"},{id:3,display:"Chip",number:"603-275-8373",avatar:"http://i.tasoagc.dev/2QYV"},{id:4,display:"Kidz",number:"444-4444"}],Tm={contacts:F_({key:"contactsList",default:m_({key:"contactsListDefault",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(wm.GET_CONTACTS,void 0,C_(Am));case 3:return t=e.sent,e.abrupt("return",t.data);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[]);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}()})}),filterInput:F_({key:"filterInput",default:""}),filteredContacts:m_({key:"filteredContacts",get:function(e){var t=e.get,a=t(Tm.filterInput),i=t(Tm.contacts);if(!a)return i;var n=new RegExp(a,"gi");return i.filter((function(e){return e.display.match(n)||e.number.match(n)}))}})},xm=function(){return b_(Tm.contacts)},Im=function(){return p_(Tm.contacts)},Rm=function(){var e=k_(Tm.contacts),t=v_((function(e){var t=e.snapshot;return function(e){var a=t.getLoadable(Tm.contacts),i=a.state,n=a.contents;if("hasValue"!==i)return e;var r=n.find((function(t){return t.number===e}));return r?r.display:e}}),[]),a=v_((function(e){var t=e.snapshot;return function(e){var a=t.getLoadable(Tm.contacts),i=a.state,n=a.contents;if("hasValue"!==i)return null;var r=n.find((function(t){return t.number===e}));return r?r.avatar:null}}),[]),i=v_((function(e){var t=e.snapshot;return function(e){var a=t.getLoadable(Tm.contacts),i=a.state,n=a.contents;if("hasValue"!==i)return null;var r,o=hi(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.number===e)return s}}catch(u){o.e(u)}finally{o.f()}return null}}),[]),n=v_((function(e){var t=e.snapshot;return function(e){var a=t.getLoadable(Tm.contacts),i=a.state,n=a.contents;if("hasValue"!==i)return null;var r,o=hi(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.id===e)return s}}catch(u){o.e(u)}finally{o.f()}return null}}),[]),r=v_((function(t){var a=t.snapshot;return function(t){if("hasValue"!==a.getLoadable(Tm.contacts).state)return null;e((function(e){return(0,Va.Z)(e).filter((function(e){return e.id!==t}))}))}}),[]),o=v_((function(t){var a=t.snapshot;return function(t){if("hasValue"!==a.getLoadable(Tm.contacts).state)return null;e((function(e){return[].concat((0,Va.Z)(e),[t])}))}}),[]);return{getDisplayByNumber:t,getContact:n,getContactByNumber:i,getPictureByNumber:a,deleteLocalContact:r,updateLocalContact:v_((function(t){var a=t.snapshot;return function(t){if("hasValue"!==a.getLoadable(Tm.contacts).state)return null;e((function(e){var a=e.findIndex((function(e){return e.id===t.id})),i=(0,Va.Z)(e);return i[a]=t,i}))}}),[]),addLocalContact:o}},Om=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0],a=dF().call,i=Rm(),n=i.getDisplayByNumber,r=i.getPictureByNumber,o=function(){return a.isTransmitter?n(null===a||void 0===a?void 0:a.receiver):n(null===a||void 0===a?void 0:a.transmitter)};return(0,Na.jsxs)(lh,{display:"flex",alignItems:"center",children:[(0,Na.jsxs)(lh,{flexGrow:1,overflow:"hidden",textOverflow:"ellipsis",children:[(0,Na.jsx)(EF,{variant:"body1",children:a.isTransmitter?t("CALLS.MESSAGES.OUTGOING").toUpperCase():t("CALLS.MESSAGES.INCOMING").toUpperCase()}),(0,Na.jsx)(EF,{variant:"h4",children:o()})]}),(0,Na.jsx)(Cm,{sx:{ml:1,height:80,width:80},alt:o(),src:a.isTransmitter?r(a.receiver):r(null===a||void 0===a?void 0:a.transmitter)})]})},Lm=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0],a=(0,r.useState)(t("CALLS.MESSAGES.RINGING")),i=(0,Ka.Z)(a,2),n=i[0],o=i[1],s=(0,r.useState)(0),u=(0,Ka.Z)(s,2),l=u[0],_=u[1];return(0,r.useEffect)((function(){var e=setInterval((function(){l<3?(_(l+1),o(n+".")):(o(t("CALLS.MESSAGES.RINGING")),_(0))}),500);return function(){return clearInterval(e)}}),[l,n,t]),(0,Na.jsx)(EF,{children:n})},Nm=function(e){return"media/backgrounds/".concat(e)},Pm=function(){var e=P_();return function(e){var t,a=hi(Ra.wallpapers);try{for(a.s();!(t=a.n()).done;)if(t.value.value===e)return!0}catch(i){a.e(i)}finally{a.f()}}(e.wallpaper.value)?"url(".concat(Nm(e.wallpaper.value),")"):"url(".concat(e.wallpaper.value,")")},jm=["name"],Bm=["children","className","clone","component"];function Mm(e,t){var a={};return Object.keys(e).forEach((function(i){-1===t.indexOf(i)&&(a[i]=e[i])})),a}function qm(e){return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.name,n=(0,ti.Z)(a,jm);var o,s=i,u="function"===typeof t?function(e){return{root:function(a){return t((0,Ba.Z)({theme:e},a))}}}:{root:t},l=eh(u,(0,Ba.Z)({Component:e,name:i||e.displayName,classNamePrefix:s},n));t.filterProps&&(o=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var _=r.forwardRef((function(t,a){var i=t.children,n=t.className,s=t.clone,u=t.component,_=(0,ti.Z)(t,Bm),f=l(t),d=(0,ef.Z)(f.root,n),c=_;if(o&&(c=Mm(c,o)),s)return r.cloneElement(i,(0,Ba.Z)({className:(0,ef.Z)(i.props.className,d)},c));if("function"===typeof i)return i((0,Ba.Z)({className:d},c));var g=u||e;return(0,Na.jsx)(g,(0,Ba.Z)({ref:a,className:d},c,{children:i}))}));return Y()(_,e),_}}var Gm=qm(lh)({height:"100%",backdropFilter:"blur(20px) brightness(0.6)",display:"flex",flexDirection:"column",justifyContent:"space-between"}),Zm=function(){var e=dF().call,t=Pm();return e?(0,Na.jsx)(Q_,{children:(0,Na.jsx)(Gh,{paperStyle:{backgroundImage:t},children:(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:(0,Na.jsxs)(Gm,{padding:5,children:[(0,Na.jsxs)(lh,{children:[(0,Na.jsx)(Om,{}),null!==e&&void 0!==e&&e.is_accepted?(0,Na.jsx)(yF,{}):(null===e||void 0===e?void 0:e.isTransmitter)&&(0,Na.jsx)(Lm,{})]}),(0,Na.jsx)(hm,{})]})})})}):null},Um=a(7),zm=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Wm={entering:{transform:"none"},entered:{transform:"none"}},Hm={enter:xf.x9.enteringScreen,exit:xf.x9.leavingScreen},Vm=r.forwardRef((function(e,t){var a=e.addEndListener,i=e.appear,n=void 0===i||i,o=e.children,s=e.easing,u=e.in,l=e.onEnter,_=e.onEntered,f=e.onEntering,d=e.onExit,c=e.onExited,g=e.onExiting,h=e.style,F=e.timeout,m=void 0===F?Hm:F,p=e.TransitionComponent,E=void 0===p?Tf:p,b=(0,ti.Z)(e,zm),k=Rf(),y=r.useRef(null),v=(0,Nf.Z)(o.ref,t),D=(0,Nf.Z)(y,v),w=function(e){return function(t){if(e){var a=y.current;void 0===t?e(a):e(a,t)}}},S=w(f),C=w((function(e,t){Of(e);var a=Lf({style:h,timeout:m,easing:s},{mode:"enter"});e.style.webkitTransition=k.transitions.create("transform",a),e.style.transition=k.transitions.create("transform",a),l&&l(e,t)})),A=w(_),T=w(g),x=w((function(e){var t=Lf({style:h,timeout:m,easing:s},{mode:"exit"});e.style.webkitTransition=k.transitions.create("transform",t),e.style.transition=k.transitions.create("transform",t),d&&d(e)})),I=w(c);return(0,Na.jsx)(E,(0,Ba.Z)({appear:n,in:u,nodeRef:y,onEnter:C,onEntered:A,onEntering:S,onExit:x,onExited:I,onExiting:T,addEndListener:function(e){a&&a(y.current,e)},timeout:m},b,{children:function(e,t){return r.cloneElement(o,(0,Ba.Z)({style:(0,Ba.Z)({transform:"scale(0)",visibility:"exited"!==e||u?void 0:"hidden"},Wm[e],h,o.props.style),ref:D},t))}}))})),Km=Vm,Ym=a(5735);function $m(e){return(0,of.Z)("MuiButton",e)}var Jm=(0,sf.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Xm=r.createContext({}),Qm=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ep=function(e){return(0,Ba.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},tp=(0,nf.ZP)(nm,{shouldForwardProp:function(e){return(0,nf.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t[a.variant],t["".concat(a.variant).concat((0,mh.Z)(a.color))],t["size".concat((0,mh.Z)(a.size))],t["".concat(a.variant,"Size").concat((0,mh.Z)(a.size))],"inherit"===a.color&&t.colorInherit,a.disableElevation&&t.disableElevation,a.fullWidth&&t.fullWidth]}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({},a.typography.button,(t={minWidth:64,padding:"6px 16px",borderRadius:a.shape.borderRadius,transition:a.transitions.create(["background-color","box-shadow","border-color","color"],{duration:a.transitions.duration.short}),"&:hover":(0,Ba.Z)({textDecoration:"none",backgroundColor:(0,af.Fq)(a.palette.text.primary,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===i.variant&&"inherit"!==i.color&&{backgroundColor:(0,af.Fq)(a.palette[i.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===i.variant&&"inherit"!==i.color&&{border:"1px solid ".concat(a.palette[i.color].main),backgroundColor:(0,af.Fq)(a.palette[i.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===i.variant&&{backgroundColor:a.palette.grey.A100,boxShadow:a.shadows[4],"@media (hover: none)":{boxShadow:a.shadows[2],backgroundColor:a.palette.grey[300]}},"contained"===i.variant&&"inherit"!==i.color&&{backgroundColor:a.palette[i.color].dark,"@media (hover: none)":{backgroundColor:a.palette[i.color].main}}),"&:active":(0,Ba.Z)({},"contained"===i.variant&&{boxShadow:a.shadows[8]})},(0,Ya.Z)(t,"&.".concat(Jm.focusVisible),(0,Ba.Z)({},"contained"===i.variant&&{boxShadow:a.shadows[6]})),(0,Ya.Z)(t,"&.".concat(Jm.disabled),(0,Ba.Z)({color:a.palette.action.disabled},"outlined"===i.variant&&{border:"1px solid ".concat(a.palette.action.disabledBackground)},"outlined"===i.variant&&"secondary"===i.color&&{border:"1px solid ".concat(a.palette.action.disabled)},"contained"===i.variant&&{color:a.palette.action.disabled,boxShadow:a.shadows[0],backgroundColor:a.palette.action.disabledBackground})),t),"text"===i.variant&&{padding:"6px 8px"},"text"===i.variant&&"inherit"!==i.color&&{color:a.palette[i.color].main},"outlined"===i.variant&&{padding:"5px 15px",border:"1px solid ".concat("light"===a.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"outlined"===i.variant&&"inherit"!==i.color&&{color:a.palette[i.color].main,border:"1px solid ".concat((0,af.Fq)(a.palette[i.color].main,.5))},"contained"===i.variant&&{color:a.palette.getContrastText(a.palette.grey[300]),backgroundColor:a.palette.grey[300],boxShadow:a.shadows[2]},"contained"===i.variant&&"inherit"!==i.color&&{color:a.palette[i.color].contrastText,backgroundColor:a.palette[i.color].main},"inherit"===i.color&&{color:"inherit",borderColor:"currentColor"},"small"===i.size&&"text"===i.variant&&{padding:"4px 5px",fontSize:a.typography.pxToRem(13)},"large"===i.size&&"text"===i.variant&&{padding:"8px 11px",fontSize:a.typography.pxToRem(15)},"small"===i.size&&"outlined"===i.variant&&{padding:"3px 9px",fontSize:a.typography.pxToRem(13)},"large"===i.size&&"outlined"===i.variant&&{padding:"7px 21px",fontSize:a.typography.pxToRem(15)},"small"===i.size&&"contained"===i.variant&&{padding:"4px 10px",fontSize:a.typography.pxToRem(13)},"large"===i.size&&"contained"===i.variant&&{padding:"8px 22px",fontSize:a.typography.pxToRem(15)},i.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,Ya.Z)(t,"&.".concat(Jm.focusVisible),{boxShadow:"none"}),(0,Ya.Z)(t,"&:active",{boxShadow:"none"}),(0,Ya.Z)(t,"&.".concat(Jm.disabled),{boxShadow:"none"}),t)})),ap=(0,nf.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var a=e.ownerState;return[t.startIcon,t["iconSize".concat((0,mh.Z)(a.size))]]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},ep(t))})),ip=(0,nf.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var a=e.ownerState;return[t.endIcon,t["iconSize".concat((0,mh.Z)(a.size))]]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},ep(t))})),np=r.forwardRef((function(e,t){var a=r.useContext(Xm),i=(0,Ym.Z)(a,e),n=(0,rf.Z)({props:i,name:"MuiButton"}),o=n.children,s=n.color,u=void 0===s?"primary":s,l=n.component,_=void 0===l?"button":l,f=n.className,d=n.disabled,c=void 0!==d&&d,g=n.disableElevation,h=void 0!==g&&g,F=n.disableFocusRipple,m=void 0!==F&&F,p=n.endIcon,E=n.focusVisibleClassName,b=n.fullWidth,k=void 0!==b&&b,y=n.size,v=void 0===y?"medium":y,D=n.startIcon,w=n.type,S=n.variant,C=void 0===S?"text":S,A=(0,ti.Z)(n,Qm),T=(0,Ba.Z)({},n,{color:u,component:_,disabled:c,disableElevation:h,disableFocusRipple:m,fullWidth:k,size:v,type:w,variant:C}),x=function(e){var t=e.color,a=e.disableElevation,i=e.fullWidth,n=e.size,r=e.variant,o=e.classes,s={root:["root",r,"".concat(r).concat((0,mh.Z)(t)),"size".concat((0,mh.Z)(n)),"".concat(r,"Size").concat((0,mh.Z)(n)),"inherit"===t&&"colorInherit",a&&"disableElevation",i&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,mh.Z)(n))],endIcon:["endIcon","iconSize".concat((0,mh.Z)(n))]},u=(0,tf.Z)(s,$m,o);return(0,Ba.Z)({},o,u)}(T),I=D&&(0,Na.jsx)(ap,{className:x.startIcon,ownerState:T,children:D}),R=p&&(0,Na.jsx)(ip,{className:x.endIcon,ownerState:T,children:p});return(0,Na.jsxs)(tp,(0,Ba.Z)({ownerState:T,className:(0,ef.Z)(f,a.className),component:_,disabled:c,focusRipple:!m,focusVisibleClassName:(0,ef.Z)(x.focusVisible,E),ref:t,type:w},A,{classes:x,children:[I,o,R]}))})),rp=np,op=function(e){var t=r.useRef({});return r.useEffect((function(){t.current=e})),t.current};function sp(e){return(0,of.Z)("MuiBadge",e)}var up=(0,sf.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopLeft","anchorOriginTopRight","anchorOriginBottomLeft","anchorOriginBottomRight","invisible"]);function lp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;return gf(e)?t:(0,Ba.Z)({},t,{ownerState:(0,Ba.Z)({},t.ownerState,a)})}var _p=["anchorOrigin","classes","badgeContent","component","children","className","components","componentsProps","invisible","max","showZero","variant"],fp=r.forwardRef((function(e,t){var a=e.anchorOrigin,i=void 0===a?{vertical:"top",horizontal:"right"}:a,n=e.classes,r=e.component,o=e.children,s=e.className,u=e.components,l=void 0===u?{}:u,_=e.componentsProps,f=void 0===_?{}:_,d=e.max,c=void 0===d?99:d,g=e.showZero,h=void 0!==g&&g,F=e.variant,m=void 0===F?"standard":F,p=(0,ti.Z)(e,_p),E=function(e){var t=e.anchorOrigin,a=void 0===t?{vertical:"top",horizontal:"right"}:t,i=e.badgeContent,n=e.invisible,r=e.max,o=void 0===r?99:r,s=e.showZero,u=void 0!==s&&s,l=e.variant,_=void 0===l?"standard":l,f=op({anchorOrigin:a,badgeContent:i,max:o,variant:_}),d=n;null==n&&(0===i&&!u||null==i&&"dot"!==_)&&(d=!0);var c=d?f:e,g=c.anchorOrigin,h=void 0===g?a:g,F=c.badgeContent,m=c.max,p=void 0===m?o:m,E=c.variant,b=void 0===E?_:E,k="";return"dot"!==b&&(k=F&&Number(F)>p?"".concat(p,"+"):F),{anchorOrigin:h,badgeContent:F,invisible:d,max:p,variant:b,displayValue:k}}((0,Ba.Z)({},e,{anchorOrigin:i,max:c,variant:m})),b=E.anchorOrigin,k=E.badgeContent,y=E.max,v=E.variant,D=E.displayValue,w=E.invisible,S=(0,Ba.Z)({},e,{anchorOrigin:b,badgeContent:k,classes:n,invisible:w,max:y,variant:v,showZero:h}),C=function(e){var t=e.variant,a=e.anchorOrigin,i=e.invisible,n=e.classes,r={root:["root"],badge:["badge",t,"anchorOrigin".concat((0,Ug.Z)(a.vertical)).concat((0,Ug.Z)(a.horizontal)),i&&"invisible"]};return(0,tf.Z)(r,sp,n)}(S),A=r||l.Root||"span",T=lp(A,(0,Ba.Z)({},p,f.root),S),x=l.Badge||"span",I=lp(x,f.badge,S);return(0,Na.jsxs)(A,(0,Ba.Z)({},T,{ref:t},p,{className:(0,ef.Z)(C.root,T.className,s),children:[o,(0,Na.jsx)(x,(0,Ba.Z)({},I,{className:(0,ef.Z)(C.badge,I.className),children:D}))]}))})),dp=fp,cp=function(e){return!e||!gf(e)},gp=["anchorOrigin","component","components","componentsProps","overlap","color","invisible","badgeContent","showZero","variant"],hp=(0,Ba.Z)({},up,(0,sf.Z)("MuiBadge",["colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"])),Fp=(0,nf.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:function(e,t){return t.root}})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),mp=(0,nf.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:function(e,t){var a=e.ownerState;return[t.badge,t[a.variant],t["anchorOrigin".concat((0,mh.Z)(a.anchorOrigin.vertical)).concat((0,mh.Z)(a.anchorOrigin.horizontal)).concat((0,mh.Z)(a.overlap))],"default"!==a.color&&t["color".concat((0,mh.Z)(a.color))],a.invisible&&t.invisible]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==a.color&&{backgroundColor:t.palette[a.color].main,color:t.palette[a.color].contrastText},"dot"===a.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===a.anchorOrigin.vertical&&"right"===a.anchorOrigin.horizontal&&"rectangular"===a.overlap&&(0,Ya.Z)({top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(hp.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===a.anchorOrigin.vertical&&"right"===a.anchorOrigin.horizontal&&"rectangular"===a.overlap&&(0,Ya.Z)({bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(hp.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===a.anchorOrigin.vertical&&"left"===a.anchorOrigin.horizontal&&"rectangular"===a.overlap&&(0,Ya.Z)({top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(hp.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===a.anchorOrigin.vertical&&"left"===a.anchorOrigin.horizontal&&"rectangular"===a.overlap&&(0,Ya.Z)({bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(hp.invisible),{transform:"scale(0) translate(-50%, 50%)"}),"top"===a.anchorOrigin.vertical&&"right"===a.anchorOrigin.horizontal&&"circular"===a.overlap&&(0,Ya.Z)({top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(hp.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===a.anchorOrigin.vertical&&"right"===a.anchorOrigin.horizontal&&"circular"===a.overlap&&(0,Ya.Z)({bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(hp.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===a.anchorOrigin.vertical&&"left"===a.anchorOrigin.horizontal&&"circular"===a.overlap&&(0,Ya.Z)({top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(hp.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===a.anchorOrigin.vertical&&"left"===a.anchorOrigin.horizontal&&"circular"===a.overlap&&(0,Ya.Z)({bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(hp.invisible),{transform:"scale(0) translate(-50%, 50%)"}),a.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})})),pp=r.forwardRef((function(e,t){var a,i,n=(0,rf.Z)({props:e,name:"MuiBadge"}),r=n.anchorOrigin,o=void 0===r?{vertical:"top",horizontal:"right"}:r,s=n.component,u=void 0===s?"span":s,l=n.components,_=void 0===l?{}:l,f=n.componentsProps,d=void 0===f?{}:f,c=n.overlap,g=void 0===c?"rectangular":c,h=n.color,F=void 0===h?"default":h,m=n.invisible,p=n.badgeContent,E=n.showZero,b=void 0!==E&&E,k=n.variant,y=void 0===k?"standard":k,v=(0,ti.Z)(n,gp),D=op({anchorOrigin:o,color:F,overlap:g}),w=m;null==m&&(0===p&&!b||null==p&&"dot"!==y)&&(w=!0);var S=w?D:n,C=S.color,A=void 0===C?F:C,T=S.overlap,x=void 0===T?g:T,I=S.anchorOrigin,R=void 0===I?o:I,O=function(e){var t=e.color,a=e.anchorOrigin,i=e.overlap,n=e.classes,r=void 0===n?{}:n;return(0,Ba.Z)({},r,{badge:(0,ef.Z)(r.badge,sp("anchorOrigin".concat((0,mh.Z)(a.vertical)).concat((0,mh.Z)(a.horizontal)).concat((0,mh.Z)(i))),sp("overlap".concat((0,mh.Z)(i))),"default"!==t&&[sp("color".concat((0,mh.Z)(t))),r["color".concat((0,mh.Z)(t))]])})}((0,Ba.Z)({},n,{anchorOrigin:R,invisible:w,color:A,overlap:x}));return(0,Na.jsx)(dp,(0,Ba.Z)({anchorOrigin:R,invisible:m,badgeContent:p,showZero:b,variant:y},v,{components:(0,Ba.Z)({Root:Fp,Badge:mp},_),componentsProps:{root:(0,Ba.Z)({},d.root,cp(_.Root)&&{as:u,ownerState:(0,Ba.Z)({},null==(a=d.root)?void 0:a.ownerState,{color:A,overlap:x})}),badge:(0,Ba.Z)({},d.badge,cp(_.Badge)&&{ownerState:(0,Ba.Z)({},null==(i=d.badge)?void 0:i.ownerState,{color:A,overlap:x})})},classes:O,ref:t}))})),Ep=pp,bp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kp(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var yp={entering:{opacity:1,transform:kp(1)},entered:{opacity:1,transform:"none"}},vp=r.forwardRef((function(e,t){var a=e.addEndListener,i=e.appear,n=void 0===i||i,o=e.children,s=e.easing,u=e.in,l=e.onEnter,_=e.onEntered,f=e.onEntering,d=e.onExit,c=e.onExited,g=e.onExiting,h=e.style,F=e.timeout,m=void 0===F?"auto":F,p=e.TransitionComponent,E=void 0===p?Tf:p,b=(0,ti.Z)(e,bp),k=r.useRef(),y=r.useRef(),v=Rf(),D=r.useRef(null),w=(0,Nf.Z)(o.ref,t),S=(0,Nf.Z)(D,w),C=function(e){return function(t){if(e){var a=D.current;void 0===t?e(a):e(a,t)}}},A=C(f),T=C((function(e,t){Of(e);var a,i=Lf({style:h,timeout:m,easing:s},{mode:"enter"}),n=i.duration,r=i.delay,o=i.easing;"auto"===m?(a=v.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[v.transitions.create("opacity",{duration:a,delay:r}),v.transitions.create("transform",{duration:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),x=C(_),I=C(g),R=C((function(e){var t,a=Lf({style:h,timeout:m,easing:s},{mode:"exit"}),i=a.duration,n=a.delay,r=a.easing;"auto"===m?(t=v.transitions.getAutoHeightDuration(e.clientHeight),y.current=t):t=i,e.style.transition=[v.transitions.create("opacity",{duration:t,delay:n}),v.transitions.create("transform",{duration:.666*t,delay:n||.333*t,easing:r})].join(","),e.style.opacity="0",e.style.transform=kp(.75),d&&d(e)})),O=C(c);return r.useEffect((function(){return function(){clearTimeout(k.current)}}),[]),(0,Na.jsx)(E,(0,Ba.Z)({appear:n,in:u,nodeRef:D,onEnter:T,onEntered:x,onEntering:A,onExit:R,onExited:O,onExiting:I,addEndListener:function(e){"auto"===m&&(k.current=setTimeout(e,y.current||0)),a&&a(D.current,e)},timeout:"auto"===m?null:m},b,{children:function(e,t){return r.cloneElement(o,(0,Ba.Z)({style:(0,Ba.Z)({opacity:0,transform:kp(.75),visibility:"exited"!==e||u?void 0:"hidden"},yp[e],h,o.props.style),ref:S},t))}}))}));vp.muiSupportAuto=!0;var Dp=vp,wp=a(7563),Sp=a(5721),Cp=a(9723);function Ap(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tp(e){return e instanceof Ap(e).Element||e instanceof Element}function xp(e){return e instanceof Ap(e).HTMLElement||e instanceof HTMLElement}function Ip(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Ap(e).ShadowRoot||e instanceof ShadowRoot)}var Rp=Math.max,Op=Math.min,Lp=Math.round;function Np(e,t){void 0===t&&(t=!1);var a=e.getBoundingClientRect(),i=1,n=1;if(xp(e)&&t){var r=e.offsetHeight,o=e.offsetWidth;o>0&&(i=Lp(a.width)/o||1),r>0&&(n=Lp(a.height)/r||1)}return{width:a.width/i,height:a.height/n,top:a.top/n,right:a.right/i,bottom:a.bottom/n,left:a.left/i,x:a.left/i,y:a.top/n}}function Pp(e){var t=Ap(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function jp(e){return e?(e.nodeName||"").toLowerCase():null}function Bp(e){return((Tp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mp(e){return Np(Bp(e)).left+Pp(e).scrollLeft}function qp(e){return Ap(e).getComputedStyle(e)}function Gp(e){var t=qp(e),a=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+i)}function Zp(e,t,a){void 0===a&&(a=!1);var i=xp(t),n=xp(t)&&function(e){var t=e.getBoundingClientRect(),a=Lp(t.width)/e.offsetWidth||1,i=Lp(t.height)/e.offsetHeight||1;return 1!==a||1!==i}(t),r=Bp(t),o=Np(e,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!a)&&(("body"!==jp(t)||Gp(r))&&(s=function(e){return e!==Ap(e)&&xp(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Pp(e);var t}(t)),xp(t)?((u=Np(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=Mp(r))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function Up(e){var t=Np(e),a=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:i}}function zp(e){return"html"===jp(e)?e:e.assignedSlot||e.parentNode||(Ip(e)?e.host:null)||Bp(e)}function Wp(e){return["html","body","#document"].indexOf(jp(e))>=0?e.ownerDocument.body:xp(e)&&Gp(e)?e:Wp(zp(e))}function Hp(e,t){var a;void 0===t&&(t=[]);var i=Wp(e),n=i===(null==(a=e.ownerDocument)?void 0:a.body),r=Ap(i),o=n?[r].concat(r.visualViewport||[],Gp(i)?i:[]):i,s=t.concat(o);return n?s:s.concat(Hp(zp(o)))}function Vp(e){return["table","td","th"].indexOf(jp(e))>=0}function Kp(e){return xp(e)&&"fixed"!==qp(e).position?e.offsetParent:null}function Yp(e){for(var t=Ap(e),a=Kp(e);a&&Vp(a)&&"static"===qp(a).position;)a=Kp(a);return a&&("html"===jp(a)||"body"===jp(a)&&"static"===qp(a).position)?t:a||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&xp(e)&&"fixed"===qp(e).position)return null;for(var a=zp(e);xp(a)&&["html","body"].indexOf(jp(a))<0;){var i=qp(a);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return a;a=a.parentNode}return null}(e)||t}var $p="top",Jp="bottom",Xp="right",Qp="left",eE="auto",tE=[$p,Jp,Xp,Qp],aE="start",iE="end",nE="viewport",rE="popper",oE=tE.reduce((function(e,t){return e.concat([t+"-"+aE,t+"-"+iE])}),[]),sE=[].concat(tE,[eE]).reduce((function(e,t){return e.concat([t,t+"-"+aE,t+"-"+iE])}),[]),uE=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function lE(e){var t=new Map,a=new Set,i=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var i=t.get(e);i&&n(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),i}function _E(e){var t;return function(){return t||(t=new Promise((function(a){Promise.resolve().then((function(){t=void 0,a(e())}))}))),t}}var fE={placement:"bottom",modifiers:[],strategy:"absolute"};function dE(){for(var e=arguments.length,t=new Array(e),a=0;a=0?"x":"y"}function pE(e){var t,a=e.reference,i=e.element,n=e.placement,r=n?hE(n):null,o=n?FE(n):null,s=a.x+a.width/2-i.width/2,u=a.y+a.height/2-i.height/2;switch(r){case $p:t={x:s,y:a.y-i.height};break;case Jp:t={x:s,y:a.y+a.height};break;case Xp:t={x:a.x+a.width,y:u};break;case Qp:t={x:a.x-i.width,y:u};break;default:t={x:a.x,y:a.y}}var l=r?mE(r):null;if(null!=l){var _="y"===l?"height":"width";switch(o){case aE:t[l]=t[l]-(a[_]/2-i[_]/2);break;case iE:t[l]=t[l]+(a[_]/2-i[_]/2)}}return t}var EE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bE(e){var t,a=e.popper,i=e.popperRect,n=e.placement,r=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,_=e.roundOffsets,f=e.isFixed,d=o.x,c=void 0===d?0:d,g=o.y,h=void 0===g?0:g,F="function"===typeof _?_({x:c,y:h}):{x:c,y:h};c=F.x,h=F.y;var m=o.hasOwnProperty("x"),p=o.hasOwnProperty("y"),E=Qp,b=$p,k=window;if(l){var y=Yp(a),v="clientHeight",D="clientWidth";if(y===Ap(a)&&"static"!==qp(y=Bp(a)).position&&"absolute"===s&&(v="scrollHeight",D="scrollWidth"),y=y,n===$p||(n===Qp||n===Xp)&&r===iE)b=Jp,h-=(f&&k.visualViewport?k.visualViewport.height:y[v])-i.height,h*=u?1:-1;if(n===Qp||(n===$p||n===Jp)&&r===iE)E=Xp,c-=(f&&k.visualViewport?k.visualViewport.width:y[D])-i.width,c*=u?1:-1}var w,S=Object.assign({position:s},l&&EE),C=!0===_?function(e){var t=e.x,a=e.y,i=window.devicePixelRatio||1;return{x:Lp(t*i)/i||0,y:Lp(a*i)/i||0}}({x:c,y:h}):{x:c,y:h};return c=C.x,h=C.y,u?Object.assign({},S,((w={})[b]=p?"0":"",w[E]=m?"0":"",w.transform=(k.devicePixelRatio||1)<=1?"translate("+c+"px, "+h+"px)":"translate3d("+c+"px, "+h+"px, 0)",w)):Object.assign({},S,((t={})[b]=p?h+"px":"",t[E]=m?c+"px":"",t.transform="",t))}var kE={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var a=t.styles[e]||{},i=t.attributes[e]||{},n=t.elements[e];xp(n)&&jp(n)&&(Object.assign(n.style,a),Object.keys(i).forEach((function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,a={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,a.popper),t.styles=a,t.elements.arrow&&Object.assign(t.elements.arrow.style,a.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],n=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:a[e]).reduce((function(e,t){return e[t]="",e}),{});xp(i)&&jp(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var yE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,a=e.options,i=e.name,n=a.offset,r=void 0===n?[0,0]:n,o=sE.reduce((function(e,a){return e[a]=function(e,t,a){var i=hE(e),n=[Qp,$p].indexOf(i)>=0?-1:1,r="function"===typeof a?a(Object.assign({},t,{placement:e})):a,o=r[0],s=r[1];return o=o||0,s=(s||0)*n,[Qp,Xp].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(a,t.rects,r),e}),{}),s=o[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=o}},vE={left:"right",right:"left",bottom:"top",top:"bottom"};function DE(e){return e.replace(/left|right|bottom|top/g,(function(e){return vE[e]}))}var wE={start:"end",end:"start"};function SE(e){return e.replace(/start|end/g,(function(e){return wE[e]}))}function CE(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&Ip(a)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function AE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function TE(e,t){return t===nE?AE(function(e){var t=Ap(e),a=Bp(e),i=t.visualViewport,n=a.clientWidth,r=a.clientHeight,o=0,s=0;return i&&(n=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:n,height:r,x:o+Mp(e),y:s}}(e)):Tp(t)?function(e){var t=Np(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):AE(function(e){var t,a=Bp(e),i=Pp(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=Rp(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Rp(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-i.scrollLeft+Mp(e),u=-i.scrollTop;return"rtl"===qp(n||a).direction&&(s+=Rp(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:s,y:u}}(Bp(e)))}function xE(e,t,a){var i="clippingParents"===t?function(e){var t=Hp(zp(e)),a=["absolute","fixed"].indexOf(qp(e).position)>=0&&xp(e)?Yp(e):e;return Tp(a)?t.filter((function(e){return Tp(e)&&CE(e,a)&&"body"!==jp(e)})):[]}(e):[].concat(t),n=[].concat(i,[a]),r=n[0],o=n.reduce((function(t,a){var i=TE(e,a);return t.top=Rp(i.top,t.top),t.right=Op(i.right,t.right),t.bottom=Op(i.bottom,t.bottom),t.left=Rp(i.left,t.left),t}),TE(e,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function IE(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function RE(e,t){return t.reduce((function(t,a){return t[a]=e,t}),{})}function OE(e,t){void 0===t&&(t={});var a=t,i=a.placement,n=void 0===i?e.placement:i,r=a.boundary,o=void 0===r?"clippingParents":r,s=a.rootBoundary,u=void 0===s?nE:s,l=a.elementContext,_=void 0===l?rE:l,f=a.altBoundary,d=void 0!==f&&f,c=a.padding,g=void 0===c?0:c,h=IE("number"!==typeof g?g:RE(g,tE)),F=_===rE?"reference":rE,m=e.rects.popper,p=e.elements[d?F:_],E=xE(Tp(p)?p:p.contextElement||Bp(e.elements.popper),o,u),b=Np(e.elements.reference),k=pE({reference:b,element:m,strategy:"absolute",placement:n}),y=AE(Object.assign({},m,k)),v=_===rE?y:b,D={top:E.top-v.top+h.top,bottom:v.bottom-E.bottom+h.bottom,left:E.left-v.left+h.left,right:v.right-E.right+h.right},w=e.modifiersData.offset;if(_===rE&&w){var S=w[n];Object.keys(D).forEach((function(e){var t=[Xp,Jp].indexOf(e)>=0?1:-1,a=[$p,Jp].indexOf(e)>=0?"y":"x";D[e]+=S[a]*t}))}return D}function LE(e,t,a){return Rp(e,Op(t,a))}var NE={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,i=e.name,n=a.mainAxis,r=void 0===n||n,o=a.altAxis,s=void 0!==o&&o,u=a.boundary,l=a.rootBoundary,_=a.altBoundary,f=a.padding,d=a.tether,c=void 0===d||d,g=a.tetherOffset,h=void 0===g?0:g,F=OE(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:_}),m=hE(t.placement),p=FE(t.placement),E=!p,b=mE(m),k="x"===b?"y":"x",y=t.modifiersData.popperOffsets,v=t.rects.reference,D=t.rects.popper,w="function"===typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"===typeof w?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(y){if(r){var T,x="y"===b?$p:Qp,I="y"===b?Jp:Xp,R="y"===b?"height":"width",O=y[b],L=O+F[x],N=O-F[I],P=c?-D[R]/2:0,j=p===aE?v[R]:D[R],B=p===aE?-D[R]:-v[R],M=t.elements.arrow,q=c&&M?Up(M):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=G[x],U=G[I],z=LE(0,v[R],q[R]),W=E?v[R]/2-P-z-Z-S.mainAxis:j-z-Z-S.mainAxis,H=E?-v[R]/2+P+z+U+S.mainAxis:B+z+U+S.mainAxis,V=t.elements.arrow&&Yp(t.elements.arrow),K=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,Y=null!=(T=null==C?void 0:C[b])?T:0,$=O+H-Y,J=LE(c?Op(L,O+W-Y-K):L,O,c?Rp(N,$):N);y[b]=J,A[b]=J-O}if(s){var X,Q="x"===b?$p:Qp,ee="x"===b?Jp:Xp,te=y[k],ae="y"===k?"height":"width",ie=te+F[Q],ne=te-F[ee],re=-1!==[$p,Qp].indexOf(m),oe=null!=(X=null==C?void 0:C[k])?X:0,se=re?ie:te-v[ae]-D[ae]-oe+S.altAxis,ue=re?te+v[ae]+D[ae]-oe-S.altAxis:ne,le=c&&re?function(e,t,a){var i=LE(e,t,a);return i>a?a:i}(se,te,ue):LE(c?se:ie,te,c?ue:ne);y[k]=le,A[k]=le-te}t.modifiersData[i]=A}},requiresIfExists:["offset"]};var PE={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,a=e.state,i=e.name,n=e.options,r=a.elements.arrow,o=a.modifiersData.popperOffsets,s=hE(a.placement),u=mE(s),l=[Qp,Xp].indexOf(s)>=0?"height":"width";if(r&&o){var _=function(e,t){return IE("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:RE(e,tE))}(n.padding,a),f=Up(r),d="y"===u?$p:Qp,c="y"===u?Jp:Xp,g=a.rects.reference[l]+a.rects.reference[u]-o[u]-a.rects.popper[l],h=o[u]-a.rects.reference[u],F=Yp(r),m=F?"y"===u?F.clientHeight||0:F.clientWidth||0:0,p=g/2-h/2,E=_[d],b=m-f[l]-_[c],k=m/2-f[l]/2+p,y=LE(E,k,b),v=u;a.modifiersData[i]=((t={})[v]=y,t.centerOffset=y-k,t)}},effect:function(e){var t=e.state,a=e.options.element,i=void 0===a?"[data-popper-arrow]":a;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i)))&&CE(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jE(e,t,a){return void 0===a&&(a={x:0,y:0}),{top:e.top-t.height-a.y,right:e.right-t.width+a.x,bottom:e.bottom-t.height+a.y,left:e.left-t.width-a.x}}function BE(e){return[$p,Xp,Jp,Qp].some((function(t){return e[t]>=0}))}var ME=cE({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,a=e.instance,i=e.options,n=i.scroll,r=void 0===n||n,o=i.resize,s=void 0===o||o,u=Ap(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&l.forEach((function(e){e.addEventListener("scroll",a.update,gE)})),s&&u.addEventListener("resize",a.update,gE),function(){r&&l.forEach((function(e){e.removeEventListener("scroll",a.update,gE)})),s&&u.removeEventListener("resize",a.update,gE)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,a=e.name;t.modifiersData[a]=pE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,a=e.options,i=a.gpuAcceleration,n=void 0===i||i,r=a.adaptive,o=void 0===r||r,s=a.roundOffsets,u=void 0===s||s,l={placement:hE(t.placement),variation:FE(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bE(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bE(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},kE,yE,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var n=a.mainAxis,r=void 0===n||n,o=a.altAxis,s=void 0===o||o,u=a.fallbackPlacements,l=a.padding,_=a.boundary,f=a.rootBoundary,d=a.altBoundary,c=a.flipVariations,g=void 0===c||c,h=a.allowedAutoPlacements,F=t.options.placement,m=hE(F),p=u||(m===F||!g?[DE(F)]:function(e){if(hE(e)===eE)return[];var t=DE(e);return[SE(e),t,SE(t)]}(F)),E=[F].concat(p).reduce((function(e,a){return e.concat(hE(a)===eE?function(e,t){void 0===t&&(t={});var a=t,i=a.placement,n=a.boundary,r=a.rootBoundary,o=a.padding,s=a.flipVariations,u=a.allowedAutoPlacements,l=void 0===u?sE:u,_=FE(i),f=_?s?oE:oE.filter((function(e){return FE(e)===_})):tE,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var c=d.reduce((function(t,a){return t[a]=OE(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[hE(a)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}(t,{placement:a,boundary:_,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:h}):a)}),[]),b=t.rects.reference,k=t.rects.popper,y=new Map,v=!0,D=E[0],w=0;w=0,x=T?"width":"height",I=OE(t,{placement:S,boundary:_,rootBoundary:f,altBoundary:d,padding:l}),R=T?A?Xp:Qp:A?Jp:$p;b[x]>k[x]&&(R=DE(R));var O=DE(R),L=[];if(r&&L.push(I[C]<=0),s&&L.push(I[R]<=0,I[O]<=0),L.every((function(e){return e}))){D=S,v=!1;break}y.set(S,L)}if(v)for(var N=function(e){var t=E.find((function(t){var a=y.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},P=g?3:1;P>0;P--){if("break"===N(P))break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},NE,PE,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,a=e.name,i=t.rects.reference,n=t.rects.popper,r=t.modifiersData.preventOverflow,o=OE(t,{elementContext:"reference"}),s=OE(t,{altBoundary:!0}),u=jE(o,i),l=jE(s,n,r),_=BE(u),f=BE(l);t.modifiersData[a]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:_,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":f})}}]}),qE=a(2971);var GE=r.forwardRef((function(e,t){var a=e.children,i=e.container,n=e.disablePortal,s=void 0!==n&&n,u=r.useState(null),l=(0,Ka.Z)(u,2),_=l[0],f=l[1],d=(0,wp.Z)(r.isValidElement(a)?a.ref:null,t);return(0,Sp.Z)((function(){s||f(function(e){return"function"===typeof e?e():e}(i)||document.body)}),[i,s]),(0,Sp.Z)((function(){if(_&&!s)return(0,qE.Z)(t,_),function(){(0,qE.Z)(t,null)}}),[t,_,s]),s?r.isValidElement(a)?r.cloneElement(a,{ref:d}):a:_?o.createPortal(a,_):_})),ZE=["anchorEl","children","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],UE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function zE(e){return"function"===typeof e?e():e}var WE={},HE=r.forwardRef((function(e,t){var a=e.anchorEl,i=e.children,n=e.direction,o=e.disablePortal,s=e.modifiers,u=e.open,l=e.placement,_=e.popperOptions,f=e.popperRef,d=e.TransitionProps,c=(0,ti.Z)(e,ZE),g=r.useRef(null),h=(0,wp.Z)(g,t),F=r.useRef(null),m=(0,wp.Z)(F,f),p=r.useRef(m);(0,Sp.Z)((function(){p.current=m}),[m]),r.useImperativeHandle(f,(function(){return F.current}),[]);var E=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(l,n),b=r.useState(E),k=(0,Ka.Z)(b,2),y=k[0],v=k[1];r.useEffect((function(){F.current&&F.current.forceUpdate()})),(0,Sp.Z)((function(){if(a&&u){zE(a);var e=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;v(t.placement)}}];null!=s&&(e=e.concat(s)),_&&null!=_.modifiers&&(e=e.concat(_.modifiers));var t=ME(zE(a),g.current,(0,Ba.Z)({placement:E},_,{modifiers:e}));return p.current(t),function(){t.destroy(),p.current(null)}}}),[a,o,s,u,_,E]);var D={placement:y};return null!==d&&(D.TransitionProps=d),(0,Na.jsx)("div",(0,Ba.Z)({ref:h,role:"tooltip"},c,{children:"function"===typeof i?i(D):i}))})),VE=r.forwardRef((function(e,t){var a=e.anchorEl,i=e.children,n=e.container,o=e.direction,s=void 0===o?"ltr":o,u=e.disablePortal,l=void 0!==u&&u,_=e.keepMounted,f=void 0!==_&&_,d=e.modifiers,c=e.open,g=e.placement,h=void 0===g?"bottom":g,F=e.popperOptions,m=void 0===F?WE:F,p=e.popperRef,E=e.style,b=e.transition,k=void 0!==b&&b,y=(0,ti.Z)(e,UE),v=r.useState(!0),D=(0,Ka.Z)(v,2),w=D[0],S=D[1];if(!f&&!c&&(!k||w))return null;var C=n||(a?(0,Cp.Z)(zE(a)).body:void 0);return(0,Na.jsx)(GE,{disablePortal:l,container:C,children:(0,Na.jsx)(HE,(0,Ba.Z)({anchorEl:a,direction:s,disablePortal:l,modifiers:d,ref:t,open:k?!w:c,placement:h,popperOptions:m,popperRef:p},y,{style:(0,Ba.Z)({position:"fixed",top:0,left:0,display:c||!f||k&&!w?null:"none"},E),TransitionProps:k?{in:c,onEnter:function(){S(!1)},onExited:function(){S(!0)}}:null,children:i}))})})),KE=VE,YE=a(885),$E=r.forwardRef((function(e,t){var a=(0,YE.Z)();return(0,Na.jsx)(KE,(0,Ba.Z)({direction:null==a?void 0:a.direction},e,{ref:t}))})),JE=$E,XE=a(7384),QE=a(8278);function eb(e){return(0,of.Z)("MuiTooltip",e)}var tb=(0,sf.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ab=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];var ib=(0,nf.ZP)(JE,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var a=e.ownerState;return[t.popper,!a.disableInteractive&&t.popperInteractive,a.arrow&&t.popperArrow,!a.open&&t.popperClose]}})((function(e){var t,a=e.theme,i=e.ownerState,n=e.open;return(0,Ba.Z)({zIndex:a.zIndex.tooltip,pointerEvents:"none"},!i.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},i.arrow&&(t={},(0,Ya.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(tb.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,Ya.Z)(t,'&[data-popper-placement*="top"] .'.concat(tb.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,Ya.Z)(t,'&[data-popper-placement*="right"] .'.concat(tb.arrow),(0,Ba.Z)({},i.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,Ya.Z)(t,'&[data-popper-placement*="left"] .'.concat(tb.arrow),(0,Ba.Z)({},i.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),nb=(0,nf.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var a=e.ownerState;return[t.tooltip,a.touch&&t.touch,a.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,mh.Z)(a.placement.split("-")[0]))]]}})((function(e){var t,a,i=e.theme,n=e.ownerState;return(0,Ba.Z)({backgroundColor:(0,af.Fq)(i.palette.grey[700],.92),borderRadius:i.shape.borderRadius,color:i.palette.common.white,fontFamily:i.typography.fontFamily,padding:"4px 8px",fontSize:i.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:i.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:i.typography.pxToRem(14),lineHeight:"".concat((a=16/14,Math.round(1e5*a)/1e5),"em"),fontWeight:i.typography.fontWeightRegular},(t={},(0,Ya.Z)(t,".".concat(tb.popper,'[data-popper-placement*="left"] &'),(0,Ba.Z)({transformOrigin:"right center"},n.isRtl?(0,Ba.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,Ba.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"}))),(0,Ya.Z)(t,".".concat(tb.popper,'[data-popper-placement*="right"] &'),(0,Ba.Z)({transformOrigin:"left center"},n.isRtl?(0,Ba.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,Ba.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}))),(0,Ya.Z)(t,".".concat(tb.popper,'[data-popper-placement*="top"] &'),(0,Ba.Z)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"})),(0,Ya.Z)(t,".".concat(tb.popper,'[data-popper-placement*="bottom"] &'),(0,Ba.Z)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})),t))})),rb=(0,nf.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,af.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),ob=!1,sb=null;function ub(e,t){return function(a){t&&t(a),e(a)}}var lb=r.forwardRef((function(e,t){var a,i,n,o,s,u,l=(0,rf.Z)({props:e,name:"MuiTooltip"}),_=l.arrow,f=void 0!==_&&_,d=l.children,c=l.components,g=void 0===c?{}:c,h=l.componentsProps,F=void 0===h?{}:h,m=l.describeChild,p=void 0!==m&&m,E=l.disableFocusListener,b=void 0!==E&&E,k=l.disableHoverListener,y=void 0!==k&&k,v=l.disableInteractive,D=void 0!==v&&v,w=l.disableTouchListener,S=void 0!==w&&w,C=l.enterDelay,A=void 0===C?100:C,T=l.enterNextDelay,x=void 0===T?0:T,I=l.enterTouchDelay,R=void 0===I?700:I,O=l.followCursor,L=void 0!==O&&O,N=l.id,P=l.leaveDelay,j=void 0===P?0:P,B=l.leaveTouchDelay,M=void 0===B?1500:B,q=l.onClose,G=l.onOpen,Z=l.open,U=l.placement,z=void 0===U?"bottom":U,W=l.PopperComponent,H=l.PopperProps,V=void 0===H?{}:H,K=l.title,Y=l.TransitionComponent,$=void 0===Y?Dp:Y,J=l.TransitionProps,X=(0,ti.Z)(l,ab),Q=Rf(),ee="rtl"===Q.direction,te=r.useState(),ae=(0,Ka.Z)(te,2),ie=ae[0],ne=ae[1],re=r.useState(null),oe=(0,Ka.Z)(re,2),se=oe[0],ue=oe[1],le=r.useRef(!1),_e=D||L,fe=r.useRef(),de=r.useRef(),ce=r.useRef(),ge=r.useRef(),he=(0,QE.Z)({controlled:Z,default:!1,name:"Tooltip",state:"open"}),Fe=(0,Ka.Z)(he,2),me=Fe[0],pe=Fe[1],Ee=me,be=(0,XE.Z)(N),ke=r.useRef(),ye=r.useCallback((function(){void 0!==ke.current&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),clearTimeout(ge.current)}),[]);r.useEffect((function(){return function(){clearTimeout(fe.current),clearTimeout(de.current),clearTimeout(ce.current),ye()}}),[ye]);var ve=function(e){clearTimeout(sb),ob=!0,pe(!0),G&&!Ee&&G(e)},De=(0,SF.Z)((function(e){clearTimeout(sb),sb=setTimeout((function(){ob=!1}),800+j),pe(!1),q&&Ee&&q(e),clearTimeout(fe.current),fe.current=setTimeout((function(){le.current=!1}),Q.transitions.duration.shortest)})),we=function(e){le.current&&"touchstart"!==e.type||(ie&&ie.removeAttribute("title"),clearTimeout(de.current),clearTimeout(ce.current),A||ob&&x?de.current=setTimeout((function(){ve(e)}),ob?x:A):ve(e))},Se=function(e){clearTimeout(de.current),clearTimeout(ce.current),ce.current=setTimeout((function(){De(e)}),j)},Ce=(0,CF.Z)(),Ae=Ce.isFocusVisibleRef,Te=Ce.onBlur,xe=Ce.onFocus,Ie=Ce.ref,Re=r.useState(!1),Oe=(0,Ka.Z)(Re,2)[1],Le=function(e){Te(e),!1===Ae.current&&(Oe(!1),Se(e))},Ne=function(e){ie||ne(e.currentTarget),xe(e),!0===Ae.current&&(Oe(!0),we(e))},Pe=function(e){le.current=!0;var t=d.props;t.onTouchStart&&t.onTouchStart(e)},je=we,Be=Se;r.useEffect((function(){if(Ee)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||De(e)}}),[De,Ee]);var Me=(0,Nf.Z)(ne,t),qe=(0,Nf.Z)(Ie,Me),Ge=(0,Nf.Z)(d.ref,qe);""===K&&(Ee=!1);var Ze=r.useRef({x:0,y:0}),Ue=r.useRef(),ze={},We="string"===typeof K;p?(ze.title=Ee||!We||y?null:K,ze["aria-describedby"]=Ee?be:null):(ze["aria-label"]=We?K:null,ze["aria-labelledby"]=Ee&&!We?be:null);var He=(0,Ba.Z)({},ze,X,d.props,{className:(0,ef.Z)(X.className,d.props.className),onTouchStart:Pe,ref:Ge},L?{onMouseMove:function(e){var t=d.props;t.onMouseMove&&t.onMouseMove(e),Ze.current={x:e.clientX,y:e.clientY},Ue.current&&Ue.current.update()}}:{});var Ve={};S||(He.onTouchStart=function(e){Pe(e),clearTimeout(ce.current),clearTimeout(fe.current),ye(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.current=setTimeout((function(){document.body.style.WebkitUserSelect=ke.current,we(e)}),R)},He.onTouchEnd=function(e){d.props.onTouchEnd&&d.props.onTouchEnd(e),ye(),clearTimeout(ce.current),ce.current=setTimeout((function(){De(e)}),M)}),y||(He.onMouseOver=ub(je,He.onMouseOver),He.onMouseLeave=ub(Be,He.onMouseLeave),_e||(Ve.onMouseOver=je,Ve.onMouseLeave=Be)),b||(He.onFocus=ub(Ne,He.onFocus),He.onBlur=ub(Le,He.onBlur),_e||(Ve.onFocus=Ne,Ve.onBlur=Le));var Ke=r.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(se),options:{element:se,padding:4}}];return null!=(e=V.popperOptions)&&e.modifiers&&(t=t.concat(V.popperOptions.modifiers)),(0,Ba.Z)({},V.popperOptions,{modifiers:t})}),[se,V]),Ye=(0,Ba.Z)({},l,{isRtl:ee,arrow:f,disableInteractive:_e,placement:z,PopperComponentProp:W,touch:le.current}),$e=function(e){var t=e.classes,a=e.disableInteractive,i=e.arrow,n=e.touch,r=e.placement,o={popper:["popper",!a&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",n&&"touch","tooltipPlacement".concat((0,mh.Z)(r.split("-")[0]))],arrow:["arrow"]};return(0,tf.Z)(o,eb,t)}(Ye),Je=null!=(a=g.Popper)?a:ib,Xe=null!=(i=null!=(n=g.Transition)?n:$)?i:Dp,Qe=null!=(o=g.Tooltip)?o:nb,et=null!=(s=g.Arrow)?s:rb,tt=lp(Je,(0,Ba.Z)({},V,F.popper),Ye),at=lp(Xe,(0,Ba.Z)({},J,F.transition),Ye),it=lp(Qe,(0,Ba.Z)({},F.tooltip),Ye),nt=lp(et,(0,Ba.Z)({},F.arrow),Ye);return(0,Na.jsxs)(r.Fragment,{children:[r.cloneElement(d,He),(0,Na.jsx)(Je,(0,Ba.Z)({as:null!=W?W:JE,placement:z,anchorEl:L?{getBoundingClientRect:function(){return{top:Ze.current.y,left:Ze.current.x,right:Ze.current.x,bottom:Ze.current.y,width:0,height:0}}}:ie,popperRef:Ue,open:!!ie&&Ee,id:be,transition:!0},Ve,tt,{className:(0,ef.Z)($e.popper,null==V?void 0:V.className,null==(u=F.popper)?void 0:u.className),popperOptions:Ke,children:function(e){var t,a,i=e.TransitionProps;return(0,Na.jsx)(Xe,(0,Ba.Z)({timeout:Q.transitions.duration.shorter},i,at,{children:(0,Na.jsxs)(Qe,(0,Ba.Z)({},it,{className:(0,ef.Z)($e.tooltip,null==(t=F.tooltip)?void 0:t.className),children:[K,f?(0,Na.jsx)(et,(0,Ba.Z)({},nt,{className:(0,ef.Z)($e.arrow,null==(a=F.arrow)?void 0:a.className),ref:ue})):null]}))}))}}))]})})),_b=lb,fb=["children"],db=function(e){var t=e.children,a=ai(e,fb);return(0,Na.jsx)(_b,(0,Ha.Z)((0,Ha.Z)({},a),{},{children:t}))},cb=eh((function(e){return{root:{padding:0,marginTop:e.spacing(3)},avatar:{"&:hover":{backgroundColor:function(e){var t=e.backgroundColor;return(0,af._j)(t,.1)}},backgroundColor:function(e){return e.backgroundColor},color:function(e){return e.color},boxShadow:e.shadows[2],width:e.spacing(8),height:e.spacing(8),fontSize:e.typography.h4.fontSize},icon:{fontSize:e.typography.h4.fontSize,width:e.spacing(8),height:e.spacing(8)},tooltip:{fontSize:12}}})),gb=function(e){var t=e.id,a=e.nameLocale,i=e.Icon,n=e.backgroundColor,r=e.color,o=e.icon,s=e.notification,u=uF(),l=(0,Ka.Z)(u,1)[0],_=cb({backgroundColor:n||Um.Z[50],color:r||Um.Z[400]});return(0,Na.jsx)(db,{arrow:!0,title:l(a),placement:"top",classes:{tooltip:_.tooltip},TransitionComponent:Km,children:(0,Na.jsx)(rp,{className:_.root,children:(0,Na.jsx)(Ep,{color:"error",badgeContent:null===s||void 0===s?void 0:s.badge,invisible:!s||s.badge<2,children:i?(0,Na.jsx)(i,{className:_.icon,fontSize:"large"}):(0,Na.jsx)(Cm,{className:_.avatar,children:o||l(a)})})})},t)},hb=a(9247);var Fb=r.createContext();function mb(e){return(0,of.Z)("MuiGrid",e)}var pb=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Eb=(0,sf.Z)("MuiGrid",["root","container","item","zeroMinWidth"].concat((0,Va.Z)([0,1,2,3,4,5,6,7,8,9,10].map((function(e){return"spacing-xs-".concat(e)}))),(0,Va.Z)(["column-reverse","column","row-reverse","row"].map((function(e){return"direction-xs-".concat(e)}))),(0,Va.Z)(["nowrap","wrap-reverse","wrap"].map((function(e){return"wrap-xs-".concat(e)}))),(0,Va.Z)(pb.map((function(e){return"grid-xs-".concat(e)}))),(0,Va.Z)(pb.map((function(e){return"grid-sm-".concat(e)}))),(0,Va.Z)(pb.map((function(e){return"grid-md-".concat(e)}))),(0,Va.Z)(pb.map((function(e){return"grid-lg-".concat(e)}))),(0,Va.Z)(pb.map((function(e){return"grid-xl-".concat(e)}))))),bb=Eb,kb=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function yb(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function vb(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[a["spacing-xs-".concat(String(e))]||"spacing-xs-".concat(String(e))];var i=e.xs,n=e.sm,r=e.md,o=e.lg,s=e.xl;return[Number(i)>0&&(a["spacing-xs-".concat(String(i))]||"spacing-xs-".concat(String(i))),Number(n)>0&&(a["spacing-sm-".concat(String(n))]||"spacing-sm-".concat(String(n))),Number(r)>0&&(a["spacing-md-".concat(String(r))]||"spacing-md-".concat(String(r))),Number(o)>0&&(a["spacing-lg-".concat(String(o))]||"spacing-lg-".concat(String(o))),Number(s)>0&&(a["spacing-xl-".concat(String(s))]||"spacing-xl-".concat(String(s)))]}var Db=(0,nf.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState,i=a.container,n=a.direction,r=a.item,o=a.lg,s=a.md,u=a.sm,l=a.spacing,_=a.wrap,f=a.xl,d=a.xs,c=a.zeroMinWidth;return[t.root,i&&t.container,r&&t.item,c&&t.zeroMinWidth].concat((0,Va.Z)(vb(l,i,t)),["row"!==n&&t["direction-xs-".concat(String(n))],"wrap"!==_&&t["wrap-xs-".concat(String(_))],!1!==d&&t["grid-xs-".concat(String(d))],!1!==u&&t["grid-sm-".concat(String(u))],!1!==s&&t["grid-md-".concat(String(s))],!1!==o&&t["grid-lg-".concat(String(o))],!1!==f&&t["grid-xl-".concat(String(f))]])}})((function(e){var t=e.ownerState;return(0,Ba.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var t=e.theme,a=e.ownerState,i=(0,hb.P$)({values:a.direction,breakpoints:t.breakpoints.values});return(0,hb.k9)({theme:t},i,(function(e){var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(bb.item)]={maxWidth:"none"}),t}))}),(function(e){var t=e.theme,a=e.ownerState,i=a.container,n=a.rowSpacing,r={};if(i&&0!==n){var o=(0,hb.P$)({values:n,breakpoints:t.breakpoints.values});r=(0,hb.k9)({theme:t},o,(function(e){var a=t.spacing(e);return"0px"!==a?(0,Ya.Z)({marginTop:"-".concat(yb(a))},"& > .".concat(bb.item),{paddingTop:yb(a)}):{}}))}return r}),(function(e){var t=e.theme,a=e.ownerState,i=a.container,n=a.columnSpacing,r={};if(i&&0!==n){var o=(0,hb.P$)({values:n,breakpoints:t.breakpoints.values});r=(0,hb.k9)({theme:t},o,(function(e){var a=t.spacing(e);return"0px"!==a?(0,Ya.Z)({width:"calc(100% + ".concat(yb(a),")"),marginLeft:"-".concat(yb(a))},"& > .".concat(bb.item),{paddingLeft:yb(a)}):{}}))}return r}),(function(e){var t,a=e.theme,i=e.ownerState;return a.breakpoints.keys.reduce((function(e,n){var r={};if(i[n]&&(t=i[n]),!t)return e;if(!0===t)r={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var o=(0,hb.P$)({values:i.columns,breakpoints:a.breakpoints.values}),s="object"===typeof o?o[n]:o;if(void 0===s||null===s)return e;var u="".concat(Math.round(t/s*1e8)/1e6,"%"),l={};if(i.container&&i.item&&0!==i.columnSpacing){var _=a.spacing(i.columnSpacing);if("0px"!==_){var f="calc(".concat(u," + ").concat(yb(_),")");l={flexBasis:f,maxWidth:f}}}r=(0,Ba.Z)({flexBasis:u,flexGrow:0,maxWidth:u},l)}return 0===a.breakpoints.values[n]?Object.assign(e,r):e[a.breakpoints.up(n)]=r,e}),{})})),wb=r.forwardRef((function(e,t){var a,i=rh((0,rf.Z)({props:e,name:"MuiGrid"})),n=i.className,o=i.columns,s=i.columnSpacing,u=i.component,l=void 0===u?"div":u,_=i.container,f=void 0!==_&&_,d=i.direction,c=void 0===d?"row":d,g=i.item,h=void 0!==g&&g,F=i.lg,m=void 0!==F&&F,p=i.md,E=void 0!==p&&p,b=i.rowSpacing,k=i.sm,y=void 0!==k&&k,v=i.spacing,D=void 0===v?0:v,w=i.wrap,S=void 0===w?"wrap":w,C=i.xl,A=void 0!==C&&C,T=i.xs,x=void 0!==T&&T,I=i.zeroMinWidth,R=void 0!==I&&I,O=(0,ti.Z)(i,kb),L=b||D,N=s||D,P=r.useContext(Fb),j=o||P||12,B=(0,Ba.Z)({},i,{columns:j,container:f,direction:c,item:h,lg:m,md:E,sm:y,rowSpacing:L,columnSpacing:N,wrap:S,xl:A,xs:x,zeroMinWidth:R}),M=function(e){var t=e.classes,a=e.container,i=e.direction,n=e.item,r=e.lg,o=e.md,s=e.sm,u=e.spacing,l=e.wrap,_=e.xl,f=e.xs,d={root:["root",a&&"container",n&&"item",e.zeroMinWidth&&"zeroMinWidth"].concat((0,Va.Z)(vb(u,a)),["row"!==i&&"direction-xs-".concat(String(i)),"wrap"!==l&&"wrap-xs-".concat(String(l)),!1!==f&&"grid-xs-".concat(String(f)),!1!==s&&"grid-sm-".concat(String(s)),!1!==o&&"grid-md-".concat(String(o)),!1!==r&&"grid-lg-".concat(String(r)),!1!==_&&"grid-xl-".concat(String(_))])};return(0,tf.Z)(d,mb,t)}(B);return a=(0,Na.jsx)(Db,(0,Ba.Z)({ownerState:B,className:(0,ef.Z)(M.root,n),as:l,ref:t},O)),12!==j?(0,Na.jsx)(Fb.Provider,{value:j,children:a}):a})),Sb=wb,Cb=function(e){var t=e.items,a=e.Component,i=void 0===a?gb:a,n=e.xs;return(0,Na.jsx)(Sb,{container:!0,alignItems:"center",direction:"row",children:t&&t.length&&t.map((function(e){return(0,Na.jsx)(Na.Fragment,{children:!e.isDisabled&&(0,Na.jsx)(Sb,{item:!0,xs:n,children:(0,Na.jsx)(lh,{textAlign:"center",children:(0,Na.jsx)(De,{to:e.path,children:(0,Na.jsx)(i,(0,Ha.Z)({},e))})})},e.id)})}))})},Ab=function(){var e=(0,r.useContext)(z_);if(!e)throw new Error("useNotifications must be wrapped by NotificationsProvider");return e},Tb=a(1535),xb=function(e){return function(t){return(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(Tb.Z,(0,Ha.Z)({},t)),children:(0,Na.jsx)(e,(0,Ha.Z)({},t))})}},Ib=a(427),Rb=a(375),Ob=a(1798),Lb=a(5519),Nb=["app","variant"],Pb=eh((function(e){return{root:function(t){return{width:"100%",textAlign:"left",backgroundColor:t.backgroundColor||e.palette.background.default}},text:function(t){return{color:t.color||e.palette.text.primary}}}})),jb=function(e){var t=e.app,a=t.backgroundColor,i=t.color,n=t.nameLocale,r=e.variant,o=void 0===r?"h5":r,s=ai(e,Nb),u=Pb({color:i,backgroundColor:a}),l=uF(),_=(0,Ka.Z)(l,1)[0];return(0,Na.jsx)(lh,(0,Ha.Z)((0,Ha.Z)({px:2,pt:2,className:u.root},s),{},{children:(0,Na.jsx)(EF,{className:u.text,paragraph:!0,variant:o,children:_(n)})}))},Bb=a(8130),Mb=a(4637),qb=a(2716),Gb=a(7750);var Zb=r.createContext({});function Ub(e){return(0,of.Z)("MuiList",e)}(0,sf.Z)("MuiList",["root","padding","dense","subheader"]);var zb=["children","className","component","dense","disablePadding","subheader"],Wb=(0,nf.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,!a.disablePadding&&t.padding,a.dense&&t.dense,a.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Hb=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiList"}),i=a.children,n=a.className,o=a.component,s=void 0===o?"ul":o,u=a.dense,l=void 0!==u&&u,_=a.disablePadding,f=void 0!==_&&_,d=a.subheader,c=(0,ti.Z)(a,zb),g=r.useMemo((function(){return{dense:l}}),[l]),h=(0,Ba.Z)({},a,{component:s,dense:l,disablePadding:f}),F=function(e){var t=e.classes,a={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,tf.Z)(a,Ub,t)}(h);return(0,Na.jsx)(Zb.Provider,{value:g,children:(0,Na.jsxs)(Wb,(0,Ba.Z)({as:s,className:(0,ef.Z)(F.root,n),ref:t,ownerState:h},c,{children:[d,i]}))})})),Vb=Hb,Kb=function(e){var t=Object.assign({},e);return(0,Na.jsx)(Vb,(0,Ha.Z)((0,Ha.Z)({"aria-label":"list"},t),{},{children:t.children}))},Yb=a(9103),$b=a(162);function Jb(e){return(0,of.Z)("MuiListItem",e)}var Xb=(0,sf.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var Qb=(0,sf.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function ek(e){return(0,of.Z)("MuiListItemSecondaryAction",e)}(0,sf.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var tk=["className"],ak=(0,nf.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.disableGutters&&t.disableGutters]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),ik=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiListItemSecondaryAction"}),i=a.className,n=(0,ti.Z)(a,tk),o=r.useContext(Zb),s=(0,Ba.Z)({},a,{disableGutters:o.disableGutters}),u=function(e){var t=e.disableGutters,a=e.classes,i={root:["root",t&&"disableGutters"]};return(0,tf.Z)(i,ek,a)}(s);return(0,Na.jsx)(ak,(0,Ba.Z)({className:(0,ef.Z)(u.root,i),ownerState:s,ref:t},n))}));ik.muiName="ListItemSecondaryAction";var nk=ik,rk=["className"],ok=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],sk=(0,nf.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.dense&&t.dense,"flex-start"===a.alignItems&&t.alignItemsFlexStart,a.divider&&t.divider,!a.disableGutters&&t.gutters,!a.disablePadding&&t.padding,a.button&&t.button,a.hasSecondaryAction&&t.secondaryAction]}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!i.disablePadding&&(0,Ba.Z)({paddingTop:8,paddingBottom:8},i.dense&&{paddingTop:4,paddingBottom:4},!i.disableGutters&&{paddingLeft:16,paddingRight:16},!!i.secondaryAction&&{paddingRight:48}),!!i.secondaryAction&&(0,Ya.Z)({},"& > .".concat(Qb.root),{paddingRight:48}),(t={},(0,Ya.Z)(t,"&.".concat(Xb.focusVisible),{backgroundColor:a.palette.action.focus}),(0,Ya.Z)(t,"&.".concat(Xb.selected),(0,Ya.Z)({backgroundColor:(0,af.Fq)(a.palette.primary.main,a.palette.action.selectedOpacity)},"&.".concat(Xb.focusVisible),{backgroundColor:(0,af.Fq)(a.palette.primary.main,a.palette.action.selectedOpacity+a.palette.action.focusOpacity)})),(0,Ya.Z)(t,"&.".concat(Xb.disabled),{opacity:a.palette.action.disabledOpacity}),t),"flex-start"===i.alignItems&&{alignItems:"flex-start"},i.divider&&{borderBottom:"1px solid ".concat(a.palette.divider),backgroundClip:"padding-box"},i.button&&(0,Ya.Z)({transition:a.transitions.create("background-color",{duration:a.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:a.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(Xb.selected,":hover"),{backgroundColor:(0,af.Fq)(a.palette.primary.main,a.palette.action.selectedOpacity+a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,af.Fq)(a.palette.primary.main,a.palette.action.selectedOpacity)}}),i.hasSecondaryAction&&{paddingRight:48})})),uk=(0,nf.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:function(e,t){return t.container}})({position:"relative"}),lk=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiListItem"}),i=a.alignItems,n=void 0===i?"center":i,o=a.autoFocus,s=void 0!==o&&o,u=a.button,l=void 0!==u&&u,_=a.children,f=a.className,d=a.component,c=a.components,g=void 0===c?{}:c,h=a.componentsProps,F=void 0===h?{}:h,m=a.ContainerComponent,p=void 0===m?"li":m,E=a.ContainerProps,b=(E=void 0===E?{}:E).className,k=a.dense,y=void 0!==k&&k,v=a.disabled,D=void 0!==v&&v,w=a.disableGutters,S=void 0!==w&&w,C=a.disablePadding,A=void 0!==C&&C,T=a.divider,x=void 0!==T&&T,I=a.focusVisibleClassName,R=a.secondaryAction,O=a.selected,L=void 0!==O&&O,N=(0,ti.Z)(a.ContainerProps,rk),P=(0,ti.Z)(a,ok),j=r.useContext(Zb),B={dense:y||j.dense||!1,alignItems:n,disableGutters:S},M=r.useRef(null);(0,$b.Z)((function(){s&&M.current&&M.current.focus()}),[s]);var q=r.Children.toArray(_),G=q.length&&(0,Yb.Z)(q[q.length-1],["ListItemSecondaryAction"]),Z=(0,Ba.Z)({},a,{alignItems:n,autoFocus:s,button:l,dense:B.dense,disabled:D,disableGutters:S,disablePadding:A,divider:x,hasSecondaryAction:G,selected:L}),U=function(e){var t=e.alignItems,a=e.button,i=e.classes,n=e.dense,r=e.disabled,o={root:["root",n&&"dense",!e.disableGutters&&"gutters",!e.disablePadding&&"padding",e.divider&&"divider",r&&"disabled",a&&"button","flex-start"===t&&"alignItemsFlexStart",e.hasSecondaryAction&&"secondaryAction",e.selected&&"selected"],container:["container"]};return(0,tf.Z)(o,Jb,i)}(Z),z=(0,Nf.Z)(M,t),W=g.Root||sk,H=F.root||{},V=(0,Ba.Z)({className:(0,ef.Z)(U.root,H.className,f),disabled:D},P),K=d||"li";return l&&(V.component=d||"div",V.focusVisibleClassName=(0,ef.Z)(Xb.focusVisible,I),K=nm),G?(K=V.component||d?K:"div","li"===p&&("li"===K?K="div":"li"===V.component&&(V.component="div")),(0,Na.jsx)(Zb.Provider,{value:B,children:(0,Na.jsxs)(uk,(0,Ba.Z)({as:p,className:(0,ef.Z)(U.container,b),ref:z,ownerState:Z},N,{children:[(0,Na.jsx)(W,(0,Ba.Z)({},H,!gf(W)&&{as:K,ownerState:(0,Ba.Z)({},Z,H.ownerState)},V,{children:q})),q.pop()]}))})):(0,Na.jsx)(Zb.Provider,{value:B,children:(0,Na.jsxs)(W,(0,Ba.Z)({},H,{as:K,ref:z,ownerState:Z},!gf(W)&&{ownerState:(0,Ba.Z)({},Z,H.ownerState)},V,{children:[q,R&&(0,Na.jsx)(nk,{children:R})]}))})})),_k=lk,fk=function(e){var t=Object.assign({},e);return(0,Na.jsx)(_k,(0,Ha.Z)((0,Ha.Z)({"aria-label":"list item"},t),{},{children:t.children}))};function dk(e){return(0,of.Z)("MuiListItemIcon",e)}var ck=(0,sf.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]),gk=["className"],hk=(0,nf.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,"flex-start"===a.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({minWidth:56,color:t.palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===a.alignItems&&{marginTop:8})})),Fk=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiListItemIcon"}),i=a.className,n=(0,ti.Z)(a,gk),o=r.useContext(Zb),s=(0,Ba.Z)({},a,{alignItems:o.alignItems}),u=function(e){var t=e.alignItems,a=e.classes,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,tf.Z)(i,dk,a)}(s);return(0,Na.jsx)(hk,(0,Ba.Z)({className:(0,ef.Z)(u.root,i),ownerState:s,ref:t},n))})),mk=Fk;function pk(e){return(0,of.Z)("MuiListItemText",e)}var Ek=(0,sf.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bk=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],kk=(0,nf.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[(0,Ya.Z)({},"& .".concat(Ek.primary),t.primary),(0,Ya.Z)({},"& .".concat(Ek.secondary),t.secondary),t.root,a.inset&&t.inset,a.primary&&a.secondary&&t.multiline,a.dense&&t.dense]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),yk=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiListItemText"}),i=a.children,n=a.className,o=a.disableTypography,s=void 0!==o&&o,u=a.inset,l=void 0!==u&&u,_=a.primary,f=a.primaryTypographyProps,d=a.secondary,c=a.secondaryTypographyProps,g=(0,ti.Z)(a,bk),h=r.useContext(Zb).dense,F=null!=_?_:i,m=d,p=(0,Ba.Z)({},a,{disableTypography:s,inset:l,primary:!!F,secondary:!!m,dense:h}),E=function(e){var t=e.classes,a=e.inset,i=e.primary,n=e.secondary,r={root:["root",a&&"inset",e.dense&&"dense",i&&n&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,tf.Z)(r,pk,t)}(p);return null==F||F.type===EF||s||(F=(0,Na.jsx)(EF,(0,Ba.Z)({variant:h?"body2":"body1",className:E.primary,component:"span",display:"block"},f,{children:F}))),null==m||m.type===EF||s||(m=(0,Na.jsx)(EF,(0,Ba.Z)({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},c,{children:m}))),(0,Na.jsxs)(kk,(0,Ba.Z)({className:(0,ef.Z)(E.root,n),ownerState:p,ref:t},g,{children:[F,m]}))})),vk=yk,Dk=a(7892),wk=a.n(Dk),Sk=eh((function(e){return{callForward:{color:e.palette.success.main},callBack:{color:e.palette.error.main}}})),Ck=function(){var e=zh(),t=Rm().getDisplayByNumber,a=dF().initializeCall,i=p_(_F.history),n=Sk(),o=xm(),s=fe(),u=uF(),l=(0,Ka.Z)(u,1)[0],_=function(e){a(e)},f=(0,r.useCallback)((function(e){return o.length?t(e):e}),[o,t]);return null!==i&&void 0!==i&&i.length?(0,Na.jsx)(Kb,{disablePadding:!0,children:i.map((function(t){return t.transmitter===e?(0,Na.jsxs)(fk,{divider:!0,children:[(0,Na.jsx)(mk,{children:(0,Na.jsx)(Mb.Z,{className:n.callForward})}),(0,Na.jsx)(vk,{primary:f(t.receiver),secondary:wk()().to(wk().unix(parseInt(t.start))),primaryTypographyProps:{overflow:"hidden",textOverflow:"ellipsis"}}),(0,Na.jsx)(_m,{onClick:function(){return _(t.receiver)},size:"large",children:(0,Na.jsx)(qb.Z,{})}),f(t.receiver)===t.receiver&&(0,Na.jsx)(_m,{onClick:function(){return s.push("/contacts/-1?addNumber=".concat(t.receiver,"&referal=/phone/contacts"))},size:"large",children:(0,Na.jsx)(Gb.Z,{})})]},t.id):(0,Na.jsxs)(fk,{divider:!0,children:[(0,Na.jsx)(mk,{children:(0,Na.jsx)(Bb.Z,{className:n.callBack})}),(0,Na.jsx)(vk,{primary:f(t.transmitter),secondary:wk()().to(wk().unix(parseInt(t.start))),primaryTypographyProps:{overflow:"hidden",textOverflow:"ellipsis"}}),(0,Na.jsx)(_m,{onClick:function(){return _(t.transmitter)},size:"large",children:(0,Na.jsx)(qb.Z,{})}),f(t.transmitter)===t.transmitter&&(0,Na.jsx)(_m,{onClick:function(){return s.push("/contacts/-1?addNumber=".concat(t.transmitter,"&referal=/phone/contacts"))},size:"large",children:(0,Na.jsx)(Gb.Z,{})})]},t.id)}))}):(0,Na.jsx)(lh,{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:35,children:(0,Na.jsxs)("p",{children:[l("DIALER.NO_HISTORY"),(0,Na.jsx)("span",{role:"img","aria-label":"sad",children:"\ud83d\ude1e"})]})})},Ak=(0,r.createContext)(null),Tk=eh((function(e){return{gridItem:{fontSize:e.typography.h5.fontSize,padding:e.spacing(2)}}})),xk=function(e){var t=e.label,a=e.onClick,i=Tk();return(0,Na.jsx)(Sb,{item:!0,xs:4,children:(0,Na.jsx)(rp,{fullWidth:!0,size:"large",className:i.gridItem,onClick:a,children:t})},t)},Ik=function(){var e=(0,r.useContext)(Ak),t=e.add,a=e.removeOne,i=e.clear;return(0,Na.jsx)(lh,{height:"100%",children:(0,Na.jsxs)(Sb,{container:!0,justifyContent:"space-around",children:[(0,Na.jsx)(xk,{label:1,onClick:function(){return t(1)}}),(0,Na.jsx)(xk,{label:2,onClick:function(){return t(2)}}),(0,Na.jsx)(xk,{label:3,onClick:function(){return t(3)}}),(0,Na.jsx)(xk,{label:4,onClick:function(){return t(4)}}),(0,Na.jsx)(xk,{label:5,onClick:function(){return t(5)}}),(0,Na.jsx)(xk,{label:6,onClick:function(){return t(6)}}),(0,Na.jsx)(xk,{label:7,onClick:function(){return t(7)}}),(0,Na.jsx)(xk,{label:8,onClick:function(){return t(8)}}),(0,Na.jsx)(xk,{label:9,onClick:function(){return t(9)}}),(0,Na.jsx)(xk,{label:"*",onClick:i}),(0,Na.jsx)(xk,{label:0,onClick:function(){return t(0)}}),(0,Na.jsx)(xk,{label:"#",onClick:a}),(0,Na.jsx)(xk,{label:"-",onClick:function(){return t("-")}})]})})},Rk=a(6248),Ok=a(6189),Lk=a(7979),Nk=a(3981),Pk=["onChange","maxRows","minRows","style","value"];function jk(e,t){return parseInt(e[t],10)||0}var Bk={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Mk=r.forwardRef((function(e,t){var a=e.onChange,i=e.maxRows,n=e.minRows,o=void 0===n?1:n,s=e.style,u=e.value,l=(0,ti.Z)(e,Pk),_=r.useRef(null!=u).current,f=r.useRef(null),d=(0,wp.Z)(t,f),c=r.useRef(null),g=r.useRef(0),h=r.useState({}),F=(0,Ka.Z)(h,2),m=F[0],p=F[1],E=r.useCallback((function(){var t=f.current,a=(0,Lk.Z)(t).getComputedStyle(t);if("0px"!==a.width){var n=c.current;n.style.width=a.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var r=a["box-sizing"],s=jk(a,"padding-bottom")+jk(a,"padding-top"),u=jk(a,"border-bottom-width")+jk(a,"border-top-width"),l=n.scrollHeight;n.value="x";var _=n.scrollHeight,d=l;o&&(d=Math.max(Number(o)*_,d)),i&&(d=Math.min(Number(i)*_,d));var h=(d=Math.max(d,_))+("border-box"===r?s+u:0),F=Math.abs(d-l)<=1;p((function(e){return g.current<20&&(h>0&&Math.abs((e.outerHeightStyle||0)-h)>1||e.overflow!==F)?(g.current+=1,{overflow:F,outerHeightStyle:h}):e}))}}),[i,o,e.placeholder]);r.useEffect((function(){var e,t=(0,Nk.Z)((function(){g.current=0,E()})),a=(0,Lk.Z)(f.current);return a.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(f.current),function(){t.clear(),a.removeEventListener("resize",t),e&&e.disconnect()}}),[E]),(0,Sp.Z)((function(){E()})),r.useEffect((function(){g.current=0}),[u]);return(0,Na.jsxs)(r.Fragment,{children:[(0,Na.jsx)("textarea",(0,Ba.Z)({value:u,onChange:function(e){g.current=0,_||E(),a&&a(e)},ref:d,rows:o,style:(0,Ba.Z)({height:m.outerHeightStyle,overflow:m.overflow?"hidden":null},s)},l)),(0,Na.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:c,tabIndex:-1,style:(0,Ba.Z)({},Bk,s,{padding:0})})]})})),qk=Mk;function Gk(e){var t=e.props,a=e.states,i=e.muiFormControl;return a.reduce((function(e,a){return e[a]=t[a],i&&"undefined"===typeof t[a]&&(e[a]=i[a]),e}),{})}var Zk=r.createContext();function Uk(){return r.useContext(Zk)}function zk(e){var t=e.styles,a=e.defaultTheme,i=void 0===a?{}:a,n="function"===typeof t?function(e){return t(void 0===(a=e)||null===a||0===Object.keys(a).length?i:e);var a}:t;return(0,Na.jsx)(gh,{styles:n})}var Wk=function(e){return(0,Na.jsx)(zk,(0,Ba.Z)({},e,{defaultTheme:If.Z}))};function Hk(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Vk(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Hk(e.value)&&""!==e.value||t&&Hk(e.defaultValue)&&""!==e.defaultValue)}function Kk(e){return(0,of.Z)("MuiInputBase",e)}var Yk=(0,sf.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$k=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],Jk=function(e,t){var a=e.ownerState;return[t.root,a.formControl&&t.formControl,a.startAdornment&&t.adornedStart,a.endAdornment&&t.adornedEnd,a.error&&t.error,"small"===a.size&&t.sizeSmall,a.multiline&&t.multiline,a.color&&t["color".concat((0,mh.Z)(a.color))],a.fullWidth&&t.fullWidth,a.hiddenLabel&&t.hiddenLabel]},Xk=function(e,t){var a=e.ownerState;return[t.input,"small"===a.size&&t.inputSizeSmall,a.multiline&&t.inputMultiline,"search"===a.type&&t.inputTypeSearch,a.startAdornment&&t.inputAdornedStart,a.endAdornment&&t.inputAdornedEnd,a.hiddenLabel&&t.inputHiddenLabel]},Qk=(0,nf.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Jk})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({},t.typography.body1,(0,Ya.Z)({color:t.palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(Yk.disabled),{color:t.palette.text.disabled,cursor:"default"}),a.multiline&&(0,Ba.Z)({padding:"4px 0 5px"},"small"===a.size&&{paddingTop:1}),a.fullWidth&&{width:"100%"})})),ey=(0,nf.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xk})((function(e){var t,a=e.theme,i=e.ownerState,n="light"===a.palette.mode,r={color:"currentColor",opacity:n?.42:.5,transition:a.transitions.create("opacity",{duration:a.transitions.duration.shorter})},o={opacity:"0 !important"},s={opacity:n?.42:.5};return(0,Ba.Z)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,Ya.Z)(t,"label[data-shrink=false] + .".concat(Yk.formControl," &"),{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s}),(0,Ya.Z)(t,"&.".concat(Yk.disabled),{opacity:1,WebkitTextFillColor:a.palette.text.disabled}),(0,Ya.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===i.size&&{paddingTop:1},i.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===i.type&&{MozAppearance:"textfield"})})),ty=(0,Na.jsx)(Wk,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ay=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiInputBase"}),i=a["aria-describedby"],n=a.autoComplete,o=a.autoFocus,s=a.className,u=a.components,l=void 0===u?{}:u,_=a.componentsProps,f=void 0===_?{}:_,d=a.defaultValue,c=a.disabled,g=a.disableInjectingGlobalStyles,h=a.endAdornment,F=a.fullWidth,m=void 0!==F&&F,p=a.id,E=a.inputComponent,b=void 0===E?"input":E,k=a.inputProps,y=void 0===k?{}:k,v=a.inputRef,D=a.maxRows,w=a.minRows,S=a.multiline,C=void 0!==S&&S,A=a.name,T=a.onBlur,x=a.onChange,I=a.onClick,R=a.onFocus,O=a.onKeyDown,L=a.onKeyUp,N=a.placeholder,P=a.readOnly,j=a.renderSuffix,B=a.rows,M=a.startAdornment,q=a.type,G=void 0===q?"text":q,Z=a.value,U=(0,ti.Z)(a,$k),z=null!=y.value?y.value:Z,W=r.useRef(null!=z).current,H=r.useRef(),V=r.useCallback((function(e){0}),[]),K=(0,Nf.Z)(y.ref,V),Y=(0,Nf.Z)(v,K),$=(0,Nf.Z)(H,Y),J=r.useState(!1),X=(0,Ka.Z)(J,2),Q=X[0],ee=X[1],te=Uk();var ae=Gk({props:a,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=te?te.focused:Q,r.useEffect((function(){!te&&c&&Q&&(ee(!1),T&&T())}),[te,c,Q,T]);var ie=te&&te.onFilled,ne=te&&te.onEmpty,re=r.useCallback((function(e){Vk(e)?ie&&ie():ne&&ne()}),[ie,ne]);(0,$b.Z)((function(){W&&re({value:z})}),[z,re,W]);r.useEffect((function(){re(H.current)}),[]);var oe=b,se=y;C&&"input"===oe&&(se=B?(0,Ba.Z)({type:void 0,minRows:B,maxRows:B},se):(0,Ba.Z)({type:void 0,maxRows:D,minRows:w},se),oe=qk);r.useEffect((function(){te&&te.setAdornedStart(Boolean(M))}),[te,M]);var ue=(0,Ba.Z)({},a,{color:ae.color||"primary",disabled:ae.disabled,endAdornment:h,error:ae.error,focused:ae.focused,formControl:te,fullWidth:m,hiddenLabel:ae.hiddenLabel,multiline:C,size:ae.size,startAdornment:M,type:G}),le=function(e){var t=e.classes,a=e.color,i=e.disabled,n=e.error,r=e.endAdornment,o=e.focused,s=e.formControl,u=e.fullWidth,l=e.hiddenLabel,_=e.multiline,f=e.size,d=e.startAdornment,c=e.type,g={root:["root","color".concat((0,mh.Z)(a)),i&&"disabled",n&&"error",u&&"fullWidth",o&&"focused",s&&"formControl","small"===f&&"sizeSmall",_&&"multiline",d&&"adornedStart",r&&"adornedEnd",l&&"hiddenLabel"],input:["input",i&&"disabled","search"===c&&"inputTypeSearch",_&&"inputMultiline","small"===f&&"inputSizeSmall",l&&"inputHiddenLabel",d&&"inputAdornedStart",r&&"inputAdornedEnd"]};return(0,tf.Z)(g,Kk,t)}(ue),_e=l.Root||Qk,fe=f.root||{},de=l.Input||ey;return se=(0,Ba.Z)({},se,f.input),(0,Na.jsxs)(r.Fragment,{children:[!g&&ty,(0,Na.jsxs)(_e,(0,Ba.Z)({},fe,!gf(_e)&&{ownerState:(0,Ba.Z)({},ue,fe.ownerState)},{ref:t,onClick:function(e){H.current&&e.currentTarget===e.target&&H.current.focus(),I&&I(e)}},U,{className:(0,ef.Z)(le.root,fe.className,s),children:[M,(0,Na.jsx)(Zk.Provider,{value:null,children:(0,Na.jsx)(de,(0,Ba.Z)({ownerState:ue,"aria-invalid":ae.error,"aria-describedby":i,autoComplete:n,autoFocus:o,defaultValue:d,disabled:ae.disabled,id:p,onAnimationStart:function(e){re("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:A,placeholder:N,readOnly:P,required:ae.required,rows:B,value:z,onKeyDown:O,onKeyUp:L,type:G},se,!gf(de)&&{as:oe,ownerState:(0,Ba.Z)({},ue,se.ownerState)},{ref:$,className:(0,ef.Z)(le.input,se.className),onBlur:function(e){T&&T(e),y.onBlur&&y.onBlur(e),te&&te.onBlur?te.onBlur(e):ee(!1)},onChange:function(e){if(!W){var t=e.target||H.current;if(null==t)throw new Error((0,Ok.Z)(1));re({value:t.value})}for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},t.notched&&{maxWidth:"100%",transition:a.transitions.create("max-width",{duration:100,easing:a.transitions.easing.easeOut,delay:50})}))}));function yy(e){return(0,of.Z)("MuiOutlinedInput",e)}var vy=(0,sf.Z)("MuiOutlinedInput",["root","colorSecondary","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","notchedOutline","input","inputSizeSmall","inputMultiline","inputAdornedStart","inputAdornedEnd"]),Dy=["components","fullWidth","inputComponent","label","multiline","notched","type"],wy=(0,nf.ZP)(Qk,{shouldForwardProp:function(e){return(0,nf.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:Jk})((function(e){var t,a=e.theme,i=e.ownerState,n="light"===a.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Ba.Z)((t={position:"relative",borderRadius:a.shape.borderRadius},(0,Ya.Z)(t,"&:hover .".concat(vy.notchedOutline),{borderColor:a.palette.text.primary}),(0,Ya.Z)(t,"@media (hover: none)",(0,Ya.Z)({},"&:hover .".concat(vy.notchedOutline),{borderColor:n})),(0,Ya.Z)(t,"&.".concat(vy.focused," .").concat(vy.notchedOutline),{borderColor:a.palette[i.color].main,borderWidth:2}),(0,Ya.Z)(t,"&.".concat(vy.error," .").concat(vy.notchedOutline),{borderColor:a.palette.error.main}),(0,Ya.Z)(t,"&.".concat(vy.disabled," .").concat(vy.notchedOutline),{borderColor:a.palette.action.disabled}),t),i.startAdornment&&{paddingLeft:14},i.endAdornment&&{paddingRight:14},i.multiline&&(0,Ba.Z)({padding:"16.5px 14px"},"small"===i.size&&{padding:"8.5px 14px"}))})),Sy=(0,nf.ZP)((function(e){var t=e.className,a=e.label,i=e.notched,n=(0,ti.Z)(e,Ey),r=null!=a&&""!==a,o=(0,Ba.Z)({},e,{notched:i,withLabel:r});return(0,Na.jsx)(by,(0,Ba.Z)({"aria-hidden":!0,className:t,ownerState:o},n,{children:(0,Na.jsx)(ky,{ownerState:o,children:r?(0,Na.jsx)("span",{children:a}):my||(my=(0,Na.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){return{borderColor:"light"===e.theme.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}})),Cy=(0,nf.ZP)(ey,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xk})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({padding:"16.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},"small"===a.size&&{padding:"8.5px 14px"},a.multiline&&{padding:0},a.startAdornment&&{paddingLeft:0},a.endAdornment&&{paddingRight:0})})),Ay=r.forwardRef((function(e,t){var a,i=(0,rf.Z)({props:e,name:"MuiOutlinedInput"}),n=i.components,o=void 0===n?{}:n,s=i.fullWidth,u=void 0!==s&&s,l=i.inputComponent,_=void 0===l?"input":l,f=i.label,d=i.multiline,c=void 0!==d&&d,g=i.notched,h=i.type,F=void 0===h?"text":h,m=(0,ti.Z)(i,Dy),p=function(e){var t=e.classes,a=(0,tf.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yy,t);return(0,Ba.Z)({},t,a)}(i),E=Gk({props:i,muiFormControl:Uk(),states:["required"]});return(0,Na.jsx)(iy,(0,Ba.Z)({components:(0,Ba.Z)({Root:wy,Input:Cy},o),renderSuffix:function(e){return(0,Na.jsx)(Sy,{className:p.notchedOutline,label:null!=f&&""!==f&&E.required?a||(a=(0,Na.jsxs)(r.Fragment,{children:[f,"\xa0","*"]})):f,notched:"undefined"!==typeof g?g:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:u,inputComponent:_,multiline:c,ref:t,type:F},m,{classes:(0,Ba.Z)({},p,{notchedOutline:null})}))}));Ay.muiName="Input";var Ty=Ay;function xy(e){return(0,of.Z)("MuiFormLabel",e)}var Iy=(0,sf.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ry=["children","className","color","component","disabled","error","filled","focused","required"],Oy=(0,nf.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return(0,Ba.Z)({},t.root,"secondary"===a.color&&t.colorSecondary,a.filled&&t.filled)}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({color:a.palette.text.secondary},a.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,Ya.Z)(t,"&.".concat(Iy.focused),{color:a.palette[i.color].main}),(0,Ya.Z)(t,"&.".concat(Iy.disabled),{color:a.palette.text.disabled}),(0,Ya.Z)(t,"&.".concat(Iy.error),{color:a.palette.error.main}),t))})),Ly=(0,nf.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,Ya.Z)({},"&.".concat(Iy.error),{color:t.palette.error.main})})),Ny=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiFormLabel"}),i=a.children,n=a.className,r=a.component,o=void 0===r?"label":r,s=(0,ti.Z)(a,Ry),u=Gk({props:a,muiFormControl:Uk(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Ba.Z)({},a,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),_=function(e){var t=e.classes,a=e.color,i=e.focused,n=e.disabled,r=e.error,o=e.filled,s=e.required,u={root:["root","color".concat((0,mh.Z)(a)),n&&"disabled",r&&"error",o&&"filled",i&&"focused",s&&"required"],asterisk:["asterisk",r&&"error"]};return(0,tf.Z)(u,xy,t)}(l);return(0,Na.jsxs)(Oy,(0,Ba.Z)({as:o,ownerState:l,className:(0,ef.Z)(_.root,n),ref:t},s,{children:[i,u.required&&(0,Na.jsxs)(Ly,{ownerState:l,"aria-hidden":!0,className:_.asterisk,children:["\u2009","*"]})]}))})),Py=Ny;function jy(e){return(0,of.Z)("MuiInputLabel",e)}(0,sf.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var By=["disableAnimation","margin","shrink","variant"],My=(0,nf.ZP)(Py,{shouldForwardProp:function(e){return(0,nf.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[(0,Ya.Z)({},"& .".concat(Iy.asterisk),t.asterisk),t.root,a.formControl&&t.formControl,"small"===a.size&&t.sizeSmall,a.shrink&&t.shrink,!a.disableAnimation&&t.animated,t[a.variant]]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},a.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===a.size&&{transform:"translate(0, 17px) scale(1)"},a.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!a.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===a.variant&&(0,Ba.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===a.size&&{transform:"translate(12px, 13px) scale(1)"},a.shrink&&(0,Ba.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===a.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===a.variant&&(0,Ba.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===a.size&&{transform:"translate(14px, 9px) scale(1)"},a.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),qy=r.forwardRef((function(e,t){var a=(0,rf.Z)({name:"MuiInputLabel",props:e}),i=a.disableAnimation,n=void 0!==i&&i,r=a.shrink,o=(0,ti.Z)(a,By),s=Uk(),u=r;"undefined"===typeof u&&s&&(u=s.filled||s.focused||s.adornedStart);var l=Gk({props:a,muiFormControl:s,states:["size","variant","required"]}),_=(0,Ba.Z)({},a,{disableAnimation:n,formControl:s,shrink:u,size:l.size,variant:l.variant,required:l.required}),f=function(e){var t=e.classes,a=e.formControl,i=e.size,n=e.shrink,r={root:["root",a&&"formControl",!e.disableAnimation&&"animated",n&&"shrink","small"===i&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},o=(0,tf.Z)(r,jy,t);return(0,Ba.Z)({},t,o)}(_);return(0,Na.jsx)(My,(0,Ba.Z)({"data-shrink":u,ownerState:_,ref:t},o,{classes:f}))})),Gy=qy;function Zy(e){return(0,of.Z)("MuiFormControl",e)}(0,sf.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var Uy=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zy=(0,nf.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return(0,Ba.Z)({},t.root,t["margin".concat((0,mh.Z)(a.margin))],a.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,Ba.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),Wy=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiFormControl"}),i=a.children,n=a.className,o=a.color,s=void 0===o?"primary":o,u=a.component,l=void 0===u?"div":u,_=a.disabled,f=void 0!==_&&_,d=a.error,c=void 0!==d&&d,g=a.focused,h=a.fullWidth,F=void 0!==h&&h,m=a.hiddenLabel,p=void 0!==m&&m,E=a.margin,b=void 0===E?"none":E,k=a.required,y=void 0!==k&&k,v=a.size,D=void 0===v?"medium":v,w=a.variant,S=void 0===w?"outlined":w,C=(0,ti.Z)(a,Uy),A=(0,Ba.Z)({},a,{color:s,component:l,disabled:f,error:c,fullWidth:F,hiddenLabel:p,margin:b,required:y,size:D,variant:S}),T=function(e){var t=e.classes,a=e.margin,i=e.fullWidth,n={root:["root","none"!==a&&"margin".concat((0,mh.Z)(a)),i&&"fullWidth"]};return(0,tf.Z)(n,Zy,t)}(A),x=r.useState((function(){var e=!1;return i&&r.Children.forEach(i,(function(t){if((0,Yb.Z)(t,["Input","Select"])){var a=(0,Yb.Z)(t,["Select"])?t.props.input:t;a&&a.props.startAdornment&&(e=!0)}})),e})),I=(0,Ka.Z)(x,2),R=I[0],O=I[1],L=r.useState((function(){var e=!1;return i&&r.Children.forEach(i,(function(t){(0,Yb.Z)(t,["Input","Select"])&&Vk(t.props,!0)&&(e=!0)})),e})),N=(0,Ka.Z)(L,2),P=N[0],j=N[1],B=r.useState(!1),M=(0,Ka.Z)(B,2),q=M[0],G=M[1];f&&q&&G(!1);var Z=void 0===g||f?q:g,U=r.useCallback((function(){j(!0)}),[]),z={adornedStart:R,setAdornedStart:O,color:s,disabled:f,error:c,filled:P,focused:Z,fullWidth:F,hiddenLabel:p,size:D,onBlur:function(){G(!1)},onEmpty:r.useCallback((function(){j(!1)}),[]),onFilled:U,onFocus:function(){G(!0)},registerEffect:undefined,required:y,variant:S};return(0,Na.jsx)(Zk.Provider,{value:z,children:(0,Na.jsx)(zy,(0,Ba.Z)({as:l,ownerState:A,className:(0,ef.Z)(T.root,n),ref:t},C,{children:i}))})})),Hy=Wy;function Vy(e){return(0,of.Z)("MuiFormHelperText",e)}var Ky,Yy=(0,sf.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),$y=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Jy=(0,nf.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.size&&t["size".concat((0,mh.Z)(a.size))],a.contained&&t.contained,a.filled&&t.filled]}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({color:a.palette.text.secondary},a.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,Ya.Z)(t,"&.".concat(Yy.disabled),{color:a.palette.text.disabled}),(0,Ya.Z)(t,"&.".concat(Yy.error),{color:a.palette.error.main}),t),"small"===i.size&&{marginTop:4},i.contained&&{marginLeft:14,marginRight:14})})),Xy=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiFormHelperText"}),i=a.children,n=a.className,r=a.component,o=void 0===r?"p":r,s=(0,ti.Z)(a,$y),u=Gk({props:a,muiFormControl:Uk(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Ba.Z)({},a,{component:o,contained:"filled"===u.variant||"outlined"===u.variant,variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),_=function(e){var t=e.classes,a=e.contained,i=e.size,n=e.disabled,r=e.error,o=e.filled,s=e.focused,u=e.required,l={root:["root",n&&"disabled",r&&"error",i&&"size".concat((0,mh.Z)(i)),a&&"contained",s&&"focused",o&&"filled",u&&"required"]};return(0,tf.Z)(l,Vy,t)}(l);return(0,Na.jsx)(Jy,(0,Ba.Z)({as:o,ownerState:l,className:(0,ef.Z)(_.root,n),ref:t},s,{children:" "===i?Ky||(Ky=(0,Na.jsx)("span",{className:"notranslate",children:"\u200b"})):i}))})),Qy=Xy,ev=(a(7441),a(8301));function tv(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var av=tv,iv=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nv(e,t,a){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:a?null:e.firstChild}function rv(e,t,a){return e===t?a?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:a?null:e.lastChild}function ov(e,t){if(void 0===t)return!0;var a=e.innerText;return void 0===a&&(a=e.textContent),0!==(a=a.trim().toLowerCase()).length&&(t.repeating?a[0]===t.keys[0]:0===a.indexOf(t.keys.join("")))}function sv(e,t,a,i,n,r){for(var o=!1,s=n(e,t,!!t&&a);s;){if(s===e.firstChild){if(o)return!1;o=!0}var u=!i&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&ov(s,r)&&!u)return s.focus(),!0;s=n(e,s,a)}return!1}var uv=r.forwardRef((function(e,t){var a=e.actions,i=e.autoFocus,n=void 0!==i&&i,o=e.autoFocusItem,s=void 0!==o&&o,u=e.children,l=e.className,_=e.disabledItemsFocusable,f=void 0!==_&&_,d=e.disableListWrap,c=void 0!==d&&d,g=e.onKeyDown,h=e.variant,F=void 0===h?"selectedMenu":h,m=(0,ti.Z)(e,iv),p=r.useRef(null),E=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,$b.Z)((function(){n&&p.current.focus()}),[n]),r.useImperativeHandle(a,(function(){return{adjustStyleForScrollbar:function(e,t){var a=!p.current.style.width;if(e.clientHeight0&&(o-n.lastTime>500?(n.keys=[],n.repeating=!0,n.previousKeyMatched=!0):n.repeating&&r!==n.keys[0]&&(n.repeating=!1)),n.lastTime=o,n.keys.push(r);var s=i&&!n.repeating&&ov(i,n);n.previousKeyMatched&&(s||sv(t,i,!1,f,nv,n))?e.preventDefault():n.previousKeyMatched=!1}g&&g(e)},tabIndex:n?0:-1},m,{children:y}))})),lv=uv,_v=a(3199),fv=a(7602),dv=a(8956),cv=a(8949);function gv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hv(e){return parseInt((0,Lk.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Fv(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4?arguments[4]:void 0,r=[t,a].concat((0,Va.Z)(i)),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){-1===r.indexOf(e)&&-1===o.indexOf(e.tagName)&&gv(e,n)}))}function mv(e,t){var a=-1;return e.some((function(e,i){return!!t(e)&&(a=i,!0)})),a}function pv(e,t){var a=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,Cp.Z)(e);return t.body===e?(0,Lk.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var n=tv((0,Cp.Z)(i));a.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight="".concat(hv(i)+n,"px");var r=(0,Cp.Z)(i).querySelectorAll(".mui-fixed");[].forEach.call(r,(function(e){a.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(hv(e)+n,"px")}))}var o=i.parentElement,s=(0,Lk.Z)(i),u="HTML"===(null==o?void 0:o.nodeName)&&"scroll"===s.getComputedStyle(o).overflowY?o:i;a.push({value:u.style.overflow,property:"overflow",el:u},{value:u.style.overflowX,property:"overflow-x",el:u},{value:u.style.overflowY,property:"overflow-y",el:u}),u.style.overflow="hidden"}return function(){a.forEach((function(e){var t=e.value,a=e.el,i=e.property;t?a.style.setProperty(i,t):a.style.removeProperty(i)}))}}var Ev=function(){function e(){pi(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return mi(e,[{key:"add",value:function(e,t){var a=this.modals.indexOf(e);if(-1!==a)return a;a=this.modals.length,this.modals.push(e),e.modalRef&&gv(e.modalRef,!1);var i=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Fv(t,e.mount,e.modalRef,i,!0);var n=mv(this.containers,(function(e){return e.container===t}));return-1!==n?(this.containers[n].modals.push(e),a):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),a)}},{key:"mount",value:function(e,t){var a=mv(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[a];i.restore||(i.restore=pv(i,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var a=mv(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[a];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(t,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&gv(e.modalRef,!0),Fv(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(a,1);else{var n=i.modals[i.modals.length-1];n.modalRef&&gv(n.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),bv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kv(e){var t=[],a=[];return Array.from(e.querySelectorAll(bv)).forEach((function(e,i){var n=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==n&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},a=t('[name="'.concat(e.name,'"]:checked'));return a||(a=t('[name="'.concat(e.name,'"]'))),a!==e}(e))}(e)&&(0===n?t.push(e):a.push({documentOrder:i,tabIndex:n,node:e}))})),a.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function yv(){return!0}var vv=function(e){var t=e.children,a=e.disableAutoFocus,i=void 0!==a&&a,n=e.disableEnforceFocus,o=void 0!==n&&n,s=e.disableRestoreFocus,u=void 0!==s&&s,l=e.getTabbable,_=void 0===l?kv:l,f=e.isEnabled,d=void 0===f?yv:f,c=e.open,g=r.useRef(),h=r.useRef(null),F=r.useRef(null),m=r.useRef(null),p=r.useRef(null),E=r.useRef(!1),b=r.useRef(null),k=(0,wp.Z)(t.ref,b),y=r.useRef(null);r.useEffect((function(){c&&b.current&&(E.current=!i)}),[i,c]),r.useEffect((function(){if(c&&b.current){var e=(0,Cp.Z)(b.current);return b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),E.current&&b.current.focus()),function(){u||(m.current&&m.current.focus&&(g.current=!0,m.current.focus()),m.current=null)}}}),[c]),r.useEffect((function(){if(c&&b.current){var e=(0,Cp.Z)(b.current),t=function(t){var a=b.current;if(null!==a)if(e.hasFocus()&&!o&&d()&&!g.current){if(!a.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!E.current)return;var i=[];if(e.activeElement!==h.current&&e.activeElement!==F.current||(i=_(b.current)),i.length>0){var n,r,s=Boolean((null==(n=y.current)?void 0:n.shiftKey)&&"Tab"===(null==(r=y.current)?void 0:r.key)),u=i[0],l=i[i.length-1];s?l.focus():u.focus()}else a.focus()}}else g.current=!1},a=function(t){y.current=t,!o&&d()&&"Tab"===t.key&&e.activeElement===b.current&&t.shiftKey&&(g.current=!0,F.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",a,!0);var i=setInterval((function(){"BODY"===e.activeElement.tagName&&t()}),50);return function(){clearInterval(i),e.removeEventListener("focusin",t),e.removeEventListener("keydown",a,!0)}}}),[i,o,u,d,c,_]);var v=function(e){null===m.current&&(m.current=e.relatedTarget),E.current=!0};return(0,Na.jsxs)(r.Fragment,{children:[(0,Na.jsx)("div",{tabIndex:0,onFocus:v,ref:h,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:k,onFocus:function(e){null===m.current&&(m.current=e.relatedTarget),E.current=!0,p.current=e.target;var a=t.props.onFocus;a&&a(e)}}),(0,Na.jsx)("div",{tabIndex:0,onFocus:v,ref:F,"data-test":"sentinelEnd"})]})};function Dv(e){return(0,of.Z)("MuiModal",e)}(0,sf.Z)("MuiModal",["root","hidden"]);var wv=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"];var Sv=new Ev,Cv=r.forwardRef((function(e,t){var a=e.BackdropComponent,i=e.BackdropProps,n=e.children,o=e.classes,s=e.className,u=e.closeAfterTransition,l=void 0!==u&&u,_=e.component,f=void 0===_?"div":_,d=e.components,c=void 0===d?{}:d,g=e.componentsProps,h=void 0===g?{}:g,F=e.container,m=e.disableAutoFocus,p=void 0!==m&&m,E=e.disableEnforceFocus,b=void 0!==E&&E,k=e.disableEscapeKeyDown,y=void 0!==k&&k,v=e.disablePortal,D=void 0!==v&&v,w=e.disableRestoreFocus,S=void 0!==w&&w,C=e.disableScrollLock,A=void 0!==C&&C,T=e.hideBackdrop,x=void 0!==T&&T,I=e.keepMounted,R=void 0!==I&&I,O=e.manager,L=void 0===O?Sv:O,N=e.onBackdropClick,P=e.onClose,j=e.onKeyDown,B=e.open,M=e.theme,q=e.onTransitionEnter,G=e.onTransitionExited,Z=(0,ti.Z)(e,wv),U=r.useState(!0),z=(0,Ka.Z)(U,2),W=z[0],H=z[1],V=r.useRef({}),K=r.useRef(null),Y=r.useRef(null),$=(0,wp.Z)(Y,t),J=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),X=function(){return V.current.modalRef=Y.current,V.current.mountNode=K.current,V.current},Q=function(){L.mount(X(),{disableScrollLock:A}),Y.current.scrollTop=0},ee=(0,dv.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(F)||(0,Cp.Z)(K.current).body;L.add(X(),e),Y.current&&Q()})),te=r.useCallback((function(){return L.isTopModal(X())}),[L]),ae=(0,dv.Z)((function(e){K.current=e,e&&(B&&te()?Q():gv(Y.current,!0))})),ie=r.useCallback((function(){L.remove(X())}),[L]);r.useEffect((function(){return function(){ie()}}),[ie]),r.useEffect((function(){B?ee():J&&l||ie()}),[B,ie,J,l,ee]);var ne=(0,Ba.Z)({},e,{classes:o,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:b,disableEscapeKeyDown:y,disablePortal:D,disableRestoreFocus:S,disableScrollLock:A,exited:W,hideBackdrop:x,keepMounted:R}),re=function(e){var t=e.open,a=e.exited,i=e.classes,n={root:["root",!t&&a&&"hidden"]};return(0,tf.Z)(n,Dv,i)}(ne);if(!R&&!B&&(!J||W))return null;var oe={};void 0===n.props.tabIndex&&(oe.tabIndex="-1"),J&&(oe.onEnter=(0,cv.Z)((function(){H(!1),q&&q()}),n.props.onEnter),oe.onExited=(0,cv.Z)((function(){H(!0),G&&G(),l&&ie()}),n.props.onExited));var se=c.Root||f,ue=h.root||{};return(0,Na.jsx)(GE,{ref:ae,container:F,disablePortal:D,children:(0,Na.jsxs)(se,(0,Ba.Z)({role:"presentation"},ue,!gf(se)&&{as:f,ownerState:(0,Ba.Z)({},ne,ue.ownerState),theme:M},Z,{ref:$,onKeyDown:function(e){j&&j(e),"Escape"===e.key&&te()&&(y||(e.stopPropagation(),P&&P(e,"escapeKeyDown")))},className:(0,ef.Z)(re.root,ue.className,s),children:[!x&&a?(0,Na.jsx)(a,(0,Ba.Z)({open:B,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),P&&P(e,"backdropClick"))}},i)):null,(0,Na.jsx)(vv,{disableEnforceFocus:b,disableAutoFocus:p,disableRestoreFocus:S,isEnabled:te,open:B,children:r.cloneElement(n,oe)})]}))})})),Av=Cv,Tv=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],xv=(0,nf.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,!a.open&&a.exited&&t.hidden]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},!a.open&&a.exited&&{visibility:"hidden"})})),Iv=(0,nf.ZP)(zf,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),Rv=r.forwardRef((function(e,t){var a,i=(0,rf.Z)({name:"MuiModal",props:e}),n=i.BackdropComponent,o=void 0===n?Iv:n,s=i.closeAfterTransition,u=void 0!==s&&s,l=i.children,_=i.components,f=void 0===_?{}:_,d=i.componentsProps,c=void 0===d?{}:d,g=i.disableAutoFocus,h=void 0!==g&&g,F=i.disableEnforceFocus,m=void 0!==F&&F,p=i.disableEscapeKeyDown,E=void 0!==p&&p,b=i.disablePortal,k=void 0!==b&&b,y=i.disableRestoreFocus,v=void 0!==y&&y,D=i.disableScrollLock,w=void 0!==D&&D,S=i.hideBackdrop,C=void 0!==S&&S,A=i.keepMounted,T=void 0!==A&&A,x=(0,ti.Z)(i,Tv),I=r.useState(!0),R=(0,Ka.Z)(I,2),O=R[0],L=R[1],N={closeAfterTransition:u,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:E,disablePortal:k,disableRestoreFocus:v,disableScrollLock:w,hideBackdrop:C,keepMounted:T},P=function(e){return e.classes}((0,Ba.Z)({},i,N,{exited:O}));return(0,Na.jsx)(Av,(0,Ba.Z)({components:(0,Ba.Z)({Root:xv},f),componentsProps:{root:(0,Ba.Z)({},c.root,(!f.Root||!gf(f.Root))&&{ownerState:(0,Ba.Z)({},null==(a=c.root)?void 0:a.ownerState)})},BackdropComponent:o,onTransitionEnter:function(){return L(!1)},onTransitionExited:function(){return L(!0)},ref:t},x,{classes:P},N,{children:l}))})),Ov=Rv;function Lv(e){return(0,of.Z)("MuiPopover",e)}(0,sf.Z)("MuiPopover",["root","paper"]);var Nv=["onEntering"],Pv=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function jv(e,t){var a=0;return"number"===typeof t?a=t:"center"===t?a=e.height/2:"bottom"===t&&(a=e.height),a}function Bv(e,t){var a=0;return"number"===typeof t?a=t:"center"===t?a=e.width/2:"right"===t&&(a=e.width),a}function Mv(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function qv(e){return"function"===typeof e?e():e}var Gv=(0,nf.ZP)(Ov,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Zv=(0,nf.ZP)(cf,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Uv=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiPopover"}),i=a.action,n=a.anchorEl,o=a.anchorOrigin,s=void 0===o?{vertical:"top",horizontal:"left"}:o,u=a.anchorPosition,l=a.anchorReference,_=void 0===l?"anchorEl":l,f=a.children,d=a.className,c=a.container,g=a.elevation,h=void 0===g?8:g,F=a.marginThreshold,m=void 0===F?16:F,p=a.open,E=a.PaperProps,b=void 0===E?{}:E,k=a.transformOrigin,y=void 0===k?{vertical:"top",horizontal:"left"}:k,v=a.TransitionComponent,D=void 0===v?Dp:v,w=a.transitionDuration,S=void 0===w?"auto":w,C=a.TransitionProps,A=(C=void 0===C?{}:C).onEntering,T=(0,ti.Z)(a.TransitionProps,Nv),x=(0,ti.Z)(a,Pv),I=r.useRef(),R=(0,Nf.Z)(I,b.ref),O=(0,Ba.Z)({},a,{anchorOrigin:s,anchorReference:_,elevation:h,marginThreshold:m,PaperProps:b,transformOrigin:y,TransitionComponent:D,transitionDuration:S,TransitionProps:T}),L=function(e){var t=e.classes;return(0,tf.Z)({root:["root"],paper:["paper"]},Lv,t)}(O),N=r.useCallback((function(){if("anchorPosition"===_)return u;var e=qv(n),t=(e&&1===e.nodeType?e:(0,ev.Z)(I.current).body).getBoundingClientRect();return{top:t.top+jv(t,s.vertical),left:t.left+Bv(t,s.horizontal)}}),[n,s.horizontal,s.vertical,u,_]),P=r.useCallback((function(e){return{vertical:jv(e,y.vertical),horizontal:Bv(e,y.horizontal)}}),[y.horizontal,y.vertical]),j=r.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},a=P(t);if("none"===_)return{top:null,left:null,transformOrigin:Mv(a)};var i=N(),r=i.top-a.vertical,o=i.left-a.horizontal,s=r+t.height,u=o+t.width,l=(0,fv.Z)(qv(n)),f=l.innerHeight-m,d=l.innerWidth-m;if(rf){var g=s-f;r-=g,a.vertical+=g}if(od){var F=u-d;o-=F,a.horizontal+=F}return{top:"".concat(Math.round(r),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:Mv(a)}}),[n,_,N,P,m]),B=r.useCallback((function(){var e=I.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]);r.useEffect((function(){p&&B()})),r.useImperativeHandle(i,(function(){return p?{updatePosition:function(){B()}}:null}),[p,B]),r.useEffect((function(){if(p){var e=(0,_v.Z)((function(){B()})),t=(0,fv.Z)(n);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[n,p,B]);var M=S;"auto"!==S||D.muiSupportAuto||(M=void 0);var q=c||(n?(0,ev.Z)(qv(n)).body:void 0);return(0,Na.jsx)(Gv,(0,Ba.Z)({BackdropProps:{invisible:!0},className:(0,ef.Z)(L.root,d),container:q,open:p,ref:t,ownerState:O},x,{children:(0,Na.jsx)(D,(0,Ba.Z)({appear:!0,in:p,onEntering:function(e,t){A&&A(e,t),B()},timeout:M},T,{children:(0,Na.jsx)(Zv,(0,Ba.Z)({elevation:h},b,{ref:R,className:(0,ef.Z)(L.paper,b.className),children:f}))}))}))})),zv=Uv;function Wv(e){return(0,of.Z)("MuiMenu",e)}(0,sf.Z)("MuiMenu",["root","paper","list"]);var Hv=["onEntering"],Vv=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Kv={vertical:"top",horizontal:"right"},Yv={vertical:"top",horizontal:"left"},$v=(0,nf.ZP)(zv,{shouldForwardProp:function(e){return(0,nf.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Jv=(0,nf.ZP)(cf,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xv=(0,nf.ZP)(lv,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),Qv=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiMenu"}),i=a.autoFocus,n=void 0===i||i,o=a.children,s=a.disableAutoFocusItem,u=void 0!==s&&s,l=a.MenuListProps,_=void 0===l?{}:l,f=a.onClose,d=a.open,c=a.PaperProps,g=void 0===c?{}:c,h=a.PopoverClasses,F=a.transitionDuration,m=void 0===F?"auto":F,p=a.TransitionProps,E=(p=void 0===p?{}:p).onEntering,b=a.variant,k=void 0===b?"selectedMenu":b,y=(0,ti.Z)(a.TransitionProps,Hv),v=(0,ti.Z)(a,Vv),D=Rf(),w="rtl"===D.direction,S=(0,Ba.Z)({},a,{autoFocus:n,disableAutoFocusItem:u,MenuListProps:_,onEntering:E,PaperProps:g,transitionDuration:m,TransitionProps:y,variant:k}),C=function(e){var t=e.classes;return(0,tf.Z)({root:["root"],paper:["paper"],list:["list"]},Wv,t)}(S),A=n&&!u&&d,T=r.useRef(null),x=-1;return r.Children.map(o,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===k&&e.props.selected||-1===x)&&(x=t))})),(0,Na.jsx)($v,(0,Ba.Z)({classes:h,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Kv:Yv,PaperProps:(0,Ba.Z)({component:Jv},g,{classes:(0,Ba.Z)({},g.classes,{root:C.paper})}),className:C.root,open:d,ref:t,transitionDuration:m,TransitionProps:(0,Ba.Z)({onEntering:function(e,t){T.current&&T.current.adjustStyleForScrollbar(e,D),E&&E(e,t)}},y),ownerState:S},v,{children:(0,Na.jsx)(Xv,(0,Ba.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:T,autoFocus:n&&(-1===x||u),autoFocusItem:A,variant:k},_,{className:(0,ef.Z)(C.list,_.className),children:o}))}))})),eD=Qv;function tD(e){return(0,of.Z)("MuiNativeSelect",e)}var aD=(0,sf.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),iD=["className","disabled","IconComponent","inputRef","variant"],nD=function(e){var t,a=e.ownerState,i=e.theme;return(0,Ba.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===i.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"}},(0,Ya.Z)(t,"&.".concat(aD.disabled),{cursor:"default"}),(0,Ya.Z)(t,"&[multiple]",{height:"auto"}),(0,Ya.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:i.palette.background.paper}),(0,Ya.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===a.variant&&{"&&&":{paddingRight:32}},"outlined"===a.variant&&{borderRadius:i.shape.borderRadius,"&:focus":{borderRadius:i.shape.borderRadius},"&&&":{paddingRight:32}})},rD=(0,nf.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:nf.FO,overridesResolver:function(e,t){var a=e.ownerState;return[t.select,t[a.variant],(0,Ya.Z)({},"&.".concat(aD.multiple),t.multiple)]}})(nD),oD=function(e){var t=e.ownerState,a=e.theme;return(0,Ba.Z)((0,Ya.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:a.palette.action.active},"&.".concat(aD.disabled),{color:a.palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},sD=(0,nf.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var a=e.ownerState;return[t.icon,a.variant&&t["icon".concat((0,mh.Z)(a.variant))],a.open&&t.iconOpen]}})(oD),uD=r.forwardRef((function(e,t){var a=e.className,i=e.disabled,n=e.IconComponent,o=e.inputRef,s=e.variant,u=void 0===s?"standard":s,l=(0,ti.Z)(e,iD),_=(0,Ba.Z)({},e,{disabled:i,variant:u}),f=function(e){var t=e.classes,a=e.variant,i=e.disabled,n=e.multiple,r=e.open,o={select:["select",a,i&&"disabled",n&&"multiple"],icon:["icon","icon".concat((0,mh.Z)(a)),r&&"iconOpen",i&&"disabled"]};return(0,tf.Z)(o,tD,t)}(_);return(0,Na.jsxs)(r.Fragment,{children:[(0,Na.jsx)(rD,(0,Ba.Z)({ownerState:_,className:(0,ef.Z)(f.select,a),disabled:i,ref:o||t},l)),e.multiple?null:(0,Na.jsx)(sD,{as:n,ownerState:_,className:f.icon})]})})),lD=uD;function _D(e){return(0,of.Z)("MuiSelect",e)}var fD,dD=(0,sf.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),cD=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],gD=(0,nf.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var a=e.ownerState;return[(0,Ya.Z)({},"&.".concat(dD.select),t.select),(0,Ya.Z)({},"&.".concat(dD.select),t[a.variant]),(0,Ya.Z)({},"&.".concat(dD.multiple),t.multiple)]}})(nD,(0,Ya.Z)({},"&.".concat(dD.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),hD=(0,nf.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var a=e.ownerState;return[t.icon,a.variant&&t["icon".concat((0,mh.Z)(a.variant))],a.open&&t.iconOpen]}})(oD),FD=(0,nf.ZP)("input",{shouldForwardProp:function(e){return(0,nf.Dz)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function mD(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function pD(e){return null==e||"string"===typeof e&&!e.trim()}var ED,bD,kD=r.forwardRef((function(e,t){var a=e["aria-describedby"],i=e["aria-label"],n=e.autoFocus,o=e.autoWidth,s=e.children,u=e.className,l=e.defaultOpen,_=e.defaultValue,f=e.disabled,d=e.displayEmpty,c=e.IconComponent,g=e.inputRef,h=e.labelId,F=e.MenuProps,m=void 0===F?{}:F,p=e.multiple,E=e.name,b=e.onBlur,k=e.onChange,y=e.onClose,v=e.onFocus,D=e.onOpen,w=e.open,S=e.readOnly,C=e.renderValue,A=e.SelectDisplayProps,T=void 0===A?{}:A,x=e.tabIndex,I=e.value,R=e.variant,O=void 0===R?"standard":R,L=(0,ti.Z)(e,cD),N=(0,QE.Z)({controlled:I,default:_,name:"Select"}),P=(0,Ka.Z)(N,2),j=P[0],B=P[1],M=(0,QE.Z)({controlled:w,default:l,name:"Select"}),q=(0,Ka.Z)(M,2),G=q[0],Z=q[1],U=r.useRef(null),z=r.useRef(null),W=r.useState(null),H=(0,Ka.Z)(W,2),V=H[0],K=H[1],Y=r.useRef(null!=w).current,$=r.useState(),J=(0,Ka.Z)($,2),X=J[0],Q=J[1],ee=(0,Nf.Z)(t,g),te=r.useCallback((function(e){z.current=e,e&&K(e)}),[]);r.useImperativeHandle(ee,(function(){return{focus:function(){z.current.focus()},node:U.current,value:j}}),[j]),r.useEffect((function(){l&&G&&V&&!Y&&(Q(o?null:V.clientWidth),z.current.focus())}),[V,o]),r.useEffect((function(){n&&z.current.focus()}),[n]),r.useEffect((function(){var e=(0,ev.Z)(z.current).getElementById(h);if(e){var t=function(){getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}),[h]);var ae,ie,ne=function(e,t){e?D&&D(t):y&&y(t),Y||(Q(o?null:V.clientWidth),Z(e))},re=r.Children.toArray(s),oe=function(e){return function(t){var a;if(t.currentTarget.hasAttribute("tabindex")){if(p){a=Array.isArray(j)?j.slice():[];var i=j.indexOf(e.props.value);-1===i?a.push(e.props.value):a.splice(i,1)}else a=e.props.value;if(e.props.onClick&&e.props.onClick(t),j!==a&&(B(a),k)){var n=t.nativeEvent||t,r=new n.constructor(n.type,n);Object.defineProperty(r,"target",{writable:!0,value:{value:a,name:E}}),k(r,e)}p||ne(!1,t)}}},se=null!==V&&G;delete L["aria-invalid"];var ue=[],le=!1;(Vk({value:j})||d)&&(C?ae=C(j):le=!0);var _e=re.map((function(e){if(!r.isValidElement(e))return null;var t;if(p){if(!Array.isArray(j))throw new Error((0,Ok.Z)(2));t=j.some((function(t){return mD(t,e.props.value)})),t&&le&&ue.push(e.props.children)}else(t=mD(j,e.props.value))&&le&&(ie=e.props.children);return t&&!0,r.cloneElement(e,{"aria-selected":t?"true":"false",onClick:oe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));le&&(ae=p?0===ue.length?null:ue.reduce((function(e,t,a){return e.push(t),a0&&void 0!==arguments[0]?arguments[0]:null,t=de(),a=t.search;return(0,r.useMemo)((function(){var t=GD().parse(a,{ignoreQueryPrefix:!0});return e?(0,Ha.Z)((0,Ha.Z)({},e),t):t}),[a,e])}var UD=eh((function(e){return{root:{width:"100%",minHeight:"100%",display:"flex",flexDirection:"column"}}})),zD=function(){var e=UD(),t=ZD().number,a=(0,r.useState)(t||""),i=(0,Ka.Z)(a,2),n=i[0],o=i[1];return(0,Na.jsx)("div",{className:e.root,children:(0,Na.jsxs)(Ak.Provider,{value:{inputVal:n,add:function(e){return o(n+e)},removeOne:function(){return o(n.slice(0,-1))},clear:function(){return o("")},set:function(e){return o(e)}},children:[(0,Na.jsx)(MD,{}),(0,Na.jsx)(Ik,{})]})})};function WD(e){return(0,of.Z)("MuiBottomNavigation",e)}(0,sf.Z)("MuiBottomNavigation",["root"]);var HD=["children","className","component","onChange","showLabels","value"],VD=(0,nf.ZP)("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{display:"flex",justifyContent:"center",height:56,backgroundColor:e.theme.palette.background.paper}})),KD=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiBottomNavigation"}),i=a.children,n=a.className,o=a.component,s=void 0===o?"div":o,u=a.onChange,l=a.showLabels,_=void 0!==l&&l,f=a.value,d=(0,ti.Z)(a,HD),c=(0,Ba.Z)({},a,{component:s,showLabels:_}),g=function(e){var t=e.classes;return(0,tf.Z)({root:["root"]},WD,t)}(c);return(0,Na.jsx)(VD,(0,Ba.Z)({as:s,className:(0,ef.Z)(g.root,n),ref:t,ownerState:c},d,{children:r.Children.map(i,(function(e,t){if(!r.isValidElement(e))return null;var a=void 0===e.props.value?t:e.props.value;return r.cloneElement(e,{selected:a===f,showLabel:void 0!==e.props.showLabel?e.props.showLabel:_,value:a,onChange:u})}))}))})),YD=KD;function $D(e){return(0,of.Z)("MuiBottomNavigationAction",e)}var JD=(0,sf.Z)("MuiBottomNavigationAction",["root","iconOnly","selected","label"]),XD=["className","icon","label","onChange","onClick","selected","showLabel","value"],QD=(0,nf.ZP)(nm,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,!a.showLabel&&!a.selected&&t.iconOnly]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({transition:t.transitions.create(["color","padding-top"],{duration:t.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:t.palette.text.secondary,flexDirection:"column",flex:"1"},!a.showLabel&&!a.selected&&{paddingTop:16},(0,Ya.Z)({},"&.".concat(JD.selected),{paddingTop:6,color:t.palette.primary.main}))})),ew=(0,nf.ZP)("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:function(e,t){return t.label}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!a.showLabel&&!a.selected&&{opacity:0,transitionDelay:"0s"},(0,Ya.Z)({},"&.".concat(JD.selected),{fontSize:t.typography.pxToRem(14)}))})),tw=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiBottomNavigationAction"}),i=a.className,n=a.icon,r=a.label,o=a.onChange,s=a.onClick,u=a.value,l=(0,ti.Z)(a,XD),_=a,f=function(e){var t=e.classes,a=e.showLabel,i=e.selected,n={root:["root",!a&&!i&&"iconOnly",i&&"selected"],label:["label",!a&&!i&&"iconOnly",i&&"selected"]};return(0,tf.Z)(n,$D,t)}(_);return(0,Na.jsxs)(QD,(0,Ba.Z)({ref:t,className:(0,ef.Z)(f.root,i),focusRipple:!0,onClick:function(e){o&&o(e,u),s&&s(e)},ownerState:_},l,{children:[n,(0,Na.jsx)(ew,{className:f.label,ownerState:_,children:r})]}))})),aw=tw,iw=a(501),nw=a(1981),rw=eh((function(e){return{root:{width:"100%",backgroundColor:e.palette.background.paper},icon:{color:e.palette.primary.main}}})),ow=function(){var e=rw(),t=de().pathname,a=(0,r.useState)(t),i=(0,Ka.Z)(a,2),n=i[0],o=i[1],s=uF(),u=(0,Ka.Z)(s,1)[0];return(0,Na.jsxs)(YD,{value:n,onChange:function(e,t){o(t)},showLabels:!0,className:e.root,children:[(0,Na.jsx)(aw,{label:u("DIALER.NAVBAR_HISTORY"),value:"/phone",component:Ce,icon:(0,Na.jsx)(nw.Z,{}),to:"/phone"}),(0,Na.jsx)(aw,{label:u("DIALER.NAVBAR_DIAL"),value:"/phone/dial",color:"secondary",component:Ce,icon:(0,Na.jsx)(qb.Z,{}),to:"/phone/dial"}),(0,Na.jsx)(aw,{label:u("DIALER.NAVBAR_CONTACTS"),value:"/phone/contacts",color:"secondary",component:Ce,icon:(0,Na.jsx)(iw.Z,{}),to:"/phone/contacts"})]})};function sw(e){return(0,of.Z)("MuiListItemAvatar",e)}(0,sf.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);var uw=["className"],lw=(0,nf.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,"flex-start"===a.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({minWidth:56,flexShrink:0},"flex-start"===t.alignItems&&{marginTop:8})})),_w=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiListItemAvatar"}),i=a.className,n=(0,ti.Z)(a,uw),o=r.useContext(Zb),s=(0,Ba.Z)({},a,{alignItems:o.alignItems}),u=function(e){var t=e.alignItems,a=e.classes,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,tf.Z)(i,sw,a)}(s);return(0,Na.jsx)(lw,(0,Ba.Z)({className:(0,ef.Z)(u.root,i),ownerState:s,ref:t},n))})),fw=_w,dw=a(8326),cw=a(2898),gw=a(5403),hw=eh((function(e){return{bg:{display:"flex",height:"60px",justifyContent:"center",alignItems:"center"},textFieldInput:{fontSize:20},inputRoot:{fontWeight:400,fontSize:18,border:"1px solid",borderColor:e.palette.divider},inputInput:{padding:e.spacing(1,4,1,4),transition:e.transitions.create(["width","border"]),width:"16ch","&:focus":{width:"24ch",borderLeft:"2px solid ".concat(e.palette.primary.main," ")}},search:{position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:(0,af._4)(e.palette.background.paper,.21),"&:hover":{backgroundColor:(0,af._4)(e.palette.background.paper,.28)},marginLeft:e.spacing(1),width:"auto"},searchIcon:{padding:e.spacing(0,.7),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"}}})),Fw={onChange:function(){},value:"",placeholder:"Search..."},mw=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fw,t=e.value,a=e.onChange,i=e.placeholder,n=hw();return(0,Na.jsx)(cf,{variant:"outlined",className:n.bg,children:(0,Na.jsxs)("div",{className:n.search,children:[(0,Na.jsx)("div",{className:n.searchIcon,children:(0,Na.jsx)(gw.Z,{})}),(0,Na.jsx)(jD,{value:t,onChange:a,placeholder:i,classes:{root:n.inputRoot,input:n.inputInput},inputProps:{"aria-label":"search"}})]})})},pw=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0],a=k_(Tm.filterInput),i=(0,r.useState)(""),n=(0,Ka.Z)(i,2),o=n[0],s=n[1],u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,a=(0,r.useState)(e),i=(0,Ka.Z)(a,2),n=i[0],o=i[1];return(0,r.useEffect)((function(){var a=setTimeout((function(){o(e)}),t);return function(){clearTimeout(a)}}),[e,t]),n}(o,500);return(0,r.useEffect)((function(){a(u)}),[u,a]),(0,Na.jsx)(lh,{children:(0,Na.jsx)(mw,{onChange:function(e){return s(e.target.value)},placeholder:t("CONTACTS.PLACEHOLDER_SEARCH_CONTACTS"),value:o})})},Ew=function(){var e=p_(Tm.filteredContacts),t=fe(),a=dF().initializeCall;return(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(pw,{}),(0,Na.jsx)(Vb,{children:e.map((function(e){return(0,Na.jsxs)(_k,{divider:!0,children:[(0,Na.jsx)(fw,{children:e.avatar?(0,Na.jsx)(Cm,{src:e.avatar}):(0,Na.jsx)(Cm,{children:e.display.slice(0,1).toUpperCase()})}),(0,Na.jsx)(vk,{primary:e.display,secondary:e.number,primaryTypographyProps:{overflow:"hidden",textOverflow:"ellipsis"},secondaryTypographyProps:{overflow:"hidden",textOverflow:"ellipsis"}}),(0,Na.jsx)(rp,{onClick:function(){return t=e.number,S_({action:"Emitting `Start Call` to Scripts",level:2,data:!0}),void a(t);var t},children:(0,Na.jsx)(qb.Z,{})}),(0,Na.jsx)(rp,{onClick:function(){return a=e.number,S_({action:"Routing to Message",level:1,data:{phoneNumber:a}}),void t.push("/messages/new?phoneNumber=".concat(a));var a},children:(0,Na.jsx)(dw.Z,{})}),(0,Na.jsx)(rp,{style:{margin:-15},onClick:function(){return a=e.id,void t.push("/contacts/".concat(a));var a},children:(0,Na.jsx)(cw.Z,{})})]},e.id)}))})]})};function bw(e){return e&&"object"===typeof e&&!Array.isArray(e)}function kw(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var a=t.children,i=Y_(),n=(0,r.useMemo)((function(){return(0,H_.Z)(kw(i,e))}),[i]);return(0,Na.jsx)(ja,{injectFirst:!0,children:(0,Na.jsx)(Wa,{theme:n,children:a})})}}var vw=Um.Z[600],Dw=Rb.Z.white,ww=yw({palette:{primary:{main:vw,dark:Um.Z[800],light:Um.Z[400],contrastText:Dw}}}),Sw=function(){var e=uj("DIALER");return(0,Na.jsx)(ww,{children:(0,Na.jsxs)(Q_,{children:[(0,Na.jsx)(jb,{app:e}),(0,Na.jsx)(Gh,{children:(0,Na.jsxs)(le,{children:[(0,Na.jsx)(ie,{path:"/phone/dial",children:(0,Na.jsx)(zD,{})}),(0,Na.jsx)(ie,{exact:!0,path:"/phone",children:(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:(0,Na.jsx)(Ck,{})})}),(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:(0,Na.jsx)(ie,{path:"/phone/contacts",component:Ew})})]})}),(0,Na.jsx)(ow,{})]})})},Cw=a(7394),Aw=eh({root:{height:"100%",width:"100%"},listContainer:{marginTop:30,width:"75%",margin:"0 auto",textAlign:"center"},avatar:{margin:"auto",height:"125px",width:"124px",marginBottom:29},input:{marginBottom:20,margin:"auto",textAlign:"center"},inputProps:{fontSize:22}}),Tw=function(){var e=Aw(),t=fe(),a=ce().id,i=ZD({referal:"/contacts"}),n=i.addNumber,o=i.referal,s=i.avatar,u=i.name,l=Rm().getContact,_=function(){var e=Wh().addAlert,t=uF(),a=(0,Ka.Z)(t,1)[0],i=Rm(),n=i.addLocalContact,o=i.updateLocalContact,s=i.deleteLocalContact,u=fe(),l=(0,r.useCallback)((function(t,i){var r=t.display,o=t.number,s=t.avatar;T_(wm.ADD_CONTACT,{display:r,number:o,avatar:s}).then((function(t){if("ok"!==t.status)return e({message:a(t.errorMsg),type:"error"});n(t.data),e({message:a("CONTACTS.FEEDBACK.ADD_SUCCESS"),type:"success"}),u.replace(i)}))}),[e,n,u,a]),_=(0,r.useCallback)((function(t){var i=t.id,n=t.display,r=t.number,s=t.avatar;T_(wm.UPDATE_CONTACT,{id:i,display:n,number:r,avatar:s}).then((function(t){if("ok"!==t.status)return e({message:a(t.errorMsg),type:"error"});o({id:i,display:n,number:r,avatar:s}),e({message:a("CONTACTS.FEEDBACK.UPDATE_SUCCESS"),type:"success"}),u.goBack()}))}),[e,u,a,o]),f=(0,r.useCallback)((function(t){var i=t.id;T_(wm.DELETE_CONTACT,{id:i}).then((function(t){if("ok"!==t.status)return e({message:a("CONTACTS.FEEDBACK.DELETE_FAILED"),type:"error"});u.goBack(),s(i),e({message:a("CONTACTS.FEEDBACK.DELETE_SUCCESS"),type:"success"})}))}),[e,s,u,a]);return{addNewContact:l,updateContact:_,deleteContact:f}}(),f=_.updateContact,d=_.addNewContact,c=_.deleteContact,g=l(parseInt(a)),h=(0,r.useState)((function(){return(null===g||void 0===g?void 0:g.display)||""})),F=(0,Ka.Z)(h,2),m=F[0],p=F[1],E=(0,r.useState)((function(){return(null===g||void 0===g?void 0:g.number)||""})),b=(0,Ka.Z)(E,2),k=b[0],y=b[1],v=(0,r.useState)((function(){return(null===g||void 0===g?void 0:g.avatar)||""})),D=(0,Ka.Z)(v,2),w=D[0],S=D[1],C=uF(),A=(0,Ka.Z)(C,1)[0];return(0,r.useEffect)((function(){n&&y(n),s&&S(s),u&&p(u)}),[n,w,s,u]),(0,Na.jsxs)(cf,{className:e.root,square:!0,children:[(0,Na.jsx)(rp,{style:{margin:10},onClick:function(){return t.goBack()},children:(0,Na.jsx)(Cw.Z,{fontSize:"large"})}),(0,Na.jsxs)("div",{className:e.listContainer,children:[(0,Na.jsx)(Cm,{className:e.avatar,src:w}),(0,Na.jsx)(PD,{autoFocus:!0,error:m.length>=Dm.display,className:e.input,value:m,onChange:function(e){e.currentTarget.value.length!==Dm.display&&p(e.target.value)},label:A("CONTACTS.FORM_NAME"),fullWidth:!0,inputProps:{className:e.inputProps}}),(0,Na.jsx)(PD,{className:e.input,error:k.length>=Dm.number,value:k,onChange:function(e){e.currentTarget.value.length!==Dm.number&&y(e.target.value)},label:A("CONTACTS.FORM_NUMBER"),fullWidth:!0,inputProps:{className:e.inputProps}}),(0,Na.jsx)(PD,{error:w.length>=Dm.avatar,className:e.input,label:A("CONTACTS.FORM_AVATAR"),fullWidth:!0,value:w,onChange:function(e){e.currentTarget.value.length!==Dm.avatar&&S(e.target.value)},inputProps:{className:e.inputProps}}),g&&(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(lh,{py:1,display:"block",children:(0,Na.jsx)(rp,{color:"primary",variant:"contained",onClick:function(){f({id:g.id,number:k,avatar:w,display:m})},children:A("GENERIC.UPDATE")})}),(0,Na.jsx)(lh,{py:1,display:"block",children:(0,Na.jsx)(rp,{variant:"contained",color:"secondary",onClick:function(){c({id:g.id})},children:A("GENERIC.DELETE")})})]}),!g&&(0,Na.jsx)(lh,{display:"block",children:(0,Na.jsx)(rp,{color:"primary",variant:"contained",onClick:function(){d({display:m,number:k,avatar:w},o)},children:A("CONTACTS.MODAL_BUTTON_ADD")})})]})]})},xw=function(){return(0,Na.jsx)("div",{style:{paddingBottom:60},children:(0,Na.jsx)(Ew,{})})},Iw=Ib.Z[500],Rw=Rb.Z.white,Ow=yw({palette:{primary:{main:Iw,dark:Ib.Z[700],light:Ib.Z[300],contrastText:Rw},secondary:{main:"#d32f2f",light:"#eb4242",dark:"#941212",contrastText:Rw},success:{main:"#2196f3",contrastText:Rw}}});function Lw(e){return(0,of.Z)("MuiFab",e)}var Nw=(0,sf.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge"]),Pw=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],jw=(0,nf.ZP)(nm,{name:"MuiFab",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t[a.variant],t["size".concat((0,mh.Z)(a.size))],"inherit"===a.color&&t.colorInherit,"primary"===a.color&&t.primary,"secondary"===a.color&&t.secondary]}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({},a.typography.button,(t={minHeight:36,transition:a.transitions.create(["background-color","box-shadow","border-color"],{duration:a.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:a.shadows[6],"&:active":{boxShadow:a.shadows[12]},color:a.palette.getContrastText(a.palette.grey[300]),backgroundColor:a.palette.grey[300],"&:hover":{backgroundColor:a.palette.grey.A100,"@media (hover: none)":{backgroundColor:a.palette.grey[300]},textDecoration:"none"}},(0,Ya.Z)(t,"&.".concat(Nw.focusVisible),{boxShadow:a.shadows[6]}),(0,Ya.Z)(t,"&.".concat(Nw.disabled),{color:a.palette.action.disabled,boxShadow:a.shadows[0],backgroundColor:a.palette.action.disabledBackground}),t),"small"===i.size&&{width:40,height:40},"medium"===i.size&&{width:48,height:48},"extended"===i.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===i.variant&&"small"===i.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===i.variant&&"medium"===i.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===i.color&&{color:"inherit"})}),(function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({},"primary"===a.color&&{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},"secondary"===a.color&&{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}})})),Bw=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiFab"}),i=a.children,n=a.className,r=a.color,o=void 0===r?"default":r,s=a.component,u=void 0===s?"button":s,l=a.disabled,_=void 0!==l&&l,f=a.disableFocusRipple,d=void 0!==f&&f,c=a.focusVisibleClassName,g=a.size,h=void 0===g?"large":g,F=a.variant,m=void 0===F?"circular":F,p=(0,ti.Z)(a,Pw),E=(0,Ba.Z)({},a,{color:o,component:u,disabled:_,disableFocusRipple:d,size:h,variant:m}),b=function(e){var t=e.color,a=e.variant,i=e.classes,n=e.size,r={root:["root",a,"size".concat((0,mh.Z)(n)),"inherit"===t&&"colorInherit","primary"===t&&"primary","secondary"===t&&"secondary"]};return(0,tf.Z)(r,Lw,i)}(E);return(0,Na.jsx)(jw,(0,Ba.Z)({className:(0,ef.Z)(b.root,n),component:u,disabled:_,focusRipple:!d,focusVisibleClassName:(0,ef.Z)(b.focusVisible,c),ownerState:E,ref:t},p,{children:i}))})),Mw=Bw,qw=eh((function(e){return{absolute:{position:"absolute",right:e.spacing(3),bottom:e.spacing(2)}}})),Gw=function(){var e=uj("CONTACTS"),t=fe(),a=qw(),i=de().pathname;return(0,Na.jsx)(Ow,{children:(0,Na.jsxs)(Q_,{id:"contact-app",children:[(0,Na.jsx)(jb,{app:e}),(0,Na.jsx)(Gh,{children:(0,Na.jsxs)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:[(0,Na.jsx)(ie,{path:"/contacts/",exact:!0,component:xw}),(0,Na.jsx)(ie,{path:"/contacts/:id",exact:!0,component:Tw})]})}),!i.match(/contacts\/-?\d/)&&(0,Na.jsx)(Mw,{color:"primary",onClick:function(){return t.push("/contacts/-1")},className:a.absolute,children:(0,Na.jsx)(Gb.Z,{})})]})})},Zw={value:0,op:"",num1:0,num2:"",num3:""},Uw=function(e,t){switch(t.type){case"2":return e.num1?e.num2?e.num1&&e.op?(0,Ha.Z)((0,Ha.Z)({},e),{},{value:e.op(e.value,e.num2),op:t.payload}):(0,Ha.Z)((0,Ha.Z)({},e),{},{value:e.op(e.num1,e.num2),num2:"",op:t.payload,num1:e.op(e.num1,e.num2)}):(0,Ha.Z)((0,Ha.Z)({},e),{},{op:t.payload}):(0,Ha.Z)((0,Ha.Z)({},e),{},{num1:e.num2,op:t.payload,num2:""});case"1":return""===e.num2&&"."===t.payload?(0,Ha.Z)((0,Ha.Z)({},e),{},{num2:"0"+t.payload}):""===e.num2?(0,Ha.Z)((0,Ha.Z)({},e),{},{num2:t.payload}):"."===t.payload&&e.num2.includes(".")?e:(0,Ha.Z)((0,Ha.Z)({},e),{},{num2:e.num2+t.payload});case"3":return e.op&&e.num2?(0,Ha.Z)((0,Ha.Z)({},e),{},{value:e.op(e.num1,e.num2),num2:"",num1:e.op(e.num1,e.num2),num3:e.num2}):e.op&&e.value?(0,Ha.Z)((0,Ha.Z)({},e),{},{value:e.op(e.value,e.num3)}):e;case"c":return 2===e.num2.length&&e.num2.includes("0.")?(0,Ha.Z)((0,Ha.Z)({},e),{},{num2:""}):e.num2.length>1?(0,Ha.Z)((0,Ha.Z)({},e),{},{num2:e.num2.slice(0,-1)}):(0,Ha.Z)((0,Ha.Z)({},e),{},{num2:""});case"ac":return{value:0,op:"",num1:0,num2:"",num3:""};default:return e}},zw=function(e){var t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},Ww=a(6120),Hw=(0,nf.ZP)(Mw)({position:"absolute",top:"16px",left:"16px"}),Vw=(0,nf.ZP)(lh)((function(e){return{fontSize:e.theme.typography.h2.fontSize,textAlign:"right",overflow:"hidden",textOverflow:"ellipsis",position:"relative"}})),Kw=(0,nf.ZP)((function(e){var t=e.className,a=e.buttonOpts,i=e.GridProps;return(0,Na.jsx)(Sb,(0,Ha.Z)((0,Ha.Z)({item:!0,xs:3},i),{},{children:(0,Na.jsx)(rp,{fullWidth:!0,className:t,onClick:a.onClick,sx:{color:"white"},children:a.label})}),a.label)}))((function(e){var t=e.theme;return{fontSize:t.typography.h5.fontSize,padding:t.spacing(2)}})),Yw=function(){var e=function(){var e=(0,r.useReducer)(Uw,Zw),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=function(e,t){if("2"!==t)return"".concat(e);switch(e){case"/":return function(e,t){return Number(e)/Number(t)};case"*":return function(e,t){return Number(e)*Number(t)};case"+":return function(e,t){return Number(e)+Number(t)};case"-":return function(e,t){return Number(e)-Number(t)}}},o=function(e,t){return{label:e,onClick:function(){return i({type:t,payload:n(e,t)})}}},s=function(e){return o(e,"1")},u=function(e){return o(e,"2")},l=o("C","c"),_=o("AC","ac"),f=o("=","3"),d=s(0),c=s("."),g=u("/"),h=u("*"),F=u("+");return{result:function(){return a.num2?a.num2:a.value},equals:f,clear:l,clearAll:_,divider:g,multiplier:h,substractor:u("-"),adder:F,dot:c,zero:d,one:s(1),two:s(2),three:s(3),four:s(4),five:s(5),six:s(6),seven:s(7),eight:s(8),nine:s(9)}}(),t=e.result,a=e.equals,i=e.clear,n=e.clearAll,o=e.divider,s=e.multiplier,u=e.substractor,l=e.adder,_=e.dot,f=e.zero,d=e.one,c=e.two,g=e.three,h=e.four,F=e.five,m=e.six,p=e.seven,E=e.eight,b=e.nine,k=Wh().addAlert,y=(0,r.useMemo)((function(){return t().toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:4})}),[t]),v=uF(),D=(0,Ka.Z)(v,1)[0];return(0,Na.jsxs)(lh,{display:"flex",flexDirection:"column",children:[(0,Na.jsxs)(Vw,{flexGrow:1,component:cf,p:2,children:[(0,Na.jsx)(Hw,{size:"small",onClick:function(){zw(y),k({message:D("GENERIC.WRITE_TO_CLIPBOARD_MESSAGE",{content:"number"}),type:"success"})},children:(0,Na.jsx)(Ww.Z,{})}),y]}),(0,Na.jsx)(lh,{children:(0,Na.jsxs)(Sb,{container:!0,justifyContent:"space-around",children:[(0,Na.jsx)(Kw,{buttonOpts:i}),(0,Na.jsx)(Kw,{buttonOpts:n}),(0,Na.jsx)(Kw,{buttonOpts:o}),(0,Na.jsx)(Kw,{buttonOpts:s}),(0,Na.jsx)(Kw,{buttonOpts:p}),(0,Na.jsx)(Kw,{buttonOpts:E}),(0,Na.jsx)(Kw,{buttonOpts:b}),(0,Na.jsx)(Kw,{buttonOpts:u}),(0,Na.jsx)(Kw,{buttonOpts:h}),(0,Na.jsx)(Kw,{buttonOpts:F}),(0,Na.jsx)(Kw,{buttonOpts:m}),(0,Na.jsx)(Kw,{buttonOpts:l}),(0,Na.jsx)(Kw,{buttonOpts:d}),(0,Na.jsx)(Kw,{buttonOpts:c}),(0,Na.jsx)(Kw,{buttonOpts:g}),(0,Na.jsx)(Kw,{buttonOpts:a}),(0,Na.jsx)(Kw,{buttonOpts:_}),(0,Na.jsx)(Kw,{buttonOpts:f,GridProps:{xs:9}})]})})]})},$w=function(){var e=uj("CALCULATOR");return(0,Na.jsxs)(Q_,{children:[(0,Na.jsx)(jb,{app:e}),(0,Na.jsx)(Gh,{children:(0,Na.jsx)(Yw,{})})]})},Jw=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xw(e,t,a){var i,n=function(e,t,a){var i,n=t.getBoundingClientRect(),r=a&&a.getBoundingClientRect(),o=(0,fv.Z)(t);if(t.fakeTransform)i=t.fakeTransform;else{var s=o.getComputedStyle(t);i=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var u=0,l=0;if(i&&"none"!==i&&"string"===typeof i){var _=i.split("(")[1].split(")")[0].split(",");u=parseInt(_[4],10),l=parseInt(_[5],10)}return"left"===e?"translateX(".concat(r?r.right+u-n.left:o.innerWidth+u-n.left,"px)"):"right"===e?"translateX(-".concat(r?n.right-r.left-u:n.left+n.width-u,"px)"):"up"===e?"translateY(".concat(r?r.bottom+l-n.top:o.innerHeight+l-n.top,"px)"):"translateY(-".concat(r?n.top-r.top+n.height-l:n.top+n.height-l,"px)")}(e,t,"function"===typeof(i=a)?i():i);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Qw={enter:xf.Ui.easeOut,exit:xf.Ui.sharp},eS={enter:xf.x9.enteringScreen,exit:xf.x9.leavingScreen},tS=r.forwardRef((function(e,t){var a=e.addEndListener,i=e.appear,n=void 0===i||i,o=e.children,s=e.container,u=e.direction,l=void 0===u?"down":u,_=e.easing,f=void 0===_?Qw:_,d=e.in,c=e.onEnter,g=e.onEntered,h=e.onEntering,F=e.onExit,m=e.onExited,p=e.onExiting,E=e.style,b=e.timeout,k=void 0===b?eS:b,y=e.TransitionComponent,v=void 0===y?Tf:y,D=(0,ti.Z)(e,Jw),w=Rf(),S=r.useRef(null),C=(0,Nf.Z)(o.ref,S),A=(0,Nf.Z)(C,t),T=function(e){return function(t){e&&(void 0===t?e(S.current):e(S.current,t))}},x=T((function(e,t){Xw(l,e,s),Of(e),c&&c(e,t)})),I=T((function(e,t){var a=Lf({timeout:k,style:E,easing:f},{mode:"enter"});e.style.webkitTransition=w.transitions.create("-webkit-transform",(0,Ba.Z)({},a)),e.style.transition=w.transitions.create("transform",(0,Ba.Z)({},a)),e.style.webkitTransform="none",e.style.transform="none",h&&h(e,t)})),R=T(g),O=T(p),L=T((function(e){var t=Lf({timeout:k,style:E,easing:f},{mode:"exit"});e.style.webkitTransition=w.transitions.create("-webkit-transform",t),e.style.transition=w.transitions.create("transform",t),Xw(l,e,s),F&&F(e)})),N=T((function(e){e.style.webkitTransition="",e.style.transition="",m&&m(e)})),P=r.useCallback((function(){S.current&&Xw(l,S.current,s)}),[l,s]);return r.useEffect((function(){if(!d&&"down"!==l&&"right"!==l){var e=(0,_v.Z)((function(){S.current&&Xw(l,S.current,s)})),t=(0,fv.Z)(S.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[l,d,s]),r.useEffect((function(){d||P()}),[d,P]),(0,Na.jsx)(v,(0,Ba.Z)({nodeRef:S,onEnter:x,onEntered:R,onEntering:I,onExit:L,onExited:N,onExiting:O,addEndListener:function(e){a&&a(S.current,e)},appear:n,in:d,timeout:k},D,{children:function(e,t){return r.cloneElement(o,(0,Ba.Z)({ref:A,style:(0,Ba.Z)({visibility:"exited"!==e||d?void 0:"hidden"},E,o.props.style)},t))}}))})),aS=tS,iS=eh((function(e){return{root:{borderTop:"1px solid",borderColor:e.palette.primary.main,width:"100%",minHeight:"10%",maxHeight:"100%",zIndex:2,overflow:"auto"}}})),nS=function(e){var t=e.open,a=e.onClose,i=e.options,n=iS(),r=uF(),o=(0,Ka.Z)(r,1)[0],s=a?[].concat((0,Va.Z)(i),[{label:o("GENERIC.CLOSE"),onClick:a}]):i;return(0,Na.jsx)(aS,{direction:"up",in:t,style:{position:"absolute",bottom:0},mountOnEnter:!0,unmountOnExit:!0,children:(0,Na.jsx)(cf,{square:!0,className:n.root,children:(0,Na.jsx)(Kb,{disablePadding:!0,children:s.map((function(e){return(0,Na.jsxs)(fk,{selected:e.selected,button:!0,onClick:function(t){e.onClick(t,e),a()},children:[e.icon&&(0,Na.jsx)(mk,{children:e.icon}),(0,Na.jsx)(vk,{primary:e.label,secondary:e.description})]},e.key||e.label)}))})})})},rS=function(e,t){return function(a){return{selected:e.value===a.value,onClick:function(){return t(a)},key:a.value,label:a.label}}},oS=function(e){var t=(0,r.useState)(!1),a=(0,Ka.Z)(t,2),i=a[0],n=a[1],o=(0,r.useState)(e||[]),s=(0,Ka.Z)(o,2),u=s[0],l=s[1],_=function(){return n(!1)};return[function(e){l(e),n(!0)},_,function(){return(0,Na.jsx)(nS,{open:i,onClose:_,options:u})},i]},sS=F_({key:"config",default:Ra}),uS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sS,t=b_(e),a=(0,Ka.Z)(t,2),i=a[0],n=a[1],r=function(e,t){n((function(a){return(0,Ha.Z)((0,Ha.Z)({},a),{},(0,Ya.Z)({},e,t))}))};return[i,r]};function lS(e){return(0,of.Z)("MuiSlider",e)}var _S=(0,sf.Z)("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]);var fS=function(e){var t=e.children,a=e.className,i=e.value,n=e.theme,o=function(e){var t=e.open;return{offset:(0,ef.Z)(t&&_S.valueLabelOpen),circle:_S.valueLabelCircle,label:_S.valueLabelLabel}}(e);return r.cloneElement(t,{className:(0,ef.Z)(t.props.className)},(0,Na.jsxs)(r.Fragment,{children:[t.props.children,(0,Na.jsx)("span",{className:(0,ef.Z)(o.offset,a),theme:n,"aria-hidden":!0,children:(0,Na.jsx)("span",{className:o.circle,children:(0,Na.jsx)("span",{className:o.label,children:i})})})]}))},dS=a(8959),cS=a(5372),gS={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function hS(e,t){return e-t}function FS(e,t,a){return null==e?t:Math.min(Math.max(t,e),a)}function mS(e,t){var a,i=null!=(a=e.reduce((function(e,a,i){var n=Math.abs(t-a);return null===e||n2&&q(!0),H&&H(e,i,n)}else Fe(e)})),Fe=(0,dv.Z)((function(e){var t=pS(e,A);if(q(!1),t){var a=ge({finger:t,values:K}).newValue;R(-1),"touchend"===e.type&&P(-1),m&&m(e,a),A.current=void 0,pe()}})),me=(0,dv.Z)((function(e){SS()||e.preventDefault();var t=e.changedTouches[0];null!=t&&(A.current=t.identifier);var a=pS(e,A);if(!1!==a){var i=ge({finger:a,values:K}),n=i.newValue,r=i.activeIndex;yS({sliderRef:oe,activeIndex:r,setActive:R}),W(n),H&&H(e,n,r)}G.current=0;var o=(0,Cp.Z)(oe.current);o.addEventListener("touchmove",he),o.addEventListener("touchend",Fe)})),pe=r.useCallback((function(){var e=(0,Cp.Z)(oe.current);e.removeEventListener("mousemove",he),e.removeEventListener("mouseup",Fe),e.removeEventListener("touchmove",he),e.removeEventListener("touchend",Fe)}),[Fe,he]);r.useEffect((function(){var e=oe.current;return e.addEventListener("touchstart",me,{passive:SS()}),function(){e.removeEventListener("touchstart",me,{passive:SS()}),pe()}}),[pe,me]),r.useEffect((function(){u&&pe()}),[u,pe]);var Ee=function(e){return function(t){var a;if(null==(a=e.onMouseDown)||a.call(e,t),!t.defaultPrevented&&0===t.button){t.preventDefault();var i=pS(t,A);if(!1!==i){var n=ge({finger:i,values:K}),r=n.newValue,o=n.activeIndex;yS({sliderRef:oe,activeIndex:o,setActive:R}),W(r),H&&H(t,r,o)}G.current=0;var s=(0,Cp.Z)(oe.current);s.addEventListener("mousemove",he),s.addEventListener("mouseup",Fe)}}},be=ES(V?K[0]:g,g,d),ke=ES(K[K.length-1],g,d)-be,ye=function(e){return function(t){var a;null==(a=e.onMouseOver)||a.call(e,t);var i=Number(t.currentTarget.getAttribute("data-index"));P(i)}},ve=function(e){return function(t){var a;null==(a=e.onMouseLeave)||a.call(e,t),P(-1)}};return{axis:ce,axisProps:DS,getRootProps:function(e){var t={onMouseDown:Ee(e||{})},a=(0,Ba.Z)({},e,t);return(0,Ba.Z)({ref:ue},a)},getHiddenInputProps:function(t){var i={onChange:fe(t||{}),onFocus:le(t||{}),onBlur:_e(t||{})},n=(0,Ba.Z)({},t,i);return(0,Ba.Z)({tabIndex:D,"aria-labelledby":a,"aria-orientation":E,"aria-valuemax":k(d),"aria-valuemin":k(g),name:h,type:"range",min:e.min,max:e.max,step:e.step,disabled:u},n,{style:(0,Ba.Z)({},gS,{direction:C?"rtl":"ltr",width:"100%",height:"100%"})})},getThumbProps:function(e){var t={onMouseOver:ye(e||{}),onMouseLeave:ve(e||{})},a=(0,Ba.Z)({},e,t);return(0,Ba.Z)({},a)},dragging:M,marks:Y,values:K,active:I,focusVisible:ne,open:N,range:V,trackOffset:be,trackLeap:ke}}var AS=["aria-label","aria-valuetext","className","component","classes","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","components","componentsProps"],TS=function(e){return e},xS=function(e){return e.children},IS=r.forwardRef((function(e,t){var a,i,n,o,s,u,l,_=e["aria-label"],f=e["aria-valuetext"],d=e.className,c=e.component,g=e.classes,h=e.disableSwap,F=void 0!==h&&h,m=e.disabled,p=void 0!==m&&m,E=e.getAriaLabel,b=e.getAriaValueText,k=e.marks,y=void 0!==k&&k,v=e.max,D=void 0===v?100:v,w=e.min,S=void 0===w?0:w,C=e.onMouseDown,A=e.orientation,T=void 0===A?"horizontal":A,x=e.scale,I=void 0===x?TS:x,R=e.step,O=void 0===R?1:R,L=e.track,N=void 0===L?"normal":L,P=e.valueLabelDisplay,j=void 0===P?"off":P,B=e.valueLabelFormat,M=void 0===B?TS:B,q=e.isRtl,G=void 0!==q&&q,Z=e.components,U=void 0===Z?{}:Z,z=e.componentsProps,W=void 0===z?{}:z,H=(0,ti.Z)(e,AS),V=(0,Ba.Z)({},e,{mark:y,classes:g,disabled:p,isRtl:G,max:D,min:S,orientation:T,scale:I,step:O,track:N,valueLabelDisplay:j,valueLabelFormat:M}),K=CS((0,Ba.Z)({},V,{ref:t})),Y=K.axisProps,$=K.getRootProps,J=K.getHiddenInputProps,X=K.getThumbProps,Q=K.open,ee=K.active,te=K.axis,ae=K.range,ie=K.focusVisible,ne=K.dragging,re=K.marks,oe=K.values,se=K.trackOffset,ue=K.trackLeap;V.marked=re.length>0&&re.some((function(e){return e.label})),V.dragging=ne;var le=null!=(a=null!=c?c:U.Root)?a:"span",_e=lp(le,(0,Ba.Z)({},H,W.root),V),fe=null!=(i=U.Rail)?i:"span",de=lp(fe,W.rail,V),ce=null!=(n=U.Track)?n:"span",ge=lp(ce,W.track,V),he=(0,Ba.Z)({},Y[te].offset(se),Y[te].leap(ue)),Fe=null!=(o=U.Thumb)?o:"span",me=lp(Fe,W.thumb,V),pe=null!=(s=U.ValueLabel)?s:fS,Ee=lp(pe,W.valueLabel,V),be=null!=(u=U.Mark)?u:"span",ke=lp(be,W.mark,V),ye=null!=(l=U.MarkLabel)?l:"span",ve=lp(ye,W.markLabel,V),De=U.Input||"input",we=lp(De,W.input,V),Se=J(),Ce=function(e){var t=e.disabled,a=e.dragging,i=e.marked,n=e.orientation,r=e.track,o=e.classes,s={root:["root",t&&"disabled",a&&"dragging",i&&"marked","vertical"===n&&"vertical","inverted"===r&&"trackInverted",!1===r&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,tf.Z)(s,lS,o)}(V);return(0,Na.jsxs)(le,(0,Ba.Z)({},_e,$({onMouseDown:C}),{className:(0,ef.Z)(Ce.root,_e.className,d),children:[(0,Na.jsx)(fe,(0,Ba.Z)({},de,{className:(0,ef.Z)(Ce.rail,de.className)})),(0,Na.jsx)(ce,(0,Ba.Z)({},ge,{className:(0,ef.Z)(Ce.track,ge.className),style:(0,Ba.Z)({},he,ge.style)})),re.map((function(e,t){var a,i=ES(e.value,S,D),n=Y[te].offset(i);return a=!1===N?-1!==oe.indexOf(e.value):"normal"===N&&(ae?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0])||"inverted"===N&&(ae?e.value<=oe[0]||e.value>=oe[oe.length-1]:e.value>=oe[0]),(0,Na.jsxs)(r.Fragment,{children:[(0,Na.jsx)(be,(0,Ba.Z)({"data-index":t},ke,!gf(be)&&{markActive:a},{style:(0,Ba.Z)({},n,ke.style),className:(0,ef.Z)(Ce.mark,ke.className,a&&Ce.markActive)})),null!=e.label?(0,Na.jsx)(ye,(0,Ba.Z)({"aria-hidden":!0,"data-index":t},ve,!gf(ye)&&{markLabelActive:a},{style:(0,Ba.Z)({},n,ve.style),className:(0,ef.Z)(Ce.markLabel,ve.className,a&&Ce.markLabelActive),children:e.label})):null]},e.value)})),oe.map((function(e,t){var a=ES(e,S,D),i=Y[te].offset(a),n="off"===j?xS:pe;return(0,Na.jsx)(r.Fragment,{children:(0,Na.jsx)(n,(0,Ba.Z)({},!gf(n)&&{valueLabelFormat:M,valueLabelDisplay:j,value:"function"===typeof M?M(I(e),t):M,index:t,open:Q===t||ee===t||"on"===j,disabled:p},Ee,{className:(0,ef.Z)(Ce.valueLabel,Ee.className),children:(0,Na.jsx)(Fe,(0,Ba.Z)({"data-index":t},me,X(),{className:(0,ef.Z)(Ce.thumb,me.className,ee===t&&Ce.active,ie===t&&Ce.focusVisible)},!gf(Fe)&&{ownerState:(0,Ba.Z)({},V,me.ownerState)},{style:(0,Ba.Z)({},i,{pointerEvents:F&&ee!==t?"none":void 0},me.style),children:(0,Na.jsx)(De,(0,Ba.Z)({},Se,{"data-index":t,"aria-label":E?E(t):_,"aria-valuenow":I(e),"aria-valuetext":b?b(I(e),t):f,value:oe[t]},!gf(De)&&{ownerState:(0,Ba.Z)({},V,we.ownerState)},we,{style:(0,Ba.Z)({},Se.style,we.style)}))}))}))},t)}))]}))})),RS=IS,OS=["component","components","componentsProps","color","size"],LS=(0,Ba.Z)({},_S,(0,sf.Z)("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"])),NS=(0,nf.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState,i=!0===a.marksProp&&null!==a.step?(0,Va.Z)(Array(Math.floor((a.max-a.min)/a.step)+1)).map((function(e,t){return{value:a.min+a.step*t}})):a.marksProp||[],n=i.length>0&&i.some((function(e){return e.label}));return[t.root,t["color".concat((0,mh.Z)(a.color))],"medium"!==a.size&&t["size".concat((0,mh.Z)(a.size))],n&&t.marked,"vertical"===a.orientation&&t.vertical,"inverted"===a.track&&t.trackInverted,!1===a.track&&t.trackFalse]}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:a.palette[i.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===i.orientation&&(0,Ba.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===i.size&&{height:2},i.marked&&{marginBottom:20}),"vertical"===i.orientation&&(0,Ba.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===i.size&&{width:2},i.marked&&{marginRight:44}),(t={"@media print":{colorAdjust:"exact"}},(0,Ya.Z)(t,"&.".concat(LS.disabled),{pointerEvents:"none",cursor:"default",color:a.palette.grey[400]}),(0,Ya.Z)(t,"&.".concat(LS.dragging),(0,Ya.Z)({},"& .".concat(LS.thumb,", & .").concat(LS.track),{transition:"none"})),t))})),PS=(0,nf.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:function(e,t){return t.rail}})((function(e){var t=e.ownerState;return(0,Ba.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),jS=(0,nf.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme,a=e.ownerState,i="light"===t.palette.mode?(0,af.$n)(t.palette[a.color].main,.62):(0,af._j)(t.palette[a.color].main,.5);return(0,Ba.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===a.size&&{border:"none"},"horizontal"===a.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===a.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===a.track&&{display:"none"},"inverted"===a.track&&{backgroundColor:i,borderColor:i})})),BS=(0,nf.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:function(e,t){var a=e.ownerState;return[t.thumb,t["thumbColor".concat((0,mh.Z)(a.color))],"medium"!==a.size&&t["thumbSize".concat((0,mh.Z)(a.size))]]}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:a.transitions.create(["box-shadow","left","bottom"],{duration:a.transitions.duration.shortest})},"small"===i.size&&{width:12,height:12},"horizontal"===i.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===i.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},(t={"&:before":(0,Ba.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:a.shadows[2]},"small"===i.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},(0,Ya.Z)(t,"&:hover, &.".concat(LS.focusVisible),{boxShadow:"0px 0px 0px 8px ".concat((0,af.Fq)(a.palette[i.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}}),(0,Ya.Z)(t,"&.".concat(LS.active),{boxShadow:"0px 0px 0px 14px ".concat((0,af.Fq)(a.palette[i.color].main,.16))}),(0,Ya.Z)(t,"&.".concat(LS.disabled),{"&:hover":{boxShadow:"none"}}),t))})),MS=(0,nf.ZP)(fS,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:function(e,t){return t.valueLabel}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)((t={},(0,Ya.Z)(t,"&.".concat(LS.valueLabelOpen),{transform:"translateY(-100%) scale(1)"}),(0,Ya.Z)(t,"zIndex",1),(0,Ya.Z)(t,"whiteSpace","nowrap"),t),a.typography.body2,{fontWeight:500,transition:a.transitions.create(["transform"],{duration:a.transitions.duration.shortest}),top:-10,transformOrigin:"bottom center",transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:a.palette.grey[600],borderRadius:2,color:a.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"small"===i.size&&{fontSize:a.typography.pxToRem(12),padding:"0.25rem 0.5rem"},{"&:before":{position:"absolute",content:'""',width:8,height:8,bottom:0,left:"50%",transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit"}})})),qS=(0,nf.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:function(e){return(0,nf.Dz)(e)&&"markActive"!==e},overridesResolver:function(e,t){return t.mark}})((function(e){var t=e.theme,a=e.ownerState,i=e.markActive;return(0,Ba.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===a.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===a.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},i&&{backgroundColor:t.palette.background.paper,opacity:.8})})),GS=(0,nf.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:function(e){return(0,nf.Dz)(e)&&"markLabelActive"!==e},overridesResolver:function(e,t){return t.markLabel}})((function(e){var t=e.theme,a=e.ownerState,i=e.markLabelActive;return(0,Ba.Z)({},t.typography.body2,{color:t.palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===a.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===a.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},i&&{color:t.palette.text.primary})})),ZS=r.forwardRef((function(e,t){var a,i,n,r,o=(0,rf.Z)({props:e,name:"MuiSlider"}),s="rtl"===Rf().direction,u=o.component,l=void 0===u?"span":u,_=o.components,f=void 0===_?{}:_,d=o.componentsProps,c=void 0===d?{}:d,g=o.color,h=void 0===g?"primary":g,F=o.size,m=void 0===F?"medium":F,p=(0,ti.Z)(o,OS),E=function(e){var t=e.color,a=e.size,i=e.classes,n=void 0===i?{}:i;return(0,Ba.Z)({},n,{root:(0,ef.Z)(n.root,lS("color".concat((0,mh.Z)(t))),n["color".concat((0,mh.Z)(t))],a&&[lS("size".concat((0,mh.Z)(a))),n["size".concat((0,mh.Z)(a))]]),thumb:(0,ef.Z)(n.thumb,lS("thumbColor".concat((0,mh.Z)(t))),n["thumbColor".concat((0,mh.Z)(t))],a&&[lS("thumbSize".concat((0,mh.Z)(a))),n["thumbSize".concat((0,mh.Z)(a))]])})}((0,Ba.Z)({},o,{color:h,size:m}));return(0,Na.jsx)(RS,(0,Ba.Z)({},p,{isRtl:s,components:(0,Ba.Z)({Root:NS,Rail:PS,Track:jS,Thumb:BS,ValueLabel:MS,Mark:qS,MarkLabel:GS},f),componentsProps:(0,Ba.Z)({},c,{root:(0,Ba.Z)({},c.root,cp(f.Root)&&{as:l,ownerState:(0,Ba.Z)({},null==(a=c.root)?void 0:a.ownerState,{color:h,size:m})}),thumb:(0,Ba.Z)({},c.thumb,cp(f.Thumb)&&{ownerState:(0,Ba.Z)({},null==(i=c.thumb)?void 0:i.ownerState,{color:h,size:m})}),track:(0,Ba.Z)({},c.track,cp(f.Track)&&{ownerState:(0,Ba.Z)({},null==(n=c.track)?void 0:n.ownerState,{color:h,size:m})}),valueLabel:(0,Ba.Z)({},c.valueLabel,cp(f.ValueLabel)&&{ownerState:(0,Ba.Z)({},null==(r=c.valueLabel)?void 0:r.ownerState,{color:h,size:m})})}),classes:E,ref:t}))})),US=ZS;function zS(e){return(0,of.Z)("PrivateSwitchBase",e)}(0,sf.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var WS=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],HS=(0,nf.ZP)(nm)((function(e){var t=e.ownerState;return(0,Ba.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),VS=(0,nf.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),KS=r.forwardRef((function(e,t){var a=e.autoFocus,i=e.checked,n=e.checkedIcon,r=e.className,o=e.defaultChecked,s=e.disabled,u=e.disableFocusRipple,l=void 0!==u&&u,_=e.edge,f=void 0!==_&&_,d=e.icon,c=e.id,g=e.inputProps,h=e.inputRef,F=e.name,m=e.onBlur,p=e.onChange,E=e.onFocus,b=e.readOnly,k=e.required,y=e.tabIndex,v=e.type,D=e.value,w=(0,ti.Z)(e,WS),S=(0,QE.Z)({controlled:i,default:Boolean(o),name:"SwitchBase",state:"checked"}),C=(0,Ka.Z)(S,2),A=C[0],T=C[1],x=Uk(),I=s;x&&"undefined"===typeof I&&(I=x.disabled);var R="checkbox"===v||"radio"===v,O=(0,Ba.Z)({},e,{checked:A,disabled:I,disableFocusRipple:l,edge:f}),L=function(e){var t=e.classes,a=e.checked,i=e.disabled,n=e.edge,r={root:["root",a&&"checked",i&&"disabled",n&&"edge".concat((0,mh.Z)(n))],input:["input"]};return(0,tf.Z)(r,zS,t)}(O);return(0,Na.jsxs)(HS,(0,Ba.Z)({component:"span",className:(0,ef.Z)(L.root,r),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:function(e){E&&E(e),x&&x.onFocus&&x.onFocus(e)},onBlur:function(e){m&&m(e),x&&x.onBlur&&x.onBlur(e)},ownerState:O,ref:t},w,{children:[(0,Na.jsx)(VS,(0,Ba.Z)({autoFocus:a,checked:i,defaultChecked:o,className:L.input,disabled:I,id:R&&c,name:F,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;T(t),p&&p(e,t)}},readOnly:b,ref:h,required:k,ownerState:O,tabIndex:y,type:v},"checkbox"===v&&void 0===D?{}:{value:D},g)),A?n:d]}))})),YS=KS;function $S(e){return(0,of.Z)("MuiSwitch",e)}var JS=(0,sf.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),XS=["className","color","edge","size","sx"],QS=(0,nf.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.edge&&t["edge".concat((0,mh.Z)(a.edge))],t["size".concat((0,mh.Z)(a.size))]]}})((function(e){var t,a=e.ownerState;return(0,Ba.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===a.edge&&{marginLeft:-8},"end"===a.edge&&{marginRight:-8},"small"===a.size&&(t={width:40,height:24,padding:7},(0,Ya.Z)(t,"& .".concat(JS.thumb),{width:16,height:16}),(0,Ya.Z)(t,"& .".concat(JS.switchBase),(0,Ya.Z)({padding:4},"&.".concat(JS.checked),{transform:"translateX(16px)"})),t))})),eC=(0,nf.ZP)(YS,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var a=e.ownerState;return[t.switchBase,(0,Ya.Z)({},"& .".concat(JS.input),t.input),"default"!==a.color&&t["color".concat((0,mh.Z)(a.color))]]}})((function(e){var t,a=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:"light"===a.palette.mode?a.palette.common.white:a.palette.grey[300],transition:a.transitions.create(["left","transform"],{duration:a.transitions.duration.shortest})},(0,Ya.Z)(t,"&.".concat(JS.checked),{transform:"translateX(20px)"}),(0,Ya.Z)(t,"&.".concat(JS.disabled),{color:"light"===a.palette.mode?a.palette.grey[100]:a.palette.grey[600]}),(0,Ya.Z)(t,"&.".concat(JS.checked," + .").concat(JS.track),{opacity:.5}),(0,Ya.Z)(t,"&.".concat(JS.disabled," + .").concat(JS.track),{opacity:"light"===a.palette.mode?.12:.2}),(0,Ya.Z)(t,"& .".concat(JS.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({"&:hover":{backgroundColor:(0,af.Fq)(a.palette.action.active,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==i.color&&(t={},(0,Ya.Z)(t,"&.".concat(JS.checked),(0,Ya.Z)({color:a.palette[i.color].main,"&:hover":{backgroundColor:(0,af.Fq)(a.palette[i.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(JS.disabled),{color:"light"===a.palette.mode?(0,af.$n)(a.palette[i.color].main,.62):(0,af._j)(a.palette[i.color].main,.55)})),(0,Ya.Z)(t,"&.".concat(JS.checked," + .").concat(JS.track),{backgroundColor:a.palette[i.color].main}),t))})),tC=(0,nf.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:"light"===t.palette.mode?t.palette.common.black:t.palette.common.white,opacity:"light"===t.palette.mode?.38:.3}})),aC=(0,nf.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){return{boxShadow:e.theme.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),iC=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiSwitch"}),i=a.className,n=a.color,r=void 0===n?"primary":n,o=a.edge,s=void 0!==o&&o,u=a.size,l=void 0===u?"medium":u,_=a.sx,f=(0,ti.Z)(a,XS),d=(0,Ba.Z)({},a,{color:r,edge:s,size:l}),c=function(e){var t=e.classes,a=e.edge,i=e.size,n=e.color,r=e.checked,o=e.disabled,s={root:["root",a&&"edge".concat((0,mh.Z)(a)),"size".concat((0,mh.Z)(i))],switchBase:["switchBase","color".concat((0,mh.Z)(n)),r&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,tf.Z)(s,$S,t);return(0,Ba.Z)({},t,u)}(d),g=(0,Na.jsx)(aC,{className:c.thumb,ownerState:d});return(0,Na.jsxs)(QS,{className:(0,ef.Z)(c.root,i),sx:_,ownerState:d,children:[(0,Na.jsx)(eC,(0,Ba.Z)({type:"checkbox",icon:g,checkedIcon:g,ref:t,ownerState:d},f,{classes:(0,Ba.Z)({},c,{root:c.switchBase})})),(0,Na.jsx)(tC,{className:c.track,ownerState:d})]})})),nC=iC,rC=function(e){var t=e.options,a=e.label,i=e.value,n=e.onClick,r=e.icon;return(0,Na.jsxs)(_k,{divider:!0,onClick:function(){return null===n||void 0===n?void 0:n(t)},button:!0,children:[(0,Na.jsx)(mk,{children:r}),(0,Na.jsx)(vk,{primary:a,secondary:i||void 0})]})},oC=function(e){var t=e.icon,a=e.label,i=e.value,n=e.onCommit;return(0,Na.jsxs)(_k,{divider:!0,children:[(0,Na.jsx)(mk,{children:t}),(0,Na.jsx)(vk,{primary:a,secondary:"".concat(i,"%")}),(0,Na.jsx)(nk,{children:(0,Na.jsx)(lh,{p:2,width:150,children:(0,Na.jsx)(US,{defaultValue:i,min:0,max:100,valueLabelDisplay:"auto",onChangeCommitted:n},"slider-".concat(i))})})]})},sC=function(e){var t=e.label,a=e.value,i=e.onClick,n=e.icon,r=e.secondary;return(0,Na.jsxs)(_k,{divider:!0,children:[(0,Na.jsx)(mk,{children:n}),(0,Na.jsx)(vk,{primary:t,secondary:r}),(0,Na.jsx)(nk,{children:(0,Na.jsx)(nC,{color:"primary",checked:a,onChange:function(){return i(a)}})})]})},uC=function(e){var t=e.icon,a=e.label,i=e.handleAction,n=e.actionIcon,r=e.labelSecondary,o=e.actionLabel;return(0,Na.jsx)(Na.Fragment,{children:(0,Na.jsxs)(_k,{divider:!0,children:[(0,Na.jsx)(mk,{children:t}),(0,Na.jsx)(vk,{primary:a,secondary:r}),(0,Na.jsx)(nk,{children:(0,Na.jsx)(db,{arrow:!0,title:(0,Na.jsx)(EF,{variant:"body2",children:o}),placement:"top-end",children:(0,Na.jsx)(_m,{edge:"end",onClick:i,size:"large",children:n})})})]})})},lC=a(165),_C=a(4939),fC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy"),dC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57 0 1.08.19 1.5.51V5h4v2zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"LibraryMusic"),cC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}),"VolumeUp"),gC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"}),"Book"),hC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37-1.34-1.34a.9959.9959 0 0 0-1.41 0L9 12.25 11.75 15l8.96-8.96c.39-.39.39-1.02 0-1.41z"}),"Brush"),FC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"}),"Apps"),mC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}),"Wallpaper"),pC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"}),"Smartphone"),EC=(0,Fm.Z)([(0,Na.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},"0"),(0,Na.jsx)("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"},"1")],"ZoomIn"),bC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),kC=(0,Fm.Z)((0,Na.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");function yC(e){return(0,of.Z)("MuiDialogTitle",e)}var vC=(0,sf.Z)("MuiDialogTitle",["root"]);var DC=(0,r.createContext)({}),wC=["className","id"],SC=(0,nf.ZP)(EF,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),CC=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiDialogTitle"}),i=a.className,n=a.id,o=(0,ti.Z)(a,wC),s=a,u=function(e){var t=e.classes;return(0,tf.Z)({root:["root"]},yC,t)}(s),l=r.useContext(DC).titleId,_=void 0===l?n:l;return(0,Na.jsx)(SC,(0,Ba.Z)({component:"h2",className:(0,ef.Z)(u.root,i),ownerState:s,ref:t,variant:"h6",id:_},o))})),AC=CC;function TC(e){return(0,of.Z)("MuiDialogContent",e)}(0,sf.Z)("MuiDialogContent",["root","dividers"]);var xC=["className","dividers"],IC=(0,nf.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.dividers&&t.dividers]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},a.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat(t.palette.divider),borderBottom:"1px solid ".concat(t.palette.divider)}:(0,Ya.Z)({},".".concat(vC.root," + &"),{paddingTop:0}))})),RC=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiDialogContent"}),i=a.className,n=a.dividers,r=void 0!==n&&n,o=(0,ti.Z)(a,xC),s=(0,Ba.Z)({},a,{dividers:r}),u=function(e){var t=e.classes,a={root:["root",e.dividers&&"dividers"]};return(0,tf.Z)(a,TC,t)}(s);return(0,Na.jsx)(IC,(0,Ba.Z)({className:(0,ef.Z)(u.root,i),ownerState:s,ref:t},o))})),OC=RC;function LC(e){return(0,of.Z)("MuiDialogContentText",e)}(0,sf.Z)("MuiDialogContentText",["root"]);var NC=["children"],PC=(0,nf.ZP)(EF,{shouldForwardProp:function(e){return(0,nf.FO)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),jC=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiDialogContentText"}),i=(0,ti.Z)(a,NC),n=function(e){var t=e.classes,a=(0,tf.Z)({root:["root"]},LC,t);return(0,Ba.Z)({},t,a)}(i);return(0,Na.jsx)(PC,(0,Ba.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:i},a,{classes:n}))})),BC=jC;function MC(e){return(0,of.Z)("MuiDialogActions",e)}(0,sf.Z)("MuiDialogActions",["root","spacing"]);var qC=["className","disableSpacing"],GC=(0,nf.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,!a.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),ZC=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiDialogActions"}),i=a.className,n=a.disableSpacing,r=void 0!==n&&n,o=(0,ti.Z)(a,qC),s=(0,Ba.Z)({},a,{disableSpacing:r}),u=function(e){var t=e.classes,a={root:["root",!e.disableSpacing&&"spacing"]};return(0,tf.Z)(a,MC,t)}(s);return(0,Na.jsx)(GC,(0,Ba.Z)({className:(0,ef.Z)(u.root,i),ownerState:s,ref:t},o))})),UC=ZC,zC=eh({root:{paddingLeft:"10px",zIndex:10,width:"90%",display:"flex",flexFlow:"column nowrap",position:"absolute",top:"80px"},displayBlock:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",position:"relative"},displayNone:{display:"none"}}),WC=function(e){var t=e.children,a=e.open,i=e.handleClose,n=e.onSubmit,r=e.title,o=e.content,s=zC(),u=a?s.displayBlock:s.displayNone;return(0,Na.jsx)("div",{className:u,children:(0,Na.jsxs)(cf,{className:s.root,children:[(0,Na.jsx)(AC,{id:"form-dialog-title",children:r}),(0,Na.jsxs)(OC,{children:[(0,Na.jsx)(BC,{children:o}),t]}),(0,Na.jsxs)(UC,{children:[(0,Na.jsx)(rp,{color:"primary",onClick:i,children:"Cancel"}),(0,Na.jsx)(rp,{color:"primary",onClick:n,children:"Confirm"})]})]})})},HC=F_({key:"customWallpaperState",default:!1}),VC=function(){return b_(HC)},KC=function(){var e=VC(),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=N_(),o=(0,Ka.Z)(n,2),s=o[0],u=o[1],l=uF(),_=(0,Ka.Z)(l,1)[0],f=(0,r.useState)(s.wallpaper.value?s.wallpaper.value:""),d=(0,Ka.Z)(f,2),c=d[0],g=d[1],h=Wh().addAlert,F=function(e){return/(http(s?):)([/|.|\w|\s|-])*\.(?:jpg|png|jpeg|gif)/g.test(e)};return(0,Na.jsx)(WC,{open:a,handleClose:function(){return i(!1)},onSubmit:function(){F(c)?(!function(e,t){u((0,Ha.Z)((0,Ha.Z)({},s),{},(0,Ya.Z)({},e,t)))}("wallpaper",{label:_("SETTINGS.OPTIONS.CUSTOM_WALLPAPER.DIALOG_TITLE"),value:c}),i(!1)):h({message:_("SETTINGS.OPTIONS.CUSTOM_WALLPAPER.DIALOG_ERROR"),type:"error"})},title:_("SETTINGS.OPTIONS.CUSTOM_WALLPAPER.DIALOG_TITLE"),content:_("SETTINGS.OPTIONS.CUSTOM_WALLPAPER.DIALOG_CONTENT"),children:(0,Na.jsx)(PD,{value:c,error:!F(c)&&!0,onChange:function(e){return g(e.currentTarget.value)},placeholder:_("SETTINGS.OPTIONS.CUSTOM_WALLPAPER.DIALOG_PLACEHOLDER"),fullWidth:!0})})};function YC(e){return(0,of.Z)("MuiListSubheader",e)}(0,sf.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var $C=["className","color","component","disableGutters","disableSticky","inset"],JC=(0,nf.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,"default"!==a.color&&t["color".concat((0,mh.Z)(a.color))],!a.disableGutters&&t.gutters,a.inset&&t.inset,!a.disableSticky&&t.sticky]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:t.palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===a.color&&{color:t.palette.primary.main},"inherit"===a.color&&{color:"inherit"},!a.disableGutters&&{paddingLeft:16,paddingRight:16},a.inset&&{paddingLeft:72},!a.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:t.palette.background.paper})})),XC=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiListSubheader"}),i=a.className,n=a.color,r=void 0===n?"default":n,o=a.component,s=void 0===o?"li":o,u=a.disableGutters,l=void 0!==u&&u,_=a.disableSticky,f=void 0!==_&&_,d=a.inset,c=void 0!==d&&d,g=(0,ti.Z)(a,$C),h=(0,Ba.Z)({},a,{color:r,component:s,disableGutters:l,disableSticky:f,inset:c}),F=function(e){var t=e.classes,a=e.color,i=e.disableGutters,n=e.inset,r=e.disableSticky,o={root:["root","default"!==a&&"color".concat((0,mh.Z)(a)),!i&&"gutters",n&&"inset",!r&&"sticky"]};return(0,tf.Z)(o,YC,t)}(h);return(0,Na.jsx)(JC,(0,Ba.Z)({as:s,className:(0,ef.Z)(F.root,i),ref:t,ownerState:h},g))})),QC=XC,eA=["children","title"],tA=function(e){var t=e.text;return(0,Na.jsx)(QC,{color:"primary",component:"div",disableSticky:!0,children:t})},aA=function(e){var t=e.children,a=e.title,i=ai(e,eA);return(0,Na.jsx)(Vb,(0,Ha.Z)((0,Ha.Z)({subheader:(0,Na.jsx)(tA,{text:a})},i),{},{disablePadding:!0,children:t}))},iA=eh({backgroundModal:{background:"black",opacity:"0.6",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:5}}),nA=function(){var e=uj("SETTINGS"),t=uS(),a=(0,Ka.Z)(t,1)[0],i=zh(),n=N_(),r=(0,Ka.Z)(n,2),o=r[0],s=r[1],u=uF(),l=(0,Ka.Z)(u,1)[0],_=VC(),f=(0,Ka.Z)(_,2),d=f[0],c=f[1],g=Wh().addAlert,h=y_(L_),F=function(e,t){s((0,Ha.Z)((0,Ha.Z)({},o),{},(0,Ya.Z)({},e,t)))},m=a.iconSet.map(rS(o.iconSet,(function(e){return F("iconSet",e)}))),p=a.wallpapers.map(rS(o.wallpaper,(function(e){return F("wallpaper",e)}))),E=a.frames.map(rS(o.frame,(function(e){return F("frame",e)}))),b=a.themes.map(rS(o.theme,(function(e){return F("theme",e)}))),k=a.zoomOptions.map(rS(o.zoom,(function(e){return F("zoom",e)}))),y=a.ringtones.map(rS(o.ringtone,(function(e){return F("ringtone",e)}))),v=a.notiSounds.map(rS(o.notiSound,(function(e){return F("notiSound",e)}))),D=a.notiSounds.map(rS(o.TWITTER_notiSound,(function(e){return F("TWITTER_notiSound",e)}))),w=a.notiFilters.map(rS(o.TWITTER_notiFilter,(function(e){return F("TWITTER_notiFilter",e)}))),S=a.languages.map(rS(o.language,(function(e){return F("language",e)}))),C=[{selected:!1,onClick:function(){return h(),void g({message:l("SETTINGS.MESSAGES.SETTINGS_RESET"),type:"success"})},key:"RESET_SETTINGS",label:l("SETTINGS.OPTIONS.RESET_SETTINGS")}],A={selected:!1,onClick:function(){return c(!0)},key:"CUSTOM_WALLPAPER",label:l("SETTINGS.OPTIONS.CUSTOM_WALLPAPER.DIALOG_TITLE")},T=oS(),x=(0,Ka.Z)(T,4),I=x[0],R=x[1],O=x[2],L=x[3],N=iA();return(0,Na.jsxs)(Q_,{children:[(0,Na.jsx)(jb,{app:e}),(0,Na.jsx)(KC,{}),(0,Na.jsx)("div",{className:d?N.backgroundModal:void 0}),(0,Na.jsxs)(Gh,{backdrop:L,onClickBackdrop:R,display:"flex",style:{height:"auto"},children:[(0,Na.jsxs)(aA,{title:l("SETTINGS.CATEGORY.PHONE"),children:[(0,Na.jsx)(uC,{label:l("SETTINGS.PHONE_NUMBER"),labelSecondary:i,actionLabel:l("GENERIC.WRITE_TO_CLIPBOARD_TOOLTIP",{content:"number"}),icon:(0,Na.jsx)(_C.Z,{}),actionIcon:(0,Na.jsx)(fC,{}),handleAction:function(){zw(i),g({message:l("GENERIC.WRITE_TO_CLIPBOARD_MESSAGE",{content:"number"}),type:"success"})}}),(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.RINGTONE"),value:o.ringtone.label,options:y,onClick:I,icon:(0,Na.jsx)(dC,{})}),(0,Na.jsx)(oC,{label:l("SETTINGS.OPTIONS.RINGTONE_VOLUME"),icon:(0,Na.jsx)(cC,{}),value:o.ringtoneVol,onCommit:function(e,t){return F("ringtoneVol",t)}}),(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.NOTIFICATION"),value:o.notiSound.label,options:v,onClick:I,icon:(0,Na.jsx)(dC,{})}),(0,Na.jsx)(oC,{label:l("SETTINGS.OPTIONS.NOTIFICATION_VOLUME"),icon:(0,Na.jsx)(cC,{}),value:o.notiSoundVol,onCommit:function(e,t){return F("notiSoundVol",t)}}),(0,Na.jsx)(sC,{label:l("SETTINGS.OPTIONS.STREAMER_MODE.TITLE"),secondary:l("SETTINGS.OPTIONS.STREAMER_MODE.DESCRIPTION"),icon:(0,Na.jsx)(lC.Z,{}),value:o.streamerMode,onClick:function(e){return F("streamerMode",!e)}}),(0,Na.jsx)(oC,{label:l("SETTINGS.OPTIONS.CALL_VOLUME"),icon:(0,Na.jsx)(cC,{}),value:o.callVolume,onCommit:function(e,t){return F("callVolume",t)}})]}),(0,Na.jsxs)(aA,{title:l("SETTINGS.CATEGORY.APPEARANCE"),children:[(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.LANGUAGE"),value:o.language.label,options:S,onClick:I,icon:(0,Na.jsx)(gC,{})}),(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.THEME"),value:o.theme.label,options:b,onClick:I,icon:(0,Na.jsx)(hC,{})}),(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.ICONSET"),value:o.iconSet.label,options:m,onClick:I,icon:(0,Na.jsx)(FC,{})}),(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.WALLPAPER"),value:o.wallpaper.label,options:[].concat((0,Va.Z)(p),[A]),onClick:I,icon:(0,Na.jsx)(mC,{})}),(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.FRAME"),value:o.frame.label,options:E,onClick:I,icon:(0,Na.jsx)(pC,{})}),(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.ZOOM"),value:o.zoom.label,options:k,onClick:I,icon:(0,Na.jsx)(EC,{})})]}),(0,Na.jsxs)(aA,{title:l("APPS_TWITTER"),children:[(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.NOTIFICATION_FILTER"),value:o.TWITTER_notiFilter.label,options:w,onClick:I,icon:(0,Na.jsx)(bC,{})}),(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.NOTIFICATION"),value:o.TWITTER_notiSound.label,options:D,onClick:I,icon:(0,Na.jsx)(dC,{})}),(0,Na.jsx)(oC,{label:l("SETTINGS.OPTIONS.NOTIFICATION_VOLUME"),value:o.TWITTER_notiSoundVol,onCommit:function(e,t){return F("TWITTER_notiSoundVol",t)},icon:(0,Na.jsx)(cC,{})})]}),(0,Na.jsx)(aA,{title:l("APPS_MARKETPLACE"),children:(0,Na.jsx)(sC,{label:l("SETTINGS.MARKETPLACE.NOTIFICATION"),secondary:l("SETTINGS.MARKETPLACE.NOTIFY_NEW_LISTING"),value:o.MARKETPLACE_notifyNewListing,icon:(0,Na.jsx)(bC,{}),onClick:function(e){return F("MARKETPLACE_notifyNewListing",!e)}})}),(0,Na.jsx)(aA,{title:l("SETTINGS.CATEGORY.ACTIONS"),children:(0,Na.jsx)(rC,{label:l("SETTINGS.OPTIONS.RESET_SETTINGS"),value:l("SETTINGS.OPTIONS.RESET_SETTINGS_DESC"),icon:(0,Na.jsx)(kC,{}),onClick:I,options:C})})]}),(0,Na.jsx)(O,{})]})};function rA(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function oA(e,t){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,a=void 0===t||t,i=e.ignoreCase,n=void 0===i||i,r=e.limit,o=e.matchFrom,s=void 0===o?"any":o,u=e.stringify,l=e.trim,_=void 0!==l&&l;return function(e,t){var i=t.inputValue,o=t.getOptionLabel,l=_?i.trim():i;n&&(l=l.toLowerCase()),a&&(l=rA(l));var f=e.filter((function(e){var t=(u||o)(e);return n&&(t=t.toLowerCase()),a&&(t=rA(t)),"start"===s?0===t.indexOf(l):t.indexOf(l)>-1}));return"number"===typeof r?f.slice(0,r):f}}();function uA(e){var t,a=e.autoComplete,i=void 0!==a&&a,n=e.autoHighlight,o=void 0!==n&&n,s=e.autoSelect,u=void 0!==s&&s,l=e.blurOnSelect,_=void 0!==l&&l,f=e.disabled,d=e.clearOnBlur,c=void 0===d?!e.freeSolo:d,g=e.clearOnEscape,h=void 0!==g&&g,F=e.componentName,m=void 0===F?"useAutocomplete":F,p=e.defaultValue,E=void 0===p?e.multiple?[]:null:p,b=e.disableClearable,k=void 0!==b&&b,y=e.disableCloseOnSelect,v=void 0!==y&&y,D=e.disabledItemsFocusable,w=void 0!==D&&D,S=e.disableListWrap,C=void 0!==S&&S,A=e.filterOptions,T=void 0===A?sA:A,x=e.filterSelectedOptions,I=void 0!==x&&x,R=e.freeSolo,O=void 0!==R&&R,L=e.getOptionDisabled,N=e.getOptionLabel,P=void 0===N?function(e){var t;return null!=(t=e.label)?t:e}:N,j=e.isOptionEqualToValue,B=void 0===j?function(e,t){return e===t}:j,M=e.groupBy,q=e.handleHomeEndKeys,G=void 0===q?!e.freeSolo:q,Z=e.id,U=e.includeInputInList,z=void 0!==U&&U,W=e.inputValue,H=e.multiple,V=void 0!==H&&H,K=e.onChange,Y=e.onClose,$=e.onHighlightChange,J=e.onInputChange,X=e.onOpen,Q=e.open,ee=e.openOnFocus,te=void 0!==ee&&ee,ae=e.options,ie=e.readOnly,ne=void 0!==ie&&ie,re=e.selectOnFocus,oe=void 0===re?!e.freeSolo:re,se=e.value,ue=(0,Rk.Z)(Z);t=function(e){var t=P(e);return"string"!==typeof t?String(t):t};var le=r.useRef(!1),_e=r.useRef(!0),fe=r.useRef(null),de=r.useRef(null),ce=r.useState(null),ge=(0,Ka.Z)(ce,2),he=ge[0],Fe=ge[1],me=r.useState(-1),pe=(0,Ka.Z)(me,2),Ee=pe[0],be=pe[1],ke=o?0:-1,ye=r.useRef(ke),ve=(0,dS.Z)({controlled:se,default:E,name:m}),De=(0,Ka.Z)(ve,2),we=De[0],Se=De[1],Ce=(0,dS.Z)({controlled:W,default:"",name:m,state:"inputValue"}),Ae=(0,Ka.Z)(Ce,2),Te=Ae[0],xe=Ae[1],Ie=r.useState(!1),Re=(0,Ka.Z)(Ie,2),Oe=Re[0],Le=Re[1],Ne=r.useCallback((function(e,a){if((V?we.length0&&!ne,Ye=(0,dv.Z)((function(e){-1===e?fe.current.focus():he.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));r.useEffect((function(){V&&Ee>we.length-1&&(be(-1),Ye(-1))}),[we,V,Ee,Ye]);var $e=(0,dv.Z)((function(e){var t=e.event,a=e.index,i=e.reason,n=void 0===i?"auto":i;if(ye.current=a,-1===a?fe.current.removeAttribute("aria-activedescendant"):fe.current.setAttribute("aria-activedescendant","".concat(ue,"-option-").concat(a)),$&&$(t,-1===a?null:Ve[a],n),de.current){var r=de.current.querySelector('[role="option"].Mui-focused');r&&(r.classList.remove("Mui-focused"),r.classList.remove("Mui-focusVisible"));var o=de.current.parentElement.querySelector('[role="listbox"]');if(o)if(-1!==a){var s=de.current.querySelector('[data-option-index="'.concat(a,'"]'));if(s&&(s.classList.add("Mui-focused"),"keyboard"===n&&s.classList.add("Mui-focusVisible"),o.scrollHeight>o.clientHeight&&"mouse"!==n)){var u=s,l=o.clientHeight+o.scrollTop,_=u.offsetTop+u.offsetHeight;_>l?o.scrollTop=_-o.clientHeight:u.offsetTop-u.offsetHeight*(M?1.3:0)1?0:e:t>e?t===e+1&&z?-1:C||Math.abs(n)>1?e:0:t}(),o);if($e({index:l,reason:u,event:a}),i&&"reset"!==n)if(-1===l)fe.current.value=Te;else{var _=t(Ve[l]);fe.current.value=_,0===_.toLowerCase().indexOf(Te.toLowerCase())&&Te.length>0&&fe.current.setSelectionRange(Te.length,_.length)}}})),Xe=r.useCallback((function(){if(He){var e=V?we[0]:we;if(0!==Ve.length&&null!=e){if(de.current)if(null==e)ye.current>=Ve.length-1?$e({index:Ve.length-1}):$e({index:ye.current});else{var t=Ve[ye.current];if(V&&t&&-1!==oA(we,(function(e){return B(t,e)})))return;var a=oA(Ve,(function(t){return B(t,e)}));-1===a?Je({diff:"reset"}):$e({index:a})}}else Je({diff:"reset"})}}),[Ve.length,!V&&we,I,Je,$e,He,Te,V]),Qe=(0,dv.Z)((function(e){(0,qE.Z)(de,e),e&&Xe()}));r.useEffect((function(){Xe()}),[Xe]);var et=function(e){Me||(qe(!0),ze(!0),X&&X(e))},tt=function(e,t){Me&&(qe(!1),Y&&Y(e,t))},at=function(e,t,a,i){if(Array.isArray(we)){if(we.length===t.length&&we.every((function(e,a){return e===t[a]})))return}else if(we===t)return;K&&K(e,t,a,i),Se(t)},it=r.useRef(!1),nt=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=a,r=t;if(V){var o=oA(r=Array.isArray(we)?we.slice():[],(function(e){return B(t,e)}));-1===o?r.push(t):"freeSolo"!==i&&(r.splice(o,1),n="removeOption")}Ne(e,r),at(e,r,n,{option:t}),v||e.ctrlKey||e.metaKey||tt(e,n),(!0===_||"touch"===_&&it.current||"mouse"===_&&!it.current)&&fe.current.blur()};var rt=function(e,t){if(V){tt(e,"toggleInput");var a=Ee;-1===Ee?""===Te&&"previous"===t&&(a=we.length-1):((a+="next"===t?1:-1)<0&&(a=0),a===we.length&&(a=-1)),a=function(e,t){if(-1===e)return-1;for(var a=e;;){if("next"===t&&a===we.length||"previous"===t&&-1===a)return-1;var i=he.querySelector('[data-tag-index="'.concat(a,'"]'));if(i&&i.hasAttribute("tabindex")&&!i.disabled&&"true"!==i.getAttribute("aria-disabled"))return a;a+="next"===t?1:-1}}(a,t),be(a),Ye(a)}},ot=function(e){le.current=!0,xe(""),J&&J(e,"","clear"),at(e,V?[]:null,"clear")},st=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Ee&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(be(-1),Ye(-1)),229!==t.which))switch(t.key){case"Home":He&&G&&(t.preventDefault(),Je({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":He&&G&&(t.preventDefault(),Je({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Je({diff:-5,direction:"previous",reason:"keyboard",event:t}),et(t);break;case"PageDown":t.preventDefault(),Je({diff:5,direction:"next",reason:"keyboard",event:t}),et(t);break;case"ArrowDown":t.preventDefault(),Je({diff:1,direction:"next",reason:"keyboard",event:t}),et(t);break;case"ArrowUp":t.preventDefault(),Je({diff:-1,direction:"previous",reason:"keyboard",event:t}),et(t);break;case"ArrowLeft":rt(t,"previous");break;case"ArrowRight":rt(t,"next");break;case"Enter":if(-1!==ye.current&&He){var a=Ve[ye.current],n=!!L&&L(a);if(t.preventDefault(),n)return;nt(t,a,"selectOption"),i&&fe.current.setSelectionRange(fe.current.value.length,fe.current.value.length)}else O&&""!==Te&&!1===We&&(V&&t.preventDefault(),nt(t,Te,"createOption","freeSolo"));break;case"Escape":He?(t.preventDefault(),t.stopPropagation(),tt(t,"escape")):h&&(""!==Te||V&&we.length>0)&&(t.preventDefault(),t.stopPropagation(),ot(t));break;case"Backspace":if(V&&!ne&&""===Te&&we.length>0){var r=-1===Ee?we.length-1:Ee,o=we.slice();o.splice(r,1),at(t,o,"removeOption",{option:we[r]})}}}},ut=function(e){Le(!0),te&&!le.current&&et(e)},lt=function(e){null!==de.current&&de.current.parentElement.contains(document.activeElement)?fe.current.focus():(Le(!1),_e.current=!0,le.current=!1,u&&-1!==ye.current&&He?nt(e,Ve[ye.current],"blur"):u&&O&&""!==Te?nt(e,Te,"blur","freeSolo"):c&&Ne(e,we),tt(e,"blur"))},_t=function(e){var t=e.target.value;Te!==t&&(xe(t),ze(!1),J&&J(e,t,"input")),""===t?k||V||at(e,null,"clear"):et(e)},ft=function(e){$e({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},dt=function(){it.current=!0},ct=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));nt(e,Ve[t],"selectOption"),it.current=!1},gt=function(e){return function(t){var a=we.slice();a.splice(e,1),at(t,a,"removeOption",{option:we[e]})}},ht=function(e){Me?tt(e,"toggleInput"):et(e)},Ft=function(e){e.target.getAttribute("id")!==ue&&e.preventDefault()},mt=function(){fe.current.focus(),oe&&_e.current&&fe.current.selectionEnd-fe.current.selectionStart===0&&fe.current.select(),_e.current=!1},pt=function(e){""!==Te&&Me||ht(e)},Et=O&&Te.length>0;Et=Et||(V?we.length>0:null!==we);var bt=Ve;if(M){new Map;bt=Ve.reduce((function(e,t,a){var i=M(t);return e.length>0&&e[e.length-1].group===i?e[e.length-1].options.push(t):e.push({key:a,index:a,group:i,options:[t]}),e}),[])}return f&&Oe&<(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Ba.Z)({"aria-owns":Ke?"".concat(ue,"-listbox"):null,role:"combobox","aria-expanded":Ke},e,{onKeyDown:st(e),onMouseDown:Ft,onClick:mt})},getInputLabelProps:function(){return{id:"".concat(ue,"-label"),htmlFor:ue}},getInputProps:function(){return{id:ue,value:Te,onBlur:lt,onFocus:ut,onChange:_t,onMouseDown:pt,"aria-activedescendant":He?"":null,"aria-autocomplete":i?"both":"list","aria-controls":Ke?"".concat(ue,"-listbox"):void 0,autoComplete:"off",ref:fe,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:ot}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:ht}},getTagProps:function(e){var t=e.index;return(0,Ba.Z)({key:t,"data-tag-index":t,tabIndex:-1},!ne&&{onDelete:gt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(ue,"-listbox"),"aria-labelledby":"".concat(ue,"-label"),ref:Qe,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var a=e.index,i=e.option,n=(V?we:[we]).some((function(e){return null!=e&&B(i,e)})),r=!!L&&L(i);return{key:t(i),tabIndex:-1,role:"option",id:"".concat(ue,"-option-").concat(a),onMouseOver:ft,onClick:ct,onTouchStart:dt,"data-option-index":a,"aria-disabled":r,"aria-selected":n}},id:ue,inputValue:Te,value:we,dirty:Et,popupOpen:He,focused:Oe||-1!==Ee,anchorEl:he,setAnchorEl:Fe,focusedTag:Ee,groupedOptions:bt}}var lA=(0,Fm.Z)((0,Na.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function _A(e){return(0,of.Z)("MuiChip",e)}var fA=(0,sf.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]),dA=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],cA=(0,nf.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState,i=a.color,n=a.clickable,r=a.onDelete,o=a.size,s=a.variant;return[(0,Ya.Z)({},"& .".concat(fA.avatar),t.avatar),(0,Ya.Z)({},"& .".concat(fA.avatar),t["avatar".concat((0,mh.Z)(o))]),(0,Ya.Z)({},"& .".concat(fA.avatar),t["avatarColor".concat((0,mh.Z)(i))]),(0,Ya.Z)({},"& .".concat(fA.icon),t.icon),(0,Ya.Z)({},"& .".concat(fA.icon),t["icon".concat((0,mh.Z)(o))]),(0,Ya.Z)({},"& .".concat(fA.icon),t["iconColor".concat((0,mh.Z)(i))]),(0,Ya.Z)({},"& .".concat(fA.deleteIcon),t.deleteIcon),(0,Ya.Z)({},"& .".concat(fA.deleteIcon),t["deleteIcon".concat((0,mh.Z)(o))]),(0,Ya.Z)({},"& .".concat(fA.deleteIcon),t["deleteIconColor".concat((0,mh.Z)(i))]),(0,Ya.Z)({},"& .".concat(fA.deleteIcon),t["deleteIconOutlinedColor".concat((0,mh.Z)(i))]),t.root,t["size".concat((0,mh.Z)(o))],t["color".concat((0,mh.Z)(i))],n&&t.clickable,n&&"default"!==i&&t["clickableColor".concat((0,mh.Z)(i),")")],r&&t.deletable,r&&"default"!==i&&t["deletableColor".concat((0,mh.Z)(i))],t[s],"outlined"===s&&t["outlined".concat((0,mh.Z)(i))]]}})((function(e){var t,a=e.theme,i=e.ownerState,n=(0,af.Fq)(a.palette.text.primary,.26);return(0,Ba.Z)((t={fontFamily:a.typography.fontFamily,fontSize:a.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:a.palette.text.primary,backgroundColor:a.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:a.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,Ya.Z)(t,"&.".concat(fA.disabled),{opacity:a.palette.action.disabledOpacity,pointerEvents:"none"}),(0,Ya.Z)(t,"& .".concat(fA.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===a.palette.mode?a.palette.grey[700]:a.palette.grey[300],fontSize:a.typography.pxToRem(12)}),(0,Ya.Z)(t,"& .".concat(fA.avatarColorPrimary),{color:a.palette.primary.contrastText,backgroundColor:a.palette.primary.dark}),(0,Ya.Z)(t,"& .".concat(fA.avatarColorSecondary),{color:a.palette.secondary.contrastText,backgroundColor:a.palette.secondary.dark}),(0,Ya.Z)(t,"& .".concat(fA.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:a.typography.pxToRem(10)}),(0,Ya.Z)(t,"& .".concat(fA.icon),(0,Ba.Z)({color:"light"===a.palette.mode?a.palette.grey[700]:a.palette.grey[300],marginLeft:5,marginRight:-6},"small"===i.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==i.color&&{color:"inherit"})),(0,Ya.Z)(t,"& .".concat(fA.deleteIcon),(0,Ba.Z)({WebkitTapHighlightColor:"transparent",color:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,af.Fq)(n,.4)}},"small"===i.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==i.color&&{color:(0,af.Fq)(a.palette[i.color].contrastText,.7),"&:hover, &:active":{color:a.palette[i.color].contrastText}})),t),"small"===i.size&&{height:24},"default"!==i.color&&{backgroundColor:a.palette[i.color].main,color:a.palette[i.color].contrastText},i.onDelete&&(0,Ya.Z)({},"&.".concat(fA.focusVisible),{backgroundColor:(0,af.Fq)(a.palette.action.selected,a.palette.action.selectedOpacity+a.palette.action.focusOpacity)}),i.onDelete&&"default"!==i.color&&(0,Ya.Z)({},"&.".concat(fA.focusVisible),{backgroundColor:a.palette[i.color].dark}))}),(function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({},i.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:(0,af.Fq)(a.palette.action.selected,a.palette.action.selectedOpacity+a.palette.action.hoverOpacity)}},(0,Ya.Z)(t,"&.".concat(fA.focusVisible),{backgroundColor:(0,af.Fq)(a.palette.action.selected,a.palette.action.selectedOpacity+a.palette.action.focusOpacity)}),(0,Ya.Z)(t,"&:active",{boxShadow:a.shadows[1]}),t),i.clickable&&"default"!==i.color&&(0,Ya.Z)({},"&:hover, &.".concat(fA.focusVisible),{backgroundColor:a.palette[i.color].dark}))}),(function(e){var t,a,i=e.theme,n=e.ownerState;return(0,Ba.Z)({},"outlined"===n.variant&&(t={backgroundColor:"transparent",border:"1px solid ".concat("light"===i.palette.mode?i.palette.grey[400]:i.palette.grey[700])},(0,Ya.Z)(t,"&.".concat(fA.clickable,":hover"),{backgroundColor:i.palette.action.hover}),(0,Ya.Z)(t,"&.".concat(fA.focusVisible),{backgroundColor:i.palette.action.focus}),(0,Ya.Z)(t,"& .".concat(fA.avatar),{marginLeft:4}),(0,Ya.Z)(t,"& .".concat(fA.avatarSmall),{marginLeft:2}),(0,Ya.Z)(t,"& .".concat(fA.icon),{marginLeft:4}),(0,Ya.Z)(t,"& .".concat(fA.iconSmall),{marginLeft:2}),(0,Ya.Z)(t,"& .".concat(fA.deleteIcon),{marginRight:5}),(0,Ya.Z)(t,"& .".concat(fA.deleteIconSmall),{marginRight:3}),t),"outlined"===n.variant&&"default"!==n.color&&(a={color:i.palette[n.color].main,border:"1px solid ".concat((0,af.Fq)(i.palette[n.color].main,.7))},(0,Ya.Z)(a,"&.".concat(fA.clickable,":hover"),{backgroundColor:(0,af.Fq)(i.palette[n.color].main,i.palette.action.hoverOpacity)}),(0,Ya.Z)(a,"&.".concat(fA.focusVisible),{backgroundColor:(0,af.Fq)(i.palette[n.color].main,i.palette.action.focusOpacity)}),(0,Ya.Z)(a,"& .".concat(fA.deleteIcon),{color:(0,af.Fq)(i.palette[n.color].main,.7),"&:hover, &:active":{color:i.palette[n.color].main}}),a))})),gA=(0,nf.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var a=e.ownerState.size;return[t.label,t["label".concat((0,mh.Z)(a))]]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function hA(e){return"Backspace"===e.key||"Delete"===e.key}var FA=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiChip"}),i=a.avatar,n=a.className,o=a.clickable,s=a.color,u=void 0===s?"default":s,l=a.component,_=a.deleteIcon,f=a.disabled,d=void 0!==f&&f,c=a.icon,g=a.label,h=a.onClick,F=a.onDelete,m=a.onKeyDown,p=a.onKeyUp,E=a.size,b=void 0===E?"medium":E,k=a.variant,y=void 0===k?"filled":k,v=(0,ti.Z)(a,dA),D=r.useRef(null),w=(0,Nf.Z)(D,t),S=function(e){e.stopPropagation(),F&&F(e)},C=!(!1===o||!h)||o,A="small"===b,T=C||F?nm:l||"div",x=(0,Ba.Z)({},a,{component:T,disabled:d,size:b,color:u,onDelete:!!F,clickable:C,variant:y}),I=function(e){var t=e.classes,a=e.disabled,i=e.size,n=e.color,r=e.onDelete,o=e.clickable,s=e.variant,u={root:["root",s,a&&"disabled","size".concat((0,mh.Z)(i)),"color".concat((0,mh.Z)(n)),o&&"clickable",o&&"clickableColor".concat((0,mh.Z)(n)),r&&"deletable",r&&"deletableColor".concat((0,mh.Z)(n)),"".concat(s).concat((0,mh.Z)(n))],label:["label","label".concat((0,mh.Z)(i))],avatar:["avatar","avatar".concat((0,mh.Z)(i)),"avatarColor".concat((0,mh.Z)(n))],icon:["icon","icon".concat((0,mh.Z)(i)),"iconColor".concat((0,mh.Z)(n))],deleteIcon:["deleteIcon","deleteIcon".concat((0,mh.Z)(i)),"deleteIconColor".concat((0,mh.Z)(n)),"deleteIconOutlinedColor".concat((0,mh.Z)(n))]};return(0,tf.Z)(u,_A,t)}(x),R=T===nm?(0,Ba.Z)({component:l||"div",focusVisibleClassName:I.focusVisible},F&&{disableRipple:!0}):{},O=null;if(F){var L=(0,ef.Z)("default"!==u&&("outlined"===y?I["deleteIconOutlinedColor".concat((0,mh.Z)(u))]:I["deleteIconColor".concat((0,mh.Z)(u))]),A&&I.deleteIconSmall);O=_&&r.isValidElement(_)?r.cloneElement(_,{className:(0,ef.Z)(_.props.className,I.deleteIcon,L),onClick:S}):(0,Na.jsx)(lA,{className:(0,ef.Z)(I.deleteIcon,L),onClick:S})}var N=null;i&&r.isValidElement(i)&&(N=r.cloneElement(i,{className:(0,ef.Z)(I.avatar,i.props.className)}));var P=null;return c&&r.isValidElement(c)&&(P=r.cloneElement(c,{className:(0,ef.Z)(I.icon,c.props.className)})),(0,Na.jsxs)(cA,(0,Ba.Z)({as:T,className:(0,ef.Z)(I.root,n),disabled:!(!C||!d)||void 0,onClick:h,onKeyDown:function(e){e.currentTarget===e.target&&hA(e)&&e.preventDefault(),m&&m(e)},onKeyUp:function(e){e.currentTarget===e.target&&(F&&hA(e)?F(e):"Escape"===e.key&&D.current&&D.current.blur()),p&&p(e)},ref:w,ownerState:x},R,v,{children:[N||P,(0,Na.jsx)(gA,{className:(0,ef.Z)(I.label),ownerState:x,children:g}),O]}))})),mA=FA,pA=(0,Fm.Z)((0,Na.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function EA(e){return(0,of.Z)("MuiAutocomplete",e)}var bA,kA,yA,vA=(0,sf.Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),DA=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],wA=(0,nf.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState,i=a.fullWidth,n=a.hasClearIcon,r=a.hasPopupIcon,o=a.inputFocused,s=a.size;return[(0,Ya.Z)({},"& .".concat(vA.tag),t.tag),(0,Ya.Z)({},"& .".concat(vA.tag),t["tagSize".concat((0,mh.Z)(s))]),(0,Ya.Z)({},"& .".concat(vA.inputRoot),t.inputRoot),(0,Ya.Z)({},"& .".concat(vA.input),t.input),(0,Ya.Z)({},"& .".concat(vA.input),o&&t.inputFocused),t.root,i&&t.fullWidth,r&&t.hasPopupIcon,n&&t.hasClearIcon]}})((function(e){var t,a,i,n,r,o=e.ownerState;return(0,Ba.Z)((t={},(0,Ya.Z)(t,"&.".concat(vA.focused," .").concat(vA.clearIndicator),{visibility:"visible"}),(0,Ya.Z)(t,"@media (pointer: fine)",(0,Ya.Z)({},"&:hover .".concat(vA.clearIndicator),{visibility:"visible"})),t),o.fullWidth&&{width:"100%"},(r={},(0,Ya.Z)(r,"& .".concat(vA.tag),(0,Ba.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===o.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,Ya.Z)(r,"& .".concat(vA.inputRoot),(a={flexWrap:"wrap"},(0,Ya.Z)(a,".".concat(vA.hasPopupIcon,"&, .").concat(vA.hasClearIcon,"&"),{paddingRight:30}),(0,Ya.Z)(a,".".concat(vA.hasPopupIcon,".").concat(vA.hasClearIcon,"&"),{paddingRight:56}),(0,Ya.Z)(a,"& .".concat(vA.input),{width:0,minWidth:30}),a)),(0,Ya.Z)(r,"& .".concat(ry.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,Ya.Z)(r,"& .".concat(ry.root,".").concat(Yk.sizeSmall),(0,Ya.Z)({},"& .".concat(ry.input),{padding:"2px 4px 3px 0"})),(0,Ya.Z)(r,"& .".concat(vy.root),(i={padding:9},(0,Ya.Z)(i,".".concat(vA.hasPopupIcon,"&, .").concat(vA.hasClearIcon,"&"),{paddingRight:39}),(0,Ya.Z)(i,".".concat(vA.hasPopupIcon,".").concat(vA.hasClearIcon,"&"),{paddingRight:65}),(0,Ya.Z)(i,"& .".concat(vA.input),{padding:"7.5px 4px 7.5px 6px"}),(0,Ya.Z)(i,"& .".concat(vA.endAdornment),{right:9}),i)),(0,Ya.Z)(r,"& .".concat(vy.root,".").concat(Yk.sizeSmall),(0,Ya.Z)({padding:6},"& .".concat(vA.input),{padding:"2.5px 4px 2.5px 6px"})),(0,Ya.Z)(r,"& .".concat(dy.root),(n={paddingTop:19,paddingLeft:8},(0,Ya.Z)(n,".".concat(vA.hasPopupIcon,"&, .").concat(vA.hasClearIcon,"&"),{paddingRight:39}),(0,Ya.Z)(n,".".concat(vA.hasPopupIcon,".").concat(vA.hasClearIcon,"&"),{paddingRight:65}),(0,Ya.Z)(n,"& .".concat(dy.input),{padding:"7px 4px"}),(0,Ya.Z)(n,"& .".concat(vA.endAdornment),{right:9}),n)),(0,Ya.Z)(r,"& .".concat(dy.root,".").concat(Yk.sizeSmall),(0,Ya.Z)({paddingBottom:1},"& .".concat(dy.input),{padding:"2.5px 4px"})),(0,Ya.Z)(r,"& .".concat(Yk.hiddenLabel),{paddingTop:8}),(0,Ya.Z)(r,"& .".concat(vA.input),(0,Ba.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},o.inputFocused&&{opacity:1})),r))})),SA=(0,nf.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),CA=(0,nf.ZP)(_m,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),AA=(0,nf.ZP)(_m,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var a=e.ownerState;return(0,Ba.Z)({},t.popupIndicator,a.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,Ba.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),TA=(0,nf.ZP)(JE,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var a=e.ownerState;return[(0,Ya.Z)({},"& .".concat(vA.option),t.option),t.popper,a.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({zIndex:t.zIndex.modal},a.disablePortal&&{position:"absolute"})})),xA=(0,nf.ZP)(cf,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,Ba.Z)({},t.typography.body1,{overflow:"auto"})})),IA=(0,nf.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){return{color:e.theme.palette.text.secondary,padding:"14px 16px"}})),RA=(0,nf.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){return{color:e.theme.palette.text.secondary,padding:"14px 16px"}})),OA=(0,nf.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,a,i=e.theme;return(0,Ya.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},"& .".concat(vA.option),(a={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,Ya.Z)(a,i.breakpoints.up("sm"),{minHeight:"auto"}),(0,Ya.Z)(a,"&.".concat(vA.focused),{backgroundColor:i.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,Ya.Z)(a,'&[aria-disabled="true"]',{opacity:i.palette.action.disabledOpacity,pointerEvents:"none"}),(0,Ya.Z)(a,"&.".concat(vA.focusVisible),{backgroundColor:i.palette.action.focus}),(0,Ya.Z)(a,'&[aria-selected="true"]',(t={backgroundColor:(0,af.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity)},(0,Ya.Z)(t,"&.".concat(vA.focused),{backgroundColor:(0,af.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:i.palette.action.selected}}),(0,Ya.Z)(t,"&.".concat(vA.focusVisible),{backgroundColor:(0,af.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.focusOpacity)}),t)),a))})),LA=(0,nf.ZP)(QC,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){return{backgroundColor:e.theme.palette.background.paper,top:-8}})),NA=(0,nf.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,Ya.Z)({padding:0},"& .".concat(vA.option),{paddingLeft:24})),PA=r.forwardRef((function(e,t){var a,i,n,o=(0,rf.Z)({props:e,name:"MuiAutocomplete"}),s=(o.autoComplete,o.autoHighlight,o.autoSelect,o.blurOnSelect,o.ChipProps),u=o.className,l=o.clearIcon,_=void 0===l?bA||(bA=(0,Na.jsx)(pA,{fontSize:"small"})):l,f=o.clearOnBlur,d=(void 0===f&&o.freeSolo,o.clearOnEscape,o.clearText),c=void 0===d?"Clear":d,g=o.closeText,h=void 0===g?"Close":g,F=o.componentsProps,m=void 0===F?{}:F,p=o.defaultValue,E=(void 0===p&&o.multiple,o.disableClearable),b=void 0!==E&&E,k=(o.disableCloseOnSelect,o.disabled),y=void 0!==k&&k,v=(o.disabledItemsFocusable,o.disableListWrap,o.disablePortal),D=void 0!==v&&v,w=(o.filterSelectedOptions,o.forcePopupIcon),S=void 0===w?"auto":w,C=o.freeSolo,A=void 0!==C&&C,T=o.fullWidth,x=void 0!==T&&T,I=o.getLimitTagsText,R=void 0===I?function(e){return"+".concat(e)}:I,O=o.getOptionLabel,L=void 0===O?function(e){var t;return null!=(t=e.label)?t:e}:O,N=o.groupBy,P=o.handleHomeEndKeys,j=(void 0===P&&o.freeSolo,o.includeInputInList,o.limitTags),B=void 0===j?-1:j,M=o.ListboxComponent,q=void 0===M?"ul":M,G=o.ListboxProps,Z=o.loading,U=void 0!==Z&&Z,z=o.loadingText,W=void 0===z?"Loading\u2026":z,H=o.multiple,V=void 0!==H&&H,K=o.noOptionsText,Y=void 0===K?"No options":K,$=(o.openOnFocus,o.openText),J=void 0===$?"Open":$,X=o.PaperComponent,Q=void 0===X?cf:X,ee=o.PopperComponent,te=void 0===ee?JE:ee,ae=o.popupIcon,ie=void 0===ae?kA||(kA=(0,Na.jsx)(vD,{})):ae,ne=o.readOnly,re=void 0!==ne&&ne,oe=o.renderGroup,se=o.renderInput,ue=o.renderOption,le=o.renderTags,_e=o.selectOnFocus,fe=(void 0===_e&&o.freeSolo,o.size),de=void 0===fe?"medium":fe,ce=(0,ti.Z)(o,DA),ge=uA((0,Ba.Z)({},o,{componentName:"Autocomplete"})),he=ge.getRootProps,Fe=ge.getInputProps,me=ge.getInputLabelProps,pe=ge.getPopupIndicatorProps,Ee=ge.getClearProps,be=ge.getTagProps,ke=ge.getListboxProps,ye=ge.getOptionProps,ve=ge.value,De=ge.dirty,we=ge.id,Se=ge.popupOpen,Ce=ge.focused,Ae=ge.focusedTag,Te=ge.anchorEl,xe=ge.setAnchorEl,Ie=ge.inputValue,Re=ge.groupedOptions,Oe=!b&&!y&&De&&!re,Le=(!A||!0===S)&&!1!==S,Ne=(0,Ba.Z)({},o,{disablePortal:D,focused:Ce,fullWidth:x,hasClearIcon:Oe,hasPopupIcon:Le,inputFocused:-1===Ae,popupOpen:Se,size:de}),Pe=function(e){var t=e.classes,a=e.disablePortal,i=e.focused,n=e.fullWidth,r=e.hasClearIcon,o=e.hasPopupIcon,s=e.inputFocused,u=e.popupOpen,l=e.size,_={root:["root",i&&"focused",n&&"fullWidth",r&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,mh.Z)(l))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",a&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,tf.Z)(_,EA,t)}(Ne);if(V&&ve.length>0){var je=function(e){return(0,Ba.Z)({className:(0,ef.Z)(Pe.tag),disabled:y},be(e))};n=le?le(ve,je):ve.map((function(e,t){return(0,Na.jsx)(mA,(0,Ba.Z)({label:L(e),size:de},je({index:t}),s))}))}if(B>-1&&Array.isArray(n)){var Be=n.length-B;!Ce&&Be>0&&(n=n.splice(0,B)).push((0,Na.jsx)("span",{className:Pe.tag,children:R(Be)},n.length))}var Me=oe||function(e){return(0,Na.jsxs)("li",{children:[(0,Na.jsx)(LA,{className:Pe.groupLabel,ownerState:Ne,component:"div",children:e.group}),(0,Na.jsx)(NA,{className:Pe.groupUl,ownerState:Ne,children:e.children})]},e.key)},qe=ue||function(e,t){return(0,Na.jsx)("li",(0,Ba.Z)({},e,{children:L(t)}))},Ge=function(e,t){var a=ye({option:e,index:t});return qe((0,Ba.Z)({},a,{className:Pe.option}),e,{selected:a["aria-selected"],inputValue:Ie})};return(0,Na.jsxs)(r.Fragment,{children:[(0,Na.jsx)(wA,(0,Ba.Z)({ref:t,className:(0,ef.Z)(Pe.root,u),ownerState:Ne},he(ce),{children:se({id:we,disabled:y,fullWidth:!0,size:"small"===de?"small":void 0,InputLabelProps:me(),InputProps:{ref:xe,className:Pe.inputRoot,startAdornment:n,endAdornment:(0,Na.jsxs)(SA,{className:Pe.endAdornment,ownerState:Ne,children:[Oe?(0,Na.jsx)(CA,(0,Ba.Z)({},Ee(),{"aria-label":c,title:c,ownerState:Ne},m.clearIndicator,{className:(0,ef.Z)(Pe.clearIndicator,null==(a=m.clearIndicator)?void 0:a.className),children:_})):null,Le?(0,Na.jsx)(AA,(0,Ba.Z)({},pe(),{disabled:y,"aria-label":Se?h:J,title:Se?h:J,className:(0,ef.Z)(Pe.popupIndicator),ownerState:Ne,children:ie})):null]})},inputProps:(0,Ba.Z)({className:(0,ef.Z)(Pe.input),disabled:y,readOnly:re},Fe())})})),Se&&Te?(0,Na.jsx)(TA,{as:te,className:(0,ef.Z)(Pe.popper),disablePortal:D,style:{width:Te?Te.clientWidth:null},ownerState:Ne,role:"presentation",anchorEl:Te,open:!0,children:(0,Na.jsxs)(xA,(0,Ba.Z)({ownerState:Ne,as:Q},m.paper,{className:(0,ef.Z)(Pe.paper,null==(i=m.paper)?void 0:i.className),children:[U&&0===Re.length?(0,Na.jsx)(IA,{className:Pe.loading,ownerState:Ne,children:W}):null,0!==Re.length||A||U?null:(0,Na.jsx)(RA,{className:Pe.noOptions,ownerState:Ne,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Y}),Re.length>0?(0,Na.jsx)(OA,(0,Ba.Z)({as:q,className:Pe.listbox,ownerState:Ne},ke(),G,{children:Re.map((function(e,t){return N?Me({key:e.key,group:e.group,children:e.options.map((function(t,a){return Ge(t,e.index+a)}))}):Ge(e,t)}))})):null]}))}):null]})})),jA=PA;!function(e){e.FETCH_MESSAGE_CONVERSATIONS="npwd:fetchMessageGroups",e.FETCH_MESSAGE_GROUPS_SUCCESS="npwd:fetchMessageGroupsSuccess",e.FETCH_MESSAGE_GROUPS_FAILED="npwd:fetchMessageGroupsFailed",e.CREATE_MESSAGE_CONVERSATION="npwd:createMessageGroup",e.CREATE_MESSAGE_CONVERSATION_SUCCESS="npwd:createMessageConversationSuccess",e.CREATE_MESSAGE_GROUP_SUCCESS="npwd:createMessageGroupSuccess",e.CREATE_MESSAGE_GROUP_FAILED="npwd:createMessageGroupFailed",e.SEND_MESSAGE="npwd:sendMessage",e.SEND_EMBED_MESSAGE="npwd:sendEmbedMessage",e.SEND_MESSAGE_SUCCESS="npwd:sendMessageSuccess",e.SEND_MESSAGE_FAILED="npwd:sendMessageFailed",e.DELETE_MESSAGE="npwd:deleteMessage",e.FETCH_MESSAGES="npwd:fetchMessages",e.FETCH_MESSAGES_SUCCESS="npwd:fetchMessagesSuccess",e.FETCH_MESSAGES_FAILED="npwd:fetchMessagesFailed",e.FETCH_INITIAL_MESSAGES="npwd:fetchInitialMessages",e.ACTION_RESULT="npwd:setMessagesAlert",e.CREATE_MESSAGE_BROADCAST="npwd:createMessagesBroadcast",e.SET_MESSAGE_READ="npwd:setReadMessages",e.DELETE_CONVERSATION="nwpd:deleteConversation"}(yA||(yA={}));var BA=[{conversation_id:"4444+5555",avatar:"https://i.imgur.com/GCBVgXD.jpeg",phoneNumber:"215-8139",unread:0,display:"Taso",updatedAt:5},{conversation_id:"4444+7777",avatar:"",phoneNumber:"603-275-8373",unread:3,display:"Chip",updatedAt:15},{conversation_id:"3333+5555",avatar:"",phoneNumber:"555-15196",unread:3,display:"Rocko",updatedAt:5},{conversation_id:"2222+1111",avatar:"",phoneNumber:"444-4444",unread:3,display:"Kidz",updatedAt:7}],MA={data:[{id:1,author:"215-8139",message:"",conversation_id:"4444+5555"},{id:2,author:"215-8139",message:"Hi asljdf klasdfjkasjdf sdfjf asdf djkjas k kksdfjjsl ks kldfs d fd asd asdfjasdjfjasdkljjfklasjldfjlj asdf sadfdsdkafjkljsdklfjklfjdf"},{id:3,author:"215-8139",message:"Hello",conversation_id:"4444+5555"},{id:5,author:"215-8139",message:"https://i.tasoagc.dev/LtuA.png"}],status:"ok"},qA=F_({key:"currentGroupId",default:null}),GA={messageCoversations:F_({key:"messageConversations",default:m_({key:"defaultMessageConversation",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(yA.FETCH_MESSAGE_CONVERSATIONS,void 0,C_(BA));case 3:return t=e.sent,e.abrupt("return",t.data);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[]);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}()})}),filterValue:F_({key:"defaultFilterValue",default:""}),filteredMessageConversations:m_({key:"defaultFilteredMessageConversations",get:function(e){var t=e.get,a=t(GA.filterValue),i=t(GA.messageCoversations);if(!a)return i;var n=new RegExp(a,"gi");return i.filter((function(e){var t;return(null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.match(n))||e.phoneNumber.match(n)}))}}),messages:F_({key:"messages",default:[]}),activeMessageConversation:F_({key:"activeMessageGroup",default:null}),showNewMessageGroup:F_({key:"showNewMessageGroup",default:!1}),createMessageGroupResult:F_({key:"createMessageGroupResult",default:null}),imageModal:F_({key:"useImageModal",default:!1}),unreadMessagesCount:F_({key:"unreadMessagesCount",default:0}),selectedMessage:F_({key:"selectedMessage",default:null}),checkedConversations:F_({key:"checkedConversation",default:[]}),isEditing:F_({key:"messageIsEditing",default:!1})},ZA=function(){return k_(GA.messages)},UA=function(){return b_(GA.isEditing)},zA=function(){var e=E_(GA.messages).state,t=E_(GA.messageCoversations),a=t.state,i=t.contents,n=k_(GA.messageCoversations),o=ZA(),s=(0,r.useCallback)((function(e){n((function(t){return[e].concat((0,Va.Z)(t))}))}),[n]),u=(0,r.useCallback)((function(e,t){n((function(a){return a.map((function(a){return a.conversation_id===e?(0,Ha.Z)((0,Ha.Z)({},a),{},{unread:t}):a}))}))}),[n]);return{updateLocalConversations:s,removeLocalConversation:(0,r.useCallback)((function(e){"hasValue"===a&&i.length&&n((function(t){return(0,Va.Z)(t).filter((function(t){return!e.includes(t.conversation_id)}))}))}),[n,a,i]),updateLocalMessages:(0,r.useCallback)((function(t){"hasValue"===e&&o((function(e){return[].concat((0,Va.Z)(e),[{message:t.message,conversation_id:t.conversation_id,author:t.author,id:t.id,is_embed:t.is_embed,embed:t.embed}])}))}),[e,o]),deleteLocalMessage:(0,r.useCallback)((function(e){o((function(t){return(0,Va.Z)(t).filter((function(t){return t.id!==e}))}))}),[o]),setMessageReadState:u}},WA=function(){var e=Wh().addAlert,t=uF(),a=(0,Ka.Z)(t,1)[0],i=zA(),n=i.updateLocalMessages,o=i.deleteLocalMessage,s=i.updateLocalConversations,u=i.removeLocalConversation,l=fe(),_=E_(GA.messageCoversations),f=_.state,d=_.contents,c=Rm(),g=c.getPictureByNumber,h=c.getDisplayByNumber,F=ZA(),m=zh(),p=(0,r.useCallback)((function(t){var i=t.conversationId,r=t.message,o=t.tgtPhoneNumber;T_(yA.SEND_MESSAGE,{conversationId:i,message:r,tgtPhoneNumber:o,sourcePhoneNumber:m}).then((function(t){if("ok"!==t.status)return e({message:a("MESSAGES.FEEDBACK.NEW_MESSAGE_FAILED"),type:"error"});n(t.data)}))}),[n,a,e,m]),E=(0,r.useCallback)((function(t){var i=t.conversationId,r=t.embed,o=t.tgtPhoneNumber;T_(yA.SEND_MESSAGE,{conversationId:i,embed:JSON.stringify(r),is_embed:!0,tgtPhoneNumber:o,sourcePhoneNumber:m}).then((function(t){if("ok"!==t.status)return e({message:a("MESSAGES.FEEDBACK.NEW_MESSAGE_FAILED"),type:"error"});n(t.data)}))}),[a,n,e,m]),b=(0,r.useCallback)((function(t){T_(yA.DELETE_MESSAGE,t).then((function(i){if("ok"!==i.status)return e({message:a("MESSAGES.FEEDBACK.DELETE_MESSAGE_FAILED"),type:"error"});o(t.id)}))}),[o,e,a]),k=(0,r.useCallback)((function(t){"hasValue"===f&&T_(yA.CREATE_MESSAGE_CONVERSATION,{targetNumber:t}).then((function(i){if("ok"!==i.status)return l.push("/messages"),e({message:a('MESSAGE_CONVERSATION_CREATE_ONE_NUMBER_FAILED"',{number:t}),type:"error"});if(d.find((function(e){return e.conversation_id===i.data.conversation_id})))return l.push("/messages"),e({message:a("MESSAGES.FEEDBACK.MESSAGE_CONVERSATION_DUPLICATE"),type:"error"});var n=h(i.data.phoneNumber),r=g(i.data.phoneNumber);s({phoneNumber:i.data.phoneNumber,conversation_id:i.data.conversation_id,updatedAt:i.data.updatedAt,display:n,unread:0,avatar:r}),l.push("/messages/conversations/".concat(i.data.conversation_id))}))}),[l,s,e,a,h,g,d,f]);return{sendMessage:p,deleteMessage:b,deleteConversation:(0,r.useCallback)((function(t){T_(yA.DELETE_CONVERSATION,{conversationsId:t}).then((function(i){if("ok"!==i.status)return e({message:a("MESSAGES.DELETE_CONVERSATION_FAILED"),type:"error"});u(t)}))}),[e,a,u]),addConversation:k,fetchMessages:(0,r.useCallback)((function(t,i){T_(yA.FETCH_MESSAGES,{conversationId:t,page:i},MA).then((function(t){if("ok"!==t.status)return e({message:a("MESSAGES.FEEDBACK.FETCHED_MESSAGES_FAILED"),type:"error"}),l.push("/messages");F(t.data)}))}),[F,e,a,l]),sendEmbedMessage:E}},HA=function(e){var t=e.phoneNumber,a=fe(),i=uF(),n=(0,Ka.Z)(i,1)[0],o=(0,r.useState)(""),s=(0,Ka.Z)(o,2),u=s[0],l=s[1],_=(0,r.useState)(""),f=(0,Ka.Z)(_,2),d=f[0],c=f[1],g=Rm().getContactByNumber,h=Im(),F=WA().addConversation;(0,r.useEffect)((function(){if(t){var e=g(t);e?l(e):c(t)}}),[t,g]);var m=!d&&!u;return(0,Na.jsxs)(lh,{children:[(0,Na.jsx)(lh,{px:2,py:3,children:(0,Na.jsx)(jA,{value:u,inputValue:d,freeSolo:!0,disablePortal:!0,PopperComponent:function(e){return(0,Na.jsx)(JE,(0,Ha.Z)({placement:"bottom-start"},e))},autoHighlight:!0,options:h,ListboxProps:{style:{marginLeft:10}},getOptionLabel:function(e){return e.display||e.number||u},onChange:function(e,t){return l(t)},onInputChange:function(e,t){return c(t)},renderInput:function(e){return(0,Na.jsx)(PD,(0,Ha.Z)((0,Ha.Z)({},e),{},{fullWidth:!0,label:n("MESSAGES.INPUT_NAME_OR_NUMBER"),onChange:function(e){return l(e.currentTarget.value)}}))}})}),(0,Na.jsxs)(lh,{px:2,py:3,children:[(0,Na.jsx)(rp,{onClick:function(){return function(){if(d||u){var e,t=null!==(e=u.number)&&void 0!==e?e:d;F(t)}}()},disabled:m,variant:"contained",fullWidth:!0,sx:{mb:1},color:"primary",type:"submit",children:n("MESSAGES.NEW_MESSAGE_GROUP_SUBMIT")}),(0,Na.jsx)(rp,{onClick:function(){a.goBack()},variant:"contained",fullWidth:!0,color:"error",children:n("GENERIC_CANCEL")})]})]})},VA=qm(cf)({height:"100%",width:"100%",display:"flex",flexGrow:1,flexDirection:"column"}),KA=function(){var e=ZD().phoneNumber;return(0,Na.jsx)(aS,{direction:"left",in:!0,children:(0,Na.jsx)(VA,{children:(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:(0,Na.jsx)(HA,{phoneNumber:e})})})})},YA=function(){var e=fe(),t=E_(GA.messageCoversations),a=t.state,i=t.contents,n=p_(w_([GA.activeMessageConversation])),o=(0,Ka.Z)(n,1)[0],s=k_(qA),u=k_(GA.activeMessageConversation),l=(0,r.useCallback)((function(e){if("hasValue"===a&&i.length)return i&&i.find((function(t){return t.conversation_id===e}))}),[i,a]),_=(0,r.useCallback)((function(e){var t=l(e);return u(t),t}),[u,l]),f=(0,r.useCallback)((function(t){null!==t&&void 0!==t&&t.conversation_id&&e&&(s(t.conversation_id),e.push("/messages/conversations/".concat(t.conversation_id)))}),[s,e]);return{activeMessageConversation:o,setActiveMessageConversation:_,getMessageConversationById:l,goToConversation:f,conversations:i}},$A=(0,Fm.Z)((0,Na.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),JA=(0,Fm.Z)((0,Na.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),XA=(0,Fm.Z)((0,Na.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function QA(e){return(0,of.Z)("MuiCheckbox",e)}var eT=(0,sf.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),tT=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],aT=(0,nf.ZP)(YS,{shouldForwardProp:function(e){return(0,nf.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.indeterminate&&t.indeterminate,"default"!==a.color&&t["color".concat((0,mh.Z)(a.color))]]}})((function(e){var t,a=e.theme,i=e.ownerState;return(0,Ba.Z)({color:a.palette.text.secondary},!i.disableRipple&&{"&:hover":{backgroundColor:(0,af.Fq)("default"===i.color?a.palette.action.active:a.palette[i.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==i.color&&(t={},(0,Ya.Z)(t,"&.".concat(eT.checked,", &.").concat(eT.indeterminate),{color:a.palette[i.color].main}),(0,Ya.Z)(t,"&.".concat(eT.disabled),{color:a.palette.action.disabled}),t))})),iT=(0,Na.jsx)(JA,{}),nT=(0,Na.jsx)($A,{}),rT=(0,Na.jsx)(XA,{}),oT=r.forwardRef((function(e,t){var a,i,n=(0,rf.Z)({props:e,name:"MuiCheckbox"}),o=n.checkedIcon,s=void 0===o?iT:o,u=n.color,l=void 0===u?"primary":u,_=n.icon,f=void 0===_?nT:_,d=n.indeterminate,c=void 0!==d&&d,g=n.indeterminateIcon,h=void 0===g?rT:g,F=n.inputProps,m=n.size,p=void 0===m?"medium":m,E=(0,ti.Z)(n,tT),b=c?h:f,k=c?h:s,y=(0,Ba.Z)({},n,{color:l,indeterminate:c,size:p}),v=function(e){var t=e.classes,a=e.indeterminate,i=e.color,n={root:["root",a&&"indeterminate","color".concat((0,mh.Z)(i))]},r=(0,tf.Z)(n,QA,t);return(0,Ba.Z)({},t,r)}(y);return(0,Na.jsx)(aT,(0,Ba.Z)({type:"checkbox",inputProps:(0,Ba.Z)({"data-indeterminate":c},F),icon:r.cloneElement(b,{fontSize:null!=(a=b.props.fontSize)?a:p}),checkedIcon:r.cloneElement(k,{fontSize:null!=(i=k.props.fontSize)?i:p}),ownerState:y,ref:t},E,{classes:v}))})),sT=oT,uT=function(e){var t,a,i=e.messageConversation,n=e.handleClick,o=e.isEditing,s=e.checked,u=e.handleToggle,l=xm(),_=Rm().getContactByNumber,f=(0,r.useCallback)((function(e){return l.length?_(e):null}),[l,_]);return(0,Na.jsxs)(_k,{onClick:o?function(){u(i.conversation_id)}:n(i),divider:!0,button:!0,children:[o&&(0,Na.jsx)(mk,{children:(0,Na.jsx)(sT,{edge:"start",checked:-1!==s.indexOf(i.conversation_id),disableRipple:!0})}),(0,Na.jsx)(fw,{children:(0,Na.jsx)(Ep,{color:"error",badgeContent:i.unread<=99?i.unread:"99+",invisible:i.unread<=0,children:(0,Na.jsx)(Cm,{src:null===(t=f(i.phoneNumber))||void 0===t?void 0:t.avatar})})}),(0,Na.jsx)(vk,{sx:{overflow:"hidden"},children:(null===(a=f(i.phoneNumber))||void 0===a?void 0:a.display)||i.phoneNumber})]},i.conversation_id)},lT=eh((function(e){return{root:{height:"580px",overflowY:"auto"}}})),_T=a(1286),fT=function(){var e=UA(),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=b_(GA.checkedConversations),r=(0,Ka.Z)(n,2),o=r[0],s=r[1],u=lT(),l=uF(),_=(0,Ka.Z)(l,1)[0],f=YA(),d=f.conversations,c=f.goToConversation,g=zA().setMessageReadState,h=p_(GA.filteredMessageConversations),F=b_(GA.filterValue),m=(0,Ka.Z)(F,2),p=m[0],E=m[1];if(!d)return(0,Na.jsx)("p",{children:"No messages"});var b=function(e){return function(){g(e.conversation_id,0),c(e)}},k=function(e){var t=o.indexOf(e),a=(0,Va.Z)(o);-1===t?a.push(e):a.splice(t,1),s(a)};return(0,Na.jsxs)(lh,{display:"flex",flexDirection:"column",children:[!!d.length&&(0,Na.jsx)(lh,{position:"absolute",top:10,right:3,children:(0,Na.jsx)(_m,{onClick:function(){i((function(e){return!e}))},children:(0,Na.jsx)(_T.Z,{})})}),(0,Na.jsx)(lh,{children:(0,Na.jsx)(mw,{value:p,onChange:function(e){return E(e.target.value)},placeholder:_("MESSAGES.SEARCH_PLACEHOLDER")})}),(0,Na.jsx)(lh,{display:"flex",flexDirection:"column",children:(0,Na.jsx)(lh,{className:u.root,children:(0,Na.jsx)(Vb,{children:(0,Va.Z)(h).sort((function(e,t){return t.updatedAt-e.updatedAt})).map((function(e){return(0,Na.jsx)(uT,{handleToggle:k,isEditing:a,checked:o,messageConversation:e,handleClick:b},e.conversation_id)}))})})})]})},dT=a(1686),cT=a(3505),gT=function(e){var t=e.messageConversation,a=e.onAddImageClick,i=uF(),n=(0,Ka.Z)(i,1)[0],o=(0,r.useState)(""),s=(0,Ka.Z)(o,2),u=s[0],l=s[1],_=WA().sendMessage,f=function(){var e=ri(bi().mark((function e(){return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.trim()){e.next=4;break}return e.next=3,_({conversationId:t.conversation_id,message:u,tgtPhoneNumber:t.phoneNumber});case 3:l("");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=ri(bi().mark((function e(t){return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==t.key||t.shiftKey){e.next=3;break}return e.next=3,f();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return t.conversation_id?(0,Na.jsxs)(cf,{variant:"outlined",sx:{display:"flex",alignItems:"center"},children:[(0,Na.jsx)(lh,{pl:3,pt:1,pb:1,flexGrow:1,children:(0,Na.jsx)(PD,{onKeyPress:d,multiline:!0,maxRows:4,"aria-multiline":"true",fullWidth:!0,inputProps:{style:{fontSize:"1.3em"}},value:u,onChange:function(e){return l(e.target.value)},placeholder:n("MESSAGES.NEW_MESSAGE")})}),(0,Na.jsxs)(lh,{children:[(0,Na.jsx)(rp,{onClick:a,children:(0,Na.jsx)(cT.Z,{})}),(0,Na.jsx)(rp,{onClick:f,children:(0,Na.jsx)(dT.Z,{})})]})]}):null},hT=qm(lh)({wordBreak:"break-word",display:"flex",justifyContent:"space-between",alignItems:"center"}),FT=eh({root:{width:"100%",objectFit:"contain"}}),mT=function(e){var t=e.src,a=e.alt;return(0,Na.jsx)("img",{className:FT().root,src:t,alt:a})},pT=eh((function(e){return{cover:{cursor:"pointer",backgroundColor:e.palette.background.default,color:e.palette.getContrastText(e.palette.background.default),visibility:function(e){return e.covered?"visible":"hidden"}}}})),ET=function(e){var t=e.children,a=N_(),i=(0,Ka.Z)(a,1)[0],n=(0,r.useState)(!1),o=(0,Ka.Z)(n,2),s=o[0],u=o[1],l=(0,r.useState)(!1),_=(0,Ka.Z)(l,2),f=_[0],d=_[1],c=uF(),g=(0,Ka.Z)(c,1)[0],h=pT({covered:s});(0,r.useEffect)((function(){!0===i.streamerMode&&u(!0),d(!0)}),[i.streamerMode]);return(0,Na.jsxs)(lh,{width:"100%",position:"relative",children:[(0,Na.jsx)(lh,{onClick:function(){return u(!1)},className:h.cover,width:"100%",height:"100%",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:0,left:0,children:g("GENERIC_CLICK_TO_REVEAL")}),(0,Na.jsx)(lh,{width:"100%",height:"100%",visibility:f?"visible":"hidden",children:t})]})},bT=a(5456),kT=function(e){var t=e.open,a=e.handleClose,i=uF(),n=(0,Ka.Z)(i,1)[0],o=WA().deleteMessage,s=p_(GA.selectedMessage),u=(0,r.useCallback)((function(){o(s)}),[o,s]),l=(0,r.useMemo)((function(){return[{label:n("MESSAGES.FEEDBACK.DELETE_MESSAGE"),icon:(0,Na.jsx)(bT.Z,{}),onClick:u}]}),[u,n]);return(0,Na.jsx)(nS,{open:t,onClose:a,options:l})},yT=function(e){var t=e.isMine,a=e.embed,i=uF(),n=(0,Ka.Z)(i,1)[0],r=fe(),o=de().pathname,s=Rm().getContactByNumber,u=!t&&!s(null===a||void 0===a?void 0:a.number);return(0,Na.jsxs)(hT,{children:[(0,Na.jsxs)(lh,{children:[(0,Na.jsx)(Cm,{src:null===a||void 0===a?void 0:a.avatar}),(0,Na.jsx)(EF,{children:null===a||void 0===a?void 0:a.display}),(0,Na.jsx)(EF,{children:null===a||void 0===a?void 0:a.number})]}),u&&(0,Na.jsx)(lh,{children:(0,Na.jsx)(rp,{fullWidth:!0,variant:"contained",color:"primary",onClick:function(){var e=encodeURIComponent(o);r.push("/contacts/-1?addNumber=".concat(a.number,"&name=").concat(a.display,"&referal=").concat(e))},children:n("GENERIC.ADD")})})]})},vT=function(e){var t=e.type,a=e.embed,i=e.isMine,n={contact:(0,Na.jsx)(yT,{embed:a,isMine:i})};return(0,Na.jsx)(Na.Fragment,{children:n[t]})},DT=eh((function(e){return{mySms:{float:"right",margin:e.spacing(1),padding:"6px 16px",height:"auto",width:"auto",minWidth:"60%",maxWidth:"85%",background:e.palette.background.default,color:e.palette.text.primary,borderRadius:"20px",textOverflow:"ellipsis"},sms:{float:"left",margin:e.spacing(1),padding:"6px 12px",width:"auto",minWidth:"60%",maxWidth:"85%",height:"auto",background:e.palette.primary.light,color:e.palette.getContrastText(e.palette.primary.light),borderRadius:"15px",textOverflow:"ellipsis"},message:{wordBreak:"break-word",display:"flex",justifyContent:"space-between",alignItems:"center"}}})),wT=function(e){var t,a,i=e.message,n=DT(),o=(0,r.useState)(!1),s=(0,Ka.Z)(o,2),u=s[0],l=s[1],_=k_(GA.selectedMessage),f=zh(),d=i.author===f;return null!==i&&void 0!==i&&i.embed&&(t=JSON.parse(null===i||void 0===i?void 0:i.embed)),(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(cf,{className:d?n.mySms:n.sms,variant:"outlined",children:i.is_embed?(0,Na.jsx)(vT,{type:t.type,embed:t,isMine:d}):(0,Na.jsxs)(hT,{children:[(a=i.message,/(http(s?):)([/|.|\w|\s|-])*\.(?:jpg|png|jpeg|gif)/g.test(a)?(0,Na.jsx)(ET,{children:(0,Na.jsx)(mT,{src:i.message,alt:"message multimedia"})}):(0,Na.jsx)(Na.Fragment,{children:i.message})),d&&(0,Na.jsx)(_m,{onClick:function(){l(!0),_(i)},children:(0,Na.jsx)(cw.Z,{})})]})}),(0,Na.jsx)(kT,{open:u,handleClose:function(){return l(!1)}})]})},ST=function(e,t){return ST=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])},ST(e,t)};var CT=function(){return CT=Object.assign||function(e){for(var t,a=1,i=arguments.length;a=Number(a.props.pullDownToRefreshThreshold)&&a.setState({pullToRefreshThresholdBreached:!0}),a.currentY-a.startY>1.5*a.maxPullDownDistance||a._infScroll&&(a._infScroll.style.overflow="visible",a._infScroll.style.transform="translate3d(0px, "+(a.currentY-a.startY)+"px, 0px)")))},a.onEnd=function(){a.startY=0,a.currentY=0,a.dragging=!1,a.state.pullToRefreshThresholdBreached&&(a.props.refreshFunction&&a.props.refreshFunction(),a.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){a._infScroll&&(a._infScroll.style.overflow="auto",a._infScroll.style.transform="none",a._infScroll.style.willChange="unset")}))},a.onScrollListener=function(e){"function"===typeof a.props.onScroll&&setTimeout((function(){return a.props.onScroll&&a.props.onScroll(e)}),0);var t=a.props.height||a._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;a.actionTriggered||((a.props.inverse?a.isElementAtTop(t,a.props.scrollThreshold):a.isElementAtBottom(t,a.props.scrollThreshold))&&a.props.hasMore&&(a.actionTriggered=!0,a.setState({showLoader:!0}),a.props.next&&a.props.next()),a.lastScrollTop=t.scrollTop)},a.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},a.throttledOnScrollListener=function(e,t,a,i){var n,r=!1,o=0;function s(){n&&clearTimeout(n)}function u(){var u=this,l=Date.now()-o,_=arguments;function f(){o=Date.now(),a.apply(u,_)}function d(){n=void 0}r||(i&&!n&&f(),s(),void 0===i&&l>e?f():!0!==t&&(n=setTimeout(i?d:f,void 0===i?e-l:e)))}return"boolean"!==typeof t&&(i=a,a=t,t=void 0),u.cancel=function(){s(),r=!0},u}(150,a.onScrollListener).bind(a),a.onStart=a.onStart.bind(a),a.onMove=a.onMove.bind(a),a.onEnd=a.onEnd.bind(a),a}return function(e,t){function a(){this.constructor=e}ST(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}(t,e),t.prototype.componentDidMount=function(){if("undefined"===typeof this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"===typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!==typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n Pull Down To Refresh functionality will not work\n as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength!==t.prevDataLength?CT(CT({},t),{prevDataLength:e.dataLength}):null},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var a=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,i=IT(t);return i.unit===AT?e.scrollTop<=i.value+a-e.scrollHeight+1:e.scrollTop<=i.value/100+a-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var a=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,i=IT(t);return i.unit===AT?e.scrollTop+a>=e.scrollHeight-i.value:e.scrollTop+a>=i.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=CT({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),a=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.createElement("div",{style:i,className:"infinite-scroll-component__outerdiv"},r.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&r.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},r.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!a&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(r.Component),OT=RT,LT=a(8535),NT=a(9823),PT=eh({root:{padding:"24px",zIndex:10,marginTop:"15px",width:"90%",display:"flex",flexFlow:"column nowrap",position:"absolute",top:"80px"},displayBlock:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",position:"relative"},displayNone:{display:"none"},imageModalCloseButton:{position:"absolute",right:0,top:0,width:"10%"}}),jT=function(e){var t=e.children,a=e.visible,i=e.handleClose,n=PT(),r=a?n.displayBlock:n.displayNone;return(0,Na.jsx)("div",{className:r,children:(0,Na.jsxs)(cf,{className:n.root,children:[(0,Na.jsx)(rp,{onClick:i,className:n.imageModalCloseButton,children:(0,Na.jsx)(NT.Z,{})}),t]})})},BT=a(1272),MT=a.n(BT),qT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=MT()(e.pathname+e.search),i=a.query;return"".concat(e.pathname,"/?").concat(GD().stringify((0,Ha.Z)((0,Ha.Z)({},i),{},(0,Ya.Z)({},t,void 0))))},GT=function(e){var t=e.messageGroup,a=e.onClose,i=e.image,n=e.setImagePreview,o=e.imagePreview,s=fe(),u=uF(),l=(0,Ka.Z)(u,1)[0],_=de(),f=_.pathname,d=_.search,c=WA().sendMessage,g=(0,r.useCallback)((function(){n(null),s.replace(qT({pathname:f,search:d},"image"))}),[s,f,d,n]),h=(0,r.useCallback)((function(e){c({conversationId:t.conversation_id,message:e,tgtPhoneNumber:t.phoneNumber}),a()}),[c,t,a]),F=(0,r.useCallback)((function(e){h(e),g()}),[g,h]);return(0,r.useEffect)((function(){i&&n(i)}),[i,n]),(0,Na.jsx)(Na.Fragment,{children:(0,Na.jsx)(jT,{visible:o,handleClose:g,children:(0,Na.jsxs)(lh,{py:1,children:[(0,Na.jsx)(EF,{paragraph:!0,children:l("MESSAGES.SHARE_IMAGE_TITLE")}),(0,Na.jsx)(mT,{src:o,alt:"Share gallery image preview"}),(0,Na.jsx)(rp,{fullWidth:!0,variant:"contained",color:"primary",onClick:function(){return F(o)},children:l("GENERIC.SHARE")})]})})})},ZT=function(e){var t=e.isVisible,a=e.onClose,i=e.messageGroup,n=uF(),o=(0,Ka.Z)(n,1)[0],s=Im(),u=(0,r.useState)(null),l=(0,Ka.Z)(u,2),_=l[0],f=l[1],d=WA().sendEmbedMessage;return(0,Na.jsxs)(jT,{visible:t,handleClose:a,children:[(0,Na.jsx)(lh,{py:1,children:(0,Na.jsx)(EF,{paragraph:!0,children:o("MESSAGES.SHARE_CONTACT_TITLE")})}),(0,Na.jsx)(lh,{pb:2,children:(0,Na.jsx)(jA,{renderInput:function(e){return(0,Na.jsx)(PD,(0,Ha.Z)((0,Ha.Z)({},e),{},{label:"Choose contact"}))},getOptionLabel:function(e){return e.display},options:s,onChange:function(e,t){return f(t)}})}),(0,Na.jsx)(rp,{disabled:!_,fullWidth:!0,variant:"contained",color:"primary",onClick:function(){d({conversationId:i.conversation_id,embed:(0,Ha.Z)({type:"contact"},_),tgtPhoneNumber:i.phoneNumber}),a()},children:o("GENERIC.SHARE")})]})},UT=qm("div")({background:"black",opacity:"0.6",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:5}),zT=function(e){var t=e.isOpen,a=e.onClose,i=e.messageGroup,n=e.image,o=fe(),s=uF(),u=(0,Ka.Z)(s,1)[0],l=de(),_=l.pathname,f=l.search,d=(0,r.useState)(null),c=(0,Ka.Z)(d,2),g=c[0],h=c[1],F=(0,r.useState)(!1),m=(0,Ka.Z)(F,2),p=m[0],E=m[1],b=g||p,k=(0,r.useMemo)((function(){return[{label:u("MESSAGES.MEDIA_OPTION"),icon:(0,Na.jsx)(bT.Z,{}),onClick:function(){return o.push("/camera?".concat(GD().stringify({referal:encodeURIComponent(_+f)})))}},{label:u("MESSAGES.CONTACT_OPTION"),icon:(0,Na.jsx)(LT.Z,{}),onClick:function(){return E(!0)}}]}),[o,_,f,u]);return(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(nS,{open:t,onClose:a,options:k}),b?(0,Na.jsx)(UT,{}):void 0,(0,Na.jsx)(GT,{image:n,imagePreview:g,setImagePreview:h,messageGroup:i,onClose:a}),(0,Na.jsx)(ZT,{messageGroup:i,isVisible:p,onClose:function(){return E(!1)}})]})},WT="message-modal-conversation",HT=function(e){var t=e.activeMessageGroup,a=e.messages,i=(0,r.useState)(!1),n=(0,Ka.Z)(i,2),o=n[0],s=n[1],u=ZD(),l=(null===u||void 0===u?void 0:u.image)||null,_=p_(qA),f=Wh().addAlert,d=fe(),c=ZA(),g=uF(),h=(0,Ka.Z)(g,1)[0],F=(0,r.useState)(1),m=(0,Ka.Z)(F,2),p=m[0],E=m[1],b=(0,r.useState)(!!a.length),k=(0,Ka.Z)(b,2),y=k[0],v=k[1],D=(0,Rm().getContactByNumber)(t.phoneNumber),w=(0,r.useCallback)((function(){T_(yA.FETCH_MESSAGES,{conversationId:_,page:p}).then((function(e){if("ok"!==e.status)return f({message:h("MESSAGES.FEEDBACK.FETCHED_MESSAGES_FAILED"),type:"error"}),d.push("/messages");0!==e.data.length?(v(!0),E((function(e){return e+1})),c((function(t){return[].concat((0,Va.Z)(e.data),(0,Va.Z)(t))}))):v(!1)}))}),[f,_,c,d,h,p,E]);return(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsxs)(lh,{display:"flex",zIndex:1,flexGrow:1,flexDirection:"column",children:[(0,Na.jsx)(zT,{messageGroup:t,isOpen:o,onClose:function(){return s(!1)},image:l}),(0,Na.jsx)(lh,{id:WT,style:{flex:1,display:"flex",overflowY:"auto"},children:(0,Na.jsx)(lh,{style:{display:"flex",flexDirection:"column",minHeight:"min-content",width:"100%"},children:(0,Na.jsx)("div",{id:"scrollableDiv",style:{overflow:"auto",maxHeight:554,display:"flex",flexDirection:"column-reverse"},children:(0,Na.jsx)(OT,{next:w,scrollableTarget:"scrollableDiv",hasMore:y,inverse:!0,loader:(0,Na.jsx)(jh,{}),dataLength:a.length,children:a.map((function(e){return(0,Na.jsx)(wT,{message:e},e.id)}))})})})})]}),(0,Na.jsx)(gT,{messageGroupName:(null===D||void 0===D?void 0:D.display)||t.phoneNumber,messageConversation:t,onAddImageClick:function(){return s(!0)}})]})};function VT(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function KT(e){return parseFloat(e)}function YT(e){return(0,of.Z)("MuiSkeleton",e)}(0,sf.Z)("MuiSkeleton",["root","text","rectangular","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var $T,JT,XT,QT,ex,tx,ax,ix,nx=["animation","className","component","height","style","variant","width"],rx=Fh(ex||(ex=$T||($T=_h(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),ox=Fh(tx||(tx=JT||(JT=_h(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),sx=(0,nf.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t[a.variant],!1!==a.animation&&t[a.animation],a.hasChildren&&t.withChildren,a.hasChildren&&!a.width&&t.fitContent,a.hasChildren&&!a.height&&t.heightAuto]}})((function(e){var t=e.theme,a=e.ownerState,i=VT(t.shape.borderRadius)||"px",n=KT(t.shape.borderRadius);return(0,Ba.Z)({display:"block",backgroundColor:(0,af.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===a.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(n).concat(i,"/").concat(Math.round(n/.6*10)/10).concat(i),"&:empty:before":{content:'"\\00a0"'}},"circular"===a.variant&&{borderRadius:"50%"},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})}),(function(e){return"pulse"===e.ownerState.animation&&hh(ax||(ax=XT||(XT=_h(["\n animation: "," 1.5s ease-in-out 0.5s infinite;\n "]))),rx)}),(function(e){var t=e.ownerState,a=e.theme;return"wave"===t.animation&&hh(ix||(ix=QT||(QT=_h(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 1.6s linear 0.5s infinite;\n background: linear-gradient(90deg, transparent, ",", transparent);\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),ox,a.palette.action.hover)})),ux=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiSkeleton"}),i=a.animation,n=void 0===i?"pulse":i,r=a.className,o=a.component,s=void 0===o?"span":o,u=a.height,l=a.style,_=a.variant,f=void 0===_?"text":_,d=a.width,c=(0,ti.Z)(a,nx),g=(0,Ba.Z)({},a,{animation:n,component:s,variant:f,hasChildren:Boolean(c.children)}),h=function(e){var t=e.classes,a=e.variant,i=e.animation,n=e.hasChildren,r=e.width,o=e.height,s={root:["root",a,i,n&&"withChildren",n&&!r&&"fitContent",n&&!o&&"heightAuto"]};return(0,tf.Z)(s,YT,t)}(g);return(0,Na.jsx)(sx,(0,Ba.Z)({as:s,ref:t,className:(0,ef.Z)(h.root,r),ownerState:g},c,{style:(0,Ba.Z)({width:d,height:u},l)}))})),lx=ux,_x=eh({root:{margin:"0px 0px 12px 8px"},skeleton:{borderRadius:"20px",transform:"none"}});function fx(e){var t=e.height,a=e.isMine,i=void 0!==a&&a,n=_x(),r=i?"60px":"8px";return(0,Na.jsx)("div",{className:n.root,style:{marginLeft:r,height:"".concat(t,"px")},children:(0,Na.jsx)(lx,{className:n.skeleton,variant:"text",width:325,height:t})})}var dx=function(){return(0,Na.jsxs)(Kb,{children:[(0,Na.jsx)(fx,{height:75}),(0,Na.jsx)(fx,{height:60}),(0,Na.jsx)(fx,{height:90,isMine:!0}),(0,Na.jsx)(fx,{height:60}),(0,Na.jsx)(fx,{height:60,isMine:!0}),(0,Na.jsx)(fx,{height:100}),(0,Na.jsx)(fx,{height:75,isMine:!0}),(0,Na.jsx)(fx,{height:50})]})},cx=(0,Fm.Z)((0,Na.jsx)("path",{d:"M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z"}),"Call"),gx=eh({tooltip:{fontSize:12},modalHide:{display:"none"},groupdisplay:{width:"300px",paddingTop:"8px",fontSize:"24px",whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis"},largeGroupDisplay:{width:"300px",paddingTop:"8px",fontSize:"20px",overflowX:"hidden",textOverflow:"ellipsis"}}),hx=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0],a=gx(),i=fe(),n=de().pathname,o=ce().groupId,s=YA(),u=s.activeMessageConversation,l=s.setActiveMessageConversation,_=WA().fetchMessages,f=dF().initializeCall,d=Rm(),c=d.getContactByNumber,g=d.getDisplayByNumber,h=b_(GA.messages),F=(0,Ka.Z)(h,2),m=F[0],p=F[1],E=(0,r.useState)(!1),b=(0,Ka.Z)(E,2),k=b[0],y=b[1];(0,r.useEffect)((function(){_(o,0)}),[o,_]),(0,r.useEffect)((function(){u&&m?setTimeout((function(){y(!0)}),600):y(!1)}),[u,m]);if((0,r.useEffect)((function(){o&&l(o)}),[o,l]),(0,r.useEffect)((function(){if(k){var e=document.getElementById(WT);e&&(e.scrollTop=e.scrollHeight)}}),[k]),!u)return(0,Na.jsx)("div",{children:(0,Na.jsx)(jh,{})});var v=g(u.phoneNumber)||u.phoneNumber,D="".concat(v.slice(0,80).trim(),"..."),w=(v=v.length>80?D:v).length>30?a.largeGroupDisplay:a.groupdisplay,S=u.phoneNumber;return(0,Na.jsx)(Na.Fragment,{children:(0,Na.jsx)(aS,{direction:"left",in:!!u,children:(0,Na.jsxs)(cf,{sx:{height:"100%",width:"100%",display:"flex",flexGrow:1,overflowY:"hidden",flexDirection:"column"},children:[(0,Na.jsxs)(lh,{display:"flex",justifyContent:"space-between",component:cf,children:[(0,Na.jsx)(rp,{onClick:function(){p(null),i.push("/messages")},children:(0,Na.jsx)(Cw.Z,{fontSize:"large"})}),(0,Na.jsx)(EF,{variant:"h5",className:w,children:v}),(0,Na.jsx)(_b,{classes:{tooltip:a.tooltip},title:"".concat(t("GENERIC.CALL")," ").concat(S),placement:"bottom",children:(0,Na.jsx)(_m,{onClick:function(){return f(S)},children:(0,Na.jsx)(cx,{fontSize:"medium"})})}),g(S)===S?(0,Na.jsx)(rp,{children:(0,Na.jsx)(Gb.Z,{onClick:function(){return function(e){var t=c(e),a=encodeURIComponent(n);return t?i.push("/contacts/".concat(t.id,"/?referal=").concat(a)):i.push("/contacts/-1/?addNumber=".concat(e,"&referal=").concat(a))}(S)},fontSize:"large"})}):null]}),k&&u?(0,Na.jsx)(HT,{messages:m,activeMessageGroup:u}):(0,Na.jsx)(dx,{})]})})})},Fx=(0,Fm.Z)((0,Na.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),mx=(0,Fm.Z)((0,Na.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),px=eh((function(e){return{root:{position:"absolute",bottom:e.spacing(5),right:e.spacing(3)}}})),Ex=function(e){var t=e.onClick,a=px(),i=p_(GA.checkedConversations),n=UA(),r=(0,Ka.Z)(n,2),o=r[0],s=r[1],u=WA().deleteConversation;return(0,Na.jsx)(Mw,{className:a.root,color:"primary",onClick:o?function(){u(i),s(!1)}:t,children:o?(0,Na.jsx)(mx,{}):(0,Na.jsx)(Fx,{})})},bx={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},kx=bx[800],yx=Rb.Z.white,vx=yw({palette:{primary:{main:kx,dark:bx[900],light:bx[100],contrastText:yx}}}),Dx=function(){var e=uj("MESSAGES"),t=fe();return(0,Na.jsx)(vx,{children:(0,Na.jsxs)(Q_,{id:"messages-app",children:[(0,Na.jsx)(jb,{app:e}),(0,Na.jsx)(Gh,{children:(0,Na.jsxs)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:[(0,Na.jsxs)(le,{children:[(0,Na.jsx)(ie,{path:"/messages/conversations/:groupId",children:(0,Na.jsx)(hx,{})}),(0,Na.jsx)(ie,{exact:!0,path:"/messages",children:(0,Na.jsx)(fT,{})})]}),(0,Na.jsx)(le,{children:(0,Na.jsx)(ie,{exact:!0,path:["/messages/new/:phoneNumber","/messages/new"],children:(0,Na.jsx)(KA,{})})})]})}),(0,Na.jsx)(ie,{exact:!0,path:"/messages",children:(0,Na.jsx)(Ex,{onClick:function(){return t.push("/messages/new")}})})]})})};yw({palette:{primary:{main:"#f23123"}}}),F_({key:"exampleState",default:m_({key:"exampleStateValue",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_("MyExampleTargetEvent",{myPassedData:"hi!"},C_("myMockDataResponse"));case 3:return"ok"!==(t=e.sent).status&&console.error({result:t}),e.abrupt("return",t.data);case 8:return e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return","");case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()})});var wx,Sx,Cx;!function(e){e[e.title=255]="title",e[e.description=255]="description",e[e.url=255]="url"}(wx||(wx={})),function(e){e.CREATE_FAILED="MARKETPLACE.FEEDBACK.CREATE_LISTING_FAILED",e.DUPLICATE="MARKETPLACE.FEEDBACK.DUPLICATE_LISTING",e.INVALID_IMAGE_HOST="GENERIC_INVALID_IMAGE_HOST"}(Sx||(Sx={})),function(e){e.ADD_LISTING="npwd:addListing",e.FETCH_LISTING="npwd:fetchAllListings",e.DELETE_LISTING="npwd:marketplaceDeleteListing",e.DELETE_LISTINGS_ON_DROP="npwd:marketplaceDeleteListingsOnDrop",e.REPORT_LISTING="npwd:reportListing",e.BROADCAST_ADD="npwd:sendMarketplaceBroadcastAdd",e.BROADCAST_DELETE="npwd:sendMarketplaceBroadcastDelete"}(Cx||(Cx={}));var Ax,Tx=F_({key:"listings",default:m_({key:"defaultListings",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(Cx.FETCH_LISTING);case 3:return t=e.sent,e.abrupt("return",t.data);case 7:e.prev=7,e.t0=e.catch(0),e.next=11;break;case 11:return console.error(e.t0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}()})}),xx=F_({key:"form",default:{title:"",description:"",url:""}}),Ix=function(){return b_(xx)},Rx=a(7247),Ox=a(8483),Lx=["children"],Nx=eh((function(e){return{icon:{color:e.palette.primary.main}}})),Px=function(e){e.children;var t=ai(e,Lx),a=Nx(),i=zh(),n=uF(),r=(0,Ka.Z)(n,1)[0],o=fe(),s=dF().initializeCall,u=Wh().addAlert;return(0,Na.jsxs)(lh,{justifyContent:"space-between",alignItems:"center",children:[(0,Na.jsx)("div",{style:{float:"left"},children:t.number!==i&&(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(db,{title:r("GENERIC.MESSAGE"),children:(0,Na.jsx)(rp,{onClick:function(){o.push("/messages/new?phoneNumber=".concat(t.number))},children:(0,Na.jsx)(dw.Z,{className:a.icon})})}),(0,Na.jsx)(db,{title:"".concat(r("GENERIC.CALL"),": ").concat(t.number),children:(0,Na.jsx)(rp,{onClick:function(){s(t.number)},children:(0,Na.jsx)(qb.Z,{className:a.icon})})})]})}),(0,Na.jsx)("div",{style:{float:"right"},children:t.number===i?(0,Na.jsx)(db,{title:r("GENERIC.DELETE"),children:(0,Na.jsx)(rp,{onClick:function(){T_(Cx.DELETE_LISTING,{id:t.id}).then((function(e){if("ok"!==e.status)return u({message:r("MARKETPLACE.FEEDBACK.DELETE_LISTING_FAILED"),type:"error"});u({message:r("MARKETPLACE.FEEDBACK.DELETE_LISTING_SUCCESS"),type:"success"})}))},children:(0,Na.jsx)(Rx.Z,{})})}):(0,Na.jsx)(db,{title:r("GENERIC.REPORT"),children:(0,Na.jsx)(rp,{onClick:function(){T_(Cx.REPORT_LISTING,{id:t.id}).then((function(e){if("ok"!==e.status)return u({message:r("MARKETPLACE.FEEDBACK.REPORT_LISTING_FAILED"),type:"error"});u({message:r("MARKETPLACE.FEEDBACK.REPORT_LISTING_SUCCESS"),type:"success"})}))},children:(0,Na.jsx)(Ox.Z,{})})})})]})},jx=["children"],Bx=eh((function(e){return{root:{overflowX:"hidden",display:"flex",flexFlow:"row nowrap",alignItems:"flex-start",width:"100%",marginTop:"3px"},content:{display:"flex",flexFlow:"column nowrap",width:"100%"},paper:{overflow:"auto",display:"flex",flexFlow:"column",alignItems:"flex",borderWidth:2,height:"auto",background:e.palette.background.paper,marginBottom:20},listingContent:{padding:10,minWidth:100,maxWidth:"100%",width:"100%",overflowWrap:"break-word",wordWrap:"break-word"}}})),Mx=function(e){e.children;var t=ai(e,jx),a=Bx(),i=uF(),n=(0,Ka.Z)(i,1)[0];return(0,Na.jsx)(fk,{className:a.root,children:(0,Na.jsx)("div",{className:a.content,children:(0,Na.jsxs)(cf,{elevation:2,variant:"outlined",className:a.paper,children:[(0,Na.jsxs)("div",{style:{margin:10},children:[(0,Na.jsx)(EF,{style:{margin:5},variant:"h5",children:t.name}),(0,Na.jsx)(EF,{variant:"h5",style:{padding:5},children:t.title})]}),t.url?(0,Na.jsx)(ET,{children:(0,Na.jsx)(mT,{src:t.url,alt:"".concat(t.name)})}):(0,Na.jsxs)(EF,{style:{margin:10},children:[n("MARKETPLACE.NO_IMAGE"),(0,Na.jsx)("span",{role:"img","aria-label":"emoji",children:"\ud83d\ude41"})]}),(0,Na.jsx)(EF,{variant:"body1",className:a.listingContent,children:t.description}),(0,Na.jsx)(Px,(0,Ha.Z)({},t))]})})})},qx=function(){var e=p_(Tx);return(0,Na.jsx)(Kb,{children:e.map((function(e){return(0,Na.jsx)(Mx,(0,Ha.Z)({},e),e.id)}))})},Gx=function(){return(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:(0,Na.jsx)(qx,{})})},Zx=(0,Fm.Z)((0,Na.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),Ux=(0,Fm.Z)((0,Na.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddCircle"),zx=eh((function(e){return{root:{width:"100%",backgroundColor:e.palette.background.default},icon:{color:e.palette.primary.main}}})),Wx=function(){var e=zx(),t=(0,r.useState)(0),a=(0,Ka.Z)(t,2),i=a[0],n=a[1];return(0,Na.jsxs)(YD,{value:i,onChange:function(e,t){n(t)},showLabels:!0,className:e.root,children:[(0,Na.jsx)(aw,{component:De,icon:(0,Na.jsx)(Zx,{}),to:"/marketplace"}),(0,Na.jsx)(aw,{component:De,icon:(0,Na.jsx)(Ux,{}),to:"/marketplace/new"})]})},Hx=a(5764),Vx=eh((function(e){return{root:{width:"100%",margin:"auto",textAlign:"center"},input:{marginBottom:25},textFieldInput:{fontSize:22},multilineFieldInput:{fontSize:20},postButton:{display:"block",margin:"auto",color:"white",background:e.palette.primary.main,width:"80%",fontSize:20}}})),Kx=function(){var e=Vx(),t=uF(),a=(0,Ka.Z)(t,1)[0],i=Wh().addAlert,n=fe(),o=de(),s=o.pathname,u=o.search,l=ZD(),_=Ix(),f=(0,Ka.Z)(_,2),d=f[0],c=f[1],g=""!==d.title.trim()&&""!==d.description.trim(),h=(0,r.useCallback)((function(){n.push("/camera?".concat(GD().stringify({referal:encodeURIComponent(s+u)})))}),[n,s,u]);return(0,r.useEffect)((function(){null!==l&&void 0!==l&&l.image&&(c((0,Ha.Z)((0,Ha.Z)({},d),{},{url:l.image})),n.replace(qT({pathname:s,search:u},"image")))}),[null===l||void 0===l?void 0:l.image,n,s,u,c,d]),(0,Na.jsxs)("div",{className:e.root,children:[(0,Na.jsx)("h1",{children:a("MARKETPLACE.NEW_LISTING")}),(0,Na.jsx)(PD,{className:e.input,value:d.title,error:d.title.length>=wx.title,onChange:function(e){e.currentTarget.value.length!==wx.title&&c((0,Ha.Z)((0,Ha.Z)({},d),{},{title:e.currentTarget.value}))},label:a("GENERIC.REQUIRED"),placeholder:a("MARKETPLACE.FORM_TITLE"),inputProps:{className:e.textFieldInput,maxLength:25},style:{width:"80%"},size:"medium",InputLabelProps:{shrink:!0}}),(0,Na.jsxs)(lh,{display:"flex",alignItems:"center",paddingLeft:5,children:[(0,Na.jsx)("div",{children:(0,Na.jsx)(Hx.Z,{})}),(0,Na.jsx)("div",{children:(0,Na.jsx)(rp,{onClick:h,children:a("MARKETPLACE.CHOOSE_IMAGE")})})]}),(0,Na.jsx)(PD,{className:e.input,placeholder:a("MARKETPLACE.FORM_IMAGE"),value:d.url,error:d.url.length>=wx.url,onChange:function(e){e.currentTarget.value.length!==wx.url&&c((0,Ha.Z)((0,Ha.Z)({},d),{},{url:e.currentTarget.value}))},inputProps:{className:e.textFieldInput},style:{width:"80%"},size:"medium",variant:"outlined"}),(0,Na.jsx)(PD,{className:e.input,onChange:function(e){e.currentTarget.value.length!==wx.description&&c((0,Ha.Z)((0,Ha.Z)({},d),{},{description:e.currentTarget.value}))},label:a("GENERIC.REQUIRED"),value:d.description,error:d.description.length>=wx.description,placeholder:a("MARKETPLACE.FORM_DESCRIPTION"),inputProps:{className:e.multilineFieldInput,maxLength:130},style:{width:"80%"},size:"medium",InputLabelProps:{shrink:!0},multiline:!0,rows:4,variant:"outlined"}),(0,Na.jsx)(rp,{onClick:function(){if(!g)return i({message:a("MARKETPLACE.FEEDBACK.REQUIRED_FIELDS"),type:"error"});T_(Cx.ADD_LISTING,d).then((function(e){if("ok"!==e.status)return i({message:a(e.errorMsg),type:"error"});i({message:a("MARKETPLACE.FEEDBACK.CREATE_LISTING_SUCCESS"),type:"success"}),n.push("/marketplace"),c({title:"",description:"",url:""})}))},className:e.postButton,disabled:!g,children:a("MARKETPLACE.POST_LISTING")})]})},Yx=function(){return(0,Na.jsx)("div",{children:(0,Na.jsx)(Kx,{})})},$x=a(2460),Jx=$x.Z[500],Xx=Rb.Z.white,Qx=Rb.Z.black,eI=yw({palette:{primary:{main:Jx,dark:$x.Z[700],light:$x.Z[200],contrastText:Qx}}}),tI=function(){var e=uj("MARKETPLACE");return(0,Na.jsx)(eI,{children:(0,Na.jsxs)(Q_,{id:"marketplace-app",children:[(0,Na.jsx)(jb,{app:e}),(0,Na.jsx)(Gh,{children:(0,Na.jsxs)(le,{children:[(0,Na.jsx)(ie,{path:"/marketplace",exact:!0,component:Gx}),(0,Na.jsx)(ie,{path:"/marketplace/new",component:Yx})]})}),(0,Na.jsx)(Wx,{})]})})};!function(e){e.ADD_NOTE="npwd:addNote",e.FETCH_ALL_NOTES="npwd:fetchAllNotes",e.DELETE_NOTE="npwd:deleteNote",e.UPDATE_NOTE="npwd:updateNote",e.ADD_NOTE_EXPORT="npwd:addNoteExport"}(Ax||(Ax={}));var aI={noteItems:F_({key:"noteItem",default:m_({key:"defaultNoteItems",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(Ax.FETCH_ALL_NOTES);case 3:return t=e.sent,S_({action:"FetchNotes",data:t.data}),e.abrupt("return",t.data);case 8:e.prev=8,e.t0=e.catch(0),e.next=12;break;case 12:return console.error(e.t0),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()})}),selectedNote:F_({key:"selectedNote",default:null}),modalVisibile:F_({key:"noteModalVisible",default:!1})},iI=function(){return k_(aI.selectedNote)},nI=function(){return k_(aI.modalVisibile)},rI=eh((function(e){return{noNotes:{color:e.palette.text.secondary}}})),oI=function(){var e=rI(),t=p_(aI.noteItems),a=iI(),i=uF(),n=(0,Ka.Z)(i,1)[0],r=nI();return t&&t.length?(0,Na.jsx)(Vb,{disablePadding:!0,children:t.map((function(e){return(0,Na.jsx)(_k,{button:!0,divider:!0,onClick:function(){return function(e){a(e),r(!0)}(e)},children:(0,Na.jsx)(vk,{children:e.title})},e.id)}))}):(0,Na.jsx)(lh,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:"100%",className:e.noNotes,children:(0,Na.jsx)(EF,{color:"inherit",variant:"h6",style:{fontWeight:300},children:n("NOTES.FEEDBACK.NO_NOTES")})})};function sI(e){return(0,of.Z)("MuiContainer",e)}(0,sf.Z)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);var uI,lI,_I=["className","component","disableGutters","fixed","maxWidth"],fI=(0,nf.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t["maxWidth".concat((0,mh.Z)(String(a.maxWidth)))],a.fixed&&t.fixed,a.disableGutters&&t.disableGutters]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&(0,Ya.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}))}),(function(e){var t=e.theme;return e.ownerState.fixed&&Object.keys(t.breakpoints.values).reduce((function(e,a){var i=t.breakpoints.values[a];return 0!==i&&(e[t.breakpoints.up(a)]={maxWidth:"".concat(i).concat(t.breakpoints.unit)}),e}),{})}),(function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({},"xs"===a.maxWidth&&(0,Ya.Z)({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),a.maxWidth&&"xs"!==a.maxWidth&&(0,Ya.Z)({},t.breakpoints.up(a.maxWidth),{maxWidth:"".concat(t.breakpoints.values[a.maxWidth]).concat(t.breakpoints.unit)}))})),dI=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiContainer"}),i=a.className,n=a.component,r=void 0===n?"div":n,o=a.disableGutters,s=void 0!==o&&o,u=a.fixed,l=void 0!==u&&u,_=a.maxWidth,f=void 0===_?"lg":_,d=(0,ti.Z)(a,_I),c=(0,Ba.Z)({},a,{component:r,disableGutters:s,fixed:l,maxWidth:f}),g=function(e){var t=e.classes,a=e.fixed,i=e.disableGutters,n=e.maxWidth,r={root:["root",n&&"maxWidth".concat((0,mh.Z)(String(n))),a&&"fixed",i&&"disableGutters"]};return(0,tf.Z)(r,sI,t)}(c);return(0,Na.jsx)(fI,(0,Ba.Z)({as:r,ownerState:c,className:(0,ef.Z)(g.root,i),ref:t},d))})),cI=dI,gI=eh((function(e){return{modalRoot:{zIndex:20,position:"absolute",height:"99%",width:"100%",background:e.palette.background.default},input:{marginBottom:20},inputPropsTitle:{fontSize:28},inputPropsContent:{fontSize:20,lineHeight:1.2}}})),hI=gI,FI=["color","variant","className"],mI=eh((function(e){return{root:{color:function(t){var a=t.color;return e.palette[a].main},"&:hover":{backgroundColor:function(t){var a=t.color;return(0,af.Fq)(e.palette[a].light,e.palette.action.hoverOpacity)}}},outlined:{border:function(t){var a=t.color;return"1px solid ".concat((0,af.Fq)(e.palette[a].main,.5))},"&:hover":{border:function(t){var a=t.color;return"1px solid ".concat(e.palette[a].main)}}},contained:{color:function(t){var a=t.color;return e.palette[a].contrastText},backgroundColor:function(t){var a=t.color;return e.palette[a].main},"&:hover":{backgroundColor:function(t){var a=t.color;return e.palette[a].dark}}}}}),{name:"MuiButton"}),pI=function(e){var t=e.color,a=void 0===t?"info":t,i=e.variant,n=e.className,r=ai(e,FI),o=mI({color:a});return(0,Na.jsx)(rp,(0,Ha.Z)({variant:i,className:"".concat(o.root," ").concat(o[i]||""," ").concat(n)},r))},EI=function(){var e=k_(aI.noteItems),t=(0,r.useCallback)((function(t){e((function(e){return(0,Va.Z)(e).filter((function(e){return e.id!==t}))}))}),[e]);return{deleteLocalNote:t,addLocalNote:(0,r.useCallback)((function(t){e((function(e){return[t].concat((0,Va.Z)(e))}))}),[e]),updateLocalNote:(0,r.useCallback)((function(t){e((function(e){var a=e.findIndex((function(e){return e.id===t.id})),i=(0,Va.Z)(e);return i[a]=t,i}))}),[e])}},bI=function(){var e=hI(),t=function(){var e=Wh().addAlert,t=uF(),a=(0,Ka.Z)(t,1)[0],i=EI(),n=i.addLocalNote,o=i.deleteLocalNote,s=i.updateLocalNote,u=(0,r.useCallback)(function(){var t=ri(bi().mark((function t(i){var r,o,s;return bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.title,o=i.content,t.next=3,T_(Ax.ADD_NOTE,{title:r,content:o});case 3:if("ok"===(s=t.sent).status){t.next=6;break}return t.abrupt("return",e({message:a("NOTES.FEEDBACK.ADD_FAILED"),type:"error"}));case 6:n(s.data),e({message:a("NOTES.FEEDBACK.ADD_SUCCESS"),type:"success"});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e,n,a]),l=(0,r.useCallback)(function(){var t=ri(bi().mark((function t(i){var n;return bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T_(Ax.DELETE_NOTE,i);case 2:if("ok"===(n=t.sent).status){t.next=5;break}return t.abrupt("return",e({message:a("NOTES.FEEDBACK.DELETE_FAILED"),type:"error"}));case 5:o(n.data.id),e({message:a("NOTES.FEEDBACK.DELETE_SUCCESS"),type:"success"});case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e,o,a]),_=(0,r.useCallback)(function(){var t=ri(bi().mark((function t(i){var n,r,o;return bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.id,r=i.content,o=i.title,t.next=3,T_(Ax.UPDATE_NOTE,{id:n,content:r,title:o});case 3:if("ok"===t.sent.status){t.next=6;break}return t.abrupt("return",e({message:a("NOTES.FEEDBACK.UPDATE_FAILED"),type:"error"}));case 6:s({id:n,title:o,content:r}),e({message:a("NOTES.FEEDBACK.UPDATE_SUCCESS"),type:"success"});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e,a,s]);return{addNewNote:u,deleteNote:l,updateNote:_}}(),a=t.addNewNote,i=t.deleteNote,n=t.updateNote,o=b_(aI.modalVisibile),s=(0,Ka.Z)(o,2),u=s[0],l=s[1],_=uF(),f=(0,Ka.Z)(_,1)[0],d=b_(aI.selectedNote),c=(0,Ka.Z)(d,2),g=c[0],h=c[1],F=(0,r.useState)(""),m=(0,Ka.Z)(F,2),p=m[0],E=m[1],b=(0,r.useState)(""),k=(0,Ka.Z)(b,2),y=k[0],v=k[1],D=fe(),w=sj().getApp,S=de(),C=(0,r.useMemo)((function(){return w("NOTES")}),[w]),A=!Boolean(null===g||void 0===g?void 0:g.id);(0,r.useEffect)((function(){null!==g&&(v(g.content),E(g.title))}),[g]);var T=function(){l(!1)};return null===g?null:(0,Na.jsx)(aS,{direction:"left",in:u,mountOnEnter:!0,unmountOnExit:!0,onExited:function(){h(null),S.search&&D.push(C.path)},children:(0,Na.jsx)(cf,{className:e.modalRoot,square:!0,children:(0,Na.jsx)(cI,{children:(0,Na.jsxs)(lh,{children:[(0,Na.jsx)(lh,{py:2,children:(0,Na.jsx)(rp,{color:"primary",size:"large",startIcon:(0,Na.jsx)(Cw.Z,{fontSize:"large"}),onClick:T,children:f("APPS_NOTES")})}),(0,Na.jsx)(PD,{className:e.input,maxRows:1,label:f("GENERIC.TITLE"),inputProps:{className:e.inputPropsTitle,maxLength:25},fullWidth:!0,value:p,onChange:function(e){E(e.target.value)}}),(0,Na.jsx)(PD,{className:e.input,inputProps:{className:e.inputPropsContent,maxLength:250},label:f("GENERIC.CONTENT"),multiline:!0,fullWidth:!0,rows:16,variant:"outlined",value:y,onChange:function(e){v(e.target.value)}}),(0,Na.jsxs)(EF,{paragraph:!0,children:[y.length,"/250"]}),A?(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(lh,{display:"inline",p:1,children:(0,Na.jsx)(rp,{color:"primary",variant:"contained",disabled:p.length<=0,onClick:function(){a({title:p,content:y}).then((function(){l(!1)})).catch(console.error)},children:f("GENERIC.SAVE")})}),(0,Na.jsx)(lh,{display:"inline",p:1,children:(0,Na.jsx)(pI,{color:"error",variant:"contained",onClick:T,children:f("GENERIC.CANCEL")})})]}):(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(lh,{display:"inline",p:1,children:(0,Na.jsx)(rp,{color:"primary",variant:"contained",onClick:function(){n({id:g.id,title:p,content:y}).then((function(){l(!1)})).catch(console.error)},disabled:p.length<=0,children:f("GENERIC.UPDATE")})}),(0,Na.jsx)(lh,{display:"inline",p:1,children:(0,Na.jsx)(pI,{color:"error",variant:"contained",onClick:function(){i({id:g.id}).then((function(){l(!1)})).catch(console.error)},children:f("GENERIC.DELETE")})})]})]})})})})},kI=a(2419),yI=eh((function(e){return{backgroundModal:{background:"black",opacity:"0.6",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:5},absolute:{position:"absolute",right:e.spacing(3),bottom:e.spacing(5)}}})),vI=yI,DI={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},wI=DI[800],SI=Rb.Z.white,CI=Rb.Z.black,AI=yw({palette:{primary:{main:wI,dark:DI[900],light:DI[500],contrastText:CI}}}),TI=function(){var e=vI(),t=uj("NOTES"),a=iI(),i=nI(),n=ZD({title:"",content:""}),o=n.title,s=n.content;return(0,r.useEffect)((function(){o||s?(i(!0),a({title:o,content:s})):(i(!1),a(null))}),[i,o,s,a]),(0,Na.jsx)(AI,{children:(0,Na.jsxs)(Q_,{id:"notes-app",children:[(0,Na.jsx)(jb,{app:t}),(0,Na.jsx)(bI,{}),(0,Na.jsx)(Gh,{children:(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:(0,Na.jsx)(ie,{path:"/notes",component:oI})})}),(0,Na.jsx)(Mw,{className:e.absolute,onClick:function(){a({title:"",content:""}),i(!0)},color:"primary",children:(0,Na.jsx)(kI.Z,{})})]})})},xI=eh((function(e){return{root:{flexGrow:1},photo:{border:"1px inset #fff",height:129,width:129,maxWidth:150,maxHeight:150,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}}));!function(e){e.GENERIC="CAMERA.FAILED_TO_TAKE_PHOTO",e.INVALID_IMAGE_HOST="GENERIC_INVALID_IMAGE_HOST"}(uI||(uI={})),function(e){e.TAKE_PHOTO="npwd:TakePhoto",e.CAMERA_EXITED="npwd:cameraExited",e.NPWD_PHOTO_MODE_STARTED="npwd:PhotoModeStarted",e.NPWD_PHOTO_MODE_ENDED="npwd:PhotoModeEnded",e.TAKE_PHOTO_SUCCESS="npwd:TakePhotoSuccess",e.UPLOAD_PHOTO="npwd:UploadPhoto",e.FETCH_PHOTOS="npwd:FetchPhotos",e.DELETE_PHOTO="npwd:deletePhoto"}(lI||(lI={}));var II,RI={photos:F_({key:"galleryPhotos",default:m_({key:"defaultGalleryPhotos",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(lI.FETCH_PHOTOS);case 3:return t=e.sent,S_({action:"PhotosFetched",data:t.data}),e.abrupt("return",t.data);case 8:e.prev=8,e.t0=e.catch(0),e.next=12;break;case 12:return console.error(e.t0),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()})})},OI=function(){var e=k_(RI.photos);return{takePhoto:(0,r.useCallback)((function(t){e((function(e){return[t].concat((0,Va.Z)(e))}))}),[e]),deletePhoto:(0,r.useCallback)((function(t){e((function(e){return(0,Va.Z)(e).filter((function(e){return e.image!==t}))}))}),[e])}},LI=function(){var e=xI(),t=fe(),a=ZD(),i=Wh().addAlert,n=uF(),o=(0,Ka.Z)(n,1)[0],s=p_(RI.photos),u=OI().takePhoto,l=(0,r.useState)(!1),_=(0,Ka.Z)(l,2),f=_[0],d=_[1],c=a.referal?decodeURIComponent(a.referal):"/camera/image",g=function(e){t.push(function(e){var t=e.pathname,a=void 0===t?"":t,i=e.search,n=void 0===i?"":i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=MT()(a+n).query;return"".concat(a,"?").concat(GD().stringify((0,Ha.Z)((0,Ha.Z)({},s),{},(0,Ya.Z)({},r,o))))}(function(e){var t=MT()(e);return{pathname:t.pathname,search:"?"+(t.search||"")}}(c),"image",e.image))};return s?(0,Na.jsx)("div",{children:(0,Na.jsxs)(lh,{display:"flex",flexWrap:"wrap",alignContent:"flex-start",className:e.root,children:[(0,Na.jsx)(lh,{children:(0,Na.jsx)(rp,{disabled:f,onClick:function(){d(!0),T_(lI.TAKE_PHOTO).then((function(e){if("ok"!==e.status)return d(!1),i({message:o(e.errorMsg),type:"error"});u(e.data),d(!1)}))},style:{borderRadius:0},className:e.photo,children:f?(0,Na.jsx)(jh,{}):(0,Na.jsx)(kI.Z,{fontSize:"large"})})}),s.map((function(t){return(0,Na.jsx)(lh,{onClick:function(){return g(t)},children:(0,Na.jsx)("div",{style:{backgroundImage:"url(".concat(t.image,")")},className:e.photo})},t.id)}))]})}):(0,Na.jsx)(lh,{display:"flex",flexWrap:"wrap",alignContent:"flex-start",className:e.root,children:(0,Na.jsx)(lh,{children:(0,Na.jsx)(rp,{onClick:u,style:{borderRadius:0},className:e.photo,children:(0,Na.jsx)(kI.Z,{fontSize:"large"})})})})},NI=eh((function(e){return{backgroundModal:{background:"black",opacity:"0.6",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:5},modal:{position:"absolute",height:"100%",width:"100%"},modalHide:{display:"none"},image:{width:"auto",height:380,maxWidth:"auto",maxHeight:380,backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",marginTop:"4em"},actionDiv:{marginTop:15,display:"flex",justifyContent:"space-evenly"},shareModal:{marginBottom:50},innerShareModal:{marginTop:40,textAlign:"center"}}})),PI=a(580),jI=function(e){var t=e.meta,a=e.onClose,i=e.referal,n=NI(),r=fe(),o=uF(),s=(0,Ka.Z)(o,1)[0];return(0,Na.jsx)(jT,{visible:!!t,handleClose:a,children:(0,Na.jsx)("div",{className:n.shareModal,children:(0,Na.jsxs)("div",{className:n.innerShareModal,children:[(0,Na.jsx)("h4",{children:s("CAMERA.COPY_IMAGE")}),(0,Na.jsx)(rp,{onClick:function(){zw(t.image),r.push(i)},variant:"contained",children:"Copy image"})]})})})},BI=function(){var e=(0,r.useState)(null),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=NI(),o=fe(),s=ZD(),u=OI().deletePhoto,l=Wh().addAlert,_=uF(),f=(0,Ka.Z)(_,1)[0],d=s.referal||"/camera",c=(0,r.useMemo)((function(){return{id:parseInt(s.id),image:s.image}}),[s]),g=(0,r.useCallback)((function(){i(c)}),[c]);return c?(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(jI,{referal:d,meta:a,onClose:function(){return i(null)}}),(0,Na.jsxs)(cf,{className:n.modal,children:[(0,Na.jsx)("div",{className:a?n.backgroundModal:null}),(0,Na.jsx)(rp,{onClick:function(){o.push(d)},children:(0,Na.jsx)(Cw.Z,{})}),(0,Na.jsx)("div",{className:n.image,style:{backgroundImage:"url(".concat(c.image,")")}}),(0,Na.jsxs)("div",{className:n.actionDiv,children:[(0,Na.jsx)(rp,{onClick:function(){T_(lI.DELETE_PHOTO,{image:c.image}).then((function(e){if("ok"!==e.status)return l({message:f("CAMERA.FAILED_TO_DELETE"),type:"error"});u(c.image),o.goBack()}))},children:(0,Na.jsx)(Rx.Z,{fontSize:"large"})}),(0,Na.jsx)(rp,{onClick:g,children:(0,Na.jsx)(PI.Z,{fontSize:"large"})})]})]})]}):null},MI=function(){return(0,Na.jsx)(Q_,{id:"camera-app",children:(0,Na.jsx)(Gh,{children:(0,Na.jsx)(le,{children:(0,Na.jsxs)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:[(0,Na.jsx)(ie,{path:"/camera",exact:!0,component:LI}),(0,Na.jsx)(ie,{path:"/camera/image",exact:!0,component:BI})]})})})})},qI=function(e){var t=e.children,a=e.id,i=e.emitOnOpen;return(0,r.useEffect)((function(){i&&T_("npwd:app:".concat(a),void 0,{})}),[a,i]),t},GI=(0,r.memo)(qI,(function(){return!0})),ZI=["id","emitOnOpen","component"],UI=function(e){var t=e.id,a=e.emitOnOpen,i=e.component,n=ai(e,ZI);return(0,Na.jsx)(ie,(0,Ha.Z)((0,Ha.Z)({},n),{},{render:function(){return(0,Na.jsx)(GI,{id:t,emitOnOpen:a,children:(0,Na.jsx)(i,{})})}}))},zI="#00acee",WI=Rb.Z.white,HI={palette:{primary:{main:zI,dark:"#0488ba",light:"#3dbbeb",contrastText:WI},secondary:{main:"#999"}}},VI="#FE3B73",KI=Rb.Z.white,YI={palette:{primary:{main:VI,dark:$x.Z[700],light:$x.Z[300],contrastText:KI},secondary:{main:"#d32f2f",light:"#eb4242",dark:"#941212",contrastText:KI},success:{main:"#2196f3",contrastText:KI}}},$I=(0,Fm.Z)((0,Na.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached"),JI=(0,Fm.Z)((0,Na.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft"),XI="BrowserURLBar",QI={urlInput:"".concat(XI,"-urlInput"),urlInputFocused:"".concat(XI,"-urlInputFocused"),root:"".concat(XI,"-root")},eR=(0,nf.ZP)(lh)((function(){var e;return e={},(0,Ya.Z)(e,"& .".concat(QI.urlInput),{borderRadius:18,borderWidth:1,borderStyle:"solid",paddingRight:10,paddingLeft:10,marginLeft:5,borderColor:"#787878FF",color:"#909090",transition:"color 0.1s ease"}),(0,Ya.Z)(e,"& .".concat(QI.urlInputFocused),{color:"#fff"}),(0,Ya.Z)(e,"&.".concat(QI.root),{}),e})),tR=function(e){var t=e.goBack,a=e.reloadPage,i=e.browserHasHistory,n=e.browserUrl,o=e.setBrowser,s=(0,r.useRef)(null),u=(0,r.useState)(""),l=(0,Ka.Z)(u,2),_=l[0],f=l[1],d=(0,r.useState)(!1),c=(0,Ka.Z)(d,2),g=c[0],h=c[1],F=n.replace(/(^\w+:|^)\/\//,""),m=g?_:F;return(0,Na.jsxs)(eR,{display:"flex",py:1,className:QI.root,px:1,children:[(0,Na.jsx)(_m,{size:"small",onClick:function(){return a()},children:(0,Na.jsx)($I,{})}),i&&(0,Na.jsx)(_m,{size:"small",onClick:function(){return t()},children:(0,Na.jsx)(JI,{})}),(0,Na.jsx)(jD,{className:QI.urlInput,ref:s,fullWidth:!0,onChange:function(e){f(e.target.value)},onKeyDown:function(e){"Enter"===e.code&&(o(_),e.currentTarget.blur())},value:m,classes:{focused:QI.urlInputFocused},onFocus:function(e){f(n),h(!0)},spellCheck:!1,onBlur:function(e){h(!1),f(n)}})]})},aR=function(e){return new Promise((function(t){return setTimeout(t,e)}))},iR="BrowserApp",nR={iframe:"".concat(iR,"-iframe"),root:"".concat(iR,"-root")},rR=(0,nf.ZP)(Q_)((function(){var e;return e={},(0,Ya.Z)(e,"& .".concat(nR.iframe),{height:"100%",width:"100%",zoom:.5,border:"none"}),(0,Ya.Z)(e,"& .".concat(nR.root),{height:"100%",display:"flex",flexDirection:"column"}),e}));!function(e){e[e.SET_URL=0]="SET_URL",e[e.ADD_HISTORY=1]="ADD_HISTORY",e[e.RELOAD=2]="RELOAD"}(II||(II={}));var oR=function(e,t){switch(t.type){case II.ADD_HISTORY:return"about:blank"===t.payload?e:(0,Ha.Z)((0,Ha.Z)({},e),{},{browserHistory:e.browserHistory.concat(t.payload)});case II.SET_URL:return(0,Ha.Z)((0,Ha.Z)({},e),{},{browserUrl:t.payload});default:throw new Error("Invalid reducer action type")}},sR=function(){var e=uS(),t=(0,Ka.Z)(e,1)[0].appSettings,a=(0,r.useReducer)(oR,{browserUrl:t.browserHomePage,browserHistory:[t.browserHomePage]}),i=(0,Ka.Z)(a,2),n=i[0],o=i[1],s=n.browserHistory,u=n.browserUrl,l=(0,r.useRef)(null),_=function(e){var t=e.match(/^(http|https):\/\//)?e:"https://"+e;o({payload:u,type:II.ADD_HISTORY}),o({payload:t,type:II.SET_URL})},f=function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.slice(),o({payload:"about:blank",type:II.SET_URL}),e.next=4,aR(100);case 4:o({payload:t,type:II.SET_URL});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Na.jsx)(rR,{id:"browser",children:(0,Na.jsxs)(Gh,{className:nR.root,children:[(0,Na.jsx)(tR,{browserUrl:u,browserHasHistory:s.length>1,setBrowser:_,goBack:function(){if(!(s.length<=1)){var e=s[s.length-1];e!==u&&_(e)}},reloadPage:f}),(0,Na.jsx)(lh,{flexGrow:1,children:(0,Na.jsx)("iframe",{is:"x-frame-bypass",src:u,className:nR.iframe,style:{height:"100%",width:"100%",border:"none"},title:"npwd-browser",ref:l})})]})})},uR=yw(YI);function lR(e){return(0,of.Z)("MuiFormControlLabel",e)}var _R=(0,sf.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),fR=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],dR=(0,nf.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[(0,Ya.Z)({},"& .".concat(_R.label),t.label),t.root,t["labelPlacement".concat((0,mh.Z)(a.labelPlacement))]]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)((0,Ya.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(_R.disabled),{cursor:"default"}),"start"===a.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===a.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===a.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,Ya.Z)({},"& .".concat(_R.label),(0,Ya.Z)({},"&.".concat(_R.disabled),{color:t.palette.text.disabled})))})),cR=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiFormControlLabel"}),i=a.className,n=a.componentsProps,o=void 0===n?{}:n,s=a.control,u=a.disabled,l=a.disableTypography,_=a.label,f=a.labelPlacement,d=void 0===f?"end":f,c=(0,ti.Z)(a,fR),g=Uk(),h=u;"undefined"===typeof h&&"undefined"!==typeof s.props.disabled&&(h=s.props.disabled),"undefined"===typeof h&&g&&(h=g.disabled);var F={disabled:h};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof s.props[e]&&"undefined"!==typeof a[e]&&(F[e]=a[e])}));var m=Gk({props:a,muiFormControl:g,states:["error"]}),p=(0,Ba.Z)({},a,{disabled:h,label:_,labelPlacement:d,error:m.error}),E=function(e){var t=e.classes,a=e.disabled,i=e.labelPlacement,n=e.error,r={root:["root",a&&"disabled","labelPlacement".concat((0,mh.Z)(i)),n&&"error"],label:["label",a&&"disabled"]};return(0,tf.Z)(r,lR,t)}(p);return(0,Na.jsxs)(dR,(0,Ba.Z)({className:(0,ef.Z)(E.root,i),ownerState:p,ref:t},c,{children:[r.cloneElement(s,F),_.type===EF||l?_:(0,Na.jsx)(EF,(0,Ba.Z)({component:"span",className:E.label},o.typography,{children:_}))]}))})),gR=cR,hR=eh({root:{height:"100%",width:"100%",display:"flex",justifyContent:"center"},progress:{marginTop:"140px"}});var FR,mR,pR=function(){var e=hR();return(0,Na.jsx)(lh,{className:e.root,children:(0,Na.jsx)(jh,{size:60,className:e.progress})})};!function(e){e.UPDATE_FAILED="MATCH.FEEDBACK.UPDATE_PROFILE_FAILED"}(FR||(FR={})),function(e){e.INITIALIZE="phone:initializeMatch",e.GET_PROFILES="phone:getMatchProfiles",e.CREATE_MY_PROFILE="phone:createMyProfile",e.GET_MY_PROFILE="phone:getMyProfile",e.UPDATE_MY_PROFILE="phone:updateMyProfile",e.GET_MATCHES="phone:getMatches",e.SAVE_LIKES="phone:saveLikes"}(mR||(mR={}));var ER=eh({formContainer:{width:"100%",marginTop:"8px"},textField:{width:"100%"}}),bR=(0,r.forwardRef)((function(e,t){var a=e.label,i=e.value,n=e.handleChange,r=e.allowChange,o=e.multiline,s=e.maxLength,u=ER();return(0,Na.jsx)("div",{className:u.formContainer,children:(0,Na.jsx)(PD,{className:u.textField,label:a,value:i,onChange:function(e){return n(e.target.value)},disabled:!r,inputProps:{maxLength:s},multiline:o,inputRef:t})})}));bR.defaultProps={allowChange:!0,maxLength:200,multiline:!1};var kR=bR,yR=a(8401),vR=eh({root:{position:"absolute",bottom:"15px",right:"15px"}}),DR=function(e){var t=e.handleClick,a=vR();return(0,Na.jsx)("div",{className:a.root,children:(0,Na.jsx)(Mw,{color:"primary",onClick:t,children:(0,Na.jsx)(yR.Z,{})})})};function wR(e){return(0,of.Z)("MuiCard",e)}(0,sf.Z)("MuiCard",["root"]);var SR=["className","raised"],CR=(0,nf.ZP)(cf,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}})),AR=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiCard"}),i=a.className,n=a.raised,r=void 0!==n&&n,o=(0,ti.Z)(a,SR),s=(0,Ba.Z)({},a,{raised:r}),u=function(e){var t=e.classes;return(0,tf.Z)({root:["root"]},wR,t)}(s);return(0,Na.jsx)(CR,(0,Ba.Z)({className:(0,ef.Z)(u.root,i),elevation:r?8:void 0,ref:t,ownerState:s},o))})),TR=AR;function xR(e){return(0,of.Z)("MuiCardContent",e)}(0,sf.Z)("MuiCardContent",["root"]);var IR=["className","component"],RR=(0,nf.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}})),OR=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiCardContent"}),i=a.className,n=a.component,r=void 0===n?"div":n,o=(0,ti.Z)(a,IR),s=(0,Ba.Z)({},a,{component:r}),u=function(e){var t=e.classes;return(0,tf.Z)({root:["root"]},xR,t)}(s);return(0,Na.jsx)(RR,(0,Ba.Z)({as:r,className:(0,ef.Z)(u.root,i),ownerState:s,ref:t},o))})),LR=OR;function NR(e){return(0,of.Z)("MuiCardMedia",e)}(0,sf.Z)("MuiCardMedia",["root","media","img"]);var PR=["children","className","component","image","src","style"],jR=(0,nf.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState,i=a.isMediaComponent,n=a.isImageComponent;return[t.root,i&&t.media,n&&t.img]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})})),BR=["video","audio","picture","iframe","img"],MR=["picture","img"],qR=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiCardMedia"}),i=a.children,n=a.className,r=a.component,o=void 0===r?"div":r,s=a.image,u=a.src,l=a.style,_=(0,ti.Z)(a,PR),f=-1!==BR.indexOf(o),d=!f&&s?(0,Ba.Z)({backgroundImage:'url("'.concat(s,'")')},l):l,c=(0,Ba.Z)({},a,{component:o,isMediaComponent:f,isImageComponent:-1!==MR.indexOf(o)}),g=function(e){var t=e.classes,a={root:["root",e.isMediaComponent&&"media",e.isImageComponent&&"img"]};return(0,tf.Z)(a,NR,t)}(c);return(0,Na.jsx)(jR,(0,Ba.Z)({className:(0,ef.Z)(g.root,n),as:o,role:!f&&s?"img":void 0,ref:t,style:d,ownerState:c,src:f?s||u:void 0},_,{children:i}))})),GR=qR,ZR=eh({tags:{position:"absolute",bottom:"40%"},tag:{margin:"3px 3px 0px 0px",opacity:"0.8"},media:{height:"60%"},content:{height:"40%",overflowY:"auto"}}),UR=function(e){var t=e.profile,a=ZR(),i=uF(),n=(0,Ka.Z)(i,1)[0];var r=function(){var e=t.location,a=t.job;return e&&a?"".concat(e," - ").concat(a):e||(a||void 0)}();return(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(LR,{className:a.tags,children:t.tagList.map((function(e){return(0,Na.jsx)(mA,{className:a.tag,label:e,color:"primary"})}))}),(0,Na.jsx)(GR,{className:a.media,image:t.image||"https://upload.wikimedia.org/wikipedia/commons/a/ac/No_image_available.svg",title:t.name}),(0,Na.jsxs)(LR,{className:a.content,children:[(0,Na.jsx)(EF,{gutterBottom:!0,variant:"h4",component:"h2",children:t.name}),(0,Na.jsx)(EF,{gutterBottom:!0,color:"textSecondary",component:"p",children:n("MATCH.MESSAGES.PROFILE_LAST_ACTIVE",{lastActive:t.lastActiveFormatted})}),r&&(0,Na.jsx)(EF,{gutterBottom:!0,variant:"body1",color:"textSecondary",component:"p",children:r}),(0,Na.jsx)(EF,{variant:"body2",color:"textSecondary",component:"p",children:t.bio})]})]})},zR=function(){var e=p_(j_.visibility),t=p_(j_.resourceConfig),a=Ab().removeAlerts;return{ResourceConfig:t,closePhone:function(){a(),T_(AD.CLOSE_PHONE,void 0,{}).catch()},openPhone:function(){T_(AD.OPEN_PHONE,void 0,{}).catch()},isPhoneOpen:e}},WR=eh((function(e){return{root:{color:e.palette.primary.main,fontSize:e.typography.fontSize,height:"100%",width:"100%",display:"flex",justifyContent:"center",textAlign:"center",padding:"140px 15px 15px 15px"}}}));var HR=function(e){var t=e.text,a=WR();return(0,Na.jsx)(lh,{className:a.root,children:(0,Na.jsx)(EF,{variant:"h5",children:t})})},VR={profiles:F_({key:"profiles",default:m_({key:"matchDefaultProfiles",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(mR.GET_PROFILES);case 3:return t=e.sent,S_({action:"fetchProfiles",data:t.data}),e.abrupt("return",t.data);case 8:e.prev=8,e.t0=e.catch(0),e.next=12;break;case 12:return console.error(e.t0),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()})}),errorLoadingProfiles:F_({key:"errorLoadingProfiles",default:!1}),matches:F_({key:"matches",default:m_({key:"defaultMatches",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(mR.GET_MATCHES);case 3:return t=e.sent,S_({action:"fetchMatches",data:t.data}),e.abrupt("return",t.data);case 8:e.prev=8,e.t0=e.catch(0),e.next=12;break;case 12:return e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()})}),errorLoadingMatches:F_({key:"errorLoadingMatches",default:!1}),myProfile:F_({key:"myProfile",default:m_({key:"myProfileDefault",get:function(){var e=ri(bi().mark((function e(){var t;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T_(mR.GET_MY_PROFILE);case 3:return t=e.sent,S_({action:"fetchMyProfile",data:t.data}),e.abrupt("return",t.data);case 8:e.prev=8,e.t0=e.catch(0),e.next=12;break;case 12:return console.error(e.t0),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()})}),noProfileExists:F_({key:"noProfileExists",default:!1})},KR=eh({root:{position:"relative",width:"100%",height:"calc(100% - 40px)",padding:"15px"},card:{position:"absolute",margin:"15px 15px 25px 15px",height:"calc(100% - 80px)",width:"calc(100% - 30px)",overflow:"hidden"},spacer:{height:"8px"}});var YR=function(e){var t=e.profile,a=e.showPreview,i=KR(),n=uF(),o=(0,Ka.Z)(n,1)[0],s=zR().ResourceConfig,u=Wh().addAlert,l=k_(VR.myProfile),_=(0,r.useState)((null===t||void 0===t?void 0:t.image)||""),f=(0,Ka.Z)(_,2),d=f[0],c=f[1],g=(0,r.useState)((null===t||void 0===t?void 0:t.name)||""),h=(0,Ka.Z)(g,2),F=h[0],m=h[1],p=(0,r.useState)((null===t||void 0===t?void 0:t.bio)||""),E=(0,Ka.Z)(p,2),b=E[0],k=E[1],y=(0,r.useState)((null===t||void 0===t?void 0:t.job)||""),v=(0,Ka.Z)(y,2),D=v[0],w=v[1],S=(0,r.useState)((null===t||void 0===t?void 0:t.location)||""),C=(0,Ka.Z)(S,2),A=C[0],T=C[1],x=(0,r.useState)((null===t||void 0===t?void 0:t.tags)||""),I=(0,Ka.Z)(x,2),R=I[0],O=I[1],L=(0,Ha.Z)((0,Ha.Z)({},t),{},{image:d,name:F,bio:b,location:A,job:D,tagList:R.split(",").map((function(e){return e.trim()}))});return t||s.match.allowEditableProfileName?a?(0,Na.jsx)(TR,{raised:!0,className:i.card,children:(0,Na.jsx)(UR,{profile:L})}):(0,Na.jsxs)("div",{className:i.root,children:[(0,Na.jsx)(kR,{label:o("MATCH.EDIT_PROFILE_IMAGE"),value:L.image,handleChange:c,allowChange:!0}),(0,Na.jsx)(kR,{label:o("MATCH.EDIT_PROFILE_NAME"),value:F,handleChange:m,allowChange:s.match.allowEditableProfileName}),(0,Na.jsx)(kR,{label:o("MATCH.EDIT_PROFILE_BIO"),value:L.bio,handleChange:k,multiline:!0,maxLength:250}),(0,Na.jsx)(kR,{label:o("MATCH.EDIT_PROFILE_LOCATION"),value:L.location,handleChange:T}),(0,Na.jsx)(kR,{label:o("MATCH.EDIT_PROFILE_JOB"),value:L.job,handleChange:w,maxLength:50}),(0,Na.jsx)(kR,{label:o("MATCH.EDIT_PROFILE_TAGS"),value:R,handleChange:O}),(0,Na.jsx)(DR,{handleClick:function(){var e=(0,Ha.Z)((0,Ha.Z)({},L),{},{name:L.name.trim(),image:L.image.trim(),tags:L.tagList.join(",")}),a=t?mR.UPDATE_MY_PROFILE:mR.CREATE_MY_PROFILE;T_(a,e).then((function(e){if("ok"!==e.status)return u({message:o(e.errorMsg),type:"error"});l(e.data),u({message:o("MATCH.FEEDBACK.UPDATE_PROFILE_SUCCEEDED"),type:"success"})}))}})]}):(0,Na.jsx)(HR,{text:o("MATCH.PROFILE_CONFIGURATION")})},$R=function(){var e=b_(VR.myProfile),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=b_(VR.noProfileExists),r=(0,Ka.Z)(n,2);return{profile:a,setProfile:i,noProfileExists:r[0],setNoProfileExists:r[1]}},JR=eh({root:{height:"100%",width:"100%"},switch:{marginLeft:"15px"}});var XR=function(){var e=$R(),t=e.profile,a=e.noProfileExists,i=JR(),n=uF(),o=(0,Ka.Z)(n,1)[0],s=(0,r.useState)(!1),u=(0,Ka.Z)(s,2),l=u[0],_=u[1];return t||a?(0,Na.jsxs)(lh,{className:i.root,children:[(0,Na.jsx)(lh,{className:i.switch,children:(0,Na.jsx)(gR,{control:(0,Na.jsx)(nC,{checked:l,onChange:function(){_((function(e){return!e}))}}),label:o("MATCH.EDIT_PROFILE_PREVIEW")})}),(0,Na.jsx)(YR,{showPreview:l,profile:t})]}):(0,Na.jsx)(pR,{})},QR=function(){var e=b_(VR.profiles),t=(0,Ka.Z)(e,1)[0],a=p_(VR.errorLoadingProfiles),i=t?t.filter((function(e){return!e.viewed})):null;return{profiles:t,activeProfile:t?i[0]:null,error:a}},eO=a(5130),tO=a(5799),aO=mi((function e(t){var a=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;pi(this,e),this.element=void 0,this.width=0,this.initialX=0,this.initialY=0,this.mouseDownInitialX=0,this.mouseDownInitialY=0,this.useRotation=void 0,this.maxRotationDeg=void 0,this.updatedX=0,this.updatedY=0,this.mouseDownX=0,this.mouseDownY=0,this.onMouseDown=function(e){e.preventDefault(),a.mouseDownX=e.clientX,a.mouseDownY=e.clientY,a.mouseDownInitialX=a.mouseDownX,a.mouseDownInitialY=a.mouseDownY,document.onmouseup=a.onMouseUp,document.onmousemove=a.onMouseMove},this.onMouseMove=function(e){e.preventDefault();var t=e.clientX,i=e.clientY;a._onMouseMove(t,i)},this._onMouseMove=function(e,t){if(a.updatedX=a.mouseDownX-e,a.updatedY=a.mouseDownY-t,a.mouseDownX=e,a.mouseDownY=t,a.element.style.top=a.element.offsetTop-a.updatedY+"px",a.element.style.left=a.element.offsetLeft-a.updatedX+"px",a.useRotation){var i=a.deltas(a.mouseDownX,a.mouseDownY).deltaX/a.width,n=-1*a.maxRotationDeg*i;a.element.style.webkitTransform="rotate(".concat(n,"deg)")}},this.onMouseUp=function(e){e.preventDefault(),a._onMouseUp()},this._onMouseUp=function(){a.cleanup(),a.element.style.left="".concat(a.initialX,"px"),a.element.style.top="".concat(a.initialY,"px"),a.useRotation&&(a.element.style.webkitTransform="rotate(0deg)")},this.cleanup=function(){document.onmouseup=null,document.onmousemove=null},this.deltas=function(e,t){return{deltaX:e-a.mouseDownInitialX,deltaY:t-a.mouseDownInitialX}},this.element=t.current,this.width=this.element.clientWidth,this.maxRotationDeg=i,this.useRotation=null!==i,this.element.onmousedown=this.onMouseDown})),iO=function(e){fi(a,e);var t=gi(a);function a(e,i,n,r){var o;return pi(this,a),(o=t.call(this,e,i)).onDrag=void 0,o.onDrop=void 0,o.onMouseMove=function(e){e.preventDefault();var t=e.clientX,a=e.clientY,i=o.deltas(t,a).deltaX;o.onDrag(i),o._onMouseMove(t,a)},o.onMouseUp=function(){o.onDrop(),o._onMouseUp()},o.onDrag=n,o.onDrop=r,o}return mi(a)}(aO),nO=eh({root:{position:"absolute",height:"100%",width:"100%"},like:{position:"absolute",zIndex:20,padding:"5px 15px",top:100,color:"green",border:"4px solid green",right:15},nope:{position:"absolute",zIndex:20,padding:"5px 15px",top:100,color:"red",border:"4px solid red",left:15}});var rO=function(e){var t=e.id,a=e.children,i=e.onDrag,n=e.onDrop,o=nO(),s=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=new iO(s,15,i,n);return function(){return e.cleanup()}}),[s]),(0,Na.jsx)("div",{children:(0,Na.jsx)("div",{ref:s,id:t,className:o.root,children:a},t)})};var oO=function(e){var t=e.className,a=e.visible,i=e.text,n={opacity:a?"0.65":"0.0"};return(0,Na.jsx)(lh,{className:t,style:n,children:i})},sO=eh({root:{position:"relative",margin:"15px 15px 25px 15px",height:"calc(95% - 90px)",width:"calc(100% - 30px)",overflow:"hidden",cursor:"pointer"},media:{height:"60%"},content:{height:"40%"},status:{position:"absolute",zIndex:20,padding:"5px 15px",top:40,fontSize:"28px",fontWeight:"bold"},statusVisible:{transition:"opacity 0.25s ease-in-out"},statusNull:{transition:"opacity 0s"},like:{color:"green",border:"6px solid green",left:30,transform:"rotate(-18deg)"},nope:{color:"red",border:"6px solid red",right:30,transform:"rotate(18deg)"},buttons:{position:"absolute",bottom:70,width:"100%",height:"55px"},button:{margin:"0px 15px"}}),uO=150,lO=function(e){var t=e.profile,a=e.onSwipe,i=sO(),n=uF(),o=(0,Ka.Z)(n,1)[0],s=(0,r.useState)(null),u=(0,Ka.Z)(s,2),l=u[0],_=u[1],f=(0,r.useRef)(null),d=(0,r.useRef)(null);f.current=l,d.current=t.id;var c=!0===l,g=!1===l,h="".concat(i.status," ").concat(c?i.statusVisible:i.statusNull," ").concat(i.like),F="".concat(i.status," ").concat(g?i.statusVisible:i.statusNull," ").concat(i.nope);return(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(rO,{id:"active-profile",onDrag:function(e){var t=null!==l;!t&&e>uO?_(!0):!t&&e<-150?_(!1):e>-150&&e"),k=DO().sanitize(b,{ALLOWED_TAGS:["br"]}),y=c?o:r,v=y?"@".concat(y):"",D=c?s:n;return(0,Na.jsxs)(FL,{divider:!0,children:[c&&(0,Na.jsx)(tL,{profileName:r}),(0,Na.jsxs)(mL,{children:[p&&(0,Na.jsx)(fw,{children:(0,Na.jsx)(Cm,{children:(0,Na.jsx)($O,{avatarUrl:D,height:"40px",width:"40px"})})}),(0,Na.jsxs)(pL,{children:[(0,Na.jsxs)(EL,{children:[(0,Na.jsx)(bL,{children:v}),(0,Na.jsx)(kL,{variant:"body2",color:"textSecondary",children:SO(h,l)})]}),(0,Na.jsx)(yL,{dangerouslySetInnerHTML:{__html:k}}),E&&(0,Na.jsx)(HO,{visible:!0,images:i,small:!0}),(0,Na.jsxs)(vL,{children:[(0,Na.jsx)(GO,{profile_name:r}),(0,Na.jsx)(xO,{tweetId:t,isLiked:_}),!f&&(0,Na.jsx)(QO,{tweetId:t,retweetId:u,isRetweet:c}),(0,Na.jsx)(hL,{isMine:f,isReported:d,id:t})]})]})]})]})},wL=(0,r.memo)(DL);function SL(e){var t=e.tweets;return(0,Na.jsx)(Kb,{children:t.map((function(e){return(0,Na.jsx)(wL,(0,Ha.Z)({},e),e.id)}))})}var CL=(0,r.memo)(SL),AL=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],TL=(0,nf.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.absolute&&t.absolute,t[a.variant],a.light&&t.light,"vertical"===a.orientation&&t.vertical,a.flexItem&&t.flexItem,a.children&&t.withChildren,a.children&&"vertical"===a.orientation&&t.withChildrenVertical,"right"===a.textAlign&&"vertical"!==a.orientation&&t.textAlignRight,"left"===a.textAlign&&"vertical"!==a.orientation&&t.textAlignLeft]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:t.palette.divider,borderBottomWidth:"thin"},a.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},a.light&&{borderColor:(0,af.Fq)(t.palette.divider,.08)},"inset"===a.variant&&{marginLeft:72},"middle"===a.variant&&"horizontal"===a.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===a.variant&&"vertical"===a.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===a.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},a.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({},a.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:"thin solid ".concat(t.palette.divider),top:"50%",content:'""',transform:"translateY(50%)"}})}),(function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({},a.children&&"vertical"===a.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:"thin solid ".concat(t.palette.divider),transform:"translateX(0%)"}})}),(function(e){var t=e.ownerState;return(0,Ba.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),xL=(0,nf.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,t){var a=e.ownerState;return[t.wrapper,"vertical"===a.orientation&&t.wrapperVertical]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===a.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),IL=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiDivider"}),i=a.absolute,n=void 0!==i&&i,r=a.children,o=a.className,s=a.component,u=void 0===s?r?"div":"hr":s,l=a.flexItem,_=void 0!==l&&l,f=a.light,d=void 0!==f&&f,c=a.orientation,g=void 0===c?"horizontal":c,h=a.role,F=void 0===h?"hr"!==u?"separator":void 0:h,m=a.textAlign,p=void 0===m?"center":m,E=a.variant,b=void 0===E?"fullWidth":E,k=(0,ti.Z)(a,AL),y=(0,Ba.Z)({},a,{absolute:n,component:u,flexItem:_,light:d,orientation:g,role:F,textAlign:p,variant:b}),v=function(e){var t=e.absolute,a=e.children,i=e.classes,n=e.flexItem,r=e.light,o=e.orientation,s=e.textAlign,u={root:["root",t&&"absolute",e.variant,r&&"light","vertical"===o&&"vertical",n&&"flexItem",a&&"withChildren",a&&"vertical"===o&&"withChildrenVertical","right"===s&&"vertical"!==o&&"textAlignRight","left"===s&&"vertical"!==o&&"textAlignLeft"],wrapper:["wrapper","vertical"===o&&"wrapperVertical"]};return(0,tf.Z)(u,aL,i)}(y);return(0,Na.jsx)(TL,(0,Ba.Z)({as:u,className:(0,ef.Z)(v.root,o),role:F,ref:t,ownerState:y},k,{children:r?(0,Na.jsx)(xL,{className:v.wrapper,ownerState:y,children:r}):null}))})),RL=IL,OL=(0,nf.ZP)(lh)({width:"100%",padding:"15px",display:"flex",flexFlow:"row nowrap",marginTop:"3px",marginBottom:"3px"});function LL(){return(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsxs)(OL,{children:[(0,Na.jsx)(lh,{children:(0,Na.jsx)(lx,{variant:"circular",width:60,height:60})}),(0,Na.jsxs)(lh,{ml:15,mt:-5,children:[(0,Na.jsx)(lx,{variant:"text"}),(0,Na.jsx)(lx,{variant:"rectangular",width:250,height:118})]})]}),(0,Na.jsx)(RL,{})]})}var NL=function(){return(0,Na.jsxs)(Kb,{children:[(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{}),(0,Na.jsx)(LL,{})]})};var PL=function(){var e=p_(MO.tweets);return(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(NL,{}),children:(0,Na.jsx)(CL,{tweets:e})})};var jL=function(){var e=b_(MO.showCreateTweetModal),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=b_(MO.modalMessage),r=(0,Ka.Z)(n,2);return{modalVisible:a,setModalVisible:i,message:r[0],setMessage:r[1]}},BL=JSON.parse('{"compressed":true,"categories":[{"id":"people","name":"Smileys & People","emojis":["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","shushing_face","thinking_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","smirk","unamused","face_with_rolling_eyes","grimacing","lying_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","exploding_head","face_with_cowboy_hat","partying_face","sunglasses","nerd_face","face_with_monocle","confused","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","ok_hand","pinching_hand","v","crossed_fingers","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","tooth","bone","eyes","eye","tongue","lips","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","curly_haired_woman","white_haired_woman","bald_woman","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","male-doctor","female-doctor","male-student","female-student","male-teacher","female-teacher","male-judge","female-judge","male-farmer","female-farmer","male-cook","female-cook","male-mechanic","female-mechanic","male-factory-worker","female-factory-worker","male-office-worker","female-office-worker","male-scientist","female-scientist","male-technologist","female-technologist","male-singer","female-singer","male-artist","female-artist","male-pilot","female-pilot","male-astronaut","female-astronaut","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","construction_worker","male-construction-worker","female-construction-worker","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","man_in_tuxedo","bride_with_veil","pregnant_woman","breast-feeding","angel","santa","mrs_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","man_with_probing_cane","woman_with_probing_cane","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","man-with-bunny-ears-partying","woman-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","couple","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","footprints","kiss","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","brown_heart","black_heart","white_heart","100","anger","boom","dizzy","sweat_drops","dash","hole","bomb","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{"id":"nature","name":"Animals & Nature","emojis":["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","lion_face","tiger","tiger2","leopard","horse","racehorse","unicorn_face","zebra_face","deer","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","hedgehog","bat","bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","flamingo","peacock","parrot","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","fish","tropical_fish","blowfish","shark","octopus","shell","snail","butterfly","bug","ant","bee","beetle","cricket","spider","spider_web","scorpion","mosquito","microbe","bouquet","cherry_blossom","white_flower","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","seedling","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves"]},{"id":"foods","name":"Food & Drink","emojis":["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","kiwifruit","tomato","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","cucumber","leafy_green","broccoli","garlic","onion","mushroom","peanuts","chestnut","bread","croissant","baguette_bread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","cup_with_straw","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","amphora"]},{"id":"activity","name":"Activities","emojis":["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","8ball","crystal_ball","nazar_amulet","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","yarn"]},{"id":"places","name":"Travel & Places","emojis":["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","busstop","motorway","railway_track","oil_drum","fuelpump","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{"id":"objects","name":"Objects","emojis":["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","purse","handbag","pouch","shopping_bags","school_satchel","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","crown","womans_hat","tophat","mortar_board","billed_cap","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","iphone","calling","phone","telephone_receiver","pager","fax","battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","currency_exchange","heavy_dollar_sign","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","gun","bow_and_arrow","shield","wrench","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","toolbox","magnet","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","stethoscope","door","bed","couch_and_lamp","chair","toilet","shower","bathtub","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","soap","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","funeral_urn","moyai"]},{"id":"symbols","name":"Symbols","emojis":["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","vibration_mode","mobile_phone_off","female_sign","male_sign","medical_symbol","infinity","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","heavy_multiplication_x","x","negative_squared_cross_mark","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{"id":"flags","name":"Flags","emojis":["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],"emojis":{"100":{"a":"Hundred Points Symbol","b":"1F4AF","j":["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],"k":[26,5],"o":2},"1234":{"a":"Input Symbol for Numbers","b":"1F522","j":["numbers","blue-square"],"k":[28,5],"o":2},"grinning":{"a":"Grinning Face","b":"1F600","j":["face","smile","happy","joy",":D","grin"],"k":[30,35],"m":":D","o":2},"monkey_face":{"a":"Monkey Face","b":"1F435","j":["animal","nature","circus"],"k":[12,25],"l":[":o)"],"o":2},"grapes":{"a":"Grapes","b":"1F347","j":["fruit","food","wine"],"k":[6,31],"o":2},"eyeglasses":{"a":"Eyeglasses","b":"1F453","j":["fashion","accessories","eyesight","nerdy","dork","geek"],"k":[14,7],"o":2},"checkered_flag":{"a":"Chequered Flag","b":"1F3C1","j":["contest","finishline","race","gokart"],"k":[8,39],"o":2},"jack_o_lantern":{"a":"Jack-O-Lantern","b":"1F383","j":["halloween","light","pumpkin","creepy","fall"],"k":[7,34],"o":2},"wave":{"skin_variations":{"1F3FB":{"unified":"1F44B-1F3FB","non_qualified":null,"image":"1f44b-1f3fb.png","sheet_x":13,"sheet_y":27,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44B-1F3FC","non_qualified":null,"image":"1f44b-1f3fc.png","sheet_x":13,"sheet_y":28,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44B-1F3FD","non_qualified":null,"image":"1f44b-1f3fd.png","sheet_x":13,"sheet_y":29,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44B-1F3FE","non_qualified":null,"image":"1f44b-1f3fe.png","sheet_x":13,"sheet_y":30,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44B-1F3FF","non_qualified":null,"image":"1f44b-1f3ff.png","sheet_x":13,"sheet_y":31,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Waving Hand Sign","b":"1F44B","j":["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],"k":[13,26],"o":2},"earth_africa":{"a":"Earth Globe Europe-Africa","b":"1F30D","j":["globe","world","international"],"k":[5,32],"o":2},"atm":{"a":"Automated Teller Machine","b":"1F3E7","j":["money","sales","cash","blue-square","payment","bank"],"k":[11,1],"o":2},"melon":{"a":"Melon","b":"1F348","j":["fruit","nature","food"],"k":[6,32],"o":2},"triangular_flag_on_post":{"a":"Triangular Flag on Post","b":"1F6A9","j":["mark","milestone","place"],"k":[35,0],"o":2},"put_litter_in_its_place":{"a":"Put Litter in Its Place Symbol","b":"1F6AE","j":["blue-square","sign","human","info"],"k":[35,5],"o":2},"christmas_tree":{"a":"Christmas Tree","b":"1F384","j":["festival","vacation","december","xmas","celebration"],"k":[7,35],"o":2},"monkey":{"a":"Monkey","b":"1F412","j":["animal","nature","banana","circus"],"k":[11,46],"o":2},"earth_americas":{"a":"Earth Globe Americas","b":"1F30E","j":["globe","world","USA","international"],"k":[5,33],"o":2},"dark_sunglasses":{"a":"Dark Sunglasses","b":"1F576-FE0F","c":"1F576","j":["face","cool","accessories"],"k":[29,33],"o":2},"raised_back_of_hand":{"skin_variations":{"1F3FB":{"unified":"1F91A-1F3FB","non_qualified":null,"image":"1f91a-1f3fb.png","sheet_x":37,"sheet_y":44,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91A-1F3FC","non_qualified":null,"image":"1f91a-1f3fc.png","sheet_x":37,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91A-1F3FD","non_qualified":null,"image":"1f91a-1f3fd.png","sheet_x":37,"sheet_y":46,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91A-1F3FE","non_qualified":null,"image":"1f91a-1f3fe.png","sheet_x":37,"sheet_y":47,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91A-1F3FF","non_qualified":null,"image":"1f91a-1f3ff.png","sheet_x":37,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Raised Back of Hand","b":"1F91A","j":["fingers","raised","backhand"],"k":[37,43],"o":4},"smiley":{"a":"Smiling Face with Open Mouth","b":"1F603","j":["face","happy","joy","haha",":D",":)","smile","funny"],"k":[30,38],"l":["=)","=-)"],"m":":)","o":2},"earth_asia":{"a":"Earth Globe Asia-Australia","b":"1F30F","j":["globe","world","east","international"],"k":[5,34],"o":2},"crossed_flags":{"a":"Crossed Flags","b":"1F38C","j":["japanese","nation","country","border"],"k":[7,48],"o":2},"watermelon":{"a":"Watermelon","b":"1F349","j":["fruit","food","picnic","summer"],"k":[6,33],"o":2},"goggles":{"a":"Goggles","b":"1F97D","k":[42,15],"o":11},"raised_hand_with_fingers_splayed":{"skin_variations":{"1F3FB":{"unified":"1F590-1F3FB","non_qualified":null,"image":"1f590-1f3fb.png","sheet_x":29,"sheet_y":49,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F590-1F3FC","non_qualified":null,"image":"1f590-1f3fc.png","sheet_x":29,"sheet_y":50,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F590-1F3FD","non_qualified":null,"image":"1f590-1f3fd.png","sheet_x":29,"sheet_y":51,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F590-1F3FE","non_qualified":null,"image":"1f590-1f3fe.png","sheet_x":29,"sheet_y":52,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F590-1F3FF","non_qualified":null,"image":"1f590-1f3ff.png","sheet_x":29,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Raised Hand with Fingers Splayed","b":"1F590-FE0F","c":"1F590","j":["hand","fingers","palm"],"k":[29,48],"o":2},"smile":{"a":"Smiling Face with Open Mouth and Smiling Eyes","b":"1F604","j":["face","happy","joy","funny","haha","laugh","like",":D",":)"],"k":[30,39],"l":["C:","c:",":D",":-D"],"m":":)","o":2},"potable_water":{"a":"Potable Water Symbol","b":"1F6B0","j":["blue-square","liquid","restroom","cleaning","faucet"],"k":[35,7],"o":2},"fireworks":{"a":"Fireworks","b":"1F386","j":["photo","festival","carnival","congratulations"],"k":[7,42],"o":2},"gorilla":{"a":"Gorilla","b":"1F98D","j":["animal","nature","circus"],"k":[42,31],"o":4},"lab_coat":{"a":"Lab Coat","b":"1F97C","k":[42,14],"o":11},"tangerine":{"a":"Tangerine","b":"1F34A","j":["food","fruit","nature","orange"],"k":[6,34],"o":2},"wheelchair":{"a":"Wheelchair Symbol","b":"267F","j":["blue-square","disabled","a11y","accessibility"],"k":[53,40],"o":2},"waving_black_flag":{"a":"Waving Black Flag","b":"1F3F4","k":[11,17],"o":2},"orangutan":{"a":"Orangutan","b":"1F9A7","k":[42,55],"o":12},"sparkler":{"a":"Firework Sparkler","b":"1F387","j":["stars","night","shine"],"k":[7,43],"o":2},"globe_with_meridians":{"a":"Globe with Meridians","b":"1F310","j":["earth","international","world","internet","interweb","i18n"],"k":[5,35],"o":2},"grin":{"a":"Grinning Face with Smiling Eyes","b":"1F601","j":["face","happy","smile","joy","kawaii"],"k":[30,36],"o":2},"hand":{"skin_variations":{"1F3FB":{"unified":"270B-1F3FB","non_qualified":null,"image":"270b-1f3fb.png","sheet_x":54,"sheet_y":50,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"270B-1F3FC","non_qualified":null,"image":"270b-1f3fc.png","sheet_x":54,"sheet_y":51,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"270B-1F3FD","non_qualified":null,"image":"270b-1f3fd.png","sheet_x":54,"sheet_y":52,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"270B-1F3FE","non_qualified":null,"image":"270b-1f3fe.png","sheet_x":54,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"270B-1F3FF","non_qualified":null,"image":"270b-1f3ff.png","sheet_x":54,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Raised Hand","b":"270B","k":[54,49],"n":["raised_hand"],"o":2},"firecracker":{"a":"Firecracker","b":"1F9E8","k":[51,27],"o":11},"lemon":{"a":"Lemon","b":"1F34B","j":["fruit","nature"],"k":[6,35],"o":2},"dog":{"a":"Dog Face","b":"1F436","j":["animal","friend","nature","woof","puppy","pet","faithful"],"k":[12,26],"o":2},"mens":{"a":"Mens Symbol","b":"1F6B9","j":["toilet","restroom","wc","blue-square","gender","male"],"k":[36,10],"o":2},"spock-hand":{"skin_variations":{"1F3FB":{"unified":"1F596-1F3FB","non_qualified":null,"image":"1f596-1f3fb.png","sheet_x":30,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F596-1F3FC","non_qualified":null,"image":"1f596-1f3fc.png","sheet_x":30,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F596-1F3FD","non_qualified":null,"image":"1f596-1f3fd.png","sheet_x":30,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F596-1F3FE","non_qualified":null,"image":"1f596-1f3fe.png","sheet_x":30,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F596-1F3FF","non_qualified":null,"image":"1f596-1f3ff.png","sheet_x":30,"sheet_y":8,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Raised Hand with Part Between Middle and Ring Fingers","b":"1F596","k":[30,3],"o":2},"world_map":{"a":"World Map","b":"1F5FA-FE0F","c":"1F5FA","j":["location","direction"],"k":[30,29],"o":2},"laughing":{"a":"Smiling Face with Open Mouth and Tightly-Closed Eyes","b":"1F606","j":["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],"k":[30,41],"l":[":>",":->"],"n":["satisfied"],"o":2},"waving_white_flag":{"a":"Waving White Flag","b":"1F3F3-FE0F","c":"1F3F3","k":[11,12],"o":2},"safety_vest":{"a":"Safety Vest","b":"1F9BA","k":[43,54],"o":12},"sweat_smile":{"a":"Smiling Face with Open Mouth and Cold Sweat","b":"1F605","j":["face","hot","happy","laugh","sweat","smile","relief"],"k":[30,40],"o":2},"sparkles":{"a":"Sparkles","b":"2728","j":["stars","shine","shiny","cool","awesome","good","magic"],"k":[55,16],"o":2},"banana":{"a":"Banana","b":"1F34C","j":["fruit","food","monkey"],"k":[6,36],"o":2},"rainbow-flag":{"a":"Rainbow Flag","b":"1F3F3-FE0F-200D-1F308","c":"1F3F3-200D-1F308","k":[11,11],"o":4},"ok_hand":{"skin_variations":{"1F3FB":{"unified":"1F44C-1F3FB","non_qualified":null,"image":"1f44c-1f3fb.png","sheet_x":13,"sheet_y":33,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44C-1F3FC","non_qualified":null,"image":"1f44c-1f3fc.png","sheet_x":13,"sheet_y":34,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44C-1F3FD","non_qualified":null,"image":"1f44c-1f3fd.png","sheet_x":13,"sheet_y":35,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44C-1F3FE","non_qualified":null,"image":"1f44c-1f3fe.png","sheet_x":13,"sheet_y":36,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44C-1F3FF","non_qualified":null,"image":"1f44c-1f3ff.png","sheet_x":13,"sheet_y":37,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Ok Hand Sign","b":"1F44C","j":["fingers","limbs","perfect","ok","okay"],"k":[13,32],"o":2},"japan":{"a":"Silhouette of Japan","b":"1F5FE","j":["nation","country","japanese","asia"],"k":[30,33],"o":2},"dog2":{"a":"Dog","b":"1F415","j":["animal","nature","friend","doge","pet","faithful"],"k":[11,50],"o":2},"womens":{"a":"Womens Symbol","b":"1F6BA","j":["purple-square","woman","female","toilet","loo","restroom","gender"],"k":[36,11],"o":2},"necktie":{"a":"Necktie","b":"1F454","j":["shirt","suitup","formal","fashion","cloth","business"],"k":[14,8],"o":2},"pirate_flag":{"a":"Pirate Flag","b":"1F3F4-200D-2620-FE0F","c":"1F3F4-200D-2620","k":[11,13],"o":11},"guide_dog":{"a":"Guide Dog","b":"1F9AE","k":[43,2],"o":12},"restroom":{"a":"Restroom","b":"1F6BB","j":["blue-square","toilet","refresh","wc","gender"],"k":[36,12],"o":2},"compass":{"a":"Compass","b":"1F9ED","k":[51,32],"o":11},"rolling_on_the_floor_laughing":{"a":"Rolling on the Floor Laughing","b":"1F923","k":[38,20],"o":4},"balloon":{"a":"Balloon","b":"1F388","j":["party","celebration","birthday","circus"],"k":[7,44],"o":2},"pinching_hand":{"skin_variations":{"1F3FB":{"unified":"1F90F-1F3FB","non_qualified":null,"image":"1f90f-1f3fb.png","sheet_x":37,"sheet_y":18,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F90F-1F3FC","non_qualified":null,"image":"1f90f-1f3fc.png","sheet_x":37,"sheet_y":19,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F90F-1F3FD","non_qualified":null,"image":"1f90f-1f3fd.png","sheet_x":37,"sheet_y":20,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F90F-1F3FE","non_qualified":null,"image":"1f90f-1f3fe.png","sheet_x":37,"sheet_y":21,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F90F-1F3FF","non_qualified":null,"image":"1f90f-1f3ff.png","sheet_x":37,"sheet_y":22,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Pinching Hand","b":"1F90F","k":[37,17],"o":12},"pineapple":{"a":"Pineapple","b":"1F34D","j":["fruit","nature","food"],"k":[6,37],"o":2},"shirt":{"a":"T-Shirt","b":"1F455","k":[14,9],"n":["tshirt"],"o":2},"service_dog":{"a":"Service Dog","b":"1F415-200D-1F9BA","k":[11,49],"o":12},"baby_symbol":{"a":"Baby Symbol","b":"1F6BC","j":["orange-square","child"],"k":[36,13],"o":2},"joy":{"a":"Face with Tears of Joy","b":"1F602","j":["face","cry","tears","weep","happy","happytears","haha"],"k":[30,37],"o":2},"tada":{"a":"Party Popper","b":"1F389","j":["party","congratulations","birthday","magic","circus","celebration"],"k":[7,45],"o":2},"mango":{"a":"Mango","b":"1F96D","k":[42,3],"o":11},"v":{"skin_variations":{"1F3FB":{"unified":"270C-1F3FB","non_qualified":null,"image":"270c-1f3fb.png","sheet_x":54,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"270C-1F3FC","non_qualified":null,"image":"270c-1f3fc.png","sheet_x":55,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"270C-1F3FD","non_qualified":null,"image":"270c-1f3fd.png","sheet_x":55,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"270C-1F3FE","non_qualified":null,"image":"270c-1f3fe.png","sheet_x":55,"sheet_y":2,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"270C-1F3FF","non_qualified":null,"image":"270c-1f3ff.png","sheet_x":55,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Victory Hand","b":"270C-FE0F","c":"270C","j":["fingers","ohyeah","hand","peace","victory","two"],"k":[54,55],"o":2},"snow_capped_mountain":{"a":"Snow Capped Mountain","b":"1F3D4-FE0F","c":"1F3D4","k":[10,39],"o":2},"flag-ac":{"a":"Ascension Island Flag","b":"1F1E6-1F1E8","k":[0,31],"o":2},"jeans":{"a":"Jeans","b":"1F456","j":["fashion","shopping"],"k":[14,10],"o":2},"poodle":{"a":"Poodle","b":"1F429","j":["dog","animal","101","nature","pet"],"k":[12,13],"o":2},"crossed_fingers":{"skin_variations":{"1F3FB":{"unified":"1F91E-1F3FB","non_qualified":null,"image":"1f91e-1f3fb.png","sheet_x":38,"sheet_y":6,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91E-1F3FC","non_qualified":null,"image":"1f91e-1f3fc.png","sheet_x":38,"sheet_y":7,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91E-1F3FD","non_qualified":null,"image":"1f91e-1f3fd.png","sheet_x":38,"sheet_y":8,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91E-1F3FE","non_qualified":null,"image":"1f91e-1f3fe.png","sheet_x":38,"sheet_y":9,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91E-1F3FF","non_qualified":null,"image":"1f91e-1f3ff.png","sheet_x":38,"sheet_y":10,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Hand with Index and Middle Fingers Crossed","b":"1F91E","j":["good","lucky"],"k":[38,5],"n":["hand_with_index_and_middle_fingers_crossed"],"o":4},"flag-ad":{"a":"Andorra Flag","b":"1F1E6-1F1E9","k":[0,32],"o":2},"slightly_smiling_face":{"a":"Slightly Smiling Face","b":"1F642","j":["face","smile"],"k":[31,44],"l":[":)","(:",":-)"],"o":2},"apple":{"a":"Red Apple","b":"1F34E","j":["fruit","mac","school"],"k":[6,38],"o":2},"wc":{"a":"Water Closet","b":"1F6BE","j":["toilet","restroom","blue-square"],"k":[36,15],"o":2},"scarf":{"a":"Scarf","b":"1F9E3","k":[51,22],"o":5},"mountain":{"a":"Mountain","b":"26F0-FE0F","c":"26F0","j":["photo","nature","environment"],"k":[54,11],"o":2},"confetti_ball":{"a":"Confetti Ball","b":"1F38A","j":["festival","party","birthday","circus"],"k":[7,46],"o":2},"i_love_you_hand_sign":{"skin_variations":{"1F3FB":{"unified":"1F91F-1F3FB","non_qualified":null,"image":"1f91f-1f3fb.png","sheet_x":38,"sheet_y":12,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91F-1F3FC","non_qualified":null,"image":"1f91f-1f3fc.png","sheet_x":38,"sheet_y":13,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91F-1F3FD","non_qualified":null,"image":"1f91f-1f3fd.png","sheet_x":38,"sheet_y":14,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91F-1F3FE","non_qualified":null,"image":"1f91f-1f3fe.png","sheet_x":38,"sheet_y":15,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91F-1F3FF","non_qualified":null,"image":"1f91f-1f3ff.png","sheet_x":38,"sheet_y":16,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"I Love You Hand Sign","b":"1F91F","k":[38,11],"o":5},"wolf":{"a":"Wolf Face","b":"1F43A","j":["animal","nature","wild"],"k":[12,30],"o":2},"gloves":{"a":"Gloves","b":"1F9E4","k":[51,23],"o":5},"flag-ae":{"a":"United Arab Emirates Flag","b":"1F1E6-1F1EA","k":[0,33],"o":2},"upside_down_face":{"a":"Upside-Down Face","b":"1F643","j":["face","flipped","silly","smile"],"k":[31,45],"o":2},"green_apple":{"a":"Green Apple","b":"1F34F","j":["fruit","nature"],"k":[6,39],"o":2},"passport_control":{"a":"Passport Control","b":"1F6C2","j":["custom","blue-square"],"k":[36,24],"o":2},"volcano":{"a":"Volcano","b":"1F30B","j":["photo","nature","disaster"],"k":[5,30],"o":2},"tanabata_tree":{"a":"Tanabata Tree","b":"1F38B","j":["plant","nature","branch","summer"],"k":[7,47],"o":2},"customs":{"a":"Customs","b":"1F6C3","j":["passport","border","blue-square"],"k":[36,25],"o":2},"coat":{"a":"Coat","b":"1F9E5","k":[51,24],"o":5},"wink":{"a":"Winking Face","b":"1F609","j":["face","happy","mischievous","secret",";)","smile","eye"],"k":[30,44],"l":[";)",";-)"],"m":";)","o":2},"bamboo":{"a":"Pine Decoration","b":"1F38D","j":["plant","nature","vegetable","panda","pine_decoration"],"k":[7,49],"o":2},"flag-af":{"a":"Afghanistan Flag","b":"1F1E6-1F1EB","k":[0,34],"o":2},"fox_face":{"a":"Fox Face","b":"1F98A","j":["animal","nature","face"],"k":[42,28],"o":4},"pear":{"a":"Pear","b":"1F350","j":["fruit","nature","food"],"k":[6,40],"o":2},"mount_fuji":{"a":"Mount Fuji","b":"1F5FB","j":["photo","mountain","nature","japanese"],"k":[30,30],"o":2},"the_horns":{"skin_variations":{"1F3FB":{"unified":"1F918-1F3FB","non_qualified":null,"image":"1f918-1f3fb.png","sheet_x":37,"sheet_y":32,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F918-1F3FC","non_qualified":null,"image":"1f918-1f3fc.png","sheet_x":37,"sheet_y":33,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F918-1F3FD","non_qualified":null,"image":"1f918-1f3fd.png","sheet_x":37,"sheet_y":34,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F918-1F3FE","non_qualified":null,"image":"1f918-1f3fe.png","sheet_x":37,"sheet_y":35,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F918-1F3FF","non_qualified":null,"image":"1f918-1f3ff.png","sheet_x":37,"sheet_y":36,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Sign of the Horns","b":"1F918","k":[37,31],"n":["sign_of_the_horns"],"o":2},"call_me_hand":{"skin_variations":{"1F3FB":{"unified":"1F919-1F3FB","non_qualified":null,"image":"1f919-1f3fb.png","sheet_x":37,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F919-1F3FC","non_qualified":null,"image":"1f919-1f3fc.png","sheet_x":37,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F919-1F3FD","non_qualified":null,"image":"1f919-1f3fd.png","sheet_x":37,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F919-1F3FE","non_qualified":null,"image":"1f919-1f3fe.png","sheet_x":37,"sheet_y":41,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F919-1F3FF","non_qualified":null,"image":"1f919-1f3ff.png","sheet_x":37,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Call Me Hand","b":"1F919","j":["hands","gesture"],"k":[37,37],"o":4},"flag-ag":{"a":"Antigua & Barbuda Flag","b":"1F1E6-1F1EC","k":[0,35],"o":2},"raccoon":{"a":"Raccoon","b":"1F99D","k":[42,47],"o":11},"dolls":{"a":"Japanese Dolls","b":"1F38E","j":["japanese","toy","kimono"],"k":[7,50],"o":2},"blush":{"a":"Smiling Face with Smiling Eyes","b":"1F60A","j":["face","smile","happy","flushed","crush","embarrassed","shy","joy"],"k":[30,45],"m":":)","o":2},"peach":{"a":"Peach","b":"1F351","j":["fruit","nature","food"],"k":[6,41],"o":2},"baggage_claim":{"a":"Baggage Claim","b":"1F6C4","j":["blue-square","airport","transport"],"k":[36,26],"o":2},"socks":{"a":"Socks","b":"1F9E6","k":[51,25],"o":5},"camping":{"a":"Camping","b":"1F3D5-FE0F","c":"1F3D5","j":["photo","outdoors","tent"],"k":[10,40],"o":2},"dress":{"a":"Dress","b":"1F457","j":["clothes","fashion","shopping"],"k":[14,11],"o":2},"beach_with_umbrella":{"a":"Beach with Umbrella","b":"1F3D6-FE0F","c":"1F3D6","k":[10,41],"o":2},"cherries":{"a":"Cherries","b":"1F352","j":["food","fruit"],"k":[6,42],"o":2},"cat":{"a":"Cat Face","b":"1F431","j":["animal","meow","nature","pet","kitten"],"k":[12,21],"o":2},"point_left":{"skin_variations":{"1F3FB":{"unified":"1F448-1F3FB","non_qualified":null,"image":"1f448-1f3fb.png","sheet_x":13,"sheet_y":9,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F448-1F3FC","non_qualified":null,"image":"1f448-1f3fc.png","sheet_x":13,"sheet_y":10,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F448-1F3FD","non_qualified":null,"image":"1f448-1f3fd.png","sheet_x":13,"sheet_y":11,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F448-1F3FE","non_qualified":null,"image":"1f448-1f3fe.png","sheet_x":13,"sheet_y":12,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F448-1F3FF","non_qualified":null,"image":"1f448-1f3ff.png","sheet_x":13,"sheet_y":13,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Left Pointing Backhand Index","b":"1F448","j":["direction","fingers","hand","left"],"k":[13,8],"o":2},"left_luggage":{"a":"Left Luggage","b":"1F6C5","j":["blue-square","travel"],"k":[36,27],"o":2},"flag-ai":{"a":"Anguilla Flag","b":"1F1E6-1F1EE","k":[0,36],"o":2},"innocent":{"a":"Smiling Face with Halo","b":"1F607","j":["face","angel","heaven","halo"],"k":[30,42],"o":2},"flags":{"a":"Carp Streamer","b":"1F38F","j":["fish","japanese","koinobori","carp","banner"],"k":[7,51],"o":2},"warning":{"a":"Warning Sign","b":"26A0-FE0F","c":"26A0","j":["exclamation","wip","alert","error","problem","issue"],"k":[53,50],"o":2},"strawberry":{"a":"Strawberry","b":"1F353","j":["fruit","food","nature"],"k":[6,43],"o":2},"point_right":{"skin_variations":{"1F3FB":{"unified":"1F449-1F3FB","non_qualified":null,"image":"1f449-1f3fb.png","sheet_x":13,"sheet_y":15,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F449-1F3FC","non_qualified":null,"image":"1f449-1f3fc.png","sheet_x":13,"sheet_y":16,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F449-1F3FD","non_qualified":null,"image":"1f449-1f3fd.png","sheet_x":13,"sheet_y":17,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F449-1F3FE","non_qualified":null,"image":"1f449-1f3fe.png","sheet_x":13,"sheet_y":18,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F449-1F3FF","non_qualified":null,"image":"1f449-1f3ff.png","sheet_x":13,"sheet_y":19,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Right Pointing Backhand Index","b":"1F449","j":["fingers","hand","direction","right"],"k":[13,14],"o":2},"desert":{"a":"Desert","b":"1F3DC-FE0F","c":"1F3DC","j":["photo","warm","saharah"],"k":[10,47],"o":2},"kimono":{"a":"Kimono","b":"1F458","j":["dress","fashion","women","female","japanese"],"k":[14,12],"o":2},"flag-al":{"a":"Albania Flag","b":"1F1E6-1F1F1","k":[0,37],"o":2},"wind_chime":{"a":"Wind Chime","b":"1F390","j":["nature","ding","spring","bell"],"k":[7,52],"o":2},"smiling_face_with_3_hearts":{"a":"Smiling Face with Smiling Eyes and Three Hearts","b":"1F970","k":[42,6],"o":11},"cat2":{"a":"Cat","b":"1F408","j":["animal","meow","pet","cats"],"k":[11,36],"o":2},"rice_scene":{"a":"Moon Viewing Ceremony","b":"1F391","j":["photo","japan","asia","tsukimi"],"k":[7,53],"o":2},"heart_eyes":{"a":"Smiling Face with Heart-Shaped Eyes","b":"1F60D","j":["face","love","like","affection","valentines","infatuation","crush","heart"],"k":[30,48],"o":2},"sari":{"a":"Sari","b":"1F97B","k":[42,13],"o":12},"flag-am":{"a":"Armenia Flag","b":"1F1E6-1F1F2","k":[0,38],"o":2},"lion_face":{"a":"Lion Face","b":"1F981","k":[42,19],"o":2},"desert_island":{"a":"Desert Island","b":"1F3DD-FE0F","c":"1F3DD","j":["photo","tropical","mojito"],"k":[10,48],"o":2},"point_up_2":{"skin_variations":{"1F3FB":{"unified":"1F446-1F3FB","non_qualified":null,"image":"1f446-1f3fb.png","sheet_x":12,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F446-1F3FC","non_qualified":null,"image":"1f446-1f3fc.png","sheet_x":12,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F446-1F3FD","non_qualified":null,"image":"1f446-1f3fd.png","sheet_x":12,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F446-1F3FE","non_qualified":null,"image":"1f446-1f3fe.png","sheet_x":13,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F446-1F3FF","non_qualified":null,"image":"1f446-1f3ff.png","sheet_x":13,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Up Pointing Backhand Index","b":"1F446","j":["fingers","hand","direction","up"],"k":[12,53],"o":2},"kiwifruit":{"a":"Kiwifruit","b":"1F95D","k":[41,44],"o":4},"children_crossing":{"a":"Children Crossing","b":"1F6B8","j":["school","warning","danger","sign","driving","yellow-diamond"],"k":[36,9],"o":2},"national_park":{"a":"National Park","b":"1F3DE-FE0F","c":"1F3DE","j":["photo","environment","nature"],"k":[10,49],"o":2},"no_entry":{"a":"No Entry","b":"26D4","j":["limit","security","privacy","bad","denied","stop","circle"],"k":[54,8],"o":2},"one-piece_swimsuit":{"a":"One-Piece Swimsuit","b":"1FA71","k":[51,52],"o":12},"tiger":{"a":"Tiger Face","b":"1F42F","j":["animal","cat","danger","wild","nature","roar"],"k":[12,19],"o":2},"red_envelope":{"a":"Red Gift Envelope","b":"1F9E7","k":[51,26],"o":11},"star-struck":{"a":"Grinning Face with Star Eyes","b":"1F929","k":[38,43],"n":["grinning_face_with_star_eyes"],"o":5},"middle_finger":{"skin_variations":{"1F3FB":{"unified":"1F595-1F3FB","non_qualified":null,"image":"1f595-1f3fb.png","sheet_x":29,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F595-1F3FC","non_qualified":null,"image":"1f595-1f3fc.png","sheet_x":29,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F595-1F3FD","non_qualified":null,"image":"1f595-1f3fd.png","sheet_x":30,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F595-1F3FE","non_qualified":null,"image":"1f595-1f3fe.png","sheet_x":30,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F595-1F3FF","non_qualified":null,"image":"1f595-1f3ff.png","sheet_x":30,"sheet_y":2,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Reversed Hand with Middle Finger Extended","b":"1F595","k":[29,54],"n":["reversed_hand_with_middle_finger_extended"],"o":2},"flag-ao":{"a":"Angola Flag","b":"1F1E6-1F1F4","k":[0,39],"o":2},"tomato":{"a":"Tomato","b":"1F345","j":["fruit","vegetable","nature","food"],"k":[6,29],"o":2},"coconut":{"a":"Coconut","b":"1F965","k":[41,52],"o":5},"ribbon":{"a":"Ribbon","b":"1F380","j":["decoration","pink","girl","bowtie"],"k":[7,31],"o":2},"no_entry_sign":{"a":"No Entry Sign","b":"1F6AB","j":["forbid","stop","limit","denied","disallow","circle"],"k":[35,2],"o":2},"point_down":{"skin_variations":{"1F3FB":{"unified":"1F447-1F3FB","non_qualified":null,"image":"1f447-1f3fb.png","sheet_x":13,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F447-1F3FC","non_qualified":null,"image":"1f447-1f3fc.png","sheet_x":13,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F447-1F3FD","non_qualified":null,"image":"1f447-1f3fd.png","sheet_x":13,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F447-1F3FE","non_qualified":null,"image":"1f447-1f3fe.png","sheet_x":13,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F447-1F3FF","non_qualified":null,"image":"1f447-1f3ff.png","sheet_x":13,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Down Pointing Backhand Index","b":"1F447","j":["fingers","hand","direction","down"],"k":[13,2],"o":2},"flag-aq":{"a":"Antarctica Flag","b":"1F1E6-1F1F6","k":[0,40],"o":2},"briefs":{"a":"Briefs","b":"1FA72","k":[51,53],"o":12},"kissing_heart":{"a":"Face Throwing a Kiss","b":"1F618","j":["face","love","like","affection","valentines","infatuation","kiss"],"k":[31,2],"l":[":*",":-*"],"o":2},"tiger2":{"a":"Tiger","b":"1F405","j":["animal","nature","roar"],"k":[11,33],"o":2},"stadium":{"a":"Stadium","b":"1F3DF-FE0F","c":"1F3DF","j":["photo","place","sports","concert","venue"],"k":[10,50],"o":2},"leopard":{"a":"Leopard","b":"1F406","j":["animal","nature"],"k":[11,34],"o":2},"no_bicycles":{"a":"No Bicycles","b":"1F6B3","j":["cyclist","prohibited","circle"],"k":[35,10],"o":2},"kissing":{"a":"Kissing Face","b":"1F617","j":["love","like","face","3","valentines","infatuation","kiss"],"k":[31,1],"o":2},"flag-ar":{"a":"Argentina Flag","b":"1F1E6-1F1F7","k":[0,41],"o":2},"avocado":{"a":"Avocado","b":"1F951","j":["fruit","food"],"k":[41,32],"o":4},"point_up":{"skin_variations":{"1F3FB":{"unified":"261D-1F3FB","non_qualified":null,"image":"261d-1f3fb.png","sheet_x":53,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"261D-1F3FC","non_qualified":null,"image":"261d-1f3fc.png","sheet_x":53,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"261D-1F3FD","non_qualified":null,"image":"261d-1f3fd.png","sheet_x":53,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"261D-1F3FE","non_qualified":null,"image":"261d-1f3fe.png","sheet_x":53,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"261D-1F3FF","non_qualified":null,"image":"261d-1f3ff.png","sheet_x":53,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Up Pointing Index","b":"261D-FE0F","c":"261D","j":["hand","fingers","direction","up"],"k":[53,2],"o":2},"gift":{"a":"Wrapped Present","b":"1F381","j":["present","birthday","christmas","xmas"],"k":[7,32],"o":2},"classical_building":{"a":"Classical Building","b":"1F3DB-FE0F","c":"1F3DB","j":["art","culture","history"],"k":[10,46],"o":2},"shorts":{"a":"Shorts","b":"1FA73","k":[51,54],"o":12},"+1":{"skin_variations":{"1F3FB":{"unified":"1F44D-1F3FB","non_qualified":null,"image":"1f44d-1f3fb.png","sheet_x":13,"sheet_y":39,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44D-1F3FC","non_qualified":null,"image":"1f44d-1f3fc.png","sheet_x":13,"sheet_y":40,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44D-1F3FD","non_qualified":null,"image":"1f44d-1f3fd.png","sheet_x":13,"sheet_y":41,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44D-1F3FE","non_qualified":null,"image":"1f44d-1f3fe.png","sheet_x":13,"sheet_y":42,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44D-1F3FF","non_qualified":null,"image":"1f44d-1f3ff.png","sheet_x":13,"sheet_y":43,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Thumbs Up Sign","b":"1F44D","j":["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],"k":[13,38],"n":["thumbsup"],"o":2},"horse":{"a":"Horse Face","b":"1F434","j":["animal","brown","nature"],"k":[12,24],"o":2},"bikini":{"a":"Bikini","b":"1F459","j":["swimming","female","woman","girl","fashion","beach","summer"],"k":[14,13],"o":2},"no_smoking":{"a":"No Smoking Symbol","b":"1F6AD","j":["cigarette","blue-square","smell","smoke"],"k":[35,4],"o":2},"eggplant":{"a":"Aubergine","b":"1F346","j":["vegetable","nature","food","aubergine"],"k":[6,30],"o":2},"flag-as":{"a":"American Samoa Flag","b":"1F1E6-1F1F8","k":[0,42],"o":2},"reminder_ribbon":{"a":"Reminder Ribbon","b":"1F397-FE0F","c":"1F397","j":["sports","cause","support","awareness"],"k":[8,0],"o":2},"building_construction":{"a":"Building Construction","b":"1F3D7-FE0F","c":"1F3D7","j":["wip","working","progress"],"k":[10,42],"o":2},"relaxed":{"a":"White Smiling Face","b":"263A-FE0F","c":"263A","j":["face","blush","massage","happiness"],"k":[53,17],"o":2},"kissing_closed_eyes":{"a":"Kissing Face with Closed Eyes","b":"1F61A","j":["face","love","like","affection","valentines","infatuation","kiss"],"k":[31,4],"o":2},"-1":{"skin_variations":{"1F3FB":{"unified":"1F44E-1F3FB","non_qualified":null,"image":"1f44e-1f3fb.png","sheet_x":13,"sheet_y":45,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44E-1F3FC","non_qualified":null,"image":"1f44e-1f3fc.png","sheet_x":13,"sheet_y":46,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44E-1F3FD","non_qualified":null,"image":"1f44e-1f3fd.png","sheet_x":13,"sheet_y":47,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44E-1F3FE","non_qualified":null,"image":"1f44e-1f3fe.png","sheet_x":13,"sheet_y":48,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44E-1F3FF","non_qualified":null,"image":"1f44e-1f3ff.png","sheet_x":13,"sheet_y":49,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Thumbs Down Sign","b":"1F44E","j":["thumbsdown","no","dislike","hand"],"k":[13,44],"n":["thumbsdown"],"o":2},"admission_tickets":{"a":"Admission Tickets","b":"1F39F-FE0F","c":"1F39F","k":[8,5],"o":2},"flag-at":{"a":"Austria Flag","b":"1F1E6-1F1F9","k":[0,43],"o":2},"womans_clothes":{"a":"Womans Clothes","b":"1F45A","j":["fashion","shopping_bags","female"],"k":[14,14],"o":2},"do_not_litter":{"a":"Do Not Litter Symbol","b":"1F6AF","j":["trash","bin","garbage","circle"],"k":[35,6],"o":2},"potato":{"a":"Potato","b":"1F954","j":["food","tuber","vegatable","starch"],"k":[41,35],"o":4},"racehorse":{"a":"Horse","b":"1F40E","j":["animal","gamble","luck"],"k":[11,42],"o":2},"bricks":{"a":"Brick","b":"1F9F1","k":[51,36],"o":11},"fist":{"skin_variations":{"1F3FB":{"unified":"270A-1F3FB","non_qualified":null,"image":"270a-1f3fb.png","sheet_x":54,"sheet_y":44,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"270A-1F3FC","non_qualified":null,"image":"270a-1f3fc.png","sheet_x":54,"sheet_y":45,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"270A-1F3FD","non_qualified":null,"image":"270a-1f3fd.png","sheet_x":54,"sheet_y":46,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"270A-1F3FE","non_qualified":null,"image":"270a-1f3fe.png","sheet_x":54,"sheet_y":47,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"270A-1F3FF","non_qualified":null,"image":"270a-1f3ff.png","sheet_x":54,"sheet_y":48,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Raised Fist","b":"270A","j":["fingers","hand","grasp"],"k":[54,43],"o":2},"house_buildings":{"a":"House Buildings","b":"1F3D8-FE0F","c":"1F3D8","k":[10,43],"o":2},"carrot":{"a":"Carrot","b":"1F955","j":["vegetable","food","orange"],"k":[41,36],"o":4},"ticket":{"a":"Ticket","b":"1F3AB","j":["event","concert","pass"],"k":[8,17],"o":2},"flag-au":{"a":"Australia Flag","b":"1F1E6-1F1FA","k":[0,44],"o":2},"non-potable_water":{"a":"Non-Potable Water Symbol","b":"1F6B1","j":["drink","faucet","tap","circle"],"k":[35,8],"o":2},"purse":{"a":"Purse","b":"1F45B","j":["fashion","accessories","money","sales","shopping"],"k":[14,15],"o":2},"unicorn_face":{"a":"Unicorn Face","b":"1F984","k":[42,22],"o":2},"kissing_smiling_eyes":{"a":"Kissing Face with Smiling Eyes","b":"1F619","j":["face","affection","valentines","infatuation","kiss"],"k":[31,3],"o":2},"facepunch":{"skin_variations":{"1F3FB":{"unified":"1F44A-1F3FB","non_qualified":null,"image":"1f44a-1f3fb.png","sheet_x":13,"sheet_y":21,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44A-1F3FC","non_qualified":null,"image":"1f44a-1f3fc.png","sheet_x":13,"sheet_y":22,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44A-1F3FD","non_qualified":null,"image":"1f44a-1f3fd.png","sheet_x":13,"sheet_y":23,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44A-1F3FE","non_qualified":null,"image":"1f44a-1f3fe.png","sheet_x":13,"sheet_y":24,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44A-1F3FF","non_qualified":null,"image":"1f44a-1f3ff.png","sheet_x":13,"sheet_y":25,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Fisted Hand Sign","b":"1F44A","j":["angry","violence","fist","hit","attack","hand"],"k":[13,20],"n":["punch"],"o":2},"medal":{"a":"Medal","b":"1F396-FE0F","c":"1F396","k":[7,56],"o":2},"zebra_face":{"a":"Zebra Face","b":"1F993","k":[42,37],"o":5},"handbag":{"a":"Handbag","b":"1F45C","j":["fashion","accessory","accessories","shopping"],"k":[14,16],"o":2},"derelict_house_building":{"a":"Derelict House Building","b":"1F3DA-FE0F","c":"1F3DA","k":[10,45],"o":2},"yum":{"a":"Face Savouring Delicious Food","b":"1F60B","j":["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],"k":[30,46],"o":2},"corn":{"a":"Ear of Maize","b":"1F33D","j":["food","vegetable","plant"],"k":[6,21],"o":2},"flag-aw":{"a":"Aruba Flag","b":"1F1E6-1F1FC","k":[0,45],"o":2},"no_pedestrians":{"a":"No Pedestrians","b":"1F6B7","j":["rules","crossing","walking","circle"],"k":[36,8],"o":2},"house":{"a":"House Building","b":"1F3E0","j":["building","home"],"k":[10,51],"o":2},"hot_pepper":{"a":"Hot Pepper","b":"1F336-FE0F","c":"1F336","j":["food","spicy","chilli","chili"],"k":[6,14],"o":2},"flag-ax":{"a":"\xc5land Islands Flag","b":"1F1E6-1F1FD","k":[0,46],"o":2},"trophy":{"a":"Trophy","b":"1F3C6","j":["win","award","contest","place","ftw","ceremony"],"k":[9,26],"o":2},"deer":{"a":"Deer","b":"1F98C","j":["animal","nature","horns","venison"],"k":[42,30],"o":4},"left-facing_fist":{"skin_variations":{"1F3FB":{"unified":"1F91B-1F3FB","non_qualified":null,"image":"1f91b-1f3fb.png","sheet_x":37,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91B-1F3FC","non_qualified":null,"image":"1f91b-1f3fc.png","sheet_x":37,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91B-1F3FD","non_qualified":null,"image":"1f91b-1f3fd.png","sheet_x":37,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91B-1F3FE","non_qualified":null,"image":"1f91b-1f3fe.png","sheet_x":37,"sheet_y":53,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91B-1F3FF","non_qualified":null,"image":"1f91b-1f3ff.png","sheet_x":37,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Left-Facing Fist","b":"1F91B","k":[37,49],"o":4},"stuck_out_tongue":{"a":"Face with Stuck-out Tongue","b":"1F61B","j":["face","prank","childish","playful","mischievous","smile","tongue"],"k":[31,5],"l":[":p",":-p",":P",":-P",":b",":-b"],"m":":p","o":2},"pouch":{"a":"Pouch","b":"1F45D","j":["bag","accessories","shopping"],"k":[14,17],"o":2},"no_mobile_phones":{"a":"No Mobile Phones","b":"1F4F5","j":["iphone","mute","circle"],"k":[27,18],"o":2},"stuck_out_tongue_winking_eye":{"a":"Face with Stuck-out Tongue and Winking Eye","b":"1F61C","j":["face","prank","childish","playful","mischievous","smile","wink","tongue"],"k":[31,6],"l":[";p",";-p",";b",";-b",";P",";-P"],"m":";p","o":2},"sports_medal":{"a":"Sports Medal","b":"1F3C5","k":[9,25],"o":2},"cucumber":{"a":"Cucumber","b":"1F952","j":["fruit","food","pickle"],"k":[41,33],"o":4},"cow":{"a":"Cow Face","b":"1F42E","j":["beef","ox","animal","nature","moo","milk"],"k":[12,18],"o":2},"underage":{"a":"No One Under Eighteen Symbol","b":"1F51E","j":["18","drink","pub","night","minor","circle"],"k":[28,1],"o":2},"flag-az":{"a":"Azerbaijan Flag","b":"1F1E6-1F1FF","k":[0,47],"o":2},"shopping_bags":{"a":"Shopping Bags","b":"1F6CD-FE0F","c":"1F6CD","k":[36,35],"o":2},"right-facing_fist":{"skin_variations":{"1F3FB":{"unified":"1F91C-1F3FB","non_qualified":null,"image":"1f91c-1f3fb.png","sheet_x":37,"sheet_y":56,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91C-1F3FC","non_qualified":null,"image":"1f91c-1f3fc.png","sheet_x":38,"sheet_y":0,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91C-1F3FD","non_qualified":null,"image":"1f91c-1f3fd.png","sheet_x":38,"sheet_y":1,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91C-1F3FE","non_qualified":null,"image":"1f91c-1f3fe.png","sheet_x":38,"sheet_y":2,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91C-1F3FF","non_qualified":null,"image":"1f91c-1f3ff.png","sheet_x":38,"sheet_y":3,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Right-Facing Fist","b":"1F91C","k":[37,55],"o":4},"house_with_garden":{"a":"House with Garden","b":"1F3E1","j":["home","plant","nature"],"k":[10,52],"o":2},"clap":{"skin_variations":{"1F3FB":{"unified":"1F44F-1F3FB","non_qualified":null,"image":"1f44f-1f3fb.png","sheet_x":13,"sheet_y":51,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44F-1F3FC","non_qualified":null,"image":"1f44f-1f3fc.png","sheet_x":13,"sheet_y":52,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44F-1F3FD","non_qualified":null,"image":"1f44f-1f3fd.png","sheet_x":13,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44F-1F3FE","non_qualified":null,"image":"1f44f-1f3fe.png","sheet_x":13,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44F-1F3FF","non_qualified":null,"image":"1f44f-1f3ff.png","sheet_x":13,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Clapping Hands Sign","b":"1F44F","j":["hands","praise","applause","congrats","yay"],"k":[13,50],"o":2},"leafy_green":{"a":"Leafy Green","b":"1F96C","k":[42,2],"o":11},"office":{"a":"Office Building","b":"1F3E2","j":["building","bureau","work"],"k":[10,53],"o":2},"flag-ba":{"a":"Bosnia & Herzegovina Flag","b":"1F1E7-1F1E6","k":[0,48],"o":2},"zany_face":{"a":"Grinning Face with One Large and One Small Eye","b":"1F92A","k":[38,44],"n":["grinning_face_with_one_large_and_one_small_eye"],"o":5},"first_place_medal":{"a":"First Place Medal","b":"1F947","k":[41,22],"o":4},"ox":{"a":"Ox","b":"1F402","j":["animal","cow","beef"],"k":[11,30],"o":2},"school_satchel":{"a":"School Satchel","b":"1F392","j":["student","education","bag","backpack"],"k":[7,54],"o":2},"radioactive_sign":{"a":"Radioactive Sign","b":"2622-FE0F","c":"2622","k":[53,9],"o":2},"second_place_medal":{"a":"Second Place Medal","b":"1F948","k":[41,23],"o":4},"stuck_out_tongue_closed_eyes":{"a":"Face with Stuck-out Tongue and Tightly-Closed Eyes","b":"1F61D","j":["face","prank","playful","mischievous","smile","tongue"],"k":[31,7],"o":2},"broccoli":{"a":"Broccoli","b":"1F966","k":[41,53],"o":5},"biohazard_sign":{"a":"Biohazard Sign","b":"2623-FE0F","c":"2623","k":[53,10],"o":2},"mans_shoe":{"a":"Mans Shoe","b":"1F45E","j":["fashion","male"],"k":[14,18],"n":["shoe"],"o":2},"raised_hands":{"skin_variations":{"1F3FB":{"unified":"1F64C-1F3FB","non_qualified":null,"image":"1f64c-1f3fb.png","sheet_x":33,"sheet_y":9,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64C-1F3FC","non_qualified":null,"image":"1f64c-1f3fc.png","sheet_x":33,"sheet_y":10,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64C-1F3FD","non_qualified":null,"image":"1f64c-1f3fd.png","sheet_x":33,"sheet_y":11,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64C-1F3FE","non_qualified":null,"image":"1f64c-1f3fe.png","sheet_x":33,"sheet_y":12,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64C-1F3FF","non_qualified":null,"image":"1f64c-1f3ff.png","sheet_x":33,"sheet_y":13,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Person Raising Both Hands in Celebration","b":"1F64C","j":["gesture","hooray","yea","celebration","hands"],"k":[33,8],"o":2},"post_office":{"a":"Japanese Post Office","b":"1F3E3","j":["building","envelope","communication"],"k":[10,54],"o":2},"flag-bb":{"a":"Barbados Flag","b":"1F1E7-1F1E7","k":[0,49],"o":2},"water_buffalo":{"a":"Water Buffalo","b":"1F403","j":["animal","nature","ox","cow"],"k":[11,31],"o":2},"third_place_medal":{"a":"Third Place Medal","b":"1F949","k":[41,24],"o":4},"european_post_office":{"a":"European Post Office","b":"1F3E4","j":["building","email"],"k":[10,55],"o":2},"athletic_shoe":{"a":"Athletic Shoe","b":"1F45F","j":["shoes","sports","sneakers"],"k":[14,19],"o":2},"arrow_up":{"a":"Upwards Black Arrow","b":"2B06-FE0F","c":"2B06","j":["blue-square","continue","top","direction"],"k":[55,38],"o":2},"cow2":{"a":"Cow","b":"1F404","j":["beef","ox","animal","nature","moo","milk"],"k":[11,32],"o":2},"open_hands":{"skin_variations":{"1F3FB":{"unified":"1F450-1F3FB","non_qualified":null,"image":"1f450-1f3fb.png","sheet_x":14,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F450-1F3FC","non_qualified":null,"image":"1f450-1f3fc.png","sheet_x":14,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F450-1F3FD","non_qualified":null,"image":"1f450-1f3fd.png","sheet_x":14,"sheet_y":2,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F450-1F3FE","non_qualified":null,"image":"1f450-1f3fe.png","sheet_x":14,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F450-1F3FF","non_qualified":null,"image":"1f450-1f3ff.png","sheet_x":14,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Open Hands Sign","b":"1F450","j":["fingers","butterfly","hands","open"],"k":[13,56],"o":2},"garlic":{"a":"Garlic","b":"1F9C4","k":[44,12],"o":12},"money_mouth_face":{"a":"Money-Mouth Face","b":"1F911","j":["face","rich","dollar","money"],"k":[37,24],"o":2},"flag-bd":{"a":"Bangladesh Flag","b":"1F1E7-1F1E9","k":[0,50],"o":2},"soccer":{"a":"Soccer Ball","b":"26BD","j":["sports","football"],"k":[53,56],"o":2},"hugging_face":{"a":"Hugging Face","b":"1F917","k":[37,30],"o":2},"onion":{"a":"Onion","b":"1F9C5","k":[44,13],"o":12},"arrow_upper_right":{"a":"North East Arrow","b":"2197-FE0F","c":"2197","j":["blue-square","point","direction","diagonal","northeast"],"k":[52,17],"o":2},"palms_up_together":{"skin_variations":{"1F3FB":{"unified":"1F932-1F3FB","non_qualified":null,"image":"1f932-1f3fb.png","sheet_x":39,"sheet_y":6,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F932-1F3FC","non_qualified":null,"image":"1f932-1f3fc.png","sheet_x":39,"sheet_y":7,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F932-1F3FD","non_qualified":null,"image":"1f932-1f3fd.png","sheet_x":39,"sheet_y":8,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F932-1F3FE","non_qualified":null,"image":"1f932-1f3fe.png","sheet_x":39,"sheet_y":9,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F932-1F3FF","non_qualified":null,"image":"1f932-1f3ff.png","sheet_x":39,"sheet_y":10,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Palms Up Together","b":"1F932","k":[39,5],"o":5},"pig":{"a":"Pig Face","b":"1F437","j":["animal","oink","nature"],"k":[12,27],"o":2},"hospital":{"a":"Hospital","b":"1F3E5","j":["building","health","surgery","doctor"],"k":[10,56],"o":2},"hiking_boot":{"a":"Hiking Boot","b":"1F97E","k":[42,16],"o":11},"flag-be":{"a":"Belgium Flag","b":"1F1E7-1F1EA","k":[0,51],"o":2},"flag-bf":{"a":"Burkina Faso Flag","b":"1F1E7-1F1EB","k":[0,52],"o":2},"mushroom":{"a":"Mushroom","b":"1F344","j":["plant","vegetable"],"k":[6,28],"o":2},"pig2":{"a":"Pig","b":"1F416","j":["animal","nature"],"k":[11,51],"o":2},"baseball":{"a":"Baseball","b":"26BE","j":["sports","balls"],"k":[54,0],"o":2},"face_with_hand_over_mouth":{"a":"Smiling Face with Smiling Eyes and Hand Covering Mouth","b":"1F92D","k":[38,47],"n":["smiling_face_with_smiling_eyes_and_hand_covering_mouth"],"o":5},"handshake":{"a":"Handshake","b":"1F91D","j":["agreement","shake"],"k":[38,4],"o":4},"womans_flat_shoe":{"a":"Flat Shoe","b":"1F97F","k":[42,17],"o":11},"bank":{"a":"Bank","b":"1F3E6","j":["building","money","sales","cash","business","enterprise"],"k":[11,0],"o":2},"arrow_right":{"a":"Black Rightwards Arrow","b":"27A1-FE0F","c":"27A1","j":["blue-square","next"],"k":[55,32],"o":2},"peanuts":{"a":"Peanuts","b":"1F95C","j":["food","nut"],"k":[41,43],"o":4},"shushing_face":{"a":"Face with Finger Covering Closed Lips","b":"1F92B","k":[38,45],"n":["face_with_finger_covering_closed_lips"],"o":5},"pray":{"skin_variations":{"1F3FB":{"unified":"1F64F-1F3FB","non_qualified":null,"image":"1f64f-1f3fb.png","sheet_x":33,"sheet_y":51,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64F-1F3FC","non_qualified":null,"image":"1f64f-1f3fc.png","sheet_x":33,"sheet_y":52,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64F-1F3FD","non_qualified":null,"image":"1f64f-1f3fd.png","sheet_x":33,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64F-1F3FE","non_qualified":null,"image":"1f64f-1f3fe.png","sheet_x":33,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64F-1F3FF","non_qualified":null,"image":"1f64f-1f3ff.png","sheet_x":33,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Person with Folded Hands","b":"1F64F","j":["please","hope","wish","namaste","highfive"],"k":[33,50],"o":2},"softball":{"a":"Softball","b":"1F94E","k":[41,29],"o":11},"high_heel":{"a":"High-Heeled Shoe","b":"1F460","j":["fashion","shoes","female","pumps","stiletto"],"k":[14,20],"o":2},"flag-bg":{"a":"Bulgaria Flag","b":"1F1E7-1F1EC","k":[0,53],"o":2},"arrow_lower_right":{"a":"South East Arrow","b":"2198-FE0F","c":"2198","j":["blue-square","direction","diagonal","southeast"],"k":[52,18],"o":2},"hotel":{"a":"Hotel","b":"1F3E8","j":["building","accomodation","checkin"],"k":[11,2],"o":2},"boar":{"a":"Boar","b":"1F417","j":["animal","nature"],"k":[11,52],"o":2},"sandal":{"a":"Womans Sandal","b":"1F461","j":["shoes","fashion","flip flops"],"k":[14,21],"o":2},"flag-bh":{"a":"Bahrain Flag","b":"1F1E7-1F1ED","k":[0,54],"o":2},"arrow_down":{"a":"Downwards Black Arrow","b":"2B07-FE0F","c":"2B07","j":["blue-square","direction","bottom"],"k":[55,39],"o":2},"thinking_face":{"a":"Thinking Face","b":"1F914","k":[37,27],"o":2},"writing_hand":{"skin_variations":{"1F3FB":{"unified":"270D-1F3FB","non_qualified":null,"image":"270d-1f3fb.png","sheet_x":55,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"270D-1F3FC","non_qualified":null,"image":"270d-1f3fc.png","sheet_x":55,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"270D-1F3FD","non_qualified":null,"image":"270d-1f3fd.png","sheet_x":55,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"270D-1F3FE","non_qualified":null,"image":"270d-1f3fe.png","sheet_x":55,"sheet_y":8,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"270D-1F3FF","non_qualified":null,"image":"270d-1f3ff.png","sheet_x":55,"sheet_y":9,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Writing Hand","b":"270D-FE0F","c":"270D","j":["lower_left_ballpoint_pen","stationery","write","compose"],"k":[55,4],"o":2},"chestnut":{"a":"Chestnut","b":"1F330","j":["food","squirrel"],"k":[6,8],"o":2},"basketball":{"a":"Basketball and Hoop","b":"1F3C0","j":["sports","balls","NBA"],"k":[8,38],"o":2},"pig_nose":{"a":"Pig Nose","b":"1F43D","j":["animal","oink"],"k":[12,33],"o":2},"love_hotel":{"a":"Love Hotel","b":"1F3E9","j":["like","affection","dating"],"k":[11,3],"o":2},"nail_care":{"skin_variations":{"1F3FB":{"unified":"1F485-1F3FB","non_qualified":null,"image":"1f485-1f3fb.png","sheet_x":24,"sheet_y":34,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F485-1F3FC","non_qualified":null,"image":"1f485-1f3fc.png","sheet_x":24,"sheet_y":35,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F485-1F3FD","non_qualified":null,"image":"1f485-1f3fd.png","sheet_x":24,"sheet_y":36,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F485-1F3FE","non_qualified":null,"image":"1f485-1f3fe.png","sheet_x":24,"sheet_y":37,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F485-1F3FF","non_qualified":null,"image":"1f485-1f3ff.png","sheet_x":24,"sheet_y":38,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Nail Polish","b":"1F485","j":["beauty","manicure","finger","fashion","nail"],"k":[24,33],"o":2},"volleyball":{"a":"Volleyball","b":"1F3D0","j":["sports","balls"],"k":[10,35],"o":2},"flag-bi":{"a":"Burundi Flag","b":"1F1E7-1F1EE","k":[0,55],"o":2},"arrow_lower_left":{"a":"South West Arrow","b":"2199-FE0F","c":"2199","j":["blue-square","direction","diagonal","southwest"],"k":[52,19],"o":2},"ram":{"a":"Ram","b":"1F40F","j":["animal","sheep","nature"],"k":[11,43],"o":2},"ballet_shoes":{"a":"Ballet Shoes","b":"1FA70","k":[51,51],"o":12},"zipper_mouth_face":{"a":"Zipper-Mouth Face","b":"1F910","j":["face","sealed","zipper","secret"],"k":[37,23],"o":2},"bread":{"a":"Bread","b":"1F35E","j":["food","wheat","breakfast","toast"],"k":[6,54],"o":2},"convenience_store":{"a":"Convenience Store","b":"1F3EA","j":["building","shopping","groceries"],"k":[11,4],"o":2},"boot":{"a":"Womans Boots","b":"1F462","j":["shoes","fashion"],"k":[14,22],"o":2},"sheep":{"a":"Sheep","b":"1F411","j":["animal","nature","wool","shipit"],"k":[11,45],"o":2},"face_with_raised_eyebrow":{"a":"Face with One Eyebrow Raised","b":"1F928","k":[38,42],"n":["face_with_one_eyebrow_raised"],"o":5},"flag-bj":{"a":"Benin Flag","b":"1F1E7-1F1EF","k":[0,56],"o":2},"arrow_left":{"a":"Leftwards Black Arrow","b":"2B05-FE0F","c":"2B05","j":["blue-square","previous","back"],"k":[55,37],"o":2},"selfie":{"skin_variations":{"1F3FB":{"unified":"1F933-1F3FB","non_qualified":null,"image":"1f933-1f3fb.png","sheet_x":39,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F933-1F3FC","non_qualified":null,"image":"1f933-1f3fc.png","sheet_x":39,"sheet_y":13,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F933-1F3FD","non_qualified":null,"image":"1f933-1f3fd.png","sheet_x":39,"sheet_y":14,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F933-1F3FE","non_qualified":null,"image":"1f933-1f3fe.png","sheet_x":39,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F933-1F3FF","non_qualified":null,"image":"1f933-1f3ff.png","sheet_x":39,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Selfie","b":"1F933","j":["camera","phone"],"k":[39,11],"o":4},"croissant":{"a":"Croissant","b":"1F950","j":["food","bread","french"],"k":[41,31],"o":4},"school":{"a":"School","b":"1F3EB","j":["building","student","education","learn","teach"],"k":[11,5],"o":2},"football":{"a":"American Football","b":"1F3C8","j":["sports","balls","NFL"],"k":[9,33],"o":2},"goat":{"a":"Goat","b":"1F410","j":["animal","nature"],"k":[11,44],"o":2},"department_store":{"a":"Department Store","b":"1F3EC","j":["building","shopping","mall"],"k":[11,6],"o":2},"flag-bl":{"a":"St. Barth\xe9lemy Flag","b":"1F1E7-1F1F1","k":[1,0],"o":2},"crown":{"a":"Crown","b":"1F451","j":["king","kod","leader","royalty","lord"],"k":[14,5],"o":2},"arrow_upper_left":{"a":"North West Arrow","b":"2196-FE0F","c":"2196","j":["blue-square","point","direction","diagonal","northwest"],"k":[52,16],"o":2},"neutral_face":{"a":"Neutral Face","b":"1F610","j":["indifference","meh",":|","neutral"],"k":[30,51],"l":[":|",":-|"],"o":2},"rugby_football":{"a":"Rugby Football","b":"1F3C9","j":["sports","team"],"k":[9,34],"o":2},"muscle":{"skin_variations":{"1F3FB":{"unified":"1F4AA-1F3FB","non_qualified":null,"image":"1f4aa-1f3fb.png","sheet_x":25,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F4AA-1F3FC","non_qualified":null,"image":"1f4aa-1f3fc.png","sheet_x":25,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F4AA-1F3FD","non_qualified":null,"image":"1f4aa-1f3fd.png","sheet_x":25,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F4AA-1F3FE","non_qualified":null,"image":"1f4aa-1f3fe.png","sheet_x":25,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F4AA-1F3FF","non_qualified":null,"image":"1f4aa-1f3ff.png","sheet_x":26,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Flexed Biceps","b":"1F4AA","j":["arm","flex","hand","summer","strong","biceps"],"k":[25,52],"o":2},"baguette_bread":{"a":"Baguette Bread","b":"1F956","j":["food","bread","french"],"k":[41,37],"o":4},"expressionless":{"a":"Expressionless Face","b":"1F611","j":["face","indifferent","-_-","meh","deadpan"],"k":[30,52],"o":2},"womans_hat":{"a":"Womans Hat","b":"1F452","j":["fashion","accessories","female","lady","spring"],"k":[14,6],"o":2},"pretzel":{"a":"Pretzel","b":"1F968","k":[41,55],"o":5},"mechanical_arm":{"a":"Mechanical Arm","b":"1F9BE","k":[44,6],"o":12},"arrow_up_down":{"a":"Up Down Arrow","b":"2195-FE0F","c":"2195","j":["blue-square","direction","way","vertical"],"k":[52,15],"o":2},"dromedary_camel":{"a":"Dromedary Camel","b":"1F42A","j":["animal","hot","desert","hump"],"k":[12,14],"o":2},"tennis":{"a":"Tennis Racquet and Ball","b":"1F3BE","j":["sports","balls","green"],"k":[8,36],"o":2},"flag-bm":{"a":"Bermuda Flag","b":"1F1E7-1F1F2","k":[1,1],"o":2},"factory":{"a":"Factory","b":"1F3ED","j":["building","industry","pollution","smoke"],"k":[11,7],"o":2},"japanese_castle":{"a":"Japanese Castle","b":"1F3EF","j":["photo","building"],"k":[11,9],"o":2},"no_mouth":{"a":"Face Without Mouth","b":"1F636","j":["face","hellokitty"],"k":[31,32],"o":2},"mechanical_leg":{"a":"Mechanical Leg","b":"1F9BF","k":[44,7],"o":12},"bagel":{"a":"Bagel","b":"1F96F","k":[42,5],"o":11},"camel":{"a":"Bactrian Camel","b":"1F42B","j":["animal","nature","hot","desert","hump"],"k":[12,15],"o":2},"tophat":{"a":"Top Hat","b":"1F3A9","j":["magic","gentleman","classy","circus"],"k":[8,15],"o":2},"left_right_arrow":{"a":"Left Right Arrow","b":"2194-FE0F","c":"2194","j":["shape","direction","horizontal","sideways"],"k":[52,14],"o":2},"flag-bn":{"a":"Brunei Flag","b":"1F1E7-1F1F3","k":[1,2],"o":2},"flying_disc":{"a":"Flying Disc","b":"1F94F","k":[41,30],"o":11},"smirk":{"a":"Smirking Face","b":"1F60F","j":["face","smile","mean","prank","smug","sarcasm"],"k":[30,50],"o":2},"mortar_board":{"a":"Graduation Cap","b":"1F393","j":["school","college","degree","university","graduation","cap","hat","legal","learn","education"],"k":[7,55],"o":2},"european_castle":{"a":"European Castle","b":"1F3F0","j":["building","royalty","history"],"k":[11,10],"o":2},"leg":{"skin_variations":{"1F3FB":{"unified":"1F9B5-1F3FB","non_qualified":null,"image":"1f9b5-1f3fb.png","sheet_x":43,"sheet_y":6,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9B5-1F3FC","non_qualified":null,"image":"1f9b5-1f3fc.png","sheet_x":43,"sheet_y":7,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9B5-1F3FD","non_qualified":null,"image":"1f9b5-1f3fd.png","sheet_x":43,"sheet_y":8,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9B5-1F3FE","non_qualified":null,"image":"1f9b5-1f3fe.png","sheet_x":43,"sheet_y":9,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9B5-1F3FF","non_qualified":null,"image":"1f9b5-1f3ff.png","sheet_x":43,"sheet_y":10,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Leg","b":"1F9B5","k":[43,5],"o":11},"pancakes":{"a":"Pancakes","b":"1F95E","j":["food","breakfast","flapjacks","hotcakes"],"k":[41,45],"o":4},"leftwards_arrow_with_hook":{"a":"Leftwards Arrow with Hook","b":"21A9-FE0F","c":"21A9","j":["back","return","blue-square","undo","enter"],"k":[52,20],"o":2},"flag-bo":{"a":"Bolivia Flag","b":"1F1E7-1F1F4","k":[1,3],"o":2},"bowling":{"a":"Bowling","b":"1F3B3","j":["sports","fun","play"],"k":[8,25],"o":2},"llama":{"a":"Llama","b":"1F999","k":[42,43],"o":11},"arrow_right_hook":{"a":"Rightwards Arrow with Hook","b":"21AA-FE0F","c":"21AA","j":["blue-square","return","rotate","direction"],"k":[52,21],"o":2},"wedding":{"a":"Wedding","b":"1F492","j":["love","like","affection","couple","marriage","bride","groom"],"k":[25,28],"o":2},"flag-bq":{"a":"Caribbean Netherlands Flag","b":"1F1E7-1F1F6","k":[1,4],"o":2},"foot":{"skin_variations":{"1F3FB":{"unified":"1F9B6-1F3FB","non_qualified":null,"image":"1f9b6-1f3fb.png","sheet_x":43,"sheet_y":12,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9B6-1F3FC","non_qualified":null,"image":"1f9b6-1f3fc.png","sheet_x":43,"sheet_y":13,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9B6-1F3FD","non_qualified":null,"image":"1f9b6-1f3fd.png","sheet_x":43,"sheet_y":14,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9B6-1F3FE","non_qualified":null,"image":"1f9b6-1f3fe.png","sheet_x":43,"sheet_y":15,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9B6-1F3FF","non_qualified":null,"image":"1f9b6-1f3ff.png","sheet_x":43,"sheet_y":16,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Foot","b":"1F9B6","k":[43,11],"o":11},"giraffe_face":{"a":"Giraffe Face","b":"1F992","k":[42,36],"o":5},"unamused":{"a":"Unamused Face","b":"1F612","j":["indifference","bored","straight face","serious","sarcasm"],"k":[30,53],"m":":(","o":2},"billed_cap":{"a":"Billed Cap","b":"1F9E2","k":[51,21],"o":5},"waffle":{"a":"Waffle","b":"1F9C7","k":[44,15],"o":12},"cricket_bat_and_ball":{"a":"Cricket Bat and Ball","b":"1F3CF","k":[10,34],"o":2},"helmet_with_white_cross":{"a":"Helmet with White Cross","b":"26D1-FE0F","c":"26D1","k":[54,6],"o":2},"ear":{"skin_variations":{"1F3FB":{"unified":"1F442-1F3FB","non_qualified":null,"image":"1f442-1f3fb.png","sheet_x":12,"sheet_y":40,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F442-1F3FC","non_qualified":null,"image":"1f442-1f3fc.png","sheet_x":12,"sheet_y":41,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F442-1F3FD","non_qualified":null,"image":"1f442-1f3fd.png","sheet_x":12,"sheet_y":42,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F442-1F3FE","non_qualified":null,"image":"1f442-1f3fe.png","sheet_x":12,"sheet_y":43,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F442-1F3FF","non_qualified":null,"image":"1f442-1f3ff.png","sheet_x":12,"sheet_y":44,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Ear","b":"1F442","j":["face","hear","sound","listen"],"k":[12,39],"o":2},"elephant":{"a":"Elephant","b":"1F418","j":["animal","nature","nose","th","circus"],"k":[11,53],"o":2},"cheese_wedge":{"a":"Cheese Wedge","b":"1F9C0","k":[44,8],"o":2},"tokyo_tower":{"a":"Tokyo Tower","b":"1F5FC","j":["photo","japanese"],"k":[30,31],"o":2},"arrow_heading_up":{"a":"Arrow Pointing Rightwards Then Curving Upwards","b":"2934-FE0F","c":"2934","j":["blue-square","direction","top"],"k":[55,35],"o":2},"field_hockey_stick_and_ball":{"a":"Field Hockey Stick and Ball","b":"1F3D1","k":[10,36],"o":2},"flag-br":{"a":"Brazil Flag","b":"1F1E7-1F1F7","k":[1,5],"o":2},"face_with_rolling_eyes":{"a":"Face with Rolling Eyes","b":"1F644","k":[31,46],"o":2},"ear_with_hearing_aid":{"skin_variations":{"1F3FB":{"unified":"1F9BB-1F3FB","non_qualified":null,"image":"1f9bb-1f3fb.png","sheet_x":43,"sheet_y":56,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9BB-1F3FC","non_qualified":null,"image":"1f9bb-1f3fc.png","sheet_x":44,"sheet_y":0,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9BB-1F3FD","non_qualified":null,"image":"1f9bb-1f3fd.png","sheet_x":44,"sheet_y":1,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9BB-1F3FE","non_qualified":null,"image":"1f9bb-1f3fe.png","sheet_x":44,"sheet_y":2,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9BB-1F3FF","non_qualified":null,"image":"1f9bb-1f3ff.png","sheet_x":44,"sheet_y":3,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Ear with Hearing Aid","b":"1F9BB","k":[43,55],"o":12},"arrow_heading_down":{"a":"Arrow Pointing Rightwards Then Curving Downwards","b":"2935-FE0F","c":"2935","j":["blue-square","direction","bottom"],"k":[55,36],"o":2},"ice_hockey_stick_and_puck":{"a":"Ice Hockey Stick and Puck","b":"1F3D2","k":[10,37],"o":2},"meat_on_bone":{"a":"Meat on Bone","b":"1F356","j":["good","food","drumstick"],"k":[6,46],"o":2},"prayer_beads":{"a":"Prayer Beads","b":"1F4FF","j":["dhikr","religious"],"k":[27,27],"o":2},"statue_of_liberty":{"a":"Statue of Liberty","b":"1F5FD","j":["american","newyork"],"k":[30,32],"o":2},"grimacing":{"a":"Grimacing Face","b":"1F62C","j":["face","grimace","teeth"],"k":[31,22],"o":2},"flag-bs":{"a":"Bahamas Flag","b":"1F1E7-1F1F8","k":[1,6],"o":2},"rhinoceros":{"a":"Rhinoceros","b":"1F98F","j":["animal","nature","horn"],"k":[42,33],"o":4},"lacrosse":{"a":"Lacrosse Stick and Ball","b":"1F94D","k":[41,28],"o":11},"poultry_leg":{"a":"Poultry Leg","b":"1F357","j":["food","meat","drumstick","bird","chicken","turkey"],"k":[6,47],"o":2},"hippopotamus":{"a":"Hippopotamus","b":"1F99B","k":[42,45],"o":11},"nose":{"skin_variations":{"1F3FB":{"unified":"1F443-1F3FB","non_qualified":null,"image":"1f443-1f3fb.png","sheet_x":12,"sheet_y":46,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F443-1F3FC","non_qualified":null,"image":"1f443-1f3fc.png","sheet_x":12,"sheet_y":47,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F443-1F3FD","non_qualified":null,"image":"1f443-1f3fd.png","sheet_x":12,"sheet_y":48,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F443-1F3FE","non_qualified":null,"image":"1f443-1f3fe.png","sheet_x":12,"sheet_y":49,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F443-1F3FF","non_qualified":null,"image":"1f443-1f3ff.png","sheet_x":12,"sheet_y":50,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Nose","b":"1F443","j":["smell","sniff"],"k":[12,45],"o":2},"arrows_clockwise":{"a":"Clockwise Downwards and Upwards Open Circle Arrows","b":"1F503","j":["sync","cycle","round","repeat"],"k":[27,31],"o":2},"flag-bt":{"a":"Bhutan Flag","b":"1F1E7-1F1F9","k":[1,7],"o":2},"church":{"a":"Church","b":"26EA","j":["building","religion","christ"],"k":[54,10],"o":2},"lipstick":{"a":"Lipstick","b":"1F484","j":["female","girl","fashion","woman"],"k":[24,32],"o":2},"lying_face":{"a":"Lying Face","b":"1F925","j":["face","lie","pinocchio"],"k":[38,22],"o":4},"arrows_counterclockwise":{"a":"Anticlockwise Downwards and Upwards Open Circle Arrows","b":"1F504","j":["blue-square","sync","cycle"],"k":[27,32],"o":2},"flag-bv":{"a":"Bouvet Island Flag","b":"1F1E7-1F1FB","k":[1,8],"o":2},"cut_of_meat":{"a":"Cut of Meat","b":"1F969","k":[41,56],"o":5},"mosque":{"a":"Mosque","b":"1F54C","j":["islam","worship","minaret"],"k":[28,36],"o":2},"ring":{"a":"Ring","b":"1F48D","j":["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],"k":[25,23],"o":2},"brain":{"a":"Brain","b":"1F9E0","k":[51,19],"o":5},"table_tennis_paddle_and_ball":{"a":"Table Tennis Paddle and Ball","b":"1F3D3","k":[10,38],"o":2},"relieved":{"a":"Relieved Face","b":"1F60C","j":["face","relaxed","phew","massage","happiness"],"k":[30,47],"o":2},"mouse":{"a":"Mouse Face","b":"1F42D","j":["animal","nature","cheese_wedge","rodent"],"k":[12,17],"o":2},"hindu_temple":{"a":"Hindu Temple","b":"1F6D5","k":[36,41],"o":12},"back":{"a":"Back with Leftwards Arrow Above","b":"1F519","j":["arrow","words","return"],"k":[27,53],"o":2},"gem":{"a":"Gem Stone","b":"1F48E","j":["blue","ruby","diamond","jewelry"],"k":[25,24],"o":2},"pensive":{"a":"Pensive Face","b":"1F614","j":["face","sad","depressed","upset"],"k":[30,55],"o":2},"flag-bw":{"a":"Botswana Flag","b":"1F1E7-1F1FC","k":[1,9],"o":2},"mouse2":{"a":"Mouse","b":"1F401","j":["animal","nature","rodent"],"k":[11,29],"o":2},"bacon":{"a":"Bacon","b":"1F953","j":["food","breakfast","pork","pig","meat"],"k":[41,34],"o":4},"tooth":{"a":"Tooth","b":"1F9B7","k":[43,17],"o":11},"badminton_racquet_and_shuttlecock":{"a":"Badminton Racquet and Shuttlecock","b":"1F3F8","k":[11,20],"o":2},"rat":{"a":"Rat","b":"1F400","j":["animal","mouse","rodent"],"k":[11,28],"o":2},"synagogue":{"a":"Synagogue","b":"1F54D","j":["judaism","worship","temple","jewish"],"k":[28,37],"o":2},"end":{"a":"End with Leftwards Arrow Above","b":"1F51A","j":["words","arrow"],"k":[27,54],"o":2},"bone":{"a":"Bone","b":"1F9B4","k":[43,4],"o":11},"boxing_glove":{"a":"Boxing Glove","b":"1F94A","j":["sports","fighting"],"k":[41,25],"o":4},"mute":{"a":"Speaker with Cancellation Stroke","b":"1F507","j":["sound","volume","silence","quiet"],"k":[27,35],"o":2},"hamburger":{"a":"Hamburger","b":"1F354","j":["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],"k":[6,44],"o":2},"flag-by":{"a":"Belarus Flag","b":"1F1E7-1F1FE","k":[1,10],"o":2},"sleepy":{"a":"Sleepy Face","b":"1F62A","j":["face","tired","rest","nap"],"k":[31,20],"o":2},"on":{"a":"On with Exclamation Mark with Left Right Arrow Above","b":"1F51B","j":["arrow","words"],"k":[27,55],"o":2},"martial_arts_uniform":{"a":"Martial Arts Uniform","b":"1F94B","j":["judo","karate","taekwondo"],"k":[41,26],"o":4},"speaker":{"a":"Speaker","b":"1F508","j":["sound","volume","silence","broadcast"],"k":[27,36],"o":2},"drooling_face":{"a":"Drooling Face","b":"1F924","j":["face"],"k":[38,21],"o":4},"eyes":{"a":"Eyes","b":"1F440","j":["look","watch","stalk","peek","see"],"k":[12,36],"o":2},"flag-bz":{"a":"Belize Flag","b":"1F1E7-1F1FF","k":[1,11],"o":2},"hamster":{"a":"Hamster Face","b":"1F439","j":["animal","nature"],"k":[12,29],"o":2},"shinto_shrine":{"a":"Shinto Shrine","b":"26E9-FE0F","c":"26E9","j":["temple","japan","kyoto"],"k":[54,9],"o":2},"fries":{"a":"French Fries","b":"1F35F","j":["chips","snack","fast food"],"k":[6,55],"o":2},"goal_net":{"a":"Goal Net","b":"1F945","j":["sports"],"k":[41,21],"o":4},"kaaba":{"a":"Kaaba","b":"1F54B","j":["mecca","mosque","islam"],"k":[28,35],"o":2},"soon":{"a":"Soon with Rightwards Arrow Above","b":"1F51C","j":["arrow","words"],"k":[27,56],"o":2},"flag-ca":{"a":"Canada Flag","b":"1F1E8-1F1E6","k":[1,12],"o":2},"rabbit":{"a":"Rabbit Face","b":"1F430","j":["animal","nature","pet","spring","magic","bunny"],"k":[12,20],"o":2},"eye":{"a":"Eye","b":"1F441-FE0F","c":"1F441","j":["face","look","see","watch","stare"],"k":[12,38],"o":2},"sleeping":{"a":"Sleeping Face","b":"1F634","j":["face","tired","sleepy","night","zzz"],"k":[31,30],"o":2},"pizza":{"a":"Slice of Pizza","b":"1F355","j":["food","party"],"k":[6,45],"o":2},"sound":{"a":"Speaker with One Sound Wave","b":"1F509","j":["volume","speaker","broadcast"],"k":[27,37],"o":2},"rabbit2":{"a":"Rabbit","b":"1F407","j":["animal","nature","pet","magic","spring"],"k":[11,35],"o":2},"fountain":{"a":"Fountain","b":"26F2","j":["photo","summer","water","fresh"],"k":[54,13],"o":2},"golf":{"a":"Flag in Hole","b":"26F3","j":["sports","business","flag","hole","summer"],"k":[54,14],"o":2},"top":{"a":"Top with Upwards Arrow Above","b":"1F51D","j":["words","blue-square"],"k":[28,0],"o":2},"mask":{"a":"Face with Medical Mask","b":"1F637","j":["face","sick","ill","disease"],"k":[31,33],"o":2},"flag-cc":{"a":"Cocos (keeling) Islands Flag","b":"1F1E8-1F1E8","k":[1,13],"o":2},"hotdog":{"a":"Hot Dog","b":"1F32D","j":["food","frankfurter"],"k":[6,5],"o":2},"loud_sound":{"a":"Speaker with Three Sound Waves","b":"1F50A","j":["volume","noise","noisy","speaker","broadcast"],"k":[27,38],"o":2},"tongue":{"a":"Tongue","b":"1F445","j":["mouth","playful"],"k":[12,52],"o":2},"place_of_worship":{"a":"Place of Worship","b":"1F6D0","j":["religion","church","temple","prayer"],"k":[36,38],"o":2},"ice_skate":{"a":"Ice Skate","b":"26F8-FE0F","c":"26F8","j":["sports"],"k":[54,18],"o":2},"sandwich":{"a":"Sandwich","b":"1F96A","k":[42,0],"o":5},"chipmunk":{"a":"Chipmunk","b":"1F43F-FE0F","c":"1F43F","j":["animal","nature","rodent","squirrel"],"k":[12,35],"o":2},"loudspeaker":{"a":"Public Address Loudspeaker","b":"1F4E2","j":["volume","sound"],"k":[26,56],"o":2},"lips":{"a":"Mouth","b":"1F444","j":["mouth","kiss"],"k":[12,51],"o":2},"flag-cd":{"a":"Congo - Kinshasa Flag","b":"1F1E8-1F1E9","k":[1,14],"o":2},"tent":{"a":"Tent","b":"26FA","j":["photo","camping","outdoors"],"k":[54,37],"o":2},"face_with_thermometer":{"a":"Face with Thermometer","b":"1F912","j":["sick","temperature","thermometer","cold","fever"],"k":[37,25],"o":2},"taco":{"a":"Taco","b":"1F32E","j":["food","mexican"],"k":[6,6],"o":2},"foggy":{"a":"Foggy","b":"1F301","j":["photo","mountain"],"k":[5,20],"o":2},"flag-cf":{"a":"Central African Republic Flag","b":"1F1E8-1F1EB","k":[1,15],"o":2},"baby":{"skin_variations":{"1F3FB":{"unified":"1F476-1F3FB","non_qualified":null,"image":"1f476-1f3fb.png","sheet_x":23,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F476-1F3FC","non_qualified":null,"image":"1f476-1f3fc.png","sheet_x":23,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F476-1F3FD","non_qualified":null,"image":"1f476-1f3fd.png","sheet_x":23,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F476-1F3FE","non_qualified":null,"image":"1f476-1f3fe.png","sheet_x":23,"sheet_y":8,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F476-1F3FF","non_qualified":null,"image":"1f476-1f3ff.png","sheet_x":23,"sheet_y":9,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Baby","b":"1F476","j":["child","boy","girl","toddler"],"k":[23,4],"o":2},"atom_symbol":{"a":"Atom Symbol","b":"269B-FE0F","c":"269B","j":["science","physics","chemistry"],"k":[53,48],"o":2},"fishing_pole_and_fish":{"a":"Fishing Pole and Fish","b":"1F3A3","j":["food","hobby","summer"],"k":[8,9],"o":2},"hedgehog":{"a":"Hedgehog","b":"1F994","k":[42,38],"o":5},"face_with_head_bandage":{"a":"Face with Head-Bandage","b":"1F915","j":["injured","clumsy","bandage","hurt"],"k":[37,28],"o":2},"mega":{"a":"Cheering Megaphone","b":"1F4E3","j":["sound","speaker","volume"],"k":[27,0],"o":2},"nauseated_face":{"a":"Nauseated Face","b":"1F922","j":["face","vomit","gross","green","sick","throw up","ill"],"k":[38,19],"o":4},"child":{"skin_variations":{"1F3FB":{"unified":"1F9D2-1F3FB","non_qualified":null,"image":"1f9d2-1f3fb.png","sheet_x":48,"sheet_y":17,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9D2-1F3FC","non_qualified":null,"image":"1f9d2-1f3fc.png","sheet_x":48,"sheet_y":18,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9D2-1F3FD","non_qualified":null,"image":"1f9d2-1f3fd.png","sheet_x":48,"sheet_y":19,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9D2-1F3FE","non_qualified":null,"image":"1f9d2-1f3fe.png","sheet_x":48,"sheet_y":20,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9D2-1F3FF","non_qualified":null,"image":"1f9d2-1f3ff.png","sheet_x":48,"sheet_y":21,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Child","b":"1F9D2","k":[48,16],"o":5},"flag-cg":{"a":"Congo - Brazzaville Flag","b":"1F1E8-1F1EC","k":[1,16],"o":2},"bat":{"a":"Bat","b":"1F987","j":["animal","nature","blind","vampire"],"k":[42,25],"o":4},"diving_mask":{"a":"Diving Mask","b":"1F93F","k":[41,15],"o":12},"burrito":{"a":"Burrito","b":"1F32F","j":["food","mexican"],"k":[6,7],"o":2},"postal_horn":{"a":"Postal Horn","b":"1F4EF","j":["instrument","music"],"k":[27,12],"o":2},"night_with_stars":{"a":"Night with Stars","b":"1F303","j":["evening","city","downtown"],"k":[5,22],"o":2},"om_symbol":{"a":"Om Symbol","b":"1F549-FE0F","c":"1F549","k":[28,33],"o":2},"star_of_david":{"a":"Star of David","b":"2721-FE0F","c":"2721","j":["judaism"],"k":[55,15],"o":2},"boy":{"skin_variations":{"1F3FB":{"unified":"1F466-1F3FB","non_qualified":null,"image":"1f466-1f3fb.png","sheet_x":14,"sheet_y":27,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F466-1F3FC","non_qualified":null,"image":"1f466-1f3fc.png","sheet_x":14,"sheet_y":28,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F466-1F3FD","non_qualified":null,"image":"1f466-1f3fd.png","sheet_x":14,"sheet_y":29,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F466-1F3FE","non_qualified":null,"image":"1f466-1f3fe.png","sheet_x":14,"sheet_y":30,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F466-1F3FF","non_qualified":null,"image":"1f466-1f3ff.png","sheet_x":14,"sheet_y":31,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Boy","b":"1F466","j":["man","male","guy","teenager"],"k":[14,26],"o":2},"bell":{"a":"Bell","b":"1F514","j":["sound","notification","christmas","xmas","chime"],"k":[27,48],"o":2},"flag-ch":{"a":"Switzerland Flag","b":"1F1E8-1F1ED","k":[1,17],"o":2},"running_shirt_with_sash":{"a":"Running Shirt with Sash","b":"1F3BD","j":["play","pageant"],"k":[8,35],"o":2},"stuffed_flatbread":{"a":"Stuffed Flatbread","b":"1F959","j":["food","flatbread","stuffed","gyro"],"k":[41,40],"o":4},"bear":{"a":"Bear Face","b":"1F43B","j":["animal","nature","wild"],"k":[12,31],"o":2},"cityscape":{"a":"Cityscape","b":"1F3D9-FE0F","c":"1F3D9","j":["photo","night life","urban"],"k":[10,44],"o":2},"face_vomiting":{"a":"Face with Open Mouth Vomiting","b":"1F92E","k":[38,48],"n":["face_with_open_mouth_vomiting"],"o":5},"wheel_of_dharma":{"a":"Wheel of Dharma","b":"2638-FE0F","c":"2638","j":["hinduism","buddhism","sikhism","jainism"],"k":[53,15],"o":2},"ski":{"a":"Ski and Ski Boot","b":"1F3BF","j":["sports","winter","cold","snow"],"k":[8,37],"o":2},"girl":{"skin_variations":{"1F3FB":{"unified":"1F467-1F3FB","non_qualified":null,"image":"1f467-1f3fb.png","sheet_x":14,"sheet_y":33,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F467-1F3FC","non_qualified":null,"image":"1f467-1f3fc.png","sheet_x":14,"sheet_y":34,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F467-1F3FD","non_qualified":null,"image":"1f467-1f3fd.png","sheet_x":14,"sheet_y":35,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F467-1F3FE","non_qualified":null,"image":"1f467-1f3fe.png","sheet_x":14,"sheet_y":36,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F467-1F3FF","non_qualified":null,"image":"1f467-1f3ff.png","sheet_x":14,"sheet_y":37,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Girl","b":"1F467","j":["female","woman","teenager"],"k":[14,32],"o":2},"falafel":{"a":"Falafel","b":"1F9C6","k":[44,14],"o":12},"sneezing_face":{"a":"Sneezing Face","b":"1F927","j":["face","gesundheit","sneeze","sick","allergy"],"k":[38,41],"o":4},"no_bell":{"a":"Bell with Cancellation Stroke","b":"1F515","j":["sound","volume","mute","quiet","silent"],"k":[27,49],"o":2},"koala":{"a":"Koala","b":"1F428","j":["animal","nature"],"k":[12,12],"o":2},"sunrise_over_mountains":{"a":"Sunrise over Mountains","b":"1F304","j":["view","vacation","photo"],"k":[5,23],"o":2},"flag-ci":{"a":"C\xf4te D\u2019ivoire Flag","b":"1F1E8-1F1EE","k":[1,18],"o":2},"sunrise":{"a":"Sunrise","b":"1F305","j":["morning","view","vacation","photo"],"k":[5,24],"o":2},"yin_yang":{"a":"Yin Yang","b":"262F-FE0F","c":"262F","j":["balance"],"k":[53,14],"o":2},"adult":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB","non_qualified":null,"image":"1f9d1-1f3fb.png","sheet_x":48,"sheet_y":11,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9D1-1F3FC","non_qualified":null,"image":"1f9d1-1f3fc.png","sheet_x":48,"sheet_y":12,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9D1-1F3FD","non_qualified":null,"image":"1f9d1-1f3fd.png","sheet_x":48,"sheet_y":13,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9D1-1F3FE","non_qualified":null,"image":"1f9d1-1f3fe.png","sheet_x":48,"sheet_y":14,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9D1-1F3FF","non_qualified":null,"image":"1f9d1-1f3ff.png","sheet_x":48,"sheet_y":15,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Adult","b":"1F9D1","k":[48,10],"o":5},"hot_face":{"a":"Overheated Face","b":"1F975","k":[42,10],"o":11},"musical_score":{"a":"Musical Score","b":"1F3BC","j":["treble","clef","compose"],"k":[8,34],"o":2},"sled":{"a":"Sled","b":"1F6F7","k":[36,56],"o":5},"egg":{"a":"Egg","b":"1F95A","j":["food","chicken","breakfast"],"k":[41,41],"o":4},"panda_face":{"a":"Panda Face","b":"1F43C","j":["animal","nature","panda"],"k":[12,32],"o":2},"flag-ck":{"a":"Cook Islands Flag","b":"1F1E8-1F1F0","k":[1,19],"o":2},"flag-cl":{"a":"Chile Flag","b":"1F1E8-1F1F1","k":[1,20],"o":2},"person_with_blond_hair":{"skin_variations":{"1F3FB":{"unified":"1F471-1F3FB","non_qualified":null,"image":"1f471-1f3fb.png","sheet_x":22,"sheet_y":20,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F471-1F3FC","non_qualified":null,"image":"1f471-1f3fc.png","sheet_x":22,"sheet_y":21,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F471-1F3FD","non_qualified":null,"image":"1f471-1f3fd.png","sheet_x":22,"sheet_y":22,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F471-1F3FE","non_qualified":null,"image":"1f471-1f3fe.png","sheet_x":22,"sheet_y":23,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F471-1F3FF","non_qualified":null,"image":"1f471-1f3ff.png","sheet_x":22,"sheet_y":24,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F471-200D-2642-FE0F","a":"Person with Blond Hair","b":"1F471","k":[22,19],"o":2},"sloth":{"a":"Sloth","b":"1F9A5","k":[42,53],"o":12},"latin_cross":{"a":"Latin Cross","b":"271D-FE0F","c":"271D","j":["christianity"],"k":[55,14],"o":2},"curling_stone":{"a":"Curling Stone","b":"1F94C","k":[41,27],"o":5},"cold_face":{"a":"Freezing Face","b":"1F976","k":[42,11],"o":11},"fried_egg":{"a":"Cooking","b":"1F373","j":["food","breakfast","kitchen","egg"],"k":[7,18],"n":["cooking"],"o":2},"city_sunset":{"a":"Cityscape at Dusk","b":"1F306","j":["photo","evening","sky","buildings"],"k":[5,25],"o":2},"musical_note":{"a":"Musical Note","b":"1F3B5","j":["score","tone","sound"],"k":[8,27],"o":2},"flag-cm":{"a":"Cameroon Flag","b":"1F1E8-1F1F2","k":[1,21],"o":2},"notes":{"a":"Multiple Musical Notes","b":"1F3B6","j":["music","score"],"k":[8,28],"o":2},"woozy_face":{"a":"Face with Uneven Eyes and Wavy Mouth","b":"1F974","k":[42,9],"o":11},"dart":{"a":"Direct Hit","b":"1F3AF","j":["game","play","bar"],"k":[8,21],"o":2},"orthodox_cross":{"a":"Orthodox Cross","b":"2626-FE0F","c":"2626","j":["suppedaneum","religion"],"k":[53,11],"o":2},"shallow_pan_of_food":{"a":"Shallow Pan of Food","b":"1F958","j":["food","cooking","casserole","paella"],"k":[41,39],"o":4},"otter":{"a":"Otter","b":"1F9A6","k":[42,54],"o":12},"man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB","non_qualified":null,"image":"1f468-1f3fb.png","sheet_x":17,"sheet_y":23,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC","non_qualified":null,"image":"1f468-1f3fc.png","sheet_x":17,"sheet_y":24,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD","non_qualified":null,"image":"1f468-1f3fd.png","sheet_x":17,"sheet_y":25,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE","non_qualified":null,"image":"1f468-1f3fe.png","sheet_x":17,"sheet_y":26,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF","non_qualified":null,"image":"1f468-1f3ff.png","sheet_x":17,"sheet_y":27,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man","b":"1F468","j":["mustache","father","dad","guy","classy","sir","moustache"],"k":[17,22],"o":2},"city_sunrise":{"a":"Sunset over Buildings","b":"1F307","j":["photo","good morning","dawn"],"k":[5,26],"o":2},"bearded_person":{"skin_variations":{"1F3FB":{"unified":"1F9D4-1F3FB","non_qualified":null,"image":"1f9d4-1f3fb.png","sheet_x":48,"sheet_y":29,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9D4-1F3FC","non_qualified":null,"image":"1f9d4-1f3fc.png","sheet_x":48,"sheet_y":30,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9D4-1F3FD","non_qualified":null,"image":"1f9d4-1f3fd.png","sheet_x":48,"sheet_y":31,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9D4-1F3FE","non_qualified":null,"image":"1f9d4-1f3fe.png","sheet_x":48,"sheet_y":32,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9D4-1F3FF","non_qualified":null,"image":"1f9d4-1f3ff.png","sheet_x":48,"sheet_y":33,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Bearded Person","b":"1F9D4","k":[48,28],"o":5},"skunk":{"a":"Skunk","b":"1F9A8","k":[42,56],"o":12},"stew":{"a":"Pot of Food","b":"1F372","j":["food","meat","soup"],"k":[7,17],"o":2},"cn":{"a":"China Flag","b":"1F1E8-1F1F3","j":["china","chinese","prc","flag","country","nation","banner"],"k":[1,22],"n":["flag-cn"],"o":2},"studio_microphone":{"a":"Studio Microphone","b":"1F399-FE0F","c":"1F399","j":["sing","recording","artist","talkshow"],"k":[8,1],"o":2},"star_and_crescent":{"a":"Star and Crescent","b":"262A-FE0F","c":"262A","j":["islam"],"k":[53,12],"o":2},"yo-yo":{"a":"Yo-Yo","b":"1FA80","k":[52,1],"o":12},"bridge_at_night":{"a":"Bridge at Night","b":"1F309","j":["photo","sanfrancisco"],"k":[5,28],"o":2},"dizzy_face":{"a":"Dizzy Face","b":"1F635","j":["spent","unconscious","xox","dizzy"],"k":[31,31],"o":2},"red_haired_man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F9B0","non_qualified":null,"image":"1f468-1f3fb-200d-1f9b0.png","sheet_x":16,"sheet_y":24,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F9B0","non_qualified":null,"image":"1f468-1f3fc-200d-1f9b0.png","sheet_x":16,"sheet_y":25,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F9B0","non_qualified":null,"image":"1f468-1f3fd-200d-1f9b0.png","sheet_x":16,"sheet_y":26,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F9B0","non_qualified":null,"image":"1f468-1f3fe-200d-1f9b0.png","sheet_x":16,"sheet_y":27,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F9B0","non_qualified":null,"image":"1f468-1f3ff-200d-1f9b0.png","sheet_x":16,"sheet_y":28,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Red Haired Man","b":"1F468-200D-1F9B0","k":[16,23],"o":11},"kite":{"a":"Kite","b":"1FA81","k":[52,2],"o":12},"bowl_with_spoon":{"a":"Bowl with Spoon","b":"1F963","k":[41,50],"o":5},"flag-co":{"a":"Colombia Flag","b":"1F1E8-1F1F4","k":[1,23],"o":2},"peace_symbol":{"a":"Peace Symbol","b":"262E-FE0F","c":"262E","j":["hippie"],"k":[53,13],"o":2},"kangaroo":{"a":"Kangaroo","b":"1F998","k":[42,42],"o":11},"hotsprings":{"a":"Hot Springs","b":"2668-FE0F","c":"2668","j":["bath","warm","relax"],"k":[53,37],"o":2},"exploding_head":{"a":"Shocked Face with Exploding Head","b":"1F92F","k":[38,49],"n":["shocked_face_with_exploding_head"],"o":5},"level_slider":{"a":"Level Slider","b":"1F39A-FE0F","c":"1F39A","j":["scale"],"k":[8,2],"o":2},"badger":{"a":"Badger","b":"1F9A1","k":[42,51],"o":11},"8ball":{"a":"Billiards","b":"1F3B1","j":["pool","hobby","game","luck","magic"],"k":[8,23],"o":2},"curly_haired_man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F9B1","non_qualified":null,"image":"1f468-1f3fb-200d-1f9b1.png","sheet_x":16,"sheet_y":30,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F9B1","non_qualified":null,"image":"1f468-1f3fc-200d-1f9b1.png","sheet_x":16,"sheet_y":31,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F9B1","non_qualified":null,"image":"1f468-1f3fd-200d-1f9b1.png","sheet_x":16,"sheet_y":32,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F9B1","non_qualified":null,"image":"1f468-1f3fe-200d-1f9b1.png","sheet_x":16,"sheet_y":33,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F9B1","non_qualified":null,"image":"1f468-1f3ff-200d-1f9b1.png","sheet_x":16,"sheet_y":34,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Curly Haired Man","b":"1F468-200D-1F9B1","k":[16,29],"o":11},"flag-cp":{"a":"Clipperton Island Flag","b":"1F1E8-1F1F5","k":[1,24],"o":2},"carousel_horse":{"a":"Carousel Horse","b":"1F3A0","j":["photo","carnival"],"k":[8,6],"o":2},"face_with_cowboy_hat":{"a":"Face with Cowboy Hat","b":"1F920","k":[38,17],"o":4},"menorah_with_nine_branches":{"a":"Menorah with Nine Branches","b":"1F54E","k":[28,38],"o":2},"green_salad":{"a":"Green Salad","b":"1F957","j":["food","healthy","lettuce"],"k":[41,38],"o":4},"control_knobs":{"a":"Control Knobs","b":"1F39B-FE0F","c":"1F39B","j":["dial"],"k":[8,3],"o":2},"popcorn":{"a":"Popcorn","b":"1F37F","j":["food","movie theater","films","snack"],"k":[7,30],"o":2},"six_pointed_star":{"a":"Six Pointed Star with Middle Dot","b":"1F52F","j":["purple-square","religion","jewish","hexagram"],"k":[28,18],"o":2},"feet":{"a":"Paw Prints","b":"1F43E","k":[12,34],"n":["paw_prints"],"o":2},"ferris_wheel":{"a":"Ferris Wheel","b":"1F3A1","j":["photo","carnival","londoneye"],"k":[8,7],"o":2},"microphone":{"a":"Microphone","b":"1F3A4","j":["sound","music","PA","sing","talkshow"],"k":[8,10],"o":2},"crystal_ball":{"a":"Crystal Ball","b":"1F52E","j":["disco","party","magic","circus","fortune_teller"],"k":[28,17],"o":2},"partying_face":{"a":"Face with Party Horn and Party Hat","b":"1F973","k":[42,8],"o":11},"flag-cr":{"a":"Costa Rica Flag","b":"1F1E8-1F1F7","k":[1,25],"o":2},"white_haired_man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F9B3","non_qualified":null,"image":"1f468-1f3fb-200d-1f9b3.png","sheet_x":16,"sheet_y":42,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F9B3","non_qualified":null,"image":"1f468-1f3fc-200d-1f9b3.png","sheet_x":16,"sheet_y":43,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F9B3","non_qualified":null,"image":"1f468-1f3fd-200d-1f9b3.png","sheet_x":16,"sheet_y":44,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F9B3","non_qualified":null,"image":"1f468-1f3fe-200d-1f9b3.png","sheet_x":16,"sheet_y":45,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F9B3","non_qualified":null,"image":"1f468-1f3ff-200d-1f9b3.png","sheet_x":16,"sheet_y":46,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Haired Man","b":"1F468-200D-1F9B3","k":[16,41],"o":11},"headphones":{"a":"Headphone","b":"1F3A7","j":["music","score","gadgets"],"k":[8,13],"o":2},"bald_man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F9B2","non_qualified":null,"image":"1f468-1f3fb-200d-1f9b2.png","sheet_x":16,"sheet_y":36,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F9B2","non_qualified":null,"image":"1f468-1f3fc-200d-1f9b2.png","sheet_x":16,"sheet_y":37,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F9B2","non_qualified":null,"image":"1f468-1f3fd-200d-1f9b2.png","sheet_x":16,"sheet_y":38,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F9B2","non_qualified":null,"image":"1f468-1f3fe-200d-1f9b2.png","sheet_x":16,"sheet_y":39,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F9B2","non_qualified":null,"image":"1f468-1f3ff-200d-1f9b2.png","sheet_x":16,"sheet_y":40,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Bald Man","b":"1F468-200D-1F9B2","k":[16,35],"o":11},"sunglasses":{"a":"Smiling Face with Sunglasses","b":"1F60E","j":["face","cool","smile","summer","beach","sunglass"],"k":[30,49],"l":["8)"],"o":2},"butter":{"a":"Butter","b":"1F9C8","k":[44,16],"o":12},"roller_coaster":{"a":"Roller Coaster","b":"1F3A2","j":["carnival","playground","photo","fun"],"k":[8,8],"o":2},"turkey":{"a":"Turkey","b":"1F983","j":["animal","bird"],"k":[42,21],"o":2},"nazar_amulet":{"a":"Nazar Amulet","b":"1F9FF","k":[51,50],"o":11},"flag-cu":{"a":"Cuba Flag","b":"1F1E8-1F1FA","k":[1,26],"o":2},"aries":{"a":"Aries","b":"2648","j":["sign","purple-square","zodiac","astrology"],"k":[53,20],"o":2},"flag-cv":{"a":"Cape Verde Flag","b":"1F1E8-1F1FB","k":[1,27],"o":2},"barber":{"a":"Barber Pole","b":"1F488","j":["hair","salon","style"],"k":[25,18],"o":2},"taurus":{"a":"Taurus","b":"2649","j":["purple-square","sign","zodiac","astrology"],"k":[53,21],"o":2},"salt":{"a":"Salt Shaker","b":"1F9C2","k":[44,10],"o":11},"woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB","non_qualified":null,"image":"1f469-1f3fb.png","sheet_x":20,"sheet_y":10,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC","non_qualified":null,"image":"1f469-1f3fc.png","sheet_x":20,"sheet_y":11,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD","non_qualified":null,"image":"1f469-1f3fd.png","sheet_x":20,"sheet_y":12,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE","non_qualified":null,"image":"1f469-1f3fe.png","sheet_x":20,"sheet_y":13,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF","non_qualified":null,"image":"1f469-1f3ff.png","sheet_x":20,"sheet_y":14,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Woman","b":"1F469","j":["female","girls","lady"],"k":[20,9],"o":2},"video_game":{"a":"Video Game","b":"1F3AE","j":["play","console","PS4","controller"],"k":[8,20],"o":2},"chicken":{"a":"Chicken","b":"1F414","j":["animal","cluck","nature","bird"],"k":[11,48],"o":2},"radio":{"a":"Radio","b":"1F4FB","j":["communication","music","podcast","program"],"k":[27,24],"o":2},"nerd_face":{"a":"Nerd Face","b":"1F913","j":["face","nerdy","geek","dork"],"k":[37,26],"o":2},"red_haired_woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F9B0","non_qualified":null,"image":"1f469-1f3fb-200d-1f9b0.png","sheet_x":19,"sheet_y":9,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F9B0","non_qualified":null,"image":"1f469-1f3fc-200d-1f9b0.png","sheet_x":19,"sheet_y":10,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F9B0","non_qualified":null,"image":"1f469-1f3fd-200d-1f9b0.png","sheet_x":19,"sheet_y":11,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F9B0","non_qualified":null,"image":"1f469-1f3fe-200d-1f9b0.png","sheet_x":19,"sheet_y":12,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F9B0","non_qualified":null,"image":"1f469-1f3ff-200d-1f9b0.png","sheet_x":19,"sheet_y":13,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Red Haired Woman","b":"1F469-200D-1F9B0","k":[19,8],"o":11},"circus_tent":{"a":"Circus Tent","b":"1F3AA","j":["festival","carnival","party"],"k":[8,16],"o":2},"face_with_monocle":{"a":"Face with Monocle","b":"1F9D0","k":[45,16],"o":5},"canned_food":{"a":"Canned Food","b":"1F96B","k":[42,1],"o":5},"flag-cw":{"a":"Cura\xe7ao Flag","b":"1F1E8-1F1FC","k":[1,28],"o":2},"gemini":{"a":"Gemini","b":"264A","j":["sign","zodiac","purple-square","astrology"],"k":[53,22],"o":2},"saxophone":{"a":"Saxophone","b":"1F3B7","j":["music","instrument","jazz","blues"],"k":[8,29],"o":2},"rooster":{"a":"Rooster","b":"1F413","j":["animal","nature","chicken"],"k":[11,47],"o":2},"joystick":{"a":"Joystick","b":"1F579-FE0F","c":"1F579","j":["game","play"],"k":[29,36],"o":2},"guitar":{"a":"Guitar","b":"1F3B8","j":["music","instrument"],"k":[8,30],"o":2},"slot_machine":{"a":"Slot Machine","b":"1F3B0","j":["bet","gamble","vegas","fruit machine","luck","casino"],"k":[8,22],"o":2},"bento":{"a":"Bento Box","b":"1F371","j":["food","japanese","box"],"k":[7,16],"o":2},"steam_locomotive":{"a":"Steam Locomotive","b":"1F682","j":["transportation","vehicle","train"],"k":[34,1],"o":2},"confused":{"a":"Confused Face","b":"1F615","j":["face","indifference","huh","weird","hmmm",":/"],"k":[30,56],"l":[":\\\\",":-\\\\",":/",":-/"],"o":2},"flag-cx":{"a":"Christmas Island Flag","b":"1F1E8-1F1FD","k":[1,29],"o":2},"hatching_chick":{"a":"Hatching Chick","b":"1F423","j":["animal","chicken","egg","born","baby","bird"],"k":[12,7],"o":2},"cancer":{"a":"Cancer","b":"264B","j":["sign","zodiac","purple-square","astrology"],"k":[53,23],"o":2},"flag-cy":{"a":"Cyprus Flag","b":"1F1E8-1F1FE","k":[1,30],"o":2},"worried":{"a":"Worried Face","b":"1F61F","j":["face","concern","nervous",":("],"k":[31,9],"o":2},"railway_car":{"a":"Railway Car","b":"1F683","j":["transportation","vehicle"],"k":[34,2],"o":2},"leo":{"a":"Leo","b":"264C","j":["sign","purple-square","zodiac","astrology"],"k":[53,24],"o":2},"curly_haired_woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F9B1","non_qualified":null,"image":"1f469-1f3fb-200d-1f9b1.png","sheet_x":19,"sheet_y":15,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F9B1","non_qualified":null,"image":"1f469-1f3fc-200d-1f9b1.png","sheet_x":19,"sheet_y":16,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F9B1","non_qualified":null,"image":"1f469-1f3fd-200d-1f9b1.png","sheet_x":19,"sheet_y":17,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F9B1","non_qualified":null,"image":"1f469-1f3fe-200d-1f9b1.png","sheet_x":19,"sheet_y":18,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F9B1","non_qualified":null,"image":"1f469-1f3ff-200d-1f9b1.png","sheet_x":19,"sheet_y":19,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Curly Haired Woman","b":"1F469-200D-1F9B1","k":[19,14],"o":11},"baby_chick":{"a":"Baby Chick","b":"1F424","j":["animal","chicken","bird"],"k":[12,8],"o":2},"musical_keyboard":{"a":"Musical Keyboard","b":"1F3B9","j":["piano","instrument","compose"],"k":[8,31],"o":2},"game_die":{"a":"Game Die","b":"1F3B2","j":["dice","random","tabletop","play","luck"],"k":[8,24],"o":2},"rice_cracker":{"a":"Rice Cracker","b":"1F358","j":["food","japanese"],"k":[6,48],"o":2},"virgo":{"a":"Virgo","b":"264D","j":["sign","zodiac","purple-square","astrology"],"k":[53,25],"o":2},"flag-cz":{"a":"Czechia Flag","b":"1F1E8-1F1FF","k":[1,31],"o":2},"rice_ball":{"a":"Rice Ball","b":"1F359","j":["food","japanese"],"k":[6,49],"o":2},"hatched_chick":{"a":"Front-Facing Baby Chick","b":"1F425","j":["animal","chicken","baby","bird"],"k":[12,9],"o":2},"jigsaw":{"a":"Jigsaw Puzzle Piece","b":"1F9E9","k":[51,28],"o":11},"trumpet":{"a":"Trumpet","b":"1F3BA","j":["music","brass"],"k":[8,32],"o":2},"slightly_frowning_face":{"a":"Slightly Frowning Face","b":"1F641","j":["face","frowning","disappointed","sad","upset"],"k":[31,43],"o":2},"bullettrain_side":{"a":"High-Speed Train","b":"1F684","j":["transportation","vehicle"],"k":[34,3],"o":2},"libra":{"a":"Libra","b":"264E","j":["sign","purple-square","zodiac","astrology"],"k":[53,26],"o":2},"de":{"a":"Germany Flag","b":"1F1E9-1F1EA","j":["german","nation","flag","country","banner"],"k":[1,32],"n":["flag-de"],"o":2},"rice":{"a":"Cooked Rice","b":"1F35A","j":["food","china","asian"],"k":[6,50],"o":2},"violin":{"a":"Violin","b":"1F3BB","j":["music","instrument","orchestra","symphony"],"k":[8,33],"o":2},"white_haired_woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F9B3","non_qualified":null,"image":"1f469-1f3fb-200d-1f9b3.png","sheet_x":19,"sheet_y":27,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F9B3","non_qualified":null,"image":"1f469-1f3fc-200d-1f9b3.png","sheet_x":19,"sheet_y":28,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F9B3","non_qualified":null,"image":"1f469-1f3fd-200d-1f9b3.png","sheet_x":19,"sheet_y":29,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F9B3","non_qualified":null,"image":"1f469-1f3fe-200d-1f9b3.png","sheet_x":19,"sheet_y":30,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F9B3","non_qualified":null,"image":"1f469-1f3ff-200d-1f9b3.png","sheet_x":19,"sheet_y":31,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Haired Woman","b":"1F469-200D-1F9B3","k":[19,26],"o":11},"bird":{"a":"Bird","b":"1F426","j":["animal","nature","fly","tweet","spring"],"k":[12,10],"o":2},"white_frowning_face":{"a":"White Frowning Face","b":"2639-FE0F","c":"2639","k":[53,16],"o":2},"bullettrain_front":{"a":"High-Speed Train with Bullet Nose","b":"1F685","j":["transportation","vehicle","speed","fast","public","travel"],"k":[34,4],"o":2},"teddy_bear":{"a":"Teddy Bear","b":"1F9F8","k":[51,43],"o":11},"spades":{"a":"Black Spade Suit","b":"2660-FE0F","c":"2660","j":["poker","cards","suits","magic"],"k":[53,33],"o":2},"banjo":{"a":"Banjo","b":"1FA95","k":[52,9],"o":12},"train2":{"a":"Train","b":"1F686","j":["transportation","vehicle"],"k":[34,5],"o":2},"scorpius":{"a":"Scorpius","b":"264F","j":["sign","zodiac","purple-square","astrology","scorpio"],"k":[53,27],"o":2},"curry":{"a":"Curry and Rice","b":"1F35B","j":["food","spicy","hot","indian"],"k":[6,51],"o":2},"open_mouth":{"a":"Face with Open Mouth","b":"1F62E","j":["face","surprise","impressed","wow","whoa",":O"],"k":[31,24],"l":[":o",":-o",":O",":-O"],"o":2},"flag-dg":{"a":"Diego Garcia Flag","b":"1F1E9-1F1EC","k":[1,33],"o":2},"penguin":{"a":"Penguin","b":"1F427","j":["animal","nature"],"k":[12,11],"o":2},"hearts":{"a":"Black Heart Suit","b":"2665-FE0F","c":"2665","j":["poker","cards","magic","suits"],"k":[53,35],"o":2},"ramen":{"a":"Steaming Bowl","b":"1F35C","j":["food","japanese","noodle","chopsticks"],"k":[6,52],"o":2},"sagittarius":{"a":"Sagittarius","b":"2650","j":["sign","zodiac","purple-square","astrology"],"k":[53,28],"o":2},"bald_woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F9B2","non_qualified":null,"image":"1f469-1f3fb-200d-1f9b2.png","sheet_x":19,"sheet_y":21,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F9B2","non_qualified":null,"image":"1f469-1f3fc-200d-1f9b2.png","sheet_x":19,"sheet_y":22,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F9B2","non_qualified":null,"image":"1f469-1f3fd-200d-1f9b2.png","sheet_x":19,"sheet_y":23,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F9B2","non_qualified":null,"image":"1f469-1f3fe-200d-1f9b2.png","sheet_x":19,"sheet_y":24,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F9B2","non_qualified":null,"image":"1f469-1f3ff-200d-1f9b2.png","sheet_x":19,"sheet_y":25,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Bald Woman","b":"1F469-200D-1F9B2","k":[19,20],"o":11},"dove_of_peace":{"a":"Dove of Peace","b":"1F54A-FE0F","c":"1F54A","k":[28,34],"o":2},"hushed":{"a":"Hushed Face","b":"1F62F","j":["face","woo","shh"],"k":[31,25],"o":2},"metro":{"a":"Metro","b":"1F687","j":["transportation","blue-square","mrt","underground","tube"],"k":[34,6],"o":2},"flag-dj":{"a":"Djibouti Flag","b":"1F1E9-1F1EF","k":[1,34],"o":2},"drum_with_drumsticks":{"a":"Drum with Drumsticks","b":"1F941","k":[41,17],"o":4},"spaghetti":{"a":"Spaghetti","b":"1F35D","j":["food","italian","noodle"],"k":[6,53],"o":2},"eagle":{"a":"Eagle","b":"1F985","j":["animal","nature","bird"],"k":[42,23],"o":4},"astonished":{"a":"Astonished Face","b":"1F632","j":["face","xox","surprised","poisoned"],"k":[31,28],"o":2},"capricorn":{"a":"Capricorn","b":"2651","j":["sign","zodiac","purple-square","astrology"],"k":[53,29],"o":2},"light_rail":{"a":"Light Rail","b":"1F688","j":["transportation","vehicle"],"k":[34,7],"o":2},"flag-dk":{"a":"Denmark Flag","b":"1F1E9-1F1F0","k":[1,35],"o":2},"iphone":{"a":"Mobile Phone","b":"1F4F1","j":["technology","apple","gadgets","dial"],"k":[27,14],"o":2},"diamonds":{"a":"Black Diamond Suit","b":"2666-FE0F","c":"2666","j":["poker","cards","magic","suits"],"k":[53,36],"o":2},"clubs":{"a":"Black Club Suit","b":"2663-FE0F","c":"2663","j":["poker","cards","magic","suits"],"k":[53,34],"o":2},"aquarius":{"a":"Aquarius","b":"2652","j":["sign","purple-square","zodiac","astrology"],"k":[53,30],"o":2},"sweet_potato":{"a":"Roasted Sweet Potato","b":"1F360","j":["food","nature"],"k":[6,56],"o":2},"flag-dm":{"a":"Dominica Flag","b":"1F1E9-1F1F2","k":[1,36],"o":2},"duck":{"a":"Duck","b":"1F986","j":["animal","nature","bird","mallard"],"k":[42,24],"o":4},"calling":{"a":"Mobile Phone with Rightwards Arrow at Left","b":"1F4F2","j":["iphone","incoming"],"k":[27,15],"o":2},"station":{"a":"Station","b":"1F689","j":["transportation","vehicle","public"],"k":[34,8],"o":2},"blond-haired-woman":{"skin_variations":{"1F3FB":{"unified":"1F471-1F3FB-200D-2640-FE0F","non_qualified":"1F471-1F3FB-200D-2640","image":"1f471-1f3fb-200d-2640-fe0f.png","sheet_x":22,"sheet_y":8,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F471-1F3FC-200D-2640-FE0F","non_qualified":"1F471-1F3FC-200D-2640","image":"1f471-1f3fc-200d-2640-fe0f.png","sheet_x":22,"sheet_y":9,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F471-1F3FD-200D-2640-FE0F","non_qualified":"1F471-1F3FD-200D-2640","image":"1f471-1f3fd-200d-2640-fe0f.png","sheet_x":22,"sheet_y":10,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F471-1F3FE-200D-2640-FE0F","non_qualified":"1F471-1F3FE-200D-2640","image":"1f471-1f3fe-200d-2640-fe0f.png","sheet_x":22,"sheet_y":11,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F471-1F3FF-200D-2640-FE0F","non_qualified":"1F471-1F3FF-200D-2640","image":"1f471-1f3ff-200d-2640-fe0f.png","sheet_x":22,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Blond Haired Woman","b":"1F471-200D-2640-FE0F","c":"1F471-200D-2640","k":[22,7],"o":4},"flushed":{"a":"Flushed Face","b":"1F633","j":["face","blush","shy","flattered"],"k":[31,29],"o":2},"pisces":{"a":"Pisces","b":"2653","j":["purple-square","sign","zodiac","astrology"],"k":[53,31],"o":2},"chess_pawn":{"a":"Chess Pawn","b":"265F-FE0F","c":"265F","k":[53,32],"o":11},"blond-haired-man":{"skin_variations":{"1F3FB":{"unified":"1F471-1F3FB-200D-2642-FE0F","non_qualified":"1F471-1F3FB-200D-2642","image":"1f471-1f3fb-200d-2642-fe0f.png","sheet_x":22,"sheet_y":14,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F471-1F3FC-200D-2642-FE0F","non_qualified":"1F471-1F3FC-200D-2642","image":"1f471-1f3fc-200d-2642-fe0f.png","sheet_x":22,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F471-1F3FD-200D-2642-FE0F","non_qualified":"1F471-1F3FD-200D-2642","image":"1f471-1f3fd-200d-2642-fe0f.png","sheet_x":22,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F471-1F3FE-200D-2642-FE0F","non_qualified":"1F471-1F3FE-200D-2642","image":"1f471-1f3fe-200d-2642-fe0f.png","sheet_x":22,"sheet_y":17,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F471-1F3FF-200D-2642-FE0F","non_qualified":"1F471-1F3FF-200D-2642","image":"1f471-1f3ff-200d-2642-fe0f.png","sheet_x":22,"sheet_y":18,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F471","a":"Blond Haired Man","b":"1F471-200D-2642-FE0F","c":"1F471-200D-2642","k":[22,13],"o":4},"phone":{"a":"Black Telephone","b":"260E-FE0F","c":"260E","j":["technology","communication","dial","telephone"],"k":[52,54],"n":["telephone"],"o":2},"oden":{"a":"Oden","b":"1F362","j":["food","japanese"],"k":[7,1],"o":2},"flag-do":{"a":"Dominican Republic Flag","b":"1F1E9-1F1F4","k":[1,37],"o":2},"tram":{"a":"Tram","b":"1F68A","j":["transportation","vehicle"],"k":[34,9],"o":2},"swan":{"a":"Swan","b":"1F9A2","k":[42,52],"o":11},"pleading_face":{"a":"Face with Pleading Eyes","b":"1F97A","k":[42,12],"o":11},"flag-dz":{"a":"Algeria Flag","b":"1F1E9-1F1FF","k":[1,38],"o":2},"monorail":{"a":"Monorail","b":"1F69D","j":["transportation","vehicle"],"k":[34,28],"o":2},"owl":{"a":"Owl","b":"1F989","j":["animal","nature","bird","hoot"],"k":[42,27],"o":4},"sushi":{"a":"Sushi","b":"1F363","j":["food","fish","japanese","rice"],"k":[7,2],"o":2},"telephone_receiver":{"a":"Telephone Receiver","b":"1F4DE","j":["technology","communication","dial"],"k":[26,52],"o":2},"black_joker":{"a":"Playing Card Black Joker","b":"1F0CF","j":["poker","cards","game","play","magic"],"k":[0,15],"o":2},"ophiuchus":{"a":"Ophiuchus","b":"26CE","j":["sign","purple-square","constellation","astrology"],"k":[54,4],"o":2},"frowning":{"a":"Frowning Face with Open Mouth","b":"1F626","j":["face","aw","what"],"k":[31,16],"o":2},"older_adult":{"skin_variations":{"1F3FB":{"unified":"1F9D3-1F3FB","non_qualified":null,"image":"1f9d3-1f3fb.png","sheet_x":48,"sheet_y":23,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9D3-1F3FC","non_qualified":null,"image":"1f9d3-1f3fc.png","sheet_x":48,"sheet_y":24,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9D3-1F3FD","non_qualified":null,"image":"1f9d3-1f3fd.png","sheet_x":48,"sheet_y":25,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9D3-1F3FE","non_qualified":null,"image":"1f9d3-1f3fe.png","sheet_x":48,"sheet_y":26,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9D3-1F3FF","non_qualified":null,"image":"1f9d3-1f3ff.png","sheet_x":48,"sheet_y":27,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Older Adult","b":"1F9D3","k":[48,22],"o":5},"flag-ea":{"a":"Ceuta & Melilla Flag","b":"1F1EA-1F1E6","k":[1,39],"o":2},"flamingo":{"a":"Flamingo","b":"1F9A9","k":[43,0],"o":12},"pager":{"a":"Pager","b":"1F4DF","j":["bbcall","oldschool","90s"],"k":[26,53],"o":2},"mountain_railway":{"a":"Mountain Railway","b":"1F69E","j":["transportation","vehicle"],"k":[34,29],"o":2},"mahjong":{"a":"Mahjong Tile Red Dragon","b":"1F004","j":["game","play","chinese","kanji"],"k":[0,14],"o":2},"older_man":{"skin_variations":{"1F3FB":{"unified":"1F474-1F3FB","non_qualified":null,"image":"1f474-1f3fb.png","sheet_x":22,"sheet_y":50,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F474-1F3FC","non_qualified":null,"image":"1f474-1f3fc.png","sheet_x":22,"sheet_y":51,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F474-1F3FD","non_qualified":null,"image":"1f474-1f3fd.png","sheet_x":22,"sheet_y":52,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F474-1F3FE","non_qualified":null,"image":"1f474-1f3fe.png","sheet_x":22,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F474-1F3FF","non_qualified":null,"image":"1f474-1f3ff.png","sheet_x":22,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Older Man","b":"1F474","j":["human","male","men","old","elder","senior"],"k":[22,49],"o":2},"twisted_rightwards_arrows":{"a":"Twisted Rightwards Arrows","b":"1F500","j":["blue-square","shuffle","music","random"],"k":[27,28],"o":2},"fried_shrimp":{"a":"Fried Shrimp","b":"1F364","j":["food","animal","appetizer","summer"],"k":[7,3],"o":2},"anguished":{"a":"Anguished Face","b":"1F627","j":["face","stunned","nervous"],"k":[31,17],"l":["D:"],"o":2},"repeat":{"a":"Clockwise Rightwards and Leftwards Open Circle Arrows","b":"1F501","j":["loop","record"],"k":[27,29],"o":2},"fish_cake":{"a":"Fish Cake with Swirl Design","b":"1F365","j":["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],"k":[7,4],"o":2},"fax":{"a":"Fax Machine","b":"1F4E0","j":["communication","technology"],"k":[26,54],"o":2},"older_woman":{"skin_variations":{"1F3FB":{"unified":"1F475-1F3FB","non_qualified":null,"image":"1f475-1f3fb.png","sheet_x":22,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F475-1F3FC","non_qualified":null,"image":"1f475-1f3fc.png","sheet_x":23,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F475-1F3FD","non_qualified":null,"image":"1f475-1f3fd.png","sheet_x":23,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F475-1F3FE","non_qualified":null,"image":"1f475-1f3fe.png","sheet_x":23,"sheet_y":2,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F475-1F3FF","non_qualified":null,"image":"1f475-1f3ff.png","sheet_x":23,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Older Woman","b":"1F475","j":["human","female","women","lady","old","elder","senior"],"k":[22,55],"o":2},"flag-ec":{"a":"Ecuador Flag","b":"1F1EA-1F1E8","k":[1,40],"o":2},"peacock":{"a":"Peacock","b":"1F99A","k":[42,44],"o":11},"fearful":{"a":"Fearful Face","b":"1F628","j":["face","scared","terrified","nervous","oops","huh"],"k":[31,18],"o":2},"train":{"a":"Tram Car","b":"1F68B","j":["transportation","vehicle","carriage","public","travel"],"k":[34,10],"o":2},"flower_playing_cards":{"a":"Flower Playing Cards","b":"1F3B4","j":["game","sunset","red"],"k":[8,26],"o":2},"repeat_one":{"a":"Clockwise Rightwards and Leftwards Open Circle Arrows with Circled One Overlay","b":"1F502","j":["blue-square","loop"],"k":[27,30],"o":2},"moon_cake":{"a":"Moon Cake","b":"1F96E","k":[42,4],"o":11},"performing_arts":{"a":"Performing Arts","b":"1F3AD","j":["acting","theater","drama"],"k":[8,19],"o":2},"cold_sweat":{"a":"Face with Open Mouth and Cold Sweat","b":"1F630","j":["face","nervous","sweat"],"k":[31,26],"o":2},"person_frowning":{"skin_variations":{"1F3FB":{"unified":"1F64D-1F3FB","non_qualified":null,"image":"1f64d-1f3fb.png","sheet_x":33,"sheet_y":27,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F64D-1F3FC","non_qualified":null,"image":"1f64d-1f3fc.png","sheet_x":33,"sheet_y":28,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F64D-1F3FD","non_qualified":null,"image":"1f64d-1f3fd.png","sheet_x":33,"sheet_y":29,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F64D-1F3FE","non_qualified":null,"image":"1f64d-1f3fe.png","sheet_x":33,"sheet_y":30,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F64D-1F3FF","non_qualified":null,"image":"1f64d-1f3ff.png","sheet_x":33,"sheet_y":31,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F64D-200D-2640-FE0F","a":"Person Frowning","b":"1F64D","k":[33,26],"o":2},"flag-ee":{"a":"Estonia Flag","b":"1F1EA-1F1EA","k":[1,41],"o":2},"battery":{"a":"Battery","b":"1F50B","j":["power","energy","sustain"],"k":[27,39],"o":2},"parrot":{"a":"Parrot","b":"1F99C","k":[42,46],"o":11},"bus":{"a":"Bus","b":"1F68C","j":["car","vehicle","transportation"],"k":[34,11],"o":2},"flag-eg":{"a":"Egypt Flag","b":"1F1EA-1F1EC","k":[1,42],"o":2},"arrow_forward":{"a":"Black Right-Pointing Triangle","b":"25B6-FE0F","c":"25B6","j":["blue-square","right","direction","play"],"k":[52,43],"o":2},"man-frowning":{"skin_variations":{"1F3FB":{"unified":"1F64D-1F3FB-200D-2642-FE0F","non_qualified":"1F64D-1F3FB-200D-2642","image":"1f64d-1f3fb-200d-2642-fe0f.png","sheet_x":33,"sheet_y":21,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64D-1F3FC-200D-2642-FE0F","non_qualified":"1F64D-1F3FC-200D-2642","image":"1f64d-1f3fc-200d-2642-fe0f.png","sheet_x":33,"sheet_y":22,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64D-1F3FD-200D-2642-FE0F","non_qualified":"1F64D-1F3FD-200D-2642","image":"1f64d-1f3fd-200d-2642-fe0f.png","sheet_x":33,"sheet_y":23,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64D-1F3FE-200D-2642-FE0F","non_qualified":"1F64D-1F3FE-200D-2642","image":"1f64d-1f3fe-200d-2642-fe0f.png","sheet_x":33,"sheet_y":24,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64D-1F3FF-200D-2642-FE0F","non_qualified":"1F64D-1F3FF-200D-2642","image":"1f64d-1f3ff-200d-2642-fe0f.png","sheet_x":33,"sheet_y":25,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Frowning","b":"1F64D-200D-2642-FE0F","c":"1F64D-200D-2642","k":[33,20],"o":4},"disappointed_relieved":{"a":"Disappointed but Relieved Face","b":"1F625","j":["face","phew","sweat","nervous"],"k":[31,15],"o":2},"electric_plug":{"a":"Electric Plug","b":"1F50C","j":["charger","power"],"k":[27,40],"o":2},"frame_with_picture":{"a":"Frame with Picture","b":"1F5BC-FE0F","c":"1F5BC","k":[30,14],"o":2},"oncoming_bus":{"a":"Oncoming Bus","b":"1F68D","j":["vehicle","transportation"],"k":[34,12],"o":2},"dango":{"a":"Dango","b":"1F361","j":["food","dessert","sweet","japanese","barbecue","meat"],"k":[7,0],"o":2},"frog":{"a":"Frog Face","b":"1F438","j":["animal","nature","croak","toad"],"k":[12,28],"o":2},"computer":{"a":"Personal Computer","b":"1F4BB","j":["technology","laptop","screen","display","monitor"],"k":[26,17],"o":2},"art":{"a":"Artist Palette","b":"1F3A8","j":["design","paint","draw","colors"],"k":[8,14],"o":2},"flag-eh":{"a":"Western Sahara Flag","b":"1F1EA-1F1ED","k":[1,43],"o":2},"fast_forward":{"a":"Black Right-Pointing Double Triangle","b":"23E9","j":["blue-square","play","speed","continue"],"k":[52,26],"o":2},"cry":{"a":"Crying Face","b":"1F622","j":["face","tears","sad","depressed","upset",":\'("],"k":[31,12],"l":[":\'("],"m":":\'(","o":2},"woman-frowning":{"skin_variations":{"1F3FB":{"unified":"1F64D-1F3FB-200D-2640-FE0F","non_qualified":"1F64D-1F3FB-200D-2640","image":"1f64d-1f3fb-200d-2640-fe0f.png","sheet_x":33,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64D-1F3FC-200D-2640-FE0F","non_qualified":"1F64D-1F3FC-200D-2640","image":"1f64d-1f3fc-200d-2640-fe0f.png","sheet_x":33,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64D-1F3FD-200D-2640-FE0F","non_qualified":"1F64D-1F3FD-200D-2640","image":"1f64d-1f3fd-200d-2640-fe0f.png","sheet_x":33,"sheet_y":17,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64D-1F3FE-200D-2640-FE0F","non_qualified":"1F64D-1F3FE-200D-2640","image":"1f64d-1f3fe-200d-2640-fe0f.png","sheet_x":33,"sheet_y":18,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64D-1F3FF-200D-2640-FE0F","non_qualified":"1F64D-1F3FF-200D-2640","image":"1f64d-1f3ff-200d-2640-fe0f.png","sheet_x":33,"sheet_y":19,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F64D","a":"Woman Frowning","b":"1F64D-200D-2640-FE0F","c":"1F64D-200D-2640","k":[33,14],"o":4},"trolleybus":{"a":"Trolleybus","b":"1F68E","j":["bart","transportation","vehicle"],"k":[34,13],"o":2},"crocodile":{"a":"Crocodile","b":"1F40A","j":["animal","nature","reptile","lizard","alligator"],"k":[11,38],"o":2},"dumpling":{"a":"Dumpling","b":"1F95F","k":[41,46],"o":5},"black_right_pointing_double_triangle_with_vertical_bar":{"a":"Black Right Pointing Double Triangle with Vertical Bar","b":"23ED-FE0F","c":"23ED","k":[52,30],"o":2},"desktop_computer":{"a":"Desktop Computer","b":"1F5A5-FE0F","c":"1F5A5","j":["technology","computing","screen"],"k":[30,10],"o":2},"person_with_pouting_face":{"skin_variations":{"1F3FB":{"unified":"1F64E-1F3FB","non_qualified":null,"image":"1f64e-1f3fb.png","sheet_x":33,"sheet_y":45,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F64E-1F3FC","non_qualified":null,"image":"1f64e-1f3fc.png","sheet_x":33,"sheet_y":46,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F64E-1F3FD","non_qualified":null,"image":"1f64e-1f3fd.png","sheet_x":33,"sheet_y":47,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F64E-1F3FE","non_qualified":null,"image":"1f64e-1f3fe.png","sheet_x":33,"sheet_y":48,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F64E-1F3FF","non_qualified":null,"image":"1f64e-1f3ff.png","sheet_x":33,"sheet_y":49,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F64E-200D-2640-FE0F","a":"Person with Pouting Face","b":"1F64E","k":[33,44],"o":2},"turtle":{"a":"Turtle","b":"1F422","j":["animal","slow","nature","tortoise"],"k":[12,6],"o":2},"sob":{"a":"Loudly Crying Face","b":"1F62D","j":["face","cry","tears","sad","upset","depressed"],"k":[31,23],"m":":\'(","o":2},"flag-er":{"a":"Eritrea Flag","b":"1F1EA-1F1F7","k":[1,44],"o":2},"thread":{"a":"Spool of Thread","b":"1F9F5","k":[51,40],"o":11},"minibus":{"a":"Minibus","b":"1F690","j":["vehicle","car","transportation"],"k":[34,15],"o":2},"fortune_cookie":{"a":"Fortune Cookie","b":"1F960","k":[41,47],"o":5},"yarn":{"a":"Ball of Yarn","b":"1F9F6","k":[51,41],"o":11},"takeout_box":{"a":"Takeout Box","b":"1F961","k":[41,48],"o":5},"man-pouting":{"skin_variations":{"1F3FB":{"unified":"1F64E-1F3FB-200D-2642-FE0F","non_qualified":"1F64E-1F3FB-200D-2642","image":"1f64e-1f3fb-200d-2642-fe0f.png","sheet_x":33,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64E-1F3FC-200D-2642-FE0F","non_qualified":"1F64E-1F3FC-200D-2642","image":"1f64e-1f3fc-200d-2642-fe0f.png","sheet_x":33,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64E-1F3FD-200D-2642-FE0F","non_qualified":"1F64E-1F3FD-200D-2642","image":"1f64e-1f3fd-200d-2642-fe0f.png","sheet_x":33,"sheet_y":41,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64E-1F3FE-200D-2642-FE0F","non_qualified":"1F64E-1F3FE-200D-2642","image":"1f64e-1f3fe-200d-2642-fe0f.png","sheet_x":33,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64E-1F3FF-200D-2642-FE0F","non_qualified":"1F64E-1F3FF-200D-2642","image":"1f64e-1f3ff-200d-2642-fe0f.png","sheet_x":33,"sheet_y":43,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Pouting","b":"1F64E-200D-2642-FE0F","c":"1F64E-200D-2642","k":[33,38],"o":4},"printer":{"a":"Printer","b":"1F5A8-FE0F","c":"1F5A8","j":["paper","ink"],"k":[30,11],"o":2},"scream":{"a":"Face Screaming in Fear","b":"1F631","j":["face","munch","scared","omg"],"k":[31,27],"o":2},"es":{"a":"Spain Flag","b":"1F1EA-1F1F8","j":["spain","flag","nation","country","banner"],"k":[1,45],"n":["flag-es"],"o":2},"ambulance":{"a":"Ambulance","b":"1F691","j":["health","911","hospital"],"k":[34,16],"o":2},"black_right_pointing_triangle_with_double_vertical_bar":{"a":"Black Right Pointing Triangle with Double Vertical Bar","b":"23EF-FE0F","c":"23EF","k":[52,32],"o":2},"lizard":{"a":"Lizard","b":"1F98E","j":["animal","nature","reptile"],"k":[42,32],"o":4},"flag-et":{"a":"Ethiopia Flag","b":"1F1EA-1F1F9","k":[1,46],"o":2},"keyboard":{"a":"Keyboard","b":"2328-FE0F","c":"2328","j":["technology","computer","type","input","text"],"k":[52,24],"o":2},"crab":{"a":"Crab","b":"1F980","j":["animal","crustacean"],"k":[42,18],"o":2},"confounded":{"a":"Confounded Face","b":"1F616","j":["face","confused","sick","unwell","oops",":S"],"k":[31,0],"o":2},"snake":{"a":"Snake","b":"1F40D","j":["animal","evil","nature","hiss","python"],"k":[11,41],"o":2},"woman-pouting":{"skin_variations":{"1F3FB":{"unified":"1F64E-1F3FB-200D-2640-FE0F","non_qualified":"1F64E-1F3FB-200D-2640","image":"1f64e-1f3fb-200d-2640-fe0f.png","sheet_x":33,"sheet_y":33,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64E-1F3FC-200D-2640-FE0F","non_qualified":"1F64E-1F3FC-200D-2640","image":"1f64e-1f3fc-200d-2640-fe0f.png","sheet_x":33,"sheet_y":34,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64E-1F3FD-200D-2640-FE0F","non_qualified":"1F64E-1F3FD-200D-2640","image":"1f64e-1f3fd-200d-2640-fe0f.png","sheet_x":33,"sheet_y":35,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64E-1F3FE-200D-2640-FE0F","non_qualified":"1F64E-1F3FE-200D-2640","image":"1f64e-1f3fe-200d-2640-fe0f.png","sheet_x":33,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64E-1F3FF-200D-2640-FE0F","non_qualified":"1F64E-1F3FF-200D-2640","image":"1f64e-1f3ff-200d-2640-fe0f.png","sheet_x":33,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F64E","a":"Woman Pouting","b":"1F64E-200D-2640-FE0F","c":"1F64E-200D-2640","k":[33,32],"o":4},"arrow_backward":{"a":"Black Left-Pointing Triangle","b":"25C0-FE0F","c":"25C0","j":["blue-square","left","direction"],"k":[52,44],"o":2},"fire_engine":{"a":"Fire Engine","b":"1F692","j":["transportation","cars","vehicle"],"k":[34,17],"o":2},"rewind":{"a":"Black Left-Pointing Double Triangle","b":"23EA","j":["play","blue-square"],"k":[52,27],"o":2},"three_button_mouse":{"a":"Three Button Mouse","b":"1F5B1-FE0F","c":"1F5B1","k":[30,12],"o":2},"no_good":{"skin_variations":{"1F3FB":{"unified":"1F645-1F3FB","non_qualified":null,"image":"1f645-1f3fb.png","sheet_x":32,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F645-1F3FC","non_qualified":null,"image":"1f645-1f3fc.png","sheet_x":32,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F645-1F3FD","non_qualified":null,"image":"1f645-1f3fd.png","sheet_x":32,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F645-1F3FE","non_qualified":null,"image":"1f645-1f3fe.png","sheet_x":32,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F645-1F3FF","non_qualified":null,"image":"1f645-1f3ff.png","sheet_x":32,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F645-200D-2640-FE0F","a":"Face with No Good Gesture","b":"1F645","k":[32,2],"o":2},"police_car":{"a":"Police Car","b":"1F693","j":["vehicle","cars","transportation","law","legal","enforcement"],"k":[34,18],"o":2},"dragon_face":{"a":"Dragon Face","b":"1F432","j":["animal","myth","nature","chinese","green"],"k":[12,22],"o":2},"persevere":{"a":"Persevering Face","b":"1F623","j":["face","sick","no","upset","oops"],"k":[31,13],"o":2},"lobster":{"a":"Lobster","b":"1F99E","k":[42,48],"o":11},"flag-eu":{"a":"European Union Flag","b":"1F1EA-1F1FA","k":[1,47],"o":2},"disappointed":{"a":"Disappointed Face","b":"1F61E","j":["face","sad","upset","depressed",":("],"k":[31,8],"l":["):",":(",":-("],"m":":(","o":2},"shrimp":{"a":"Shrimp","b":"1F990","j":["animal","ocean","nature","seafood"],"k":[42,34],"o":4},"dragon":{"a":"Dragon","b":"1F409","j":["animal","myth","nature","chinese","green"],"k":[11,37],"o":2},"man-gesturing-no":{"skin_variations":{"1F3FB":{"unified":"1F645-1F3FB-200D-2642-FE0F","non_qualified":"1F645-1F3FB-200D-2642","image":"1f645-1f3fb-200d-2642-fe0f.png","sheet_x":31,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F645-1F3FC-200D-2642-FE0F","non_qualified":"1F645-1F3FC-200D-2642","image":"1f645-1f3fc-200d-2642-fe0f.png","sheet_x":31,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F645-1F3FD-200D-2642-FE0F","non_qualified":"1F645-1F3FD-200D-2642","image":"1f645-1f3fd-200d-2642-fe0f.png","sheet_x":31,"sheet_y":56,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F645-1F3FE-200D-2642-FE0F","non_qualified":"1F645-1F3FE-200D-2642","image":"1f645-1f3fe-200d-2642-fe0f.png","sheet_x":32,"sheet_y":0,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F645-1F3FF-200D-2642-FE0F","non_qualified":"1F645-1F3FF-200D-2642","image":"1f645-1f3ff-200d-2642-fe0f.png","sheet_x":32,"sheet_y":1,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Gesturing No","b":"1F645-200D-2642-FE0F","c":"1F645-200D-2642","k":[31,53],"o":4},"flag-fi":{"a":"Finland Flag","b":"1F1EB-1F1EE","k":[1,48],"o":2},"trackball":{"a":"Trackball","b":"1F5B2-FE0F","c":"1F5B2","j":["technology","trackpad"],"k":[30,13],"o":2},"black_left_pointing_double_triangle_with_vertical_bar":{"a":"Black Left Pointing Double Triangle with Vertical Bar","b":"23EE-FE0F","c":"23EE","k":[52,31],"o":2},"oncoming_police_car":{"a":"Oncoming Police Car","b":"1F694","j":["vehicle","law","legal","enforcement","911"],"k":[34,19],"o":2},"minidisc":{"a":"Minidisc","b":"1F4BD","j":["technology","record","data","disk","90s"],"k":[26,19],"o":2},"sweat":{"a":"Face with Cold Sweat","b":"1F613","j":["face","hot","sad","tired","exercise"],"k":[30,54],"o":2},"squid":{"a":"Squid","b":"1F991","j":["animal","nature","ocean","sea"],"k":[42,35],"o":4},"sauropod":{"a":"Sauropod","b":"1F995","k":[42,39],"o":5},"arrow_up_small":{"a":"Up-Pointing Small Red Triangle","b":"1F53C","j":["blue-square","triangle","direction","point","forward","top"],"k":[28,31],"o":2},"flag-fj":{"a":"Fiji Flag","b":"1F1EB-1F1EF","k":[1,49],"o":2},"woman-gesturing-no":{"skin_variations":{"1F3FB":{"unified":"1F645-1F3FB-200D-2640-FE0F","non_qualified":"1F645-1F3FB-200D-2640","image":"1f645-1f3fb-200d-2640-fe0f.png","sheet_x":31,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F645-1F3FC-200D-2640-FE0F","non_qualified":"1F645-1F3FC-200D-2640","image":"1f645-1f3fc-200d-2640-fe0f.png","sheet_x":31,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F645-1F3FD-200D-2640-FE0F","non_qualified":"1F645-1F3FD-200D-2640","image":"1f645-1f3fd-200d-2640-fe0f.png","sheet_x":31,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F645-1F3FE-200D-2640-FE0F","non_qualified":"1F645-1F3FE-200D-2640","image":"1f645-1f3fe-200d-2640-fe0f.png","sheet_x":31,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F645-1F3FF-200D-2640-FE0F","non_qualified":"1F645-1F3FF-200D-2640","image":"1f645-1f3ff-200d-2640-fe0f.png","sheet_x":31,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F645","a":"Woman Gesturing No","b":"1F645-200D-2640-FE0F","c":"1F645-200D-2640","k":[31,47],"o":4},"taxi":{"a":"Taxi","b":"1F695","j":["uber","vehicle","cars","transportation"],"k":[34,20],"o":2},"flag-fk":{"a":"Falkland Islands Flag","b":"1F1EB-1F1F0","k":[1,50],"o":2},"floppy_disk":{"a":"Floppy Disk","b":"1F4BE","j":["oldschool","technology","save","90s","80s"],"k":[26,20],"o":2},"t-rex":{"a":"T-Rex","b":"1F996","k":[42,40],"o":5},"oyster":{"a":"Oyster","b":"1F9AA","k":[43,1],"o":12},"arrow_double_up":{"a":"Black Up-Pointing Double Triangle","b":"23EB","j":["blue-square","direction","top"],"k":[52,28],"o":2},"oncoming_taxi":{"a":"Oncoming Taxi","b":"1F696","j":["vehicle","cars","uber"],"k":[34,21],"o":2},"ok_woman":{"skin_variations":{"1F3FB":{"unified":"1F646-1F3FB","non_qualified":null,"image":"1f646-1f3fb.png","sheet_x":32,"sheet_y":21,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F646-1F3FC","non_qualified":null,"image":"1f646-1f3fc.png","sheet_x":32,"sheet_y":22,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F646-1F3FD","non_qualified":null,"image":"1f646-1f3fd.png","sheet_x":32,"sheet_y":23,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F646-1F3FE","non_qualified":null,"image":"1f646-1f3fe.png","sheet_x":32,"sheet_y":24,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F646-1F3FF","non_qualified":null,"image":"1f646-1f3ff.png","sheet_x":32,"sheet_y":25,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F646-200D-2640-FE0F","a":"Face with Ok Gesture","b":"1F646","j":["women","girl","female","pink","human","woman"],"k":[32,20],"o":2},"weary":{"a":"Weary Face","b":"1F629","j":["face","tired","sleepy","sad","frustrated","upset"],"k":[31,19],"o":2},"man-gesturing-ok":{"skin_variations":{"1F3FB":{"unified":"1F646-1F3FB-200D-2642-FE0F","non_qualified":"1F646-1F3FB-200D-2642","image":"1f646-1f3fb-200d-2642-fe0f.png","sheet_x":32,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F646-1F3FC-200D-2642-FE0F","non_qualified":"1F646-1F3FC-200D-2642","image":"1f646-1f3fc-200d-2642-fe0f.png","sheet_x":32,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F646-1F3FD-200D-2642-FE0F","non_qualified":"1F646-1F3FD-200D-2642","image":"1f646-1f3fd-200d-2642-fe0f.png","sheet_x":32,"sheet_y":17,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F646-1F3FE-200D-2642-FE0F","non_qualified":"1F646-1F3FE-200D-2642","image":"1f646-1f3fe-200d-2642-fe0f.png","sheet_x":32,"sheet_y":18,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F646-1F3FF-200D-2642-FE0F","non_qualified":"1F646-1F3FF-200D-2642","image":"1f646-1f3ff-200d-2642-fe0f.png","sheet_x":32,"sheet_y":19,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Gesturing Ok","b":"1F646-200D-2642-FE0F","c":"1F646-200D-2642","k":[32,14],"o":4},"arrow_down_small":{"a":"Down-Pointing Small Red Triangle","b":"1F53D","j":["blue-square","direction","bottom"],"k":[28,32],"o":2},"tired_face":{"a":"Tired Face","b":"1F62B","j":["sick","whine","upset","frustrated"],"k":[31,21],"o":2},"car":{"a":"Automobile","b":"1F697","k":[34,22],"n":["red_car"],"o":2},"icecream":{"a":"Soft Ice Cream","b":"1F366","j":["food","hot","dessert","summer"],"k":[7,5],"o":2},"cd":{"a":"Optical Disc","b":"1F4BF","j":["technology","dvd","disk","disc","90s"],"k":[26,21],"o":2},"whale":{"a":"Spouting Whale","b":"1F433","j":["animal","nature","sea","ocean"],"k":[12,23],"o":2},"flag-fm":{"a":"Micronesia Flag","b":"1F1EB-1F1F2","k":[1,51],"o":2},"oncoming_automobile":{"a":"Oncoming Automobile","b":"1F698","j":["car","vehicle","transportation"],"k":[34,23],"o":2},"arrow_double_down":{"a":"Black Down-Pointing Double Triangle","b":"23EC","j":["blue-square","direction","bottom"],"k":[52,29],"o":2},"woman-gesturing-ok":{"skin_variations":{"1F3FB":{"unified":"1F646-1F3FB-200D-2640-FE0F","non_qualified":"1F646-1F3FB-200D-2640","image":"1f646-1f3fb-200d-2640-fe0f.png","sheet_x":32,"sheet_y":9,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F646-1F3FC-200D-2640-FE0F","non_qualified":"1F646-1F3FC-200D-2640","image":"1f646-1f3fc-200d-2640-fe0f.png","sheet_x":32,"sheet_y":10,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F646-1F3FD-200D-2640-FE0F","non_qualified":"1F646-1F3FD-200D-2640","image":"1f646-1f3fd-200d-2640-fe0f.png","sheet_x":32,"sheet_y":11,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F646-1F3FE-200D-2640-FE0F","non_qualified":"1F646-1F3FE-200D-2640","image":"1f646-1f3fe-200d-2640-fe0f.png","sheet_x":32,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F646-1F3FF-200D-2640-FE0F","non_qualified":"1F646-1F3FF-200D-2640","image":"1f646-1f3ff-200d-2640-fe0f.png","sheet_x":32,"sheet_y":13,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F646","a":"Woman Gesturing Ok","b":"1F646-200D-2640-FE0F","c":"1F646-200D-2640","k":[32,8],"o":4},"yawning_face":{"a":"Yawning Face","b":"1F971","k":[42,7],"o":12},"dvd":{"a":"Dvd","b":"1F4C0","j":["cd","disk","disc"],"k":[26,22],"o":2},"whale2":{"a":"Whale","b":"1F40B","j":["animal","nature","sea","ocean"],"k":[11,39],"o":2},"flag-fo":{"a":"Faroe Islands Flag","b":"1F1EB-1F1F4","k":[1,52],"o":2},"shaved_ice":{"a":"Shaved Ice","b":"1F367","j":["hot","dessert","summer"],"k":[7,6],"o":2},"double_vertical_bar":{"a":"Double Vertical Bar","b":"23F8-FE0F","c":"23F8","k":[52,37],"o":2},"information_desk_person":{"skin_variations":{"1F3FB":{"unified":"1F481-1F3FB","non_qualified":null,"image":"1f481-1f3fb.png","sheet_x":24,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F481-1F3FC","non_qualified":null,"image":"1f481-1f3fc.png","sheet_x":24,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F481-1F3FD","non_qualified":null,"image":"1f481-1f3fd.png","sheet_x":24,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F481-1F3FE","non_qualified":null,"image":"1f481-1f3fe.png","sheet_x":24,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F481-1F3FF","non_qualified":null,"image":"1f481-1f3ff.png","sheet_x":24,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F481-200D-2640-FE0F","a":"Information Desk Person","b":"1F481","k":[24,2],"o":2},"dolphin":{"a":"Dolphin","b":"1F42C","j":["animal","nature","fish","sea","ocean","flipper","fins","beach"],"k":[12,16],"n":["flipper"],"o":2},"blue_car":{"a":"Recreational Vehicle","b":"1F699","j":["transportation","vehicle"],"k":[34,24],"o":2},"ice_cream":{"a":"Ice Cream","b":"1F368","j":["food","hot","dessert"],"k":[7,7],"o":2},"fr":{"a":"France Flag","b":"1F1EB-1F1F7","j":["banner","flag","nation","france","french","country"],"k":[1,53],"n":["flag-fr"],"o":2},"triumph":{"a":"Face with Look of Triumph","b":"1F624","j":["face","gas","phew","proud","pride"],"k":[31,14],"o":2},"abacus":{"a":"Abacus","b":"1F9EE","k":[51,33],"o":11},"man-tipping-hand":{"skin_variations":{"1F3FB":{"unified":"1F481-1F3FB-200D-2642-FE0F","non_qualified":"1F481-1F3FB-200D-2642","image":"1f481-1f3fb-200d-2642-fe0f.png","sheet_x":23,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F481-1F3FC-200D-2642-FE0F","non_qualified":"1F481-1F3FC-200D-2642","image":"1f481-1f3fc-200d-2642-fe0f.png","sheet_x":23,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F481-1F3FD-200D-2642-FE0F","non_qualified":"1F481-1F3FD-200D-2642","image":"1f481-1f3fd-200d-2642-fe0f.png","sheet_x":23,"sheet_y":56,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F481-1F3FE-200D-2642-FE0F","non_qualified":"1F481-1F3FE-200D-2642","image":"1f481-1f3fe-200d-2642-fe0f.png","sheet_x":24,"sheet_y":0,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F481-1F3FF-200D-2642-FE0F","non_qualified":"1F481-1F3FF-200D-2642","image":"1f481-1f3ff-200d-2642-fe0f.png","sheet_x":24,"sheet_y":1,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Tipping Hand","b":"1F481-200D-2642-FE0F","c":"1F481-200D-2642","k":[23,53],"o":4},"doughnut":{"a":"Doughnut","b":"1F369","j":["food","dessert","snack","sweet","donut"],"k":[7,8],"o":2},"fish":{"a":"Fish","b":"1F41F","j":["animal","food","nature"],"k":[12,3],"o":2},"truck":{"a":"Delivery Truck","b":"1F69A","j":["cars","transportation"],"k":[34,25],"o":2},"movie_camera":{"a":"Movie Camera","b":"1F3A5","j":["film","record"],"k":[8,11],"o":2},"flag-ga":{"a":"Gabon Flag","b":"1F1EC-1F1E6","k":[1,54],"o":2},"rage":{"a":"Pouting Face","b":"1F621","j":["angry","mad","hate","despise"],"k":[31,11],"o":2},"black_square_for_stop":{"a":"Black Square for Stop","b":"23F9-FE0F","c":"23F9","k":[52,38],"o":2},"articulated_lorry":{"a":"Articulated Lorry","b":"1F69B","j":["vehicle","cars","transportation","express"],"k":[34,26],"o":2},"angry":{"a":"Angry Face","b":"1F620","j":["mad","face","annoyed","frustrated"],"k":[31,10],"l":[">:(",">:-("],"o":2},"cookie":{"a":"Cookie","b":"1F36A","j":["food","snack","oreo","chocolate","sweet","dessert"],"k":[7,9],"o":2},"gb":{"a":"United Kingdom Flag","b":"1F1EC-1F1E7","k":[1,55],"n":["uk","flag-gb"],"o":2},"tropical_fish":{"a":"Tropical Fish","b":"1F420","j":["animal","swim","ocean","beach","nemo"],"k":[12,4],"o":2},"woman-tipping-hand":{"skin_variations":{"1F3FB":{"unified":"1F481-1F3FB-200D-2640-FE0F","non_qualified":"1F481-1F3FB-200D-2640","image":"1f481-1f3fb-200d-2640-fe0f.png","sheet_x":23,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F481-1F3FC-200D-2640-FE0F","non_qualified":"1F481-1F3FC-200D-2640","image":"1f481-1f3fc-200d-2640-fe0f.png","sheet_x":23,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F481-1F3FD-200D-2640-FE0F","non_qualified":"1F481-1F3FD-200D-2640","image":"1f481-1f3fd-200d-2640-fe0f.png","sheet_x":23,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F481-1F3FE-200D-2640-FE0F","non_qualified":"1F481-1F3FE-200D-2640","image":"1f481-1f3fe-200d-2640-fe0f.png","sheet_x":23,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F481-1F3FF-200D-2640-FE0F","non_qualified":"1F481-1F3FF-200D-2640","image":"1f481-1f3ff-200d-2640-fe0f.png","sheet_x":23,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F481","a":"Woman Tipping Hand","b":"1F481-200D-2640-FE0F","c":"1F481-200D-2640","k":[23,47],"o":4},"black_circle_for_record":{"a":"Black Circle for Record","b":"23FA-FE0F","c":"23FA","k":[52,39],"o":2},"film_frames":{"a":"Film Frames","b":"1F39E-FE0F","c":"1F39E","k":[8,4],"o":2},"film_projector":{"a":"Film Projector","b":"1F4FD-FE0F","c":"1F4FD","j":["video","tape","record","movie"],"k":[27,26],"o":2},"flag-gd":{"a":"Grenada Flag","b":"1F1EC-1F1E9","k":[1,56],"o":2},"blowfish":{"a":"Blowfish","b":"1F421","j":["animal","nature","food","sea","ocean"],"k":[12,5],"o":2},"face_with_symbols_on_mouth":{"a":"Serious Face with Symbols Covering Mouth","b":"1F92C","k":[38,46],"n":["serious_face_with_symbols_covering_mouth"],"o":5},"birthday":{"a":"Birthday Cake","b":"1F382","j":["food","dessert","cake"],"k":[7,33],"o":2},"eject":{"a":"Eject","b":"23CF-FE0F","c":"23CF","k":[52,25],"o":2},"raising_hand":{"skin_variations":{"1F3FB":{"unified":"1F64B-1F3FB","non_qualified":null,"image":"1f64b-1f3fb.png","sheet_x":33,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F64B-1F3FC","non_qualified":null,"image":"1f64b-1f3fc.png","sheet_x":33,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F64B-1F3FD","non_qualified":null,"image":"1f64b-1f3fd.png","sheet_x":33,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F64B-1F3FE","non_qualified":null,"image":"1f64b-1f3fe.png","sheet_x":33,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F64B-1F3FF","non_qualified":null,"image":"1f64b-1f3ff.png","sheet_x":33,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F64B-200D-2640-FE0F","a":"Happy Person Raising One Hand","b":"1F64B","k":[33,2],"o":2},"tractor":{"a":"Tractor","b":"1F69C","j":["vehicle","car","farming","agriculture"],"k":[34,27],"o":2},"flag-ge":{"a":"Georgia Flag","b":"1F1EC-1F1EA","k":[2,0],"o":2},"smiling_imp":{"a":"Smiling Face with Horns","b":"1F608","j":["devil","horns"],"k":[30,43],"o":2},"racing_car":{"a":"Racing Car","b":"1F3CE-FE0F","c":"1F3CE","j":["sports","race","fast","formula","f1"],"k":[10,33],"o":2},"cinema":{"a":"Cinema","b":"1F3A6","j":["blue-square","record","film","movie","curtain","stage","theater"],"k":[8,12],"o":2},"clapper":{"a":"Clapper Board","b":"1F3AC","j":["movie","film","record"],"k":[8,18],"o":2},"shark":{"a":"Shark","b":"1F988","j":["animal","nature","fish","sea","ocean","jaws","fins","beach"],"k":[42,26],"o":4},"cake":{"a":"Shortcake","b":"1F370","j":["food","dessert"],"k":[7,15],"o":2},"man-raising-hand":{"skin_variations":{"1F3FB":{"unified":"1F64B-1F3FB-200D-2642-FE0F","non_qualified":"1F64B-1F3FB-200D-2642","image":"1f64b-1f3fb-200d-2642-fe0f.png","sheet_x":32,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64B-1F3FC-200D-2642-FE0F","non_qualified":"1F64B-1F3FC-200D-2642","image":"1f64b-1f3fc-200d-2642-fe0f.png","sheet_x":32,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64B-1F3FD-200D-2642-FE0F","non_qualified":"1F64B-1F3FD-200D-2642","image":"1f64b-1f3fd-200d-2642-fe0f.png","sheet_x":32,"sheet_y":56,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64B-1F3FE-200D-2642-FE0F","non_qualified":"1F64B-1F3FE-200D-2642","image":"1f64b-1f3fe-200d-2642-fe0f.png","sheet_x":33,"sheet_y":0,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64B-1F3FF-200D-2642-FE0F","non_qualified":"1F64B-1F3FF-200D-2642","image":"1f64b-1f3ff-200d-2642-fe0f.png","sheet_x":33,"sheet_y":1,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Raising Hand","b":"1F64B-200D-2642-FE0F","c":"1F64B-200D-2642","k":[32,53],"o":4},"octopus":{"a":"Octopus","b":"1F419","j":["animal","creature","ocean","sea","nature","beach"],"k":[11,54],"o":2},"woman-raising-hand":{"skin_variations":{"1F3FB":{"unified":"1F64B-1F3FB-200D-2640-FE0F","non_qualified":"1F64B-1F3FB-200D-2640","image":"1f64b-1f3fb-200d-2640-fe0f.png","sheet_x":32,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64B-1F3FC-200D-2640-FE0F","non_qualified":"1F64B-1F3FC-200D-2640","image":"1f64b-1f3fc-200d-2640-fe0f.png","sheet_x":32,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64B-1F3FD-200D-2640-FE0F","non_qualified":"1F64B-1F3FD-200D-2640","image":"1f64b-1f3fd-200d-2640-fe0f.png","sheet_x":32,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64B-1F3FE-200D-2640-FE0F","non_qualified":"1F64B-1F3FE-200D-2640","image":"1f64b-1f3fe-200d-2640-fe0f.png","sheet_x":32,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64B-1F3FF-200D-2640-FE0F","non_qualified":"1F64B-1F3FF-200D-2640","image":"1f64b-1f3ff-200d-2640-fe0f.png","sheet_x":32,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F64B","a":"Woman Raising Hand","b":"1F64B-200D-2640-FE0F","c":"1F64B-200D-2640","k":[32,47],"o":4},"flag-gf":{"a":"French Guiana Flag","b":"1F1EC-1F1EB","k":[2,1],"o":2},"tv":{"a":"Television","b":"1F4FA","j":["technology","program","oldschool","show","television"],"k":[27,23],"o":2},"imp":{"a":"Imp","b":"1F47F","j":["devil","angry","horns"],"k":[23,45],"o":2},"cupcake":{"a":"Cupcake","b":"1F9C1","k":[44,9],"o":11},"racing_motorcycle":{"a":"Racing Motorcycle","b":"1F3CD-FE0F","c":"1F3CD","k":[10,32],"o":2},"low_brightness":{"a":"Low Brightness Symbol","b":"1F505","j":["sun","afternoon","warm","summer"],"k":[27,33],"o":2},"shell":{"a":"Spiral Shell","b":"1F41A","j":["nature","sea","beach"],"k":[11,55],"o":2},"flag-gg":{"a":"Guernsey Flag","b":"1F1EC-1F1EC","k":[2,2],"o":2},"high_brightness":{"a":"High Brightness Symbol","b":"1F506","j":["sun","light"],"k":[27,34],"o":2},"deaf_person":{"skin_variations":{"1F3FB":{"unified":"1F9CF-1F3FB","non_qualified":null,"image":"1f9cf-1f3fb.png","sheet_x":45,"sheet_y":11,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9CF-1F3FC","non_qualified":null,"image":"1f9cf-1f3fc.png","sheet_x":45,"sheet_y":12,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9CF-1F3FD","non_qualified":null,"image":"1f9cf-1f3fd.png","sheet_x":45,"sheet_y":13,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9CF-1F3FE","non_qualified":null,"image":"1f9cf-1f3fe.png","sheet_x":45,"sheet_y":14,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9CF-1F3FF","non_qualified":null,"image":"1f9cf-1f3ff.png","sheet_x":45,"sheet_y":15,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Deaf Person","b":"1F9CF","k":[45,10],"o":12},"skull":{"a":"Skull","b":"1F480","j":["dead","skeleton","creepy","death"],"k":[23,46],"o":2},"motor_scooter":{"a":"Motor Scooter","b":"1F6F5","j":["vehicle","vespa","sasha"],"k":[36,54],"o":4},"camera":{"a":"Camera","b":"1F4F7","j":["gadgets","photography"],"k":[27,20],"o":2},"pie":{"a":"Pie","b":"1F967","k":[41,54],"o":5},"flag-gh":{"a":"Ghana Flag","b":"1F1EC-1F1ED","k":[2,3],"o":2},"deaf_man":{"skin_variations":{"1F3FB":{"unified":"1F9CF-1F3FB-200D-2642-FE0F","non_qualified":"1F9CF-1F3FB-200D-2642","image":"1f9cf-1f3fb-200d-2642-fe0f.png","sheet_x":45,"sheet_y":5,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9CF-1F3FC-200D-2642-FE0F","non_qualified":"1F9CF-1F3FC-200D-2642","image":"1f9cf-1f3fc-200d-2642-fe0f.png","sheet_x":45,"sheet_y":6,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9CF-1F3FD-200D-2642-FE0F","non_qualified":"1F9CF-1F3FD-200D-2642","image":"1f9cf-1f3fd-200d-2642-fe0f.png","sheet_x":45,"sheet_y":7,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9CF-1F3FE-200D-2642-FE0F","non_qualified":"1F9CF-1F3FE-200D-2642","image":"1f9cf-1f3fe-200d-2642-fe0f.png","sheet_x":45,"sheet_y":8,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9CF-1F3FF-200D-2642-FE0F","non_qualified":"1F9CF-1F3FF-200D-2642","image":"1f9cf-1f3ff-200d-2642-fe0f.png","sheet_x":45,"sheet_y":9,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Deaf Man","b":"1F9CF-200D-2642-FE0F","c":"1F9CF-200D-2642","k":[45,4],"o":12},"skull_and_crossbones":{"a":"Skull and Crossbones","b":"2620-FE0F","c":"2620","j":["poison","danger","deadly","scary","death","pirate","evil"],"k":[53,8],"o":2},"camera_with_flash":{"a":"Camera with Flash","b":"1F4F8","k":[27,21],"o":2},"signal_strength":{"a":"Antenna with Bars","b":"1F4F6","j":["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],"k":[27,19],"o":2},"chocolate_bar":{"a":"Chocolate Bar","b":"1F36B","j":["food","snack","dessert","sweet"],"k":[7,10],"o":2},"manual_wheelchair":{"a":"Manual Wheelchair","b":"1F9BD","k":[44,5],"o":12},"snail":{"a":"Snail","b":"1F40C","j":["slow","animal","shell"],"k":[11,40],"o":2},"motorized_wheelchair":{"a":"Motorized Wheelchair","b":"1F9BC","k":[44,4],"o":12},"flag-gi":{"a":"Gibraltar Flag","b":"1F1EC-1F1EE","k":[2,4],"o":2},"hankey":{"a":"Pile of Poo","b":"1F4A9","k":[25,51],"n":["poop","shit"],"o":2},"vibration_mode":{"a":"Vibration Mode","b":"1F4F3","j":["orange-square","phone"],"k":[27,16],"o":2},"deaf_woman":{"skin_variations":{"1F3FB":{"unified":"1F9CF-1F3FB-200D-2640-FE0F","non_qualified":"1F9CF-1F3FB-200D-2640","image":"1f9cf-1f3fb-200d-2640-fe0f.png","sheet_x":44,"sheet_y":56,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9CF-1F3FC-200D-2640-FE0F","non_qualified":"1F9CF-1F3FC-200D-2640","image":"1f9cf-1f3fc-200d-2640-fe0f.png","sheet_x":45,"sheet_y":0,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9CF-1F3FD-200D-2640-FE0F","non_qualified":"1F9CF-1F3FD-200D-2640","image":"1f9cf-1f3fd-200d-2640-fe0f.png","sheet_x":45,"sheet_y":1,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9CF-1F3FE-200D-2640-FE0F","non_qualified":"1F9CF-1F3FE-200D-2640","image":"1f9cf-1f3fe-200d-2640-fe0f.png","sheet_x":45,"sheet_y":2,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9CF-1F3FF-200D-2640-FE0F","non_qualified":"1F9CF-1F3FF-200D-2640","image":"1f9cf-1f3ff-200d-2640-fe0f.png","sheet_x":45,"sheet_y":3,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Deaf Woman","b":"1F9CF-200D-2640-FE0F","c":"1F9CF-200D-2640","k":[44,55],"o":12},"butterfly":{"a":"Butterfly","b":"1F98B","j":["animal","insect","nature","caterpillar"],"k":[42,29],"o":4},"video_camera":{"a":"Video Camera","b":"1F4F9","j":["film","record"],"k":[27,22],"o":2},"candy":{"a":"Candy","b":"1F36C","j":["snack","dessert","sweet","lolly"],"k":[7,11],"o":2},"auto_rickshaw":{"a":"Auto Rickshaw","b":"1F6FA","k":[37,2],"o":12},"bow":{"skin_variations":{"1F3FB":{"unified":"1F647-1F3FB","non_qualified":null,"image":"1f647-1f3fb.png","sheet_x":32,"sheet_y":39,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F647-1F3FC","non_qualified":null,"image":"1f647-1f3fc.png","sheet_x":32,"sheet_y":40,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F647-1F3FD","non_qualified":null,"image":"1f647-1f3fd.png","sheet_x":32,"sheet_y":41,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F647-1F3FE","non_qualified":null,"image":"1f647-1f3fe.png","sheet_x":32,"sheet_y":42,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F647-1F3FF","non_qualified":null,"image":"1f647-1f3ff.png","sheet_x":32,"sheet_y":43,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F647-200D-2642-FE0F","a":"Person Bowing Deeply","b":"1F647","k":[32,38],"o":2},"mobile_phone_off":{"a":"Mobile Phone off","b":"1F4F4","j":["mute","orange-square","silence","quiet"],"k":[27,17],"o":2},"clown_face":{"a":"Clown Face","b":"1F921","j":["face"],"k":[38,18],"o":4},"lollipop":{"a":"Lollipop","b":"1F36D","j":["food","snack","candy","sweet"],"k":[7,12],"o":2},"flag-gl":{"a":"Greenland Flag","b":"1F1EC-1F1F1","k":[2,5],"o":2},"vhs":{"a":"Videocassette","b":"1F4FC","j":["record","video","oldschool","90s","80s"],"k":[27,25],"o":2},"bug":{"a":"Bug","b":"1F41B","j":["animal","insect","nature","worm"],"k":[11,56],"o":2},"bike":{"a":"Bicycle","b":"1F6B2","j":["sports","bicycle","exercise","hipster"],"k":[35,9],"o":2},"man-bowing":{"skin_variations":{"1F3FB":{"unified":"1F647-1F3FB-200D-2642-FE0F","non_qualified":"1F647-1F3FB-200D-2642","image":"1f647-1f3fb-200d-2642-fe0f.png","sheet_x":32,"sheet_y":33,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F647-1F3FC-200D-2642-FE0F","non_qualified":"1F647-1F3FC-200D-2642","image":"1f647-1f3fc-200d-2642-fe0f.png","sheet_x":32,"sheet_y":34,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F647-1F3FD-200D-2642-FE0F","non_qualified":"1F647-1F3FD-200D-2642","image":"1f647-1f3fd-200d-2642-fe0f.png","sheet_x":32,"sheet_y":35,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F647-1F3FE-200D-2642-FE0F","non_qualified":"1F647-1F3FE-200D-2642","image":"1f647-1f3fe-200d-2642-fe0f.png","sheet_x":32,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F647-1F3FF-200D-2642-FE0F","non_qualified":"1F647-1F3FF-200D-2642","image":"1f647-1f3ff-200d-2642-fe0f.png","sheet_x":32,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F647","a":"Man Bowing","b":"1F647-200D-2642-FE0F","c":"1F647-200D-2642","k":[32,32],"o":4},"female_sign":{"a":"Female Sign","b":"2640-FE0F","c":"2640","k":[53,18],"o":4},"japanese_ogre":{"a":"Japanese Ogre","b":"1F479","j":["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],"k":[23,34],"o":2},"custard":{"a":"Custard","b":"1F36E","j":["dessert","food"],"k":[7,13],"o":2},"ant":{"a":"Ant","b":"1F41C","j":["animal","insect","nature","bug"],"k":[12,0],"o":2},"mag":{"a":"Left-Pointing Magnifying Glass","b":"1F50D","j":["search","zoom","find","detective"],"k":[27,41],"o":2},"flag-gm":{"a":"Gambia Flag","b":"1F1EC-1F1F2","k":[2,6],"o":2},"honey_pot":{"a":"Honey Pot","b":"1F36F","j":["bees","sweet","kitchen"],"k":[7,14],"o":2},"woman-bowing":{"skin_variations":{"1F3FB":{"unified":"1F647-1F3FB-200D-2640-FE0F","non_qualified":"1F647-1F3FB-200D-2640","image":"1f647-1f3fb-200d-2640-fe0f.png","sheet_x":32,"sheet_y":27,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F647-1F3FC-200D-2640-FE0F","non_qualified":"1F647-1F3FC-200D-2640","image":"1f647-1f3fc-200d-2640-fe0f.png","sheet_x":32,"sheet_y":28,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F647-1F3FD-200D-2640-FE0F","non_qualified":"1F647-1F3FD-200D-2640","image":"1f647-1f3fd-200d-2640-fe0f.png","sheet_x":32,"sheet_y":29,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F647-1F3FE-200D-2640-FE0F","non_qualified":"1F647-1F3FE-200D-2640","image":"1f647-1f3fe-200d-2640-fe0f.png","sheet_x":32,"sheet_y":30,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F647-1F3FF-200D-2640-FE0F","non_qualified":"1F647-1F3FF-200D-2640","image":"1f647-1f3ff-200d-2640-fe0f.png","sheet_x":32,"sheet_y":31,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Woman Bowing","b":"1F647-200D-2640-FE0F","c":"1F647-200D-2640","k":[32,26],"o":4},"male_sign":{"a":"Male Sign","b":"2642-FE0F","c":"2642","k":[53,19],"o":4},"mag_right":{"a":"Right-Pointing Magnifying Glass","b":"1F50E","j":["search","zoom","find","detective"],"k":[27,42],"o":2},"japanese_goblin":{"a":"Japanese Goblin","b":"1F47A","j":["red","evil","mask","monster","scary","creepy","japanese","goblin"],"k":[23,35],"o":2},"scooter":{"a":"Scooter","b":"1F6F4","k":[36,53],"o":4},"bee":{"a":"Honeybee","b":"1F41D","k":[12,1],"n":["honeybee"],"o":2},"flag-gn":{"a":"Guinea Flag","b":"1F1EC-1F1F3","k":[2,7],"o":2},"candle":{"a":"Candle","b":"1F56F-FE0F","c":"1F56F","j":["fire","wax"],"k":[29,6],"o":2},"skateboard":{"a":"Skateboard","b":"1F6F9","k":[37,1],"o":11},"medical_symbol":{"a":"Medical Symbol","b":"2695-FE0F","c":"2695","k":[53,44],"n":["staff_of_aesculapius"],"o":4},"ghost":{"a":"Ghost","b":"1F47B","j":["halloween","spooky","scary"],"k":[23,36],"o":2},"beetle":{"a":"Lady Beetle","b":"1F41E","j":["animal","insect","nature","ladybug"],"k":[12,2],"o":2},"face_palm":{"skin_variations":{"1F3FB":{"unified":"1F926-1F3FB","non_qualified":null,"image":"1f926-1f3fb.png","sheet_x":38,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F926-1F3FC","non_qualified":null,"image":"1f926-1f3fc.png","sheet_x":38,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F926-1F3FD","non_qualified":null,"image":"1f926-1f3fd.png","sheet_x":38,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F926-1F3FE","non_qualified":null,"image":"1f926-1f3fe.png","sheet_x":38,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F926-1F3FF","non_qualified":null,"image":"1f926-1f3ff.png","sheet_x":38,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"a":"Face Palm","b":"1F926","k":[38,35],"o":4},"flag-gp":{"a":"Guadeloupe Flag","b":"1F1EC-1F1F5","k":[2,8],"o":2},"baby_bottle":{"a":"Baby Bottle","b":"1F37C","j":["food","container","milk"],"k":[7,27],"o":2},"infinity":{"a":"Infinity","b":"267E-FE0F","c":"267E","k":[53,39],"o":11},"glass_of_milk":{"a":"Glass of Milk","b":"1F95B","k":[41,42],"o":4},"man-facepalming":{"skin_variations":{"1F3FB":{"unified":"1F926-1F3FB-200D-2642-FE0F","non_qualified":"1F926-1F3FB-200D-2642","image":"1f926-1f3fb-200d-2642-fe0f.png","sheet_x":38,"sheet_y":30,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F926-1F3FC-200D-2642-FE0F","non_qualified":"1F926-1F3FC-200D-2642","image":"1f926-1f3fc-200d-2642-fe0f.png","sheet_x":38,"sheet_y":31,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F926-1F3FD-200D-2642-FE0F","non_qualified":"1F926-1F3FD-200D-2642","image":"1f926-1f3fd-200d-2642-fe0f.png","sheet_x":38,"sheet_y":32,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F926-1F3FE-200D-2642-FE0F","non_qualified":"1F926-1F3FE-200D-2642","image":"1f926-1f3fe-200d-2642-fe0f.png","sheet_x":38,"sheet_y":33,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F926-1F3FF-200D-2642-FE0F","non_qualified":"1F926-1F3FF-200D-2642","image":"1f926-1f3ff-200d-2642-fe0f.png","sheet_x":38,"sheet_y":34,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Facepalming","b":"1F926-200D-2642-FE0F","c":"1F926-200D-2642","k":[38,29],"o":4},"cricket":{"a":"Cricket","b":"1F997","j":["sports"],"k":[42,41],"o":5},"busstop":{"a":"Bus Stop","b":"1F68F","j":["transportation","wait"],"k":[34,14],"o":2},"flag-gq":{"a":"Equatorial Guinea Flag","b":"1F1EC-1F1F6","k":[2,9],"o":2},"alien":{"a":"Extraterrestrial Alien","b":"1F47D","j":["UFO","paul","weird","outer_space"],"k":[23,43],"o":2},"bulb":{"a":"Electric Light Bulb","b":"1F4A1","j":["light","electricity","idea"],"k":[25,43],"o":2},"woman-facepalming":{"skin_variations":{"1F3FB":{"unified":"1F926-1F3FB-200D-2640-FE0F","non_qualified":"1F926-1F3FB-200D-2640","image":"1f926-1f3fb-200d-2640-fe0f.png","sheet_x":38,"sheet_y":24,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F926-1F3FC-200D-2640-FE0F","non_qualified":"1F926-1F3FC-200D-2640","image":"1f926-1f3fc-200d-2640-fe0f.png","sheet_x":38,"sheet_y":25,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F926-1F3FD-200D-2640-FE0F","non_qualified":"1F926-1F3FD-200D-2640","image":"1f926-1f3fd-200d-2640-fe0f.png","sheet_x":38,"sheet_y":26,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F926-1F3FE-200D-2640-FE0F","non_qualified":"1F926-1F3FE-200D-2640","image":"1f926-1f3fe-200d-2640-fe0f.png","sheet_x":38,"sheet_y":27,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F926-1F3FF-200D-2640-FE0F","non_qualified":"1F926-1F3FF-200D-2640","image":"1f926-1f3ff-200d-2640-fe0f.png","sheet_x":38,"sheet_y":28,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Woman Facepalming","b":"1F926-200D-2640-FE0F","c":"1F926-200D-2640","k":[38,23],"o":4},"spider":{"a":"Spider","b":"1F577-FE0F","c":"1F577","j":["animal","arachnid"],"k":[29,34],"o":2},"space_invader":{"a":"Alien Monster","b":"1F47E","j":["game","arcade","play"],"k":[23,44],"o":2},"motorway":{"a":"Motorway","b":"1F6E3-FE0F","c":"1F6E3","j":["road","cupertino","interstate","highway"],"k":[36,45],"o":2},"flag-gr":{"a":"Greece Flag","b":"1F1EC-1F1F7","k":[2,10],"o":2},"recycle":{"a":"Black Universal Recycling Symbol","b":"267B-FE0F","c":"267B","j":["arrow","environment","garbage","trash"],"k":[53,38],"o":2},"coffee":{"a":"Hot Beverage","b":"2615","j":["beverage","caffeine","latte","espresso"],"k":[53,0],"o":2},"flashlight":{"a":"Electric Torch","b":"1F526","j":["dark","camping","sight","night"],"k":[28,9],"o":2},"spider_web":{"a":"Spider Web","b":"1F578-FE0F","c":"1F578","j":["animal","insect","arachnid","silk"],"k":[29,35],"o":2},"izakaya_lantern":{"a":"Izakaya Lantern","b":"1F3EE","j":["light","paper","halloween","spooky"],"k":[11,8],"n":["lantern"],"o":2},"flag-gs":{"a":"South Georgia & South Sandwich Islands Flag","b":"1F1EC-1F1F8","k":[2,11],"o":2},"shrug":{"skin_variations":{"1F3FB":{"unified":"1F937-1F3FB","non_qualified":null,"image":"1f937-1f3fb.png","sheet_x":39,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F937-1F3FC","non_qualified":null,"image":"1f937-1f3fc.png","sheet_x":39,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F937-1F3FD","non_qualified":null,"image":"1f937-1f3fd.png","sheet_x":39,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F937-1F3FE","non_qualified":null,"image":"1f937-1f3fe.png","sheet_x":39,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F937-1F3FF","non_qualified":null,"image":"1f937-1f3ff.png","sheet_x":39,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"a":"Shrug","b":"1F937","k":[39,47],"o":4},"fleur_de_lis":{"a":"Fleur De Lis","b":"269C-FE0F","c":"269C","j":["decorative","scout"],"k":[53,49],"o":2},"robot_face":{"a":"Robot Face","b":"1F916","k":[37,29],"o":2},"railway_track":{"a":"Railway Track","b":"1F6E4-FE0F","c":"1F6E4","j":["train","transportation"],"k":[36,46],"o":2},"tea":{"a":"Teacup Without Handle","b":"1F375","j":["drink","bowl","breakfast","green","british"],"k":[7,20],"o":2},"flag-gt":{"a":"Guatemala Flag","b":"1F1EC-1F1F9","k":[2,12],"o":2},"oil_drum":{"a":"Oil Drum","b":"1F6E2-FE0F","c":"1F6E2","j":["barrell"],"k":[36,44],"o":2},"diya_lamp":{"a":"Diya Lamp","b":"1FA94","k":[52,8],"o":12},"sake":{"a":"Sake Bottle and Cup","b":"1F376","j":["wine","drink","drunk","beverage","japanese","alcohol","booze"],"k":[7,21],"o":2},"trident":{"a":"Trident Emblem","b":"1F531","j":["weapon","spear"],"k":[28,20],"o":2},"man-shrugging":{"skin_variations":{"1F3FB":{"unified":"1F937-1F3FB-200D-2642-FE0F","non_qualified":"1F937-1F3FB-200D-2642","image":"1f937-1f3fb-200d-2642-fe0f.png","sheet_x":39,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F937-1F3FC-200D-2642-FE0F","non_qualified":"1F937-1F3FC-200D-2642","image":"1f937-1f3fc-200d-2642-fe0f.png","sheet_x":39,"sheet_y":43,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F937-1F3FD-200D-2642-FE0F","non_qualified":"1F937-1F3FD-200D-2642","image":"1f937-1f3fd-200d-2642-fe0f.png","sheet_x":39,"sheet_y":44,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F937-1F3FE-200D-2642-FE0F","non_qualified":"1F937-1F3FE-200D-2642","image":"1f937-1f3fe-200d-2642-fe0f.png","sheet_x":39,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F937-1F3FF-200D-2642-FE0F","non_qualified":"1F937-1F3FF-200D-2642","image":"1f937-1f3ff-200d-2642-fe0f.png","sheet_x":39,"sheet_y":46,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Shrugging","b":"1F937-200D-2642-FE0F","c":"1F937-200D-2642","k":[39,41],"o":4},"smiley_cat":{"a":"Smiling Cat Face with Open Mouth","b":"1F63A","j":["animal","cats","happy","smile"],"k":[31,36],"o":2},"scorpion":{"a":"Scorpion","b":"1F982","j":["animal","arachnid"],"k":[42,20],"o":2},"woman-shrugging":{"skin_variations":{"1F3FB":{"unified":"1F937-1F3FB-200D-2640-FE0F","non_qualified":"1F937-1F3FB-200D-2640","image":"1f937-1f3fb-200d-2640-fe0f.png","sheet_x":39,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F937-1F3FC-200D-2640-FE0F","non_qualified":"1F937-1F3FC-200D-2640","image":"1f937-1f3fc-200d-2640-fe0f.png","sheet_x":39,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F937-1F3FD-200D-2640-FE0F","non_qualified":"1F937-1F3FD-200D-2640","image":"1f937-1f3fd-200d-2640-fe0f.png","sheet_x":39,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F937-1F3FE-200D-2640-FE0F","non_qualified":"1F937-1F3FE-200D-2640","image":"1f937-1f3fe-200d-2640-fe0f.png","sheet_x":39,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F937-1F3FF-200D-2640-FE0F","non_qualified":"1F937-1F3FF-200D-2640","image":"1f937-1f3ff-200d-2640-fe0f.png","sheet_x":39,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Woman Shrugging","b":"1F937-200D-2640-FE0F","c":"1F937-200D-2640","k":[39,35],"o":4},"notebook_with_decorative_cover":{"a":"Notebook with Decorative Cover","b":"1F4D4","j":["classroom","notes","record","paper","study"],"k":[26,42],"o":2},"fuelpump":{"a":"Fuel Pump","b":"26FD","j":["gas station","petroleum"],"k":[54,38],"o":2},"name_badge":{"a":"Name Badge","b":"1F4DB","j":["fire","forbid"],"k":[26,49],"o":2},"mosquito":{"a":"Mosquito","b":"1F99F","k":[42,49],"o":11},"flag-gu":{"a":"Guam Flag","b":"1F1EC-1F1FA","k":[2,13],"o":2},"smile_cat":{"a":"Grinning Cat Face with Smiling Eyes","b":"1F638","j":["animal","cats","smile"],"k":[31,34],"o":2},"champagne":{"a":"Bottle with Popping Cork","b":"1F37E","j":["drink","wine","bottle","celebration"],"k":[7,29],"o":2},"joy_cat":{"a":"Cat Face with Tears of Joy","b":"1F639","j":["animal","cats","haha","happy","tears"],"k":[31,35],"o":2},"closed_book":{"a":"Closed Book","b":"1F4D5","j":["read","library","knowledge","textbook","learn"],"k":[26,43],"o":2},"rotating_light":{"a":"Police Cars Revolving Light","b":"1F6A8","j":["police","ambulance","911","emergency","alert","error","pinged","law","legal"],"k":[34,56],"o":2},"microbe":{"a":"Microbe","b":"1F9A0","k":[42,50],"o":11},"flag-gw":{"a":"Guinea-Bissau Flag","b":"1F1EC-1F1FC","k":[2,14],"o":2},"wine_glass":{"a":"Wine Glass","b":"1F377","j":["drink","beverage","drunk","alcohol","booze"],"k":[7,22],"o":2},"beginner":{"a":"Japanese Symbol for Beginner","b":"1F530","j":["badge","shield"],"k":[28,19],"o":2},"bouquet":{"a":"Bouquet","b":"1F490","j":["flowers","nature","spring"],"k":[25,26],"o":2},"heart_eyes_cat":{"a":"Smiling Cat Face with Heart-Shaped Eyes","b":"1F63B","j":["animal","love","like","affection","cats","valentines","heart"],"k":[31,37],"o":2},"male-doctor":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-2695-FE0F","non_qualified":"1F468-1F3FB-200D-2695","image":"1f468-1f3fb-200d-2695-fe0f.png","sheet_x":17,"sheet_y":3,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-2695-FE0F","non_qualified":"1F468-1F3FC-200D-2695","image":"1f468-1f3fc-200d-2695-fe0f.png","sheet_x":17,"sheet_y":4,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-2695-FE0F","non_qualified":"1F468-1F3FD-200D-2695","image":"1f468-1f3fd-200d-2695-fe0f.png","sheet_x":17,"sheet_y":5,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-2695-FE0F","non_qualified":"1F468-1F3FE-200D-2695","image":"1f468-1f3fe-200d-2695-fe0f.png","sheet_x":17,"sheet_y":6,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-2695-FE0F","non_qualified":"1F468-1F3FF-200D-2695","image":"1f468-1f3ff-200d-2695-fe0f.png","sheet_x":17,"sheet_y":7,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Doctor","b":"1F468-200D-2695-FE0F","c":"1F468-200D-2695","k":[17,2],"o":4},"book":{"a":"Open Book","b":"1F4D6","k":[26,44],"n":["open_book"],"o":2},"traffic_light":{"a":"Horizontal Traffic Light","b":"1F6A5","j":["transportation","signal"],"k":[34,53],"o":2},"cocktail":{"a":"Cocktail Glass","b":"1F378","j":["drink","drunk","alcohol","beverage","booze","mojito"],"k":[7,23],"o":2},"o":{"a":"Heavy Large Circle","b":"2B55","j":["circle","round"],"k":[55,43],"o":2},"flag-gy":{"a":"Guyana Flag","b":"1F1EC-1F1FE","k":[2,15],"o":2},"female-doctor":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-2695-FE0F","non_qualified":"1F469-1F3FB-200D-2695","image":"1f469-1f3fb-200d-2695-fe0f.png","sheet_x":19,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-2695-FE0F","non_qualified":"1F469-1F3FC-200D-2695","image":"1f469-1f3fc-200d-2695-fe0f.png","sheet_x":19,"sheet_y":46,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-2695-FE0F","non_qualified":"1F469-1F3FD-200D-2695","image":"1f469-1f3fd-200d-2695-fe0f.png","sheet_x":19,"sheet_y":47,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-2695-FE0F","non_qualified":"1F469-1F3FE-200D-2695","image":"1f469-1f3fe-200d-2695-fe0f.png","sheet_x":19,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-2695-FE0F","non_qualified":"1F469-1F3FF-200D-2695","image":"1f469-1f3ff-200d-2695-fe0f.png","sheet_x":19,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Doctor","b":"1F469-200D-2695-FE0F","c":"1F469-200D-2695","k":[19,44],"o":4},"smirk_cat":{"a":"Cat Face with Wry Smile","b":"1F63C","j":["animal","cats","smirk"],"k":[31,38],"o":2},"green_book":{"a":"Green Book","b":"1F4D7","j":["read","library","knowledge","study"],"k":[26,45],"o":2},"cherry_blossom":{"a":"Cherry Blossom","b":"1F338","j":["nature","plant","spring","flower"],"k":[6,16],"o":2},"flag-hk":{"a":"Hong Kong Sar China Flag","b":"1F1ED-1F1F0","k":[2,16],"o":2},"vertical_traffic_light":{"a":"Vertical Traffic Light","b":"1F6A6","j":["transportation","driving"],"k":[34,54],"o":2},"white_check_mark":{"a":"White Heavy Check Mark","b":"2705","j":["green-square","ok","agree","vote","election","answer","tick"],"k":[54,40],"o":2},"tropical_drink":{"a":"Tropical Drink","b":"1F379","j":["beverage","cocktail","summer","beach","alcohol","booze","mojito"],"k":[7,24],"o":2},"kissing_cat":{"a":"Kissing Cat Face with Closed Eyes","b":"1F63D","j":["animal","cats","kiss"],"k":[31,39],"o":2},"flag-hm":{"a":"Heard & Mcdonald Islands Flag","b":"1F1ED-1F1F2","k":[2,17],"o":2},"octagonal_sign":{"a":"Octagonal Sign","b":"1F6D1","k":[36,39],"o":4},"white_flower":{"a":"White Flower","b":"1F4AE","j":["japanese","spring"],"k":[26,4],"o":2},"ballot_box_with_check":{"a":"Ballot Box with Check","b":"2611-FE0F","c":"2611","j":["ok","agree","confirm","black-square","vote","election","yes","tick"],"k":[52,55],"o":2},"blue_book":{"a":"Blue Book","b":"1F4D8","j":["read","library","knowledge","learn","study"],"k":[26,46],"o":2},"beer":{"a":"Beer Mug","b":"1F37A","j":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"k":[7,25],"o":2},"construction":{"a":"Construction Sign","b":"1F6A7","j":["wip","progress","caution","warning"],"k":[34,55],"o":2},"rosette":{"a":"Rosette","b":"1F3F5-FE0F","c":"1F3F5","j":["flower","decoration","military"],"k":[11,18],"o":2},"heavy_check_mark":{"a":"Heavy Check Mark","b":"2714-FE0F","c":"2714","j":["ok","nike","answer","yes","tick"],"k":[55,12],"o":2},"scream_cat":{"a":"Weary Cat Face","b":"1F640","j":["animal","cats","munch","scared","scream"],"k":[31,42],"o":2},"orange_book":{"a":"Orange Book","b":"1F4D9","j":["read","library","knowledge","textbook","study"],"k":[26,47],"o":2},"beers":{"a":"Clinking Beer Mugs","b":"1F37B","j":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"k":[7,26],"o":2},"male-student":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F393","non_qualified":null,"image":"1f468-1f3fb-200d-1f393.png","sheet_x":14,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F393","non_qualified":null,"image":"1f468-1f3fc-200d-1f393.png","sheet_x":14,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F393","non_qualified":null,"image":"1f468-1f3fd-200d-1f393.png","sheet_x":14,"sheet_y":53,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F393","non_qualified":null,"image":"1f468-1f3fe-200d-1f393.png","sheet_x":14,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F393","non_qualified":null,"image":"1f468-1f3ff-200d-1f393.png","sheet_x":14,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Student","b":"1F468-200D-1F393","k":[14,50],"o":4},"flag-hn":{"a":"Honduras Flag","b":"1F1ED-1F1F3","k":[2,18],"o":2},"crying_cat_face":{"a":"Crying Cat Face","b":"1F63F","j":["animal","tears","weep","sad","cats","upset","cry"],"k":[31,41],"o":2},"anchor":{"a":"Anchor","b":"2693","j":["ship","ferry","sea","boat"],"k":[53,42],"o":2},"flag-hr":{"a":"Croatia Flag","b":"1F1ED-1F1F7","k":[2,19],"o":2},"heavy_multiplication_x":{"a":"Heavy Multiplication X","b":"2716-FE0F","c":"2716","j":["math","calculation"],"k":[55,13],"o":2},"female-student":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F393","non_qualified":null,"image":"1f469-1f3fb-200d-1f393.png","sheet_x":17,"sheet_y":41,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F393","non_qualified":null,"image":"1f469-1f3fc-200d-1f393.png","sheet_x":17,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F393","non_qualified":null,"image":"1f469-1f3fd-200d-1f393.png","sheet_x":17,"sheet_y":43,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F393","non_qualified":null,"image":"1f469-1f3fe-200d-1f393.png","sheet_x":17,"sheet_y":44,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F393","non_qualified":null,"image":"1f469-1f3ff-200d-1f393.png","sheet_x":17,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Student","b":"1F469-200D-1F393","k":[17,40],"o":4},"rose":{"a":"Rose","b":"1F339","j":["flowers","valentines","love","spring"],"k":[6,17],"o":2},"books":{"a":"Books","b":"1F4DA","j":["literature","library","study"],"k":[26,48],"o":2},"clinking_glasses":{"a":"Clinking Glasses","b":"1F942","j":["beverage","drink","party","alcohol","celebrate","cheers"],"k":[41,18],"o":4},"x":{"a":"Cross Mark","b":"274C","j":["no","delete","remove","cancel"],"k":[55,21],"o":2},"pouting_cat":{"a":"Pouting Cat Face","b":"1F63E","j":["animal","cats"],"k":[31,40],"o":2},"wilted_flower":{"a":"Wilted Flower","b":"1F940","j":["plant","nature","flower"],"k":[41,16],"o":4},"boat":{"a":"Sailboat","b":"26F5","k":[54,16],"n":["sailboat"],"o":2},"flag-ht":{"a":"Haiti Flag","b":"1F1ED-1F1F9","k":[2,20],"o":2},"tumbler_glass":{"a":"Tumbler Glass","b":"1F943","j":["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],"k":[41,19],"o":4},"notebook":{"a":"Notebook","b":"1F4D3","j":["stationery","record","notes","paper","study"],"k":[26,41],"o":2},"male-teacher":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F3EB","non_qualified":null,"image":"1f468-1f3fb-200d-1f3eb.png","sheet_x":15,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F3EB","non_qualified":null,"image":"1f468-1f3fc-200d-1f3eb.png","sheet_x":15,"sheet_y":13,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F3EB","non_qualified":null,"image":"1f468-1f3fd-200d-1f3eb.png","sheet_x":15,"sheet_y":14,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F3EB","non_qualified":null,"image":"1f468-1f3fe-200d-1f3eb.png","sheet_x":15,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F3EB","non_qualified":null,"image":"1f468-1f3ff-200d-1f3eb.png","sheet_x":15,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Teacher","b":"1F468-200D-1F3EB","k":[15,11],"o":4},"ledger":{"a":"Ledger","b":"1F4D2","j":["notes","paper"],"k":[26,40],"o":2},"flag-hu":{"a":"Hungary Flag","b":"1F1ED-1F1FA","k":[2,21],"o":2},"cup_with_straw":{"a":"Cup with Straw","b":"1F964","k":[41,51],"o":5},"hibiscus":{"a":"Hibiscus","b":"1F33A","j":["plant","vegetable","flowers","beach"],"k":[6,18],"o":2},"see_no_evil":{"a":"See-No-Evil Monkey","b":"1F648","j":["monkey","animal","nature","haha"],"k":[32,44],"o":2},"canoe":{"a":"Canoe","b":"1F6F6","j":["boat","paddle","water","ship"],"k":[36,55],"o":4},"negative_squared_cross_mark":{"a":"Negative Squared Cross Mark","b":"274E","j":["x","green-square","no","deny"],"k":[55,22],"o":2},"flag-ic":{"a":"Canary Islands Flag","b":"1F1EE-1F1E8","k":[2,22],"o":2},"beverage_box":{"a":"Beverage Box","b":"1F9C3","k":[44,11],"o":12},"speedboat":{"a":"Speedboat","b":"1F6A4","j":["ship","transportation","vehicle","summer"],"k":[34,52],"o":2},"heavy_plus_sign":{"a":"Heavy Plus Sign","b":"2795","j":["math","calculation","addition","more","increase"],"k":[55,29],"o":2},"sunflower":{"a":"Sunflower","b":"1F33B","j":["nature","plant","fall"],"k":[6,19],"o":2},"page_with_curl":{"a":"Page with Curl","b":"1F4C3","j":["documents","office","paper"],"k":[26,25],"o":2},"female-teacher":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F3EB","non_qualified":null,"image":"1f469-1f3fb-200d-1f3eb.png","sheet_x":18,"sheet_y":2,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F3EB","non_qualified":null,"image":"1f469-1f3fc-200d-1f3eb.png","sheet_x":18,"sheet_y":3,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F3EB","non_qualified":null,"image":"1f469-1f3fd-200d-1f3eb.png","sheet_x":18,"sheet_y":4,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F3EB","non_qualified":null,"image":"1f469-1f3fe-200d-1f3eb.png","sheet_x":18,"sheet_y":5,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F3EB","non_qualified":null,"image":"1f469-1f3ff-200d-1f3eb.png","sheet_x":18,"sheet_y":6,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Teacher","b":"1F469-200D-1F3EB","k":[18,1],"o":4},"hear_no_evil":{"a":"Hear-No-Evil Monkey","b":"1F649","j":["animal","monkey","nature"],"k":[32,45],"o":2},"mate_drink":{"a":"Mate Drink","b":"1F9C9","k":[44,17],"o":12},"passenger_ship":{"a":"Passenger Ship","b":"1F6F3-FE0F","c":"1F6F3","j":["yacht","cruise","ferry"],"k":[36,52],"o":2},"scroll":{"a":"Scroll","b":"1F4DC","j":["documents","ancient","history","paper"],"k":[26,50],"o":2},"blossom":{"a":"Blossom","b":"1F33C","j":["nature","flowers","yellow"],"k":[6,20],"o":2},"flag-id":{"a":"Indonesia Flag","b":"1F1EE-1F1E9","k":[2,23],"o":2},"speak_no_evil":{"a":"Speak-No-Evil Monkey","b":"1F64A","j":["monkey","animal","nature","omg"],"k":[32,46],"o":2},"heavy_minus_sign":{"a":"Heavy Minus Sign","b":"2796","j":["math","calculation","subtract","less"],"k":[55,30],"o":2},"flag-ie":{"a":"Ireland Flag","b":"1F1EE-1F1EA","k":[2,24],"o":2},"ice_cube":{"a":"Ice Cube","b":"1F9CA","k":[44,18],"o":12},"page_facing_up":{"a":"Page Facing Up","b":"1F4C4","j":["documents","office","paper","information"],"k":[26,26],"o":2},"male-judge":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-2696-FE0F","non_qualified":"1F468-1F3FB-200D-2696","image":"1f468-1f3fb-200d-2696-fe0f.png","sheet_x":17,"sheet_y":9,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-2696-FE0F","non_qualified":"1F468-1F3FC-200D-2696","image":"1f468-1f3fc-200d-2696-fe0f.png","sheet_x":17,"sheet_y":10,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-2696-FE0F","non_qualified":"1F468-1F3FD-200D-2696","image":"1f468-1f3fd-200d-2696-fe0f.png","sheet_x":17,"sheet_y":11,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-2696-FE0F","non_qualified":"1F468-1F3FE-200D-2696","image":"1f468-1f3fe-200d-2696-fe0f.png","sheet_x":17,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-2696-FE0F","non_qualified":"1F468-1F3FF-200D-2696","image":"1f468-1f3ff-200d-2696-fe0f.png","sheet_x":17,"sheet_y":13,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Judge","b":"1F468-200D-2696-FE0F","c":"1F468-200D-2696","k":[17,8],"o":4},"tulip":{"a":"Tulip","b":"1F337","j":["flowers","plant","nature","summer","spring"],"k":[6,15],"o":2},"ferry":{"a":"Ferry","b":"26F4-FE0F","c":"26F4","j":["boat","ship","yacht"],"k":[54,15],"o":2},"kiss":{"a":"Kiss Mark","b":"1F48B","j":["face","lips","love","like","affection","valentines"],"k":[25,21],"o":2},"heavy_division_sign":{"a":"Heavy Division Sign","b":"2797","j":["divide","math","calculation"],"k":[55,31],"o":2},"newspaper":{"a":"Newspaper","b":"1F4F0","j":["press","headline"],"k":[27,13],"o":2},"female-judge":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-2696-FE0F","non_qualified":"1F469-1F3FB-200D-2696","image":"1f469-1f3fb-200d-2696-fe0f.png","sheet_x":19,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-2696-FE0F","non_qualified":"1F469-1F3FC-200D-2696","image":"1f469-1f3fc-200d-2696-fe0f.png","sheet_x":19,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-2696-FE0F","non_qualified":"1F469-1F3FD-200D-2696","image":"1f469-1f3fd-200d-2696-fe0f.png","sheet_x":19,"sheet_y":53,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-2696-FE0F","non_qualified":"1F469-1F3FE-200D-2696","image":"1f469-1f3fe-200d-2696-fe0f.png","sheet_x":19,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-2696-FE0F","non_qualified":"1F469-1F3FF-200D-2696","image":"1f469-1f3ff-200d-2696-fe0f.png","sheet_x":19,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Judge","b":"1F469-200D-2696-FE0F","c":"1F469-200D-2696","k":[19,50],"o":4},"seedling":{"a":"Seedling","b":"1F331","j":["plant","nature","grass","lawn","spring"],"k":[6,9],"o":2},"love_letter":{"a":"Love Letter","b":"1F48C","j":["email","like","affection","envelope","valentines"],"k":[25,22],"o":2},"chopsticks":{"a":"Chopsticks","b":"1F962","k":[41,49],"o":5},"motor_boat":{"a":"Motor Boat","b":"1F6E5-FE0F","c":"1F6E5","j":["ship"],"k":[36,47],"o":2},"flag-il":{"a":"Israel Flag","b":"1F1EE-1F1F1","k":[2,25],"o":2},"curly_loop":{"a":"Curly Loop","b":"27B0","j":["scribble","draw","shape","squiggle"],"k":[55,33],"o":2},"flag-im":{"a":"Isle of Man Flag","b":"1F1EE-1F1F2","k":[2,26],"o":2},"evergreen_tree":{"a":"Evergreen Tree","b":"1F332","j":["plant","nature"],"k":[6,10],"o":2},"cupid":{"a":"Heart with Arrow","b":"1F498","j":["love","like","heart","affection","valentines"],"k":[25,34],"o":2},"loop":{"a":"Double Curly Loop","b":"27BF","j":["tape","cassette"],"k":[55,34],"o":2},"ship":{"a":"Ship","b":"1F6A2","j":["transportation","titanic","deploy"],"k":[34,33],"o":2},"rolled_up_newspaper":{"a":"Rolled Up Newspaper","b":"1F5DE-FE0F","c":"1F5DE","k":[30,23],"o":2},"knife_fork_plate":{"a":"Knife Fork Plate","b":"1F37D-FE0F","c":"1F37D","k":[7,28],"o":2},"fork_and_knife":{"a":"Fork and Knife","b":"1F374","j":["cutlery","kitchen"],"k":[7,19],"o":2},"male-farmer":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F33E","non_qualified":null,"image":"1f468-1f3fb-200d-1f33e.png","sheet_x":14,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F33E","non_qualified":null,"image":"1f468-1f3fc-200d-1f33e.png","sheet_x":14,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F33E","non_qualified":null,"image":"1f468-1f3fd-200d-1f33e.png","sheet_x":14,"sheet_y":41,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F33E","non_qualified":null,"image":"1f468-1f3fe-200d-1f33e.png","sheet_x":14,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F33E","non_qualified":null,"image":"1f468-1f3ff-200d-1f33e.png","sheet_x":14,"sheet_y":43,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Farmer","b":"1F468-200D-1F33E","k":[14,38],"o":4},"bookmark_tabs":{"a":"Bookmark Tabs","b":"1F4D1","j":["favorite","save","order","tidy"],"k":[26,39],"o":2},"part_alternation_mark":{"a":"Part Alternation Mark","b":"303D-FE0F","c":"303D","j":["graph","presentation","stats","business","economics","bad"],"k":[55,45],"o":2},"flag-in":{"a":"India Flag","b":"1F1EE-1F1F3","k":[2,27],"o":2},"gift_heart":{"a":"Heart with Ribbon","b":"1F49D","j":["love","valentines"],"k":[25,39],"o":2},"airplane":{"a":"Airplane","b":"2708-FE0F","c":"2708","j":["vehicle","transportation","flight","fly"],"k":[54,41],"o":2},"deciduous_tree":{"a":"Deciduous Tree","b":"1F333","j":["plant","nature"],"k":[6,11],"o":2},"spoon":{"a":"Spoon","b":"1F944","j":["cutlery","kitchen","tableware"],"k":[41,20],"o":4},"flag-io":{"a":"British Indian Ocean Territory Flag","b":"1F1EE-1F1F4","k":[2,28],"o":2},"palm_tree":{"a":"Palm Tree","b":"1F334","j":["plant","vegetable","nature","summer","beach","mojito","tropical"],"k":[6,12],"o":2},"sparkling_heart":{"a":"Sparkling Heart","b":"1F496","j":["love","like","affection","valentines"],"k":[25,32],"o":2},"female-farmer":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F33E","non_qualified":null,"image":"1f469-1f3fb-200d-1f33e.png","sheet_x":17,"sheet_y":29,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F33E","non_qualified":null,"image":"1f469-1f3fc-200d-1f33e.png","sheet_x":17,"sheet_y":30,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F33E","non_qualified":null,"image":"1f469-1f3fd-200d-1f33e.png","sheet_x":17,"sheet_y":31,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F33E","non_qualified":null,"image":"1f469-1f3fe-200d-1f33e.png","sheet_x":17,"sheet_y":32,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F33E","non_qualified":null,"image":"1f469-1f3ff-200d-1f33e.png","sheet_x":17,"sheet_y":33,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Farmer","b":"1F469-200D-1F33E","k":[17,28],"o":4},"eight_spoked_asterisk":{"a":"Eight Spoked Asterisk","b":"2733-FE0F","c":"2733","j":["star","sparkle","green-square"],"k":[55,17],"o":2},"small_airplane":{"a":"Small Airplane","b":"1F6E9-FE0F","c":"1F6E9","j":["flight","transportation","fly","vehicle"],"k":[36,48],"o":2},"bookmark":{"a":"Bookmark","b":"1F516","j":["favorite","label","save"],"k":[27,50],"o":2},"eight_pointed_black_star":{"a":"Eight Pointed Black Star","b":"2734-FE0F","c":"2734","j":["orange-square","shape","polygon"],"k":[55,18],"o":2},"heartpulse":{"a":"Growing Heart","b":"1F497","j":["like","love","affection","valentines","pink"],"k":[25,33],"o":2},"label":{"a":"Label","b":"1F3F7-FE0F","c":"1F3F7","j":["sale","tag"],"k":[11,19],"o":2},"flag-iq":{"a":"Iraq Flag","b":"1F1EE-1F1F6","k":[2,29],"o":2},"hocho":{"a":"Hocho","b":"1F52A","j":["knife","blade","cutlery","kitchen","weapon"],"k":[28,13],"n":["knife"],"o":2},"cactus":{"a":"Cactus","b":"1F335","j":["vegetable","plant","nature"],"k":[6,13],"o":2},"airplane_departure":{"a":"Airplane Departure","b":"1F6EB","k":[36,49],"o":2},"airplane_arriving":{"a":"Airplane Arriving","b":"1F6EC","k":[36,50],"o":2},"ear_of_rice":{"a":"Ear of Rice","b":"1F33E","j":["nature","plant"],"k":[6,22],"o":2},"flag-ir":{"a":"Iran Flag","b":"1F1EE-1F1F7","k":[2,30],"o":2},"moneybag":{"a":"Money Bag","b":"1F4B0","j":["dollar","payment","coins","sale"],"k":[26,6],"o":2},"male-cook":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F373","non_qualified":null,"image":"1f468-1f3fb-200d-1f373.png","sheet_x":14,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F373","non_qualified":null,"image":"1f468-1f3fc-200d-1f373.png","sheet_x":14,"sheet_y":46,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F373","non_qualified":null,"image":"1f468-1f3fd-200d-1f373.png","sheet_x":14,"sheet_y":47,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F373","non_qualified":null,"image":"1f468-1f3fe-200d-1f373.png","sheet_x":14,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F373","non_qualified":null,"image":"1f468-1f3ff-200d-1f373.png","sheet_x":14,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Cook","b":"1F468-200D-1F373","k":[14,44],"o":4},"heartbeat":{"a":"Beating Heart","b":"1F493","j":["love","like","affection","valentines","pink","heart"],"k":[25,29],"o":2},"sparkle":{"a":"Sparkle","b":"2747-FE0F","c":"2747","j":["stars","green-square","awesome","good","fireworks"],"k":[55,20],"o":2},"amphora":{"a":"Amphora","b":"1F3FA","j":["vase","jar"],"k":[11,22],"o":2},"yen":{"a":"Banknote with Yen Sign","b":"1F4B4","j":["money","sales","japanese","dollar","currency"],"k":[26,10],"o":2},"revolving_hearts":{"a":"Revolving Hearts","b":"1F49E","j":["love","like","affection","valentines"],"k":[25,40],"o":2},"bangbang":{"a":"Double Exclamation Mark","b":"203C-FE0F","c":"203C","j":["exclamation","surprise"],"k":[52,10],"o":2},"parachute":{"a":"Parachute","b":"1FA82","k":[52,3],"o":12},"herb":{"a":"Herb","b":"1F33F","j":["vegetable","plant","medicine","weed","grass","lawn"],"k":[6,23],"o":2},"flag-is":{"a":"Iceland Flag","b":"1F1EE-1F1F8","k":[2,31],"o":2},"female-cook":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F373","non_qualified":null,"image":"1f469-1f3fb-200d-1f373.png","sheet_x":17,"sheet_y":35,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F373","non_qualified":null,"image":"1f469-1f3fc-200d-1f373.png","sheet_x":17,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F373","non_qualified":null,"image":"1f469-1f3fd-200d-1f373.png","sheet_x":17,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F373","non_qualified":null,"image":"1f469-1f3fe-200d-1f373.png","sheet_x":17,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F373","non_qualified":null,"image":"1f469-1f3ff-200d-1f373.png","sheet_x":17,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Cook","b":"1F469-200D-1F373","k":[17,34],"o":4},"interrobang":{"a":"Exclamation Question Mark","b":"2049-FE0F","c":"2049","j":["wat","punctuation","surprise"],"k":[52,11],"o":2},"seat":{"a":"Seat","b":"1F4BA","j":["sit","airplane","transport","bus","flight","fly"],"k":[26,16],"o":2},"dollar":{"a":"Banknote with Dollar Sign","b":"1F4B5","j":["money","sales","bill","currency"],"k":[26,11],"o":2},"two_hearts":{"a":"Two Hearts","b":"1F495","j":["love","like","affection","valentines","heart"],"k":[25,31],"o":2},"it":{"a":"Italy Flag","b":"1F1EE-1F1F9","j":["italy","flag","nation","country","banner"],"k":[2,32],"n":["flag-it"],"o":2},"shamrock":{"a":"Shamrock","b":"2618-FE0F","c":"2618","j":["vegetable","plant","nature","irish","clover"],"k":[53,1],"o":2},"four_leaf_clover":{"a":"Four Leaf Clover","b":"1F340","j":["vegetable","plant","nature","lucky","irish"],"k":[6,24],"o":2},"euro":{"a":"Banknote with Euro Sign","b":"1F4B6","j":["money","sales","dollar","currency"],"k":[26,12],"o":2},"question":{"a":"Black Question Mark Ornament","b":"2753","j":["doubt","confused"],"k":[55,23],"o":2},"helicopter":{"a":"Helicopter","b":"1F681","j":["transportation","vehicle","fly"],"k":[34,0],"o":2},"heart_decoration":{"a":"Heart Decoration","b":"1F49F","j":["purple-square","love","like"],"k":[25,41],"o":2},"flag-je":{"a":"Jersey Flag","b":"1F1EF-1F1EA","k":[2,33],"o":2},"male-mechanic":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F527","non_qualified":null,"image":"1f468-1f3fb-200d-1f527.png","sheet_x":15,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F527","non_qualified":null,"image":"1f468-1f3fc-200d-1f527.png","sheet_x":15,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F527","non_qualified":null,"image":"1f468-1f3fd-200d-1f527.png","sheet_x":15,"sheet_y":53,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F527","non_qualified":null,"image":"1f468-1f3fe-200d-1f527.png","sheet_x":15,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F527","non_qualified":null,"image":"1f468-1f3ff-200d-1f527.png","sheet_x":15,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Mechanic","b":"1F468-200D-1F527","k":[15,50],"o":4},"suspension_railway":{"a":"Suspension Railway","b":"1F69F","j":["vehicle","transportation"],"k":[34,30],"o":2},"heavy_heart_exclamation_mark_ornament":{"a":"Heavy Heart Exclamation Mark Ornament","b":"2763-FE0F","c":"2763","k":[55,27],"o":2},"female-mechanic":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F527","non_qualified":null,"image":"1f469-1f3fb-200d-1f527.png","sheet_x":18,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F527","non_qualified":null,"image":"1f469-1f3fc-200d-1f527.png","sheet_x":18,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F527","non_qualified":null,"image":"1f469-1f3fd-200d-1f527.png","sheet_x":18,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F527","non_qualified":null,"image":"1f469-1f3fe-200d-1f527.png","sheet_x":18,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F527","non_qualified":null,"image":"1f469-1f3ff-200d-1f527.png","sheet_x":18,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Mechanic","b":"1F469-200D-1F527","k":[18,35],"o":4},"flag-jm":{"a":"Jamaica Flag","b":"1F1EF-1F1F2","k":[2,34],"o":2},"grey_question":{"a":"White Question Mark Ornament","b":"2754","j":["doubts","gray","huh","confused"],"k":[55,24],"o":2},"maple_leaf":{"a":"Maple Leaf","b":"1F341","j":["nature","plant","vegetable","ca","fall"],"k":[6,25],"o":2},"pound":{"a":"Banknote with Pound Sign","b":"1F4B7","j":["british","sterling","money","sales","bills","uk","england","currency"],"k":[26,13],"o":2},"money_with_wings":{"a":"Money with Wings","b":"1F4B8","j":["dollar","bills","payment","sale"],"k":[26,14],"o":2},"flag-jo":{"a":"Jordan Flag","b":"1F1EF-1F1F4","k":[2,35],"o":2},"fallen_leaf":{"a":"Fallen Leaf","b":"1F342","j":["nature","plant","vegetable","leaves"],"k":[6,26],"o":2},"broken_heart":{"a":"Broken Heart","b":"1F494","j":["sad","sorry","break","heart","heartbreak"],"k":[25,30],"l":["",":->"],"n":["satisfied"],"o":2},"waving_white_flag":{"a":"Waving White Flag","b":"1F3F3-FE0F","c":"1F3F3","d":true,"e":true,"f":true,"h":true,"k":[11,12],"o":2},"safety_vest":{"a":"Safety Vest","b":"1F9BA","d":true,"e":true,"f":true,"h":true,"k":[43,54],"o":12},"sweat_smile":{"a":"Smiling Face with Open Mouth and Cold Sweat","b":"1F605","d":true,"e":true,"f":true,"h":true,"j":["face","hot","happy","laugh","sweat","smile","relief"],"k":[30,40],"o":2},"sparkles":{"a":"Sparkles","b":"2728","d":true,"e":true,"f":true,"h":true,"j":["stars","shine","shiny","cool","awesome","good","magic"],"k":[55,16],"o":2},"banana":{"a":"Banana","b":"1F34C","d":true,"e":true,"f":true,"h":true,"j":["fruit","food","monkey"],"k":[6,36],"o":2},"rainbow-flag":{"a":"Rainbow Flag","b":"1F3F3-FE0F-200D-1F308","c":"1F3F3-200D-1F308","d":true,"e":true,"f":true,"h":true,"k":[11,11],"o":4},"ok_hand":{"skin_variations":{"1F3FB":{"unified":"1F44C-1F3FB","non_qualified":null,"image":"1f44c-1f3fb.png","sheet_x":13,"sheet_y":33,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44C-1F3FC","non_qualified":null,"image":"1f44c-1f3fc.png","sheet_x":13,"sheet_y":34,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44C-1F3FD","non_qualified":null,"image":"1f44c-1f3fd.png","sheet_x":13,"sheet_y":35,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44C-1F3FE","non_qualified":null,"image":"1f44c-1f3fe.png","sheet_x":13,"sheet_y":36,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44C-1F3FF","non_qualified":null,"image":"1f44c-1f3ff.png","sheet_x":13,"sheet_y":37,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Ok Hand Sign","b":"1F44C","d":true,"e":true,"f":true,"h":true,"j":["fingers","limbs","perfect","ok","okay"],"k":[13,32],"o":2},"japan":{"a":"Silhouette of Japan","b":"1F5FE","d":true,"e":true,"f":true,"h":true,"j":["nation","country","japanese","asia"],"k":[30,33],"o":2},"dog2":{"a":"Dog","b":"1F415","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","friend","doge","pet","faithful"],"k":[11,50],"o":2},"womens":{"a":"Womens Symbol","b":"1F6BA","d":true,"e":true,"f":true,"h":true,"j":["purple-square","woman","female","toilet","loo","restroom","gender"],"k":[36,11],"o":2},"necktie":{"a":"Necktie","b":"1F454","d":true,"e":true,"f":true,"h":true,"j":["shirt","suitup","formal","fashion","cloth","business"],"k":[14,8],"o":2},"pirate_flag":{"a":"Pirate Flag","b":"1F3F4-200D-2620-FE0F","c":"1F3F4-200D-2620","d":true,"e":true,"f":true,"h":true,"k":[11,13],"o":11},"guide_dog":{"a":"Guide Dog","b":"1F9AE","d":true,"e":true,"f":true,"h":true,"k":[43,2],"o":12},"restroom":{"a":"Restroom","b":"1F6BB","d":true,"e":true,"f":true,"h":true,"j":["blue-square","toilet","refresh","wc","gender"],"k":[36,12],"o":2},"compass":{"a":"Compass","b":"1F9ED","d":true,"e":true,"f":true,"h":true,"k":[51,32],"o":11},"rolling_on_the_floor_laughing":{"a":"Rolling on the Floor Laughing","b":"1F923","d":true,"e":true,"f":true,"h":true,"k":[38,20],"o":4},"balloon":{"a":"Balloon","b":"1F388","d":true,"e":true,"f":true,"h":true,"j":["party","celebration","birthday","circus"],"k":[7,44],"o":2},"pinching_hand":{"skin_variations":{"1F3FB":{"unified":"1F90F-1F3FB","non_qualified":null,"image":"1f90f-1f3fb.png","sheet_x":37,"sheet_y":18,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F90F-1F3FC","non_qualified":null,"image":"1f90f-1f3fc.png","sheet_x":37,"sheet_y":19,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F90F-1F3FD","non_qualified":null,"image":"1f90f-1f3fd.png","sheet_x":37,"sheet_y":20,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F90F-1F3FE","non_qualified":null,"image":"1f90f-1f3fe.png","sheet_x":37,"sheet_y":21,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F90F-1F3FF","non_qualified":null,"image":"1f90f-1f3ff.png","sheet_x":37,"sheet_y":22,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Pinching Hand","b":"1F90F","d":true,"e":true,"f":true,"h":true,"k":[37,17],"o":12},"pineapple":{"a":"Pineapple","b":"1F34D","d":true,"e":true,"f":true,"h":true,"j":["fruit","nature","food"],"k":[6,37],"o":2},"shirt":{"a":"T-Shirt","b":"1F455","d":true,"e":true,"f":true,"h":true,"k":[14,9],"n":["tshirt"],"o":2},"service_dog":{"a":"Service Dog","b":"1F415-200D-1F9BA","d":true,"e":true,"f":true,"h":true,"k":[11,49],"o":12},"baby_symbol":{"a":"Baby Symbol","b":"1F6BC","d":true,"e":true,"f":true,"h":true,"j":["orange-square","child"],"k":[36,13],"o":2},"joy":{"a":"Face with Tears of Joy","b":"1F602","d":true,"e":true,"f":true,"h":true,"j":["face","cry","tears","weep","happy","happytears","haha"],"k":[30,37],"o":2},"tada":{"a":"Party Popper","b":"1F389","d":true,"e":true,"f":true,"h":true,"j":["party","congratulations","birthday","magic","circus","celebration"],"k":[7,45],"o":2},"mango":{"a":"Mango","b":"1F96D","d":true,"e":true,"f":true,"h":true,"k":[42,3],"o":11},"v":{"skin_variations":{"1F3FB":{"unified":"270C-1F3FB","non_qualified":null,"image":"270c-1f3fb.png","sheet_x":54,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"270C-1F3FC","non_qualified":null,"image":"270c-1f3fc.png","sheet_x":55,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"270C-1F3FD","non_qualified":null,"image":"270c-1f3fd.png","sheet_x":55,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"270C-1F3FE","non_qualified":null,"image":"270c-1f3fe.png","sheet_x":55,"sheet_y":2,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"270C-1F3FF","non_qualified":null,"image":"270c-1f3ff.png","sheet_x":55,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Victory Hand","b":"270C-FE0F","c":"270C","d":true,"e":true,"f":true,"h":true,"j":["fingers","ohyeah","hand","peace","victory","two"],"k":[54,55],"o":2},"snow_capped_mountain":{"a":"Snow Capped Mountain","b":"1F3D4-FE0F","c":"1F3D4","d":true,"e":true,"f":true,"h":true,"k":[10,39],"o":2},"flag-ac":{"a":"Ascension Island Flag","b":"1F1E6-1F1E8","d":true,"e":true,"f":true,"h":true,"k":[0,31],"o":2},"jeans":{"a":"Jeans","b":"1F456","d":true,"e":true,"f":true,"h":true,"j":["fashion","shopping"],"k":[14,10],"o":2},"poodle":{"a":"Poodle","b":"1F429","d":true,"e":true,"f":true,"h":true,"j":["dog","animal","101","nature","pet"],"k":[12,13],"o":2},"crossed_fingers":{"skin_variations":{"1F3FB":{"unified":"1F91E-1F3FB","non_qualified":null,"image":"1f91e-1f3fb.png","sheet_x":38,"sheet_y":6,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91E-1F3FC","non_qualified":null,"image":"1f91e-1f3fc.png","sheet_x":38,"sheet_y":7,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91E-1F3FD","non_qualified":null,"image":"1f91e-1f3fd.png","sheet_x":38,"sheet_y":8,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91E-1F3FE","non_qualified":null,"image":"1f91e-1f3fe.png","sheet_x":38,"sheet_y":9,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91E-1F3FF","non_qualified":null,"image":"1f91e-1f3ff.png","sheet_x":38,"sheet_y":10,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Hand with Index and Middle Fingers Crossed","b":"1F91E","d":true,"e":true,"f":true,"h":true,"j":["good","lucky"],"k":[38,5],"n":["hand_with_index_and_middle_fingers_crossed"],"o":4},"flag-ad":{"a":"Andorra Flag","b":"1F1E6-1F1E9","d":true,"e":true,"f":true,"h":true,"k":[0,32],"o":2},"slightly_smiling_face":{"a":"Slightly Smiling Face","b":"1F642","d":true,"e":true,"f":true,"h":true,"j":["face","smile"],"k":[31,44],"l":[":)","(:",":-)"],"o":2},"apple":{"a":"Red Apple","b":"1F34E","d":true,"e":true,"f":true,"h":true,"j":["fruit","mac","school"],"k":[6,38],"o":2},"wc":{"a":"Water Closet","b":"1F6BE","d":true,"e":true,"f":true,"h":true,"j":["toilet","restroom","blue-square"],"k":[36,15],"o":2},"scarf":{"a":"Scarf","b":"1F9E3","d":true,"e":true,"f":true,"h":true,"k":[51,22],"o":5},"mountain":{"a":"Mountain","b":"26F0-FE0F","c":"26F0","d":true,"e":true,"f":true,"h":true,"j":["photo","nature","environment"],"k":[54,11],"o":2},"confetti_ball":{"a":"Confetti Ball","b":"1F38A","d":true,"e":true,"f":true,"h":true,"j":["festival","party","birthday","circus"],"k":[7,46],"o":2},"i_love_you_hand_sign":{"skin_variations":{"1F3FB":{"unified":"1F91F-1F3FB","non_qualified":null,"image":"1f91f-1f3fb.png","sheet_x":38,"sheet_y":12,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91F-1F3FC","non_qualified":null,"image":"1f91f-1f3fc.png","sheet_x":38,"sheet_y":13,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91F-1F3FD","non_qualified":null,"image":"1f91f-1f3fd.png","sheet_x":38,"sheet_y":14,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91F-1F3FE","non_qualified":null,"image":"1f91f-1f3fe.png","sheet_x":38,"sheet_y":15,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91F-1F3FF","non_qualified":null,"image":"1f91f-1f3ff.png","sheet_x":38,"sheet_y":16,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"I Love You Hand Sign","b":"1F91F","d":true,"e":true,"f":true,"h":true,"k":[38,11],"o":5},"wolf":{"a":"Wolf Face","b":"1F43A","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","wild"],"k":[12,30],"o":2},"gloves":{"a":"Gloves","b":"1F9E4","d":true,"e":true,"f":true,"h":true,"k":[51,23],"o":5},"flag-ae":{"a":"United Arab Emirates Flag","b":"1F1E6-1F1EA","d":true,"e":true,"f":true,"h":true,"k":[0,33],"o":2},"upside_down_face":{"a":"Upside-Down Face","b":"1F643","d":true,"e":true,"f":true,"h":true,"j":["face","flipped","silly","smile"],"k":[31,45],"o":2},"green_apple":{"a":"Green Apple","b":"1F34F","d":true,"e":true,"f":true,"h":true,"j":["fruit","nature"],"k":[6,39],"o":2},"passport_control":{"a":"Passport Control","b":"1F6C2","d":true,"e":true,"f":true,"h":true,"j":["custom","blue-square"],"k":[36,24],"o":2},"volcano":{"a":"Volcano","b":"1F30B","d":true,"e":true,"f":true,"h":true,"j":["photo","nature","disaster"],"k":[5,30],"o":2},"tanabata_tree":{"a":"Tanabata Tree","b":"1F38B","d":true,"e":true,"f":true,"h":true,"j":["plant","nature","branch","summer"],"k":[7,47],"o":2},"customs":{"a":"Customs","b":"1F6C3","d":true,"e":true,"f":true,"h":true,"j":["passport","border","blue-square"],"k":[36,25],"o":2},"coat":{"a":"Coat","b":"1F9E5","d":true,"e":true,"f":true,"h":true,"k":[51,24],"o":5},"wink":{"a":"Winking Face","b":"1F609","d":true,"e":true,"f":true,"h":true,"j":["face","happy","mischievous","secret",";)","smile","eye"],"k":[30,44],"l":[";)",";-)"],"m":";)","o":2},"bamboo":{"a":"Pine Decoration","b":"1F38D","d":true,"e":true,"f":true,"h":true,"j":["plant","nature","vegetable","panda","pine_decoration"],"k":[7,49],"o":2},"flag-af":{"a":"Afghanistan Flag","b":"1F1E6-1F1EB","d":true,"e":true,"f":true,"h":true,"k":[0,34],"o":2},"fox_face":{"a":"Fox Face","b":"1F98A","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","face"],"k":[42,28],"o":4},"pear":{"a":"Pear","b":"1F350","d":true,"e":true,"f":true,"h":true,"j":["fruit","nature","food"],"k":[6,40],"o":2},"mount_fuji":{"a":"Mount Fuji","b":"1F5FB","d":true,"e":true,"f":true,"h":true,"j":["photo","mountain","nature","japanese"],"k":[30,30],"o":2},"the_horns":{"skin_variations":{"1F3FB":{"unified":"1F918-1F3FB","non_qualified":null,"image":"1f918-1f3fb.png","sheet_x":37,"sheet_y":32,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F918-1F3FC","non_qualified":null,"image":"1f918-1f3fc.png","sheet_x":37,"sheet_y":33,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F918-1F3FD","non_qualified":null,"image":"1f918-1f3fd.png","sheet_x":37,"sheet_y":34,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F918-1F3FE","non_qualified":null,"image":"1f918-1f3fe.png","sheet_x":37,"sheet_y":35,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F918-1F3FF","non_qualified":null,"image":"1f918-1f3ff.png","sheet_x":37,"sheet_y":36,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Sign of the Horns","b":"1F918","d":true,"e":true,"f":true,"h":true,"k":[37,31],"n":["sign_of_the_horns"],"o":2},"call_me_hand":{"skin_variations":{"1F3FB":{"unified":"1F919-1F3FB","non_qualified":null,"image":"1f919-1f3fb.png","sheet_x":37,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F919-1F3FC","non_qualified":null,"image":"1f919-1f3fc.png","sheet_x":37,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F919-1F3FD","non_qualified":null,"image":"1f919-1f3fd.png","sheet_x":37,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F919-1F3FE","non_qualified":null,"image":"1f919-1f3fe.png","sheet_x":37,"sheet_y":41,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F919-1F3FF","non_qualified":null,"image":"1f919-1f3ff.png","sheet_x":37,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Call Me Hand","b":"1F919","d":true,"e":true,"f":true,"h":true,"j":["hands","gesture"],"k":[37,37],"o":4},"flag-ag":{"a":"Antigua & Barbuda Flag","b":"1F1E6-1F1EC","d":true,"e":true,"f":true,"h":true,"k":[0,35],"o":2},"raccoon":{"a":"Raccoon","b":"1F99D","d":true,"e":true,"f":true,"h":true,"k":[42,47],"o":11},"dolls":{"a":"Japanese Dolls","b":"1F38E","d":true,"e":true,"f":true,"h":true,"j":["japanese","toy","kimono"],"k":[7,50],"o":2},"blush":{"a":"Smiling Face with Smiling Eyes","b":"1F60A","d":true,"e":true,"f":true,"h":true,"j":["face","smile","happy","flushed","crush","embarrassed","shy","joy"],"k":[30,45],"m":":)","o":2},"peach":{"a":"Peach","b":"1F351","d":true,"e":true,"f":true,"h":true,"j":["fruit","nature","food"],"k":[6,41],"o":2},"baggage_claim":{"a":"Baggage Claim","b":"1F6C4","d":true,"e":true,"f":true,"h":true,"j":["blue-square","airport","transport"],"k":[36,26],"o":2},"socks":{"a":"Socks","b":"1F9E6","d":true,"e":true,"f":true,"h":true,"k":[51,25],"o":5},"camping":{"a":"Camping","b":"1F3D5-FE0F","c":"1F3D5","d":true,"e":true,"f":true,"h":true,"j":["photo","outdoors","tent"],"k":[10,40],"o":2},"dress":{"a":"Dress","b":"1F457","d":true,"e":true,"f":true,"h":true,"j":["clothes","fashion","shopping"],"k":[14,11],"o":2},"beach_with_umbrella":{"a":"Beach with Umbrella","b":"1F3D6-FE0F","c":"1F3D6","d":true,"e":true,"f":true,"h":true,"k":[10,41],"o":2},"cherries":{"a":"Cherries","b":"1F352","d":true,"e":true,"f":true,"h":true,"j":["food","fruit"],"k":[6,42],"o":2},"cat":{"a":"Cat Face","b":"1F431","d":true,"e":true,"f":true,"h":true,"j":["animal","meow","nature","pet","kitten"],"k":[12,21],"o":2},"point_left":{"skin_variations":{"1F3FB":{"unified":"1F448-1F3FB","non_qualified":null,"image":"1f448-1f3fb.png","sheet_x":13,"sheet_y":9,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F448-1F3FC","non_qualified":null,"image":"1f448-1f3fc.png","sheet_x":13,"sheet_y":10,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F448-1F3FD","non_qualified":null,"image":"1f448-1f3fd.png","sheet_x":13,"sheet_y":11,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F448-1F3FE","non_qualified":null,"image":"1f448-1f3fe.png","sheet_x":13,"sheet_y":12,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F448-1F3FF","non_qualified":null,"image":"1f448-1f3ff.png","sheet_x":13,"sheet_y":13,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Left Pointing Backhand Index","b":"1F448","d":true,"e":true,"f":true,"h":true,"j":["direction","fingers","hand","left"],"k":[13,8],"o":2},"left_luggage":{"a":"Left Luggage","b":"1F6C5","d":true,"e":true,"f":true,"h":true,"j":["blue-square","travel"],"k":[36,27],"o":2},"flag-ai":{"a":"Anguilla Flag","b":"1F1E6-1F1EE","d":true,"e":true,"f":true,"h":true,"k":[0,36],"o":2},"innocent":{"a":"Smiling Face with Halo","b":"1F607","d":true,"e":true,"f":true,"h":true,"j":["face","angel","heaven","halo"],"k":[30,42],"o":2},"flags":{"a":"Carp Streamer","b":"1F38F","d":true,"e":true,"f":true,"h":true,"j":["fish","japanese","koinobori","carp","banner"],"k":[7,51],"o":2},"warning":{"a":"Warning Sign","b":"26A0-FE0F","c":"26A0","d":true,"e":true,"f":true,"h":true,"j":["exclamation","wip","alert","error","problem","issue"],"k":[53,50],"o":2},"strawberry":{"a":"Strawberry","b":"1F353","d":true,"e":true,"f":true,"h":true,"j":["fruit","food","nature"],"k":[6,43],"o":2},"point_right":{"skin_variations":{"1F3FB":{"unified":"1F449-1F3FB","non_qualified":null,"image":"1f449-1f3fb.png","sheet_x":13,"sheet_y":15,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F449-1F3FC","non_qualified":null,"image":"1f449-1f3fc.png","sheet_x":13,"sheet_y":16,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F449-1F3FD","non_qualified":null,"image":"1f449-1f3fd.png","sheet_x":13,"sheet_y":17,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F449-1F3FE","non_qualified":null,"image":"1f449-1f3fe.png","sheet_x":13,"sheet_y":18,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F449-1F3FF","non_qualified":null,"image":"1f449-1f3ff.png","sheet_x":13,"sheet_y":19,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Right Pointing Backhand Index","b":"1F449","d":true,"e":true,"f":true,"h":true,"j":["fingers","hand","direction","right"],"k":[13,14],"o":2},"desert":{"a":"Desert","b":"1F3DC-FE0F","c":"1F3DC","d":true,"e":true,"f":true,"h":true,"j":["photo","warm","saharah"],"k":[10,47],"o":2},"kimono":{"a":"Kimono","b":"1F458","d":true,"e":true,"f":true,"h":true,"j":["dress","fashion","women","female","japanese"],"k":[14,12],"o":2},"flag-al":{"a":"Albania Flag","b":"1F1E6-1F1F1","d":true,"e":true,"f":true,"h":true,"k":[0,37],"o":2},"wind_chime":{"a":"Wind Chime","b":"1F390","d":true,"e":true,"f":true,"h":true,"j":["nature","ding","spring","bell"],"k":[7,52],"o":2},"smiling_face_with_3_hearts":{"a":"Smiling Face with Smiling Eyes and Three Hearts","b":"1F970","d":true,"e":true,"f":true,"h":true,"k":[42,6],"o":11},"cat2":{"a":"Cat","b":"1F408","d":true,"e":true,"f":true,"h":true,"j":["animal","meow","pet","cats"],"k":[11,36],"o":2},"rice_scene":{"a":"Moon Viewing Ceremony","b":"1F391","d":true,"e":true,"f":true,"h":true,"j":["photo","japan","asia","tsukimi"],"k":[7,53],"o":2},"heart_eyes":{"a":"Smiling Face with Heart-Shaped Eyes","b":"1F60D","d":true,"e":true,"f":true,"h":true,"j":["face","love","like","affection","valentines","infatuation","crush","heart"],"k":[30,48],"o":2},"sari":{"a":"Sari","b":"1F97B","d":true,"e":true,"f":true,"h":true,"k":[42,13],"o":12},"flag-am":{"a":"Armenia Flag","b":"1F1E6-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[0,38],"o":2},"lion_face":{"a":"Lion Face","b":"1F981","d":true,"e":true,"f":true,"h":true,"k":[42,19],"o":2},"desert_island":{"a":"Desert Island","b":"1F3DD-FE0F","c":"1F3DD","d":true,"e":true,"f":true,"h":true,"j":["photo","tropical","mojito"],"k":[10,48],"o":2},"point_up_2":{"skin_variations":{"1F3FB":{"unified":"1F446-1F3FB","non_qualified":null,"image":"1f446-1f3fb.png","sheet_x":12,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F446-1F3FC","non_qualified":null,"image":"1f446-1f3fc.png","sheet_x":12,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F446-1F3FD","non_qualified":null,"image":"1f446-1f3fd.png","sheet_x":12,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F446-1F3FE","non_qualified":null,"image":"1f446-1f3fe.png","sheet_x":13,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F446-1F3FF","non_qualified":null,"image":"1f446-1f3ff.png","sheet_x":13,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Up Pointing Backhand Index","b":"1F446","d":true,"e":true,"f":true,"h":true,"j":["fingers","hand","direction","up"],"k":[12,53],"o":2},"kiwifruit":{"a":"Kiwifruit","b":"1F95D","d":true,"e":true,"f":true,"h":true,"k":[41,44],"o":4},"children_crossing":{"a":"Children Crossing","b":"1F6B8","d":true,"e":true,"f":true,"h":true,"j":["school","warning","danger","sign","driving","yellow-diamond"],"k":[36,9],"o":2},"national_park":{"a":"National Park","b":"1F3DE-FE0F","c":"1F3DE","d":true,"e":true,"f":true,"h":true,"j":["photo","environment","nature"],"k":[10,49],"o":2},"no_entry":{"a":"No Entry","b":"26D4","d":true,"e":true,"f":true,"h":true,"j":["limit","security","privacy","bad","denied","stop","circle"],"k":[54,8],"o":2},"one-piece_swimsuit":{"a":"One-Piece Swimsuit","b":"1FA71","d":true,"e":true,"f":true,"h":true,"k":[51,52],"o":12},"tiger":{"a":"Tiger Face","b":"1F42F","d":true,"e":true,"f":true,"h":true,"j":["animal","cat","danger","wild","nature","roar"],"k":[12,19],"o":2},"red_envelope":{"a":"Red Gift Envelope","b":"1F9E7","d":true,"e":true,"f":true,"h":true,"k":[51,26],"o":11},"star-struck":{"a":"Grinning Face with Star Eyes","b":"1F929","d":true,"e":true,"f":true,"h":true,"k":[38,43],"n":["grinning_face_with_star_eyes"],"o":5},"middle_finger":{"skin_variations":{"1F3FB":{"unified":"1F595-1F3FB","non_qualified":null,"image":"1f595-1f3fb.png","sheet_x":29,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F595-1F3FC","non_qualified":null,"image":"1f595-1f3fc.png","sheet_x":29,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F595-1F3FD","non_qualified":null,"image":"1f595-1f3fd.png","sheet_x":30,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F595-1F3FE","non_qualified":null,"image":"1f595-1f3fe.png","sheet_x":30,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F595-1F3FF","non_qualified":null,"image":"1f595-1f3ff.png","sheet_x":30,"sheet_y":2,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Reversed Hand with Middle Finger Extended","b":"1F595","d":true,"e":true,"f":true,"h":true,"k":[29,54],"n":["reversed_hand_with_middle_finger_extended"],"o":2},"flag-ao":{"a":"Angola Flag","b":"1F1E6-1F1F4","d":true,"e":true,"f":true,"h":true,"k":[0,39],"o":2},"tomato":{"a":"Tomato","b":"1F345","d":true,"e":true,"f":true,"h":true,"j":["fruit","vegetable","nature","food"],"k":[6,29],"o":2},"coconut":{"a":"Coconut","b":"1F965","d":true,"e":true,"f":true,"h":true,"k":[41,52],"o":5},"ribbon":{"a":"Ribbon","b":"1F380","d":true,"e":true,"f":true,"h":true,"j":["decoration","pink","girl","bowtie"],"k":[7,31],"o":2},"no_entry_sign":{"a":"No Entry Sign","b":"1F6AB","d":true,"e":true,"f":true,"h":true,"j":["forbid","stop","limit","denied","disallow","circle"],"k":[35,2],"o":2},"point_down":{"skin_variations":{"1F3FB":{"unified":"1F447-1F3FB","non_qualified":null,"image":"1f447-1f3fb.png","sheet_x":13,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F447-1F3FC","non_qualified":null,"image":"1f447-1f3fc.png","sheet_x":13,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F447-1F3FD","non_qualified":null,"image":"1f447-1f3fd.png","sheet_x":13,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F447-1F3FE","non_qualified":null,"image":"1f447-1f3fe.png","sheet_x":13,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F447-1F3FF","non_qualified":null,"image":"1f447-1f3ff.png","sheet_x":13,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Down Pointing Backhand Index","b":"1F447","d":true,"e":true,"f":true,"h":true,"j":["fingers","hand","direction","down"],"k":[13,2],"o":2},"flag-aq":{"a":"Antarctica Flag","b":"1F1E6-1F1F6","d":true,"e":true,"f":true,"h":true,"k":[0,40],"o":2},"briefs":{"a":"Briefs","b":"1FA72","d":true,"e":true,"f":true,"h":true,"k":[51,53],"o":12},"kissing_heart":{"a":"Face Throwing a Kiss","b":"1F618","d":true,"e":true,"f":true,"h":true,"j":["face","love","like","affection","valentines","infatuation","kiss"],"k":[31,2],"l":[":*",":-*"],"o":2},"tiger2":{"a":"Tiger","b":"1F405","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","roar"],"k":[11,33],"o":2},"stadium":{"a":"Stadium","b":"1F3DF-FE0F","c":"1F3DF","d":true,"e":true,"f":true,"h":true,"j":["photo","place","sports","concert","venue"],"k":[10,50],"o":2},"leopard":{"a":"Leopard","b":"1F406","d":true,"e":true,"f":true,"h":true,"j":["animal","nature"],"k":[11,34],"o":2},"no_bicycles":{"a":"No Bicycles","b":"1F6B3","d":true,"e":true,"f":true,"h":true,"j":["cyclist","prohibited","circle"],"k":[35,10],"o":2},"kissing":{"a":"Kissing Face","b":"1F617","d":true,"e":true,"f":true,"h":true,"j":["love","like","face","3","valentines","infatuation","kiss"],"k":[31,1],"o":2},"flag-ar":{"a":"Argentina Flag","b":"1F1E6-1F1F7","d":true,"e":true,"f":true,"h":true,"k":[0,41],"o":2},"avocado":{"a":"Avocado","b":"1F951","d":true,"e":true,"f":true,"h":true,"j":["fruit","food"],"k":[41,32],"o":4},"point_up":{"skin_variations":{"1F3FB":{"unified":"261D-1F3FB","non_qualified":null,"image":"261d-1f3fb.png","sheet_x":53,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"261D-1F3FC","non_qualified":null,"image":"261d-1f3fc.png","sheet_x":53,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"261D-1F3FD","non_qualified":null,"image":"261d-1f3fd.png","sheet_x":53,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"261D-1F3FE","non_qualified":null,"image":"261d-1f3fe.png","sheet_x":53,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"261D-1F3FF","non_qualified":null,"image":"261d-1f3ff.png","sheet_x":53,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Up Pointing Index","b":"261D-FE0F","c":"261D","d":true,"e":true,"f":true,"h":true,"j":["hand","fingers","direction","up"],"k":[53,2],"o":2},"gift":{"a":"Wrapped Present","b":"1F381","d":true,"e":true,"f":true,"h":true,"j":["present","birthday","christmas","xmas"],"k":[7,32],"o":2},"classical_building":{"a":"Classical Building","b":"1F3DB-FE0F","c":"1F3DB","d":true,"e":true,"f":true,"h":true,"j":["art","culture","history"],"k":[10,46],"o":2},"shorts":{"a":"Shorts","b":"1FA73","d":true,"e":true,"f":true,"h":true,"k":[51,54],"o":12},"+1":{"skin_variations":{"1F3FB":{"unified":"1F44D-1F3FB","non_qualified":null,"image":"1f44d-1f3fb.png","sheet_x":13,"sheet_y":39,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44D-1F3FC","non_qualified":null,"image":"1f44d-1f3fc.png","sheet_x":13,"sheet_y":40,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44D-1F3FD","non_qualified":null,"image":"1f44d-1f3fd.png","sheet_x":13,"sheet_y":41,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44D-1F3FE","non_qualified":null,"image":"1f44d-1f3fe.png","sheet_x":13,"sheet_y":42,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44D-1F3FF","non_qualified":null,"image":"1f44d-1f3ff.png","sheet_x":13,"sheet_y":43,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Thumbs Up Sign","b":"1F44D","d":true,"e":true,"f":true,"h":true,"j":["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],"k":[13,38],"n":["thumbsup"],"o":2},"horse":{"a":"Horse Face","b":"1F434","d":true,"e":true,"f":true,"h":true,"j":["animal","brown","nature"],"k":[12,24],"o":2},"bikini":{"a":"Bikini","b":"1F459","d":true,"e":true,"f":true,"h":true,"j":["swimming","female","woman","girl","fashion","beach","summer"],"k":[14,13],"o":2},"no_smoking":{"a":"No Smoking Symbol","b":"1F6AD","d":true,"e":true,"f":true,"h":true,"j":["cigarette","blue-square","smell","smoke"],"k":[35,4],"o":2},"eggplant":{"a":"Aubergine","b":"1F346","d":true,"e":true,"f":true,"h":true,"j":["vegetable","nature","food","aubergine"],"k":[6,30],"o":2},"flag-as":{"a":"American Samoa Flag","b":"1F1E6-1F1F8","d":true,"e":true,"f":true,"h":true,"k":[0,42],"o":2},"reminder_ribbon":{"a":"Reminder Ribbon","b":"1F397-FE0F","c":"1F397","d":true,"e":true,"f":true,"h":true,"j":["sports","cause","support","awareness"],"k":[8,0],"o":2},"building_construction":{"a":"Building Construction","b":"1F3D7-FE0F","c":"1F3D7","d":true,"e":true,"f":true,"h":true,"j":["wip","working","progress"],"k":[10,42],"o":2},"relaxed":{"a":"White Smiling Face","b":"263A-FE0F","c":"263A","d":true,"e":true,"f":true,"h":true,"j":["face","blush","massage","happiness"],"k":[53,17],"o":2},"kissing_closed_eyes":{"a":"Kissing Face with Closed Eyes","b":"1F61A","d":true,"e":true,"f":true,"h":true,"j":["face","love","like","affection","valentines","infatuation","kiss"],"k":[31,4],"o":2},"-1":{"skin_variations":{"1F3FB":{"unified":"1F44E-1F3FB","non_qualified":null,"image":"1f44e-1f3fb.png","sheet_x":13,"sheet_y":45,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44E-1F3FC","non_qualified":null,"image":"1f44e-1f3fc.png","sheet_x":13,"sheet_y":46,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44E-1F3FD","non_qualified":null,"image":"1f44e-1f3fd.png","sheet_x":13,"sheet_y":47,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44E-1F3FE","non_qualified":null,"image":"1f44e-1f3fe.png","sheet_x":13,"sheet_y":48,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44E-1F3FF","non_qualified":null,"image":"1f44e-1f3ff.png","sheet_x":13,"sheet_y":49,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Thumbs Down Sign","b":"1F44E","d":true,"e":true,"f":true,"h":true,"j":["thumbsdown","no","dislike","hand"],"k":[13,44],"n":["thumbsdown"],"o":2},"admission_tickets":{"a":"Admission Tickets","b":"1F39F-FE0F","c":"1F39F","d":true,"e":true,"f":true,"h":true,"k":[8,5],"o":2},"flag-at":{"a":"Austria Flag","b":"1F1E6-1F1F9","d":true,"e":true,"f":true,"h":true,"k":[0,43],"o":2},"womans_clothes":{"a":"Womans Clothes","b":"1F45A","d":true,"e":true,"f":true,"h":true,"j":["fashion","shopping_bags","female"],"k":[14,14],"o":2},"do_not_litter":{"a":"Do Not Litter Symbol","b":"1F6AF","d":true,"e":true,"f":true,"h":true,"j":["trash","bin","garbage","circle"],"k":[35,6],"o":2},"potato":{"a":"Potato","b":"1F954","d":true,"e":true,"f":true,"h":true,"j":["food","tuber","vegatable","starch"],"k":[41,35],"o":4},"racehorse":{"a":"Horse","b":"1F40E","d":true,"e":true,"f":true,"h":true,"j":["animal","gamble","luck"],"k":[11,42],"o":2},"bricks":{"a":"Brick","b":"1F9F1","d":true,"e":true,"f":true,"h":true,"k":[51,36],"o":11},"fist":{"skin_variations":{"1F3FB":{"unified":"270A-1F3FB","non_qualified":null,"image":"270a-1f3fb.png","sheet_x":54,"sheet_y":44,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"270A-1F3FC","non_qualified":null,"image":"270a-1f3fc.png","sheet_x":54,"sheet_y":45,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"270A-1F3FD","non_qualified":null,"image":"270a-1f3fd.png","sheet_x":54,"sheet_y":46,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"270A-1F3FE","non_qualified":null,"image":"270a-1f3fe.png","sheet_x":54,"sheet_y":47,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"270A-1F3FF","non_qualified":null,"image":"270a-1f3ff.png","sheet_x":54,"sheet_y":48,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Raised Fist","b":"270A","d":true,"e":true,"f":true,"h":true,"j":["fingers","hand","grasp"],"k":[54,43],"o":2},"house_buildings":{"a":"House Buildings","b":"1F3D8-FE0F","c":"1F3D8","d":true,"e":true,"f":true,"h":true,"k":[10,43],"o":2},"carrot":{"a":"Carrot","b":"1F955","d":true,"e":true,"f":true,"h":true,"j":["vegetable","food","orange"],"k":[41,36],"o":4},"ticket":{"a":"Ticket","b":"1F3AB","d":true,"e":true,"f":true,"h":true,"j":["event","concert","pass"],"k":[8,17],"o":2},"flag-au":{"a":"Australia Flag","b":"1F1E6-1F1FA","d":true,"e":true,"f":true,"h":true,"k":[0,44],"o":2},"non-potable_water":{"a":"Non-Potable Water Symbol","b":"1F6B1","d":true,"e":true,"f":true,"h":true,"j":["drink","faucet","tap","circle"],"k":[35,8],"o":2},"purse":{"a":"Purse","b":"1F45B","d":true,"e":true,"f":true,"h":true,"j":["fashion","accessories","money","sales","shopping"],"k":[14,15],"o":2},"unicorn_face":{"a":"Unicorn Face","b":"1F984","d":true,"e":true,"f":true,"h":true,"k":[42,22],"o":2},"kissing_smiling_eyes":{"a":"Kissing Face with Smiling Eyes","b":"1F619","d":true,"e":true,"f":true,"h":true,"j":["face","affection","valentines","infatuation","kiss"],"k":[31,3],"o":2},"facepunch":{"skin_variations":{"1F3FB":{"unified":"1F44A-1F3FB","non_qualified":null,"image":"1f44a-1f3fb.png","sheet_x":13,"sheet_y":21,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44A-1F3FC","non_qualified":null,"image":"1f44a-1f3fc.png","sheet_x":13,"sheet_y":22,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44A-1F3FD","non_qualified":null,"image":"1f44a-1f3fd.png","sheet_x":13,"sheet_y":23,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44A-1F3FE","non_qualified":null,"image":"1f44a-1f3fe.png","sheet_x":13,"sheet_y":24,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44A-1F3FF","non_qualified":null,"image":"1f44a-1f3ff.png","sheet_x":13,"sheet_y":25,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Fisted Hand Sign","b":"1F44A","d":true,"e":true,"f":true,"h":true,"j":["angry","violence","fist","hit","attack","hand"],"k":[13,20],"n":["punch"],"o":2},"medal":{"a":"Medal","b":"1F396-FE0F","c":"1F396","d":true,"e":true,"f":true,"h":true,"k":[7,56],"o":2},"zebra_face":{"a":"Zebra Face","b":"1F993","d":true,"e":true,"f":true,"h":true,"k":[42,37],"o":5},"handbag":{"a":"Handbag","b":"1F45C","d":true,"e":true,"f":true,"h":true,"j":["fashion","accessory","accessories","shopping"],"k":[14,16],"o":2},"derelict_house_building":{"a":"Derelict House Building","b":"1F3DA-FE0F","c":"1F3DA","d":true,"e":true,"f":true,"h":true,"k":[10,45],"o":2},"yum":{"a":"Face Savouring Delicious Food","b":"1F60B","d":true,"e":true,"f":true,"h":true,"j":["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],"k":[30,46],"o":2},"corn":{"a":"Ear of Maize","b":"1F33D","d":true,"e":true,"f":true,"h":true,"j":["food","vegetable","plant"],"k":[6,21],"o":2},"flag-aw":{"a":"Aruba Flag","b":"1F1E6-1F1FC","d":true,"e":true,"f":true,"h":true,"k":[0,45],"o":2},"no_pedestrians":{"a":"No Pedestrians","b":"1F6B7","d":true,"e":true,"f":true,"h":true,"j":["rules","crossing","walking","circle"],"k":[36,8],"o":2},"house":{"a":"House Building","b":"1F3E0","d":true,"e":true,"f":true,"h":true,"j":["building","home"],"k":[10,51],"o":2},"hot_pepper":{"a":"Hot Pepper","b":"1F336-FE0F","c":"1F336","d":true,"e":true,"f":true,"h":true,"j":["food","spicy","chilli","chili"],"k":[6,14],"o":2},"flag-ax":{"a":"\xc5land Islands Flag","b":"1F1E6-1F1FD","d":true,"e":true,"f":true,"h":true,"k":[0,46],"o":2},"trophy":{"a":"Trophy","b":"1F3C6","d":true,"e":true,"f":true,"h":true,"j":["win","award","contest","place","ftw","ceremony"],"k":[9,26],"o":2},"deer":{"a":"Deer","b":"1F98C","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","horns","venison"],"k":[42,30],"o":4},"left-facing_fist":{"skin_variations":{"1F3FB":{"unified":"1F91B-1F3FB","non_qualified":null,"image":"1f91b-1f3fb.png","sheet_x":37,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91B-1F3FC","non_qualified":null,"image":"1f91b-1f3fc.png","sheet_x":37,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91B-1F3FD","non_qualified":null,"image":"1f91b-1f3fd.png","sheet_x":37,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91B-1F3FE","non_qualified":null,"image":"1f91b-1f3fe.png","sheet_x":37,"sheet_y":53,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91B-1F3FF","non_qualified":null,"image":"1f91b-1f3ff.png","sheet_x":37,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Left-Facing Fist","b":"1F91B","d":true,"e":true,"f":true,"h":true,"k":[37,49],"o":4},"stuck_out_tongue":{"a":"Face with Stuck-out Tongue","b":"1F61B","d":true,"e":true,"f":true,"h":true,"j":["face","prank","childish","playful","mischievous","smile","tongue"],"k":[31,5],"l":[":p",":-p",":P",":-P",":b",":-b"],"m":":p","o":2},"pouch":{"a":"Pouch","b":"1F45D","d":true,"e":true,"f":true,"h":true,"j":["bag","accessories","shopping"],"k":[14,17],"o":2},"no_mobile_phones":{"a":"No Mobile Phones","b":"1F4F5","d":true,"e":true,"f":true,"h":true,"j":["iphone","mute","circle"],"k":[27,18],"o":2},"stuck_out_tongue_winking_eye":{"a":"Face with Stuck-out Tongue and Winking Eye","b":"1F61C","d":true,"e":true,"f":true,"h":true,"j":["face","prank","childish","playful","mischievous","smile","wink","tongue"],"k":[31,6],"l":[";p",";-p",";b",";-b",";P",";-P"],"m":";p","o":2},"sports_medal":{"a":"Sports Medal","b":"1F3C5","d":true,"e":true,"f":true,"h":true,"k":[9,25],"o":2},"cucumber":{"a":"Cucumber","b":"1F952","d":true,"e":true,"f":true,"h":true,"j":["fruit","food","pickle"],"k":[41,33],"o":4},"cow":{"a":"Cow Face","b":"1F42E","d":true,"e":true,"f":true,"h":true,"j":["beef","ox","animal","nature","moo","milk"],"k":[12,18],"o":2},"underage":{"a":"No One Under Eighteen Symbol","b":"1F51E","d":true,"e":true,"f":true,"h":true,"j":["18","drink","pub","night","minor","circle"],"k":[28,1],"o":2},"flag-az":{"a":"Azerbaijan Flag","b":"1F1E6-1F1FF","d":true,"e":true,"f":true,"h":true,"k":[0,47],"o":2},"shopping_bags":{"a":"Shopping Bags","b":"1F6CD-FE0F","c":"1F6CD","d":true,"e":true,"f":true,"h":true,"k":[36,35],"o":2},"right-facing_fist":{"skin_variations":{"1F3FB":{"unified":"1F91C-1F3FB","non_qualified":null,"image":"1f91c-1f3fb.png","sheet_x":37,"sheet_y":56,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F91C-1F3FC","non_qualified":null,"image":"1f91c-1f3fc.png","sheet_x":38,"sheet_y":0,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F91C-1F3FD","non_qualified":null,"image":"1f91c-1f3fd.png","sheet_x":38,"sheet_y":1,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F91C-1F3FE","non_qualified":null,"image":"1f91c-1f3fe.png","sheet_x":38,"sheet_y":2,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F91C-1F3FF","non_qualified":null,"image":"1f91c-1f3ff.png","sheet_x":38,"sheet_y":3,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Right-Facing Fist","b":"1F91C","d":true,"e":true,"f":true,"h":true,"k":[37,55],"o":4},"house_with_garden":{"a":"House with Garden","b":"1F3E1","d":true,"e":true,"f":true,"h":true,"j":["home","plant","nature"],"k":[10,52],"o":2},"clap":{"skin_variations":{"1F3FB":{"unified":"1F44F-1F3FB","non_qualified":null,"image":"1f44f-1f3fb.png","sheet_x":13,"sheet_y":51,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F44F-1F3FC","non_qualified":null,"image":"1f44f-1f3fc.png","sheet_x":13,"sheet_y":52,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F44F-1F3FD","non_qualified":null,"image":"1f44f-1f3fd.png","sheet_x":13,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F44F-1F3FE","non_qualified":null,"image":"1f44f-1f3fe.png","sheet_x":13,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F44F-1F3FF","non_qualified":null,"image":"1f44f-1f3ff.png","sheet_x":13,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Clapping Hands Sign","b":"1F44F","d":true,"e":true,"f":true,"h":true,"j":["hands","praise","applause","congrats","yay"],"k":[13,50],"o":2},"leafy_green":{"a":"Leafy Green","b":"1F96C","d":true,"e":true,"f":true,"h":true,"k":[42,2],"o":11},"office":{"a":"Office Building","b":"1F3E2","d":true,"e":true,"f":true,"h":true,"j":["building","bureau","work"],"k":[10,53],"o":2},"flag-ba":{"a":"Bosnia & Herzegovina Flag","b":"1F1E7-1F1E6","d":true,"e":true,"f":true,"h":true,"k":[0,48],"o":2},"zany_face":{"a":"Grinning Face with One Large and One Small Eye","b":"1F92A","d":true,"e":true,"f":true,"h":true,"k":[38,44],"n":["grinning_face_with_one_large_and_one_small_eye"],"o":5},"first_place_medal":{"a":"First Place Medal","b":"1F947","d":true,"e":true,"f":true,"h":true,"k":[41,22],"o":4},"ox":{"a":"Ox","b":"1F402","d":true,"e":true,"f":true,"h":true,"j":["animal","cow","beef"],"k":[11,30],"o":2},"school_satchel":{"a":"School Satchel","b":"1F392","d":true,"e":true,"f":true,"h":true,"j":["student","education","bag","backpack"],"k":[7,54],"o":2},"radioactive_sign":{"a":"Radioactive Sign","b":"2622-FE0F","c":"2622","d":true,"e":true,"f":true,"h":true,"k":[53,9],"o":2},"second_place_medal":{"a":"Second Place Medal","b":"1F948","d":true,"e":true,"f":true,"h":true,"k":[41,23],"o":4},"stuck_out_tongue_closed_eyes":{"a":"Face with Stuck-out Tongue and Tightly-Closed Eyes","b":"1F61D","d":true,"e":true,"f":true,"h":true,"j":["face","prank","playful","mischievous","smile","tongue"],"k":[31,7],"o":2},"broccoli":{"a":"Broccoli","b":"1F966","d":true,"e":true,"f":true,"h":true,"k":[41,53],"o":5},"biohazard_sign":{"a":"Biohazard Sign","b":"2623-FE0F","c":"2623","d":true,"e":true,"f":true,"h":true,"k":[53,10],"o":2},"mans_shoe":{"a":"Mans Shoe","b":"1F45E","d":true,"e":true,"f":true,"h":true,"j":["fashion","male"],"k":[14,18],"n":["shoe"],"o":2},"raised_hands":{"skin_variations":{"1F3FB":{"unified":"1F64C-1F3FB","non_qualified":null,"image":"1f64c-1f3fb.png","sheet_x":33,"sheet_y":9,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64C-1F3FC","non_qualified":null,"image":"1f64c-1f3fc.png","sheet_x":33,"sheet_y":10,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64C-1F3FD","non_qualified":null,"image":"1f64c-1f3fd.png","sheet_x":33,"sheet_y":11,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64C-1F3FE","non_qualified":null,"image":"1f64c-1f3fe.png","sheet_x":33,"sheet_y":12,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64C-1F3FF","non_qualified":null,"image":"1f64c-1f3ff.png","sheet_x":33,"sheet_y":13,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Person Raising Both Hands in Celebration","b":"1F64C","d":true,"e":true,"f":true,"h":true,"j":["gesture","hooray","yea","celebration","hands"],"k":[33,8],"o":2},"post_office":{"a":"Japanese Post Office","b":"1F3E3","d":true,"e":true,"f":true,"h":true,"j":["building","envelope","communication"],"k":[10,54],"o":2},"flag-bb":{"a":"Barbados Flag","b":"1F1E7-1F1E7","d":true,"e":true,"f":true,"h":true,"k":[0,49],"o":2},"water_buffalo":{"a":"Water Buffalo","b":"1F403","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","ox","cow"],"k":[11,31],"o":2},"third_place_medal":{"a":"Third Place Medal","b":"1F949","d":true,"e":true,"f":true,"h":true,"k":[41,24],"o":4},"european_post_office":{"a":"European Post Office","b":"1F3E4","d":true,"e":true,"f":true,"h":true,"j":["building","email"],"k":[10,55],"o":2},"athletic_shoe":{"a":"Athletic Shoe","b":"1F45F","d":true,"e":true,"f":true,"h":true,"j":["shoes","sports","sneakers"],"k":[14,19],"o":2},"arrow_up":{"a":"Upwards Black Arrow","b":"2B06-FE0F","c":"2B06","d":true,"e":true,"f":true,"h":true,"j":["blue-square","continue","top","direction"],"k":[55,38],"o":2},"cow2":{"a":"Cow","b":"1F404","d":true,"e":true,"f":true,"h":true,"j":["beef","ox","animal","nature","moo","milk"],"k":[11,32],"o":2},"open_hands":{"skin_variations":{"1F3FB":{"unified":"1F450-1F3FB","non_qualified":null,"image":"1f450-1f3fb.png","sheet_x":14,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F450-1F3FC","non_qualified":null,"image":"1f450-1f3fc.png","sheet_x":14,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F450-1F3FD","non_qualified":null,"image":"1f450-1f3fd.png","sheet_x":14,"sheet_y":2,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F450-1F3FE","non_qualified":null,"image":"1f450-1f3fe.png","sheet_x":14,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F450-1F3FF","non_qualified":null,"image":"1f450-1f3ff.png","sheet_x":14,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Open Hands Sign","b":"1F450","d":true,"e":true,"f":true,"h":true,"j":["fingers","butterfly","hands","open"],"k":[13,56],"o":2},"garlic":{"a":"Garlic","b":"1F9C4","d":true,"e":true,"f":true,"h":true,"k":[44,12],"o":12},"money_mouth_face":{"a":"Money-Mouth Face","b":"1F911","d":true,"e":true,"f":true,"h":true,"j":["face","rich","dollar","money"],"k":[37,24],"o":2},"flag-bd":{"a":"Bangladesh Flag","b":"1F1E7-1F1E9","d":true,"e":true,"f":true,"h":true,"k":[0,50],"o":2},"soccer":{"a":"Soccer Ball","b":"26BD","d":true,"e":true,"f":true,"h":true,"j":["sports","football"],"k":[53,56],"o":2},"hugging_face":{"a":"Hugging Face","b":"1F917","d":true,"e":true,"f":true,"h":true,"k":[37,30],"o":2},"onion":{"a":"Onion","b":"1F9C5","d":true,"e":true,"f":true,"h":true,"k":[44,13],"o":12},"arrow_upper_right":{"a":"North East Arrow","b":"2197-FE0F","c":"2197","d":true,"e":true,"f":true,"h":true,"j":["blue-square","point","direction","diagonal","northeast"],"k":[52,17],"o":2},"palms_up_together":{"skin_variations":{"1F3FB":{"unified":"1F932-1F3FB","non_qualified":null,"image":"1f932-1f3fb.png","sheet_x":39,"sheet_y":6,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F932-1F3FC","non_qualified":null,"image":"1f932-1f3fc.png","sheet_x":39,"sheet_y":7,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F932-1F3FD","non_qualified":null,"image":"1f932-1f3fd.png","sheet_x":39,"sheet_y":8,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F932-1F3FE","non_qualified":null,"image":"1f932-1f3fe.png","sheet_x":39,"sheet_y":9,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F932-1F3FF","non_qualified":null,"image":"1f932-1f3ff.png","sheet_x":39,"sheet_y":10,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Palms Up Together","b":"1F932","d":true,"e":true,"f":true,"h":true,"k":[39,5],"o":5},"pig":{"a":"Pig Face","b":"1F437","d":true,"e":true,"f":true,"h":true,"j":["animal","oink","nature"],"k":[12,27],"o":2},"hospital":{"a":"Hospital","b":"1F3E5","d":true,"e":true,"f":true,"h":true,"j":["building","health","surgery","doctor"],"k":[10,56],"o":2},"hiking_boot":{"a":"Hiking Boot","b":"1F97E","d":true,"e":true,"f":true,"h":true,"k":[42,16],"o":11},"flag-be":{"a":"Belgium Flag","b":"1F1E7-1F1EA","d":true,"e":true,"f":true,"h":true,"k":[0,51],"o":2},"flag-bf":{"a":"Burkina Faso Flag","b":"1F1E7-1F1EB","d":true,"e":true,"f":true,"h":true,"k":[0,52],"o":2},"mushroom":{"a":"Mushroom","b":"1F344","d":true,"e":true,"f":true,"h":true,"j":["plant","vegetable"],"k":[6,28],"o":2},"pig2":{"a":"Pig","b":"1F416","d":true,"e":true,"f":true,"h":true,"j":["animal","nature"],"k":[11,51],"o":2},"baseball":{"a":"Baseball","b":"26BE","d":true,"e":true,"f":true,"h":true,"j":["sports","balls"],"k":[54,0],"o":2},"face_with_hand_over_mouth":{"a":"Smiling Face with Smiling Eyes and Hand Covering Mouth","b":"1F92D","d":true,"e":true,"f":true,"h":true,"k":[38,47],"n":["smiling_face_with_smiling_eyes_and_hand_covering_mouth"],"o":5},"handshake":{"a":"Handshake","b":"1F91D","d":true,"e":true,"f":true,"h":true,"j":["agreement","shake"],"k":[38,4],"o":4},"womans_flat_shoe":{"a":"Flat Shoe","b":"1F97F","d":true,"e":true,"f":true,"h":true,"k":[42,17],"o":11},"bank":{"a":"Bank","b":"1F3E6","d":true,"e":true,"f":true,"h":true,"j":["building","money","sales","cash","business","enterprise"],"k":[11,0],"o":2},"arrow_right":{"a":"Black Rightwards Arrow","b":"27A1-FE0F","c":"27A1","d":true,"e":true,"f":true,"h":true,"j":["blue-square","next"],"k":[55,32],"o":2},"peanuts":{"a":"Peanuts","b":"1F95C","d":true,"e":true,"f":true,"h":true,"j":["food","nut"],"k":[41,43],"o":4},"shushing_face":{"a":"Face with Finger Covering Closed Lips","b":"1F92B","d":true,"e":true,"f":true,"h":true,"k":[38,45],"n":["face_with_finger_covering_closed_lips"],"o":5},"pray":{"skin_variations":{"1F3FB":{"unified":"1F64F-1F3FB","non_qualified":null,"image":"1f64f-1f3fb.png","sheet_x":33,"sheet_y":51,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64F-1F3FC","non_qualified":null,"image":"1f64f-1f3fc.png","sheet_x":33,"sheet_y":52,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64F-1F3FD","non_qualified":null,"image":"1f64f-1f3fd.png","sheet_x":33,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64F-1F3FE","non_qualified":null,"image":"1f64f-1f3fe.png","sheet_x":33,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64F-1F3FF","non_qualified":null,"image":"1f64f-1f3ff.png","sheet_x":33,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Person with Folded Hands","b":"1F64F","d":true,"e":true,"f":true,"h":true,"j":["please","hope","wish","namaste","highfive"],"k":[33,50],"o":2},"softball":{"a":"Softball","b":"1F94E","d":true,"e":true,"f":true,"h":true,"k":[41,29],"o":11},"high_heel":{"a":"High-Heeled Shoe","b":"1F460","d":true,"e":true,"f":true,"h":true,"j":["fashion","shoes","female","pumps","stiletto"],"k":[14,20],"o":2},"flag-bg":{"a":"Bulgaria Flag","b":"1F1E7-1F1EC","d":true,"e":true,"f":true,"h":true,"k":[0,53],"o":2},"arrow_lower_right":{"a":"South East Arrow","b":"2198-FE0F","c":"2198","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","diagonal","southeast"],"k":[52,18],"o":2},"hotel":{"a":"Hotel","b":"1F3E8","d":true,"e":true,"f":true,"h":true,"j":["building","accomodation","checkin"],"k":[11,2],"o":2},"boar":{"a":"Boar","b":"1F417","d":true,"e":true,"f":true,"h":true,"j":["animal","nature"],"k":[11,52],"o":2},"sandal":{"a":"Womans Sandal","b":"1F461","d":true,"e":true,"f":true,"h":true,"j":["shoes","fashion","flip flops"],"k":[14,21],"o":2},"flag-bh":{"a":"Bahrain Flag","b":"1F1E7-1F1ED","d":true,"e":true,"f":true,"h":true,"k":[0,54],"o":2},"arrow_down":{"a":"Downwards Black Arrow","b":"2B07-FE0F","c":"2B07","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","bottom"],"k":[55,39],"o":2},"thinking_face":{"a":"Thinking Face","b":"1F914","d":true,"e":true,"f":true,"h":true,"k":[37,27],"o":2},"writing_hand":{"skin_variations":{"1F3FB":{"unified":"270D-1F3FB","non_qualified":null,"image":"270d-1f3fb.png","sheet_x":55,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"270D-1F3FC","non_qualified":null,"image":"270d-1f3fc.png","sheet_x":55,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"270D-1F3FD","non_qualified":null,"image":"270d-1f3fd.png","sheet_x":55,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"270D-1F3FE","non_qualified":null,"image":"270d-1f3fe.png","sheet_x":55,"sheet_y":8,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"270D-1F3FF","non_qualified":null,"image":"270d-1f3ff.png","sheet_x":55,"sheet_y":9,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Writing Hand","b":"270D-FE0F","c":"270D","d":true,"e":true,"f":true,"h":true,"j":["lower_left_ballpoint_pen","stationery","write","compose"],"k":[55,4],"o":2},"chestnut":{"a":"Chestnut","b":"1F330","d":true,"e":true,"f":true,"h":true,"j":["food","squirrel"],"k":[6,8],"o":2},"basketball":{"a":"Basketball and Hoop","b":"1F3C0","d":true,"e":true,"f":true,"h":true,"j":["sports","balls","NBA"],"k":[8,38],"o":2},"pig_nose":{"a":"Pig Nose","b":"1F43D","d":true,"e":true,"f":true,"h":true,"j":["animal","oink"],"k":[12,33],"o":2},"love_hotel":{"a":"Love Hotel","b":"1F3E9","d":true,"e":true,"f":true,"h":true,"j":["like","affection","dating"],"k":[11,3],"o":2},"nail_care":{"skin_variations":{"1F3FB":{"unified":"1F485-1F3FB","non_qualified":null,"image":"1f485-1f3fb.png","sheet_x":24,"sheet_y":34,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F485-1F3FC","non_qualified":null,"image":"1f485-1f3fc.png","sheet_x":24,"sheet_y":35,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F485-1F3FD","non_qualified":null,"image":"1f485-1f3fd.png","sheet_x":24,"sheet_y":36,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F485-1F3FE","non_qualified":null,"image":"1f485-1f3fe.png","sheet_x":24,"sheet_y":37,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F485-1F3FF","non_qualified":null,"image":"1f485-1f3ff.png","sheet_x":24,"sheet_y":38,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Nail Polish","b":"1F485","d":true,"e":true,"f":true,"h":true,"j":["beauty","manicure","finger","fashion","nail"],"k":[24,33],"o":2},"volleyball":{"a":"Volleyball","b":"1F3D0","d":true,"e":true,"f":true,"h":true,"j":["sports","balls"],"k":[10,35],"o":2},"flag-bi":{"a":"Burundi Flag","b":"1F1E7-1F1EE","d":true,"e":true,"f":true,"h":true,"k":[0,55],"o":2},"arrow_lower_left":{"a":"South West Arrow","b":"2199-FE0F","c":"2199","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","diagonal","southwest"],"k":[52,19],"o":2},"ram":{"a":"Ram","b":"1F40F","d":true,"e":true,"f":true,"h":true,"j":["animal","sheep","nature"],"k":[11,43],"o":2},"ballet_shoes":{"a":"Ballet Shoes","b":"1FA70","d":true,"e":true,"f":true,"h":true,"k":[51,51],"o":12},"zipper_mouth_face":{"a":"Zipper-Mouth Face","b":"1F910","d":true,"e":true,"f":true,"h":true,"j":["face","sealed","zipper","secret"],"k":[37,23],"o":2},"bread":{"a":"Bread","b":"1F35E","d":true,"e":true,"f":true,"h":true,"j":["food","wheat","breakfast","toast"],"k":[6,54],"o":2},"convenience_store":{"a":"Convenience Store","b":"1F3EA","d":true,"e":true,"f":true,"h":true,"j":["building","shopping","groceries"],"k":[11,4],"o":2},"boot":{"a":"Womans Boots","b":"1F462","d":true,"e":true,"f":true,"h":true,"j":["shoes","fashion"],"k":[14,22],"o":2},"sheep":{"a":"Sheep","b":"1F411","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","wool","shipit"],"k":[11,45],"o":2},"face_with_raised_eyebrow":{"a":"Face with One Eyebrow Raised","b":"1F928","d":true,"e":true,"f":true,"h":true,"k":[38,42],"n":["face_with_one_eyebrow_raised"],"o":5},"flag-bj":{"a":"Benin Flag","b":"1F1E7-1F1EF","d":true,"e":true,"f":true,"h":true,"k":[0,56],"o":2},"arrow_left":{"a":"Leftwards Black Arrow","b":"2B05-FE0F","c":"2B05","d":true,"e":true,"f":true,"h":true,"j":["blue-square","previous","back"],"k":[55,37],"o":2},"selfie":{"skin_variations":{"1F3FB":{"unified":"1F933-1F3FB","non_qualified":null,"image":"1f933-1f3fb.png","sheet_x":39,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F933-1F3FC","non_qualified":null,"image":"1f933-1f3fc.png","sheet_x":39,"sheet_y":13,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F933-1F3FD","non_qualified":null,"image":"1f933-1f3fd.png","sheet_x":39,"sheet_y":14,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F933-1F3FE","non_qualified":null,"image":"1f933-1f3fe.png","sheet_x":39,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F933-1F3FF","non_qualified":null,"image":"1f933-1f3ff.png","sheet_x":39,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Selfie","b":"1F933","d":true,"e":true,"f":true,"h":true,"j":["camera","phone"],"k":[39,11],"o":4},"croissant":{"a":"Croissant","b":"1F950","d":true,"e":true,"f":true,"h":true,"j":["food","bread","french"],"k":[41,31],"o":4},"school":{"a":"School","b":"1F3EB","d":true,"e":true,"f":true,"h":true,"j":["building","student","education","learn","teach"],"k":[11,5],"o":2},"football":{"a":"American Football","b":"1F3C8","d":true,"e":true,"f":true,"h":true,"j":["sports","balls","NFL"],"k":[9,33],"o":2},"goat":{"a":"Goat","b":"1F410","d":true,"e":true,"f":true,"h":true,"j":["animal","nature"],"k":[11,44],"o":2},"department_store":{"a":"Department Store","b":"1F3EC","d":true,"e":true,"f":true,"h":true,"j":["building","shopping","mall"],"k":[11,6],"o":2},"flag-bl":{"a":"St. Barth\xe9lemy Flag","b":"1F1E7-1F1F1","d":true,"e":true,"f":true,"h":true,"k":[1,0],"o":2},"crown":{"a":"Crown","b":"1F451","d":true,"e":true,"f":true,"h":true,"j":["king","kod","leader","royalty","lord"],"k":[14,5],"o":2},"arrow_upper_left":{"a":"North West Arrow","b":"2196-FE0F","c":"2196","d":true,"e":true,"f":true,"h":true,"j":["blue-square","point","direction","diagonal","northwest"],"k":[52,16],"o":2},"neutral_face":{"a":"Neutral Face","b":"1F610","d":true,"e":true,"f":true,"h":true,"j":["indifference","meh",":|","neutral"],"k":[30,51],"l":[":|",":-|"],"o":2},"rugby_football":{"a":"Rugby Football","b":"1F3C9","d":true,"e":true,"f":true,"h":true,"j":["sports","team"],"k":[9,34],"o":2},"muscle":{"skin_variations":{"1F3FB":{"unified":"1F4AA-1F3FB","non_qualified":null,"image":"1f4aa-1f3fb.png","sheet_x":25,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F4AA-1F3FC","non_qualified":null,"image":"1f4aa-1f3fc.png","sheet_x":25,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F4AA-1F3FD","non_qualified":null,"image":"1f4aa-1f3fd.png","sheet_x":25,"sheet_y":55,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F4AA-1F3FE","non_qualified":null,"image":"1f4aa-1f3fe.png","sheet_x":25,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F4AA-1F3FF","non_qualified":null,"image":"1f4aa-1f3ff.png","sheet_x":26,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Flexed Biceps","b":"1F4AA","d":true,"e":true,"f":true,"h":true,"j":["arm","flex","hand","summer","strong","biceps"],"k":[25,52],"o":2},"baguette_bread":{"a":"Baguette Bread","b":"1F956","d":true,"e":true,"f":true,"h":true,"j":["food","bread","french"],"k":[41,37],"o":4},"expressionless":{"a":"Expressionless Face","b":"1F611","d":true,"e":true,"f":true,"h":true,"j":["face","indifferent","-_-","meh","deadpan"],"k":[30,52],"o":2},"womans_hat":{"a":"Womans Hat","b":"1F452","d":true,"e":true,"f":true,"h":true,"j":["fashion","accessories","female","lady","spring"],"k":[14,6],"o":2},"pretzel":{"a":"Pretzel","b":"1F968","d":true,"e":true,"f":true,"h":true,"k":[41,55],"o":5},"mechanical_arm":{"a":"Mechanical Arm","b":"1F9BE","d":true,"e":true,"f":true,"h":true,"k":[44,6],"o":12},"arrow_up_down":{"a":"Up Down Arrow","b":"2195-FE0F","c":"2195","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","way","vertical"],"k":[52,15],"o":2},"dromedary_camel":{"a":"Dromedary Camel","b":"1F42A","d":true,"e":true,"f":true,"h":true,"j":["animal","hot","desert","hump"],"k":[12,14],"o":2},"tennis":{"a":"Tennis Racquet and Ball","b":"1F3BE","d":true,"e":true,"f":true,"h":true,"j":["sports","balls","green"],"k":[8,36],"o":2},"flag-bm":{"a":"Bermuda Flag","b":"1F1E7-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[1,1],"o":2},"factory":{"a":"Factory","b":"1F3ED","d":true,"e":true,"f":true,"h":true,"j":["building","industry","pollution","smoke"],"k":[11,7],"o":2},"japanese_castle":{"a":"Japanese Castle","b":"1F3EF","d":true,"e":true,"f":true,"h":true,"j":["photo","building"],"k":[11,9],"o":2},"no_mouth":{"a":"Face Without Mouth","b":"1F636","d":true,"e":true,"f":true,"h":true,"j":["face","hellokitty"],"k":[31,32],"o":2},"mechanical_leg":{"a":"Mechanical Leg","b":"1F9BF","d":true,"e":true,"f":true,"h":true,"k":[44,7],"o":12},"bagel":{"a":"Bagel","b":"1F96F","d":true,"e":true,"f":true,"h":true,"k":[42,5],"o":11},"camel":{"a":"Bactrian Camel","b":"1F42B","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","hot","desert","hump"],"k":[12,15],"o":2},"tophat":{"a":"Top Hat","b":"1F3A9","d":true,"e":true,"f":true,"h":true,"j":["magic","gentleman","classy","circus"],"k":[8,15],"o":2},"left_right_arrow":{"a":"Left Right Arrow","b":"2194-FE0F","c":"2194","d":true,"e":true,"f":true,"h":true,"j":["shape","direction","horizontal","sideways"],"k":[52,14],"o":2},"flag-bn":{"a":"Brunei Flag","b":"1F1E7-1F1F3","d":true,"e":true,"f":true,"h":true,"k":[1,2],"o":2},"flying_disc":{"a":"Flying Disc","b":"1F94F","d":true,"e":true,"f":true,"h":true,"k":[41,30],"o":11},"smirk":{"a":"Smirking Face","b":"1F60F","d":true,"e":true,"f":true,"h":true,"j":["face","smile","mean","prank","smug","sarcasm"],"k":[30,50],"o":2},"mortar_board":{"a":"Graduation Cap","b":"1F393","d":true,"e":true,"f":true,"h":true,"j":["school","college","degree","university","graduation","cap","hat","legal","learn","education"],"k":[7,55],"o":2},"european_castle":{"a":"European Castle","b":"1F3F0","d":true,"e":true,"f":true,"h":true,"j":["building","royalty","history"],"k":[11,10],"o":2},"leg":{"skin_variations":{"1F3FB":{"unified":"1F9B5-1F3FB","non_qualified":null,"image":"1f9b5-1f3fb.png","sheet_x":43,"sheet_y":6,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9B5-1F3FC","non_qualified":null,"image":"1f9b5-1f3fc.png","sheet_x":43,"sheet_y":7,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9B5-1F3FD","non_qualified":null,"image":"1f9b5-1f3fd.png","sheet_x":43,"sheet_y":8,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9B5-1F3FE","non_qualified":null,"image":"1f9b5-1f3fe.png","sheet_x":43,"sheet_y":9,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9B5-1F3FF","non_qualified":null,"image":"1f9b5-1f3ff.png","sheet_x":43,"sheet_y":10,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Leg","b":"1F9B5","d":true,"e":true,"f":true,"h":true,"k":[43,5],"o":11},"pancakes":{"a":"Pancakes","b":"1F95E","d":true,"e":true,"f":true,"h":true,"j":["food","breakfast","flapjacks","hotcakes"],"k":[41,45],"o":4},"leftwards_arrow_with_hook":{"a":"Leftwards Arrow with Hook","b":"21A9-FE0F","c":"21A9","d":true,"e":true,"f":true,"h":true,"j":["back","return","blue-square","undo","enter"],"k":[52,20],"o":2},"flag-bo":{"a":"Bolivia Flag","b":"1F1E7-1F1F4","d":true,"e":true,"f":true,"h":true,"k":[1,3],"o":2},"bowling":{"a":"Bowling","b":"1F3B3","d":true,"e":true,"f":true,"h":true,"j":["sports","fun","play"],"k":[8,25],"o":2},"llama":{"a":"Llama","b":"1F999","d":true,"e":true,"f":true,"h":true,"k":[42,43],"o":11},"arrow_right_hook":{"a":"Rightwards Arrow with Hook","b":"21AA-FE0F","c":"21AA","d":true,"e":true,"f":true,"h":true,"j":["blue-square","return","rotate","direction"],"k":[52,21],"o":2},"wedding":{"a":"Wedding","b":"1F492","d":true,"e":true,"f":true,"h":true,"j":["love","like","affection","couple","marriage","bride","groom"],"k":[25,28],"o":2},"flag-bq":{"a":"Caribbean Netherlands Flag","b":"1F1E7-1F1F6","d":true,"e":true,"f":true,"h":true,"k":[1,4],"o":2},"foot":{"skin_variations":{"1F3FB":{"unified":"1F9B6-1F3FB","non_qualified":null,"image":"1f9b6-1f3fb.png","sheet_x":43,"sheet_y":12,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9B6-1F3FC","non_qualified":null,"image":"1f9b6-1f3fc.png","sheet_x":43,"sheet_y":13,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9B6-1F3FD","non_qualified":null,"image":"1f9b6-1f3fd.png","sheet_x":43,"sheet_y":14,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9B6-1F3FE","non_qualified":null,"image":"1f9b6-1f3fe.png","sheet_x":43,"sheet_y":15,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9B6-1F3FF","non_qualified":null,"image":"1f9b6-1f3ff.png","sheet_x":43,"sheet_y":16,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Foot","b":"1F9B6","d":true,"e":true,"f":true,"h":true,"k":[43,11],"o":11},"giraffe_face":{"a":"Giraffe Face","b":"1F992","d":true,"e":true,"f":true,"h":true,"k":[42,36],"o":5},"unamused":{"a":"Unamused Face","b":"1F612","d":true,"e":true,"f":true,"h":true,"j":["indifference","bored","straight face","serious","sarcasm"],"k":[30,53],"m":":(","o":2},"billed_cap":{"a":"Billed Cap","b":"1F9E2","d":true,"e":true,"f":true,"h":true,"k":[51,21],"o":5},"waffle":{"a":"Waffle","b":"1F9C7","d":true,"e":true,"f":true,"h":true,"k":[44,15],"o":12},"cricket_bat_and_ball":{"a":"Cricket Bat and Ball","b":"1F3CF","d":true,"e":true,"f":true,"h":true,"k":[10,34],"o":2},"helmet_with_white_cross":{"a":"Helmet with White Cross","b":"26D1-FE0F","c":"26D1","d":true,"e":true,"f":true,"h":true,"k":[54,6],"o":2},"ear":{"skin_variations":{"1F3FB":{"unified":"1F442-1F3FB","non_qualified":null,"image":"1f442-1f3fb.png","sheet_x":12,"sheet_y":40,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F442-1F3FC","non_qualified":null,"image":"1f442-1f3fc.png","sheet_x":12,"sheet_y":41,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F442-1F3FD","non_qualified":null,"image":"1f442-1f3fd.png","sheet_x":12,"sheet_y":42,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F442-1F3FE","non_qualified":null,"image":"1f442-1f3fe.png","sheet_x":12,"sheet_y":43,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F442-1F3FF","non_qualified":null,"image":"1f442-1f3ff.png","sheet_x":12,"sheet_y":44,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Ear","b":"1F442","d":true,"e":true,"f":true,"h":true,"j":["face","hear","sound","listen"],"k":[12,39],"o":2},"elephant":{"a":"Elephant","b":"1F418","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","nose","th","circus"],"k":[11,53],"o":2},"cheese_wedge":{"a":"Cheese Wedge","b":"1F9C0","d":true,"e":true,"f":true,"h":true,"k":[44,8],"o":2},"tokyo_tower":{"a":"Tokyo Tower","b":"1F5FC","d":true,"e":true,"f":true,"h":true,"j":["photo","japanese"],"k":[30,31],"o":2},"arrow_heading_up":{"a":"Arrow Pointing Rightwards Then Curving Upwards","b":"2934-FE0F","c":"2934","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","top"],"k":[55,35],"o":2},"field_hockey_stick_and_ball":{"a":"Field Hockey Stick and Ball","b":"1F3D1","d":true,"e":true,"f":true,"h":true,"k":[10,36],"o":2},"flag-br":{"a":"Brazil Flag","b":"1F1E7-1F1F7","d":true,"e":true,"f":true,"h":true,"k":[1,5],"o":2},"face_with_rolling_eyes":{"a":"Face with Rolling Eyes","b":"1F644","d":true,"e":true,"f":true,"h":true,"k":[31,46],"o":2},"ear_with_hearing_aid":{"skin_variations":{"1F3FB":{"unified":"1F9BB-1F3FB","non_qualified":null,"image":"1f9bb-1f3fb.png","sheet_x":43,"sheet_y":56,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9BB-1F3FC","non_qualified":null,"image":"1f9bb-1f3fc.png","sheet_x":44,"sheet_y":0,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9BB-1F3FD","non_qualified":null,"image":"1f9bb-1f3fd.png","sheet_x":44,"sheet_y":1,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9BB-1F3FE","non_qualified":null,"image":"1f9bb-1f3fe.png","sheet_x":44,"sheet_y":2,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9BB-1F3FF","non_qualified":null,"image":"1f9bb-1f3ff.png","sheet_x":44,"sheet_y":3,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Ear with Hearing Aid","b":"1F9BB","d":true,"e":true,"f":true,"h":true,"k":[43,55],"o":12},"arrow_heading_down":{"a":"Arrow Pointing Rightwards Then Curving Downwards","b":"2935-FE0F","c":"2935","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","bottom"],"k":[55,36],"o":2},"ice_hockey_stick_and_puck":{"a":"Ice Hockey Stick and Puck","b":"1F3D2","d":true,"e":true,"f":true,"h":true,"k":[10,37],"o":2},"meat_on_bone":{"a":"Meat on Bone","b":"1F356","d":true,"e":true,"f":true,"h":true,"j":["good","food","drumstick"],"k":[6,46],"o":2},"prayer_beads":{"a":"Prayer Beads","b":"1F4FF","d":true,"e":true,"f":true,"h":true,"j":["dhikr","religious"],"k":[27,27],"o":2},"statue_of_liberty":{"a":"Statue of Liberty","b":"1F5FD","d":true,"e":true,"f":true,"h":true,"j":["american","newyork"],"k":[30,32],"o":2},"grimacing":{"a":"Grimacing Face","b":"1F62C","d":true,"e":true,"f":true,"h":true,"j":["face","grimace","teeth"],"k":[31,22],"o":2},"flag-bs":{"a":"Bahamas Flag","b":"1F1E7-1F1F8","d":true,"e":true,"f":true,"h":true,"k":[1,6],"o":2},"rhinoceros":{"a":"Rhinoceros","b":"1F98F","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","horn"],"k":[42,33],"o":4},"lacrosse":{"a":"Lacrosse Stick and Ball","b":"1F94D","d":true,"e":true,"f":true,"h":true,"k":[41,28],"o":11},"poultry_leg":{"a":"Poultry Leg","b":"1F357","d":true,"e":true,"f":true,"h":true,"j":["food","meat","drumstick","bird","chicken","turkey"],"k":[6,47],"o":2},"hippopotamus":{"a":"Hippopotamus","b":"1F99B","d":true,"e":true,"f":true,"h":true,"k":[42,45],"o":11},"nose":{"skin_variations":{"1F3FB":{"unified":"1F443-1F3FB","non_qualified":null,"image":"1f443-1f3fb.png","sheet_x":12,"sheet_y":46,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F443-1F3FC","non_qualified":null,"image":"1f443-1f3fc.png","sheet_x":12,"sheet_y":47,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F443-1F3FD","non_qualified":null,"image":"1f443-1f3fd.png","sheet_x":12,"sheet_y":48,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F443-1F3FE","non_qualified":null,"image":"1f443-1f3fe.png","sheet_x":12,"sheet_y":49,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F443-1F3FF","non_qualified":null,"image":"1f443-1f3ff.png","sheet_x":12,"sheet_y":50,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Nose","b":"1F443","d":true,"e":true,"f":true,"h":true,"j":["smell","sniff"],"k":[12,45],"o":2},"arrows_clockwise":{"a":"Clockwise Downwards and Upwards Open Circle Arrows","b":"1F503","d":true,"e":true,"f":true,"h":true,"j":["sync","cycle","round","repeat"],"k":[27,31],"o":2},"flag-bt":{"a":"Bhutan Flag","b":"1F1E7-1F1F9","d":true,"e":true,"f":true,"h":true,"k":[1,7],"o":2},"church":{"a":"Church","b":"26EA","d":true,"e":true,"f":true,"h":true,"j":["building","religion","christ"],"k":[54,10],"o":2},"lipstick":{"a":"Lipstick","b":"1F484","d":true,"e":true,"f":true,"h":true,"j":["female","girl","fashion","woman"],"k":[24,32],"o":2},"lying_face":{"a":"Lying Face","b":"1F925","d":true,"e":true,"f":true,"h":true,"j":["face","lie","pinocchio"],"k":[38,22],"o":4},"arrows_counterclockwise":{"a":"Anticlockwise Downwards and Upwards Open Circle Arrows","b":"1F504","d":true,"e":true,"f":true,"h":true,"j":["blue-square","sync","cycle"],"k":[27,32],"o":2},"flag-bv":{"a":"Bouvet Island Flag","b":"1F1E7-1F1FB","d":true,"e":true,"f":true,"h":true,"k":[1,8],"o":2},"cut_of_meat":{"a":"Cut of Meat","b":"1F969","d":true,"e":true,"f":true,"h":true,"k":[41,56],"o":5},"mosque":{"a":"Mosque","b":"1F54C","d":true,"e":true,"f":true,"h":true,"j":["islam","worship","minaret"],"k":[28,36],"o":2},"ring":{"a":"Ring","b":"1F48D","d":true,"e":true,"f":true,"h":true,"j":["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],"k":[25,23],"o":2},"brain":{"a":"Brain","b":"1F9E0","d":true,"e":true,"f":true,"h":true,"k":[51,19],"o":5},"table_tennis_paddle_and_ball":{"a":"Table Tennis Paddle and Ball","b":"1F3D3","d":true,"e":true,"f":true,"h":true,"k":[10,38],"o":2},"relieved":{"a":"Relieved Face","b":"1F60C","d":true,"e":true,"f":true,"h":true,"j":["face","relaxed","phew","massage","happiness"],"k":[30,47],"o":2},"mouse":{"a":"Mouse Face","b":"1F42D","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","cheese_wedge","rodent"],"k":[12,17],"o":2},"hindu_temple":{"a":"Hindu Temple","b":"1F6D5","d":true,"e":true,"f":true,"h":true,"k":[36,41],"o":12},"back":{"a":"Back with Leftwards Arrow Above","b":"1F519","d":true,"e":true,"f":true,"h":true,"j":["arrow","words","return"],"k":[27,53],"o":2},"gem":{"a":"Gem Stone","b":"1F48E","d":true,"e":true,"f":true,"h":true,"j":["blue","ruby","diamond","jewelry"],"k":[25,24],"o":2},"pensive":{"a":"Pensive Face","b":"1F614","d":true,"e":true,"f":true,"h":true,"j":["face","sad","depressed","upset"],"k":[30,55],"o":2},"flag-bw":{"a":"Botswana Flag","b":"1F1E7-1F1FC","d":true,"e":true,"f":true,"h":true,"k":[1,9],"o":2},"mouse2":{"a":"Mouse","b":"1F401","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","rodent"],"k":[11,29],"o":2},"bacon":{"a":"Bacon","b":"1F953","d":true,"e":true,"f":true,"h":true,"j":["food","breakfast","pork","pig","meat"],"k":[41,34],"o":4},"tooth":{"a":"Tooth","b":"1F9B7","d":true,"e":true,"f":true,"h":true,"k":[43,17],"o":11},"badminton_racquet_and_shuttlecock":{"a":"Badminton Racquet and Shuttlecock","b":"1F3F8","d":true,"e":true,"f":true,"h":true,"k":[11,20],"o":2},"rat":{"a":"Rat","b":"1F400","d":true,"e":true,"f":true,"h":true,"j":["animal","mouse","rodent"],"k":[11,28],"o":2},"synagogue":{"a":"Synagogue","b":"1F54D","d":true,"e":true,"f":true,"h":true,"j":["judaism","worship","temple","jewish"],"k":[28,37],"o":2},"end":{"a":"End with Leftwards Arrow Above","b":"1F51A","d":true,"e":true,"f":true,"h":true,"j":["words","arrow"],"k":[27,54],"o":2},"bone":{"a":"Bone","b":"1F9B4","d":true,"e":true,"f":true,"h":true,"k":[43,4],"o":11},"boxing_glove":{"a":"Boxing Glove","b":"1F94A","d":true,"e":true,"f":true,"h":true,"j":["sports","fighting"],"k":[41,25],"o":4},"mute":{"a":"Speaker with Cancellation Stroke","b":"1F507","d":true,"e":true,"f":true,"h":true,"j":["sound","volume","silence","quiet"],"k":[27,35],"o":2},"hamburger":{"a":"Hamburger","b":"1F354","d":true,"e":true,"f":true,"h":true,"j":["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],"k":[6,44],"o":2},"flag-by":{"a":"Belarus Flag","b":"1F1E7-1F1FE","d":true,"e":true,"f":true,"h":true,"k":[1,10],"o":2},"sleepy":{"a":"Sleepy Face","b":"1F62A","d":true,"e":true,"f":true,"h":true,"j":["face","tired","rest","nap"],"k":[31,20],"o":2},"on":{"a":"On with Exclamation Mark with Left Right Arrow Above","b":"1F51B","d":true,"e":true,"f":true,"h":true,"j":["arrow","words"],"k":[27,55],"o":2},"martial_arts_uniform":{"a":"Martial Arts Uniform","b":"1F94B","d":true,"e":true,"f":true,"h":true,"j":["judo","karate","taekwondo"],"k":[41,26],"o":4},"speaker":{"a":"Speaker","b":"1F508","d":true,"e":true,"f":true,"h":true,"j":["sound","volume","silence","broadcast"],"k":[27,36],"o":2},"drooling_face":{"a":"Drooling Face","b":"1F924","d":true,"e":true,"f":true,"h":true,"j":["face"],"k":[38,21],"o":4},"eyes":{"a":"Eyes","b":"1F440","d":true,"e":true,"f":true,"h":true,"j":["look","watch","stalk","peek","see"],"k":[12,36],"o":2},"flag-bz":{"a":"Belize Flag","b":"1F1E7-1F1FF","d":true,"e":true,"f":true,"h":true,"k":[1,11],"o":2},"hamster":{"a":"Hamster Face","b":"1F439","d":true,"e":true,"f":true,"h":true,"j":["animal","nature"],"k":[12,29],"o":2},"shinto_shrine":{"a":"Shinto Shrine","b":"26E9-FE0F","c":"26E9","d":true,"e":true,"f":true,"h":true,"j":["temple","japan","kyoto"],"k":[54,9],"o":2},"fries":{"a":"French Fries","b":"1F35F","d":true,"e":true,"f":true,"h":true,"j":["chips","snack","fast food"],"k":[6,55],"o":2},"goal_net":{"a":"Goal Net","b":"1F945","d":true,"e":true,"f":true,"h":true,"j":["sports"],"k":[41,21],"o":4},"kaaba":{"a":"Kaaba","b":"1F54B","d":true,"e":true,"f":true,"h":true,"j":["mecca","mosque","islam"],"k":[28,35],"o":2},"soon":{"a":"Soon with Rightwards Arrow Above","b":"1F51C","d":true,"e":true,"f":true,"h":true,"j":["arrow","words"],"k":[27,56],"o":2},"flag-ca":{"a":"Canada Flag","b":"1F1E8-1F1E6","d":true,"e":true,"f":true,"h":true,"k":[1,12],"o":2},"rabbit":{"a":"Rabbit Face","b":"1F430","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","pet","spring","magic","bunny"],"k":[12,20],"o":2},"eye":{"a":"Eye","b":"1F441-FE0F","c":"1F441","d":true,"e":true,"f":true,"h":true,"j":["face","look","see","watch","stare"],"k":[12,38],"o":2},"sleeping":{"a":"Sleeping Face","b":"1F634","d":true,"e":true,"f":true,"h":true,"j":["face","tired","sleepy","night","zzz"],"k":[31,30],"o":2},"pizza":{"a":"Slice of Pizza","b":"1F355","d":true,"e":true,"f":true,"h":true,"j":["food","party"],"k":[6,45],"o":2},"sound":{"a":"Speaker with One Sound Wave","b":"1F509","d":true,"e":true,"f":true,"h":true,"j":["volume","speaker","broadcast"],"k":[27,37],"o":2},"rabbit2":{"a":"Rabbit","b":"1F407","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","pet","magic","spring"],"k":[11,35],"o":2},"fountain":{"a":"Fountain","b":"26F2","d":true,"e":true,"f":true,"h":true,"j":["photo","summer","water","fresh"],"k":[54,13],"o":2},"golf":{"a":"Flag in Hole","b":"26F3","d":true,"e":true,"f":true,"h":true,"j":["sports","business","flag","hole","summer"],"k":[54,14],"o":2},"top":{"a":"Top with Upwards Arrow Above","b":"1F51D","d":true,"e":true,"f":true,"h":true,"j":["words","blue-square"],"k":[28,0],"o":2},"mask":{"a":"Face with Medical Mask","b":"1F637","d":true,"e":true,"f":true,"h":true,"j":["face","sick","ill","disease"],"k":[31,33],"o":2},"flag-cc":{"a":"Cocos (keeling) Islands Flag","b":"1F1E8-1F1E8","d":true,"e":true,"f":true,"h":true,"k":[1,13],"o":2},"hotdog":{"a":"Hot Dog","b":"1F32D","d":true,"e":true,"f":true,"h":true,"j":["food","frankfurter"],"k":[6,5],"o":2},"loud_sound":{"a":"Speaker with Three Sound Waves","b":"1F50A","d":true,"e":true,"f":true,"h":true,"j":["volume","noise","noisy","speaker","broadcast"],"k":[27,38],"o":2},"tongue":{"a":"Tongue","b":"1F445","d":true,"e":true,"f":true,"h":true,"j":["mouth","playful"],"k":[12,52],"o":2},"place_of_worship":{"a":"Place of Worship","b":"1F6D0","d":true,"e":true,"f":true,"h":true,"j":["religion","church","temple","prayer"],"k":[36,38],"o":2},"ice_skate":{"a":"Ice Skate","b":"26F8-FE0F","c":"26F8","d":true,"e":true,"f":true,"h":true,"j":["sports"],"k":[54,18],"o":2},"sandwich":{"a":"Sandwich","b":"1F96A","d":true,"e":true,"f":true,"h":true,"k":[42,0],"o":5},"chipmunk":{"a":"Chipmunk","b":"1F43F-FE0F","c":"1F43F","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","rodent","squirrel"],"k":[12,35],"o":2},"loudspeaker":{"a":"Public Address Loudspeaker","b":"1F4E2","d":true,"e":true,"f":true,"h":true,"j":["volume","sound"],"k":[26,56],"o":2},"lips":{"a":"Mouth","b":"1F444","d":true,"e":true,"f":true,"h":true,"j":["mouth","kiss"],"k":[12,51],"o":2},"flag-cd":{"a":"Congo - Kinshasa Flag","b":"1F1E8-1F1E9","d":true,"e":true,"f":true,"h":true,"k":[1,14],"o":2},"tent":{"a":"Tent","b":"26FA","d":true,"e":true,"f":true,"h":true,"j":["photo","camping","outdoors"],"k":[54,37],"o":2},"face_with_thermometer":{"a":"Face with Thermometer","b":"1F912","d":true,"e":true,"f":true,"h":true,"j":["sick","temperature","thermometer","cold","fever"],"k":[37,25],"o":2},"taco":{"a":"Taco","b":"1F32E","d":true,"e":true,"f":true,"h":true,"j":["food","mexican"],"k":[6,6],"o":2},"foggy":{"a":"Foggy","b":"1F301","d":true,"e":true,"f":true,"h":true,"j":["photo","mountain"],"k":[5,20],"o":2},"flag-cf":{"a":"Central African Republic Flag","b":"1F1E8-1F1EB","d":true,"e":true,"f":true,"h":true,"k":[1,15],"o":2},"baby":{"skin_variations":{"1F3FB":{"unified":"1F476-1F3FB","non_qualified":null,"image":"1f476-1f3fb.png","sheet_x":23,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F476-1F3FC","non_qualified":null,"image":"1f476-1f3fc.png","sheet_x":23,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F476-1F3FD","non_qualified":null,"image":"1f476-1f3fd.png","sheet_x":23,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F476-1F3FE","non_qualified":null,"image":"1f476-1f3fe.png","sheet_x":23,"sheet_y":8,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F476-1F3FF","non_qualified":null,"image":"1f476-1f3ff.png","sheet_x":23,"sheet_y":9,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Baby","b":"1F476","d":true,"e":true,"f":true,"h":true,"j":["child","boy","girl","toddler"],"k":[23,4],"o":2},"atom_symbol":{"a":"Atom Symbol","b":"269B-FE0F","c":"269B","d":true,"e":true,"f":true,"h":true,"j":["science","physics","chemistry"],"k":[53,48],"o":2},"fishing_pole_and_fish":{"a":"Fishing Pole and Fish","b":"1F3A3","d":true,"e":true,"f":true,"h":true,"j":["food","hobby","summer"],"k":[8,9],"o":2},"hedgehog":{"a":"Hedgehog","b":"1F994","d":true,"e":true,"f":true,"h":true,"k":[42,38],"o":5},"face_with_head_bandage":{"a":"Face with Head-Bandage","b":"1F915","d":true,"e":true,"f":true,"h":true,"j":["injured","clumsy","bandage","hurt"],"k":[37,28],"o":2},"mega":{"a":"Cheering Megaphone","b":"1F4E3","d":true,"e":true,"f":true,"h":true,"j":["sound","speaker","volume"],"k":[27,0],"o":2},"nauseated_face":{"a":"Nauseated Face","b":"1F922","d":true,"e":true,"f":true,"h":true,"j":["face","vomit","gross","green","sick","throw up","ill"],"k":[38,19],"o":4},"child":{"skin_variations":{"1F3FB":{"unified":"1F9D2-1F3FB","non_qualified":null,"image":"1f9d2-1f3fb.png","sheet_x":48,"sheet_y":17,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9D2-1F3FC","non_qualified":null,"image":"1f9d2-1f3fc.png","sheet_x":48,"sheet_y":18,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9D2-1F3FD","non_qualified":null,"image":"1f9d2-1f3fd.png","sheet_x":48,"sheet_y":19,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9D2-1F3FE","non_qualified":null,"image":"1f9d2-1f3fe.png","sheet_x":48,"sheet_y":20,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9D2-1F3FF","non_qualified":null,"image":"1f9d2-1f3ff.png","sheet_x":48,"sheet_y":21,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Child","b":"1F9D2","d":true,"e":true,"f":true,"h":true,"k":[48,16],"o":5},"flag-cg":{"a":"Congo - Brazzaville Flag","b":"1F1E8-1F1EC","d":true,"e":true,"f":true,"h":true,"k":[1,16],"o":2},"bat":{"a":"Bat","b":"1F987","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","blind","vampire"],"k":[42,25],"o":4},"diving_mask":{"a":"Diving Mask","b":"1F93F","d":true,"e":true,"f":true,"h":true,"k":[41,15],"o":12},"burrito":{"a":"Burrito","b":"1F32F","d":true,"e":true,"f":true,"h":true,"j":["food","mexican"],"k":[6,7],"o":2},"postal_horn":{"a":"Postal Horn","b":"1F4EF","d":true,"e":true,"f":true,"h":true,"j":["instrument","music"],"k":[27,12],"o":2},"night_with_stars":{"a":"Night with Stars","b":"1F303","d":true,"e":true,"f":true,"h":true,"j":["evening","city","downtown"],"k":[5,22],"o":2},"om_symbol":{"a":"Om Symbol","b":"1F549-FE0F","c":"1F549","d":true,"e":true,"f":true,"h":true,"k":[28,33],"o":2},"star_of_david":{"a":"Star of David","b":"2721-FE0F","c":"2721","d":true,"e":true,"f":true,"h":true,"j":["judaism"],"k":[55,15],"o":2},"boy":{"skin_variations":{"1F3FB":{"unified":"1F466-1F3FB","non_qualified":null,"image":"1f466-1f3fb.png","sheet_x":14,"sheet_y":27,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F466-1F3FC","non_qualified":null,"image":"1f466-1f3fc.png","sheet_x":14,"sheet_y":28,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F466-1F3FD","non_qualified":null,"image":"1f466-1f3fd.png","sheet_x":14,"sheet_y":29,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F466-1F3FE","non_qualified":null,"image":"1f466-1f3fe.png","sheet_x":14,"sheet_y":30,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F466-1F3FF","non_qualified":null,"image":"1f466-1f3ff.png","sheet_x":14,"sheet_y":31,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Boy","b":"1F466","d":true,"e":true,"f":true,"h":true,"j":["man","male","guy","teenager"],"k":[14,26],"o":2},"bell":{"a":"Bell","b":"1F514","d":true,"e":true,"f":true,"h":true,"j":["sound","notification","christmas","xmas","chime"],"k":[27,48],"o":2},"flag-ch":{"a":"Switzerland Flag","b":"1F1E8-1F1ED","d":true,"e":true,"f":true,"h":true,"k":[1,17],"o":2},"running_shirt_with_sash":{"a":"Running Shirt with Sash","b":"1F3BD","d":true,"e":true,"f":true,"h":true,"j":["play","pageant"],"k":[8,35],"o":2},"stuffed_flatbread":{"a":"Stuffed Flatbread","b":"1F959","d":true,"e":true,"f":true,"h":true,"j":["food","flatbread","stuffed","gyro"],"k":[41,40],"o":4},"bear":{"a":"Bear Face","b":"1F43B","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","wild"],"k":[12,31],"o":2},"cityscape":{"a":"Cityscape","b":"1F3D9-FE0F","c":"1F3D9","d":true,"e":true,"f":true,"h":true,"j":["photo","night life","urban"],"k":[10,44],"o":2},"face_vomiting":{"a":"Face with Open Mouth Vomiting","b":"1F92E","d":true,"e":true,"f":true,"h":true,"k":[38,48],"n":["face_with_open_mouth_vomiting"],"o":5},"wheel_of_dharma":{"a":"Wheel of Dharma","b":"2638-FE0F","c":"2638","d":true,"e":true,"f":true,"h":true,"j":["hinduism","buddhism","sikhism","jainism"],"k":[53,15],"o":2},"ski":{"a":"Ski and Ski Boot","b":"1F3BF","d":true,"e":true,"f":true,"h":true,"j":["sports","winter","cold","snow"],"k":[8,37],"o":2},"girl":{"skin_variations":{"1F3FB":{"unified":"1F467-1F3FB","non_qualified":null,"image":"1f467-1f3fb.png","sheet_x":14,"sheet_y":33,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F467-1F3FC","non_qualified":null,"image":"1f467-1f3fc.png","sheet_x":14,"sheet_y":34,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F467-1F3FD","non_qualified":null,"image":"1f467-1f3fd.png","sheet_x":14,"sheet_y":35,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F467-1F3FE","non_qualified":null,"image":"1f467-1f3fe.png","sheet_x":14,"sheet_y":36,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F467-1F3FF","non_qualified":null,"image":"1f467-1f3ff.png","sheet_x":14,"sheet_y":37,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Girl","b":"1F467","d":true,"e":true,"f":true,"h":true,"j":["female","woman","teenager"],"k":[14,32],"o":2},"falafel":{"a":"Falafel","b":"1F9C6","d":true,"e":true,"f":true,"h":true,"k":[44,14],"o":12},"sneezing_face":{"a":"Sneezing Face","b":"1F927","d":true,"e":true,"f":true,"h":true,"j":["face","gesundheit","sneeze","sick","allergy"],"k":[38,41],"o":4},"no_bell":{"a":"Bell with Cancellation Stroke","b":"1F515","d":true,"e":true,"f":true,"h":true,"j":["sound","volume","mute","quiet","silent"],"k":[27,49],"o":2},"koala":{"a":"Koala","b":"1F428","d":true,"e":true,"f":true,"h":true,"j":["animal","nature"],"k":[12,12],"o":2},"sunrise_over_mountains":{"a":"Sunrise over Mountains","b":"1F304","d":true,"e":true,"f":true,"h":true,"j":["view","vacation","photo"],"k":[5,23],"o":2},"flag-ci":{"a":"C\xf4te D\u2019ivoire Flag","b":"1F1E8-1F1EE","d":true,"e":true,"f":true,"h":true,"k":[1,18],"o":2},"sunrise":{"a":"Sunrise","b":"1F305","d":true,"e":true,"f":true,"h":true,"j":["morning","view","vacation","photo"],"k":[5,24],"o":2},"yin_yang":{"a":"Yin Yang","b":"262F-FE0F","c":"262F","d":true,"e":true,"f":true,"h":true,"j":["balance"],"k":[53,14],"o":2},"adult":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB","non_qualified":null,"image":"1f9d1-1f3fb.png","sheet_x":48,"sheet_y":11,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9D1-1F3FC","non_qualified":null,"image":"1f9d1-1f3fc.png","sheet_x":48,"sheet_y":12,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9D1-1F3FD","non_qualified":null,"image":"1f9d1-1f3fd.png","sheet_x":48,"sheet_y":13,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9D1-1F3FE","non_qualified":null,"image":"1f9d1-1f3fe.png","sheet_x":48,"sheet_y":14,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9D1-1F3FF","non_qualified":null,"image":"1f9d1-1f3ff.png","sheet_x":48,"sheet_y":15,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Adult","b":"1F9D1","d":true,"e":true,"f":true,"h":true,"k":[48,10],"o":5},"hot_face":{"a":"Overheated Face","b":"1F975","d":true,"e":true,"f":true,"h":true,"k":[42,10],"o":11},"musical_score":{"a":"Musical Score","b":"1F3BC","d":true,"e":true,"f":true,"h":true,"j":["treble","clef","compose"],"k":[8,34],"o":2},"sled":{"a":"Sled","b":"1F6F7","d":true,"e":true,"f":true,"h":true,"k":[36,56],"o":5},"egg":{"a":"Egg","b":"1F95A","d":true,"e":true,"f":true,"h":true,"j":["food","chicken","breakfast"],"k":[41,41],"o":4},"panda_face":{"a":"Panda Face","b":"1F43C","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","panda"],"k":[12,32],"o":2},"flag-ck":{"a":"Cook Islands Flag","b":"1F1E8-1F1F0","d":true,"e":true,"f":true,"h":true,"k":[1,19],"o":2},"flag-cl":{"a":"Chile Flag","b":"1F1E8-1F1F1","d":true,"e":true,"f":true,"h":true,"k":[1,20],"o":2},"person_with_blond_hair":{"skin_variations":{"1F3FB":{"unified":"1F471-1F3FB","non_qualified":null,"image":"1f471-1f3fb.png","sheet_x":22,"sheet_y":20,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F471-1F3FC","non_qualified":null,"image":"1f471-1f3fc.png","sheet_x":22,"sheet_y":21,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F471-1F3FD","non_qualified":null,"image":"1f471-1f3fd.png","sheet_x":22,"sheet_y":22,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F471-1F3FE","non_qualified":null,"image":"1f471-1f3fe.png","sheet_x":22,"sheet_y":23,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F471-1F3FF","non_qualified":null,"image":"1f471-1f3ff.png","sheet_x":22,"sheet_y":24,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F471-200D-2642-FE0F","a":"Person with Blond Hair","b":"1F471","d":true,"e":true,"f":true,"h":false,"k":[22,19],"o":2},"sloth":{"a":"Sloth","b":"1F9A5","d":true,"e":true,"f":true,"h":true,"k":[42,53],"o":12},"latin_cross":{"a":"Latin Cross","b":"271D-FE0F","c":"271D","d":true,"e":true,"f":true,"h":true,"j":["christianity"],"k":[55,14],"o":2},"curling_stone":{"a":"Curling Stone","b":"1F94C","d":true,"e":true,"f":true,"h":true,"k":[41,27],"o":5},"cold_face":{"a":"Freezing Face","b":"1F976","d":true,"e":true,"f":true,"h":true,"k":[42,11],"o":11},"fried_egg":{"a":"Cooking","b":"1F373","d":true,"e":true,"f":true,"h":true,"j":["food","breakfast","kitchen","egg"],"k":[7,18],"n":["cooking"],"o":2},"city_sunset":{"a":"Cityscape at Dusk","b":"1F306","d":true,"e":true,"f":true,"h":true,"j":["photo","evening","sky","buildings"],"k":[5,25],"o":2},"musical_note":{"a":"Musical Note","b":"1F3B5","d":true,"e":true,"f":true,"h":true,"j":["score","tone","sound"],"k":[8,27],"o":2},"flag-cm":{"a":"Cameroon Flag","b":"1F1E8-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[1,21],"o":2},"notes":{"a":"Multiple Musical Notes","b":"1F3B6","d":true,"e":true,"f":true,"h":true,"j":["music","score"],"k":[8,28],"o":2},"woozy_face":{"a":"Face with Uneven Eyes and Wavy Mouth","b":"1F974","d":true,"e":true,"f":true,"h":true,"k":[42,9],"o":11},"dart":{"a":"Direct Hit","b":"1F3AF","d":true,"e":true,"f":true,"h":true,"j":["game","play","bar"],"k":[8,21],"o":2},"orthodox_cross":{"a":"Orthodox Cross","b":"2626-FE0F","c":"2626","d":true,"e":true,"f":true,"h":true,"j":["suppedaneum","religion"],"k":[53,11],"o":2},"shallow_pan_of_food":{"a":"Shallow Pan of Food","b":"1F958","d":true,"e":true,"f":true,"h":true,"j":["food","cooking","casserole","paella"],"k":[41,39],"o":4},"otter":{"a":"Otter","b":"1F9A6","d":true,"e":true,"f":true,"h":true,"k":[42,54],"o":12},"man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB","non_qualified":null,"image":"1f468-1f3fb.png","sheet_x":17,"sheet_y":23,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC","non_qualified":null,"image":"1f468-1f3fc.png","sheet_x":17,"sheet_y":24,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD","non_qualified":null,"image":"1f468-1f3fd.png","sheet_x":17,"sheet_y":25,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE","non_qualified":null,"image":"1f468-1f3fe.png","sheet_x":17,"sheet_y":26,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF","non_qualified":null,"image":"1f468-1f3ff.png","sheet_x":17,"sheet_y":27,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man","b":"1F468","d":true,"e":true,"f":true,"h":true,"j":["mustache","father","dad","guy","classy","sir","moustache"],"k":[17,22],"o":2},"city_sunrise":{"a":"Sunset over Buildings","b":"1F307","d":true,"e":true,"f":true,"h":true,"j":["photo","good morning","dawn"],"k":[5,26],"o":2},"bearded_person":{"skin_variations":{"1F3FB":{"unified":"1F9D4-1F3FB","non_qualified":null,"image":"1f9d4-1f3fb.png","sheet_x":48,"sheet_y":29,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9D4-1F3FC","non_qualified":null,"image":"1f9d4-1f3fc.png","sheet_x":48,"sheet_y":30,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9D4-1F3FD","non_qualified":null,"image":"1f9d4-1f3fd.png","sheet_x":48,"sheet_y":31,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9D4-1F3FE","non_qualified":null,"image":"1f9d4-1f3fe.png","sheet_x":48,"sheet_y":32,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9D4-1F3FF","non_qualified":null,"image":"1f9d4-1f3ff.png","sheet_x":48,"sheet_y":33,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Bearded Person","b":"1F9D4","d":true,"e":true,"f":true,"h":true,"k":[48,28],"o":5},"skunk":{"a":"Skunk","b":"1F9A8","d":true,"e":true,"f":true,"h":true,"k":[42,56],"o":12},"stew":{"a":"Pot of Food","b":"1F372","d":true,"e":true,"f":true,"h":true,"j":["food","meat","soup"],"k":[7,17],"o":2},"cn":{"a":"China Flag","b":"1F1E8-1F1F3","d":true,"e":true,"f":true,"h":true,"j":["china","chinese","prc","flag","country","nation","banner"],"k":[1,22],"n":["flag-cn"],"o":2},"studio_microphone":{"a":"Studio Microphone","b":"1F399-FE0F","c":"1F399","d":true,"e":true,"f":true,"h":true,"j":["sing","recording","artist","talkshow"],"k":[8,1],"o":2},"star_and_crescent":{"a":"Star and Crescent","b":"262A-FE0F","c":"262A","d":true,"e":true,"f":true,"h":true,"j":["islam"],"k":[53,12],"o":2},"yo-yo":{"a":"Yo-Yo","b":"1FA80","d":true,"e":true,"f":true,"h":true,"k":[52,1],"o":12},"bridge_at_night":{"a":"Bridge at Night","b":"1F309","d":true,"e":true,"f":true,"h":true,"j":["photo","sanfrancisco"],"k":[5,28],"o":2},"dizzy_face":{"a":"Dizzy Face","b":"1F635","d":true,"e":true,"f":true,"h":true,"j":["spent","unconscious","xox","dizzy"],"k":[31,31],"o":2},"red_haired_man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F9B0","non_qualified":null,"image":"1f468-1f3fb-200d-1f9b0.png","sheet_x":16,"sheet_y":24,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F9B0","non_qualified":null,"image":"1f468-1f3fc-200d-1f9b0.png","sheet_x":16,"sheet_y":25,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F9B0","non_qualified":null,"image":"1f468-1f3fd-200d-1f9b0.png","sheet_x":16,"sheet_y":26,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F9B0","non_qualified":null,"image":"1f468-1f3fe-200d-1f9b0.png","sheet_x":16,"sheet_y":27,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F9B0","non_qualified":null,"image":"1f468-1f3ff-200d-1f9b0.png","sheet_x":16,"sheet_y":28,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Red Haired Man","b":"1F468-200D-1F9B0","d":true,"e":true,"f":true,"h":true,"k":[16,23],"o":11},"kite":{"a":"Kite","b":"1FA81","d":true,"e":true,"f":true,"h":true,"k":[52,2],"o":12},"bowl_with_spoon":{"a":"Bowl with Spoon","b":"1F963","d":true,"e":true,"f":true,"h":true,"k":[41,50],"o":5},"flag-co":{"a":"Colombia Flag","b":"1F1E8-1F1F4","d":true,"e":true,"f":true,"h":true,"k":[1,23],"o":2},"peace_symbol":{"a":"Peace Symbol","b":"262E-FE0F","c":"262E","d":true,"e":true,"f":true,"h":true,"j":["hippie"],"k":[53,13],"o":2},"kangaroo":{"a":"Kangaroo","b":"1F998","d":true,"e":true,"f":true,"h":true,"k":[42,42],"o":11},"hotsprings":{"a":"Hot Springs","b":"2668-FE0F","c":"2668","d":true,"e":true,"f":true,"h":true,"j":["bath","warm","relax"],"k":[53,37],"o":2},"exploding_head":{"a":"Shocked Face with Exploding Head","b":"1F92F","d":true,"e":true,"f":true,"h":true,"k":[38,49],"n":["shocked_face_with_exploding_head"],"o":5},"level_slider":{"a":"Level Slider","b":"1F39A-FE0F","c":"1F39A","d":true,"e":true,"f":true,"h":true,"j":["scale"],"k":[8,2],"o":2},"badger":{"a":"Badger","b":"1F9A1","d":true,"e":true,"f":true,"h":true,"k":[42,51],"o":11},"8ball":{"a":"Billiards","b":"1F3B1","d":true,"e":true,"f":true,"h":true,"j":["pool","hobby","game","luck","magic"],"k":[8,23],"o":2},"curly_haired_man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F9B1","non_qualified":null,"image":"1f468-1f3fb-200d-1f9b1.png","sheet_x":16,"sheet_y":30,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F9B1","non_qualified":null,"image":"1f468-1f3fc-200d-1f9b1.png","sheet_x":16,"sheet_y":31,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F9B1","non_qualified":null,"image":"1f468-1f3fd-200d-1f9b1.png","sheet_x":16,"sheet_y":32,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F9B1","non_qualified":null,"image":"1f468-1f3fe-200d-1f9b1.png","sheet_x":16,"sheet_y":33,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F9B1","non_qualified":null,"image":"1f468-1f3ff-200d-1f9b1.png","sheet_x":16,"sheet_y":34,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Curly Haired Man","b":"1F468-200D-1F9B1","d":true,"e":true,"f":true,"h":true,"k":[16,29],"o":11},"flag-cp":{"a":"Clipperton Island Flag","b":"1F1E8-1F1F5","d":true,"e":true,"f":true,"h":true,"k":[1,24],"o":2},"carousel_horse":{"a":"Carousel Horse","b":"1F3A0","d":true,"e":true,"f":true,"h":true,"j":["photo","carnival"],"k":[8,6],"o":2},"face_with_cowboy_hat":{"a":"Face with Cowboy Hat","b":"1F920","d":true,"e":true,"f":true,"h":true,"k":[38,17],"o":4},"menorah_with_nine_branches":{"a":"Menorah with Nine Branches","b":"1F54E","d":true,"e":true,"f":true,"h":true,"k":[28,38],"o":2},"green_salad":{"a":"Green Salad","b":"1F957","d":true,"e":true,"f":true,"h":true,"j":["food","healthy","lettuce"],"k":[41,38],"o":4},"control_knobs":{"a":"Control Knobs","b":"1F39B-FE0F","c":"1F39B","d":true,"e":true,"f":true,"h":true,"j":["dial"],"k":[8,3],"o":2},"popcorn":{"a":"Popcorn","b":"1F37F","d":true,"e":true,"f":true,"h":true,"j":["food","movie theater","films","snack"],"k":[7,30],"o":2},"six_pointed_star":{"a":"Six Pointed Star with Middle Dot","b":"1F52F","d":true,"e":true,"f":true,"h":true,"j":["purple-square","religion","jewish","hexagram"],"k":[28,18],"o":2},"feet":{"a":"Paw Prints","b":"1F43E","d":true,"e":true,"f":true,"h":true,"k":[12,34],"n":["paw_prints"],"o":2},"ferris_wheel":{"a":"Ferris Wheel","b":"1F3A1","d":true,"e":true,"f":true,"h":true,"j":["photo","carnival","londoneye"],"k":[8,7],"o":2},"microphone":{"a":"Microphone","b":"1F3A4","d":true,"e":true,"f":true,"h":true,"j":["sound","music","PA","sing","talkshow"],"k":[8,10],"o":2},"crystal_ball":{"a":"Crystal Ball","b":"1F52E","d":true,"e":true,"f":true,"h":true,"j":["disco","party","magic","circus","fortune_teller"],"k":[28,17],"o":2},"partying_face":{"a":"Face with Party Horn and Party Hat","b":"1F973","d":true,"e":true,"f":true,"h":true,"k":[42,8],"o":11},"flag-cr":{"a":"Costa Rica Flag","b":"1F1E8-1F1F7","d":true,"e":true,"f":true,"h":true,"k":[1,25],"o":2},"white_haired_man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F9B3","non_qualified":null,"image":"1f468-1f3fb-200d-1f9b3.png","sheet_x":16,"sheet_y":42,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F9B3","non_qualified":null,"image":"1f468-1f3fc-200d-1f9b3.png","sheet_x":16,"sheet_y":43,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F9B3","non_qualified":null,"image":"1f468-1f3fd-200d-1f9b3.png","sheet_x":16,"sheet_y":44,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F9B3","non_qualified":null,"image":"1f468-1f3fe-200d-1f9b3.png","sheet_x":16,"sheet_y":45,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F9B3","non_qualified":null,"image":"1f468-1f3ff-200d-1f9b3.png","sheet_x":16,"sheet_y":46,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Haired Man","b":"1F468-200D-1F9B3","d":true,"e":true,"f":true,"h":true,"k":[16,41],"o":11},"headphones":{"a":"Headphone","b":"1F3A7","d":true,"e":true,"f":true,"h":true,"j":["music","score","gadgets"],"k":[8,13],"o":2},"bald_man":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F9B2","non_qualified":null,"image":"1f468-1f3fb-200d-1f9b2.png","sheet_x":16,"sheet_y":36,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F9B2","non_qualified":null,"image":"1f468-1f3fc-200d-1f9b2.png","sheet_x":16,"sheet_y":37,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F9B2","non_qualified":null,"image":"1f468-1f3fd-200d-1f9b2.png","sheet_x":16,"sheet_y":38,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F9B2","non_qualified":null,"image":"1f468-1f3fe-200d-1f9b2.png","sheet_x":16,"sheet_y":39,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F9B2","non_qualified":null,"image":"1f468-1f3ff-200d-1f9b2.png","sheet_x":16,"sheet_y":40,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Bald Man","b":"1F468-200D-1F9B2","d":true,"e":true,"f":true,"h":true,"k":[16,35],"o":11},"sunglasses":{"a":"Smiling Face with Sunglasses","b":"1F60E","d":true,"e":true,"f":true,"h":true,"j":["face","cool","smile","summer","beach","sunglass"],"k":[30,49],"l":["8)"],"o":2},"butter":{"a":"Butter","b":"1F9C8","d":true,"e":true,"f":true,"h":true,"k":[44,16],"o":12},"roller_coaster":{"a":"Roller Coaster","b":"1F3A2","d":true,"e":true,"f":true,"h":true,"j":["carnival","playground","photo","fun"],"k":[8,8],"o":2},"turkey":{"a":"Turkey","b":"1F983","d":true,"e":true,"f":true,"h":true,"j":["animal","bird"],"k":[42,21],"o":2},"nazar_amulet":{"a":"Nazar Amulet","b":"1F9FF","d":true,"e":true,"f":true,"h":true,"k":[51,50],"o":11},"flag-cu":{"a":"Cuba Flag","b":"1F1E8-1F1FA","d":true,"e":true,"f":true,"h":true,"k":[1,26],"o":2},"aries":{"a":"Aries","b":"2648","d":true,"e":true,"f":true,"h":true,"j":["sign","purple-square","zodiac","astrology"],"k":[53,20],"o":2},"flag-cv":{"a":"Cape Verde Flag","b":"1F1E8-1F1FB","d":true,"e":true,"f":true,"h":true,"k":[1,27],"o":2},"barber":{"a":"Barber Pole","b":"1F488","d":true,"e":true,"f":true,"h":true,"j":["hair","salon","style"],"k":[25,18],"o":2},"taurus":{"a":"Taurus","b":"2649","d":true,"e":true,"f":true,"h":true,"j":["purple-square","sign","zodiac","astrology"],"k":[53,21],"o":2},"salt":{"a":"Salt Shaker","b":"1F9C2","d":true,"e":true,"f":true,"h":true,"k":[44,10],"o":11},"woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB","non_qualified":null,"image":"1f469-1f3fb.png","sheet_x":20,"sheet_y":10,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC","non_qualified":null,"image":"1f469-1f3fc.png","sheet_x":20,"sheet_y":11,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD","non_qualified":null,"image":"1f469-1f3fd.png","sheet_x":20,"sheet_y":12,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE","non_qualified":null,"image":"1f469-1f3fe.png","sheet_x":20,"sheet_y":13,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF","non_qualified":null,"image":"1f469-1f3ff.png","sheet_x":20,"sheet_y":14,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Woman","b":"1F469","d":true,"e":true,"f":true,"h":true,"j":["female","girls","lady"],"k":[20,9],"o":2},"video_game":{"a":"Video Game","b":"1F3AE","d":true,"e":true,"f":true,"h":true,"j":["play","console","PS4","controller"],"k":[8,20],"o":2},"chicken":{"a":"Chicken","b":"1F414","d":true,"e":true,"f":true,"h":true,"j":["animal","cluck","nature","bird"],"k":[11,48],"o":2},"radio":{"a":"Radio","b":"1F4FB","d":true,"e":true,"f":true,"h":true,"j":["communication","music","podcast","program"],"k":[27,24],"o":2},"nerd_face":{"a":"Nerd Face","b":"1F913","d":true,"e":true,"f":true,"h":true,"j":["face","nerdy","geek","dork"],"k":[37,26],"o":2},"red_haired_woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F9B0","non_qualified":null,"image":"1f469-1f3fb-200d-1f9b0.png","sheet_x":19,"sheet_y":9,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F9B0","non_qualified":null,"image":"1f469-1f3fc-200d-1f9b0.png","sheet_x":19,"sheet_y":10,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F9B0","non_qualified":null,"image":"1f469-1f3fd-200d-1f9b0.png","sheet_x":19,"sheet_y":11,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F9B0","non_qualified":null,"image":"1f469-1f3fe-200d-1f9b0.png","sheet_x":19,"sheet_y":12,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F9B0","non_qualified":null,"image":"1f469-1f3ff-200d-1f9b0.png","sheet_x":19,"sheet_y":13,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Red Haired Woman","b":"1F469-200D-1F9B0","d":true,"e":true,"f":true,"h":true,"k":[19,8],"o":11},"circus_tent":{"a":"Circus Tent","b":"1F3AA","d":true,"e":true,"f":true,"h":true,"j":["festival","carnival","party"],"k":[8,16],"o":2},"face_with_monocle":{"a":"Face with Monocle","b":"1F9D0","d":true,"e":true,"f":true,"h":true,"k":[45,16],"o":5},"canned_food":{"a":"Canned Food","b":"1F96B","d":true,"e":true,"f":true,"h":true,"k":[42,1],"o":5},"flag-cw":{"a":"Cura\xe7ao Flag","b":"1F1E8-1F1FC","d":true,"e":true,"f":true,"h":true,"k":[1,28],"o":2},"gemini":{"a":"Gemini","b":"264A","d":true,"e":true,"f":true,"h":true,"j":["sign","zodiac","purple-square","astrology"],"k":[53,22],"o":2},"saxophone":{"a":"Saxophone","b":"1F3B7","d":true,"e":true,"f":true,"h":true,"j":["music","instrument","jazz","blues"],"k":[8,29],"o":2},"rooster":{"a":"Rooster","b":"1F413","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","chicken"],"k":[11,47],"o":2},"joystick":{"a":"Joystick","b":"1F579-FE0F","c":"1F579","d":true,"e":true,"f":true,"h":true,"j":["game","play"],"k":[29,36],"o":2},"guitar":{"a":"Guitar","b":"1F3B8","d":true,"e":true,"f":true,"h":true,"j":["music","instrument"],"k":[8,30],"o":2},"slot_machine":{"a":"Slot Machine","b":"1F3B0","d":true,"e":true,"f":true,"h":true,"j":["bet","gamble","vegas","fruit machine","luck","casino"],"k":[8,22],"o":2},"bento":{"a":"Bento Box","b":"1F371","d":true,"e":true,"f":true,"h":true,"j":["food","japanese","box"],"k":[7,16],"o":2},"steam_locomotive":{"a":"Steam Locomotive","b":"1F682","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle","train"],"k":[34,1],"o":2},"confused":{"a":"Confused Face","b":"1F615","d":true,"e":true,"f":true,"h":true,"j":["face","indifference","huh","weird","hmmm",":/"],"k":[30,56],"l":[":\\\\",":-\\\\",":/",":-/"],"o":2},"flag-cx":{"a":"Christmas Island Flag","b":"1F1E8-1F1FD","d":true,"e":true,"f":true,"h":true,"k":[1,29],"o":2},"hatching_chick":{"a":"Hatching Chick","b":"1F423","d":true,"e":true,"f":true,"h":true,"j":["animal","chicken","egg","born","baby","bird"],"k":[12,7],"o":2},"cancer":{"a":"Cancer","b":"264B","d":true,"e":true,"f":true,"h":true,"j":["sign","zodiac","purple-square","astrology"],"k":[53,23],"o":2},"red_haired_person":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F9B0","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f9b0.png","sheet_x":47,"sheet_y":14,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F9B0","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f9b0.png","sheet_x":47,"sheet_y":15,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F9B0","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f9b0.png","sheet_x":47,"sheet_y":16,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F9B0","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f9b0.png","sheet_x":47,"sheet_y":17,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F9B0","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f9b0.png","sheet_x":47,"sheet_y":18,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Red Haired Person","b":"1F9D1-200D-1F9B0","d":true,"e":false,"f":false,"h":false,"k":[47,13],"o":12},"flag-cy":{"a":"Cyprus Flag","b":"1F1E8-1F1FE","d":true,"e":true,"f":true,"h":true,"k":[1,30],"o":2},"worried":{"a":"Worried Face","b":"1F61F","d":true,"e":true,"f":true,"h":true,"j":["face","concern","nervous",":("],"k":[31,9],"o":2},"railway_car":{"a":"Railway Car","b":"1F683","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle"],"k":[34,2],"o":2},"leo":{"a":"Leo","b":"264C","d":true,"e":true,"f":true,"h":true,"j":["sign","purple-square","zodiac","astrology"],"k":[53,24],"o":2},"curly_haired_woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F9B1","non_qualified":null,"image":"1f469-1f3fb-200d-1f9b1.png","sheet_x":19,"sheet_y":15,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F9B1","non_qualified":null,"image":"1f469-1f3fc-200d-1f9b1.png","sheet_x":19,"sheet_y":16,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F9B1","non_qualified":null,"image":"1f469-1f3fd-200d-1f9b1.png","sheet_x":19,"sheet_y":17,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F9B1","non_qualified":null,"image":"1f469-1f3fe-200d-1f9b1.png","sheet_x":19,"sheet_y":18,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F9B1","non_qualified":null,"image":"1f469-1f3ff-200d-1f9b1.png","sheet_x":19,"sheet_y":19,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Curly Haired Woman","b":"1F469-200D-1F9B1","d":true,"e":true,"f":true,"h":true,"k":[19,14],"o":11},"baby_chick":{"a":"Baby Chick","b":"1F424","d":true,"e":true,"f":true,"h":true,"j":["animal","chicken","bird"],"k":[12,8],"o":2},"musical_keyboard":{"a":"Musical Keyboard","b":"1F3B9","d":true,"e":true,"f":true,"h":true,"j":["piano","instrument","compose"],"k":[8,31],"o":2},"game_die":{"a":"Game Die","b":"1F3B2","d":true,"e":true,"f":true,"h":true,"j":["dice","random","tabletop","play","luck"],"k":[8,24],"o":2},"rice_cracker":{"a":"Rice Cracker","b":"1F358","d":true,"e":true,"f":true,"h":true,"j":["food","japanese"],"k":[6,48],"o":2},"virgo":{"a":"Virgo","b":"264D","d":true,"e":true,"f":true,"h":true,"j":["sign","zodiac","purple-square","astrology"],"k":[53,25],"o":2},"flag-cz":{"a":"Czechia Flag","b":"1F1E8-1F1FF","d":true,"e":true,"f":true,"h":true,"k":[1,31],"o":2},"curly_haired_person":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F9B1","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f9b1.png","sheet_x":47,"sheet_y":20,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F9B1","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f9b1.png","sheet_x":47,"sheet_y":21,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F9B1","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f9b1.png","sheet_x":47,"sheet_y":22,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F9B1","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f9b1.png","sheet_x":47,"sheet_y":23,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F9B1","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f9b1.png","sheet_x":47,"sheet_y":24,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Curly Haired Person","b":"1F9D1-200D-1F9B1","d":true,"e":false,"f":false,"h":false,"k":[47,19],"o":12},"rice_ball":{"a":"Rice Ball","b":"1F359","d":true,"e":true,"f":true,"h":true,"j":["food","japanese"],"k":[6,49],"o":2},"hatched_chick":{"a":"Front-Facing Baby Chick","b":"1F425","d":true,"e":true,"f":true,"h":true,"j":["animal","chicken","baby","bird"],"k":[12,9],"o":2},"jigsaw":{"a":"Jigsaw Puzzle Piece","b":"1F9E9","d":true,"e":true,"f":true,"h":true,"k":[51,28],"o":11},"trumpet":{"a":"Trumpet","b":"1F3BA","d":true,"e":true,"f":true,"h":true,"j":["music","brass"],"k":[8,32],"o":2},"slightly_frowning_face":{"a":"Slightly Frowning Face","b":"1F641","d":true,"e":true,"f":true,"h":true,"j":["face","frowning","disappointed","sad","upset"],"k":[31,43],"o":2},"bullettrain_side":{"a":"High-Speed Train","b":"1F684","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle"],"k":[34,3],"o":2},"libra":{"a":"Libra","b":"264E","d":true,"e":true,"f":true,"h":true,"j":["sign","purple-square","zodiac","astrology"],"k":[53,26],"o":2},"de":{"a":"Germany Flag","b":"1F1E9-1F1EA","d":true,"e":true,"f":true,"h":true,"j":["german","nation","flag","country","banner"],"k":[1,32],"n":["flag-de"],"o":2},"rice":{"a":"Cooked Rice","b":"1F35A","d":true,"e":true,"f":true,"h":true,"j":["food","china","asian"],"k":[6,50],"o":2},"violin":{"a":"Violin","b":"1F3BB","d":true,"e":true,"f":true,"h":true,"j":["music","instrument","orchestra","symphony"],"k":[8,33],"o":2},"white_haired_woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F9B3","non_qualified":null,"image":"1f469-1f3fb-200d-1f9b3.png","sheet_x":19,"sheet_y":27,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F9B3","non_qualified":null,"image":"1f469-1f3fc-200d-1f9b3.png","sheet_x":19,"sheet_y":28,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F9B3","non_qualified":null,"image":"1f469-1f3fd-200d-1f9b3.png","sheet_x":19,"sheet_y":29,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F9B3","non_qualified":null,"image":"1f469-1f3fe-200d-1f9b3.png","sheet_x":19,"sheet_y":30,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F9B3","non_qualified":null,"image":"1f469-1f3ff-200d-1f9b3.png","sheet_x":19,"sheet_y":31,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"White Haired Woman","b":"1F469-200D-1F9B3","d":true,"e":true,"f":true,"h":true,"k":[19,26],"o":11},"bird":{"a":"Bird","b":"1F426","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","fly","tweet","spring"],"k":[12,10],"o":2},"white_frowning_face":{"a":"White Frowning Face","b":"2639-FE0F","c":"2639","d":true,"e":true,"f":true,"h":true,"k":[53,16],"o":2},"bullettrain_front":{"a":"High-Speed Train with Bullet Nose","b":"1F685","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle","speed","fast","public","travel"],"k":[34,4],"o":2},"teddy_bear":{"a":"Teddy Bear","b":"1F9F8","d":true,"e":true,"f":true,"h":true,"k":[51,43],"o":11},"white_haired_person":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F9B3","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f9b3.png","sheet_x":47,"sheet_y":32,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F9B3","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f9b3.png","sheet_x":47,"sheet_y":33,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F9B3","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f9b3.png","sheet_x":47,"sheet_y":34,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F9B3","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f9b3.png","sheet_x":47,"sheet_y":35,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F9B3","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f9b3.png","sheet_x":47,"sheet_y":36,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"White Haired Person","b":"1F9D1-200D-1F9B3","d":true,"e":false,"f":false,"h":false,"k":[47,31],"o":12},"spades":{"a":"Black Spade Suit","b":"2660-FE0F","c":"2660","d":true,"e":true,"f":true,"h":true,"j":["poker","cards","suits","magic"],"k":[53,33],"o":2},"banjo":{"a":"Banjo","b":"1FA95","d":true,"e":true,"f":true,"h":true,"k":[52,9],"o":12},"train2":{"a":"Train","b":"1F686","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle"],"k":[34,5],"o":2},"scorpius":{"a":"Scorpius","b":"264F","d":true,"e":true,"f":true,"h":true,"j":["sign","zodiac","purple-square","astrology","scorpio"],"k":[53,27],"o":2},"curry":{"a":"Curry and Rice","b":"1F35B","d":true,"e":true,"f":true,"h":true,"j":["food","spicy","hot","indian"],"k":[6,51],"o":2},"open_mouth":{"a":"Face with Open Mouth","b":"1F62E","d":true,"e":true,"f":true,"h":true,"j":["face","surprise","impressed","wow","whoa",":O"],"k":[31,24],"l":[":o",":-o",":O",":-O"],"o":2},"flag-dg":{"a":"Diego Garcia Flag","b":"1F1E9-1F1EC","d":true,"e":true,"f":true,"h":true,"k":[1,33],"o":2},"penguin":{"a":"Penguin","b":"1F427","d":true,"e":true,"f":true,"h":true,"j":["animal","nature"],"k":[12,11],"o":2},"hearts":{"a":"Black Heart Suit","b":"2665-FE0F","c":"2665","d":true,"e":true,"f":true,"h":true,"j":["poker","cards","magic","suits"],"k":[53,35],"o":2},"ramen":{"a":"Steaming Bowl","b":"1F35C","d":true,"e":true,"f":true,"h":true,"j":["food","japanese","noodle","chopsticks"],"k":[6,52],"o":2},"sagittarius":{"a":"Sagittarius","b":"2650","d":true,"e":true,"f":true,"h":true,"j":["sign","zodiac","purple-square","astrology"],"k":[53,28],"o":2},"bald_woman":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F9B2","non_qualified":null,"image":"1f469-1f3fb-200d-1f9b2.png","sheet_x":19,"sheet_y":21,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F9B2","non_qualified":null,"image":"1f469-1f3fc-200d-1f9b2.png","sheet_x":19,"sheet_y":22,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F9B2","non_qualified":null,"image":"1f469-1f3fd-200d-1f9b2.png","sheet_x":19,"sheet_y":23,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F9B2","non_qualified":null,"image":"1f469-1f3fe-200d-1f9b2.png","sheet_x":19,"sheet_y":24,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F9B2","non_qualified":null,"image":"1f469-1f3ff-200d-1f9b2.png","sheet_x":19,"sheet_y":25,"added_in":"11.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Bald Woman","b":"1F469-200D-1F9B2","d":true,"e":true,"f":true,"h":true,"k":[19,20],"o":11},"dove_of_peace":{"a":"Dove of Peace","b":"1F54A-FE0F","c":"1F54A","d":true,"e":true,"f":true,"h":true,"k":[28,34],"o":2},"hushed":{"a":"Hushed Face","b":"1F62F","d":true,"e":true,"f":true,"h":true,"j":["face","woo","shh"],"k":[31,25],"o":2},"metro":{"a":"Metro","b":"1F687","d":true,"e":true,"f":true,"h":true,"j":["transportation","blue-square","mrt","underground","tube"],"k":[34,6],"o":2},"flag-dj":{"a":"Djibouti Flag","b":"1F1E9-1F1EF","d":true,"e":true,"f":true,"h":true,"k":[1,34],"o":2},"drum_with_drumsticks":{"a":"Drum with Drumsticks","b":"1F941","d":true,"e":true,"f":true,"h":true,"k":[41,17],"o":4},"spaghetti":{"a":"Spaghetti","b":"1F35D","d":true,"e":true,"f":true,"h":true,"j":["food","italian","noodle"],"k":[6,53],"o":2},"eagle":{"a":"Eagle","b":"1F985","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","bird"],"k":[42,23],"o":4},"astonished":{"a":"Astonished Face","b":"1F632","d":true,"e":true,"f":true,"h":true,"j":["face","xox","surprised","poisoned"],"k":[31,28],"o":2},"capricorn":{"a":"Capricorn","b":"2651","d":true,"e":true,"f":true,"h":true,"j":["sign","zodiac","purple-square","astrology"],"k":[53,29],"o":2},"light_rail":{"a":"Light Rail","b":"1F688","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle"],"k":[34,7],"o":2},"flag-dk":{"a":"Denmark Flag","b":"1F1E9-1F1F0","d":true,"e":true,"f":true,"h":true,"k":[1,35],"o":2},"iphone":{"a":"Mobile Phone","b":"1F4F1","d":true,"e":true,"f":true,"h":true,"j":["technology","apple","gadgets","dial"],"k":[27,14],"o":2},"bald_person":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F9B2","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f9b2.png","sheet_x":47,"sheet_y":26,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F9B2","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f9b2.png","sheet_x":47,"sheet_y":27,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F9B2","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f9b2.png","sheet_x":47,"sheet_y":28,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F9B2","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f9b2.png","sheet_x":47,"sheet_y":29,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F9B2","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f9b2.png","sheet_x":47,"sheet_y":30,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Bald Person","b":"1F9D1-200D-1F9B2","d":true,"e":false,"f":false,"h":false,"k":[47,25],"o":12},"diamonds":{"a":"Black Diamond Suit","b":"2666-FE0F","c":"2666","d":true,"e":true,"f":true,"h":true,"j":["poker","cards","magic","suits"],"k":[53,36],"o":2},"clubs":{"a":"Black Club Suit","b":"2663-FE0F","c":"2663","d":true,"e":true,"f":true,"h":true,"j":["poker","cards","magic","suits"],"k":[53,34],"o":2},"aquarius":{"a":"Aquarius","b":"2652","d":true,"e":true,"f":true,"h":true,"j":["sign","purple-square","zodiac","astrology"],"k":[53,30],"o":2},"sweet_potato":{"a":"Roasted Sweet Potato","b":"1F360","d":true,"e":true,"f":true,"h":true,"j":["food","nature"],"k":[6,56],"o":2},"flag-dm":{"a":"Dominica Flag","b":"1F1E9-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[1,36],"o":2},"duck":{"a":"Duck","b":"1F986","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","bird","mallard"],"k":[42,24],"o":4},"calling":{"a":"Mobile Phone with Rightwards Arrow at Left","b":"1F4F2","d":true,"e":true,"f":true,"h":true,"j":["iphone","incoming"],"k":[27,15],"o":2},"station":{"a":"Station","b":"1F689","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle","public"],"k":[34,8],"o":2},"blond-haired-woman":{"skin_variations":{"1F3FB":{"unified":"1F471-1F3FB-200D-2640-FE0F","non_qualified":"1F471-1F3FB-200D-2640","image":"1f471-1f3fb-200d-2640-fe0f.png","sheet_x":22,"sheet_y":8,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F471-1F3FC-200D-2640-FE0F","non_qualified":"1F471-1F3FC-200D-2640","image":"1f471-1f3fc-200d-2640-fe0f.png","sheet_x":22,"sheet_y":9,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F471-1F3FD-200D-2640-FE0F","non_qualified":"1F471-1F3FD-200D-2640","image":"1f471-1f3fd-200d-2640-fe0f.png","sheet_x":22,"sheet_y":10,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F471-1F3FE-200D-2640-FE0F","non_qualified":"1F471-1F3FE-200D-2640","image":"1f471-1f3fe-200d-2640-fe0f.png","sheet_x":22,"sheet_y":11,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F471-1F3FF-200D-2640-FE0F","non_qualified":"1F471-1F3FF-200D-2640","image":"1f471-1f3ff-200d-2640-fe0f.png","sheet_x":22,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Blond Haired Woman","b":"1F471-200D-2640-FE0F","c":"1F471-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[22,7],"o":4},"flushed":{"a":"Flushed Face","b":"1F633","d":true,"e":true,"f":true,"h":true,"j":["face","blush","shy","flattered"],"k":[31,29],"o":2},"pisces":{"a":"Pisces","b":"2653","d":true,"e":true,"f":true,"h":true,"j":["purple-square","sign","zodiac","astrology"],"k":[53,31],"o":2},"chess_pawn":{"a":"Chess Pawn","b":"265F-FE0F","c":"265F","d":true,"e":true,"f":true,"h":true,"k":[53,32],"o":11},"blond-haired-man":{"skin_variations":{"1F3FB":{"unified":"1F471-1F3FB-200D-2642-FE0F","non_qualified":"1F471-1F3FB-200D-2642","image":"1f471-1f3fb-200d-2642-fe0f.png","sheet_x":22,"sheet_y":14,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F471-1F3FC-200D-2642-FE0F","non_qualified":"1F471-1F3FC-200D-2642","image":"1f471-1f3fc-200d-2642-fe0f.png","sheet_x":22,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F471-1F3FD-200D-2642-FE0F","non_qualified":"1F471-1F3FD-200D-2642","image":"1f471-1f3fd-200d-2642-fe0f.png","sheet_x":22,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F471-1F3FE-200D-2642-FE0F","non_qualified":"1F471-1F3FE-200D-2642","image":"1f471-1f3fe-200d-2642-fe0f.png","sheet_x":22,"sheet_y":17,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F471-1F3FF-200D-2642-FE0F","non_qualified":"1F471-1F3FF-200D-2642","image":"1f471-1f3ff-200d-2642-fe0f.png","sheet_x":22,"sheet_y":18,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F471","a":"Blond Haired Man","b":"1F471-200D-2642-FE0F","c":"1F471-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[22,13],"o":4},"phone":{"a":"Black Telephone","b":"260E-FE0F","c":"260E","d":true,"e":true,"f":true,"h":true,"j":["technology","communication","dial","telephone"],"k":[52,54],"n":["telephone"],"o":2},"oden":{"a":"Oden","b":"1F362","d":true,"e":true,"f":true,"h":true,"j":["food","japanese"],"k":[7,1],"o":2},"flag-do":{"a":"Dominican Republic Flag","b":"1F1E9-1F1F4","d":true,"e":true,"f":true,"h":true,"k":[1,37],"o":2},"tram":{"a":"Tram","b":"1F68A","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle"],"k":[34,9],"o":2},"swan":{"a":"Swan","b":"1F9A2","d":true,"e":true,"f":true,"h":true,"k":[42,52],"o":11},"pleading_face":{"a":"Face with Pleading Eyes","b":"1F97A","d":true,"e":true,"f":true,"h":true,"k":[42,12],"o":11},"flag-dz":{"a":"Algeria Flag","b":"1F1E9-1F1FF","d":true,"e":true,"f":true,"h":true,"k":[1,38],"o":2},"monorail":{"a":"Monorail","b":"1F69D","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle"],"k":[34,28],"o":2},"owl":{"a":"Owl","b":"1F989","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","bird","hoot"],"k":[42,27],"o":4},"sushi":{"a":"Sushi","b":"1F363","d":true,"e":true,"f":true,"h":true,"j":["food","fish","japanese","rice"],"k":[7,2],"o":2},"telephone_receiver":{"a":"Telephone Receiver","b":"1F4DE","d":true,"e":true,"f":true,"h":true,"j":["technology","communication","dial"],"k":[26,52],"o":2},"black_joker":{"a":"Playing Card Black Joker","b":"1F0CF","d":true,"e":true,"f":true,"h":true,"j":["poker","cards","game","play","magic"],"k":[0,15],"o":2},"ophiuchus":{"a":"Ophiuchus","b":"26CE","d":true,"e":true,"f":true,"h":true,"j":["sign","purple-square","constellation","astrology"],"k":[54,4],"o":2},"frowning":{"a":"Frowning Face with Open Mouth","b":"1F626","d":true,"e":true,"f":true,"h":true,"j":["face","aw","what"],"k":[31,16],"o":2},"older_adult":{"skin_variations":{"1F3FB":{"unified":"1F9D3-1F3FB","non_qualified":null,"image":"1f9d3-1f3fb.png","sheet_x":48,"sheet_y":23,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9D3-1F3FC","non_qualified":null,"image":"1f9d3-1f3fc.png","sheet_x":48,"sheet_y":24,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9D3-1F3FD","non_qualified":null,"image":"1f9d3-1f3fd.png","sheet_x":48,"sheet_y":25,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9D3-1F3FE","non_qualified":null,"image":"1f9d3-1f3fe.png","sheet_x":48,"sheet_y":26,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9D3-1F3FF","non_qualified":null,"image":"1f9d3-1f3ff.png","sheet_x":48,"sheet_y":27,"added_in":"5.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Older Adult","b":"1F9D3","d":true,"e":true,"f":true,"h":true,"k":[48,22],"o":5},"flag-ea":{"a":"Ceuta & Melilla Flag","b":"1F1EA-1F1E6","d":true,"e":true,"f":true,"h":true,"k":[1,39],"o":2},"flamingo":{"a":"Flamingo","b":"1F9A9","d":true,"e":true,"f":true,"h":true,"k":[43,0],"o":12},"pager":{"a":"Pager","b":"1F4DF","d":true,"e":true,"f":true,"h":true,"j":["bbcall","oldschool","90s"],"k":[26,53],"o":2},"mountain_railway":{"a":"Mountain Railway","b":"1F69E","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle"],"k":[34,29],"o":2},"mahjong":{"a":"Mahjong Tile Red Dragon","b":"1F004","d":true,"e":true,"f":true,"h":true,"j":["game","play","chinese","kanji"],"k":[0,14],"o":2},"older_man":{"skin_variations":{"1F3FB":{"unified":"1F474-1F3FB","non_qualified":null,"image":"1f474-1f3fb.png","sheet_x":22,"sheet_y":50,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F474-1F3FC","non_qualified":null,"image":"1f474-1f3fc.png","sheet_x":22,"sheet_y":51,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F474-1F3FD","non_qualified":null,"image":"1f474-1f3fd.png","sheet_x":22,"sheet_y":52,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F474-1F3FE","non_qualified":null,"image":"1f474-1f3fe.png","sheet_x":22,"sheet_y":53,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F474-1F3FF","non_qualified":null,"image":"1f474-1f3ff.png","sheet_x":22,"sheet_y":54,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Older Man","b":"1F474","d":true,"e":true,"f":true,"h":true,"j":["human","male","men","old","elder","senior"],"k":[22,49],"o":2},"twisted_rightwards_arrows":{"a":"Twisted Rightwards Arrows","b":"1F500","d":true,"e":true,"f":true,"h":true,"j":["blue-square","shuffle","music","random"],"k":[27,28],"o":2},"fried_shrimp":{"a":"Fried Shrimp","b":"1F364","d":true,"e":true,"f":true,"h":true,"j":["food","animal","appetizer","summer"],"k":[7,3],"o":2},"anguished":{"a":"Anguished Face","b":"1F627","d":true,"e":true,"f":true,"h":true,"j":["face","stunned","nervous"],"k":[31,17],"l":["D:"],"o":2},"repeat":{"a":"Clockwise Rightwards and Leftwards Open Circle Arrows","b":"1F501","d":true,"e":true,"f":true,"h":true,"j":["loop","record"],"k":[27,29],"o":2},"fish_cake":{"a":"Fish Cake with Swirl Design","b":"1F365","d":true,"e":true,"f":true,"h":true,"j":["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],"k":[7,4],"o":2},"fax":{"a":"Fax Machine","b":"1F4E0","d":true,"e":true,"f":true,"h":true,"j":["communication","technology"],"k":[26,54],"o":2},"older_woman":{"skin_variations":{"1F3FB":{"unified":"1F475-1F3FB","non_qualified":null,"image":"1f475-1f3fb.png","sheet_x":22,"sheet_y":56,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F475-1F3FC","non_qualified":null,"image":"1f475-1f3fc.png","sheet_x":23,"sheet_y":0,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F475-1F3FD","non_qualified":null,"image":"1f475-1f3fd.png","sheet_x":23,"sheet_y":1,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F475-1F3FE","non_qualified":null,"image":"1f475-1f3fe.png","sheet_x":23,"sheet_y":2,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F475-1F3FF","non_qualified":null,"image":"1f475-1f3ff.png","sheet_x":23,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Older Woman","b":"1F475","d":true,"e":true,"f":true,"h":true,"j":["human","female","women","lady","old","elder","senior"],"k":[22,55],"o":2},"flag-ec":{"a":"Ecuador Flag","b":"1F1EA-1F1E8","d":true,"e":true,"f":true,"h":true,"k":[1,40],"o":2},"peacock":{"a":"Peacock","b":"1F99A","d":true,"e":true,"f":true,"h":true,"k":[42,44],"o":11},"fearful":{"a":"Fearful Face","b":"1F628","d":true,"e":true,"f":true,"h":true,"j":["face","scared","terrified","nervous","oops","huh"],"k":[31,18],"o":2},"train":{"a":"Tram Car","b":"1F68B","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle","carriage","public","travel"],"k":[34,10],"o":2},"flower_playing_cards":{"a":"Flower Playing Cards","b":"1F3B4","d":true,"e":true,"f":true,"h":true,"j":["game","sunset","red"],"k":[8,26],"o":2},"repeat_one":{"a":"Clockwise Rightwards and Leftwards Open Circle Arrows with Circled One Overlay","b":"1F502","d":true,"e":true,"f":true,"h":true,"j":["blue-square","loop"],"k":[27,30],"o":2},"moon_cake":{"a":"Moon Cake","b":"1F96E","d":true,"e":true,"f":true,"h":true,"k":[42,4],"o":11},"performing_arts":{"a":"Performing Arts","b":"1F3AD","d":true,"e":true,"f":true,"h":true,"j":["acting","theater","drama"],"k":[8,19],"o":2},"cold_sweat":{"a":"Face with Open Mouth and Cold Sweat","b":"1F630","d":true,"e":true,"f":true,"h":true,"j":["face","nervous","sweat"],"k":[31,26],"o":2},"person_frowning":{"skin_variations":{"1F3FB":{"unified":"1F64D-1F3FB","non_qualified":null,"image":"1f64d-1f3fb.png","sheet_x":33,"sheet_y":27,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F64D-1F3FC","non_qualified":null,"image":"1f64d-1f3fc.png","sheet_x":33,"sheet_y":28,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F64D-1F3FD","non_qualified":null,"image":"1f64d-1f3fd.png","sheet_x":33,"sheet_y":29,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F64D-1F3FE","non_qualified":null,"image":"1f64d-1f3fe.png","sheet_x":33,"sheet_y":30,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F64D-1F3FF","non_qualified":null,"image":"1f64d-1f3ff.png","sheet_x":33,"sheet_y":31,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F64D-200D-2640-FE0F","a":"Person Frowning","b":"1F64D","d":true,"e":true,"f":true,"h":false,"k":[33,26],"o":2},"flag-ee":{"a":"Estonia Flag","b":"1F1EA-1F1EA","d":true,"e":true,"f":true,"h":true,"k":[1,41],"o":2},"battery":{"a":"Battery","b":"1F50B","d":true,"e":true,"f":true,"h":true,"j":["power","energy","sustain"],"k":[27,39],"o":2},"parrot":{"a":"Parrot","b":"1F99C","d":true,"e":true,"f":true,"h":true,"k":[42,46],"o":11},"bus":{"a":"Bus","b":"1F68C","d":true,"e":true,"f":true,"h":true,"j":["car","vehicle","transportation"],"k":[34,11],"o":2},"flag-eg":{"a":"Egypt Flag","b":"1F1EA-1F1EC","d":true,"e":true,"f":true,"h":true,"k":[1,42],"o":2},"arrow_forward":{"a":"Black Right-Pointing Triangle","b":"25B6-FE0F","c":"25B6","d":true,"e":true,"f":true,"h":true,"j":["blue-square","right","direction","play"],"k":[52,43],"o":2},"man-frowning":{"skin_variations":{"1F3FB":{"unified":"1F64D-1F3FB-200D-2642-FE0F","non_qualified":"1F64D-1F3FB-200D-2642","image":"1f64d-1f3fb-200d-2642-fe0f.png","sheet_x":33,"sheet_y":21,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64D-1F3FC-200D-2642-FE0F","non_qualified":"1F64D-1F3FC-200D-2642","image":"1f64d-1f3fc-200d-2642-fe0f.png","sheet_x":33,"sheet_y":22,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64D-1F3FD-200D-2642-FE0F","non_qualified":"1F64D-1F3FD-200D-2642","image":"1f64d-1f3fd-200d-2642-fe0f.png","sheet_x":33,"sheet_y":23,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64D-1F3FE-200D-2642-FE0F","non_qualified":"1F64D-1F3FE-200D-2642","image":"1f64d-1f3fe-200d-2642-fe0f.png","sheet_x":33,"sheet_y":24,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64D-1F3FF-200D-2642-FE0F","non_qualified":"1F64D-1F3FF-200D-2642","image":"1f64d-1f3ff-200d-2642-fe0f.png","sheet_x":33,"sheet_y":25,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Frowning","b":"1F64D-200D-2642-FE0F","c":"1F64D-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[33,20],"o":4},"disappointed_relieved":{"a":"Disappointed but Relieved Face","b":"1F625","d":true,"e":true,"f":true,"h":true,"j":["face","phew","sweat","nervous"],"k":[31,15],"o":2},"electric_plug":{"a":"Electric Plug","b":"1F50C","d":true,"e":true,"f":true,"h":true,"j":["charger","power"],"k":[27,40],"o":2},"frame_with_picture":{"a":"Frame with Picture","b":"1F5BC-FE0F","c":"1F5BC","d":true,"e":true,"f":true,"h":true,"k":[30,14],"o":2},"oncoming_bus":{"a":"Oncoming Bus","b":"1F68D","d":true,"e":true,"f":true,"h":true,"j":["vehicle","transportation"],"k":[34,12],"o":2},"dango":{"a":"Dango","b":"1F361","d":true,"e":true,"f":true,"h":true,"j":["food","dessert","sweet","japanese","barbecue","meat"],"k":[7,0],"o":2},"frog":{"a":"Frog Face","b":"1F438","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","croak","toad"],"k":[12,28],"o":2},"computer":{"a":"Personal Computer","b":"1F4BB","d":true,"e":true,"f":true,"h":true,"j":["technology","laptop","screen","display","monitor"],"k":[26,17],"o":2},"art":{"a":"Artist Palette","b":"1F3A8","d":true,"e":true,"f":true,"h":true,"j":["design","paint","draw","colors"],"k":[8,14],"o":2},"flag-eh":{"a":"Western Sahara Flag","b":"1F1EA-1F1ED","d":true,"e":true,"f":true,"h":true,"k":[1,43],"o":2},"fast_forward":{"a":"Black Right-Pointing Double Triangle","b":"23E9","d":true,"e":true,"f":true,"h":true,"j":["blue-square","play","speed","continue"],"k":[52,26],"o":2},"cry":{"a":"Crying Face","b":"1F622","d":true,"e":true,"f":true,"h":true,"j":["face","tears","sad","depressed","upset",":\'("],"k":[31,12],"l":[":\'("],"m":":\'(","o":2},"woman-frowning":{"skin_variations":{"1F3FB":{"unified":"1F64D-1F3FB-200D-2640-FE0F","non_qualified":"1F64D-1F3FB-200D-2640","image":"1f64d-1f3fb-200d-2640-fe0f.png","sheet_x":33,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64D-1F3FC-200D-2640-FE0F","non_qualified":"1F64D-1F3FC-200D-2640","image":"1f64d-1f3fc-200d-2640-fe0f.png","sheet_x":33,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64D-1F3FD-200D-2640-FE0F","non_qualified":"1F64D-1F3FD-200D-2640","image":"1f64d-1f3fd-200d-2640-fe0f.png","sheet_x":33,"sheet_y":17,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64D-1F3FE-200D-2640-FE0F","non_qualified":"1F64D-1F3FE-200D-2640","image":"1f64d-1f3fe-200d-2640-fe0f.png","sheet_x":33,"sheet_y":18,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64D-1F3FF-200D-2640-FE0F","non_qualified":"1F64D-1F3FF-200D-2640","image":"1f64d-1f3ff-200d-2640-fe0f.png","sheet_x":33,"sheet_y":19,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F64D","a":"Woman Frowning","b":"1F64D-200D-2640-FE0F","c":"1F64D-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[33,14],"o":4},"trolleybus":{"a":"Trolleybus","b":"1F68E","d":true,"e":true,"f":true,"h":true,"j":["bart","transportation","vehicle"],"k":[34,13],"o":2},"crocodile":{"a":"Crocodile","b":"1F40A","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","reptile","lizard","alligator"],"k":[11,38],"o":2},"dumpling":{"a":"Dumpling","b":"1F95F","d":true,"e":true,"f":true,"h":true,"k":[41,46],"o":5},"black_right_pointing_double_triangle_with_vertical_bar":{"a":"Black Right Pointing Double Triangle with Vertical Bar","b":"23ED-FE0F","c":"23ED","d":true,"e":true,"f":true,"h":true,"k":[52,30],"o":2},"desktop_computer":{"a":"Desktop Computer","b":"1F5A5-FE0F","c":"1F5A5","d":true,"e":true,"f":true,"h":true,"j":["technology","computing","screen"],"k":[30,10],"o":2},"person_with_pouting_face":{"skin_variations":{"1F3FB":{"unified":"1F64E-1F3FB","non_qualified":null,"image":"1f64e-1f3fb.png","sheet_x":33,"sheet_y":45,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F64E-1F3FC","non_qualified":null,"image":"1f64e-1f3fc.png","sheet_x":33,"sheet_y":46,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F64E-1F3FD","non_qualified":null,"image":"1f64e-1f3fd.png","sheet_x":33,"sheet_y":47,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F64E-1F3FE","non_qualified":null,"image":"1f64e-1f3fe.png","sheet_x":33,"sheet_y":48,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F64E-1F3FF","non_qualified":null,"image":"1f64e-1f3ff.png","sheet_x":33,"sheet_y":49,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F64E-200D-2640-FE0F","a":"Person with Pouting Face","b":"1F64E","d":true,"e":true,"f":true,"h":false,"k":[33,44],"o":2},"turtle":{"a":"Turtle","b":"1F422","d":true,"e":true,"f":true,"h":true,"j":["animal","slow","nature","tortoise"],"k":[12,6],"o":2},"sob":{"a":"Loudly Crying Face","b":"1F62D","d":true,"e":true,"f":true,"h":true,"j":["face","cry","tears","sad","upset","depressed"],"k":[31,23],"m":":\'(","o":2},"flag-er":{"a":"Eritrea Flag","b":"1F1EA-1F1F7","d":true,"e":true,"f":true,"h":true,"k":[1,44],"o":2},"thread":{"a":"Spool of Thread","b":"1F9F5","d":true,"e":true,"f":true,"h":true,"k":[51,40],"o":11},"minibus":{"a":"Minibus","b":"1F690","d":true,"e":true,"f":true,"h":true,"j":["vehicle","car","transportation"],"k":[34,15],"o":2},"fortune_cookie":{"a":"Fortune Cookie","b":"1F960","d":true,"e":true,"f":true,"h":true,"k":[41,47],"o":5},"yarn":{"a":"Ball of Yarn","b":"1F9F6","d":true,"e":true,"f":true,"h":true,"k":[51,41],"o":11},"takeout_box":{"a":"Takeout Box","b":"1F961","d":true,"e":true,"f":true,"h":true,"k":[41,48],"o":5},"man-pouting":{"skin_variations":{"1F3FB":{"unified":"1F64E-1F3FB-200D-2642-FE0F","non_qualified":"1F64E-1F3FB-200D-2642","image":"1f64e-1f3fb-200d-2642-fe0f.png","sheet_x":33,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64E-1F3FC-200D-2642-FE0F","non_qualified":"1F64E-1F3FC-200D-2642","image":"1f64e-1f3fc-200d-2642-fe0f.png","sheet_x":33,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64E-1F3FD-200D-2642-FE0F","non_qualified":"1F64E-1F3FD-200D-2642","image":"1f64e-1f3fd-200d-2642-fe0f.png","sheet_x":33,"sheet_y":41,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64E-1F3FE-200D-2642-FE0F","non_qualified":"1F64E-1F3FE-200D-2642","image":"1f64e-1f3fe-200d-2642-fe0f.png","sheet_x":33,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64E-1F3FF-200D-2642-FE0F","non_qualified":"1F64E-1F3FF-200D-2642","image":"1f64e-1f3ff-200d-2642-fe0f.png","sheet_x":33,"sheet_y":43,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Pouting","b":"1F64E-200D-2642-FE0F","c":"1F64E-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[33,38],"o":4},"printer":{"a":"Printer","b":"1F5A8-FE0F","c":"1F5A8","d":true,"e":true,"f":true,"h":true,"j":["paper","ink"],"k":[30,11],"o":2},"scream":{"a":"Face Screaming in Fear","b":"1F631","d":true,"e":true,"f":true,"h":true,"j":["face","munch","scared","omg"],"k":[31,27],"o":2},"es":{"a":"Spain Flag","b":"1F1EA-1F1F8","d":true,"e":true,"f":true,"h":true,"j":["spain","flag","nation","country","banner"],"k":[1,45],"n":["flag-es"],"o":2},"ambulance":{"a":"Ambulance","b":"1F691","d":true,"e":true,"f":true,"h":true,"j":["health","911","hospital"],"k":[34,16],"o":2},"black_right_pointing_triangle_with_double_vertical_bar":{"a":"Black Right Pointing Triangle with Double Vertical Bar","b":"23EF-FE0F","c":"23EF","d":true,"e":true,"f":true,"h":true,"k":[52,32],"o":2},"lizard":{"a":"Lizard","b":"1F98E","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","reptile"],"k":[42,32],"o":4},"flag-et":{"a":"Ethiopia Flag","b":"1F1EA-1F1F9","d":true,"e":true,"f":true,"h":true,"k":[1,46],"o":2},"keyboard":{"a":"Keyboard","b":"2328-FE0F","c":"2328","d":true,"e":true,"f":true,"h":true,"j":["technology","computer","type","input","text"],"k":[52,24],"o":2},"crab":{"a":"Crab","b":"1F980","d":true,"e":true,"f":true,"h":true,"j":["animal","crustacean"],"k":[42,18],"o":2},"confounded":{"a":"Confounded Face","b":"1F616","d":true,"e":true,"f":true,"h":true,"j":["face","confused","sick","unwell","oops",":S"],"k":[31,0],"o":2},"snake":{"a":"Snake","b":"1F40D","d":true,"e":true,"f":true,"h":true,"j":["animal","evil","nature","hiss","python"],"k":[11,41],"o":2},"woman-pouting":{"skin_variations":{"1F3FB":{"unified":"1F64E-1F3FB-200D-2640-FE0F","non_qualified":"1F64E-1F3FB-200D-2640","image":"1f64e-1f3fb-200d-2640-fe0f.png","sheet_x":33,"sheet_y":33,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64E-1F3FC-200D-2640-FE0F","non_qualified":"1F64E-1F3FC-200D-2640","image":"1f64e-1f3fc-200d-2640-fe0f.png","sheet_x":33,"sheet_y":34,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64E-1F3FD-200D-2640-FE0F","non_qualified":"1F64E-1F3FD-200D-2640","image":"1f64e-1f3fd-200d-2640-fe0f.png","sheet_x":33,"sheet_y":35,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64E-1F3FE-200D-2640-FE0F","non_qualified":"1F64E-1F3FE-200D-2640","image":"1f64e-1f3fe-200d-2640-fe0f.png","sheet_x":33,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64E-1F3FF-200D-2640-FE0F","non_qualified":"1F64E-1F3FF-200D-2640","image":"1f64e-1f3ff-200d-2640-fe0f.png","sheet_x":33,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F64E","a":"Woman Pouting","b":"1F64E-200D-2640-FE0F","c":"1F64E-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[33,32],"o":4},"arrow_backward":{"a":"Black Left-Pointing Triangle","b":"25C0-FE0F","c":"25C0","d":true,"e":true,"f":true,"h":true,"j":["blue-square","left","direction"],"k":[52,44],"o":2},"fire_engine":{"a":"Fire Engine","b":"1F692","d":true,"e":true,"f":true,"h":true,"j":["transportation","cars","vehicle"],"k":[34,17],"o":2},"rewind":{"a":"Black Left-Pointing Double Triangle","b":"23EA","d":true,"e":true,"f":true,"h":true,"j":["play","blue-square"],"k":[52,27],"o":2},"three_button_mouse":{"a":"Three Button Mouse","b":"1F5B1-FE0F","c":"1F5B1","d":true,"e":true,"f":true,"h":true,"k":[30,12],"o":2},"no_good":{"skin_variations":{"1F3FB":{"unified":"1F645-1F3FB","non_qualified":null,"image":"1f645-1f3fb.png","sheet_x":32,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F645-1F3FC","non_qualified":null,"image":"1f645-1f3fc.png","sheet_x":32,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F645-1F3FD","non_qualified":null,"image":"1f645-1f3fd.png","sheet_x":32,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F645-1F3FE","non_qualified":null,"image":"1f645-1f3fe.png","sheet_x":32,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F645-1F3FF","non_qualified":null,"image":"1f645-1f3ff.png","sheet_x":32,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F645-200D-2640-FE0F","a":"Face with No Good Gesture","b":"1F645","d":true,"e":true,"f":true,"h":false,"k":[32,2],"o":2},"police_car":{"a":"Police Car","b":"1F693","d":true,"e":true,"f":true,"h":true,"j":["vehicle","cars","transportation","law","legal","enforcement"],"k":[34,18],"o":2},"dragon_face":{"a":"Dragon Face","b":"1F432","d":true,"e":true,"f":true,"h":true,"j":["animal","myth","nature","chinese","green"],"k":[12,22],"o":2},"persevere":{"a":"Persevering Face","b":"1F623","d":true,"e":true,"f":true,"h":true,"j":["face","sick","no","upset","oops"],"k":[31,13],"o":2},"lobster":{"a":"Lobster","b":"1F99E","d":true,"e":true,"f":true,"h":true,"k":[42,48],"o":11},"flag-eu":{"a":"European Union Flag","b":"1F1EA-1F1FA","d":true,"e":true,"f":true,"h":true,"k":[1,47],"o":2},"disappointed":{"a":"Disappointed Face","b":"1F61E","d":true,"e":true,"f":true,"h":true,"j":["face","sad","upset","depressed",":("],"k":[31,8],"l":["):",":(",":-("],"m":":(","o":2},"shrimp":{"a":"Shrimp","b":"1F990","d":true,"e":true,"f":true,"h":true,"j":["animal","ocean","nature","seafood"],"k":[42,34],"o":4},"dragon":{"a":"Dragon","b":"1F409","d":true,"e":true,"f":true,"h":true,"j":["animal","myth","nature","chinese","green"],"k":[11,37],"o":2},"man-gesturing-no":{"skin_variations":{"1F3FB":{"unified":"1F645-1F3FB-200D-2642-FE0F","non_qualified":"1F645-1F3FB-200D-2642","image":"1f645-1f3fb-200d-2642-fe0f.png","sheet_x":31,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F645-1F3FC-200D-2642-FE0F","non_qualified":"1F645-1F3FC-200D-2642","image":"1f645-1f3fc-200d-2642-fe0f.png","sheet_x":31,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F645-1F3FD-200D-2642-FE0F","non_qualified":"1F645-1F3FD-200D-2642","image":"1f645-1f3fd-200d-2642-fe0f.png","sheet_x":31,"sheet_y":56,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F645-1F3FE-200D-2642-FE0F","non_qualified":"1F645-1F3FE-200D-2642","image":"1f645-1f3fe-200d-2642-fe0f.png","sheet_x":32,"sheet_y":0,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F645-1F3FF-200D-2642-FE0F","non_qualified":"1F645-1F3FF-200D-2642","image":"1f645-1f3ff-200d-2642-fe0f.png","sheet_x":32,"sheet_y":1,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Gesturing No","b":"1F645-200D-2642-FE0F","c":"1F645-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[31,53],"o":4},"flag-fi":{"a":"Finland Flag","b":"1F1EB-1F1EE","d":true,"e":true,"f":true,"h":true,"k":[1,48],"o":2},"trackball":{"a":"Trackball","b":"1F5B2-FE0F","c":"1F5B2","d":true,"e":true,"f":true,"h":true,"j":["technology","trackpad"],"k":[30,13],"o":2},"black_left_pointing_double_triangle_with_vertical_bar":{"a":"Black Left Pointing Double Triangle with Vertical Bar","b":"23EE-FE0F","c":"23EE","d":true,"e":true,"f":true,"h":true,"k":[52,31],"o":2},"oncoming_police_car":{"a":"Oncoming Police Car","b":"1F694","d":true,"e":true,"f":true,"h":true,"j":["vehicle","law","legal","enforcement","911"],"k":[34,19],"o":2},"minidisc":{"a":"Minidisc","b":"1F4BD","d":true,"e":true,"f":true,"h":true,"j":["technology","record","data","disk","90s"],"k":[26,19],"o":2},"sweat":{"a":"Face with Cold Sweat","b":"1F613","d":true,"e":true,"f":true,"h":true,"j":["face","hot","sad","tired","exercise"],"k":[30,54],"o":2},"squid":{"a":"Squid","b":"1F991","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","ocean","sea"],"k":[42,35],"o":4},"sauropod":{"a":"Sauropod","b":"1F995","d":true,"e":true,"f":true,"h":true,"k":[42,39],"o":5},"arrow_up_small":{"a":"Up-Pointing Small Red Triangle","b":"1F53C","d":true,"e":true,"f":true,"h":true,"j":["blue-square","triangle","direction","point","forward","top"],"k":[28,31],"o":2},"flag-fj":{"a":"Fiji Flag","b":"1F1EB-1F1EF","d":true,"e":true,"f":true,"h":true,"k":[1,49],"o":2},"woman-gesturing-no":{"skin_variations":{"1F3FB":{"unified":"1F645-1F3FB-200D-2640-FE0F","non_qualified":"1F645-1F3FB-200D-2640","image":"1f645-1f3fb-200d-2640-fe0f.png","sheet_x":31,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F645-1F3FC-200D-2640-FE0F","non_qualified":"1F645-1F3FC-200D-2640","image":"1f645-1f3fc-200d-2640-fe0f.png","sheet_x":31,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F645-1F3FD-200D-2640-FE0F","non_qualified":"1F645-1F3FD-200D-2640","image":"1f645-1f3fd-200d-2640-fe0f.png","sheet_x":31,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F645-1F3FE-200D-2640-FE0F","non_qualified":"1F645-1F3FE-200D-2640","image":"1f645-1f3fe-200d-2640-fe0f.png","sheet_x":31,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F645-1F3FF-200D-2640-FE0F","non_qualified":"1F645-1F3FF-200D-2640","image":"1f645-1f3ff-200d-2640-fe0f.png","sheet_x":31,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F645","a":"Woman Gesturing No","b":"1F645-200D-2640-FE0F","c":"1F645-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[31,47],"o":4},"taxi":{"a":"Taxi","b":"1F695","d":true,"e":true,"f":true,"h":true,"j":["uber","vehicle","cars","transportation"],"k":[34,20],"o":2},"flag-fk":{"a":"Falkland Islands Flag","b":"1F1EB-1F1F0","d":true,"e":true,"f":true,"h":true,"k":[1,50],"o":2},"floppy_disk":{"a":"Floppy Disk","b":"1F4BE","d":true,"e":true,"f":true,"h":true,"j":["oldschool","technology","save","90s","80s"],"k":[26,20],"o":2},"t-rex":{"a":"T-Rex","b":"1F996","d":true,"e":true,"f":true,"h":true,"k":[42,40],"o":5},"oyster":{"a":"Oyster","b":"1F9AA","d":true,"e":true,"f":true,"h":true,"k":[43,1],"o":12},"arrow_double_up":{"a":"Black Up-Pointing Double Triangle","b":"23EB","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","top"],"k":[52,28],"o":2},"oncoming_taxi":{"a":"Oncoming Taxi","b":"1F696","d":true,"e":true,"f":true,"h":true,"j":["vehicle","cars","uber"],"k":[34,21],"o":2},"ok_woman":{"skin_variations":{"1F3FB":{"unified":"1F646-1F3FB","non_qualified":null,"image":"1f646-1f3fb.png","sheet_x":32,"sheet_y":21,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F646-1F3FC","non_qualified":null,"image":"1f646-1f3fc.png","sheet_x":32,"sheet_y":22,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F646-1F3FD","non_qualified":null,"image":"1f646-1f3fd.png","sheet_x":32,"sheet_y":23,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F646-1F3FE","non_qualified":null,"image":"1f646-1f3fe.png","sheet_x":32,"sheet_y":24,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F646-1F3FF","non_qualified":null,"image":"1f646-1f3ff.png","sheet_x":32,"sheet_y":25,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F646-200D-2640-FE0F","a":"Face with Ok Gesture","b":"1F646","d":true,"e":true,"f":true,"h":false,"j":["women","girl","female","pink","human","woman"],"k":[32,20],"o":2},"weary":{"a":"Weary Face","b":"1F629","d":true,"e":true,"f":true,"h":true,"j":["face","tired","sleepy","sad","frustrated","upset"],"k":[31,19],"o":2},"man-gesturing-ok":{"skin_variations":{"1F3FB":{"unified":"1F646-1F3FB-200D-2642-FE0F","non_qualified":"1F646-1F3FB-200D-2642","image":"1f646-1f3fb-200d-2642-fe0f.png","sheet_x":32,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F646-1F3FC-200D-2642-FE0F","non_qualified":"1F646-1F3FC-200D-2642","image":"1f646-1f3fc-200d-2642-fe0f.png","sheet_x":32,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F646-1F3FD-200D-2642-FE0F","non_qualified":"1F646-1F3FD-200D-2642","image":"1f646-1f3fd-200d-2642-fe0f.png","sheet_x":32,"sheet_y":17,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F646-1F3FE-200D-2642-FE0F","non_qualified":"1F646-1F3FE-200D-2642","image":"1f646-1f3fe-200d-2642-fe0f.png","sheet_x":32,"sheet_y":18,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F646-1F3FF-200D-2642-FE0F","non_qualified":"1F646-1F3FF-200D-2642","image":"1f646-1f3ff-200d-2642-fe0f.png","sheet_x":32,"sheet_y":19,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Gesturing Ok","b":"1F646-200D-2642-FE0F","c":"1F646-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[32,14],"o":4},"arrow_down_small":{"a":"Down-Pointing Small Red Triangle","b":"1F53D","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","bottom"],"k":[28,32],"o":2},"tired_face":{"a":"Tired Face","b":"1F62B","d":true,"e":true,"f":true,"h":true,"j":["sick","whine","upset","frustrated"],"k":[31,21],"o":2},"car":{"a":"Automobile","b":"1F697","d":true,"e":true,"f":true,"h":true,"k":[34,22],"n":["red_car"],"o":2},"icecream":{"a":"Soft Ice Cream","b":"1F366","d":true,"e":true,"f":true,"h":true,"j":["food","hot","dessert","summer"],"k":[7,5],"o":2},"cd":{"a":"Optical Disc","b":"1F4BF","d":true,"e":true,"f":true,"h":true,"j":["technology","dvd","disk","disc","90s"],"k":[26,21],"o":2},"whale":{"a":"Spouting Whale","b":"1F433","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","sea","ocean"],"k":[12,23],"o":2},"flag-fm":{"a":"Micronesia Flag","b":"1F1EB-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[1,51],"o":2},"oncoming_automobile":{"a":"Oncoming Automobile","b":"1F698","d":true,"e":true,"f":true,"h":true,"j":["car","vehicle","transportation"],"k":[34,23],"o":2},"arrow_double_down":{"a":"Black Down-Pointing Double Triangle","b":"23EC","d":true,"e":true,"f":true,"h":true,"j":["blue-square","direction","bottom"],"k":[52,29],"o":2},"woman-gesturing-ok":{"skin_variations":{"1F3FB":{"unified":"1F646-1F3FB-200D-2640-FE0F","non_qualified":"1F646-1F3FB-200D-2640","image":"1f646-1f3fb-200d-2640-fe0f.png","sheet_x":32,"sheet_y":9,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F646-1F3FC-200D-2640-FE0F","non_qualified":"1F646-1F3FC-200D-2640","image":"1f646-1f3fc-200d-2640-fe0f.png","sheet_x":32,"sheet_y":10,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F646-1F3FD-200D-2640-FE0F","non_qualified":"1F646-1F3FD-200D-2640","image":"1f646-1f3fd-200d-2640-fe0f.png","sheet_x":32,"sheet_y":11,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F646-1F3FE-200D-2640-FE0F","non_qualified":"1F646-1F3FE-200D-2640","image":"1f646-1f3fe-200d-2640-fe0f.png","sheet_x":32,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F646-1F3FF-200D-2640-FE0F","non_qualified":"1F646-1F3FF-200D-2640","image":"1f646-1f3ff-200d-2640-fe0f.png","sheet_x":32,"sheet_y":13,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F646","a":"Woman Gesturing Ok","b":"1F646-200D-2640-FE0F","c":"1F646-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[32,8],"o":4},"yawning_face":{"a":"Yawning Face","b":"1F971","d":true,"e":true,"f":true,"h":true,"k":[42,7],"o":12},"dvd":{"a":"Dvd","b":"1F4C0","d":true,"e":true,"f":true,"h":true,"j":["cd","disk","disc"],"k":[26,22],"o":2},"whale2":{"a":"Whale","b":"1F40B","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","sea","ocean"],"k":[11,39],"o":2},"flag-fo":{"a":"Faroe Islands Flag","b":"1F1EB-1F1F4","d":true,"e":true,"f":true,"h":true,"k":[1,52],"o":2},"shaved_ice":{"a":"Shaved Ice","b":"1F367","d":true,"e":true,"f":true,"h":true,"j":["hot","dessert","summer"],"k":[7,6],"o":2},"double_vertical_bar":{"a":"Double Vertical Bar","b":"23F8-FE0F","c":"23F8","d":true,"e":true,"f":true,"h":true,"k":[52,37],"o":2},"information_desk_person":{"skin_variations":{"1F3FB":{"unified":"1F481-1F3FB","non_qualified":null,"image":"1f481-1f3fb.png","sheet_x":24,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F481-1F3FC","non_qualified":null,"image":"1f481-1f3fc.png","sheet_x":24,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F481-1F3FD","non_qualified":null,"image":"1f481-1f3fd.png","sheet_x":24,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F481-1F3FE","non_qualified":null,"image":"1f481-1f3fe.png","sheet_x":24,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F481-1F3FF","non_qualified":null,"image":"1f481-1f3ff.png","sheet_x":24,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F481-200D-2640-FE0F","a":"Information Desk Person","b":"1F481","d":true,"e":true,"f":true,"h":false,"k":[24,2],"o":2},"dolphin":{"a":"Dolphin","b":"1F42C","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","fish","sea","ocean","flipper","fins","beach"],"k":[12,16],"n":["flipper"],"o":2},"blue_car":{"a":"Recreational Vehicle","b":"1F699","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle"],"k":[34,24],"o":2},"ice_cream":{"a":"Ice Cream","b":"1F368","d":true,"e":true,"f":true,"h":true,"j":["food","hot","dessert"],"k":[7,7],"o":2},"fr":{"a":"France Flag","b":"1F1EB-1F1F7","d":true,"e":true,"f":true,"h":true,"j":["banner","flag","nation","france","french","country"],"k":[1,53],"n":["flag-fr"],"o":2},"triumph":{"a":"Face with Look of Triumph","b":"1F624","d":true,"e":true,"f":true,"h":true,"j":["face","gas","phew","proud","pride"],"k":[31,14],"o":2},"abacus":{"a":"Abacus","b":"1F9EE","d":true,"e":true,"f":true,"h":true,"k":[51,33],"o":11},"man-tipping-hand":{"skin_variations":{"1F3FB":{"unified":"1F481-1F3FB-200D-2642-FE0F","non_qualified":"1F481-1F3FB-200D-2642","image":"1f481-1f3fb-200d-2642-fe0f.png","sheet_x":23,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F481-1F3FC-200D-2642-FE0F","non_qualified":"1F481-1F3FC-200D-2642","image":"1f481-1f3fc-200d-2642-fe0f.png","sheet_x":23,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F481-1F3FD-200D-2642-FE0F","non_qualified":"1F481-1F3FD-200D-2642","image":"1f481-1f3fd-200d-2642-fe0f.png","sheet_x":23,"sheet_y":56,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F481-1F3FE-200D-2642-FE0F","non_qualified":"1F481-1F3FE-200D-2642","image":"1f481-1f3fe-200d-2642-fe0f.png","sheet_x":24,"sheet_y":0,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F481-1F3FF-200D-2642-FE0F","non_qualified":"1F481-1F3FF-200D-2642","image":"1f481-1f3ff-200d-2642-fe0f.png","sheet_x":24,"sheet_y":1,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Tipping Hand","b":"1F481-200D-2642-FE0F","c":"1F481-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[23,53],"o":4},"doughnut":{"a":"Doughnut","b":"1F369","d":true,"e":true,"f":true,"h":true,"j":["food","dessert","snack","sweet","donut"],"k":[7,8],"o":2},"fish":{"a":"Fish","b":"1F41F","d":true,"e":true,"f":true,"h":true,"j":["animal","food","nature"],"k":[12,3],"o":2},"truck":{"a":"Delivery Truck","b":"1F69A","d":true,"e":true,"f":true,"h":true,"j":["cars","transportation"],"k":[34,25],"o":2},"movie_camera":{"a":"Movie Camera","b":"1F3A5","d":true,"e":true,"f":true,"h":true,"j":["film","record"],"k":[8,11],"o":2},"flag-ga":{"a":"Gabon Flag","b":"1F1EC-1F1E6","d":true,"e":true,"f":true,"h":true,"k":[1,54],"o":2},"rage":{"a":"Pouting Face","b":"1F621","d":true,"e":true,"f":true,"h":true,"j":["angry","mad","hate","despise"],"k":[31,11],"o":2},"black_square_for_stop":{"a":"Black Square for Stop","b":"23F9-FE0F","c":"23F9","d":true,"e":true,"f":true,"h":true,"k":[52,38],"o":2},"articulated_lorry":{"a":"Articulated Lorry","b":"1F69B","d":true,"e":true,"f":true,"h":true,"j":["vehicle","cars","transportation","express"],"k":[34,26],"o":2},"angry":{"a":"Angry Face","b":"1F620","d":true,"e":true,"f":true,"h":true,"j":["mad","face","annoyed","frustrated"],"k":[31,10],"l":[">:(",">:-("],"o":2},"cookie":{"a":"Cookie","b":"1F36A","d":true,"e":true,"f":true,"h":true,"j":["food","snack","oreo","chocolate","sweet","dessert"],"k":[7,9],"o":2},"gb":{"a":"United Kingdom Flag","b":"1F1EC-1F1E7","d":true,"e":true,"f":true,"h":true,"k":[1,55],"n":["uk","flag-gb"],"o":2},"tropical_fish":{"a":"Tropical Fish","b":"1F420","d":true,"e":true,"f":true,"h":true,"j":["animal","swim","ocean","beach","nemo"],"k":[12,4],"o":2},"woman-tipping-hand":{"skin_variations":{"1F3FB":{"unified":"1F481-1F3FB-200D-2640-FE0F","non_qualified":"1F481-1F3FB-200D-2640","image":"1f481-1f3fb-200d-2640-fe0f.png","sheet_x":23,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F481-1F3FC-200D-2640-FE0F","non_qualified":"1F481-1F3FC-200D-2640","image":"1f481-1f3fc-200d-2640-fe0f.png","sheet_x":23,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F481-1F3FD-200D-2640-FE0F","non_qualified":"1F481-1F3FD-200D-2640","image":"1f481-1f3fd-200d-2640-fe0f.png","sheet_x":23,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F481-1F3FE-200D-2640-FE0F","non_qualified":"1F481-1F3FE-200D-2640","image":"1f481-1f3fe-200d-2640-fe0f.png","sheet_x":23,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F481-1F3FF-200D-2640-FE0F","non_qualified":"1F481-1F3FF-200D-2640","image":"1f481-1f3ff-200d-2640-fe0f.png","sheet_x":23,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F481","a":"Woman Tipping Hand","b":"1F481-200D-2640-FE0F","c":"1F481-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[23,47],"o":4},"black_circle_for_record":{"a":"Black Circle for Record","b":"23FA-FE0F","c":"23FA","d":true,"e":true,"f":true,"h":true,"k":[52,39],"o":2},"film_frames":{"a":"Film Frames","b":"1F39E-FE0F","c":"1F39E","d":true,"e":true,"f":true,"h":true,"k":[8,4],"o":2},"film_projector":{"a":"Film Projector","b":"1F4FD-FE0F","c":"1F4FD","d":true,"e":true,"f":true,"h":true,"j":["video","tape","record","movie"],"k":[27,26],"o":2},"flag-gd":{"a":"Grenada Flag","b":"1F1EC-1F1E9","d":true,"e":true,"f":true,"h":true,"k":[1,56],"o":2},"blowfish":{"a":"Blowfish","b":"1F421","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","food","sea","ocean"],"k":[12,5],"o":2},"face_with_symbols_on_mouth":{"a":"Serious Face with Symbols Covering Mouth","b":"1F92C","d":true,"e":true,"f":true,"h":true,"k":[38,46],"n":["serious_face_with_symbols_covering_mouth"],"o":5},"birthday":{"a":"Birthday Cake","b":"1F382","d":true,"e":true,"f":true,"h":true,"j":["food","dessert","cake"],"k":[7,33],"o":2},"eject":{"a":"Eject","b":"23CF-FE0F","c":"23CF","d":true,"e":true,"f":true,"h":true,"k":[52,25],"o":2},"raising_hand":{"skin_variations":{"1F3FB":{"unified":"1F64B-1F3FB","non_qualified":null,"image":"1f64b-1f3fb.png","sheet_x":33,"sheet_y":3,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F64B-1F3FC","non_qualified":null,"image":"1f64b-1f3fc.png","sheet_x":33,"sheet_y":4,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F64B-1F3FD","non_qualified":null,"image":"1f64b-1f3fd.png","sheet_x":33,"sheet_y":5,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F64B-1F3FE","non_qualified":null,"image":"1f64b-1f3fe.png","sheet_x":33,"sheet_y":6,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F64B-1F3FF","non_qualified":null,"image":"1f64b-1f3ff.png","sheet_x":33,"sheet_y":7,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F64B-200D-2640-FE0F","a":"Happy Person Raising One Hand","b":"1F64B","d":true,"e":true,"f":true,"h":false,"k":[33,2],"o":2},"tractor":{"a":"Tractor","b":"1F69C","d":true,"e":true,"f":true,"h":true,"j":["vehicle","car","farming","agriculture"],"k":[34,27],"o":2},"flag-ge":{"a":"Georgia Flag","b":"1F1EC-1F1EA","d":true,"e":true,"f":true,"h":true,"k":[2,0],"o":2},"smiling_imp":{"a":"Smiling Face with Horns","b":"1F608","d":true,"e":true,"f":true,"h":true,"j":["devil","horns"],"k":[30,43],"o":2},"racing_car":{"a":"Racing Car","b":"1F3CE-FE0F","c":"1F3CE","d":true,"e":true,"f":true,"h":true,"j":["sports","race","fast","formula","f1"],"k":[10,33],"o":2},"cinema":{"a":"Cinema","b":"1F3A6","d":true,"e":true,"f":true,"h":true,"j":["blue-square","record","film","movie","curtain","stage","theater"],"k":[8,12],"o":2},"clapper":{"a":"Clapper Board","b":"1F3AC","d":true,"e":true,"f":true,"h":true,"j":["movie","film","record"],"k":[8,18],"o":2},"shark":{"a":"Shark","b":"1F988","d":true,"e":true,"f":true,"h":true,"j":["animal","nature","fish","sea","ocean","jaws","fins","beach"],"k":[42,26],"o":4},"cake":{"a":"Shortcake","b":"1F370","d":true,"e":true,"f":true,"h":true,"j":["food","dessert"],"k":[7,15],"o":2},"man-raising-hand":{"skin_variations":{"1F3FB":{"unified":"1F64B-1F3FB-200D-2642-FE0F","non_qualified":"1F64B-1F3FB-200D-2642","image":"1f64b-1f3fb-200d-2642-fe0f.png","sheet_x":32,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64B-1F3FC-200D-2642-FE0F","non_qualified":"1F64B-1F3FC-200D-2642","image":"1f64b-1f3fc-200d-2642-fe0f.png","sheet_x":32,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64B-1F3FD-200D-2642-FE0F","non_qualified":"1F64B-1F3FD-200D-2642","image":"1f64b-1f3fd-200d-2642-fe0f.png","sheet_x":32,"sheet_y":56,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64B-1F3FE-200D-2642-FE0F","non_qualified":"1F64B-1F3FE-200D-2642","image":"1f64b-1f3fe-200d-2642-fe0f.png","sheet_x":33,"sheet_y":0,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64B-1F3FF-200D-2642-FE0F","non_qualified":"1F64B-1F3FF-200D-2642","image":"1f64b-1f3ff-200d-2642-fe0f.png","sheet_x":33,"sheet_y":1,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Raising Hand","b":"1F64B-200D-2642-FE0F","c":"1F64B-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[32,53],"o":4},"octopus":{"a":"Octopus","b":"1F419","d":true,"e":true,"f":true,"h":true,"j":["animal","creature","ocean","sea","nature","beach"],"k":[11,54],"o":2},"woman-raising-hand":{"skin_variations":{"1F3FB":{"unified":"1F64B-1F3FB-200D-2640-FE0F","non_qualified":"1F64B-1F3FB-200D-2640","image":"1f64b-1f3fb-200d-2640-fe0f.png","sheet_x":32,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F64B-1F3FC-200D-2640-FE0F","non_qualified":"1F64B-1F3FC-200D-2640","image":"1f64b-1f3fc-200d-2640-fe0f.png","sheet_x":32,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F64B-1F3FD-200D-2640-FE0F","non_qualified":"1F64B-1F3FD-200D-2640","image":"1f64b-1f3fd-200d-2640-fe0f.png","sheet_x":32,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F64B-1F3FE-200D-2640-FE0F","non_qualified":"1F64B-1F3FE-200D-2640","image":"1f64b-1f3fe-200d-2640-fe0f.png","sheet_x":32,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F64B-1F3FF-200D-2640-FE0F","non_qualified":"1F64B-1F3FF-200D-2640","image":"1f64b-1f3ff-200d-2640-fe0f.png","sheet_x":32,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F64B","a":"Woman Raising Hand","b":"1F64B-200D-2640-FE0F","c":"1F64B-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[32,47],"o":4},"flag-gf":{"a":"French Guiana Flag","b":"1F1EC-1F1EB","d":true,"e":true,"f":true,"h":true,"k":[2,1],"o":2},"tv":{"a":"Television","b":"1F4FA","d":true,"e":true,"f":true,"h":true,"j":["technology","program","oldschool","show","television"],"k":[27,23],"o":2},"imp":{"a":"Imp","b":"1F47F","d":true,"e":true,"f":true,"h":true,"j":["devil","angry","horns"],"k":[23,45],"o":2},"cupcake":{"a":"Cupcake","b":"1F9C1","d":true,"e":true,"f":true,"h":true,"k":[44,9],"o":11},"racing_motorcycle":{"a":"Racing Motorcycle","b":"1F3CD-FE0F","c":"1F3CD","d":true,"e":true,"f":true,"h":true,"k":[10,32],"o":2},"low_brightness":{"a":"Low Brightness Symbol","b":"1F505","d":true,"e":true,"f":true,"h":true,"j":["sun","afternoon","warm","summer"],"k":[27,33],"o":2},"shell":{"a":"Spiral Shell","b":"1F41A","d":true,"e":true,"f":true,"h":true,"j":["nature","sea","beach"],"k":[11,55],"o":2},"flag-gg":{"a":"Guernsey Flag","b":"1F1EC-1F1EC","d":true,"e":true,"f":true,"h":true,"k":[2,2],"o":2},"high_brightness":{"a":"High Brightness Symbol","b":"1F506","d":true,"e":true,"f":true,"h":true,"j":["sun","light"],"k":[27,34],"o":2},"deaf_person":{"skin_variations":{"1F3FB":{"unified":"1F9CF-1F3FB","non_qualified":null,"image":"1f9cf-1f3fb.png","sheet_x":45,"sheet_y":11,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9CF-1F3FC","non_qualified":null,"image":"1f9cf-1f3fc.png","sheet_x":45,"sheet_y":12,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9CF-1F3FD","non_qualified":null,"image":"1f9cf-1f3fd.png","sheet_x":45,"sheet_y":13,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9CF-1F3FE","non_qualified":null,"image":"1f9cf-1f3fe.png","sheet_x":45,"sheet_y":14,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9CF-1F3FF","non_qualified":null,"image":"1f9cf-1f3ff.png","sheet_x":45,"sheet_y":15,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Deaf Person","b":"1F9CF","d":true,"e":true,"f":true,"h":true,"k":[45,10],"o":12},"skull":{"a":"Skull","b":"1F480","d":true,"e":true,"f":true,"h":true,"j":["dead","skeleton","creepy","death"],"k":[23,46],"o":2},"motor_scooter":{"a":"Motor Scooter","b":"1F6F5","d":true,"e":true,"f":true,"h":true,"j":["vehicle","vespa","sasha"],"k":[36,54],"o":4},"camera":{"a":"Camera","b":"1F4F7","d":true,"e":true,"f":true,"h":true,"j":["gadgets","photography"],"k":[27,20],"o":2},"pie":{"a":"Pie","b":"1F967","d":true,"e":true,"f":true,"h":true,"k":[41,54],"o":5},"flag-gh":{"a":"Ghana Flag","b":"1F1EC-1F1ED","d":true,"e":true,"f":true,"h":true,"k":[2,3],"o":2},"deaf_man":{"skin_variations":{"1F3FB":{"unified":"1F9CF-1F3FB-200D-2642-FE0F","non_qualified":"1F9CF-1F3FB-200D-2642","image":"1f9cf-1f3fb-200d-2642-fe0f.png","sheet_x":45,"sheet_y":5,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9CF-1F3FC-200D-2642-FE0F","non_qualified":"1F9CF-1F3FC-200D-2642","image":"1f9cf-1f3fc-200d-2642-fe0f.png","sheet_x":45,"sheet_y":6,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9CF-1F3FD-200D-2642-FE0F","non_qualified":"1F9CF-1F3FD-200D-2642","image":"1f9cf-1f3fd-200d-2642-fe0f.png","sheet_x":45,"sheet_y":7,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9CF-1F3FE-200D-2642-FE0F","non_qualified":"1F9CF-1F3FE-200D-2642","image":"1f9cf-1f3fe-200d-2642-fe0f.png","sheet_x":45,"sheet_y":8,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9CF-1F3FF-200D-2642-FE0F","non_qualified":"1F9CF-1F3FF-200D-2642","image":"1f9cf-1f3ff-200d-2642-fe0f.png","sheet_x":45,"sheet_y":9,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Deaf Man","b":"1F9CF-200D-2642-FE0F","c":"1F9CF-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[45,4],"o":12},"skull_and_crossbones":{"a":"Skull and Crossbones","b":"2620-FE0F","c":"2620","d":true,"e":true,"f":true,"h":true,"j":["poison","danger","deadly","scary","death","pirate","evil"],"k":[53,8],"o":2},"camera_with_flash":{"a":"Camera with Flash","b":"1F4F8","d":true,"e":true,"f":true,"h":true,"k":[27,21],"o":2},"signal_strength":{"a":"Antenna with Bars","b":"1F4F6","d":true,"e":true,"f":true,"h":true,"j":["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],"k":[27,19],"o":2},"chocolate_bar":{"a":"Chocolate Bar","b":"1F36B","d":true,"e":true,"f":true,"h":true,"j":["food","snack","dessert","sweet"],"k":[7,10],"o":2},"manual_wheelchair":{"a":"Manual Wheelchair","b":"1F9BD","d":true,"e":true,"f":true,"h":true,"k":[44,5],"o":12},"snail":{"a":"Snail","b":"1F40C","d":true,"e":true,"f":true,"h":true,"j":["slow","animal","shell"],"k":[11,40],"o":2},"motorized_wheelchair":{"a":"Motorized Wheelchair","b":"1F9BC","d":true,"e":true,"f":true,"h":true,"k":[44,4],"o":12},"flag-gi":{"a":"Gibraltar Flag","b":"1F1EC-1F1EE","d":true,"e":true,"f":true,"h":true,"k":[2,4],"o":2},"hankey":{"a":"Pile of Poo","b":"1F4A9","d":true,"e":true,"f":true,"h":true,"k":[25,51],"n":["poop","shit"],"o":2},"vibration_mode":{"a":"Vibration Mode","b":"1F4F3","d":true,"e":true,"f":true,"h":true,"j":["orange-square","phone"],"k":[27,16],"o":2},"deaf_woman":{"skin_variations":{"1F3FB":{"unified":"1F9CF-1F3FB-200D-2640-FE0F","non_qualified":"1F9CF-1F3FB-200D-2640","image":"1f9cf-1f3fb-200d-2640-fe0f.png","sheet_x":44,"sheet_y":56,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F9CF-1F3FC-200D-2640-FE0F","non_qualified":"1F9CF-1F3FC-200D-2640","image":"1f9cf-1f3fc-200d-2640-fe0f.png","sheet_x":45,"sheet_y":0,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F9CF-1F3FD-200D-2640-FE0F","non_qualified":"1F9CF-1F3FD-200D-2640","image":"1f9cf-1f3fd-200d-2640-fe0f.png","sheet_x":45,"sheet_y":1,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F9CF-1F3FE-200D-2640-FE0F","non_qualified":"1F9CF-1F3FE-200D-2640","image":"1f9cf-1f3fe-200d-2640-fe0f.png","sheet_x":45,"sheet_y":2,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F9CF-1F3FF-200D-2640-FE0F","non_qualified":"1F9CF-1F3FF-200D-2640","image":"1f9cf-1f3ff-200d-2640-fe0f.png","sheet_x":45,"sheet_y":3,"added_in":"12.1","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Deaf Woman","b":"1F9CF-200D-2640-FE0F","c":"1F9CF-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[44,55],"o":12},"butterfly":{"a":"Butterfly","b":"1F98B","d":true,"e":true,"f":true,"h":true,"j":["animal","insect","nature","caterpillar"],"k":[42,29],"o":4},"video_camera":{"a":"Video Camera","b":"1F4F9","d":true,"e":true,"f":true,"h":true,"j":["film","record"],"k":[27,22],"o":2},"candy":{"a":"Candy","b":"1F36C","d":true,"e":true,"f":true,"h":true,"j":["snack","dessert","sweet","lolly"],"k":[7,11],"o":2},"auto_rickshaw":{"a":"Auto Rickshaw","b":"1F6FA","d":true,"e":true,"f":true,"h":true,"k":[37,2],"o":12},"bow":{"skin_variations":{"1F3FB":{"unified":"1F647-1F3FB","non_qualified":null,"image":"1f647-1f3fb.png","sheet_x":32,"sheet_y":39,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F647-1F3FC","non_qualified":null,"image":"1f647-1f3fc.png","sheet_x":32,"sheet_y":40,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F647-1F3FD","non_qualified":null,"image":"1f647-1f3fd.png","sheet_x":32,"sheet_y":41,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F647-1F3FE","non_qualified":null,"image":"1f647-1f3fe.png","sheet_x":32,"sheet_y":42,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F647-1F3FF","non_qualified":null,"image":"1f647-1f3ff.png","sheet_x":32,"sheet_y":43,"added_in":"2.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"obsoleted_by":"1F647-200D-2642-FE0F","a":"Person Bowing Deeply","b":"1F647","d":true,"e":true,"f":true,"h":false,"k":[32,38],"o":2},"mobile_phone_off":{"a":"Mobile Phone off","b":"1F4F4","d":true,"e":true,"f":true,"h":true,"j":["mute","orange-square","silence","quiet"],"k":[27,17],"o":2},"clown_face":{"a":"Clown Face","b":"1F921","d":true,"e":true,"f":true,"h":true,"j":["face"],"k":[38,18],"o":4},"lollipop":{"a":"Lollipop","b":"1F36D","d":true,"e":true,"f":true,"h":true,"j":["food","snack","candy","sweet"],"k":[7,12],"o":2},"flag-gl":{"a":"Greenland Flag","b":"1F1EC-1F1F1","d":true,"e":true,"f":true,"h":true,"k":[2,5],"o":2},"vhs":{"a":"Videocassette","b":"1F4FC","d":true,"e":true,"f":true,"h":true,"j":["record","video","oldschool","90s","80s"],"k":[27,25],"o":2},"bug":{"a":"Bug","b":"1F41B","d":true,"e":true,"f":true,"h":true,"j":["animal","insect","nature","worm"],"k":[11,56],"o":2},"bike":{"a":"Bicycle","b":"1F6B2","d":true,"e":true,"f":true,"h":true,"j":["sports","bicycle","exercise","hipster"],"k":[35,9],"o":2},"man-bowing":{"skin_variations":{"1F3FB":{"unified":"1F647-1F3FB-200D-2642-FE0F","non_qualified":"1F647-1F3FB-200D-2642","image":"1f647-1f3fb-200d-2642-fe0f.png","sheet_x":32,"sheet_y":33,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F647-1F3FC-200D-2642-FE0F","non_qualified":"1F647-1F3FC-200D-2642","image":"1f647-1f3fc-200d-2642-fe0f.png","sheet_x":32,"sheet_y":34,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F647-1F3FD-200D-2642-FE0F","non_qualified":"1F647-1F3FD-200D-2642","image":"1f647-1f3fd-200d-2642-fe0f.png","sheet_x":32,"sheet_y":35,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F647-1F3FE-200D-2642-FE0F","non_qualified":"1F647-1F3FE-200D-2642","image":"1f647-1f3fe-200d-2642-fe0f.png","sheet_x":32,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F647-1F3FF-200D-2642-FE0F","non_qualified":"1F647-1F3FF-200D-2642","image":"1f647-1f3ff-200d-2642-fe0f.png","sheet_x":32,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"obsoletes":"1F647","a":"Man Bowing","b":"1F647-200D-2642-FE0F","c":"1F647-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[32,32],"o":4},"female_sign":{"a":"Female Sign","b":"2640-FE0F","c":"2640","d":false,"e":true,"f":true,"h":true,"k":[53,18],"o":4},"japanese_ogre":{"a":"Japanese Ogre","b":"1F479","d":true,"e":true,"f":true,"h":true,"j":["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],"k":[23,34],"o":2},"custard":{"a":"Custard","b":"1F36E","d":true,"e":true,"f":true,"h":true,"j":["dessert","food"],"k":[7,13],"o":2},"ant":{"a":"Ant","b":"1F41C","d":true,"e":true,"f":true,"h":true,"j":["animal","insect","nature","bug"],"k":[12,0],"o":2},"mag":{"a":"Left-Pointing Magnifying Glass","b":"1F50D","d":true,"e":true,"f":true,"h":true,"j":["search","zoom","find","detective"],"k":[27,41],"o":2},"flag-gm":{"a":"Gambia Flag","b":"1F1EC-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[2,6],"o":2},"honey_pot":{"a":"Honey Pot","b":"1F36F","d":true,"e":true,"f":true,"h":true,"j":["bees","sweet","kitchen"],"k":[7,14],"o":2},"woman-bowing":{"skin_variations":{"1F3FB":{"unified":"1F647-1F3FB-200D-2640-FE0F","non_qualified":"1F647-1F3FB-200D-2640","image":"1f647-1f3fb-200d-2640-fe0f.png","sheet_x":32,"sheet_y":27,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F647-1F3FC-200D-2640-FE0F","non_qualified":"1F647-1F3FC-200D-2640","image":"1f647-1f3fc-200d-2640-fe0f.png","sheet_x":32,"sheet_y":28,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F647-1F3FD-200D-2640-FE0F","non_qualified":"1F647-1F3FD-200D-2640","image":"1f647-1f3fd-200d-2640-fe0f.png","sheet_x":32,"sheet_y":29,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F647-1F3FE-200D-2640-FE0F","non_qualified":"1F647-1F3FE-200D-2640","image":"1f647-1f3fe-200d-2640-fe0f.png","sheet_x":32,"sheet_y":30,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F647-1F3FF-200D-2640-FE0F","non_qualified":"1F647-1F3FF-200D-2640","image":"1f647-1f3ff-200d-2640-fe0f.png","sheet_x":32,"sheet_y":31,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Woman Bowing","b":"1F647-200D-2640-FE0F","c":"1F647-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[32,26],"o":4},"male_sign":{"a":"Male Sign","b":"2642-FE0F","c":"2642","d":false,"e":true,"f":true,"h":true,"k":[53,19],"o":4},"mag_right":{"a":"Right-Pointing Magnifying Glass","b":"1F50E","d":true,"e":true,"f":true,"h":true,"j":["search","zoom","find","detective"],"k":[27,42],"o":2},"japanese_goblin":{"a":"Japanese Goblin","b":"1F47A","d":true,"e":true,"f":true,"h":true,"j":["red","evil","mask","monster","scary","creepy","japanese","goblin"],"k":[23,35],"o":2},"scooter":{"a":"Scooter","b":"1F6F4","d":true,"e":true,"f":true,"h":true,"k":[36,53],"o":4},"bee":{"a":"Honeybee","b":"1F41D","d":true,"e":true,"f":true,"h":true,"k":[12,1],"n":["honeybee"],"o":2},"flag-gn":{"a":"Guinea Flag","b":"1F1EC-1F1F3","d":true,"e":true,"f":true,"h":true,"k":[2,7],"o":2},"candle":{"a":"Candle","b":"1F56F-FE0F","c":"1F56F","d":true,"e":true,"f":true,"h":true,"j":["fire","wax"],"k":[29,6],"o":2},"skateboard":{"a":"Skateboard","b":"1F6F9","d":true,"e":true,"f":true,"h":true,"k":[37,1],"o":11},"medical_symbol":{"a":"Medical Symbol","b":"2695-FE0F","c":"2695","d":false,"e":true,"f":true,"h":true,"k":[53,44],"n":["staff_of_aesculapius"],"o":4},"ghost":{"a":"Ghost","b":"1F47B","d":true,"e":true,"f":true,"h":true,"j":["halloween","spooky","scary"],"k":[23,36],"o":2},"beetle":{"a":"Lady Beetle","b":"1F41E","d":true,"e":true,"f":true,"h":true,"j":["animal","insect","nature","ladybug"],"k":[12,2],"o":2},"face_palm":{"skin_variations":{"1F3FB":{"unified":"1F926-1F3FB","non_qualified":null,"image":"1f926-1f3fb.png","sheet_x":38,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F926-1F3FC","non_qualified":null,"image":"1f926-1f3fc.png","sheet_x":38,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F926-1F3FD","non_qualified":null,"image":"1f926-1f3fd.png","sheet_x":38,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F926-1F3FE","non_qualified":null,"image":"1f926-1f3fe.png","sheet_x":38,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F926-1F3FF","non_qualified":null,"image":"1f926-1f3ff.png","sheet_x":38,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"a":"Face Palm","b":"1F926","d":true,"e":true,"f":true,"h":false,"k":[38,35],"o":4},"flag-gp":{"a":"Guadeloupe Flag","b":"1F1EC-1F1F5","d":true,"e":true,"f":true,"h":true,"k":[2,8],"o":2},"baby_bottle":{"a":"Baby Bottle","b":"1F37C","d":true,"e":true,"f":true,"h":true,"j":["food","container","milk"],"k":[7,27],"o":2},"infinity":{"a":"Infinity","b":"267E-FE0F","c":"267E","d":true,"e":true,"f":true,"h":true,"k":[53,39],"o":11},"glass_of_milk":{"a":"Glass of Milk","b":"1F95B","d":true,"e":true,"f":true,"h":true,"k":[41,42],"o":4},"man-facepalming":{"skin_variations":{"1F3FB":{"unified":"1F926-1F3FB-200D-2642-FE0F","non_qualified":"1F926-1F3FB-200D-2642","image":"1f926-1f3fb-200d-2642-fe0f.png","sheet_x":38,"sheet_y":30,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F926-1F3FC-200D-2642-FE0F","non_qualified":"1F926-1F3FC-200D-2642","image":"1f926-1f3fc-200d-2642-fe0f.png","sheet_x":38,"sheet_y":31,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F926-1F3FD-200D-2642-FE0F","non_qualified":"1F926-1F3FD-200D-2642","image":"1f926-1f3fd-200d-2642-fe0f.png","sheet_x":38,"sheet_y":32,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F926-1F3FE-200D-2642-FE0F","non_qualified":"1F926-1F3FE-200D-2642","image":"1f926-1f3fe-200d-2642-fe0f.png","sheet_x":38,"sheet_y":33,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F926-1F3FF-200D-2642-FE0F","non_qualified":"1F926-1F3FF-200D-2642","image":"1f926-1f3ff-200d-2642-fe0f.png","sheet_x":38,"sheet_y":34,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Facepalming","b":"1F926-200D-2642-FE0F","c":"1F926-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[38,29],"o":4},"cricket":{"a":"Cricket","b":"1F997","d":true,"e":true,"f":true,"h":true,"j":["sports"],"k":[42,41],"o":5},"busstop":{"a":"Bus Stop","b":"1F68F","d":true,"e":true,"f":true,"h":true,"j":["transportation","wait"],"k":[34,14],"o":2},"flag-gq":{"a":"Equatorial Guinea Flag","b":"1F1EC-1F1F6","d":true,"e":true,"f":true,"h":true,"k":[2,9],"o":2},"alien":{"a":"Extraterrestrial Alien","b":"1F47D","d":true,"e":true,"f":true,"h":true,"j":["UFO","paul","weird","outer_space"],"k":[23,43],"o":2},"bulb":{"a":"Electric Light Bulb","b":"1F4A1","d":true,"e":true,"f":true,"h":true,"j":["light","electricity","idea"],"k":[25,43],"o":2},"woman-facepalming":{"skin_variations":{"1F3FB":{"unified":"1F926-1F3FB-200D-2640-FE0F","non_qualified":"1F926-1F3FB-200D-2640","image":"1f926-1f3fb-200d-2640-fe0f.png","sheet_x":38,"sheet_y":24,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F926-1F3FC-200D-2640-FE0F","non_qualified":"1F926-1F3FC-200D-2640","image":"1f926-1f3fc-200d-2640-fe0f.png","sheet_x":38,"sheet_y":25,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F926-1F3FD-200D-2640-FE0F","non_qualified":"1F926-1F3FD-200D-2640","image":"1f926-1f3fd-200d-2640-fe0f.png","sheet_x":38,"sheet_y":26,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F926-1F3FE-200D-2640-FE0F","non_qualified":"1F926-1F3FE-200D-2640","image":"1f926-1f3fe-200d-2640-fe0f.png","sheet_x":38,"sheet_y":27,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F926-1F3FF-200D-2640-FE0F","non_qualified":"1F926-1F3FF-200D-2640","image":"1f926-1f3ff-200d-2640-fe0f.png","sheet_x":38,"sheet_y":28,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Woman Facepalming","b":"1F926-200D-2640-FE0F","c":"1F926-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[38,23],"o":4},"spider":{"a":"Spider","b":"1F577-FE0F","c":"1F577","d":true,"e":true,"f":true,"h":true,"j":["animal","arachnid"],"k":[29,34],"o":2},"space_invader":{"a":"Alien Monster","b":"1F47E","d":true,"e":true,"f":true,"h":true,"j":["game","arcade","play"],"k":[23,44],"o":2},"motorway":{"a":"Motorway","b":"1F6E3-FE0F","c":"1F6E3","d":true,"e":true,"f":true,"h":true,"j":["road","cupertino","interstate","highway"],"k":[36,45],"o":2},"flag-gr":{"a":"Greece Flag","b":"1F1EC-1F1F7","d":true,"e":true,"f":true,"h":true,"k":[2,10],"o":2},"recycle":{"a":"Black Universal Recycling Symbol","b":"267B-FE0F","c":"267B","d":true,"e":true,"f":true,"h":true,"j":["arrow","environment","garbage","trash"],"k":[53,38],"o":2},"coffee":{"a":"Hot Beverage","b":"2615","d":true,"e":true,"f":true,"h":true,"j":["beverage","caffeine","latte","espresso"],"k":[53,0],"o":2},"flashlight":{"a":"Electric Torch","b":"1F526","d":true,"e":true,"f":true,"h":true,"j":["dark","camping","sight","night"],"k":[28,9],"o":2},"spider_web":{"a":"Spider Web","b":"1F578-FE0F","c":"1F578","d":true,"e":true,"f":true,"h":true,"j":["animal","insect","arachnid","silk"],"k":[29,35],"o":2},"izakaya_lantern":{"a":"Izakaya Lantern","b":"1F3EE","d":true,"e":true,"f":true,"h":true,"j":["light","paper","halloween","spooky"],"k":[11,8],"n":["lantern"],"o":2},"flag-gs":{"a":"South Georgia & South Sandwich Islands Flag","b":"1F1EC-1F1F8","d":true,"e":true,"f":true,"h":true,"k":[2,11],"o":2},"shrug":{"skin_variations":{"1F3FB":{"unified":"1F937-1F3FB","non_qualified":null,"image":"1f937-1f3fb.png","sheet_x":39,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FC":{"unified":"1F937-1F3FC","non_qualified":null,"image":"1f937-1f3fc.png","sheet_x":39,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FD":{"unified":"1F937-1F3FD","non_qualified":null,"image":"1f937-1f3fd.png","sheet_x":39,"sheet_y":50,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FE":{"unified":"1F937-1F3FE","non_qualified":null,"image":"1f937-1f3fe.png","sheet_x":39,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false},"1F3FF":{"unified":"1F937-1F3FF","non_qualified":null,"image":"1f937-1f3ff.png","sheet_x":39,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":false}},"a":"Shrug","b":"1F937","d":true,"e":true,"f":true,"h":false,"k":[39,47],"o":4},"fleur_de_lis":{"a":"Fleur De Lis","b":"269C-FE0F","c":"269C","d":true,"e":true,"f":true,"h":true,"j":["decorative","scout"],"k":[53,49],"o":2},"robot_face":{"a":"Robot Face","b":"1F916","d":true,"e":true,"f":true,"h":true,"k":[37,29],"o":2},"railway_track":{"a":"Railway Track","b":"1F6E4-FE0F","c":"1F6E4","d":true,"e":true,"f":true,"h":true,"j":["train","transportation"],"k":[36,46],"o":2},"tea":{"a":"Teacup Without Handle","b":"1F375","d":true,"e":true,"f":true,"h":true,"j":["drink","bowl","breakfast","green","british"],"k":[7,20],"o":2},"flag-gt":{"a":"Guatemala Flag","b":"1F1EC-1F1F9","d":true,"e":true,"f":true,"h":true,"k":[2,12],"o":2},"oil_drum":{"a":"Oil Drum","b":"1F6E2-FE0F","c":"1F6E2","d":true,"e":true,"f":true,"h":true,"j":["barrell"],"k":[36,44],"o":2},"diya_lamp":{"a":"Diya Lamp","b":"1FA94","d":true,"e":true,"f":true,"h":true,"k":[52,8],"o":12},"sake":{"a":"Sake Bottle and Cup","b":"1F376","d":true,"e":true,"f":true,"h":true,"j":["wine","drink","drunk","beverage","japanese","alcohol","booze"],"k":[7,21],"o":2},"trident":{"a":"Trident Emblem","b":"1F531","d":true,"e":true,"f":true,"h":true,"j":["weapon","spear"],"k":[28,20],"o":2},"man-shrugging":{"skin_variations":{"1F3FB":{"unified":"1F937-1F3FB-200D-2642-FE0F","non_qualified":"1F937-1F3FB-200D-2642","image":"1f937-1f3fb-200d-2642-fe0f.png","sheet_x":39,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F937-1F3FC-200D-2642-FE0F","non_qualified":"1F937-1F3FC-200D-2642","image":"1f937-1f3fc-200d-2642-fe0f.png","sheet_x":39,"sheet_y":43,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F937-1F3FD-200D-2642-FE0F","non_qualified":"1F937-1F3FD-200D-2642","image":"1f937-1f3fd-200d-2642-fe0f.png","sheet_x":39,"sheet_y":44,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F937-1F3FE-200D-2642-FE0F","non_qualified":"1F937-1F3FE-200D-2642","image":"1f937-1f3fe-200d-2642-fe0f.png","sheet_x":39,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F937-1F3FF-200D-2642-FE0F","non_qualified":"1F937-1F3FF-200D-2642","image":"1f937-1f3ff-200d-2642-fe0f.png","sheet_x":39,"sheet_y":46,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Man Shrugging","b":"1F937-200D-2642-FE0F","c":"1F937-200D-2642","d":true,"e":true,"f":true,"h":true,"k":[39,41],"o":4},"smiley_cat":{"a":"Smiling Cat Face with Open Mouth","b":"1F63A","d":true,"e":true,"f":true,"h":true,"j":["animal","cats","happy","smile"],"k":[31,36],"o":2},"scorpion":{"a":"Scorpion","b":"1F982","d":true,"e":true,"f":true,"h":true,"j":["animal","arachnid"],"k":[42,20],"o":2},"woman-shrugging":{"skin_variations":{"1F3FB":{"unified":"1F937-1F3FB-200D-2640-FE0F","non_qualified":"1F937-1F3FB-200D-2640","image":"1f937-1f3fb-200d-2640-fe0f.png","sheet_x":39,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F937-1F3FC-200D-2640-FE0F","non_qualified":"1F937-1F3FC-200D-2640","image":"1f937-1f3fc-200d-2640-fe0f.png","sheet_x":39,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F937-1F3FD-200D-2640-FE0F","non_qualified":"1F937-1F3FD-200D-2640","image":"1f937-1f3fd-200d-2640-fe0f.png","sheet_x":39,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F937-1F3FE-200D-2640-FE0F","non_qualified":"1F937-1F3FE-200D-2640","image":"1f937-1f3fe-200d-2640-fe0f.png","sheet_x":39,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F937-1F3FF-200D-2640-FE0F","non_qualified":"1F937-1F3FF-200D-2640","image":"1f937-1f3ff-200d-2640-fe0f.png","sheet_x":39,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Woman Shrugging","b":"1F937-200D-2640-FE0F","c":"1F937-200D-2640","d":true,"e":true,"f":true,"h":true,"k":[39,35],"o":4},"notebook_with_decorative_cover":{"a":"Notebook with Decorative Cover","b":"1F4D4","d":true,"e":true,"f":true,"h":true,"j":["classroom","notes","record","paper","study"],"k":[26,42],"o":2},"fuelpump":{"a":"Fuel Pump","b":"26FD","d":true,"e":true,"f":true,"h":true,"j":["gas station","petroleum"],"k":[54,38],"o":2},"name_badge":{"a":"Name Badge","b":"1F4DB","d":true,"e":true,"f":true,"h":true,"j":["fire","forbid"],"k":[26,49],"o":2},"mosquito":{"a":"Mosquito","b":"1F99F","d":true,"e":true,"f":true,"h":true,"k":[42,49],"o":11},"flag-gu":{"a":"Guam Flag","b":"1F1EC-1F1FA","d":true,"e":true,"f":true,"h":true,"k":[2,13],"o":2},"smile_cat":{"a":"Grinning Cat Face with Smiling Eyes","b":"1F638","d":true,"e":true,"f":true,"h":true,"j":["animal","cats","smile"],"k":[31,34],"o":2},"champagne":{"a":"Bottle with Popping Cork","b":"1F37E","d":true,"e":true,"f":true,"h":true,"j":["drink","wine","bottle","celebration"],"k":[7,29],"o":2},"joy_cat":{"a":"Cat Face with Tears of Joy","b":"1F639","d":true,"e":true,"f":true,"h":true,"j":["animal","cats","haha","happy","tears"],"k":[31,35],"o":2},"closed_book":{"a":"Closed Book","b":"1F4D5","d":true,"e":true,"f":true,"h":true,"j":["read","library","knowledge","textbook","learn"],"k":[26,43],"o":2},"health_worker":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-2695-FE0F","non_qualified":"1F9D1-1F3FB-200D-2695","image":"1f9d1-1f3fb-200d-2695-fe0f.png","sheet_x":47,"sheet_y":50,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-2695-FE0F","non_qualified":"1F9D1-1F3FC-200D-2695","image":"1f9d1-1f3fc-200d-2695-fe0f.png","sheet_x":47,"sheet_y":51,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-2695-FE0F","non_qualified":"1F9D1-1F3FD-200D-2695","image":"1f9d1-1f3fd-200d-2695-fe0f.png","sheet_x":47,"sheet_y":52,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-2695-FE0F","non_qualified":"1F9D1-1F3FE-200D-2695","image":"1f9d1-1f3fe-200d-2695-fe0f.png","sheet_x":47,"sheet_y":53,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-2695-FE0F","non_qualified":"1F9D1-1F3FF-200D-2695","image":"1f9d1-1f3ff-200d-2695-fe0f.png","sheet_x":47,"sheet_y":54,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Health Worker","b":"1F9D1-200D-2695-FE0F","c":"1F9D1-200D-2695","d":true,"e":false,"f":false,"h":false,"k":[47,49],"o":12},"rotating_light":{"a":"Police Cars Revolving Light","b":"1F6A8","d":true,"e":true,"f":true,"h":true,"j":["police","ambulance","911","emergency","alert","error","pinged","law","legal"],"k":[34,56],"o":2},"microbe":{"a":"Microbe","b":"1F9A0","d":true,"e":true,"f":true,"h":true,"k":[42,50],"o":11},"flag-gw":{"a":"Guinea-Bissau Flag","b":"1F1EC-1F1FC","d":true,"e":true,"f":true,"h":true,"k":[2,14],"o":2},"wine_glass":{"a":"Wine Glass","b":"1F377","d":true,"e":true,"f":true,"h":true,"j":["drink","beverage","drunk","alcohol","booze"],"k":[7,22],"o":2},"beginner":{"a":"Japanese Symbol for Beginner","b":"1F530","d":true,"e":true,"f":true,"h":true,"j":["badge","shield"],"k":[28,19],"o":2},"bouquet":{"a":"Bouquet","b":"1F490","d":true,"e":true,"f":true,"h":true,"j":["flowers","nature","spring"],"k":[25,26],"o":2},"heart_eyes_cat":{"a":"Smiling Cat Face with Heart-Shaped Eyes","b":"1F63B","d":true,"e":true,"f":true,"h":true,"j":["animal","love","like","affection","cats","valentines","heart"],"k":[31,37],"o":2},"male-doctor":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-2695-FE0F","non_qualified":"1F468-1F3FB-200D-2695","image":"1f468-1f3fb-200d-2695-fe0f.png","sheet_x":17,"sheet_y":3,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-2695-FE0F","non_qualified":"1F468-1F3FC-200D-2695","image":"1f468-1f3fc-200d-2695-fe0f.png","sheet_x":17,"sheet_y":4,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-2695-FE0F","non_qualified":"1F468-1F3FD-200D-2695","image":"1f468-1f3fd-200d-2695-fe0f.png","sheet_x":17,"sheet_y":5,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-2695-FE0F","non_qualified":"1F468-1F3FE-200D-2695","image":"1f468-1f3fe-200d-2695-fe0f.png","sheet_x":17,"sheet_y":6,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-2695-FE0F","non_qualified":"1F468-1F3FF-200D-2695","image":"1f468-1f3ff-200d-2695-fe0f.png","sheet_x":17,"sheet_y":7,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Doctor","b":"1F468-200D-2695-FE0F","c":"1F468-200D-2695","d":true,"e":true,"f":true,"h":true,"k":[17,2],"o":4},"book":{"a":"Open Book","b":"1F4D6","d":true,"e":true,"f":true,"h":true,"k":[26,44],"n":["open_book"],"o":2},"traffic_light":{"a":"Horizontal Traffic Light","b":"1F6A5","d":true,"e":true,"f":true,"h":true,"j":["transportation","signal"],"k":[34,53],"o":2},"cocktail":{"a":"Cocktail Glass","b":"1F378","d":true,"e":true,"f":true,"h":true,"j":["drink","drunk","alcohol","beverage","booze","mojito"],"k":[7,23],"o":2},"o":{"a":"Heavy Large Circle","b":"2B55","d":true,"e":true,"f":true,"h":true,"j":["circle","round"],"k":[55,43],"o":2},"flag-gy":{"a":"Guyana Flag","b":"1F1EC-1F1FE","d":true,"e":true,"f":true,"h":true,"k":[2,15],"o":2},"female-doctor":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-2695-FE0F","non_qualified":"1F469-1F3FB-200D-2695","image":"1f469-1f3fb-200d-2695-fe0f.png","sheet_x":19,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-2695-FE0F","non_qualified":"1F469-1F3FC-200D-2695","image":"1f469-1f3fc-200d-2695-fe0f.png","sheet_x":19,"sheet_y":46,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-2695-FE0F","non_qualified":"1F469-1F3FD-200D-2695","image":"1f469-1f3fd-200d-2695-fe0f.png","sheet_x":19,"sheet_y":47,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-2695-FE0F","non_qualified":"1F469-1F3FE-200D-2695","image":"1f469-1f3fe-200d-2695-fe0f.png","sheet_x":19,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-2695-FE0F","non_qualified":"1F469-1F3FF-200D-2695","image":"1f469-1f3ff-200d-2695-fe0f.png","sheet_x":19,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Doctor","b":"1F469-200D-2695-FE0F","c":"1F469-200D-2695","d":true,"e":true,"f":true,"h":true,"k":[19,44],"o":4},"smirk_cat":{"a":"Cat Face with Wry Smile","b":"1F63C","d":true,"e":true,"f":true,"h":true,"j":["animal","cats","smirk"],"k":[31,38],"o":2},"green_book":{"a":"Green Book","b":"1F4D7","d":true,"e":true,"f":true,"h":true,"j":["read","library","knowledge","study"],"k":[26,45],"o":2},"cherry_blossom":{"a":"Cherry Blossom","b":"1F338","d":true,"e":true,"f":true,"h":true,"j":["nature","plant","spring","flower"],"k":[6,16],"o":2},"flag-hk":{"a":"Hong Kong Sar China Flag","b":"1F1ED-1F1F0","d":true,"e":true,"f":true,"h":true,"k":[2,16],"o":2},"vertical_traffic_light":{"a":"Vertical Traffic Light","b":"1F6A6","d":true,"e":true,"f":true,"h":true,"j":["transportation","driving"],"k":[34,54],"o":2},"white_check_mark":{"a":"White Heavy Check Mark","b":"2705","d":true,"e":true,"f":true,"h":true,"j":["green-square","ok","agree","vote","election","answer","tick"],"k":[54,40],"o":2},"tropical_drink":{"a":"Tropical Drink","b":"1F379","d":true,"e":true,"f":true,"h":true,"j":["beverage","cocktail","summer","beach","alcohol","booze","mojito"],"k":[7,24],"o":2},"kissing_cat":{"a":"Kissing Cat Face with Closed Eyes","b":"1F63D","d":true,"e":true,"f":true,"h":true,"j":["animal","cats","kiss"],"k":[31,39],"o":2},"flag-hm":{"a":"Heard & Mcdonald Islands Flag","b":"1F1ED-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[2,17],"o":2},"octagonal_sign":{"a":"Octagonal Sign","b":"1F6D1","d":true,"e":true,"f":true,"h":true,"k":[36,39],"o":4},"white_flower":{"a":"White Flower","b":"1F4AE","d":true,"e":true,"f":true,"h":true,"j":["japanese","spring"],"k":[26,4],"o":2},"ballot_box_with_check":{"a":"Ballot Box with Check","b":"2611-FE0F","c":"2611","d":true,"e":true,"f":true,"h":true,"j":["ok","agree","confirm","black-square","vote","election","yes","tick"],"k":[52,55],"o":2},"student":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F393","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f393.png","sheet_x":45,"sheet_y":30,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F393","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f393.png","sheet_x":45,"sheet_y":31,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F393","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f393.png","sheet_x":45,"sheet_y":32,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F393","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f393.png","sheet_x":45,"sheet_y":33,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F393","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f393.png","sheet_x":45,"sheet_y":34,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Student","b":"1F9D1-200D-1F393","d":true,"e":false,"f":false,"h":false,"k":[45,29],"o":12},"blue_book":{"a":"Blue Book","b":"1F4D8","d":true,"e":true,"f":true,"h":true,"j":["read","library","knowledge","learn","study"],"k":[26,46],"o":2},"beer":{"a":"Beer Mug","b":"1F37A","d":true,"e":true,"f":true,"h":true,"j":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"k":[7,25],"o":2},"construction":{"a":"Construction Sign","b":"1F6A7","d":true,"e":true,"f":true,"h":true,"j":["wip","progress","caution","warning"],"k":[34,55],"o":2},"rosette":{"a":"Rosette","b":"1F3F5-FE0F","c":"1F3F5","d":true,"e":true,"f":true,"h":true,"j":["flower","decoration","military"],"k":[11,18],"o":2},"heavy_check_mark":{"a":"Heavy Check Mark","b":"2714-FE0F","c":"2714","d":true,"e":true,"f":true,"h":true,"j":["ok","nike","answer","yes","tick"],"k":[55,12],"o":2},"scream_cat":{"a":"Weary Cat Face","b":"1F640","d":true,"e":true,"f":true,"h":true,"j":["animal","cats","munch","scared","scream"],"k":[31,42],"o":2},"orange_book":{"a":"Orange Book","b":"1F4D9","d":true,"e":true,"f":true,"h":true,"j":["read","library","knowledge","textbook","study"],"k":[26,47],"o":2},"beers":{"a":"Clinking Beer Mugs","b":"1F37B","d":true,"e":true,"f":true,"h":true,"j":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"k":[7,26],"o":2},"male-student":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F393","non_qualified":null,"image":"1f468-1f3fb-200d-1f393.png","sheet_x":14,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F393","non_qualified":null,"image":"1f468-1f3fc-200d-1f393.png","sheet_x":14,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F393","non_qualified":null,"image":"1f468-1f3fd-200d-1f393.png","sheet_x":14,"sheet_y":53,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F393","non_qualified":null,"image":"1f468-1f3fe-200d-1f393.png","sheet_x":14,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F393","non_qualified":null,"image":"1f468-1f3ff-200d-1f393.png","sheet_x":14,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Student","b":"1F468-200D-1F393","d":true,"e":true,"f":true,"h":true,"k":[14,50],"o":4},"flag-hn":{"a":"Honduras Flag","b":"1F1ED-1F1F3","d":true,"e":true,"f":true,"h":true,"k":[2,18],"o":2},"crying_cat_face":{"a":"Crying Cat Face","b":"1F63F","d":true,"e":true,"f":true,"h":true,"j":["animal","tears","weep","sad","cats","upset","cry"],"k":[31,41],"o":2},"anchor":{"a":"Anchor","b":"2693","d":true,"e":true,"f":true,"h":true,"j":["ship","ferry","sea","boat"],"k":[53,42],"o":2},"flag-hr":{"a":"Croatia Flag","b":"1F1ED-1F1F7","d":true,"e":true,"f":true,"h":true,"k":[2,19],"o":2},"heavy_multiplication_x":{"a":"Heavy Multiplication X","b":"2716-FE0F","c":"2716","d":true,"e":true,"f":true,"h":true,"j":["math","calculation"],"k":[55,13],"o":2},"female-student":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F393","non_qualified":null,"image":"1f469-1f3fb-200d-1f393.png","sheet_x":17,"sheet_y":41,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F393","non_qualified":null,"image":"1f469-1f3fc-200d-1f393.png","sheet_x":17,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F393","non_qualified":null,"image":"1f469-1f3fd-200d-1f393.png","sheet_x":17,"sheet_y":43,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F393","non_qualified":null,"image":"1f469-1f3fe-200d-1f393.png","sheet_x":17,"sheet_y":44,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F393","non_qualified":null,"image":"1f469-1f3ff-200d-1f393.png","sheet_x":17,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Student","b":"1F469-200D-1F393","d":true,"e":true,"f":true,"h":true,"k":[17,40],"o":4},"rose":{"a":"Rose","b":"1F339","d":true,"e":true,"f":true,"h":true,"j":["flowers","valentines","love","spring"],"k":[6,17],"o":2},"books":{"a":"Books","b":"1F4DA","d":true,"e":true,"f":true,"h":true,"j":["literature","library","study"],"k":[26,48],"o":2},"clinking_glasses":{"a":"Clinking Glasses","b":"1F942","d":true,"e":true,"f":true,"h":true,"j":["beverage","drink","party","alcohol","celebrate","cheers"],"k":[41,18],"o":4},"teacher":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F3EB","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f3eb.png","sheet_x":45,"sheet_y":48,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F3EB","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f3eb.png","sheet_x":45,"sheet_y":49,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F3EB","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f3eb.png","sheet_x":45,"sheet_y":50,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F3EB","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f3eb.png","sheet_x":45,"sheet_y":51,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F3EB","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f3eb.png","sheet_x":45,"sheet_y":52,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Teacher","b":"1F9D1-200D-1F3EB","d":true,"e":false,"f":false,"h":false,"k":[45,47],"o":12},"x":{"a":"Cross Mark","b":"274C","d":true,"e":true,"f":true,"h":true,"j":["no","delete","remove","cancel"],"k":[55,21],"o":2},"pouting_cat":{"a":"Pouting Cat Face","b":"1F63E","d":true,"e":true,"f":true,"h":true,"j":["animal","cats"],"k":[31,40],"o":2},"wilted_flower":{"a":"Wilted Flower","b":"1F940","d":true,"e":true,"f":true,"h":true,"j":["plant","nature","flower"],"k":[41,16],"o":4},"boat":{"a":"Sailboat","b":"26F5","d":true,"e":true,"f":true,"h":true,"k":[54,16],"n":["sailboat"],"o":2},"flag-ht":{"a":"Haiti Flag","b":"1F1ED-1F1F9","d":true,"e":true,"f":true,"h":true,"k":[2,20],"o":2},"tumbler_glass":{"a":"Tumbler Glass","b":"1F943","d":true,"e":true,"f":true,"h":true,"j":["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],"k":[41,19],"o":4},"notebook":{"a":"Notebook","b":"1F4D3","d":true,"e":true,"f":true,"h":true,"j":["stationery","record","notes","paper","study"],"k":[26,41],"o":2},"male-teacher":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F3EB","non_qualified":null,"image":"1f468-1f3fb-200d-1f3eb.png","sheet_x":15,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F3EB","non_qualified":null,"image":"1f468-1f3fc-200d-1f3eb.png","sheet_x":15,"sheet_y":13,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F3EB","non_qualified":null,"image":"1f468-1f3fd-200d-1f3eb.png","sheet_x":15,"sheet_y":14,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F3EB","non_qualified":null,"image":"1f468-1f3fe-200d-1f3eb.png","sheet_x":15,"sheet_y":15,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F3EB","non_qualified":null,"image":"1f468-1f3ff-200d-1f3eb.png","sheet_x":15,"sheet_y":16,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Teacher","b":"1F468-200D-1F3EB","d":true,"e":true,"f":true,"h":true,"k":[15,11],"o":4},"ledger":{"a":"Ledger","b":"1F4D2","d":true,"e":true,"f":true,"h":true,"j":["notes","paper"],"k":[26,40],"o":2},"flag-hu":{"a":"Hungary Flag","b":"1F1ED-1F1FA","d":true,"e":true,"f":true,"h":true,"k":[2,21],"o":2},"cup_with_straw":{"a":"Cup with Straw","b":"1F964","d":true,"e":true,"f":true,"h":true,"k":[41,51],"o":5},"hibiscus":{"a":"Hibiscus","b":"1F33A","d":true,"e":true,"f":true,"h":true,"j":["plant","vegetable","flowers","beach"],"k":[6,18],"o":2},"see_no_evil":{"a":"See-No-Evil Monkey","b":"1F648","d":true,"e":true,"f":true,"h":true,"j":["monkey","animal","nature","haha"],"k":[32,44],"o":2},"canoe":{"a":"Canoe","b":"1F6F6","d":true,"e":true,"f":true,"h":true,"j":["boat","paddle","water","ship"],"k":[36,55],"o":4},"negative_squared_cross_mark":{"a":"Negative Squared Cross Mark","b":"274E","d":true,"e":true,"f":true,"h":true,"j":["x","green-square","no","deny"],"k":[55,22],"o":2},"flag-ic":{"a":"Canary Islands Flag","b":"1F1EE-1F1E8","d":true,"e":true,"f":true,"h":true,"k":[2,22],"o":2},"beverage_box":{"a":"Beverage Box","b":"1F9C3","d":true,"e":true,"f":true,"h":true,"k":[44,11],"o":12},"speedboat":{"a":"Speedboat","b":"1F6A4","d":true,"e":true,"f":true,"h":true,"j":["ship","transportation","vehicle","summer"],"k":[34,52],"o":2},"heavy_plus_sign":{"a":"Heavy Plus Sign","b":"2795","d":true,"e":true,"f":true,"h":true,"j":["math","calculation","addition","more","increase"],"k":[55,29],"o":2},"sunflower":{"a":"Sunflower","b":"1F33B","d":true,"e":true,"f":true,"h":true,"j":["nature","plant","fall"],"k":[6,19],"o":2},"page_with_curl":{"a":"Page with Curl","b":"1F4C3","d":true,"e":true,"f":true,"h":true,"j":["documents","office","paper"],"k":[26,25],"o":2},"female-teacher":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F3EB","non_qualified":null,"image":"1f469-1f3fb-200d-1f3eb.png","sheet_x":18,"sheet_y":2,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F3EB","non_qualified":null,"image":"1f469-1f3fc-200d-1f3eb.png","sheet_x":18,"sheet_y":3,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F3EB","non_qualified":null,"image":"1f469-1f3fd-200d-1f3eb.png","sheet_x":18,"sheet_y":4,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F3EB","non_qualified":null,"image":"1f469-1f3fe-200d-1f3eb.png","sheet_x":18,"sheet_y":5,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F3EB","non_qualified":null,"image":"1f469-1f3ff-200d-1f3eb.png","sheet_x":18,"sheet_y":6,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Teacher","b":"1F469-200D-1F3EB","d":true,"e":true,"f":true,"h":true,"k":[18,1],"o":4},"hear_no_evil":{"a":"Hear-No-Evil Monkey","b":"1F649","d":true,"e":true,"f":true,"h":true,"j":["animal","monkey","nature"],"k":[32,45],"o":2},"mate_drink":{"a":"Mate Drink","b":"1F9C9","d":true,"e":true,"f":true,"h":true,"k":[44,17],"o":12},"passenger_ship":{"a":"Passenger Ship","b":"1F6F3-FE0F","c":"1F6F3","d":true,"e":true,"f":true,"h":true,"j":["yacht","cruise","ferry"],"k":[36,52],"o":2},"judge":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-2696-FE0F","non_qualified":"1F9D1-1F3FB-200D-2696","image":"1f9d1-1f3fb-200d-2696-fe0f.png","sheet_x":47,"sheet_y":56,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-2696-FE0F","non_qualified":"1F9D1-1F3FC-200D-2696","image":"1f9d1-1f3fc-200d-2696-fe0f.png","sheet_x":48,"sheet_y":0,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-2696-FE0F","non_qualified":"1F9D1-1F3FD-200D-2696","image":"1f9d1-1f3fd-200d-2696-fe0f.png","sheet_x":48,"sheet_y":1,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-2696-FE0F","non_qualified":"1F9D1-1F3FE-200D-2696","image":"1f9d1-1f3fe-200d-2696-fe0f.png","sheet_x":48,"sheet_y":2,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-2696-FE0F","non_qualified":"1F9D1-1F3FF-200D-2696","image":"1f9d1-1f3ff-200d-2696-fe0f.png","sheet_x":48,"sheet_y":3,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Judge","b":"1F9D1-200D-2696-FE0F","c":"1F9D1-200D-2696","d":true,"e":false,"f":false,"h":false,"k":[47,55],"o":12},"scroll":{"a":"Scroll","b":"1F4DC","d":true,"e":true,"f":true,"h":true,"j":["documents","ancient","history","paper"],"k":[26,50],"o":2},"blossom":{"a":"Blossom","b":"1F33C","d":true,"e":true,"f":true,"h":true,"j":["nature","flowers","yellow"],"k":[6,20],"o":2},"flag-id":{"a":"Indonesia Flag","b":"1F1EE-1F1E9","d":true,"e":true,"f":true,"h":true,"k":[2,23],"o":2},"speak_no_evil":{"a":"Speak-No-Evil Monkey","b":"1F64A","d":true,"e":true,"f":true,"h":true,"j":["monkey","animal","nature","omg"],"k":[32,46],"o":2},"heavy_minus_sign":{"a":"Heavy Minus Sign","b":"2796","d":true,"e":true,"f":true,"h":true,"j":["math","calculation","subtract","less"],"k":[55,30],"o":2},"flag-ie":{"a":"Ireland Flag","b":"1F1EE-1F1EA","d":true,"e":true,"f":true,"h":true,"k":[2,24],"o":2},"ice_cube":{"a":"Ice Cube","b":"1F9CA","d":true,"e":true,"f":true,"h":true,"k":[44,18],"o":12},"page_facing_up":{"a":"Page Facing Up","b":"1F4C4","d":true,"e":true,"f":true,"h":true,"j":["documents","office","paper","information"],"k":[26,26],"o":2},"male-judge":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-2696-FE0F","non_qualified":"1F468-1F3FB-200D-2696","image":"1f468-1f3fb-200d-2696-fe0f.png","sheet_x":17,"sheet_y":9,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-2696-FE0F","non_qualified":"1F468-1F3FC-200D-2696","image":"1f468-1f3fc-200d-2696-fe0f.png","sheet_x":17,"sheet_y":10,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-2696-FE0F","non_qualified":"1F468-1F3FD-200D-2696","image":"1f468-1f3fd-200d-2696-fe0f.png","sheet_x":17,"sheet_y":11,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-2696-FE0F","non_qualified":"1F468-1F3FE-200D-2696","image":"1f468-1f3fe-200d-2696-fe0f.png","sheet_x":17,"sheet_y":12,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-2696-FE0F","non_qualified":"1F468-1F3FF-200D-2696","image":"1f468-1f3ff-200d-2696-fe0f.png","sheet_x":17,"sheet_y":13,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Judge","b":"1F468-200D-2696-FE0F","c":"1F468-200D-2696","d":true,"e":true,"f":true,"h":true,"k":[17,8],"o":4},"tulip":{"a":"Tulip","b":"1F337","d":true,"e":true,"f":true,"h":true,"j":["flowers","plant","nature","summer","spring"],"k":[6,15],"o":2},"ferry":{"a":"Ferry","b":"26F4-FE0F","c":"26F4","d":true,"e":true,"f":true,"h":true,"j":["boat","ship","yacht"],"k":[54,15],"o":2},"kiss":{"a":"Kiss Mark","b":"1F48B","d":true,"e":true,"f":true,"h":true,"j":["face","lips","love","like","affection","valentines"],"k":[25,21],"o":2},"heavy_division_sign":{"a":"Heavy Division Sign","b":"2797","d":true,"e":true,"f":true,"h":true,"j":["divide","math","calculation"],"k":[55,31],"o":2},"newspaper":{"a":"Newspaper","b":"1F4F0","d":true,"e":true,"f":true,"h":true,"j":["press","headline"],"k":[27,13],"o":2},"female-judge":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-2696-FE0F","non_qualified":"1F469-1F3FB-200D-2696","image":"1f469-1f3fb-200d-2696-fe0f.png","sheet_x":19,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-2696-FE0F","non_qualified":"1F469-1F3FC-200D-2696","image":"1f469-1f3fc-200d-2696-fe0f.png","sheet_x":19,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-2696-FE0F","non_qualified":"1F469-1F3FD-200D-2696","image":"1f469-1f3fd-200d-2696-fe0f.png","sheet_x":19,"sheet_y":53,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-2696-FE0F","non_qualified":"1F469-1F3FE-200D-2696","image":"1f469-1f3fe-200d-2696-fe0f.png","sheet_x":19,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-2696-FE0F","non_qualified":"1F469-1F3FF-200D-2696","image":"1f469-1f3ff-200d-2696-fe0f.png","sheet_x":19,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Judge","b":"1F469-200D-2696-FE0F","c":"1F469-200D-2696","d":true,"e":true,"f":true,"h":true,"k":[19,50],"o":4},"seedling":{"a":"Seedling","b":"1F331","d":true,"e":true,"f":true,"h":true,"j":["plant","nature","grass","lawn","spring"],"k":[6,9],"o":2},"love_letter":{"a":"Love Letter","b":"1F48C","d":true,"e":true,"f":true,"h":true,"j":["email","like","affection","envelope","valentines"],"k":[25,22],"o":2},"chopsticks":{"a":"Chopsticks","b":"1F962","d":true,"e":true,"f":true,"h":true,"k":[41,49],"o":5},"motor_boat":{"a":"Motor Boat","b":"1F6E5-FE0F","c":"1F6E5","d":true,"e":true,"f":true,"h":true,"j":["ship"],"k":[36,47],"o":2},"flag-il":{"a":"Israel Flag","b":"1F1EE-1F1F1","d":true,"e":true,"f":true,"h":true,"k":[2,25],"o":2},"curly_loop":{"a":"Curly Loop","b":"27B0","d":true,"e":true,"f":true,"h":true,"j":["scribble","draw","shape","squiggle"],"k":[55,33],"o":2},"flag-im":{"a":"Isle of Man Flag","b":"1F1EE-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[2,26],"o":2},"evergreen_tree":{"a":"Evergreen Tree","b":"1F332","d":true,"e":true,"f":true,"h":true,"j":["plant","nature"],"k":[6,10],"o":2},"cupid":{"a":"Heart with Arrow","b":"1F498","d":true,"e":true,"f":true,"h":true,"j":["love","like","heart","affection","valentines"],"k":[25,34],"o":2},"loop":{"a":"Double Curly Loop","b":"27BF","d":true,"e":true,"f":true,"h":true,"j":["tape","cassette"],"k":[55,34],"o":2},"ship":{"a":"Ship","b":"1F6A2","d":true,"e":true,"f":true,"h":true,"j":["transportation","titanic","deploy"],"k":[34,33],"o":2},"farmer":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F33E","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f33e.png","sheet_x":45,"sheet_y":18,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F33E","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f33e.png","sheet_x":45,"sheet_y":19,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F33E","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f33e.png","sheet_x":45,"sheet_y":20,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F33E","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f33e.png","sheet_x":45,"sheet_y":21,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F33E","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f33e.png","sheet_x":45,"sheet_y":22,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Farmer","b":"1F9D1-200D-1F33E","d":true,"e":false,"f":false,"h":false,"k":[45,17],"o":12},"rolled_up_newspaper":{"a":"Rolled Up Newspaper","b":"1F5DE-FE0F","c":"1F5DE","d":true,"e":true,"f":true,"h":true,"k":[30,23],"o":2},"knife_fork_plate":{"a":"Knife Fork Plate","b":"1F37D-FE0F","c":"1F37D","d":true,"e":true,"f":true,"h":true,"k":[7,28],"o":2},"fork_and_knife":{"a":"Fork and Knife","b":"1F374","d":true,"e":true,"f":true,"h":true,"j":["cutlery","kitchen"],"k":[7,19],"o":2},"male-farmer":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F33E","non_qualified":null,"image":"1f468-1f3fb-200d-1f33e.png","sheet_x":14,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F33E","non_qualified":null,"image":"1f468-1f3fc-200d-1f33e.png","sheet_x":14,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F33E","non_qualified":null,"image":"1f468-1f3fd-200d-1f33e.png","sheet_x":14,"sheet_y":41,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F33E","non_qualified":null,"image":"1f468-1f3fe-200d-1f33e.png","sheet_x":14,"sheet_y":42,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F33E","non_qualified":null,"image":"1f468-1f3ff-200d-1f33e.png","sheet_x":14,"sheet_y":43,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Farmer","b":"1F468-200D-1F33E","d":true,"e":true,"f":true,"h":true,"k":[14,38],"o":4},"bookmark_tabs":{"a":"Bookmark Tabs","b":"1F4D1","d":true,"e":true,"f":true,"h":true,"j":["favorite","save","order","tidy"],"k":[26,39],"o":2},"part_alternation_mark":{"a":"Part Alternation Mark","b":"303D-FE0F","c":"303D","d":true,"e":true,"f":true,"h":true,"j":["graph","presentation","stats","business","economics","bad"],"k":[55,45],"o":2},"flag-in":{"a":"India Flag","b":"1F1EE-1F1F3","d":true,"e":true,"f":true,"h":true,"k":[2,27],"o":2},"gift_heart":{"a":"Heart with Ribbon","b":"1F49D","d":true,"e":true,"f":true,"h":true,"j":["love","valentines"],"k":[25,39],"o":2},"airplane":{"a":"Airplane","b":"2708-FE0F","c":"2708","d":true,"e":true,"f":true,"h":true,"j":["vehicle","transportation","flight","fly"],"k":[54,41],"o":2},"deciduous_tree":{"a":"Deciduous Tree","b":"1F333","d":true,"e":true,"f":true,"h":true,"j":["plant","nature"],"k":[6,11],"o":2},"spoon":{"a":"Spoon","b":"1F944","d":true,"e":true,"f":true,"h":true,"j":["cutlery","kitchen","tableware"],"k":[41,20],"o":4},"flag-io":{"a":"British Indian Ocean Territory Flag","b":"1F1EE-1F1F4","d":true,"e":true,"f":true,"h":true,"k":[2,28],"o":2},"palm_tree":{"a":"Palm Tree","b":"1F334","d":true,"e":true,"f":true,"h":true,"j":["plant","vegetable","nature","summer","beach","mojito","tropical"],"k":[6,12],"o":2},"sparkling_heart":{"a":"Sparkling Heart","b":"1F496","d":true,"e":true,"f":true,"h":true,"j":["love","like","affection","valentines"],"k":[25,32],"o":2},"female-farmer":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F33E","non_qualified":null,"image":"1f469-1f3fb-200d-1f33e.png","sheet_x":17,"sheet_y":29,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F33E","non_qualified":null,"image":"1f469-1f3fc-200d-1f33e.png","sheet_x":17,"sheet_y":30,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F33E","non_qualified":null,"image":"1f469-1f3fd-200d-1f33e.png","sheet_x":17,"sheet_y":31,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F33E","non_qualified":null,"image":"1f469-1f3fe-200d-1f33e.png","sheet_x":17,"sheet_y":32,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F33E","non_qualified":null,"image":"1f469-1f3ff-200d-1f33e.png","sheet_x":17,"sheet_y":33,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Farmer","b":"1F469-200D-1F33E","d":true,"e":true,"f":true,"h":true,"k":[17,28],"o":4},"eight_spoked_asterisk":{"a":"Eight Spoked Asterisk","b":"2733-FE0F","c":"2733","d":true,"e":true,"f":true,"h":true,"j":["star","sparkle","green-square"],"k":[55,17],"o":2},"small_airplane":{"a":"Small Airplane","b":"1F6E9-FE0F","c":"1F6E9","d":true,"e":true,"f":true,"h":true,"j":["flight","transportation","fly","vehicle"],"k":[36,48],"o":2},"bookmark":{"a":"Bookmark","b":"1F516","d":true,"e":true,"f":true,"h":true,"j":["favorite","label","save"],"k":[27,50],"o":2},"cook":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F373","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f373.png","sheet_x":45,"sheet_y":24,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F373","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f373.png","sheet_x":45,"sheet_y":25,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F373","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f373.png","sheet_x":45,"sheet_y":26,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F373","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f373.png","sheet_x":45,"sheet_y":27,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F373","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f373.png","sheet_x":45,"sheet_y":28,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Cook","b":"1F9D1-200D-1F373","d":true,"e":false,"f":false,"h":false,"k":[45,23],"o":12},"eight_pointed_black_star":{"a":"Eight Pointed Black Star","b":"2734-FE0F","c":"2734","d":true,"e":true,"f":true,"h":true,"j":["orange-square","shape","polygon"],"k":[55,18],"o":2},"heartpulse":{"a":"Growing Heart","b":"1F497","d":true,"e":true,"f":true,"h":true,"j":["like","love","affection","valentines","pink"],"k":[25,33],"o":2},"label":{"a":"Label","b":"1F3F7-FE0F","c":"1F3F7","d":true,"e":true,"f":true,"h":true,"j":["sale","tag"],"k":[11,19],"o":2},"flag-iq":{"a":"Iraq Flag","b":"1F1EE-1F1F6","d":true,"e":true,"f":true,"h":true,"k":[2,29],"o":2},"hocho":{"a":"Hocho","b":"1F52A","d":true,"e":true,"f":true,"h":true,"j":["knife","blade","cutlery","kitchen","weapon"],"k":[28,13],"n":["knife"],"o":2},"cactus":{"a":"Cactus","b":"1F335","d":true,"e":true,"f":true,"h":true,"j":["vegetable","plant","nature"],"k":[6,13],"o":2},"airplane_departure":{"a":"Airplane Departure","b":"1F6EB","d":true,"e":true,"f":true,"h":true,"k":[36,49],"o":2},"airplane_arriving":{"a":"Airplane Arriving","b":"1F6EC","d":true,"e":true,"f":true,"h":true,"k":[36,50],"o":2},"ear_of_rice":{"a":"Ear of Rice","b":"1F33E","d":true,"e":true,"f":true,"h":true,"j":["nature","plant"],"k":[6,22],"o":2},"flag-ir":{"a":"Iran Flag","b":"1F1EE-1F1F7","d":true,"e":true,"f":true,"h":true,"k":[2,30],"o":2},"moneybag":{"a":"Money Bag","b":"1F4B0","d":true,"e":true,"f":true,"h":true,"j":["dollar","payment","coins","sale"],"k":[26,6],"o":2},"male-cook":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F373","non_qualified":null,"image":"1f468-1f3fb-200d-1f373.png","sheet_x":14,"sheet_y":45,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F373","non_qualified":null,"image":"1f468-1f3fc-200d-1f373.png","sheet_x":14,"sheet_y":46,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F373","non_qualified":null,"image":"1f468-1f3fd-200d-1f373.png","sheet_x":14,"sheet_y":47,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F373","non_qualified":null,"image":"1f468-1f3fe-200d-1f373.png","sheet_x":14,"sheet_y":48,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F373","non_qualified":null,"image":"1f468-1f3ff-200d-1f373.png","sheet_x":14,"sheet_y":49,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Cook","b":"1F468-200D-1F373","d":true,"e":true,"f":true,"h":true,"k":[14,44],"o":4},"heartbeat":{"a":"Beating Heart","b":"1F493","d":true,"e":true,"f":true,"h":true,"j":["love","like","affection","valentines","pink","heart"],"k":[25,29],"o":2},"sparkle":{"a":"Sparkle","b":"2747-FE0F","c":"2747","d":true,"e":true,"f":true,"h":true,"j":["stars","green-square","awesome","good","fireworks"],"k":[55,20],"o":2},"amphora":{"a":"Amphora","b":"1F3FA","d":true,"e":true,"f":true,"h":true,"j":["vase","jar"],"k":[11,22],"o":2},"yen":{"a":"Banknote with Yen Sign","b":"1F4B4","d":true,"e":true,"f":true,"h":true,"j":["money","sales","japanese","dollar","currency"],"k":[26,10],"o":2},"revolving_hearts":{"a":"Revolving Hearts","b":"1F49E","d":true,"e":true,"f":true,"h":true,"j":["love","like","affection","valentines"],"k":[25,40],"o":2},"bangbang":{"a":"Double Exclamation Mark","b":"203C-FE0F","c":"203C","d":true,"e":true,"f":true,"h":true,"j":["exclamation","surprise"],"k":[52,10],"o":2},"parachute":{"a":"Parachute","b":"1FA82","d":true,"e":true,"f":true,"h":true,"k":[52,3],"o":12},"herb":{"a":"Herb","b":"1F33F","d":true,"e":true,"f":true,"h":true,"j":["vegetable","plant","medicine","weed","grass","lawn"],"k":[6,23],"o":2},"flag-is":{"a":"Iceland Flag","b":"1F1EE-1F1F8","d":true,"e":true,"f":true,"h":true,"k":[2,31],"o":2},"female-cook":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F373","non_qualified":null,"image":"1f469-1f3fb-200d-1f373.png","sheet_x":17,"sheet_y":35,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F373","non_qualified":null,"image":"1f469-1f3fc-200d-1f373.png","sheet_x":17,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F373","non_qualified":null,"image":"1f469-1f3fd-200d-1f373.png","sheet_x":17,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F373","non_qualified":null,"image":"1f469-1f3fe-200d-1f373.png","sheet_x":17,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F373","non_qualified":null,"image":"1f469-1f3ff-200d-1f373.png","sheet_x":17,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Cook","b":"1F469-200D-1F373","d":true,"e":true,"f":true,"h":true,"k":[17,34],"o":4},"mechanic":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F527","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f527.png","sheet_x":46,"sheet_y":15,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F527","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f527.png","sheet_x":46,"sheet_y":16,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F527","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f527.png","sheet_x":46,"sheet_y":17,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F527","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f527.png","sheet_x":46,"sheet_y":18,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F527","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f527.png","sheet_x":46,"sheet_y":19,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Mechanic","b":"1F9D1-200D-1F527","d":true,"e":false,"f":false,"h":false,"k":[46,14],"o":12},"interrobang":{"a":"Exclamation Question Mark","b":"2049-FE0F","c":"2049","d":true,"e":true,"f":true,"h":true,"j":["wat","punctuation","surprise"],"k":[52,11],"o":2},"seat":{"a":"Seat","b":"1F4BA","d":true,"e":true,"f":true,"h":true,"j":["sit","airplane","transport","bus","flight","fly"],"k":[26,16],"o":2},"dollar":{"a":"Banknote with Dollar Sign","b":"1F4B5","d":true,"e":true,"f":true,"h":true,"j":["money","sales","bill","currency"],"k":[26,11],"o":2},"two_hearts":{"a":"Two Hearts","b":"1F495","d":true,"e":true,"f":true,"h":true,"j":["love","like","affection","valentines","heart"],"k":[25,31],"o":2},"it":{"a":"Italy Flag","b":"1F1EE-1F1F9","d":true,"e":true,"f":true,"h":true,"j":["italy","flag","nation","country","banner"],"k":[2,32],"n":["flag-it"],"o":2},"shamrock":{"a":"Shamrock","b":"2618-FE0F","c":"2618","d":true,"e":true,"f":true,"h":true,"j":["vegetable","plant","nature","irish","clover"],"k":[53,1],"o":2},"four_leaf_clover":{"a":"Four Leaf Clover","b":"1F340","d":true,"e":true,"f":true,"h":true,"j":["vegetable","plant","nature","lucky","irish"],"k":[6,24],"o":2},"euro":{"a":"Banknote with Euro Sign","b":"1F4B6","d":true,"e":true,"f":true,"h":true,"j":["money","sales","dollar","currency"],"k":[26,12],"o":2},"question":{"a":"Black Question Mark Ornament","b":"2753","d":true,"e":true,"f":true,"h":true,"j":["doubt","confused"],"k":[55,23],"o":2},"helicopter":{"a":"Helicopter","b":"1F681","d":true,"e":true,"f":true,"h":true,"j":["transportation","vehicle","fly"],"k":[34,0],"o":2},"heart_decoration":{"a":"Heart Decoration","b":"1F49F","d":true,"e":true,"f":true,"h":true,"j":["purple-square","love","like"],"k":[25,41],"o":2},"flag-je":{"a":"Jersey Flag","b":"1F1EF-1F1EA","d":true,"e":true,"f":true,"h":true,"k":[2,33],"o":2},"male-mechanic":{"skin_variations":{"1F3FB":{"unified":"1F468-1F3FB-200D-1F527","non_qualified":null,"image":"1f468-1f3fb-200d-1f527.png","sheet_x":15,"sheet_y":51,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F468-1F3FC-200D-1F527","non_qualified":null,"image":"1f468-1f3fc-200d-1f527.png","sheet_x":15,"sheet_y":52,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F468-1F3FD-200D-1F527","non_qualified":null,"image":"1f468-1f3fd-200d-1f527.png","sheet_x":15,"sheet_y":53,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F468-1F3FE-200D-1F527","non_qualified":null,"image":"1f468-1f3fe-200d-1f527.png","sheet_x":15,"sheet_y":54,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F468-1F3FF-200D-1F527","non_qualified":null,"image":"1f468-1f3ff-200d-1f527.png","sheet_x":15,"sheet_y":55,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Male Mechanic","b":"1F468-200D-1F527","d":true,"e":true,"f":true,"h":true,"k":[15,50],"o":4},"suspension_railway":{"a":"Suspension Railway","b":"1F69F","d":true,"e":true,"f":true,"h":true,"j":["vehicle","transportation"],"k":[34,30],"o":2},"heavy_heart_exclamation_mark_ornament":{"a":"Heavy Heart Exclamation Mark Ornament","b":"2763-FE0F","c":"2763","d":true,"e":true,"f":true,"h":true,"k":[55,27],"o":2},"female-mechanic":{"skin_variations":{"1F3FB":{"unified":"1F469-1F3FB-200D-1F527","non_qualified":null,"image":"1f469-1f3fb-200d-1f527.png","sheet_x":18,"sheet_y":36,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FC":{"unified":"1F469-1F3FC-200D-1F527","non_qualified":null,"image":"1f469-1f3fc-200d-1f527.png","sheet_x":18,"sheet_y":37,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FD":{"unified":"1F469-1F3FD-200D-1F527","non_qualified":null,"image":"1f469-1f3fd-200d-1f527.png","sheet_x":18,"sheet_y":38,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FE":{"unified":"1F469-1F3FE-200D-1F527","non_qualified":null,"image":"1f469-1f3fe-200d-1f527.png","sheet_x":18,"sheet_y":39,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true},"1F3FF":{"unified":"1F469-1F3FF-200D-1F527","non_qualified":null,"image":"1f469-1f3ff-200d-1f527.png","sheet_x":18,"sheet_y":40,"added_in":"4.0","has_img_apple":true,"has_img_google":true,"has_img_twitter":true,"has_img_facebook":true}},"a":"Female Mechanic","b":"1F469-200D-1F527","d":true,"e":true,"f":true,"h":true,"k":[18,35],"o":4},"flag-jm":{"a":"Jamaica Flag","b":"1F1EF-1F1F2","d":true,"e":true,"f":true,"h":true,"k":[2,34],"o":2},"grey_question":{"a":"White Question Mark Ornament","b":"2754","d":true,"e":true,"f":true,"h":true,"j":["doubts","gray","huh","confused"],"k":[55,24],"o":2},"maple_leaf":{"a":"Maple Leaf","b":"1F341","d":true,"e":true,"f":true,"h":true,"j":["nature","plant","vegetable","ca","fall"],"k":[6,25],"o":2},"pound":{"a":"Banknote with Pound Sign","b":"1F4B7","d":true,"e":true,"f":true,"h":true,"j":["british","sterling","money","sales","bills","uk","england","currency"],"k":[26,13],"o":2},"money_with_wings":{"a":"Money with Wings","b":"1F4B8","d":true,"e":true,"f":true,"h":true,"j":["dollar","bills","payment","sale"],"k":[26,14],"o":2},"flag-jo":{"a":"Jordan Flag","b":"1F1EF-1F1F4","d":true,"e":true,"f":true,"h":true,"k":[2,35],"o":2},"fallen_leaf":{"a":"Fallen Leaf","b":"1F342","d":true,"e":true,"f":true,"h":true,"j":["nature","plant","vegetable","leaves"],"k":[6,26],"o":2},"factory_worker":{"skin_variations":{"1F3FB":{"unified":"1F9D1-1F3FB-200D-1F3ED","non_qualified":null,"image":"1f9d1-1f3fb-200d-1f3ed.png","sheet_x":45,"sheet_y":54,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FC":{"unified":"1F9D1-1F3FC-200D-1F3ED","non_qualified":null,"image":"1f9d1-1f3fc-200d-1f3ed.png","sheet_x":45,"sheet_y":55,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FD":{"unified":"1F9D1-1F3FD-200D-1F3ED","non_qualified":null,"image":"1f9d1-1f3fd-200d-1f3ed.png","sheet_x":45,"sheet_y":56,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FE":{"unified":"1F9D1-1F3FE-200D-1F3ED","non_qualified":null,"image":"1f9d1-1f3fe-200d-1f3ed.png","sheet_x":46,"sheet_y":0,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false},"1F3FF":{"unified":"1F9D1-1F3FF-200D-1F3ED","non_qualified":null,"image":"1f9d1-1f3ff-200d-1f3ed.png","sheet_x":46,"sheet_y":1,"added_in":"12.1","has_img_apple":true,"has_img_google":false,"has_img_twitter":false,"has_img_facebook":false}},"a":"Factory Worker","b":"1F9D1-200D-1F3ED","d":true,"e":false,"f":false,"h":false,"k":[45,53],"o":12},"broken_heart":{"a":"Broken Heart","b":"1F494","d":true,"e":true,"f":true,"h":true,"j":["sad","sorry","break","heart","heartbreak"],"k":[25,30],"l":["1114111||Math.floor(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?i.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,i.push(e,t)),(n+1===r||i.length>a)&&(o+=String.fromCharCode.apply(null,i),i.length=0)}return o},KL=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,YL=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"];function $L(e){var t=e.split("-").map((function(e){return"0x".concat(e)}));return VL.apply(null,t)}function JL(e){var t=e.name,a=e.short_names,i=e.skin_tone,n=e.skin_variations,r=e.emoticons,o=e.unified,s=e.custom,u=e.customCategory,l=e.imageUrl,_=e.id||a[0],f=":".concat(_,":");return s?{id:_,name:t,short_names:a,colons:f,emoticons:r,custom:s,customCategory:u,imageUrl:l}:(i&&(f+=":skin-tone-".concat(i,":")),{id:_,name:t,short_names:a,colons:f,emoticons:r,unified:o.toLowerCase(),skin:i||(n?1:null),native:$L(o)})}function XL(){return JL(QL.apply(void 0,arguments))}function QL(e,t,a,i){var n={};if("string"==typeof e){var r=e.match(KL);if(r&&(e=r[1],r[2]&&(t=parseInt(r[2],10))),i.aliases.hasOwnProperty(e)&&(e=i.aliases[e]),!i.emojis.hasOwnProperty(e))return null;n=i.emojis[e]}else e.id&&(i.aliases.hasOwnProperty(e.id)&&(e.id=i.aliases[e.id]),i.emojis.hasOwnProperty(e.id)&&(n=i.emojis[e.id],t||(t=e.skin)));if(Object.keys(n).length||((n=e).custom=!0,n.search||(n.search=WL(e))),n.emoticons||(n.emoticons=[]),n.variations||(n.variations=[]),n.skin_variations&&t>1){n=JSON.parse(JSON.stringify(n));var o=YL[t-1],s=n.skin_variations[o];if(s&&(!s.variations&&n.variations&&delete n.variations,a&&(void 0==s["has_img_".concat(a)]||s["has_img_".concat(a)])||!a))for(var u in n.skin_tone=t,s){var l=s[u];n[u]=l}}return n.variations&&n.variations.length&&((n=JSON.parse(JSON.stringify(n))).unified=n.variations.shift()),n}function eN(e){return e.reduce((function(e,t){return-1===e.indexOf(t)&&e.push(t),e}),[])}function tN(e,t){var a=eN(e),i=eN(t);return a.filter((function(e){return i.indexOf(e)>=0}))}function aN(e,t){var a={};for(var i in e){var n=e[i],r=n;t.hasOwnProperty(i)&&(r=t[i]),"object"===UL(r)&&(r=aN(n,r)),a[i]=r}return a}var iN,nN,rN="emoji-mart",oN="undefined"!==typeof window&&"localStorage"in window;function sN(e,t){if(nN)nN(e,t);else{if(!oN)return;try{window.localStorage["".concat(rN,".").concat(e)]=JSON.stringify(t)}catch(a){}}}var uN={update:function(e){for(var t in e){sN(t,e[t])}},set:sN,get:function(e){if(iN)return iN(e);if(oN)try{var t=window.localStorage["".concat(rN,".").concat(e)];if(t)return JSON.parse(t)}catch(a){return}},setNamespace:function(e){rN=e},setHandlers:function(e){e||(e={}),iN=e.getter,nN=e.setter}},lN=function(){function e(t,a){qL(this,e),t.compressed&&HL(t),this.data=t||{},this.set=a||null,this.originalPool={},this.index={},this.emojis={},this.emoticons={},this.customEmojisList=[],this.buildIndex()}return ZL(e,[{key:"buildIndex",value:function(){var e=this,t=function(t){var a=e.data.emojis[t],i=a.short_names,n=a.emoticons,r=a.skin_variations,o=i[0];if(n&&n.forEach((function(t){e.emoticons[t]||(e.emoticons[t]=o)})),r){e.emojis[o]={};for(var s=1;s<=6;s++)e.emojis[o][s]=XL({id:o,skin:s},s,e.set,e.data)}else e.emojis[o]=XL(o,null,e.set,e.data);e.originalPool[o]=a};for(var a in this.data.emojis)t(a)}},{key:"clearCustomEmojis",value:function(e){var t=this;this.customEmojisList.forEach((function(a){var i=a.id||a.short_names[0];delete e[i],delete t.emojis[i]}))}},{key:"addCustomToPool",value:function(e,t){var a=this;this.customEmojisList.length&&this.clearCustomEmojis(t),e.forEach((function(e){var i=e.id||e.short_names[0];i&&!t[i]&&(t[i]=QL(e,null,null,a.data),a.emojis[i]=XL(e,null,null,a.data))})),this.customEmojisList=e,this.index={}}},{key:"search",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.emojisToShowFilter,n=a.maxResults,r=a.include,o=a.exclude,s=a.custom,u=void 0===s?[]:s;this.customEmojisList!=u&&this.addCustomToPool(u,this.originalPool);var l=uN.get("skin")||1;n||(n=75),r||(r=[]),o||(o=[]);var _=null,f=this.originalPool;if(e.length){if("-"==e||"-1"==e)return[this.emojis[-1][l]];var d=e.toLowerCase().split(/[\s|,|\-|_]+/),c=[];if(d.length>2&&(d=[d[0],d[1]]),(r.length||o.length)&&(f={},this.data.categories.forEach((function(e){var a=!r||!r.length||r.indexOf(e.id)>-1,i=!(!o||!o.length)&&o.indexOf(e.id)>-1;a&&!i&&e.emojis.forEach((function(e){return f[e]=t.data.emojis[e]}))})),u.length)){var g=!r||!r.length||r.indexOf("custom")>-1,h=!(!o||!o.length)&&o.indexOf("custom")>-1;g&&!h&&this.addCustomToPool(u,f)}c=d.map((function(e){for(var a=f,i=t.index,n=0,r=0;r1?tN.apply(null,c):c.length?c[0]:[]}return _&&(i&&(_=_.filter((function(e){return i(f[e.id])}))),_&&_.length>n&&(_=_.slice(0,n))),_}}]),e}(),_N=new lN(ML);_N.emojis,_N.emoticons;var fN,dN,cN=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","poop"],gN={};function hN(){dN=!0,fN=uN.get("frequently")}var FN={add:function(e){dN||hN();var t=e.id;fN||(fN=gN),fN[t]||(fN[t]=0),fN[t]+=1,uN.set("last",t),uN.set("frequently",fN)},get:function(e){if(dN||hN(),!fN){gN={};for(var t=[],a=0;a").concat(_||"","")):r.createElement(h.name,pN({onClick:function(e){return function(e,t){t.onClick&&(0,t.onClick)(jN(t),e)}(e,t)},onMouseEnter:function(e){return function(e,t){t.onOver&&(0,t.onOver)(jN(t),e)}(e,t)},onMouseLeave:function(e){return function(e,t){t.onLeave&&(0,t.onLeave)(jN(t),e)}(e,t)},"aria-label":c,title:g,className:f},h.props),r.createElement("span",{style:l},_))};MN.propTypes=LN({},AN,{data:wN().object.isRequired}),MN.defaultProps=IN;var qN=MN;function GN(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}var ZN=function(e){function t(){return qL(this,t),bN(this,kN(t).apply(this,arguments))}return vN(t,e),ZL(t,[{key:"render",value:function(){var e=this.props,t=e.data,a=e.emojiProps,i=e.i18n,n=e.notFound,o=e.notFoundEmoji,s=n&&n()||r.createElement("div",{className:"emoji-mart-no-results"},qN(function(e){for(var t=1;tthis.maxMargin?this.maxMargin:t)!=this.margin)return this.props.hasStickyPosition||(this.label.style.top="".concat(t,"px")),this.margin=t,!0}},{key:"getEmojis",value:function(){var e=this,t=this.props,a=t.name,i=t.emojis,n=t.recent,r=t.perLine;if("Recent"==a){var o=this.props.custom,s=n||FN.get(r);if(s.length&&(i=s.map((function(e){var t=o.filter((function(t){return t.id===e}))[0];return t||e})).filter((function(t){return!!QL(t,null,null,e.data)}))),0===i.length&&s.length>0)return null}return i&&(i=i.slice(0)),i}},{key:"updateDisplay",value:function(e){this.getEmojis()&&this.container&&(this.container.style.display=e)}},{key:"setContainerRef",value:function(e){this.container=e}},{key:"setLabelRef",value:function(e){this.label=e}},{key:"render",value:function(){var e=this,t=this.props,a=t.id,i=t.name,n=t.hasStickyPosition,o=t.emojiProps,s=t.i18n,u=t.notFound,l=t.notFoundEmoji,_=this.getEmojis(),f={},d={},c={};_||(c={display:"none"}),n||(f={height:28},d={position:"absolute"});var g=s.categories[a]||i;return r.createElement("section",{ref:this.setContainerRef,className:"emoji-mart-category","aria-label":g,style:c},r.createElement("div",{style:f,"data-name":i,className:"emoji-mart-category-label"},r.createElement("span",{style:d,ref:this.setLabelRef,"aria-hidden":!0},g)),r.createElement("ul",{className:"emoji-mart-category-list"},_&&_.map((function(t){return r.createElement("li",{key:t.short_names&&t.short_names.join("_")||t},qN(function(e){for(var t=1;t=0||(d.push(e.toLowerCase()),c.push(e))})),r.createElement("div",{className:"emoji-mart-preview"},r.createElement("div",{className:"emoji-mart-preview-emoji","aria-hidden":"true"},qN(YN({key:e.id,emoji:e,data:this.data},a))),r.createElement("div",{className:"emoji-mart-preview-data","aria-hidden":"true"},r.createElement("div",{className:"emoji-mart-preview-name"},e.name),r.createElement("div",{className:"emoji-mart-preview-shortnames"},_.short_names.map((function(e){return r.createElement("span",{key:e,className:"emoji-mart-preview-shortname"},":",e,":")}))),r.createElement("div",{className:"emoji-mart-preview-emoticons"},c.map((function(e){return r.createElement("span",{key:e,className:"emoji-mart-preview-emoticon"},e)})))))}return r.createElement("div",{className:"emoji-mart-preview"},r.createElement("div",{className:"emoji-mart-preview-emoji","aria-hidden":"true"},s&&s.length&&qN(YN({emoji:s,data:this.data},a))),r.createElement("div",{className:"emoji-mart-preview-data","aria-hidden":"true"},r.createElement("span",{className:"emoji-mart-title-label"},o)),n&&r.createElement("div",{className:"emoji-mart-preview-skins".concat(i.skinEmoji?" custom":"")},i.skinEmoji?r.createElement(HN,{skin:i.skin,emojiProps:a,data:this.data,skinEmoji:i.skinEmoji,i18n:u,onChange:i.onChange}):r.createElement(VN,{skin:i.skin,i18n:u,onChange:i.onChange})))}}]),t}(r.PureComponent);$N.propTypes={showSkinTones:wN().bool,title:wN().string.isRequired,emoji:wN().string.isRequired,emojiProps:wN().object.isRequired,skinsProps:wN().object.isRequired},$N.defaultProps={showSkinTones:!0,onChange:function(){}};var JN=0,XN=function(e){function t(e){var a;return qL(this,t),(a=bN(this,kN(t).call(this,e))).state={icon:CN.search,isSearching:!1,id:++JN},a.data=e.data,a.emojiIndex=new lN(a.data),a.setRef=a.setRef.bind(EN(a)),a.clear=a.clear.bind(EN(a)),a.handleKeyUp=a.handleKeyUp.bind(EN(a)),a.handleChange=function(e){var t="function"===typeof requestIdleCallback?requestIdleCallback:setTimeout,a=!1;return function(){a||(a=!0,t((function(){a=!1,e()})))}}(a.handleChange.bind(EN(a))),a}return vN(t,e),ZL(t,[{key:"componentDidMount",value:function(){this.input&&this.input.value&&this.search(this.input.value)}},{key:"search",value:function(e){""==e?this.setState({icon:CN.search,isSearching:!1}):this.setState({icon:CN.delete,isSearching:!0}),this.props.onSearch(this.emojiIndex.search(e,{emojisToShowFilter:this.props.emojisToShowFilter,maxResults:this.props.maxResults,include:this.props.include,exclude:this.props.exclude,custom:this.props.custom}))}},{key:"clear",value:function(){""!=this.input.value&&(this.input.value="",this.input.focus(),this.search(""))}},{key:"handleChange",value:function(){this.input&&this.search(this.input.value)}},{key:"handleKeyUp",value:function(e){13===e.keyCode&&this.clear()}},{key:"setRef",value:function(e){this.input=e}},{key:"render",value:function(){var e=this.props,t=e.i18n,a=e.autoFocus,i=this.state,n=i.icon,o=i.isSearching,s=i.id,u="emoji-mart-search-".concat(s);return r.createElement("section",{className:"emoji-mart-search","aria-label":t.search},r.createElement("input",{id:u,ref:this.setRef,type:"search",onChange:this.handleChange,placeholder:t.search,autoFocus:a}),r.createElement("label",{className:"emoji-mart-sr-only",htmlFor:u},t.search),r.createElement("button",{className:"emoji-mart-search-icon",onClick:this.clear,onKeyUp:this.handleKeyUp,"aria-label":t.clear,disabled:!o},n()))}}]),t}(r.PureComponent);function QN(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function eP(e){for(var t=1;t0){var r={},o=0;e.custom.forEach((function(e){r[e.customCategory]||(r[e.customCategory]={id:e.customCategory?"custom-".concat(e.customCategory):"custom",name:e.customCategory||"Custom",emojis:[],anchor:0===o},o++);var t=r[e.customCategory],i=eP({},e,{id:e.short_names[0],custom:!0});t.emojis.push(i),a.CUSTOM.push(i)})),i=i.concat(Object.keys(r).map((function(e){return r[e]})))}a.hideRecent=!0,void 0!=e.include&&i.sort((function(t,a){return e.include.indexOf(t.id)>e.include.indexOf(a.id)?1:-1}));for(var s=0;s-1,_=!(!e.exclude||!e.exclude.length)&&e.exclude.indexOf(u.id)>-1;if(l&&!_)if(e.emojisToShowFilter){for(var f=[],d=u.emojis,c=0;c-1,m=!(!e.exclude||!e.exclude.length)&&e.exclude.indexOf(a.RECENT_CATEGORY.id)>-1;return F&&!m&&(a.hideRecent=!1,a.categories.unshift(a.RECENT_CATEGORY)),a.categories[0]&&(a.categories[0].first=!0),a.categories.unshift(a.SEARCH_CATEGORY),a.setAnchorsRef=a.setAnchorsRef.bind(EN(a)),a.handleAnchorClick=a.handleAnchorClick.bind(EN(a)),a.setSearchRef=a.setSearchRef.bind(EN(a)),a.handleSearch=a.handleSearch.bind(EN(a)),a.setScrollRef=a.setScrollRef.bind(EN(a)),a.handleScroll=a.handleScroll.bind(EN(a)),a.handleScrollPaint=a.handleScrollPaint.bind(EN(a)),a.handleEmojiOver=a.handleEmojiOver.bind(EN(a)),a.handleEmojiLeave=a.handleEmojiLeave.bind(EN(a)),a.handleEmojiClick=a.handleEmojiClick.bind(EN(a)),a.handleEmojiSelect=a.handleEmojiSelect.bind(EN(a)),a.setPreviewRef=a.setPreviewRef.bind(EN(a)),a.handleSkinChange=a.handleSkinChange.bind(EN(a)),a.handleKeyDown=a.handleKeyDown.bind(EN(a)),a.handleDarkMatchMediaChange=a.handleDarkMatchMediaChange.bind(EN(a)),a}return vN(t,e),ZL(t,[{key:"componentDidMount",value:function(){var e=this;this.state.firstRender&&(this.testStickyPosition(),this.firstRenderTimeout=setTimeout((function(){e.setState({firstRender:!1})}),60))}},{key:"componentDidUpdate",value:function(){this.updateCategoriesSize(),this.handleScroll()}},{key:"componentWillUnmount",value:function(){this.SEARCH_CATEGORY.emojis=null,clearTimeout(this.leaveTimeout),clearTimeout(this.firstRenderTimeout),this.darkMatchMedia&&this.darkMatchMedia.removeListener(this.handleDarkMatchMediaChange)}},{key:"testStickyPosition",value:function(){var e=document.createElement("div");["","-webkit-","-ms-","-moz-","-o-"].forEach((function(t){return e.style.position="".concat(t,"sticky")})),this.hasStickyPosition=!!e.style.position.length}},{key:"getPreferredTheme",value:function(){return"auto"!=this.props.theme?this.props.theme:this.state.theme?this.state.theme:"function"!==typeof matchMedia?RN.theme:(this.darkMatchMedia||(this.darkMatchMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMatchMedia.addListener(this.handleDarkMatchMediaChange)),this.darkMatchMedia.media.match(/^not/)?RN.theme:this.darkMatchMedia.matches?"dark":"light")}},{key:"handleDarkMatchMediaChange",value:function(){this.setState({theme:this.darkMatchMedia.matches?"dark":"light"})}},{key:"handleEmojiOver",value:function(e){var t=this.preview;if(t){var a=this.CUSTOM.filter((function(t){return t.id===e.id}))[0];for(var i in a)a.hasOwnProperty(i)&&(e[i]=a[i]);t.setState({emoji:e}),clearTimeout(this.leaveTimeout)}}},{key:"handleEmojiLeave",value:function(e){var t=this.preview;t&&(this.leaveTimeout=setTimeout((function(){t.setState({emoji:null})}),16))}},{key:"handleEmojiClick",value:function(e,t){this.props.onClick(e,t),this.handleEmojiSelect(e)}},{key:"handleEmojiSelect",value:function(e){var t=this;this.props.onSelect(e),this.hideRecent||this.props.recent||FN.add(e);var a=this.categoryRefs["category-1"];if(a){var i=a.maxMargin;this.props.enableFrequentEmojiSort&&a.forceUpdate(),requestAnimationFrame((function(){t.scroll&&(a.memoizeSize(),i!=a.maxMargin&&(t.updateCategoriesSize(),t.handleScrollPaint(),t.SEARCH_CATEGORY.emojis&&a.updateDisplay("none")))}))}}},{key:"handleScroll",value:function(){this.waitingForPaint||(this.waitingForPaint=!0,requestAnimationFrame(this.handleScrollPaint))}},{key:"handleScrollPaint",value:function(){if(this.waitingForPaint=!1,this.scroll){var e=null;if(this.SEARCH_CATEGORY.emojis)e=this.SEARCH_CATEGORY;else{for(var t=this.scroll.scrollTop,a=t>(this.scrollTop||0),i=0,n=0,r=this.categories.length;n0&&(i=u.top),l&&!e&&(e=s)}}t=this.scrollHeight&&(e=this.categories[this.categories.length-1])}if(e){var _=this.anchors,f=e.name;_.state.selected!=f&&_.setState({selected:f})}this.scrollTop=t}}},{key:"handleSearch",value:function(e){this.SEARCH_CATEGORY.emojis=e;for(var t=0,a=this.categories.length;tf,h="".concat(l("TWITTER.TWEET_MESSAGE_CHAR_LIMIT")," (").concat(f,")"),F=cP(a)>d,m="".concat(l("TWITTER.TWEET_MESSAGE_NEW_LINE_LIMIT")," (").concat(d,")");g?c=h:F&&(c=m);return(0,Na.jsx)(gP,{value:a,inputProps:{style:{fontSize:"22px",paddingTop:"8px"}},onChange:function(e){return i(e.currentTarget.value)},onKeyPress:function(e){F||"Enter"!==e.key||e.shiftKey||n()},multiline:!0,placeholder:l("TWITTER.TWEET_MESSAGE_PLACEHOLDER"),inputRef:o,error:null!==c,helperText:c||null})},FP=(0,r.memo)(hP),mP=(0,nf.ZP)(lh)({display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"justify-content",marginRight:"15px"}),pP=function(e){var t=e.showImagePrompt,a=e.showEmoji,i=e.onCloseClick,n=e.onPrimaryClick,r=uF(),o=(0,Ka.Z)(r,1)[0],s=o(t&&!a?"TWITTER.SUBMIT_IMAGE":"TWITTER.TWEET"),u=t||a;return(0,Na.jsxs)(mP,{children:[(0,Na.jsx)(rp,{variant:"contained",color:"primary",onClick:n,children:s}),u&&(0,Na.jsx)(pI,{style:{marginLeft:"8px"},variant:"contained",color:"error",onClick:i,children:o("GENERIC.CLOSE")})]})},EP=a(705),bP=a(4665),kP=(0,nf.ZP)(lh)({display:"flex",flexFlow:"row nowrap",justifyContent:"flex-start",paddingLeft:"5px"}),yP=(0,nf.ZP)(rp)({background:"transparent",minWidth:"45px"}),vP=function(e){var t=e.onImageClick,a=e.onEmojiClick,i=zR().ResourceConfig;if(!i)return null;var n=i.twitter,r=n.enableImages,o=n.enableEmojis;return(0,Na.jsxs)(kP,{children:[r&&(0,Na.jsx)(yP,{onClick:t,children:(0,Na.jsx)(EP.Z,{color:"action"})}),o&&(0,Na.jsx)(yP,{onClick:a,children:(0,Na.jsx)(bP.Z,{color:"action"})})]})},DP=(0,r.memo)(vP),wP=(0,nf.ZP)(lh)({paddingBottom:"8px",display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",flex:"1 0 45px"}),SP=function(){var e=jL(),t=e.message,a=e.setMessage,i=e.modalVisible,n=e.setModalVisible,o=zR().ResourceConfig,s=Wh().addAlert,u=uF().t,l=(0,r.useState)(!1),_=(0,Ka.Z)(l,2),f=_[0],d=_[1],c=(0,r.useState)(!1),g=(0,Ka.Z)(c,2),h=g[0],F=g[1],m=(0,r.useState)(""),p=(0,Ka.Z)(m,2),E=p[0],b=p[1],k=(0,r.useState)([]),y=(0,Ka.Z)(k,2),v=y[0],D=y[1],w=function(){F(!1),d(!1),b(""),D([]),a(""),n(!1)},S=(0,r.useCallback)((function(e){return b(e)}),[]),C=(0,r.useCallback)((function(e){return a(e)}),[a]);if(!o)return null;var A=o.twitter,T=A.characterLimit,x=A.newLineLimit,I=function(e){return!(e.length>T)&&(cP(e)0?v.map((function(e){return e.link})).join(PO):""},T_(CO.CREATE_TWEET,i).then((function(e){if("ok"!==e.status)return s({type:"error",message:u("TWITTER.FEEDBACK.CREATE_PROFILE_FAILURE")})})),w();case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){d(!1),F(!h)},L=function(){var e=ri(bi().mark((function e(){return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return F(!1),d(!f),e.next=4,ND(f);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return o?(0,Na.jsxs)(jT,{visible:i,handleClose:w,children:[(0,Na.jsx)(FP,{modalVisible:i,onEnter:R,message:t,handleChange:C}),(0,Na.jsx)(dP,{visible:h,value:E,handleChange:S}),(0,Na.jsx)(lP,{visible:f,onEmojiClick:function(e,i){a(t.concat(e.native))}}),(0,Na.jsx)(HO,{visible:!f&&v.length>0,images:v,removeImage:function(e){return D(v.filter((function(t){return e!==t.id})))}}),(0,Na.jsxs)(wP,{children:[(0,Na.jsx)(DP,{onImageClick:v.length0&&(0,Na.jsx)(CL,{tweets:_})]}),(0,Na.jsx)(UP,{handleClick:function(){var e=n.trim();e&&T_(CO.FETCH_TWEETS_FILTERED,{searchValue:e}).then((function(e){if("ok"!==e.status)return s({message:t(""),type:"error"});f(e.data.map(BO))}))}})]})},KP=eh((function(e){return{formControl:{width:"100%"}}})),YP=(0,nf.ZP)(lh)({position:"relative",width:"100%",height:"100%",padding:"15px"}),$P=function(e){var t=e.profileName,a=e.setProfileName,i=e.handleUpdate,n=e.defaultProfileNames,r=KP(),o=uF(),s=(0,Ka.Z)(o,1)[0];return(0,Na.jsxs)(YP,{children:[(0,Na.jsxs)(Hy,{className:r.formControl,children:[(0,Na.jsx)(Gy,{htmlFor:"profile-name",children:s("TWITTER.EDIT_DEFAULT_PROFILE_NAME")}),(0,Na.jsx)(SD,{value:t,onChange:function(e){e.preventDefault(),a(e.target.value)},inputProps:{name:"profileName",id:"profile-name"},children:n.map((function(e){return(0,Na.jsx)(lL,{value:e,children:e},e)}))})]}),(0,Na.jsx)(MP,{handleClick:i})]})},JP=(0,nf.ZP)(lh)({position:"relative",width:"100%",height:"100%",padding:"15px"});var XP=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0],a=BP().profile,i=qO(),n=p_(MO.defaultProfileNames),o=(0,r.useState)((null===a||void 0===a?void 0:a.profile_name)||""),s=(0,Ka.Z)(o,2),u=s[0],l=s[1],_=zR().ResourceConfig,f=Wh().addAlert,d=!_.twitter.allowEditableProfileName,c=function(){var e=ri(bi().mark((function e(){return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:T_(CO.CREATE_PROFILE,{profile_name:u}).then((function(e){if("ok"!==e.status)return f({message:"Failed to update profile",type:"error"});i(e.data)}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return d?(0,Na.jsx)($P,{profileName:u,defaultProfileNames:n,setProfileName:l,handleUpdate:c}):(0,Na.jsxs)(JP,{children:[(0,Na.jsx)(kR,{label:t("TWITTER.EDIT_PROFILE_NAME"),value:u,handleChange:l,allowChange:!0}),(0,Na.jsx)(MP,{handleClick:c})]})},QP=function(e){},ej=yw(HI),tj=function(){return jL().modalVisible&&(0,Na.jsx)(UT,{})},aj=(0,r.memo)(tj),ij=function(){var e=k_(MO.showCreateTweetModal),t=(0,r.useState)(0),a=(0,Ka.Z)(t,2),i=a[0],n=a[1],o=BP().profile,s=de(),u=!o||!o.profile_name||!o.profile_name.trim(),l=!u&&0===i&&"/twitter"===s.pathname;return(0,Na.jsx)(ej,{children:(0,Na.jsxs)(Q_,{id:"twitter-app",children:[(0,Na.jsx)(CP,{}),(0,Na.jsx)(aj,{}),(0,Na.jsx)(LP,{}),(0,Na.jsx)(Gh,{children:u?(0,Na.jsx)(XP,{}):(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(ie,{path:"/twitter",exact:!0,component:PL}),(0,Na.jsx)(ie,{path:"/twitter/search",component:VP}),(0,Na.jsx)(ie,{path:"/twitter/profile",component:GP})]})}),l&&(0,Na.jsx)(xP,{openModal:function(){return e(!0)}}),!u&&(0,Na.jsx)(jP,{activePage:i,handleChange:function(e,t){return n(t)}})]})})},nj=(0,r.memo)(ij);QP([{app:"TWITTER",method:CO.CREATE_TWEET_BROADCAST,data:{profile_id:41433131,profile_name:"Bombay_Dev",isMine:!1,isLiked:!1,retweetId:"",isRetweet:!1,seconds_since_tweet:1639,retweetProfileName:"",retweetAvatarUrl:"",isReported:!1,retweetIdentifier:"",avatar_url:"",id:115,message:"TypeScript sucks!",createdAt:"2021-12-01 00:42:03",updatedAt:"2021-12-01 00:42:03",identifier:"",retweet:null}},{app:"TWITTER",method:CO.CREATE_TWEET_BROADCAST,data:{profile_id:41433131,profile_name:"Tabarra",isMine:!1,isLiked:!1,retweetId:"",isRetweet:!1,seconds_since_tweet:1639,retweetProfileName:"",retweetAvatarUrl:"",isReported:!1,retweetIdentifier:"",avatar_url:"https://cdn.discordapp.com/avatars/272800190639898628/a_3560bc4a514b0dcb4098cc33e5c92e49.gif?size=4096",id:1e4,message:"I am the txadmen",createdAt:"2021-12-01 00:42:03",updatedAt:"2021-12-01 00:42:03",identifier:"",retweet:null}}],4e3);var rj=function(){return(0,Na.jsx)(r.Suspense,{fallback:(0,Na.jsx)(Bh,{}),children:(0,Na.jsx)(nj,{})})},oj=[{id:"DIALER",nameLocale:"APPS_DIALER",backgroundColor:vw,color:Dw,path:"/phone",Route:function(){return(0,Na.jsx)(UI,{id:"DIALER",path:"/phone",component:Sw,emitOnOpen:!1})}},{id:"BROWSER",nameLocale:"BROWSER.NAME",backgroundColor:Ib.Z[300],path:"/browser",color:Rb.Z.white,Route:function(){return(0,Na.jsx)(UI,{id:"BROWSER",path:"/browser",component:sR,emitOnOpen:!1})}},{id:"MESSAGES",nameLocale:"APPS_MESSAGES",backgroundColor:kx,color:yx,path:"/messages",Route:function(){return(0,Na.jsx)(UI,{id:"MESSAGES",path:"/messages",component:Dx,emitOnOpen:!1})}},{id:"CONTACTS",nameLocale:"APPS_CONTACTS",backgroundColor:Iw,color:Rw,path:"/contacts",Route:function(){return(0,Na.jsx)(UI,{id:"CONTACTS",path:"/contacts",component:Gw,emitOnOpen:!1})}},{id:"CALCULATOR",nameLocale:"APPS_CALCULATOR",backgroundColor:Ob.Z[500],color:Lb.Z[50],path:"/calculator",Route:function(){return(0,Na.jsx)(UI,{id:"CALCULATOR",path:"/calculator",component:$w,emitOnOpen:!1})}},{id:"SETTINGS",nameLocale:"APPS_SETTINGS",backgroundColor:"#383838",color:Lb.Z[50],path:"/settings",Route:function(){return(0,Na.jsx)(UI,{id:"SETTINGS",path:"/settings",component:nA,emitOnOpen:!1})}},{id:"MATCH",nameLocale:"APPS_MATCH",backgroundColor:VI,color:KI,path:"/match",Route:function(){return(0,Na.jsx)(UI,{id:"MATCH",path:"/match",component:yO,emitOnOpen:!0})}},{id:"TWITTER",nameLocale:"APPS_TWITTER",backgroundColor:zI,color:WI,path:"/twitter",Route:function(){return(0,Na.jsx)(UI,{id:"TWITTER",path:"/twitter",component:rj,emitOnOpen:!1})}},{id:"MARKETPLACE",nameLocale:"APPS_MARKETPLACE",backgroundColor:Jx,color:Xx,path:"/marketplace",Route:function(){return(0,Na.jsx)(UI,{id:"MARKETPLACE",path:"/marketplace",component:tI,emitOnOpen:!1})}},{id:"NOTES",nameLocale:"APPS_NOTES",backgroundColor:wI,color:SI,path:"/notes",Route:function(){return(0,Na.jsx)(UI,{id:"NOTES",path:"/notes",component:TI,emitOnOpen:!0})}},{id:"CAMERA",nameLocale:"APPS_CAMERA",backgroundColor:Lb.Z.A400,color:Rb.Z.white,path:"/camera",Route:function(){return(0,Na.jsx)(UI,{id:"CAMERA",path:"/camera",component:MI,emitOnOpen:!0})}}];var sj=function(){var e=Ab().icons,t=Rf(),i=P_().iconSet.value,n=(0,r.useMemo)((function(){return oj.map((function(n){var o=r.lazy((function(){return a(384)("./".concat(i.name,"/svg/").concat(n.id)).catch((function(){return"Was not able to find a dynamic import for icon from this icon set"}))})),s=r.lazy((function(){return a(384)("./".concat(i.name,"/app/").concat(n.id)).catch((function(){return"Was not able to find a dynamic import for icon from this icon set"}))})),u=xb(o),l=xb(s);return i.custom?(0,Ha.Z)((0,Ha.Z)({},n),{},{notification:e.find((function(e){return e.key===n.id})),NotificationIcon:u,Icon:l,notificationIcon:(0,Na.jsx)(u,{htmlColor:t.palette.text.primary,fontSize:"small"}),icon:(0,Na.jsx)(l,{}),isDisabled:n.disable}):(0,Ha.Z)((0,Ha.Z)({},n),{},{notification:e.find((function(e){return e.key===n.id})),NotificationIcon:u,notificationIcon:(0,Na.jsx)(u,{htmlColor:n.color,fontSize:"small"}),icon:(0,Na.jsx)(l,{}),isDisabled:n.disable})}))}),[e,i,t]),o=(0,r.useCallback)((function(e){return n.find((function(t){return t.id===e}))||null}),[n]);return{apps:n,getApp:o}},uj=function(e){return(0,sj().getApp)(e)},lj=function(){var e=sj().apps;return(0,Na.jsx)(Q_,{children:(0,Na.jsx)(lh,{component:"div",mt:6,px:1,children:e&&(0,Na.jsx)(Cb,{xs:3,items:e})})})},_j=a(9293),fj=a(2249),dj=a(366),cj=["onClose","onClickClose"],gj=eh((function(e){return{closeNotifBtn:{position:"absolute",right:"8px",top:"8px"},notificationItem:{paddingRight:function(e){return e.cantClose?"8px":"28px"},position:"relative"}}})),hj=function(e){var t=e.onClose,a=e.onClickClose,i=ai(e,cj),n=i.title,r=i.icon,o=i.content,s=i.cantClose,u=i.onClick,l=gj({cantClose:s});return(0,Na.jsxs)(_k,{divider:!0,button:!0,onClick:function(e){u&&(u(i),a(e))},className:l.notificationItem,children:[r&&(0,Na.jsx)(fw,{children:r}),(0,Na.jsx)(vk,{secondary:o,children:n}),!s&&(0,Na.jsx)(_m,{className:l.closeNotifBtn,size:"small",onClick:t,children:(0,Na.jsx)(NT.Z,{color:"primary"})})]})},Fj=function(){return p_(j_.phoneTime)},mj=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0];return(0,Na.jsx)(lh,{width:"100%",py:1,textAlign:"center",children:(0,Na.jsxs)(EF,{variant:"body2",color:"textSecondary",children:["\ud83c\udf89 ",t("NOTIFICATIONS.NO_UNREAD")," \ud83c\udf89"]})})},pj=eh((function(e){return{root:{backgroundColor:e.palette.background.default,height:"30px",width:"100%",color:e.palette.text.primary,zIndex:99,paddingLeft:"15px",paddingRight:"15px",position:"relative","&:hover":{cursor:"pointer"}},item:{margin:"0 6px"},text:{position:"relative",lineHeight:"30px",color:e.palette.text.primary},icon:{padding:"4px",color:e.palette.text.primary},drawer:{backgroundColor:e.palette.background.default,width:"100%",position:"absolute",top:"30px",zIndex:98},closeNotifBtn:{position:"absolute",right:"8px",top:"8px"},notificationItem:{position:"relative"},collapseBtn:{margin:"0 auto"}}})),Ej=function(){var e=pj(),t=Ab(),a=t.icons,i=t.notifications,n=t.removeNotification,o=t.barUncollapsed,s=t.setBarUncollapsed,u=Fj();return(0,r.useEffect)((function(){0===i.length&&s(!1)}),[i,s]),(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsxs)(Sb,{className:e.root,container:!0,justifyContent:"space-between",alignItems:"center",wrap:"nowrap",onClick:function(){s((function(e){return!e}))},children:[(0,Na.jsx)(Sb,{container:!0,item:!0,wrap:"nowrap",children:a.map((function(t){return(0,Na.jsx)(Sb,{item:!0,component:_m,className:e.icon,children:t.icon},t.key)}))}),u&&(0,Na.jsx)(Sb,{item:!0,className:e.item,children:(0,Na.jsx)(EF,{className:e.text,variant:"button",children:u})}),(0,Na.jsxs)(Sb,{container:!0,item:!0,wrap:"nowrap",justifyContent:"flex-end",alignItems:"center",children:[(0,Na.jsx)(Sb,{item:!0,children:(0,Na.jsx)(_j.Z,{fontSize:"small"})}),(0,Na.jsx)(Sb,{item:!0,className:e.item,children:(0,Na.jsx)(EF,{className:e.text,variant:"button",children:Ra.cellProvider})}),(0,Na.jsx)(Sb,{item:!0,children:(0,Na.jsx)(fj.Z,{style:{transform:"rotate(90deg)",display:"block"}})})]})]}),(0,Na.jsx)(aS,{direction:"down",in:o,mountOnEnter:!0,unmountOnExit:!0,children:(0,Na.jsxs)(cf,{square:!0,className:e.drawer,children:[(0,Na.jsx)(lh,{py:1,children:(0,Na.jsxs)(Vb,{children:[(0,Na.jsx)(RL,{}),i.map((function(e,t){return(0,Na.jsx)(hj,(0,Ha.Z)((0,Ha.Z)({},e),{},{onClose:function(a){var i;a.stopPropagation(),null===(i=e.onClose)||void 0===i||i.call(e,e),n(t)},onClickClose:function(){s(!1),e.cantClose||n(t)}}),t)}))]})}),(0,Na.jsxs)(lh,{display:"flex",flexDirection:"column",children:[!i.length&&(0,Na.jsx)(mj,{}),(0,Na.jsx)(_m,{className:e.collapseBtn,size:"small",onClick:function(){return s(!1)},children:(0,Na.jsx)(dj.Z,{})})]})]})})]})},bj=a(1133),kj=a(6378),yj=F_({key:"isNavigationDisabled",default:!1}),vj=eh((function(e){return{root:{zIndex:2,backgroundColor:e.palette.background.default}}})),Dj=function(){var e=vj(),t=fe(),a=function(e){var t=de(),a=_e(X).match;return e?ae(t.pathname,e):a}("/").isExact,i=zR().closePhone,n=Ab().setBarUncollapsed,r=p_(yj);return(0,Na.jsxs)(YD,{className:e.root,onChange:function(e,t){n(!1),t()},children:[(0,Na.jsx)(aw,{label:"Home",value:function(){(r||a)&&t.push("/")},icon:(0,Na.jsx)(Tb.Z,{})}),(0,Na.jsx)(aw,{label:"Close",value:i,icon:(0,Na.jsx)(kj.Z,{})}),(0,Na.jsx)(aw,{label:"Back",value:function(){r&&t.goBack()},icon:(0,Na.jsx)(bj.Z,{})})]})},wj=function(e,t,a){var i=(0,r.useRef)();(0,r.useEffect)((function(){i.current=a}),[a]),(0,r.useEffect)((function(){var a=function(a){var n=a.data,r=n.method,o=n.app,s=n.data;i.current&&i.current.call&&r===t&&o===e&&(S_({action:r,data:s}),i.current(s))};return window.addEventListener("message",a),function(){return window.removeEventListener("message",a)}}),[t,e])};QP([{app:"SIMCARD",method:AD.SET_NUMBER,data:"111-1134"}]);var Sj=a(4779),Cj="twitter:broadcast";var Aj,Tj=function(){var e=function(){var e=N_(),t=(0,Ka.Z)(e,1)[0],a=uF(),i=(0,Ka.Z)(a,1)[0],n=fe(),r=Ab(),o=r.addNotificationAlert,s=r.addNotification,u=r.hasNotification,l=r.removeId,_=uj("TWITTER"),f=_.icon,d=_.notificationIcon,c=b_(MO.unreadTweetsCount),g=(0,Ka.Z)(c,2),h=g[0],F=g[1],m=E_(MO.profile),p=m.state,E=m.contents;return{setNotification:function(e){var a=e.profile_name,r=e.message,_=e.isRetweet;if("hasValue"===p){var c=_?"TWITTER.MESSAGES.NEW_RETWEET_BROADCAST":"TWITTER.MESSAGES.NEW_BROADCAST";if(E){var g=null===E||void 0===E?void 0:E.profile_name;if(g!==a){var m=function(e,t){return t.toLowerCase().includes(e.toLowerCase())}(g,r);if("mentions"!==t.TWITTER_notiFilter.value||m){var b={app:"TWITTER",id:Cj,sound:m,title:i(c,{profile_name:a}),onClick:function(){return n.push("/twitter")},content:r,icon:f,notificationIcon:d},k=h+1;if(F(k),o(b),u(Cj))return l(Cj),void s((0,Ha.Z)((0,Ha.Z)({},b),{},{title:i("TWITTER.MESSAGES.UNREAD_MESSAGES",{count:k}),content:null}));s(b)}}}}},setUnreadCount:F,unreadCount:h}}(),t=e.setNotification,a=cL().addTweet,i=b_(MO.tweets),n=(0,Ka.Z)(i,2),o=n[0],s=n[1],u=E_(MO.profile),l=u.state,_=u.contents,f=k_(MO.filteredTweets),d=(0,r.useCallback)((function(e){if("hasValue"===l&&_){o.length>=50&&s((function(e){return e.slice(0,-1)})),t(e);var i=function(e,t){var a=BO(e),i=(null===t||void 0===t?void 0:t.identifier)===e.identifier;return(0,Ha.Z)((0,Ha.Z)({},a),{},{isMine:i,isLiked:!1})}(e,_);a(i)}}),[a,t,_,l,s,o.length]);(0,Sj.useNuiEvent)(OO,CO.FETCH_TWEETS_FILTERED,(function(e){f(e.map(BO))})),(0,Sj.useNuiEvent)(OO,CO.CREATE_TWEET_BROADCAST,d)},xj=function(){var e=k_(Tx);return{deleteListing:v_((function(t){var a=t.snapshot;return function(t){var i=a.getLoadable(Tx),n=i.state,r=i.contents;"hasValue"===n&&r.length&&e((function(e){return(0,Va.Z)(e).filter((function(e){return!t.includes(e.id)}))}))}}),[]),addListing:v_((function(t){var a=t.snapshot;return function(t){"hasValue"===a.getLoadable(Tx).state&&e((function(e){return[t].concat((0,Va.Z)(e))}))}}),[e])}},Ij=function(){var e=xj(),t=e.addListing,a=e.deleteListing,i=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0],a=N_(),i=(0,Ka.Z)(a,1)[0],n=Ab().addNotificationAlert,r=uj("MARKETPLACE"),o=r.icon,s=r.notificationIcon;return{setNotification:function(e){if(i.MARKETPLACE_notifyNewListing){var a={app:"MARKETPLACE",id:"".concat("marketplace:broadcast",":").concat(e.id),title:t("MARKETPLACE.NEW_LISTING"),content:e.description,icon:o,notificationIcon:s};n(a)}}}}().setNotification,n=(0,r.useCallback)((function(e){t(e.listing),i(e.listing)}),[t,i]),o=(0,r.useCallback)((function(e){a(e)}),[a]);(0,Sj.useNuiEvent)("MARKETPLACE",Cx.BROADCAST_ADD,n),(0,Sj.useNuiEvent)("MARKETPLACE",Cx.BROADCAST_DELETE,o)},Rj={transactions:F_({key:"transactionList",default:[]}),bankModal:F_({key:"modalVisibility",default:!1}),bankCredentials:F_({key:"bankCredentails",default:null}),notification:F_({key:"bankNotification",default:null})};!function(e){e.ADD_TRANSFER="npwd:addTransfer",e.ADD_TRANSFER_SUCCESS="npwd:addTransferSuccess",e.FETCH_TRANSACTIONS="npwd:fetchAllTransactions",e.SEND_TRANSFERS="npwd:sendTransfers",e.TRANSACTION_ALERT="npwd:bankTransactionAlert",e.TRANSACTION_NOTIFICATION="npwd:bankTransactionNotification",e.SEND_CREDENTIALS="npwd:sendBankCredentials",e.GET_CREDENTIALS="npwd:getBankCredentials",e.SEND_ALERT="npwd:sendBankAlert",e.SEND_NOTIFICATION="npwd:sendBankNotification"}(Aj||(Aj={}));var Oj="messages:broadcast",Lj=function(){var e=b_(j_.visibility),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=Ab().currentAlert,o=N_(),s=(0,Ka.Z)(o,1)[0].zoom,u=(0,r.useState)(!1),l=(0,Ka.Z)(u,2),_=l[0],f=l[1],d=(0,r.useRef)();return(0,r.useEffect)((function(){a&&f(!1)}),[a]),(0,r.useEffect)((function(){if(!a&&n){if(f(!0),d.current&&(clearTimeout(d.current),d.current=void 0),null!==n&&void 0!==n&&n.keepWhenPhoneClosed)return;d.current=setTimeout((function(){f(!1)}),3e3)}}),[n,a,i]),{bottom:(0,r.useMemo)((function(){return a?"0px":"".concat(-728*s.value,"px")}),[a,s]),visibility:_||a}},Nj=function(){var e=zA(),t=e.updateLocalMessages,a=e.updateLocalConversations,i=e.setMessageReadState,n=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0],a=fe(),i=Ab(),n=i.removeId,r=i.addNotification,o=i.addNotificationAlert,s=uj("MESSAGES"),u=s.icon,l=s.notificationIcon,_=YA(),f=_.getMessageConversationById,d=_.goToConversation,c=WA().addConversation,g=p_(GA.activeMessageConversation),h=Rm().getDisplayByNumber;return a.listen((function(e){null!==g&&void 0!==g&&g.conversation_id&&ae(e.pathname,{path:"/messages/conversations/".concat(g.conversation_id),exact:!0})&&n("".concat(Oj,":").concat(g.conversation_id))})),{setNotification:function(e){var a=e.conversationName,i=e.conversationId,s=e.message,_=null;(_=f(i))||(c(a),_=f(i));var g="".concat(Oj,":").concat(i),F=h(a),m={app:"MESSAGES",id:g,sound:!0,title:F||_.phoneNumber||a,onClick:function(){return d(_)},content:s,icon:u,notificationIcon:l};o(m,(function(e){var a;n(g),_.unread>1?r((0,Ha.Z)((0,Ha.Z)({},e),{},{title:_.phoneNumber||(null===(a=_)||void 0===a?void 0:a.display),content:t("MESSAGES.MESSAGES.UNREAD_MESSAGES",{count:_.unread})})):r(e)}))}}}(),o=n.setNotification,s=de().pathname,u=Lj().visibility,l=Rm(),_=l.getDisplayByNumber,f=l.getPictureByNumber,d=p_(GA.activeMessageConversation),c=(0,r.useCallback)((function(e){d.conversation_id===e.conversation_id&&t(e)}),[t,d]),g=(0,r.useCallback)((function(e){var t=_(e.phoneNumber),i=f(e.phoneNumber);a({phoneNumber:e.phoneNumber,conversation_id:e.conversation_id,updatedAt:e.updatedAt,avatar:i,unread:0,display:t})}),[a,_,f]);(0,Sj.useNuiEvent)("MESSAGES",yA.CREATE_MESSAGE_BROADCAST,(function(e){var t=e.conversationName,a=e.conversationId,n=e.message;u&&s.includes("/messages/conversations/".concat(a))||(i(a,1),o({conversationName:t,conversationId:a,message:n}))})),(0,Sj.useNuiEvent)("MESSAGES",yA.SEND_MESSAGE_SUCCESS,c),(0,Sj.useNuiEvent)("MESSAGES",yA.CREATE_MESSAGE_CONVERSATION_SUCCESS,g)},Pj=function(){var e=N_(),t=(0,Ka.Z)(e,1)[0],a=p_(Zh.currentCall),i=G_();if(!i)throw new Error("useRingtoneSound must be wrapped in SoundProvider");var n=(0,r.useMemo)((function(){return U_("ringtone",t)}),[t]);return(0,r.useEffect)((function(){i.playing(n.sound)&&!a&&i.stop(n.sound)}),[a,n.sound,i]),(0,r.useEffect)((function(){i.isMounted(n.sound)?i.volume(n.sound,n.volume):i.mount(n.sound,n.volume,!0)}),[i,n.sound,n.volume]),{play:function(){return i.play(n.sound,n.volume,!0)},stop:function(){return i.stop(n.sound)},playing:function(){return i.playing(n.sound)}}},jj=qm(lh)((function(e){return{position:"absolute",bottom:e.theme.spacing(1),right:"0"}})),Bj=function(e){var t=e.children;return(0,Na.jsxs)(lh,{paddingBottom:"48px",children:[(0,Na.jsx)(lh,{children:t}),(0,Na.jsx)(jj,{children:(0,Na.jsx)(hm,{isSmall:!0})})]})},Mj="call:current",qj=function(){var e=wF().modal,t=fe(),a=de().pathname,i=k_(yj),n=dF(),o=n.setCall,s=n.call,u=function(){var e=uF(),t=(0,Ka.Z)(e,1)[0],a=fe(),i=Ab(),n=i.addNotificationAlert,o=i.removeId,s=i.addNotification,u=Rm().getDisplayByNumber,l=xm(),_=Pj(),f=_.play,d=_.stop,c=uj("DIALER"),g=c.icon,h=c.notificationIcon,F=(0,r.useCallback)((function(e){return l.length?u(e):null}),[l,u]),m={app:"CALL",id:Mj,cantClose:!0,icon:g,onClick:function(){return a.push("/call")},notificationIcon:h};return{setNotification:function(e){d(),e?(null!==e&&void 0!==e&&e.is_accepted&&(o(Mj),s((0,Ha.Z)((0,Ha.Z)({},m),{},{content:(0,Na.jsx)(Bj,{children:t("DIALER.MESSAGES.CURRENT_CALL_WITH",{transmitter:F(e.transmitter)||e.transmitter})}),title:t("DIALER.MESSAGES.CURRENT_CALL_TITLE")}))),null!==e&&void 0!==e&&e.isTransmitter||null!==e&&void 0!==e&&e.is_accepted||(f(),o(Mj),n((0,Ha.Z)((0,Ha.Z)({},m),{},{title:t("DIALER.MESSAGES.INCOMING_CALL_TITLE",{transmitter:F(e.transmitter)||e.transmitter}),keepWhenPhoneClosed:!1,content:(0,Na.jsx)(Bj,{children:t("DIALER.MESSAGES.TRANSMITTER_IS_CALLING",{transmitter:F(e.transmitter)||e.transmitter})})}),(function(e){return s(e)})))):o(Mj)},clearNotification:function(){o(Mj),d()}}}(),l=u.setNotification,_=u.clearNotification,f=k_(Zh.callModal),d=(0,r.useState)(!1),c=(0,Ka.Z)(d,2),g=c[0],h=c[1];(0,r.useEffect)((function(){h(!!e)}),[e]),(0,r.useEffect)((function(){i(!s)}),[i,s]),(0,r.useEffect)((function(){e||"/call"!==a||t.replace("/"),e&&!g&&"/call"!==a&&t.push("/call")}),[t,e,a,g]),(0,Sj.useNuiEvent)("CALL",Ah.SET_CALL_INFO,(function(e){if(o(e),!e)return _();l(e)})),(0,Sj.useNuiEvent)("CALL",Ah.SET_CALL_MODAL,f)};function Gj(e){return(0,of.Z)("MuiAlert",e)}var Zj,Uj=(0,sf.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),zj=(0,Fm.Z)((0,Na.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Wj=(0,Fm.Z)((0,Na.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Hj=(0,Fm.Z)((0,Na.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Vj=(0,Fm.Z)((0,Na.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Kj=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],Yj=(0,nf.ZP)(cf,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t[a.variant],t["".concat(a.variant).concat((0,mh.Z)(a.color||a.severity))]]}})((function(e){var t=e.theme,a=e.ownerState,i="light"===t.palette.mode?af._j:af.$n,n="light"===t.palette.mode?af.$n:af._j,r=a.color||a.severity;return(0,Ba.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},r&&"standard"===a.variant&&(0,Ya.Z)({color:i(t.palette[r].light,.6),backgroundColor:n(t.palette[r].light,.9)},"& .".concat(Uj.icon),{color:"dark"===t.palette.mode?t.palette[r].main:t.palette[r].light}),r&&"outlined"===a.variant&&(0,Ya.Z)({color:i(t.palette[r].light,.6),border:"1px solid ".concat(t.palette[r].light)},"& .".concat(Uj.icon),{color:"dark"===t.palette.mode?t.palette[r].main:t.palette[r].light}),r&&"filled"===a.variant&&{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:"dark"===t.palette.mode?t.palette[r].dark:t.palette[r].main})})),$j=(0,nf.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Jj=(0,nf.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0"}),Xj=(0,nf.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Qj={success:(0,Na.jsx)(zj,{fontSize:"inherit"}),warning:(0,Na.jsx)(Wj,{fontSize:"inherit"}),error:(0,Na.jsx)(Hj,{fontSize:"inherit"}),info:(0,Na.jsx)(Vj,{fontSize:"inherit"})},eB=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiAlert"}),i=a.action,n=a.children,r=a.className,o=a.closeText,s=void 0===o?"Close":o,u=a.color,l=a.icon,_=a.iconMapping,f=void 0===_?Qj:_,d=a.onClose,c=a.role,g=void 0===c?"alert":c,h=a.severity,F=void 0===h?"success":h,m=a.variant,p=void 0===m?"standard":m,E=(0,ti.Z)(a,Kj),b=(0,Ba.Z)({},a,{color:u,severity:F,variant:p}),k=function(e){var t=e.variant,a=e.color,i=e.severity,n=e.classes,r={root:["root","".concat(t).concat((0,mh.Z)(a||i)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,tf.Z)(r,Gj,n)}(b);return(0,Na.jsxs)(Yj,(0,Ba.Z)({role:g,elevation:0,ownerState:b,className:(0,ef.Z)(k.root,r),ref:t},E,{children:[!1!==l?(0,Na.jsx)($j,{ownerState:b,className:k.icon,children:l||f[F]||Qj[F]}):null,(0,Na.jsx)(Jj,{ownerState:b,className:k.message,children:n}),null!=i?(0,Na.jsx)(Xj,{className:k.action,children:i}):null,null==i&&d?(0,Na.jsx)(Xj,{ownerState:b,className:k.action,children:(0,Na.jsx)(_m,{size:"small","aria-label":s,title:s,color:"inherit",onClick:d,children:Zj||(Zj=(0,Na.jsx)(pA,{fontSize:"small"}))})}):null]}))})),tB=eB;function aB(e){return(0,of.Z)("MuiAlertTitle",e)}(0,sf.Z)("MuiAlertTitle",["root"]);var iB=["className"],nB=(0,nf.ZP)(EF,{name:"MuiAlertTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{fontWeight:e.theme.typography.fontWeightMedium,marginTop:-2}})),rB=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiAlertTitle"}),i=a.className,n=(0,ti.Z)(a,iB),r=a,o=function(e){var t=e.classes;return(0,tf.Z)({root:["root"]},aB,t)}(r);return(0,Na.jsx)(nB,(0,Ba.Z)({gutterBottom:!0,component:"div",ownerState:r,ref:t,className:(0,ef.Z)(o.root,i)},n))})),oB=rB,sB=eh((function(e){return{snackbar:{marginTop:"-710px",display:"flex",justifyContent:"center",alignItems:"center"},alert:{"& .MuiAlert-action":{top:e.spacing(1),right:e.spacing(2),position:"absolute"},position:"relative",cursor:"pointer",width:"370px",height:"80px",zIndex:50,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"& .MuiAlert-icon":{color:e.palette.text.primary}},alertContent:{wordBreak:"break-all",display:"-webkit-box",maxWidth:"360px",height:"20px",margin:"0 auto","-webkit-line-clamp":3,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis"}}})),uB=function(){var e=sB(),t=Ab().currentAlert;return(0,Na.jsx)("div",{className:e.snackbar,children:(0,Na.jsx)(aS,{in:!!t,mountOnEnter:!0,unmountOnExit:!0,children:(0,Na.jsxs)(tB,{action:(0,Na.jsx)(_m,{color:"primary",size:"small",onClick:function(e){e.stopPropagation(),null===t||void 0===t||t.onCloseAlert(e)},children:(0,Na.jsx)(NT.Z,{fontSize:"small"})}),onClick:function(e){return null===t||void 0===t?void 0:t.onClickAlert(e)},icon:(null===t||void 0===t?void 0:t.icon)||!1,className:e.alert,elevation:6,children:[(0,Na.jsx)(oB,{children:(0,Na.jsx)(lh,{width:"282px",whiteSpace:"nowrap",children:(0,Na.jsx)(lh,{overflow:"hidden",component:"div",textOverflow:"ellipsis",children:null===t||void 0===t?void 0:t.title})})}),(0,Na.jsx)(lh,{component:"div",className:e.alertContent,textOverflow:"ellipsis",children:null===t||void 0===t?void 0:t.content})]})})})};function lB(e){return e.substring(2).toLowerCase()}var _B=function(e){var t=e.children,a=e.disableReactTree,i=void 0!==a&&a,n=e.mouseEvent,o=void 0===n?"onClick":n,s=e.onClickAway,u=e.touchEvent,l=void 0===u?"onTouchEnd":u,_=r.useRef(!1),f=r.useRef(null),d=r.useRef(!1),c=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){d.current=!0}),0),function(){d.current=!1}}),[]);var g=(0,wp.Z)(t.ref,f),h=(0,dv.Z)((function(e){var t=c.current;c.current=!1;var a=(0,Cp.Z)(f.current);!d.current||!f.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!a.documentElement.contains(e.target)||f.current.contains(e.target))||!i&&t||s(e))})),F=function(e){return function(a){c.current=!0;var i=t.props[e];i&&i(a)}},m={ref:g};return!1!==l&&(m[l]=F(l)),r.useEffect((function(){if(!1!==l){var e=lB(l),t=(0,Cp.Z)(f.current),a=function(){_.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",a),function(){t.removeEventListener(e,h),t.removeEventListener("touchmove",a)}}}),[h,l]),!1!==o&&(m[o]=F(o)),r.useEffect((function(){if(!1!==o){var e=lB(o),t=(0,Cp.Z)(f.current);return t.addEventListener(e,h),function(){t.removeEventListener(e,h)}}}),[h,o]),(0,Na.jsx)(r.Fragment,{children:r.cloneElement(t,m)})};function fB(e){return(0,of.Z)("MuiSnackbarContent",e)}(0,sf.Z)("MuiSnackbarContent",["root","message","action"]);var dB=["action","className","message","role"],cB=(0,nf.ZP)(cf,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,a="light"===t.palette.mode?.8:.98,i=(0,af._4)(t.palette.background.default,a);return(0,Ba.Z)({},t.typography.body2,(0,Ya.Z)({color:t.palette.getContrastText(i),backgroundColor:i,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:t.shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}))})),gB=(0,nf.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0"}),hB=(0,nf.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),FB=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiSnackbarContent"}),i=a.action,n=a.className,r=a.message,o=a.role,s=void 0===o?"alert":o,u=(0,ti.Z)(a,dB),l=a,_=function(e){var t=e.classes;return(0,tf.Z)({root:["root"],action:["action"],message:["message"]},fB,t)}(l);return(0,Na.jsxs)(cB,(0,Ba.Z)({role:s,square:!0,elevation:6,className:(0,ef.Z)(_.root,n),ownerState:l,ref:t},u,{children:[(0,Na.jsx)(gB,{className:_.message,ownerState:l,children:r}),i?(0,Na.jsx)(hB,{className:_.action,ownerState:l,children:i}):null]}))})),mB=FB;function pB(e){return(0,of.Z)("MuiSnackbar",e)}(0,sf.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var EB=["onEnter","onExited"],bB=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],kB=(0,nf.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t["anchorOrigin".concat((0,mh.Z)(a.anchorOrigin.vertical)).concat((0,mh.Z)(a.anchorOrigin.horizontal))]]}})((function(e){var t=e.theme,a=e.ownerState,i=(0,Ba.Z)({},!a.isRtl&&{left:"50%",right:"auto",transform:"translateX(-50%)"},a.isRtl&&{right:"50%",left:"auto",transform:"translateX(50%)"});return(0,Ba.Z)({zIndex:t.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===a.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===a.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===a.anchorOrigin.horizontal&&{justifyContent:"flex-end"},(0,Ya.Z)({},t.breakpoints.up("sm"),(0,Ba.Z)({},"top"===a.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===a.anchorOrigin.horizontal&&i,"left"===a.anchorOrigin.horizontal&&(0,Ba.Z)({},!a.isRtl&&{left:24,right:"auto"},a.isRtl&&{right:24,left:"auto"}),"right"===a.anchorOrigin.horizontal&&(0,Ba.Z)({},!a.isRtl&&{right:24,left:"auto"},a.isRtl&&{left:24,right:"auto"}))))})),yB=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiSnackbar"}),i=a.action,n=a.anchorOrigin,o=(n=void 0===n?{vertical:"bottom",horizontal:"left"}:n).vertical,s=n.horizontal,u=a.autoHideDuration,l=void 0===u?null:u,_=a.children,f=a.className,d=a.ClickAwayListenerProps,c=a.ContentProps,g=a.disableWindowBlurListener,h=void 0!==g&&g,F=a.message,m=a.onBlur,p=a.onClose,E=a.onFocus,b=a.onMouseEnter,k=a.onMouseLeave,y=a.open,v=a.resumeHideDuration,D=a.TransitionComponent,w=void 0===D?Dp:D,S=a.transitionDuration,C=void 0===S?{enter:xf.x9.enteringScreen,exit:xf.x9.leavingScreen}:S,A=a.TransitionProps,T=(A=void 0===A?{}:A).onEnter,x=A.onExited,I=(0,ti.Z)(a.TransitionProps,EB),R=(0,ti.Z)(a,bB),O="rtl"===Rf().direction,L=(0,Ba.Z)({},a,{anchorOrigin:{vertical:o,horizontal:s},isRtl:O}),N=function(e){var t=e.classes,a=e.anchorOrigin,i={root:["root","anchorOrigin".concat((0,mh.Z)(a.vertical)).concat((0,mh.Z)(a.horizontal))]};return(0,tf.Z)(i,pB,t)}(L),P=r.useRef(),j=r.useState(!0),B=(0,Ka.Z)(j,2),M=B[0],q=B[1],G=(0,SF.Z)((function(){p&&p.apply(void 0,arguments)})),Z=(0,SF.Z)((function(e){p&&null!=e&&(clearTimeout(P.current),P.current=setTimeout((function(){G(null,"timeout")}),e))}));r.useEffect((function(){return y&&Z(l),function(){clearTimeout(P.current)}}),[y,l,Z]);var U=function(){clearTimeout(P.current)},z=r.useCallback((function(){null!=l&&Z(null!=v?v:.5*l)}),[l,v,Z]);return r.useEffect((function(){if(!h&&y)return window.addEventListener("focus",z),window.addEventListener("blur",U),function(){window.removeEventListener("focus",z),window.removeEventListener("blur",U)}}),[h,z,y]),r.useEffect((function(){if(y)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||p&&p(e,"escapeKeyDown")}}),[M,y,p]),!y&&M?null:(0,Na.jsx)(_B,(0,Ba.Z)({onClickAway:function(e){p&&p(e,"clickaway")}},d,{children:(0,Na.jsx)(kB,(0,Ba.Z)({className:(0,ef.Z)(N.root,f),onBlur:function(e){m&&m(e),z()},onFocus:function(e){E&&E(e),U()},onMouseEnter:function(e){b&&b(e),U()},onMouseLeave:function(e){k&&k(e),z()},ownerState:L,ref:t},R,{children:(0,Na.jsx)(w,(0,Ba.Z)({appear:!0,in:y,timeout:C,direction:"top"===o?"down":"up",onEnter:function(e,t){q(!1),T&&T(e,t)},onExited:function(e){q(!0),x&&x(e)}},I,{children:_||(0,Na.jsx)(mB,(0,Ba.Z)({message:F,action:i},c))}))}))}))})),vB=yB,DB=eh({root:{zIndex:1e4},msg:{maxWidth:"300px",wordWrap:"break-word",fontSize:"1.1em"}}),wB=(0,r.forwardRef)((function(e,t){var a=DB();return(0,Na.jsx)(tB,(0,Ha.Z)((0,Ha.Z)({className:a.root,elevation:4,variant:"filled"},e),{},{ref:t,children:(0,Na.jsx)(EF,{className:a.msg,children:e.children})}))})),SB=wB,CB=eh({root:{position:"absolute",width:"auto",bottom:20}}),AB=function(){var e=(0,r.useState)(!1),t=(0,Ka.Z)(e,2),a=t[0],i=t[1],n=(0,r.useState)(""),o=(0,Ka.Z)(n,2),s=o[0],u=o[1],l=(0,r.useState)("info"),_=(0,Ka.Z)(l,2),f=_[0],d=_[1],c=CB();(0,Sj.useNuiEvent)("PHONE","startRestart",(function(){u("Restarting UI"),i(!0),d("error"),setTimeout((function(){return window.location.reload()}),3e3)}));return(0,Na.jsx)(vB,{open:a,onClose:function(){i(!1)},className:c.root,children:(0,Na.jsx)(wB,{severity:f,children:(0,Na.jsxs)(EF,{variant:"body1",children:["Phone - ",s]})})})},TB=function(e){var t=e.children,a=N_(),i=(0,Ka.Z)(a,1)[0],n=Lj(),r=n.bottom,o=n.visibility,s=Pm();return(0,Na.jsx)(aS,{direction:"up",timeout:{enter:500,exit:500},in:o,children:(0,Na.jsx)("div",{className:"PhoneWrapper",children:(0,Na.jsxs)("div",{className:"Phone",style:{position:"fixed",transformOrigin:"right bottom",transform:"scale(".concat(i.zoom.value),bottom:r},children:[(0,Na.jsx)("div",{className:"PhoneFrame",style:{backgroundImage:"url(media/frames/".concat(i.frame.value,")")}}),(0,Na.jsx)("div",{id:"phone",className:"PhoneScreen",style:{backgroundImage:s},children:t})]})})})},xB=JSON.parse('{"PhoneAsItem":{"enabled":false,"exportResource":"my-core-resource","exportFunction":"myCheckerFunction"},"general":{"useResourceIntegration":false,"toggleKey":"f1","toggleCommand":"phone"},"database":{"useIdentifierPrefix":false,"playerTable":"users","identifierColumn":"identifier","identifierType":"license","profileQueries":true,"phoneNumberColumn":"phone_number"},"images":{"url":"https://api.imgur.com/3/image","type":"imgur","imageEncoding":"jpg","contentType":"multipart/form-data","authorizationPrefix":"Client-ID","useAuthorization":true,"returnedDataIndexes":["data","link"]},"imageSafety":{"filterUnsafeImageUrls":true,"embedUnsafeImages":false,"embedUrl":"https://i.example.com/embed","safeImageUrls":["imgur.com","file.glass","dropbox.com","tenor.com","discord.com","discordapp.com","wikipedia.org"]},"twitter":{"showNotifications":true,"generateProfileNameFromUsers":true,"allowEditableProfileName":true,"allowDeleteTweets":true,"allowReportTweets":true,"characterLimit":160,"newLineLimit":10,"enableAvatars":true,"enableEmojis":true,"enableImages":true,"maxImages":3},"match":{"generateProfileNameFromUsers":true,"allowEditableProfileName":true},"debug":{"level":"error","enabled":true,"sentryEnabled":true}}');function IB(e){return(0,of.Z)("MuiDialog",e)}var RB=(0,sf.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),OB=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],LB=(0,nf.ZP)(zf,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),NB=(0,nf.ZP)(Ov,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),PB=(0,nf.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var a=e.ownerState;return[t.container,t["scroll".concat((0,mh.Z)(a.scroll))]]}})((function(e){var t=e.ownerState;return(0,Ba.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),jB=(0,nf.ZP)(cf,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var a=e.ownerState;return[t.paper,t["scrollPaper".concat((0,mh.Z)(a.scroll))],t["paperWidth".concat((0,mh.Z)(String(a.maxWidth)))],a.fullWidth&&t.paperFullWidth,a.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,a=e.ownerState;return(0,Ba.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===a.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===a.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!a.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===a.maxWidth&&(0,Ya.Z)({maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit)},"&.".concat(RB.paperScrollBody),(0,Ya.Z)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),"xs"!==a.maxWidth&&(0,Ya.Z)({maxWidth:"".concat(t.breakpoints.values[a.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(RB.paperScrollBody),(0,Ya.Z)({},t.breakpoints.down(t.breakpoints.values[a.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),a.fullWidth&&{width:"calc(100% - 64px)"},a.fullScreen&&(0,Ya.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(RB.paperScrollBody),{margin:0,maxWidth:"100%"}))})),BB={enter:xf.x9.enteringScreen,exit:xf.x9.leavingScreen},MB=r.forwardRef((function(e,t){var a=(0,rf.Z)({props:e,name:"MuiDialog"}),i=a["aria-describedby"],n=a["aria-labelledby"],o=a.BackdropComponent,s=a.BackdropProps,u=a.children,l=a.className,_=a.disableEscapeKeyDown,f=void 0!==_&&_,d=a.fullScreen,c=void 0!==d&&d,g=a.fullWidth,h=void 0!==g&&g,F=a.maxWidth,m=void 0===F?"sm":F,p=a.onBackdropClick,E=a.onClose,b=a.open,k=a.PaperComponent,y=void 0===k?cf:k,v=a.PaperProps,D=void 0===v?{}:v,w=a.scroll,S=void 0===w?"paper":w,C=a.TransitionComponent,A=void 0===C?qf:C,T=a.transitionDuration,x=void 0===T?BB:T,I=a.TransitionProps,R=(0,ti.Z)(a,OB),O=(0,Ba.Z)({},a,{disableEscapeKeyDown:f,fullScreen:c,fullWidth:h,maxWidth:m,scroll:S}),L=function(e){var t=e.classes,a=e.scroll,i=e.maxWidth,n=e.fullWidth,r=e.fullScreen,o={root:["root"],container:["container","scroll".concat((0,mh.Z)(a))],paper:["paper","paperScroll".concat((0,mh.Z)(a)),"paperWidth".concat((0,mh.Z)(String(i))),n&&"paperFullWidth",r&&"paperFullScreen"]};return(0,tf.Z)(o,IB,t)}(O),N=r.useRef(),P=(0,Rk.Z)(n),j=r.useMemo((function(){return{titleId:P}}),[P]);return(0,Na.jsx)(NB,(0,Ba.Z)({className:(0,ef.Z)(L.root,l),BackdropProps:(0,Ba.Z)({transitionDuration:x,as:o},s),closeAfterTransition:!0,BackdropComponent:LB,disableEscapeKeyDown:f,onClose:E,open:b,ref:t,onClick:function(e){N.current&&(N.current=null,p&&p(e),E&&E(e,"backdropClick"))},ownerState:O},R,{children:(0,Na.jsx)(A,(0,Ba.Z)({appear:!0,in:b,timeout:x,role:"presentation"},I,{children:(0,Na.jsx)(PB,{className:(0,ef.Z)(L.container),onMouseDown:function(e){N.current=e.target===e.currentTarget},ownerState:O,children:(0,Na.jsx)(jB,(0,Ba.Z)({as:y,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":P},D,{className:(0,ef.Z)(L.paper,D.className),ownerState:O,children:(0,Na.jsx)(DC.Provider,{value:j,children:u})}))})}))}))})),qB=MB,GB=function(e){var t=e.isOpen,a=e.errorMsg,i=uF(),n=(0,Ka.Z)(i,1)[0];return(0,Na.jsxs)(qB,{open:t,children:[(0,Na.jsx)(AC,{children:n("MISC.TOP_LEVEL_ERR_TITLE")}),(0,Na.jsxs)(OC,{children:[(0,Na.jsxs)(BC,{children:[n("MISC.TOP_LEVEL_ERR_MSG"),(0,Na.jsx)("br",{}),(0,Na.jsx)("br",{}),(0,Na.jsx)("code",{style:{color:"red"},children:a})]}),(0,Na.jsx)(UC,{children:(0,Na.jsx)(rp,{color:"primary",onClick:function(){return window.location.reload()},children:n("MISC.TOP_LEVEL_ERR_ACTION")})})]})]})},ZB=function(e){fi(a,e);var t=gi(a);function a(){var e;pi(this,a);for(var i=arguments.length,n=new Array(i),r=0;r=0;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),a++):a&&(e.splice(i,1),a--)}if(t)for(;a--;a)e.unshift("..");return e}var iM=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function nM(e){var t=iM.exec(e);return t?t.slice(1):[]}function rM(){for(var e=[],t=0;t=-1&&!i;n--){var r=n>=0?e[n]:"/";r&&(a=r+"/"+a,i="/"===r.charAt(0))}return(i?"/":"")+(a=aM(a.split("/").filter((function(e){return!!e})),!i).join("/"))||"."}function oM(e){for(var t=0;t=0&&""===e[a];a--);return t>a?[]:e.slice(t,a-t+1)}var sM=function(){function e(t){var a=this;void 0===t&&(t={}),this.name=e.id,this._prefix="app:///",this._iteratee=function(e){if(!e.filename)return e;var t=/^[A-Z]:\\/.test(e.filename),i=/^\//.test(e.filename);if(t||i){var n=t?e.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):e.filename,r=a._root?function(e,t){e=rM(e).substr(1),t=rM(t).substr(1);for(var a=oM(e.split("/")),i=oM(t.split("/")),n=Math.min(a.length,i.length),r=n,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};cM(this,e),this.init(t,a)}return hM(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||kM,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a1?t-1:0),i=1;i-1?e.replace(/###/g,"."):e}function n(){return!e||"string"===typeof e}for(var r="string"!==typeof t?[].concat(t):t.split(".");r.length>1;){if(n())return{};var o=i(r.shift());!e[o]&&a&&(e[o]=new a),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return n()?{}:{obj:e,k:i(r.shift())}}function TM(e,t,a){var i=AM(e,t,Object);i.obj[i.k]=a}function xM(e,t){var a=AM(e,t),i=a.obj,n=a.k;if(i)return i[n]}function IM(e,t,a){var i=xM(e,a);return void 0!==i?i:xM(t,a)}function RM(e,t,a){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"===typeof e[i]||e[i]instanceof String||"string"===typeof t[i]||t[i]instanceof String?a&&(e[i]=t[i]):RM(e[i],t[i],a):e[i]=t[i]);return e}function OM(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var LM={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function NM(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(function(e){return LM[e]})):e}var PM="undefined"!==typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function jM(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(a),n=e,r=0;rr+o;)o++,u=n[s=i.slice(r,r+o).join(a)];if(void 0===u)return;if("string"===typeof u)return u;if(s&&"string"===typeof u[s])return u[s];var l=i.slice(r+o).join(a);return l?jM(u,l,a):void 0}n=n[i[r]]}return n}}var BM=function(e){function t(e){var a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return cM(this,t),a=mM(this,pM(t).call(this)),PM&&DM.call(FM(a)),a.data=e||{},a.options=i,void 0===a.options.keySeparator&&(a.options.keySeparator="."),void 0===a.options.ignoreJSONStructure&&(a.options.ignoreJSONStructure=!0),a}return bM(t,e),hM(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,r=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[e,t];a&&"string"!==typeof a&&(o=o.concat(a)),a&&"string"===typeof a&&(o=o.concat(n?a.split(n):a)),e.indexOf(".")>-1&&(o=e.split("."));var s=xM(this.data,o);return s||!r||"string"!==typeof a?s:jM(this.data&&this.data[e]&&this.data[e][t],a,n)}},{key:"addResource",value:function(e,t,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=this.options.keySeparator;void 0===r&&(r=".");var o=[e,t];a&&(o=o.concat(r?a.split(r):a)),e.indexOf(".")>-1&&(i=t,t=(o=e.split("."))[1]),this.addNamespaces(t),TM(this.data,o,i),n.silent||this.emit("added",e,t,a,i)}},{key:"addResources",value:function(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var n in a)"string"!==typeof a[n]&&"[object Array]"!==Object.prototype.toString.apply(a[n])||this.addResource(e,t,n,a[n],{silent:!0});i.silent||this.emit("added",e,t,a)}},{key:"addResourceBundle",value:function(e,t,a,i,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(i=a,a=t,t=(o=e.split("."))[1]),this.addNamespaces(t);var s=xM(this.data,o)||{};i?RM(s,a,n):s=dM({},s,a),TM(this.data,o,s),r.silent||this.emit("added",e,t,a)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?dM({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(DM),MM={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,a,i,n){var r=this;return e.forEach((function(e){r.processors[e]&&(t=r.processors[e].process(t,a,i,n))})),t}},qM={},GM=function(e){function t(e){var a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cM(this,t),a=mM(this,pM(t).call(this)),PM&&DM.call(FM(a)),CM(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,FM(a)),a.options=i,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=vM.create("translator"),a}return bM(t,e),hM(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;var a=this.resolve(e,t);return a&&void 0!==a.res}},{key:"extractFromKey",value:function(e,t){var a=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===a&&(a=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(a&&e.indexOf(a)>-1){var r=e.match(this.interpolator.nestingRegexp);if(r&&r.length>0)return{key:e,namespaces:n};var o=e.split(a);(a!==i||a===i&&this.options.ns.indexOf(o[0])>-1)&&(n=o.shift()),e=o.join(i)}return"string"===typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:"translate",value:function(e,a,i){var n=this;if("object"!==_M(a)&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,o=this.extractFromKey(e[e.length-1],a),s=o.key,u=o.namespaces,l=u[u.length-1],_=a.lng||this.language,f=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_&&"cimode"===_.toLowerCase()){if(f){var d=a.nsSeparator||this.options.nsSeparator;return l+d+s}return s}var c=this.resolve(e,a),g=c&&c.res,h=c&&c.usedKey||s,F=c&&c.exactUsedKey||s,m=Object.prototype.toString.apply(g),p=["[object Number]","[object Function]","[object RegExp]"],E=void 0!==a.joinArrays?a.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,k="string"!==typeof g&&"boolean"!==typeof g&&"number"!==typeof g;if(b&&g&&k&&p.indexOf(m)<0&&("string"!==typeof E||"[object Array]"!==m)){if(!a.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,g,dM({},a,{ns:u})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(r){var y="[object Array]"===m,v=y?[]:{},D=y?F:h;for(var w in g)if(Object.prototype.hasOwnProperty.call(g,w)){var S="".concat(D).concat(r).concat(w);v[w]=this.translate(S,dM({},a,{joinArrays:!1,ns:u})),v[w]===S&&(v[w]=g[w])}g=v}}else if(b&&"string"===typeof E&&"[object Array]"===m)(g=g.join(E))&&(g=this.extendTranslation(g,e,a,i));else{var C=!1,A=!1,T=void 0!==a.count&&"string"!==typeof a.count,x=t.hasDefaultValue(a),I=T?this.pluralResolver.getSuffix(_,a.count):"",R=a["defaultValue".concat(I)]||a.defaultValue;!this.isValidLookup(g)&&x&&(C=!0,g=R),this.isValidLookup(g)||(A=!0,g=s);var O=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=O&&A?void 0:g,N=x&&R!==g&&this.options.updateMissing;if(A||C||N){if(this.logger.log(N?"updateKey":"missingKey",_,l,s,N?R:g),r){var P=this.resolve(s,dM({},a,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var j=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var M=0;M1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var u=o.extractFromKey(e,s),l=u.key;a=l;var _=u.namespaces;o.options.fallbackNS&&(_=_.concat(o.options.fallbackNS));var f=void 0!==s.count&&"string"!==typeof s.count,d=void 0!==s.context&&("string"===typeof s.context||"number"===typeof s.context)&&""!==s.context,c=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);_.forEach((function(e){o.isValidLookup(t)||(r=e,!qM["".concat(c[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(r)&&(qM["".concat(c[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(a,'" for languages "').concat(c.join(", "),'" won\'t get resolved as namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),c.forEach((function(a){if(!o.isValidLookup(t)){n=a;var r,u,_=l,c=[_];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(c,l,a,e,s);else f&&(r=o.pluralResolver.getSuffix(a,s.count)),f&&d&&c.push(_+r),d&&c.push(_+="".concat(o.options.contextSeparator).concat(s.context)),f&&c.push(_+=r);for(;u=c.pop();)o.isValidLookup(t)||(i=u,t=o.getResource(a,e,u,s))}})))}))}})),{res:t,usedKey:a,exactUsedKey:i,usedLng:n,usedNS:r}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,a,i):this.resourceStore.getResource(e,t,a,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t===a.substring(0,t.length)&&void 0!==e[a])return!0;return!1}}]),t}(DM);function ZM(e){return e.charAt(0).toUpperCase()+e.slice(1)}var UM=function(){function e(t){cM(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=vM.create("languageUtils")}return hM(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],a=e.split("-");return this.options.lowerCaseLng?a=a.map((function(e){return e.toLowerCase()})):2===a.length?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=ZM(a[1].toLowerCase()))):3===a.length&&(a[0]=a[0].toLowerCase(),2===a[1].length&&(a[1]=a[1].toUpperCase()),"sgn"!==a[0]&&2===a[2].length&&(a[2]=a[2].toUpperCase()),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=ZM(a[1].toLowerCase())),t.indexOf(a[2].toLowerCase())>-1&&(a[2]=ZM(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,a=this;return e?(e.forEach((function(e){if(!t){var i=a.formatLanguageCode(e);a.options.supportedLngs&&!a.isSupportedCode(i)||(t=i)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var i=a.getLanguagePartFromCode(e);if(a.isSupportedCode(i))return t=i;t=a.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var a=e[t];return a||(a=e[this.getScriptPartFromCode(t)]),a||(a=e[this.formatLanguageCode(t)]),a||(a=e[this.getLanguagePartFromCode(t)]),a||(a=e.default),a||[]}},{key:"toResolveHierarchy",value:function(e,t){var a=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],r=function(e){e&&(a.isSupportedCode(e)?n.push(e):a.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):"string"===typeof e&&r(this.formatLanguageCode(e)),i.forEach((function(e){n.indexOf(e)<0&&r(a.formatLanguageCode(e))})),n}}]),e}(),zM=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],WM={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function HM(){var e={};return zM.forEach((function(t){t.lngs.forEach((function(a){e[a]={numbers:t.nr,plurals:WM[t.fc]}}))})),e}var VM=function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};cM(this,e),this.languageUtils=t,this.options=a,this.logger=vM.create("pluralResolver"),this.rules=HM()}return hM(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,a=this.getRule(e);return a?a.numbers.map((function(a){return t.getSuffix(e,a)})):[]}},{key:"getSuffix",value:function(e,t){var a=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),r=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var o=function(){return a.options.prepend&&r.toString()?a.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?"_plural_".concat(r.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),KM=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};cM(this,e),this.logger=vM.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return hM(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:NM,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?OM(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?OM(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?OM(t.nestingPrefix):t.nestingPrefixEscaped||OM("$t("),this.nestingSuffix=t.nestingSuffix?OM(t.nestingSuffix):t.nestingSuffixEscaped||OM(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var a="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(a,"g")}},{key:"interpolate",value:function(e,t,a,i){var n,r,o,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var _=function(e){if(e.indexOf(s.formatSeparator)<0){var n=IM(t,u,e);return s.alwaysFormat?s.format(n,void 0,a,dM({},i,t,{interpolationkey:e})):n}var r=e.split(s.formatSeparator),o=r.shift().trim(),l=r.join(s.formatSeparator).trim();return s.format(IM(t,u,o),l,a,dM({},i,t,{interpolationkey:o}))};this.resetRegExp();var f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(o=0;n=t.regex.exec(e);){if(void 0===(r=_(n[1].trim())))if("function"===typeof f){var a=f(e,n,i);r="string"===typeof a?a:""}else{if(d){r=n[0];continue}s.logger.warn("missed to pass in variable ".concat(n[1]," for interpolating ").concat(e)),r=""}else"string"===typeof r||s.useRawValueToEscape||(r=SM(r));var u=t.safeValue(r);if(e=e.replace(n[0],u),d?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=n[0].length):t.regex.lastIndex=0,++o>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var a,i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=dM({},r);function s(e,t){var a=this.nestingOptionsSeparator;if(e.indexOf(a)<0)return e;var i=e.split(new RegExp("".concat(a,"[ ]*{"))),n="{".concat(i[1]);e=i[0],n=(n=this.interpolate(n,o)).replace(/'/g,'"');try{o=JSON.parse(n),t&&(o=dM({},t,o))}catch(r){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),r),"".concat(e).concat(a).concat(n)}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;a=this.nestingRegexp.exec(e);){var u=[],l=!1;if(-1!==a[0].indexOf(this.formatSeparator)&&!/{.*}/.test(a[1])){var _=a[1].split(this.formatSeparator).map((function(e){return e.trim()}));a[1]=_.shift(),u=_,l=!0}if((i=t(s.call(this,a[1].trim(),o),o))&&a[0]===e&&"string"!==typeof i)return i;"string"!==typeof i&&(i=SM(i)),i||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(e)),i=""),l&&(i=u.reduce((function(e,t){return n.format(e,t,r.lng,dM({},r,{interpolationkey:a[1].trim()}))}),i.trim())),e=e.replace(a[0],i),this.regexp.lastIndex=0}return e}}]),e}();var YM=function(e){function t(e,a,i){var n,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return cM(this,t),n=mM(this,pM(t).call(this)),PM&&DM.call(FM(n)),n.backend=e,n.store=a,n.services=i,n.languageUtils=i.languageUtils,n.options=r,n.logger=vM.create("backendConnector"),n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(i,r.backend,r),n}return bM(t,e),hM(t,[{key:"queueLoad",value:function(e,t,a,i){var n=this,r=[],o=[],s=[],u=[];return e.forEach((function(e){var i=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!a.reload&&n.store.hasResourceBundle(e,t)?n.state[s]=2:n.state[s]<0||(1===n.state[s]?o.indexOf(s)<0&&o.push(s):(n.state[s]=1,i=!1,o.indexOf(s)<0&&o.push(s),r.indexOf(s)<0&&r.push(s),u.indexOf(t)<0&&u.push(t)))})),i||s.push(e)})),(r.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:i}),{toLoad:r,pending:o,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,a){var i=e.split("|"),n=i[0],r=i[1];t&&this.emit("failedLoading",n,r,t),a&&this.store.addResourceBundle(n,r,a),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(a){!function(e,t,a,i){var n=AM(e,t,Object),r=n.obj,o=n.k;r[o]=r[o]||[],i&&(r[o]=r[o].concat(a)),i||r[o].push(a)}(a.loaded,[n],r),function(e,t){for(var a=e.indexOf(t);-1!==a;)e.splice(a,1),a=e.indexOf(t)}(a.pending,e),t&&a.errors.push(t),0!==a.pending.length||a.done||(Object.keys(a.loaded).forEach((function(e){o[e]||(o[e]=[]),a.loaded[e].length&&a.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,a){var i=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[a](e,t,(function(s,u){s&&u&&n<5?setTimeout((function(){i.read.call(i,e,t,a,n+1,2*r,o)}),r):o(s,u)})):o(null,{})}},{key:"prepareLoading",value:function(e,t){var a=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var r=this.queueLoad(e,t,i,n);if(!r.toLoad.length)return r.pending.length||n(),null;r.toLoad.forEach((function(e){a.loadOne(e)}))}},{key:"load",value:function(e,t,a){this.prepareLoading(e,t,{},a)}},{key:"reload",value:function(e,t,a){this.prepareLoading(e,t,{reload:!0},a)}},{key:"loadOne",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),n=i[0],r=i[1];this.read(n,r,"read",void 0,void 0,(function(i,o){i&&t.logger.warn("".concat(a,"loading namespace ").concat(r," for language ").concat(n," failed"),i),!i&&o&&t.logger.log("".concat(a,"loaded namespace ").concat(r," for language ").concat(n),o),t.loaded(e,i,o)}))}},{key:"saveMissing",value:function(e,t,a,i,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==a&&null!==a&&""!==a&&(this.backend&&this.backend.create&&this.backend.create(e,t,a,i,null,dM({},r,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,a,i))}}]),t}(DM);function $M(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===_M(e[1])&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===_M(e[2])||"object"===_M(e[3])){var a=e[3]||e[2];Object.keys(a).forEach((function(e){t[e]=a[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,a,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function JM(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function XM(){}var QM=function(e){function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(cM(this,t),e=mM(this,pM(t).call(this)),PM&&DM.call(FM(e)),e.options=JM(a),e.services={},e.logger=vM,e.modules={external:[]},i&&!e.isInitialized&&!a.isClone){if(!e.options.initImmediate)return e.init(a,i),mM(e,FM(e));setTimeout((function(){e.init(a,i)}),0)}return e}return bM(t,e),hM(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"===typeof e?new e:e:null}if("function"===typeof t&&(a=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=dM({},$M(),this.options,JM(t)),this.format=this.options.interpolation.format,a||(a=XM),!this.options.isClone){this.modules.logger?vM.init(i(this.modules.logger),this.options):vM.init(null,this.options);var n=new UM(this.options);this.store=new BM(this.options.resources,this.options);var r=this.services;r.logger=vM,r.resourceStore=this.store,r.languageUtils=n,r.pluralResolver=new VM(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),r.interpolator=new KM(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new YM(i(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n1?a-1:0),n=1;n0&&"dev"!==o[0]&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var a;return(a=e.store)[t].apply(a,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var a;return(a=e.store)[t].apply(a,arguments),e}}));var l=wM(),_=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(i),a(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?_():setTimeout(_,0),l}},{key:"loadResources",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:XM,i=a,n="string"===typeof e?e:this.language;if("function"===typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return i();var r=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){r.indexOf(e)<0&&r.push(e)}))};if(n)o(n);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return o(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(r,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(e,t,a){var i=wM();return e||(e=this.languages),t||(t=this.options.ns),a||(a=XM),this.services.backendConnector.reload(e,t,(function(e){i.resolve(),a(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&MM.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var a=this;this.isLanguageChangingTo=e;var i=wM();this.emit("languageChanging",e);var n=function(n){e||n||!a.services.languageDetector||(n=[]);var r="string"===typeof n?n:a.services.languageUtils.getBestMatchFromCodes(n);r&&(a.language||(a.language=r,a.languages=a.services.languageUtils.toResolveHierarchy(r)),a.translator.language||a.translator.changeLanguage(r),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(r)),a.loadResources(r,(function(e){!function(e,n){n?(a.language=n,a.languages=a.services.languageUtils.toResolveHierarchy(n),a.translator.changeLanguage(n),a.isLanguageChangingTo=void 0,a.emit("languageChanged",n),a.logger.log("languageChanged",n)):a.isLanguageChangingTo=void 0,i.resolve((function(){return a.t.apply(a,arguments)})),t&&t(e,(function(){return a.t.apply(a,arguments)}))}(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(n):n(e):n(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,a){var i=this,n=function e(t,n){var r;if("object"!==_M(n)){for(var o=arguments.length,s=new Array(o>2?o-2:0),u=2;u1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],n=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var o=function(e,a){var i=t.services.backendConnector.state["".concat(e,"|").concat(a)];return-1===i||2===i};if(a.precheck){var s=a.precheck(this,o);if(void 0!==s)return s}return!!this.hasResourceBundle(i,e)||(!this.services.backendConnector.backend||!(!o(i,e)||n&&!o(r,e)))}},{key:"loadNamespaces",value:function(e,t){var a=this,i=wM();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((function(e){a.options.ns.indexOf(e)<0&&a.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),t&&t(e)})),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var a=wM();"string"===typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter((function(e){return i.indexOf(e)<0}));return n.length?(this.options.preload=i.concat(n),this.loadResources((function(e){a.resolve(),t&&t(e)})),a):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new t(e,a)}},{key:"cloneInstance",value:function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:XM,n=dM({},this.options,a,{isClone:!0}),r=new t(n),o=["store","services","language"];return o.forEach((function(t){r[t]=e[t]})),r.services=dM({},this.services),r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r.translator=new GM(r.services,r.options),r.translator.on("*",(function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i0?_(b,--p):0,F--,10===E&&(F=1,h--),E}function D(){return E=p2||A(E)>3?"":" "}function O(e,t){for(;--t&&D()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return C(e,S()+(t<6&&32==w()&&32==D()))}function L(e){for(;D();)switch(E){case e:return p;case 34:case 39:34!==e&&39!==e&&L(E);break;case 40:41===e&&L(e);break;case 92:D()}return p}function N(e,t){for(;D()&&e+E!==57&&(e+E!==84||47!==w()););return"/*"+C(t,p-1)+"*"+r(47===e?e:D())}function P(e){for(;!A(w());)D();return C(e,p)}var j="-ms-",B="-moz-",M="-webkit-",q="comm",G="rule",Z="decl",U="@keyframes";function z(e,t){for(var a="",i=c(e),n=0;n6)switch(_(e,t+1)){case 109:if(45!==_(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+B+(108==_(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?H(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_(e,t+1))break;case 6444:switch(_(e,d(e)-3-(~l(e,"!important")&&10))){case 107:return u(e,":",":"+M)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(45===_(e,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(_(e,t+11)){case 114:return M+e+j+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+j+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+j+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+j+e+e}return e}function V(e){return x(K("",null,null,null,[""],e=T(e),0,[0],e))}function K(e,t,a,i,n,o,s,_,f){for(var c=0,h=0,F=s,m=0,p=0,E=0,b=1,k=1,y=1,C=0,A="",T=n,x=o,L=i,j=A;k;)switch(E=C,C=D()){case 40:if(108!=E&&58==j.charCodeAt(F-1)){-1!=l(j+=u(I(C),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:j+=I(C);break;case 9:case 10:case 13:case 32:j+=R(E);break;case 92:j+=O(S()-1,7);continue;case 47:switch(w()){case 42:case 47:g($(N(D(),S()),t,a),f);break;default:j+="/"}break;case 123*b:_[c++]=d(j)*y;case 125*b:case 59:case 0:switch(C){case 0:case 125:k=0;case 59+h:p>0&&d(j)-F&&g(p>32?J(j+";",i,a,F-1):J(u(j," ","")+";",i,a,F-2),f);break;case 59:j+=";";default:if(g(L=Y(j,t,a,c,h,n,_,A,T=[],x=[],F),o),123===C)if(0===h)K(j,t,L,L,T,o,F,_,x);else switch(m){case 100:case 109:case 115:K(e,L,L,i&&g(Y(e,L,L,0,0,n,_,A,n,T=[],F),x),n,x,F,_,i?T:x);break;default:K(j,L,L,L,[""],x,0,_,x)}}c=h=p=0,b=y=1,A=j="",F=s;break;case 58:F=1+d(j),p=E;default:if(b<1)if(123==C)--b;else if(125==C&&0==b++&&125==v())continue;switch(j+=r(C),C*b){case 38:y=h>0?1:(j+="\f",-1);break;case 44:_[c++]=(d(j)-1)*y,y=1;break;case 64:45===w()&&(j+=I(D())),m=w(),h=F=d(A=j+=P(S())),C++;break;case 45:45===E&&2==d(j)&&(b=0)}}return o}function Y(e,t,a,i,r,o,l,_,d,g,h){for(var F=r-1,m=0===r?o:[""],p=c(m),E=0,b=0,y=0;E0?m[v]+" "+D:u(D,/&\f/g,m[v])))&&(d[y++]=w);return k(e,t,a,0===r?G:_,d,g,h)}function $(e,t,a){return k(e,t,a,q,r(E),f(e,2,-2),0)}function J(e,t,a,i){return k(e,t,a,Z,f(e,0,i),f(e,i+1,-1),i)}var X=function(e,t,a){for(var i=0,n=0;i=n,n=w(),38===i&&12===n&&(t[a]=1),!A(n);)D();return C(e,p)},Q=function(e,t){return x(function(e,t){var a=-1,i=44;do{switch(A(i)){case 0:38===i&&12===w()&&(t[a]=1),e[a]+=X(p-1,t,a);break;case 2:e[a]+=I(i);break;case 4:if(44===i){e[++a]=58===w()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=r(i)}}while(i=D());return e}(T(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,i=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(a))&&!i){ee.set(e,!0);for(var n=[],r=Q(t,n),o=a.props,s=0,u=0;s-1&&!e.return)switch(e.type){case Z:e.return=H(e.value,e.length);break;case U:return z([y(e,{value:u(e.value,"@","@"+M)})],i);case G:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return z([y(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return z([y(e,{props:[u(t,/:(plac\w+)/,":-webkit-input-$1")]}),y(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),y(e,{props:[u(t,/:(plac\w+)/,j+"input-$1")]})],i)}return""}))}}],ne=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||ie;var r,o,s={},u=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a=4;++i,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(n){case 3:a^=(255&e.charCodeAt(i+2))<<16;case 2:a^=(255&e.charCodeAt(i+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(i)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)},n={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},r=a(3782),o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},_=(0,r.Z)((function(e){return u(e)?e:e.replace(o,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,a){return c={name:t,styles:a,next:c},t}))}return 1===n[e]||u(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,a){if(null==a)return"";if(void 0!==a.__emotion_styles)return a;switch(typeof a){case"boolean":return"";case"object":if(1===a.anim)return c={name:a.name,styles:a.styles,next:c},a.name;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)c={name:i.name,styles:i.styles,next:c},i=i.next;return a.styles+";"}return function(e,t,a){var i="";if(Array.isArray(a))for(var n=0;n96?f:d},g=function(e,t,a){var i;if(t){var n=t.shouldForwardProp;i=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!==typeof i&&a&&(i=e.__emotion_forwardProp),i},h=function(){return null},F=function e(t,a){var r,o,s=t.__emotion_real===t,f=s&&t.__emotion_base||t;void 0!==a&&(r=a.label,o=a.target);var d=g(t,a,s),F=d||c(f),m=!F("as");return function(){var p=arguments,E=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&E.push("label:"+r+";"),null==p[0]||void 0===p[0].raw)E.push.apply(E,p);else{0,E.push(p[0][0]);for(var b=p.length,k=1;k0&&void 0!==arguments[0]?arguments[0]:{},a=null==t||null==(e=t.keys)?void 0:e.reduce((function(e,a){return e[t.up(a)]={},e}),{});return a||{}}function s(e,t){return e.reduce((function(e,t){var a=e[t];return(!a||0===Object.keys(a).length)&&delete e[t],e}),t)}function u(e){var t,a=e.values,i=e.breakpoints,n=e.base||function(e,t){if("object"!==typeof e)return{};var a={},i=Object.keys(t);return Array.isArray(e)?i.forEach((function(t,i){i1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),a)}function r(e){if(e.type)return e;if("#"===e.charAt(0))return r(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),a=e.match(t);return a&&1===a[0].length&&(a=a.map((function(e){return e+e}))),a?"rgb".concat(4===a.length?"a":"","(").concat(a.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),a=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(a))throw new Error((0,i.Z)(9,e));var n,o=e.substring(t+1,e.length-1);if("color"===a){if(n=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].substr(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,i.Z)(10,n))}else o=o.split(",");return{type:a,values:o=o.map((function(e){return parseFloat(e)})),colorSpace:n}}function o(e){var t=e.type,a=e.colorSpace,i=e.values;return-1!==t.indexOf("rgb")?i=i.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(i[1]="".concat(i[1],"%"),i[2]="".concat(i[2],"%")),i=-1!==t.indexOf("color")?"".concat(a," ").concat(i.join(" ")):"".concat(i.join(", ")),"".concat(t,"(").concat(i,")")}function s(e){var t="hsl"===(e=r(e)).type?r(function(e){var t=(e=r(e)).values,a=t[0],i=t[1]/100,n=t[2]/100,s=i*Math.min(n,1-n),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+a/30)%12;return n-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",_=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",_.push(t[3])),o({type:l,values:_})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){var a=s(e),i=s(t);return(Math.max(a,i)+.05)/(Math.min(a,i)+.05)}function l(e,t){return e=r(e),t=n(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,o(e)}function _(e,t){if(e=r(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var a=0;a<3;a+=1)e.values[a]*=1-t;return o(e)}function f(e,t){if(e=r(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var a=0;a<3;a+=1)e.values[a]+=(255-e.values[a])*t;else if(-1!==e.type.indexOf("color"))for(var i=0;i<3;i+=1)e.values[i]+=(1-e.values[i])*t;return o(e)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?_(e,t):f(e,t)}},795:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var i=a(7462),n=a(3366),r=a(2466),o=["values","unit","step"];function s(e){var t=e.values,a=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,r=e.unit,s=void 0===r?"px":r,u=e.step,l=void 0===u?5:u,_=(0,n.Z)(e,o),f=Object.keys(a);function d(e){var t="number"===typeof a[e]?a[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function c(e){var t="number"===typeof a[e]?a[e]:e;return"@media (max-width:".concat(t-l/100).concat(s,")")}function g(e,t){var i=f.indexOf(t);return"@media (min-width:".concat("number"===typeof a[e]?a[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==i&&"number"===typeof a[f[i]]?a[f[i]]:t)-l/100).concat(s,")")}return(0,i.Z)({keys:f,values:a,up:d,down:c,between:g,only:function(e){return f.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,l.hB)({spacing:e}),a=function(){for(var e=arguments.length,a=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,a=void 0===t?{}:t,o=e.palette,l=void 0===o?{}:o,d=e.spacing,c=e.shape,g=void 0===c?{}:c,h=(0,n.Z)(e,f),F=s(a),m=_(d),p=(0,r.Z)({breakpoints:F,direction:"ltr",components:{},palette:(0,i.Z)({mode:"light"},l),spacing:m,shape:(0,i.Z)({},u,g)},h),E=arguments.length,b=new Array(E>1?E-1:0),k=1;k2){if(!l[e])return[e];e=l[e]}var t=e.split(""),a=(0,i.Z)(t,2),n=a[0],r=a[1],o=s[n],_=u[r]||"";return Array.isArray(_)?_.map((function(e){return o+e})):[o+_]})),f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],c=[].concat(f,d);function g(e,t,a,i){var n=(0,r.D)(e,t)||a;return"number"===typeof n?function(e){return"string"===typeof e?e:n*e}:Array.isArray(n)?function(e){return"string"===typeof e?e:n[e]}:"function"===typeof n?n:function(){}}function h(e){return g(e,"spacing",8)}function F(e,t){if("string"===typeof t||null==t)return t;var a=e(Math.abs(t));return t>=0?a:"number"===typeof a?-a:"-".concat(a)}function m(e,t,a,i){if(-1===t.indexOf(a))return null;var r=function(e,t){return function(a){return e.reduce((function(e,i){return e[i]=F(t,a),e}),{})}}(_(a),i),o=e[a];return(0,n.k9)(e,o,r)}function p(e,t){var a=h(e.theme);return Object.keys(e).map((function(i){return m(e,t,i,a)})).reduce(o.Z,{})}function E(e){return p(e,f)}function b(e){return p(e,d)}function k(e){return p(e,c)}E.propTypes={},E.filterProps=f,b.propTypes={},b.filterProps=d,k.propTypes={},k.filterProps=c;var y=k},129:function(e,t,a){"use strict";a.d(t,{D:function(){return o}});var i=a(4942),n=a(7312),r=a(9247);function o(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function s(e,t,a){var i,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a;return i="function"===typeof e?e(a):Array.isArray(e)?e[a]||n:o(e,a)||n,t&&(i=t(i)),i}t.Z=function(e){var t=e.prop,a=e.cssProperty,u=void 0===a?e.prop:a,l=e.themeKey,_=e.transform,f=function(e){if(null==e[t])return null;var a=e[t],f=o(e.theme,l)||{};return(0,r.k9)(e,a,(function(e){var a=s(f,_,e);return e===a&&"string"===typeof e&&(a=s(f,_,"".concat(t).concat("default"===e?"":(0,n.Z)(e)),e)),!1===u?a:(0,i.Z)({},u,a)}))};return f.propTypes={},f.filterProps=[t],f}},2645:function(e,t,a){"use strict";var i=a(4942),n=a(8546),r=a(3078),o=a(9247);function s(e){var t=e||{},a=t.sx,u=t.theme,l=void 0===u?{}:u;if(!a)return null;function _(e){var t=e;if("function"===typeof e)t=e(l);else if("object"!==typeof e)return e;var a=(0,o.W8)(l.breakpoints),u=Object.keys(a),_=a;return Object.keys(t).forEach((function(e){var a,u,f=(a=t[e],u=l,"function"===typeof a?a(u):a);if(null!==f&&void 0!==f)if("object"===typeof f)if(r.G[e])_=(0,n.Z)(_,(0,r.Z)(e,f,l));else{var d=(0,o.k9)({theme:l},f,(function(t){return(0,i.Z)({},e,t)}));!function(){for(var e=arguments.length,t=new Array(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:r;return(0,n.Z)(e)}},885:function(e,t,a){"use strict";var i=a(9598);function n(e){return 0===Object.keys(e).length}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(0,i.Z)();return!t||n(t)?e:t}},8079:function(e,t,a){"use strict";a.d(t,{Z:function(){return L}});var i=a(7462),n=a(3366),r=a(2466),o=a(795),s=a(4942);function u(e,t,a){var n;return(0,i.Z)({toolbar:(n={minHeight:56},(0,s.Z)(n,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.Z)(n,e.up("sm"),{minHeight:64}),n)},a)}var l=a(6189),_=a(48),f=a(375),d=a(5519),c=a(1798),g=a(2460),h={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},F=a(427),m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},p=a(7),E=["mode","contrastThreshold","tonalOffset"],b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.Z.white,default:f.Z.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:f.Z.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:f.Z.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y(e,t,a,i){var n=i.light||i,r=i.dark||1.5*i;e[t]||(e.hasOwnProperty(a)?e[t]=e[a]:"light"===t?e.light=(0,_.$n)(e.main,n):"dark"===t&&(e.dark=(0,_._j)(e.main,r)))}function v(e){var t=e.mode,a=void 0===t?"light":t,o=e.contrastThreshold,s=void 0===o?3:o,u=e.tonalOffset,v=void 0===u?.2:u,D=(0,n.Z)(e,E),w=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:F.Z[200],light:F.Z[50],dark:F.Z[400]}:{main:F.Z[700],light:F.Z[400],dark:F.Z[800]}}(a),S=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:c.Z[200],light:c.Z[50],dark:c.Z[400]}:{main:c.Z[500],light:c.Z[300],dark:c.Z[700]}}(a),C=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g.Z[500],light:g.Z[300],dark:g.Z[700]}:{main:g.Z[700],light:g.Z[400],dark:g.Z[800]}}(a),A=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(a),T=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p.Z[400],light:p.Z[300],dark:p.Z[700]}:{main:p.Z[800],light:p.Z[500],dark:p.Z[900]}}(a),x=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[400],light:h[300],dark:h[700]}:{main:"#ed6c02",light:h[500],dark:h[900]}}(a);function I(e){return(0,_.mi)(e,k.text.primary)>=s?k.text.primary:b.text.primary}var R=function(e){var t=e.color,a=e.name,n=e.mainShade,r=void 0===n?500:n,o=e.lightShade,s=void 0===o?300:o,u=e.darkShade,_=void 0===u?700:u;if(!(t=(0,i.Z)({},t)).main&&t[r]&&(t.main=t[r]),!t.hasOwnProperty("main"))throw new Error((0,l.Z)(11,a?" (".concat(a,")"):"",r));if("string"!==typeof t.main)throw new Error((0,l.Z)(12,a?" (".concat(a,")"):"",JSON.stringify(t.main)));return y(t,"light",s,v),y(t,"dark",_,v),t.contrastText||(t.contrastText=I(t.main)),t},O={dark:k,light:b};return(0,r.Z)((0,i.Z)({common:f.Z,mode:a,primary:R({color:w,name:"primary"}),secondary:R({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:C,name:"error"}),warning:R({color:x,name:"warning"}),info:R({color:A,name:"info"}),success:R({color:T,name:"success"}),grey:d.Z,contrastThreshold:s,getContrastText:I,augmentColor:R,tonalOffset:v},O[a]),D)}var D=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var w={textTransform:"uppercase"},S='"Roboto", "Helvetica", "Arial", sans-serif';function C(e,t){var a="function"===typeof t?t(e):t,o=a.fontFamily,s=void 0===o?S:o,u=a.fontSize,l=void 0===u?14:u,_=a.fontWeightLight,f=void 0===_?300:_,d=a.fontWeightRegular,c=void 0===d?400:d,g=a.fontWeightMedium,h=void 0===g?500:g,F=a.fontWeightBold,m=void 0===F?700:F,p=a.htmlFontSize,E=void 0===p?16:p,b=a.allVariants,k=a.pxToRem,y=(0,n.Z)(a,D);var v=l/14,C=k||function(e){return"".concat(e/E*v,"rem")},A=function(e,t,a,n,r){return(0,i.Z)({fontFamily:s,fontWeight:e,fontSize:C(t),lineHeight:a},s===S?{letterSpacing:"".concat((o=n/t,Math.round(1e5*o)/1e5),"em")}:{},r,b);var o},T={h1:A(f,96,1.167,-1.5),h2:A(f,60,1.2,-.5),h3:A(c,48,1.167,0),h4:A(c,34,1.235,.25),h5:A(c,24,1.334,0),h6:A(h,20,1.6,.15),subtitle1:A(c,16,1.75,.15),subtitle2:A(h,14,1.57,.1),body1:A(c,16,1.5,.15),body2:A(c,14,1.43,.15),button:A(h,14,1.75,.4,w),caption:A(c,12,1.66,.4),overline:A(c,12,2.66,1,w)};return(0,r.Z)((0,i.Z)({htmlFontSize:E,pxToRem:C,fontFamily:s,fontSize:l,fontWeightLight:f,fontWeightRegular:c,fontWeightMedium:h,fontWeightBold:m},T),y,{clone:!1})}function A(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var T=["none",A(0,2,1,-1,0,1,1,0,0,1,3,0),A(0,3,1,-2,0,2,2,0,0,1,5,0),A(0,3,3,-2,0,3,4,0,0,1,8,0),A(0,2,4,-1,0,4,5,0,0,1,10,0),A(0,3,5,-1,0,5,8,0,0,1,14,0),A(0,3,5,-1,0,6,10,0,0,1,18,0),A(0,4,5,-2,0,7,10,1,0,2,16,1),A(0,5,5,-3,0,8,10,1,0,3,14,2),A(0,5,6,-3,0,9,12,1,0,3,16,2),A(0,6,6,-3,0,10,14,1,0,4,18,3),A(0,6,7,-4,0,11,15,1,0,4,20,3),A(0,7,8,-4,0,12,17,2,0,5,22,4),A(0,7,8,-4,0,13,19,2,0,5,24,4),A(0,7,9,-4,0,14,21,2,0,5,26,4),A(0,8,9,-5,0,15,22,2,0,6,28,5),A(0,8,10,-5,0,16,24,2,0,6,30,5),A(0,8,11,-5,0,17,26,2,0,6,32,5),A(0,9,11,-5,0,18,28,2,0,7,34,6),A(0,9,12,-6,0,19,29,2,0,7,36,6),A(0,10,13,-6,0,20,31,3,0,8,38,7),A(0,10,13,-6,0,21,33,3,0,8,40,7),A(0,10,14,-6,0,22,35,3,0,8,42,7),A(0,11,14,-7,0,23,36,3,0,9,44,8),A(0,11,15,-7,0,24,38,3,0,9,46,8)],x=a(1314),I={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},R=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,a=void 0===t?{}:t,s=e.palette,l=void 0===s?{}:s,_=e.transitions,f=void 0===_?{}:_,d=e.typography,c=void 0===d?{}:d,g=(0,n.Z)(e,R),h=v(l),F=(0,o.Z)(e),m=(0,r.Z)(F,{mixins:u(F.breakpoints,F.spacing,a),palette:h,shadows:T.slice(),typography:C(h,c),transitions:(0,x.ZP)(f),zIndex:(0,i.Z)({},I)});m=(0,r.Z)(m,g);for(var p=arguments.length,E=new Array(p>1?p-1:0),b=1;b0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.duration,s=void 0===o?a.standard:o,l=n.easing,_=void 0===l?t.easeInOut:l,f=n.delay,d=void 0===f?0:f;(0,i.Z)(n,r);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:u(s)," ").concat(_," ").concat("string"===typeof d?d:u(d))})).join(",")}},e,{easing:t,duration:a})}},6482:function(e,t,a){"use strict";var i=(0,a(8079).Z)();t.Z=i},33:function(e,t,a){"use strict";a.d(t,{ZP:function(){return C},FO:function(){return D},Dz:function(){return w}});var i=a(3433),n=a(9439),r=a(7462),o=a(3366),s=a(8550),u=a(795),l=a(2645),_=a(7312),f=["variant"];function d(e){return 0===e.length}function c(e){var t=e.variant,a=(0,o.Z)(e,f),i=t||"";return Object.keys(a).sort().forEach((function(t){i+="color"===t?d(i)?e[t]:(0,_.Z)(e[t]):"".concat(d(i)?t:(0,_.Z)(t)).concat((0,_.Z)(e[t].toString()))})),i}var g=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],h=["theme"],F=["theme"];function m(e){return 0===Object.keys(e).length}var p=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},E=function(e,t){var a=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(a=t.components[e].variants);var i={};return a.forEach((function(e){var t=c(e.props);i[t]=e.style})),i},b=function(e,t,a,i){var n,r,o=e.ownerState,s=void 0===o?{}:o,u=[],l=null==a||null==(n=a.components)||null==(r=n[i])?void 0:r.variants;return l&&l.forEach((function(a){var i=!0;Object.keys(a.props).forEach((function(t){s[t]!==a.props[t]&&e[t]!==a.props[t]&&(i=!1)})),i&&u.push(t[c(a.props)])})),u};function k(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var y=(0,u.Z)();var v=a(6482),D=function(e){return k(e)&&"classes"!==e},w=k,S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,a=void 0===t?y:t,u=e.rootShouldForwardProp,_=void 0===u?k:u,f=e.slotShouldForwardProp,d=void 0===f?k:f;return function(e){var t,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=u.name,c=u.slot,y=u.skipVariantsResolver,v=u.skipSx,D=u.overridesResolver,w=(0,o.Z)(u,g),S=void 0!==y?y:c&&"Root"!==c||!1,C=v||!1;var A=k;"Root"===c?A=_:c&&(A=d);var T=(0,s.ZP)(e,(0,r.Z)({shouldForwardProp:A,label:t},w)),x=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),u=1;u0){var g=new Array(c).fill("");(d=[].concat((0,i.Z)(e),(0,i.Z)(g))).raw=[].concat((0,i.Z)(e.raw),(0,i.Z)(g))}else"function"===typeof e&&(d=function(t){var i=t.theme,n=(0,o.Z)(t,F);return e((0,r.Z)({theme:m(i)?a:i},n))});var k=T.apply(void 0,[d].concat((0,i.Z)(_)));return k};return T.withConfig&&(x.withConfig=T.withConfig),x}}({defaultTheme:v.Z,rootShouldForwardProp:D}),C=S},9888:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var i=a(5735);var n=a(7106);function r(e){var t=e.props,a=e.name,r=e.defaultTheme,o=function(e){var t=e.theme,a=e.name,n=e.props;return t&&t.components&&t.components[a]&&t.components[a].defaultProps?(0,i.Z)(t.components[a].defaultProps,n):n}({theme:(0,n.Z)(r),name:a,props:t});return o}var o=a(6482);function s(e){return r({props:e.props,name:e.name,defaultTheme:o.Z})}},4036:function(e,t,a){"use strict";var i=a(7312);t.Z=i.Z},4223:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var i=a(7462),n=a(2791),r=a(9259),o=a(184);function s(e,t){var a=function(a,n){return(0,o.jsx)(r.Z,(0,i.Z)({"data-testid":"".concat(t,"Icon"),ref:n},a,{children:e}))};return a.muiName=r.Z.muiName,n.memo(n.forwardRef(a))}},3199:function(e,t,a){"use strict";var i=a(3981);t.Z=i.Z},4421:function(e,t,a){"use strict";a.r(t),a.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return n},createSvgIcon:function(){return r.Z},debounce:function(){return o.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return u.Z},ownerDocument:function(){return l.Z},ownerWindow:function(){return _.Z},requirePropFactory:function(){return f},setRef:function(){return d},unstable_ClassNameGenerator:function(){return b.Z},unstable_useEnhancedEffect:function(){return c.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return h},useControlled:function(){return F.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return p.Z},useIsFocusVisible:function(){return E.Z}});var i=a(4036),n=a(8949).Z,r=a(4223),o=a(3199);var s=function(e,t){return function(){return null}},u=a(9103),l=a(8301),_=a(7602);a(7462);var f=function(e,t){return function(){return null}},d=a(2971).Z,c=a(162),g=a(7384);var h=function(e,t,a,i,n){return null},F=a(8278),m=a(9683),p=a(2071),E=a(8221),b=a(7125)},9103:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var i=a(2791);var n=function(e,t){return i.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8301:function(e,t,a){"use strict";var i=a(9723);t.Z=i.Z},7602:function(e,t,a){"use strict";var i=a(7979);t.Z=i.Z},8278:function(e,t,a){"use strict";var i=a(8959);t.Z=i.Z},162:function(e,t,a){"use strict";var i=a(5721);t.Z=i.Z},9683:function(e,t,a){"use strict";var i=a(8956);t.Z=i.Z},2071:function(e,t,a){"use strict";var i=a(7563);t.Z=i.Z},7384:function(e,t,a){"use strict";var i=a(6248);t.Z=i.Z},8221:function(e,t,a){"use strict";var i=a(5372);t.Z=i.Z},8023:function(e,t,a){"use strict";var i=a(2791).createContext(null);t.Z=i},9598:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var i=a(2791),n=a(8023);function r(){return i.useContext(n.Z)}},7312:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var i=a(6189);function n(e){if("string"!==typeof e)throw new Error((0,i.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8949:function(e,t,a){"use strict";function i(){for(var e=arguments.length,t=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:166;function i(){for(var i=this,n=arguments.length,r=new Array(n),o=0;o2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=a.clone?(0,i.Z)({},e):e;return n(e)&&n(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(n(t[i])&&i in e&&n(e[i])?o[i]=r(e[i],t[i],a):o[i]=t[i])})),o}},6189:function(e,t,a){"use strict";function i(e){for(var t="https://mui.com/production-error/?code="+e,a=1;a=0?(0,i.fl)(this._breadcrumbs,[a]).slice(-t):(0,i.fl)(this._breadcrumbs,[a]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var a;if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,i.pi)((0,i.pi)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,i.pi)((0,i.pi)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,i.pi)((0,i.pi)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,i.pi)((0,i.pi)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,i.pi)({trace:this._span.getTraceContext()},e.contexts);var n=null===(a=this._span.transaction)||void 0===a?void 0:a.name;n&&(e.tags=(0,i.pi)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,i.fl)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors((0,i.fl)(l(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,a,r){var s=this;return void 0===r&&(r=0),new o.c((function(o,u){var l=e[r];if(null===t||"function"!==typeof l)o(t);else{var _=l((0,i.pi)({},t),a);(0,n.J8)(_)?_.then((function(t){return s._notifyEventProcessors(e,t,a,r+1).then(o)})).then(null,u):s._notifyEventProcessors(e,_,a,r+1).then(o).then(null,u)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function l(){var e=(0,s.Rf)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function _(e){l().push(e)}},8571:function(e,t,a){"use strict";a.d(t,{ro:function(){return k},lb:function(){return b}});var i,n=a(9388),r=a(7648);!function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(i||(i={}));var o=a(6017),s=a(9685),u=a(8805),l=a(6870),_=a(2034),f=a(3835),d=a(5129);function c(){var e=(0,d.x1)();e&&(o.k.log("[Tracing] Transaction: "+f.p.InternalError+" -> Global error occured"),e.setStatus(f.p.InternalError))}var g=a(5522),h=a(4281);function F(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function m(e,t,a){var r,s,u=e.getClient(),l=u&&u.getOptions()||{};return u&&(0,d.zu)(l)?void 0!==t.sampled?(t.tags=(0,n.pi)((0,n.pi)({},t.tags),{__sentry_samplingMethod:i.Explicit}),t):("function"===typeof l.tracesSampler?(s=l.tracesSampler(a),t.tags=(0,n.pi)((0,n.pi)({},t.tags),{__sentry_samplingMethod:i.Sampler,__sentry_sampleRate:String(Number(s))})):void 0!==a.parentSampled?(s=a.parentSampled,t.tags=(0,n.pi)((0,n.pi)({},t.tags),{__sentry_samplingMethod:i.Inheritance})):(s=l.tracesSampleRate,t.tags=(0,n.pi)((0,n.pi)({},t.tags),{__sentry_samplingMethod:i.Rate,__sentry_sampleRate:String(Number(s))})),function(e){if(isNaN(e)||"number"!==typeof e&&"boolean"!==typeof e)return o.k.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return o.k.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(s)?s?(t.sampled=Math.random()=3?(r.k.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(s.p.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;r.k.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),this._heartbeatTimer=setTimeout((function(){e._beat()}),5e3)},t}(u.Y);function d(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},5333:function(e,t,a){"use strict";a.d(t,{_:function(){return l}});var i=a(9388),n=a(9685),r=a(6017),o=a(5708);e=a.hmd(e);var s=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],u={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},l=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:s,this._describeOperations=!("describeOperations"in e)||e.describeOperations}return t.prototype.setupOnce=function(t,a){var i;try{i=(0,n.l$)(e,"mongodb").Collection}catch(o){return void r.k.error("Mongo Integration was unable to require `mongodb` package.")}this._instrumentOperations(i,this._operations,a)},t.prototype._instrumentOperations=function(e,t,a){var i=this;t.forEach((function(t){return i._patchOperation(e,t,a)}))},t.prototype._patchOperation=function(e,t,a){if(t in e.prototype){var n=this._getSpanContextFromOperationArguments.bind(this);(0,o.hl)(e.prototype,t,(function(e){return function(){for(var r,o,s,u=[],l=0;l",n[o[1]]="string"===typeof f?f:f.name||""}else for(var d=0;dthis._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),l=function(){function e(e){if(this.traceId=(0,n.DM)(),this.spanId=(0,n.DM)().substring(16),this.startTimestamp=(0,r._I)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var a=new e((0,i.pi)((0,i.pi)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return a.spanRecorder=this.spanRecorder,a.spanRecorder&&a.spanRecorder.add(a),a.transaction=this.transaction,a},e.prototype.setTag=function(e,t){var a;return this.tags=(0,i.pi)((0,i.pi)({},this.tags),((a={})[e]=t,a)),this},e.prototype.setData=function(e,t){var a;return this.data=(0,i.pi)((0,i.pi)({},this.data),((a={})[e]=t,a)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=s.p.fromHttpCode(e);return t!==s.p.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===s.p.Ok},e.prototype.finish=function(e){this.endTimestamp="number"===typeof e?e:(0,r._I)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.getTraceContext=function(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},3835:function(e,t,a){"use strict";var i;a.d(t,{p:function(){return i}}),function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(i||(i={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(i||(i={}))},4281:function(e,t,a){"use strict";a.d(t,{Y:function(){return u}});var i=a(9388),n=a(7648),r=a(8805),o=a(6017),s=a(4533),u=function(e){function t(t,a){var i=e.call(this,t)||this;return i._measurements={},i._hub=(0,n.Gd)(),(0,r.V9)(a,n.Xb)&&(i._hub=a),i.name=t.name?t.name:"",i._trimEnd=t.trimEnd,i.transaction=i,i}return(0,i.ZT)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new s.g(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=(0,i.pi)({},e)},t.prototype.finish=function(t){var a=this;if(void 0===this.endTimestamp){if(this.name||(o.k.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0===this.sampled){var i=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==a&&e.endTimestamp})):[];this._trimEnd&&i.length>0&&(this.endTimestamp=i.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var n={contexts:{trace:this.getTraceContext()},spans:i,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction"};return Object.keys(this._measurements).length>0&&(o.k.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),n.measurements=this._measurements),this._hub.captureEvent(n)}o.k.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},t}(s.D)},5129:function(e,t,a){"use strict";a.d(t,{zu:function(){return r},qG:function(){return o},x1:function(){return s},XL:function(){return u},WB:function(){return l}});var i=a(7648),n=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function r(e){return"tracesSampleRate"in e||"tracesSampler"in e}function o(e){var t=e.match(n);if(t){var a=void 0;return"1"===t[3]?a=!0:"0"===t[3]&&(a=!1),{traceId:t[1],parentSampled:a,parentSpanId:t[2]}}}function s(e){var t,a;return void 0===e&&(e=(0,i.Gd)()),null===(a=null===(t=e)||void 0===t?void 0:t.getScope())||void 0===a?void 0:a.getTransaction()}function u(e){return e/1e3}function l(e){return 1e3*e}},5385:function(e,t,a){"use strict";var i;a.d(t,{$:function(){return i}}),function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(i||(i={}))},4044:function(e,t,a){"use strict";a.d(t,{R:function(){return n}});var i=a(8805);function n(e){try{for(var t=e,a=[],i=0,n=0,o=" > ".length,s=void 0;t&&i++<5&&!("html"===(s=r(t))||i>1&&n+a.length*o+s.length>=80);)a.push(s),n+=s.length,t=t.parentNode;return a.reverse().join(" > ")}catch(u){return""}}function r(e){var t,a,n,r,o,s=e,u=[];if(!s||!s.tagName)return"";if(u.push(s.tagName.toLowerCase()),s.id&&u.push("#"+s.id),(t=s.className)&&(0,i.HD)(t))for(a=t.split(/\s+/),o=0;o2?t[2]:void 0;if(n){var r=i,o=String(n);i=o,F("history",{from:r,to:o})}return e.apply(this,t)}}f.onpopstate=function(){for(var t=[],a=0;a"}return e.event_id||""}function l(e){var t=r();if(!("console"in t))return e();var a=t.console,i={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&a[e].__sentry_original__&&(i[e]=a[e],a[e]=a[e].__sentry_original__)}));var n=e();return Object.keys(i).forEach((function(e){a[e]=i[e]})),n}function _(e,t,a){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||a||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(a){e.exception.values[0].mechanism[a]=t[a]}))}catch(a){}}function d(){try{return document.location.href}catch(e){return""}}function c(e,t){if(!t)return 6e4;var a=parseInt(""+t,10);if(!isNaN(a))return 1e3*a;var i=Date.parse(""+t);return isNaN(i)?6e4:i-e}},9685:function(e,t,a){"use strict";a.d(t,{KV:function(){return r},l$:function(){return o},SB:function(){return u}});var i=a(8805),n=a(5708);function r(){return"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function o(e,t){return e.require(t)}e=a.hmd(e);var s=["cookies","data","headers","method","query_string","url"];function u(t,a){if(void 0===a&&(a=s),!r())throw new Error("Can't get node request data outside of a node environment");var u={},l=t.headers||t.header||{},_=t.method,f=t.hostname||t.host||l.host||"",d="https"===t.protocol||t.secure||(t.socket||{}).encrypted?"https":"http",c=t.originalUrl||t.url||"",g=d+"://"+f+c;return a.forEach((function(a){switch(a){case"headers":u.headers=l;break;case"method":u.method=_;break;case"url":u.url=g;break;case"cookies":u.cookies=t.cookies||o(e,"cookie").parse(l.cookie||"");break;case"query_string":u.query_string=o(e,"url").parse(c||"",!1).query;break;case"data":if("GET"===_||"HEAD"===_)break;void 0!==t.body&&(u.data=(0,i.HD)(t.body)?t.body:JSON.stringify((0,n.Fv)(t.body)));break;default:({}).hasOwnProperty.call(t,a)&&(u[a]=t[a])}})),u}},5708:function(e,t,a){"use strict";a.d(t,{Jr:function(){return p},zf:function(){return m},hl:function(){return l},Fv:function(){return F},Qy:function(){return c},_j:function(){return _}});var i=a(9388),n=a(4044),r=a(8805),o=function(){function e(){this._hasWeakSet="function"===typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t"}try{s.currentTarget=(0,r.kK)(o.currentTarget)?(0,n.R)(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(u){s.currentTarget=""}for(var i in"undefined"!==typeof CustomEvent&&(0,r.V9)(e,CustomEvent)&&(s.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,i)&&(s[i]=o);return s}return e}function d(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function c(e,t,a){void 0===t&&(t=3),void 0===a&&(a=102400);var i=F(e,t);return d(i)>a?c(e,t-1,a):i}function g(e,t){return"domain"===t&&e&&"object"===typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!==typeof a.g&&e===a.g?"[Global]":"undefined"!==typeof window&&e===window?"[Window]":"undefined"!==typeof document&&e===document?"[Document]":(0,r.Cy)(e)?"[SyntheticEvent]":"number"===typeof e&&e!==e?"[NaN]":void 0===e?"[undefined]":"function"===typeof e?"[Function: "+(0,s.$)(e)+"]":"symbol"===typeof e?"["+String(e)+"]":"bigint"===typeof e?"[BigInt: "+String(e)+"]":e}function h(e,t,a,i){if(void 0===a&&(a=1/0),void 0===i&&(i=new o),0===a)return function(e){var t=Object.prototype.toString.call(e);if("string"===typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var a=g(e);return(0,r.pt)(a)?a:t}(t);if(null!==t&&void 0!==t&&"function"===typeof t.toJSON)return t.toJSON();var n=g(t,e);if((0,r.pt)(n))return n;var s=f(t),u=Array.isArray(t)?[]:{};if(i.memoize(t))return"[Circular ~]";for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(u[l]=h(l,s[l],a-1,i));return i.unmemoize(t),u}function F(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,a){return h(e,a,t)})))}catch(a){return"**non-serializable**"}}function m(e,t){void 0===t&&(t=40);var a=Object.keys(f(e));if(a.sort(),!a.length)return"[object has no keys]";if(a[0].length>=t)return(0,u.$G)(a[0],t);for(var i=a.length;i>0;i--){var n=a.slice(0,i).join(", ");if(!(n.length>t))return i===a.length?n:(0,u.$G)(n,t)}return""}function p(e){var t,a;if((0,r.PO)(e)){var n=e,o={};try{for(var s=(0,i.XA)(Object.keys(n)),u=s.next();!u.done;u=s.next()){var l=u.value;"undefined"!==typeof n[l]&&(o[l]=p(n[l]))}}catch(_){t={error:_}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(p):e}},8578:function(e,t,a){"use strict";a.d(t,{$:function(){return n}});var i="";function n(e){try{return e&&"function"===typeof e&&e.name||i}catch(t){return i}}},7050:function(e,t,a){"use strict";a.d(t,{$G:function(){return n},nK:function(){return r},zC:function(){return o}});var i=a(8805);function n(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function r(e,t){if(!Array.isArray(e))return"";for(var a=[],i=0;i-1?n(a):a}},9722:function(e,t,a){"use strict";var i=a(3350),n=a(2506),r=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||i.call(o,r),u=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),_=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch(d){l=null}e.exports=function(e){var t=s(i,o,arguments);if(u&&l){var a=u(t,"length");a.configurable&&l(t,"length",{value:1+_(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(i,r,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},8182:function(e,t,a){"use strict";function i(e){var t,a,n="";if("string"===typeof e||"number"===typeof e)n+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t=t?e:""+Array(t+1-i.length).join(a)+e},p={s:m,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),i=Math.floor(a/60),n=a%60;return(t<=0?"+":"-")+m(i,2,"0")+":"+m(n,2,"0")},m:function e(t,a){if(t.date()0,F<=h.r||!h.r){F<=1&&g>0&&(h=d[g-1]);var m=f[h.l];s&&(F=s(""+F)),l="string"==typeof m?m.replace("%d",F):m(F,i,h.l,_);break}}if(i)return l;var p=_?f.future:f.past;return"function"==typeof p?p(l):p.replace("%s",l)},i.to=function(e,t){return r(e,t,this,!0)},i.from=function(e,t){return r(e,t,this)};var o=function(e){return e.$u?a.utc():a()};i.toNow=function(e){return this.to(o(this),e)},i.fromNow=function(e){return this.from(o(this),e)}}}()},5790:function(e){e.exports=function(){"use strict";return function(e,t,a){a.updateLocale=function(e,t){var i=a.Ls[e];if(i)return(t?Object.keys(t):[]).forEach((function(e){i[e]=t[e]})),i}}}()},9412:function(e){"use strict";var t="%[a-f0-9]{2}",a=new RegExp(t,"gi"),i=new RegExp("("+t+")+","gi");function n(e,t){try{return decodeURIComponent(e.join(""))}catch(r){}if(1===e.length)return e;t=t||1;var a=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],n(a),n(i))}function r(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(a),i=1;i1?a-1:0),n=1;n/gm),q=s(/^data-[\-\w.\u00B7-\uFFFF]/),G=s(/^aria-[\-\w]+$/),Z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=s(/^(?:\w+script|data):/i),z=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function H(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:V(),t=function(e){return Y(e)};if(t.version="2.3.5",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var a=e.document,i=e.document,n=e.DocumentFragment,r=e.HTMLTemplateElement,s=e.Node,u=e.Element,l=e.NodeFilter,_=e.NamedNodeMap,f=void 0===_?e.NamedNodeMap||e.MozNamedAttrMap:_,y=e.HTMLFormElement,v=e.DOMParser,$=e.trustedTypes,J=u.prototype,X=S(J,"cloneNode"),Q=S(J,"nextSibling"),ee=S(J,"childNodes"),te=S(J,"parentNode");if("function"===typeof r){var ae=i.createElement("template");ae.content&&ae.content.ownerDocument&&(i=ae.content.ownerDocument)}var ie=K($,a),ne=ie?ie.createHTML(""):"",re=i,oe=re.implementation,se=re.createNodeIterator,ue=re.createDocumentFragment,le=re.getElementsByTagName,_e=a.importNode,fe={};try{fe=w(i).documentMode?i.documentMode:{}}catch(vt){}var de={};t.isSupported="function"===typeof te&&oe&&"undefined"!==typeof oe.createHTMLDocument&&9!==fe;var ce=B,ge=M,he=q,Fe=G,me=U,pe=z,Ee=Z,be=null,ke=D({},[].concat(H(C),H(A),H(T),H(I),H(O))),ye=null,ve=D({},[].concat(H(L),H(N),H(P),H(j))),De=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,Se=null,Ce=!0,Ae=!0,Te=!1,xe=!1,Ie=!1,Re=!1,Oe=!1,Le=!1,Ne=!1,Pe=!1,je=!0,Be=!0,Me=!1,qe={},Ge=null,Ze=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ue=null,ze=D({},["audio","video","img","source","image","track"]),We=null,He=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",$e=Ye,Je=!1,Xe=void 0,Qe=["application/xhtml+xml","text/html"],et="text/html",tt=void 0,at=null,it=i.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(e){at&&at===e||(e&&"object"===("undefined"===typeof e?"undefined":W(e))||(e={}),e=w(e),be="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS):ke,ye="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR):ve,We="ADD_URI_SAFE_ATTR"in e?D(w(He),e.ADD_URI_SAFE_ATTR):He,Ue="ADD_DATA_URI_TAGS"in e?D(w(ze),e.ADD_DATA_URI_TAGS):ze,Ge="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS):Ze,we="FORBID_TAGS"in e?D({},e.FORBID_TAGS):{},Se="FORBID_ATTR"in e?D({},e.FORBID_ATTR):{},qe="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=e.SAFE_FOR_TEMPLATES||!1,Ie=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||Ee,$e=e.NAMESPACE||Ye,e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(De.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(De.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xe=Xe=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Xe?function(e){return e}:h,xe&&(Ae=!1),Ne&&(Le=!0),qe&&(be=D({},[].concat(H(O))),ye=[],!0===qe.html&&(D(be,C),D(ye,L)),!0===qe.svg&&(D(be,A),D(ye,N),D(ye,j)),!0===qe.svgFilters&&(D(be,T),D(ye,N),D(ye,j)),!0===qe.mathMl&&(D(be,I),D(ye,P),D(ye,j))),e.ADD_TAGS&&(be===ke&&(be=w(be)),D(be,e.ADD_TAGS)),e.ADD_ATTR&&(ye===ve&&(ye=w(ye)),D(ye,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&D(We,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Ge===Ze&&(Ge=w(Ge)),D(Ge,e.FORBID_CONTENTS)),Be&&(be["#text"]=!0),Ie&&D(be,["html","head","body"]),be.table&&(D(be,["tbody"]),delete we.tbody),o&&o(e),at=e)},ot=D({},["mi","mo","mn","ms","mtext"]),st=D({},["foreignobject","desc","title","annotation-xml"]),ut=D({},A);D(ut,T),D(ut,x);var lt=D({},I);D(lt,R);var _t=function(e){var t=te(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var a=h(e.tagName),i=h(t.tagName);if(e.namespaceURI===Ke)return t.namespaceURI===Ye?"svg"===a:t.namespaceURI===Ve?"svg"===a&&("annotation-xml"===i||ot[i]):Boolean(ut[a]);if(e.namespaceURI===Ve)return t.namespaceURI===Ye?"math"===a:t.namespaceURI===Ke?"math"===a&&st[i]:Boolean(lt[a]);if(e.namespaceURI===Ye){if(t.namespaceURI===Ke&&!st[i])return!1;if(t.namespaceURI===Ve&&!ot[i])return!1;var n=D({},["title","style","font","a","script"]);return!lt[a]&&(n[a]||!ut[a])}return!1},ft=function(e){g(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(vt){try{e.outerHTML=ne}catch(vt){e.remove()}}},dt=function(e,a){try{g(t.removed,{attribute:a.getAttributeNode(e),from:a})}catch(vt){g(t.removed,{attribute:null,from:a})}if(a.removeAttribute(e),"is"===e&&!ye[e])if(Le||Ne)try{ft(a)}catch(vt){}else try{a.setAttribute(e,"")}catch(vt){}},ct=function(e){var t=void 0,a=void 0;if(Oe)e=""+e;else{var n=F(e,/^[\r\n\t ]+/);a=n&&n[0]}"application/xhtml+xml"===Xe&&(e=''+e+"");var r=ie?ie.createHTML(e):e;if($e===Ye)try{t=(new v).parseFromString(r,Xe)}catch(vt){}if(!t||!t.documentElement){t=oe.createDocument($e,"template",null);try{t.documentElement.innerHTML=Je?"":r}catch(vt){}}var o=t.body||t.documentElement;return e&&a&&o.insertBefore(i.createTextNode(a),o.childNodes[0]||null),$e===Ye?le.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:o},gt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},ht=function(e){return e instanceof y&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof f)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore)},Ft=function(e){return"object"===("undefined"===typeof s?"undefined":W(s))?e instanceof s:e&&"object"===("undefined"===typeof e?"undefined":W(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},mt=function(e,a,i){de[e]&&d(de[e],(function(e){e.call(t,a,i,at)}))},pt=function(e){var a=void 0;if(mt("beforeSanitizeElements",e,null),ht(e))return ft(e),!0;if(F(e.nodeName,/[\u0080-\uFFFF]/))return ft(e),!0;var i=tt(e.nodeName);if(mt("uponSanitizeElement",e,{tagName:i,allowedTags:be}),!Ft(e.firstElementChild)&&(!Ft(e.content)||!Ft(e.content.firstElementChild))&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===i&&b(/